@bdelab/roar-sre 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
1
|
+
;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="395c63e5-0859-49d3-81a6-f208c91bcfff",e._sentryDebugIdIdentifier="sentry-dbid-395c63e5-0859-49d3-81a6-f208c91bcfff")}catch(e){}}();import e from"path";import t from"stream";("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"a8d06878765b7ce6bc905acba77aa95e54aae3b1"};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 s={exports:{}};
|
|
2
2
|
/*! store2 - v2.14.2 - 2022-07-18
|
|
3
3
|
* Copyright (c) 2022 Nathan Bubna; Licensed (MIT OR GPL-3.0) */!function(e){!function(t,n){var i={version:"2.14.2",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||i.replace)},parse:function(e,t){try{return JSON.parse(e,t||i.revive)}catch(t){return e}},fn:function(e,t){for(var n in i.storeAPI[e]=t,i.apis)i.apis[n][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,n){var s=i.inherit(i.storeAPI,(function(e,t,n){return 0===arguments.length?s.getAll():"function"==typeof t?s.transact(e,t,n):void 0!==t?s.set(e,t,n):"string"==typeof e||"number"==typeof e?s.get(e):"function"==typeof e?s.each(e):e?s.setAll(e,t):s.clear()}));s._id=e;try{var a="__store2_test";t.setItem(a,"ok"),s._area=t,t.removeItem(a)}catch(e){s._area=i.storage("fake")}return s._ns=n||"",i.areas[e]||(i.areas[e]=s._area),i.apis[s._ns+s._id]||(i.apis[s._ns+s._id]=s),s},storeAPI:{area:function(e,t){var n=this[e];return n&&n.area||(n=i.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||i.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):"";var s=e,a=this[s];if(!(a&&a.namespace||((a=i.Store(this._id,this._area,this._ns+s+n))._delim=n,this[s]||(this[s]=a),t)))for(var r in i.areas)a.area(r,i.areas[r]);return a},isFake:function(e){return e?(this._real=this._area,this._area=i.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 n=0,s=i.length(this._area);n<s;n++){var a=this._out(i.key(this._area,n));if(void 0!==a&&!1===e.call(this,a,this.get(a),t))break;s>i.length(this._area)&&(s--,n--)}return t||this},keys:function(e){return this.each((function(e,t,n){n.push(e)}),e||[])},get:function(e,t){var n,s=i.get(this._area,this._in(e));return"function"==typeof t&&(n=t,t=null),null!==s?i.parse(s,n):null!=t?t:s},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),s=t(i);return this.set(e,void 0===s?i:s),this},set:function(e,t,n){var s,a=this.get(e);return null!=a&&!1===n?t:("function"==typeof n&&(s=n,n=void 0),i.set(this._area,this._in(e),i.stringify(t,s),n)||a)},setAll:function(e,t){var n,i;for(var s in e)i=e[s],this.set(s,i,t)!==i&&(n=!0);return n},add:function(e,t,n){var s=this.get(e);if(s instanceof Array)t=s.concat(t);else if(null!==s){var a=typeof s;if(a===typeof t&&"object"===a){for(var r in t)s[r]=t[r];t=s}else t=s+t}return i.set(this._area,this._in(e),i.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return i.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each((function(e){i.remove(this._area,this._in(e))}),1):i.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in i.areas)i.areas.hasOwnProperty(t)&&(this._area=i.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=i.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 i.inherit(i.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)}}},s=i.Store("local",function(){try{return localStorage}catch(e){}}());s.local=s,s._=i,s.area("session",function(){try{return sessionStorage}catch(e){}}()),s.area("page",i.storage("page")),"function"==typeof n&&void 0!==n.amd?n("store2",[],(function(){return s})):e.exports?e.exports=s:(t.store&&(i.conflict=t.store),t.store=s)}(n,n&&n.define)}(s);var a=i(s.exports);var r=function(){this.__data__=[],this.size=0};var o=function(e,t){return e===t||e!=e&&t!=t},c=o;var l=function(e,t){for(var n=e.length;n--;)if(c(e[n][0],t))return n;return-1},d=l,u=Array.prototype.splice;var p=l;var f=l;var h=l;var m=r,g=function(e){var t=this.__data__,n=d(t,e);return!(n<0)&&(n==t.length-1?t.pop():u.call(t,n,1),--this.size,!0)},y=function(e){var t=this.__data__,n=p(t,e);return n<0?void 0:t[n][1]},_=function(e){return f(this.__data__,e)>-1},v=function(e,t){var n=this.__data__,i=h(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function b(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])}}b.prototype.clear=m,b.prototype.delete=g,b.prototype.get=y,b.prototype.has=_,b.prototype.set=v;var w=b,I=w;var x=function(){this.__data__=new I,this.size=0};var E=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var A=function(e){return this.__data__.get(e)};var S=function(e){return this.__data__.has(e)},k="object"==typeof n&&n&&n.Object===Object&&n,T=k,R="object"==typeof self&&self&&self.Object===Object&&self,L=T||R||Function("return this")(),C=L.Symbol,N=C,O=Object.prototype,U=O.hasOwnProperty,F=O.toString,j=N?N.toStringTag:void 0;var P=function(e){var t=U.call(e,j),n=e[j];try{e[j]=void 0;var i=!0}catch(e){}var s=F.call(e);return i&&(t?e[j]=n:delete e[j]),s},D=Object.prototype.toString;var M=P,z=function(e){return D.call(e)},B=C?C.toStringTag:void 0;var $=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?M(e):z(e)};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},V=$,Y=q;var G,H=function(e){if(!Y(e))return!1;var t=V(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},W=L["__core-js_shared__"],K=(G=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"";var Z=function(e){return!!K&&K in e},J=Function.prototype.toString;var X=function(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Q=H,ee=Z,te=q,ne=X,ie=/^\[object .+?Constructor\]$/,se=Function.prototype,ae=Object.prototype,re=se.toString,oe=ae.hasOwnProperty,ce=RegExp("^"+re.call(oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var le=function(e){return!(!te(e)||ee(e))&&(Q(e)?ce:ie).test(ne(e))},de=function(e,t){return null==e?void 0:e[t]};var ue=function(e,t){var n=de(e,t);return le(n)?n:void 0},pe=ue(L,"Map"),fe=ue(Object,"create"),he=fe;var me=function(){this.__data__=he?he(null):{},this.size=0};var ge=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye=fe,_e=Object.prototype.hasOwnProperty;var ve=function(e){var t=this.__data__;if(ye){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _e.call(t,e)?t[e]:void 0},be=fe,we=Object.prototype.hasOwnProperty;var Ie=fe;var xe=me,Ee=ge,Ae=ve,Se=function(e){var t=this.__data__;return be?void 0!==t[e]:we.call(t,e)},ke=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ie&&void 0===t?"__lodash_hash_undefined__":t,this};function Te(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])}}Te.prototype.clear=xe,Te.prototype.delete=Ee,Te.prototype.get=Ae,Te.prototype.has=Se,Te.prototype.set=ke;var Re=Te,Le=w,Ce=pe;var Ne=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Oe=function(e,t){var n=e.__data__;return Ne(t)?n["string"==typeof t?"string":"hash"]:n.map},Ue=Oe;var Fe=Oe;var je=Oe;var Pe=Oe;var De=function(){this.size=0,this.__data__={hash:new Re,map:new(Ce||Le),string:new Re}},Me=function(e){var t=Ue(this,e).delete(e);return this.size-=t?1:0,t},ze=function(e){return Fe(this,e).get(e)},Be=function(e){return je(this,e).has(e)},$e=function(e,t){var n=Pe(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function qe(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])}}qe.prototype.clear=De,qe.prototype.delete=Me,qe.prototype.get=ze,qe.prototype.has=Be,qe.prototype.set=$e;var Ve=qe,Ye=w,Ge=pe,He=Ve;var We=w,Ke=x,Ze=E,Je=A,Xe=S,Qe=function(e,t){var n=this.__data__;if(n instanceof Ye){var i=n.__data__;if(!Ge||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new He(i)}return n.set(e,t),this.size=n.size,this};function et(e){var t=this.__data__=new We(e);this.size=t.size}et.prototype.clear=Ke,et.prototype.delete=Ze,et.prototype.get=Je,et.prototype.has=Xe,et.prototype.set=Qe;var tt=et;var nt=Ve,it=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},st=function(e){return this.__data__.has(e)};function at(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new nt;++t<n;)this.add(e[t])}at.prototype.add=at.prototype.push=it,at.prototype.has=st;var rt=at,ot=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},ct=function(e,t){return e.has(t)};var lt=function(e,t,n,i,s,a){var r=1&n,o=e.length,c=t.length;if(o!=c&&!(r&&c>o))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var u=-1,p=!0,f=2&n?new rt:void 0;for(a.set(e,t),a.set(t,e);++u<o;){var h=e[u],m=t[u];if(i)var g=r?i(m,h,u,t,e,a):i(h,m,u,e,t,a);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!ot(t,(function(e,t){if(!ct(f,t)&&(h===e||s(h,e,n,i,a)))return f.push(t)}))){p=!1;break}}else if(h!==m&&!s(h,m,n,i,a)){p=!1;break}}return a.delete(e),a.delete(t),p},dt=L.Uint8Array;var ut=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n};var pt=dt,ft=o,ht=lt,mt=ut,gt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},yt=C?C.prototype:void 0,_t=yt?yt.valueOf:void 0;var vt=function(e,t,n,i,s,a,r){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new pt(e),new pt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ft(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=mt;case"[object Set]":var c=1&i;if(o||(o=gt),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var d=ht(o(e),o(t),i,s,a,r);return r.delete(e),d;case"[object Symbol]":if(_t)return _t.call(e)==_t.call(t)}return!1};var bt=function(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e},wt=Array.isArray,It=bt,xt=wt;var Et=function(e,t,n){var i=t(e);return xt(e)?i:It(i,n(e))};var At=function(){return[]},St=function(e,t){for(var n=-1,i=null==e?0:e.length,s=0,a=[];++n<i;){var r=e[n];t(r,n,e)&&(a[s++]=r)}return a},kt=At,Tt=Object.prototype.propertyIsEnumerable,Rt=Object.getOwnPropertySymbols,Lt=Rt?function(e){return null==e?[]:(e=Object(e),St(Rt(e),(function(t){return Tt.call(e,t)})))}:kt;var Ct=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i};var Nt=function(e){return null!=e&&"object"==typeof e},Ot=$,Ut=Nt;var Ft=function(e){return Ut(e)&&"[object Arguments]"==Ot(e)},jt=Nt,Pt=Object.prototype,Dt=Pt.hasOwnProperty,Mt=Pt.propertyIsEnumerable,zt=Ft(function(){return arguments}())?Ft:function(e){return jt(e)&&Dt.call(e,"callee")&&!Mt.call(e,"callee")},Bt={exports:{}};var $t=function(){return!1};!function(e,t){var n=L,i=$t,s=t&&!t.nodeType&&t,a=s&&e&&!e.nodeType&&e,r=a&&a.exports===s?n.Buffer:void 0,o=(r?r.isBuffer:void 0)||i;e.exports=o}(Bt,Bt.exports);var qt=Bt.exports,Vt=/^(?:0|[1-9]\d*)$/;var Yt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Vt.test(e))&&e>-1&&e%1==0&&e<t};var Gt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ht=$,Wt=Gt,Kt=Nt,Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var Jt=function(e){return Kt(e)&&Wt(e.length)&&!!Zt[Ht(e)]};var Xt=function(e){return function(t){return e(t)}},Qt={exports:{}};!function(e,t){var n=k,i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,a=s&&s.exports===i&&n.process,r=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=r}(Qt,Qt.exports);var en=Qt.exports,tn=Jt,nn=Xt,sn=en&&en.isTypedArray,an=sn?nn(sn):tn,rn=Ct,on=zt,cn=wt,ln=qt,dn=Yt,un=an,pn=Object.prototype.hasOwnProperty;var fn=function(e,t){var n=cn(e),i=!n&&on(e),s=!n&&!i&&ln(e),a=!n&&!i&&!s&&un(e),r=n||i||s||a,o=r?rn(e.length,String):[],c=o.length;for(var l in e)!t&&!pn.call(e,l)||r&&("length"==l||s&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||dn(l,c))||o.push(l);return o},hn=Object.prototype;var mn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||hn)};var gn=function(e,t){return function(n){return e(t(n))}},yn=gn(Object.keys,Object),_n=mn,vn=yn,bn=Object.prototype.hasOwnProperty;var wn=H,In=Gt;var xn=function(e){return null!=e&&In(e.length)&&!wn(e)},En=fn,An=function(e){if(!_n(e))return vn(e);var t=[];for(var n in Object(e))bn.call(e,n)&&"constructor"!=n&&t.push(n);return t},Sn=xn;var kn=function(e){return Sn(e)?En(e):An(e)},Tn=Et,Rn=Lt,Ln=kn;var Cn=function(e){return Tn(e,Ln,Rn)},Nn=Cn,On=Object.prototype.hasOwnProperty;var Un=function(e,t,n,i,s,a){var r=1&n,o=Nn(e),c=o.length;if(c!=Nn(t).length&&!r)return!1;for(var l=c;l--;){var d=o[l];if(!(r?d in t:On.call(t,d)))return!1}var u=a.get(e),p=a.get(t);if(u&&p)return u==t&&p==e;var f=!0;a.set(e,t),a.set(t,e);for(var h=r;++l<c;){var m=e[d=o[l]],g=t[d];if(i)var y=r?i(g,m,d,t,e,a):i(m,g,d,e,t,a);if(!(void 0===y?m===g||s(m,g,n,i,a):y)){f=!1;break}h||(h="constructor"==d)}if(f&&!h){var _=e.constructor,v=t.constructor;_==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f},Fn=ue(L,"DataView"),jn=pe,Pn=ue(L,"Promise"),Dn=ue(L,"Set"),Mn=ue(L,"WeakMap"),zn=$,Bn=X,$n="[object Map]",qn="[object Promise]",Vn="[object Set]",Yn="[object WeakMap]",Gn="[object DataView]",Hn=Bn(Fn),Wn=Bn(jn),Kn=Bn(Pn),Zn=Bn(Dn),Jn=Bn(Mn),Xn=zn;(Fn&&Xn(new Fn(new ArrayBuffer(1)))!=Gn||jn&&Xn(new jn)!=$n||Pn&&Xn(Pn.resolve())!=qn||Dn&&Xn(new Dn)!=Vn||Mn&&Xn(new Mn)!=Yn)&&(Xn=function(e){var t=zn(e),n="[object Object]"==t?e.constructor:void 0,i=n?Bn(n):"";if(i)switch(i){case Hn:return Gn;case Wn:return $n;case Kn:return qn;case Zn:return Vn;case Jn:return Yn}return t});var Qn=Xn,ei=tt,ti=lt,ni=vt,ii=Un,si=Qn,ai=wt,ri=qt,oi=an,ci="[object Arguments]",li="[object Array]",di="[object Object]",ui=Object.prototype.hasOwnProperty;var pi=function(e,t,n,i,s,a){var r=ai(e),o=ai(t),c=r?li:si(e),l=o?li:si(t),d=(c=c==ci?di:c)==di,u=(l=l==ci?di:l)==di,p=c==l;if(p&&ri(e)){if(!ri(t))return!1;r=!0,d=!1}if(p&&!d)return a||(a=new ei),r||oi(e)?ti(e,t,n,i,s,a):ni(e,t,c,n,i,s,a);if(!(1&n)){var f=d&&ui.call(e,"__wrapped__"),h=u&&ui.call(t,"__wrapped__");if(f||h){var m=f?e.value():e,g=h?t.value():t;return a||(a=new ei),s(m,g,n,i,a)}}return!!p&&(a||(a=new ei),ii(e,t,n,i,s,a))},fi=Nt;var hi=function e(t,n,i,s,a){return t===n||(null==t||null==n||!fi(t)&&!fi(n)?t!=t&&n!=n:pi(t,n,i,s,e,a))},mi=tt,gi=hi;var yi=q;var _i=function(e){return e==e&&!yi(e)},vi=_i,bi=kn;var wi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},Ii=function(e,t,n,i){var s=n.length,a=s,r=!i;if(null==e)return!a;for(e=Object(e);s--;){var o=n[s];if(r&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++s<a;){var c=(o=n[s])[0],l=e[c],d=o[1];if(r&&o[2]){if(void 0===l&&!(c in e))return!1}else{var u=new mi;if(i)var p=i(l,d,c,e,t,u);if(!(void 0===p?gi(d,l,3,i,u):p))return!1}}return!0},xi=function(e){for(var t=bi(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,vi(s)]}return t},Ei=wi;var Ai=function(e){var t=xi(e);return 1==t.length&&t[0][2]?Ei(t[0][0],t[0][1]):function(n){return n===e||Ii(n,e,t)}},Si=$,ki=Nt;var Ti=function(e){return"symbol"==typeof e||ki(e)&&"[object Symbol]"==Si(e)},Ri=wt,Li=Ti,Ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ni=/^\w*$/;var Oi=function(e,t){if(Ri(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Li(e))||(Ni.test(e)||!Ci.test(e)||null!=t&&e in Object(t))},Ui=Ve;function Fi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,s=t?t.apply(this,i):i[0],a=n.cache;if(a.has(s))return a.get(s);var r=e.apply(this,i);return n.cache=a.set(s,r)||a,r};return n.cache=new(Fi.Cache||Ui),n}Fi.Cache=Ui;var ji=Fi;var Pi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Di=/\\(\\)?/g,Mi=function(e){var t=ji(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,s){t.push(i?s.replace(Di,"$1"):n||e)})),t}));var zi=function(e,t){for(var n=-1,i=null==e?0:e.length,s=Array(i);++n<i;)s[n]=t(e[n],n,e);return s},Bi=zi,$i=wt,qi=Ti,Vi=C?C.prototype:void 0,Yi=Vi?Vi.toString:void 0;var Gi=function e(t){if("string"==typeof t)return t;if($i(t))return Bi(t,e)+"";if(qi(t))return Yi?Yi.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Hi=Gi;var Wi=wt,Ki=Oi,Zi=Mi,Ji=function(e){return null==e?"":Hi(e)};var Xi=function(e,t){return Wi(e)?e:Ki(e,t)?[e]:Zi(Ji(e))},Qi=Ti;var es=function(e){if("string"==typeof e||Qi(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},ts=Xi,ns=es;var is=function(e,t){for(var n=0,i=(t=ts(t,e)).length;null!=e&&n<i;)e=e[ns(t[n++])];return n&&n==i?e:void 0},ss=is;var as=function(e,t,n){var i=null==e?void 0:ss(e,t);return void 0===i?n:i};var rs=Xi,os=zt,cs=wt,ls=Yt,ds=Gt,us=es;var ps=function(e,t,n){for(var i=-1,s=(t=rs(t,e)).length,a=!1;++i<s;){var r=us(t[i]);if(!(a=null!=e&&n(e,r)))break;e=e[r]}return a||++i!=s?a:!!(s=null==e?0:e.length)&&ds(s)&&ls(r,s)&&(cs(e)||os(e))},fs=function(e,t){return null!=e&&t in Object(e)},hs=ps;var ms=function(e,t){return null!=e&&hs(e,t,fs)},gs=hi,ys=as,_s=ms,vs=Oi,bs=_i,ws=wi,Is=es;var xs=function(e,t){return vs(e)&&bs(t)?ws(Is(e),t):function(n){var i=ys(n,e);return void 0===i&&i===t?_s(n,e):gs(t,i,3)}};var Es=function(e){return e};var As=is;var Ss=function(e){return function(t){return As(t,e)}},ks=function(e){return function(t){return null==t?void 0:t[e]}},Ts=Ss,Rs=Oi,Ls=es;var Cs=function(e){return Rs(e)?ks(Ls(e)):Ts(e)},Ns=Ai,Os=xs,Us=Es,Fs=wt,js=Cs;var Ps=function(e){return"function"==typeof e?e:null==e?Us:"object"==typeof e?Fs(e)?Os(e[0],e[1]):Ns(e):js(e)};var Ds=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)}},Ms=ue,zs=function(){try{var e=Ms(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Bs=zs;var $s=function(e,t,n){"__proto__"==t&&Bs?Bs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},qs=$s,Vs=o,Ys=Object.prototype.hasOwnProperty;var Gs=function(e,t,n){var i=e[t];Ys.call(e,t)&&Vs(i,n)&&(void 0!==n||t in e)||qs(e,t,n)},Hs=Gs,Ws=Xi,Ks=Yt,Zs=q,Js=es;var Xs=function(e,t,n,i){if(!Zs(e))return e;for(var s=-1,a=(t=Ws(t,e)).length,r=a-1,o=e;null!=o&&++s<a;){var c=Js(t[s]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(s!=r){var d=o[c];void 0===(l=i?i(d,c,o):void 0)&&(l=Zs(d)?d:Ks(t[s+1])?[]:{})}Hs(o,c,l),o=o[c]}return e},Qs=is,ea=Xs,ta=Xi;var na=function(e,t,n){for(var i=-1,s=t.length,a={};++i<s;){var r=t[i],o=Qs(e,r);n(o,r)&&ea(a,ta(r,e),o)}return a},ia=gn(Object.getPrototypeOf,Object),sa=bt,aa=ia,ra=Lt,oa=At,ca=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sa(t,ra(e)),e=aa(e);return t}:oa;var la=q,da=mn,ua=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},pa=Object.prototype.hasOwnProperty;var fa=fn,ha=function(e){if(!la(e))return ua(e);var t=da(e),n=[];for(var i in e)("constructor"!=i||!t&&pa.call(e,i))&&n.push(i);return n},ma=xn;var ga=function(e){return ma(e)?fa(e,!0):ha(e)},ya=Et,_a=ca,va=ga;var ba=function(e){return ya(e,va,_a)},wa=zi,Ia=Ps,xa=na,Ea=ba;var Aa=function(e,t){if(null==e)return{};var n=wa(Ea(e),(function(e){return[e]}));return t=Ia(t),xa(e,n,(function(e,n){return t(e,n[0])}))},Sa=Ps,ka=Ds,Ta=Aa;var Ra=i((function(e,t){return Ta(e,ka(Sa(t)))}));var La=i((function(e){return null===e})),Ca=/\s/;var Na=function(e){for(var t=e.length;t--&&Ca.test(e.charAt(t)););return t},Oa=/^\s+/;var Ua=function(e){return e?e.slice(0,Na(e)+1).replace(Oa,""):e},Fa=q,ja=Ti,Pa=/^[-+]0x[0-9a-f]+$/i,Da=/^0b[01]+$/i,Ma=/^0o[0-7]+$/i,za=parseInt;var Ba=i((function(e){if("number"==typeof e)return e;if(ja(e))return NaN;if(Fa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Fa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ua(e);var n=Da.test(e);return n||Ma.test(e)?za(e.slice(2),n?2:8):Pa.test(e)?NaN:+e}));var $a=i((function(e){return void 0===e}));function qa(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Va(e,t){for(var n,i="",s=0,a=-1,r=0,o=0;o<=e.length;++o){if(o<e.length)n=e.charCodeAt(o);else{if(47===n)break;n=47}if(47===n){if(a===o-1||1===r);else if(a!==o-1&&2===r){if(i.length<2||2!==s||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="",s=0):s=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),a=o,r=0;continue}}else if(2===i.length||1===i.length){i="",s=0,a=o,r=0;continue}t&&(i.length>0?i+="/..":i="..",s=2)}else i.length>0?i+="/"+e.slice(a+1,o):i=e.slice(a+1,o),s=o-a-1;a=o,r=0}else 46===n&&-1!==r?++r:r=-1}return i}var Ya={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),qa(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=Va(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(qa(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=Va(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return qa(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];qa(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":Ya.normalize(e)},relative:function(e,t){if(qa(e),qa(t),e===t)return"";if((e=Ya.resolve(e))===(t=Ya.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var i=e.length,s=i-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var r=t.length-a,o=s<r?s:r,c=-1,l=0;l<=o;++l){if(l===o){if(r>o){if(47===t.charCodeAt(a+l))return t.slice(a+l+1);if(0===l)return t.slice(a+l)}else s>o&&(47===e.charCodeAt(n+l)?c=l:0===l&&(c=0));break}var d=e.charCodeAt(n+l);if(d!==t.charCodeAt(a+l))break;47===d&&(c=l)}var u="";for(l=n+c+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===u.length?u+="..":u+="/..");return u.length>0?u+t.slice(a+c):(a+=c,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(qa(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!s){i=a;break}}else s=!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');qa(e);var n,i=0,s=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,o=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1),r>=0&&(c===t.charCodeAt(r)?-1==--r&&(s=n):(r=-1,s=o))}return i===s?s=o:-1===s&&(s=e.length),e.slice(i,s)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else-1===s&&(a=!1,s=n+1);return-1===s?"":e.slice(i,s)},extname:function(e){qa(e);for(var t=-1,n=0,i=-1,s=!0,a=0,r=e.length-1;r>=0;--r){var o=e.charCodeAt(r);if(47!==o)-1===i&&(s=!1,i=r+1),46===o?-1===t?t=r:1!==a&&(a=1):-1!==t&&(a=-1);else if(!s){n=r+1;break}}return-1===t||-1===i||0===a||1===a&&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){qa(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),s=47===i;s?(t.root="/",n=1):n=0;for(var a=-1,r=0,o=-1,c=!0,l=e.length-1,d=0;l>=n;--l)if(47!==(i=e.charCodeAt(l)))-1===o&&(c=!1,o=l+1),46===i?-1===a?a=l:1!==d&&(d=1):-1!==a&&(d=-1);else if(!c){r=l+1;break}return-1===a||-1===o||0===d||1===d&&a===o-1&&a===r+1?-1!==o&&(t.base=t.name=0===r&&s?e.slice(1,o):e.slice(r,o)):(0===r&&s?(t.name=e.slice(1,a),t.base=e.slice(1,o)):(t.name=e.slice(r,a),t.base=e.slice(r,o)),t.ext=e.slice(a,o)),r>0?t.dir=e.slice(0,r-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ya.posix=Ya;var Ga=i(Ya),Ha={},Wa={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};
|
|
4
4
|
/*!
|
|
@@ -22,5 +22,5 @@ function(e){for(var t=[],n=0;n<e.elements.length;n++){var i=e.elements[n];if(i.n
|
|
|
22
22
|
* Released under MIT license <https://lodash.com/license>
|
|
23
23
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
24
24
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
25
|
-
*/!function(e,t){(function(){var i,s="Expected a function",a="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,l=64,d=128,u=256,p=1/0,f=9007199254740991,h=NaN,m=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",l],["rearg",u]],y="[object Arguments]",_="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",I="[object Function]",x="[object GeneratorFunction]",E="[object Map]",A="[object Number]",S="[object Object]",k="[object Promise]",T="[object RegExp]",R="[object Set]",L="[object String]",C="[object Symbol]",N="[object WeakMap]",O="[object ArrayBuffer]",U="[object DataView]",F="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",z="[object Uint8Array]",B="[object Uint8ClampedArray]",$="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,K=RegExp(H.source),Z=RegExp(W.source),J=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ie.source),ae=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Re="\\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",Le="['’]",Ce="["+xe+"]",Ne="["+Re+"]",Oe="["+Ee+"]",Ue="\\d+",Fe="["+Ae+"]",je="["+Se+"]",Pe="[^"+xe+Re+Ue+Ae+Se+ke+"]",De="\\ud83c[\\udffb-\\udfff]",Me="[^"+xe+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+ke+"]",qe="\\u200d",Ve="(?:"+je+"|"+Pe+")",Ye="(?:"+$e+"|"+Pe+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Oe+"|"+De+")"+"?",Ke="["+Te+"]?",Ze=Ke+We+("(?:"+qe+"(?:"+[Me,ze,Be].join("|")+")"+Ke+We+")*"),Je="(?:"+[Fe,ze,Be].join("|")+")"+Ze,Xe="(?:"+[Me+Oe+"?",Oe,ze,Be,Ce].join("|")+")",Qe=RegExp(Le,"g"),et=RegExp(Oe,"g"),tt=RegExp(De+"(?="+De+")|"+Xe+Ze,"g"),nt=RegExp([$e+"?"+je+"+"+Ge+"(?="+[Ne,$e,"$"].join("|")+")",Ye+"+"+He+"(?="+[Ne,$e+Ve,"$"].join("|")+")",$e+"?"+Ve+"+"+Ge,$e+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ue,Je].join("|"),"g"),it=RegExp("["+qe+xe+Ee+Te+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[F]=ot[j]=ot[P]=ot[D]=ot[M]=ot[z]=ot[B]=ot[$]=ot[q]=!0,ot[y]=ot[_]=ot[O]=ot[v]=ot[U]=ot[b]=ot[w]=ot[I]=ot[E]=ot[A]=ot[S]=ot[T]=ot[R]=ot[L]=ot[N]=!1;var ct={};ct[y]=ct[_]=ct[O]=ct[U]=ct[v]=ct[b]=ct[F]=ct[j]=ct[P]=ct[D]=ct[M]=ct[E]=ct[A]=ct[S]=ct[T]=ct[R]=ct[L]=ct[C]=ct[z]=ct[B]=ct[$]=ct[q]=!0,ct[w]=ct[I]=ct[N]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ut=parseInt,pt="object"==typeof n&&n&&n.Object===Object&&n,ft="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||ft||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,yt=gt&>.exports===mt,_t=yt&&pt.process,vt=function(){try{var e=gt&>.require&>.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,wt=vt&&vt.isDate,It=vt&&vt.isMap,xt=vt&&vt.isRegExp,Et=vt&&vt.isSet,At=vt&&vt.isTypedArray;function St(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 kt(e,t,n,i){for(var s=-1,a=null==e?0:e.length;++s<a;){var r=e[s];t(i,r,n(r),e)}return i}function Tt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lt(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 Ct(e,t){for(var n=-1,i=null==e?0:e.length,s=0,a=[];++n<i;){var r=e[n];t(r,n,e)&&(a[s++]=r)}return a}function Nt(e,t){return!!(null==e?0:e.length)&&$t(e,t,0)>-1}function Ot(e,t,n){for(var i=-1,s=null==e?0:e.length;++i<s;)if(n(t,e[i]))return!0;return!1}function Ut(e,t){for(var n=-1,i=null==e?0:e.length,s=Array(i);++n<i;)s[n]=t(e[n],n,e);return s}function Ft(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e}function jt(e,t,n,i){var s=-1,a=null==e?0:e.length;for(i&&a&&(n=e[++s]);++s<a;)n=t(n,e[s],s,e);return n}function Pt(e,t,n,i){var s=null==e?0:e.length;for(i&&s&&(n=e[--s]);s--;)n=t(n,e[s],s,e);return n}function Dt(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 Mt=Gt("length");function zt(e,t,n){var i;return n(e,(function(e,n,s){if(t(e,n,s))return i=n,!1})),i}function Bt(e,t,n,i){for(var s=e.length,a=n+(i?1:-1);i?a--:++a<s;)if(t(e[a],a,e))return a;return-1}function $t(e,t,n){return t==t?function(e,t,n){var i=n-1,s=e.length;for(;++i<s;)if(e[i]===t)return i;return-1}(e,t,n):Bt(e,Vt,n)}function qt(e,t,n,i){for(var s=n-1,a=e.length;++s<a;)if(i(e[s],t))return s;return-1}function Vt(e){return e!=e}function Yt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:h}function Gt(e){return function(t){return null==t?i:t[e]}}function Ht(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,n,i,s){return s(e,(function(e,s,a){n=i?(i=!1,e):t(n,e,s,a)})),n}function Kt(e,t){for(var n,s=-1,a=e.length;++s<a;){var r=t(e[s]);r!==i&&(n=n===i?r:n+r)}return n}function Zt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Jt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function Qt(e,t){return Ut(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&$t(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&$t(t,e[n],0)>-1;);return n}var sn=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+lt[e]}function on(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,i=e.length,s=0,a=[];++n<i;){var o=e[n];o!==t&&o!==r||(e[n]=r,a[s++]=n)}return a}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return on(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Mt(e)}function hn(e){return on(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var gn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?ht:yn.defaults(ht.Object(),t,yn.pick(ht,at))).Array,re=t.Date,xe=t.Error,Ee=t.Function,Ae=t.Math,Se=t.Object,ke=t.RegExp,Te=t.String,Re=t.TypeError,Le=n.prototype,Ce=Ee.prototype,Ne=Se.prototype,Oe=t["__core-js_shared__"],Ue=Ce.toString,Fe=Ne.hasOwnProperty,je=0,Pe=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),De=Ne.toString,Me=Ue.call(Se),ze=ht._,Be=ke("^"+Ue.call(Fe).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=yt?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,Ye=$e?$e.allocUnsafe:i,Ge=ln(Se.getPrototypeOf,Se),He=Se.create,We=Ne.propertyIsEnumerable,Ke=Le.splice,Ze=qe?qe.isConcatSpreadable:i,Je=qe?qe.iterator:i,Xe=qe?qe.toStringTag:i,tt=function(){try{var e=ua(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=re&&re.now!==ht.Date.now&&re.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,ft=Ae.ceil,mt=Ae.floor,gt=Se.getOwnPropertySymbols,_t=$e?$e.isBuffer:i,vt=t.isFinite,Mt=Le.join,Ht=ln(Se.keys,Se),_n=Ae.max,vn=Ae.min,bn=re.now,wn=t.parseInt,In=Ae.random,xn=Le.reverse,En=ua(t,"DataView"),An=ua(t,"Map"),Sn=ua(t,"Promise"),kn=ua(t,"Set"),Tn=ua(t,"WeakMap"),Rn=ua(Se,"create"),Ln=Tn&&new Tn,Cn={},Nn=Pa(En),On=Pa(An),Un=Pa(Sn),Fn=Pa(kn),jn=Pa(Tn),Pn=qe?qe.prototype:i,Dn=Pn?Pn.valueOf:i,Mn=Pn?Pn.toString:i;function zn(e){if(eo(e)&&!qr(e)&&!(e instanceof Vn)){if(e instanceof qn)return e;if(Fe.call(e,"__wrapped__"))return Da(e)}return new qn(e)}var Bn=function(){function e(){}return function(t){if(!Qr(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function $n(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Zn(e,t){var n=qr(e),i=!n&&$r(e),s=!n&&!i&&Hr(e),a=!n&&!i&&!s&&co(e),r=n||i||s||a,o=r?Zt(e.length,Te):[],c=o.length;for(var l in e)!t&&!Fe.call(e,l)||r&&("length"==l||s&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_a(l,c))||o.push(l);return o}function Jn(e){var t=e.length;return t?e[Wi(0,t-1)]:i}function Xn(e,t){return Ua(Rs(e),oi(t,0,e.length))}function Qn(e){return Ua(Rs(e))}function ei(e,t,n){(n!==i&&!Mr(e[t],n)||n===i&&!(t in e))&&ai(e,t,n)}function ti(e,t,n){var s=e[t];Fe.call(e,t)&&Mr(s,n)&&(n!==i||t in e)||ai(e,t,n)}function ni(e,t){for(var n=e.length;n--;)if(Mr(e[n][0],t))return n;return-1}function ii(e,t,n,i){return pi(e,(function(e,s,a){t(i,e,n(e),a)})),i}function si(e,t){return e&&Ls(t,Co(t),e)}function ai(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var s=-1,a=t.length,r=n(a),o=null==e;++s<a;)r[s]=o?i:So(e,t[s]);return r}function oi(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,s,a,r){var o,c=1&t,l=2&t,d=4&t;if(n&&(o=a?n(e,s,a,r):n(e)),o!==i)return o;if(!Qr(e))return e;var u=qr(e);if(u){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Fe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Rs(e,o)}else{var p=ha(e),f=p==I||p==x;if(Hr(e))return xs(e,c);if(p==S||p==y||f&&!a){if(o=l||f?{}:ga(e),!c)return l?function(e,t){return Ls(e,fa(e),t)}(e,function(e,t){return e&&Ls(t,No(t),e)}(o,e)):function(e,t){return Ls(e,pa(e),t)}(e,si(o,e))}else{if(!ct[p])return a?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case O:return Es(e);case v:case b:return new i(+e);case U:return function(e,t){var n=t?Es(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case j:case P:case D:case M:case z:case B:case $:case q:return As(e,n);case E:return new i;case A:case L:return new i(e);case T:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new i;case C:return s=e,Dn?Se(Dn.call(s)):{}}var s}(e,p,c)}}r||(r=new Kn);var h=r.get(e);if(h)return h;r.set(e,o),ao(e)?e.forEach((function(i){o.add(ci(i,t,n,i,e,r))})):to(e)&&e.forEach((function(i,s){o.set(s,ci(i,t,n,s,e,r))}));var m=u?i:(d?l?sa:ia:l?No:Co)(e);return Tt(m||e,(function(i,s){m&&(i=e[s=i]),ti(o,s,ci(i,t,n,s,e,r))})),o}function li(e,t,n){var s=n.length;if(null==e)return!s;for(e=Se(e);s--;){var a=n[s],r=t[a],o=e[a];if(o===i&&!(a in e)||!r(o))return!1}return!0}function di(e,t,n){if("function"!=typeof e)throw new Re(s);return La((function(){e.apply(i,n)}),t)}function ui(e,t,n,i){var s=-1,a=Nt,r=!0,o=e.length,c=[],l=t.length;if(!o)return c;n&&(t=Ut(t,Xt(n))),i?(a=Ot,r=!1):t.length>=200&&(a=en,r=!1,t=new Wn(t));e:for(;++s<o;){var d=e[s],u=null==n?d:n(d);if(d=i||0!==d?d:0,r&&u==u){for(var p=l;p--;)if(t[p]===u)continue e;c.push(d)}else a(t,u,i)||c.push(d)}return c}zn.templateSettings={escape:J,evaluate:X,interpolate:Q,variable:"",imports:{_:zn}},zn.prototype=$n.prototype,zn.prototype.constructor=zn,qn.prototype=Bn($n.prototype),qn.prototype.constructor=qn,Vn.prototype=Bn($n.prototype),Vn.prototype.constructor=Vn,Yn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===a?i:n}return Fe.call(t,e)?t[e]:i},Yn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==i:Fe.call(t,e)},Yn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===i?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=ni(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=ni(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return ni(this.__data__,e)>-1},Gn.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},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(An||Gn),string:new Yn}},Hn.prototype.delete=function(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return la(this,e).get(e)},Hn.prototype.has=function(e){return la(this,e).has(e)},Hn.prototype.set=function(e,t){var n=la(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var i=n.__data__;if(!An||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(i)}return n.set(e,t),this.size=n.size,this};var pi=Os(bi),fi=Os(wi,!0);function hi(e,t){var n=!0;return pi(e,(function(e,i,s){return n=!!t(e,i,s)})),n}function mi(e,t,n){for(var s=-1,a=e.length;++s<a;){var r=e[s],o=t(r);if(null!=o&&(c===i?o==o&&!oo(o):n(o,c)))var c=o,l=r}return l}function gi(e,t){var n=[];return pi(e,(function(e,i,s){t(e,i,s)&&n.push(e)})),n}function yi(e,t,n,i,s){var a=-1,r=e.length;for(n||(n=ya),s||(s=[]);++a<r;){var o=e[a];t>0&&n(o)?t>1?yi(o,t-1,n,i,s):Ft(s,o):i||(s[s.length]=o)}return s}var _i=Us(),vi=Us(!0);function bi(e,t){return e&&_i(e,t,Co)}function wi(e,t){return e&&vi(e,t,Co)}function Ii(e,t){return Ct(t,(function(t){return Zr(e[t])}))}function xi(e,t){for(var n=0,s=(t=vs(t,e)).length;null!=e&&n<s;)e=e[ja(t[n++])];return n&&n==s?e:i}function Ei(e,t,n){var i=t(e);return qr(e)?i:Ft(i,n(e))}function Ai(e){return null==e?e===i?"[object Undefined]":"[object Null]":Xe&&Xe in Se(e)?function(e){var t=Fe.call(e,Xe),n=e[Xe];try{e[Xe]=i;var s=!0}catch(e){}var a=De.call(e);s&&(t?e[Xe]=n:delete e[Xe]);return a}(e):function(e){return De.call(e)}(e)}function Si(e,t){return e>t}function ki(e,t){return null!=e&&Fe.call(e,t)}function Ti(e,t){return null!=e&&t in Se(e)}function Ri(e,t,s){for(var a=s?Ot:Nt,r=e[0].length,o=e.length,c=o,l=n(o),d=1/0,u=[];c--;){var p=e[c];c&&t&&(p=Ut(p,Xt(t))),d=vn(p.length,d),l[c]=!s&&(t||r>=120&&p.length>=120)?new Wn(c&&p):i}p=e[0];var f=-1,h=l[0];e:for(;++f<r&&u.length<d;){var m=p[f],g=t?t(m):m;if(m=s||0!==m?m:0,!(h?en(h,g):a(u,g,s))){for(c=o;--c;){var y=l[c];if(!(y?en(y,g):a(e[c],g,s)))continue e}h&&h.push(g),u.push(m)}}return u}function Li(e,t,n){var s=null==(e=ka(e,t=vs(t,e)))?e:e[ja(Ka(t))];return null==s?i:St(s,e,n)}function Ci(e){return eo(e)&&Ai(e)==y}function Ni(e,t,n,s,a){return e===t||(null==e||null==t||!eo(e)&&!eo(t)?e!=e&&t!=t:function(e,t,n,s,a,r){var o=qr(e),c=qr(t),l=o?_:ha(e),d=c?_:ha(t),u=(l=l==y?S:l)==S,p=(d=d==y?S:d)==S,f=l==d;if(f&&Hr(e)){if(!Hr(t))return!1;o=!0,u=!1}if(f&&!u)return r||(r=new Kn),o||co(e)?ta(e,t,n,s,a,r):function(e,t,n,i,s,a,r){switch(n){case U:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case v:case b:case A:return Mr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case T:case L:return e==t+"";case E:var o=cn;case R:var c=1&i;if(o||(o=un),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var d=ta(o(e),o(t),i,s,a,r);return r.delete(e),d;case C:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,l,n,s,a,r);if(!(1&n)){var h=u&&Fe.call(e,"__wrapped__"),m=p&&Fe.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,I=m?t.value():t;return r||(r=new Kn),a(g,I,n,s,r)}}if(!f)return!1;return r||(r=new Kn),function(e,t,n,s,a,r){var o=1&n,c=ia(e),l=c.length,d=ia(t),u=d.length;if(l!=u&&!o)return!1;var p=l;for(;p--;){var f=c[p];if(!(o?f in t:Fe.call(t,f)))return!1}var h=r.get(e),m=r.get(t);if(h&&m)return h==t&&m==e;var g=!0;r.set(e,t),r.set(t,e);var y=o;for(;++p<l;){var _=e[f=c[p]],v=t[f];if(s)var b=o?s(v,_,f,t,e,r):s(_,v,f,e,t,r);if(!(b===i?_===v||a(_,v,n,s,r):b)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var w=e.constructor,I=t.constructor;w==I||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof I&&I instanceof I||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,n,s,a,r)}(e,t,n,s,Ni,a))}function Oi(e,t,n,s){var a=n.length,r=a,o=!s;if(null==e)return!r;for(e=Se(e);a--;){var c=n[a];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<r;){var l=(c=n[a])[0],d=e[l],u=c[1];if(o&&c[2]){if(d===i&&!(l in e))return!1}else{var p=new Kn;if(s)var f=s(d,u,l,e,t,p);if(!(f===i?Ni(u,d,3,s,p):f))return!1}}return!0}function Ui(e){return!(!Qr(e)||(t=e,Pe&&Pe in t))&&(Zr(e)?Be:ye).test(Pa(e));var t}function Fi(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?qr(e)?Bi(e[0],e[1]):zi(e):pc(e)}function ji(e){if(!xa(e))return Ht(e);var t=[];for(var n in Se(e))Fe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Pi(e){if(!Qr(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=xa(e),n=[];for(var i in e)("constructor"!=i||!t&&Fe.call(e,i))&&n.push(i);return n}function Di(e,t){return e<t}function Mi(e,t){var i=-1,s=Yr(e)?n(e.length):[];return pi(e,(function(e,n,a){s[++i]=t(e,n,a)})),s}function zi(e){var t=da(e);return 1==t.length&&t[0][2]?Aa(t[0][0],t[0][1]):function(n){return n===e||Oi(n,e,t)}}function Bi(e,t){return ba(e)&&Ea(t)?Aa(ja(e),t):function(n){var s=So(n,e);return s===i&&s===t?ko(n,e):Ni(t,s,3)}}function $i(e,t,n,s,a){e!==t&&_i(t,(function(r,o){if(a||(a=new Kn),Qr(r))!function(e,t,n,s,a,r,o){var c=Ta(e,n),l=Ta(t,n),d=o.get(l);if(d)return void ei(e,n,d);var u=r?r(c,l,n+"",e,t,o):i,p=u===i;if(p){var f=qr(l),h=!f&&Hr(l),m=!f&&!h&&co(l);u=l,f||h||m?qr(c)?u=c:Gr(c)?u=Rs(c):h?(p=!1,u=xs(l,!0)):m?(p=!1,u=As(l,!0)):u=[]:io(l)||$r(l)?(u=c,$r(c)?u=yo(c):Qr(c)&&!Zr(c)||(u=ga(l))):p=!1}p&&(o.set(l,u),a(u,l,s,r,o),o.delete(l));ei(e,n,u)}(e,t,o,n,$i,s,a);else{var c=s?s(Ta(e,o),r,o+"",e,t,a):i;c===i&&(c=r),ei(e,o,c)}}),No)}function qi(e,t){var n=e.length;if(n)return _a(t+=t<0?n:0,n)?e[t]:i}function Vi(e,t,n){t=t.length?Ut(t,(function(e){return qr(e)?function(t){return xi(t,1===e.length?e[0]:e)}:e})):[ic];var i=-1;t=Ut(t,Xt(ca()));var s=Mi(e,(function(e,n,s){var a=Ut(t,(function(t){return t(e)}));return{criteria:a,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(s,(function(e,t){return function(e,t,n){var i=-1,s=e.criteria,a=t.criteria,r=s.length,o=n.length;for(;++i<r;){var c=Ss(s[i],a[i]);if(c)return i>=o?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yi(e,t,n){for(var i=-1,s=t.length,a={};++i<s;){var r=t[i],o=xi(e,r);n(o,r)&&Qi(a,vs(r,e),o)}return a}function Gi(e,t,n,i){var s=i?qt:$t,a=-1,r=t.length,o=e;for(e===t&&(t=Rs(t)),n&&(o=Ut(e,Xt(n)));++a<r;)for(var c=0,l=t[a],d=n?n(l):l;(c=s(o,d,c,i))>-1;)o!==e&&Ke.call(o,c,1),Ke.call(e,c,1);return e}function Hi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var s=t[n];if(n==i||s!==a){var a=s;_a(s)?Ke.call(e,s,1):us(e,s)}}return e}function Wi(e,t){return e+mt(In()*(t-e+1))}function Ki(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Zi(e,t){return Ca(Sa(e,t,ic),e+"")}function Ji(e){return Jn(zo(e))}function Xi(e,t){var n=zo(e);return Ua(n,oi(t,0,n.length))}function Qi(e,t,n,s){if(!Qr(e))return e;for(var a=-1,r=(t=vs(t,e)).length,o=r-1,c=e;null!=c&&++a<r;){var l=ja(t[a]),d=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=o){var u=c[l];(d=s?s(u,l,c):i)===i&&(d=Qr(u)?u:_a(t[a+1])?[]:{})}ti(c,l,d),c=c[l]}return e}var es=Ln?function(e,t){return Ln.set(e,t),e}:ic,ts=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:ic;function ns(e){return Ua(zo(e))}function is(e,t,i){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(i=i>a?a:i)<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var r=n(a);++s<a;)r[s]=e[s+t];return r}function ss(e,t){var n;return pi(e,(function(e,i,s){return!(n=t(e,i,s))})),!!n}function as(e,t,n){var i=0,s=null==e?i:e.length;if("number"==typeof t&&t==t&&s<=2147483647){for(;i<s;){var a=i+s>>>1,r=e[a];null!==r&&!oo(r)&&(n?r<=t:r<t)?i=a+1:s=a}return s}return rs(e,t,ic,n)}function rs(e,t,n,s){var a=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=n(t))!=t,c=null===t,l=oo(t),d=t===i;a<r;){var u=mt((a+r)/2),p=n(e[u]),f=p!==i,h=null===p,m=p==p,g=oo(p);if(o)var y=s||m;else y=d?m&&(s||f):c?m&&f&&(s||!h):l?m&&f&&!h&&(s||!g):!h&&!g&&(s?p<=t:p<t);y?a=u+1:r=u}return vn(r,4294967294)}function os(e,t){for(var n=-1,i=e.length,s=0,a=[];++n<i;){var r=e[n],o=t?t(r):r;if(!n||!Mr(o,c)){var c=o;a[s++]=0===r?0:r}}return a}function cs(e){return"number"==typeof e?e:oo(e)?h:+e}function ls(e){if("string"==typeof e)return e;if(qr(e))return Ut(e,ls)+"";if(oo(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ds(e,t,n){var i=-1,s=Nt,a=e.length,r=!0,o=[],c=o;if(n)r=!1,s=Ot;else if(a>=200){var l=t?null:Ks(e);if(l)return un(l);r=!1,s=en,c=new Wn}else c=t?[]:o;e:for(;++i<a;){var d=e[i],u=t?t(d):d;if(d=n||0!==d?d:0,r&&u==u){for(var p=c.length;p--;)if(c[p]===u)continue e;t&&c.push(u),o.push(d)}else s(c,u,n)||(c!==o&&c.push(u),o.push(d))}return o}function us(e,t){return null==(e=ka(e,t=vs(t,e)))||delete e[ja(Ka(t))]}function ps(e,t,n,i){return Qi(e,t,n(xi(e,t)),i)}function fs(e,t,n,i){for(var s=e.length,a=i?s:-1;(i?a--:++a<s)&&t(e[a],a,e););return n?is(e,i?0:a,i?a+1:s):is(e,i?a+1:0,i?s:a)}function hs(e,t){var n=e;return n instanceof Vn&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))}),n)}function ms(e,t,i){var s=e.length;if(s<2)return s?ds(e[0]):[];for(var a=-1,r=n(s);++a<s;)for(var o=e[a],c=-1;++c<s;)c!=a&&(r[a]=ui(r[a]||o,e[c],t,i));return ds(yi(r,1),t,i)}function gs(e,t,n){for(var s=-1,a=e.length,r=t.length,o={};++s<a;){var c=s<r?t[s]:i;n(o,e[s],c)}return o}function ys(e){return Gr(e)?e:[]}function _s(e){return"function"==typeof e?e:ic}function vs(e,t){return qr(e)?e:ba(e,t)?[e]:Fa(_o(e))}var bs=Zi;function ws(e,t,n){var s=e.length;return n=n===i?s:n,!t&&n>=s?e:is(e,t,n)}var Is=it||function(e){return ht.clearTimeout(e)};function xs(e,t){if(t)return e.slice();var n=e.length,i=Ye?Ye(n):new e.constructor(n);return e.copy(i),i}function Es(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function As(e,t){var n=t?Es(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ss(e,t){if(e!==t){var n=e!==i,s=null===e,a=e==e,r=oo(e),o=t!==i,c=null===t,l=t==t,d=oo(t);if(!c&&!d&&!r&&e>t||r&&o&&l&&!c&&!d||s&&o&&l||!n&&l||!a)return 1;if(!s&&!r&&!d&&e<t||d&&n&&a&&!s&&!r||c&&n&&a||!o&&a||!l)return-1}return 0}function ks(e,t,i,s){for(var a=-1,r=e.length,o=i.length,c=-1,l=t.length,d=_n(r-o,0),u=n(l+d),p=!s;++c<l;)u[c]=t[c];for(;++a<o;)(p||a<r)&&(u[i[a]]=e[a]);for(;d--;)u[c++]=e[a++];return u}function Ts(e,t,i,s){for(var a=-1,r=e.length,o=-1,c=i.length,l=-1,d=t.length,u=_n(r-c,0),p=n(u+d),f=!s;++a<u;)p[a]=e[a];for(var h=a;++l<d;)p[h+l]=t[l];for(;++o<c;)(f||a<r)&&(p[h+i[o]]=e[a++]);return p}function Rs(e,t){var i=-1,s=e.length;for(t||(t=n(s));++i<s;)t[i]=e[i];return t}function Ls(e,t,n,s){var a=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var c=t[r],l=s?s(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),a?ai(n,c,l):ti(n,c,l)}return n}function Cs(e,t){return function(n,i){var s=qr(n)?kt:ii,a=t?t():{};return s(n,e,ca(i,2),a)}}function Ns(e){return Zi((function(t,n){var s=-1,a=n.length,r=a>1?n[a-1]:i,o=a>2?n[2]:i;for(r=e.length>3&&"function"==typeof r?(a--,r):i,o&&va(n[0],n[1],o)&&(r=a<3?i:r,a=1),t=Se(t);++s<a;){var c=n[s];c&&e(t,c,s,r)}return t}))}function Os(e,t){return function(n,i){if(null==n)return n;if(!Yr(n))return e(n,i);for(var s=n.length,a=t?s:-1,r=Se(n);(t?a--:++a<s)&&!1!==i(r[a],a,r););return n}}function Us(e){return function(t,n,i){for(var s=-1,a=Se(t),r=i(t),o=r.length;o--;){var c=r[e?o:++s];if(!1===n(a[c],c,a))break}return t}}function Fs(e){return function(t){var n=on(t=_o(t))?hn(t):i,s=n?n[0]:t.charAt(0),a=n?ws(n,1).join(""):t.slice(1);return s[e]()+a}}function js(e){return function(t){return jt(Jo(qo(t).replace(Qe,"")),e,"")}}function Ps(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 Qr(i)?i:n}}function Ds(e){return function(t,n,s){var a=Se(t);if(!Yr(t)){var r=ca(n,3);t=Co(t),n=function(e){return r(a[e],e,a)}}var o=e(t,n,s);return o>-1?a[r?t[o]:o]:i}}function Ms(e){return na((function(t){var n=t.length,a=n,r=qn.prototype.thru;for(e&&t.reverse();a--;){var o=t[a];if("function"!=typeof o)throw new Re(s);if(r&&!c&&"wrapper"==ra(o))var c=new qn([],!0)}for(a=c?a:n;++a<n;){var l=ra(o=t[a]),d="wrapper"==l?aa(o):i;c=d&&wa(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?c[ra(d[0])].apply(c,d[3]):1==o.length&&wa(o)?c[l]():c.thru(o)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&qr(i))return c.plant(i).value();for(var s=0,a=n?t[s].apply(this,e):i;++s<n;)a=t[s].call(this,a);return a}}))}function zs(e,t,s,a,r,o,c,l,u,p){var f=t&d,h=1&t,m=2&t,g=24&t,y=512&t,_=m?i:Ps(e);return function d(){for(var v=arguments.length,b=n(v),w=v;w--;)b[w]=arguments[w];if(g)var I=oa(d),x=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,I);if(a&&(b=ks(b,a,r,g)),o&&(b=Ts(b,o,c,g)),v-=x,g&&v<p){var E=dn(b,I);return Hs(e,t,zs,d.placeholder,s,b,E,l,u,p-v)}var A=h?s:this,S=m?A[e]:e;return v=b.length,l?b=function(e,t){var n=e.length,s=vn(t.length,n),a=Rs(e);for(;s--;){var r=t[s];e[s]=_a(r,n)?a[r]:i}return e}(b,l):y&&v>1&&b.reverse(),f&&u<v&&(b.length=u),this&&this!==ht&&this instanceof d&&(S=_||Ps(S)),S.apply(A,b)}}function Bs(e,t){return function(n,i){return function(e,t,n,i){return bi(e,(function(e,s,a){t(i,n(e),s,a)})),i}(n,e,t(i),{})}}function $s(e,t){return function(n,s){var a;if(n===i&&s===i)return t;if(n!==i&&(a=n),s!==i){if(a===i)return s;"string"==typeof n||"string"==typeof s?(n=ls(n),s=ls(s)):(n=cs(n),s=cs(s)),a=e(n,s)}return a}}function qs(e){return na((function(t){return t=Ut(t,Xt(ca())),Zi((function(n){var i=this;return e(t,(function(e){return St(e,i,n)}))}))}))}function Vs(e,t){var n=(t=t===i?" ":ls(t)).length;if(n<2)return n?Ki(t,e):t;var s=Ki(t,ft(e/fn(t)));return on(t)?ws(hn(s),0,e).join(""):s.slice(0,e)}function Ys(e){return function(t,s,a){return a&&"number"!=typeof a&&va(t,s,a)&&(s=a=i),t=fo(t),s===i?(s=t,t=0):s=fo(s),function(e,t,i,s){for(var a=-1,r=_n(ft((t-e)/(i||1)),0),o=n(r);r--;)o[s?r:++a]=e,e+=i;return o}(t,s,a=a===i?t<s?1:-1:fo(a),e)}}function Gs(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=go(t),n=go(n)),e(t,n)}}function Hs(e,t,n,s,a,r,o,d,u,p){var f=8&t;t|=f?c:l,4&(t&=~(f?l:c))||(t&=-4);var h=[e,t,a,f?r:i,f?o:i,f?i:r,f?i:o,d,u,p],m=n.apply(i,h);return wa(e)&&Ra(m,h),m.placeholder=s,Na(m,e,t)}function Ws(e){var t=Ae[e];return function(e,n){if(e=go(e),(n=null==n?0:vn(ho(n),292))&&vt(e)){var i=(_o(e)+"e").split("e");return+((i=(_o(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Ks=kn&&1/un(new kn([,-0]))[1]==p?function(e){return new kn(e)}:cc;function Zs(e){return function(t){var n=ha(t);return n==E?cn(t):n==R?pn(t):function(e,t){return Ut(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Js(e,t,a,p,f,h,m,g){var y=2&t;if(!y&&"function"!=typeof e)throw new Re(s);var _=p?p.length:0;if(_||(t&=-97,p=f=i),m=m===i?m:_n(ho(m),0),g=g===i?g:ho(g),_-=f?f.length:0,t&l){var v=p,b=f;p=f=i}var w=y?i:aa(e),I=[e,t,a,p,f,v,b,h,m,g];if(w&&function(e,t){var n=e[1],i=t[1],s=n|i,a=s<131,o=i==d&&8==n||i==d&&n==u&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&i&&(e[2]=t[2],s|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?ks(l,c,t[4]):c,e[4]=l?dn(e[3],r):t[4]}(c=t[5])&&(l=e[5],e[5]=l?Ts(l,c,t[6]):c,e[6]=l?dn(e[5],r):t[6]);(c=t[7])&&(e[7]=c);i&d&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=s}(I,w),e=I[0],t=I[1],a=I[2],p=I[3],f=I[4],!(g=I[9]=I[9]===i?y?0:e.length:_n(I[9]-_,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==o?function(e,t,s){var a=Ps(e);return function r(){for(var o=arguments.length,c=n(o),l=o,d=oa(r);l--;)c[l]=arguments[l];var u=o<3&&c[0]!==d&&c[o-1]!==d?[]:dn(c,d);return(o-=u.length)<s?Hs(e,t,zs,r.placeholder,i,c,u,i,i,s-o):St(this&&this!==ht&&this instanceof r?a:e,this,c)}}(e,t,g):t!=c&&33!=t||f.length?zs.apply(i,I):function(e,t,i,s){var a=1&t,r=Ps(e);return function t(){for(var o=-1,c=arguments.length,l=-1,d=s.length,u=n(d+c),p=this&&this!==ht&&this instanceof t?r:e;++l<d;)u[l]=s[l];for(;c--;)u[l++]=arguments[++o];return St(p,a?i:this,u)}}(e,t,a,p);else var x=function(e,t,n){var i=1&t,s=Ps(e);return function t(){return(this&&this!==ht&&this instanceof t?s:e).apply(i?n:this,arguments)}}(e,t,a);return Na((w?es:Ra)(x,I),e,t)}function Xs(e,t,n,s){return e===i||Mr(e,Ne[n])&&!Fe.call(s,n)?t:e}function Qs(e,t,n,s,a,r){return Qr(e)&&Qr(t)&&(r.set(t,e),$i(e,t,i,Qs,r),r.delete(t)),e}function ea(e){return io(e)?i:e}function ta(e,t,n,s,a,r){var o=1&n,c=e.length,l=t.length;if(c!=l&&!(o&&l>c))return!1;var d=r.get(e),u=r.get(t);if(d&&u)return d==t&&u==e;var p=-1,f=!0,h=2&n?new Wn:i;for(r.set(e,t),r.set(t,e);++p<c;){var m=e[p],g=t[p];if(s)var y=o?s(g,m,p,t,e,r):s(m,g,p,e,t,r);if(y!==i){if(y)continue;f=!1;break}if(h){if(!Dt(t,(function(e,t){if(!en(h,t)&&(m===e||a(m,e,n,s,r)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!a(m,g,n,s,r)){f=!1;break}}return r.delete(e),r.delete(t),f}function na(e){return Ca(Sa(e,i,Va),e+"")}function ia(e){return Ei(e,Co,pa)}function sa(e){return Ei(e,No,fa)}var aa=Ln?function(e){return Ln.get(e)}:cc;function ra(e){for(var t=e.name+"",n=Cn[t],i=Fe.call(Cn,t)?n.length:0;i--;){var s=n[i],a=s.func;if(null==a||a==e)return s.name}return t}function oa(e){return(Fe.call(zn,"placeholder")?zn:e).placeholder}function ca(){var e=zn.iteratee||sc;return e=e===sc?Fi:e,arguments.length?e(arguments[0],arguments[1]):e}function la(e,t){var n,i,s=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?s["string"==typeof t?"string":"hash"]:s.map}function da(e){for(var t=Co(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,Ea(s)]}return t}function ua(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ui(n)?n:i}var pa=gt?function(e){return null==e?[]:(e=Se(e),Ct(gt(e),(function(t){return We.call(e,t)})))}:mc,fa=gt?function(e){for(var t=[];e;)Ft(t,pa(e)),e=Ge(e);return t}:mc,ha=Ai;function ma(e,t,n){for(var i=-1,s=(t=vs(t,e)).length,a=!1;++i<s;){var r=ja(t[i]);if(!(a=null!=e&&n(e,r)))break;e=e[r]}return a||++i!=s?a:!!(s=null==e?0:e.length)&&Xr(s)&&_a(r,s)&&(qr(e)||$r(e))}function ga(e){return"function"!=typeof e.constructor||xa(e)?{}:Bn(Ge(e))}function ya(e){return qr(e)||$r(e)||!!(Ze&&e&&e[Ze])}function _a(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function va(e,t,n){if(!Qr(n))return!1;var i=typeof t;return!!("number"==i?Yr(n)&&_a(t,n.length):"string"==i&&t in n)&&Mr(n[t],e)}function ba(e,t){if(qr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!oo(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Se(t))}function wa(e){var t=ra(e),n=zn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var i=aa(n);return!!i&&e===i[0]}(En&&ha(new En(new ArrayBuffer(1)))!=U||An&&ha(new An)!=E||Sn&&ha(Sn.resolve())!=k||kn&&ha(new kn)!=R||Tn&&ha(new Tn)!=N)&&(ha=function(e){var t=Ai(e),n=t==S?e.constructor:i,s=n?Pa(n):"";if(s)switch(s){case Nn:return U;case On:return E;case Un:return k;case Fn:return R;case jn:return N}return t});var Ia=Oe?Zr:gc;function xa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function Ea(e){return e==e&&!Qr(e)}function Aa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Se(n)))}}function Sa(e,t,s){return t=_n(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=_n(i.length-t,0),o=n(r);++a<r;)o[a]=i[t+a];a=-1;for(var c=n(t+1);++a<t;)c[a]=i[a];return c[t]=s(o),St(e,this,c)}}function ka(e,t){return t.length<2?e:xi(e,is(t,0,-1))}function Ta(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ra=Oa(es),La=pt||function(e,t){return ht.setTimeout(e,t)},Ca=Oa(ts);function Na(e,t,n){var i=t+"";return Ca(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Tt(g,(function(n){var i="_."+n[0];t&n[1]&&!Nt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(i),n)))}function Oa(e){var t=0,n=0;return function(){var s=bn(),a=16-(s-n);if(n=s,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ua(e,t){var n=-1,s=e.length,a=s-1;for(t=t===i?s:t;++n<t;){var r=Wi(n,a),o=e[r];e[r]=e[n],e[n]=o}return e.length=t,e}var Fa=function(e){var t=Or(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,s){t.push(i?s.replace(pe,"$1"):n||e)})),t}));function ja(e){if("string"==typeof e||oo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pa(e){if(null!=e){try{return Ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Da(e){if(e instanceof Vn)return e.clone();var t=new qn(e.__wrapped__,e.__chain__);return t.__actions__=Rs(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ma=Zi((function(e,t){return Gr(e)?ui(e,yi(t,1,Gr,!0)):[]})),za=Zi((function(e,t){var n=Ka(t);return Gr(n)&&(n=i),Gr(e)?ui(e,yi(t,1,Gr,!0),ca(n,2)):[]})),Ba=Zi((function(e,t){var n=Ka(t);return Gr(n)&&(n=i),Gr(e)?ui(e,yi(t,1,Gr,!0),i,n):[]}));function $a(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=null==n?0:ho(n);return s<0&&(s=_n(i+s,0)),Bt(e,ca(t,3),s)}function qa(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var a=s-1;return n!==i&&(a=ho(n),a=n<0?_n(s+a,0):vn(a,s-1)),Bt(e,ca(t,3),a,!0)}function Va(e){return(null==e?0:e.length)?yi(e,1):[]}function Ya(e){return e&&e.length?e[0]:i}var Ga=Zi((function(e){var t=Ut(e,ys);return t.length&&t[0]===e[0]?Ri(t):[]})),Ha=Zi((function(e){var t=Ka(e),n=Ut(e,ys);return t===Ka(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ri(n,ca(t,2)):[]})),Wa=Zi((function(e){var t=Ka(e),n=Ut(e,ys);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ri(n,i,t):[]}));function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Za=Zi(Ja);function Ja(e,t){return e&&e.length&&t&&t.length?Gi(e,t):e}var Xa=na((function(e,t){var n=null==e?0:e.length,i=ri(e,t);return Hi(e,Ut(t,(function(e){return _a(e,n)?+e:e})).sort(Ss)),i}));function Qa(e){return null==e?e:xn.call(e)}var er=Zi((function(e){return ds(yi(e,1,Gr,!0))})),tr=Zi((function(e){var t=Ka(e);return Gr(t)&&(t=i),ds(yi(e,1,Gr,!0),ca(t,2))})),nr=Zi((function(e){var t=Ka(e);return t="function"==typeof t?t:i,ds(yi(e,1,Gr,!0),i,t)}));function ir(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Gr(e))return t=_n(e.length,t),!0})),Zt(t,(function(t){return Ut(e,Gt(t))}))}function sr(e,t){if(!e||!e.length)return[];var n=ir(e);return null==t?n:Ut(n,(function(e){return St(t,i,e)}))}var ar=Zi((function(e,t){return Gr(e)?ui(e,t):[]})),rr=Zi((function(e){return ms(Ct(e,Gr))})),or=Zi((function(e){var t=Ka(e);return Gr(t)&&(t=i),ms(Ct(e,Gr),ca(t,2))})),cr=Zi((function(e){var t=Ka(e);return t="function"==typeof t?t:i,ms(Ct(e,Gr),i,t)})),lr=Zi(ir);var dr=Zi((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,sr(e,n)}));function ur(e){var t=zn(e);return t.__chain__=!0,t}function pr(e,t){return t(e)}var fr=na((function(e){var t=e.length,n=t?e[0]:0,s=this.__wrapped__,a=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&s instanceof Vn&&_a(n)?((s=s.slice(n,+n+(t?1:0))).__actions__.push({func:pr,args:[a],thisArg:i}),new qn(s,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)}));var hr=Cs((function(e,t,n){Fe.call(e,n)?++e[n]:ai(e,n,1)}));var mr=Ds($a),gr=Ds(qa);function yr(e,t){return(qr(e)?Tt:pi)(e,ca(t,3))}function _r(e,t){return(qr(e)?Rt:fi)(e,ca(t,3))}var vr=Cs((function(e,t,n){Fe.call(e,n)?e[n].push(t):ai(e,n,[t])}));var br=Zi((function(e,t,i){var s=-1,a="function"==typeof t,r=Yr(e)?n(e.length):[];return pi(e,(function(e){r[++s]=a?St(t,e,i):Li(e,t,i)})),r})),wr=Cs((function(e,t,n){ai(e,n,t)}));function Ir(e,t){return(qr(e)?Ut:Mi)(e,ca(t,3))}var xr=Cs((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Er=Zi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&va(e,t[0],t[1])?t=[]:n>2&&va(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,yi(t,1),[])})),Ar=lt||function(){return ht.Date.now()};function Sr(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Js(e,d,i,i,i,i,t)}function kr(e,t){var n;if("function"!=typeof t)throw new Re(s);return e=ho(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tr=Zi((function(e,t,n){var i=1;if(n.length){var s=dn(n,oa(Tr));i|=c}return Js(e,i,t,n,s)})),Rr=Zi((function(e,t,n){var i=3;if(n.length){var s=dn(n,oa(Rr));i|=c}return Js(t,i,e,n,s)}));function Lr(e,t,n){var a,r,o,c,l,d,u=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Re(s);function m(t){var n=a,s=r;return a=r=i,u=t,c=e.apply(s,n)}function g(e){var n=e-d;return d===i||n>=t||n<0||f&&e-u>=o}function y(){var e=Ar();if(g(e))return _(e);l=La(y,function(e){var n=t-(e-d);return f?vn(n,o-(e-u)):n}(e))}function _(e){return l=i,h&&a?m(e):(a=r=i,c)}function v(){var e=Ar(),n=g(e);if(a=arguments,r=this,d=e,n){if(l===i)return function(e){return u=e,l=La(y,t),p?m(e):c}(d);if(f)return Is(l),l=La(y,t),m(d)}return l===i&&(l=La(y,t)),c}return t=go(t)||0,Qr(n)&&(p=!!n.leading,o=(f="maxWait"in n)?_n(go(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){l!==i&&Is(l),u=0,a=d=r=l=i},v.flush=function(){return l===i?c:_(Ar())},v}var Cr=Zi((function(e,t){return di(e,1,t)})),Nr=Zi((function(e,t,n){return di(e,go(t)||0,n)}));function Or(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(s);var n=function(){var i=arguments,s=t?t.apply(this,i):i[0],a=n.cache;if(a.has(s))return a.get(s);var r=e.apply(this,i);return n.cache=a.set(s,r)||a,r};return n.cache=new(Or.Cache||Hn),n}function Ur(e){if("function"!=typeof e)throw new Re(s);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)}}Or.Cache=Hn;var Fr=bs((function(e,t){var n=(t=1==t.length&&qr(t[0])?Ut(t[0],Xt(ca())):Ut(yi(t,1),Xt(ca()))).length;return Zi((function(i){for(var s=-1,a=vn(i.length,n);++s<a;)i[s]=t[s].call(this,i[s]);return St(e,this,i)}))})),jr=Zi((function(e,t){var n=dn(t,oa(jr));return Js(e,c,i,t,n)})),Pr=Zi((function(e,t){var n=dn(t,oa(Pr));return Js(e,l,i,t,n)})),Dr=na((function(e,t){return Js(e,u,i,i,i,t)}));function Mr(e,t){return e===t||e!=e&&t!=t}var zr=Gs(Si),Br=Gs((function(e,t){return e>=t})),$r=Ci(function(){return arguments}())?Ci:function(e){return eo(e)&&Fe.call(e,"callee")&&!We.call(e,"callee")},qr=n.isArray,Vr=bt?Xt(bt):function(e){return eo(e)&&Ai(e)==O};function Yr(e){return null!=e&&Xr(e.length)&&!Zr(e)}function Gr(e){return eo(e)&&Yr(e)}var Hr=_t||gc,Wr=wt?Xt(wt):function(e){return eo(e)&&Ai(e)==b};function Kr(e){if(!eo(e))return!1;var t=Ai(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!io(e)}function Zr(e){if(!Qr(e))return!1;var t=Ai(e);return t==I||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Jr(e){return"number"==typeof e&&e==ho(e)}function Xr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eo(e){return null!=e&&"object"==typeof e}var to=It?Xt(It):function(e){return eo(e)&&ha(e)==E};function no(e){return"number"==typeof e||eo(e)&&Ai(e)==A}function io(e){if(!eo(e)||Ai(e)!=S)return!1;var t=Ge(e);if(null===t)return!0;var n=Fe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ue.call(n)==Me}var so=xt?Xt(xt):function(e){return eo(e)&&Ai(e)==T};var ao=Et?Xt(Et):function(e){return eo(e)&&ha(e)==R};function ro(e){return"string"==typeof e||!qr(e)&&eo(e)&&Ai(e)==L}function oo(e){return"symbol"==typeof e||eo(e)&&Ai(e)==C}var co=At?Xt(At):function(e){return eo(e)&&Xr(e.length)&&!!ot[Ai(e)]};var lo=Gs(Di),uo=Gs((function(e,t){return e<=t}));function po(e){if(!e)return[];if(Yr(e))return ro(e)?hn(e):Rs(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=ha(e);return(t==E?cn:t==R?un:zo)(e)}function fo(e){return e?(e=go(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ho(e){var t=fo(e),n=t%1;return t==t?n?t-n:t:0}function mo(e){return e?oi(ho(e),0,m):0}function go(e){if("number"==typeof e)return e;if(oo(e))return h;if(Qr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ge.test(e);return n||_e.test(e)?ut(e.slice(2),n?2:8):me.test(e)?h:+e}function yo(e){return Ls(e,No(e))}function _o(e){return null==e?"":ls(e)}var vo=Ns((function(e,t){if(xa(t)||Yr(t))Ls(t,Co(t),e);else for(var n in t)Fe.call(t,n)&&ti(e,n,t[n])})),bo=Ns((function(e,t){Ls(t,No(t),e)})),wo=Ns((function(e,t,n,i){Ls(t,No(t),e,i)})),Io=Ns((function(e,t,n,i){Ls(t,Co(t),e,i)})),xo=na(ri);var Eo=Zi((function(e,t){e=Se(e);var n=-1,s=t.length,a=s>2?t[2]:i;for(a&&va(t[0],t[1],a)&&(s=1);++n<s;)for(var r=t[n],o=No(r),c=-1,l=o.length;++c<l;){var d=o[c],u=e[d];(u===i||Mr(u,Ne[d])&&!Fe.call(e,d))&&(e[d]=r[d])}return e})),Ao=Zi((function(e){return e.push(i,Qs),St(Uo,i,e)}));function So(e,t,n){var s=null==e?i:xi(e,t);return s===i?n:s}function ko(e,t){return null!=e&&ma(e,t,Ti)}var To=Bs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),ec(ic)),Ro=Bs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Fe.call(e,t)?e[t].push(n):e[t]=[n]}),ca),Lo=Zi(Li);function Co(e){return Yr(e)?Zn(e):ji(e)}function No(e){return Yr(e)?Zn(e,!0):Pi(e)}var Oo=Ns((function(e,t,n){$i(e,t,n)})),Uo=Ns((function(e,t,n,i){$i(e,t,n,i)})),Fo=na((function(e,t){var n={};if(null==e)return n;var i=!1;t=Ut(t,(function(t){return t=vs(t,e),i||(i=t.length>1),t})),Ls(e,sa(e),n),i&&(n=ci(n,7,ea));for(var s=t.length;s--;)us(n,t[s]);return n}));var jo=na((function(e,t){return null==e?{}:function(e,t){return Yi(e,t,(function(t,n){return ko(e,n)}))}(e,t)}));function Po(e,t){if(null==e)return{};var n=Ut(sa(e),(function(e){return[e]}));return t=ca(t),Yi(e,n,(function(e,n){return t(e,n[0])}))}var Do=Zs(Co),Mo=Zs(No);function zo(e){return null==e?[]:Qt(e,Co(e))}var Bo=js((function(e,t,n){return t=t.toLowerCase(),e+(n?$o(t):t)}));function $o(e){return Zo(_o(e).toLowerCase())}function qo(e){return(e=_o(e))&&e.replace(be,sn).replace(et,"")}var Vo=js((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Yo=js((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Go=Fs("toLowerCase");var Ho=js((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Wo=js((function(e,t,n){return e+(n?" ":"")+Zo(t)}));var Ko=js((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zo=Fs("toUpperCase");function Jo(e,t,n){return e=_o(e),(t=n?i:t)===i?function(e){return st.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Xo=Zi((function(e,t){try{return St(e,i,t)}catch(e){return Kr(e)?e:new xe(e)}})),Qo=na((function(e,t){return Tt(t,(function(t){t=ja(t),ai(e,t,Tr(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Ms(),nc=Ms(!0);function ic(e){return e}function sc(e){return Fi("function"==typeof e?e:ci(e,1))}var ac=Zi((function(e,t){return function(n){return Li(n,e,t)}})),rc=Zi((function(e,t){return function(n){return Li(e,n,t)}}));function oc(e,t,n){var i=Co(t),s=Ii(t,i);null!=n||Qr(t)&&(s.length||!i.length)||(n=t,t=e,e=this,s=Ii(t,Co(t)));var a=!(Qr(n)&&"chain"in n&&!n.chain),r=Zr(e);return Tt(s,(function(n){var i=t[n];e[n]=i,r&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Rs(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ft([this.value()],arguments))})})),e}function cc(){}var lc=qs(Ut),dc=qs(Lt),uc=qs(Dt);function pc(e){return ba(e)?Gt(ja(e)):function(e){return function(t){return xi(t,e)}}(e)}var fc=Ys(),hc=Ys(!0);function mc(){return[]}function gc(){return!1}var yc=$s((function(e,t){return e+t}),0),_c=Ws("ceil"),vc=$s((function(e,t){return e/t}),1),bc=Ws("floor");var wc,Ic=$s((function(e,t){return e*t}),1),xc=Ws("round"),Ec=$s((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Re(s);return e=ho(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Sr,zn.assign=vo,zn.assignIn=bo,zn.assignInWith=wo,zn.assignWith=Io,zn.at=xo,zn.before=kr,zn.bind=Tr,zn.bindAll=Qo,zn.bindKey=Rr,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qr(e)?e:[e]},zn.chain=ur,zn.chunk=function(e,t,s){t=(s?va(e,t,s):t===i)?1:_n(ho(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var r=0,o=0,c=n(ft(a/t));r<a;)c[o++]=is(e,r,r+=t);return c},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,s=[];++t<n;){var a=e[t];a&&(s[i++]=a)}return s},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),i=arguments[0],s=e;s--;)t[s-1]=arguments[s];return Ft(qr(i)?Rs(i):[i],yi(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ca();return e=t?Ut(e,(function(e){if("function"!=typeof e[1])throw new Re(s);return[n(e[0]),e[1]]})):[],Zi((function(n){for(var i=-1;++i<t;){var s=e[i];if(St(s[0],this,n))return St(s[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Co(e);return function(n){return li(n,e,t)}}(ci(e,1))},zn.constant=ec,zn.countBy=hr,zn.create=function(e,t){var n=Bn(e);return null==t?n:si(n,t)},zn.curry=function e(t,n,s){var a=Js(t,8,i,i,i,i,i,n=s?i:n);return a.placeholder=e.placeholder,a},zn.curryRight=function e(t,n,s){var a=Js(t,o,i,i,i,i,i,n=s?i:n);return a.placeholder=e.placeholder,a},zn.debounce=Lr,zn.defaults=Eo,zn.defaultsDeep=Ao,zn.defer=Cr,zn.delay=Nr,zn.difference=Ma,zn.differenceBy=za,zn.differenceWith=Ba,zn.drop=function(e,t,n){var s=null==e?0:e.length;return s?is(e,(t=n||t===i?1:ho(t))<0?0:t,s):[]},zn.dropRight=function(e,t,n){var s=null==e?0:e.length;return s?is(e,0,(t=s-(t=n||t===i?1:ho(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?fs(e,ca(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?fs(e,ca(t,3),!0):[]},zn.fill=function(e,t,n,s){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&va(e,t,n)&&(n=0,s=a),function(e,t,n,s){var a=e.length;for((n=ho(n))<0&&(n=-n>a?0:a+n),(s=s===i||s>a?a:ho(s))<0&&(s+=a),s=n>s?0:mo(s);n<s;)e[n++]=t;return e}(e,t,n,s)):[]},zn.filter=function(e,t){return(qr(e)?Ct:gi)(e,ca(t,3))},zn.flatMap=function(e,t){return yi(Ir(e,t),1)},zn.flatMapDeep=function(e,t){return yi(Ir(e,t),p)},zn.flatMapDepth=function(e,t,n){return n=n===i?1:ho(n),yi(Ir(e,t),n)},zn.flatten=Va,zn.flattenDeep=function(e){return(null==e?0:e.length)?yi(e,p):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yi(e,t=t===i?1:ho(t)):[]},zn.flip=function(e){return Js(e,512)},zn.flow=tc,zn.flowRight=nc,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var s=e[t];i[s[0]]=s[1]}return i},zn.functions=function(e){return null==e?[]:Ii(e,Co(e))},zn.functionsIn=function(e){return null==e?[]:Ii(e,No(e))},zn.groupBy=vr,zn.initial=function(e){return(null==e?0:e.length)?is(e,0,-1):[]},zn.intersection=Ga,zn.intersectionBy=Ha,zn.intersectionWith=Wa,zn.invert=To,zn.invertBy=Ro,zn.invokeMap=br,zn.iteratee=sc,zn.keyBy=wr,zn.keys=Co,zn.keysIn=No,zn.map=Ir,zn.mapKeys=function(e,t){var n={};return t=ca(t,3),bi(e,(function(e,i,s){ai(n,t(e,i,s),e)})),n},zn.mapValues=function(e,t){var n={};return t=ca(t,3),bi(e,(function(e,i,s){ai(n,i,t(e,i,s))})),n},zn.matches=function(e){return zi(ci(e,1))},zn.matchesProperty=function(e,t){return Bi(e,ci(t,1))},zn.memoize=Or,zn.merge=Oo,zn.mergeWith=Uo,zn.method=ac,zn.methodOf=rc,zn.mixin=oc,zn.negate=Ur,zn.nthArg=function(e){return e=ho(e),Zi((function(t){return qi(t,e)}))},zn.omit=Fo,zn.omitBy=function(e,t){return Po(e,Ur(ca(t)))},zn.once=function(e){return kr(2,e)},zn.orderBy=function(e,t,n,s){return null==e?[]:(qr(t)||(t=null==t?[]:[t]),qr(n=s?i:n)||(n=null==n?[]:[n]),Vi(e,t,n))},zn.over=lc,zn.overArgs=Fr,zn.overEvery=dc,zn.overSome=uc,zn.partial=jr,zn.partialRight=Pr,zn.partition=xr,zn.pick=jo,zn.pickBy=Po,zn.property=pc,zn.propertyOf=function(e){return function(t){return null==e?i:xi(e,t)}},zn.pull=Za,zn.pullAll=Ja,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,ca(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,i,n):e},zn.pullAt=Xa,zn.range=fc,zn.rangeRight=hc,zn.rearg=Dr,zn.reject=function(e,t){return(qr(e)?Ct:gi)(e,Ur(ca(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,s=[],a=e.length;for(t=ca(t,3);++i<a;){var r=e[i];t(r,i,e)&&(n.push(r),s.push(i))}return Hi(e,s),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Re(s);return Zi(e,t=t===i?t:ho(t))},zn.reverse=Qa,zn.sampleSize=function(e,t,n){return t=(n?va(e,t,n):t===i)?1:ho(t),(qr(e)?Xn:Xi)(e,t)},zn.set=function(e,t,n){return null==e?e:Qi(e,t,n)},zn.setWith=function(e,t,n,s){return s="function"==typeof s?s:i,null==e?e:Qi(e,t,n,s)},zn.shuffle=function(e){return(qr(e)?Qn:ns)(e)},zn.slice=function(e,t,n){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&va(e,t,n)?(t=0,n=s):(t=null==t?0:ho(t),n=n===i?s:ho(n)),is(e,t,n)):[]},zn.sortBy=Er,zn.sortedUniq=function(e){return e&&e.length?os(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?os(e,ca(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&va(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=_o(e))&&("string"==typeof t||null!=t&&!so(t))&&!(t=ls(t))&&on(e)?ws(hn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Re(s);return t=null==t?0:_n(ho(t),0),Zi((function(n){var i=n[t],s=ws(n,0,t);return i&&Ft(s,i),St(e,this,s)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?is(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?is(e,0,(t=n||t===i?1:ho(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var s=null==e?0:e.length;return s?is(e,(t=s-(t=n||t===i?1:ho(t)))<0?0:t,s):[]},zn.takeRightWhile=function(e,t){return e&&e.length?fs(e,ca(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?fs(e,ca(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new Re(s);return Qr(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Lr(e,t,{leading:i,maxWait:t,trailing:a})},zn.thru=pr,zn.toArray=po,zn.toPairs=Do,zn.toPairsIn=Mo,zn.toPath=function(e){return qr(e)?Ut(e,ja):oo(e)?[e]:Rs(Fa(_o(e)))},zn.toPlainObject=yo,zn.transform=function(e,t,n){var i=qr(e),s=i||Hr(e)||co(e);if(t=ca(t,4),null==n){var a=e&&e.constructor;n=s?i?new a:[]:Qr(e)&&Zr(a)?Bn(Ge(e)):{}}return(s?Tt:bi)(e,(function(e,i,s){return t(n,e,i,s)})),n},zn.unary=function(e){return Sr(e,1)},zn.union=er,zn.unionBy=tr,zn.unionWith=nr,zn.uniq=function(e){return e&&e.length?ds(e):[]},zn.uniqBy=function(e,t){return e&&e.length?ds(e,ca(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ds(e,i,t):[]},zn.unset=function(e,t){return null==e||us(e,t)},zn.unzip=ir,zn.unzipWith=sr,zn.update=function(e,t,n){return null==e?e:ps(e,t,_s(n))},zn.updateWith=function(e,t,n,s){return s="function"==typeof s?s:i,null==e?e:ps(e,t,_s(n),s)},zn.values=zo,zn.valuesIn=function(e){return null==e?[]:Qt(e,No(e))},zn.without=ar,zn.words=Jo,zn.wrap=function(e,t){return jr(_s(t),e)},zn.xor=rr,zn.xorBy=or,zn.xorWith=cr,zn.zip=lr,zn.zipObject=function(e,t){return gs(e||[],t||[],ti)},zn.zipObjectDeep=function(e,t){return gs(e||[],t||[],Qi)},zn.zipWith=dr,zn.entries=Do,zn.entriesIn=Mo,zn.extend=bo,zn.extendWith=wo,oc(zn,zn),zn.add=yc,zn.attempt=Xo,zn.camelCase=Bo,zn.capitalize=$o,zn.ceil=_c,zn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=go(n))==n?n:0),t!==i&&(t=(t=go(t))==t?t:0),oi(go(e),t,n)},zn.clone=function(e){return ci(e,4)},zn.cloneDeep=function(e){return ci(e,5)},zn.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:i)},zn.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:i)},zn.conformsTo=function(e,t){return null==t||li(e,t,Co(t))},zn.deburr=qo,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=vc,zn.endsWith=function(e,t,n){e=_o(e),t=ls(t);var s=e.length,a=n=n===i?s:oi(ho(n),0,s);return(n-=t.length)>=0&&e.slice(n,a)==t},zn.eq=Mr,zn.escape=function(e){return(e=_o(e))&&Z.test(e)?e.replace(W,an):e},zn.escapeRegExp=function(e){return(e=_o(e))&&se.test(e)?e.replace(ie,"\\$&"):e},zn.every=function(e,t,n){var s=qr(e)?Lt:hi;return n&&va(e,t,n)&&(t=i),s(e,ca(t,3))},zn.find=mr,zn.findIndex=$a,zn.findKey=function(e,t){return zt(e,ca(t,3),bi)},zn.findLast=gr,zn.findLastIndex=qa,zn.findLastKey=function(e,t){return zt(e,ca(t,3),wi)},zn.floor=bc,zn.forEach=yr,zn.forEachRight=_r,zn.forIn=function(e,t){return null==e?e:_i(e,ca(t,3),No)},zn.forInRight=function(e,t){return null==e?e:vi(e,ca(t,3),No)},zn.forOwn=function(e,t){return e&&bi(e,ca(t,3))},zn.forOwnRight=function(e,t){return e&&wi(e,ca(t,3))},zn.get=So,zn.gt=zr,zn.gte=Br,zn.has=function(e,t){return null!=e&&ma(e,t,ki)},zn.hasIn=ko,zn.head=Ya,zn.identity=ic,zn.includes=function(e,t,n,i){e=Yr(e)?e:zo(e),n=n&&!i?ho(n):0;var s=e.length;return n<0&&(n=_n(s+n,0)),ro(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&$t(e,t,n)>-1},zn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=null==n?0:ho(n);return s<0&&(s=_n(i+s,0)),$t(e,t,s)},zn.inRange=function(e,t,n){return t=fo(t),n===i?(n=t,t=0):n=fo(n),function(e,t,n){return e>=vn(t,n)&&e<_n(t,n)}(e=go(e),t,n)},zn.invoke=Lo,zn.isArguments=$r,zn.isArray=qr,zn.isArrayBuffer=Vr,zn.isArrayLike=Yr,zn.isArrayLikeObject=Gr,zn.isBoolean=function(e){return!0===e||!1===e||eo(e)&&Ai(e)==v},zn.isBuffer=Hr,zn.isDate=Wr,zn.isElement=function(e){return eo(e)&&1===e.nodeType&&!io(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Yr(e)&&(qr(e)||"string"==typeof e||"function"==typeof e.splice||Hr(e)||co(e)||$r(e)))return!e.length;var t=ha(e);if(t==E||t==R)return!e.size;if(xa(e))return!ji(e).length;for(var n in e)if(Fe.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Ni(e,t)},zn.isEqualWith=function(e,t,n){var s=(n="function"==typeof n?n:i)?n(e,t):i;return s===i?Ni(e,t,i,n):!!s},zn.isError=Kr,zn.isFinite=function(e){return"number"==typeof e&&vt(e)},zn.isFunction=Zr,zn.isInteger=Jr,zn.isLength=Xr,zn.isMap=to,zn.isMatch=function(e,t){return e===t||Oi(e,t,da(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Oi(e,t,da(t),n)},zn.isNaN=function(e){return no(e)&&e!=+e},zn.isNative=function(e){if(Ia(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ui(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=no,zn.isObject=Qr,zn.isObjectLike=eo,zn.isPlainObject=io,zn.isRegExp=so,zn.isSafeInteger=function(e){return Jr(e)&&e>=-9007199254740991&&e<=f},zn.isSet=ao,zn.isString=ro,zn.isSymbol=oo,zn.isTypedArray=co,zn.isUndefined=function(e){return e===i},zn.isWeakMap=function(e){return eo(e)&&ha(e)==N},zn.isWeakSet=function(e){return eo(e)&&"[object WeakSet]"==Ai(e)},zn.join=function(e,t){return null==e?"":Mt.call(e,t)},zn.kebabCase=Vo,zn.last=Ka,zn.lastIndexOf=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var a=s;return n!==i&&(a=(a=ho(n))<0?_n(s+a,0):vn(a,s-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,a):Bt(e,Vt,a,!0)},zn.lowerCase=Yo,zn.lowerFirst=Go,zn.lt=lo,zn.lte=uo,zn.max=function(e){return e&&e.length?mi(e,ic,Si):i},zn.maxBy=function(e,t){return e&&e.length?mi(e,ca(t,2),Si):i},zn.mean=function(e){return Yt(e,ic)},zn.meanBy=function(e,t){return Yt(e,ca(t,2))},zn.min=function(e){return e&&e.length?mi(e,ic,Di):i},zn.minBy=function(e,t){return e&&e.length?mi(e,ca(t,2),Di):i},zn.stubArray=mc,zn.stubFalse=gc,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Ic,zn.nth=function(e,t){return e&&e.length?qi(e,ho(t)):i},zn.noConflict=function(){return ht._===this&&(ht._=ze),this},zn.noop=cc,zn.now=Ar,zn.pad=function(e,t,n){e=_o(e);var i=(t=ho(t))?fn(e):0;if(!t||i>=t)return e;var s=(t-i)/2;return Vs(mt(s),n)+e+Vs(ft(s),n)},zn.padEnd=function(e,t,n){e=_o(e);var i=(t=ho(t))?fn(e):0;return t&&i<t?e+Vs(t-i,n):e},zn.padStart=function(e,t,n){e=_o(e);var i=(t=ho(t))?fn(e):0;return t&&i<t?Vs(t-i,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(_o(e).replace(ae,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&va(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fo(e),t===i?(t=e,e=0):t=fo(t)),e>t){var s=e;e=t,t=s}if(n||e%1||t%1){var a=In();return vn(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Wi(e,t)},zn.reduce=function(e,t,n){var i=qr(e)?jt:Wt,s=arguments.length<3;return i(e,ca(t,4),n,s,pi)},zn.reduceRight=function(e,t,n){var i=qr(e)?Pt:Wt,s=arguments.length<3;return i(e,ca(t,4),n,s,fi)},zn.repeat=function(e,t,n){return t=(n?va(e,t,n):t===i)?1:ho(t),Ki(_o(e),t)},zn.replace=function(){var e=arguments,t=_o(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var s=-1,a=(t=vs(t,e)).length;for(a||(a=1,e=i);++s<a;){var r=null==e?i:e[ja(t[s])];r===i&&(s=a,r=n),e=Zr(r)?r.call(e):r}return e},zn.round=xc,zn.runInContext=e,zn.sample=function(e){return(qr(e)?Jn:Ji)(e)},zn.size=function(e){if(null==e)return 0;if(Yr(e))return ro(e)?fn(e):e.length;var t=ha(e);return t==E||t==R?e.size:ji(e).length},zn.snakeCase=Ho,zn.some=function(e,t,n){var s=qr(e)?Dt:ss;return n&&va(e,t,n)&&(t=i),s(e,ca(t,3))},zn.sortedIndex=function(e,t){return as(e,t)},zn.sortedIndexBy=function(e,t,n){return rs(e,t,ca(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=as(e,t);if(i<n&&Mr(e[i],t))return i}return-1},zn.sortedLastIndex=function(e,t){return as(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return rs(e,t,ca(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=as(e,t,!0)-1;if(Mr(e[n],t))return n}return-1},zn.startCase=Wo,zn.startsWith=function(e,t,n){return e=_o(e),n=null==n?0:oi(ho(n),0,e.length),t=ls(t),e.slice(n,n+t.length)==t},zn.subtract=Ec,zn.sum=function(e){return e&&e.length?Kt(e,ic):0},zn.sumBy=function(e,t){return e&&e.length?Kt(e,ca(t,2)):0},zn.template=function(e,t,n){var s=zn.templateSettings;n&&va(e,t,n)&&(t=i),e=_o(e),t=wo({},t,s,Xs);var a,r,o=wo({},t.imports,s.imports,Xs),c=Co(o),l=Qt(o,c),d=0,u=t.interpolate||we,p="__p += '",f=ke((t.escape||we).source+"|"+u.source+"|"+(u===Q?fe:we).source+"|"+(t.evaluate||we).source+"|$","g"),h="//# sourceURL="+(Fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,(function(t,n,i,s,o,c){return i||(i=s),p+=e.slice(d,c).replace(Ie,rn),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),o&&(r=!0,p+="';\n"+o+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),d=c+t.length,t})),p+="';\n";var m=Fe.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(r?p.replace(V,""):p).replace(Y,"$1").replace(G,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xo((function(){return Ee(c,h+"return "+p).apply(i,l)}));if(g.source=p,Kr(g))throw g;return g},zn.times=function(e,t){if((e=ho(e))<1||e>f)return[];var n=m,i=vn(e,m);t=ca(t),e-=m;for(var s=Zt(i,t);++n<e;)t(n);return s},zn.toFinite=fo,zn.toInteger=ho,zn.toLength=mo,zn.toLower=function(e){return _o(e).toLowerCase()},zn.toNumber=go,zn.toSafeInteger=function(e){return e?oi(ho(e),-9007199254740991,f):0===e?e:0},zn.toString=_o,zn.toUpper=function(e){return _o(e).toUpperCase()},zn.trim=function(e,t,n){if((e=_o(e))&&(n||t===i))return Jt(e);if(!e||!(t=ls(t)))return e;var s=hn(e),a=hn(t);return ws(s,tn(s,a),nn(s,a)+1).join("")},zn.trimEnd=function(e,t,n){if((e=_o(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=ls(t)))return e;var s=hn(e);return ws(s,0,nn(s,hn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=_o(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=ls(t)))return e;var s=hn(e);return ws(s,tn(s,hn(t))).join("")},zn.truncate=function(e,t){var n=30,s="...";if(Qr(t)){var a="separator"in t?t.separator:a;n="length"in t?ho(t.length):n,s="omission"in t?ls(t.omission):s}var r=(e=_o(e)).length;if(on(e)){var o=hn(e);r=o.length}if(n>=r)return e;var c=n-fn(s);if(c<1)return s;var l=o?ws(o,0,c).join(""):e.slice(0,c);if(a===i)return l+s;if(o&&(c+=l.length-c),so(a)){if(e.slice(c).search(a)){var d,u=l;for(a.global||(a=ke(a.source,_o(he.exec(a))+"g")),a.lastIndex=0;d=a.exec(u);)var p=d.index;l=l.slice(0,p===i?c:p)}}else if(e.indexOf(ls(a),c)!=c){var f=l.lastIndexOf(a);f>-1&&(l=l.slice(0,f))}return l+s},zn.unescape=function(e){return(e=_o(e))&&K.test(e)?e.replace(H,gn):e},zn.uniqueId=function(e){var t=++je;return _o(e)+t},zn.upperCase=Ko,zn.upperFirst=Zo,zn.each=yr,zn.eachRight=_r,zn.first=Ya,oc(zn,(wc={},bi(zn,(function(e,t){Fe.call(zn.prototype,t)||(wc[t]=e)})),wc),{chain:!1}),zn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Tt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:_n(ho(n),0);var s=this.__filtered__&&!t?new Vn(this):this.clone();return s.__filtered__?s.__takeCount__=vn(n,s.__takeCount__):s.__views__.push({size:vn(n,m),type:e+(s.__dir__<0?"Right":"")}),s},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ic)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zi((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Li(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ur(ca(e)))},Vn.prototype.slice=function(e,t){e=ho(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ho(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},bi(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),a=zn[s?"take"+("last"==t?"Right":""):t],r=s||/^find/.test(t);a&&(zn.prototype[t]=function(){var t=this.__wrapped__,o=s?[1]:arguments,c=t instanceof Vn,l=o[0],d=c||qr(t),u=function(e){var t=a.apply(zn,Ft([e],o));return s&&p?t[0]:t};d&&n&&"function"==typeof l&&1!=l.length&&(c=d=!1);var p=this.__chain__,f=!!this.__actions__.length,h=r&&!p,m=c&&!f;if(!r&&d){t=m?t:new Vn(this);var g=e.apply(t,o);return g.__actions__.push({func:pr,args:[u],thisArg:i}),new qn(g,p)}return h&&m?e.apply(this,o):(g=this.thru(u),h?s?g.value()[0]:g.value():g)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var s=this.value();return t.apply(qr(s)?s:[],e)}return this[n]((function(n){return t.apply(qr(n)?n:[],e)}))}})),bi(Vn.prototype,(function(e,t){var n=zn[t];if(n){var i=n.name+"";Fe.call(Cn,i)||(Cn[i]=[]),Cn[i].push({name:t,func:n})}})),Cn[zs(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Rs(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Rs(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Rs(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qr(e),i=t<0,s=n?e.length:0,a=function(e,t,n){var i=-1,s=n.length;for(;++i<s;){var a=n[i],r=a.size;switch(a.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=vn(t,e+r);break;case"takeRight":e=_n(e,t-r)}}return{start:e,end:t}}(0,s,this.__views__),r=a.start,o=a.end,c=o-r,l=i?o:r-1,d=this.__iteratees__,u=d.length,p=0,f=vn(c,this.__takeCount__);if(!n||!i&&s==c&&f==c)return hs(e,this.__actions__);var h=[];e:for(;c--&&p<f;){for(var m=-1,g=e[l+=t];++m<u;){var y=d[m],_=y.iteratee,v=y.type,b=_(g);if(2==v)g=b;else if(!b){if(1==v)continue e;break e}}h[p++]=g}return h},zn.prototype.at=fr,zn.prototype.chain=function(){return ur(this)},zn.prototype.commit=function(){return new qn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===i&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof $n;){var s=Da(n);s.__index__=0,s.__values__=i,t?a.__wrapped__=s:t=s;var a=s;n=n.__wrapped__}return a.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:pr,args:[Qa],thisArg:i}),new qn(t,this.__chain__)}return this.thru(Qa)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return hs(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Je&&(zn.prototype[Je]=function(){return this}),zn}();gt?((gt.exports=yn)._=yn,mt._=yn):ht._=yn}).call(n)}(Ju,Ju.exports);var Xu=Ju.exports;const Qu={type:Mo,stimulus:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?Jc.audio[Xu.camelCase("introductionNs")]:Jc.audio[Xu.camelCase("introduction")],prompt:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${xc.t("introduction.intro.text1")} </h3>\n <p> ${xc.t("introduction.intro.text2")} </p> \n <p> ${xc.t("introduction.intro.text3")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})} </div>`}\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${xc.t("introduction.intro.text4")} </h3>\n <p> ${xc.t("introduction.intro.text5")} </p> \n <p> ${xc.t("introduction.intro.text6")} </p> \n <p> ${xc.t("introduction.intro.text3")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.continue")}`})} </button>`:"",on_start:()=>{document.body.style.cursor="none"}},ep={timeline:[{type:Mo,stimulus:()=>Jc.audio.postPracticeInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${xc.t("practice.postPracticeIntro.text1")}</h3>\n <p>${xc.t("practice.postPracticeIntro.text2")}</p>\n <p>${xc.t("practice.postPracticeIntro.text3")}</p>\n <p>${xc.t("practice.postPracticeIntro.text4")}</p>\n <p>${xc.t("practice.postPracticeIntro.text5")}</p>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.continue")}`})} </button>`:""},{type:Mo,stimulus:()=>Jc.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>Remember!</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${xc.t(Kc?"practice.postPracticeReminder.text1Mobile":"practice.postPracticeReminder.text1")} </p>\n <img width="70%" src="${Jc.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${xc.t(Kc?"practice.postPracticeReminder.text2Mobile":"practice.postPracticeReminder.text2")} </p>\n <img width="70%" src="${Jc.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b> ${xc.t("practice.postPracticeReminder.text3")} </b></p>\n <p><b> ${xc.t("practice.postPracticeReminder.text4")} </b></p>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.begin")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.begin")}`})} </button>`:"",on_finish:()=>{a.session.set("indexTracking",0)}}]},tp={name:"html-multi-response",parameters:{stimulus:{type:Tr.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:Tr.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:Tr.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:Tr.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:Tr.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:Tr.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:Tr.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:Tr.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:Tr.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:Tr.BOOL,pretty_name:"Response ends trial",default:!0}}};class np{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 s=0;s<t.button_choices.length;s++)i.push(t.button_html);n+='<div id="jspsych-html-multi-response-btngroup">';for(s=0;s<t.button_choices.length;s++){var a=i[s].replace(/%choice%/g,t.button_choices[s]);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-'+s+'" data-choice="'+s+'">'+a+"</div>"}n+="</div>",null!==t.prompt&&(n+=t.prompt),e.innerHTML=n;if("NO_KEYS"!=t.keyboard_choices)var r=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 o=performance.now();for(s=0;s<t.button_choices.length;s++)e.querySelector("#jspsych-html-multi-response-button-"+s).addEventListener("click",(e=>{d(e.currentTarget.getAttribute("data-choice"))}));var c={rt:null,button:null,key:null,source:null};const l=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==r&&this.jsPsych.pluginAPI.cancelKeyboardResponse(r);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 d(n){var i=performance.now(),s=Math.round(i-o);c.button=parseInt(n),c.rt=s,c.source="button",e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded";for(var a=document.querySelectorAll(".jspsych-html-multi-response-button button"),r=0;r<a.length;r++)a[r].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"},s=Math.random()<.5?n:i,a=this.jsPsych.pluginAPI.mergeSimulationData(s,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,a),a}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),s=this.jsPsych.getDisplayElement();this.trial(s,e),n(),null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(s.querySelector(`div[data-choice="${i.button_response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))}}np.info=tp;const ip={type:Mo,stimulus:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?Jc.audio[Xu.camelCase("halfwayNs")]:a.session.get("config").story?Jc.audio[Xu.camelCase(`${a.session("character")}Halfway`)]:"",prompt:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${xc.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${xc.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})} </div>`}\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${Jc.images[Xu.camelCase(`${a.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle">\n <p> ${xc.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${xc.t("gameBreak.halfwayScreen.text4")}</p>\n </div>\n </div>\n </div>\n ${Kc?"":`<div class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.continue")}`})} </button>`,on_finish:()=>{a.session.set("indexTracking",0)}},sp={timeline:[{type:Mo,stimulus:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?Jc.audio[Xu.camelCase("endNs")]:a.session.get("config").story?Jc.audio[Xu.camelCase(`${a.session("character")}End`)]:"",prompt:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${xc.t("gameBreak.endScreen.text1")} </h3>\n <p> ${xc.t("gameBreak.endScreen.text2")} </p> \n </div>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.save")}`})}</div>`}\n </div>`:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${Jc.images.classroomBackground}" alt= "classroom" style="width:100%;"> \n </div>\n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3> ${xc.t("gameBreak.endScreen.text3")} </h3>\n <p> ${a.session("character_name")} ${xc.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${Jc.images[Xu.camelCase(`${a.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.save")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.save")}`})} </button>`,data:{save_trial:!1}},{timeline:[{type:np,stimulus:()=>`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${xc.t("gameBreak.debrief.text1")}</h3>\n <p>${xc.t("gameBreak.debrief.text2")}</p>\n </div>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.close")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.close")}`})} </button>`}],conditional_function:()=>"demo"===a.session.get("config").userMode},{type:qu,fullscreen_mode:!1,delay_after:0}]},ap={1:{character:"dog",characterName:"Amy",characterActivity:"go to track practice"},2:{character:"cat",characterName:"Carson",characterActivity:"go to debate club"},3:{character:"bird",characterName:"Jaiden",characterActivity:"hang out with my friends"},4:{character:"deer",characterName:"Dylan",characterActivity:"volunteer at the soup kitchen"}},rp=[1,2,3,4],op=["dog","cat","bird","deer"],cp={timeline:[{type:Mo,stimulus:()=>Jc.audio.studentSelect,prompt:()=>Kc?`\n <div>\n <img id="mobile-classroom-bg" src=${Jc.images.classroomBackground} alt="background"/>\n <h3>${xc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${xc.t(Kc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p>\n </div>`:` \n <div class="jspsych-content-modified">\n <div class="class-container">\n <img id="classroom-bg" src=${Jc.images.classroomBackground} alt="background"> \n </div> \n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3>${xc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${xc.t(Kc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n ${Kc?"":`<div class="number">${rp.map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}</div>`}\n <div class="student ${Kc?"mobile-student-select-characters":""}">\n ${op.map((e=>`<img src=${Jc.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${xc.t("navigation.studentSelect")} \n </div>\n </div>\n `,keyboard_choices:()=>Kc?"NO_KEYS":["1","2","3","4"],button_choices:()=>Kc?["1","2","3","4"]:[],button_html:()=>'<button class="grade-btn">%choice%</button>',prompt_above_buttons:()=>Kc,data:{save_trial:!1},on_load:()=>{if(Kc){document.getElementById("jspsych-audio-multi-response-btngroup").classList.add("mobile-audio-btn-container");const e=document.getElementById("jspsych-content");if(e){const t=document.createElement("div"),n=document.createTextNode(xc.t("characterSelect.studentSelect.paragraph3MobileBefore")),i=document.createTextNode(xc.t("characterSelect.studentSelect.paragraph3MobileAfter")),s=document.createElement("span");s.classList.add("yellow"),s.textContent=xc.t("characterSelect.studentSelect.paragraph3MobileSpan"),t.appendChild(n),t.appendChild(s),t.appendChild(i),t.classList.add("button");const a=document.createElement("div"),r=op.map((e=>{const t=document.createElement("img");return t.setAttribute("src",Jc.images[e]),t.setAttribute("alt",e),t.classList.add("mobile-character-select"),t}));for(const e of r)a.appendChild(e);e.appendChild(a),e.appendChild(t)}}},on_finish:e=>{a.session.set("character",ap[Kc?e.button_response+1:e.keyboard_response].character),a.session.set("character_name",ap[Kc?e.button_response+1:e.keyboard_response].characterName),a.session.set("character_activity",ap[Kc?e.button_response+1:e.keyboard_response].characterActivity)}},{type:Mo,stimulus:()=>Jc.audio[Xu.camelCase(`${a.session("character")}Intro`)],prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${Jc.images[Xu.camelCase(`${a.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${xc.t("characterSelect.studentIntro.paragraph1")} ${a.session("character_name")}. </p>\n <p> ${xc.t("characterSelect.studentIntro.paragraph2")} ${a.session("character_activity")}. </p>\n <p> ${xc.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.continue")}`})} </button>`}],conditional_function:()=>!(!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6)},lp=(e,t,n)=>({timeline:[{type:np,stimulus:()=>{if(0===a.session("indexTracking")){const t=setTimeout((()=>a.session.set("timeOut",!0)),n);a.session.set("timerId",t),"tosrec"!==e?a.session.set("currentCorpus",zu[e]):a.session.set("currentCorpus",zu[a.session("tosrecCorpusId")])}return`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${a.session("currentCorpus")[a.session("indexTracking")].sentence}</p>\n </div>`},prompt:()=>Kc?"":`\n <div> \n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Kc?[xc.t("terms.false")[0].toUpperCase(),xc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${xc.t("terms.false")}/><span>${xc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${xc.t("terms.true")}/><span>${xc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Kc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"test_response"},on_finish:n=>{n.keyboard_response?"arrowleft"===n.keyboard_response?a.session.set("keyResponse","left"):a.session.set("keyResponse","right"):0===n.button_response?a.session.set("buttonResponse","left"):a.session.set("buttonResponse","right"),n.keyboard_response?n.correct=ol.pluginAPI.compareKeys(a.session("keyResponse"),a.session("currentCorpus")[a.session("indexTracking")].direction):n.correct=0===n.button_response&&"left"===a.session("currentCorpus")[a.session("indexTracking")].direction||1===n.button_response&&"right"===a.session("currentCorpus")[a.session("indexTracking")].direction,n.correct?a.session.set("dataCorrect",1):a.session.set("dataCorrect",0),fp.addResponseData(n.rt,n.keyboard_response?n.keyboard_response:n.button_response,a.session("dataCorrect")),ol.data.addDataToLastTrial({save_trial:!a.session("timeOut"),pid:a.session.get("config").pid,subtask:e,blockId:t,corpusId:"tosrec"!==e?e:a.session("tosrecCorpusId"),trialNumBlock:a.session("indexTracking")+1,itemId:a.session("currentCorpus")[a.session("indexTracking")].itemId,item:a.session("currentCorpus")[a.session("indexTracking")].sentence,truefalse:a.session("currentCorpus")[a.session("indexTracking")].answer,correct:a.session("dataCorrect"),story:a.session.get("config").story})}},{type:Mo,stimulus:()=>Jc.audio.neutralSoundSub,prompt:()=>Kc?'<div class=stimulus_div>\n <p id="mobile-placeholder-stimulus">Invisible Place holder text</p>\n </div>':`\n <div>\n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys">\n </div>`,keyboard_choices:"NO_KEYS",button_choices:()=>Kc?[xc.t("terms.false")[0].toUpperCase(),xc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${xc.t("terms.false")}/><span>${xc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${xc.t("terms.true")}/><span>${xc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],prompt_above_buttons:!0,on_load:()=>{if(Kc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content");const e=document.getElementById("jspsych-audio-multi-response-btngroup");e.style.display="flex",e.style.gap="9rem"}},trial_duration:200,response_allowed_while_playing:!1,trial_ends_after_audio:!0}],loop_function:function(){return a.session("indexTracking")===a.session("currentCorpus").length-1||a.session("timeOut")?(a.session.set("indexTracking",0),a.session.set("timeOut",!1),clearTimeout(a.session.get("timerId")),!1):(a.session.transact("indexTracking",(e=>e+1)),!0)}}),dp={type:Mo,stimulus:()=>Jc.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${xc.t("practice.intro.text1")}</h2>\n <p>${xc.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="instruction-boxes">\n <p> \n ${xc.t(Kc?"practice.intro.text3Mobile":"practice.intro.text3")} \n </p>\n <img src="${Jc.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="instruction-boxes">\n <p> \n ${xc.t(Kc?"practice.intro.text4Mobile":"practice.intro.text4")} \n </p>\n <img src="${Jc.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${xc.t("practice.intro.text5")}</b> </p> \n <div class="button">${xc.t("practice.intro.text6")}</div>\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button">${xc.t("practice.intro.text6Mobile")}</button>`,on_finish:()=>{a.session.set("indexTracking",-1)}},up={type:np,stimulus:()=>(a.session.transact("indexTracking",(e=>e+1)),`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${a.session("practiceCorpus")[a.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>Kc?"":`\n <div> \n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Kc?[xc.t("terms.false")[0].toUpperCase(),xc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${xc.t("terms.false")}/><span>${xc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${xc.t("terms.true")}/><span>${xc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Kc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"practice_response",corpusId:"practice",save_trial:!0},on_finish:e=>{e.keyboard_response?(e.correct=ol.pluginAPI.compareKeys(e.keyboard_response,a.session("practiceCorpus")[a.session("indexTracking")].correct_response),a.session.set("arrowResponse",e.keyboard_response)):e.correct="arrowleft"===a.session("practiceCorpus")[a.session("indexTracking")].correct_response&&0===e.button_response||"arrowright"===a.session("practiceCorpus")[a.session("indexTracking")].correct_response&&1===e.button_response,e.correct?(a.session.set("dataCorrect",1),a.session.set("feedbackResponse","Correct!")):(a.session.set("dataCorrect",0),a.session.set("feedbackResponse","That's not quite right."));const t="arrowleft"===e.keyboard_response||0===e.button_response;a.session.set("responseLR",t?"left":"right"),a.session.set("answerRP",t?"false":"true"),a.session.set("responseColor",t?"orange":"blue");const n="arrowleft"===a.session("practiceCorpus")[a.session("indexTracking")].correct_response;a.session.set("correctLR",n?"left":"right"),a.session.set("correctRP",n?"false":"true"),a.session.set("answerColor",n?"orange":"blue"),ol.data.addDataToLastTrial({pid:a.session.get("config").pid,subtask:"practice",corpusId:"practice",correct:a.session("dataCorrect"),trialNumBlock:a.session("indexTracking"),item:a.session("practiceCorpus")[a.session("indexTracking")].sentence,truefalse:a.session("practiceCorpus")[a.session("indexTracking")].answer,story:a.session.get("config").story})}};"false"===a.session("correctRP")?Jc.images.falseFlashKeySplit:Jc.images.falseStaticKeySplit,"false"===a.session("correctRP")?Jc.images.trueStaticKeySplit:Jc.images.trueFlashKeySplit;const pp={type:Mo,response_allowed_while_playing:()=>a.session.get("config").skipInstructions,stimulus:()=>1===a.session("dataCorrect")?Jc.audio[`feedback${a.session("indexTracking")}Correct`]:Jc.audio[`feedback${a.session("indexTracking")}Incorrect`],prompt:()=>`\n <div class="stimulus_div">\n <p id=${Kc?"mobile-stimulus-text":""} class="feedback" translate='no'>\n <span class=${a.session("responseColor")}>${a.session("feedbackResponse")} ${xc.t(Kc?"practice.feedback.text1Mobile":"practice.feedback.text1",{arrow:"left"===a.session("responseLR")?xc.t("terms.left"):xc.t("terms.right"),type:"true"===a.session("answerRP")?xc.t("terms.true"):xc.t("terms.false")})}</span>\n <br></br> \n "${a.session("practiceCorpus")[a.session("indexTracking")].sentence}"\n <span class=${a.session("answerColor")}> ${xc.t(Kc?"practice.feedback.text2Mobile":"practice.feedback.text2",{arrow:"left"===a.session("correctLR")?xc.t("terms.left"):xc.t("terms.right"),type:"true"===a.session("correctRP")?xc.t("terms.true"):xc.t("terms.false")})}</span>\n </p>\n </div>\n ${Kc?"":`<img class="lower" src= "${"false"===a.session("correctRP")?Jc.images.falseFlashKey:Jc.images.trueFlashKey}" alt="arrow keys">`}`,keyboard_choices:()=>Kc?"NO_KEYS":"false"===a.session("correctRP")?["ArrowLeft"]:["ArrowRight"],button_choices:()=>Kc?["ArrowLeft","ArrowRight"]:[],button_html:()=>Kc?[`<button class="mobile-practice-feedback ${"false"===a.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"false"===a.session("correctRP")?Jc.images.falseFlashKeySplit:Jc.images.falseStaticKeySplit} alt="feedback arrow"/>\n </button>`,`<button class="mobile-practice-feedback ${"true"===a.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"true"===a.session("correctRP")?Jc.images.trueFlashKeySplit:Jc.images.trueStaticKeySplit} alt="feedback arrow"/>\n </button>`]:"",prompt_above_buttons:()=>Kc,on_load:()=>{document.querySelectorAll(".jspsych-audio-multi-response-button").forEach(((e,t)=>{const n="false"===a.session("correctRP");0!==t||n?1===t&&n&&e.classList.add("mobile-disable-button"):e.classList.add("mobile-disable-button")}))}};let fp;const hp=Object.prototype.toString;function mp(e){switch(hp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ap(e,Error)}}function gp(e,t){return hp.call(e)===`[object ${t}]`}function yp(e){return gp(e,"ErrorEvent")}function _p(e){return gp(e,"DOMError")}function vp(e){return gp(e,"String")}function bp(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function wp(e){return gp(e,"Object")}function Ip(e){return"undefined"!=typeof Event&&Ap(e,Event)}function xp(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ep(e){return"number"==typeof e&&e!=e}function Ap(e,t){try{return e instanceof t}catch(e){return!1}}function Sp(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function kp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Tp(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{Sp(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Rp(e,t,n=!1){return!!vp(e)&&(gp(t,"RegExp")?t.test(e):!!vp(t)&&(n?e===t:e.includes(t)))}function Lp(e,t=[],n=!1){return t.some((t=>Rp(e,t,n)))}function Cp(e,t,n=250,i,s,a,r){if(!(a.exception&&a.exception.values&&r&&Ap(r.originalException,Error)))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var c,l;o&&(a.exception.values=(c=Np(e,t,s,r.originalException,i,a.exception.values,o,0),l=n,c.map((e=>(e.value&&(e.value=kp(e.value,l)),e)))))}function Np(e,t,n,i,s,a,r,o){if(a.length>=n+1)return a;let c=[...a];if(Ap(i[s],Error)){Op(r,o);const a=e(t,i[s]),l=c.length;Up(a,s,l,o),c=Np(e,t,n,i[s],s,[a,...c],a,l)}return Array.isArray(i.errors)&&i.errors.forEach(((i,a)=>{if(Ap(i,Error)){Op(r,o);const l=e(t,i),d=c.length;Up(l,`errors[${a}]`,d,o),c=Np(e,t,n,i,s,[l,...c],l,d)}})),c}function Op(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Up(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 Fp(e){return e&&e.Math==Math?e:void 0}const jp="object"==typeof globalThis&&Fp(globalThis)||"object"==typeof window&&Fp(window)||"object"==typeof self&&Fp(self)||"object"==typeof global&&Fp(global)||function(){return this}()||{};function Pp(){return jp}function Dp(e,t,n){const i=n||jp,s=i.__SENTRY__=i.__SENTRY__||{};return s[e]||(s[e]=t())}const Mp=Pp(),zp=80;function Bp(e,t={}){try{let n=e;const i=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||zp;for(;n&&a++<i&&(l=$p(n,d),!("html"===l||a>1&&r+s.length*c+l.length>=u));)s.push(l),r+=l.length,n=n.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}function $p(e,t){const n=e,i=[];let s,a,r,o,c;if(!n||!n.tagName)return"";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}`),s=n.className,s&&vp(s))for(a=s.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)r=d[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}const qp=["debug","info","warn","error","log","assert","trace"],Vp={};function Yp(e){if(!("console"in jp))return e();const t=jp.console,n={},i=Object.keys(Vp);i.forEach((e=>{const i=Vp[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const Gp=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?qp.forEach((n=>{t[n]=(...t)=>{e&&Yp((()=>{jp.console[n](`Sentry Logger [${n}]:`,...t)}))}})):qp.forEach((e=>{t[e]=()=>{}})),t}(),Hp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Wp(e,t=!1){const{host:n,path:i,pass:s,port:a,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&s?`:${s}`:""}@${n}${a?`:${a}`:""}/${i?`${i}/`:i}${r}`}function Kp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Zp(e){const t="string"==typeof e?function(e){const t=Hp.exec(e);if(!t)return void console.error(`Invalid Sentry Dsn: ${e}`);const[n,i,s="",a,r="",o]=t.slice(1);let c="",l=o;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Kp({host:a,pass:s,path:c,projectId:l,port:r,protocol:n,publicKey:i})}(e):Kp(e);if(t&&function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(Gp.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(Gp.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Gp.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(Gp.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}class Jp extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Xp(e,t,n){if(!(t in e))return;const i=e[t],s=n(i);"function"==typeof s&&ef(s,i),e[t]=s}function Qp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ef(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Qp(e,"__sentry_original__",t)}catch(e){}}function tf(e){return e.__sentry_original__}function nf(e){if(mp(e))return{message:e.message,name:e.name,stack:e.stack,...af(e)};if(Ip(e)){const t={type:e.type,target:sf(e.target),currentTarget:sf(e.currentTarget),...af(e)};return"undefined"!=typeof CustomEvent&&Ap(e,CustomEvent)&&(t.detail=e.detail),t}return e}function sf(e){try{return t=e,"undefined"!=typeof Element&&Ap(t,Element)?Bp(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function af(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 rf(e){return of(e,new Map)}function of(e,t){if(wp(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]=of(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(of(e,t))})),i}return e}const cf=50,lf=/\(error: (.*)\)/,df=/captureMessage|captureException/;function uf(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const i=[],s=e.split("\n");for(let e=n;e<s.length;e++){const n=s[e];if(n.length>1024)continue;const a=lf.test(n)?n.replace(lf,"$1"):n;if(!a.match(/\S*Error: /)){for(const e of t){const t=e(a);if(t){i.push(t);break}}if(i.length>=cf)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),df.test(t[t.length-1].function||"")&&(t.pop(),df.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,cf).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(i)}}const pf="<anonymous>";function ff(e){try{return e&&"function"==typeof e&&e.name||pf}catch(e){return pf}}const hf=Pp();function mf(){if(!("fetch"in hf))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function gf(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const yf=Pp();const _f=Pp(),vf="__sentry_xhr_v2__",bf={},wf={};function If(e){if(!wf[e])switch(wf[e]=!0,e){case"console":!function(){if(!("console"in jp))return;qp.forEach((function(e){e in jp.console&&Xp(jp.console,e,(function(t){return Vp[e]=t,function(...t){Ef("console",{args:t,level:e});const n=Vp[e];n&&n.apply(jp.console,t)}}))}))}();break;case"dom":!function(){if(!_f.document)return;const e=Ef.bind(null,"dom"),t=Cf(e,!0);_f.document.addEventListener("click",t,!1),_f.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=_f[t]&&_f[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Xp(n,"addEventListener",(function(t){return function(n,i,s){if("click"===n||"keypress"==n)try{const i=this,a=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},r=a[n]=a[n]||{refCount:0};if(!r.handler){const i=Cf(e);r.handler=i,t.call(this,n,i,s)}r.refCount++}catch(e){}return t.call(this,n,i,s)}})),Xp(n,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},a=s[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,i),a.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}})))}))}();break;case"xhr":!function(){if(!_f.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Xp(e,"open",(function(e){return function(...t){const n=t[1],i=this[vf]={method:vp(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};vp(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[vf];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Ef("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Xp(this,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(this,t)}})):this.addEventListener("readystatechange",s),Xp(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,s=this[vf];return s&&(s.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),Xp(e,"send",(function(e){return function(...t){const n=this[vf];return n&&void 0!==t[0]&&(n.body=t[0]),Ef("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!mf())return!1;if(gf(hf.fetch))return!0;let e=!1;const t=hf.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=gf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())return;Xp(jp,"fetch",(function(e){return function(...t){const{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Sf(t),method:Af(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Sf(t),method:Af(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return Ef("fetch",{...s}),e.apply(jp,t).then((e=>(Ef("fetch",{...s,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Ef("fetch",{...s,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!function(){const e=yf.chrome,t=e&&e.app&&e.app.runtime,n="history"in yf&&!!yf.history.pushState&&!!yf.history.replaceState;return!t&&n}())return;const e=_f.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=kf,t=String(n);kf=t,Ef("history",{from:e,to:t})}return e.apply(this,t)}}_f.onpopstate=function(...t){const n=_f.location.href,i=kf;if(kf=n,Ef("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},Xp(_f.history,"pushState",t),Xp(_f.history,"replaceState",t)}();break;case"error":Nf=_f.onerror,_f.onerror=function(e,t,n,i,s){return Ef("error",{column:i,error:s,line:n,msg:e,url:t}),!(!Nf||Nf.__SENTRY_LOADER__)&&Nf.apply(this,arguments)},_f.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":Of=_f.onunhandledrejection,_f.onunhandledrejection=function(e){return Ef("unhandledrejection",e),!(Of&&!Of.__SENTRY_LOADER__)||Of.apply(this,arguments)},_f.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("unknown instrumentation type:",e))}}function xf(e,t){bf[e]=bf[e]||[],bf[e].push(t),If(e)}function Ef(e,t){if(e&&bf[e])for(const n of bf[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ff(n)}\nError:`,t)}}function Af(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Sf(e){return"string"==typeof e?e:e?Af(e,"url")?e.url:e.toString?e.toString():"":""}let kf;const Tf=1e3;let Rf,Lf;function Cf(e,t=!1){return n=>{if(!n||Lf===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const i="keypress"===n.type?"input":n.type;(void 0===Rf||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Lf,n))&&(e({event:n,name:i,global:t}),Lf=n),clearTimeout(Rf),Rf=_f.setTimeout((()=>{Rf=void 0}),Tf)}}let Nf=null;let Of=null;function Uf(){const e=jp,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function Ff(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function jf(e){const{message:t,event_id:n}=e;if(t)return t;const i=Ff(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function Pf(e,t,n){const i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function Df(e,t){const n=Ff(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 Mf(e){if(e&&e.__sentry_captured__)return!0;try{Qp(e,"__sentry_captured__",!0)}catch(e){}return!1}function zf(e){return Array.isArray(e)?e:[e]}function Bf(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function $f(e,t=100,n=1/0){try{return Vf("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function qf(e,t=3,n=102400){const i=$f(e,t);return s=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(s))>n?qf(e,t-1,n):i;var s}function Vf(e,t,n=1/0,i=1/0,s=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[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!Ep(t))return t;const o=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(Sp(t))return"[VueViewModel]";if(wp(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${ff(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(!o.startsWith("[object "))return o;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 o.replace("object ","");if(a(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return Vf("",l.toJSON(),c-1,i,s)}catch(e){}const d=Array.isArray(t)?[]:{};let u=0;const p=nf(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(u>=i){d[e]="[MaxProperties ~]";break}const t=p[e];d[e]=Vf(e,t,c-1,i,s),u++}return r(t),d}var Yf;function Gf(e){return new Wf((t=>{t(e)}))}function Hf(e){return new Wf(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Yf||(Yf={}));class Wf{constructor(e){Wf.prototype.__init.call(this),Wf.prototype.__init2.call(this),Wf.prototype.__init3.call(this),Wf.prototype.__init4.call(this),this._state=Yf.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Wf(((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 Wf(((t,n)=>{let i,s;return this.then((t=>{s=!1,i=t,e&&e()}),(t=>{s=!0,i=t,e&&e()})).then((()=>{s?n(i):t(i)}))}))}__init(){this._resolve=e=>{this._setResult(Yf.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Yf.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Yf.PENDING&&(xp(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Yf.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Yf.RESOLVED&&e[1](this._value),this._state===Yf.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Kf(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(i){if(!(void 0===e||t.length<e))return Hf(new Jp("Not adding Promise because buffer limit was reached."));const s=i();return-1===t.indexOf(s)&&t.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(e){return new Wf(((n,i)=>{let s=t.length;if(!s)return n(!0);const a=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Gf(e).then((()=>{--s||(clearTimeout(a),n(!0))}),i)}))}))}}}function Zf(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}}const Jf=["fatal","error","warning","log","info","debug"];const Xf=Pp(),Qf={nowSeconds:()=>Date.now()/1e3};const eh=Bf()?function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(e){return}var e,t}():function(){const{performance:e}=Xf;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),th=void 0===eh?Qf:{nowSeconds:()=>(eh.timeOrigin+eh.now())/1e3},nh=Qf.nowSeconds.bind(Qf),ih=th.nowSeconds.bind(th),sh=(()=>{const{performance:e}=Xf;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;return a||o<t?s<=o?e.timeOrigin:r:i})(),ah="baggage",rh="sentry-",oh=/^sentry-/,ch=8192;function lh(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],i)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===i?s:`${e},${s}`;return a.length>ch?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${rh}${t}`]=n),e)),{}))}function dh(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const uh=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ph(e,t){const n=function(e){if(!e)return;const t=e.match(uh);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=function(e){if(!vp(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>({...e,...dh(t)})),{});else{if(!e)return;t=dh(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(oh)&&(e[t.slice(rh.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:s,parentSpanId:a,parentSampled:r}=n||{},o={traceId:s||Uf(),spanId:Uf().substring(16),sampled:r};return a&&(o.parentSpanId=a),i&&(o.dsc=i),{traceparentData:n,dynamicSamplingContext:i,propagationContext:o}}function fh(e=Uf(),t=Uf().substring(16),n){let i="";return void 0!==n&&(i=n?"-1":"-0"),`${e}-${t}${i}`}function hh(e,t=[]){return[e,t]}function mh(e,t){const[n,i]=e;return[n,[...i,t]]}function gh(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function yh(e,t){return(t||new TextEncoder).encode(e)}function _h(e,t){const[n,i]=e;let s=JSON.stringify(n);function a(e){"string"==typeof s?s="string"==typeof e?s+e:[yh(s,t),e]:s.push("string"==typeof e?yh(e,t):e)}for(const e of i){const[t,n]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify($f(n))}a(e)}}return"string"==typeof s?s: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}(s)}function vh(e,t){const n="string"==typeof e.data?yh(e.data,t):e.data;return[rf({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const bh={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function wh(e){return bh[e]}function Ih(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function xh(e,t,n,i){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Wp(i)},...s&&{trace:rf({...s})}}}const Eh=6e4;function Ah(e,{statusCode:t,headers:n},i=Date.now()){const s={...e},a=n&&n["x-sentry-rate-limits"],r=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n]=e.split(":",2),a=parseInt(t,10),r=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))s[e]=i+r;else s.all=i+r}else r?s.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)?Eh:i-t}(r,i):429===t&&(s.all=i+6e4);return s}const Sh="production";function kh(){return Dp("globalEventProcessors",(()=>[]))}function Th(e){kh().push(e)}function Rh(e,t,n,i=0){return new Wf(((s,a)=>{const r=e[i];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.id&&null===o&&Gp.log(`Event processor "${r.id}" dropped event`),xp(o)?o.then((t=>Rh(e,t,n,i+1).then(s))).then(null,a):Rh(e,o,n,i+1).then(s).then(null,a)}}))}function Lh(e){const t=ih(),n={sid:Uf(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return rf({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,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Ch(n,e),n}function Ch(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||ih(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Uf()),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)}class Nh{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Oh()}static clone(e){const t=new Nh;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata},t._propagationContext={...e._propagationContext}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Ch(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.getSpan();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;if("function"==typeof e){const t=e(this);return t instanceof Nh?t:this}return e instanceof Nh?(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&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):wp(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),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=Oh(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:nh(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,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._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}this._applyFingerprint(e);const n=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...n];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},Rh([...kh(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?zf(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function Oh(){return{traceId:Uf(),spanId:Uf().substring(16)}}const Uh=4,Fh=100;class jh{constructor(e,t=new Nh,n=Uh){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=Nh.clone(this.getScope());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();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}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:Uf(),i=new Error("Sentry syntheticException");return this._withClient(((s,a)=>{s.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},a)})),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:Uf(),s=new Error(e);return this._withClient(((a,r)=>{a.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i},r)})),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Uf();return e.type||(this._lastEventId=n),this._withClient(((i,s)=>{i.captureEvent(e,{...t,event_id:n},s)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=Fh}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const r={timestamp:nh(),...e},o=s?Yp((()=>s(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=Dh(this);try{e(this)}finally{Dh(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.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"}),Ch(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:s=Sh}=n&&n.getOptions()||{},{userAgent:a}=jp.navigator||{},r=Lh({release:i,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&Ch(o,{status:"exited"}),this.endSession(),t.setSession(r),r}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)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=Ph().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ph(){return jp.__SENTRY__=jp.__SENTRY__||{extensions:{},hub:void 0},jp}function Dh(e){const t=Ph(),n=zh(t);return Bh(t,e),n}function Mh(){const e=Ph();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Ph()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!zh(e).isOlderThan(Uh)||Bh(e,new jh);var t;return zh(e)}(e)}function zh(e){return Dp("hub",(()=>new jh),e)}function Bh(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function $h(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Mh().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function qh(e){return(e||Mh()).getScope().getTransaction()}let Vh=!1;function Yh(){const e=qh();if(e){const t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Yh.tag="sentry_tracingErrorCallback";class Gh{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Hh{constructor(e={}){this.traceId=e.traceId||Uf(),this.spanId=e.spanId||Uf().substring(16),this.startTimestamp=e.startTimestamp||ih(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){const t=new Hh({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){const n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},Gp.log(n)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);const t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&Gp.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:ih()}toTraceparent(){return fh(this.traceId,this.spanId,this.sampled)}toContext(){return rf({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return rf({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return rf({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function Wh(e,t,n){const i=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},r=rf({environment:i.environment||Sh,release:i.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}class Kh extends Hh{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||Mh(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Gh(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const i=this.metadata,s={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(s)}toContext(){return rf({...super.toContext(),name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||Mh(),t=e.getClient();if(!t)return{};const n=e.getScope(),i=Wh(this.traceId,t,n),s=this.metadata.sampleRate;void 0!==s&&(i.sample_rate=`${s}`);const a=this.metadata.source;return a&&"url"!==a&&(i.transaction=this.name),void 0!==this.sampled&&(i.sampled=String(this.sampled)),i}setHub(e){this._hub=e}}const Zh={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Jh=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Xh extends Gh{constructor(e,t,n,i){super(i),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:ih(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class Qh extends Kh{constructor(e,t,n=Zh.idleTimeout,i=Zh.finalTimeout,s=Zh.heartbeatInterval,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=s,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Jh[4],a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Jh[3],this.finish())}),this._finalTimeout)}finish(e=ih()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const n=t.startTimestamp<e,i=(this._finalTimeout+this._idleTimeout)/1e3,s=t.endTimestamp-this.startTimestamp<i;if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=JSON.stringify(t,void 0,2);n?s||Gp.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):Gp.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return n&&s})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Xh(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Jh[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Jh[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=ih();this._idleTimeoutCanceledPermanently?(this._finishReason=Jh[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Jh[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function em(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function tm(e,t,n){if(!$h(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let i;return"function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setMetadata({sampleRate:Number(i)})):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setMetadata({sampleRate:Number(i)})):(i=1,e.setMetadata({sampleRate:i})),function(e){if(Ep(e)||"number"!=typeof e&&"boolean"!=typeof e)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.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)}.`),!1;if(e<0||e>1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(i)?i?(e.sampled=Math.random()<i,e.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),e)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function nm(e,t){const n=this.getClient(),i=n&&n.getOptions()||{},s=i.instrumenter||"sentry",a=e.instrumenter||"sentry";s!==a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${s}\` instrumenter.\nThe transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),e.sampled=!1);let r=new Kh(e,this);return r=tm(r,i,{parentSampled:e.parentSampled,transactionContext:e,...t}),r.sampled&&r.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",r),r}function im(e,t,n,i,s,a,r){const o=e.getClient(),c=o&&o.getOptions()||{};let l=new Qh(t,e,n,i,r,s);return l=tm(l,c,{parentSampled:t.parentSampled,transactionContext:t,...a}),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",l),l}function sm(){const e=Ph();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=nm),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=em),Vh||(Vh=!0,xf("error",Yh),xf("unhandledrejection",Yh)))}function am(e,t){return Mh().captureException(e,{captureContext:t})}const rm="7";function om(e,t){return n={sentry_key:e.publicKey,sentry_version:rm,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}const cm=[];function lm(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(n)?[...t,...n]:"function"==typeof n?zf(n(t)):t;const s=function(e){const t={};return e.forEach((e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(i),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(s,(e=>"Debug"===e.name));if(-1!==a){const[e]=s.splice(a,1);s.push(e)}return s}function dm(e,t,n){if(n[t.name]=t,-1===cm.indexOf(t.name)&&(t.setupOnce(Th,Mh),cm.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,i)=>n(t,i,e)))}if(e.addEventProcessor&&"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)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Integration installed: ${t.name}`)}function um(e,t,n,i,s){const{normalizeDepth:a=3,normalizeMaxBreadth:r=1e3}=e,o={...t,event_id:t.event_id||n.event_id||Uf(),timestamp:t.timestamp||nh()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:s,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:Sh);void 0===e.release&&void 0!==i&&(e.release=i);void 0===e.dist&&void 0!==s&&(e.dist=s);e.message&&(e.message=kp(e.message,a));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=kp(r.value,a));const o=e.request;o&&o.url&&(o.url=kp(o.url,a))}(o,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(o,c),void 0===t.type&&function(e,t){const n=jp._sentryDebugIds;if(!n)return;let i;const s=pm.get(t);s?i=s:(i=new Map,pm.set(t,i));const a=Object.keys(n).reduce(((e,s)=>{let a;const r=i.get(s);r?a=r:(a=t(s),i.set(s,a));for(let t=a.length-1;t>=0;t--){const i=a[t];if(i.filename){e[i.filename]=n[s];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(o,e.stackParser);let l=i;n.captureContext&&(l=Nh.clone(l).update(n.captureContext));let d=Gf(o);if(l){if(l.getAttachments){const e=[...n.attachments||[],...l.getAttachments()];e.length&&(n.attachments=e)}d=l.applyToEvent(o,n)}return d.then((e=>s&&s.getEventProcessors?Rh(s.getEventProcessors(),e,n):e)).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.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:$f(e.data,t,n)}})))},...e.user&&{user:$f(e.user,t,n)},...e.contexts&&{contexts:$f(e.contexts,t,n)},...e.extra&&{extra:$f(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=$f(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>(e.data&&(e.data=$f(e.data,t,n)),e))));return i}(e,a,r):e)))}const pm=new WeakMap;const fm="Not capturing exception because it's already been captured.";class hm{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Zp(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("No DSN provided, client will not do anything."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${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)}?${om(e,i)}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Mf(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(fm));let i=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{i=e}))),i}captureMessage(e,t,n,i){let s=n&&n.event_id;const a=bp(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(a.then((e=>this._captureEvent(e,n,i))).then((e=>{s=e}))),s}captureEvent(e,t,n){if(t&&t.originalException&&Mf(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(fm));let i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{i=e}))),i}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Ch(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("SDK not enabled, will not capture session.")}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._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):Gf(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&dm(e,t,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){dm(this,e,this._integrations)}sendEvent(e,t={}){if(this.emit("beforeSendEvent",e,t),this._dsn){let n=function(e,t,n,i){const s=Ih(n),a=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 r=xh(e,s,i,t);return delete e.sdkProcessingMetadata,hh(r,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=mh(n,vh(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,i){const s=Ih(n);return hh({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!i&&{dsn:Wp(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 n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,i=!1;const s=t.exception&&t.exception.values;if(s){i=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&n)&&(Ch(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Wf((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._dsn}_prepareEvent(e,t,n){const i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),um(i,e,t,n,this).then((e=>{if(null===e)return e;const{propagationContext:t}=e.sdkProcessingMetadata||{};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:i,spanId:s,parentSpanId:a,dsc:r}=t;e.contexts={trace:{trace_id:i,span_id:s,parent_span_id:a},...e.contexts};const o=r||Wh(i,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?Gp.log(t.message):Gp.warn(t)}}))}_processEvent(e,t,n){const i=this.getOptions(),{sampleRate:s}=i;if(!this._isEnabled())return Hf(new Jp("SDK not enabled, will not capture event.","log"));const a=gm(e),r=mm(e),o=e.type||"error",c=`before send for type \`${o}\``;if(r&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),Hf(new Jp(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const l="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new Jp("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const s=function(e,t,n){const{beforeSend:i,beforeSendTransaction:s}=e;if(mm(t)&&i)return i(t,n);if(gm(t)&&s)return s(t,n);return t}(i,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(xp(e))return e.then((e=>{if(!wp(e)&&null!==e)throw new Jp(n);return e}),(e=>{throw new Jp(`${t} rejected with ${e}`)}));if(!wp(e)&&null!==e)throw new Jp(n);return e}(s,c)})).then((i=>{if(null===i)throw this.recordDroppedEvent("before_send",l,e),new Jp(`${c} returned \`null\`, will not send event.`,"log");const s=n&&n.getSession();!a&&s&&this._updateSessionFromEvent(s,i);const r=i.transaction_info;if(a&&r&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...r,source:e}}return this.sendEvent(i,t),i})).then(null,(e=>{if(e instanceof Jp)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Jp(`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)))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,i]=t.split(":");return{reason:n,category:i,quantity:e[t]}}))}}function mm(e){return void 0===e.type}function gm(e){return"transaction"===e.type}const ym=30;function _m(e,t,n=Kf(e.bufferSize||ym)){let i={};function s(s){const a=[];if(gh(s,((t,n)=>{const s=wh(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,s)){const i=vm(t,n);e.recordDroppedEvent("ratelimit_backoff",s,i)}else a.push(t)})),0===a.length)return Gf();const r=hh(s[0],a),o=t=>{gh(r,((n,i)=>{const s=vm(n,i);e.recordDroppedEvent(t,wh(i),s)}))};return n.add((()=>t({body:_h(r,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Ah(i,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Jp)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("Skipped sending event because buffer is full."),o("queue_overflow"),Gf();throw e}))}return s.__sentry__baseTransport__=!0,{send:s,flush:e=>n.drain(e)}}function vm(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const bm="7.70.0";let wm;class Im{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=Im.id}setupOnce(){wm=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=tf(this)||this;return wm.apply(t,e)}}catch(e){}}}Im.__initStatic();const xm=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Em=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class Am{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=Am.id,this._options=e}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(Am);if(t){const i=n.getClient(),s=i?i.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:xm],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Em],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,s);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${jf(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}`));"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||0!==t.length||Gp.error(`Could not extract message for event ${jf(e)}`);return t}(e).some((e=>Lp(e,t)))}(e,t.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${jf(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Lp(n,t)}(e,t.ignoreTransactions))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${jf(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=Sm(e);return!!n&&Lp(n,t)}(e,t.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${jf(e)}.\nUrl: ${Sm(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=Sm(e);return!n||Lp(n,t)}(e,t.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${jf(e)}.\nUrl: ${Sm(e)}`),!0;return!1}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function Sm(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("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(`Cannot extract url for event ${jf(e)}`),null}}Am.__initStatic();const km=jp;let Tm=0;function Rm(){return Tm>0}function Lm(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(tf(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=i.map((e=>Lm(e,t)));return e.apply(this,s)}catch(e){throw Tm++,setTimeout((()=>{Tm--})),s=n=>{n.addEventProcessor((e=>(t.mechanism&&(Pf(e,void 0,void 0),Df(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),am(e)},Mh().withScope(s),e}var s};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}ef(i,e),Qp(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}function Cm(e,t){const n=Om(e,t),i={type:t&&t.name,value:Fm(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Nm(e,t){return{exception:{values:[Cm(e,t)]}}}function Om(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Um.test(e.message))return 1}return 0}(t);try{return e(n,i)}catch(e){}return[]}const Um=/Minified React error #\d+;/i;function Fm(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function jm(e,t,n,i,s){let a;if(yp(t)&&t.error){return Nm(e,t.error)}if(_p(t)||gp(t,"DOMException")){const s=t;if("stack"in t)a=Nm(e,t);else{const t=s.name||(_p(s)?"DOMError":"DOMException"),r=s.message?`${t}: ${s.message}`:t;a=Pm(e,r,n,i),Pf(a,r)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}if(mp(t))return Nm(e,t);if(wp(t)||Ip(t)){return a=function(e,t,n,i){const s=Mh().getClient(),a=s&&s.getOptions().normalizeDepth,r={exception:{values:[{type:Ip(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:Dm(t,{isUnhandledRejection:i})}]},extra:{__serialized__:qf(t,a)}};if(n){const t=Om(e,n);t.length&&(r.exception.values[0].stacktrace={frames:t})}return r}(e,t,n,s),Df(a,{synthetic:!0}),a}return a=Pm(e,t,n,i),Pf(a,`${t}`,void 0),Df(a,{synthetic:!0}),a}function Pm(e,t,n,i){const s={message:t};if(i&&n){const i=Om(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]})}return s}function Dm(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(nf(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return kp(n[0],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:kp(i,t)}return""}(e),i=t?"promise rejection":"exception";if(yp(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(Ip(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 Mm extends hm{constructor(e){const t=km.SENTRY_SDK_SOURCE||"npm";e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:bm}],version:bm},super(e),e.sendClientReports&&km.document&&km.document.addEventListener("visibilitychange",(()=>{"hidden"===km.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,i){const s=jm(e,t,n&&n.syntheticException||void 0,i);return Df(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Gf(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,s){const a=Pm(e,t,i&&i.syntheticException||void 0,s);return a.level=n,i&&i.event_id&&(a.event_id=i.event_id),Gf(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:i}){const s={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:Wp(i)}},a=function(e){return[{type:"user_report"},e]}(e);return hh(s,[a])}(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)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("Sending outcomes:",e);const t=(n=e,hh((i=this._options.tunnel&&Wp(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:s||nh(),discarded_events:n}]]));var n,i,s;this._sendEnvelope(t)}}let zm;function Bm(e,t=function(){if(zm)return zm;if(gf(km.fetch))return zm=km.fetch.bind(km);const e=km.document;let t=km.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return zm=t.bind(km)}()){let n=0,i=0;return _m(e,(function(s){const a=s.body.length;n+=a,i++;const r={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,r).then((e=>(n-=a,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 zm=void 0,n-=a,i--,Hf(e)}}))}const $m=4;function qm(e){return _m(e,(function(t){return new Wf(((n,i)=>{const s=new XMLHttpRequest;s.onerror=i,s.onreadystatechange=()=>{s.readyState===$m&&n({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&s.setRequestHeader(t,e.headers[t]);s.send(t.body)}))}))}const Vm="?";function Ym(e,t,n,i){const s={filename:e,function:t,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==i&&(s.colno=i),s}const Gm=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Hm=/\((\S*)(?::(\d+))(?::(\d+))\)/,Wm=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Km=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Zm=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jm=uf(...[[30,e=>{const t=Gm.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Hm.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Xm(t[1]||Vm,t[2]);return Ym(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Wm.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Km.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]||Vm;return[n,e]=Xm(n,e),Ym(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Zm.exec(e);return t?Ym(t[2],t[1]||Vm,+t[3],t[4]?+t[4]:void 0):void 0}]]),Xm=(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]:Vm,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Qm{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=Qm.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:eg,onunhandledrejection:tg}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const i=this._installFunc[n];i&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Global Handler attached: ${t}`),i(),this._installFunc[n]=void 0)}var t}}function eg(){xf("error",(e=>{const[t,n,i]=sg();if(!t.getIntegration(Qm))return;const{msg:s,url:a,line:r,column:o,error:c}=e;if(Rm()||c&&c.__sentry_own_request__)return;const l=void 0===c&&vp(s)?function(e,t,n,i){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=yp(e)?e.message:e,r="Error";const o=a.match(s);o&&(r=o[1],a=o[2]);const c={exception:{values:[{type:r,value:a}]}};return ng(c,t,n,i)}(s,a,r,o):ng(jm(n,c||s,void 0,i,!1),a,r,o);l.level="error",ig(t,c,l,"onerror")}))}function tg(){xf("unhandledrejection",(e=>{const[t,n,i]=sg();if(!t.getIntegration(Qm))return;let s=e;try{"reason"in e?s=e.reason:"detail"in e&&"reason"in e.detail&&(s=e.detail.reason)}catch(e){}if(Rm()||s&&s.__sentry_own_request__)return!0;const a=bp(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:jm(n,s,void 0,i,!0);a.level="error",ig(t,s,a,"onunhandledrejection")}))}function ng(e,t,n,i){const s=e.exception=e.exception||{},a=s.values=s.values||[],r=a[0]=a[0]||{},o=r.stacktrace=r.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(i,10))?void 0:i,d=isNaN(parseInt(n,10))?void 0:n,u=vp(t)&&t.length>0?t:function(){try{return Mp.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:u,function:"?",in_app:!0,lineno:d}),e}function ig(e,t,n,i){Df(n,{handled:!1,type:i}),e.captureEvent(n,{originalException:t})}function sg(){const e=Mh(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}Qm.__initStatic();const ag=["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"];class rg{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=rg.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&Xp(km,"setTimeout",og),this._options.setInterval&&Xp(km,"setInterval",og),this._options.requestAnimationFrame&&Xp(km,"requestAnimationFrame",cg),this._options.XMLHttpRequest&&"XMLHttpRequest"in km&&Xp(XMLHttpRequest.prototype,"send",lg);const e=this._options.eventTarget;if(e){(Array.isArray(e)?e:ag).forEach(dg)}}}function og(e){return function(...t){const n=t[0];return t[0]=Lm(n,{mechanism:{data:{function:ff(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function cg(e){return function(t){return e.apply(this,[Lm(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ff(e)},handled:!1,type:"instrument"}})])}}function lg(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Xp(n,e,(function(t){const n={mechanism:{data:{function:e,handler:ff(t)},handled:!1,type:"instrument"}},i=tf(t);return i&&(n.mechanism.data.handler=ff(i)),Lm(t,n)}))})),e.apply(this,t)}}function dg(e){const t=km,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Xp(n,"addEventListener",(function(t){return function(n,i,s){try{"function"==typeof i.handleEvent&&(i.handleEvent=Lm(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ff(i),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Lm(i,{mechanism:{data:{function:"addEventListener",handler:ff(i),target:e},handled:!1,type:"instrument"}}),s])}})),Xp(n,"removeEventListener",(function(e){return function(t,n,i){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&e.call(this,t,n,i)}catch(e){}return e.call(this,t,s,i)}})))}rg.__initStatic();const ug=1024;class pg{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=pg.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){if(this.options.console&&xf("console",hg),this.options.dom&&xf("dom",function(e){function t(t){let n,i="object"==typeof e?e.serializeAttribute:void 0,s="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;s&&s>ug&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=ug),"string"==typeof i&&(i=[i]);try{const e=t.event;n=function(e){return!!e&&!!e.target}(e)?Bp(e.target,{keyAttrs:i,maxStringLength:s}):Bp(e,{keyAttrs:i,maxStringLength:s})}catch(e){n="<unknown>"}0!==n.length&&Mh().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&xf("xhr",mg),this.options.fetch&&xf("fetch",gg),this.options.history&&xf("history",yg),this.options.sentry){const e=Mh().getClient();e&&e.on&&e.on("beforeSendEvent",fg)}}}function fg(e){Mh().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:jf(e)},{event:e})}function hg(e){const t={category:"console",data:{arguments:e.args,logger:"console"},level:(n=e.level,"warn"===n?"warning":Jf.includes(n)?n:"log"),message:Tp(e.args," ")};var n;if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${Tp(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}Mh().addBreadcrumb(t,{input:e.args,level:e.level})}function mg(e){const{startTimestamp:t,endTimestamp:n}=e,i=e.xhr[vf];if(!t||!n||!i)return;const{method:s,url:a,status_code:r,body:o}=i,c={method:s,url:a,status_code:r},l={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};Mh().addBreadcrumb({category:"xhr",data:c,type:"http"},l)}function gg(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const i=e.fetchData,s={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};Mh().addBreadcrumb({category:"fetch",data:i,level:"error",type:"http"},s)}else{const i={...e.fetchData,status_code:e.response&&e.response.status},s={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};Mh().addBreadcrumb({category:"fetch",data:i,type:"http"},s)}}function yg(e){let t=e.from,n=e.to;const i=Zf(km.location.href);let s=Zf(t);const a=Zf(n);s.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),i.protocol===s.protocol&&i.host===s.host&&(t=s.relative),Mh().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}pg.__initStatic();class _g{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=_g.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){const i=n.getOptions();Cp(Cm,i.stackParser,i.maxValueLength,this._key,this._limit,e,t)}}_g.__initStatic();class vg{static __initStatic(){this.id="HttpContext"}constructor(){this.name=vg.id}setupOnce(){Th((e=>{if(Mh().getIntegration(vg)){if(!km.navigator&&!km.location&&!km.document)return e;const t=e.request&&e.request.url||km.location&&km.location.href,{referrer:n}=km.document||{},{userAgent:i}=km.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},a={...e.request,...t&&{url:t},headers:s};return{...e,request:a}}return e}))}}vg.__initStatic();class bg{static __initStatic(){this.id="Dedupe"}constructor(){this.name=bg.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(bg);if(n){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(!Ig(e,t))return!1;if(!wg(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=xg(t),i=xg(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!Ig(e,t))return!1;if(!wg(e,t))return!1;return!0}(e,t))return!0;return!1}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function wg(e,t){let n=Eg(e),i=Eg(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],s=n[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function Ig(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 xg(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Eg(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}bg.__initStatic();const Ag=[new Am,new Im,new rg,new pg,new Qm,new _g,new bg,new vg];function Sg(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Ag),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),km.SENTRY_RELEASE&&km.SENTRY_RELEASE.id&&(e.release=km.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||Jm,Array.isArray(n)?uf(...n):n),integrations:lm(e),transport:e.transport||(mf()?Bm:qm)};var n;!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Gp.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=Mh();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}(Mm,t),e.autoSessionTracking&&function(){if(void 0===km.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=Mh();if(!e.captureSession)return;kg(e),xf("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&kg(Mh())}))}()}function kg(e){e.startSession({ignoreDuration:!0}),e.captureSession()}const Tg=jp,Rg="sentryReplaySession",Lg="replay_event",Cg="Unable to send Replay",Ng=15e4,Og=5e3,Ug=2e7,Fg=36e5;var jg;function Pg(e){const t=null==e?void 0:e.host;return Boolean(t&&t.shadowRoot&&t.shadowRoot===e)}function Dg({maskInputOptions:e,tagName:t,type:n}){"option"===t.toLowerCase()&&(t="select");const i="string"==typeof n?n.toLowerCase():void 0;return e[t.toLowerCase()]||i&&e[i]||"password"===i||"input"===t&&!n&&e.text}function Mg({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:i,tagName:s,type:a,value:r,maskInputFn:o}){let c=r||"";return n&&e.matches(n)||(e.hasAttribute("data-rr-is-password")&&(a="password"),(Dg({maskInputOptions:i,tagName:s,type:a})||t&&e.matches(t))&&(c=o?o(c):"*".repeat(c.length))),c}!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"}(jg||(jg={}));const zg="__rrweb_original__";function Bg(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}function $g(e,t,n){return"string"==typeof n&&n.toLowerCase(),"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let qg=1;const Vg=new RegExp("[^a-z0-9-_:]"),Yg=-2;function Gg(e){return e?e.replace(/[\S]/g,"*"):""}function Hg(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(Wg).join(""):null}catch(e){return null}}function Wg(e){let t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Hg(e.styleSheet)||t}catch(e){}return Kg(t)}function Kg(e){if(e.indexOf(":")>-1){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}return e}let Zg,Jg;const Xg=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Qg=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,ey=/^(data:)([^,]*),(.*)/i;function ty(e,t){return(e||"").replace(Xg,((e,n,i,s,a,r)=>{const o=i||a||r,c=n||s||"";if(!o)return e;if(!Qg.test(o))return`url(${c}${o}${c})`;if(ey.test(o))return`url(${c}${o}${c})`;if("/"===o[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)+o}${c})`;const l=t.split("/"),d=o.split("/");l.pop();for(const e of d)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const ny=/^[^ \t\n\r\u000c]+/,iy=/^[, \t\n\r\u000c]+/;function sy(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function ay(){const e=document.createElement("a");return e.href="",e.href}function ry(e,t,n,i,s,a,r,o){if(!s)return s;const c=i.toLowerCase(),l=n.toLowerCase();return"src"===c||"href"===c||"xlink:href"===c&&"#"!==s[0]?sy(e,s):"background"!==c||"table"!==l&&"td"!==l&&"th"!==l?"srcset"===c?function(e,t){if(""===t.trim())return t;let n=0;function i(e){let i,s=e.exec(t.substring(n));return s?(i=s[0],n+=i.length,i):""}let s=[];for(;i(iy),!(n>=t.length);){let a=i(ny);if(","===a.slice(-1))a=sy(e,a.substring(0,a.length-1)),s.push(a);else{let i="";a=sy(e,a);let r=!1;for(;;){let e=t.charAt(n);if(""===e){s.push((a+i).trim());break}if(r)")"===e&&(r=!1);else{if(","===e){n+=1,s.push((a+i).trim());break}"("===e&&(r=!0)}i+=e,n+=1}}}return s.join(", ")}(e,s):"style"===c?ty(s,ay()):"object"===l&&"data"===c?sy(e,s):a&&function(e,t,n,i){if(i&&e.matches(i))return!1;return["placeholder","title","aria-label"].indexOf(t)>-1||"input"===n&&"value"===t&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1}(t,c,l,r)?o?o(s):Gg(s):s:sy(e,s)}function oy(e,t,n,i,s){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return oy(e.parentNode,t,n,i,s);if(i&&(e.matches(i)||e.closest(i)))return!1;if(s)return!0;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const i=e.classList[n];if(t.test(i))return!0}return!(!n||!e.matches(n))||oy(e.parentNode,t,n,i,s)}function cy(e,t){var n;const{doc:i,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:d,maskInputSelector:u,unmaskInputSelector:p,maskAllText:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:b}=t;let w;if(i.__sn){const e=i.__sn.id;w=1===e?void 0:e}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:jg.Document,childNodes:[],compatMode:e.compatMode,rootId:w}:{type:jg.Document,childNodes:[],rootId:w};case e.DOCUMENT_TYPE_NODE:return{type:jg.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:const t=function(e,t,n,i){if(i&&e.matches(i))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const i=e.classList[n];if(t.test(i))return!0}return!!n&&e.matches(n)}(e,s,a,r),E=function(e){if(e instanceof HTMLFormElement)return"form";const t=e.tagName.toLowerCase().trim();return Vg.test(t)?"div":t}(e);let A={};for(const{name:t,value:n}of Array.from(e.attributes))uy(E,t)||(A[t]=ry(i,e,E,t,n,f,l,m));if("link"===E&&d){const t=Array.from(i.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=Hg(t)),n&&(delete A.rel,delete A.href,A._cssText=ty(n,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Hg(e.sheet);t&&(A._cssText=ty(t,ay()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,n=Bg(t),i=$g(t,E.toUpperCase(),n),s=e.checked;"submit"!==n&&"button"!==n&&i&&(A.value=Mg({input:t,type:n,tagName:E,value:i,maskInputSelector:u,unmaskInputSelector:p,maskInputOptions:h,maskInputFn:g})),s&&(A.checked=s)}if("option"===E&&(e.selected&&!h.select?A.selected=!0:delete A.selected),"canvas"===E&&v)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 s=t.getImageData,a=zg in s?s[zg]:s;if(new Uint32Array(a.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)||(A.rr_dataURL=e.toDataURL(y.type,y.quality));else if(!("__context"in e)){const t=e.toDataURL(y.type,y.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(y.type,y.quality)&&(A.rr_dataURL=t)}if("img"===E&&_){Zg||(Zg=i.createElement("canvas"),Jg=Zg.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{try{Zg.width=t.naturalWidth,Zg.height=t.naturalHeight,Jg.drawImage(t,0,0),A.rr_dataURL=Zg.toDataURL(y.type,y.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?A.crossOrigin=n:delete A.crossOrigin};t.complete&&0!==t.naturalWidth?s():t.onload=s}if("audio"!==E&&"video"!==E||(A.rr_mediaState=e.paused?"paused":"played",A.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(A.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(A.rr_scrollTop=e.scrollTop),t){const{width:t,height:n}=e.getBoundingClientRect();A={class:A.class,rr_width:`${t}px`,rr_height:`${n}px`}}return"iframe"!==E||b(A.src)||(e.contentDocument||(A.rr_src=A.src),delete A.src),{type:jg.Element,tagName:E,attributes:A,childNodes:[],isSVG:(x=e,Boolean("svg"===x.tagName||x.ownerSVGElement)||void 0),needBlock:t,rootId:w};case e.TEXT_NODE:const S=e.parentNode&&e.parentNode.tagName;let k=e.textContent;const T="STYLE"===S||void 0,R="SCRIPT"===S||void 0;if(T&&k){try{e.nextSibling||e.previousSibling||(null===(n=e.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(k=(I=e.parentNode.sheet).cssRules?Array.from(I.cssRules).map((e=>e.cssText?Kg(e.cssText):"")).join(""):"")}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}k=ty(k,ay())}if(R&&(k="SCRIPT_PLACEHOLDER"),"TEXTAREA"===S&&k)k="";else if("OPTION"===S&&k){k=Mg({input:e.parentNode,type:null,tagName:S,value:k,maskInputSelector:u,unmaskInputSelector:p,maskInputOptions:h,maskInputFn:g})}else!T&&!R&&oy(e,o,c,l,f)&&k&&(k=m?m(k):Gg(k));return{type:jg.Text,textContent:k||"",isStyle:T,rootId:w};case e.CDATA_SECTION_NODE:return{type:jg.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:jg.Comment,textContent:e.textContent||"",rootId:w};default:return!1}var I,x}function ly(e){return null==e?"":e.toLowerCase()}function dy(e,t){const{doc:n,map:i,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:d=!1,inlineStylesheet:u=!0,maskInputSelector:p,unmaskInputSelector:f,maskAllText:h,maskInputOptions:m={},maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E=5e3,keepIframeSrcFn:A=(()=>!1)}=t;let{preserveWhiteSpace:S=!0}=t;const k=cy(e,{doc:n,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:u,maskInputSelector:p,unmaskInputSelector:f,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:w,keepIframeSrcFn:A});if(!k)return console.warn(e,"not serialized"),null;let T;T="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===jg.Comment)return!0;if(e.type===jg.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ly(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ly(e.attributes.name)||"icon"===ly(e.attributes.rel)||"apple-touch-icon"===ly(e.attributes.rel)||"shortcut icon"===ly(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ly(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ly(e.attributes.property).match(/^(og|twitter|fb):/)||ly(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ly(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ly(e.attributes.name)||"googlebot"===ly(e.attributes.name)||"bingbot"===ly(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ly(e.attributes.name)||"generator"===ly(e.attributes.name)||"framework"===ly(e.attributes.name)||"publisher"===ly(e.attributes.name)||"progid"===ly(e.attributes.name)||ly(e.attributes.property).match(/^article:/)||ly(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ly(e.attributes.name)||"yandex-verification"===ly(e.attributes.name)||"csrf-token"===ly(e.attributes.name)||"p:domain_verify"===ly(e.attributes.name)||"verify-v1"===ly(e.attributes.name)||"verification"===ly(e.attributes.name)||"shopify-checkout-api-token"===ly(e.attributes.name)))return!0}}return!1}(k,_)&&(S||k.type!==jg.Text||k.isStyle||k.textContent.replace(/^\s+|\s+$/gm,"").length)?qg++:Yg;const R=Object.assign(k,{id:T});if(e.__sn=R,T===Yg)return null;i[T]=e,I&&I(e);let L=!d;if(R.type===jg.Element&&(L=L&&!R.needBlock,delete R.needBlock,e.shadowRoot&&(R.isShadowHost=!0)),(R.type===jg.Document||R.type===jg.Element)&&L){_.headWhitespace&&k.type===jg.Element&&"head"===k.tagName&&(S=!1);const t={doc:n,map:i,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:d,inlineStylesheet:u,maskInputSelector:p,unmaskInputSelector:f,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:S,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,keepIframeSrcFn:A};for(const n of Array.from(e.childNodes)){const e=dy(n,t);e&&R.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 e=dy(n,t);e&&(e.isShadow=!0,R.childNodes.push(e))}}return e.parentNode&&Pg(e.parentNode)&&(R.isShadow=!0),R.type===jg.Element&&"iframe"===R.tagName&&function(e,t,n){const i=e.contentWindow;if(!i)return;let s,a=!1;try{s=i.document.readyState}catch(e){return}if("complete"!==s){const i=setTimeout((()=>{a||(t(),a=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(i),a=!0,t()}))}const r="about:blank";i.location.href===r&&e.src!==r&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}(e,(()=>{const t=e.contentDocument;if(t&&x){const n=dy(t,{doc:t,map:i,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputSelector:p,unmaskInputSelector:f,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:S,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,keepIframeSrcFn:A});n&&x(e,n)}}),E),R}function uy(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}var py,fy,hy,my,gy,yy;function _y(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}!function(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"}(py||(py={})),function(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"}(fy||(fy={})),function(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"}(hy||(hy={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(my||(my={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"}(gy||(gy={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"}(yy||(yy={}));const vy="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 by={map:{},getId:()=>(console.error(vy),-1),getNode:()=>(console.error(vy),null),removeNodeFromMap(){console.error(vy)},has:()=>(console.error(vy),!1),reset(){console.error(vy)}};function wy(e,t,n={}){let i=null,s=0;return function(a){let r=Date.now();s||!1!==n.leading||(s=r);let o=t-(r-s),c=this,l=arguments;o<=0||o>t?(i&&(clearTimeout(i),i=null),s=r,e.apply(c,l)):i||!1===n.trailing||(i=setTimeout((()=>{s=!1===n.leading?0:Date.now(),i=null,e.apply(c,l)}),o))}}function Iy(e,t,n,i,s=window){const a=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,i?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),a&&a.set&&a.set.call(this,e)}}),()=>Iy(e,t,a||{},!0)}function xy(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],s=n(i);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=s,()=>{e[t]=i}}catch(e){return()=>{}}}function Ey(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ay(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Sy(e,t,n,i){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let s=!1;const a=i&&e.matches(i);return"string"==typeof t?s=void 0!==e.closest?!a&&null!==e.closest("."+t):!a&&e.classList.contains(t):!a&&e.classList.forEach((e=>{t.test(e)&&(s=!0)})),!s&&n&&(s=e.matches(n)),!a&&s||Sy(e.parentNode,t,n,i)}return e.nodeType,e.TEXT_NODE,Sy(e.parentNode,t,n,i)}function ky(e){return"__sn"in e&&e.__sn.id===Yg}function Ty(e,t){if(Pg(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ty(e.parentNode,t))}function Ry(e){return Boolean(e.changedTouches)}function Ly(e){return"__sn"in e&&(e.__sn.type===jg.Element&&"iframe"===e.__sn.tagName)}function Cy(e){return Boolean(null==e?void 0:e.shadowRoot)}function Ny(e){return"__ln"in e}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(by=new Proxy(by,{get:(e,t,n)=>("map"===t&&console.error(vy),Reflect.get(e,t,n))}));class Oy{constructor(){this.length=0,this.head=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=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Ny(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&&Ny(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;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.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}const Uy=(e,t)=>`${e}@${t}`;function Fy(e){return"__sn"in e}class jy{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],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 Oy,n=e=>{let t=e,n=Yg;for(;n===Yg;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{var s,a,r,o,c;const l=i.getRootNode?null===(s=i.getRootNode())||void 0===s?void 0:s.host:null;let d=l;for(;null===(r=null===(a=null==d?void 0:d.getRootNode)||void 0===a?void 0:a.call(d))||void 0===r?void 0:r.host;)d=(null===(c=null===(o=null==d?void 0:d.getRootNode)||void 0===o?void 0:o.call(d))||void 0===c?void 0:c.host)||null;const u=!(this.doc.contains(i)||d&&this.doc.contains(d));if(!i.parentNode||u)return;const p=Pg(i.parentNode)?this.mirror.getId(l):this.mirror.getId(i.parentNode),f=n(i);if(-1===p||-1===f)return t.addNode(i);let h=dy(i,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Ly(e)&&this.iframeManager.addIframe(e),Cy(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,document)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)}});h&&e.push({parentId:p,nextId:f,node:h})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Dy(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)My(this.droppedSet,e)||Dy(this.removes,e,this.mirror)?My(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;t.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),i=n(s.value);-1!==t&&-1!==i&&(e=s)}if(!e)for(let i=t.length-1;i>=0;i--){const s=t.get(i);if(s){const t=this.mirror.getId(s.value.parentNode),i=n(s.value);if(-1!==t&&-1!==i){e=s;break}}}if(!e){for(;t.head;)t.removeNode(t.head.value);break}s=e.previous,t.removeNode(e.value),i(e.value)}const a={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>({id:this.mirror.getId(e.node),attributes:e.attributes}))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!ky(e.target))switch(e.type){case"characterData":{const t=e.target.textContent;Sy(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||t===e.oldValue||this.texts.push({value:oy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=t.getAttribute(e.attributeName);if("value"===e.attributeName&&(n=Mg({input:t,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:t.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),Sy(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===e.oldValue)return;let i=this.attributes.find((t=>t.node===e.target));if(i||(i={node:e.target,attributes:{}},this.attributes.push(i)),"type"===e.attributeName&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),"style"===e.attributeName){const n=this.doc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue),void 0!==i.attributes.style&&null!==i.attributes.style||(i.attributes.style={});try{const e=i.attributes.style;for(const i of Array.from(t.style)){const s=t.style.getPropertyValue(i),a=t.style.getPropertyPriority(i);s===n.style.getPropertyValue(i)&&a===n.style.getPropertyPriority(i)||(e[i]=""===a?s:[s,a])}for(const i of Array.from(n.style))""===t.style.getPropertyValue(i)&&(e[i]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else{const t=e.target;i.attributes[e.attributeName]=ry(this.doc,t,t.tagName,e.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),i=Pg(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Sy(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||ky(t)||(this.addedSet.has(t)?(Py(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Ty(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Uy(n,i)]?Py(this.movedSet,t):this.removes.push({parentId:i,id:n,isShadow:!!Pg(e.target)||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!t||!Sy(t,this.blockClass,this.blockSelector,this.unblockSelector)){if(Fy(e)){if(ky(e))return;this.movedSet.add(e);let n=null;t&&Fy(t)&&(n=t.__sn.id),n&&(this.movedMap[Uy(e.__sn.id,n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Sy(e,this.blockClass,this.blockSelector,this.unblockSelector)||e.childNodes.forEach((e=>this.genAdds(e)))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].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 Py(e,t){e.delete(t),t.childNodes.forEach((t=>Py(e,t)))}function Dy(e,t,n){const{parentNode:i}=t;if(!i)return!1;const s=n.getId(i);return!!e.some((e=>e.id===s))||Dy(e,i,n)}function My(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||My(e,n))}const zy=e=>(...t)=>{try{return e(...t)}catch(e){try{e.__rrweb__=!0}catch(e){}throw e}},By=[];function $y(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 qy(e,t){var n,i;const s=new jy;By.push(s),s.init(e);let a=window.MutationObserver||window.__rrMutationObserver;const r=null===(i=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===i?void 0:i.call(n,"MutationObserver");r&&window[r]&&(a=window[r]);const o=new a(zy((t=>{e.onMutation&&!1===e.onMutation(t)||s.processMutations(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Vy({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,sampling:r}){if(!1===r.mouseInteraction)return()=>{};const o=!0===r.mouseInteraction||void 0===r.mouseInteraction?{}:r.mouseInteraction,c=[];return Object.keys(hy).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((r=>{const o=r.toLowerCase(),l=zy((t=>r=>{const o=$y(r);if(Sy(o,i,s,a))return;const c=Ry(r)?r.changedTouches[0]:r;if(!c)return;const l=n.getId(o),{clientX:d,clientY:u}=c;zy(e)({type:hy[t],id:l,x:d,y:u})})(r));c.push(_y(o,l,t))})),zy((()=>{c.forEach((e=>e()))}))}function Yy({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,sampling:r}){const o=wy((r=>{const o=$y(r);if(!o||Sy(o,i,s,a))return;const c=n.getId(o);if(o===t){const n=t.scrollingElement||t.documentElement;zy(e)({id:c,x:n.scrollLeft,y:n.scrollTop})}else zy(e)({id:c,x:o.scrollLeft,y:o.scrollTop})}),r.scroll||100);return _y("scroll",zy(o),t)}function Gy(e,t){const n=Object.assign({},e);return t||delete n.userTriggered,n}const Hy=["INPUT","TEXTAREA","SELECT"],Wy=new WeakMap;function Ky({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,ignoreClass:r,ignoreSelector:o,maskInputSelector:c,unmaskInputSelector:l,maskInputOptions:d,maskInputFn:u,sampling:p,userTriggeredOnInput:f}){function h(e){let n=$y(e);const p=n&&n.tagName,h=e.isTrusted;if("OPTION"===p&&(n=n.parentElement),!n||!p||Hy.indexOf(p)<0||Sy(n,i,s,a))return;const g=n,y=Bg(g);if(g.classList.contains(r)||o&&g.matches(o))return;let _=$g(g,p,y),v=!1;"radio"!==y&&"checkbox"!==y||(v=n.checked),function({tagName:e,type:t,maskInputOptions:n,maskInputSelector:i}){return i||Dg({maskInputOptions:n,tagName:e,type:t})}({maskInputOptions:d,maskInputSelector:c,tagName:p,type:y})&&(_=Mg({input:g,maskInputOptions:d,maskInputSelector:c,unmaskInputSelector:l,tagName:p,type:y,value:_,maskInputFn:u})),m(n,zy(Gy)({text:_,isChecked:v,userTriggered:h},f));const b=n.name;"radio"===y&&b&&v&&t.querySelectorAll(`input[type="radio"][name="${b}"]`).forEach((e=>{if(e!==n){const t=Mg({input:e,maskInputOptions:d,maskInputSelector:c,unmaskInputSelector:l,tagName:p,type:y,value:$g(e,p,y),maskInputFn:u});m(e,zy(Gy)({text:t,isChecked:!v,userTriggered:!1},f))}}))}function m(t,i){const s=Wy.get(t);if(!s||s.text!==i.text||s.isChecked!==i.isChecked){Wy.set(t,i);const s=n.getId(t);e(Object.assign(Object.assign({},i),{id:s}))}}const g=("last"===p.input?["change"]:["input","change"]).map((e=>_y(e,zy(h),t))),y=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),_=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return y&&y.set&&g.push(..._.map((e=>Iy(e[0],e[1],{set(){zy(h)({target:this})}})))),zy((()=>{g.forEach((e=>e()))}))}function Zy(e){return function(e,t){if(Xy("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Xy("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Xy("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Xy("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else{const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Jy(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};!function(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:s,scrollCb:a,viewportResizeCb:r,inputCb:o,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:d,canvasMutationCb:u,fontCb:p}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),s(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),a(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),r(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),o(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),d(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),u(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)}}(e,t);const i=qy(e,e.doc),s=function({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let r,o=[];const c=wy((t=>{const n=Date.now()-r;zy(e)(o.map((e=>(e.timeOffset-=n,e))),t),o=[],r=null}),a),l=wy((e=>{const t=$y(e),{clientX:n,clientY:s}=Ry(e)?e.changedTouches[0]:e;r||(r=Date.now()),o.push({x:n,y:s,id:i.getId(t),timeOffset:Date.now()-r}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?fy.Drag:e instanceof MouseEvent?fy.MouseMove:fy.TouchMove)}),s,{trailing:!1}),d=[_y("mousemove",zy(l),n),_y("touchmove",zy(l),n),_y("drag",zy(l),n)];return zy((()=>{d.forEach((e=>e()))}))}(e),a=Vy(e),r=Yy(e),o=function({viewportResizeCb:e}){let t=-1,n=-1;const i=wy((()=>{const i=Ey(),s=Ay();t===i&&n===s||(zy(e)({width:Number(s),height:Number(i)}),t=i,n=s)}),200);return _y("resize",zy(i),window)}(e),c=Ky(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:i,mirror:s,sampling:a}){const r=r=>wy(zy((a=>{const o=$y(a);if(!o||Sy(o,t,n,i))return;const{currentTime:c,volume:l,muted:d}=o;e({type:r,id:s.getId(o),currentTime:c,volume:l,muted:d})})),a.media||500),o=[_y("play",r(0)),_y("pause",r(1)),_y("seeked",r(2)),_y("volumechange",r(3))];return zy((()=>{o.forEach((e=>e()))}))}(e),d=function({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:zy(((n,i,s)=>{const[a,r]=s,o=t.getId(i.ownerNode);return-1!==o&&e({id:o,adds:[{rule:a,index:r}]}),n.apply(i,s)}))});const s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:zy(((n,i,s)=>{const[a]=s,r=t.getId(i.ownerNode);return-1!==r&&e({id:r,removes:[{index:a}]}),n.apply(i,s)}))});const a={};Qy("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(Qy("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),Qy("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),Qy("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));const r={};return Object.entries(a).forEach((([n,i])=>{r[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(r[n].insertRule,{apply:zy(((n,i,s)=>{const[a,r]=s,o=t.getId(i.parentStyleSheet.ownerNode);return-1!==o&&e({id:o,adds:[{rule:a,index:[...Zy(i),r||0]}]}),n.apply(i,s)}))}),i.prototype.deleteRule=new Proxy(r[n].deleteRule,{apply:zy(((n,i,s)=>{const[a]=s,r=t.getId(i.parentStyleSheet.ownerNode);return-1!==r&&e({id:r,removes:[{index:[...Zy(i),a]}]}),n.apply(i,s)}))})})),zy((()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=s,Object.entries(a).forEach((([e,t])=>{t.prototype.insertRule=r[e].insertRule,t.prototype.deleteRule=r[e].deleteRule}))}))}(e,{win:n}),u=function({styleDeclarationCb:e,mirror:t},{win:n}){const i=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:zy(((n,i,s)=>{var a,r;const[o,c,l]=s,d=t.getId(null===(r=null===(a=i.parentRule)||void 0===a?void 0:a.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==d&&e({id:d,set:{property:o,value:c,priority:l},index:Zy(i.parentRule)}),n.apply(i,s)}))});const s=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:zy(((n,i,s)=>{var a,r;const[o]=s,c=t.getId(null===(r=null===(a=i.parentRule)||void 0===a?void 0:a.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==c&&e({id:c,remove:{property:o},index:Zy(i.parentRule)}),n.apply(i,s)}))}),zy((()=>{n.CSSStyleDeclaration.prototype.setProperty=i,n.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],s=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){const i=new a(e,t,n);return s.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};const r=xy(t.fonts,"add",(function(t){return function(n){return setTimeout((()=>{const t=s.get(n);t&&(e(t),s.delete(n))}),0),t.apply(this,[n])}}));return i.push((()=>{n.FontFace=a})),i.push(r),zy((()=>{i.forEach((e=>e()))}))}(e):()=>{},f=[];for(const t of e.plugins)f.push(t.observer(t.callback,n,t.options));return zy((()=>{By.forEach((e=>e.reset())),i.disconnect(),s(),a(),r(),o(),c(),l();try{d(),u()}catch(e){}p(),f.forEach((e=>e()))}))}function Xy(e){return void 0!==window[e]}function Qy(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class e_{constructor(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}addIframe(e){this.iframes.set(e,!0)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)}}class t_{constructor(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;const t=this;this.restorePatches.push(xy(HTMLElement.prototype,"attachShadow",(function(e){return function(){const n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(e,t){qy(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),Yy(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}observeAttachShadow(e){if(e.contentWindow){const t=this;this.restorePatches.push(xy(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const i=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),i}})))}}reset(){this.restorePatches.forEach((e=>e()))}}for(var n_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i_="undefined"==typeof Uint8Array?[]:new Uint8Array(256),s_=0;s_<64;s_++)i_[n_.charCodeAt(s_)]=s_;const a_=new Map;const r_=(e,t,n)=>{if(!e||!l_(e,t)&&"object"!=typeof e)return;const i=function(e,t){let n=a_.get(e);return n||(n=new Map,a_.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let s=i.indexOf(e);return-1===s&&(s=i.length,i.push(e)),s};function o_(e,t,n){if(e instanceof Array)return e.map((e=>o_(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),i=n.length,s="";for(t=0;t<i;t+=3)s+=n_[n[t]>>2],s+=n_[(3&n[t])<<4|n[t+1]>>4],s+=n_[(15&n[t+1])<<2|n[t+2]>>6],s+=n_[63&n[t+2]];return i%3==2?s=s.substring(0,s.length-1)+"=":i%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[o_(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[o_(e.data,t,n),e.width,e.height]}}if(l_(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:r_(e,t,n)}}return e}const c_=(e,t,n)=>[...e].map((e=>o_(e,t,n))),l_=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function d_(e,t,n,i,s,a,r,o){const c=[],l=Object.getOwnPropertyNames(e);for(const d of l)try{if("function"!=typeof e[d])continue;const l=xy(e,d,(function(c){return function(...l){const u=c.apply(this,l);if(r_(u,o,e),!Sy(this.canvas,i,a,s)){r.getId(this.canvas);const i=c_([...l],o,e),s={type:t,property:d,args:i};n(this.canvas,s)}return u}}));c.push(l)}catch(i){const s=Iy(e,d,{set(e){n(this.canvas,{type:t,property:d,args:[e],setter:!0})}});c.push(s)}return c}class u_{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass,e.blockSelector,e.unblockSelector)}initCanvasMutationObserver(e,t,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=function(e,t,n,i){const s=[];try{const a=xy(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(s,...a){return Sy(this,t,n,i)||"__context"in this||(this.__context=s),e.apply(this,[s,...a])}}));s.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach((e=>e()))}}(e,t,i,n),a=function(e,t,n,i,s,a){const r=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const o=xy(t.CanvasRenderingContext2D.prototype,a,(function(t){return function(...r){return Sy(this.canvas,n,s,i)||setTimeout((()=>{const t=[...r];if("drawImage"===a&&t[0]&&t[0]instanceof HTMLCanvasElement){const e=t[0],n=e.getContext("2d");let i=null==n?void 0:n.getImageData(0,0,e.width,e.height),s=null==i?void 0:i.data;t[0]=JSON.stringify(s)}e(this.canvas,{type:my["2D"],property:a,args:t})}),0),t.apply(this,r)}}));r.push(o)}catch(n){const i=Iy(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:my["2D"],property:a,args:[t],setter:!0})}});r.push(i)}return()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,i,n,this.mirror),r=function(e,t,n,i,s,a){const r=[];return r.push(...d_(t.WebGLRenderingContext.prototype,my.WebGL,e,n,i,s,a,t)),void 0!==t.WebGL2RenderingContext&&r.push(...d_(t.WebGL2RenderingContext.prototype,my.WebGL2,e,n,i,s,a,t)),()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,i,n,this.mirror);this.resetObservers=()=>{s(),a(),r()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const i=n.map((e=>{const t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]])}return n}(e,["type"]);return t})),{type:s}=n[0];this.mutationCb({id:t,type:s,commands:i}),this.pendingCanvasMutations.delete(e)}}function p_(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let f_,h_;const m_={map:{},getId:e=>e&&e.__sn?e.__sn.id:-1,getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}};function g_(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:r=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:d=null,maskInputSelector:u=null,unmaskTextSelector:p=null,unmaskInputSelector:f=null,inlineStylesheet:h=!0,maskAllText:m=!1,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:_,maskInputFn:v,maskTextFn:b,hooks:w,packFn:I,sampling:x={},mousemoveWait:E,recordCanvas:A=!1,userTriggeredOnInput:S=!1,collectFonts:k=!1,inlineImages:T=!1,plugins:R,keepIframeSrcFn:L=(()=>!1),onMutation:C}=e;if(!t)throw new Error("emit function is required");void 0!==E&&void 0===x.mousemove&&(x.mousemove=E);const N=!0===g?{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!==y?y:{},O=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};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=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let F=0;f_=(e,s)=>{var a;if(!(null===(a=By[0])||void 0===a?void 0:a.isFrozen())||e.type===py.FullSnapshot||e.type===py.IncrementalSnapshot&&e.data.source===fy.Mutation||By.forEach((e=>e.unfreeze())),t((e=>{for(const t of R||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&(e=I(e)),e})(e),s),e.type===py.FullSnapshot)U=e,F=0;else if(e.type===py.IncrementalSnapshot){if(e.data.source===fy.Mutation&&e.data.isAttachIframe)return;F++;const t=i&&F>=i,s=n&&e.timestamp-U.timestamp>n;(t||s)&&h_(!0)}};const j=e=>{f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.Mutation},e)}))},P=e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.Scroll},e)})),D=e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.CanvasMutation},e)})),M=new e_({mutationCb:j}),z=new u_({recordCanvas:A,mutationCb:D,win:window,blockClass:s,blockSelector:a,unblockSelector:r,mirror:m_}),B=new t_({mutationCb:j,scrollCb:P,bypassOptions:{onMutation:C,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskInputSelector:u,unmaskInputSelector:f,inlineStylesheet:h,maskAllText:m,maskInputOptions:N,maskTextFn:b,maskInputFn:v,recordCanvas:A,inlineImages:T,sampling:x,slimDOMOptions:O,iframeManager:M,canvasManager:z},mirror:m_});h_=(e=!1)=>{var t,n,i,o;f_(p_({type:py.Meta,data:{href:window.location.href,width:Ay(),height:Ey()}}),e),By.forEach((e=>e.lock()));const[c,g]=function(e,t){const{blockClass:n="rr-block",blockSelector:i=null,unblockSelector:s=null,maskTextClass:a="rr-mask",maskTextSelector:r=null,unmaskTextSelector:o=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:d=!1,maskInputSelector:u=null,unmaskInputSelector:p=null,maskAllText:f=!1,maskAllInputs:h=!1,maskTextFn:m,maskInputFn:g,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:I,keepIframeSrcFn:x=(()=>!1)}=t||{},E={};return[dy(e,{doc:e,map:E,blockClass:n,blockSelector:i,unblockSelector:s,maskTextClass:a,maskTextSelector:r,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:c,maskInputSelector:u,unmaskInputSelector:p,maskAllText:f,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,maskTextFn:m,maskInputFn:g,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:_,inlineImages:l,recordCanvas:d,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:I,keepIframeSrcFn:x}),E]}(document,{blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskInputSelector:u,unmaskInputSelector:f,inlineStylesheet:h,maskAllText:m,maskAllInputs:N,maskTextFn:b,slimDOM:O,recordCanvas:A,inlineImages:T,onSerialize:e=>{Ly(e)&&M.addIframe(e),Cy(e)&&B.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{M.attachIframe(e,t),B.observeAttachShadow(e)},keepIframeSrcFn:L});if(!c)return console.warn("Failed to snapshot the document");m_.map=g,f_(p_({type:py.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.parentElement)||void 0===o?void 0:o.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),By.forEach((e=>e.unlock()))};try{const e=[];e.push(_y("DOMContentLoaded",(()=>{f_(p_({type:py.DomContentLoaded,data:{}}))})));const t=e=>{var t;return zy(Jy)({onMutation:C,mutationCb:j,mousemoveCb:(e,t)=>f_(p_({type:py.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.MouseInteraction},e)})),scrollCb:P,viewportResizeCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.ViewportResize},e)})),inputCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.Input},e)})),mediaInteractionCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.MediaInteraction},e)})),styleSheetRuleCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.StyleSheetRule},e)})),styleDeclarationCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.StyleDeclaration},e)})),canvasMutationCb:D,fontCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.Font},e)})),blockClass:s,ignoreClass:o,ignoreSelector:c,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskInputSelector:u,unmaskInputSelector:f,maskInputOptions:N,inlineStylesheet:h,sampling:x,recordCanvas:A,inlineImages:T,userTriggeredOnInput:S,collectFonts:k,doc:e,maskAllText:m,maskInputFn:v,maskTextFn:b,blockSelector:a,unblockSelector:r,slimDOMOptions:O,mirror:m_,iframeManager:M,shadowDomManager:B,canvasManager:z,plugins:(null===(t=null==R?void 0:R.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>f_(p_({type:py.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},w)};M.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{h_(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():e.push(_y("load",(()=>{f_(p_({type:py.Load,data:{}})),n()}),window)),()=>{e.forEach((e=>e()))}}catch(e){console.warn(e)}}function y_(e){return e>9999999999?e:1e3*e}function __(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:py.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:$f(t,10,1e3)}}),"console"===t.category))))}g_.addCustomEvent=(e,t)=>{if(!f_)throw new Error("please add custom event after start recording");f_(p_({type:py.Custom,data:{tag:e,payload:t}}))},g_.freezePage=()=>{By.forEach((e=>e.freeze()))},g_.takeFullSnapshot=e=>{if(!h_)throw new Error("please take full snapshot after start recording");h_(e)},g_.mirror=m_;const v_="button,a";function b_(e){const t=w_(e);if(!(t&&t instanceof Element))return t;return t.closest(v_)||t}function w_(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let I_;function x_(e){return I_||(I_=[],Xp(Tg,"open",(function(e){return function(...t){if(I_)try{I_.forEach((e=>e()))}catch(e){}return e.apply(Tg,t)}}))),I_.push(e),()=>{const t=I_?I_.indexOf(e):-1;t>-1&&I_.splice(t,1)}}class E_{constructor(e,t,n=__){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=()=>{this._lastScroll=S_()},t=x_((()=>{this._lastMutation=S_()})),n=e=>{if(!e.target)return;const t=b_(e);t&&this._handleMultiClick(t)},i=new MutationObserver((()=>{this._lastMutation=S_()}));i.observe(Tg.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),Tg.addEventListener("scroll",e,{passive:!0}),Tg.addEventListener("click",n,{passive:!0}),this._teardown=()=>{Tg.removeEventListener("scroll",e),Tg.removeEventListener("click",n),t(),i.disconnect(),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(!A_.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:(i=e.timestamp,i>9999999999?i/1e3:i),clickBreadcrumb:e,clickCount:0,node:t};var i;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())}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=S_();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._scollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!i,{clickCount:a,clickBreadcrumb:r}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),i=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.slowClickDetected",data:{...r.data,url:Tg.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:i,clickCount:a||1}};this._addBreadcrumbEvent(t,s)}else if(a>1){const e={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.multiClick",data:{...r.data,url:Tg.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const A_=["A","BUTTON","INPUT"];function S_(){return Date.now()/1e3}function k_(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var T_;!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"}(T_||(T_={}));const R_=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function L_(e){const t={};for(const n in e)if(R_.has(n)){let i=n;"data-testid"!==n&&"data-test-id"!==n||(i="testId"),t[i]=e[n]}return t}const C_=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?b_(e.event):w_(e.event),n=Bp(i,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:i,message:n}}(e);return k_({category:`ui.${e.name}`,...N_(t,n)})}(t);if(!n)return;const i="click"===t.name,s=i&&t.event;var a,r,o;!(i&&e.clickDetector&&s)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(a=e.clickDetector,r=n,o=b_(t.event),a.handleClick(r,o)),__(e,n)};function N_(e,t){const n=e&&"__sn"in e&&e.__sn.type===T_.Element?e.__sn:null;return{message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:e?Array.from(e.childNodes).map((e=>"__sn"in e&&e.__sn.type===T_.Text&&e.__sn.textContent)).filter(Boolean).map((e=>e.trim())).join(""):"",attributes:L_(n.attributes)}}:{}}}function O_(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:i,altKey:s,key:a,target:r}=e;if(!r||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(r)||!a)return null;const o=t||i||s,c=1===a.length;if(!o&&c)return null;const l=Bp(r,{maxStringLength:200})||"<unknown>",d=N_(r,l);return k_({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:i,altKey:s,key:a}})}(t);n&&__(e,n)}const U_=["name","type","startTime","transferSize","duration"];function F_(e){return function(t){return U_.every((n=>e[n]===t[n]))}}function j_(e){const t=new PerformanceObserver((t=>{const n=function(e,t){const[n,i,s]=e.reduce(((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e)),[[],[],[]]),a=[],r=[];let o=i.length?i[i.length-1]:void 0;return t.forEach((e=>{if("largest-contentful-paint"!==e.entryType)if("navigation"!==e.entryType)a.push(e);else{const t=e;e.duration>0&&!n.find(F_(t))&&!r.find(F_(t))&&r.push(t)}else(!o||o.startTime<e.startTime)&&(o=e)})),[...o?[o]:[],...n,...s,...a,...r].sort(((e,t)=>e.startTime-t.startTime))}(e.performanceEvents,t.getEntries());e.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((e=>{try{t.observe({type:e,buffered:!0})}catch(e){}})),t}const P_='/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function D_(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Gp.info(e),t&&z_(e))}function M_(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Gp.info(e),t&&setTimeout((()=>{z_(e)}),0))}function z_(e){Mh().addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class B_ extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class $_{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!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>Ug)throw new B_;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?y_(e):null}}class q_{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(){D_("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((i,s)=>{const a=({data:t})=>{const r=t;if(r.method===e&&r.id===n){if(this._worker.removeEventListener("message",a),!r.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay]",r.response),void s(new Error("Error in compression worker"));i(r.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class V_{constructor(e){this._worker=new q_(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=y_(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Ug?Promise.reject(new B_):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}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 Y_{constructor(e){this._fallback=new $_,this._compression=new V_(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}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}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 D_("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("[Replay] Failed to add events when switching buffers.",e)}}}function G_({useCompression:e}){if(e&&window.Worker)try{const e=function(){const e=new Blob([P_]);return URL.createObjectURL(e)}();D_("[Replay] Using compression worker");const t=new Worker(e);return new Y_(t)}catch(e){D_("[Replay] Failed to create compression worker")}return D_("[Replay] Using simple buffer"),new $_}function H_(){try{return"sessionStorage"in Tg&&!!Tg.sessionStorage}catch(e){return!1}}function W_(e){!function(){if(!H_())return;try{Tg.sessionStorage.removeItem(Rg)}catch(e){}}(),e.session=void 0}function K_(e){return void 0!==e&&Math.random()<e}function Z_(e){if(H_())try{Tg.sessionStorage.setItem(Rg,JSON.stringify(e))}catch(e){}}function J_(e){const t=Date.now();return{id:e.id||Uf(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function X_({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:i}={}){const s=function(e,t){return K_(e)?"session":!!t&&"buffer"}(e,t),a=J_({sampled:s,previousSessionId:i});return n&&Z_(a),a}function Q_(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function ev(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:i=Date.now()}){return Q_(e.started,t,i)||Q_(e.lastActivity,n,i)}function tv(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!ev(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function nv({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:i},s){const a=s.stickySession&&function(e){if(!H_())return null;try{const t=Tg.sessionStorage.getItem(Rg);if(!t)return null;const n=JSON.parse(t);return M_("[Replay] Loading existing session",e),J_(n)}catch(e){return null}}(e);return a?tv(a,{sessionIdleExpire:t,maxReplayDuration:n})?(M_("[Replay] Session in sessionStorage is expired, creating new one..."),X_(s,{previousSessionId:a.id})):a:(M_("[Replay] Creating new session",e),X_(s,{previousSessionId:i}))}function iv(e,t,n){return!!av(e,t)&&(sv(e,t,n),!0)}async function sv(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===py.Custom}(e))return t(e)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(t){const n=t&&t instanceof B_?"addEventSizeExceeded":"addEvent";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(t),await e.stop({reason:n});const i=Mh().getClient();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function av(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=y_(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(D_(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function rv(e){return!e.type}function ov(e){return"transaction"===e.type}function cv(e){const t=function(){const e=Mh().getClient();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,i)=>{if(!e.isEnabled()||!rv(n)&&!ov(n))return;const s=i&&i.statusCode;t&&(!s||s<200||s>=300)||(ov(n)?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,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);"buffer"===e.recordingMode&&t.tags&&t.tags.replayId&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function lv(e,t=!1){const n=t?cv(e):void 0;return(t,i)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!rv(t)&&!ov(t))return t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&(!(!t.originalException||!t.originalException.__rrweb__)||e.exception.values.some((e=>!!(e.stacktrace&&e.stacktrace.frames&&e.stacktrace.frames.length)&&e.stacktrace.frames.some((e=>e.filename&&e.filename.includes("/rrweb/src/"))))))}(t,i)&&!e.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Replay] Ignoring error from rrweb internals",t),null;const s=function(e,t){return"buffer"===e.recordingMode&&t.message!==Cg&&!(!t.exception||t.type)&&K_(e.getOptions().errorSampleRate)}(e,t);return(s||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}}function dv(e,t){return t.map((({type:t,start:n,end:i,name:s,data:a})=>{const r=e.throttledAddEvent({type:py.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:i,data:a}}});return"string"==typeof r?Promise.resolve(null):r}))}function uv(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((()=>(dv(e,[n]),!1))))}}function pv(e,t){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!e.getOptions()._experiments.traceInternals)&&function(e){const t=Mh().getClient(),n=t&&t.getDsn();return!!n&&e.includes(n.host)}(t)}function fv(e,t){e.isEnabled()&&null!==t&&(pv(e,t.name)||e.addUpdate((()=>(dv(e,[t]),!0))))}function hv(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:i}=e,s=i[vf];if(!t||!n||!s)return null;const{method:a,url:r,status_code:o}=s;return void 0===r?null:{type:"resource.xhr",name:r,start:t/1e3,end:n/1e3,data:{method:a,statusCode:o}}}(t);fv(e,n)}}const mv=10,gv=11,yv=12,_v=13,vv=14,bv=15,wv=20,Iv=21,xv=22,Ev=23,Av=["true","false","null"];function Sv(e,t){if(!t.length)return e;let n=e;const i=t.length-1;n=function(e,t){switch(t){case mv:return`${e}"~~":"~~"`;case gv:return`${e}:"~~"`;case yv:return`${e}~~":"~~"`;case _v:return function(e){const t=e.lastIndexOf(":"),n=e.slice(t+1);if(Av.includes(n.trim()))return`${e},"~~":"~~"`;return`${e.slice(0,t+1)}"~~"`}(e);case vv:return`${e}~~"`;case bv:return`${e},"~~":"~~"`;case wv:return`${e}"~~"`;case Iv:return function(e){const t=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(","===n||"["===n)return t}return-1}(e);if(t>-1){const n=e.slice(t+1);return Av.includes(n.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}(e);case xv:return`${e}~~"`;case Ev:return`${e},"~~"`}return e}(n,t[i]);for(let e=i;e>=0;e--){switch(t[e]){case mv:n=`${n}}`;break;case wv:n=`${n}]`}}return n}function kv(e,t,n){const i=e[e.length-1],s=t[n];if(!/\s/.test(s))if('"'!==s||Tv(t,n))switch(s){case"{":!function(e,t){if(!t)return void e.push(mv);if(t===_v)return void e.push(mv);t===Iv&&e.push(mv);if(t===wv)e.push(mv)}(e,i);break;case"[":!function(e,t){if(!t)return e.push(wv),void e.push(Iv);if(t===_v)return e.push(wv),void e.push(Iv);t===Iv&&(e.push(wv),e.push(Iv));if(t===wv)e.push(wv),e.push(Iv)}(e,i);break;case":":!function(e,t){t===gv&&(e.pop(),e.push(_v))}(e,i);break;case",":!function(e,t){if(t===_v)return void e.pop();if(t===bv)return e.pop(),void e.pop();if(t===Iv)return;if(t===Ev)e.pop()}(e,i);break;case"}":!function(e,t){t===mv&&e.pop();t===_v&&(e.pop(),e.pop());t===bv&&(e.pop(),e.pop(),e.pop());e[e.length-1]===_v&&e.push(bv);e[e.length-1]===Iv&&e.push(Ev)}(e,i);break;case"]":!function(e,t){t===wv&&e.pop();t===Iv&&(e.pop(),e.pop());t===Ev&&(e.pop(),e.pop(),e.pop());e[e.length-1]===_v&&e.push(bv);e[e.length-1]===Iv&&e.push(Ev)}(e,i)}else!function(e,t){if(t===vv)return e.pop(),void e.push(bv);if(t===xv)return e.pop(),void e.push(Ev);if(t===_v)return void e.push(vv);if(t===Iv)return void e.push(xv);if(t===mv)return void e.push(yv);if(t===yv)e.pop(),e.push(gv)}(e,i)}function Tv(e,t){return"\\"===e[t-1]&&!Tv(e,t-1)}function Rv(e){return Sv(e,function(e){const t=[];for(let n=0;n<e.length;n++)kv(t,e,n);return t}(e))}function Lv(e,t){if(e)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=Pv(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Cv(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Nv(e){return"string"==typeof e?e:e instanceof URLSearchParams?e.toString():e instanceof FormData?Pv(e):void 0}function Ov(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:i,url:s,method:a,statusCode:r,request:o,response:c}=t;return{type:e,start:n/1e3,end:i/1e3,name:s,data:rf({method:a,statusCode:r,request:o,response:c})}}function Uv(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Fv(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:s,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e,warnings:[]};const t=e.length>Ng;if(function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e))try{const n=t?Rv(e.slice(0,Ng)):e;return{body:JSON.parse(n),warnings:t?["JSON_TRUNCATED"]:[]}}catch(n){return{body:t?`${e.slice(0,Ng)}…`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,Ng)}…`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}(n);return i.body=s,a.length>0&&(i._meta={warnings:a}),i}function jv(e,t){return Object.keys(e).reduce(((n,i)=>{const s=i.toLowerCase();return t.includes(s)&&e[i]&&(n[s]=e[i]),n}),{})}function Pv(e){return new URLSearchParams(e).toString()}function Dv(e,t){const n=function(e,t=Tg.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Tg.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 Lp(n,t)}async function Mv(e,t,n){try{const i=await async function(e,t,n){const{startTimestamp:i,endTimestamp:s}=t,{url:a,method:r,status_code:o=0,request_body_size:c,response_body_size:l}=e.data,d=Dv(a,n.networkDetailAllowUrls)&&!Dv(a,n.networkDetailDenyUrls),u=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,i){const s=function(e,t){if(1===e.length&&"string"!=typeof e[0])return $v(e[0],t);if(2===e.length)return $v(e[1],t);return{}}(n,t);if(!e)return Fv(s,i,void 0);const a=Nv(zv(n));return Fv(s,i,a)}(n,t.input,c):Uv(c),p=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:i},s,a){if(!e&&void 0!==a)return Uv(a);const r=Bv(s.headers,i);if(!t&&void 0!==a)return Fv(r,a,void 0);try{const i=s.clone(),o=await async function(e){try{return await e.text()}catch(e){return}}(i),c=o&&o.length&&void 0===a?Lv(o,n):a;return e?Fv(r,c,t?o:void 0):Uv(c)}catch(e){return Fv(r,a,void 0)}}(d,n,t.response,l);return{startTimestamp:i,endTimestamp:s,url:a,method:r,statusCode:o,request:u,response:p}}(e,t,n),s=Ov("resource.fetch",i);fv(n.replay,s)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] Failed to capture fetch breadcrumb",e)}}function zv(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Bv(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function $v(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Bv(n,t):Array.isArray(n)?{}:jv(n,t):{}}async function qv(e,t,n){try{const i=function(e,t,n){const{startTimestamp:i,endTimestamp:s,input:a,xhr:r}=t,{url:o,method:c,status_code:l=0,request_body_size:d,response_body_size:u}=e.data;if(!o)return null;if(!Dv(o,n.networkDetailAllowUrls)||Dv(o,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:s,url:o,method:c,statusCode:l,request:Uv(d),response:Uv(u)}}const p=r[vf],f=p?jv(p.request_headers,n.networkRequestHeaders):{},h=jv(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,i]=t.split(": ");return e[n.toLowerCase()]=i,e}),{})}(r),n.networkResponseHeaders),m=Fv(f,d,n.networkCaptureBodies?Nv(a):void 0),g=Fv(h,u,n.networkCaptureBodies?t.xhr.responseText:void 0);return{startTimestamp:i,endTimestamp:s,url:o,method:c,statusCode:l,request:m,response:g}}(e,t,n),s=Ov("resource.xhr",i);fv(n.replay,s)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] Failed to capture fetch breadcrumb",e)}}function Vv(e){const t=Mh().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:i,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:i,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o};t&&t.on?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)&&(!function(e,t,n){const{xhr:i,input:s}=t,a=Lv(s,n.textEncoder),r=i.getResponseHeader("content-length")?Cv(i.getResponseHeader("content-length")):Lv(i.response,n.textEncoder);void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),qv(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:i,response:s}=t,a=Lv(zv(i),n.textEncoder),r=s?Cv(s.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),Mv(t,n,e))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Error when enriching network breadcrumb")}}(c,e,t))):(xf("fetch",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:i,response:s}=e;if(!n)return null;const{method:a,url:r}=i;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r,data:{method:a,statusCode:s?s.status:void 0}}}(t);fv(e,n)}}(e)),xf("xhr",hv(e)))}catch(e){}}let Yv=null;const Gv=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Yv===t||!t)return null;if(Yv=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return k_(e);let n=!1;const i=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Og?(n=!0,`${e.slice(0,Og)}…`):e;if("object"==typeof e)try{const t=$f(e,7),i=JSON.stringify(t);if(i.length>Og){const e=Rv(i.slice(0,Og)),t=JSON.parse(e);return n=!0,t}return t}catch(e){}return e}));return k_({...e,data:{...e.data,arguments:i,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return k_(t)}(t);n&&__(e,n)};function Hv(e){return!(!e||!e.on)}function Wv(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}}}}const Kv={resource:function(e){const{entryType:t,initiatorType:n,name:i,responseEnd:s,startTime:a,decodedBodySize:r,encodedBodySize:o,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:Jv(a),end:Jv(s),name:i,data:{size:l,statusCode:c,decodedBodySize:r,encodedBodySize:o}}},paint:function(e){const{duration:t,entryType:n,name:i,startTime:s}=e,a=Jv(s);return{type:n,name:i,start:a,end:a+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:i,duration:s,domComplete:a,encodedBodySize:r,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:d,loadEventEnd:u,redirectCount:p,startTime:f,transferSize:h,type:m}=e;if(0===s)return null;return{type:`${t}.${m}`,start:Jv(f),end:Jv(a),name:n,data:{size:h,decodedBodySize:i,encodedBodySize:r,duration:s,domInteractive:l,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:u,domComplete:a,redirectCount:p}}},"largest-contentful-paint":function(e){const{entryType:t,startTime:n,size:i}=e;let s=0;if(Tg.performance){const e=Tg.performance.getEntriesByType("navigation")[0];s=e&&e.activationStart||0}const a=Math.max(n-s,0),r=Jv(s)+a/1e3;return{type:t,name:t,start:r,end:r,data:{value:a,size:i,nodeId:g_.mirror.getId(e.element)}}}};function Zv(e){return void 0===Kv[e.entryType]?null:Kv[e.entryType](e)}function Jv(e){return((sh||Tg.performance.timeOrigin)+e)/1e3}function Xv(e){let t=!1;return(n,i)=>{if(!e.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("[Replay] Received replay event after session expired."));const s=i||!t;t=!0,e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!iv(e,n,s))return!0;if(!s)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;iv(e,function(e){const t=e.getOptions();return{type:py.Custom,timestamp:Date.now(),data:{tag:"options",payload:{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,s),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(D_(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Z_(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function Qv({recordingData:e,replayId:t,segmentId:n,eventContext:i,timestamp:s,session:a}){const r=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:o,errorIds:c,traceIds:l,initialTimestamp:d}=i,u=Mh(),p=u.getClient(),f=u.getScope(),h=p&&p.getTransport(),m=p&&p.getDsn();if(!(p&&h&&m&&a.sampled))return;const g={type:Lg,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:o,replay_id:t,segment_id:n,replay_type:a.sampled},y=await async function({client:e,scope:t,replayId:n,event:i}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",i,s);const a=await um(e.getOptions(),i,s,t,e);if(!a)return null;a.platform=a.platform||"javascript";const r=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:c}=r&&r.sdk||{};return a.sdk={...a.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},a}({scope:f,client:p,replayId:t,event:g});if(!y)return p.recordDroppedEvent("event_processor","replay",g),void D_("An event processor returned `null`, will not send event.");delete y.sdkProcessingMetadata;const _=function(e,t,n,i){return hh(xh(e,Ih(e),i,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(y,r,m,p.getOptions().tunnel);let v;try{v=await h.send(_)}catch(e){const t=new Error(Cg);try{t.cause=e}catch(e){}throw t}if(!v)return v;if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new eb(v.statusCode);return v}class eb extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function tb(e,t={count:0,interval:5e3}){const{recordingData:n,options:i}=e;var s,a;if(n.length)try{return await Qv(e),!0}catch(n){if(n instanceof eb)throw n;if(s="Replays",a={_retryCount:t.count},Mh().setContext(s,a),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i._experiments&&i._experiments.captureExceptions&&am(n),t.count>=3){const e=new Error(`${Cg} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,i)=>{setTimeout((async()=>{try{await tb(e,t),n(!0)}catch(e){i(e)}}),t.interval)}))}}const nb="__THROTTLED";function ib(e,t,n){const i=new Map;let s=!1;return(...a)=>{const r=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;i.forEach(((e,n)=>{n<t&&i.delete(n)}))})(r),[...i.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":nb}s=!1;const o=i.get(r)||0;return i.set(r,o+1),e(...a)}}class sb{constructor({options:e,recordingOptions:t}){sb.prototype.__init.call(this),sb.prototype.__init2.call(this),sb.prototype.__init3.call(this),sb.prototype.__init4.call(this),sb.prototype.__init5.call(this),sb.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEvents=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!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,s,a;const r=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return c(),i=e(),i}function c(){void 0!==s&&clearTimeout(s),void 0!==a&&clearTimeout(a),s=a=void 0}function l(){return s&&clearTimeout(s),s=setTimeout(o,t),r&&void 0===a&&(a=setTimeout(o,r)),i}return l.cancel=c,l.flush=function(){return void 0!==s||void 0!==a?o():i},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ib(((e,t)=>function(e,t,n){return av(e,t)?sv(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;s&&(this.clickDetector=new E_(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",M_(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");M_("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=nv({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");M_("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=nv({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=g_({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Xv(this),onMutation:this._onMutationHandler})}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{D_("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,W_(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),D_("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),D_("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();D_("[Replay] Converting buffer to session",this._options._experiments.traceInternals),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&&Q_(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Tg.location.pathname}${Tg.location.hash}${Tg.location.search}`,t=`${Tg.location.origin}${e}`;this.performanceEvents=[],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===nb){const e=k_({category:"replay.throttled"});this.addUpdate((()=>!iv(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||Mh().getScope().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=G_({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay]",e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&am(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=nv({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,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!tv(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{Tg.document.addEventListener("visibilitychange",this._handleVisibilityChange),Tg.addEventListener("blur",this._handleWindowBlur),Tg.addEventListener("focus",this._handleWindowFocus),Tg.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=Mh().getScope(),n=Mh().getClient();t.addScopeListener(Gv(e)),xf("dom",C_(e)),xf("history",uv(e)),Vv(e),Th(lv(e,!Hv(n))),Hv(n)&&(n.on("afterSendEvent",cv(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in Tg&&(this._performanceObserver=j_(this))}_removeListeners(){try{Tg.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Tg.removeEventListener("blur",this._handleWindowBlur),Tg.removeEventListener("focus",this._handleWindowFocus),Tg.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=void 0)}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Tg.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=k_({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=k_({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{O_(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;ev(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):D_("[Replay] Document has become active, but session has expired")}_triggerFullSnapshot(e=!0){try{D_("[Replay] Taking full rrweb snapshot"),g_.takeFullSnapshot(e)}catch(e){this._handleException(e)}}_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:py.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(dv(this,function(e){return e.map(Zv).filter(Boolean)}(e)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)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(dv(e,[Wv(Tg.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 s=await this.eventBuffer.finish();await tb({replayId:e,recordingData:s,segmentId:i,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Mh().getClient();t&&t.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] No session found to flush."));const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const i=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(i||s)return D_(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(i&&this._debouncedFlush());const a=this.eventBuffer;if(a&&0===this.session.segmentId&&!a.hasCheckout&&D_("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Z_(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=k_({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ab(e,t,n,i){const s=[...e,..."string"==typeof i?i.split(","):[],...t];return void 0!==n&&("string"==typeof n&&s.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),s.join(",")}function rb({mask:e,unmask:t,block:n,unblock:i,ignore:s,blockClass:a,blockSelector:r,maskTextClass:o,maskTextSelector:c,ignoreClass:l}){const d=ab(e,[".sentry-mask","[data-sentry-mask]"],o,c),u=ab(t,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:d,unmaskTextSelector:u,maskInputSelector:d,unmaskInputSelector:u,blockSelector:ab(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,r),unblockSelector:ab(i,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:ab(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return a instanceof RegExp&&(p.blockClass=a),o instanceof RegExp&&(p.maskTextClass=o),p}function ob(){return"undefined"!=typeof window&&(!Bf()||"undefined"!=typeof process&&"renderer"===process.type)}const cb='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lb=["content-length","content-type","accept"];let db=!1;class ub{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:i=36e5,stickySession:s=!0,useCompression:a=!0,_experiments:r={},sessionSampleRate:o,errorSampleRate:c,maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],unmask:I=[],block:x=[],unblock:E=[],ignore:A=[],maskFn:S,beforeAddRecordingEvent:k,blockClass:T,blockSelector:R,maskInputOptions:L,maskTextClass:C,maskTextSelector:N,ignoreClass:O}={}){if(this.name=ub.id,this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{...L||{},password:!0},maskTextFn:S,maskInputFn:S,...rb({mask:w,unmask:I,block:x,unblock:E,ignore:A,blockClass:T,blockSelector:R,maskTextClass:C,maskTextSelector:N,ignoreClass:O}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(i,Fg),stickySession:s,sessionSampleRate:o,errorSampleRate:c,useCompression:a,blockAllMedia:u,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:_,networkRequestHeaders:pb(v),networkResponseHeaders:pb(b),beforeAddRecordingEvent:k,_experiments:r},"number"==typeof o&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof c&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${cb}`:cb),this._isInitialized&&ob())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return db}set _isInitialized(e){db=e}setupOnce(){ob()&&(this._setup(),setTimeout((()=>this._initialize())))}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):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const e=function(e){const t=Mh().getClient(),n=t&&t.getOptions(),i={sessionSampleRate:0,errorSampleRate:0,...rf(e)};if(!n)return console.warn("SDK client is not available."),i;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.");"number"==typeof n.replaysSessionSampleRate&&(i.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(i.errorSampleRate=n.replaysOnErrorSampleRate);return i}(this._initialOptions);this._replay=new sb({options:e,recordingOptions:this._recordingOptions})}}function pb(e){return[...lb,...e.map((e=>e.toLowerCase()))]}ub.__initStatic();const fb=jp;const hb=(e,t,n)=>{let i,s;return a=>{t.value>=0&&(a||n)&&(s=t.value-(i||0),(s||void 0===i)&&(i=t.value,t.delta=s,e(t)))}},mb=()=>fb.__WEB_VITALS_POLYFILL__?fb.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=fb.performance.timing,t=fb.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):fb.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],gb=()=>{const e=mb();return e&&e.activationStart||0},yb=(e,t)=>{const n=mb();let i="navigate";return n&&(i=fb.document.prerendering||gb()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},_b=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{t(e.getEntries())}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},vb=(e,t)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==fb.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},bb=e=>{const t=yb("CLS",0);let n,i=0,s=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const a=s[0],r=s[s.length-1];i&&0!==s.length&&e.startTime-r.startTime<1e3&&e.startTime-a.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e]),i>t.value&&(t.value=i,t.entries=s,n&&n())}}))},r=_b("layout-shift",a);if(r){n=hb(e,t);const i=()=>{a(r.takeRecords()),n(!0)};return vb(i),i}};let wb=-1;const Ib=()=>(wb<0&&(wb="hidden"!==fb.document.visibilityState||fb.document.prerendering?1/0:0,vb((({timeStamp:e})=>{wb=e}),!0)),{get firstHiddenTime(){return wb}}),xb=e=>{const t=Ib(),n=yb("FID");let i;const s=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),i(!0))},a=e=>{e.forEach(s)},r=_b("first-input",a);i=hb(e,n),r&&vb((()=>{a(r.takeRecords()),r.disconnect()}),!0)},Eb={},Ab=e=>{const t=Ib(),n=yb("LCP");let i;const s=e=>{const s=e[e.length-1];if(s){const e=Math.max(s.startTime-gb(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[s],i())}},a=_b("largest-contentful-paint",s);if(a){i=hb(e,n);const t=()=>{Eb[n.id]||(s(a.takeRecords()),a.disconnect(),Eb[n.id]=!0,i(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),vb(t,!0),t}};function Sb(e){return"number"==typeof e&&isFinite(e)}function kb(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function Tb(e){return e/1e3}function Rb(){return fb&&fb.addEventListener&&fb.performance}let Lb,Cb,Nb=0,Ob={};function Ub(){const e=Rb();if(e&&sh){e.mark&&fb.performance.mark("sentry-tracing-init"),xb((e=>{const t=e.entries.pop();if(!t)return;const n=Tb(sh),i=Tb(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding FID"),Ob.fid={value:e.value,unit:"millisecond"},Ob["mark.fid"]={value:n+i,unit:"second"}}));const t=bb((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding CLS"),Ob.cls={value:e.value,unit:""},Cb=t)})),n=Ab((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding LCP"),Ob.lcp={value:e.value,unit:"millisecond"},Lb=t)}));return()=>{t&&t(),n&&n()}}return()=>{}}function Fb(e){const t=Rb();if(!t||!fb.performance.getEntries||!sh)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] Adding & adjusting spans using Performance API");const n=Tb(sh),i=t.getEntries();let s,a;if(i.slice(Nb).forEach((t=>{const i=Tb(t.startTime),r=Tb(t.duration);if(!("navigation"===e.op&&n+i<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{jb(e,t,i,n)})),jb(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),jb(e,t,"fetch",n,"cache","domainLookupStart"),jb(e,t,"domainLookup",n,"DNS"),function(e,t,n){kb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Tb(t.requestStart),endTimestamp:n+Tb(t.responseEnd)}),kb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Tb(t.responseStart),endTimestamp:n+Tb(t.responseEnd)})}(e,t,n)}(e,t,n),s=n+Tb(t.responseStart),a=n+Tb(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,i,s){const a=s+n,r=a+i;kb(e,{description:t.name,endTimestamp:r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})}(e,t,i,r,n);const s=Ib(),a=t.startTime<s.firstHiddenTime;"first-paint"===t.name&&a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding FP"),Ob.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding FCP"),Ob.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":{const s=t.name.replace(fb.location.origin,"");!function(e,t,n,i,s,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const r={};"transferSize"in t&&(r["http.response_transfer_size"]=t.transferSize);"encodedBodySize"in t&&(r["http.response_content_length"]=t.encodedBodySize);"decodedBodySize"in t&&(r["http.decoded_response_content_length"]=t.decodedBodySize);"renderBlockingStatus"in t&&(r["resource.render_blocking_status"]=t.renderBlockingStatus);const o=a+i,c=o+s;kb(e,{description:n,endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:o,data:r})}(e,t,s,i,r,n);break}}})),Nb=Math.max(i.length-1,0),function(e){const t=fb.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Sb(n.rtt)&&(Ob["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Sb(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);Sb(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding TTFB"),Ob.ttfb={value:1e3*(s-e.startTimestamp),unit:"millisecond"},"number"==typeof a&&a<=s&&(Ob["ttfb.requestTime"]={value:1e3*(s-a),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(!Ob[t]||n>=e.startTimestamp)return;const i=Ob[t].value,s=n+Tb(i),a=Math.abs(1e3*(s-e.startTimestamp)),r=a-i;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Measurements] Normalized ${t} from ${i} to ${a} (${r})`),Ob[t].value=a}));const t=Ob["mark.fid"];t&&Ob.fid&&(kb(e,{description:"first input delay",endTimestamp:t.value+Tb(Ob.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete Ob["mark.fid"]),"fcp"in Ob||delete Ob.cls,Object.keys(Ob).forEach((t=>{e.setMeasurement(t,Ob[t].value,Ob[t].unit)})),function(e){Lb&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding LCP Data"),Lb.element&&e.setTag("lcp.element",Bp(Lb.element)),Lb.id&&e.setTag("lcp.id",Lb.id),Lb.url&&e.setTag("lcp.url",Lb.url.trim().slice(0,200)),e.setTag("lcp.size",Lb.size));Cb&&Cb.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding CLS Data"),Cb.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,Bp(t.node)))))}(e)}Lb=void 0,Cb=void 0,Ob={}}function jb(e,t,n,i,s,a){const r=a?t[a]:t[`${n}End`],o=t[`${n}Start`];o&&r&&kb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:i+Tb(o),endTimestamp:i+Tb(r)})}const Pb=["localhost",/^\/(?!\/)/],Db={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Pb,tracePropagationTargets:Pb};function Mb(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:i,tracingOrigins:s,shouldCreateSpanForRequest:a,enableHTTPTimings:r}={traceFetch:Db.traceFetch,traceXHR:Db.traceXHR,...e},o="function"==typeof a?a:e=>!0,c=e=>function(e,t){return Lp(e,t||Pb)}(e,i||s),l={};t&&xf("fetch",(e=>{const t=function(e,t,n,i){if(!$h()||!e.fetchData)return;const s=t(e.fetchData.url);if(e.endTimestamp&&s){const t=e.fetchData.__span;if(!t)return;const n=i[t];if(n){if(e.response){n.setHttpStatus(e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length"),i=parseInt(t);i>0&&n.setData("http.response_content_length",i)}else e.error&&n.setStatus("internal_error");n.finish(),delete i[t]}return}const a=Mh(),r=a.getScope(),o=a.getClient(),c=r.getSpan(),{method:l,url:d}=e.fetchData,u=s&&c?c.startChild({data:{url:d,type:"fetch","http.method":l},description:`${l} ${d}`,op:"http.client",origin:"auto.http.browser"}):void 0;u&&(e.fetchData.__span=u.spanId,i[u.spanId]=u);if(n(e.fetchData.url)&&o){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,i,s){const a=s||n.getSpan(),r=a&&a.transaction,{traceId:o,sampled:c,dsc:l}=n.getPropagationContext(),d=a?a.toTraceparent():fh(o,void 0,c),u=r?r.getDynamicSamplingContext():l||Wh(o,t,n),p=lh(u),f="undefined"!=typeof Request&&Ap(e,Request)?e.headers:i.headers;if(f){if("undefined"!=typeof Headers&&Ap(f,Headers)){const e=new Headers(f);return e.append("sentry-trace",d),p&&e.append(ah,p),e}if(Array.isArray(f)){const e=[...f,["sentry-trace",d]];return p&&e.push([ah,p]),e}{const e="baggage"in f?f.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...f,"sentry-trace":d,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":d,baggage:p}}(t,o,r,n,u)}return u}(e,o,c,l);r&&t&&zb(t)})),n&&xf("xhr",(e=>{const t=function(e,t,n,i){const s=e.xhr,a=s&&s[vf];if(!$h()||s&&s.__sentry_own_request__||!s||!a)return;const r=t(a.url);if(e.endTimestamp&&r){const e=s.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&(t.setHttpStatus(a.status_code),t.finish(),delete i[e]))}const o=Mh(),c=o.getScope(),l=c.getSpan(),d=r&&l?l.startChild({data:{...a.data,type:"xhr","http.method":a.method,url:a.url},description:`${a.method} ${a.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;d&&(s.__sentry_xhr_span_id__=d.spanId,i[s.__sentry_xhr_span_id__]=d);if(s.setRequestHeader&&n(a.url))if(d){const e=d&&d.transaction,t=lh(e&&e.getDynamicSamplingContext());$b(s,d.toTraceparent(),t)}else{const e=o.getClient(),{traceId:t,sampled:n,dsc:i}=c.getPropagationContext();$b(s,fh(t,void 0,n),lh(i||(e?Wh(t,e,c):void 0)))}return d}(e,o,c,l);r&&t&&zb(t)}))}function zb(e){const t=e.data.url,n=new PerformanceObserver((i=>{i.getEntries().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}=function(e){let t="unknown",n="unknown",i="";for(const s of e){if("/"===s){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t="h"===i?"http":i,n=e.split(i)[1];break}i+=s}i===e&&(t=i);return{name:t,version:n}}(e.nextHopProtocol),i=[];if(i.push(["network.protocol.version",n],["network.protocol.name",t]),!sh)return i;return[...i,["http.request.redirect_start",Bb(e.redirectStart)],["http.request.fetch_start",Bb(e.fetchStart)],["http.request.domain_lookup_start",Bb(e.domainLookupStart)],["http.request.domain_lookup_end",Bb(e.domainLookupEnd)],["http.request.connect_start",Bb(e.connectStart)],["http.request.secure_connection_start",Bb(e.secureConnectionStart)],["http.request.connection_end",Bb(e.connectEnd)],["http.request.request_start",Bb(e.requestStart)],["http.request.response_start",Bb(e.responseStart)],["http.request.response_end",Bb(e.responseEnd)]]}(i);t.forEach((t=>e.setData(...t))),n.disconnect()}}))}));n.observe({entryTypes:["resource"]})}function Bb(e=0){return((sh||performance.timeOrigin)+e)/1e3}function $b(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(ah,n)}catch(e){}}const qb={...Zh,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!fb||!fb.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Could not initialize routing instrumentation due to invalid location"));let i,s=fb.location.href;t&&(i=e({name:fb.location.pathname,startTimestamp:sh?sh/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&xf("history",(({to:t,from:n})=>{void 0===n&&s&&-1!==s.indexOf(t)?s=void 0:n!==t&&(s=void 0,i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=e({name:fb.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Db};class Vb{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,sm(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...qb,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Ub(),this.options.enableLongTask&&_b("longtask",(e=>{for(const t of e){const e=qh();if(!e)return;const n=Tb(sh+t.startTime),i=Tb(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})),this.options._experiments.enableInteractions&&_b("event",(e=>{for(const t of e){const e=qh();if(!e)return;if("click"===t.name){const n=Tb(sh+t.startTime),i=Tb(t.duration);e.startChild({description:Bp(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),i=n&&n.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:a,startTransactionOnPageLoad:r,markBackgroundTransactions:o,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:u,_experiments:p}=this.options,f=i&&i.tracePropagationTargets,h=f||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&f&&Gp.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),r,a),o&&(fb&&fb.document?fb.document.addEventListener("visibilitychange",(()=>{const e=qh();if(fb.document.hidden&&e){const t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),Mb({traceFetch:c,traceXHR:l,tracePropagationTargets:h,shouldCreateSpanForRequest:d,enableHTTPTimings:u})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:i,finalTimeout:s,heartbeatInterval:a}=this.options,r="pageload"===e.op,o=r?Yb("sentry-trace"):"",c=r?Yb("baggage"):"",{traceparentData:l,dynamicSamplingContext:d,propagationContext:u}=ph(o,c),p={...e,...l,metadata:{...e.metadata,dynamicSamplingContext:l&&!d?{}:d},trimEnd:!0},f="function"==typeof n?n(p):p,h=void 0===f?{...p,sampled:!1}:f;h.metadata=h.name!==p.name?{...h.metadata,source:"custom"}:h.metadata,this._latestRouteName=h.name,this._latestRouteSource=h.metadata&&h.metadata.source,!1===h.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Will not send ${h.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Starting ${h.op} transaction on scope`);const{location:m}=fb,g=im(t,h,i,s,!0,{location:m},a),y=t.getScope();return r&&l?y.setPropagationContext(u):y.setPropagationContext({traceId:g.traceId,spanId:g.spanId,parentSpanId:g.parentSpanId,sampled:g.sampled}),g.registerBeforeFinishCallback((e=>{this._collectWebVitals(),Fb(e)})),g}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:i}=this.options,s="ui.action.click",a=qh();if(a&&a.op&&["navigation","pageload"].includes(a.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`));const r=this._getCurrentHub(),{location:o}=fb,c={name:this._latestRouteName,op:s,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=im(r,c,t,n,!0,{location:o},i)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function Yb(e){const t=(n=`meta[name=${e}]`,Mp.document&&Mp.document.querySelector?Mp.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}class Gb{constructor(e,t,n,i){this.gameParams=t,this.userParams=n,this.firekit=e,this.displayElement=i,this.jsPsych=null}async init(){this.gameParams?.fromDashboard&&(Sg({dsn:"https://b618958936a197de9f9f9a86ae6cceff@o4505913837420544.ingest.sentry.io/4505915445870592",integrations:[new Vb({tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/]}),new ub],tracesSampleRate:1,replaysSessionSampleRate:1,replaysOnErrorSampleRate:1,beforeSend:e=>e}),delete this.gameParams.fromDashboard),await this.firekit.startRun();const e=await(async(e,t,n,i)=>{const s=Ra(Ra({...t,...n},La),$a),{userMode:a,assessmentPid:r,labId:o,recruitment:c,userMetadata:l,urlParams:d,consent:u,storyOption:p,language:f,skipInstructions:h,grade:m,birthMonth:g,birthYear:y,age:_,ageMonths:v,timerLength:b}=s,w=yr(g,y,_,v),I={pid:r,labId:o,userMode:a||"default",recruitment:c||"pilot",storyOption:p,story:Gu(p,m),userMetadata:{...l,grade:m,...w},startTime:new Date,urlParams:d,firekit:e,language:f,skipInstructions:h??!0,consent:u??!0,displayElement:i||null,blockOrder:Hu(a),timerLength:b??18e4,timerLengthList:Wu(a)},x=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,I[e]??t])));return await I.firekit.updateTaskParams(x),null!==I.pid&&await I.firekit.updateUser({assessmentPid:I.pid,...l}),I})(this.firekit,this.gameParams,this.userParams,this.displayElement);return a.session.set("config",e),function(e,t){Ku(t);const n=Zu(e),i=vr({responseTimeLowThreshold:1e3,responseTimeHighThreshold:2e4,accuracyThreshold:.6,minResponsesRequired:10,includedReliabilityFlags:["responseTimeTooFast"]});fp=new br({evaluateValidity:i,handleEngagementFlags:(e,n)=>{if(t.firekit.run.started)return t.firekit.updateEngagementFlags(e,n)}});const s=[Xc,...n];return(e=>{const n={timeline:[up,pp],repetitions:4};s.push(Qu),s.push(cp),s.push(dp),s.push(n),s.push(ep);for(let n=0;n<e.length;n+=1)s.push(lp(e[n],n+1,t.timerLengthList[n])),n<e.length-1&&s.push(ip);s.push(sp)})(t.blockOrder),{jsPsych:ol,timeline:s}}(this.firekit,e)}async run(){const{jsPsych:e,timeline:t}=await this.init();this.jsPsych=e,this.jsPsych.run(t),await(e=>{const t=n=>{e()?n():setTimeout((e=>t(n)),400)};return new Promise(t)})((()=>!0===this.firekit.run.completed))}async abort(){this.firekit.abortRun(),document.querySelectorAll("audio").forEach((e=>e.pause())),this.jsPsych&&this.jsPsych.endExperiment()}}export{Gb as default};
|
|
26
|
-
//# sourceMappingURL=index.
|
|
25
|
+
*/!function(e,t){(function(){var i,s="Expected a function",a="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,c=32,l=64,d=128,u=256,p=1/0,f=9007199254740991,h=NaN,m=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",c],["partialRight",l],["rearg",u]],y="[object Arguments]",_="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",I="[object Function]",x="[object GeneratorFunction]",E="[object Map]",A="[object Number]",S="[object Object]",k="[object Promise]",T="[object RegExp]",R="[object Set]",L="[object String]",C="[object Symbol]",N="[object WeakMap]",O="[object ArrayBuffer]",U="[object DataView]",F="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",M="[object Int32Array]",z="[object Uint8Array]",B="[object Uint8ClampedArray]",$="[object Uint16Array]",q="[object Uint32Array]",V=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,K=RegExp(H.source),Z=RegExp(W.source),J=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ie.source),ae=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Re="\\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",Le="['’]",Ce="["+xe+"]",Ne="["+Re+"]",Oe="["+Ee+"]",Ue="\\d+",Fe="["+Ae+"]",je="["+Se+"]",Pe="[^"+xe+Re+Ue+Ae+Se+ke+"]",De="\\ud83c[\\udffb-\\udfff]",Me="[^"+xe+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+ke+"]",qe="\\u200d",Ve="(?:"+je+"|"+Pe+")",Ye="(?:"+$e+"|"+Pe+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Oe+"|"+De+")"+"?",Ke="["+Te+"]?",Ze=Ke+We+("(?:"+qe+"(?:"+[Me,ze,Be].join("|")+")"+Ke+We+")*"),Je="(?:"+[Fe,ze,Be].join("|")+")"+Ze,Xe="(?:"+[Me+Oe+"?",Oe,ze,Be,Ce].join("|")+")",Qe=RegExp(Le,"g"),et=RegExp(Oe,"g"),tt=RegExp(De+"(?="+De+")|"+Xe+Ze,"g"),nt=RegExp([$e+"?"+je+"+"+Ge+"(?="+[Ne,$e,"$"].join("|")+")",Ye+"+"+He+"(?="+[Ne,$e+Ve,"$"].join("|")+")",$e+"?"+Ve+"+"+Ge,$e+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ue,Je].join("|"),"g"),it=RegExp("["+qe+xe+Ee+Te+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[F]=ot[j]=ot[P]=ot[D]=ot[M]=ot[z]=ot[B]=ot[$]=ot[q]=!0,ot[y]=ot[_]=ot[O]=ot[v]=ot[U]=ot[b]=ot[w]=ot[I]=ot[E]=ot[A]=ot[S]=ot[T]=ot[R]=ot[L]=ot[N]=!1;var ct={};ct[y]=ct[_]=ct[O]=ct[U]=ct[v]=ct[b]=ct[F]=ct[j]=ct[P]=ct[D]=ct[M]=ct[E]=ct[A]=ct[S]=ct[T]=ct[R]=ct[L]=ct[C]=ct[z]=ct[B]=ct[$]=ct[q]=!0,ct[w]=ct[I]=ct[N]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ut=parseInt,pt="object"==typeof n&&n&&n.Object===Object&&n,ft="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||ft||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,yt=gt&>.exports===mt,_t=yt&&pt.process,vt=function(){try{var e=gt&>.require&>.require("util").types;return e||_t&&_t.binding&&_t.binding("util")}catch(e){}}(),bt=vt&&vt.isArrayBuffer,wt=vt&&vt.isDate,It=vt&&vt.isMap,xt=vt&&vt.isRegExp,Et=vt&&vt.isSet,At=vt&&vt.isTypedArray;function St(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 kt(e,t,n,i){for(var s=-1,a=null==e?0:e.length;++s<a;){var r=e[s];t(i,r,n(r),e)}return i}function Tt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lt(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 Ct(e,t){for(var n=-1,i=null==e?0:e.length,s=0,a=[];++n<i;){var r=e[n];t(r,n,e)&&(a[s++]=r)}return a}function Nt(e,t){return!!(null==e?0:e.length)&&$t(e,t,0)>-1}function Ot(e,t,n){for(var i=-1,s=null==e?0:e.length;++i<s;)if(n(t,e[i]))return!0;return!1}function Ut(e,t){for(var n=-1,i=null==e?0:e.length,s=Array(i);++n<i;)s[n]=t(e[n],n,e);return s}function Ft(e,t){for(var n=-1,i=t.length,s=e.length;++n<i;)e[s+n]=t[n];return e}function jt(e,t,n,i){var s=-1,a=null==e?0:e.length;for(i&&a&&(n=e[++s]);++s<a;)n=t(n,e[s],s,e);return n}function Pt(e,t,n,i){var s=null==e?0:e.length;for(i&&s&&(n=e[--s]);s--;)n=t(n,e[s],s,e);return n}function Dt(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 Mt=Gt("length");function zt(e,t,n){var i;return n(e,(function(e,n,s){if(t(e,n,s))return i=n,!1})),i}function Bt(e,t,n,i){for(var s=e.length,a=n+(i?1:-1);i?a--:++a<s;)if(t(e[a],a,e))return a;return-1}function $t(e,t,n){return t==t?function(e,t,n){var i=n-1,s=e.length;for(;++i<s;)if(e[i]===t)return i;return-1}(e,t,n):Bt(e,Vt,n)}function qt(e,t,n,i){for(var s=n-1,a=e.length;++s<a;)if(i(e[s],t))return s;return-1}function Vt(e){return e!=e}function Yt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:h}function Gt(e){return function(t){return null==t?i:t[e]}}function Ht(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,n,i,s){return s(e,(function(e,s,a){n=i?(i=!1,e):t(n,e,s,a)})),n}function Kt(e,t){for(var n,s=-1,a=e.length;++s<a;){var r=t(e[s]);r!==i&&(n=n===i?r:n+r)}return n}function Zt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Jt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function Qt(e,t){return Ut(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,i=e.length;++n<i&&$t(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&$t(t,e[n],0)>-1;);return n}var sn=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+lt[e]}function on(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,i=e.length,s=0,a=[];++n<i;){var o=e[n];o!==t&&o!==r||(e[n]=r,a[s++]=n)}return a}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return on(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Mt(e)}function hn(e){return on(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var gn=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?ht:yn.defaults(ht.Object(),t,yn.pick(ht,at))).Array,re=t.Date,xe=t.Error,Ee=t.Function,Ae=t.Math,Se=t.Object,ke=t.RegExp,Te=t.String,Re=t.TypeError,Le=n.prototype,Ce=Ee.prototype,Ne=Se.prototype,Oe=t["__core-js_shared__"],Ue=Ce.toString,Fe=Ne.hasOwnProperty,je=0,Pe=function(){var e=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),De=Ne.toString,Me=Ue.call(Se),ze=ht._,Be=ke("^"+Ue.call(Fe).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=yt?t.Buffer:i,qe=t.Symbol,Ve=t.Uint8Array,Ye=$e?$e.allocUnsafe:i,Ge=ln(Se.getPrototypeOf,Se),He=Se.create,We=Ne.propertyIsEnumerable,Ke=Le.splice,Ze=qe?qe.isConcatSpreadable:i,Je=qe?qe.iterator:i,Xe=qe?qe.toStringTag:i,tt=function(){try{var e=ua(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=re&&re.now!==ht.Date.now&&re.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,ft=Ae.ceil,mt=Ae.floor,gt=Se.getOwnPropertySymbols,_t=$e?$e.isBuffer:i,vt=t.isFinite,Mt=Le.join,Ht=ln(Se.keys,Se),_n=Ae.max,vn=Ae.min,bn=re.now,wn=t.parseInt,In=Ae.random,xn=Le.reverse,En=ua(t,"DataView"),An=ua(t,"Map"),Sn=ua(t,"Promise"),kn=ua(t,"Set"),Tn=ua(t,"WeakMap"),Rn=ua(Se,"create"),Ln=Tn&&new Tn,Cn={},Nn=Pa(En),On=Pa(An),Un=Pa(Sn),Fn=Pa(kn),jn=Pa(Tn),Pn=qe?qe.prototype:i,Dn=Pn?Pn.valueOf:i,Mn=Pn?Pn.toString:i;function zn(e){if(eo(e)&&!qr(e)&&!(e instanceof Vn)){if(e instanceof qn)return e;if(Fe.call(e,"__wrapped__"))return Da(e)}return new qn(e)}var Bn=function(){function e(){}return function(t){if(!Qr(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function $n(){}function qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Zn(e,t){var n=qr(e),i=!n&&$r(e),s=!n&&!i&&Hr(e),a=!n&&!i&&!s&&co(e),r=n||i||s||a,o=r?Zt(e.length,Te):[],c=o.length;for(var l in e)!t&&!Fe.call(e,l)||r&&("length"==l||s&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_a(l,c))||o.push(l);return o}function Jn(e){var t=e.length;return t?e[Wi(0,t-1)]:i}function Xn(e,t){return Ua(Rs(e),oi(t,0,e.length))}function Qn(e){return Ua(Rs(e))}function ei(e,t,n){(n!==i&&!Mr(e[t],n)||n===i&&!(t in e))&&ai(e,t,n)}function ti(e,t,n){var s=e[t];Fe.call(e,t)&&Mr(s,n)&&(n!==i||t in e)||ai(e,t,n)}function ni(e,t){for(var n=e.length;n--;)if(Mr(e[n][0],t))return n;return-1}function ii(e,t,n,i){return pi(e,(function(e,s,a){t(i,e,n(e),a)})),i}function si(e,t){return e&&Ls(t,Co(t),e)}function ai(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ri(e,t){for(var s=-1,a=t.length,r=n(a),o=null==e;++s<a;)r[s]=o?i:So(e,t[s]);return r}function oi(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,s,a,r){var o,c=1&t,l=2&t,d=4&t;if(n&&(o=a?n(e,s,a,r):n(e)),o!==i)return o;if(!Qr(e))return e;var u=qr(e);if(u){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Fe.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Rs(e,o)}else{var p=ha(e),f=p==I||p==x;if(Hr(e))return xs(e,c);if(p==S||p==y||f&&!a){if(o=l||f?{}:ga(e),!c)return l?function(e,t){return Ls(e,fa(e),t)}(e,function(e,t){return e&&Ls(t,No(t),e)}(o,e)):function(e,t){return Ls(e,pa(e),t)}(e,si(o,e))}else{if(!ct[p])return a?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case O:return Es(e);case v:case b:return new i(+e);case U:return function(e,t){var n=t?Es(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case j:case P:case D:case M:case z:case B:case $:case q:return As(e,n);case E:return new i;case A:case L:return new i(e);case T:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new i;case C:return s=e,Dn?Se(Dn.call(s)):{}}var s}(e,p,c)}}r||(r=new Kn);var h=r.get(e);if(h)return h;r.set(e,o),ao(e)?e.forEach((function(i){o.add(ci(i,t,n,i,e,r))})):to(e)&&e.forEach((function(i,s){o.set(s,ci(i,t,n,s,e,r))}));var m=u?i:(d?l?sa:ia:l?No:Co)(e);return Tt(m||e,(function(i,s){m&&(i=e[s=i]),ti(o,s,ci(i,t,n,s,e,r))})),o}function li(e,t,n){var s=n.length;if(null==e)return!s;for(e=Se(e);s--;){var a=n[s],r=t[a],o=e[a];if(o===i&&!(a in e)||!r(o))return!1}return!0}function di(e,t,n){if("function"!=typeof e)throw new Re(s);return La((function(){e.apply(i,n)}),t)}function ui(e,t,n,i){var s=-1,a=Nt,r=!0,o=e.length,c=[],l=t.length;if(!o)return c;n&&(t=Ut(t,Xt(n))),i?(a=Ot,r=!1):t.length>=200&&(a=en,r=!1,t=new Wn(t));e:for(;++s<o;){var d=e[s],u=null==n?d:n(d);if(d=i||0!==d?d:0,r&&u==u){for(var p=l;p--;)if(t[p]===u)continue e;c.push(d)}else a(t,u,i)||c.push(d)}return c}zn.templateSettings={escape:J,evaluate:X,interpolate:Q,variable:"",imports:{_:zn}},zn.prototype=$n.prototype,zn.prototype.constructor=zn,qn.prototype=Bn($n.prototype),qn.prototype.constructor=qn,Vn.prototype=Bn($n.prototype),Vn.prototype.constructor=Vn,Yn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===a?i:n}return Fe.call(t,e)?t[e]:i},Yn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==i:Fe.call(t,e)},Yn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===i?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=ni(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=ni(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return ni(this.__data__,e)>-1},Gn.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},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(An||Gn),string:new Yn}},Hn.prototype.delete=function(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return la(this,e).get(e)},Hn.prototype.has=function(e){return la(this,e).has(e)},Hn.prototype.set=function(e,t){var n=la(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var i=n.__data__;if(!An||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(i)}return n.set(e,t),this.size=n.size,this};var pi=Os(bi),fi=Os(wi,!0);function hi(e,t){var n=!0;return pi(e,(function(e,i,s){return n=!!t(e,i,s)})),n}function mi(e,t,n){for(var s=-1,a=e.length;++s<a;){var r=e[s],o=t(r);if(null!=o&&(c===i?o==o&&!oo(o):n(o,c)))var c=o,l=r}return l}function gi(e,t){var n=[];return pi(e,(function(e,i,s){t(e,i,s)&&n.push(e)})),n}function yi(e,t,n,i,s){var a=-1,r=e.length;for(n||(n=ya),s||(s=[]);++a<r;){var o=e[a];t>0&&n(o)?t>1?yi(o,t-1,n,i,s):Ft(s,o):i||(s[s.length]=o)}return s}var _i=Us(),vi=Us(!0);function bi(e,t){return e&&_i(e,t,Co)}function wi(e,t){return e&&vi(e,t,Co)}function Ii(e,t){return Ct(t,(function(t){return Zr(e[t])}))}function xi(e,t){for(var n=0,s=(t=vs(t,e)).length;null!=e&&n<s;)e=e[ja(t[n++])];return n&&n==s?e:i}function Ei(e,t,n){var i=t(e);return qr(e)?i:Ft(i,n(e))}function Ai(e){return null==e?e===i?"[object Undefined]":"[object Null]":Xe&&Xe in Se(e)?function(e){var t=Fe.call(e,Xe),n=e[Xe];try{e[Xe]=i;var s=!0}catch(e){}var a=De.call(e);s&&(t?e[Xe]=n:delete e[Xe]);return a}(e):function(e){return De.call(e)}(e)}function Si(e,t){return e>t}function ki(e,t){return null!=e&&Fe.call(e,t)}function Ti(e,t){return null!=e&&t in Se(e)}function Ri(e,t,s){for(var a=s?Ot:Nt,r=e[0].length,o=e.length,c=o,l=n(o),d=1/0,u=[];c--;){var p=e[c];c&&t&&(p=Ut(p,Xt(t))),d=vn(p.length,d),l[c]=!s&&(t||r>=120&&p.length>=120)?new Wn(c&&p):i}p=e[0];var f=-1,h=l[0];e:for(;++f<r&&u.length<d;){var m=p[f],g=t?t(m):m;if(m=s||0!==m?m:0,!(h?en(h,g):a(u,g,s))){for(c=o;--c;){var y=l[c];if(!(y?en(y,g):a(e[c],g,s)))continue e}h&&h.push(g),u.push(m)}}return u}function Li(e,t,n){var s=null==(e=ka(e,t=vs(t,e)))?e:e[ja(Ka(t))];return null==s?i:St(s,e,n)}function Ci(e){return eo(e)&&Ai(e)==y}function Ni(e,t,n,s,a){return e===t||(null==e||null==t||!eo(e)&&!eo(t)?e!=e&&t!=t:function(e,t,n,s,a,r){var o=qr(e),c=qr(t),l=o?_:ha(e),d=c?_:ha(t),u=(l=l==y?S:l)==S,p=(d=d==y?S:d)==S,f=l==d;if(f&&Hr(e)){if(!Hr(t))return!1;o=!0,u=!1}if(f&&!u)return r||(r=new Kn),o||co(e)?ta(e,t,n,s,a,r):function(e,t,n,i,s,a,r){switch(n){case U:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case v:case b:case A:return Mr(+e,+t);case w:return e.name==t.name&&e.message==t.message;case T:case L:return e==t+"";case E:var o=cn;case R:var c=1&i;if(o||(o=un),e.size!=t.size&&!c)return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var d=ta(o(e),o(t),i,s,a,r);return r.delete(e),d;case C:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}(e,t,l,n,s,a,r);if(!(1&n)){var h=u&&Fe.call(e,"__wrapped__"),m=p&&Fe.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,I=m?t.value():t;return r||(r=new Kn),a(g,I,n,s,r)}}if(!f)return!1;return r||(r=new Kn),function(e,t,n,s,a,r){var o=1&n,c=ia(e),l=c.length,d=ia(t),u=d.length;if(l!=u&&!o)return!1;var p=l;for(;p--;){var f=c[p];if(!(o?f in t:Fe.call(t,f)))return!1}var h=r.get(e),m=r.get(t);if(h&&m)return h==t&&m==e;var g=!0;r.set(e,t),r.set(t,e);var y=o;for(;++p<l;){var _=e[f=c[p]],v=t[f];if(s)var b=o?s(v,_,f,t,e,r):s(_,v,f,e,t,r);if(!(b===i?_===v||a(_,v,n,s,r):b)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var w=e.constructor,I=t.constructor;w==I||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof I&&I instanceof I||(g=!1)}return r.delete(e),r.delete(t),g}(e,t,n,s,a,r)}(e,t,n,s,Ni,a))}function Oi(e,t,n,s){var a=n.length,r=a,o=!s;if(null==e)return!r;for(e=Se(e);a--;){var c=n[a];if(o&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<r;){var l=(c=n[a])[0],d=e[l],u=c[1];if(o&&c[2]){if(d===i&&!(l in e))return!1}else{var p=new Kn;if(s)var f=s(d,u,l,e,t,p);if(!(f===i?Ni(u,d,3,s,p):f))return!1}}return!0}function Ui(e){return!(!Qr(e)||(t=e,Pe&&Pe in t))&&(Zr(e)?Be:ye).test(Pa(e));var t}function Fi(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?qr(e)?Bi(e[0],e[1]):zi(e):pc(e)}function ji(e){if(!xa(e))return Ht(e);var t=[];for(var n in Se(e))Fe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Pi(e){if(!Qr(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=xa(e),n=[];for(var i in e)("constructor"!=i||!t&&Fe.call(e,i))&&n.push(i);return n}function Di(e,t){return e<t}function Mi(e,t){var i=-1,s=Yr(e)?n(e.length):[];return pi(e,(function(e,n,a){s[++i]=t(e,n,a)})),s}function zi(e){var t=da(e);return 1==t.length&&t[0][2]?Aa(t[0][0],t[0][1]):function(n){return n===e||Oi(n,e,t)}}function Bi(e,t){return ba(e)&&Ea(t)?Aa(ja(e),t):function(n){var s=So(n,e);return s===i&&s===t?ko(n,e):Ni(t,s,3)}}function $i(e,t,n,s,a){e!==t&&_i(t,(function(r,o){if(a||(a=new Kn),Qr(r))!function(e,t,n,s,a,r,o){var c=Ta(e,n),l=Ta(t,n),d=o.get(l);if(d)return void ei(e,n,d);var u=r?r(c,l,n+"",e,t,o):i,p=u===i;if(p){var f=qr(l),h=!f&&Hr(l),m=!f&&!h&&co(l);u=l,f||h||m?qr(c)?u=c:Gr(c)?u=Rs(c):h?(p=!1,u=xs(l,!0)):m?(p=!1,u=As(l,!0)):u=[]:io(l)||$r(l)?(u=c,$r(c)?u=yo(c):Qr(c)&&!Zr(c)||(u=ga(l))):p=!1}p&&(o.set(l,u),a(u,l,s,r,o),o.delete(l));ei(e,n,u)}(e,t,o,n,$i,s,a);else{var c=s?s(Ta(e,o),r,o+"",e,t,a):i;c===i&&(c=r),ei(e,o,c)}}),No)}function qi(e,t){var n=e.length;if(n)return _a(t+=t<0?n:0,n)?e[t]:i}function Vi(e,t,n){t=t.length?Ut(t,(function(e){return qr(e)?function(t){return xi(t,1===e.length?e[0]:e)}:e})):[ic];var i=-1;t=Ut(t,Xt(ca()));var s=Mi(e,(function(e,n,s){var a=Ut(t,(function(t){return t(e)}));return{criteria:a,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(s,(function(e,t){return function(e,t,n){var i=-1,s=e.criteria,a=t.criteria,r=s.length,o=n.length;for(;++i<r;){var c=Ss(s[i],a[i]);if(c)return i>=o?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yi(e,t,n){for(var i=-1,s=t.length,a={};++i<s;){var r=t[i],o=xi(e,r);n(o,r)&&Qi(a,vs(r,e),o)}return a}function Gi(e,t,n,i){var s=i?qt:$t,a=-1,r=t.length,o=e;for(e===t&&(t=Rs(t)),n&&(o=Ut(e,Xt(n)));++a<r;)for(var c=0,l=t[a],d=n?n(l):l;(c=s(o,d,c,i))>-1;)o!==e&&Ke.call(o,c,1),Ke.call(e,c,1);return e}function Hi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var s=t[n];if(n==i||s!==a){var a=s;_a(s)?Ke.call(e,s,1):us(e,s)}}return e}function Wi(e,t){return e+mt(In()*(t-e+1))}function Ki(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Zi(e,t){return Ca(Sa(e,t,ic),e+"")}function Ji(e){return Jn(zo(e))}function Xi(e,t){var n=zo(e);return Ua(n,oi(t,0,n.length))}function Qi(e,t,n,s){if(!Qr(e))return e;for(var a=-1,r=(t=vs(t,e)).length,o=r-1,c=e;null!=c&&++a<r;){var l=ja(t[a]),d=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=o){var u=c[l];(d=s?s(u,l,c):i)===i&&(d=Qr(u)?u:_a(t[a+1])?[]:{})}ti(c,l,d),c=c[l]}return e}var es=Ln?function(e,t){return Ln.set(e,t),e}:ic,ts=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:ic;function ns(e){return Ua(zo(e))}function is(e,t,i){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(i=i>a?a:i)<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var r=n(a);++s<a;)r[s]=e[s+t];return r}function ss(e,t){var n;return pi(e,(function(e,i,s){return!(n=t(e,i,s))})),!!n}function as(e,t,n){var i=0,s=null==e?i:e.length;if("number"==typeof t&&t==t&&s<=2147483647){for(;i<s;){var a=i+s>>>1,r=e[a];null!==r&&!oo(r)&&(n?r<=t:r<t)?i=a+1:s=a}return s}return rs(e,t,ic,n)}function rs(e,t,n,s){var a=0,r=null==e?0:e.length;if(0===r)return 0;for(var o=(t=n(t))!=t,c=null===t,l=oo(t),d=t===i;a<r;){var u=mt((a+r)/2),p=n(e[u]),f=p!==i,h=null===p,m=p==p,g=oo(p);if(o)var y=s||m;else y=d?m&&(s||f):c?m&&f&&(s||!h):l?m&&f&&!h&&(s||!g):!h&&!g&&(s?p<=t:p<t);y?a=u+1:r=u}return vn(r,4294967294)}function os(e,t){for(var n=-1,i=e.length,s=0,a=[];++n<i;){var r=e[n],o=t?t(r):r;if(!n||!Mr(o,c)){var c=o;a[s++]=0===r?0:r}}return a}function cs(e){return"number"==typeof e?e:oo(e)?h:+e}function ls(e){if("string"==typeof e)return e;if(qr(e))return Ut(e,ls)+"";if(oo(e))return Mn?Mn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ds(e,t,n){var i=-1,s=Nt,a=e.length,r=!0,o=[],c=o;if(n)r=!1,s=Ot;else if(a>=200){var l=t?null:Ks(e);if(l)return un(l);r=!1,s=en,c=new Wn}else c=t?[]:o;e:for(;++i<a;){var d=e[i],u=t?t(d):d;if(d=n||0!==d?d:0,r&&u==u){for(var p=c.length;p--;)if(c[p]===u)continue e;t&&c.push(u),o.push(d)}else s(c,u,n)||(c!==o&&c.push(u),o.push(d))}return o}function us(e,t){return null==(e=ka(e,t=vs(t,e)))||delete e[ja(Ka(t))]}function ps(e,t,n,i){return Qi(e,t,n(xi(e,t)),i)}function fs(e,t,n,i){for(var s=e.length,a=i?s:-1;(i?a--:++a<s)&&t(e[a],a,e););return n?is(e,i?0:a,i?a+1:s):is(e,i?a+1:0,i?s:a)}function hs(e,t){var n=e;return n instanceof Vn&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))}),n)}function ms(e,t,i){var s=e.length;if(s<2)return s?ds(e[0]):[];for(var a=-1,r=n(s);++a<s;)for(var o=e[a],c=-1;++c<s;)c!=a&&(r[a]=ui(r[a]||o,e[c],t,i));return ds(yi(r,1),t,i)}function gs(e,t,n){for(var s=-1,a=e.length,r=t.length,o={};++s<a;){var c=s<r?t[s]:i;n(o,e[s],c)}return o}function ys(e){return Gr(e)?e:[]}function _s(e){return"function"==typeof e?e:ic}function vs(e,t){return qr(e)?e:ba(e,t)?[e]:Fa(_o(e))}var bs=Zi;function ws(e,t,n){var s=e.length;return n=n===i?s:n,!t&&n>=s?e:is(e,t,n)}var Is=it||function(e){return ht.clearTimeout(e)};function xs(e,t){if(t)return e.slice();var n=e.length,i=Ye?Ye(n):new e.constructor(n);return e.copy(i),i}function Es(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function As(e,t){var n=t?Es(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ss(e,t){if(e!==t){var n=e!==i,s=null===e,a=e==e,r=oo(e),o=t!==i,c=null===t,l=t==t,d=oo(t);if(!c&&!d&&!r&&e>t||r&&o&&l&&!c&&!d||s&&o&&l||!n&&l||!a)return 1;if(!s&&!r&&!d&&e<t||d&&n&&a&&!s&&!r||c&&n&&a||!o&&a||!l)return-1}return 0}function ks(e,t,i,s){for(var a=-1,r=e.length,o=i.length,c=-1,l=t.length,d=_n(r-o,0),u=n(l+d),p=!s;++c<l;)u[c]=t[c];for(;++a<o;)(p||a<r)&&(u[i[a]]=e[a]);for(;d--;)u[c++]=e[a++];return u}function Ts(e,t,i,s){for(var a=-1,r=e.length,o=-1,c=i.length,l=-1,d=t.length,u=_n(r-c,0),p=n(u+d),f=!s;++a<u;)p[a]=e[a];for(var h=a;++l<d;)p[h+l]=t[l];for(;++o<c;)(f||a<r)&&(p[h+i[o]]=e[a++]);return p}function Rs(e,t){var i=-1,s=e.length;for(t||(t=n(s));++i<s;)t[i]=e[i];return t}function Ls(e,t,n,s){var a=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var c=t[r],l=s?s(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),a?ai(n,c,l):ti(n,c,l)}return n}function Cs(e,t){return function(n,i){var s=qr(n)?kt:ii,a=t?t():{};return s(n,e,ca(i,2),a)}}function Ns(e){return Zi((function(t,n){var s=-1,a=n.length,r=a>1?n[a-1]:i,o=a>2?n[2]:i;for(r=e.length>3&&"function"==typeof r?(a--,r):i,o&&va(n[0],n[1],o)&&(r=a<3?i:r,a=1),t=Se(t);++s<a;){var c=n[s];c&&e(t,c,s,r)}return t}))}function Os(e,t){return function(n,i){if(null==n)return n;if(!Yr(n))return e(n,i);for(var s=n.length,a=t?s:-1,r=Se(n);(t?a--:++a<s)&&!1!==i(r[a],a,r););return n}}function Us(e){return function(t,n,i){for(var s=-1,a=Se(t),r=i(t),o=r.length;o--;){var c=r[e?o:++s];if(!1===n(a[c],c,a))break}return t}}function Fs(e){return function(t){var n=on(t=_o(t))?hn(t):i,s=n?n[0]:t.charAt(0),a=n?ws(n,1).join(""):t.slice(1);return s[e]()+a}}function js(e){return function(t){return jt(Jo(qo(t).replace(Qe,"")),e,"")}}function Ps(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 Qr(i)?i:n}}function Ds(e){return function(t,n,s){var a=Se(t);if(!Yr(t)){var r=ca(n,3);t=Co(t),n=function(e){return r(a[e],e,a)}}var o=e(t,n,s);return o>-1?a[r?t[o]:o]:i}}function Ms(e){return na((function(t){var n=t.length,a=n,r=qn.prototype.thru;for(e&&t.reverse();a--;){var o=t[a];if("function"!=typeof o)throw new Re(s);if(r&&!c&&"wrapper"==ra(o))var c=new qn([],!0)}for(a=c?a:n;++a<n;){var l=ra(o=t[a]),d="wrapper"==l?aa(o):i;c=d&&wa(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?c[ra(d[0])].apply(c,d[3]):1==o.length&&wa(o)?c[l]():c.thru(o)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&qr(i))return c.plant(i).value();for(var s=0,a=n?t[s].apply(this,e):i;++s<n;)a=t[s].call(this,a);return a}}))}function zs(e,t,s,a,r,o,c,l,u,p){var f=t&d,h=1&t,m=2&t,g=24&t,y=512&t,_=m?i:Ps(e);return function d(){for(var v=arguments.length,b=n(v),w=v;w--;)b[w]=arguments[w];if(g)var I=oa(d),x=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,I);if(a&&(b=ks(b,a,r,g)),o&&(b=Ts(b,o,c,g)),v-=x,g&&v<p){var E=dn(b,I);return Hs(e,t,zs,d.placeholder,s,b,E,l,u,p-v)}var A=h?s:this,S=m?A[e]:e;return v=b.length,l?b=function(e,t){var n=e.length,s=vn(t.length,n),a=Rs(e);for(;s--;){var r=t[s];e[s]=_a(r,n)?a[r]:i}return e}(b,l):y&&v>1&&b.reverse(),f&&u<v&&(b.length=u),this&&this!==ht&&this instanceof d&&(S=_||Ps(S)),S.apply(A,b)}}function Bs(e,t){return function(n,i){return function(e,t,n,i){return bi(e,(function(e,s,a){t(i,n(e),s,a)})),i}(n,e,t(i),{})}}function $s(e,t){return function(n,s){var a;if(n===i&&s===i)return t;if(n!==i&&(a=n),s!==i){if(a===i)return s;"string"==typeof n||"string"==typeof s?(n=ls(n),s=ls(s)):(n=cs(n),s=cs(s)),a=e(n,s)}return a}}function qs(e){return na((function(t){return t=Ut(t,Xt(ca())),Zi((function(n){var i=this;return e(t,(function(e){return St(e,i,n)}))}))}))}function Vs(e,t){var n=(t=t===i?" ":ls(t)).length;if(n<2)return n?Ki(t,e):t;var s=Ki(t,ft(e/fn(t)));return on(t)?ws(hn(s),0,e).join(""):s.slice(0,e)}function Ys(e){return function(t,s,a){return a&&"number"!=typeof a&&va(t,s,a)&&(s=a=i),t=fo(t),s===i?(s=t,t=0):s=fo(s),function(e,t,i,s){for(var a=-1,r=_n(ft((t-e)/(i||1)),0),o=n(r);r--;)o[s?r:++a]=e,e+=i;return o}(t,s,a=a===i?t<s?1:-1:fo(a),e)}}function Gs(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=go(t),n=go(n)),e(t,n)}}function Hs(e,t,n,s,a,r,o,d,u,p){var f=8&t;t|=f?c:l,4&(t&=~(f?l:c))||(t&=-4);var h=[e,t,a,f?r:i,f?o:i,f?i:r,f?i:o,d,u,p],m=n.apply(i,h);return wa(e)&&Ra(m,h),m.placeholder=s,Na(m,e,t)}function Ws(e){var t=Ae[e];return function(e,n){if(e=go(e),(n=null==n?0:vn(ho(n),292))&&vt(e)){var i=(_o(e)+"e").split("e");return+((i=(_o(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Ks=kn&&1/un(new kn([,-0]))[1]==p?function(e){return new kn(e)}:cc;function Zs(e){return function(t){var n=ha(t);return n==E?cn(t):n==R?pn(t):function(e,t){return Ut(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Js(e,t,a,p,f,h,m,g){var y=2&t;if(!y&&"function"!=typeof e)throw new Re(s);var _=p?p.length:0;if(_||(t&=-97,p=f=i),m=m===i?m:_n(ho(m),0),g=g===i?g:ho(g),_-=f?f.length:0,t&l){var v=p,b=f;p=f=i}var w=y?i:aa(e),I=[e,t,a,p,f,v,b,h,m,g];if(w&&function(e,t){var n=e[1],i=t[1],s=n|i,a=s<131,o=i==d&&8==n||i==d&&n==u&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&i&&(e[2]=t[2],s|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?ks(l,c,t[4]):c,e[4]=l?dn(e[3],r):t[4]}(c=t[5])&&(l=e[5],e[5]=l?Ts(l,c,t[6]):c,e[6]=l?dn(e[5],r):t[6]);(c=t[7])&&(e[7]=c);i&d&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=s}(I,w),e=I[0],t=I[1],a=I[2],p=I[3],f=I[4],!(g=I[9]=I[9]===i?y?0:e.length:_n(I[9]-_,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==o?function(e,t,s){var a=Ps(e);return function r(){for(var o=arguments.length,c=n(o),l=o,d=oa(r);l--;)c[l]=arguments[l];var u=o<3&&c[0]!==d&&c[o-1]!==d?[]:dn(c,d);return(o-=u.length)<s?Hs(e,t,zs,r.placeholder,i,c,u,i,i,s-o):St(this&&this!==ht&&this instanceof r?a:e,this,c)}}(e,t,g):t!=c&&33!=t||f.length?zs.apply(i,I):function(e,t,i,s){var a=1&t,r=Ps(e);return function t(){for(var o=-1,c=arguments.length,l=-1,d=s.length,u=n(d+c),p=this&&this!==ht&&this instanceof t?r:e;++l<d;)u[l]=s[l];for(;c--;)u[l++]=arguments[++o];return St(p,a?i:this,u)}}(e,t,a,p);else var x=function(e,t,n){var i=1&t,s=Ps(e);return function t(){return(this&&this!==ht&&this instanceof t?s:e).apply(i?n:this,arguments)}}(e,t,a);return Na((w?es:Ra)(x,I),e,t)}function Xs(e,t,n,s){return e===i||Mr(e,Ne[n])&&!Fe.call(s,n)?t:e}function Qs(e,t,n,s,a,r){return Qr(e)&&Qr(t)&&(r.set(t,e),$i(e,t,i,Qs,r),r.delete(t)),e}function ea(e){return io(e)?i:e}function ta(e,t,n,s,a,r){var o=1&n,c=e.length,l=t.length;if(c!=l&&!(o&&l>c))return!1;var d=r.get(e),u=r.get(t);if(d&&u)return d==t&&u==e;var p=-1,f=!0,h=2&n?new Wn:i;for(r.set(e,t),r.set(t,e);++p<c;){var m=e[p],g=t[p];if(s)var y=o?s(g,m,p,t,e,r):s(m,g,p,e,t,r);if(y!==i){if(y)continue;f=!1;break}if(h){if(!Dt(t,(function(e,t){if(!en(h,t)&&(m===e||a(m,e,n,s,r)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!a(m,g,n,s,r)){f=!1;break}}return r.delete(e),r.delete(t),f}function na(e){return Ca(Sa(e,i,Va),e+"")}function ia(e){return Ei(e,Co,pa)}function sa(e){return Ei(e,No,fa)}var aa=Ln?function(e){return Ln.get(e)}:cc;function ra(e){for(var t=e.name+"",n=Cn[t],i=Fe.call(Cn,t)?n.length:0;i--;){var s=n[i],a=s.func;if(null==a||a==e)return s.name}return t}function oa(e){return(Fe.call(zn,"placeholder")?zn:e).placeholder}function ca(){var e=zn.iteratee||sc;return e=e===sc?Fi:e,arguments.length?e(arguments[0],arguments[1]):e}function la(e,t){var n,i,s=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?s["string"==typeof t?"string":"hash"]:s.map}function da(e){for(var t=Co(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,Ea(s)]}return t}function ua(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Ui(n)?n:i}var pa=gt?function(e){return null==e?[]:(e=Se(e),Ct(gt(e),(function(t){return We.call(e,t)})))}:mc,fa=gt?function(e){for(var t=[];e;)Ft(t,pa(e)),e=Ge(e);return t}:mc,ha=Ai;function ma(e,t,n){for(var i=-1,s=(t=vs(t,e)).length,a=!1;++i<s;){var r=ja(t[i]);if(!(a=null!=e&&n(e,r)))break;e=e[r]}return a||++i!=s?a:!!(s=null==e?0:e.length)&&Xr(s)&&_a(r,s)&&(qr(e)||$r(e))}function ga(e){return"function"!=typeof e.constructor||xa(e)?{}:Bn(Ge(e))}function ya(e){return qr(e)||$r(e)||!!(Ze&&e&&e[Ze])}function _a(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function va(e,t,n){if(!Qr(n))return!1;var i=typeof t;return!!("number"==i?Yr(n)&&_a(t,n.length):"string"==i&&t in n)&&Mr(n[t],e)}function ba(e,t){if(qr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!oo(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Se(t))}function wa(e){var t=ra(e),n=zn[t];if("function"!=typeof n||!(t in Vn.prototype))return!1;if(e===n)return!0;var i=aa(n);return!!i&&e===i[0]}(En&&ha(new En(new ArrayBuffer(1)))!=U||An&&ha(new An)!=E||Sn&&ha(Sn.resolve())!=k||kn&&ha(new kn)!=R||Tn&&ha(new Tn)!=N)&&(ha=function(e){var t=Ai(e),n=t==S?e.constructor:i,s=n?Pa(n):"";if(s)switch(s){case Nn:return U;case On:return E;case Un:return k;case Fn:return R;case jn:return N}return t});var Ia=Oe?Zr:gc;function xa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function Ea(e){return e==e&&!Qr(e)}function Aa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Se(n)))}}function Sa(e,t,s){return t=_n(t===i?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=_n(i.length-t,0),o=n(r);++a<r;)o[a]=i[t+a];a=-1;for(var c=n(t+1);++a<t;)c[a]=i[a];return c[t]=s(o),St(e,this,c)}}function ka(e,t){return t.length<2?e:xi(e,is(t,0,-1))}function Ta(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ra=Oa(es),La=pt||function(e,t){return ht.setTimeout(e,t)},Ca=Oa(ts);function Na(e,t,n){var i=t+"";return Ca(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Tt(g,(function(n){var i="_."+n[0];t&n[1]&&!Nt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(i),n)))}function Oa(e){var t=0,n=0;return function(){var s=bn(),a=16-(s-n);if(n=s,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ua(e,t){var n=-1,s=e.length,a=s-1;for(t=t===i?s:t;++n<t;){var r=Wi(n,a),o=e[r];e[r]=e[n],e[n]=o}return e.length=t,e}var Fa=function(e){var t=Or(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,s){t.push(i?s.replace(pe,"$1"):n||e)})),t}));function ja(e){if("string"==typeof e||oo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pa(e){if(null!=e){try{return Ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Da(e){if(e instanceof Vn)return e.clone();var t=new qn(e.__wrapped__,e.__chain__);return t.__actions__=Rs(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ma=Zi((function(e,t){return Gr(e)?ui(e,yi(t,1,Gr,!0)):[]})),za=Zi((function(e,t){var n=Ka(t);return Gr(n)&&(n=i),Gr(e)?ui(e,yi(t,1,Gr,!0),ca(n,2)):[]})),Ba=Zi((function(e,t){var n=Ka(t);return Gr(n)&&(n=i),Gr(e)?ui(e,yi(t,1,Gr,!0),i,n):[]}));function $a(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=null==n?0:ho(n);return s<0&&(s=_n(i+s,0)),Bt(e,ca(t,3),s)}function qa(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var a=s-1;return n!==i&&(a=ho(n),a=n<0?_n(s+a,0):vn(a,s-1)),Bt(e,ca(t,3),a,!0)}function Va(e){return(null==e?0:e.length)?yi(e,1):[]}function Ya(e){return e&&e.length?e[0]:i}var Ga=Zi((function(e){var t=Ut(e,ys);return t.length&&t[0]===e[0]?Ri(t):[]})),Ha=Zi((function(e){var t=Ka(e),n=Ut(e,ys);return t===Ka(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Ri(n,ca(t,2)):[]})),Wa=Zi((function(e){var t=Ka(e),n=Ut(e,ys);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Ri(n,i,t):[]}));function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Za=Zi(Ja);function Ja(e,t){return e&&e.length&&t&&t.length?Gi(e,t):e}var Xa=na((function(e,t){var n=null==e?0:e.length,i=ri(e,t);return Hi(e,Ut(t,(function(e){return _a(e,n)?+e:e})).sort(Ss)),i}));function Qa(e){return null==e?e:xn.call(e)}var er=Zi((function(e){return ds(yi(e,1,Gr,!0))})),tr=Zi((function(e){var t=Ka(e);return Gr(t)&&(t=i),ds(yi(e,1,Gr,!0),ca(t,2))})),nr=Zi((function(e){var t=Ka(e);return t="function"==typeof t?t:i,ds(yi(e,1,Gr,!0),i,t)}));function ir(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Gr(e))return t=_n(e.length,t),!0})),Zt(t,(function(t){return Ut(e,Gt(t))}))}function sr(e,t){if(!e||!e.length)return[];var n=ir(e);return null==t?n:Ut(n,(function(e){return St(t,i,e)}))}var ar=Zi((function(e,t){return Gr(e)?ui(e,t):[]})),rr=Zi((function(e){return ms(Ct(e,Gr))})),or=Zi((function(e){var t=Ka(e);return Gr(t)&&(t=i),ms(Ct(e,Gr),ca(t,2))})),cr=Zi((function(e){var t=Ka(e);return t="function"==typeof t?t:i,ms(Ct(e,Gr),i,t)})),lr=Zi(ir);var dr=Zi((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,sr(e,n)}));function ur(e){var t=zn(e);return t.__chain__=!0,t}function pr(e,t){return t(e)}var fr=na((function(e){var t=e.length,n=t?e[0]:0,s=this.__wrapped__,a=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&s instanceof Vn&&_a(n)?((s=s.slice(n,+n+(t?1:0))).__actions__.push({func:pr,args:[a],thisArg:i}),new qn(s,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)}));var hr=Cs((function(e,t,n){Fe.call(e,n)?++e[n]:ai(e,n,1)}));var mr=Ds($a),gr=Ds(qa);function yr(e,t){return(qr(e)?Tt:pi)(e,ca(t,3))}function _r(e,t){return(qr(e)?Rt:fi)(e,ca(t,3))}var vr=Cs((function(e,t,n){Fe.call(e,n)?e[n].push(t):ai(e,n,[t])}));var br=Zi((function(e,t,i){var s=-1,a="function"==typeof t,r=Yr(e)?n(e.length):[];return pi(e,(function(e){r[++s]=a?St(t,e,i):Li(e,t,i)})),r})),wr=Cs((function(e,t,n){ai(e,n,t)}));function Ir(e,t){return(qr(e)?Ut:Mi)(e,ca(t,3))}var xr=Cs((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Er=Zi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&va(e,t[0],t[1])?t=[]:n>2&&va(t[0],t[1],t[2])&&(t=[t[0]]),Vi(e,yi(t,1),[])})),Ar=lt||function(){return ht.Date.now()};function Sr(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Js(e,d,i,i,i,i,t)}function kr(e,t){var n;if("function"!=typeof t)throw new Re(s);return e=ho(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tr=Zi((function(e,t,n){var i=1;if(n.length){var s=dn(n,oa(Tr));i|=c}return Js(e,i,t,n,s)})),Rr=Zi((function(e,t,n){var i=3;if(n.length){var s=dn(n,oa(Rr));i|=c}return Js(t,i,e,n,s)}));function Lr(e,t,n){var a,r,o,c,l,d,u=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Re(s);function m(t){var n=a,s=r;return a=r=i,u=t,c=e.apply(s,n)}function g(e){var n=e-d;return d===i||n>=t||n<0||f&&e-u>=o}function y(){var e=Ar();if(g(e))return _(e);l=La(y,function(e){var n=t-(e-d);return f?vn(n,o-(e-u)):n}(e))}function _(e){return l=i,h&&a?m(e):(a=r=i,c)}function v(){var e=Ar(),n=g(e);if(a=arguments,r=this,d=e,n){if(l===i)return function(e){return u=e,l=La(y,t),p?m(e):c}(d);if(f)return Is(l),l=La(y,t),m(d)}return l===i&&(l=La(y,t)),c}return t=go(t)||0,Qr(n)&&(p=!!n.leading,o=(f="maxWait"in n)?_n(go(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){l!==i&&Is(l),u=0,a=d=r=l=i},v.flush=function(){return l===i?c:_(Ar())},v}var Cr=Zi((function(e,t){return di(e,1,t)})),Nr=Zi((function(e,t,n){return di(e,go(t)||0,n)}));function Or(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(s);var n=function(){var i=arguments,s=t?t.apply(this,i):i[0],a=n.cache;if(a.has(s))return a.get(s);var r=e.apply(this,i);return n.cache=a.set(s,r)||a,r};return n.cache=new(Or.Cache||Hn),n}function Ur(e){if("function"!=typeof e)throw new Re(s);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)}}Or.Cache=Hn;var Fr=bs((function(e,t){var n=(t=1==t.length&&qr(t[0])?Ut(t[0],Xt(ca())):Ut(yi(t,1),Xt(ca()))).length;return Zi((function(i){for(var s=-1,a=vn(i.length,n);++s<a;)i[s]=t[s].call(this,i[s]);return St(e,this,i)}))})),jr=Zi((function(e,t){var n=dn(t,oa(jr));return Js(e,c,i,t,n)})),Pr=Zi((function(e,t){var n=dn(t,oa(Pr));return Js(e,l,i,t,n)})),Dr=na((function(e,t){return Js(e,u,i,i,i,t)}));function Mr(e,t){return e===t||e!=e&&t!=t}var zr=Gs(Si),Br=Gs((function(e,t){return e>=t})),$r=Ci(function(){return arguments}())?Ci:function(e){return eo(e)&&Fe.call(e,"callee")&&!We.call(e,"callee")},qr=n.isArray,Vr=bt?Xt(bt):function(e){return eo(e)&&Ai(e)==O};function Yr(e){return null!=e&&Xr(e.length)&&!Zr(e)}function Gr(e){return eo(e)&&Yr(e)}var Hr=_t||gc,Wr=wt?Xt(wt):function(e){return eo(e)&&Ai(e)==b};function Kr(e){if(!eo(e))return!1;var t=Ai(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!io(e)}function Zr(e){if(!Qr(e))return!1;var t=Ai(e);return t==I||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Jr(e){return"number"==typeof e&&e==ho(e)}function Xr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Qr(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eo(e){return null!=e&&"object"==typeof e}var to=It?Xt(It):function(e){return eo(e)&&ha(e)==E};function no(e){return"number"==typeof e||eo(e)&&Ai(e)==A}function io(e){if(!eo(e)||Ai(e)!=S)return!1;var t=Ge(e);if(null===t)return!0;var n=Fe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ue.call(n)==Me}var so=xt?Xt(xt):function(e){return eo(e)&&Ai(e)==T};var ao=Et?Xt(Et):function(e){return eo(e)&&ha(e)==R};function ro(e){return"string"==typeof e||!qr(e)&&eo(e)&&Ai(e)==L}function oo(e){return"symbol"==typeof e||eo(e)&&Ai(e)==C}var co=At?Xt(At):function(e){return eo(e)&&Xr(e.length)&&!!ot[Ai(e)]};var lo=Gs(Di),uo=Gs((function(e,t){return e<=t}));function po(e){if(!e)return[];if(Yr(e))return ro(e)?hn(e):Rs(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=ha(e);return(t==E?cn:t==R?un:zo)(e)}function fo(e){return e?(e=go(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ho(e){var t=fo(e),n=t%1;return t==t?n?t-n:t:0}function mo(e){return e?oi(ho(e),0,m):0}function go(e){if("number"==typeof e)return e;if(oo(e))return h;if(Qr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ge.test(e);return n||_e.test(e)?ut(e.slice(2),n?2:8):me.test(e)?h:+e}function yo(e){return Ls(e,No(e))}function _o(e){return null==e?"":ls(e)}var vo=Ns((function(e,t){if(xa(t)||Yr(t))Ls(t,Co(t),e);else for(var n in t)Fe.call(t,n)&&ti(e,n,t[n])})),bo=Ns((function(e,t){Ls(t,No(t),e)})),wo=Ns((function(e,t,n,i){Ls(t,No(t),e,i)})),Io=Ns((function(e,t,n,i){Ls(t,Co(t),e,i)})),xo=na(ri);var Eo=Zi((function(e,t){e=Se(e);var n=-1,s=t.length,a=s>2?t[2]:i;for(a&&va(t[0],t[1],a)&&(s=1);++n<s;)for(var r=t[n],o=No(r),c=-1,l=o.length;++c<l;){var d=o[c],u=e[d];(u===i||Mr(u,Ne[d])&&!Fe.call(e,d))&&(e[d]=r[d])}return e})),Ao=Zi((function(e){return e.push(i,Qs),St(Uo,i,e)}));function So(e,t,n){var s=null==e?i:xi(e,t);return s===i?n:s}function ko(e,t){return null!=e&&ma(e,t,Ti)}var To=Bs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),e[t]=n}),ec(ic)),Ro=Bs((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=De.call(t)),Fe.call(e,t)?e[t].push(n):e[t]=[n]}),ca),Lo=Zi(Li);function Co(e){return Yr(e)?Zn(e):ji(e)}function No(e){return Yr(e)?Zn(e,!0):Pi(e)}var Oo=Ns((function(e,t,n){$i(e,t,n)})),Uo=Ns((function(e,t,n,i){$i(e,t,n,i)})),Fo=na((function(e,t){var n={};if(null==e)return n;var i=!1;t=Ut(t,(function(t){return t=vs(t,e),i||(i=t.length>1),t})),Ls(e,sa(e),n),i&&(n=ci(n,7,ea));for(var s=t.length;s--;)us(n,t[s]);return n}));var jo=na((function(e,t){return null==e?{}:function(e,t){return Yi(e,t,(function(t,n){return ko(e,n)}))}(e,t)}));function Po(e,t){if(null==e)return{};var n=Ut(sa(e),(function(e){return[e]}));return t=ca(t),Yi(e,n,(function(e,n){return t(e,n[0])}))}var Do=Zs(Co),Mo=Zs(No);function zo(e){return null==e?[]:Qt(e,Co(e))}var Bo=js((function(e,t,n){return t=t.toLowerCase(),e+(n?$o(t):t)}));function $o(e){return Zo(_o(e).toLowerCase())}function qo(e){return(e=_o(e))&&e.replace(be,sn).replace(et,"")}var Vo=js((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Yo=js((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Go=Fs("toLowerCase");var Ho=js((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Wo=js((function(e,t,n){return e+(n?" ":"")+Zo(t)}));var Ko=js((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zo=Fs("toUpperCase");function Jo(e,t,n){return e=_o(e),(t=n?i:t)===i?function(e){return st.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Xo=Zi((function(e,t){try{return St(e,i,t)}catch(e){return Kr(e)?e:new xe(e)}})),Qo=na((function(e,t){return Tt(t,(function(t){t=ja(t),ai(e,t,Tr(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=Ms(),nc=Ms(!0);function ic(e){return e}function sc(e){return Fi("function"==typeof e?e:ci(e,1))}var ac=Zi((function(e,t){return function(n){return Li(n,e,t)}})),rc=Zi((function(e,t){return function(n){return Li(e,n,t)}}));function oc(e,t,n){var i=Co(t),s=Ii(t,i);null!=n||Qr(t)&&(s.length||!i.length)||(n=t,t=e,e=this,s=Ii(t,Co(t)));var a=!(Qr(n)&&"chain"in n&&!n.chain),r=Zr(e);return Tt(s,(function(n){var i=t[n];e[n]=i,r&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Rs(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Ft([this.value()],arguments))})})),e}function cc(){}var lc=qs(Ut),dc=qs(Lt),uc=qs(Dt);function pc(e){return ba(e)?Gt(ja(e)):function(e){return function(t){return xi(t,e)}}(e)}var fc=Ys(),hc=Ys(!0);function mc(){return[]}function gc(){return!1}var yc=$s((function(e,t){return e+t}),0),_c=Ws("ceil"),vc=$s((function(e,t){return e/t}),1),bc=Ws("floor");var wc,Ic=$s((function(e,t){return e*t}),1),xc=Ws("round"),Ec=$s((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Re(s);return e=ho(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Sr,zn.assign=vo,zn.assignIn=bo,zn.assignInWith=wo,zn.assignWith=Io,zn.at=xo,zn.before=kr,zn.bind=Tr,zn.bindAll=Qo,zn.bindKey=Rr,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qr(e)?e:[e]},zn.chain=ur,zn.chunk=function(e,t,s){t=(s?va(e,t,s):t===i)?1:_n(ho(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var r=0,o=0,c=n(ft(a/t));r<a;)c[o++]=is(e,r,r+=t);return c},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,s=[];++t<n;){var a=e[t];a&&(s[i++]=a)}return s},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),i=arguments[0],s=e;s--;)t[s-1]=arguments[s];return Ft(qr(i)?Rs(i):[i],yi(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ca();return e=t?Ut(e,(function(e){if("function"!=typeof e[1])throw new Re(s);return[n(e[0]),e[1]]})):[],Zi((function(n){for(var i=-1;++i<t;){var s=e[i];if(St(s[0],this,n))return St(s[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Co(e);return function(n){return li(n,e,t)}}(ci(e,1))},zn.constant=ec,zn.countBy=hr,zn.create=function(e,t){var n=Bn(e);return null==t?n:si(n,t)},zn.curry=function e(t,n,s){var a=Js(t,8,i,i,i,i,i,n=s?i:n);return a.placeholder=e.placeholder,a},zn.curryRight=function e(t,n,s){var a=Js(t,o,i,i,i,i,i,n=s?i:n);return a.placeholder=e.placeholder,a},zn.debounce=Lr,zn.defaults=Eo,zn.defaultsDeep=Ao,zn.defer=Cr,zn.delay=Nr,zn.difference=Ma,zn.differenceBy=za,zn.differenceWith=Ba,zn.drop=function(e,t,n){var s=null==e?0:e.length;return s?is(e,(t=n||t===i?1:ho(t))<0?0:t,s):[]},zn.dropRight=function(e,t,n){var s=null==e?0:e.length;return s?is(e,0,(t=s-(t=n||t===i?1:ho(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?fs(e,ca(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?fs(e,ca(t,3),!0):[]},zn.fill=function(e,t,n,s){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&va(e,t,n)&&(n=0,s=a),function(e,t,n,s){var a=e.length;for((n=ho(n))<0&&(n=-n>a?0:a+n),(s=s===i||s>a?a:ho(s))<0&&(s+=a),s=n>s?0:mo(s);n<s;)e[n++]=t;return e}(e,t,n,s)):[]},zn.filter=function(e,t){return(qr(e)?Ct:gi)(e,ca(t,3))},zn.flatMap=function(e,t){return yi(Ir(e,t),1)},zn.flatMapDeep=function(e,t){return yi(Ir(e,t),p)},zn.flatMapDepth=function(e,t,n){return n=n===i?1:ho(n),yi(Ir(e,t),n)},zn.flatten=Va,zn.flattenDeep=function(e){return(null==e?0:e.length)?yi(e,p):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yi(e,t=t===i?1:ho(t)):[]},zn.flip=function(e){return Js(e,512)},zn.flow=tc,zn.flowRight=nc,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var s=e[t];i[s[0]]=s[1]}return i},zn.functions=function(e){return null==e?[]:Ii(e,Co(e))},zn.functionsIn=function(e){return null==e?[]:Ii(e,No(e))},zn.groupBy=vr,zn.initial=function(e){return(null==e?0:e.length)?is(e,0,-1):[]},zn.intersection=Ga,zn.intersectionBy=Ha,zn.intersectionWith=Wa,zn.invert=To,zn.invertBy=Ro,zn.invokeMap=br,zn.iteratee=sc,zn.keyBy=wr,zn.keys=Co,zn.keysIn=No,zn.map=Ir,zn.mapKeys=function(e,t){var n={};return t=ca(t,3),bi(e,(function(e,i,s){ai(n,t(e,i,s),e)})),n},zn.mapValues=function(e,t){var n={};return t=ca(t,3),bi(e,(function(e,i,s){ai(n,i,t(e,i,s))})),n},zn.matches=function(e){return zi(ci(e,1))},zn.matchesProperty=function(e,t){return Bi(e,ci(t,1))},zn.memoize=Or,zn.merge=Oo,zn.mergeWith=Uo,zn.method=ac,zn.methodOf=rc,zn.mixin=oc,zn.negate=Ur,zn.nthArg=function(e){return e=ho(e),Zi((function(t){return qi(t,e)}))},zn.omit=Fo,zn.omitBy=function(e,t){return Po(e,Ur(ca(t)))},zn.once=function(e){return kr(2,e)},zn.orderBy=function(e,t,n,s){return null==e?[]:(qr(t)||(t=null==t?[]:[t]),qr(n=s?i:n)||(n=null==n?[]:[n]),Vi(e,t,n))},zn.over=lc,zn.overArgs=Fr,zn.overEvery=dc,zn.overSome=uc,zn.partial=jr,zn.partialRight=Pr,zn.partition=xr,zn.pick=jo,zn.pickBy=Po,zn.property=pc,zn.propertyOf=function(e){return function(t){return null==e?i:xi(e,t)}},zn.pull=Za,zn.pullAll=Ja,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,ca(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,i,n):e},zn.pullAt=Xa,zn.range=fc,zn.rangeRight=hc,zn.rearg=Dr,zn.reject=function(e,t){return(qr(e)?Ct:gi)(e,Ur(ca(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,s=[],a=e.length;for(t=ca(t,3);++i<a;){var r=e[i];t(r,i,e)&&(n.push(r),s.push(i))}return Hi(e,s),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Re(s);return Zi(e,t=t===i?t:ho(t))},zn.reverse=Qa,zn.sampleSize=function(e,t,n){return t=(n?va(e,t,n):t===i)?1:ho(t),(qr(e)?Xn:Xi)(e,t)},zn.set=function(e,t,n){return null==e?e:Qi(e,t,n)},zn.setWith=function(e,t,n,s){return s="function"==typeof s?s:i,null==e?e:Qi(e,t,n,s)},zn.shuffle=function(e){return(qr(e)?Qn:ns)(e)},zn.slice=function(e,t,n){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&va(e,t,n)?(t=0,n=s):(t=null==t?0:ho(t),n=n===i?s:ho(n)),is(e,t,n)):[]},zn.sortBy=Er,zn.sortedUniq=function(e){return e&&e.length?os(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?os(e,ca(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&va(e,t,n)&&(t=n=i),(n=n===i?m:n>>>0)?(e=_o(e))&&("string"==typeof t||null!=t&&!so(t))&&!(t=ls(t))&&on(e)?ws(hn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Re(s);return t=null==t?0:_n(ho(t),0),Zi((function(n){var i=n[t],s=ws(n,0,t);return i&&Ft(s,i),St(e,this,s)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?is(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?is(e,0,(t=n||t===i?1:ho(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var s=null==e?0:e.length;return s?is(e,(t=s-(t=n||t===i?1:ho(t)))<0?0:t,s):[]},zn.takeRightWhile=function(e,t){return e&&e.length?fs(e,ca(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?fs(e,ca(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new Re(s);return Qr(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Lr(e,t,{leading:i,maxWait:t,trailing:a})},zn.thru=pr,zn.toArray=po,zn.toPairs=Do,zn.toPairsIn=Mo,zn.toPath=function(e){return qr(e)?Ut(e,ja):oo(e)?[e]:Rs(Fa(_o(e)))},zn.toPlainObject=yo,zn.transform=function(e,t,n){var i=qr(e),s=i||Hr(e)||co(e);if(t=ca(t,4),null==n){var a=e&&e.constructor;n=s?i?new a:[]:Qr(e)&&Zr(a)?Bn(Ge(e)):{}}return(s?Tt:bi)(e,(function(e,i,s){return t(n,e,i,s)})),n},zn.unary=function(e){return Sr(e,1)},zn.union=er,zn.unionBy=tr,zn.unionWith=nr,zn.uniq=function(e){return e&&e.length?ds(e):[]},zn.uniqBy=function(e,t){return e&&e.length?ds(e,ca(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ds(e,i,t):[]},zn.unset=function(e,t){return null==e||us(e,t)},zn.unzip=ir,zn.unzipWith=sr,zn.update=function(e,t,n){return null==e?e:ps(e,t,_s(n))},zn.updateWith=function(e,t,n,s){return s="function"==typeof s?s:i,null==e?e:ps(e,t,_s(n),s)},zn.values=zo,zn.valuesIn=function(e){return null==e?[]:Qt(e,No(e))},zn.without=ar,zn.words=Jo,zn.wrap=function(e,t){return jr(_s(t),e)},zn.xor=rr,zn.xorBy=or,zn.xorWith=cr,zn.zip=lr,zn.zipObject=function(e,t){return gs(e||[],t||[],ti)},zn.zipObjectDeep=function(e,t){return gs(e||[],t||[],Qi)},zn.zipWith=dr,zn.entries=Do,zn.entriesIn=Mo,zn.extend=bo,zn.extendWith=wo,oc(zn,zn),zn.add=yc,zn.attempt=Xo,zn.camelCase=Bo,zn.capitalize=$o,zn.ceil=_c,zn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=go(n))==n?n:0),t!==i&&(t=(t=go(t))==t?t:0),oi(go(e),t,n)},zn.clone=function(e){return ci(e,4)},zn.cloneDeep=function(e){return ci(e,5)},zn.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:i)},zn.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:i)},zn.conformsTo=function(e,t){return null==t||li(e,t,Co(t))},zn.deburr=qo,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=vc,zn.endsWith=function(e,t,n){e=_o(e),t=ls(t);var s=e.length,a=n=n===i?s:oi(ho(n),0,s);return(n-=t.length)>=0&&e.slice(n,a)==t},zn.eq=Mr,zn.escape=function(e){return(e=_o(e))&&Z.test(e)?e.replace(W,an):e},zn.escapeRegExp=function(e){return(e=_o(e))&&se.test(e)?e.replace(ie,"\\$&"):e},zn.every=function(e,t,n){var s=qr(e)?Lt:hi;return n&&va(e,t,n)&&(t=i),s(e,ca(t,3))},zn.find=mr,zn.findIndex=$a,zn.findKey=function(e,t){return zt(e,ca(t,3),bi)},zn.findLast=gr,zn.findLastIndex=qa,zn.findLastKey=function(e,t){return zt(e,ca(t,3),wi)},zn.floor=bc,zn.forEach=yr,zn.forEachRight=_r,zn.forIn=function(e,t){return null==e?e:_i(e,ca(t,3),No)},zn.forInRight=function(e,t){return null==e?e:vi(e,ca(t,3),No)},zn.forOwn=function(e,t){return e&&bi(e,ca(t,3))},zn.forOwnRight=function(e,t){return e&&wi(e,ca(t,3))},zn.get=So,zn.gt=zr,zn.gte=Br,zn.has=function(e,t){return null!=e&&ma(e,t,ki)},zn.hasIn=ko,zn.head=Ya,zn.identity=ic,zn.includes=function(e,t,n,i){e=Yr(e)?e:zo(e),n=n&&!i?ho(n):0;var s=e.length;return n<0&&(n=_n(s+n,0)),ro(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&$t(e,t,n)>-1},zn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var s=null==n?0:ho(n);return s<0&&(s=_n(i+s,0)),$t(e,t,s)},zn.inRange=function(e,t,n){return t=fo(t),n===i?(n=t,t=0):n=fo(n),function(e,t,n){return e>=vn(t,n)&&e<_n(t,n)}(e=go(e),t,n)},zn.invoke=Lo,zn.isArguments=$r,zn.isArray=qr,zn.isArrayBuffer=Vr,zn.isArrayLike=Yr,zn.isArrayLikeObject=Gr,zn.isBoolean=function(e){return!0===e||!1===e||eo(e)&&Ai(e)==v},zn.isBuffer=Hr,zn.isDate=Wr,zn.isElement=function(e){return eo(e)&&1===e.nodeType&&!io(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Yr(e)&&(qr(e)||"string"==typeof e||"function"==typeof e.splice||Hr(e)||co(e)||$r(e)))return!e.length;var t=ha(e);if(t==E||t==R)return!e.size;if(xa(e))return!ji(e).length;for(var n in e)if(Fe.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Ni(e,t)},zn.isEqualWith=function(e,t,n){var s=(n="function"==typeof n?n:i)?n(e,t):i;return s===i?Ni(e,t,i,n):!!s},zn.isError=Kr,zn.isFinite=function(e){return"number"==typeof e&&vt(e)},zn.isFunction=Zr,zn.isInteger=Jr,zn.isLength=Xr,zn.isMap=to,zn.isMatch=function(e,t){return e===t||Oi(e,t,da(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Oi(e,t,da(t),n)},zn.isNaN=function(e){return no(e)&&e!=+e},zn.isNative=function(e){if(Ia(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ui(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=no,zn.isObject=Qr,zn.isObjectLike=eo,zn.isPlainObject=io,zn.isRegExp=so,zn.isSafeInteger=function(e){return Jr(e)&&e>=-9007199254740991&&e<=f},zn.isSet=ao,zn.isString=ro,zn.isSymbol=oo,zn.isTypedArray=co,zn.isUndefined=function(e){return e===i},zn.isWeakMap=function(e){return eo(e)&&ha(e)==N},zn.isWeakSet=function(e){return eo(e)&&"[object WeakSet]"==Ai(e)},zn.join=function(e,t){return null==e?"":Mt.call(e,t)},zn.kebabCase=Vo,zn.last=Ka,zn.lastIndexOf=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var a=s;return n!==i&&(a=(a=ho(n))<0?_n(s+a,0):vn(a,s-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,a):Bt(e,Vt,a,!0)},zn.lowerCase=Yo,zn.lowerFirst=Go,zn.lt=lo,zn.lte=uo,zn.max=function(e){return e&&e.length?mi(e,ic,Si):i},zn.maxBy=function(e,t){return e&&e.length?mi(e,ca(t,2),Si):i},zn.mean=function(e){return Yt(e,ic)},zn.meanBy=function(e,t){return Yt(e,ca(t,2))},zn.min=function(e){return e&&e.length?mi(e,ic,Di):i},zn.minBy=function(e,t){return e&&e.length?mi(e,ca(t,2),Di):i},zn.stubArray=mc,zn.stubFalse=gc,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Ic,zn.nth=function(e,t){return e&&e.length?qi(e,ho(t)):i},zn.noConflict=function(){return ht._===this&&(ht._=ze),this},zn.noop=cc,zn.now=Ar,zn.pad=function(e,t,n){e=_o(e);var i=(t=ho(t))?fn(e):0;if(!t||i>=t)return e;var s=(t-i)/2;return Vs(mt(s),n)+e+Vs(ft(s),n)},zn.padEnd=function(e,t,n){e=_o(e);var i=(t=ho(t))?fn(e):0;return t&&i<t?e+Vs(t-i,n):e},zn.padStart=function(e,t,n){e=_o(e);var i=(t=ho(t))?fn(e):0;return t&&i<t?Vs(t-i,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(_o(e).replace(ae,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&va(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fo(e),t===i?(t=e,e=0):t=fo(t)),e>t){var s=e;e=t,t=s}if(n||e%1||t%1){var a=In();return vn(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Wi(e,t)},zn.reduce=function(e,t,n){var i=qr(e)?jt:Wt,s=arguments.length<3;return i(e,ca(t,4),n,s,pi)},zn.reduceRight=function(e,t,n){var i=qr(e)?Pt:Wt,s=arguments.length<3;return i(e,ca(t,4),n,s,fi)},zn.repeat=function(e,t,n){return t=(n?va(e,t,n):t===i)?1:ho(t),Ki(_o(e),t)},zn.replace=function(){var e=arguments,t=_o(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var s=-1,a=(t=vs(t,e)).length;for(a||(a=1,e=i);++s<a;){var r=null==e?i:e[ja(t[s])];r===i&&(s=a,r=n),e=Zr(r)?r.call(e):r}return e},zn.round=xc,zn.runInContext=e,zn.sample=function(e){return(qr(e)?Jn:Ji)(e)},zn.size=function(e){if(null==e)return 0;if(Yr(e))return ro(e)?fn(e):e.length;var t=ha(e);return t==E||t==R?e.size:ji(e).length},zn.snakeCase=Ho,zn.some=function(e,t,n){var s=qr(e)?Dt:ss;return n&&va(e,t,n)&&(t=i),s(e,ca(t,3))},zn.sortedIndex=function(e,t){return as(e,t)},zn.sortedIndexBy=function(e,t,n){return rs(e,t,ca(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=as(e,t);if(i<n&&Mr(e[i],t))return i}return-1},zn.sortedLastIndex=function(e,t){return as(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return rs(e,t,ca(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=as(e,t,!0)-1;if(Mr(e[n],t))return n}return-1},zn.startCase=Wo,zn.startsWith=function(e,t,n){return e=_o(e),n=null==n?0:oi(ho(n),0,e.length),t=ls(t),e.slice(n,n+t.length)==t},zn.subtract=Ec,zn.sum=function(e){return e&&e.length?Kt(e,ic):0},zn.sumBy=function(e,t){return e&&e.length?Kt(e,ca(t,2)):0},zn.template=function(e,t,n){var s=zn.templateSettings;n&&va(e,t,n)&&(t=i),e=_o(e),t=wo({},t,s,Xs);var a,r,o=wo({},t.imports,s.imports,Xs),c=Co(o),l=Qt(o,c),d=0,u=t.interpolate||we,p="__p += '",f=ke((t.escape||we).source+"|"+u.source+"|"+(u===Q?fe:we).source+"|"+(t.evaluate||we).source+"|$","g"),h="//# sourceURL="+(Fe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(f,(function(t,n,i,s,o,c){return i||(i=s),p+=e.slice(d,c).replace(Ie,rn),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),o&&(r=!0,p+="';\n"+o+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),d=c+t.length,t})),p+="';\n";var m=Fe.call(t,"variable")&&t.variable;if(m){if(ue.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(r?p.replace(V,""):p).replace(Y,"$1").replace(G,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Xo((function(){return Ee(c,h+"return "+p).apply(i,l)}));if(g.source=p,Kr(g))throw g;return g},zn.times=function(e,t){if((e=ho(e))<1||e>f)return[];var n=m,i=vn(e,m);t=ca(t),e-=m;for(var s=Zt(i,t);++n<e;)t(n);return s},zn.toFinite=fo,zn.toInteger=ho,zn.toLength=mo,zn.toLower=function(e){return _o(e).toLowerCase()},zn.toNumber=go,zn.toSafeInteger=function(e){return e?oi(ho(e),-9007199254740991,f):0===e?e:0},zn.toString=_o,zn.toUpper=function(e){return _o(e).toUpperCase()},zn.trim=function(e,t,n){if((e=_o(e))&&(n||t===i))return Jt(e);if(!e||!(t=ls(t)))return e;var s=hn(e),a=hn(t);return ws(s,tn(s,a),nn(s,a)+1).join("")},zn.trimEnd=function(e,t,n){if((e=_o(e))&&(n||t===i))return e.slice(0,mn(e)+1);if(!e||!(t=ls(t)))return e;var s=hn(e);return ws(s,0,nn(s,hn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=_o(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=ls(t)))return e;var s=hn(e);return ws(s,tn(s,hn(t))).join("")},zn.truncate=function(e,t){var n=30,s="...";if(Qr(t)){var a="separator"in t?t.separator:a;n="length"in t?ho(t.length):n,s="omission"in t?ls(t.omission):s}var r=(e=_o(e)).length;if(on(e)){var o=hn(e);r=o.length}if(n>=r)return e;var c=n-fn(s);if(c<1)return s;var l=o?ws(o,0,c).join(""):e.slice(0,c);if(a===i)return l+s;if(o&&(c+=l.length-c),so(a)){if(e.slice(c).search(a)){var d,u=l;for(a.global||(a=ke(a.source,_o(he.exec(a))+"g")),a.lastIndex=0;d=a.exec(u);)var p=d.index;l=l.slice(0,p===i?c:p)}}else if(e.indexOf(ls(a),c)!=c){var f=l.lastIndexOf(a);f>-1&&(l=l.slice(0,f))}return l+s},zn.unescape=function(e){return(e=_o(e))&&K.test(e)?e.replace(H,gn):e},zn.uniqueId=function(e){var t=++je;return _o(e)+t},zn.upperCase=Ko,zn.upperFirst=Zo,zn.each=yr,zn.eachRight=_r,zn.first=Ya,oc(zn,(wc={},bi(zn,(function(e,t){Fe.call(zn.prototype,t)||(wc[t]=e)})),wc),{chain:!1}),zn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Tt(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:_n(ho(n),0);var s=this.__filtered__&&!t?new Vn(this):this.clone();return s.__filtered__?s.__takeCount__=vn(n,s.__takeCount__):s.__views__.push({size:vn(n,m),type:e+(s.__dir__<0?"Right":"")}),s},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(ic)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Zi((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Li(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Ur(ca(e)))},Vn.prototype.slice=function(e,t){e=ho(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ho(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(m)},bi(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),s=/^(?:head|last)$/.test(t),a=zn[s?"take"+("last"==t?"Right":""):t],r=s||/^find/.test(t);a&&(zn.prototype[t]=function(){var t=this.__wrapped__,o=s?[1]:arguments,c=t instanceof Vn,l=o[0],d=c||qr(t),u=function(e){var t=a.apply(zn,Ft([e],o));return s&&p?t[0]:t};d&&n&&"function"==typeof l&&1!=l.length&&(c=d=!1);var p=this.__chain__,f=!!this.__actions__.length,h=r&&!p,m=c&&!f;if(!r&&d){t=m?t:new Vn(this);var g=e.apply(t,o);return g.__actions__.push({func:pr,args:[u],thisArg:i}),new qn(g,p)}return h&&m?e.apply(this,o):(g=this.thru(u),h?s?g.value()[0]:g.value():g)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Le[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var s=this.value();return t.apply(qr(s)?s:[],e)}return this[n]((function(n){return t.apply(qr(n)?n:[],e)}))}})),bi(Vn.prototype,(function(e,t){var n=zn[t];if(n){var i=n.name+"";Fe.call(Cn,i)||(Cn[i]=[]),Cn[i].push({name:t,func:n})}})),Cn[zs(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Rs(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Rs(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Rs(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qr(e),i=t<0,s=n?e.length:0,a=function(e,t,n){var i=-1,s=n.length;for(;++i<s;){var a=n[i],r=a.size;switch(a.type){case"drop":e+=r;break;case"dropRight":t-=r;break;case"take":t=vn(t,e+r);break;case"takeRight":e=_n(e,t-r)}}return{start:e,end:t}}(0,s,this.__views__),r=a.start,o=a.end,c=o-r,l=i?o:r-1,d=this.__iteratees__,u=d.length,p=0,f=vn(c,this.__takeCount__);if(!n||!i&&s==c&&f==c)return hs(e,this.__actions__);var h=[];e:for(;c--&&p<f;){for(var m=-1,g=e[l+=t];++m<u;){var y=d[m],_=y.iteratee,v=y.type,b=_(g);if(2==v)g=b;else if(!b){if(1==v)continue e;break e}}h[p++]=g}return h},zn.prototype.at=fr,zn.prototype.chain=function(){return ur(this)},zn.prototype.commit=function(){return new qn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===i&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof $n;){var s=Da(n);s.__index__=0,s.__values__=i,t?a.__wrapped__=s:t=s;var a=s;n=n.__wrapped__}return a.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:pr,args:[Qa],thisArg:i}),new qn(t,this.__chain__)}return this.thru(Qa)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return hs(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Je&&(zn.prototype[Je]=function(){return this}),zn}();gt?((gt.exports=yn)._=yn,mt._=yn):ht._=yn}).call(n)}(Ju,Ju.exports);var Xu=Ju.exports;const Qu={type:Mo,stimulus:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?Jc.audio[Xu.camelCase("introductionNs")]:Jc.audio[Xu.camelCase("introduction")],prompt:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${xc.t("introduction.intro.text1")} </h3>\n <p> ${xc.t("introduction.intro.text2")} </p> \n <p> ${xc.t("introduction.intro.text3")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})} </div>`}\n </div>\n `:`\n <div class = "jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${xc.t("introduction.intro.text4")} </h3>\n <p> ${xc.t("introduction.intro.text5")} </p> \n <p> ${xc.t("introduction.intro.text6")} </p> \n <p> ${xc.t("introduction.intro.text3")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.continue")}`})} </button>`:"",on_start:()=>{document.body.style.cursor="none"}},ep={timeline:[{type:Mo,stimulus:()=>Jc.audio.postPracticeInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h3>${xc.t("practice.postPracticeIntro.text1")}</h3>\n <p>${xc.t("practice.postPracticeIntro.text2")}</p>\n <p>${xc.t("practice.postPracticeIntro.text3")}</p>\n <p>${xc.t("practice.postPracticeIntro.text4")}</p>\n <p>${xc.t("practice.postPracticeIntro.text5")}</p>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.continue")}`})} </button>`:""},{type:Mo,stimulus:()=>Jc.audio.postPracticeReminder,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>Remember!</h2>\n <div class="row">\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${xc.t(Kc?"practice.postPracticeReminder.text1Mobile":"practice.postPracticeReminder.text1")} </p>\n <img width="70%" src="${Jc.images.falseKey}" alt="arrow keys">\n </div>\n <div class="column_2_lower" style="background-color:#FFFFFF;">\n <p style = "text-align:center;"> ${xc.t(Kc?"practice.postPracticeReminder.text2Mobile":"practice.postPracticeReminder.text2")} </p>\n <img width="70%" src="${Jc.images.trueKey}" alt="arrow keys">\n </div>\n </div>\n <p><b> ${xc.t("practice.postPracticeReminder.text3")} </b></p>\n <p><b> ${xc.t("practice.postPracticeReminder.text4")} </b></p>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.begin")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>Kc?`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.begin")}`})} </button>`:"",on_finish:()=>{a.session.set("indexTracking",0)}}]},tp={name:"html-multi-response",parameters:{stimulus:{type:Tr.HTML_STRING,pretty_name:"Stimulus",default:void 0},button_choices:{type:Tr.STRING,pretty_name:"Button Choices",default:[],array:!0},keyboard_choices:{type:Tr.KEYS,pretty_name:"Keyboard Choices",default:"NO_KEYS"},button_html:{type:Tr.HTML_STRING,pretty_name:"Button HTML",default:'<button class="jspsych-btn">%choice%</button>',array:!0},prompt:{type:Tr.HTML_STRING,pretty_name:"Prompt",default:null},stimulus_duration:{type:Tr.INT,pretty_name:"Stimulus duration",default:null},trial_duration:{type:Tr.INT,pretty_name:"Trial duration",default:null},margin_vertical:{type:Tr.STRING,pretty_name:"Margin vertical",default:"0px"},margin_horizontal:{type:Tr.STRING,pretty_name:"Margin horizontal",default:"8px"},response_ends_trial:{type:Tr.BOOL,pretty_name:"Response ends trial",default:!0}}};class np{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 s=0;s<t.button_choices.length;s++)i.push(t.button_html);n+='<div id="jspsych-html-multi-response-btngroup">';for(s=0;s<t.button_choices.length;s++){var a=i[s].replace(/%choice%/g,t.button_choices[s]);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-'+s+'" data-choice="'+s+'">'+a+"</div>"}n+="</div>",null!==t.prompt&&(n+=t.prompt),e.innerHTML=n;if("NO_KEYS"!=t.keyboard_choices)var r=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 o=performance.now();for(s=0;s<t.button_choices.length;s++)e.querySelector("#jspsych-html-multi-response-button-"+s).addEventListener("click",(e=>{d(e.currentTarget.getAttribute("data-choice"))}));var c={rt:null,button:null,key:null,source:null};const l=()=>{this.jsPsych.pluginAPI.clearAllTimeouts(),void 0!==r&&this.jsPsych.pluginAPI.cancelKeyboardResponse(r);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 d(n){var i=performance.now(),s=Math.round(i-o);c.button=parseInt(n),c.rt=s,c.source="button",e.querySelector("#jspsych-html-multi-response-stimulus").className+=" responded";for(var a=document.querySelectorAll(".jspsych-html-multi-response-button button"),r=0;r<a.length;r++)a[r].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"},s=Math.random()<.5?n:i,a=this.jsPsych.pluginAPI.mergeSimulationData(s,t);return this.jsPsych.pluginAPI.ensureSimulationDataConsistency(e,a),a}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),s=this.jsPsych.getDisplayElement();this.trial(s,e),n(),null!==i.rt&&(null!==i.button_response?this.jsPsych.pluginAPI.clickTarget(s.querySelector(`div[data-choice="${i.button_response}"] button`),i.rt):this.jsPsych.pluginAPI.pressKey(i.keyboard_response,i.rt))}}np.info=tp;const ip={type:Mo,stimulus:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?Jc.audio[Xu.camelCase("halfwayNs")]:a.session.get("config").story?Jc.audio[Xu.camelCase(`${a.session("character")}Halfway`)]:"",prompt:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.classroomBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${xc.t("gameBreak.halfwayScreen.text1")} </h3>\n <p> ${xc.t("gameBreak.halfwayScreen.text2")} </p>\n </div>\n ${Kc?"":`<div class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})} </div>`}\n </div>`:`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${Jc.images[Xu.camelCase(`${a.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 halfway-text-block">\n <div class="middle">\n <p> ${xc.t("gameBreak.halfwayScreen.text3")}</p>\n <p> ${xc.t("gameBreak.halfwayScreen.text4")}</p>\n </div>\n </div>\n </div>\n ${Kc?"":`<div class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})} </div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.continue")}`})} </button>`,on_finish:()=>{a.session.set("indexTracking",0)}},sp={timeline:[{type:Mo,stimulus:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?Jc.audio[Xu.camelCase("endNs")]:a.session.get("config").story?Jc.audio[Xu.camelCase(`${a.session("character")}End`)]:"",prompt:()=>!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6?`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> \n </div>\n <div class="text-block">\n <h3> ${xc.t("gameBreak.endScreen.text1")} </h3>\n <p> ${xc.t("gameBreak.endScreen.text2")} </p> \n </div>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.save")}`})}</div>`}\n </div>`:`\n <div class="jspsych-content-modified">\n <div class="class-container">\n <img src="${Jc.images.classroomBackground}" alt= "classroom" style="width:100%;"> \n </div>\n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3> ${xc.t("gameBreak.endScreen.text3")} </h3>\n <p> ${a.session("character_name")} ${xc.t("gameBreak.endScreen.text4")} </p> \n </div>\n </div>\n <div class="student" id="end-student">\n <img src="${Jc.images[Xu.camelCase(`${a.session("character")}Happy`)]}" alt= "character is happy"> \n </div>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.save")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.save")}`})} </button>`,data:{save_trial:!1}},{timeline:[{type:np,stimulus:()=>`\n <div class="jspsych-content-modified">\n <div class="container">\n <img src="${Jc.images.academyBackground}" alt= "background" style="width:100%;"> </div>\n <div class="demo-text-block">\n <h3>${xc.t("gameBreak.debrief.text1")}</h3>\n <p>${xc.t("gameBreak.debrief.text2")}</p>\n </div>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.close")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.close")}`})} </button>`}],conditional_function:()=>"demo"===a.session.get("config").userMode},{type:qu,fullscreen_mode:!1,delay_after:0}]},ap={1:{character:"dog",characterName:"Amy",characterActivity:"go to track practice"},2:{character:"cat",characterName:"Carson",characterActivity:"go to debate club"},3:{character:"bird",characterName:"Jaiden",characterActivity:"hang out with my friends"},4:{character:"deer",characterName:"Dylan",characterActivity:"volunteer at the soup kitchen"}},rp=[1,2,3,4],op=["dog","cat","bird","deer"],cp={timeline:[{type:Mo,stimulus:()=>Jc.audio.studentSelect,prompt:()=>Kc?`\n <div>\n <img id="mobile-classroom-bg" src=${Jc.images.classroomBackground} alt="background"/>\n <h3>${xc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${xc.t(Kc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p>\n </div>`:` \n <div class="jspsych-content-modified">\n <div class="class-container">\n <img id="classroom-bg" src=${Jc.images.classroomBackground} alt="background"> \n </div> \n <div class="upper">\n <div class="select-text-block"> <span style="font-weight:bold; white-space:nowrap">\n <h3>${xc.t("characterSelect.studentSelect.paragraph1")}</h3>\n <p> ${xc.t(Kc?"characterSelect.studentSelect.paragraph2Mobile":"characterSelect.studentSelect.paragraph2")} </p> \n </div>\n </div>\n ${Kc?"":`<div class="number">${rp.map((e=>`<div class="number-block"><n>${e}</n></div>`)).join("")}</div>`}\n <div class="student ${Kc?"mobile-student-select-characters":""}">\n ${op.map((e=>`<img src=${Jc.images[e]} alt=${e}>`)).join("")}\n </div>\n <div class="button">\n ${xc.t("navigation.studentSelect")} \n </div>\n </div>\n `,keyboard_choices:()=>Kc?"NO_KEYS":["1","2","3","4"],button_choices:()=>Kc?["1","2","3","4"]:[],button_html:()=>'<button class="grade-btn">%choice%</button>',prompt_above_buttons:()=>Kc,data:{save_trial:!1},on_load:()=>{if(Kc){document.getElementById("jspsych-audio-multi-response-btngroup").classList.add("mobile-audio-btn-container");const e=document.getElementById("jspsych-content");if(e){const t=document.createElement("div"),n=document.createTextNode(xc.t("characterSelect.studentSelect.paragraph3MobileBefore")),i=document.createTextNode(xc.t("characterSelect.studentSelect.paragraph3MobileAfter")),s=document.createElement("span");s.classList.add("yellow"),s.textContent=xc.t("characterSelect.studentSelect.paragraph3MobileSpan"),t.appendChild(n),t.appendChild(s),t.appendChild(i),t.classList.add("button");const a=document.createElement("div"),r=op.map((e=>{const t=document.createElement("img");return t.setAttribute("src",Jc.images[e]),t.setAttribute("alt",e),t.classList.add("mobile-character-select"),t}));for(const e of r)a.appendChild(e);e.appendChild(a),e.appendChild(t)}}},on_finish:e=>{a.session.set("character",ap[Kc?e.button_response+1:e.keyboard_response].character),a.session.set("character_name",ap[Kc?e.button_response+1:e.keyboard_response].characterName),a.session.set("character_activity",ap[Kc?e.button_response+1:e.keyboard_response].characterActivity)}},{type:Mo,stimulus:()=>Jc.audio[Xu.camelCase(`${a.session("character")}Intro`)],prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <div class="row">\n <div class="column_1">\n <img class="characterleft" src="${Jc.images[Xu.camelCase(`${a.session("character")}Talking`)]}" alt="animation of student talking">\n </div>\n <div class= "column_3 student-text-block">\n <div class="middle">\n <p> ${xc.t("characterSelect.studentIntro.paragraph1")} ${a.session("character_name")}. </p>\n <p> ${xc.t("characterSelect.studentIntro.paragraph2")} ${a.session("character_activity")}. </p>\n <p> ${xc.t("characterSelect.studentIntro.paragraph3")} </p>\n </div>\n </div>\n </div>\n ${Kc?"":`<div class="button">${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.anyKey")}`,action:`${xc.t("terms.continue")}`})}</div>`}\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button"> ${xc.t("navigation.continueButtonText",{input:`${xc.t("terms.here")}`,action:`${xc.t("terms.continue")}`})} </button>`}],conditional_function:()=>!(!a.session.get("config").story||"default"===a.session.get("config").userMode&&a.session.get("config").userMetadata.grade>=6)},lp=(e,t,n)=>({timeline:[{type:np,stimulus:()=>{if(0===a.session("indexTracking")){const t=setTimeout((()=>a.session.set("timeOut",!0)),n);a.session.set("timerId",t),"tosrec"!==e?a.session.set("currentCorpus",zu[e]):a.session.set("currentCorpus",zu[a.session("tosrecCorpusId")])}return`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${a.session("currentCorpus")[a.session("indexTracking")].sentence}</p>\n </div>`},prompt:()=>Kc?"":`\n <div> \n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Kc?[xc.t("terms.false")[0].toUpperCase(),xc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${xc.t("terms.false")}/><span>${xc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${xc.t("terms.true")}/><span>${xc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Kc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"test_response"},on_finish:n=>{n.keyboard_response?"arrowleft"===n.keyboard_response?a.session.set("keyResponse","left"):a.session.set("keyResponse","right"):0===n.button_response?a.session.set("buttonResponse","left"):a.session.set("buttonResponse","right"),n.keyboard_response?n.correct=ol.pluginAPI.compareKeys(a.session("keyResponse"),a.session("currentCorpus")[a.session("indexTracking")].direction):n.correct=0===n.button_response&&"left"===a.session("currentCorpus")[a.session("indexTracking")].direction||1===n.button_response&&"right"===a.session("currentCorpus")[a.session("indexTracking")].direction,n.correct?a.session.set("dataCorrect",1):a.session.set("dataCorrect",0),fp.addResponseData(n.rt,n.keyboard_response?n.keyboard_response:n.button_response,a.session("dataCorrect")),ol.data.addDataToLastTrial({save_trial:!a.session("timeOut"),pid:a.session.get("config").pid,subtask:e,blockId:t,corpusId:"tosrec"!==e?e:a.session("tosrecCorpusId"),trialNumBlock:a.session("indexTracking")+1,itemId:a.session("currentCorpus")[a.session("indexTracking")].itemId,item:a.session("currentCorpus")[a.session("indexTracking")].sentence,truefalse:a.session("currentCorpus")[a.session("indexTracking")].answer,correct:a.session("dataCorrect"),story:a.session.get("config").story})}},{type:Mo,stimulus:()=>Jc.audio.neutralSoundSub,prompt:()=>Kc?'<div class=stimulus_div>\n <p id="mobile-placeholder-stimulus">Invisible Place holder text</p>\n </div>':`\n <div>\n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys">\n </div>`,keyboard_choices:"NO_KEYS",button_choices:()=>Kc?[xc.t("terms.false")[0].toUpperCase(),xc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${xc.t("terms.false")}/><span>${xc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${xc.t("terms.true")}/><span>${xc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],prompt_above_buttons:!0,on_load:()=>{if(Kc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content");const e=document.getElementById("jspsych-audio-multi-response-btngroup");e.style.display="flex",e.style.gap="9rem"}},trial_duration:200,response_allowed_while_playing:!1,trial_ends_after_audio:!0}],loop_function:function(){return a.session("indexTracking")===a.session("currentCorpus").length-1||a.session("timeOut")?(a.session.set("indexTracking",0),a.session.set("timeOut",!1),clearTimeout(a.session.get("timerId")),!1):(a.session.transact("indexTracking",(e=>e+1)),!0)}}),dp={type:Mo,stimulus:()=>Jc.audio.practiceInstruction,prompt:()=>`\n <div class="jspsych-content-modified" id="sre-background">\n <h2>${xc.t("practice.intro.text1")}</h2>\n <p>${xc.t("practice.intro.text2")}</p>\n <div class="row">\n <div class="instruction-boxes">\n <p> \n ${xc.t(Kc?"practice.intro.text3Mobile":"practice.intro.text3")} \n </p>\n <img src="${Jc.images.practiceLeft}" alt="arrow keys">\n </div>\n <div class="instruction-boxes">\n <p> \n ${xc.t(Kc?"practice.intro.text4Mobile":"practice.intro.text4")} \n </p>\n <img src="${Jc.images.practiceRight}" alt="arrow keys">\n </div>\n </div>\n <p> <b>${xc.t("practice.intro.text5")}</b> </p> \n <div class="button">${xc.t("practice.intro.text6")}</div>\n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":"ALL_KEYS",button_choices:()=>Kc?["HERE"]:[],button_html:()=>`<button class="button">${xc.t("practice.intro.text6Mobile")}</button>`,on_finish:()=>{a.session.set("indexTracking",-1)}},up={type:np,stimulus:()=>(a.session.transact("indexTracking",(e=>e+1)),`\n <div class=stimulus_div>\n <p class='stimulus' translate='no'>${a.session("practiceCorpus")[a.session("indexTracking")].sentence}</p>\n </div>`),prompt:()=>Kc?"":`\n <div> \n <img class="lower" src="${Jc.images.roarSreKeyboard}" alt="arrow keys"> \n </div>`,keyboard_choices:()=>Kc?"NO_KEYS":["ArrowLeft","ArrowRight"],button_choices:()=>Kc?[xc.t("terms.false")[0].toUpperCase(),xc.t("terms.true")[0].toUpperCase()]:[],button_html:()=>Kc?[`<button class="mobile-stimulus-btn"><img src=${Jc.images.leftArrowBlankShort} alt=${xc.t("terms.false")}/><span>${xc.t("terms.false")[0].toLocaleUpperCase()}</span></button>`,`<button class="mobile-stimulus-btn"><img src=${Jc.images.rightArrowBlankShort} alt=${xc.t("terms.true")}/><span>${xc.t("terms.true")[0].toLocaleUpperCase()}</span></button>`]:[],on_load:()=>{if(Kc){document.body.style.display="flex",document.body.style.justifyContent="center",document.body.style.alignContent="center";document.querySelector(".jspsych-content-wrapper").classList.add("mobile-stimulus-wrap");document.getElementById("jspsych-content").classList.add("mobile-stimulus-jspsych-content")}},data:{assessment_stage:"practice_response",corpusId:"practice",save_trial:!0},on_finish:e=>{e.keyboard_response?(e.correct=ol.pluginAPI.compareKeys(e.keyboard_response,a.session("practiceCorpus")[a.session("indexTracking")].correct_response),a.session.set("arrowResponse",e.keyboard_response)):e.correct="arrowleft"===a.session("practiceCorpus")[a.session("indexTracking")].correct_response&&0===e.button_response||"arrowright"===a.session("practiceCorpus")[a.session("indexTracking")].correct_response&&1===e.button_response,e.correct?(a.session.set("dataCorrect",1),a.session.set("feedbackResponse","Correct!")):(a.session.set("dataCorrect",0),a.session.set("feedbackResponse","That's not quite right."));const t="arrowleft"===e.keyboard_response||0===e.button_response;a.session.set("responseLR",t?"left":"right"),a.session.set("answerRP",t?"false":"true"),a.session.set("responseColor",t?"orange":"blue");const n="arrowleft"===a.session("practiceCorpus")[a.session("indexTracking")].correct_response;a.session.set("correctLR",n?"left":"right"),a.session.set("correctRP",n?"false":"true"),a.session.set("answerColor",n?"orange":"blue"),ol.data.addDataToLastTrial({pid:a.session.get("config").pid,subtask:"practice",corpusId:"practice",correct:a.session("dataCorrect"),trialNumBlock:a.session("indexTracking"),item:a.session("practiceCorpus")[a.session("indexTracking")].sentence,truefalse:a.session("practiceCorpus")[a.session("indexTracking")].answer,story:a.session.get("config").story})}};"false"===a.session("correctRP")?Jc.images.falseFlashKeySplit:Jc.images.falseStaticKeySplit,"false"===a.session("correctRP")?Jc.images.trueStaticKeySplit:Jc.images.trueFlashKeySplit;const pp={type:Mo,response_allowed_while_playing:()=>a.session.get("config").skipInstructions,stimulus:()=>1===a.session("dataCorrect")?Jc.audio[`feedback${a.session("indexTracking")}Correct`]:Jc.audio[`feedback${a.session("indexTracking")}Incorrect`],prompt:()=>`\n <div class="stimulus_div">\n <p id=${Kc?"mobile-stimulus-text":""} class="feedback" translate='no'>\n <span class=${a.session("responseColor")}>${a.session("feedbackResponse")} ${xc.t(Kc?"practice.feedback.text1Mobile":"practice.feedback.text1",{arrow:"left"===a.session("responseLR")?xc.t("terms.left"):xc.t("terms.right"),type:"true"===a.session("answerRP")?xc.t("terms.true"):xc.t("terms.false")})}</span>\n <br></br> \n "${a.session("practiceCorpus")[a.session("indexTracking")].sentence}"\n <span class=${a.session("answerColor")}> ${xc.t(Kc?"practice.feedback.text2Mobile":"practice.feedback.text2",{arrow:"left"===a.session("correctLR")?xc.t("terms.left"):xc.t("terms.right"),type:"true"===a.session("correctRP")?xc.t("terms.true"):xc.t("terms.false")})}</span>\n </p>\n </div>\n ${Kc?"":`<img class="lower" src= "${"false"===a.session("correctRP")?Jc.images.falseFlashKey:Jc.images.trueFlashKey}" alt="arrow keys">`}`,keyboard_choices:()=>Kc?"NO_KEYS":"false"===a.session("correctRP")?["ArrowLeft"]:["ArrowRight"],button_choices:()=>Kc?["ArrowLeft","ArrowRight"]:[],button_html:()=>Kc?[`<button class="mobile-practice-feedback ${"false"===a.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"false"===a.session("correctRP")?Jc.images.falseFlashKeySplit:Jc.images.falseStaticKeySplit} alt="feedback arrow"/>\n </button>`,`<button class="mobile-practice-feedback ${"true"===a.session("correctRP")?"":"mobile-disable-button"}">\n <img src=${"true"===a.session("correctRP")?Jc.images.trueFlashKeySplit:Jc.images.trueStaticKeySplit} alt="feedback arrow"/>\n </button>`]:"",prompt_above_buttons:()=>Kc,on_load:()=>{document.querySelectorAll(".jspsych-audio-multi-response-button").forEach(((e,t)=>{const n="false"===a.session("correctRP");0!==t||n?1===t&&n&&e.classList.add("mobile-disable-button"):e.classList.add("mobile-disable-button")}))}};let fp;const hp=Object.prototype.toString;function mp(e){switch(hp.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ap(e,Error)}}function gp(e,t){return hp.call(e)===`[object ${t}]`}function yp(e){return gp(e,"ErrorEvent")}function _p(e){return gp(e,"DOMError")}function vp(e){return gp(e,"String")}function bp(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function wp(e){return gp(e,"Object")}function Ip(e){return"undefined"!=typeof Event&&Ap(e,Event)}function xp(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ep(e){return"number"==typeof e&&e!=e}function Ap(e,t){try{return e instanceof t}catch(e){return!1}}function Sp(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function kp(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Tp(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{Sp(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Rp(e,t,n=!1){return!!vp(e)&&(gp(t,"RegExp")?t.test(e):!!vp(t)&&(n?e===t:e.includes(t)))}function Lp(e,t=[],n=!1){return t.some((t=>Rp(e,t,n)))}function Cp(e,t,n=250,i,s,a,r){if(!(a.exception&&a.exception.values&&r&&Ap(r.originalException,Error)))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;var c,l;o&&(a.exception.values=(c=Np(e,t,s,r.originalException,i,a.exception.values,o,0),l=n,c.map((e=>(e.value&&(e.value=kp(e.value,l)),e)))))}function Np(e,t,n,i,s,a,r,o){if(a.length>=n+1)return a;let c=[...a];if(Ap(i[s],Error)){Op(r,o);const a=e(t,i[s]),l=c.length;Up(a,s,l,o),c=Np(e,t,n,i[s],s,[a,...c],a,l)}return Array.isArray(i.errors)&&i.errors.forEach(((i,a)=>{if(Ap(i,Error)){Op(r,o);const l=e(t,i),d=c.length;Up(l,`errors[${a}]`,d,o),c=Np(e,t,n,i,s,[l,...c],l,d)}})),c}function Op(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Up(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 Fp(e){return e&&e.Math==Math?e:void 0}const jp="object"==typeof globalThis&&Fp(globalThis)||"object"==typeof window&&Fp(window)||"object"==typeof self&&Fp(self)||"object"==typeof global&&Fp(global)||function(){return this}()||{};function Pp(){return jp}function Dp(e,t,n){const i=n||jp,s=i.__SENTRY__=i.__SENTRY__||{};return s[e]||(s[e]=t())}const Mp=Pp(),zp=80;function Bp(e,t={}){try{let n=e;const i=5,s=[];let a=0,r=0;const o=" > ",c=o.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||zp;for(;n&&a++<i&&(l=$p(n,d),!("html"===l||a>1&&r+s.length*c+l.length>=u));)s.push(l),r+=l.length,n=n.parentNode;return s.reverse().join(o)}catch(e){return"<unknown>"}}function $p(e,t){const n=e,i=[];let s,a,r,o,c;if(!n||!n.tagName)return"";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}`),s=n.className,s&&vp(s))for(a=s.split(/\s+/),c=0;c<a.length;c++)i.push(`.${a[c]}`);const d=["aria-label","type","name","title","alt"];for(c=0;c<d.length;c++)r=d[c],o=n.getAttribute(r),o&&i.push(`[${r}="${o}"]`);return i.join("")}const qp=["debug","info","warn","error","log","assert","trace"],Vp={};function Yp(e){if(!("console"in jp))return e();const t=jp.console,n={},i=Object.keys(Vp);i.forEach((e=>{const i=Vp[e];n[e]=t[e],t[e]=i}));try{return e()}finally{i.forEach((e=>{t[e]=n[e]}))}}const Gp=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?qp.forEach((n=>{t[n]=(...t)=>{e&&Yp((()=>{jp.console[n](`Sentry Logger [${n}]:`,...t)}))}})):qp.forEach((e=>{t[e]=()=>{}})),t}(),Hp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Wp(e,t=!1){const{host:n,path:i,pass:s,port:a,projectId:r,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&s?`:${s}`:""}@${n}${a?`:${a}`:""}/${i?`${i}/`:i}${r}`}function Kp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Zp(e){const t="string"==typeof e?function(e){const t=Hp.exec(e);if(!t)return void console.error(`Invalid Sentry Dsn: ${e}`);const[n,i,s="",a,r="",o]=t.slice(1);let c="",l=o;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Kp({host:a,pass:s,path:c,projectId:l,port:r,protocol:n,publicKey:i})}(e):Kp(e);if(t&&function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(Gp.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(Gp.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Gp.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(Gp.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}class Jp extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Xp(e,t,n){if(!(t in e))return;const i=e[t],s=n(i);"function"==typeof s&&ef(s,i),e[t]=s}function Qp(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ef(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Qp(e,"__sentry_original__",t)}catch(e){}}function tf(e){return e.__sentry_original__}function nf(e){if(mp(e))return{message:e.message,name:e.name,stack:e.stack,...af(e)};if(Ip(e)){const t={type:e.type,target:sf(e.target),currentTarget:sf(e.currentTarget),...af(e)};return"undefined"!=typeof CustomEvent&&Ap(e,CustomEvent)&&(t.detail=e.detail),t}return e}function sf(e){try{return t=e,"undefined"!=typeof Element&&Ap(t,Element)?Bp(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function af(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 rf(e){return of(e,new Map)}function of(e,t){if(wp(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]=of(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(of(e,t))})),i}return e}const cf=50,lf=/\(error: (.*)\)/,df=/captureMessage|captureException/;function uf(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const i=[],s=e.split("\n");for(let e=n;e<s.length;e++){const n=s[e];if(n.length>1024)continue;const a=lf.test(n)?n.replace(lf,"$1"):n;if(!a.match(/\S*Error: /)){for(const e of t){const t=e(a);if(t){i.push(t);break}}if(i.length>=cf)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),df.test(t[t.length-1].function||"")&&(t.pop(),df.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,cf).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(i)}}const pf="<anonymous>";function ff(e){try{return e&&"function"==typeof e&&e.name||pf}catch(e){return pf}}const hf=Pp();function mf(){if(!("fetch"in hf))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function gf(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const yf=Pp();const _f=Pp(),vf="__sentry_xhr_v2__",bf={},wf={};function If(e){if(!wf[e])switch(wf[e]=!0,e){case"console":!function(){if(!("console"in jp))return;qp.forEach((function(e){e in jp.console&&Xp(jp.console,e,(function(t){return Vp[e]=t,function(...t){Ef("console",{args:t,level:e});const n=Vp[e];n&&n.apply(jp.console,t)}}))}))}();break;case"dom":!function(){if(!_f.document)return;const e=Ef.bind(null,"dom"),t=Cf(e,!0);_f.document.addEventListener("click",t,!1),_f.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=_f[t]&&_f[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Xp(n,"addEventListener",(function(t){return function(n,i,s){if("click"===n||"keypress"==n)try{const i=this,a=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},r=a[n]=a[n]||{refCount:0};if(!r.handler){const i=Cf(e);r.handler=i,t.call(this,n,i,s)}r.refCount++}catch(e){}return t.call(this,n,i,s)}})),Xp(n,"removeEventListener",(function(e){return function(t,n,i){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},a=s[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,i),a.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,i)}})))}))}();break;case"xhr":!function(){if(!_f.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Xp(e,"open",(function(e){return function(...t){const n=t[1],i=this[vf]={method:vp(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};vp(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const e=this[vf];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Ef("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Xp(this,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(this,t)}})):this.addEventListener("readystatechange",s),Xp(this,"setRequestHeader",(function(e){return function(...t){const[n,i]=t,s=this[vf];return s&&(s.request_headers[n.toLowerCase()]=i),e.apply(this,t)}})),e.apply(this,t)}})),Xp(e,"send",(function(e){return function(...t){const n=this[vf];return n&&void 0!==t[0]&&(n.body=t[0]),Ef("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!mf())return!1;if(gf(hf.fetch))return!0;let e=!1;const t=hf.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=gf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())return;Xp(jp,"fetch",(function(e){return function(...t){const{method:n,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Sf(t),method:Af(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Sf(t),method:Af(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:n,url:i},startTimestamp:Date.now()};return Ef("fetch",{...s}),e.apply(jp,t).then((e=>(Ef("fetch",{...s,endTimestamp:Date.now(),response:e}),e)),(e=>{throw Ef("fetch",{...s,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!function(){const e=yf.chrome,t=e&&e.app&&e.app.runtime,n="history"in yf&&!!yf.history.pushState&&!!yf.history.replaceState;return!t&&n}())return;const e=_f.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=kf,t=String(n);kf=t,Ef("history",{from:e,to:t})}return e.apply(this,t)}}_f.onpopstate=function(...t){const n=_f.location.href,i=kf;if(kf=n,Ef("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(e){}},Xp(_f.history,"pushState",t),Xp(_f.history,"replaceState",t)}();break;case"error":Nf=_f.onerror,_f.onerror=function(e,t,n,i,s){return Ef("error",{column:i,error:s,line:n,msg:e,url:t}),!(!Nf||Nf.__SENTRY_LOADER__)&&Nf.apply(this,arguments)},_f.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":Of=_f.onunhandledrejection,_f.onunhandledrejection=function(e){return Ef("unhandledrejection",e),!(Of&&!Of.__SENTRY_LOADER__)||Of.apply(this,arguments)},_f.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("unknown instrumentation type:",e))}}function xf(e,t){bf[e]=bf[e]||[],bf[e].push(t),If(e)}function Ef(e,t){if(e&&bf[e])for(const n of bf[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ff(n)}\nError:`,t)}}function Af(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Sf(e){return"string"==typeof e?e:e?Af(e,"url")?e.url:e.toString?e.toString():"":""}let kf;const Tf=1e3;let Rf,Lf;function Cf(e,t=!1){return n=>{if(!n||Lf===n)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n))return;const i="keypress"===n.type?"input":n.type;(void 0===Rf||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(Lf,n))&&(e({event:n,name:i,global:t}),Lf=n),clearTimeout(Rf),Rf=_f.setTimeout((()=>{Rf=void 0}),Tf)}}let Nf=null;let Of=null;function Uf(){const e=jp,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function Ff(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function jf(e){const{message:t,event_id:n}=e;if(t)return t;const i=Ff(e);return i?i.type&&i.value?`${i.type}: ${i.value}`:i.type||i.value||n||"<unknown>":n||"<unknown>"}function Pf(e,t,n){const i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function Df(e,t){const n=Ff(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 Mf(e){if(e&&e.__sentry_captured__)return!0;try{Qp(e,"__sentry_captured__",!0)}catch(e){}return!1}function zf(e){return Array.isArray(e)?e:[e]}function Bf(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function $f(e,t=100,n=1/0){try{return Vf("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function qf(e,t=3,n=102400){const i=$f(e,t);return s=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(s))>n?qf(e,t-1,n):i;var s}function Vf(e,t,n=1/0,i=1/0,s=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[a,r]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!Ep(t))return t;const o=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(Sp(t))return"[VueViewModel]";if(wp(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${ff(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(!o.startsWith("[object "))return o;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 o.replace("object ","");if(a(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return Vf("",l.toJSON(),c-1,i,s)}catch(e){}const d=Array.isArray(t)?[]:{};let u=0;const p=nf(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(u>=i){d[e]="[MaxProperties ~]";break}const t=p[e];d[e]=Vf(e,t,c-1,i,s),u++}return r(t),d}var Yf;function Gf(e){return new Wf((t=>{t(e)}))}function Hf(e){return new Wf(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Yf||(Yf={}));class Wf{constructor(e){Wf.prototype.__init.call(this),Wf.prototype.__init2.call(this),Wf.prototype.__init3.call(this),Wf.prototype.__init4.call(this),this._state=Yf.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new Wf(((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 Wf(((t,n)=>{let i,s;return this.then((t=>{s=!1,i=t,e&&e()}),(t=>{s=!0,i=t,e&&e()})).then((()=>{s?n(i):t(i)}))}))}__init(){this._resolve=e=>{this._setResult(Yf.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Yf.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Yf.PENDING&&(xp(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Yf.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===Yf.RESOLVED&&e[1](this._value),this._state===Yf.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function Kf(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(i){if(!(void 0===e||t.length<e))return Hf(new Jp("Not adding Promise because buffer limit was reached."));const s=i();return-1===t.indexOf(s)&&t.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(e){return new Wf(((n,i)=>{let s=t.length;if(!s)return n(!0);const a=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{Gf(e).then((()=>{--s||(clearTimeout(a),n(!0))}),i)}))}))}}}function Zf(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}}const Jf=["fatal","error","warning","log","info","debug"];const Xf=Pp(),Qf={nowSeconds:()=>Date.now()/1e3};const eh=Bf()?function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(e){return}var e,t}():function(){const{performance:e}=Xf;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),th=void 0===eh?Qf:{nowSeconds:()=>(eh.timeOrigin+eh.now())/1e3},nh=Qf.nowSeconds.bind(Qf),ih=th.nowSeconds.bind(th),sh=(()=>{const{performance:e}=Xf;if(!e||!e.now)return;const t=36e5,n=e.now(),i=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=s<t,r=e.timing&&e.timing.navigationStart,o="number"==typeof r?Math.abs(r+n-i):t;return a||o<t?s<=o?e.timeOrigin:r:i})(),ah="baggage",rh="sentry-",oh=/^sentry-/,ch=8192;function lh(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],i)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===i?s:`${e},${s}`;return a.length>ch?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${rh}${t}`]=n),e)),{}))}function dh(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}const uh=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ph(e,t){const n=function(e){if(!e)return;const t=e.match(uh);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=function(e){if(!vp(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>({...e,...dh(t)})),{});else{if(!e)return;t=dh(e)}const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(oh)&&(e[t.slice(rh.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:s,parentSpanId:a,parentSampled:r}=n||{},o={traceId:s||Uf(),spanId:Uf().substring(16),sampled:r};return a&&(o.parentSpanId=a),i&&(o.dsc=i),{traceparentData:n,dynamicSamplingContext:i,propagationContext:o}}function fh(e=Uf(),t=Uf().substring(16),n){let i="";return void 0!==n&&(i=n?"-1":"-0"),`${e}-${t}${i}`}function hh(e,t=[]){return[e,t]}function mh(e,t){const[n,i]=e;return[n,[...i,t]]}function gh(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function yh(e,t){return(t||new TextEncoder).encode(e)}function _h(e,t){const[n,i]=e;let s=JSON.stringify(n);function a(e){"string"==typeof s?s="string"==typeof e?s+e:[yh(s,t),e]:s.push("string"==typeof e?yh(e,t):e)}for(const e of i){const[t,n]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify($f(n))}a(e)}}return"string"==typeof s?s: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}(s)}function vh(e,t){const n="string"==typeof e.data?yh(e.data,t):e.data;return[rf({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const bh={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function wh(e){return bh[e]}function Ih(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function xh(e,t,n,i){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:Wp(i)},...s&&{trace:rf({...s})}}}const Eh=6e4;function Ah(e,{statusCode:t,headers:n},i=Date.now()){const s={...e},a=n&&n["x-sentry-rate-limits"],r=n&&n["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n]=e.split(":",2),a=parseInt(t,10),r=1e3*(isNaN(a)?60:a);if(n)for(const e of n.split(";"))s[e]=i+r;else s.all=i+r}else r?s.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)?Eh:i-t}(r,i):429===t&&(s.all=i+6e4);return s}const Sh="production";function kh(){return Dp("globalEventProcessors",(()=>[]))}function Th(e){kh().push(e)}function Rh(e,t,n,i=0){return new Wf(((s,a)=>{const r=e[i];if(null===t||"function"!=typeof r)s(t);else{const o=r({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.id&&null===o&&Gp.log(`Event processor "${r.id}" dropped event`),xp(o)?o.then((t=>Rh(e,t,n,i+1).then(s))).then(null,a):Rh(e,o,n,i+1).then(s).then(null,a)}}))}function Lh(e){const t=ih(),n={sid:Uf(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return rf({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,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Ch(n,e),n}function Ch(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||ih(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Uf()),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)}class Nh{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Oh()}static clone(e){const t=new Nh;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata},t._propagationContext={...e._propagationContext}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Ch(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.getSpan();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;if("function"==typeof e){const t=e(this);return t instanceof Nh?t:this}return e instanceof Nh?(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&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):wp(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),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=Oh(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const i={timestamp:nh(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>n?s.slice(-n):s,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._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}this._applyFingerprint(e);const n=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...n];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},Rh([...kh(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?zf(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function Oh(){return{traceId:Uf(),spanId:Uf().substring(16)}}const Uh=4,Fh=100;class jh{constructor(e,t=new Nh,n=Uh){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=Nh.clone(this.getScope());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();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}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:Uf(),i=new Error("Sentry syntheticException");return this._withClient(((s,a)=>{s.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},a)})),n}captureMessage(e,t,n){const i=this._lastEventId=n&&n.event_id?n.event_id:Uf(),s=new Error(e);return this._withClient(((a,r)=>{a.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:i},r)})),i}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Uf();return e.type||(this._lastEventId=n),this._withClient(((i,s)=>{i.captureEvent(e,{...t,event_id:n},s)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=Fh}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const r={timestamp:nh(),...e},o=s?Yp((()=>s(r,t))):r;null!==o&&(i.emit&&i.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,a))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=Dh(this);try{e(this)}finally{Dh(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.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"}),Ch(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:i,environment:s=Sh}=n&&n.getOptions()||{},{userAgent:a}=jp.navigator||{},r=Lh({release:i,environment:s,user:t.getUser(),...a&&{userAgent:a},...e}),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&Ch(o,{status:"exited"}),this.endSession(),t.setSession(r),r}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)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){const n=Ph().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ph(){return jp.__SENTRY__=jp.__SENTRY__||{extensions:{},hub:void 0},jp}function Dh(e){const t=Ph(),n=zh(t);return Bh(t,e),n}function Mh(){const e=Ph();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Ph()){t=e,t&&t.__SENTRY__&&t.__SENTRY__.hub&&!zh(e).isOlderThan(Uh)||Bh(e,new jh);var t;return zh(e)}(e)}function zh(e){return Dp("hub",(()=>new jh),e)}function Bh(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function $h(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Mh().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function qh(e){return(e||Mh()).getScope().getTransaction()}let Vh=!1;function Yh(){const e=qh();if(e){const t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Yh.tag="sentry_tracingErrorCallback";class Gh{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Hh{constructor(e={}){this.traceId=e.traceId||Uf(),this.spanId=e.spanId||Uf().substring(16),this.startTimestamp=e.startTimestamp||ih(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){const t=new Hh({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){const n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},Gp.log(n)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);const t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&Gp.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:ih()}toTraceparent(){return fh(this.traceId,this.spanId,this.sampled)}toContext(){return rf({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return rf({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return rf({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function Wh(e,t,n){const i=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},r=rf({environment:i.environment||Sh,release:i.release,user_segment:a,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",r),r}class Kh extends Hh{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||Mh(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{}},this._trimEnd=e.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Gh(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);const i=this.metadata,s={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(s)}toContext(){return rf({...super.toContext(),name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const e=this._hub||Mh(),t=e.getClient();if(!t)return{};const n=e.getScope(),i=Wh(this.traceId,t,n),s=this.metadata.sampleRate;void 0!==s&&(i.sample_rate=`${s}`);const a=this.metadata.source;return a&&"url"!==a&&(i.transaction=this.name),void 0!==this.sampled&&(i.sampled=String(this.sampled)),i}setHub(e){this._hub=e}}const Zh={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Jh=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Xh extends Gh{constructor(e,t,n,i){super(i),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:ih(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class Qh extends Kh{constructor(e,t,n=Zh.idleTimeout,i=Zh.finalTimeout,s=Zh.heartbeatInterval,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=s,this._onScope=a,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Jh[4],a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Jh[3],this.finish())}),this._finalTimeout)}finish(e=ih()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(const t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));const n=t.startTimestamp<e,i=(this._finalTimeout+this._idleTimeout)/1e3,s=t.endTimestamp-this.startTimestamp<i;if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=JSON.stringify(t,void 0,2);n?s||Gp.log("[Tracing] discarding Span since it finished after Transaction final timeout",e):Gp.log("[Tracing] discarding Span since it happened after Transaction was finished",e)}return n&&s})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] No active IdleTransaction");if(this._onScope){const e=this._idleHub.getScope();e.getTransaction()===this&&e.setSpan(void 0)}return super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=e=>{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Xh(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Jh[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=Jh[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=ih();this._idleTimeoutCanceledPermanently?(this._finishReason=Jh[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Jh[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function em(){const e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function tm(e,t,n){if(!$h(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let i;return"function"==typeof t.tracesSampler?(i=t.tracesSampler(n),e.setMetadata({sampleRate:Number(i)})):void 0!==n.parentSampled?i=n.parentSampled:void 0!==t.tracesSampleRate?(i=t.tracesSampleRate,e.setMetadata({sampleRate:Number(i)})):(i=1,e.setMetadata({sampleRate:i})),function(e){if(Ep(e)||"number"!=typeof e&&"boolean"!=typeof e)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.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)}.`),!1;if(e<0||e>1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(i)?i?(e.sampled=Math.random()<i,e.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),e)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function nm(e,t){const n=this.getClient(),i=n&&n.getOptions()||{},s=i.instrumenter||"sentry",a=e.instrumenter||"sentry";s!==a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${s}\` instrumenter.\nThe transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),e.sampled=!1);let r=new Kh(e,this);return r=tm(r,i,{parentSampled:e.parentSampled,transactionContext:e,...t}),r.sampled&&r.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",r),r}function im(e,t,n,i,s,a,r){const o=e.getClient(),c=o&&o.getOptions()||{};let l=new Qh(t,e,n,i,r,s);return l=tm(l,c,{parentSampled:t.parentSampled,transactionContext:t,...a}),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",l),l}function sm(){const e=Ph();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=nm),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=em),Vh||(Vh=!0,xf("error",Yh),xf("unhandledrejection",Yh)))}function am(e,t){return Mh().captureException(e,{captureContext:t})}const rm="7";function om(e,t){return n={sentry_key:e.publicKey,sentry_version:rm,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}const cm=[];function lm(e){const t=e.defaultIntegrations||[],n=e.integrations;let i;t.forEach((e=>{e.isDefaultInstance=!0})),i=Array.isArray(n)?[...t,...n]:"function"==typeof n?zf(n(t)):t;const s=function(e){const t={};return e.forEach((e=>{const{name:n}=e,i=t[n];i&&!i.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(i),a=function(e,t){for(let n=0;n<e.length;n++)if(!0===t(e[n]))return n;return-1}(s,(e=>"Debug"===e.name));if(-1!==a){const[e]=s.splice(a,1);s.push(e)}return s}function dm(e,t,n){if(n[t.name]=t,-1===cm.indexOf(t.name)&&(t.setupOnce(Th,Mh),cm.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,i)=>n(t,i,e)))}if(e.addEventProcessor&&"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)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Integration installed: ${t.name}`)}function um(e,t,n,i,s){const{normalizeDepth:a=3,normalizeMaxBreadth:r=1e3}=e,o={...t,event_id:t.event_id||n.event_id||Uf(),timestamp:t.timestamp||nh()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:s,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:Sh);void 0===e.release&&void 0!==i&&(e.release=i);void 0===e.dist&&void 0!==s&&(e.dist=s);e.message&&(e.message=kp(e.message,a));const r=e.exception&&e.exception.values&&e.exception.values[0];r&&r.value&&(r.value=kp(r.value,a));const o=e.request;o&&o.url&&(o.url=kp(o.url,a))}(o,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(o,c),void 0===t.type&&function(e,t){const n=jp._sentryDebugIds;if(!n)return;let i;const s=pm.get(t);s?i=s:(i=new Map,pm.set(t,i));const a=Object.keys(n).reduce(((e,s)=>{let a;const r=i.get(s);r?a=r:(a=t(s),i.set(s,a));for(let t=a.length-1;t>=0;t--){const i=a[t];if(i.filename){e[i.filename]=n[s];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=a[e.filename])}))}))}catch(e){}}(o,e.stackParser);let l=i;n.captureContext&&(l=Nh.clone(l).update(n.captureContext));let d=Gf(o);if(l){if(l.getAttachments){const e=[...n.attachments||[],...l.getAttachments()];e.length&&(n.attachments=e)}d=l.applyToEvent(o,n)}return d.then((e=>s&&s.getEventProcessors?Rh(s.getEventProcessors(),e,n):e)).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.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:$f(e.data,t,n)}})))},...e.user&&{user:$f(e.user,t,n)},...e.contexts&&{contexts:$f(e.contexts,t,n)},...e.extra&&{extra:$f(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=$f(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>(e.data&&(e.data=$f(e.data,t,n)),e))));return i}(e,a,r):e)))}const pm=new WeakMap;const fm="Not capturing exception because it's already been captured.";class hm{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Zp(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("No DSN provided, client will not do anything."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${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)}?${om(e,i)}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(Mf(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(fm));let i=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{i=e}))),i}captureMessage(e,t,n,i){let s=n&&n.event_id;const a=bp(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(a.then((e=>this._captureEvent(e,n,i))).then((e=>{s=e}))),s}captureEvent(e,t,n){if(t&&t.originalException&&Mf(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(fm));let i=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{i=e}))),i}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Ch(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("SDK not enabled, will not capture session.")}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._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):Gf(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&dm(e,t,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){dm(this,e,this._integrations)}sendEvent(e,t={}){if(this.emit("beforeSendEvent",e,t),this._dsn){let n=function(e,t,n,i){const s=Ih(n),a=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 r=xh(e,s,i,t);return delete e.sdkProcessingMetadata,hh(r,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=mh(n,vh(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then((t=>this.emit("afterSendEvent",e,t)),null)}}sendSession(e){if(this._dsn){const t=function(e,t,n,i){const s=Ih(n);return hh({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!i&&{dsn:Wp(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 n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,i=!1;const s=t.exception&&t.exception.values;if(s){i=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const a="ok"===e.status;(a&&0===e.errors||a&&n)&&(Ch(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Wf((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._dsn}_prepareEvent(e,t,n){const i=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),um(i,e,t,n,this).then((e=>{if(null===e)return e;const{propagationContext:t}=e.sdkProcessingMetadata||{};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:i,spanId:s,parentSpanId:a,dsc:r}=t;e.contexts={trace:{trace_id:i,span_id:s,parent_span_id:a},...e.contexts};const o=r||Wh(i,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?Gp.log(t.message):Gp.warn(t)}}))}_processEvent(e,t,n){const i=this.getOptions(),{sampleRate:s}=i;if(!this._isEnabled())return Hf(new Jp("SDK not enabled, will not capture event.","log"));const a=gm(e),r=mm(e),o=e.type||"error",c=`before send for type \`${o}\``;if(r&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",e),Hf(new Jp(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const l="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new Jp("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const s=function(e,t,n){const{beforeSend:i,beforeSendTransaction:s}=e;if(mm(t)&&i)return i(t,n);if(gm(t)&&s)return s(t,n);return t}(i,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(xp(e))return e.then((e=>{if(!wp(e)&&null!==e)throw new Jp(n);return e}),(e=>{throw new Jp(`${t} rejected with ${e}`)}));if(!wp(e)&&null!==e)throw new Jp(n);return e}(s,c)})).then((i=>{if(null===i)throw this.recordDroppedEvent("before_send",l,e),new Jp(`${c} returned \`null\`, will not send event.`,"log");const s=n&&n.getSession();!a&&s&&this._updateSessionFromEvent(s,i);const r=i.transaction_info;if(a&&r&&i.transaction!==e.transaction){const e="custom";i.transaction_info={...r,source:e}}return this.sendEvent(i,t),i})).then(null,(e=>{if(e instanceof Jp)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Jp(`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)))}_sendEnvelope(e){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",e),this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,i]=t.split(":");return{reason:n,category:i,quantity:e[t]}}))}}function mm(e){return void 0===e.type}function gm(e){return"transaction"===e.type}const ym=30;function _m(e,t,n=Kf(e.bufferSize||ym)){let i={};function s(s){const a=[];if(gh(s,((t,n)=>{const s=wh(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(i,s)){const i=vm(t,n);e.recordDroppedEvent("ratelimit_backoff",s,i)}else a.push(t)})),0===a.length)return Gf();const r=hh(s[0],a),o=t=>{gh(r,((n,i)=>{const s=vm(n,i);e.recordDroppedEvent(t,wh(i),s)}))};return n.add((()=>t({body:_h(r,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=Ah(i,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Jp)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("Skipped sending event because buffer is full."),o("queue_overflow"),Gf();throw e}))}return s.__sentry__baseTransport__=!0,{send:s,flush:e=>n.drain(e)}}function vm(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const bm="7.70.0";let wm;class Im{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=Im.id}setupOnce(){wm=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=tf(this)||this;return wm.apply(t,e)}}catch(e){}}}Im.__initStatic();const xm=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Em=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class Am{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=Am.id,this._options=e}setupOnce(e,t){const n=e=>{const n=t();if(n){const t=n.getIntegration(Am);if(t){const i=n.getClient(),s=i?i.getOptions():{},a=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:xm],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Em],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,s);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${jf(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}`));"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||0!==t.length||Gp.error(`Could not extract message for event ${jf(e)}`);return t}(e).some((e=>Lp(e,t)))}(e,t.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${jf(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&Lp(n,t)}(e,t.ignoreTransactions))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${jf(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=Sm(e);return!!n&&Lp(n,t)}(e,t.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${jf(e)}.\nUrl: ${Sm(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=Sm(e);return!n||Lp(n,t)}(e,t.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${jf(e)}.\nUrl: ${Sm(e)}`),!0;return!1}(e,a)?null:e}}return e};n.id=this.name,e(n)}}function Sm(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("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(`Cannot extract url for event ${jf(e)}`),null}}Am.__initStatic();const km=jp;let Tm=0;function Rm(){return Tm>0}function Lm(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(tf(e))return e}catch(t){return e}const i=function(){const i=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=i.map((e=>Lm(e,t)));return e.apply(this,s)}catch(e){throw Tm++,setTimeout((()=>{Tm--})),s=n=>{n.addEventProcessor((e=>(t.mechanism&&(Pf(e,void 0,void 0),Df(e,t.mechanism)),e.extra={...e.extra,arguments:i},e))),am(e)},Mh().withScope(s),e}var s};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch(e){}ef(i,e),Qp(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>e.name})}catch(e){}return i}function Cm(e,t){const n=Om(e,t),i={type:t&&t.name,value:Fm(t)};return n.length&&(i.stacktrace={frames:n}),void 0===i.type&&""===i.value&&(i.value="Unrecoverable error caught"),i}function Nm(e,t){return{exception:{values:[Cm(e,t)]}}}function Om(e,t){const n=t.stacktrace||t.stack||"",i=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Um.test(e.message))return 1}return 0}(t);try{return e(n,i)}catch(e){}return[]}const Um=/Minified React error #\d+;/i;function Fm(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function jm(e,t,n,i,s){let a;if(yp(t)&&t.error){return Nm(e,t.error)}if(_p(t)||gp(t,"DOMException")){const s=t;if("stack"in t)a=Nm(e,t);else{const t=s.name||(_p(s)?"DOMError":"DOMException"),r=s.message?`${t}: ${s.message}`:t;a=Pm(e,r,n,i),Pf(a,r)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}if(mp(t))return Nm(e,t);if(wp(t)||Ip(t)){return a=function(e,t,n,i){const s=Mh().getClient(),a=s&&s.getOptions().normalizeDepth,r={exception:{values:[{type:Ip(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:Dm(t,{isUnhandledRejection:i})}]},extra:{__serialized__:qf(t,a)}};if(n){const t=Om(e,n);t.length&&(r.exception.values[0].stacktrace={frames:t})}return r}(e,t,n,s),Df(a,{synthetic:!0}),a}return a=Pm(e,t,n,i),Pf(a,`${t}`,void 0),Df(a,{synthetic:!0}),a}function Pm(e,t,n,i){const s={message:t};if(i&&n){const i=Om(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]})}return s}function Dm(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(nf(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return kp(n[0],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:kp(i,t)}return""}(e),i=t?"promise rejection":"exception";if(yp(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(Ip(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 Mm extends hm{constructor(e){const t=km.SENTRY_SDK_SOURCE||"npm";e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:bm}],version:bm},super(e),e.sendClientReports&&km.document&&km.document.addEventListener("visibilitychange",(()=>{"hidden"===km.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,i){const s=jm(e,t,n&&n.syntheticException||void 0,i);return Df(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Gf(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",i,s){const a=Pm(e,t,i&&i.syntheticException||void 0,s);return a.level=n,i&&i.event_id&&(a.event_id=i.event_id),Gf(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:i}){const s={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:Wp(i)}},a=function(e){return[{type:"user_report"},e]}(e);return hh(s,[a])}(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)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("Sending outcomes:",e);const t=(n=e,hh((i=this._options.tunnel&&Wp(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:s||nh(),discarded_events:n}]]));var n,i,s;this._sendEnvelope(t)}}let zm;function Bm(e,t=function(){if(zm)return zm;if(gf(km.fetch))return zm=km.fetch.bind(km);const e=km.document;let t=km.fetch;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const i=n.contentWindow;i&&i.fetch&&(t=i.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return zm=t.bind(km)}()){let n=0,i=0;return _m(e,(function(s){const a=s.body.length;n+=a,i++;const r={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};try{return t(e.url,r).then((e=>(n-=a,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 zm=void 0,n-=a,i--,Hf(e)}}))}const $m=4;function qm(e){return _m(e,(function(t){return new Wf(((n,i)=>{const s=new XMLHttpRequest;s.onerror=i,s.onreadystatechange=()=>{s.readyState===$m&&n({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&s.setRequestHeader(t,e.headers[t]);s.send(t.body)}))}))}const Vm="?";function Ym(e,t,n,i){const s={filename:e,function:t,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==i&&(s.colno=i),s}const Gm=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Hm=/\((\S*)(?::(\d+))(?::(\d+))\)/,Wm=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Km=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Zm=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jm=uf(...[[30,e=>{const t=Gm.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Hm.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Xm(t[1]||Vm,t[2]);return Ym(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=Wm.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Km.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]||Vm;return[n,e]=Xm(n,e),Ym(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=Zm.exec(e);return t?Ym(t[2],t[1]||Vm,+t[3],t[4]?+t[4]:void 0):void 0}]]),Xm=(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]:Vm,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Qm{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=Qm.id,this._options={onerror:!0,onunhandledrejection:!0,...e},this._installFunc={onerror:eg,onunhandledrejection:tg}}setupOnce(){Error.stackTraceLimit=50;const e=this._options;for(const n in e){const i=this._installFunc[n];i&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`Global Handler attached: ${t}`),i(),this._installFunc[n]=void 0)}var t}}function eg(){xf("error",(e=>{const[t,n,i]=sg();if(!t.getIntegration(Qm))return;const{msg:s,url:a,line:r,column:o,error:c}=e;if(Rm()||c&&c.__sentry_own_request__)return;const l=void 0===c&&vp(s)?function(e,t,n,i){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=yp(e)?e.message:e,r="Error";const o=a.match(s);o&&(r=o[1],a=o[2]);const c={exception:{values:[{type:r,value:a}]}};return ng(c,t,n,i)}(s,a,r,o):ng(jm(n,c||s,void 0,i,!1),a,r,o);l.level="error",ig(t,c,l,"onerror")}))}function tg(){xf("unhandledrejection",(e=>{const[t,n,i]=sg();if(!t.getIntegration(Qm))return;let s=e;try{"reason"in e?s=e.reason:"detail"in e&&"reason"in e.detail&&(s=e.detail.reason)}catch(e){}if(Rm()||s&&s.__sentry_own_request__)return!0;const a=bp(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:jm(n,s,void 0,i,!0);a.level="error",ig(t,s,a,"onunhandledrejection")}))}function ng(e,t,n,i){const s=e.exception=e.exception||{},a=s.values=s.values||[],r=a[0]=a[0]||{},o=r.stacktrace=r.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(i,10))?void 0:i,d=isNaN(parseInt(n,10))?void 0:n,u=vp(t)&&t.length>0?t:function(){try{return Mp.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:u,function:"?",in_app:!0,lineno:d}),e}function ig(e,t,n,i){Df(n,{handled:!1,type:i}),e.captureEvent(n,{originalException:t})}function sg(){const e=Mh(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}Qm.__initStatic();const ag=["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"];class rg{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=rg.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&Xp(km,"setTimeout",og),this._options.setInterval&&Xp(km,"setInterval",og),this._options.requestAnimationFrame&&Xp(km,"requestAnimationFrame",cg),this._options.XMLHttpRequest&&"XMLHttpRequest"in km&&Xp(XMLHttpRequest.prototype,"send",lg);const e=this._options.eventTarget;if(e){(Array.isArray(e)?e:ag).forEach(dg)}}}function og(e){return function(...t){const n=t[0];return t[0]=Lm(n,{mechanism:{data:{function:ff(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function cg(e){return function(t){return e.apply(this,[Lm(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ff(e)},handled:!1,type:"instrument"}})])}}function lg(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Xp(n,e,(function(t){const n={mechanism:{data:{function:e,handler:ff(t)},handled:!1,type:"instrument"}},i=tf(t);return i&&(n.mechanism.data.handler=ff(i)),Lm(t,n)}))})),e.apply(this,t)}}function dg(e){const t=km,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Xp(n,"addEventListener",(function(t){return function(n,i,s){try{"function"==typeof i.handleEvent&&(i.handleEvent=Lm(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ff(i),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Lm(i,{mechanism:{data:{function:"addEventListener",handler:ff(i),target:e},handled:!1,type:"instrument"}}),s])}})),Xp(n,"removeEventListener",(function(e){return function(t,n,i){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&e.call(this,t,n,i)}catch(e){}return e.call(this,t,s,i)}})))}rg.__initStatic();const ug=1024;class pg{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=pg.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){if(this.options.console&&xf("console",hg),this.options.dom&&xf("dom",function(e){function t(t){let n,i="object"==typeof e?e.serializeAttribute:void 0,s="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;s&&s>ug&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=ug),"string"==typeof i&&(i=[i]);try{const e=t.event;n=function(e){return!!e&&!!e.target}(e)?Bp(e.target,{keyAttrs:i,maxStringLength:s}):Bp(e,{keyAttrs:i,maxStringLength:s})}catch(e){n="<unknown>"}0!==n.length&&Mh().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&xf("xhr",mg),this.options.fetch&&xf("fetch",gg),this.options.history&&xf("history",yg),this.options.sentry){const e=Mh().getClient();e&&e.on&&e.on("beforeSendEvent",fg)}}}function fg(e){Mh().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:jf(e)},{event:e})}function hg(e){const t={category:"console",data:{arguments:e.args,logger:"console"},level:(n=e.level,"warn"===n?"warning":Jf.includes(n)?n:"log"),message:Tp(e.args," ")};var n;if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${Tp(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}Mh().addBreadcrumb(t,{input:e.args,level:e.level})}function mg(e){const{startTimestamp:t,endTimestamp:n}=e,i=e.xhr[vf];if(!t||!n||!i)return;const{method:s,url:a,status_code:r,body:o}=i,c={method:s,url:a,status_code:r},l={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};Mh().addBreadcrumb({category:"xhr",data:c,type:"http"},l)}function gg(e){const{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const i=e.fetchData,s={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};Mh().addBreadcrumb({category:"fetch",data:i,level:"error",type:"http"},s)}else{const i={...e.fetchData,status_code:e.response&&e.response.status},s={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};Mh().addBreadcrumb({category:"fetch",data:i,type:"http"},s)}}function yg(e){let t=e.from,n=e.to;const i=Zf(km.location.href);let s=Zf(t);const a=Zf(n);s.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),i.protocol===s.protocol&&i.host===s.host&&(t=s.relative),Mh().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}pg.__initStatic();class _g{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=_g.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){const i=n.getOptions();Cp(Cm,i.stackParser,i.maxValueLength,this._key,this._limit,e,t)}}_g.__initStatic();class vg{static __initStatic(){this.id="HttpContext"}constructor(){this.name=vg.id}setupOnce(){Th((e=>{if(Mh().getIntegration(vg)){if(!km.navigator&&!km.location&&!km.document)return e;const t=e.request&&e.request.url||km.location&&km.location.href,{referrer:n}=km.document||{},{userAgent:i}=km.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...i&&{"User-Agent":i}},a={...e.request,...t&&{url:t},headers:s};return{...e,request:a}}return e}))}}vg.__initStatic();class bg{static __initStatic(){this.id="Dedupe"}constructor(){this.name=bg.id}setupOnce(e,t){const n=e=>{if(e.type)return e;const n=t().getIntegration(bg);if(n){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(!Ig(e,t))return!1;if(!wg(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=xg(t),i=xg(e);if(!n||!i)return!1;if(n.type!==i.type||n.value!==i.value)return!1;if(!Ig(e,t))return!1;if(!wg(e,t))return!1;return!0}(e,t))return!0;return!1}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function wg(e,t){let n=Eg(e),i=Eg(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],s=n[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function Ig(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 xg(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Eg(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}bg.__initStatic();const Ag=[new Am,new Im,new rg,new pg,new Qm,new _g,new bg,new vg];function Sg(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=Ag),void 0===e.release&&("string"==typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),km.SENTRY_RELEASE&&km.SENTRY_RELEASE.id&&(e.release=km.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(n=e.stackParser||Jm,Array.isArray(n)?uf(...n):n),integrations:lm(e),transport:e.transport||(mf()?Bm:qm)};var n;!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Gp.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=Mh();n.getScope().update(t.initialScope);const i=new e(t);n.bindClient(i)}(Mm,t),e.autoSessionTracking&&function(){if(void 0===km.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=Mh();if(!e.captureSession)return;kg(e),xf("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&kg(Mh())}))}()}function kg(e){e.startSession({ignoreDuration:!0}),e.captureSession()}const Tg=jp,Rg="sentryReplaySession",Lg="replay_event",Cg="Unable to send Replay",Ng=15e4,Og=5e3,Ug=2e7,Fg=36e5;var jg;function Pg(e){const t=null==e?void 0:e.host;return Boolean(t&&t.shadowRoot&&t.shadowRoot===e)}function Dg({maskInputOptions:e,tagName:t,type:n}){"option"===t.toLowerCase()&&(t="select");const i="string"==typeof n?n.toLowerCase():void 0;return e[t.toLowerCase()]||i&&e[i]||"password"===i||"input"===t&&!n&&e.text}function Mg({input:e,maskInputSelector:t,unmaskInputSelector:n,maskInputOptions:i,tagName:s,type:a,value:r,maskInputFn:o}){let c=r||"";return n&&e.matches(n)||(e.hasAttribute("data-rr-is-password")&&(a="password"),(Dg({maskInputOptions:i,tagName:s,type:a})||t&&e.matches(t))&&(c=o?o(c):"*".repeat(c.length))),c}!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"}(jg||(jg={}));const zg="__rrweb_original__";function Bg(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null}function $g(e,t,n){return"string"==typeof n&&n.toLowerCase(),"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let qg=1;const Vg=new RegExp("[^a-z0-9-_:]"),Yg=-2;function Gg(e){return e?e.replace(/[\S]/g,"*"):""}function Hg(e){try{const t=e.rules||e.cssRules;return t?Array.from(t).map(Wg).join(""):null}catch(e){return null}}function Wg(e){let t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=Hg(e.styleSheet)||t}catch(e){}return Kg(t)}function Kg(e){if(e.indexOf(":")>-1){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}return e}let Zg,Jg;const Xg=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Qg=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,ey=/^(data:)([^,]*),(.*)/i;function ty(e,t){return(e||"").replace(Xg,((e,n,i,s,a,r)=>{const o=i||a||r,c=n||s||"";if(!o)return e;if(!Qg.test(o))return`url(${c}${o}${c})`;if(ey.test(o))return`url(${c}${o}${c})`;if("/"===o[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)+o}${c})`;const l=t.split("/"),d=o.split("/");l.pop();for(const e of d)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const ny=/^[^ \t\n\r\u000c]+/,iy=/^[, \t\n\r\u000c]+/;function sy(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function ay(){const e=document.createElement("a");return e.href="",e.href}function ry(e,t,n,i,s,a,r,o){if(!s)return s;const c=i.toLowerCase(),l=n.toLowerCase();return"src"===c||"href"===c||"xlink:href"===c&&"#"!==s[0]?sy(e,s):"background"!==c||"table"!==l&&"td"!==l&&"th"!==l?"srcset"===c?function(e,t){if(""===t.trim())return t;let n=0;function i(e){let i,s=e.exec(t.substring(n));return s?(i=s[0],n+=i.length,i):""}let s=[];for(;i(iy),!(n>=t.length);){let a=i(ny);if(","===a.slice(-1))a=sy(e,a.substring(0,a.length-1)),s.push(a);else{let i="";a=sy(e,a);let r=!1;for(;;){let e=t.charAt(n);if(""===e){s.push((a+i).trim());break}if(r)")"===e&&(r=!1);else{if(","===e){n+=1,s.push((a+i).trim());break}"("===e&&(r=!0)}i+=e,n+=1}}}return s.join(", ")}(e,s):"style"===c?ty(s,ay()):"object"===l&&"data"===c?sy(e,s):a&&function(e,t,n,i){if(i&&e.matches(i))return!1;return["placeholder","title","aria-label"].indexOf(t)>-1||"input"===n&&"value"===t&&e.hasAttribute("type")&&["submit","button"].indexOf(e.getAttribute("type").toLowerCase())>-1}(t,c,l,r)?o?o(s):Gg(s):s:sy(e,s)}function oy(e,t,n,i,s){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return oy(e.parentNode,t,n,i,s);if(i&&(e.matches(i)||e.closest(i)))return!1;if(s)return!0;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const i=e.classList[n];if(t.test(i))return!0}return!(!n||!e.matches(n))||oy(e.parentNode,t,n,i,s)}function cy(e,t){var n;const{doc:i,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:d,maskInputSelector:u,unmaskInputSelector:p,maskAllText:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:b}=t;let w;if(i.__sn){const e=i.__sn.id;w=1===e?void 0:e}switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:jg.Document,childNodes:[],compatMode:e.compatMode,rootId:w}:{type:jg.Document,childNodes:[],rootId:w};case e.DOCUMENT_TYPE_NODE:return{type:jg.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:const t=function(e,t,n,i){if(i&&e.matches(i))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=0;n<e.classList.length;n++){const i=e.classList[n];if(t.test(i))return!0}return!!n&&e.matches(n)}(e,s,a,r),E=function(e){if(e instanceof HTMLFormElement)return"form";const t=e.tagName.toLowerCase().trim();return Vg.test(t)?"div":t}(e);let A={};for(const{name:t,value:n}of Array.from(e.attributes))uy(E,t)||(A[t]=ry(i,e,E,t,n,f,l,m));if("link"===E&&d){const t=Array.from(i.styleSheets).find((t=>t.href===e.href));let n=null;t&&(n=Hg(t)),n&&(delete A.rel,delete A.href,A._cssText=ty(n,t.href))}if("style"===E&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Hg(e.sheet);t&&(A._cssText=ty(t,ay()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const t=e,n=Bg(t),i=$g(t,E.toUpperCase(),n),s=e.checked;"submit"!==n&&"button"!==n&&i&&(A.value=Mg({input:t,type:n,tagName:E,value:i,maskInputSelector:u,unmaskInputSelector:p,maskInputOptions:h,maskInputFn:g})),s&&(A.checked=s)}if("option"===E&&(e.selected&&!h.select?A.selected=!0:delete A.selected),"canvas"===E&&v)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 s=t.getImageData,a=zg in s?s[zg]:s;if(new Uint32Array(a.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)||(A.rr_dataURL=e.toDataURL(y.type,y.quality));else if(!("__context"in e)){const t=e.toDataURL(y.type,y.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(y.type,y.quality)&&(A.rr_dataURL=t)}if("img"===E&&_){Zg||(Zg=i.createElement("canvas"),Jg=Zg.getContext("2d"));const t=e,n=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{try{Zg.width=t.naturalWidth,Zg.height=t.naturalHeight,Jg.drawImage(t,0,0),A.rr_dataURL=Zg.toDataURL(y.type,y.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}n?A.crossOrigin=n:delete A.crossOrigin};t.complete&&0!==t.naturalWidth?s():t.onload=s}if("audio"!==E&&"video"!==E||(A.rr_mediaState=e.paused?"paused":"played",A.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(A.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(A.rr_scrollTop=e.scrollTop),t){const{width:t,height:n}=e.getBoundingClientRect();A={class:A.class,rr_width:`${t}px`,rr_height:`${n}px`}}return"iframe"!==E||b(A.src)||(e.contentDocument||(A.rr_src=A.src),delete A.src),{type:jg.Element,tagName:E,attributes:A,childNodes:[],isSVG:(x=e,Boolean("svg"===x.tagName||x.ownerSVGElement)||void 0),needBlock:t,rootId:w};case e.TEXT_NODE:const S=e.parentNode&&e.parentNode.tagName;let k=e.textContent;const T="STYLE"===S||void 0,R="SCRIPT"===S||void 0;if(T&&k){try{e.nextSibling||e.previousSibling||(null===(n=e.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(k=(I=e.parentNode.sheet).cssRules?Array.from(I.cssRules).map((e=>e.cssText?Kg(e.cssText):"")).join(""):"")}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}k=ty(k,ay())}if(R&&(k="SCRIPT_PLACEHOLDER"),"TEXTAREA"===S&&k)k="";else if("OPTION"===S&&k){k=Mg({input:e.parentNode,type:null,tagName:S,value:k,maskInputSelector:u,unmaskInputSelector:p,maskInputOptions:h,maskInputFn:g})}else!T&&!R&&oy(e,o,c,l,f)&&k&&(k=m?m(k):Gg(k));return{type:jg.Text,textContent:k||"",isStyle:T,rootId:w};case e.CDATA_SECTION_NODE:return{type:jg.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:jg.Comment,textContent:e.textContent||"",rootId:w};default:return!1}var I,x}function ly(e){return null==e?"":e.toLowerCase()}function dy(e,t){const{doc:n,map:i,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:d=!1,inlineStylesheet:u=!0,maskInputSelector:p,unmaskInputSelector:f,maskAllText:h,maskInputOptions:m={},maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E=5e3,keepIframeSrcFn:A=(()=>!1)}=t;let{preserveWhiteSpace:S=!0}=t;const k=cy(e,{doc:n,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:u,maskInputSelector:p,unmaskInputSelector:f,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:w,keepIframeSrcFn:A});if(!k)return console.warn(e,"not serialized"),null;let T;T="__sn"in e?e.__sn.id:!function(e,t){if(t.comment&&e.type===jg.Comment)return!0;if(e.type===jg.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ly(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ly(e.attributes.name)||"icon"===ly(e.attributes.rel)||"apple-touch-icon"===ly(e.attributes.rel)||"shortcut icon"===ly(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ly(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ly(e.attributes.property).match(/^(og|twitter|fb):/)||ly(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ly(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ly(e.attributes.name)||"googlebot"===ly(e.attributes.name)||"bingbot"===ly(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ly(e.attributes.name)||"generator"===ly(e.attributes.name)||"framework"===ly(e.attributes.name)||"publisher"===ly(e.attributes.name)||"progid"===ly(e.attributes.name)||ly(e.attributes.property).match(/^article:/)||ly(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ly(e.attributes.name)||"yandex-verification"===ly(e.attributes.name)||"csrf-token"===ly(e.attributes.name)||"p:domain_verify"===ly(e.attributes.name)||"verify-v1"===ly(e.attributes.name)||"verification"===ly(e.attributes.name)||"shopify-checkout-api-token"===ly(e.attributes.name)))return!0}}return!1}(k,_)&&(S||k.type!==jg.Text||k.isStyle||k.textContent.replace(/^\s+|\s+$/gm,"").length)?qg++:Yg;const R=Object.assign(k,{id:T});if(e.__sn=R,T===Yg)return null;i[T]=e,I&&I(e);let L=!d;if(R.type===jg.Element&&(L=L&&!R.needBlock,delete R.needBlock,e.shadowRoot&&(R.isShadowHost=!0)),(R.type===jg.Document||R.type===jg.Element)&&L){_.headWhitespace&&k.type===jg.Element&&"head"===k.tagName&&(S=!1);const t={doc:n,map:i,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:d,inlineStylesheet:u,maskInputSelector:p,unmaskInputSelector:f,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:S,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,keepIframeSrcFn:A};for(const n of Array.from(e.childNodes)){const e=dy(n,t);e&&R.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 e=dy(n,t);e&&(e.isShadow=!0,R.childNodes.push(e))}}return e.parentNode&&Pg(e.parentNode)&&(R.isShadow=!0),R.type===jg.Element&&"iframe"===R.tagName&&function(e,t,n){const i=e.contentWindow;if(!i)return;let s,a=!1;try{s=i.document.readyState}catch(e){return}if("complete"!==s){const i=setTimeout((()=>{a||(t(),a=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(i),a=!0,t()}))}const r="about:blank";i.location.href===r&&e.src!==r&&""!==e.src?e.addEventListener("load",t):setTimeout(t,0)}(e,(()=>{const t=e.contentDocument;if(t&&x){const n=dy(t,{doc:t,map:i,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:u,maskInputSelector:p,unmaskInputSelector:f,maskAllText:h,maskInputOptions:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:w,preserveWhiteSpace:S,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:E,keepIframeSrcFn:A});n&&x(e,n)}}),E),R}function uy(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}var py,fy,hy,my,gy,yy;function _y(e,t,n=document){const i={capture:!0,passive:!0};return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}!function(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"}(py||(py={})),function(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"}(fy||(fy={})),function(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"}(hy||(hy={})),function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"}(my||(my={})),function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"}(gy||(gy={})),function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"}(yy||(yy={}));const vy="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 by={map:{},getId:()=>(console.error(vy),-1),getNode:()=>(console.error(vy),null),removeNodeFromMap(){console.error(vy)},has:()=>(console.error(vy),!1),reset(){console.error(vy)}};function wy(e,t,n={}){let i=null,s=0;return function(a){let r=Date.now();s||!1!==n.leading||(s=r);let o=t-(r-s),c=this,l=arguments;o<=0||o>t?(i&&(clearTimeout(i),i=null),s=r,e.apply(c,l)):i||!1===n.trailing||(i=setTimeout((()=>{s=!1===n.leading?0:Date.now(),i=null,e.apply(c,l)}),o))}}function Iy(e,t,n,i,s=window){const a=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,i?n:{set(e){setTimeout((()=>{n.set.call(this,e)}),0),a&&a.set&&a.set.call(this,e)}}),()=>Iy(e,t,a||{},!0)}function xy(e,t,n){try{if(!(t in e))return()=>{};const i=e[t],s=n(i);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:i}})),e[t]=s,()=>{e[t]=i}}catch(e){return()=>{}}}function Ey(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ay(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Sy(e,t,n,i){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){let s=!1;const a=i&&e.matches(i);return"string"==typeof t?s=void 0!==e.closest?!a&&null!==e.closest("."+t):!a&&e.classList.contains(t):!a&&e.classList.forEach((e=>{t.test(e)&&(s=!0)})),!s&&n&&(s=e.matches(n)),!a&&s||Sy(e.parentNode,t,n,i)}return e.nodeType,e.TEXT_NODE,Sy(e.parentNode,t,n,i)}function ky(e){return"__sn"in e&&e.__sn.id===Yg}function Ty(e,t){if(Pg(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Ty(e.parentNode,t))}function Ry(e){return Boolean(e.changedTouches)}function Ly(e){return"__sn"in e&&(e.__sn.type===jg.Element&&"iframe"===e.__sn.tagName)}function Cy(e){return Boolean(null==e?void 0:e.shadowRoot)}function Ny(e){return"__ln"in e}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(by=new Proxy(by,{get:(e,t,n)=>("map"===t&&console.error(vy),Reflect.get(e,t,n))}));class Oy{constructor(){this.length=0,this.head=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=(null==t?void 0:t.next)||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Ny(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&&Ny(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;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.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}const Uy=(e,t)=>`${e}@${t}`;function Fy(e){return"__sn"in e}class jy{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],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 Oy,n=e=>{let t=e,n=Yg;for(;n===Yg;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{var s,a,r,o,c;const l=i.getRootNode?null===(s=i.getRootNode())||void 0===s?void 0:s.host:null;let d=l;for(;null===(r=null===(a=null==d?void 0:d.getRootNode)||void 0===a?void 0:a.call(d))||void 0===r?void 0:r.host;)d=(null===(c=null===(o=null==d?void 0:d.getRootNode)||void 0===o?void 0:o.call(d))||void 0===c?void 0:c.host)||null;const u=!(this.doc.contains(i)||d&&this.doc.contains(d));if(!i.parentNode||u)return;const p=Pg(i.parentNode)?this.mirror.getId(l):this.mirror.getId(i.parentNode),f=n(i);if(-1===p||-1===f)return t.addNode(i);let h=dy(i,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Ly(e)&&this.iframeManager.addIframe(e),Cy(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,document)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)}});h&&e.push({parentId:p,nextId:f,node:h})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Dy(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(const e of this.addedSet)My(this.droppedSet,e)||Dy(this.removes,e,this.mirror)?My(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;t.length;){let e=null;if(s){const t=this.mirror.getId(s.value.parentNode),i=n(s.value);-1!==t&&-1!==i&&(e=s)}if(!e)for(let i=t.length-1;i>=0;i--){const s=t.get(i);if(s){const t=this.mirror.getId(s.value.parentNode),i=n(s.value);if(-1!==t&&-1!==i){e=s;break}}}if(!e){for(;t.head;)t.removeNode(t.head.value);break}s=e.previous,t.removeNode(e.value),i(e.value)}const a={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>({id:this.mirror.getId(e.node),attributes:e.attributes}))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!ky(e.target))switch(e.type){case"characterData":{const t=e.target.textContent;Sy(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||t===e.oldValue||this.texts.push({value:oy(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=t.getAttribute(e.attributeName);if("value"===e.attributeName&&(n=Mg({input:t,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:t.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),Sy(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===e.oldValue)return;let i=this.attributes.find((t=>t.node===e.target));if(i||(i={node:e.target,attributes:{}},this.attributes.push(i)),"type"===e.attributeName&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),"style"===e.attributeName){const n=this.doc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue),void 0!==i.attributes.style&&null!==i.attributes.style||(i.attributes.style={});try{const e=i.attributes.style;for(const i of Array.from(t.style)){const s=t.style.getPropertyValue(i),a=t.style.getPropertyPriority(i);s===n.style.getPropertyValue(i)&&a===n.style.getPropertyPriority(i)||(e[i]=""===a?s:[s,a])}for(const i of Array.from(n.style))""===t.style.getPropertyValue(i)&&(e[i]=!1)}catch(e){console.warn("[rrweb] Error when parsing update to style attribute:",e)}}else{const t=e.target;i.attributes[e.attributeName]=ry(this.doc,t,t.tagName,e.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),i=Pg(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Sy(e.target,this.blockClass,this.blockSelector,this.unblockSelector)||ky(t)||(this.addedSet.has(t)?(Py(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Ty(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Uy(n,i)]?Py(this.movedSet,t):this.removes.push({parentId:i,id:n,isShadow:!!Pg(e.target)||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!t||!Sy(t,this.blockClass,this.blockSelector,this.unblockSelector)){if(Fy(e)){if(ky(e))return;this.movedSet.add(e);let n=null;t&&Fy(t)&&(n=t.__sn.id),n&&(this.movedMap[Uy(e.__sn.id,n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Sy(e,this.blockClass,this.blockSelector,this.unblockSelector)||e.childNodes.forEach((e=>this.genAdds(e)))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].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 Py(e,t){e.delete(t),t.childNodes.forEach((t=>Py(e,t)))}function Dy(e,t,n){const{parentNode:i}=t;if(!i)return!1;const s=n.getId(i);return!!e.some((e=>e.id===s))||Dy(e,i,n)}function My(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||My(e,n))}const zy=e=>(...t)=>{try{return e(...t)}catch(e){try{e.__rrweb__=!0}catch(e){}throw e}},By=[];function $y(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 qy(e,t){var n,i;const s=new jy;By.push(s),s.init(e);let a=window.MutationObserver||window.__rrMutationObserver;const r=null===(i=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===i?void 0:i.call(n,"MutationObserver");r&&window[r]&&(a=window[r]);const o=new a(zy((t=>{e.onMutation&&!1===e.onMutation(t)||s.processMutations(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Vy({mouseInteractionCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,sampling:r}){if(!1===r.mouseInteraction)return()=>{};const o=!0===r.mouseInteraction||void 0===r.mouseInteraction?{}:r.mouseInteraction,c=[];return Object.keys(hy).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e])).forEach((r=>{const o=r.toLowerCase(),l=zy((t=>r=>{const o=$y(r);if(Sy(o,i,s,a))return;const c=Ry(r)?r.changedTouches[0]:r;if(!c)return;const l=n.getId(o),{clientX:d,clientY:u}=c;zy(e)({type:hy[t],id:l,x:d,y:u})})(r));c.push(_y(o,l,t))})),zy((()=>{c.forEach((e=>e()))}))}function Yy({scrollCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,sampling:r}){const o=wy((r=>{const o=$y(r);if(!o||Sy(o,i,s,a))return;const c=n.getId(o);if(o===t){const n=t.scrollingElement||t.documentElement;zy(e)({id:c,x:n.scrollLeft,y:n.scrollTop})}else zy(e)({id:c,x:o.scrollLeft,y:o.scrollTop})}),r.scroll||100);return _y("scroll",zy(o),t)}function Gy(e,t){const n=Object.assign({},e);return t||delete n.userTriggered,n}const Hy=["INPUT","TEXTAREA","SELECT"],Wy=new WeakMap;function Ky({inputCb:e,doc:t,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,ignoreClass:r,ignoreSelector:o,maskInputSelector:c,unmaskInputSelector:l,maskInputOptions:d,maskInputFn:u,sampling:p,userTriggeredOnInput:f}){function h(e){let n=$y(e);const p=n&&n.tagName,h=e.isTrusted;if("OPTION"===p&&(n=n.parentElement),!n||!p||Hy.indexOf(p)<0||Sy(n,i,s,a))return;const g=n,y=Bg(g);if(g.classList.contains(r)||o&&g.matches(o))return;let _=$g(g,p,y),v=!1;"radio"!==y&&"checkbox"!==y||(v=n.checked),function({tagName:e,type:t,maskInputOptions:n,maskInputSelector:i}){return i||Dg({maskInputOptions:n,tagName:e,type:t})}({maskInputOptions:d,maskInputSelector:c,tagName:p,type:y})&&(_=Mg({input:g,maskInputOptions:d,maskInputSelector:c,unmaskInputSelector:l,tagName:p,type:y,value:_,maskInputFn:u})),m(n,zy(Gy)({text:_,isChecked:v,userTriggered:h},f));const b=n.name;"radio"===y&&b&&v&&t.querySelectorAll(`input[type="radio"][name="${b}"]`).forEach((e=>{if(e!==n){const t=Mg({input:e,maskInputOptions:d,maskInputSelector:c,unmaskInputSelector:l,tagName:p,type:y,value:$g(e,p,y),maskInputFn:u});m(e,zy(Gy)({text:t,isChecked:!v,userTriggered:!1},f))}}))}function m(t,i){const s=Wy.get(t);if(!s||s.text!==i.text||s.isChecked!==i.isChecked){Wy.set(t,i);const s=n.getId(t);e(Object.assign(Object.assign({},i),{id:s}))}}const g=("last"===p.input?["change"]:["input","change"]).map((e=>_y(e,zy(h),t))),y=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),_=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return y&&y.set&&g.push(..._.map((e=>Iy(e[0],e[1],{set(){zy(h)({target:this})}})))),zy((()=>{g.forEach((e=>e()))}))}function Zy(e){return function(e,t){if(Xy("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Xy("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Xy("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Xy("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else{const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Jy(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};!function(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:s,scrollCb:a,viewportResizeCb:r,inputCb:o,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:d,canvasMutationCb:u,fontCb:p}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),s(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),a(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),r(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),o(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),d(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),u(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)}}(e,t);const i=qy(e,e.doc),s=function({mousemoveCb:e,sampling:t,doc:n,mirror:i}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let r,o=[];const c=wy((t=>{const n=Date.now()-r;zy(e)(o.map((e=>(e.timeOffset-=n,e))),t),o=[],r=null}),a),l=wy((e=>{const t=$y(e),{clientX:n,clientY:s}=Ry(e)?e.changedTouches[0]:e;r||(r=Date.now()),o.push({x:n,y:s,id:i.getId(t),timeOffset:Date.now()-r}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?fy.Drag:e instanceof MouseEvent?fy.MouseMove:fy.TouchMove)}),s,{trailing:!1}),d=[_y("mousemove",zy(l),n),_y("touchmove",zy(l),n),_y("drag",zy(l),n)];return zy((()=>{d.forEach((e=>e()))}))}(e),a=Vy(e),r=Yy(e),o=function({viewportResizeCb:e}){let t=-1,n=-1;const i=wy((()=>{const i=Ey(),s=Ay();t===i&&n===s||(zy(e)({width:Number(s),height:Number(i)}),t=i,n=s)}),200);return _y("resize",zy(i),window)}(e),c=Ky(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:i,mirror:s,sampling:a}){const r=r=>wy(zy((a=>{const o=$y(a);if(!o||Sy(o,t,n,i))return;const{currentTime:c,volume:l,muted:d}=o;e({type:r,id:s.getId(o),currentTime:c,volume:l,muted:d})})),a.media||500),o=[_y("play",r(0)),_y("pause",r(1)),_y("seeked",r(2)),_y("volumechange",r(3))];return zy((()=>{o.forEach((e=>e()))}))}(e),d=function({styleSheetRuleCb:e,mirror:t},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:zy(((n,i,s)=>{const[a,r]=s,o=t.getId(i.ownerNode);return-1!==o&&e({id:o,adds:[{rule:a,index:r}]}),n.apply(i,s)}))});const s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:zy(((n,i,s)=>{const[a]=s,r=t.getId(i.ownerNode);return-1!==r&&e({id:r,removes:[{index:a}]}),n.apply(i,s)}))});const a={};Qy("CSSGroupingRule")?a.CSSGroupingRule=n.CSSGroupingRule:(Qy("CSSMediaRule")&&(a.CSSMediaRule=n.CSSMediaRule),Qy("CSSConditionRule")&&(a.CSSConditionRule=n.CSSConditionRule),Qy("CSSSupportsRule")&&(a.CSSSupportsRule=n.CSSSupportsRule));const r={};return Object.entries(a).forEach((([n,i])=>{r[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(r[n].insertRule,{apply:zy(((n,i,s)=>{const[a,r]=s,o=t.getId(i.parentStyleSheet.ownerNode);return-1!==o&&e({id:o,adds:[{rule:a,index:[...Zy(i),r||0]}]}),n.apply(i,s)}))}),i.prototype.deleteRule=new Proxy(r[n].deleteRule,{apply:zy(((n,i,s)=>{const[a]=s,r=t.getId(i.parentStyleSheet.ownerNode);return-1!==r&&e({id:r,removes:[{index:[...Zy(i),a]}]}),n.apply(i,s)}))})})),zy((()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=s,Object.entries(a).forEach((([e,t])=>{t.prototype.insertRule=r[e].insertRule,t.prototype.deleteRule=r[e].deleteRule}))}))}(e,{win:n}),u=function({styleDeclarationCb:e,mirror:t},{win:n}){const i=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:zy(((n,i,s)=>{var a,r;const[o,c,l]=s,d=t.getId(null===(r=null===(a=i.parentRule)||void 0===a?void 0:a.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==d&&e({id:d,set:{property:o,value:c,priority:l},index:Zy(i.parentRule)}),n.apply(i,s)}))});const s=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:zy(((n,i,s)=>{var a,r;const[o]=s,c=t.getId(null===(r=null===(a=i.parentRule)||void 0===a?void 0:a.parentStyleSheet)||void 0===r?void 0:r.ownerNode);return-1!==c&&e({id:c,remove:{property:o},index:Zy(i.parentRule)}),n.apply(i,s)}))}),zy((()=>{n.CSSStyleDeclaration.prototype.setProperty=i,n.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),p=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const i=[],s=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){const i=new a(e,t,n);return s.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};const r=xy(t.fonts,"add",(function(t){return function(n){return setTimeout((()=>{const t=s.get(n);t&&(e(t),s.delete(n))}),0),t.apply(this,[n])}}));return i.push((()=>{n.FontFace=a})),i.push(r),zy((()=>{i.forEach((e=>e()))}))}(e):()=>{},f=[];for(const t of e.plugins)f.push(t.observer(t.callback,n,t.options));return zy((()=>{By.forEach((e=>e.reset())),i.disconnect(),s(),a(),r(),o(),c(),l();try{d(),u()}catch(e){}p(),f.forEach((e=>e()))}))}function Xy(e){return void 0!==window[e]}function Qy(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class e_{constructor(e){this.iframes=new WeakMap,this.mutationCb=e.mutationCb}addIframe(e){this.iframes.set(e,!0)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n;this.mutationCb({adds:[{parentId:e.__sn.id,nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,e)}}class t_{constructor(e){this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;const t=this;this.restorePatches.push(xy(HTMLElement.prototype,"attachShadow",(function(e){return function(){const n=e.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(e,t){qy(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),Yy(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))}observeAttachShadow(e){if(e.contentWindow){const t=this;this.restorePatches.push(xy(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const i=n.apply(this,arguments);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),i}})))}}reset(){this.restorePatches.forEach((e=>e()))}}for(var n_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i_="undefined"==typeof Uint8Array?[]:new Uint8Array(256),s_=0;s_<64;s_++)i_[n_.charCodeAt(s_)]=s_;const a_=new Map;const r_=(e,t,n)=>{if(!e||!l_(e,t)&&"object"!=typeof e)return;const i=function(e,t){let n=a_.get(e);return n||(n=new Map,a_.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let s=i.indexOf(e);return-1===s&&(s=i.length,i.push(e)),s};function o_(e,t,n){if(e instanceof Array)return e.map((e=>o_(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),i=n.length,s="";for(t=0;t<i;t+=3)s+=n_[n[t]>>2],s+=n_[(3&n[t])<<4|n[t+1]>>4],s+=n_[(15&n[t+1])<<2|n[t+2]>>6],s+=n_[63&n[t+2]];return i%3==2?s=s.substring(0,s.length-1)+"=":i%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[o_(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[o_(e.data,t,n),e.width,e.height]}}if(l_(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:r_(e,t,n)}}return e}const c_=(e,t,n)=>[...e].map((e=>o_(e,t,n))),l_=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function d_(e,t,n,i,s,a,r,o){const c=[],l=Object.getOwnPropertyNames(e);for(const d of l)try{if("function"!=typeof e[d])continue;const l=xy(e,d,(function(c){return function(...l){const u=c.apply(this,l);if(r_(u,o,e),!Sy(this.canvas,i,a,s)){r.getId(this.canvas);const i=c_([...l],o,e),s={type:t,property:d,args:i};n(this.canvas,s)}return u}}));c.push(l)}catch(i){const s=Iy(e,d,{set(e){n(this.canvas,{type:t,property:d,args:[e],setter:!0})}});c.push(s)}return c}class u_{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)},this.mutationCb=e.mutationCb,this.mirror=e.mirror,!0===e.recordCanvas&&this.initCanvasMutationObserver(e.win,e.blockClass,e.blockSelector,e.unblockSelector)}initCanvasMutationObserver(e,t,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=function(e,t,n,i){const s=[];try{const a=xy(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(s,...a){return Sy(this,t,n,i)||"__context"in this||(this.__context=s),e.apply(this,[s,...a])}}));s.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach((e=>e()))}}(e,t,i,n),a=function(e,t,n,i,s,a){const r=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const o=xy(t.CanvasRenderingContext2D.prototype,a,(function(t){return function(...r){return Sy(this.canvas,n,s,i)||setTimeout((()=>{const t=[...r];if("drawImage"===a&&t[0]&&t[0]instanceof HTMLCanvasElement){const e=t[0],n=e.getContext("2d");let i=null==n?void 0:n.getImageData(0,0,e.width,e.height),s=null==i?void 0:i.data;t[0]=JSON.stringify(s)}e(this.canvas,{type:my["2D"],property:a,args:t})}),0),t.apply(this,r)}}));r.push(o)}catch(n){const i=Iy(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:my["2D"],property:a,args:[t],setter:!0})}});r.push(i)}return()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,i,n,this.mirror),r=function(e,t,n,i,s,a){const r=[];return r.push(...d_(t.WebGLRenderingContext.prototype,my.WebGL,e,n,i,s,a,t)),void 0!==t.WebGL2RenderingContext&&r.push(...d_(t.WebGL2RenderingContext.prototype,my.WebGL2,e,n,i,s,a,t)),()=>{r.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,i,n,this.mirror);this.resetObservers=()=>{s(),a(),r()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const i=n.map((e=>{const t=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]])}return n}(e,["type"]);return t})),{type:s}=n[0];this.mutationCb({id:t,type:s,commands:i}),this.pendingCanvasMutations.delete(e)}}function p_(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}let f_,h_;const m_={map:{},getId:e=>e&&e.__sn?e.__sn.id:-1,getNode(e){return this.map[e]||null},removeNodeFromMap(e){const t=e.__sn&&e.__sn.id;delete this.map[t],e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))},has(e){return this.map.hasOwnProperty(e)},reset(){this.map={}}};function g_(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:r=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:d=null,maskInputSelector:u=null,unmaskTextSelector:p=null,unmaskInputSelector:f=null,inlineStylesheet:h=!0,maskAllText:m=!1,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:_,maskInputFn:v,maskTextFn:b,hooks:w,packFn:I,sampling:x={},mousemoveWait:E,recordCanvas:A=!1,userTriggeredOnInput:S=!1,collectFonts:k=!1,inlineImages:T=!1,plugins:R,keepIframeSrcFn:L=(()=>!1),onMutation:C}=e;if(!t)throw new Error("emit function is required");void 0!==E&&void 0===x.mousemove&&(x.mousemove=E);const N=!0===g?{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!==y?y:{},O=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};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=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let F=0;f_=(e,s)=>{var a;if(!(null===(a=By[0])||void 0===a?void 0:a.isFrozen())||e.type===py.FullSnapshot||e.type===py.IncrementalSnapshot&&e.data.source===fy.Mutation||By.forEach((e=>e.unfreeze())),t((e=>{for(const t of R||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&(e=I(e)),e})(e),s),e.type===py.FullSnapshot)U=e,F=0;else if(e.type===py.IncrementalSnapshot){if(e.data.source===fy.Mutation&&e.data.isAttachIframe)return;F++;const t=i&&F>=i,s=n&&e.timestamp-U.timestamp>n;(t||s)&&h_(!0)}};const j=e=>{f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.Mutation},e)}))},P=e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.Scroll},e)})),D=e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.CanvasMutation},e)})),M=new e_({mutationCb:j}),z=new u_({recordCanvas:A,mutationCb:D,win:window,blockClass:s,blockSelector:a,unblockSelector:r,mirror:m_}),B=new t_({mutationCb:j,scrollCb:P,bypassOptions:{onMutation:C,blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskInputSelector:u,unmaskInputSelector:f,inlineStylesheet:h,maskAllText:m,maskInputOptions:N,maskTextFn:b,maskInputFn:v,recordCanvas:A,inlineImages:T,sampling:x,slimDOMOptions:O,iframeManager:M,canvasManager:z},mirror:m_});h_=(e=!1)=>{var t,n,i,o;f_(p_({type:py.Meta,data:{href:window.location.href,width:Ay(),height:Ey()}}),e),By.forEach((e=>e.lock()));const[c,g]=function(e,t){const{blockClass:n="rr-block",blockSelector:i=null,unblockSelector:s=null,maskTextClass:a="rr-mask",maskTextSelector:r=null,unmaskTextSelector:o=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:d=!1,maskInputSelector:u=null,unmaskInputSelector:p=null,maskAllText:f=!1,maskAllInputs:h=!1,maskTextFn:m,maskInputFn:g,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:I,keepIframeSrcFn:x=(()=>!1)}=t||{},E={};return[dy(e,{doc:e,map:E,blockClass:n,blockSelector:i,unblockSelector:s,maskTextClass:a,maskTextSelector:r,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:c,maskInputSelector:u,unmaskInputSelector:p,maskAllText:f,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,maskTextFn:m,maskInputFn:g,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:_,inlineImages:l,recordCanvas:d,preserveWhiteSpace:v,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:I,keepIframeSrcFn:x}),E]}(document,{blockClass:s,blockSelector:a,unblockSelector:r,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskInputSelector:u,unmaskInputSelector:f,inlineStylesheet:h,maskAllText:m,maskAllInputs:N,maskTextFn:b,slimDOM:O,recordCanvas:A,inlineImages:T,onSerialize:e=>{Ly(e)&&M.addIframe(e),Cy(e)&&B.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{M.attachIframe(e,t),B.observeAttachShadow(e)},keepIframeSrcFn:L});if(!c)return console.warn("Failed to snapshot the document");m_.map=g,f_(p_({type:py.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(t=null===document||void 0===document?void 0:document.body)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.parentElement)||void 0===o?void 0:o.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),By.forEach((e=>e.unlock()))};try{const e=[];e.push(_y("DOMContentLoaded",(()=>{f_(p_({type:py.DomContentLoaded,data:{}}))})));const t=e=>{var t;return zy(Jy)({onMutation:C,mutationCb:j,mousemoveCb:(e,t)=>f_(p_({type:py.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.MouseInteraction},e)})),scrollCb:P,viewportResizeCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.ViewportResize},e)})),inputCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.Input},e)})),mediaInteractionCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.MediaInteraction},e)})),styleSheetRuleCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.StyleSheetRule},e)})),styleDeclarationCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.StyleDeclaration},e)})),canvasMutationCb:D,fontCb:e=>f_(p_({type:py.IncrementalSnapshot,data:Object.assign({source:fy.Font},e)})),blockClass:s,ignoreClass:o,ignoreSelector:c,maskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskInputSelector:u,unmaskInputSelector:f,maskInputOptions:N,inlineStylesheet:h,sampling:x,recordCanvas:A,inlineImages:T,userTriggeredOnInput:S,collectFonts:k,doc:e,maskAllText:m,maskInputFn:v,maskTextFn:b,blockSelector:a,unblockSelector:r,slimDOMOptions:O,mirror:m_,iframeManager:M,shadowDomManager:B,canvasManager:z,plugins:(null===(t=null==R?void 0:R.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>f_(p_({type:py.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},w)};M.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{h_(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():e.push(_y("load",(()=>{f_(p_({type:py.Load,data:{}})),n()}),window)),()=>{e.forEach((e=>e()))}}catch(e){console.warn(e)}}function y_(e){return e>9999999999?e:1e3*e}function __(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:py.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:$f(t,10,1e3)}}),"console"===t.category))))}g_.addCustomEvent=(e,t)=>{if(!f_)throw new Error("please add custom event after start recording");f_(p_({type:py.Custom,data:{tag:e,payload:t}}))},g_.freezePage=()=>{By.forEach((e=>e.freeze()))},g_.takeFullSnapshot=e=>{if(!h_)throw new Error("please take full snapshot after start recording");h_(e)},g_.mirror=m_;const v_="button,a";function b_(e){const t=w_(e);if(!(t&&t instanceof Element))return t;return t.closest(v_)||t}function w_(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let I_;function x_(e){return I_||(I_=[],Xp(Tg,"open",(function(e){return function(...t){if(I_)try{I_.forEach((e=>e()))}catch(e){}return e.apply(Tg,t)}}))),I_.push(e),()=>{const t=I_?I_.indexOf(e):-1;t>-1&&I_.splice(t,1)}}class E_{constructor(e,t,n=__){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=()=>{this._lastScroll=S_()},t=x_((()=>{this._lastMutation=S_()})),n=e=>{if(!e.target)return;const t=b_(e);t&&this._handleMultiClick(t)},i=new MutationObserver((()=>{this._lastMutation=S_()}));i.observe(Tg.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),Tg.addEventListener("scroll",e,{passive:!0}),Tg.addEventListener("click",n,{passive:!0}),this._teardown=()=>{Tg.removeEventListener("scroll",e),Tg.removeEventListener("click",n),t(),i.disconnect(),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(!A_.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:(i=e.timestamp,i>9999999999?i/1e3:i),clickBreadcrumb:e,clickCount:0,node:t};var i;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())}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=S_();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._scollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!i,{clickCount:a,clickBreadcrumb:r}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),i=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.slowClickDetected",data:{...r.data,url:Tg.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:i,clickCount:a||1}};this._addBreadcrumbEvent(t,s)}else if(a>1){const e={type:"default",message:r.message,timestamp:r.timestamp,category:"ui.multiClick",data:{...r.data,url:Tg.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const A_=["A","BUTTON","INPUT"];function S_(){return Date.now()/1e3}function k_(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var T_;!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"}(T_||(T_={}));const R_=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled"]);function L_(e){const t={};for(const n in e)if(R_.has(n)){let i=n;"data-testid"!==n&&"data-test-id"!==n||(i="testId"),t[i]=e[n]}return t}const C_=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?b_(e.event):w_(e.event),n=Bp(i,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:i,message:n}}(e);return k_({category:`ui.${e.name}`,...N_(t,n)})}(t);if(!n)return;const i="click"===t.name,s=i&&t.event;var a,r,o;!(i&&e.clickDetector&&s)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(a=e.clickDetector,r=n,o=b_(t.event),a.handleClick(r,o)),__(e,n)};function N_(e,t){const n=e&&"__sn"in e&&e.__sn.type===T_.Element?e.__sn:null;return{message:t,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:e?Array.from(e.childNodes).map((e=>"__sn"in e&&e.__sn.type===T_.Text&&e.__sn.textContent)).filter(Boolean).map((e=>e.trim())).join(""):"",attributes:L_(n.attributes)}}:{}}}function O_(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:i,altKey:s,key:a,target:r}=e;if(!r||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(r)||!a)return null;const o=t||i||s,c=1===a.length;if(!o&&c)return null;const l=Bp(r,{maxStringLength:200})||"<unknown>",d=N_(r,l);return k_({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:i,altKey:s,key:a}})}(t);n&&__(e,n)}const U_=["name","type","startTime","transferSize","duration"];function F_(e){return function(t){return U_.every((n=>e[n]===t[n]))}}function j_(e){const t=new PerformanceObserver((t=>{const n=function(e,t){const[n,i,s]=e.reduce(((e,t)=>("navigation"===t.entryType?e[0].push(t):"largest-contentful-paint"===t.entryType?e[1].push(t):e[2].push(t),e)),[[],[],[]]),a=[],r=[];let o=i.length?i[i.length-1]:void 0;return t.forEach((e=>{if("largest-contentful-paint"!==e.entryType)if("navigation"!==e.entryType)a.push(e);else{const t=e;e.duration>0&&!n.find(F_(t))&&!r.find(F_(t))&&r.push(t)}else(!o||o.startTime<e.startTime)&&(o=e)})),[...o?[o]:[],...n,...s,...a,...r].sort(((e,t)=>e.startTime-t.startTime))}(e.performanceEvents,t.getEntries());e.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((e=>{try{t.observe({type:e,buffered:!0})}catch(e){}})),t}const P_='/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function D_(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Gp.info(e),t&&z_(e))}function M_(e,t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(Gp.info(e),t&&setTimeout((()=>{z_(e)}),0))}function z_(e){Mh().addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class B_ extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class $_{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!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>Ug)throw new B_;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?y_(e):null}}class q_{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(){D_("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((i,s)=>{const a=({data:t})=>{const r=t;if(r.method===e&&r.id===n){if(this._worker.removeEventListener("message",a),!r.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay]",r.response),void s(new Error("Error in compression worker"));i(r.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class V_{constructor(e){this._worker=new q_(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=y_(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Ug?Promise.reject(new B_):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear")}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 Y_{constructor(e){this._fallback=new $_,this._compression=new V_(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}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}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 D_("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("[Replay] Failed to add events when switching buffers.",e)}}}function G_({useCompression:e}){if(e&&window.Worker)try{const e=function(){const e=new Blob([P_]);return URL.createObjectURL(e)}();D_("[Replay] Using compression worker");const t=new Worker(e);return new Y_(t)}catch(e){D_("[Replay] Failed to create compression worker")}return D_("[Replay] Using simple buffer"),new $_}function H_(){try{return"sessionStorage"in Tg&&!!Tg.sessionStorage}catch(e){return!1}}function W_(e){!function(){if(!H_())return;try{Tg.sessionStorage.removeItem(Rg)}catch(e){}}(),e.session=void 0}function K_(e){return void 0!==e&&Math.random()<e}function Z_(e){if(H_())try{Tg.sessionStorage.setItem(Rg,JSON.stringify(e))}catch(e){}}function J_(e){const t=Date.now();return{id:e.id||Uf(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function X_({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:i}={}){const s=function(e,t){return K_(e)?"session":!!t&&"buffer"}(e,t),a=J_({sampled:s,previousSessionId:i});return n&&Z_(a),a}function Q_(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function ev(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:i=Date.now()}){return Q_(e.started,t,i)||Q_(e.lastActivity,n,i)}function tv(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!ev(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function nv({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:i},s){const a=s.stickySession&&function(e){if(!H_())return null;try{const t=Tg.sessionStorage.getItem(Rg);if(!t)return null;const n=JSON.parse(t);return M_("[Replay] Loading existing session",e),J_(n)}catch(e){return null}}(e);return a?tv(a,{sessionIdleExpire:t,maxReplayDuration:n})?(M_("[Replay] Session in sessionStorage is expired, creating new one..."),X_(s,{previousSessionId:a.id})):a:(M_("[Replay] Creating new session",e),X_(s,{previousSessionId:i}))}function iv(e,t,n){return!!av(e,t)&&(sv(e,t,n),!0)}async function sv(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===py.Custom}(e))return t(e)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(t){const n=t&&t instanceof B_?"addEventSizeExceeded":"addEvent";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(t),await e.stop({reason:n});const i=Mh().getClient();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function av(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=y_(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(D_(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1))}function rv(e){return!e.type}function ov(e){return"transaction"===e.type}function cv(e){const t=function(){const e=Mh().getClient();if(!e)return!1;const t=e.getTransport();if(!t)return!1;return t.send.__sentry__baseTransport__||!1}();return(n,i)=>{if(!e.isEnabled()||!rv(n)&&!ov(n))return;const s=i&&i.statusCode;t&&(!s||s<200||s>=300)||(ov(n)?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,n):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);"buffer"===e.recordingMode&&t.tags&&t.tags.replayId&&setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,n))}}function lv(e,t=!1){const n=t?cv(e):void 0;return(t,i)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!rv(t)&&!ov(t))return t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length)&&(!(!t.originalException||!t.originalException.__rrweb__)||e.exception.values.some((e=>!!(e.stacktrace&&e.stacktrace.frames&&e.stacktrace.frames.length)&&e.stacktrace.frames.some((e=>e.filename&&e.filename.includes("/rrweb/src/"))))))}(t,i)&&!e.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Replay] Ignoring error from rrweb internals",t),null;const s=function(e,t){return"buffer"===e.recordingMode&&t.message!==Cg&&!(!t.exception||t.type)&&K_(e.getOptions().errorSampleRate)}(e,t);return(s||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&n(t,{statusCode:200}),t}}function dv(e,t){return t.map((({type:t,start:n,end:i,name:s,data:a})=>{const r=e.throttledAddEvent({type:py.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:i,data:a}}});return"string"==typeof r?Promise.resolve(null):r}))}function uv(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((()=>(dv(e,[n]),!1))))}}function pv(e,t){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!e.getOptions()._experiments.traceInternals)&&function(e){const t=Mh().getClient(),n=t&&t.getDsn();return!!n&&e.includes(n.host)}(t)}function fv(e,t){e.isEnabled()&&null!==t&&(pv(e,t.name)||e.addUpdate((()=>(dv(e,[t]),!0))))}function hv(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,xhr:i}=e,s=i[vf];if(!t||!n||!s)return null;const{method:a,url:r,status_code:o}=s;return void 0===r?null:{type:"resource.xhr",name:r,start:t/1e3,end:n/1e3,data:{method:a,statusCode:o}}}(t);fv(e,n)}}const mv=10,gv=11,yv=12,_v=13,vv=14,bv=15,wv=20,Iv=21,xv=22,Ev=23,Av=["true","false","null"];function Sv(e,t){if(!t.length)return e;let n=e;const i=t.length-1;n=function(e,t){switch(t){case mv:return`${e}"~~":"~~"`;case gv:return`${e}:"~~"`;case yv:return`${e}~~":"~~"`;case _v:return function(e){const t=e.lastIndexOf(":"),n=e.slice(t+1);if(Av.includes(n.trim()))return`${e},"~~":"~~"`;return`${e.slice(0,t+1)}"~~"`}(e);case vv:return`${e}~~"`;case bv:return`${e},"~~":"~~"`;case wv:return`${e}"~~"`;case Iv:return function(e){const t=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(","===n||"["===n)return t}return-1}(e);if(t>-1){const n=e.slice(t+1);return Av.includes(n.trim())?`${e},"~~"`:`${e.slice(0,t+1)}"~~"`}return e}(e);case xv:return`${e}~~"`;case Ev:return`${e},"~~"`}return e}(n,t[i]);for(let e=i;e>=0;e--){switch(t[e]){case mv:n=`${n}}`;break;case wv:n=`${n}]`}}return n}function kv(e,t,n){const i=e[e.length-1],s=t[n];if(!/\s/.test(s))if('"'!==s||Tv(t,n))switch(s){case"{":!function(e,t){if(!t)return void e.push(mv);if(t===_v)return void e.push(mv);t===Iv&&e.push(mv);if(t===wv)e.push(mv)}(e,i);break;case"[":!function(e,t){if(!t)return e.push(wv),void e.push(Iv);if(t===_v)return e.push(wv),void e.push(Iv);t===Iv&&(e.push(wv),e.push(Iv));if(t===wv)e.push(wv),e.push(Iv)}(e,i);break;case":":!function(e,t){t===gv&&(e.pop(),e.push(_v))}(e,i);break;case",":!function(e,t){if(t===_v)return void e.pop();if(t===bv)return e.pop(),void e.pop();if(t===Iv)return;if(t===Ev)e.pop()}(e,i);break;case"}":!function(e,t){t===mv&&e.pop();t===_v&&(e.pop(),e.pop());t===bv&&(e.pop(),e.pop(),e.pop());e[e.length-1]===_v&&e.push(bv);e[e.length-1]===Iv&&e.push(Ev)}(e,i);break;case"]":!function(e,t){t===wv&&e.pop();t===Iv&&(e.pop(),e.pop());t===Ev&&(e.pop(),e.pop(),e.pop());e[e.length-1]===_v&&e.push(bv);e[e.length-1]===Iv&&e.push(Ev)}(e,i)}else!function(e,t){if(t===vv)return e.pop(),void e.push(bv);if(t===xv)return e.pop(),void e.push(Ev);if(t===_v)return void e.push(vv);if(t===Iv)return void e.push(xv);if(t===mv)return void e.push(yv);if(t===yv)e.pop(),e.push(gv)}(e,i)}function Tv(e,t){return"\\"===e[t-1]&&!Tv(e,t-1)}function Rv(e){return Sv(e,function(e){const t=[];for(let n=0;n<e.length;n++)kv(t,e,n);return t}(e))}function Lv(e,t){if(e)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=Pv(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Cv(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Nv(e){return"string"==typeof e?e:e instanceof URLSearchParams?e.toString():e instanceof FormData?Pv(e):void 0}function Ov(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:i,url:s,method:a,statusCode:r,request:o,response:c}=t;return{type:e,start:n/1e3,end:i/1e3,name:s,data:rf({method:a,statusCode:r,request:o,response:c})}}function Uv(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Fv(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:s,warnings:a}=function(e){if(!e||"string"!=typeof e)return{body:e,warnings:[]};const t=e.length>Ng;if(function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e))try{const n=t?Rv(e.slice(0,Ng)):e;return{body:JSON.parse(n),warnings:t?["JSON_TRUNCATED"]:[]}}catch(n){return{body:t?`${e.slice(0,Ng)}…`:e,warnings:t?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:t?`${e.slice(0,Ng)}…`:e,warnings:t?["TEXT_TRUNCATED"]:[]}}(n);return i.body=s,a.length>0&&(i._meta={warnings:a}),i}function jv(e,t){return Object.keys(e).reduce(((n,i)=>{const s=i.toLowerCase();return t.includes(s)&&e[i]&&(n[s]=e[i]),n}),{})}function Pv(e){return new URLSearchParams(e).toString()}function Dv(e,t){const n=function(e,t=Tg.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Tg.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 Lp(n,t)}async function Mv(e,t,n){try{const i=await async function(e,t,n){const{startTimestamp:i,endTimestamp:s}=t,{url:a,method:r,status_code:o=0,request_body_size:c,response_body_size:l}=e.data,d=Dv(a,n.networkDetailAllowUrls)&&!Dv(a,n.networkDetailDenyUrls),u=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,i){const s=function(e,t){if(1===e.length&&"string"!=typeof e[0])return $v(e[0],t);if(2===e.length)return $v(e[1],t);return{}}(n,t);if(!e)return Fv(s,i,void 0);const a=Nv(zv(n));return Fv(s,i,a)}(n,t.input,c):Uv(c),p=await async function(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:i},s,a){if(!e&&void 0!==a)return Uv(a);const r=Bv(s.headers,i);if(!t&&void 0!==a)return Fv(r,a,void 0);try{const i=s.clone(),o=await async function(e){try{return await e.text()}catch(e){return}}(i),c=o&&o.length&&void 0===a?Lv(o,n):a;return e?Fv(r,c,t?o:void 0):Uv(c)}catch(e){return Fv(r,a,void 0)}}(d,n,t.response,l);return{startTimestamp:i,endTimestamp:s,url:a,method:r,statusCode:o,request:u,response:p}}(e,t,n),s=Ov("resource.fetch",i);fv(n.replay,s)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] Failed to capture fetch breadcrumb",e)}}function zv(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Bv(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function $v(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Bv(n,t):Array.isArray(n)?{}:jv(n,t):{}}async function qv(e,t,n){try{const i=function(e,t,n){const{startTimestamp:i,endTimestamp:s,input:a,xhr:r}=t,{url:o,method:c,status_code:l=0,request_body_size:d,response_body_size:u}=e.data;if(!o)return null;if(!Dv(o,n.networkDetailAllowUrls)||Dv(o,n.networkDetailDenyUrls)){return{startTimestamp:i,endTimestamp:s,url:o,method:c,statusCode:l,request:Uv(d),response:Uv(u)}}const p=r[vf],f=p?jv(p.request_headers,n.networkRequestHeaders):{},h=jv(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,i]=t.split(": ");return e[n.toLowerCase()]=i,e}),{})}(r),n.networkResponseHeaders),m=Fv(f,d,n.networkCaptureBodies?Nv(a):void 0),g=Fv(h,u,n.networkCaptureBodies?t.xhr.responseText:void 0);return{startTimestamp:i,endTimestamp:s,url:o,method:c,statusCode:l,request:m,response:g}}(e,t,n),s=Ov("resource.xhr",i);fv(n.replay,s)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] Failed to capture fetch breadcrumb",e)}}function Vv(e){const t=Mh().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:i,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:i,networkDetailDenyUrls:s,networkCaptureBodies:a,networkRequestHeaders:r,networkResponseHeaders:o};t&&t.on?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)&&(!function(e,t,n){const{xhr:i,input:s}=t,a=Lv(s,n.textEncoder),r=i.getResponseHeader("content-length")?Cv(i.getResponseHeader("content-length")):Lv(i.response,n.textEncoder);void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),qv(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t,n){const{input:i,response:s}=t,a=Lv(zv(i),n.textEncoder),r=s?Cv(s.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==r&&(e.data.response_body_size=r)}(t,n,e),Mv(t,n,e))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Error when enriching network breadcrumb")}}(c,e,t))):(xf("fetch",function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{startTimestamp:t,endTimestamp:n,fetchData:i,response:s}=e;if(!n)return null;const{method:a,url:r}=i;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r,data:{method:a,statusCode:s?s.status:void 0}}}(t);fv(e,n)}}(e)),xf("xhr",hv(e)))}catch(e){}}let Yv=null;const Gv=e=>t=>{if(!e.isEnabled())return;const n=function(e){const t=e.getLastBreadcrumb&&e.getLastBreadcrumb();if(Yv===t||!t)return null;if(Yv=t,!function(e){return!!e.category}(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))return null;if("console"===t.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return k_(e);let n=!1;const i=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Og?(n=!0,`${e.slice(0,Og)}…`):e;if("object"==typeof e)try{const t=$f(e,7),i=JSON.stringify(t);if(i.length>Og){const e=Rv(i.slice(0,Og)),t=JSON.parse(e);return n=!0,t}return t}catch(e){}return e}));return k_({...e,data:{...e.data,arguments:i,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t);return k_(t)}(t);n&&__(e,n)};function Hv(e){return!(!e||!e.on)}function Wv(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:i}}}}const Kv={resource:function(e){const{entryType:t,initiatorType:n,name:i,responseEnd:s,startTime:a,decodedBodySize:r,encodedBodySize:o,responseStatus:c,transferSize:l}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:Jv(a),end:Jv(s),name:i,data:{size:l,statusCode:c,decodedBodySize:r,encodedBodySize:o}}},paint:function(e){const{duration:t,entryType:n,name:i,startTime:s}=e,a=Jv(s);return{type:n,name:i,start:a,end:a+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:i,duration:s,domComplete:a,encodedBodySize:r,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:d,loadEventEnd:u,redirectCount:p,startTime:f,transferSize:h,type:m}=e;if(0===s)return null;return{type:`${t}.${m}`,start:Jv(f),end:Jv(a),name:n,data:{size:h,decodedBodySize:i,encodedBodySize:r,duration:s,domInteractive:l,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:u,domComplete:a,redirectCount:p}}},"largest-contentful-paint":function(e){const{entryType:t,startTime:n,size:i}=e;let s=0;if(Tg.performance){const e=Tg.performance.getEntriesByType("navigation")[0];s=e&&e.activationStart||0}const a=Math.max(n-s,0),r=Jv(s)+a/1e3;return{type:t,name:t,start:r,end:r,data:{value:a,size:i,nodeId:g_.mirror.getId(e.element)}}}};function Zv(e){return void 0===Kv[e.entryType]?null:Kv[e.entryType](e)}function Jv(e){return((sh||Tg.performance.timeOrigin)+e)/1e3}function Xv(e){let t=!1;return(n,i)=>{if(!e.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("[Replay] Received replay event after session expired."));const s=i||!t;t=!0,e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!iv(e,n,s))return!0;if(!s)return!1;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;iv(e,function(e){const t=e.getOptions();return{type:py.Custom,timestamp:Date.now(),data:{tag:"options",payload:{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,s),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(D_(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&Z_(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function Qv({recordingData:e,replayId:t,segmentId:n,eventContext:i,timestamp:s,session:a}){const r=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:o,errorIds:c,traceIds:l,initialTimestamp:d}=i,u=Mh(),p=u.getClient(),f=u.getScope(),h=p&&p.getTransport(),m=p&&p.getDsn();if(!(p&&h&&m&&a.sampled))return;const g={type:Lg,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:o,replay_id:t,segment_id:n,replay_type:a.sampled},y=await async function({client:e,scope:t,replayId:n,event:i}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit&&e.emit("preprocessEvent",i,s);const a=await um(e.getOptions(),i,s,t,e);if(!a)return null;a.platform=a.platform||"javascript";const r=e.getSdkMetadata&&e.getSdkMetadata(),{name:o,version:c}=r&&r.sdk||{};return a.sdk={...a.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},a}({scope:f,client:p,replayId:t,event:g});if(!y)return p.recordDroppedEvent("event_processor","replay",g),void D_("An event processor returned `null`, will not send event.");delete y.sdkProcessingMetadata;const _=function(e,t,n,i){return hh(xh(e,Ih(e),i,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(y,r,m,p.getOptions().tunnel);let v;try{v=await h.send(_)}catch(e){const t=new Error(Cg);try{t.cause=e}catch(e){}throw t}if(!v)return v;if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new eb(v.statusCode);return v}class eb extends Error{constructor(e){super(`Transport returned status code ${e}`)}}async function tb(e,t={count:0,interval:5e3}){const{recordingData:n,options:i}=e;var s,a;if(n.length)try{return await Qv(e),!0}catch(n){if(n instanceof eb)throw n;if(s="Replays",a={_retryCount:t.count},Mh().setContext(s,a),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i._experiments&&i._experiments.captureExceptions&&am(n),t.count>=3){const e=new Error(`${Cg} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,i)=>{setTimeout((async()=>{try{await tb(e,t),n(!0)}catch(e){i(e)}}),t.interval)}))}}const nb="__THROTTLED";function ib(e,t,n){const i=new Map;let s=!1;return(...a)=>{const r=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;i.forEach(((e,n)=>{n<t&&i.delete(n)}))})(r),[...i.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":nb}s=!1;const o=i.get(r)||0;return i.set(r,o+1),e(...a)}}class sb{constructor({options:e,recordingOptions:t}){sb.prototype.__init.call(this),sb.prototype.__init2.call(this),sb.prototype.__init3.call(this),sb.prototype.__init4.call(this),sb.prototype.__init5.call(this),sb.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEvents=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!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,s,a;const r=n&&n.maxWait?Math.max(n.maxWait,t):0;function o(){return c(),i=e(),i}function c(){void 0!==s&&clearTimeout(s),void 0!==a&&clearTimeout(a),s=a=void 0}function l(){return s&&clearTimeout(s),s=setTimeout(o,t),r&&void 0===a&&(a=setTimeout(o,r)),i}return l.cancel=c,l.flush=function(){return void 0!==s||void 0!==a?o():i},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ib(((e,t)=>function(e,t,n){return av(e,t)?sv(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:i?i.join(","):""}:void 0;s&&(this.clickDetector=new E_(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options;t<=0&&n<=0||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",M_(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");M_("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=nv({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");M_("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=nv({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=g_({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Xv(this),onMutation:this._onMutationHandler})}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{D_("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,W_(this)}catch(e){this._handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),D_("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),D_("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();D_("[Replay] Converting buffer to session",this._options._experiments.traceInternals),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&&Q_(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Tg.location.pathname}${Tg.location.hash}${Tg.location.search}`,t=`${Tg.location.origin}${e}`;this.performanceEvents=[],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===nb){const e=k_({category:"replay.throttled"});this.addUpdate((()=>!iv(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastTransaction||Mh().getScope().getTransaction();if(e&&["route","custom"].includes(e.metadata.source))return e.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=G_({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay]",e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&am(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=nv({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,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!tv(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{Tg.document.addEventListener("visibilitychange",this._handleVisibilityChange),Tg.addEventListener("blur",this._handleWindowBlur),Tg.addEventListener("focus",this._handleWindowFocus),Tg.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=Mh().getScope(),n=Mh().getClient();t.addScopeListener(Gv(e)),xf("dom",C_(e)),xf("history",uv(e)),Vv(e),Th(lv(e,!Hv(n))),Hv(n)&&(n.on("afterSendEvent",cv(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&(t.replay_id=n)})),n.on("startTransaction",(t=>{e.lastTransaction=t})),n.on("finishTransaction",(t=>{e.lastTransaction=t})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}"PerformanceObserver"in Tg&&(this._performanceObserver=j_(this))}_removeListeners(){try{Tg.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Tg.removeEventListener("blur",this._handleWindowBlur),Tg.removeEventListener("focus",this._handleWindowFocus),Tg.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=void 0)}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Tg.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=k_({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=k_({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{O_(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;ev(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):D_("[Replay] Document has become active, but session has expired")}_triggerFullSnapshot(e=!0){try{D_("[Replay] Taking full rrweb snapshot"),g_.takeFullSnapshot(e)}catch(e){this._handleException(e)}}_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:py.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(dv(this,function(e){return e.map(Zv).filter(Boolean)}(e)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t)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(dv(e,[Wv(Tg.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 s=await this.eventBuffer.finish();await tb({replayId:e,recordingData:s,segmentId:i,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=Mh().getClient();t&&t.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error("[Replay] No session found to flush."));const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const i=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(i||s)return D_(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(i&&this._debouncedFlush());const a=this.eventBuffer;if(a&&0===this.session.segmentId&&!a.hasCheckout&&D_("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Z_(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=k_({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ab(e,t,n,i){const s=[...e,..."string"==typeof i?i.split(","):[],...t];return void 0!==n&&("string"==typeof n&&s.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),s.join(",")}function rb({mask:e,unmask:t,block:n,unblock:i,ignore:s,blockClass:a,blockSelector:r,maskTextClass:o,maskTextSelector:c,ignoreClass:l}){const d=ab(e,[".sentry-mask","[data-sentry-mask]"],o,c),u=ab(t,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:d,unmaskTextSelector:u,maskInputSelector:d,unmaskInputSelector:u,blockSelector:ab(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],a,r),unblockSelector:ab(i,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:ab(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return a instanceof RegExp&&(p.blockClass=a),o instanceof RegExp&&(p.maskTextClass=o),p}function ob(){return"undefined"!=typeof window&&(!Bf()||"undefined"!=typeof process&&"renderer"===process.type)}const cb='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lb=["content-length","content-type","accept"];let db=!1;class ub{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:i=36e5,stickySession:s=!0,useCompression:a=!0,_experiments:r={},sessionSampleRate:o,errorSampleRate:c,maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],unmask:I=[],block:x=[],unblock:E=[],ignore:A=[],maskFn:S,beforeAddRecordingEvent:k,blockClass:T,blockSelector:R,maskInputOptions:L,maskTextClass:C,maskTextSelector:N,ignoreClass:O}={}){if(this.name=ub.id,this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{...L||{},password:!0},maskTextFn:S,maskInputFn:S,...rb({mask:w,unmask:I,block:x,unblock:E,ignore:A,blockClass:T,blockSelector:R,maskTextClass:C,maskTextSelector:N,ignoreClass:O}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(i,Fg),stickySession:s,sessionSampleRate:o,errorSampleRate:c,useCompression:a,blockAllMedia:u,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:_,networkRequestHeaders:pb(v),networkResponseHeaders:pb(b),beforeAddRecordingEvent:k,_experiments:r},"number"==typeof o&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof c&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${c} })`),this._initialOptions.errorSampleRate=c),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${cb}`:cb),this._isInitialized&&ob())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return db}set _isInitialized(e){db=e}setupOnce(){ob()&&(this._setup(),setTimeout((()=>this._initialize())))}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):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const e=function(e){const t=Mh().getClient(),n=t&&t.getOptions(),i={sessionSampleRate:0,errorSampleRate:0,...rf(e)};if(!n)return console.warn("SDK client is not available."),i;null==e.sessionSampleRate&&null==e.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.");"number"==typeof n.replaysSessionSampleRate&&(i.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(i.errorSampleRate=n.replaysOnErrorSampleRate);return i}(this._initialOptions);this._replay=new sb({options:e,recordingOptions:this._recordingOptions})}}function pb(e){return[...lb,...e.map((e=>e.toLowerCase()))]}ub.__initStatic();const fb=jp;const hb=(e,t,n)=>{let i,s;return a=>{t.value>=0&&(a||n)&&(s=t.value-(i||0),(s||void 0===i)&&(i=t.value,t.delta=s,e(t)))}},mb=()=>fb.__WEB_VITALS_POLYFILL__?fb.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=fb.performance.timing,t=fb.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const t in e)"navigationStart"!==t&&"toJSON"!==t&&(n[t]=Math.max(e[t]-e.navigationStart,0));return n})()):fb.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],gb=()=>{const e=mb();return e&&e.activationStart||0},yb=(e,t)=>{const n=mb();let i="navigate";return n&&(i=fb.document.prerendering||gb()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},_b=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const i=new PerformanceObserver((e=>{t(e.getEntries())}));return i.observe(Object.assign({type:e,buffered:!0},n||{})),i}}catch(e){}},vb=(e,t)=>{const n=i=>{"pagehide"!==i.type&&"hidden"!==fb.document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},bb=e=>{const t=yb("CLS",0);let n,i=0,s=[];const a=e=>{e.forEach((e=>{if(!e.hadRecentInput){const a=s[0],r=s[s.length-1];i&&0!==s.length&&e.startTime-r.startTime<1e3&&e.startTime-a.startTime<5e3?(i+=e.value,s.push(e)):(i=e.value,s=[e]),i>t.value&&(t.value=i,t.entries=s,n&&n())}}))},r=_b("layout-shift",a);if(r){n=hb(e,t);const i=()=>{a(r.takeRecords()),n(!0)};return vb(i),i}};let wb=-1;const Ib=()=>(wb<0&&(wb="hidden"!==fb.document.visibilityState||fb.document.prerendering?1/0:0,vb((({timeStamp:e})=>{wb=e}),!0)),{get firstHiddenTime(){return wb}}),xb=e=>{const t=Ib(),n=yb("FID");let i;const s=e=>{e.startTime<t.firstHiddenTime&&(n.value=e.processingStart-e.startTime,n.entries.push(e),i(!0))},a=e=>{e.forEach(s)},r=_b("first-input",a);i=hb(e,n),r&&vb((()=>{a(r.takeRecords()),r.disconnect()}),!0)},Eb={},Ab=e=>{const t=Ib(),n=yb("LCP");let i;const s=e=>{const s=e[e.length-1];if(s){const e=Math.max(s.startTime-gb(),0);e<t.firstHiddenTime&&(n.value=e,n.entries=[s],i())}},a=_b("largest-contentful-paint",s);if(a){i=hb(e,n);const t=()=>{Eb[n.id]||(s(a.takeRecords()),a.disconnect(),Eb[n.id]=!0,i(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),vb(t,!0),t}};function Sb(e){return"number"==typeof e&&isFinite(e)}function kb(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function Tb(e){return e/1e3}function Rb(){return fb&&fb.addEventListener&&fb.performance}let Lb,Cb,Nb=0,Ob={};function Ub(){const e=Rb();if(e&&sh){e.mark&&fb.performance.mark("sentry-tracing-init"),xb((e=>{const t=e.entries.pop();if(!t)return;const n=Tb(sh),i=Tb(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding FID"),Ob.fid={value:e.value,unit:"millisecond"},Ob["mark.fid"]={value:n+i,unit:"second"}}));const t=bb((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding CLS"),Ob.cls={value:e.value,unit:""},Cb=t)})),n=Ab((e=>{const t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding LCP"),Ob.lcp={value:e.value,unit:"millisecond"},Lb=t)}));return()=>{t&&t(),n&&n()}}return()=>{}}function Fb(e){const t=Rb();if(!t||!fb.performance.getEntries||!sh)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Tracing] Adding & adjusting spans using Performance API");const n=Tb(sh),i=t.getEntries();let s,a;if(i.slice(Nb).forEach((t=>{const i=Tb(t.startTime),r=Tb(t.duration);if(!("navigation"===e.op&&n+i<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{jb(e,t,i,n)})),jb(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),jb(e,t,"fetch",n,"cache","domainLookupStart"),jb(e,t,"domainLookup",n,"DNS"),function(e,t,n){kb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Tb(t.requestStart),endTimestamp:n+Tb(t.responseEnd)}),kb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Tb(t.responseStart),endTimestamp:n+Tb(t.responseEnd)})}(e,t,n)}(e,t,n),s=n+Tb(t.responseStart),a=n+Tb(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,i,s){const a=s+n,r=a+i;kb(e,{description:t.name,endTimestamp:r,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a})}(e,t,i,r,n);const s=Ib(),a=t.startTime<s.firstHiddenTime;"first-paint"===t.name&&a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding FP"),Ob.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding FCP"),Ob.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":{const s=t.name.replace(fb.location.origin,"");!function(e,t,n,i,s,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const r={};"transferSize"in t&&(r["http.response_transfer_size"]=t.transferSize);"encodedBodySize"in t&&(r["http.response_content_length"]=t.encodedBodySize);"decodedBodySize"in t&&(r["http.decoded_response_content_length"]=t.decodedBodySize);"renderBlockingStatus"in t&&(r["resource.render_blocking_status"]=t.renderBlockingStatus);const o=a+i,c=o+s;kb(e,{description:n,endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:o,data:r})}(e,t,s,i,r,n);break}}})),Nb=Math.max(i.length-1,0),function(e){const t=fb.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Sb(n.rtt)&&(Ob["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Sb(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`);Sb(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op){"number"==typeof s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding TTFB"),Ob.ttfb={value:1e3*(s-e.startTimestamp),unit:"millisecond"},"number"==typeof a&&a<=s&&(Ob["ttfb.requestTime"]={value:1e3*(s-a),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(!Ob[t]||n>=e.startTimestamp)return;const i=Ob[t].value,s=n+Tb(i),a=Math.abs(1e3*(s-e.startTimestamp)),r=a-i;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Measurements] Normalized ${t} from ${i} to ${a} (${r})`),Ob[t].value=a}));const t=Ob["mark.fid"];t&&Ob.fid&&(kb(e,{description:"first input delay",endTimestamp:t.value+Tb(Ob.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete Ob["mark.fid"]),"fcp"in Ob||delete Ob.cls,Object.keys(Ob).forEach((t=>{e.setMeasurement(t,Ob[t].value,Ob[t].unit)})),function(e){Lb&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding LCP Data"),Lb.element&&e.setTag("lcp.element",Bp(Lb.element)),Lb.id&&e.setTag("lcp.id",Lb.id),Lb.url&&e.setTag("lcp.url",Lb.url.trim().slice(0,200)),e.setTag("lcp.size",Lb.size));Cb&&Cb.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log("[Measurements] Adding CLS Data"),Cb.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,Bp(t.node)))))}(e)}Lb=void 0,Cb=void 0,Ob={}}function jb(e,t,n,i,s,a){const r=a?t[a]:t[`${n}End`],o=t[`${n}Start`];o&&r&&kb(e,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:i+Tb(o),endTimestamp:i+Tb(r)})}const Pb=["localhost",/^\/(?!\/)/],Db={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Pb,tracePropagationTargets:Pb};function Mb(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:i,tracingOrigins:s,shouldCreateSpanForRequest:a,enableHTTPTimings:r}={traceFetch:Db.traceFetch,traceXHR:Db.traceXHR,...e},o="function"==typeof a?a:e=>!0,c=e=>function(e,t){return Lp(e,t||Pb)}(e,i||s),l={};t&&xf("fetch",(e=>{const t=function(e,t,n,i){if(!$h()||!e.fetchData)return;const s=t(e.fetchData.url);if(e.endTimestamp&&s){const t=e.fetchData.__span;if(!t)return;const n=i[t];if(n){if(e.response){n.setHttpStatus(e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length"),i=parseInt(t);i>0&&n.setData("http.response_content_length",i)}else e.error&&n.setStatus("internal_error");n.finish(),delete i[t]}return}const a=Mh(),r=a.getScope(),o=a.getClient(),c=r.getSpan(),{method:l,url:d}=e.fetchData,u=s&&c?c.startChild({data:{url:d,type:"fetch","http.method":l},description:`${l} ${d}`,op:"http.client",origin:"auto.http.browser"}):void 0;u&&(e.fetchData.__span=u.spanId,i[u.spanId]=u);if(n(e.fetchData.url)&&o){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,i,s){const a=s||n.getSpan(),r=a&&a.transaction,{traceId:o,sampled:c,dsc:l}=n.getPropagationContext(),d=a?a.toTraceparent():fh(o,void 0,c),u=r?r.getDynamicSamplingContext():l||Wh(o,t,n),p=lh(u),f="undefined"!=typeof Request&&Ap(e,Request)?e.headers:i.headers;if(f){if("undefined"!=typeof Headers&&Ap(f,Headers)){const e=new Headers(f);return e.append("sentry-trace",d),p&&e.append(ah,p),e}if(Array.isArray(f)){const e=[...f,["sentry-trace",d]];return p&&e.push([ah,p]),e}{const e="baggage"in f?f.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),{...f,"sentry-trace":d,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":d,baggage:p}}(t,o,r,n,u)}return u}(e,o,c,l);r&&t&&zb(t)})),n&&xf("xhr",(e=>{const t=function(e,t,n,i){const s=e.xhr,a=s&&s[vf];if(!$h()||s&&s.__sentry_own_request__||!s||!a)return;const r=t(a.url);if(e.endTimestamp&&r){const e=s.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return void(t&&(t.setHttpStatus(a.status_code),t.finish(),delete i[e]))}const o=Mh(),c=o.getScope(),l=c.getSpan(),d=r&&l?l.startChild({data:{...a.data,type:"xhr","http.method":a.method,url:a.url},description:`${a.method} ${a.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;d&&(s.__sentry_xhr_span_id__=d.spanId,i[s.__sentry_xhr_span_id__]=d);if(s.setRequestHeader&&n(a.url))if(d){const e=d&&d.transaction,t=lh(e&&e.getDynamicSamplingContext());$b(s,d.toTraceparent(),t)}else{const e=o.getClient(),{traceId:t,sampled:n,dsc:i}=c.getPropagationContext();$b(s,fh(t,void 0,n),lh(i||(e?Wh(t,e,c):void 0)))}return d}(e,o,c,l);r&&t&&zb(t)}))}function zb(e){const t=e.data.url,n=new PerformanceObserver((i=>{i.getEntries().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}=function(e){let t="unknown",n="unknown",i="";for(const s of e){if("/"===s){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t="h"===i?"http":i,n=e.split(i)[1];break}i+=s}i===e&&(t=i);return{name:t,version:n}}(e.nextHopProtocol),i=[];if(i.push(["network.protocol.version",n],["network.protocol.name",t]),!sh)return i;return[...i,["http.request.redirect_start",Bb(e.redirectStart)],["http.request.fetch_start",Bb(e.fetchStart)],["http.request.domain_lookup_start",Bb(e.domainLookupStart)],["http.request.domain_lookup_end",Bb(e.domainLookupEnd)],["http.request.connect_start",Bb(e.connectStart)],["http.request.secure_connection_start",Bb(e.secureConnectionStart)],["http.request.connection_end",Bb(e.connectEnd)],["http.request.request_start",Bb(e.requestStart)],["http.request.response_start",Bb(e.responseStart)],["http.request.response_end",Bb(e.responseEnd)]]}(i);t.forEach((t=>e.setData(...t))),n.disconnect()}}))}));n.observe({entryTypes:["resource"]})}function Bb(e=0){return((sh||performance.timeOrigin)+e)/1e3}function $b(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(ah,n)}catch(e){}}const qb={...Zh,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!fb||!fb.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("Could not initialize routing instrumentation due to invalid location"));let i,s=fb.location.href;t&&(i=e({name:fb.location.pathname,startTimestamp:sh?sh/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&xf("history",(({to:t,from:n})=>{void 0===n&&s&&-1!==s.indexOf(t)?s=void 0:n!==t&&(s=void 0,i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=e({name:fb.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Db};class Vb{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,sm(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...qb,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Ub(),this.options.enableLongTask&&_b("longtask",(e=>{for(const t of e){const e=qh();if(!e)return;const n=Tb(sh+t.startTime),i=Tb(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})),this.options._experiments.enableInteractions&&_b("event",(e=>{for(const t of e){const e=qh();if(!e)return;if("click"===t.name){const n=Tb(sh+t.startTime),i=Tb(t.duration);e.startChild({description:Bp(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),i=n&&n.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:a,startTransactionOnPageLoad:r,markBackgroundTransactions:o,traceFetch:c,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:u,_experiments:p}=this.options,f=i&&i.tracePropagationTargets,h=f||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&f&&Gp.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),r,a),o&&(fb&&fb.document?fb.document.addEventListener("visibilitychange",(()=>{const e=qh();if(fb.document.hidden&&e){const t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),Mb({traceFetch:c,traceXHR:l,tracePropagationTargets:h,shouldCreateSpanForRequest:d,enableHTTPTimings:u})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:i,finalTimeout:s,heartbeatInterval:a}=this.options,r="pageload"===e.op,o=r?Yb("sentry-trace"):"",c=r?Yb("baggage"):"",{traceparentData:l,dynamicSamplingContext:d,propagationContext:u}=ph(o,c),p={...e,...l,metadata:{...e.metadata,dynamicSamplingContext:l&&!d?{}:d},trimEnd:!0},f="function"==typeof n?n(p):p,h=void 0===f?{...p,sampled:!1}:f;h.metadata=h.name!==p.name?{...h.metadata,source:"custom"}:h.metadata,this._latestRouteName=h.name,this._latestRouteSource=h.metadata&&h.metadata.source,!1===h.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Will not send ${h.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.log(`[Tracing] Starting ${h.op} transaction on scope`);const{location:m}=fb,g=im(t,h,i,s,!0,{location:m},a),y=t.getScope();return r&&l?y.setPropagationContext(u):y.setPropagationContext({traceId:g.traceId,spanId:g.spanId,parentSpanId:g.parentSpanId,sampled:g.sampled}),g.registerBeforeFinishCallback((e=>{this._collectWebVitals(),Fb(e)})),g}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:i}=this.options,s="ui.action.click",a=qh();if(a&&a.op&&["navigation","pageload"].includes(a.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gp.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`));const r=this._getCurrentHub(),{location:o}=fb,c={name:this._latestRouteName,op:s,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=im(r,c,t,n,!0,{location:o},i)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}function Yb(e){const t=(n=`meta[name=${e}]`,Mp.document&&Mp.document.querySelector?Mp.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}class Gb{constructor(e,t,n,i){this.gameParams=t,this.userParams=n,this.firekit=e,this.displayElement=i,this.jsPsych=null}async init(){this.gameParams?.fromDashboard&&(Sg({dsn:"https://b618958936a197de9f9f9a86ae6cceff@o4505913837420544.ingest.sentry.io/4505915445870592",integrations:[new Vb({tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/]}),new ub],tracesSampleRate:1,replaysSessionSampleRate:1,replaysOnErrorSampleRate:1,beforeSend:e=>e}),delete this.gameParams.fromDashboard),await this.firekit.startRun();const e=await(async(e,t,n,i)=>{const s=Ra(Ra({...t,...n},La),$a),{userMode:a,assessmentPid:r,labId:o,recruitment:c,userMetadata:l,urlParams:d,consent:u,storyOption:p,language:f,skipInstructions:h,grade:m,birthMonth:g,birthYear:y,age:_,ageMonths:v,timerLength:b}=s,w=yr(g,y,_,v),I={pid:r,labId:o,userMode:a||"default",recruitment:c||"pilot",storyOption:p,story:Gu(p,m),userMetadata:{...l,grade:m,...w},startTime:new Date,urlParams:d,firekit:e,language:f,skipInstructions:h??!0,consent:u??!0,displayElement:i||null,blockOrder:Hu(a),timerLength:b??18e4,timerLengthList:Wu(a)},x=Object.fromEntries(Object.entries(t).map((([e,t])=>[e,I[e]??t])));return await I.firekit.updateTaskParams(x),null!==I.pid&&await I.firekit.updateUser({assessmentPid:I.pid,...l}),I})(this.firekit,this.gameParams,this.userParams,this.displayElement);return a.session.set("config",e),function(e,t){Ku(t);const n=Zu(e),i=vr({responseTimeLowThreshold:1e3,responseTimeHighThreshold:2e4,accuracyThreshold:.6,minResponsesRequired:10,includedReliabilityFlags:["responseTimeTooFast"]});fp=new br({evaluateValidity:i,handleEngagementFlags:(e,n)=>t.firekit.run.started?t.firekit.updateEngagementFlags(e,n):null});const s=[Xc,...n];return(e=>{const n={timeline:[up,pp],repetitions:4};s.push(Qu),s.push(cp),s.push(dp),s.push(n),s.push(ep);for(let n=0;n<e.length;n+=1)s.push(lp(e[n],n+1,t.timerLengthList[n])),n<e.length-1&&s.push(ip);s.push(sp)})(t.blockOrder),{jsPsych:ol,timeline:s}}(this.firekit,e)}async run(){const{jsPsych:e,timeline:t}=await this.init();this.jsPsych=e,this.jsPsych.run(t),await(e=>{const t=n=>{e()?n():setTimeout((e=>t(n)),400)};return new Promise(t)})((()=>!0===this.firekit.run.completed))}async abort(){this.firekit.abortRun(),document.querySelectorAll("audio").forEach((e=>e.pause())),this.jsPsych&&this.jsPsych.endExperiment()}}export{Gb as default};
|
|
26
|
+
//# sourceMappingURL=index.97c590d8.js.map
|