!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5bb5e301-3de2-4b08-9d2e-806bf53aa3b1",t._sentryDebugIdIdentifier="sentry-dbid-5bb5e301-3de2-4b08-9d2e-806bf53aa3b1")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"frontend-reader3@c7702c4"},(()=>{"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var e="issuu-isrendered";function n(t){return t&&t.Math==Math?t:void 0}const r="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof t.g&&n(t.g)||function(){return this}()||{};function s(){return r}function o(t,e,n){const s=n||r,o=s.__SENTRY__=s.__SENTRY__||{};return o[t]||(o[t]=e())}const i="production",a=Object.prototype.toString;function c(t){switch(a.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function u(t,e){return a.call(t)===`[object ${e}]`}function l(t){return u(t,"ErrorEvent")}function d(t){return u(t,"DOMError")}function p(t){return u(t,"String")}function h(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function f(t){return null===t||h(t)||"object"!=typeof t&&"function"!=typeof t}function g(t){return u(t,"Object")}function m(t){return"undefined"!=typeof Event&&y(t,Event)}function _(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function y(t,e){try{return t instanceof e}catch(t){return!1}}function v(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const b=s(),E=80;function S(t,e={}){if(!t)return"";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||E;for(;n&&o++1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(t){return""}}function x(t,e){const n=t,r=[];let s,o,i,a,c;if(!n||!n.tagName)return"";if(b.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&p(s))for(o=s.split(/\s+/),c=0;c{const r=T[t];n[t]=e[t],e[t]=r}));try{return t()}finally{s.forEach((t=>{e[t]=n[t]}))}}const O=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return w?k.forEach((n=>{e[n]=(...e)=>{t&&$((()=>{r.console[n](`Sentry Logger [${n}]:`,...e)}))}})):k.forEach((t=>{e[t]=()=>{}})),e}();function I(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function P(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;efunction(t,e,n=!1){return!!p(t)&&(u(e,"RegExp")?e.test(t):!!p(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}function C(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&R(s,r),t[e]=s}function N(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){w&&O.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function R(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,N(t,"__sentry_original__",e)}catch(t){}}function L(t){return t.__sentry_original__}function j(t){if(c(t))return{message:t.message,name:t.name,stack:t.stack,...M(t)};if(m(t)){const e={type:t.type,target:A(t.target),currentTarget:A(t.currentTarget),...M(t)};return"undefined"!=typeof CustomEvent&&y(t,CustomEvent)&&(e.detail=t.detail),e}return t}function A(t){try{return"undefined"!=typeof Element&&y(t,Element)?S(t):Object.prototype.toString.call(t)}catch(t){return""}}function M(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function q(t){return U(t,new Map)}function U(t,e){if(function(t){if(!g(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=U(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(U(t,e))})),r}return t}function H(){const t=r,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function z(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function F(t){const{message:e,event_id:n}=t;if(e)return e;const r=z(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Y(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function B(t,e){const n=z(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function J(t){if(t&&t.__sentry_captured__)return!0;try{N(t,"__sentry_captured__",!0)}catch(t){}return!1}function W(t){return Array.isArray(t)?t:[t]}function X(){return Date.now()/1e3}const V=function(){const{performance:t}=r;if(!t||!t.now)return X;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}();let G;(()=>{const{performance:t}=r;if(!t||!t.now)return void(G="none");const e=36e5,n=t.now(),s=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-s):e,i=o{e(t)}))}function tt(t){return new et(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(Q||(Q={}));class et{constructor(t){et.prototype.__init.call(this),et.prototype.__init2.call(this),et.prototype.__init3.call(this),et.prototype.__init4.call(this),this._state=Q.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new et(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new et(((e,n)=>{let r,s;return this.then((e=>{s=!1,r=e,t&&t()}),(e=>{s=!0,r=e,t&&t()})).then((()=>{s?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(Q.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Q.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===Q.PENDING&&(_(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Q.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===Q.RESOLVED&&t[1](this._value),this._state===Q.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function nt(){return o("globalEventProcessors",(()=>[]))}function rt(t){nt().push(t)}function st(t,e,n,r=0){return new et(((s,o)=>{const i=t[r];if(null===e||"function"!=typeof i)s(e);else{const a=i({...e},n);K&&i.id&&null===a&&O.log(`Event processor "${i.id}" dropped event`),_(a)?a.then((e=>st(t,e,n,r+1).then(s))).then(null,o):st(t,a,n,r+1).then(s).then(null,o)}}))}function ot(t){const e=V(),n={sid:H(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return q({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&it(n,t),n}function it(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||V(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:H()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function at(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),it(t,n)}function ct(t){return t.transaction}const ut=1;function lt(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:o,status:i,tags:a,origin:c}=dt(t);return q({data:r,op:s,parent_span_id:o,span_id:e,status:i,tags:a,trace_id:n,origin:c})}function dt(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function pt(t,e,n){const r=e.getOptions(),{publicKey:s}=e.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=q({environment:r.environment||i,release:r.release,user_segment:o,public_key:s,trace_id:t});return e.emit&&e.emit("createDsc",a),a}function ht(t){const e=Ft();if(!e)return{};const n=pt(dt(t).trace_id||"",e,Yt()),r=ct(t);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:o,source:i}=r.metadata;null!=o&&(n.sample_rate=`${o}`);const a=dt(r);return i&&"url"!==i&&(n.transaction=a.description),n.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return Boolean(e&ut)}(r)),e.emit&&e.emit("createDsc",n),n}function ft(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e,c=q(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=q(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const l=q(s);l&&Object.keys(l).length&&(t.user={...l,...t.user});const d=q(o);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),i&&(t.level=i),a&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:lt(e),...t.contexts};const n=ct(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:ht(e),...t.sdkProcessingMetadata};const r=dt(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,r),function(t,e){t.fingerprint=t.fingerprint?W(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,o)}function gt(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:h,span:f}=e;mt(t,"extra",n),mt(t,"tags",r),mt(t,"user",s),mt(t,"contexts",o),mt(t,"sdkProcessingMetadata",a),i&&(t.level=i),h&&(t.transactionName=h),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...p}}function mt(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}let _t;class yt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=vt()}static clone(t){return t?t.clone():new yt}clone(){const t=new yt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&it(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t;if(e instanceof yt){const t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else if(g(e)){const e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=vt(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:X(),...t},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:s,_user:o,_level:i,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:d,_span:p}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:s,user:o,level:i,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:d,span:p}}applyToEvent(t,e={},n=[]){return ft(t,this.getScopeData()),st([...n,...nt(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:H();if(!this._client)return O.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:H();if(!this._client)return O.warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:H();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(O.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}function vt(){return{traceId:H(),spanId:H().substring(16)}}const bt="7.108.0",Et=parseFloat(bt),St=100;class xt{constructor(t,e,n,r=Et){let s,o;this._version=r,e?s=e:(s=new yt,s.setClient(t)),n?o=n:(o=new yt,o.setClient(t)),this._stack=[{scope:s}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version(this.popScope(),t)),(t=>{throw this.popScope(),t})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:H(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:H(),s=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:H();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=St}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const i={timestamp:X(),...t},a=s?$((()=>s(i,e))):i;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=kt(this);try{t(this)}finally{kt(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return K&&O.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);return K&&!n&&(this.getClient()?O.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):O.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&at(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:s,environment:o=i}=n&&n.getOptions()||{},{userAgent:a}=r.navigator||{},c=ot({release:s,environment:o,user:e.getUser(),...a&&{userAgent:a},...t}),u=e.getSession&&e.getSession();return u&&"ok"===u.status&&it(u,{status:"exited"}),this.endSession(),e.setSession(c),c}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){const n=wt().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);K&&O.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function wt(){return r.__SENTRY__=r.__SENTRY__||{extensions:{},hub:void 0},r}function kt(t){const e=wt(),n=Ot(e);return It(e,t),n}function Tt(){const t=wt();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=wt()){return!!((e=t)&&e.__SENTRY__&&e.__SENTRY__.hub)&&!Ot(t).isOlderThan(Et)||It(t,new xt),Ot(t);var e}(t)}function $t(){return Tt().getIsolationScope()}function Ot(t){return o("hub",(()=>new xt),t)}function It(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}const Pt=/\(error: (.*)\)/,Dt=/captureMessage|captureException/;function Ct(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const r=[],s=t.split("\n");for(let t=n;t1024)continue;const o=Pt.test(n)?n.replace(Pt,"$1"):n;if(!o.match(/\S*Error: /)){for(const t of e){const e=t(o);if(e){r.push(e);break}}if(r.length>=50)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),Dt.test(e[e.length-1].function||"")&&(e.pop(),Dt.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,50).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(r)}}const Nt="";function Rt(t){try{return t&&"function"==typeof t&&t.name||Nt}catch(t){return Nt}}function Lt(t,e=100,n=1/0){try{return At("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function jt(t,e=3,n=102400){const r=Lt(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?jt(t,e-1,n):r;var s}function At(e,n,r=1/0,s=1/0,o=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t=s){p[t]="[MaxProperties ~]";break}const e=f[t];p[t]=At(t,e,l-1,s,o),h++}return a(n),p}const Mt=new WeakMap,qt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ut(t,e){return Tt().captureException(t,function(t){if(t)return function(t){return t instanceof yt||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>qt.includes(t)))}(t)?{captureContext:t}:t}(e))}function Ht(t,e){return Tt().captureEvent(t,e)}function zt(t,e){Tt().addBreadcrumb(t,e)}function Ft(){return Tt().getClient()}function Yt(){return Tt().getScope()}function Bt(t){const e=Ft(),n=$t(),s=Yt(),{release:o,environment:a=i}=e&&e.getOptions()||{},{userAgent:c}=r.navigator||{},u=ot({release:o,environment:a,user:s.getUser()||n.getUser(),...c&&{userAgent:c},...t}),l=n.getSession();return l&&"ok"===l.status&&it(l,{status:"exited"}),Jt(),n.setSession(u),s.setSession(u),u}function Jt(){const t=$t(),e=Yt(),n=e.getSession()||t.getSession();n&&at(n),Wt(),t.setSession(),e.setSession()}function Wt(){const t=$t(),e=Yt(),n=Ft(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Xt(t=!1){t?Jt():Wt()}function Vt(t){Ut(t)}function Gt(t){return``}function Kt(t,e,n){n(Gt(t))}function Qt(t){return`\n
\n ${Gt(t)}\n
\n
\n Powered by \n Issuu\n
\n Publish for Free\n
\n
\n `}function Zt(t,e,n){e?function(e,r,s){var o=new XMLHttpRequest;o.open("GET",function(t){return`https://e.issuu.com/config/${t.split("/")[1]}.json`}(e),!0),o.onreadystatechange=function(){try{if(o.readyState===XMLHttpRequest.DONE)if(200===o.status){var e=JSON.parse(o.responseText);"object"==typeof(r=e)&&null!==r&&r.hasOwnProperty("enablePoweredByIssuu")?e.enablePoweredByIssuu?n(Qt(t)):Kt(t,0,n):s()}else s()}catch(t){t instanceof Error&&Vt(t)}var r},o.send()}(e,0,(function(){n(Qt(t))})):n(Qt(t))}function te(t,e){try{var{prevEvent:n}=t;n&&n.source.postMessage(e,n.origin)}catch(t){t instanceof Error&&Vt(t)}}const ee=[];function ne(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"==typeof n?W(n(e)):e;const s=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.keys(e).map((t=>e[t]))}(r),o=function(t){for(let e=0;en(e,r,t)))}if(t.addEventProcessor&&"function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}K&&O.log(`Integration installed: ${e.name}`)}}function oe(t,e){return Object.assign((function(...t){return e(...t)}),{id:t})}const ie=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],ae=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],ce="InboundFilters",ue=(t={})=>({name:ce,setupOnce(){},processEvent(e,n,r){const s=r.getOptions(),o=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:ie],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:ae],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,s);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(K&&O.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${F(t)}`),!0):function(t,e){return!(t.type||!e||!e.length)&&function(t){const e=[];let n;t.message&&e.push(t.message);try{n=t.exception.values[t.exception.values.length-1]}catch(t){}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),K&&0===e.length&&O.error(`Could not extract message for event ${F(t)}`),e}(t).some((t=>D(t,e)))}(t,e.ignoreErrors)?(K&&O.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${F(t)}`),!0):function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&D(n,e)}(t,e.ignoreTransactions)?(K&&O.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${F(t)}`),!0):function(t,e){if(!e||!e.length)return!1;const n=le(t);return!!n&&D(n,e)}(t,e.denyUrls)?(K&&O.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${F(t)}.\nUrl: ${le(t)}`),!0):!function(t,e){if(!e||!e.length)return!0;const n=le(t);return!n||D(n,e)}(t,e.allowUrls)&&(K&&O.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${F(t)}.\nUrl: ${le(t)}`),!0)}(e,o)?null:e}});function le(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return K&&O.error(`Cannot extract url for event ${F(t)}`),null}}let de;oe(ce,ue);const pe="FunctionToString",he=new WeakMap,fe=()=>({name:pe,setupOnce(){de=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=L(this),n=he.has(Ft())&&void 0!==e?e:this;return de.apply(n,t)}}catch(t){}},setup(t){he.set(t,!0)}});oe(pe,fe);const ge=s();function me(){if(!("fetch"in ge))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function _e(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const ye=s(),ve={},be={};function Ee(t,e){ve[t]=ve[t]||[],ve[t].push(e)}function Se(t,e){be[t]||(e(),be[t]=!0)}function xe(t,e){const n=t&&ve[t];if(n)for(const r of n)try{r(e)}catch(e){w&&O.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Rt(r)}\nError:`,e)}}const we=r;let ke;function Te(t){const e="history";Ee(e,t),Se(e,$e)}function $e(){if(!function(){const t=ye.chrome,e=t&&t.app&&t.app.runtime,n="history"in ye&&!!ye.history.pushState&&!!ye.history.replaceState;return!e&&n}())return;const t=we.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=ke,e=String(n);ke=e,xe("history",{from:t,to:e})}return t.apply(this,e)}}we.onpopstate=function(...e){const n=we.location.href,r=ke;if(ke=n,xe("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},C(we.history,"pushState",e),C(we.history,"replaceState",e)}const Oe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ie(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function Pe(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function De(t,e=[]){return[t,e]}function Ce(t,e){const[n,r]=t;return[n,[...r,e]]}function Ne(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function Re(t,e){return(e||new TextEncoder).encode(t)}function Le(t,e){const[n,r]=t;let s=JSON.stringify(n);function o(t){"string"==typeof s?s="string"==typeof t?s+t:[Re(s,e),t]:s.push("string"==typeof t?Re(t,e):t)}for(const t of r){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(Lt(n))}o(t)}}return"string"==typeof s?s:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(s)}function je(t,e){const n="string"==typeof t.data?Re(t.data,e):t.data;return[q({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const Ae={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"statsd"};function Me(t){return Ae[t]}function qe(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}class Ue extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}const He="Not capturing exception because it's already been captured.";class ze{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){const e="string"==typeof t?function(t){const e=Oe.exec(t);if(!e)return void $((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,s="",o,i="",a]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return Pe({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}(t):Pe(t);if(e&&function(t){if(!w)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(O.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(O.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(O.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(O.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}(t.dsn):K&&O.warn("No DSN provided, client will not send events."),this._dsn){const e=function(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return n={sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}(t,r)}`}(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if(J(t))return void(K&&O.log(He));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let s=n&&n.event_id;const o=h(t)?t:String(t),i=f(t)?this.eventFromMessage(o,e,n):this.eventFromException(t,n);return this._process(i.then((t=>this._captureEvent(t,n,r))).then((t=>{s=t}))),s}captureEvent(t,e,n){if(e&&e.originalException&&J(e.originalException))return void(K&&O.log(He));let r=e&&e.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,e,s||n).then((t=>{r=t}))),r}captureSession(t){"string"!=typeof t.release?K&&O.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),it(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):Z(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return K&&O.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const e=this._integrations[t.name];se(this,t,this._integrations),e||re(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=function(t,e,n,r){const s=qe(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const i=function(t,e,n,r){const s=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:Ie(r)},...s&&{trace:q({...s})}}}(t,s,r,e);return delete t.sdkProcessingMetadata,De(i,[[{type:o},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=Ce(n,je(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=function(t,e,n,r){const s=qe(n);return De({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:Ie(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;K&&O.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(t){K&&O.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const e=function(t,e,n,r){const s={sent_at:(new Date).toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(s.dsn=Ie(e));const o=function(t){const e=function(t){let e="";for(const n of t){const t=Object.entries(n.tags),r=t.length>0?`|#${t.map((([t,e])=>`${t}:${e}`)).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return e}(t);return[{type:"statsd",length:e.length},e]}(t);return De(s,[o])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&se(t,e,n)})),n}(this,t),re(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,e){let n=!1,r=!1;const s=e.exception&&e.exception.values;if(s){r=!0;for(const t of s){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(it(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new et((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,s=$t()){const o=this.getOptions(),a=Object.keys(this._integrations);return!e.integrations&&a.length>0&&(e.integrations=a),this.emit("preprocessEvent",t,e),function(t,e,n,s,o,a){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,l={...e,event_id:e.event_id||n.event_id||H(),timestamp:e.timestamp||X()},d=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:i),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==s&&(t.dist=s),t.message&&(t.message=I(t.message,o));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=I(a.value,o));const c=t.request;c&&c.url&&(c.url=I(c.url,o))}(l,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(l,d),void 0===e.type&&function(t,e){const n=r._sentryDebugIds;if(!n)return;let s;const o=Mt.get(e);o?s=o:(s=new Map,Mt.set(e,s));const i=Object.keys(n).reduce(((t,r)=>{let o;const i=s.get(r);i?o=i:(o=e(r),s.set(r,o));for(let e=o.length-1;e>=0;e--){const s=o[e];if(s.filename){t[s.filename]=n[r];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=i[t.filename])}))}))}catch(t){}}(l,t.stackParser);const p=function(t,e){if(!e)return t;const n=t?t.clone():new yt;return n.update(e),n}(s,n.captureContext);n.mechanism&&B(l,n.mechanism);const h=o&&o.getEventProcessors?o.getEventProcessors():[],f=(_t||(_t=new yt),_t).getScopeData();a&>(f,a.getScopeData()),p&>(f,p.getScopeData());const g=[...n.attachments||[],...f.attachments];return g.length&&(n.attachments=g),ft(l,f),st([...h,...nt(),...f.eventProcessors],l,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach((t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}(t),"number"==typeof c&&c>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Lt(t.data,e,n)}})))},...t.user&&{user:Lt(t.user,e,n)},...t.contexts&&{contexts:Lt(t.contexts,e,n)},...t.extra&&{extra:Lt(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Lt(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>{const r=dt(t).data;return r&&(t.data=Lt(r,e,n)),t}))),r}(t,c,u):t)))}(o,t,e,n,this,s).then((t=>{if(null===t)return t;const e={...s.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!t.contexts||!t.contexts.trace)&&e){const{traceId:r,spanId:s,parentSpanId:o,dsc:i}=e;t.contexts={trace:{trace_id:r,span_id:s,parent_span_id:o},...t.contexts};const a=i||pt(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(K){const e=t;"log"===e.logLevel?O.log(e.message):O.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:s}=r,o=Ye(t),i=Fe(t),a=t.type||"error",c=`before send for type \`${a}\``;if(i&&"number"==typeof s&&Math.random()>s)return this.recordDroppedEvent("sample_rate","error",t),tt(new Ue(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const u="replay_event"===a?"replay":a,l=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,l).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new Ue("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const s=function(t,e,n){const{beforeSend:r,beforeSendTransaction:s}=t;return Fe(e)&&r?r(e,n):Ye(e)&&s?s(e,n):e}(r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(_(t))return t.then((t=>{if(!g(t)&&null!==t)throw new Ue(n);return t}),(t=>{throw new Ue(`${e} rejected with ${t}`)}));if(!g(t)&&null!==t)throw new Ue(n);return t}(s,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,t),new Ue(`${c} returned \`null\`, will not send event.`,"log");const s=n&&n.getSession();!o&&s&&this._updateSessionFromEvent(s,r);const i=r.transaction_info;if(o&&i&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...i,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof Ue)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new Ue(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,(t=>{K&&O.error("Error while sending event:",t)}));K&&O.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function Fe(t){return void 0===t.type}function Ye(t){return"transaction"===t.type}function Be(t,e){const n=We(t,e),r={type:e&&e.name,value:Ve(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Je(t,e){return{exception:{values:[Be(t,e)]}}}function We(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Xe.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}const Xe=/Minified React error #\d+;/i;function Ve(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Ge(t,e,n,r,s){let o;if(l(e)&&e.error)return Je(t,e.error);if(d(e)||u(e,"DOMException")){const s=e;if("stack"in e)o=Je(t,e);else{const e=s.name||(d(s)?"DOMError":"DOMException"),i=s.message?`${e}: ${s.message}`:e;o=Ke(t,i,n,r),Y(o,i)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return c(e)?Je(t,e):g(e)||m(e)?(o=function(t,e,n,r){const s=Ft(),o=s&&s.getOptions().normalizeDepth,i={exception:{values:[{type:m(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Qe(e,{isUnhandledRejection:r})}]},extra:{__serialized__:jt(e,o)}};if(n){const e=We(t,n);e.length&&(i.exception.values[0].stacktrace={frames:e})}return i}(t,e,n,s),B(o,{synthetic:!0}),o):(o=Ke(t,e,n,r),Y(o,`${e}`,void 0),B(o,{synthetic:!0}),o)}function Ke(t,e,n,r){const s={};if(r&&n){const r=We(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]})}if(h(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function Qe(t,{isUnhandledRejection:e}){const n=function(t,e=40){const n=Object.keys(j(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return I(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:I(r,e)}return""}(t),r=e?"promise rejection":"exception";return l(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:m(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const Ze=r;let tn=0;function en(){return tn>0}function nn(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(L(t))return t}catch(e){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=r.map((t=>nn(t,e)));return t.apply(this,s)}catch(t){throw tn++,setTimeout((()=>{tn--})),function(...t){const e=Tt();if(2===t.length){const[n,r]=t;return n?e.withScope((()=>(e.getStackTop().scope=n,r(n)))):e.withScope(r)}e.withScope(t[0])}((n=>{n.addEventProcessor((t=>(e.mechanism&&(Y(t,void 0,void 0),B(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),Ut(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}R(r,t),N(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}class rn extends ze{constructor(t){!function(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:bt}))),version:bt}),t._metadata=s}(t,"browser",["browser"],Ze.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Ze.document&&Ze.document.addEventListener("visibilitychange",(()=>{"hidden"===Ze.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){const s=Ge(t,e,n&&n.syntheticException||void 0,r);return B(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),Z(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,s){const o=Ke(t,e,r&&r.syntheticException||void 0,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Z(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return;const e=function(t,{metadata:e,tunnel:n,dsn:r}){const s={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:Ie(r)}},o=function(t){return[{type:"user_report"},t]}(t);return De(s,[o])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return;if(!this._dsn)return;const e=(n=t,De((r=this._options.tunnel&&Ie(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:X(),discarded_events:n}]]));var n,r;this._sendEnvelope(e)}}function sn(){"console"in r&&k.forEach((function(t){t in r.console&&C(r.console,t,(function(e){return T[t]=e,function(...e){xe("console",{args:e,level:t});const n=T[t];n&&n.apply(r.console,e)}}))}))}const on=r,an=1e3;let cn,un,ln;function dn(){if(!on.document)return;const t=xe.bind(null,"dom"),e=pn(t,!0);on.document.addEventListener("click",e,!1),on.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=on[e]&&on[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(C(n,"addEventListener",(function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},i=o[n]=o[n]||{refCount:0};if(!i.handler){const r=pn(t);i.handler=r,e.call(this,n,r,s)}i.refCount++}catch(t){}return e.call(this,n,r,s)}})),C(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},o=s[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete s[e]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}function pn(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;N(n,"_sentryCaptured",!0),r&&!r._sentryId&&N(r,"_sentryId",H());const s="keypress"===n.type?"input":n.type;(function(t){if(t.type!==un)return!1;try{if(!t.target||t.target._sentryId!==ln)return!1}catch(t){}return!0})(n)||(t({event:n,name:s,global:e}),un=n.type,ln=r?r._sentryId:void 0),clearTimeout(cn),cn=on.setTimeout((()=>{ln=void 0,un=void 0}),an)}}const hn=r,fn="__sentry_xhr_v3__";function gn(){if(!hn.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;C(t,"open",(function(t){return function(...e){const n=Date.now(),r=p(e[0])?e[0].toUpperCase():void 0,s=function(t){if(p(t))return t;try{return t.toString()}catch(t){}}(e[1]);if(!r||!s)return t.apply(this,e);this[fn]={method:r,url:s,request_headers:{}},"POST"===r&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const t=this[fn];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}xe("xhr",{args:[r,s],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?C(this,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(this,e)}})):this.addEventListener("readystatechange",o),C(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,s=this[fn];return s&&p(n)&&p(r)&&(s.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),C(t,"send",(function(t){return function(...e){const n=this[fn];return n?(void 0!==e[0]&&(n.body=e[0]),xe("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,e)):t.apply(this,e)}}))}function mn(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!me())return!1;if(_e(ge.fetch))return!0;let t=!1;const e=ge.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=_e(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){w&&O.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&C(r,"fetch",(function(t){return function(...e){const{method:n,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:yn(e),method:_n(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:yn(e),method:_n(e,"method")?String(e.method).toUpperCase():"GET"}}(e),o={args:e,fetchData:{method:n,url:s},startTimestamp:Date.now()};return xe("fetch",{...o}),t.apply(r,e).then((t=>(xe("fetch",{...o,endTimestamp:Date.now(),response:t}),t)),(t=>{throw xe("fetch",{...o,endTimestamp:Date.now(),error:t}),t}))}}))}function _n(t,e){return!!t&&"object"==typeof t&&!!t[e]}function yn(t){return"string"==typeof t?t:t?_n(t,"url")?t.url:t.toString?t.toString():"":""}const vn=["fatal","error","warning","log","info","debug"];function bn(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const En="Breadcrumbs",Sn=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:En,setupOnce(){},setup(t){var n;e.console&&function(t){const e="console";Ee(e,t),Se(e,sn)}(function(t){return function(e){if(Ft()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:(r=e.level,"warn"===r?"warning":vn.includes(r)?r:"log"),message:P(e.args," ")};var r;if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${P(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}zt(n,{input:e.args,level:e.level})}}(t)),e.dom&&(n=function(t,e){return function(n){if(Ft()!==t)return;let r,s,o="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(i=1024),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=S(e,{keyAttrs:o,maxStringLength:i}),s=function(t){if(!b.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}(e)}catch(t){r=""}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),zt(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom),Ee("dom",n),Se("dom",dn)),e.xhr&&function(t){Ee("xhr",t),Se("xhr",gn)}(function(t){return function(e){if(Ft()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,s=e.xhr[fn];if(!n||!r||!s)return;const{method:o,url:i,status_code:a,body:c}=s;zt({category:"xhr",data:{method:o,url:i,status_code:a},type:"http"},{xhr:e.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(t)),e.fetch&&function(t){const e="fetch";Ee(e,t),Se(e,mn)}(function(t){return function(e){if(Ft()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error)zt({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args,startTimestamp:n,endTimestamp:r});else{const t=e.response;zt({category:"fetch",data:{...e.fetchData,status_code:t&&t.status},type:"http"},{input:e.args,response:t,startTimestamp:n,endTimestamp:r})}}}(t)),e.history&&Te(function(t){return function(e){if(Ft()!==t)return;let n=e.from,r=e.to;const s=bn(Ze.location.href);let o=n?bn(n):void 0;const i=bn(r);o&&o.path||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),zt({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on&&t.on("beforeSendEvent",function(t){return function(e){Ft()===t&&zt({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:F(e)},{event:e})}}(t))}}};oe(En,Sn);const xn="Dedupe",wn=()=>{let t;return{name:xn,setupOnce(){},processEvent(e){if(e.type)return e;try{if(function(t,e){return!(!e||!function(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Tn(t,e)||!kn(t,e))}(t,e)&&!function(t,e){const n=$n(e),r=$n(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Tn(t,e)&&kn(t,e))}(t,e))}(e,t))return null}catch(t){}return t=e}}};function kn(t,e){let n=On(t),r=On(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Nn,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&function(t){!function(){const e="error";Ee(e,(e=>{const{stackParser:n,attachStacktrace:r}=jn();if(Ft()!==t||en())return;const{msg:s,url:o,line:i,column:a,error:c}=e,u=void 0===c&&p(s)?function(t,e,n,r){let s=l(t)?t.message:t,o="Error";const i=s.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return i&&(o=i[1],s=i[2]),Ln({exception:{values:[{type:o,value:s}]}},e,n,r)}(s,o,i,a):Ln(Ge(n,c||s,void 0,r,!1),o,i,a);u.level="error",Ht(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})),Se(e,Pn)}()}(t),e.onunhandledrejection&&function(t){!function(){const e="unhandledrejection";Ee(e,(e=>{const{stackParser:n,attachStacktrace:r}=jn();if(Ft()!==t||en())return;const s=function(t){if(f(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(t){}return t}(e),o=f(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Ge(n,s,void 0,r,!0);o.level="error",Ht(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})),Se(e,Cn)}()}(t)}}};function Ln(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=p(e)&&e.length>0?e:function(){try{return b.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),t}function jn(){const t=Ft();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}oe(Nn,Rn);const An="HttpContext",Mn=()=>({name:An,setupOnce(){},preprocessEvent(t){if(!Ze.navigator&&!Ze.location&&!Ze.document)return;const e=t.request&&t.request.url||Ze.location&&Ze.location.href,{referrer:n}=Ze.document||{},{userAgent:r}=Ze.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:s};t.request=o}});function qn(t,e,n=250,r,s,o,i){if(!(o.exception&&o.exception.values&&i&&y(i.originalException,Error)))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var c,u;a&&(o.exception.values=(c=Un(t,e,s,i.originalException,r,o.exception.values,a,0),u=n,c.map((t=>(t.value&&(t.value=I(t.value,u)),t)))))}function Un(t,e,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(y(r[s],Error)){Hn(i,a);const o=t(e,r[s]),u=c.length;zn(o,s,u,a),c=Un(t,e,n,r[s],s,[o,...c],o,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,o)=>{if(y(r,Error)){Hn(i,a);const u=t(e,r),l=c.length;zn(u,`errors[${o}]`,l,a),c=Un(t,e,n,r,s,[u,...c],u,l)}})),c}function Hn(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function zn(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}oe(An,Mn);const Fn="LinkedErrors",Yn=(t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:Fn,setupOnce(){},preprocessEvent(t,r,s){const o=s.getOptions();qn(Be,o.stackParser,o.maxValueLength,n,e,t,r)}}},Bn=(oe(Fn,Yn),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),Jn="TryCatch",Wn=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:Jn,setupOnce(){e.setTimeout&&C(Ze,"setTimeout",Xn),e.setInterval&&C(Ze,"setInterval",Xn),e.requestAnimationFrame&&C(Ze,"requestAnimationFrame",Vn),e.XMLHttpRequest&&"XMLHttpRequest"in Ze&&C(XMLHttpRequest.prototype,"send",Gn);const t=e.eventTarget;t&&(Array.isArray(t)?t:Bn).forEach(Kn)}}};function Xn(t){return function(...e){const n=e[0];return e[0]=nn(n,{mechanism:{data:{function:Rt(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Vn(t){return function(e){return t.apply(this,[nn(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Rt(t)},handled:!1,type:"instrument"}})])}}function Gn(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&C(n,t,(function(e){const n={mechanism:{data:{function:t,handler:Rt(e)},handled:!1,type:"instrument"}},r=L(e);return r&&(n.mechanism.data.handler=Rt(r)),nn(e,n)}))})),t.apply(this,e)}}function Kn(t){const e=Ze,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(C(n,"addEventListener",(function(e){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=nn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Rt(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,nn(r,{mechanism:{data:{function:"addEventListener",handler:Rt(r),target:t},handled:!1,type:"instrument"}}),s])}})),C(n,"removeEventListener",(function(t){return function(e,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,s,r)}})))}oe(Jn,Wn);const Qn="?";function Zn(t,e,n,r){const s={filename:t,function:e,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const tr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,er=/\((\S*)(?::(\d+))(?::(\d+))\)/,nr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,sr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,or=Ct([30,t=>{const e=tr.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=er.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=ir(e[1]||Qn,e[2]);return Zn(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=nr.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=rr.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||Qn;return[n,t]=ir(n,t),Zn(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{const e=sr.exec(t);return e?Zn(e[2],e[1]||Qn,+e[3],e[4]?+e[4]:void 0):void 0}]),ir=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:Qn,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},ar=6e4,cr=30;function ur(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.lengthn(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(t){return new et(((n,r)=>{let s=e.length;if(!s)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{Z(t).then((()=>{--s||(clearTimeout(o),n(!0))}),r)}))}))}}}(t.bufferSize||cr)){let r={};function s(s){const o=[];if(Ne(s,((e,n)=>{const s=Me(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,s)){const r=lr(e,n);t.recordDroppedEvent("ratelimit_backoff",s,r)}else o.push(e)})),0===o.length)return Z();const i=De(s[0],o),a=e=>{Ne(i,((n,r)=>{const s=lr(n,r);t.recordDroppedEvent(e,Me(r),s)}))};return n.add((()=>e({body:Le(i,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&K&&O.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=function(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n]=t.split(":",2),o=parseInt(e,10),i=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))s[t]=r+i;else s.all=r+i}else i?s.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?ar:r-e}(i,r):429===e&&(s.all=r+6e4);return s}(r,t),t)),(t=>{throw a("network_error"),t})))).then((t=>t),(t=>{if(t instanceof Ue)return K&&O.error("Skipped sending event because buffer is full."),a("queue_overflow"),Z();throw t}))}return s.__sentry__baseTransport__=!0,{send:s,flush:t=>n.drain(t)}}function lr(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}let dr;function pr(t,e=function(){if(dr)return dr;if(_e(Ze.fetch))return dr=Ze.fetch.bind(Ze);const t=Ze.document;let e=Ze.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){}return dr=e.bind(Ze)}()){let n=0,r=0;return ur(t,(function(s){const o=s.body.length;n+=o,r++;const i={body:s.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,i).then((t=>(n-=o,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return dr=void 0,n-=o,r--,tt(t)}}))}function hr(t){return ur(t,(function(e){return new et(((n,r)=>{const s=new XMLHttpRequest;s.onerror=r,s.onreadystatechange=()=>{4===s.readyState&&n({statusCode:s.status,headers:{"x-sentry-rate-limits":s.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":s.getResponseHeader("Retry-After")}})},s.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&s.setRequestHeader(e,t.headers[e]);s.send(e.body)}))}))}const fr=[ue(),fe(),Wn(),Sn(),Rn(),Yn(),wn(),Mn()];var gr=function(t){return t.DocumentNotLoad="The document could not be loaded.",t.LicensingNotLoaded="Licenses failed loading",t.ClippingNotLoad="The Clippings could not be loaded.",t.DocumentIdMissing="documentId is not found!",t.JsonNotLoad="XHR could not load JSON",t.PreviewDisableLicenseCheck="Disable license check in Publisher Preview mode",t.PaywallPreviewDisableLicenseCheck="Disable license check in paywallPreview mode",t.SmartzoomNotLoaded="Smartzoom failed to load",t}({}),mr={};const _r=t=>{var{dsn:e,environment:n,isDeployed:r,release:s}=t;return{dsn:e,environment:n,release:s,sampleRate:r?.5:1,beforeSend(t,e){if(r){var n=(t.exception?.values||[])[0]?.stacktrace?.frames||[],s=n[0]?.filename;if(""===s)return null;var o=e?.originalException,i="string"==typeof o?o:o instanceof Error?o.message:"unknown error";if(Object.values(gr).includes(i))return console.warn("[Sentry] Ignored error",i),null;var a=n[n.length-1]?.filename;return a?.startsWith("https://consent.cookiebot.com/")&&(i.includes("postMessage")||i.includes("iframeReady"))?null:i in mr?(console.error("[Sentry] Rate limiting activated for",i),null):(mr[i]=!0,setTimeout((()=>{delete mr[i]}),6e4),t)}return null}}};!function(t){var n,r=(n=window.navigator.userAgent,/^(?:Mediapartners-Google|Yahoo|MSNPTC|Baiduspider|Yandex|proximic|Ezooms)|bot\/|Yahoo! Slurp|Ask Jeeves\/Teoma|spider|crawl|ia_archiver|heritrix\//i.test(n)),s=[];function o(e,n,o,i){s.push(function(t,e,n){var r={pageCount:0,pageNumber:1,title:"",prevEvent:void 0,onReaderLoaded:n,onPageChangedListeners:[]};return function(t,e){window.addEventListener&&window.addEventListener("message",(n=>{try{if(-1===n.origin.indexOf("e.issuu.com"))return;if(!n.data||n.data.identifier!==t)return;switch(e.prevEvent=n,n.data.type){case"issuu.documentLoaded":e.pageCount=n.data.pageCount,e.pageNumber=n.data.pageNumbers[0],e.title=n.data.title,e.onReaderLoaded();break;case"issuu.pageChanged":e.pageNumber=n.data.pageNumbers[0],e.onPageChangedListeners.forEach((t=>{try{t(e.pageNumber)}catch(t){Error}}))}}catch(t){t instanceof Error&&Vt(t)}}),!0)}(t,r),{getReaderApi:()=>({addEventListener:(t,e)=>{try{"change"===t&&("string"==typeof e&&"function"==typeof window[e]?r.onPageChangedListeners.push(window[e]):"function"==typeof e&&r.onPageChangedListeners.push(e))}catch(t){t instanceof Error&&Vt(t)}},getPageNumber:()=>r.pageNumber,setPageNumber:t=>{te(r,{type:"issuu.setPageNumber",pageNumber:"string"==typeof t?parseInt(t,10):t})},getPageCount:()=>r.pageCount,getTitle:()=>r.title,goToPreviousPage:()=>{te(r,{type:"issuu.goToPreviousPage"})},goToNextPage:()=>{te(r,{type:"issuu.goToNextPage"})},goToFirstPage:()=>{te(r,{type:"issuu.goToFirstPage"})},goToLastPage:()=>{te(r,{type:"issuu.goToLastPage"})}}),getEmbedId:()=>e,isLoaded:()=>!!r.pageCount}}(e,n,function(e){return()=>{for(var n=0;n{o.innerHTML=t}))}function i(t){var n=function(){for(var t="",e=0;e<12;e++)t+="abcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(36*Math.random()));return t}(),r={baseurl:"e.issuu.com/embed.html",query:{identifier:n,embedType:"script"}};t.className+=` ${e}`;var s=t.getAttribute("data-configid");if(s)return r.hash=s,o(n,s,t,r);var i=t.getAttribute("data-url");return i?function(t,e,n,r){var s=function(t){var e=t.match(/^https?:\/\/[^\/]*issuu.com\/([^\/]+)\/docs\/([^\/\?#]+)(?:\/([0-9]+))?/);if(e)return{username:e[1],docname:e[2],pageNumber:parseInt(e[3],10)||1}}(r);s&&(n.query.u=s.username,n.query.d=s.docname,n.query.p=s.pageNumber),o(t,void 0,e,n)}(n,t,r,i):o(n,void 0,t,r)}Tt().setTag("endpoint","script-embed"),function(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=[...fr]),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),Ze.SENTRY_RELEASE&&Ze.SENTRY_RELEASE.id&&(t.release=Ze.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(n=t.stackParser||or,Array.isArray(n)?Ct(...n):n),integrations:ne(t),transport:t.transport||(me()?pr:hr)};var n;(function(t,e){!0===e.debug&&(K?O.enable():$((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Yt().update(e.initialScope);const n=new t(e);!function(t){const e=Tt().getStackTop();e.client=t,e.scope.setClient(t)}(n),function(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}(n)})(rn,e),t.autoSessionTracking&&void 0!==Ze.document&&(Bt({ignoreDuration:!0}),Xt(),Te((({from:t,to:e})=>{void 0!==t&&t!==e&&(Bt({ignoreDuration:!0}),Xt())})))}({..._r({dsn:"",environment:"prod",isDeployed:!0,release:"frontend-reader3@c7702c4"}),defaultIntegrations:!1}),t.IssuuReaders=t.IssuuReaders||(window.addEventListener("DOMContentLoaded",(()=>{t.IssuuReaders.add()})),window.addEventListener("load",(()=>{t.IssuuReaders.add()})),{loaded:!1,get:function(t){var e={};try{for(var n=0;n