1!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=35)}([function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return u})); 2/*! ***************************************************************************** 3Copyright (c) Microsoft Corporation. 4 5Permission to use, copy, modify, and/or distribute this software for any 6purpose with or without fee is hereby granted. 7 8THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 9REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 11INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 12LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 13OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 14PERFORMANCE OF THIS SOFTWARE. 15***************************************************************************** */ 16var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}},,function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return u}));var r=n(17),i=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(t){var e=Object(r.b)().getClient();return!!(t=t||e&&e.getOptions())&&("tracesSampleRate"in t||"tracesSampler"in t)}function a(t){var e;return(t=t.match(i))?(e=void 0,"1"===t[3]?e=!0:"0"===t[3]&&(e=!1),{traceId:t[1],parentSampled:e,parentSpanId:t[2]}):void 0}function s(t){return(t=(t||Object(r.b)()).getScope())&&t.getTransaction()}function c(t){return t/1e3}function u(t){return 1e3*t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c}));var r=n(5),i=Object(r.a)(),o="Sentry Logger ";function a(t){var e=Object(r.a)();if(!("console"in e))return t();var n=e.console,i={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(i[t]=n[t],n[t]=n[t].__sentry_original__)})),t=t();
16return Object.keys(i).forEach((function(t){n[t]=i[t]})),t}function s(){this._enabled=!1}s.prototype.disable=function(){this._enabled=!1},s.prototype.enable=function(){this._enabled=!0},s.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&a((function(){i.console.log(o+"[Log]: "+t.join(" "))}))},s.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&a((function(){i.console.warn(o+"[Warn]: "+t.join(" "))}))},s.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&a((function(){i.console.error(o+"[Error]: "+t.join(" "))}))},e=s,i.__SENTRY__=i.__SENTRY__||{};var c=i.__SENTRY__.logger||(i.__SENTRY__.logger=new e)},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return c})),n.d(e,"k",(function(){return u})),n.d(e,"i",(function(){return p})),n.d(e,"h",(function(){return f})),n.d(e,"f",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"j",(function(){return h})),n.d(e,"m",(function(){return b})),n.d(e,"l",(function(){return g})),n.d(e,"g",(function(){return y}));var r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function o(t,e){return r.call(t)==="[object "+e+"]"}function a(t){return o(t,"ErrorEvent")}function s(t){return o(t,"DOMError")}function c(t){return o(t,"DOMException")}function u(t){return o(t,"String")}function p(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function f(t){return o(t,"Object")}function l(t){return"undefined"!=typeof Event&&y(t,Event)}function d(t){return"undefined"!=typeof Element&&y(t,Element)}function h(t){return o(t,"RegExp")}function b(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function g(t){return f(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function y(t,e){try{return t instanceof e}catch(t){return!1}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r=n(7),i={};function o(){return Object(r.b)()?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}}).call(this,n(22))},function(t,e,n){"use strict";(function(t){n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"e",(function(){return l})),n.d(e,"i",(function(){return d})),n.d(e,"h",(function(){return b})),n.d(e,"g",(function(){return y})),n.d(e,"c",(function(){return m})),n.d(e,"b",(function(){return v}));var r=n(0),i=n(24),o=n(4),a=n(29),s=n(20),c=n(13);function u(t,e,n){if(e in t){var r=t[e];if("function"==typeof(n=n(r)))try{f(n,r)}catch(t){}t[e]=n}}function p(t,e,n){Object.defineProperty(t,e,{value:n})}function f(t,e){var n=e.prototype||{};t.prototype=e.prototype=n,p(t,"__sentry_original__",e)}function l(t){return t.__sentry_original__}function d(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function h(t){if(Object(o.d)(t)){var e,n=t,r={message:n.message,name:n.name,stack:n.stack};for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);return r}if(Object(o.f)(t)){var a,s=t,c={};c.type=s.type;try{c.target=Object(o.c)(s.target)?Object(i.b)(s.target):Object.prototype.toString.call(s.target)}catch(t){c.target="<unknown>"}try{c.currentTarget=Object(o.c)(s.currentTarget)?Object(i.b)(s.currentTarget):Object.prototype.toString.call(s.currentTarget)}catch(t){c.currentTarget="<unknown>"}for(a in"undefined"!=typeof CustomEvent&&Object(o.g)(t,CustomEvent)&&(c.detail=s.detail),s)Object.prototype.hasOwnProperty.call(s,a)&&(c[a]=s[a]);return c}return t}function b(t,e,n){void 0===n&&(n=102400);var r=y(t,e=void 0===e?3:e);return function(t){return t=JSON.stringify(t),~-encodeURI(t).split(/%..|./).length}(r)>n?b(t,e-1,n):r}function g(e,n){return"domain"===n&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==t&&e===t?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(o.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(s.a)(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function y(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,n){return function t(e,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=Object(a.a)()),0===r){var s=n;
16if("string"==typeof s)return s;var c=Object.prototype.toString.call(s);return"[object Object]"===c?"[Object]":"[object Array]"===c?"[Array]":(s=g(s),Object(o.i)(s)?s:c)}if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();if(s=g(n,e),Object(o.i)(s))return s;var u,p=h(n),f=Array.isArray(n)?[]:{};if(i[0](n))return"[Circular ~]";for(u in p)Object.prototype.hasOwnProperty.call(p,u)&&(f[u]=t(u,p[u],r-1,i));return i[1](n),f}(t,n,e)})))}catch(t){return"**non-serializable**"}}function m(t,e){void 0===e&&(e=40);var n=Object.keys(h(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(c.d)(n[0],e);for(var r=n.length;0<r;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:Object(c.d)(i,e)}return""}function v(t){var e,n;if(Object(o.h)(t)){var i=t,a={};try{for(var s=Object(r.f)(Object.keys(i)),c=s.next();!c.done;c=s.next()){var u=c.value;void 0!==i[u]&&(a[u]=v(i[u]))}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return a}return Array.isArray(t)?t.map(v):t}}).call(this,n(22))},function(t,e,n){"use strict";(function(t,r){n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s}));var i=n(10);function o(){return!Object(i.a)()&&"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function a(t,e){return t.require(e)}function s(t){try{n=a(r,t)}catch(t){}try{var e=a(r,"process").cwd,n=a(r,e()+"/node_modules/"+t)}catch(t){}return n}}).call(this,n(36),n(23)(t))},,function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return u}));var r=n(0),i=n(25),o=n(16),a=n(6),s=(c.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},c);function c(t){void 0===t&&(t=1e3),this.spans=[],this._maxlen=t}p.prototype.child=function(t){return this.startChild(t)},p.prototype.startChild=function(t){return(t=new p(Object(r.a)(Object(r.a)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}))).spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,t},p.prototype.setTag=function(t,e){var n;return this.tags=Object(r.a)(Object(r.a)({},this.tags),((n={})[t]=e,n)),this},p.prototype.setData=function(t,e){var n;return this.data=Object(r.a)(Object(r.a)({},this.data),((n={})[t]=e,n)),this},p.prototype.setStatus=function(t){return this.status=t,this},p.prototype.setHttpStatus=function(t){return this.setTag("http.status_code",String(t)),"unknown_error"!==(t=function(t){if(t<400&&100<=t)return"ok";if(400<=t&&t<500)switch(t){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(500<=t&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t))&&this.setStatus(t),this},p.prototype.isSuccess=function(){return"ok"===this.status},p.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:Object(o.d)()},p.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},p.prototype.toContext=function(){return Object(a.b)({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})},p.prototype.updateWithContext=function(t){var e;return this.data=null!=(e=t.data)?e:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!=(e=t.spanId)?e:this.spanId,this.startTimestamp=null!=(e=t.startTimestamp)?e:this.startTimestamp,this.status=t.status,this.tags=null!=(e=t.tags)?e:{},this.traceId=null!=(e=t.traceId)?e:this.traceId,this},p.prototype.getTraceContext=function(){return Object(a.b)({data:0<Object.keys(this.data).length?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:0<Object.keys(this.tags).length?this.tags:void 0,trace_id:this.traceId})},p.prototype.toJSON=function(){return Object(a.b)({data:0<Object.keys(this.data).length?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:0<Object.keys(this.tags).length?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})};var u=p;function p(t){if(this.traceId=Object(i.g)(),this.spanId=Object(i.g)().substring(16),this.startTimestamp=Object(o.d)(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&
16(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}},function(t,e,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_NO_DEBUG__&&!__SENTRY_BROWSER_BUNDLE__}function i(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r="finishReason",i=["heartbeatFailed","idleTimeout","documentHidden"]},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return b}));var r=n(0),i=n(17),o=n(3),a=n(7),s=n(30),c=n(14),u=n(15),p=n(2);function f(){var t=this.getScope();return t&&(t=t.getSpan())?{"sentry-trace":t.toTraceparent()}:{}}function l(t,e,n){return Object(p.c)(e)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t):("function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(r=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(r)}})),function(t){return isNaN(t)||"number"!=typeof t&&"boolean"!=typeof t?(o.b.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(t)+" of type "+JSON.stringify(typeof t)+"."),!1):!(t<0||1<t)||(o.b.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+t+"."),!1)}(r)?r?(t.sampled=Math.random()<r,t.sampled?o.b.log("[Tracing] starting "+t.op+" transaction - "+t.name):o.b.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(r)+")"),t):(o.b.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(o.b.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r}function d(t,e){var n=(n=this.getClient())&&n.getOptions()||{},i=new u.a(t,this);return(i=l(i,n,Object(r.a)({parentSampled:t.parentSampled,transactionContext:t},e))).sampled&&i.initSpanRecorder(n._experiments&&n._experiments.maxSpans),i}function h(t,e,n,i,o){var a=(a=t.getClient())&&a.getOptions()||{};return(t=l(t=new c.b(e,t,n,i),a,Object(r.a)({parentSampled:e.parentSampled,transactionContext:e},o))).sampled&&t.initSpanRecorder(a._experiments&&a._experiments.maxSpans),t}function b(){var e,n,o;(n=Object(i.c)()).__SENTRY__&&(n.__SENTRY__.extensions=n.__SENTRY__.extensions||{},n.__SENTRY__.extensions.startTransaction||(n.__SENTRY__.extensions.startTransaction=d),n.__SENTRY__.extensions.traceHeaders||(n.__SENTRY__.extensions.traceHeaders=f)),Object(a.b)()&&(o=Object(i.c)()).__SENTRY__&&(e={mongodb:function(){return new(Object(a.a)(t,"./integrations/node/mongo").Mongo)},mongoose:function(){return new(Object(a.a)(t,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new(Object(a.a)(t,"./integrations/node/mysql").Mysql)},pg:function(){return new(Object(a.a)(t,"./integrations/node/postgres").Postgres)}},0<(n=Object.keys(e).filter((function(t){return!!Object(a.c)(t)})).map((function(t){try{return e[t]()}catch(t){return}})).filter((function(t){return t}))).length&&(o.__SENTRY__.integrations=Object(r.e)(o.__SENTRY__.integrations||[],n))),Object(s.a)()}}).call(this,n(23)(t))},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(4);function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){var n=t.length;if(n<=150)return t;n<e&&(e=n);
16var r=((e=Math.max(e-60,0))<5&&(e=0),Math.min(e+140,n));return(r=n-5<r?n:r)===n&&(e=Math.max(r-140,0)),t=t.slice(e,r),0<e&&(t="'{snip} "+t),r<n&&(t+=" {snip}"),t}function a(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var i=t[r];try{n.push(String(i))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function s(t,e){return!!Object(r.k)(t)&&(Object(r.j)(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l}));var r,i=n(0),o=n(16),a=n(3),s=n(11),c=(e=n(9),n=n(15),1e3),u=(r=e.b,Object(i.b)(p,r),p.prototype.add=function(t){var e=this;t.spanId!==this.transactionSpanId&&(t.finish=function(n){t.endTimestamp="number"==typeof n?n:Object(o.d)(),e._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),r.prototype.add.call(this,t)},p);function p(t,e,n,i){return void 0===n&&(n=""),(i=r.call(this,i)||this)._pushActivity=t,i._popActivity=e,i.transactionSpanId=n,i}f=n.a,Object(i.b)(d,f),d.prototype.finish=function(t){var e,n,r=this;if(void 0===t&&(t=Object(o.d)()),this._finished=!0,this.activities={},this.spanRecorder){a.b.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var s=Object(i.f)(this._beforeFinishCallbacks),c=s.next();!c.done;c=s.next())(0,c.value)(this,t)}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===r.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),a.b.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp<t;return n||a.b.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),a.b.log("[Tracing] flushing IdleTransaction")}else a.b.log("[Tracing] No active IdleTransaction");return this._onScope&&h(this._idleHub),f.prototype.finish.call(this,t)},d.prototype.registerBeforeFinishCallback=function(t){this._beforeFinishCallbacks.push(t)},d.prototype.initSpanRecorder=function(t){var e=this;this.spanRecorder||(this.spanRecorder=new u((function(t){e._finished||e._pushActivity(t)}),(function(t){e._finished||e._popActivity(t)}),this.spanId,t),a.b.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)},d.prototype._pushActivity=function(t){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),a.b.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,a.b.log("[Tracing] new activities count",Object.keys(this.activities).length)},d.prototype._popActivity=function(t){var e,n=this;this.activities[t]&&(a.b.log("[Tracing] popActivity "+t),delete this.activities[t],a.b.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length&&(t=this._idleTimeout,e=Object(o.d)()+t/1e3,setTimeout((function(){n._finished||(n.setTag(s.a,s.b[1]),n.finish(e))}),t))},d.prototype._beat=function(){var t;this._finished||((t=Object.keys(this.activities).join(""))===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,3<=this._heartbeatCounter?(a.b.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(s.a,s.b[0]),this.finish()):this._pingHeartbeat())},d.prototype._pingHeartbeat=function(){var t=this;a.b.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){t._beat()}),5e3)};var f,l=d;function d(t,e,n,r){void 0===n&&(n=c),void 0===r&&(r=!1);var i=f.call(this,t,e)||this;return i._idleHub=e,i._idleTimeout=n,i._onScope=r,i.activities={},i._heartbeatCounter=0,i._finished=!1,i._beforeFinishCallbacks=[],e&&r&&(h(e),a.b.log("Setting idle transaction on scope. Span ID: "+i.spanId),e.configureScope((function(t){return t.setSpan(i)}))),i._initTimeout=setTimeout((function(){i._finished||i.finish()}),i._idleTimeout),i}function h(t){!t||(t=t.getScope())&&t.getTransaction()&&t.setSpan(void 0)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r,i=n(0),o=n(17),a=n(4),s=n(3),c=n(6),u=n(9),p=(r=u.a,Object(i.b)(f,r),f.prototype.setName=function(t){this.name=t},f.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new u.b(t)),this.spanRecorder.add(this)},f.prototype.setMeasurements=function(t){this._measurements=Object(i.a)({},t)},f.prototype.setMetadata=function(t){this.metadata=Object(i.a)(Object(i.a)({},this.metadata),t)},f.prototype.finish=function(t){var e=this;if(void 0===this.endTimestamp)return this.name||(s.b.warn("Transaction has no name, falling back to `<unlabeled transaction>
16`."),this.name="<unlabeled transaction>"),r.prototype.finish.call(this,t),!0!==this.sampled?(s.b.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void((t=(t=this._hub.getClient())&&t.getTransport&&t.getTransport())&&t.recordLostEvent&&t.recordLostEvent("sample_rate","transaction"))):(t=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==e&&t.endTimestamp})):[],this._trimEnd&&0<t.length&&(this.endTimestamp=t.reduce((function(t,e){return!t.endTimestamp||!e.endTimestamp||t.endTimestamp>e.endTimestamp?t:e})).endTimestamp),t={contexts:{trace:this.getTraceContext()},spans:t,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata},0<Object.keys(this._measurements).length&&(s.b.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),t.measurements=this._measurements),s.b.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(t))},f.prototype.toContext=function(){var t=r.prototype.toContext.call(this);return Object(c.b)(Object(i.a)(Object(i.a)({},t),{name:this.name,trimEnd:this._trimEnd}))},f.prototype.updateWithContext=function(t){var e;return r.prototype.updateWithContext.call(this,t),this.name=null!=(e=t.name)?e:"",this._trimEnd=t.trimEnd,this},f);function f(t,e){var n=r.call(this,t)||this;return n._measurements={},n._hub=Object(o.b)(),Object(a.g)(e,o.a)&&(n._hub=e),n.name=t.name||"",n.metadata=t.metadata||{},n._trimEnd=t.trimEnd,n.transaction=n}},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return f})),n.d(e,"a",(function(){return l}));var r,i=n(5),o=n(7),a={nowSeconds:function(){return Date.now()/1e3}},s=Object(o.b)()?function(){try{return Object(o.a)(t,"perf_hooks").performance}catch(t){return}}():(r=Object(i.a)().performance)&&r.now?{now:function(){return r.now()},timeOrigin:Date.now()-r.now()}:void 0,c=void 0===s?a:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},u=a.nowSeconds.bind(a),p=c.nowSeconds.bind(c),f=p,l=function(){var t=Object(i.a)().performance;if(t&&t.now){var e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,o=r<36e5,a=t.timing&&t.timing.navigationStart;e="number"==typeof a?Math.abs(a+e-n):36e5;return o||e<36e5?r<=e?t.timeOrigin:a:n}}()}).call(this,n(23)(t))},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return y}));var r=n(0),i=n(25),o=n(16),a=n(3),s=n(5),c=n(7),u=n(21),p=n(6),f=(l.prototype.update=function(t){var e;(t=void 0===t?{}:t).user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Object(o.c)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:Object(i.g)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration?this.duration=void 0:"number"==typeof t.duration?this.duration=t.duration:(e=this.timestamp-this.started,this.duration=0<=e?e:0),t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},l.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},l.prototype.toJSON=function(){return Object(p.b)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},l);function l(t){this.errors=0,this.sid=Object(i.g)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=Object(o.c)();this.timestamp=e,this.started=e,t&&this.update(t)}var d=(h.prototype.isOlderThan=function(t){return this._version<t},h.prototype.bindClient=function(t){(this.getStackTop().client=t)&&t.setupIntegrations&&t.setupIntegrations()},h.prototype.pushScope=function(){var t=u.a.clone(this.getScope());
16return this.getStack().push({client:this.getClient(),scope:t}),t},h.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},h.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},h.prototype.getClient=function(){return this.getStackTop().client},h.prototype.getScope=function(){return this.getStackTop().scope},h.prototype.getStack=function(){return this._stack},h.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},h.prototype.captureException=function(t,e){var n=this._lastEventId=Object(i.g)(),o=e;if(!e){e=void 0;try{throw new Error("Sentry syntheticException")}catch(t){e=t}o={originalException:t,syntheticException:e}}return this._invokeClient("captureException",t,Object(r.a)(Object(r.a)({},o),{event_id:n})),n},h.prototype.captureMessage=function(t,e,n){var o=this._lastEventId=Object(i.g)(),a=n;if(!n){n=void 0;try{throw new Error(t)}catch(t){n=t}a={originalException:t,syntheticException:n}}return this._invokeClient("captureMessage",t,e,Object(r.a)(Object(r.a)({},a),{event_id:o})),o},h.prototype.captureEvent=function(t,e){var n=Object(i.g)();return"transaction"!==t.type&&(this._lastEventId=n),this._invokeClient("captureEvent",t,Object(r.a)(Object(r.a)({},e),{event_id:n})),n},h.prototype.lastEventId=function(){return this._lastEventId},h.prototype.addBreadcrumb=function(t,e){var n,i,s,c=(u=this.getStackTop()).scope,u=u.client;c&&u&&(s=(u=u.getOptions&&u.getOptions()||{}).beforeBreadcrumb,n=void 0===s?null:s,(u=void 0===(s=u.maxBreadcrumbs)?100:s)<=0||(s=Object(o.b)(),i=Object(r.a)({timestamp:s},t),null!==(s=n?Object(a.a)((function(){return n(i,e)})):i)&&c.addBreadcrumb(s,u)))},h.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},h.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},h.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},h.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},h.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},h.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},h.prototype.configureScope=function(t){var e=(n=this.getStackTop()).scope,n=n.client;e&&n&&t(e)},h.prototype.run=function(t){var e=g(this);try{t(this)}finally{g(e)}},h.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return a.b.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},h.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},h.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},h.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},h.prototype.captureSession=function(t){if(t=void 0!==t&&t)return this.endSession();this._sendSessionUpdate()},h.prototype.endSession=function(){var t,e=(t=(t=this.getStackTop())&&t.scope)&&t.getSession();e&&e.close(),this._sendSessionUpdate(),t&&t.setSession()},h.prototype.startSession=function(t){var e=(i=this.getStackTop()).scope,n=(i=(i=i.client)&&i.getOptions()||{}).release,i=i.environment,o=(Object(s.a)().navigator||{}).userAgent;n=new f(Object(r.a)(Object(r.a)(Object(r.a)({release:n,environment:i},e&&{user:e.getUser()}),o&&{userAgent:o}),t));return e&&((i=e.getSession&&e.getSession())&&"ok"===i.status&&i.update({status:"exited"}),this.endSession(),e.setSession(n)),n},h.prototype._sendSessionUpdate=function(){var t=(e=this.getStackTop()).scope,e=e.client;!t||(t=t.getSession&&t.getSession())&&e&&e.captureSession&&e.captureSession(t)},h.prototype._invokeClient=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i,o=(i=this.getStackTop()).scope;(i=i.client)&&i[t]&&i[t].apply(i,Object(r.e)(e,[o]))},h.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=b().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,e);a.b.warn("Extension method "+t+" couldn't be found, doing nothing.")},h);function h(t,e,n){void 0===e&&(e=new u.a),this._version=n=void 0===n?4:n,this._stack=[{}
16],this.getStackTop().scope=e,t&&this.bindClient(t)}function b(){var t=Object(s.a)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function g(t){var e=b(),n=v(e);return _(e,t),n}function y(){var t=b();if(m(t)&&!v(t).isOlderThan(4)||_(t,new d),!Object(c.b)())return v(t);try{var e,n=b().__SENTRY__,r=n&&n.extensions&&n.extensions.domain&&n.extensions.domain.active;return r?(m(r)&&!v(r).isOlderThan(4)||(e=v(t).getStackTop(),_(r,new d(e.client,u.a.clone(e.scope)))),v(r)):v(t)}catch(e){return v(t)}}function m(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub}function v(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new d),t.__SENTRY__.hub}function _(t,e){return t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,1)}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(4);function i(t){return new a((function(e){e(t)}))}function o(t){return new a((function(e,n){n(t)}))}s.prototype.then=function(t,e){var n=this;return new s((function(r,i){n._handlers.push([!1,function(e){if(t)try{r(t(e))}catch(t){i(t)}else r(e)},function(t){if(e)try{r(e(t))}catch(t){i(t)}else i(t)}]),n._executeHandlers()}))},s.prototype.catch=function(t){return this.then((function(t){return t}),t)},s.prototype.finally=function(t){var e=this;return new s((function(n,r){var i,o;return e.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){(o?r:n)(i)}))}))};var a=s;function s(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,n){0===e._state&&(Object(r.m)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._executeHandlers=function(){var t;0!==e._state&&(t=e._handlers.slice(),e._handlers=[],t.forEach((function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)})))};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r="<anonymous>";function i(t){try{return t&&"function"==typeof t&&t.name||r}catch(t){return r}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return f}));var r=n(0),i=n(4),o=n(16),a=n(18),s=n(5),c=(u.clone=function(t){var e=new u;return t&&(e._breadcrumbs=Object(r.e)(t._breadcrumbs),e._tags=Object(r.a)({},t._tags),e._extra=Object(r.a)({},t._extra),e._contexts=Object(r.a)({},t._contexts),e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=Object(r.e)(t._eventProcessors),e._requestSession=t._requestSession),e},u.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},u.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},u.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},u.prototype.getUser=function(){return this._user},u.prototype.getRequestSession=function(){return this._requestSession},u.prototype.setRequestSession=function(t){return this._requestSession=t,this},u.prototype.setTags=function(t){return this._tags=Object(r.a)(Object(r.a)({},this._tags),t),this._notifyScopeListeners(),this},u.prototype.setTag=function(t,e){var n;return this._tags=Object(r.a)(Object(r.a)({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},u.prototype.setExtras=function(t){return this._extra=Object(r.a)(Object(r.a)({},this._extra),t),this._notifyScopeListeners(),this},u.prototype.setExtra=function(t,e){var n;return this._extra=Object(r.a)(Object(r.a)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},u.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},u.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},u.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},u.prototype.setTransaction=function(t){return this.setTransactionName(t)},u.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=Object(r.a)(Object(r.a)({},this._contexts),((n={}
16)[t]=e,n)),this._notifyScopeListeners(),this},u.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},u.prototype.getSpan=function(){return this._span},u.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},u.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},u.prototype.getSession=function(){return this._session},u.prototype.update=function(t){return t?"function"==typeof t?(e=t(this))instanceof u?e:this:(t instanceof u?(this._tags=Object(r.a)(Object(r.a)({},this._tags),t._tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t._extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Object(i.h)(t)&&(this._tags=Object(r.a)(Object(r.a)({},this._tags),t.tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t.extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this):this;var e},u.prototype.clear=function(){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},u.prototype.addBreadcrumb=function(t,e){return(e="number"==typeof e?Math.min(e,100):100)<=0||(t=Object(r.a)({timestamp:Object(o.b)()},t),this._breadcrumbs=Object(r.e)(this._breadcrumbs,[t]).slice(-e),this._notifyScopeListeners()),this},u.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},u.prototype.applyToEvent=function(t,e){var n;return this._extra&&Object.keys(this._extra).length&&(t.extra=Object(r.a)(Object(r.a)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=Object(r.a)(Object(r.a)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=Object(r.a)(Object(r.a)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=Object(r.a)(Object(r.a)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span&&(t.contexts=Object(r.a)({trace:this._span.getTraceContext()},t.contexts),(n=this._span.transaction&&this._span.transaction.name)&&(t.tags=Object(r.a)({transaction:n},t.tags))),this._applyFingerprint(t),t.breadcrumbs=Object(r.e)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=0<t.breadcrumbs.length?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Object(r.e)(p(),this._eventProcessors),t,e)},u.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=Object(r.a)(Object(r.a)({},this._sdkProcessingMetadata),t),this},u.prototype._notifyEventProcessors=function(t,e,n,o){var s=this;return void 0===o&&(o=0),new a.a((function(a,c){var u=t[o];null===e||"function"!=typeof u?a(e):(u=u(Object(r.a)({},e),n),(Object(i.m)(u)?u.then((function(e){return s._notifyEventProcessors(t,e,n,o+1).then(a)})):s._notifyEventProcessors(t,u,n,o+1).then(a)).then(null,c))}))},u.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},u.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},u);function u(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}function p(){var t=Object(s.a)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function f(t){p().push(t)}},function(t,e){var n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t){var e;return t.webpackPolyfill||((e=Object.create(t)).children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1),e}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}
16)),n.d(e,"a",(function(){return a}));var r=n(5),i=n(4);function o(t,e){try{for(var n,r=t,o=[],a=0,s=0,c=" > ".length;r&&a++<5&&!("html"===(n=function(t,e){var n,r,o,a,s=t,c=[];if(!s||!s.tagName)return"";if(c.push(s.tagName.toLowerCase()),(t=e&&e.length?e.filter((function(t){return s.getAttribute(t)})).map((function(t){return[t,s.getAttribute(t)]})):null)&&t.length)t.forEach((function(t){c.push("["+t[0]+'="'+t[1]+'"]')}));else if(s.id&&c.push("#"+s.id),(e=s.className)&&Object(i.k)(e))for(n=e.split(/\s+/),a=0;a<n.length;a++)c.push("."+n[a]);var u=["type","name","title","alt"];for(a=0;a<u.length;a++)r=u[a],(o=s.getAttribute(r))&&c.push("["+r+'="'+o+'"]');return c.join("")}(r,e))||1<a&&80<=s+o.length*c+n.length);)o.push(n),s+=n.length,r=r.parentNode;return o.reverse().join(" > ")}catch(t){return"<unknown>"}}function a(){var t=Object(r.a)();try{return t.document.location.href}catch(t){return""}}},function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f})),n.d(e,"e",(function(){return l})),n.d(e,"c",(function(){return d}));var r=n(0),i=n(5),o=n(6);function a(){var t,e;return void 0!==(e=(e=Object(i.a)()).crypto||e.msCrypto)&&e.getRandomValues?(t=ne
16w Uint16Array(8),e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768,(e=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e})(t[0])+e(t[1])+e(t[2])+e(t[3])+e(t[4])+e(t[5])+e(t[6])+e(t[7])):"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function s(t){if(!t)return{};if(!(t=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/)))return{};var e=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+e+n}}function c(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function u(t){var e=t.message,n=t.event_id;return e||((e=c(t))?e.type&&e.value?e.type+": "+e.value:e.type||e.value||n||"<unknown>":n||"<unknown>")}function p(t,e,n){(t=(t=(t=t.exception=t.exception||{}).values=t.values||[])[0]=t[0]||{}).value||(t.value=e||""),t.type||(t.type=n||"Error")}function f(t,e){var n;(t=c(t))&&(n=t.mechanism,t.mechanism=Object(r.a)(Object(r.a)(Object(r.a)({},{type:"generic",handled:!0}),n),e),e&&"data"in e&&(n=Object(r.a)(Object(r.a)({},n&&n.data),e.data),t.mechanism.data=n))}n(13);function l(t,e){if(!e)return 6e4;var n=parseInt(""+e,10);return isNaN(n)?(n=Date.parse(""+e),isNaN(n)?6e4:n-t):1e3*n}function d(t){if(t&&t.__sentry_captured__)return!0;try{Object(o.a)(t,"__sentry_captured__",!0)}catch(t){}return!1}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return u})),n.d(e,"c",(function(){return p}));var r=n(10),i=n(5),o=n(3);function a(){if(!("fetch"in Object(i.a)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function s(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function c(){if(!a())return!1;if(s((t=Object(i.a)()).fetch))return!0;var t,e=!1;if((t=t.document)&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");
16n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=s(n.contentWindow.fetch)),t.head.removeChild(n)}catch(t){Object(r.b)()&&o.b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return e}function u(){if(!a())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function p(){var t=(t=(e=Object(i.a)()).chrome)&&t.app&&t.app.runtime,e="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!t&&e}},,function(t,e){var n=Object.prototype.toString;function r(t){return"function"==typeof t.constructor?t.constructor.name:null}t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";var e,i=typeof t;if("boolean"===i)return"boolean";if("string"===i)return"string";if("number"===i)return"number";if("symbol"===i)return"symbol";if("function"===i)return"GeneratorFunction"===r(t)?"generatorfunction":"function";if(e=t,Array.isArray?Array.isArray(e):e instanceof Array)return"array";if(function(t){return!(!t.constructor||"function"!=typeof t.constructor.isBuffer)&&t.constructor.isBuffer(t)}(t))return"buffer";if(function(t){try{if("number"==typeof t.length&&"function"==typeof t.callee)return 1}catch(t){if(-1!==t.message.indexOf("callee"))return 1}}(t))return"arguments";if((e=t)instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate)return"date";if((e=t)instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit)return"error";if((e=t)instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global)return"regexp";switch(r(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if("function"==typeof(e=t).throw&&"function"==typeof e.return&&"function"==typeof e.next)return"generator";switch(i=n.call(t)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return i.slice(8,-1).toLowerCase().replace(/\s/g,"")}},function(t,e,n){"use strict";function r(){var t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(var r=0;r<e.length;r++)if(e[r]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(var r=0;r<e.length;r++)if(e[r]===n){e.splice(r,1);break}}]}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(32),i=n(3),o=n(2);function a(){Object(r.a)("error",s),Object(r.a)("unhandledrejection",s)}function s(){var t=Object(o.b)();t&&(i.b.log("[Tracing] Transaction: "+"internal_error"+" -> Global error occured"),t.setStatus("internal_error"))}},function(t,e,n){"use strict";const r=n(37),i=n(28),o=n(42);t.exports=function t(e,n){switch(i(e)){case"object":var a=e,s=n;if("function"==typeof s)return s(a);if(s||o(a)){const e=new a.constructor;for(var c in a)e[c]=t(a[c],s);return e}return a;case"array":{var u=e,p=n;const r=new u.constructor(u.length);for(let e=0;e<u.length;e++)r[e]=t(u[e],p);return r}default:return r(e)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r,i,o,a=n(0),s=n(10),c=(e=n(5),n(4)),u=n(3),p=n(6),f=n(20),l=n(26),d=Object(e.a)(),h={},b={};function g(t,e){h[t]=h[t]||[],h[t].push(e),function(t){var e,n,i;if(!b[t])switch(b[t]=!0,t){case"console":"console"in d&&["debug","info","warn","error","log","assert"].forEach((function(t){t in d.console&&Object(p.d)(d.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];y("console",{args:n,level:t}),e&&Function.prototype.apply.call(e,d.console,n)}}))}));break;case"dom":"document"in d&&(i=m(n=y.bind(null,"dom"),!0),d.document.addEventListener("click",i,!1),d.document.addEventListener("keypress",i,!1),["EventTarget","Node"].forEach((function(t){(t=d[t]&&d[t].prototype)&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(p.d)(t,"addEventListener",(function(t){return function(e,r,i){if("click"===e||"keypress"==e)try{var o,a=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=a[e]=a[e]||{refCount:0};s.handler||(o=m(n),s.handler=o,t.call(this,e,o,i)),s.refCount+=1}catch(t){}return t.call(this,e,r,i)}})),Object(p.d)(t,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[e];o&&(--o.refCount,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))})));break;case"xhr":"XMLHttpRequest"in d&&(i=XMLHttpRequest.prototype,Object(p.d)(i,"open",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,i=e[1],o=r.__sentry_xhr__={method:Object(c.k)(e[0])?e[0].toUpperCase():e[0],url:e[1]}
16,a=(Object(c.k)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0),function(){if(4===r.readyState){try{o.status_code=r.status}catch(t){}y("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}});return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?Object(p.d)(r,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return a(),t.apply(r,e)}})):r.addEventListener("readystatechange",a),t.apply(r,e)}})),Object(p.d)(i,"send",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),y("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}})));break;case"fetch":Object(l.d)()&&Object(p.d)(d,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:function(t){return void 0===t&&(t=[]),"Request"in d&&Object(c.g)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}(e),url:function(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in d&&Object(c.g)(t[0],Request)?t[0].url:String(t[0])}(e)},startTimestamp:Date.now()};return y("fetch",Object(a.a)({},r)),t.apply(d,e).then((function(t){return y("fetch",Object(a.a)(Object(a.a)({},r),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw y("fetch",Object(a.a)(Object(a.a)({},r),{endTimestamp:Date.now(),error:t})),t}))}}));break;case"history":Object(l.c)()&&(e=d.onpopstate,d.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=d.location.href;if(y("history",{from:r,to:r=i}),e)try{return e.apply(this,t)}catch(t){}},Object(p.d)(d.history,"pushState",o),Object(p.d)(d.history,"replaceState",o));break;case"error":v=d.onerror,d.onerror=function(t,e,n,r,i){return y("error",{column:r,error:i,line:n,msg:t,url:e}),!!v&&v.apply(this,arguments)};break;case"unhandledrejection":_=d.onunhandledrejection,d.onunhandledrejection=function(t){return y("unhandledrejection",t),!_||_.apply(this,arguments)};break;default:u.b.warn("unknown instrumentation type:",t)}function o(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i,o=2<e.length?e[2]:void 0;return o&&(i=r,o=String(o),y("history",{from:i,to:r=o})),t.apply(this,e)}}}(t)}function y(t,e){var n,r;if(t&&h[t])try{for(var i=Object(a.f)(h[t]||[]),o=i.next();!o.done;o=i.next()){var c=o.value;try{c(e)}catch(e){Object(s.b)()&&u.b.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Object(f.a)(c)+"\nError: "+e)}}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function m(t,e){return void 0===e&&(e=!1),function(n){var r;n&&o!==n&&!function(t){if("keypress"===t.type){try{var e=t.target;if(!e||!e.tagName)return 1;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return}catch(t){}return 1}}(n)&&(r="keypress"===n.type?"input":n.type,void 0!==i&&!function(t,e){if(!t)return 1;if(t.type!==e.type)return 1;try{if(t.target!==e.target)return 1}catch(t){}}(o,n)||(t({event:n,name:r,global:e}),o=n),clearTimeout(i),i=d.setTimeout((function(){i=void 0}),1e3))}}var v=null,_=null},,,function(t,e,n){t.exports=n(44)},function(t,e){var n,r;t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var s,c=[],u=!1,p=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):p=-1,c.length&&l())}function l(){if(!u){for(var t=a(f),e=(u=!0,c.length);e;){for(s=c,c=[];++p<e;)s&&s[p].run();p=-1,e=c.length}s=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function h(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||u||a(l)},d.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,n){"use strict";(function(e){ 17/*! 18 * shallow-clone <https://github.com/jonschlinkert/shallow-clone> 19 * 20 * Copyright (c) 2015-present, Jon Schlinkert. 21 * Released under the MIT License. 22 */ 23const r=Symbol.prototype.valueOf,i=n(28);t.exports=function(t,n){switch(i(t)){case"array":return t.slice();case"object":return Object.assign({},t);case"date":return new t.constructor(Number(t));case"map":return new Map(t);case"set":return new Set(t);case"buffer":return s=(a=t).length,s=e.allocUnsafe?e.allocUnsafe(s):e.from(s),a.copy(s),s;case"symbol":return a=t,r?Object(r.call(a)):{};case"arraybuffer":return o=new(s=t).constructor(s.byteLength),new Uint8Array(o).set(new Uint8Array(s)),o;case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return new t.constructor(t.buffer,t.byteOffset,t.length);case"regexp":{const e=void 0!==(o=t).flags?o.flags:/\w+$/.exec(o)||void 0,n=new o.constructor(o.source,e);return n.lastIndex=o.lastIndex,n}case"error":return Object.create(t);default:return t}var o,a,s}}).call(this,n(38).Buffer)},function(t,e,n){"use strict";(function(t){ 24/*! 25 * The buffer module from node.js, for the browser. 26 * 27 * @author Feross Aboukhadijeh <http://feross.org> 28 * @license MIT 29 */ 30var r=n(39),i=n(40),o=n(41);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(t=null===t?new c(e):t).length=e,t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"!=typeof t)return u(this,t,e,n);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var i=t,a=e,u=n;if(a.byteLength,u<0||a.byteLength<u)throw new RangeError("'offset' is out of bounds");if(a.byteLength<u+(r||0))throw new RangeError("'length' is out of bounds");return a=void 0===u&&void 0===r?new Uint8Array(a):void 0===r?new Uint8Array(a,u):new Uint8Array(a,u,r),c.TYPED_ARRAY_SUPPORT?(i=a).__proto__=c.prototype:i=l(i,a),i}if("string"==typeof e){if(u=t,r=e,a=n,!c.isEncoding(a="string"!=typeof a||""===a?"utf8":
vendor: 18,305 bytes, line 30
30a))throw new TypeError('"encoding" must be a valid string encoding');return(r=(u=s(u,i=0|h(r,a))).write(r,a))!==i?u.slice(0,r):u}if(n=t,r=e,c.isBuffer(r))return 0===(n=s(n,t=0|d(r.length))).length||r.copy(n,0,0,t),n;if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||function(t){return t!=t}(r.length)?s(n,0):l(n,r);if("Buffer"===r.type&&o(r.data))return l(n,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(p(e),t=s(t,e<0?0:0|d(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function h(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var n=(t="string"!=typeof t?""+t:t).length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return P(t).length;default:if(r)return I(t).length;e=(""+e).toLowerCase(),r=!0}}function b(t,e,n){var i,o=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var a=e,s=n,c=this.length;(!s||s<0||c<s)&&(s=c);for(var u="",p=a=!a||a<0?0:a;p<s;++p)u+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(this[p]);return u;case"utf8":case"utf-8":return O(this,e,n);case"ascii":c=e;var f=n,l="";f=Math.min(this.length,f);for(var d=c;d<f;++d)l+=String.fromCharCode(127&this[d]);return l;case"latin1":case"binary":a=e;var h=n,b="";h=Math.min(this.length,h);for(var g=a;g<h;++g)b+=String.fromCharCode(this[g]);return b;case"base64":return i=this,m=n,0===(y=e)&&m===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(y,m));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var y=e,m=n,v=this.slice(y,m),_="",j=0;j<v.length;j+=2)_+=String.fromCharCode(v[j]+256*v[j+1]);return _;default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,(n=(n=isNaN(n)?i?0:t.length-1:n)<0?t.length+n:n)>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(i?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o=1,a=t.length,s=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a/=o=2,s/=2,n/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i)for(var u=-1,p=n;p<a;p++)if(c(t,p)===c(e,-1===u?0:p-u)){if(p-(u=-1===u?p:u)+1===s)return u*o}else-1!==u&&(p-=p-u),u=-1;else for(p=n=a<n+s?a-s:n;0<=p;p--){for(var f=!0,l=0;l<s;l++)if(c(t,p+l)!==c(e,l)){f=!1;break}if(f)return p}return-1}function v(t,e,n,r){return C(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function _(t,e,n,r){return C(function(t,e){for(var n,r,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,r%=256,i.push(r),i.push(n);return i}(e,t.length-n),t,n,r)}function O(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,c,u=t[i],p=null,f=239<u?4:223<u?3:191<u?2:1;if(i+f<=n)switch(f){case 1:u<128&&(p=u);break;case 2:128==(192&(o=t[i+1]))&&127<(c=(31&u)<<6|63&o)&&(p=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&2047<(c=(15&u)<<12|(63&o)<<6|63&a)&&(c<55296||57343<c)&&(p=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)&&c<1114112&&(p=c)}null===p?(p=65533,f=1):65535<p&&(p-=65536,r.push(p>>>10&1023|55296),p=56320|1023&p),r.push(p),i+=f}var l=r,d=l.length;if(d<=j)return String.fromCharCode.apply(String,l);for(var h="",b=0;b<d;)h+=String.fromCharCode.apply(String,l.slice(b,b+=j));return h}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return r=null,e=e,n=n,p(t=t),t<=0||void 0===e?s(r,t):"string"==typeof n?s(r,t).fill(e,n):s(r,t).fill(e);var r},c.allocUnsafe=function(t){return f(null,t)},c.allocUnsafeSlow=function(t){return f(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);if(void 0===e)for(i=e=0;i<t.length;++i)e+=t[i].length;for(var n=c.allocUnsafe(e),r=0,i=0;i<t.length;++i){var a=t[i];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?O(this,0,t):b.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=e)return 0;if(i<=r)return-1;if(n<=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),p=t.slice(e,n),f=0;f<s;++f)if(u[f]!==p[f]){o=u[f],a=p[f];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||i<n)&&(n=i),0<t.length&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o,a,s,c=!1;;)switch(r){case"hex":var u=t,p=e,f=n,l=(p=Number(p)||0,this.length-p);if((!f||l<(f=Number(f)))&&(f=l),(l=u.length)%2!=0)throw new TypeError("Invalid hex string");l/2<f&&(f=l/2);for(var d=0;d<f;++d){var h=parseInt(u.substr(2*d,2),16);if(isNaN(h))return d;this[p+d]=h}return d;case"utf8":case"utf-8":return l=e,s=n,C(I(t,(a=this).length-l),a,l,s);case"ascii":return v(this,t,e,n);case"latin1":case"binary":return v(this,t,e,n);case"base64":return a=this,s=e,o=n,C(P(t),a,s,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,n);default:if(c)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),c=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function w(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(n<t+e)throw new RangeError("Trying to access beyond buffer length")}function S(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<e||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function E(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function T(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function x(t,e,n,r){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(t,e,n,r,o){return o||x(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function R(t,e,n,r,o){return o||x(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,e)).__proto__=c.prototype;else for(var r=e-t,i=new c(r,void 0),o=0;o<r;++o)i[o]=this[o+t];return i},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=this[t+--e],i=1;0<e&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||w(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||w(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||w(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||w(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=e,i=1,o=this[t+--r];0<r&&(i*=256);)o+=this[t+--r]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||w(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){return e||w(t,2,this.length),32768&(e=this[t]|this[t+1]<<8)?4294901760|e:e},c.prototype.readInt16BE=function(t,e){return e||w(t,2,this.length),32768&(e=this[t+1]|this[t]<<8)?4294901760|e:e},c.prototype.readInt32LE=function(t,e){return e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||w(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||w(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||w(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||w(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||S(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||S(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;0<=--i&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):E(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):E(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):T(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){t=+t,e|=0,r||S(this,t,e,n,(r=Math.pow(2,8*n-1))-1,-r);var i=0,o=1,a=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){t=+t,e|=0,r||S(this,t,e,n,(r=Math.pow(2,8*n-1))-1,-r);var i=n-1,o=1,a=0;for(this[e+i]=255&t;0<=--i&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):E(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):E(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):T(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||S(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return R(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return R(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n=n||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0<r&&r<n?n:r)===n)return 0;if(0===t.length||0===this.length)return 0;if((e=e||0)<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var i,o=(r=t.length-e<r-n?t.length-e+n:r)-n;if(this===t&&n<e&&e<r)for(i=o-1;0<=i;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){var i;if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1!==t.length||(i=t.charCodeAt(0))<256&&(t=i),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;if(e>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(t=t||0))for(s=e;s<n;++s)this[s]=t;else for(var o=c.isBuffer(t)?t:I(new c(t,r).toString()),a=o.length,s=0;s<n-e;++s)this[s+e]=o[s%a];return this};var A=/[^+\/0-9A-Za-z-_]/g;function I(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a<r;++a){if(55295<(n=t.charCodeAt(a))&&n<57344){if(!i){if(56319<n){-1<(e-=3)&&o.push(239,191,189);continue}if(a+1===r){-1<(e-=3)&&o.push(239,191,189);continue}i=n;continue}if(n<56320){-1<(e-=3)&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(e-=3)&&o.push(239,191,189);if(i=null,n<128){if(--e<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function P(t){return r.toByteArray(function(t){var e;if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(A,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function C(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(22))},function(t,e,n){"use strict";e.byteLength=function(t){return 3*((t=u(t))[0]+(t=t[1]))/4-t},e.toByteArray=function(t){var e,n,r=(a=u(t))[0],a=a[1],s=new o(function(t,e){return 3*(t+e)/4-e}(r,a)),c=0,p=0<a?r-4:r;
30for(n=0;n<p;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],s[c++]=e>>16&255,s[c++]=e>>8&255,s[c++]=255&e;return 2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,s[c++]=255&e),1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,s[c++]=e>>8&255,s[c++]=255&e),s},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(t,e,n){for(var i,o=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(function(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}(i));return o.join("")}(t,a,s<a+16383?s:a+16383));return 1==i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2==i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");return e=(t=-1===(t=t.indexOf("="))?e:t)===e?0:4-t%4,[t,e]}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){ 31/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ 32e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,p=-7,f=n?i-1:0,l=n?-1:1;i=t[e+f];for(f+=l,o=i&(1<<-p)-1,i>>=-p,p+=s;0<p;o=256*o+t[e+f],f+=l,p-=8);for(a=o&(1<<-p)-1,o>>=-p,p+=r;0<p;a=256*a+t[e+f],f+=l,p-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(i?-1:1);a+=Math.pow(2,r),o-=u}return(i?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,c=8*o-i-1,u=(1<<c)-1,p=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:o-1,d=r?1:-1;o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(e+=1<=a+p?f/r:f*Math.pow(2,1-p))*r&&(a++,r/=2),u<=a+p?(s=0,a=u):1<=a+p?(s=(e*r-1)*Math.pow(2,i),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,i),a=0));8<=i;t[n+l]=255&s,l+=d,s/=256,i-=8);for(a=a<<i|s,c+=i;0<c;t[n+l]=255&a,l+=d,a/=256,c-=8);t[n+l-d]|=128*o}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict"; 33/*! 34 * is-plain-object <https://github.com/jonschlinkert/is-plain-object> 35 * 36 * Copyright (c) 2014-2017, Jon Schlinkert. 37 * Released under the MIT License. 38 */var r=n(43);function i(t){return!0===r(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){return!1!==i(t)&&"function"==typeof(t=t.constructor)&&!1!==i(t=t.prototype)&&!1!==t.hasOwnProperty("isPrototypeOf")}},function(t,e,n){"use strict"; 39/*! 40 * isobject <https://github.com/jonschlinkert/isobject> 41 * 42 * Copyright (c) 2014-2017, Jon Schlinkert. 43 * Released under the MIT License. 44 */t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,e,n){"use strict";n.r(e);e={};var r,i=(n.r(e),n.d(e,"FunctionToString",(function(){return s})),n.d(e,"InboundFilters",(function(){return g})),{}),o=(n.r(i),n.d(i,"Express",(function(){return ge})),n.d(i,"Postgres",(function(){return _e})),n.d(i,"Mysql",(function(){return je})),n.d(i,"Mongo",(function(){return Te})),n.d(i,"BrowserTracing",(function(){return Ge})),n(0)),a=n(6),s=(c.prototype.setupOnce=function(){r=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(a.e)(this)||this;return r.apply(n,t)}},c.id="FunctionToString",c);function c(){this.name=c.id}var u=n(21),p=n(17),f=n(10),l=n(3),d=n(25),h=n(13),b=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],g=(y.prototype.setupOnce=function(){Object(u.b)((function(t){var e=Object(p.b)();if(!e)return t;var n=e.getIntegration(y);return n?(e=(e=e.getClient())?e.getOptions():{},e="function"==typeof n._mergeOptions?n._mergeOptions(e):{},"function"==typeof n._shouldDropEvent&&n._shouldDropEvent(t,e)?null:t):t}))},y.prototype._shouldDropEvent=function(t,e){return this._isSentryError(t,e)?(Object(f.b)()&&l.b.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(d.d)(t)),!0):this._isIgnoredError(t,e)?(Object(f.b)()&&l.b.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(d.d)(t)),!0):this._isDeniedUrl(t,e)?(Object(f.b)()&&l.b.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(d.d)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,e)&&(Object(f.b)()&&l.b.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(d.d)(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},y.prototype._isSentryError=function(t,e){if(!e.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1},y.prototype._isIgnoredError=function(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return e.ignoreErrors.some((function(e){return Object(h.a)(t,e)}))}
44))},y.prototype._isDeniedUrl=function(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;var n=this._getEventFilterUrl(t);return!!n&&e.denyUrls.some((function(t){return Object(h.a)(n,t)}))},y.prototype._isAllowedUrl=function(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;var n=this._getEventFilterUrl(t);return!n||e.allowUrls.some((function(t){return Object(h.a)(n,t)}))},y.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:Object(o.e)(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:Object(o.e)(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:Object(o.e)(this._options.ignoreErrors||[],t.ignoreErrors||[],b),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},y.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=void 0===n?"":n,i=e.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(e){return Object(f.b)()&&l.b.error("Cannot extract message for event "+Object(d.d)(t)),[]}return[]},y.prototype._getLastValidUrl=function(t){for(var e=(t=void 0===t?[]:t).length-1;0<=e;e--){var n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null},y.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace)return this._getLastValidUrl(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?this._getLastValidUrl(e):null}catch(e){return Object(f.b)()&&l.b.error("Cannot extract url for event "+Object(d.d)(t)),null}},y.id="InboundFilters",y);function y(t){this._options=t=void 0===t?{}:t,this.name=y.id}var m=n(5),v=n(18),_=n(32),O=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t});j=Error,Object(o.b)(S,j);var j,w=S;function S(t){var e=this.constructor,n=j.call(this,t)||this;return n.message=t,n.name=e.prototype.constructor.name,O(n,e.prototype),n}var E=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function T(t,e){var n=t.host,r=t.path,i=t.pass,o=t.port,a=t.projectId;return t.protocol+"://"+t.publicKey+((e=void 0!==e&&e)&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r&&r+"/")+a}function x(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function k(t){var e=t=("string"==typeof t?function(t){if(!(e=E.exec(t)))throw new w("Invalid Sentry Dsn: "+t);var e=(t=Object(o.c)(e.slice(1),6))[0],n=t[1],r=void 0===(r=t[2])?"":r,i=t[3],a=void 0===(a=t[4])?"":a,s="",c=(t=t[5]).split("/");return 1<c.length&&(s=c.slice(0,-1).join("/"),t=c.pop()),!t||(c=t.match(/^\d+/))&&(t=c[0]),x({host:i,pass:r,path:s,projectId:t,port:a,protocol:e,publicKey:n})}:x)(t);if(Object(f.b)()){var n=e.port,r=e.projectId,i=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new w("Invalid Sentry Dsn: "+t+" missing")})),!r.match(/^\d+$/))throw new w("Invalid Sentry Dsn: Invalid projectId "+r);if("http"!==(r=i)&&"https"!==r)throw new w("Invalid Sentry Dsn: Invalid protocol "+i);if(n&&isNaN(parseInt(n,10)))throw new w("Invalid Sentry Dsn: Invalid port "+n)}return t}var R=n(4),A=n(16),I=[];function P(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}var C="Not capturing exception because it's already been captured.",N=(D.prototype.captureException=function(t,e,n){var r,i=this;if(!Object(d.c)(t))return r=e&&e.event_id,this._process(this._getBackend().eventFromException(t,e).then((function(t){return i._captureEvent(t,e,n)})).then((function(t){r=t}))),r;l.b.log(C)},D.prototype.captureMessage=function(t,e,n,r){var i=this,o=n&&n.event_id;e=Object(R.i)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(e.then((function(t){return i._captureEvent(t,n,r)})).then((function(t){o=t}))),o},D.prototype.captureEvent=function(t,e,n){var r;if(!(e&&e.originalException&&Object(d.c)(e.originalException)))return r=e&&e.event_id,this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r;l.b.log(C)},D.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?Object(f.b)()&&l.b.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):Object(f.b)()&&l.b.warn("SDK not enabled, will not capture session.")},D.prototype.getDsn=function(){return this._dsn},D.prototype.getOptions=function(){return this._options},D.prototype.getTransport=function(){return this._getBackend().getTransport()},D.prototype.flush=function(t){var e=this;
44return this._isClientDoneProcessing(t).then((function(n){return e.getTransport().close(t).then((function(t){return n&&t}))}))},D.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},D.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=function(t){var e,n,r={};return e=(t=t).defaultIntegrations&&Object(o.e)(t.defaultIntegrations)||[],n=t.integrations,t=Object(o.e)(P(e)),Array.isArray(n)?t=Object(o.e)(t.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),P(n)):"function"==typeof n&&(t=n(t),t=Array.isArray(t)?t:[t]),-1!==(e=t.map((function(t){return t.name}))).indexOf("Debug")&&t.push.apply(t,Object(o.e)(t.splice(e.indexOf("Debug"),1))),t.forEach((function(t){r[t.name]=t,t=t,-1===I.indexOf(t.name)&&(t.setupOnce(u.b,p.b),I.push(t.name),l.b.log("Integration installed: "+t.name))})),Object(a.a)(r,"initialized",!0),r}(this._options))},D.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return l.b.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},D.prototype._updateSessionFromEvent=function(t,e){var n,r,i=!1,a=!1;if(e=e.exception&&e.exception.values){a=!0;try{for(var s=Object(o.f)(e),c=s.next();!c.done;c=s.next()){var u=c.value.mechanism;if(u&&!1===u.handled){i=!0;break}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}((e="ok"===t.status)&&0===t.errors||e&&i)&&(t.update(Object(o.a)(Object(o.a)({},i&&{status:"crashed"}),{errors:t.errors||Number(a||i)})),this.captureSession(t))},D.prototype._sendSession=function(t){this._getBackend().sendSession(t)},D.prototype._isClientDoneProcessing=function(t){var e=this;return new v.a((function(n){var r=0,i=setInterval((function(){0==e._numProcessing?(clearInterval(i),n(!0)):(r+=1,t&&t<=r&&(clearInterval(i),n(!1)))}),1)}))},D.prototype._getBackend=function(){return this._backend},D.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},D.prototype._prepareEvent=function(t,e,n){var r=this,i=void 0===(a=this.getOptions().normalizeDepth)?3:a,a=Object(o.a)(Object(o.a)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:Object(d.g)()),timestamp:t.timestamp||Object(A.b)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a),t=e,n&&n.captureContext&&(t=u.a.clone(t).update(n.captureContext)),e=Object(v.c)(a);return(e=t?t.applyToEvent(a,n):e).then((function(t){return"number"==typeof i&&0<i?r._normalizeEvent(t,i):t}))},D.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)(Object(o.a)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return Object(o.a)(Object(o.a)({},t),t.data&&{data:Object(a.g)(t.data,e)})}))}),t.user&&{user:Object(a.g)(t.user,e)}),t.contexts&&{contexts:Object(a.g)(t.contexts,e)}),t.extra&&{extra:Object(a.g)(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),t.sdkProcessingMetadata=Object(o.a)(Object(o.a)({},t.sdkProcessingMetadata),{baseClientNormalized:!0}),n},D.prototype._applyClientOptions=function(t){var e,n=(e=this.getOptions()).environment,r=e.release,i=e.dist,o=void 0===(o=e.maxValueLength)?250:o;(n=((e=("environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=Object(h.d)(t.message,o)),t.exception&&t.exception.values&&t.exception.values[0]))&&e.value&&(e.value=Object(h.d)(e.value,o)),t.request))&&n.url&&(n.url=Object(h.d)(n.url,o))},D.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);0<e.length&&(t.sdk=t.sdk||{},t.sdk.integrations=Object(o.e)(t.sdk.integrations||[],e))},D.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},D.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){l.b.error(t)}))},D.prototype._processEvent=function(t,e,n){var r=this,i=(o=this.getOptions()).beforeSend,o=o.sampleRate,a=this.getTransport();function s(t,e){a.recordLostEvent&&a.recordLostEvent(t,e)}if(!this._isEnabled())return Object(v.b)(new w("SDK not enabled, will not capture event."));var c="transaction"===t.type;return!c&&"number"==typeof o&&Math.random()>o?(s("sample_rate","event"),Object(v.b)(new w("Discarding event because it's not included in the random sample (sampling rate = "+o+")"))):this._prepareEvent(t,n,e).then((function(n){if(null===n)throw s("event_processor",t.type||"event"),new w("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||c||!i)return n;n=i(n,e);var r="`beforeSend` method has to return `null` or a valid event.";if(Object(R.m)(n))return n.then((function(t){if(!Object(R.h)(t)&&null!==t)throw new w(r);return t}),(function(t){throw new w("beforeSend rejected with "+t)}));if(!Object(R.h)(n)&&null!==n)throw new w(r);return n})).then((function(e){if(null===e)throw s("before_send",t.type||"event"),new w("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!c&&i&&r._updateSessionFromEvent(i,e),r._sendEvent(e),e})).then(null,(function(t){if(t instanceof w)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new w("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},D.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return--e._numProcessing,t}),(function(t){return--e._numProcessing,t}))},D);function D(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),(this._options=e).dsn&&(this._dsn=k(e.dsn))}M.prototype.sendEvent=function(t){return Object(v.c)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},M.prototype.close=function(t){return Object(v.c)(!0)};var L=M;function M(){}q.prototype.eventFromException=function(t,e){throw new w("Backend has to implement `eventFromException` method")},q.prototype.eventFromMessage=function(t,e,n){throw new w("Backend has to implement `eventFromMessage` method")},q.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){Object(f.b)()&&l.b.error("Error while sending event: "+t)}))},q.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){Object(f.b)()&&l.b.error("Error while sending session: "+t)})):Object(f.b)()&&l.b.warn("Dropping session because custom transport doesn't implement sendSession")},q.prototype.getTransport=function(){return this._transport},q.prototype._setupTransport=function(){return new L};var U,B=q;function q(t){this._options=t,this._options.dsn||l.b.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}var Y=[(gt=U=U||{}).Fatal="fatal",gt.Error="error",gt.Warning="warning",gt.Log="log",gt.Info="info",gt.Debug="debug",gt.Critical="critical"],F=n(26),H="?",z=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,W=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,J=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,G=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,X=/\((\S*)(?::(\d+))(?::(\d+))\)/,$=/Minified React error #\d+;/i;function K(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:$.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=t.stacktrace.split("\n"),o=[],a=0;a<i.length;a+=2){var s=null;(e=n.exec(i[a]))?s={url:e[2],func:e[3],args:[],line:+e[1],column:null}
44:(e=r.exec(i[a]))&&(s={url:e[6],func:e[3]||e[4],args:e[5]?e[5].split(","):[],line:+e[1],column:+e[2]}),s&&(!s.func&&s.line&&(s.func=H),o.push(s))}return o.length?{message:Z(t),name:t.name,stack:o}:null}(t))return Q(e,n)}catch(t){}try{if(e=function(t){if(!t||!t.stack)return null;for(var e,n,r,i=[],a=t.stack.split("\n"),s=0;s<a.length;++s){if(n=z.exec(a[s])){var c=n[2]&&0===n[2].indexOf("native"),u=(n[2]&&0===n[2].indexOf("eval")&&(e=X.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2]),p=n[1]||H;p=(r=Object(o.c)(V(p,u),2))[0],r={url:u=r[1],func:p,args:c?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=J.exec(a[s]))r={url:n[2],func:n[1]||H,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=W.exec(a[s])))continue;n[3]&&-1<n[3].indexOf(" > eval")&&(e=G.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==s||n[5]||void 0===t.columnNumber||(i[0].column=t.columnNumber+1),u=n[3],p=n[1]||H,p=(c=Object(o.c)(V(p,u),2))[0],r={url:u=c[1],func:p,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=H),i.push(r)}return i.length?{message:Z(t),name:t.name,stack:i}:null}(t))return Q(e,n)}catch(t){}return{message:Z(t),name:t&&t.name,stack:[],failed:!0}}var V=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:H,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function Q(t,e){try{return Object(o.a)(Object(o.a)({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function Z(t){return(t=t&&t.message)?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function tt(t){var e=nt(t.stack);t={type:t.name,value:t.message};return e&&e.length&&(t.stacktrace={frames:e}),void 0===t.type&&""===t.value&&(t.value="Unrecoverable error caught"),t}function et(t){return{exception:{values:[tt(t)]}}}function nt(t){if(!t||!t.length)return[];var e=t,n=(t=e[0].func||"",e[e.length-1].func||"");return-1===t.indexOf("captureMessage")&&-1===t.indexOf("captureException")||(e=e.slice(1)),(e=-1!==n.indexOf("sentryWrapped")?e.slice(0,-1):e).slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function rt(t,e,n){var r,i,s,c;return void 0===n&&(n={}),Object(R.e)(t)&&t.error?et(K(t=t.error)):Object(R.a)(t)||Object(R.b)(t)?("stack"in(s=t)?r=et(K(t)):(i=s.name||(Object(R.a)(s)?"DOMError":"DOMException"),r=it(i=s.message?i+": "+s.message:i,e,n),Object(d.b)(r,i)),"code"in s&&(r.tags=Object(o.a)(Object(o.a)({},r.tags),{"DOMException.code":""+s.code})),r):Object(R.d)(t)?et(K(t)):(Object(R.h)(t)||Object(R.f)(t)?(i=t,s=e,c=n.isRejection,c={exception:{values:[{type:Object(R.f)(i)?i.constructor.name:c?"UnhandledRejection":"Error",value:"Non-Error "+(c?"promise rejection":"exception")+" captured with keys: "+Object(a.c)(i)}]},extra:{__serialized__:Object(a.h)(i)}},s&&(i=nt(K(s).stack),c.stacktrace={frames:i}),r=c):(r=it(t,e,n),Object(d.b)(r,""+t,void 0)),Object(d.a)(r,{synthetic:!0}),r)}function it(t,e,n){return t={message:t},(n=void 0===n?{}:n).attachStacktrace&&e&&(n=nt(K(e).stack),t.stacktrace={frames:n}),t}function ot(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"}function at(t,e){return""+ot(t)+t.projectId+"/"+e+"/"}function st(t){return Object(a.i)({sentry_key:t.publicKey,sentry_version:"7"})}function ct(t){return function(t){return at(t,"store")}(t)+"?"+st(t)}function ut(t,e){return e||at(t,"envelope")+"?"+st(t)}function pt(t){if(t.metadata&&t.metadata.sdk)return{name:(t=t.metadata.sdk).name,version:t.version}}var ft,lt=Object(m.a)();function dt(){if(ft)return ft;if(Object(F.a)(lt.fetch))return ft=lt.fetch.bind(lt);var t=lt.document,e=lt.fetch;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe"),r=(n.hidden=!0,t.head.appendChild(n),n.contentWindow);r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){Object(f.b)()&&l.b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return ft=e.bind(lt)}function ht(t){return"event"===t?"error":t}var bt=Object(m.a)(),gt=(yt.prototype.sendEvent=function(t){return this._sendRequest(function(t,e){var n=pt(e),r=t.type||"event",i="transaction"===r||!!e.tunnel,s=(c=(t.sdkProcessingMetadata||{}).transactionSampling||{}).method,c=c.rate;f=t,(p=e.metadata.sdk)&&(f.sdk=f.sdk||{},f.sdk.name=f.sdk.name||p.name,f.sdk.version=f.sdk.version||p.version,f.sdk.integrations=Object(o.e)(f.sdk.integrations||[],p.integrations||[]),f.sdk.packages=Object(o.e)(f.sdk.packages||[],p.packages||[])),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0),delete t.sdkProcessingMetadata;try{u=JSON.stringify(t)}catch(e){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=e;try{u=JSON.stringify(Object(a.g)(t))}catch(t){var u=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:t.message,stack:t.stack}})}}var p,f={body:u,type:r,url:i?ut(e.dsn,e.tunnel):ct(e.dsn)};return i&&(p=JSON.stringify(Object(o.a)(Object(o.a)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:T(e.dsn)}))+"\n"+JSON.stringify({type:r,sample_rates:[{id:s,rate:c}]})+"\n"+f.body,f.body=p),f}(t,this._api),t)},yt.prototype.sendSession=function(t){return this._sendRequest((e
44=t,r=pt(n=this._api),i="aggregates"in e?"sessions":"session",{body:(r=JSON.stringify(Object(o.a)(Object(o.a)({sent_at:(new Date).toISOString()},r&&{sdk:r}),!!n.tunnel&&{dsn:T(n.dsn)})))+"\n"+JSON.stringify({type:i})+"\n"+JSON.stringify(e),type:i,url:ut(n.dsn,n.tunnel)}),t);var e,n,r,i},yt.prototype.close=function(t){return this._buffer.drain(t)},yt.prototype.recordLostEvent=function(t,e){this.options.sendClientReports&&(e=ht(e)+":"+t,l.b.log("Adding outcome: "+e),this._outcomes[e]=(null!=(t=this._outcomes[e])?t:0)+1)},yt.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){l.b.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e,n,r=ut(this._api.dsn,this._api.tunnel),i=JSON.stringify(Object(o.a)({},this._api.tunnel&&{dsn:T(this._api.dsn)}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:Object(A.b)(),discarded_events:Object.keys(t).map((function(e){var n=Object(o.c)(e.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:t[e]}}))});try{e=r,n=i,"[object Navigator]"===Object.prototype.toString.call(lt&<.navigator)&&"function"==typeof lt.navigator.sendBeacon?lt.navigator.sendBeacon.bind(lt.navigator)(e,n):Object(F.b)()&&dt()(e,{body:n,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(t){}))}catch(t){l.b.error(t)}}else l.b.log("No outcomes to flush")}},yt.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,i=t.resolve,o=(t=t.reject,200<=(o=n.status)&&o<300?"success":429===o?"rate_limit":400<=o&&o<500?"invalid":500<=o?"failed":"unknown");this._handleRateLimit(r)&&Object(f.b)()&&l.b.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!=o?t(n):i({status:o})},yt.prototype._disabledUntil=function(t){return t=ht(t),this._rateLimits[t]||this._rateLimits.all},yt.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},yt.prototype._handleRateLimit=function(t){var e,n,r,i,a=Date.now(),s=t["x-sentry-rate-limits"];t=t["retry-after"];if(s){try{for(var c=Object(o.f)(s.trim().split(",")),u=c.next();!u.done;u=c.next()){var p=u.value.split(":",2),f=parseInt(p[0],10),l=1e3*(isNaN(f)?60:f);try{r=void 0;for(var h=Object(o.f)(p[1].split(";")),b=h.next();!b.done;b=h.next()){var g=b.value;this._rateLimits[g||"all"]=new Date(a+l)}}catch(t){r={error:t}}finally{try{b&&!b.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return!0}return!!t&&(this._rateLimits.all=new Date(a+Object(d.e)(a,t)),!0)},yt);function yt(t){var e,n,r=this;this.options=t,this._buffer=function(t){var e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return Object(v.b)(new w("Not adding Promise due to buffer limit reached."));var i=r();return-1===e.indexOf(i)&&e.push(i),i.then((function(){return n(i)})).then(null,(function(){return n(i).then(null,(function(){}))})),i},drain:function(t){return new v.a((function(n,r){var i=e.length;if(!i)return n(!0);var o=setTimeout((function(){t&&0<t&&n(!1)}),t);e.forEach((function(t){Object(v.c)(t).then((function(){--i||(clearTimeout(o),n(!0))}),r)}))}))}}}(30),this._rateLimits={},this._outcomes={},this._api=(e=t.dsn,n=t._metadata,t=t.tunnel,{initDsn:e,metadata:n||{},dsn:k(e),tunnel:t}),this.url=ct(this._api.dsn),this.options.sendClientReports&&bt.document&&bt.document.addEventListener("visibilitychange",(function(){"hidden"===bt.document.visibilityState&&r._flushOutcomes()}))}mt=gt,Object(o.b)(_t,mt),_t.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:Object(F.e)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new v.a((function(e,i){n._fetch(t.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:o,resolve:e,reject:i})}
44)).catch(i)}))})).then(void 0,(function(e){throw e instanceof w?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))};var mt,vt=_t;function _t(t,e){return void 0===e&&(e=dt()),(t=mt.call(this,t)||this)._fetch=e,t}Ot=gt,Object(o.b)(wt,Ot),wt.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new v.a((function(e,r){var i,o=new XMLHttpRequest;for(i in o.onreadystatechange=function(){var i;4===o.readyState&&(i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")},n._handleResponse({requestType:t.type,response:o,headers:i,resolve:e,reject:r}))},o.open("POST",t.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(t.body)}))})).then(void 0,(function(e){throw e instanceof w?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))};var Ot,jt=wt;function wt(){return null!==Ot&&Ot.apply(this,arguments)||this}St=B,Object(o.b)(Tt,St),Tt.prototype.eventFromException=function(t,e){return n=this._options,t=rt(t=t,(e=e)&&e.syntheticException||void 0,{attachStacktrace:n.attachStacktrace}),Object(d.a)(t),t.level=U.Error,e&&e.event_id&&(t.event_id=e.event_id),Object(v.c)(t);var n},Tt.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=U.Info),r=this._options,t=t,n=n,void 0===(e=e)&&(e=U.Info),(t=it(t,n&&n.syntheticException||void 0,{attachStacktrace:r.attachStacktrace})).level=e,n&&n.event_id&&(t.event_id=n.event_id),Object(v.c)(t);var r},Tt.prototype._setupTransport=function(){if(!this._options.dsn)return St.prototype._setupTransport.call(this);var t=Object(o.a)(Object(o.a)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return new(this._options.transport||(Object(F.b)()?vt:jt))(t)};var St,Et=Tt;function Tt(){return null!==St&&St.apply(this,arguments)||this}function xt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Object(p.b)();if(r&&r[t])return r[t].apply(r,Object(o.e)(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function kt(t,e){var n;try{throw new Error("Sentry syntheticException")}catch(t){n=t}return xt("captureException",t,{captureContext:e,originalException:t,syntheticException:n})}function Rt(t){xt("withScope",t)}var At=Object(m.a)(),It=0;function Pt(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{var r=t.__sentry_wrapped__;if(r)return r;if(Object(a.e)(t))return t}catch(e){return t}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(t){return Pt(t,e)}));return t.apply(this,i)}catch(t){throw It+=1,setTimeout((function(){--It})),Rt((function(n){n.addEventProcessor((function(t){return e.mechanism&&(Object(d.b)(t,void 0,void 0),Object(d.a)(t,e.mechanism)),t.extra=Object(o.a)(Object(o.a)({},t.extra),{arguments:r}),t})),kt(t)})),t}};try{for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=t[s])}catch(t){}Object(a.f)(i,t),Object(a.a)(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return t.name}})}catch(t){}return i}var Ct=n(24);function Nt(t){return"warn"===t?U.Warning:-1!==Y.indexOf(t)?t:U.Log}Lt.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&Object(p.b)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Object(d.d)(t)},{event:t})},Lt.prototype.setupOnce=function(){var t;this._options.console&&Object(_.a)("console",Mt),this._options.dom&&Object(_.a)("dom",(t=this._options.dom,function(e){var n,r="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=e.event.target?Object(Ct.b)(e.event.target,r):Object(Ct.b)(e.event,r)}catch(t){n="<unknown>"}0!==n.length&&Object(p.b)().addBreadcrumb({category:"ui."+e.name,message:n},{event:e.event,name:e.name,global:e.global})})),this._options.xhr&&Object(_.a)("xhr",Ut),this._options.fetch&&Object(_.a)("fetch",Bt),this._options.history&&Object(_.a)("history",qt)},Lt.id="Breadcrumbs";var Dt=Lt;function Lt(t){this.name=Lt.id,this._options=Object(o.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}function Mt(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:Nt(t.level),message:Object(h.b)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(Object(h.b)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}
44Object(p.b)().addBreadcrumb(e,{input:t.args,level:t.level})}function Ut(t){var e,n,r,i;t.endTimestamp&&(t.xhr.__sentry_own_request__||(e=(i=t.xhr.__sentry_xhr__||{}).method,n=i.url,r=i.status_code,i=i.body,Object(p.b)().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:i})))}function Bt(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?Object(p.b)().addBreadcrumb({category:"fetch",data:t.fetchData,level:U.Error,type:"http"},{data:t.error,input:t.args}):Object(p.b)().addBreadcrumb({category:"fetch",data:Object(o.a)(Object(o.a)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function qt(t){var e=Object(m.a)(),n=t.from,r=(t=t.to,e=Object(d.f)(e.location.href),Object(d.f)(n)),i=Object(d.f)(t);r.path||(r=e),e.protocol===i.protocol&&e.host===i.host&&(t=i.relative),e.protocol===r.protocol&&e.host===r.host&&(n=r.relative),Object(p.b)().addBreadcrumb({category:"navigation",data:{from:n,to:t}})}Yt=N,Object(o.b)(Ht,Yt),Ht.prototype.showReportDialog=function(t){void 0===t&&(t={}),Object(m.a)().document&&(this._isEnabled()?function(t){var e;void 0===t&&(t={}),At.document&&(t.eventId?t.dsn?((e=At.document.createElement("script")).async=!0,e.src=function(t,e){var n,r=ot(t=k(t))+"embed/error-page/",i="dsn="+T(t);for(n in e)"dsn"!==n&&("user"===n?e.user&&(e.user.name&&(i+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(i+="&email="+encodeURIComponent(e.user.email))):i+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return r+"?"+i}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad),(t=At.document.head||At.document.body)&&t.appendChild(e)):Object(f.b)()&&l.b.error("Missing dsn option in showReportDialog call"):Object(f.b)()&&l.b.error("Missing eventId option in showReportDialog call"))}(Object(o.a)(Object(o.a)({},t),{dsn:t.dsn||this.getDsn()})):l.b.error("Trying to call showReportDialog with Sentry Client disabled"))},Ht.prototype._prepareEvent=function(t,e,n){return t.platform=t.platform||"javascript",Yt.prototype._prepareEvent.call(this,t,e,n)},Ht.prototype._sendEvent=function(t){var e=this.getIntegration(Dt);e&&e.addSentryBreadcrumb(t),Yt.prototype._sendEvent.call(this,t)};var Yt,Ft=Ht;function Ht(t){return(t=void 0===t?{}:t)._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.17.2"}],version:"6.17.2"},Yt.call(this,Et,t)||this}var zt=n(20),Wt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];Jt.prototype.setupOnce=function(){var t=Object(m.a)();(t=(this._options.setTimeout&&Object(a.d)(t,"setTimeout",Gt),this._options.setInterval&&Object(a.d)(t,"setInterval",Gt),this._options.requestAnimationFrame&&Object(a.d)(t,"requestAnimationFrame",Xt),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&Object(a.d)(XMLHttpRequest.prototype,"send",$t),this._options.eventTarget))&&(Array.isArray(t)?t:Wt).forEach(Kt)},Jt.id="TryCatch",gt=Jt;function Jt(t){this.name=Jt.id,this._options=Object(o.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}function Gt(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=Pt(r,{mechanism:{data:{function:Object(zt.a)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function Xt(t){return function(e){return t.call(this,Pt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(zt.a)(t)},handled:!0,type:"instrument"}}))}}function $t(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((function(t){t in r&&"function"==typeof r[t]&&Object(a.d)(r,t,(function(e){var n={mechanism:{data:{function:t,handler:Object(zt.a)(e)},handled:!0,type:"instrument"}},r=Object(a.e)(e);return r&&(n.mechanism.data.handler=Object(zt.a)(r)),Pt(e,n)}))})),t.apply(this,e)}}function Kt(t){var e;(e=(e=Object(m.a)())[t]&&e[t].prototype)&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(Object(a.d)(e,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Pt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(zt.a)(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.call(this,n,Pt(r,{mechanism:{data:{function:"addEventListener",handler:Object(zt.a)(r),target:t},handled:!0,type:"instrument"}}),i)}})),Object(a.d)(e,"removeEventListener",(function(t){return function(e,n,r){try{var i=n&&n.__sentry_wrapped__;i&&t.call(this,e,i,r)}catch(t){}return t.call(this,e,n,r)}})))}Qt.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t,e,n=this._options;for(t in n){var r=this._installFunc[t];r&&n[t]&&(e=t,Object(f.b)()&&l.b.log("Global Handler attached: "+e),r(),this._installFunc[t]=void 0)}},Qt.id="GlobalHandlers";var Vt=Qt;function Qt(t){this.name=Qt.id,this._installFunc={onerror:Zt,onunhandledrejection:te},this._options=Object(o.a)({onerror:!0,onunhandledrejection:!0}
44,t)}function Zt(){Object(_.a)("error",(function(t){var e,n,r,i,a=(s=Object(o.c)(re(),2))[0],s=s[1];a.getIntegration(Vt)&&(e=t.msg,n=t.url,r=t.line,i=t.column,t=t.error,0<It||t&&t.__sentry_own_request__||ne(a,t,void 0===t&&Object(R.k)(e)?function(t,e,n,r){var i="Error",o=(t=Object(R.e)(t)?t.message:t).match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return o&&(i=o[1],t=o[2]),ee({exception:{values:[{type:i,value:t}]}},e,n,r)}(e,n,r,i):ee(rt(t||e,void 0,{attachStacktrace:s,isRejection:!1}),n,r,i),"onerror"))}))}function te(){Object(_.a)("unhandledrejection",(function(t){var e=(n=Object(o.c)(re(),2))[0],n=n[1];if(e.getIntegration(Vt)){var r=t;try{"reason"in t?r=t.reason:"detail"in t&&"reason"in t.detail&&(r=t.detail.reason)}catch(t){}if(0<It||r&&r.__sentry_own_request__)return!0;(t=Object(R.i)(r)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(r)}]}}:rt(r,void 0,{attachStacktrace:n,isRejection:!0})).level=U.Error,ne(e,r,t,"onunhandledrejection")}}))}function ee(t,e,n,r){var i=(i=(i=(i=(i=t.exception=t.exception||{}).values=i.values||[])[0]=i[0]||{}).stacktrace=i.stacktrace||{}).frames=i.frames||[];r=isNaN(parseInt(r,10))?void 0:r,n=isNaN(parseInt(n,10))?void 0:n,e=Object(R.k)(e)&&0<e.length?e:Object(Ct.a)();return 0===i.length&&i.push({colno:r,filename:e,function:"?",in_app:!0,lineno:n}),t}function ne(t,e,n,r){Object(d.a)(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function re(){var t=Object(p.b)(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}function ie(t){void 0===t&&(t={}),this.name=ie.id,this._key=t.key||"cause",this._limit=t.limit||5}function oe(){this.name=oe.id}function ae(t,e){var n=ue(t),r=ue(e);if(!n&&!r)return 1;if(!(n&&!r||!n&&r)&&r.length===n.length){for(var i=0;i<r.length;i++){var o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return}return 1}}function se(t,e){if(t=t.fingerprint,e=e.fingerprint,!t&&!e)return 1;if(!(t&&!e||!t&&e))try{return t.join("")===e.join("")}catch(t){return}}function ce(t){return t.exception&&t.exception.values&&t.exception.values[0]}function ue(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames}ie.prototype.setupOnce=function(){Object(u.b)((function(t,e){var n,r,i=Object(p.b)().getIntegration(ie);return i?(n=i._key,i=i._limit,(r=t).exception&&r.exception.values&&e&&Object(R.g)(e.originalException,Error)&&(i=function t(e,n,r,i){if(void 0===i&&(i=[]),!Object(R.g)(n[r],Error)||i.length+1>=e)return i;var a=K(n[r]);return a=tt(a),t(e,n[r],r,Object(o.e)([a],i))}(i,e.originalException,n),r.exception.values=Object(o.e)(i,r.exception.values)),r):t}))},ie.id="LinkedErrors",B=ie,oe.prototype.setupOnce=function(t,e){t((function(t){var n=e().getIntegration(oe);if(n){try{if(function(t,e){return!!e&&(!!function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&!!se(t,e)&&!!ae(t,e)))}(t,e)||!!function(t,e){var n=ce(e),r=ce(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&se(t,e)&&ae(t,e))}(t,e))}(t,n._previousEvent))return l.b.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return n._previousEvent=t}return n._previousEvent=t}return t}))},oe.id="Dedupe",N=oe;var pe=Object(m.a)(),fe=(le.prototype.setupOnce=function(){Object(u.b)((function(t){if(Object(p.b)().getIntegration(le)){if(!pe.navigator&&!pe.location&&!pe.document)return t;var e=t.request&&t.request.url||pe.location&&pe.location.href,n=(pe.document||{}).referrer,r=(pe.navigator||{}).userAgent;n=Object(o.a)(Object(o.a)(Object(o.a)({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),r=Object(o.a)(Object(o.a)({},e&&{url:e}),{headers:n});return Object(o.a)(Object(o.a)({},t),{request:r})}return t}))},le.id="UserAgent",le);function le(){this.name=le.id}var de=[new e.InboundFilters,new e.FunctionToString,new gt,new Dt,new Vt,new B,new N,new fe];function he(t){t.startSession({ignoreDuration:!0}),t.captureSession()}var be=n(12),ge=(ye.prototype.setupOnce=function(){var t,e;this._router?(t=this._router,(e=void 0===(e=this._methods)?[]:e).forEach((function(e){return i=(n=t)[r=e],n[r]=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return i.call.apply(i,Object(o.e)([this],(t=r,e.map((function(e){return"function"==typeof e?me(e,t):Array.isArray(e)?e.map((function(e){return"function"==typeof e?me(e,t):e})):e})))))},n;var n,r,i}))):l.b.error("ExpressIntegration is missing an Express instance")}
44,ye.id="Express",ye);function ye(t){void 0===t&&(t={}),this.name=ye.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}function me(t,e){var n=t.length;switch(n){case 2:return function(n,r){var i,o=r.__sentry_transaction;return o&&(i=o.startChild({description:t.name,op:"express.middleware."+e}),r.once("finish",(function(){i.finish()}))),t.call(this,n,r)};case 3:return function(n,r,i){var a=r.__sentry_transaction,s=null==a?void 0:a.startChild({description:t.name,op:"express.middleware."+e});t.call(this,n,r,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];null!=s&&s.finish(),i.call.apply(i,Object(o.e)([this],t))}))};case 4:return function(n,r,i,a){var s=i.__sentry_transaction,c=null==s?void 0:s.startChild({description:t.name,op:"express.middleware."+e});t.call(this,n,r,i,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];null!=c&&c.finish(),a.call.apply(a,Object(o.e)([this],t))}))};default:throw new Error("Express middleware takes 2-4 arguments. Got: "+n)}}var ve=n(7),_e=(Oe.prototype.setupOnce=function(t,e){var n,r=Object(ve.c)("pg");r?!this._usePgNative||null!==(n=r.native)&&void 0!==n&&n.Client?(n=(this._usePgNative?r.native:r).Client,Object(a.d)(n.prototype,"query",(function(t){return function(n,r,i){var o,a=null==(o=null==(o=e().getScope())?void 0:o.getSpan())?void 0:o.startChild({description:"string"==typeof n?n:n.text,op:"db"});return"function"==typeof i?t.call(this,n,r,(function(t,e){null!=a&&a.finish(),i(t,e)})):"function"==typeof r?t.call(this,n,(function(t,e){null!=a&&a.finish(),r(t,e)})):(o=void 0!==r?t.call(this,n,r):t.call(this,n),Object(R.m)(o)?o.then((function(t){return null!=a&&a.finish(),t})):(null!=a&&a.finish(),o))}}))):l.b.error("Postgres Integration was unable to access 'pg-native' bindings."):l.b.error("Postgres Integration was unable to require `pg` package.")},Oe.id="Postgres",Oe);function Oe(t){void 0===t&&(t={}),this.name=Oe.id,this._usePgNative=!!t.usePgNative}we.prototype.setupOnce=function(t,e){var n=Object(ve.c)("mysql/lib/Connection.js");n?Object(a.d)(n,"createQuery",(function(t){return function(n,r,i){var o,a=null==(o=null==(o=e().getScope())?void 0:o.getSpan())?void 0:o.startChild({description:"string"==typeof n?n:n.sql,op:"db"});return"function"==typeof i?t.call(this,n,r,(function(t,e,n){null!=a&&a.finish(),i(t,e,n)})):"function"==typeof r?t.call(this,n,(function(t,e,n){null!=a&&a.finish(),r(t,e,n)})):t.call(this,n,r,i)}})):l.b.error("Mysql Integration was unable to require `mysql` package.")},we.id="Mysql";var je=we;function we(){this.name=we.id}var Se=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],Ee={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},Te=(xe.prototype.setupOnce=function(t,e){var n=this._useMongoose?"mongoose":"mongodb",r=Object(ve.c)(n);r?this._instrumentOperations(r.Collection,this._operations,e):l.b.error("Mongo Integration was unable to require `"+n+"` package.")},xe.prototype._instrumentOperations=function(t,e,n){var r=this;e.forEach((function(e){return r._patchOperation(t,e,n)}))},xe.prototype._patchOperation=function(t,e,n){var r;e in t.prototype&&(r=this._getSpanContextFromOperationArguments.bind(this),Ob
44ject(a.d)(t.prototype,e,(function(t){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s,c,u=i[i.length-1],p=null==(p=n().getScope())?void 0:p.getSpan();if("function"!=typeof u||"mapReduce"===e&&2===i.length)return s=null==p?void 0:p.startChild(r(this,e,i)),c=t.call.apply(t,Object(o.e)([this],i)),Object(R.m)(c)?c.then((function(t){return null!=s&&s.finish(),t})):(null!=s&&s.finish(),c);var f=null==p?void 0:p.startChild(r(this,e,i.slice(0,-1)));return t.call.apply(t,Object(o.e)([this],i.slice(0,-1),[function(t,e){null!=f&&f.finish(),u(t,e)}]))}})))},xe.prototype._getSpanContextFromOperationArguments=function(t,e,n){var r={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},i=(t={op:"db",description:e,data:r},Ee[e]),a=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations;if(!i||!a)return t;try{if("mapReduce"===e){var s=Object(o.c)(n,2),c=s[0],u=s[1];r[i[0]]="string"==typeof c?c:c.name||"<anonymous>",r[i[1]]="string"==typeof u?u:u.name||"<anonymous>"}else for(var p=0;p<i.length;p++)r[i[p]]=JSON.stringify(n[p])}catch(t){}return t},xe.id="Mongo",xe);function xe(t){void 0===t&&(t={}),this.name=xe.id,this._operations=Array.isArray(t.operations)?t.operations:Se,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}e=n(14);var ke=n(2),Re=n(11),Ae=Object(m.a)(),Ie=function(t,e,n){var r;return function(i){0<=e.value&&(i||n)&&(e.delta=e.value-(r||0),!e.delta&&void 0!==r||(r=e.value,t(e)))}},Pe=function(t,e){return{name:t,value:null!=e?e:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},Ce=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(t){}},Ne=function(t,e){var n=function(r){"pagehide"!==r.type&&"hidden"!==Object(m.a)().document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},De=-1,Le=function(){return De<0&&(De="hidden"===Object(m.a)().document.visibilityState?0:1/0,Ne((function(t){t=t.timeStamp,De=t}),!0)),{get firstHiddenTime(){return De}}},Me={},Ue=Object(m.a)(),Be=(qe.prototype.addPerformanceEntries=function(t){var e,n,r,i,o,a,s,c=this;Ue&&Ue.performance&&Ue.performance.getEntries&&A.a&&(l.b.log("[Tracing] Adding & adjusting spans using Performance API"),e=Object(ke.d)(A.a),Ue.performance.getEntries().slice(this._performanceCursor).forEach((function(i){var o,a,s,u,p,f,d,h,b,g=Object(ke.d)(i.startTime),y=Object(ke.d)(i.duration);if(!("navigation"===t.op&&e+g<t.startTimestamp))switch(i.entryType){case"navigation":d=t,h=i,b=e,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(t){Ye(d,h,t,b)})),Ye(d,h,"secureConnection",b,"TLS/SSL","connectEnd"),Ye(d,h,"fetch",b,"cache","domainLookupStart"),Ye(d,h,"domainLookup",b,"DNS");var m=d,v=h,_=b;Fe(m,{op:"browser",description:"request",startTimestamp:_+Object(ke.d)(v.requestStart),endTimestamp:_+Object(ke.d)(v.responseEnd)}),Fe(m,{op:"browser",description:"response",startTimestamp:_+Object(ke.d)(v.responseStart),endTimestamp:_+Object(ke.d)(v.responseEnd)}),n=e+Object(ke.d)(i.responseStart),r=e+Object(ke.d)(i.requestStart);break;case"mark":case"paint":case"measure":m=function(t,e,n,r,i){return n=(i+=n)+r,Fe(t,{description:e.name,endTimestamp:n,op:e.entryType,startTimestamp:i}),i}(t,i,g,y,e),_=Le(),v=i.startTime<_.firstHiddenTime,"first-paint"===i.name&&v&&(l.b.log("[Measurements] Adding FP"),c._measurements.fp={value:i.startTime},c._measurements["mark.fp"]={value:m}),"first-contentful-paint"===i.name&&v&&(l.b.log("[Measurements] Adding FCP"),c._measurements.fcp={value:i.startTime},c._measurements["mark.fcp"]={value:m});break;case"resource":var O=i.name.replace(Ue.location.origin,"");o=t,O=O,s=g,u=y,p=e,"xmlhttprequest"!==(a=i).initiatorType&&"fetch"!==a.initiatorType&&(f={},"transferSize"in a&&(f["Transfer Size"]=a.transferSize),"encodedBodySize"in a&&(f["Encoded Body Size"]=a.encodedBodySize),"decodedBodySize"in a&&(f["Decoded Body Size"]=a.decodedBodySize),Fe(o,{description:O,endTimestamp:(o=p+s)+u,op:a.initiatorType?"resource."+a.initiatorType:"resource",startTimestamp:o,data:f}))}})),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(t),"pageload"===t.op&&(i=Object(ke.d)(A.a),"number"==typeof n&&(l.b.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(n-t.startTimestamp)},"number"==typeof r&&r<=n&&(this._measurements["ttfb.requestTime"]={value:1e3*(n-r)})),["fcp","fp","lcp"].forEach((function(e){var n,r;!c._measurements[e]||i>=t.startTimestamp||(n=c._measurements[e].value,r=i+Object(ke.d)(n),r=Math.abs(1e3*(r-t.startTimestamp)),l.b.log("[Measurements] Normalized "+e+" from "+n+" to "+r+" ("+(r-n)+")"),c._measurements[e].value=r)})),this._measurements["mark.fid"]&&this._measurements.fid&&Fe(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+Object(ke.d)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,t.setMeasurements(this._measurements),o=t,a=this._lcpEntry,s=this._clsEntry,a&&(l.b.log("[Measurements] Adding LCP Data"),a.element&&o.setTag("lcp.element",Object(Ct.b)(a.element)),a.id&&o.setTag("lcp.id",a.id),a.url&&o.setTag("lcp.url",a.url.trim().slice(0,200)),o.setTag("lcp.size",a.size)),s&&s.sources&&(l.b.log("[Measurements] Adding CLS Data"),s.sources.forEac
44h((function(t,e){return o.setTag("cls.source."+(e+1),Object(Ct.b)(t.node))}))),t.setTag("sentry_reportAllChanges",this._reportAllChanges)))},qe.prototype._trackNavigator=function(t){var e,n=Ue.navigator;n&&((e=n.connection)&&(e.effectiveType&&t.setTag("effectiveConnectionType",e.effectiveType),e.type&&t.setTag("connectionType",e.type),He(e.rtt)&&(this._measurements["connection.rtt"]={value:e.rtt}),He(e.downlink)&&(this._measurements["connection.downlink"]={value:e.downlink})),He(n.deviceMemory)&&t.setTag("deviceMemory",String(n.deviceMemory)),He(n.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(n.hardwareConcurrency)))},qe.prototype._trackCLS=function(){var t,e,n,r,i,o,a,s=this;t=function(t){var e=t.entries.pop();e&&(l.b.log("[Measurements] Adding CLS"),s._measurements.cls={value:t.value},s._clsEntry=e)},n=Pe("CLS",0),r=0,i=[],(a=Ce("layout-shift",o=function(t){var o,a;t&&!t.hadRecentInput&&(o=i[0],a=i[i.length-1],r&&0!==i.length&&t.startTime-a.startTime<1e3&&t.startTime-o.startTime<5e3?(r+=t.value,i.push(t)):(r=t.value,i=[t]),r>n.value&&(n.value=r,n.entries=i,e&&e()))}
44))&&(e=Ie(t,n,void 0),Ne((function(){a.takeRecords().map(o),e(!0)})))},qe.prototype._trackLCP=function(){var t,e,n,r,i,o,a,s,c=this;t=function(t){var e,n,r=t.entries.pop();r&&(e=Object(ke.d)(A.a),n=Object(ke.d)(r.startTime),l.b.log("[Measurements] Adding LCP"),c._measurements.lcp={value:t.value},c._measurements["mark.lcp"]={value:e+n},c._lcpEntry=r)},e=this._reportAllChanges,i=Le(),o=Pe("LCP"),(s=Ce("largest-contentful-paint",a=function(t){var e=t.startTime;e<i.firstHiddenTime&&(o.value=e,o.entries.push(t)),n&&n()}))&&(n=Ie(t,o,e),r=function(){Me[o.id]||(s.takeRecords().map(a),s.disconnect(),Me[o.id]=!0,n(!0))},["keydown","click"].forEach((function(t){addEventListener(t,r,{once:!0,capture:!0})})),Ne(r,!0))},qe.prototype._trackFID=function(){var t,e,n,r,i,o,a=this;t=function(t){var e,n=t.entries.pop();n&&(e=Object(ke.d)(A.a),n=Object(ke.d)(n.startTime),l.b.log("[Measurements] Adding FID"),a._measurements.fid={value:t.value},a._measurements["mark.fid"]={value:e+n})},n=Le(),r=Pe("FID"),(o=Ce("first-input",i=function(t){e&&t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),e(!0))}))&&(e=Ie(t,r,void 0),Ne((function(){o.takeRecords().map(i),o.disconnect()}),!0))},qe);function qe(t){this._reportAllChanges=t=void 0!==t&&t,this._measurements={},this._performanceCursor=0,!Object(ve.b)()&&Ue&&Ue.performance&&Ue.document&&(Ue.performance.mark&&Ue.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}function Ye(t,e,n,r,i,o){o=o?e[o]:e[n+"End"],(e=e[n+"Start"])&&o&&Fe(t,{op:"browser",description:null!=i?i:n,startTimestamp:r+Object(ke.d)(e),endTimestamp:r+Object(ke.d)(o)})}function Fe(t,e){var n=e.startTimestamp;e=Object(o.d)(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild(Object(o.a)({startTimestamp:n},e))}function He(t){return"number"==typeof t&&isFinite(t)}var ze={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};var We=Object(m.a)(),Je=Object(o.a)({idleTimeout:e.a,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(t,e,n){var r,i;void 0===e&&(e=!0),void 0===n&&(n=!0),We&&We.location?(r=We.location.href,e&&(i=t({name:We.location.pathname,op:"pageload"})),n&&Object(_.a)("history",(function(e){var n=e.to;void 0===(e=e.from)&&r&&-1!==r.indexOf(n)?r=void 0:e!==n&&(r=void 0,i&&(l.b.log("[Tracing] Finishing current transaction with op: "+i.op),i.finish()),i=t({name:We.location.pathname,op:"navigation"}))}))):l.b.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},ze),Ge=(Xe.prototype.setupOnce=function(t,e){var n=this,r=(e=(this._getCurrentHub=e,this._emitOptionsWarning&&(l.b.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),l.b.warn("[Tracing] We added a reasonable default for you: "+ze.tracingOrigins)),this.options)).routingInstrumentation,i=e.startTransactionOnLocationChange,a=e.startTransactionOnPageLoad,s=e.markBackgroundTransactions,c=e.traceFetch,u=e.traceXHR,p=e.tracingOrigins;e=e.shouldCreateSpanForRequest;r((function(t){return n._createRouteTransaction(t)}),a,i),s&&(Ae&&Ae.document?Ae.document.addEventListener("visibilitychange",(function(){var t=Object(ke.b)();Ae.document.hidden&&t&&(l.b.log("[Tracing] Transaction: "+"cancelled"+" -> since tab moved to the background, op: "+t.op),t.status||t.setStatus("cancelled"),t.setTag("visibilitychange","document.hidden"),t.setTag(Re.a,Re.b[2]),t.finish())})):l.b.warn("[Tracing] Could not set up background tab detection due to lack of global document")),function(t){var e=(t=Object(o.a)(Object(o.a)({},ze),t)).traceFetch,n=t.traceXHR,r=t.tracingOrigins,i=t.shouldCreateSpanForRequest,a={},s=function(t){if(a[t])return a[t];var e=r;return a[t]=e.some((function(e){return Object(h.a)(t,e)}))&&!Object(h.a)(t,"sentry_key"),a[t]},c=s,u=("function"==typeof i&&(c=function(t){return s(t)&&i(t)}),{});e&&Object(_.a)("fetch",(function(t){var e,n,r;t=t,e=c,n=u,Object(ke.c)()&&t.fetchData&&e(t.fetchData.url)&&(t.endTimestamp?(e=t.fetchData.__span)&&(r=n[e])&&(t.response?r.setHttpStatus(t.response.status):t.error&&r.setStatus("internal_error"),r.finish(),delete n[e]):(e=Object(ke.b)())&&(r=e.startChild({data:Object(o.a)(Object(o.a)({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"}),t.fetchData.__span=r.spanId,n[r.spanId]=r,e=t.args[0]=t.args[0],t=(n=t.args[1]=t.args[1]||{}).headers,(t=Object(R.g)(e,Request)?e.headers:t)?"function"==typeof t.append?t.append("sentry-trace",r.toTraceparent()):t=Array.isArray(t)?Object(o.e)(t,[["sentry-trace",r.toTraceparent()]]):Object(o.a)(Object(o.a)({},t),{"sentry-trace":r.toTraceparent()}):t={"sentry-trace":r.toTraceparent()},n.headers=t))})),n&&Object(_.a)("xhr",(function(t){var e=c,n=u;if(!(!Object(ke.c)()||t.xhr&&t.xhr.__sentry_own_request__)&&t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url))if(e=t.xhr.__sentry_xhr__,t.endTimestamp){var r=t.xhr.__sentry_xhr_span_id__;r&&(i=n[r])&&(i.setHttpStatus(e.status_code),i.finish(),delete n[r])}else if(r=Object(ke.b)()){var i=r.startChild({data:Object(o.a)(Object(o.a)({}
44,e.data),{type:"xhr",method:e.method,url:e.url}),description:e.method+" "+e.url,op:"http.client"});if(t.xhr.__sentry_xhr_span_id__=i.spanId,n[t.xhr.__sentry_xhr_span_id__]=i,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",i.toTraceparent())}catch(t){}}}))}({traceFetch:c,traceXHR:u,tracingOrigins:p,shouldCreateSpanForRequest:e})},Xe.prototype._createRouteTransaction=function(t){var e=this;if(this._getCurrentHub){var n=(a=this.options).beforeNavigate,r=a.idleTimeout,i=a.maxTransactionDuration,a="pageload"===t.op?function(){var t=function(t){return(t=Object(m.a)().document.querySelector("meta[name="+t+"]"))?t.getAttribute("content"):null}("sentry-trace");if(t)return Object(ke.a)(t)}():void 0;t=Object(o.a)(Object(o.a)(Object(o.a)({},t),a),{trimEnd:!0}),a="function"==typeof n?n(t):t,t=(!1===(n=void 0===a?Object(o.a)(Object(o.a)({},t),{sampled:!1}):a).sampled&&l.b.log("[Tracing] Will not send "+n.op+" transaction because of beforeNavigate."),l.b.log("[Tracing] Starting "+n.op+" transaction on scope"),this._getCurrentHub()),a=Object(m.a)().location;return(t=Object(be.b)(t,n,r,!0,{location:a})).registerBeforeFinishCallback((function(t,n){var r,o;e._metrics.addPerformanceEntries(t),r=Object(ke.e)(i),o=n-(t=t).startTimestamp,n&&(r<o||o<0)&&(t.setStatus("deadline_exceeded"),t.setTag("maxTransactionDurationExceeded","true"))})),t.setTag("idleTimeout",this._configuredIdleTimeout),t}l.b.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},Xe.id="BrowserTracing",Xe);function Xe(t){this.name=Xe.id,this._emitOptionsWarning=!1,this._configuredIdleTimeout=void 0;var e=ze.tracingOrigins;t&&(this._configuredIdleTimeout=t.idleTimeout,t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?e=t.tracingOrigins:this._emitOptionsWarning=!0),this.options=Object(o.a)(Object(o.a)(Object(o.a)({},Je),t),{tracingOrigins:e}),t=this.options._metricOptions;this._metrics=new Be(t&&t._reportAllChanges)}Object(be.a)();gt=n(31);var $e=n.n(gt),Ke=function(t){var e,n=$e()(t);for(e in n){var r=n[e],i=(delete n[e],"".concat(e.substr(0,1).toLowerCase()).concat(e.substr(1)));n["".concat(i)]=r}return n},Ve={0:"å®ç½",860:"ä¼ä¸å¾®ä¿¡",861:"éé",862:"é£ä¹¦"},Qe={1:"è¯ç¨ç",2:"æ åç",3:"个人ç",6:"æè°ç",8:"èæ ¸ç",9:"ä¸ä¸ç",10:"OKRç",100:"OKR模æ¿è´ä¹°"};function Ze(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function tn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(n),!0).forEach((function(e){var r,i;r=t,i=n[e=e],e in r?Object.defineProperty(r,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[e]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var en,nn,rn,on=1;function an(t,e,n,r){var i=t.match(/api\/(\w*?)\/\d*?\/\d*?\/(\S*?)(\?|$)/),o=function(t){var e=t.match(/api\/(\w*?)\/\d*?\/\d*?\/(\S*?)(\?|$)/);t=t.split("?")[0];return e&&e[1]&&e[2]&&(t="".concat(e[1],":").concat(e[2])),t}(t);r={request_data:r,time_cost:e,request_path:i&&i[2]||t,request_version:i&&i[1]||null};if(/^[45]/.test("".concat(n))&&!function(t){for(var e=0,n=[/RemindV2\/Get/];e<n.length;e++)if(n[e].test(t))return!0;return!1}(t))return 401!=n&&(/open\.work\.weixin\.qq\.com\/wwopen\/openData\/getOpenData/.test(t)?(sn("ä¼ä¸å¾®ä¿¡é讯å½ç»ä»¶æ¥é",o,r),0):void sn("æ¥å£æ¥é:".concat(n),"".concat(n," ").concat(o),r,{"response-status":n}));3e3<e&&!function(t){for(var e=0,n=[/track\/action/,/Upload\/PostFiles/];e<n.length;e++)if(n[e].test(t))return!0;return!1}(t)&&sn("æ¥å£è¿æ
¢","æ¥å£è¿æ
¢ ".concat(o),r)}function sn(t,e,n,r){var i=2<arguments.length&&void 0!==n?n:{},o=3<arguments.length&&void 0!==r?r:{};Rt((function(n){for(var r in n.setTag("error-type",t),/æ¥å£æ¥é/.test(t)&&n.setTag("error-level","P0"),o)n.setTag(r,o[r]);for(var a in i)n.setExtra(a,i[a]);var s=new Date((new Date).toLocaleDateString()).getTime();n.setFingerprint([t,e,s]),kt(new Error(e),n)}))}function cn(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function un(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
44e%2?cn(Object(n),!0).forEach((function(e){var r,i;r=t,i=n[e=e],e in r?Object.defineProperty(r,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[e]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}B=window.BSGlobal,en=B.loginUserInfo,nn=B.tenantInfo,rn=function(){return/tita.com/g.test(location.origin)||/tita.net/g.test(location.origin)?"prod":"test"},Object(_.a)({type:"xhr",callback:function(t){var e=t.args,n=t.endTimestamp,r=t.startTimestamp;(t=t.xhr).uid||(t.uid=on,on++,t._realstartTime=r),4==t.readyState&&(r=n-t._realstartTime,an(t.__sentry_xhr__.url,r,t.status,tn({argbody:JSON.stringify(e||[])},t.__sentry_xhr__)))}}),Object(_.a)({type:"fetch",callback:function(t){var e=t.args,n=t.endTimestamp,r=(t.fetchData,t.startTimestamp);(t=t.response)&&an(e[0],n-r,t.status,tn({url:e[0]},e[1]||{}))}}),function(t){var e,n,r,i;void 0===(t=void 0===t?{}:t).defaultIntegrations&&(t.defaultIntegrations=de),void 0!==t.release||(e=Object(m.a)()).SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),e=Ft,!0===(i=t).debug&&l.b.enable(),(r=(n=Object(p.b)()).getScope())&&r.update(i.initialScope),r=new e(i),n.bindClient(r),t.autoSessionTracking&&(void 0!==Object(m.a)().document?(i=Object(p.b)()).captureSession&&(he(i),Object(_.a)("history",(function(t){var e=t.from;t=t.to;void 0!==e&&e!==t&&he(Object(p.b)())}))):Object(f.b)()&&l.b.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))}({dsn:"https://[email protected]/2",integrations:[new i.BrowserTracing],environment:rn(),tracesSampleRate:1,beforeSend:function(t){var e,n,r,i;return"test"==rn()||-1!=(null===(e=t.exception)||void 0===e||null===(n=e.values)||void 0===n||null===(r=n[0])||void 0===r||null===(i=r.value)||void 0===i?void 0:i.indexOf("Request failed"))?null:t},initialScope:function(t){return t.setExtras(un(un({},function(){var t;if(!window.BSGlobal)return{};var e,n,r,i=Ke(window.BSGlobal.tenantInfo),o=null===(o=Ke(window.BSGlobal.tenantAuthentication))||void 0===o?void 0:o.version;return null!==(e=window.BSGlobal)&&void 0!==e&&null!==(t=e.tenantInfo)&&void 0!==t&&t.versionInfo&&(o=null===(e=window.BSGlobal)||void 0===e||null===(n=e.tenantInfo)||void 0===n||null===(r=n.versionInfo)||void 0===r?void 0:r.version),{tenant_abbreviation:i.abbreviation,tenant_is_active:i.isActive,tenant_is_auth:i.isAuth,tenant_is_new:i.isNewIndex,tenant_id:i.id||i.tenantId,tenant_name:i.abbreviation,tenant_source:i.source,tenant_source_name:Ve[i.source]||"å®ç½",tenant_version:o,tenant_version_name:Qe[o]||"",product_name:window.sentryProductName||"æªå®ä¹"}}()),function(){if(!window.BSGlobal)return{};var t=Ke(window.BSGlobal.loginUserInfo);return{user_is_root:t.isRoot,user_is_tita_feed_system_manager:t.isTitaFeedSystemManager,user_role:t.role,user_manager_id:t.managerId,user_mobile:t.mobile,user_online_type:t.onlineType,user_id:t.id,user_name:t.name,user_type:t.userType}}())),t.setTag("tenantId",null==nn?void 0:nn.Id),t.setTag("userId",null==en?void 0:en.Id),t.setUser({id:null==en?void 0:en.Id,username:null==en?void 0:en.Name,email:null==en?void 0:en.Email}),t}})}]); 45//# sourceMappingURL=app-1.0.0.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.