1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6239],{63003:function(e,t,n){let r,o,i,a,s;n.d(t,{E:function(){return nj},a:function(){return no},b:function(){return tL},c:function(){return tr},f:function(){return rZ},i:function(){return ti}});var l=n(39986);(nP=nM||(nM={})).Error="error",nP.Warning="warning",nP.Info="info",nP.Success="success",(nO=nj||(nj={})).Component="component",nO.Api="api",nO.Auth="auth",(nI=nA||(nA={})).endtime_not_in_future="endtime_not_in_future",nI.no_booking_info="no_booking_info",nI.no_timeslot_selected="no_timeslot_selected",nI.no_timezone_selected="no_timezone_selected",nI.no_booking_id="no_booking_id",nI.no_salt="no_salt",nI.invalid_start_time="invalid_start_time",nI.invalid_end_time="invalid_end_time",nI.invalid_timezone="invalid_timezone",nI.no_config_id="no_config_id";let u=Object.prototype.toString;function c(e){switch(u.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function d(e,t){return u.call(e)===`[object ${t}]`}function _(e){return d(e,"ErrorEvent")}function p(e){return d(e,"DOMError")}function f(e){return d(e,"String")}function h(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function m(e){return null===e||h(e)||"object"!=typeof e&&"function"!=typeof e}function g(e){return d(e,"Object")}function v(e){return"u">typeof Event&&y(e,Event)}function b(e){return!!(e&&e.then&&"function"==typeof e.then)}function y(e,t){try{return e instanceof t}catch{return!1}}function x(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function w(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function E(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{x(r)?n.push("[VueViewModel]"):n.push(String(r))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function S(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!f(e)&&(d(t,"RegExp")?t.test(e):!!f(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function k(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function C(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let N="8.28.0",L=globalThis;function T(e,t,n){let r=n||L,o=r.__SENTRY__=r.__SENTRY__||{},i=o[N]=o[N]||{};return i[e]||(i[e]=t())}function D(e,t={}){if(!e)return"<unknown>";try{let n,r=e,o=[],i=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&i++<5&&(n=function(e,t){let n=[];if(!e||!e.tagName)return"";if(L.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let r=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(r&&r.length)r.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&f(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,s),!("html"===n||i>1&&a+3*o.length+n.length>=l));)o.push(n),a+=n.length,r=r.parentNode;return o.reverse().join(" > ")}catch{return"<unknown>"}}function $(){try{return L.document.location.href}catch{return""}}let P=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,O=["debug","info","warn","error","log","assert","trace"],I={};function R(e){if(!("console"in L))return e();let t=L.console,n={},r=Object.keys(I);r.forEach(e=>{let r=I[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let M=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return P?O.forEach(n=>{t[n]=(...t)=>{e&&R(()=>{L.console[n](`Sentry Logger [${n}]:`,...t)})}}):O.forEach(e=>{t[e]=()=>{}}),t}(),j=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function A(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${a}`}function F(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}
1class H extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function U(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);"function"==typeof o&&q(o,r),e[t]=o}function B(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{P&&M.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function q(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,B(e,"__sentry_original__",t)}catch{}}function Y(e){return e.__sentry_original__}function z(e){if(c(e))return{message:e.message,name:e.name,stack:e.stack,...W(e)};if(!v(e))return e;{let t={type:e.type,target:X(e.target),currentTarget:X(e.currentTarget),...W(e)};return"u">typeof CustomEvent&&y(e,CustomEvent)&&(t.detail=e.detail),t}}function X(e){try{return"u">typeof Element&&y(e,Element)?D(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function W(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function V(e){return function e(t,n){if(function(e){if(!g(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let o={};for(let r of(n.set(t,o),Object.keys(t)))"u">typeof t[r]&&(o[r]=e(t[r],n));return o}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let o=[];return n.set(t,o),t.forEach(t=>{o.push(e(t,n))}),o}return t}(e,new Map)}let G=/\(error: (.*)\)/,J=/captureMessage|captureException/;function K(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let o=[],i=e.split(` 2`);for(let e=n;e<i.length;e++){let n=i[e];if(n.length>1024)continue;let a=G.test(n)?n.replace(G,"$1"):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){o.push(t);break}}if(o.length>=50+r)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(Z(t).function||"")&&t.pop(),t.reverse(),J.test(Z(t).function||"")&&(t.pop(),J.test(Z(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||Z(t).filename,function:e.function||"?"}))}(o.slice(r))}}function Z(e){return e[e.length-1]||{}}let Q="<anonymous>";function ee(e){try{return e&&"function"==typeof e&&e.name||Q}catch{return Q}}function et(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}let en={},er={};function eo(e,t){en[e]=en[e]||[],en[e].push(t)}function ei(e,t){er[e]||(t(),er[e]=!0)}function ea(e,t){let n=e&&en[e];if(n)for(let r of n)try{r(t)}catch(t){P&&M.error(`Error while triggering instrumentation handler. 3Type: ${e} 4Name: ${ee(r)} 5Error:`,t)}}function es(){"console"in L&&O.forEach(function(e){e in L.console&&U(L.console,e,function(t){return I[e]=t,function(...t){ea("console",{args:t,level:e});let n=I[e];
5n&&n.apply(L.console,t)}})})}function el(){if(!("fetch"in L))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function eu(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ec(){return Date.now()/1e3}let ed=function(){let{performance:e}=L;if(!e||!e.now)return ec;let t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();function e_(e,t){return!!e&&"object"==typeof e&&!!e[t]}function ep(e){return"string"==typeof e?e:e?e_(e,"url")?e.url:e.toString?e.toString():"":""}(()=>{let{performance:e}=L;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,i="number"==typeof o?Math.abs(o+t-n):36e5;return r<36e5||i<36e5?r<=i?e.timeOrigin:o:n})();let ef=null;function eh(){ef=L.onerror,L.onerror=function(e,t,n,r,o){return ea("error",{column:r,error:o,line:n,msg:e,url:t}),!!ef&&!ef.__SENTRY_LOADER__&&ef.apply(this,arguments)},L.onerror.__SENTRY_INSTRUMENTED__=!0}let em=null;function eg(){em=L.onunhandledrejection,L.onunhandledrejection=function(e){return ea("unhandledrejection",e),!em||!!em.__SENTRY_LOADER__||em.apply(this,arguments)},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function ev(){let e=L.crypto||L.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function eb(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ey(e){let{message:t,event_id:n}=e;if(t)return t;let r=eb(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ex(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function ew(e,t){let n=eb(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function eE(e){if(e&&e.__sentry_captured__)return!0;try{B(e,"__sentry_captured__",!0)}catch{}return!1}function eS(e){return Array.isArray(e)?e:[e]}function ek(e,t=100,n=1/0){try{return function e(t,n,r=1/0,o=1/0,i=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[a,s]=i;if(null==n||["number","boolean","string"].includes(typeof n)&&!Number.isNaN(n))return n;let u=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("u">typeof l.v&&t===l.v)return"[Global]";if("u">typeof window&&t===window)return"[Window]";if("u">typeof document&&t===document)return"[Document]";if(x(t))return"[VueViewModel]";if(g(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${ee(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!u.startsWith("[object "))return u;if(n.__sentry_skip_normalization__)return n;let c="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===c)return u.replace("object ","");if(a(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,c-1,o,i)}catch{}let d=Array.isArray(n)?[]:{},_=0,p=z(n);for(let t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(_>=o){d[t]="[MaxProperties ~]";break}let n=p[t];d[t]=e(t,n,c-1,o,i),_++}return s(n),d}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function eC(e){return new eL(t=>{t(e)})}function eN(e){return new eL((t,n)=>{n(e)})}(nR=nF||(nF={}
5))[nR.PENDING=0]="PENDING",nR[nR.RESOLVED=1]="RESOLVED",nR[nR.REJECTED=2]="REJECTED";class eL{constructor(e){eL.prototype.__init.call(this),eL.prototype.__init2.call(this),eL.prototype.__init3.call(this),eL.prototype.__init4.call(this),this._state=nF.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new eL((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new eL((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{if(o){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(nF.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(nF.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===nF.PENDING){if(b(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===nF.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===nF.RESOLVED&&e[1](this._value),this._state===nF.REJECTED&&e[2](this._value),e[0]=!0)})}}}function eT(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}let eD=["fatal","error","warning","log","info","debug"],e$=/^sentry-/;function eP(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function eO(e,t=[]){return[e,t]}function eI(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function eR(e){return L.__SENTRY__&&L.__SENTRY__.encodePolyfill?L.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}let eM={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function ej(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function eA(){return{traceId:ev(),spanId:ev().substring(16)}}let eF=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function eH(){return eU(L),L}function eU(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||N,t[N]=t[N]||{}}function eB(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ed(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:ev()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}let eq="_sentrySpan";function eY(e,t){t?B(e,eq,t):delete e[eq]}class ez{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=eA()}clone(){let e=new ez;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,eY(e,this[eq]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&eB(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[n,r]=t instanceof eX?[t.getScopeData(),t.getRequestSession()]:g(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:a,contexts:s,level:l,fingerprint:u=[],propagationContext:c}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,eY(this,void 0),this._attachments=[],this._propagationContext=eA(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:ec(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[eq]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:ev();if(!this._client)return M.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:ev();if(!this._client)return M.warn("No client configured on scope - will not capture message!"),r;let o=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:ev();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):M.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
5h(e=>{e(this)}),this._notifyingListeners=!1)}}let eX=ez;class eW{constructor(e,t){let n,r;n=e||new eX,r=t||new eX,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return b(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function eV(){let e=eU(eH());return e.stack=e.stack||new eW(T("defaultCurrentScope",()=>new eX),T("defaultIsolationScope",()=>new eX))}function eG(e){return eV().withScope(e)}function eJ(e,t){let n=eV();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function eK(e){return eV().withScope(()=>e(eV().getIsolationScope()))}function eZ(e){let t=eU(e);return t.acs?t.acs:{withIsolationScope:eK,withScope:eG,withSetScope:eJ,withSetIsolationScope:(e,t)=>eK(t),getCurrentScope:()=>eV().getScope(),getIsolationScope:()=>eV().getIsolationScope()}}function eQ(){return eZ(eH()).getCurrentScope()}function e0(){return eZ(eH()).getIsolationScope()}function e1(){return T("globalScope",()=>new eX)}function e2(){return eQ().getClient()}function e3(e){return"number"==typeof e?e5(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?e5(e.getTime()):ed()}function e5(e){return e>9999999999?e/1e3:e}function e6(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:r,startTime:o,name:i,endTime:a,parentSpanId:s,status:l}=e;return V({span_id:t,trace_id:n,data:r,description:i,parent_span_id:s,start_timestamp:e3(o),timestamp:e3(a)||void 0,status:function(e){if(!(!e||0===e.code))return 1===e.code?"ok":e.message||"unknown_error"}(l),op:r["sentry.op"],origin:r["sentry.origin"],_metrics_summary:function(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,r]]of t)(n[e]||(n[e]=[])).push(V(r));return n}(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function e4(e){return e._sentryRootSpan||e}let e9="production";function e7(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=V({environment:n.environment||e9,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function e8(e,t){let{extra:n,tags:r,user:o,contexts:i,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:d,propagationContext:_,transactionName:p,span:f}=t;te(e,"extra",n),te(e,"tags",r),te(e,"user",o),te(e,"contexts",i),te(e,"sdkProcessingMetadata",s),a&&(e.level=a),p&&(e.transactionName=p),f&&(e.span=f),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,..._}}function te(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}let tt=new WeakMap,tn=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function tr(e,t){let n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return eQ().captureMessage(e,n,r)}function to(e,t){return eQ().captureEvent(e,t)}function ti(){return!!e2()}function ta(e){let t=e2(),n=e0(),r=eQ(),{release:o,environment:i=e9}=t&&t.getOptions()||{},{userAgent:a}=L.navigator||{},s=function(e){let t=ed(),n={sid:ev(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>V({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&eB(n,e),n}({release:o,environment:i,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),l=n.getSession();return l&&"ok"===l.status&&eB(l,{status:"exited"}),ts(),n.setSession(s),r.setSession(s),s}function ts(){let e;let t=e0(),n=eQ(),r=n.getSession()||t.getSession();r&&(e={},"ok"===r.status&&(e={status:"exited"}),eB(r,e)),tl(),t.setSession(),n.setSession()}function tl(){let e=e0(),t=eQ(),n=e2(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function tu(e=!1){if(e){ts();return}tl()}let tc=[];function td(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function t_(e,t,n){if(n[t.name]){eF&&M.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===tc.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),tc.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}eF&&M.log(`Integration installed: ${t.name}`)}let tp="Not capturing exception because it's already been captured.";class tf{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?function(e){let t=j.exec(e);if(!t){R(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i="",a="",s=""]=t.slice(1),l="",u=s,c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return F({host:i,pass:o,path:l,projectId:u,port:a,protocol:n,publicKey:r})}(e):F(e);if(!(!t||!function(e){if(!P)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(M.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(M.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(M.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(M.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t)))return t}(e.dsn):eF&&M.warn("No DSN provided, client will not send events."),this._dsn){var t,n,r,o;let i=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${Object.keys(o={sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}}).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(o[e])}`).join("&")}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,n){let r=ev();if(eE(e))return eF&&M.log(tp),r;let o={event_id:r,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,r){let o={event_id:ev(),...n},i=h(e)?e:String(e),a=m(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(a.then(e=>this._captureEvent(e,o,r))),o.event_id}captureEvent(e,t,n){let r=ev();if(t&&t.originalException&&eE(t.originalException))return eF&&M.log(tp),r;let o={event_id:r,...t},i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,i||n)),o.event_id}captureSession(e){"string"!=typeof e.release?eF&&M.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),eB(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
5return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):eC(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];t_(this,e,this._integrations),t||td(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var o;let i=ej(n),a=e.type&&"replay_event"!==e.type?e.type:"event";(o=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||o.name,e.sdk.version=e.sdk.version||o.version,e.sdk.integrations=[...e.sdk.integrations||[],...o.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...o.packages||[]]);let s=function(e,t,n,r){let o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:A(r)},...o&&{trace:V({...o})}}}(e,i,r,t);return delete e.sdkProcessingMetadata,eO(s,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e){let t="string"==typeof e.data?eR(e.data):e.data;return[V({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let o=ej(n);return eO({sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:A(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r="number"==typeof n?n:1,o=`${e}:${t}`;eF&&M.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,e=>(eF&&M.error("Error while sending event:",e),e)):(eF&&M.error("Transport disabled"),eC({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&t_(e,t,n)}),n}(this,e),td(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,o=t.exception&&t.exception.values;if(o)for(let e of(r=!0,o)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let i="ok"===e.status;(i&&0===e.errors||i&&n)&&(eB(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new eL(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=e0()){let o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(function(e,t,n,r,o,i){let{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||ev(),timestamp:t.timestamp||ec()},u=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:e9),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=w(e.message,i));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=w(a.value,i));let s=e.request;s&&s.url&&(s.url=w(s.url,i))})(l,e),u.length>0&&(l.sdk=l.sdk||{},l.sdk.integrations=[...l.sdk.integrations||[],...u]),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n;let r=L._sentryDebugIds;if(!r)return;let o=tt.get(t);o?n=o:(n=new Map,tt.set(t,n));let i=Object.entries(r).reduce((e,[r,o])=>{let i;let a=n.get(r);a?i=a:(i=t(r),n.set(r,i));for(let t=i.length-1;t>=0;t--){let n=i[t];if(n.filename){e[n.filename]=o;break}}return e},{});
5try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=i[e.filename])})})}catch{}}(l,e.stackParser);let c=function(e,t){if(!t)return e;let n=e?e.clone():new eX;return n.update(t),n}(r,n.captureContext);n.mechanism&&ew(l,n.mechanism);let d=o?o.getEventProcessors():[],_=e1().getScopeData();i&&e8(_,i.getScopeData()),c&&e8(_,c.getScopeData());let p=[...n.attachments||[],..._.attachments];return p.length&&(n.attachments=p),function(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;(function(e,t){let{extra:n,tags:r,user:o,contexts:i,level:a,transactionName:s}=t,l=V(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let u=V(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let c=V(o);c&&Object.keys(c).length&&(e.user={...c,...e.user});let d=V(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),r&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=e6(e);return V({parent_span_id:r,span_id:t,trace_id:n})}(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:function(e){let t=e2();if(!t)return{};let n=e7(e6(e).trace_id||"",t),r=e4(e),o=r._frozenDsc;if(o)return o;let i=r.spanContext().traceState,a=i&&i.get("sentry.dsc"),s=a&&function(e){let t=function(e){if(!(!e||!f(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(eP(t)).forEach(([t,n])=>{e[t]=n}),e),{}):eP(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(e$)&&(e[t.slice("sentry-".length)]=n),e),{});if(Object.keys(n).length>0)return n}(a);if(s)return s;let l=e6(r),u=l.data||{},c=u["sentry.sample_rate"];null!=c&&(n.sample_rate=`${c}`);let d=u["sentry.source"],_=l.description;return"url"!==d&&_&&(n.transaction=_),n.sampled=String(function(e){let{traceFlags:t}=e.spanContext();return 1===t}(r)),t.emit("createDsc",n,r),n}(t),...e.sdkProcessingMetadata};let n=e6(e4(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),e.fingerprint=e.fingerprint?eS(e.fingerprint):[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...i}}(l,_),(function e(t,n,r,o=0){return new eL((i,a)=>{let s=t[o];if(null===n||"function"!=typeof s)i(n);else{let l=s({...n},r);eF&&s.id&&null===l&&M.log(`Event processor "${s.id}" dropped event`),b(l)?l.then(n=>e(t,n,r,o+1).then(i)).then(null,a):e(t,l,r,o+1).then(i).then(null,a)}})})([...d,..._.eventProcessors],l,n).then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch{}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:ek(e.data,t,n)}}))},...e.user&&{user:ek(e.user,t,n)},...e.contexts&&{contexts:ek(e.contexts,t,n)},...e.extra&&{extra:ek(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ek(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:ek(e.data,t,n)}}))),r}(e,a,s):e))})(o,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:r,parentSpanId:o,dsc:i}=t;e.contexts={trace:V({trace_id:n,span_id:r,parent_span_id:o}),...e.contexts};let a=i||e7(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{eF&&("log"===e.logLevel?M.log(e.message):M.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:o}=r,i=tm(e),a=th(e),s=e.type||"error",l=`before send for type \`${s}\``,u=typeof o>"u"?void 0:function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>
51){eF&&M.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}(o);if(a&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),eN(new H(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));let c="replay_event"===s?"replay":s,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new H("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(b(e))return e.then(e=>{if(!g(e)&&null!==e)throw new H(n);return e},e=>{throw new H(`${t} rejected with ${e}`)});if(!g(e)&&null!==e)throw new H(n);return e}(function(e,t,n,r){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:a}=t;if(th(n)&&o)return o(n,r);if(tm(n)){if(n.spans&&a){let t=[];for(let r of n.spans){let n=a(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(i){if(n.spans){let e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(n,r)}}return n}(this,r,n,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",c,e),i){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new H(`${l} returned \`null\`, will not send event.`,"log")}let o=n&&n.getSession();if(!i&&o&&this._updateSessionFromEvent(o,r),i){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let a=r.transaction_info;return i&&a&&r.transaction!==e.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{throw e instanceof H?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),new H(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 6Reason: ${e}`))})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;eF&&M.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){eF&&M.log("No outcomes to send");return}if(!this._dsn){eF&&M.log("No dsn provided, will not send outcomes");return}eF&&M.log("Sending outcomes:",t);let n=eO((e=this._options.tunnel&&A(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:ec(),discarded_events:t}]]);this.sendEnvelope(n)}}function th(e){return void 0===e.type}function tm(e){return"transaction"===e.type}function tg(e,t){if(!("event"!==t&&"transaction"!==t))return Array.isArray(e)?e[1]:void 0}function tv(e,t){let n=e2(),r=e0();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=100}=n.getOptions();if(i<=0)return;let a={timestamp:ec(),...e},s=o?R(()=>o(a,t)):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,i))}let tb=new WeakMap,ty=()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Y(this),n=tb.has(e2())&&void 0!==t?t:this;return r.apply(n,e)}}catch{}},setup(e){tb.set(e,!0)}}),tx=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],tw=(e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>{var o,i;return((o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:tx],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch{}return!1}(t)?(eF&&M.warn(`Event dropped due to being internal Sentry Error. 7Event: ${ey(t)}`),0):(i=o.ignoreErrors,!t.type&&i&&i.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch{}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(t).some(e=>S(e,i)))?(eF&&M.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 8Event: ${ey(t)}`),0):t.type||!t.exception||!t.exception.values||0===t.exception.values.length||t.message||t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&S(n,t)}(t,o.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=tE(e);return!!n&&S(n,t)}(t,o.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=tE(e);return!n||S(n,t)}(t,o.allowUrls)||(eF&&M.warn(`Event dropped due to not being matched by \`allowUrls\` option. 9Event: ${ey(t)}. 10Url: ${tE(t)}`),0):(eF&&M.warn(`Event dropped due to being matched by \`denyUrls\` option. 11Event: ${ey(t)}. 12Url: ${tE(t)}`),0):(eF&&M.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 13Event: ${ey(t)}`),0):(eF&&M.warn(`Event dropped due to not having an error message, error type or stacktrace. 14Event: ${ey(t)}`),0))?t:null}});function tE(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch{return eF&&M.error(`Cannot extract url for event ${ey(e)}`),null}}let tS=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!tC(e,t)||!tk(e,t))}(t,n)||function(e,t){let n=tN(t),r=tN(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!tC(e,t)||!tk(e,t))}(t,n)))return eF&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function tk(e,t){let n=et(e),r=et(t);if(!n&&!r)return!0;
14if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function tC(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return n.join("")===r.join("")}catch{return!1}}function tN(e){return e.exception&&e.exception.values&&e.exception.values[0]}function tL(e,t={},n=eQ()){let{message:r,name:o,email:i,url:a,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:V({contact_email:i,name:o,message:r,url:a,source:s,associated_event_id:l})},type:"feedback",level:"info",tags:u},d=n&&n.getClient()||e2();return d&&d.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}let tT=0;function tD(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(Y(e))return e}catch{return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let o=r.map(e=>tD(e,t));return e.apply(this,o)}catch(e){throw tT++,setTimeout(()=>{tT--}),function(...e){let t=eZ(eH());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}(n=>{n.addEventProcessor(e=>(t.mechanism&&(ex(e,void 0,void 0),ew(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),eQ().captureException(e,function(e){if(e)return e instanceof eX||"function"==typeof e?{captureContext:e}:Object.keys(e).some(e=>tn.includes(e))?{captureContext:e}:e}(void 0))}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}q(r,e),B(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}let t$=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function tP(e,t){let n=tI(e,t),r={type:t&&t.name,value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tO(e,t){return{exception:{values:[tP(e,t)]}}}function tI(e,t){let n=t.stacktrace||t.stack||"",r=t&&tR.test(t.message)?1:0,o="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,o)}catch{}return[]}let tR=/Minified React error #\d+;/i;function tM(e,t,n,r,o){let i;if(_(t)&&t.error)return tO(e,t.error);if(p(t)||d(t,"DOMException")){if("stack"in t)i=tO(e,t);else{let o=t.name||(p(t)?"DOMError":"DOMException"),a=t.message?`${o}: ${t.message}`:o;ex(i=tj(e,a,n,r),a)}return"code"in t&&(i.tags={...i.tags,"DOMException.code":`${t.code}`}),i}return c(t)?tO(e,t):(g(t)||v(t)?ew(i=function(e,t,n,r){let o=e2(),i=o&&o.getOptions().normalizeDepth,a=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:function e(t,n=3,r=102400){let o=ek(t,n);return~-encodeURI(JSON.stringify(o)).split(/%..|./).length>r?e(t,n-1,r):o}(t,i)};if(a)return{exception:{values:[tP(e,a)]},extra:s};let l={exception:{values:[{type:v(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(z(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return w(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:w(r,t)}return""}(e),r=t?"promise rejection":"exception";return _(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:v(e)?`Event \`${function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=tI(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,o),{synthetic:!0}):(ex(i=tj(e,t,n,r),`${t}`,void 0),ew(i,{synthetic:!0})),i)}function tj(e,t,n,r){let o={};if(r&&n){let r=tI(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}
14if(h(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}class tA extends tf{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e};(function(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:N})),version:N}),e._metadata=o})(t,"browser",["browser"],L.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&L.document&&L.document.addEventListener("visibilitychange",()=>{"hidden"===L.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let o=tM(e,t,n&&n.syntheticException||void 0,r);return ew(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),eC(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){let i=tj(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),eC(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){t$&&M.warn("SDK not enabled, will not capture user feedback.");return}let t=function(e,{metadata:t,tunnel:n,dsn:r}){return eO({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:A(r)}},[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}let tF=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function tH(){if(!L.document)return;let e=ea.bind(null,"dom"),t=tU(e,!0);L.document.addEventListener("click",t,!1),L.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=L[t]&&L[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(U(n,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){let r=tU(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch{}return t.call(this,n,r,o)}}),U(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function tU(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch{return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||!("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable)))return;B(n,"_sentryCaptured",!0),r&&!r._sentryId&&B(r,"_sentryId",ev());let s="keypress"===n.type?"input":n.type;(function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0})(n)||(e({event:n,name:s,global:t}),i=n.type,a=r?r._sentryId:void 0),clearTimeout(o),o=L.setTimeout(()=>{a=void 0,i=void 0},1e3)}}function tB(e){let t="history";eo(t,e),ei(t,tq)}function tq(){if(!function(){let e=L.chrome,t=e&&e.app&&e.app.runtime,n="history"in L&&!!L.history.pushState&&!!L.history.replaceState;return!t&&n}())return;let e=L.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=s,t=String(n);s=t,ea("history",{from:e,to:t})}return e.apply(this,t)}}L.onpopstate=function(...t){let n=L.location.href,r=s;if(s=n,ea("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},U(L.history,"pushState",t),U(L.history,"replaceState",t)}let tY={},tz="__sentry_xhr_v3__";function tX(){if(!L.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=1e3*ed(),o=f(n[0])?n[0].toUpperCase():void 0,i=function(e){if(f(e))return e;try{return e.toString()}catch{}}(n[1]);if(!o||!i)return e.apply(t,n);t[tz]={method:o,url:i,request_headers:{}}
14,"POST"===o&&i.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let a=()=>{let e=t[tz];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}ea("xhr",{endTimestamp:1e3*ed(),startTimestamp:r,xhr:t})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,o]=n,i=t[tz];return i&&f(r)&&f(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[tz];return r&&(void 0!==n[0]&&(r.body=n[0]),ea("xhr",{startTimestamp:1e3*ed(),xhr:t})),e.apply(t,n)}})}function tW(e,t=function(e){let t=tY[e];if(t)return t;let n=L[e];if(eu(n))return tY[e]=n.bind(L);let r=L.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let o=t.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){tF&&M.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(tY[e]=n.bind(L))}("fetch")){let n=0,r=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return eN(new H("Not adding Promise because buffer limit was reached."));let o=r();return -1===t.indexOf(o)&&t.push(o),o.then(()=>n(o)).then(null,()=>n(o).then(null,()=>{})),o},drain:function(e){return new eL((n,r)=>{let o=t.length;if(!o)return n(!0);let i=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{eC(e).then(()=>{--o||(clearTimeout(i),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(o){let i=[];if(eI(o,(t,n)=>{let o=eM[n];if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(r,o)){let r=tg(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)}),0===i.length)return eC({});let a=eO(o[0],i),s=t=>{eI(a,(n,r)=>{let o=tg(n,r);e.recordDroppedEvent(t,eM[r],o)})};return n.add(()=>t({body:function(e){let[t,n]=e,r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[eR(r),e]:r.push("string"==typeof e?eR(e):e)}for(let e of n){let[t,n]=e;if(o(` 15${JSON.stringify(t)} 16`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(ek(n))}o(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&eF&&M.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,n,,,i]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(o[e]=r+s):o[e]=r+s;else o.all=r+s}else a?o.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(o.all=r+6e4);return o}(r,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>{if(e instanceof H)return eF&&M.error("Skipped sending event because buffer is full."),s("queue_overflow"),eC({});throw e})},flush:e=>n.drain(e)}}(e,function(o){let i=o.body.length;n+=i,r++;let a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return tY.fetch=void 0,eN("No fetch implementation available");try{return t(e.url,a).then(e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return tY.fetch=void 0,n-=i,r--,eN(e)}})}function tV(e,t,n,r){let o={filename:e,function:"<anonymous>"===t?"?":t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}let tG=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tJ=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tK=/\((\S*)(?::(\d+))(?::(\d+))\)/,tZ=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tQ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,t0=K([30,e=>{let t=tG.exec(e);if(t){let[,e,n,r]=t;return tV(e,"?",+n,+r)}let n=tJ.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=tK.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=t1(n[1]||"?",n[2]);return tV(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{let t=tZ.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tQ.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=t1(n,e),tV(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),t1=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}
16,t2=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){let t="console";eo(t,e),ei(t,es)}(function(t){var n;if(e2()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":eD.includes(n)?n:"log",message:E(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${E(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}tv(r,{input:t.args,level:t.level})}),t.dom&&(eo("dom",(n=t.dom,function(t){if(e2()!==e)return;let r,o,i="object"==typeof n?n.serializeAttribute:void 0,a="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;a&&a>1024&&(t$&&M.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof i&&(i=[i]);try{let e=t.event,n=e&&e.target?e.target:e;r=D(n,{keyAttrs:i,maxStringLength:a}),o=function(e){if(!L.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(n)}catch{r="<unknown>"}if(0===r.length)return;let s={category:`ui.${t.name}`,message:r};o&&(s.data={"ui.component_name":o}),tv(s,{event:t.event,name:t.name,global:t.global})})),ei("dom",tH)),t.xhr&&(eo("xhr",function(t){if(e2()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[tz];if(!n||!r||!o)return;let{method:i,url:a,status_code:s,body:l}=o;tv({category:"xhr",data:{method:i,url:a,status_code:s},type:"http"},{xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r})}),ei("xhr",tX)),t.fetch&&function(e,t){let n="fetch";eo(n,e),ei(n,()=>(function(e,t=!1){t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!el())return!1;if(eu(L.fetch))return!0;let e=!1,t=L.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");
16n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=eu(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){P&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||U(L,"fetch",function(t){return function(...n){let{method:r,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:ep(t),method:e_(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:ep(t),method:e_(t,"method")?String(t.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:r,url:o},startTimestamp:1e3*ed()};e||ea("fetch",{...i});let a=Error().stack;return t.apply(L,n).then(async t=>(e?e(t):ea("fetch",{...i,endTimestamp:1e3*ed(),response:t}),t),e=>{throw ea("fetch",{...i,endTimestamp:1e3*ed(),error:e}),c(e)&&void 0===e.stack&&(e.stack=a,B(e,"framesToPop",1)),e})}})})(void 0,void 0))}(function(t){if(e2()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error)tv({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{let e=t.response;tv({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}),t.history&&tB(function(t){if(e2()!==e)return;let n=t.from,r=t.to,o=eT(L.location.href),i=n?eT(n):void 0,a=eT(r);i&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),tv({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){e2()===e&&tv({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:ey(t)},{event:t})})}}},t3=["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"],t5=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&U(L,"setTimeout",t6),t.setInterval&&U(L,"setInterval",t6),t.requestAnimationFrame&&U(L,"requestAnimationFrame",t4),t.XMLHttpRequest&&"XMLHttpRequest"in L&&U(XMLHttpRequest.prototype,"send",t9);let e=t.eventTarget;e&&(Array.isArray(e)?e:t3).forEach(t7)}}};function t6(e){return function(...t){let n=t[0];return t[0]=tD(n,{mechanism:{data:{function:ee(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function t4(e){return function(t){return e.apply(this,[tD(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ee(e)},handled:!1,type:"instrument"}})])}}function t9(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&U(n,e,function(t){let n={mechanism:{data:{function:e,handler:ee(t)},handled:!1,type:"instrument"}},r=Y(t);return r&&(n.mechanism.data.handler=ee(r)),tD(t,n)})}),e.apply(this,t)}}function t7(e){let t=L[e]&&L[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(U(t,"addEventListener",function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=tD(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ee(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,tD(r,{mechanism:{data:{function:"addEventListener",handler:ee(r),target:e},handled:!1,type:"instrument"}}),o])}}),U(t,"removeEventListener",function(e){return function(t,n,r){try{let o=n&&n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}}))}let t8=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){let t="error";eo(t,e),ei(t,eh)}(t=>{let{stackParser:n,attachStacktrace:r}=nt();if(e2()!==e||tT>0)return;let{msg:o,url:i,line:a,column:s,error:l}=t,u=function(e,t,n,r){let o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,d=f(t)&&t.length>0?t:$();return 0===l.length&&l.push({colno:u,filename:d,function:"?",in_app:!0,lineno:c}),e}(tM(n,l||o,void 0,r,!1),i,a,s);u.level="error",to(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),ne("onerror")),t.onunhandledrejection&&(function(e){let t="unhandledrejection";eo(t,e),ei(t,eg)}(t=>{let{stackParser:n,attachStacktrace:r}=nt();if(e2()!==e||tT>0)return;let o=function(e){if(m(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),i=m(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:tM(n,o,void 0,r,!0);i.level="error",to(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}),ne("onunhandledrejection"))}}};function ne(e){t$&&M.log(`Global Handler attached: ${e}`)}function nt(){let e=e2();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let nn=()=>({name:"HttpContext",preprocessEvent(e){if(!L.navigator&&!L.location&&!L.document)return;let t=e.request&&e.request.url||L.location&&L.location.href,{referrer:n}=L.document||{},{userAgent:r}=L.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),nr=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){let i=o.getOptions();!function(e,t,n=250,r,o,i,a){if(!i.exception||!i.exception.values||!a||!y(a.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=(function e(t,n,r,o,i,a,s,l){if(a.length>=r+1)return a;let u=[...a];if(y(o[i],Error)){k(s,l);let a=t(n,o[i]),c=u.length;C(a,i,c,l),u=e(t,n,r,o[i],i,[a,...u],a,c)}
16return Array.isArray(o.errors)&&o.errors.forEach((o,a)=>{if(y(o,Error)){k(s,l);let c=t(n,o),d=u.length;C(c,`errors[${a}]`,d,l),u=e(t,n,r,o,i,[c,...u],c,d)}}),u})(e,t,o,a.originalException,r,i.exception.values,s,0).map(e=>(e.value&&(e.value=w(e.value,n)),e)))}(tP,i.stackParser,i.maxValueLength,n,t,e,r)}}};function no(e={}){var t;let n=function(e={}){let t={defaultIntegrations:[tw(),ty(),t5(),t2(),t8(),nr(),tS(),nn()],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:L.SENTRY_RELEASE&&L.SENTRY_RELEASE.id?L.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(function(){let e="u">typeof L.window&&L;if(!e)return!1;let t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,o=L.location&&L.location.href||"",i=!!r&&L===L.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>o.startsWith(`${e}//`)),a="u">typeof e.nw;return!!r&&!i&&!a}()){R(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}t$&&(el()||M.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));let r=function(e,t){!0===t.debug&&(eF?M.enable():R(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),eQ().update(t.initialScope);let n=new e(t);return eQ().setClient(n),n.init(),n}(tA,{...n,stackParser:Array.isArray(t=n.stackParser||t0)?K(...t):t,integrations:function(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(Array.isArray(n)?[...t,...n]:"function"==typeof n?eS(n(t)):t),o=r.findIndex(e=>"Debug"===e.name);if(o>-1){let[e]=r.splice(o,1);r.push(e)}return r}(n),transport:n.transport||tW});return n.autoSessionTracking&&function(){if(typeof L.document>"u"){t$&&M.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}ta({ignoreDuration:!0}),tu(),tB(({from:e,to:t})=>{void 0!==e&&e!==t&&(ta({ignoreDuration:!0}),tu())})}(),r}let ni={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"};async function na(e,t){let n=ni[e],r=L.Sentry=L.Sentry||{};if(!n)throw Error(`Cannot lazy load integration: ${e}`);let o=r[e];if("function"==typeof o&&!("_isShim"in o))return o;let i=function(e){let t=e2(),n=t&&t.getOptions();return new URL(`/${N}/${e}.min.js`,n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com").toString()}(n),a=L.document.createElement("script");a.src=i,a.crossOrigin="anonymous",a.referrerPolicy="origin",t&&a.setAttribute("nonce",t);let s=new Promise((e,t)=>{a.addEventListener("load",()=>e()),a.addEventListener("error",t)});L.document.body.appendChild(a);try{await s}catch{throw Error(`Error when loading integration: ${e}`)}let l=r[e];if("function"!=typeof l)throw Error(`Could not load integration: ${e}`);return l}let ns=L.document,nl=L.navigator,nu="Report a Bug",nc="Cancel",nd="Send Bug Report",n_="Confirm",np="Report a Bug",nf="[email protected]",nh="Email",nm="What's the bug? What did you expect?",ng="Description",nv="Your Name",nb="Name",ny="Thank you for your report!",nx="(required)",nw="Add a screenshot",nE="Remove screenshot",nS=(e,t={includeReplay:!0})=>{if(!e.message)throw Error("Unable to submit feedback with empty message");let n=e2();if(!n)throw Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&eQ().setTags(e.tags);let r=tL({source:"api",url:$(),...e},t);return new Promise((e,t)=>
16{let o=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),5e3),i=n.on("afterSendEvent",(n,a)=>{if(n.event_id===r)return clearTimeout(o),i(),a&&"number"==typeof a.statusCode&&a.statusCode>=200&&a.statusCode<300&&e(r),a&&"number"==typeof a.statusCode&&0===a.statusCode?t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):a&&"number"==typeof a.statusCode&&403===a.statusCode?t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")})})},nk=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nC(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function nN(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}let nL="rgba(88, 74, 192, 1)",nT={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:nL,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},nD={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:nL,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function n$(e){return` 17 --foreground: ${e.foreground}; 18 --background: ${e.background}; 19 --accent-foreground: ${e.accentForeground}; 20 --accent-background: ${e.accentBackground}; 21 --success-color: ${e.successColor}; 22 --error-color: ${e.errorColor}; 23 --border: ${e.border}; 24 --box-shadow: ${e.boxShadow}; 25 --outline: ${e.outline}; 26 --interactive-filter: ${e.interactiveFilter}; 27 `}var nP,nO,nI,nR,nM,nj,nA,nF,nH,nU,nB,nq,nY,nz,nX,nW={},nV=[],nG=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,nJ=Array.isArray;function nK(e,t){for(var n in t)e[n]=t[n];return e}function nZ(e){var t=e.parentNode;t&&t.removeChild(e)}function nQ(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?nH.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return n0(e,a,r,o,null)}function n0(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++nB,__i:-1,__u:0};return null==o&&null!=nU.vnode&&nU.vnode(i),i}function n1(e){return e.children}function n2(e,t){this.props=e,this.context=t}function n3(e,t){if(null==t)return e.__?n3(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?n3(e):null}function n5(e){(!e.__d&&(e.__d=!0)&&nq.push(e)&&!n6.__r++||nY!==nU.debounceRendering)&&((nY=nU.debounceRendering)||nz)(n6)}function n6(){var e,t,n,r=[],o=[];for(nq.sort(nX);e=nq.shift();)e.__d&&(n=nq.length,t=function(e,t,n){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=nK({},o)).__v=o.__v+1,nU.vnode&&nU.vnode(r),rt(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,i??n3(o),!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}(e,r,o)||t,0===n||nq.length>n?(rn(r,t,o),o.length=r.length=0,t=void 0,nq.sort(nX)):t&&nU.__c&&nU.__c(t,nV));t&&rn(r,t,o),n6.__r=0}function n4(e,t,n,r,o,i,a,s,l,u,c){var d,_,p,f,h,m=r&&r.__k||nV,g=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?n0(null,o,null,null,o):nJ(o)?n0(n1,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?n0(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=function(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];
vendor: 11,116 bytes, line 27
27if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return -1}(o,n,a=r+d,c),o.__i=s,i=null,-1!==s&&(c--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?c>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=n3(i)),ro(i,i,!1),n[r]=null,c--);if(c)for(r=0;r<u;r++)null==(i=n[r])||131072&i.__u||(i.__e==e.__d&&(e.__d=n3(i)),ro(i,i))}(n,t,m),l=n.__d,d=0;d<g;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(_=-1===p.__i?nW:m[p.__i]||nW,p.__i=d,rt(e,p,_,o,i,a,s,l,u,c),f=p.__e,p.ref&&_.ref!=p.ref&&(_.ref&&rr(_.ref,null,p),c.push(p.ref,p.__c||f,p)),null==h&&null!=f&&(h=f),65536&p.__u||_.__k===p.__k?l=function e(t,n,r){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,n=e(o[i],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType);return n}(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:f&&(l=f.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=h}function n9(e,t,n){"-"===t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||nG.test(t)?n:n+"px"}function n7(e,t,n,r,o){var i;e:if("style"===t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||n9(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||n9(e.style,t,n[t])}}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase() in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?re:n8,i)):e.removeEventListener(t,i?re:n8,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=n??"";break e}catch{}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function n8(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(nU.event?nU.event(e):e)}}function re(e){if(this.l)return this.l[e.type+!0](nU.event?nU.event(e):e)}function rt(e,t,n,r,o,i,a,s,l,u){var c,d,_,p,f,h,m,g,v,b,y,x,w,E,S,k=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(c=nU.__b)&&c(t);e:if("function"==typeof k)try{if(g=t.props,v=(c=k.contextType)&&r[c.__c],b=c?v?v.props.value:c.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?t.__c=d=new k(g,b):(t.__c=d=new n2(g,b),d.constructor=k,d.render=ri),v&&v.sub(d),d.props=g,d.state||(d.state={}),d.context=b,d.__n=r,_=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=k.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=nK({},d.__s)),nK(d.__s,k.getDerivedStateFromProps(g,d.__s))),p=d.props,f=d.state,d.__v=t,_)null==k.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==k.getDerivedStateFromProps&&g!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),y=0;y<d._sb.length;y++)d.__h.push(d._sb[y]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,f,h)})}if(d.context=b,d.props=g,d.__P=e,d.__e=!1,x=nU.__r,w=0,"prototype"in k&&k.prototype.render){for(d.state=d.__s,d.__d=!1,x&&x(t),c=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do d.__d=!1,x&&x(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(r=nK(nK({},r),d.getChildContext())),_||null==d.getSnapshotBeforeUpdate||(h=d.getSnapshotBeforeUpdate(p,f)),n4(e,nJ(S=null!=c&&c.type===n1&&null==c.key?c.props.children:c)?S:[S],t,n,r,o,i,a,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),nU.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,s,l){var u,c,d,_,p,f,h,m=n.props,g=t.props,v=t.type;if("svg"===v&&(o=!0),null!=i){for(u=0;u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!v&&(v?p.localName===v:3===p.nodeType)){e=p,i[u]=null;break}}if(null==e){if(null===v)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),i=null,s=!1}if(null===v)m===g||s&&e.data===g||(e.data=g);else{if(i=i&&nH.call(e.childNodes),m=n.props||nW,!s&&null!=i)for(m={},u=0;u<e.attributes.length;u++)m[(p=e.attributes[u]).name]=p.value;for(u in m)p=m[u],"children"==u||("dangerouslySetInnerHTML"==u?d=p:"key"===u||u in g||n7(e,u,null,p,o));for(u in g)p=g[u],"children"==u?_=p:"dangerouslySetInnerHTML"==u?c=p:"value"==u?f=p:"checked"==u?h=p:"key"===u||s&&"function"!=typeof p||m[u]===p||n7(e,u,p,m[u],o);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),n4(e,nJ(_)?_:[_],t,n,r,o&&"foreignObject"!==v,i,a,i?i[0]:n.__k&&n3(n,0),s,l),null!=i)for(u=i.length;u--;)null!=i[u]&&nZ(i[u]);s||(u="value",void 0===f||f===e[u]&&("progress"!==v||f)&&("option"!==v||f===m[u])||n7(e,u,f,m[u],!1),u="checked",void 0!==h&&h!==e[u]&&n7(e,u,h,m[u],!1))}return e}(n.__e,t,n,r,o,i,a,l,u);(c=nU.diffed)&&c(t)}function rn(e,t,n){for(var r=0;r<n.length;r++)rr(n[r],n[++r],n[++r]);nU.__c&&nU.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){nU.__e(e,t.__v)}})}function rr(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){nU.__e(e,n)}}function ro(e,t,n){var r,o;if(nU.unmount&&nU.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||rr(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){nU.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ro(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||nZ(e.__e),e.__=e.__e=e.__d=void 0}function ri(e,t,n){return this.constructor(e,n)}nH=nV.slice,nU={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},nB=0,n2.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=nK({},this.state),"function"==typeof e&&(e=e(nK({},n),this.props)),e&&nK(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),n5(this))},n2.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),n5(this))},n2.prototype.render=n1,nq=[],nz="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,nX=function(e,t){return e.__v.__b-t.__v.__b},n6.__r=0;var ra,rs,rl,ru,rc=0,rd=[],r_=[],rp=nU,rf=rp.__b,rh=rp.__r,rm=rp.diffed,rg=rp.__c,rv=rp.unmount,rb=rp.__;function ry(e,t){rp.__h&&rp.__h(rs,e,rc||t),rc=0;var n=rs.__H||(rs.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:r_}),n.__[e]}function rx(e){return rc=1,rw(r$,e)}function rw(e,t,n){var r=ry(ra++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):r$(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=rs,!rs.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,n);var a=!1;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};rs.u=!0;var i=rs.shouldComponentUpdate,a=rs.componentWillUpdate;rs.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},rs.shouldComponentUpdate=o}return r.__N||r.__}function rE(e,t){var n=ry(ra++,4);!rp.__s&&rD(n.__H,t)&&(n.__=e,n.i=t,rs.__h.push(n))}function rS(e,t){var n=ry(ra++,7);return rD(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function rk(e,t){return rc=8,rS(function(){return e},t)}function rC(){for(var e;e=rd.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(rL),e.__H.__h.forEach(rT),e.__H.__h=[]}catch(t){e.__H.__h=[],rp.__e(t,e.__v)}}rp.__b=function(e){rs=null,rf&&rf(e)},rp.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rb&&rb(e,t)},rp.__r=function(e){rh&&rh(e),ra=0;var t=(rs=e.__c).__H;t&&(rl===rs?(t.__h=[],rs.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=r_,e.__N=e.i=void 0})):(t.__h.forEach(rL),t.__h.forEach(rT),t.__h=[],ra=0)),rl=rs},rp.diffed=function(e){rm&&rm(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==rd.push(t)&&ru===rp.requestAnimationFrame||((ru=rp.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),rN&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);rN&&(t=requestAnimationFrame(n))})(rC)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==r_&&(e.__=e.__V),e.i=void 0,e.__V=r_})),rl=rs=null},rp.__c=function(e,t){t.some(function(e){try{e.__h.forEach(rL),e.__h=e.__h.filter(function(e){return!e.__||rT(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],rp.__e(n,e.__v)}}),rg&&rg(e,t)},rp.unmount=function(e){rv&&rv(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{rL(e)}catch(e){t=e}}),n.__H=void 0,t&&rp.__e(t,n.__v))};var rN="function"==typeof requestAnimationFrame;function rL(e){var t=rs,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),rs=t}function rT(e){var t=rs;e.__c=e.__(),rs=t}function rD(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function r$(e,t){return"function"==typeof t?t(e):t}let rP={__proto__:null,useCallback:rk,useContext:function(e){var t=rs.context[e.__c],n=ry(ra++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(rs)),t.props.value):e.__},useDebugValue:function(e,t){rp.useDebugValue&&rp.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=ry(ra++,3);!rp.__s&&rD(n.__H,t)&&(n.__=e,n.i=t,rs.__H.__h.push(n))},useErrorBoundary:function(e){var t=ry(ra++,10),n=rx();return t.__=e,rs.componentDidCatch||(rs.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=ry(ra++,11);if(!e.__){for(var t=rs.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){rc=6,rE(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))}
27,useLayoutEffect:rE,useMemo:rS,useReducer:rw,useRef:function(e){return rc=5,rS(function(){return{current:e}},[])},useState:rx},rO="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function rI({options:e}){let t=rS(()=>({__html:function(){let e=e=>ns.createElementNS("http://www.w3.org/2000/svg",e),t=nN(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=nN(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}().outerHTML}),[]);return nQ("h2",{class:"dialog__header",__self:this,__source:{fileName:rO,lineNumber:16}},e.formTitle,e.showBranding?nQ("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:rO,lineNumber:19}}):null)}let rR="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function rM(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}function rj({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:a,showEmail:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:_,cancelButtonLabel:p,emailLabel:f,emailPlaceholder:h,isEmailRequired:m,isNameRequired:g,messageLabel:v,messagePlaceholder:b,nameLabel:y,namePlaceholder:x,submitButtonLabel:w,isRequiredLabel:E}=e,[S,k]=rx(null),[C,N]=rx(!1),L=u&&u.input,[T,D]=rx(null),$=rk(e=>{D(e),N(!1)},[]),P=rk(e=>{let t=function(e,t){let n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:f,isEmailRequired:m,isNameRequired:g,messageLabel:v,nameLabel:y});return t.length>0?k(`Please enter in the following required fields: ${t.join(", ")}`):k(null),0===t.length},[f,m,g,v,y]);return nQ("form",{class:"form",onSubmit:rk(async e=>{try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (u&&C?u.value():void 0),r={name:rM(t,"name"),email:rM(t,"email"),message:rM(t,"message"),attachments:n?[n]:void 0};if(!P(r))return;try{await o({name:r.name,email:r.email,message:r.message,source:"widget",tags:c},{attachments:r.attachments}),i(r)}catch(e){nk&&M.error(e),k(e),a(e)}}catch{}},[u&&C,i,a]),__self:this,__source:{fileName:rR,lineNumber:144}},L&&C?nQ(L,{onError:$,__self:this,__source:{fileName:rR,lineNumber:146}}):null,nQ("div",{class:"form__right","data-sentry-feedback":!0,__self:this,__source:{fileName:rR,lineNumber:149}},nQ("div",{class:"form__top",__self:this,__source:{fileName:rR,lineNumber:150}},S?nQ("div",{class:"form__error-container",__self:this,__source:{fileName:rR,lineNumber:151}},S):null,l?nQ("label",{for:"name",class:"form__label",__self:this,__source:{fileName:rR,lineNumber:154}},nQ(rA,{label:y,isRequiredLabel:E,isRequired:g,__self:this,__source:{fileName:rR,lineNumber:155}}),nQ("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:x,required:g,type:"text",__self:this,__source:{fileName:rR,lineNumber:156}})):nQ("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden",__self:this,__source:{fileName:rR,lineNumber:167}}),s?nQ("label",{for:"email",class:"form__label",__self:this,__source:{fileName:rR,lineNumber:171}},nQ(rA,{label:f,isRequiredLabel:E,isRequired:m,__self:this,__source:{fileName:rR,lineNumber:172}}),nQ("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:h,required:m,type:"email",__self:this,__source:{fileName:rR,lineNumber:173}})):nQ("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:rR,lineNumber:184}}),nQ("label",{for:"message",class:"form__label",__self:this,__source:{fileName:rR,lineNumber:187}},nQ(rA,{label:v,isRequiredLabel:E,isRequired:!0,__self:this,__source:{fileName:rR,lineNumber:188}}),nQ("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5,__self:this,__source:{fileName:rR,lineNumber:189}})),L?nQ("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:rR,lineNumber:201}},nQ("button",{class:"btn btn--default",type:"button",onClick:()=>{D(null),N(e=>!e)},__self:this,__source:{fileName:rR,lineNumber:202}},C?_:d),T?nQ("div",{class:"form__error-container",__self:this,__source:{fileName:rR,lineNumber:212}},T.message):null):null),nQ("div",{class:"btn-group",__self:this,__source:{fileName:rR,lineNumber:216}},nQ("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:rR,lineNumber:217}},w),nQ("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:rR,lineNumber:220}},p))))}function rA({label:e,isRequired:t,isRequiredLabel:n}){return nQ("span",{class:"form__label__text",__self:this,__source:{fileName:rR,lineNumber:239}},e,t&&nQ("span",{class:"form__label__text--required",__self:this,__source:{fileName:rR,lineNumber:241}},n))}let rF="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src
27/modal/components/Dialog.tsx";function rH({open:e,onFormSubmitted:t,...n}){let r=n.options,o=rS(()=>({__html:function(){let e=e=>L.document.createElementNS("http://www.w3.org/2000/svg",e),t=nN(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=nN(e("g"),{clipPath:"url(#clip0_57_156)"}),r=nN(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=nN(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);let i=e("defs"),a=nN(e("clipPath"),{id:"clip0_57_156"}),s=nN(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(s),t}().outerHTML}),[]),[i,a]=rx(null),s=rk(()=>{i&&(clearTimeout(i),a(null)),t()},[i]),l=rk(e=>{n.onSubmitSuccess(e),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return nQ(n1,{__self:this,__source:{fileName:rF,lineNumber:48}},i?nQ("div",{class:"success__position",onClick:s,__self:this,__source:{fileName:rF,lineNumber:50}},nQ("div",{class:"success__content",__self:this,__source:{fileName:rF,lineNumber:51}},r.successMessageText,nQ("span",{class:"success__icon",dangerouslySetInnerHTML:o,__self:this,__source:{fileName:rF,lineNumber:53}}))):nQ("dialog",{class:"dialog",onClick:r.onFormClose,open:e,__self:this,__source:{fileName:rF,lineNumber:57}},nQ("div",{class:"dialog__position",__self:this,__source:{fileName:rF,lineNumber:58}},nQ("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()},__self:this,__source:{fileName:rF,lineNumber:59}},nQ(rI,{options:r,__self:this,__source:{fileName:rF,lineNumber:66}}),nQ(rj,{...n,onSubmitSuccess:l,__self:this,__source:{fileName:rF,lineNumber:67}})))))}let rU=` 28.dialog { 29 position: fixed; 30 z-index: var(--z-index); 31 margin: 0; 32 inset: 0; 33 34 display: flex; 35 align-items: center; 36 justify-content: center; 37 padding: 0; 38 height: 100vh; 39 width: 100vw; 40 41 color: var(--dialog-color, var(--foreground)); 42 fill: var(--dialog-color, var(--foreground)); 43 line-height: 1.75em; 44 45 background-color: rgba(0, 0, 0, 0.05); 46 border: none; 47 inset: 0; 48 opacity: 1; 49 transition: opacity 0.2s ease-in-out; 50} 51 52.dialog__position { 53 position: fixed; 54 z-index: var(--z-index); 55 inset: var(--dialog-inset); 56 padding: var(--page-margin); 57 display: flex; 58 max-height: calc(100vh - (2 * var(--page-margin))); 59} 60@media (max-width: 600px) { 61 .dialog__position { 62 inset: var(--page-margin); 63 padding: 0; 64 } 65} 66 67.dialog__position:has(.editor) { 68 inset: var(--page-margin); 69 padding: 0; 70} 71 72.dialog:not([open]) { 73 opacity: 0; 74 pointer-events: none; 75 visibility: hidden; 76} 77.dialog:not([open]) .dialog__content { 78 transform: translate(0, -16px) scale(0.98); 79} 80 81.dialog__content { 82 display: flex; 83 flex-direction: column; 84 gap: 16px; 85 padding: var(--dialog-padding, 24px); 86 max-width: 100%; 87 width: 100%; 88 max-height: 100%; 89 overflow: auto; 90 91 background: var(--dialog-background, var(--background)); 92 border-radius: var(--dialog-border-radius, 20px); 93 border: var(--dialog-border, var(--border));
94 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 95 transform: translate(0, 0) scale(1); 96 transition: transform 0.2s ease-in-out; 97} 98`,rB=` 99.dialog__header { 100 display: flex; 101 align-items: center; 102 justify-content: space-between; 103 font-weight: var(--dialog-header-weight, 600); 104 margin: 0; 105} 106 107.brand-link { 108 display: inline-flex; 109} 110.brand-link:focus-visible { 111 outline: var(--outline); 112} 113`,rq=` 114.form { 115 display: flex; 116 overflow: auto; 117 flex-direction: row; 118 gap: 16px; 119 flex: 1 0; 120} 121 122.form__right { 123 flex: 0 0 var(--form-width, 272px); 124 width: var(--form-width, 272px); 125 display: flex; 126 overflow: auto; 127 flex-direction: column; 128 justify-content: space-between; 129 gap: 20px; 130} 131 132@media (max-width: 600px) { 133 .form__right { 134 width: auto; 135 } 136} 137 138.form__top { 139 display: flex; 140 flex-direction: column; 141 gap: 8px; 142} 143 144.form__error-container { 145 color: var(--error-color); 146 fill: var(--error-color); 147} 148 149.form__label { 150 display: flex; 151 flex-direction: column; 152 gap: 4px; 153 margin: 0px; 154} 155 156.form__label__text { 157 display: flex; 158 gap: 4px; 159 align-items: center; 160} 161 162.form__label__text--required { 163 font-size: 0.85em; 164} 165 166.form__input { 167 font-family: inherit; 168 line-height: inherit; 169 background: transparent; 170 box-sizing: border-box; 171 border: var(--input-border, var(--border)); 172 border-radius: var(--input-border-radius, 6px); 173 color: var(--input-color, inherit); 174 fill: var(--input-color, inherit); 175 font-size: var(--input-font-size, inherit); 176 font-weight: var(--input-font-weight, 500); 177 padding: 6px 12px; 178} 179 180.form__input::placeholder { 181 opacity: 0.65; 182 color: var(--input-placeholder-color, inherit); 183 filter: var(--interactive-filter); 184} 185 186.form__input:focus-visible { 187 outline: var(--input-focus-outline, var(--outline)); 188} 189 190.form__input--textarea { 191 font-family: inherit; 192 resize: vertical; 193} 194 195.error { 196 color: var(--error-color); 197 fill: var(--error-color); 198} 199`,rY=` 200.btn-group { 201 display: grid; 202 gap: 8px; 203} 204 205.btn { 206 line-height: inherit; 207 border: var(--button-border, var(--border)); 208 border-radius: var(--button-border-radius, 6px); 209 cursor: pointer; 210 font-family: inherit; 211 font-size: var(--button-font-size, inherit); 212 font-weight: var(--button-font-weight, 600); 213 padding: var(--button-padding, 6px 16px); 214} 215.btn[disabled] { 216 opacity: 0.6; 217 pointer-events: none; 218} 219 220.btn--primary { 221 color: var(--button-primary-color, var(--accent-foreground)); 222 fill: var(--button-primary-color, var(--accent-foreground)); 223 background: var(--button-primary-background, var(--accent-background)); 224 border: var(--button-primary-border, var(--border)); 225 border-radius: var(--button-primary-border-radius, 6px); 226 font-weight: var(--button-primary-font-weight, 500); 227} 228.btn--primary:hover { 229 color: var(--button-primary-hover-color, var(--accent-foreground)); 230 fill: var(--button-primary-hover-color, var(--accent-foreground)); 231 background: var(--button-primary-hover-background, var(--accent-background)); 232 filter: var(--interactive-filter); 233} 234.btn--primary:focus-visible { 235 background: var(--button-primary-hover-background, var(--accent-background)); 236 filter: var(--interactive-filter); 237 outline: var(--button-primary-focus-outline, var(--outline)); 238} 239 240.btn--default { 241 color: var(--button-color, var(--foreground)); 242 fill: var(--button-color, var(--foreground)); 243 background: var(--button-background, var(--background)); 244 border: var(--button-border, var(--border)); 245 border-radius: var(--button-border-radius, 6px); 246 font-weight: var(--button-font-weight, 500); 247} 248.btn--default:hover { 249 color: var(--button-color, var(--foreground)); 250 fill: var(--button-color, var(--foreground)); 251 background: var(--button-hover-background, var(--background)); 252 filter: var(--interactive-filter); 253} 254.btn--default:focus-visible { 255 background: var(--button-hover-background, var(--background)); 256 filter: var(--interactive-filter); 257 outline: var(--button-focus-outline, var(--outline)); 258} 259`,rz=` 260.success__position { 261 position: fixed; 262 inset: var(--dialog-inset); 263 padding: var(--page-margin); 264 z-index: var(--z-index); 265} 266.success__content { 267 background: var(--success-background, var(--background)); 268 border: var(--success-border, var(--border)); 269 border-radius: var(--success-border-radius, 1.7em/50%);
270 box-shadow: var(--success-box-shadow, var(--box-shadow)); 271 font-weight: var(--success-font-weight, 600); 272 color: var(--success-color); 273 fill: var(--success-color); 274 padding: 12px 24px; 275 line-height: 1.75em; 276 277 display: grid; 278 align-items: center; 279 grid-auto-flow: column; 280 gap: 6px; 281 cursor: default; 282} 283 284.success__icon { 285 display: flex; 286} 287`,rX=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let o=e.useSentryUser,i=function(){let e=eQ().getUser(),t=e0().getUser(),n=e1().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),a=ns.createElement("div"),s=function(e){let t=ns.createElement("style");return t.textContent=` 288:host { 289 --dialog-inset: var(--inset); 290} 291 292${rU} 293${rB} 294${rq} 295${rY} 296${rz} 297`,e&&t.setAttribute("nonce",e),t}(e.styleNonce),l="",u={get el(){return a},appendToDom(){r.contains(s)||r.contains(a)||(r.appendChild(s),r.appendChild(a))},removeFromDom(){r.removeChild(a),r.removeChild(s),ns.body.style.overflow=l},open(){d(!0),e.onFormOpen&&e.onFormOpen(),l=ns.body.style.overflow,ns.body.style.overflow="hidden"},close(){d(!1),ns.body.style.overflow=l}},c=t&&t.createInput({h:nQ,hooks:rP,dialog:u,options:e}),d=t=>{var r,s,l,u,_;r=nQ(rH,{options:e,screenshotInput:c,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:o&&i&&i[o.name]||"",defaultEmail:o&&i&&i[o.email]||"",onFormClose:()=>{d(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:t=>{d(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t,__self:void 0,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx",lineNumber:67}}),nU.__&&nU.__(r,a),l=s&&s.__k||a.__k,u=[],_=[],rt(a,r=(s||a).__k=nQ(n1,null,[r]),l||nW,nW,void 0!==a.ownerSVGElement,s?[s]:l?null:a.firstChild?nH.call(a.childNodes):null,u,s||(l?l.__e:a.firstChild),!1,_),r.__d=void 0,rn(u,r,_)};return u}}),rW="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx",rV=L.devicePixelRatio,rG=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),rJ=e=>{let t=e.clientHeight,n=e.clientWidth,r=e.width/e.height,o=t*r,i=t;o>n&&(o=n,i=n/r);let a=(n-o)/2,s=(t-i)/2;return{startX:a,startY:s,endX:o+a,endY:i+s}},rK=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let o=ns.createElement("canvas");return{input:function({h:e,hooks:t,imageBuffer:n,dialog:r,options:o}){let i=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:o}){e.useEffect(()=>{(async()=>{t();let e=await nl.mediaDevices.getDisplayMedia({video:{width:L.innerWidth*L.devicePixelRatio,height:L.innerHeight*L.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=ns.createElement("video");await new Promise((t,r)=>{o.srcObject=e,o.onloadedmetadata=()=>{n(o),e.getTracks().forEach(e=>e.stop()),t()},o.play().catch(r)}),r()})().catch(o)},[])}}({hooks:t});return function({onError:a}){let s=t.useMemo(()=>({__html:function(e){let t=ns.createElement("style"),n="#1A141F",r="#302735";return t.textContent=` 298.editor { 299 padding: 10px; 300 padding-top: 65px; 301 padding-bottom: 65px; 302 flex-grow: 1; 303 304 background-color: ${n}; 305 background-image: repeating-linear-gradient( 306 -145deg, 307 transparent, 308 transparent 8px, 309 ${n} 8px, 310 ${n} 11px 311 ), 312 repeating-linear-gradient( 313 -45deg, 314 transparent, 315 transparent 15px, 316 ${r} 15px, 317 ${r} 16px 318 ); 319} 320 321.editor__canvas-container { 322 width: 100%; 323 height: 100%; 324 position: relative; 325 display: flex; 326 align-items: center; 327 justify-content: center; 328} 329 330.editor__canvas-container canvas { 331 object-fit: contain; 332 position: relative; 333} 334 335.editor__crop-btn-group { 336 padding: 8px; 337 gap: 8px; 338 border-radius: var(--menu-border-radius, 6px); 339 background: var(--button-primary-background, var(--background)); 340 width: 175px; 341 position: absolute; 342} 343 344.editor__crop-corner { 345 width: 30px; 346 height: 30px; 347 position: absolute; 348 background: none; 349 border: 3px solid #ffffff; 350} 351 352.editor__crop-corner--top-left { 353 cursor: nwse-resize;
354 border-right: none; 355 border-bottom: none; 356} 357.editor__crop-corner--top-right { 358 cursor: nesw-resize; 359 border-left: none; 360 border-bottom: none; 361} 362.editor__crop-corner--bottom-left { 363 cursor: nesw-resize; 364 border-right: none; 365 border-top: none; 366} 367.editor__crop-corner--bottom-right { 368 cursor: nwse-resize; 369 border-left: none; 370 border-top: none; 371} 372`,e&&t.setAttribute("nonce",e),t}(o.styleNonce).innerText}),[]),l=function({h:e}){return function({top:t,left:n,corner:r,onGrabButton:o}){return e("button",{class:`editor__crop-corner editor__crop-corner--${r} `,style:{top:t,left:n},onMouseDown:e=>{e.preventDefault(),o(e,r)},onClick:e=>{e.preventDefault()},__self:this,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx",lineNumber:22}})}}({h:e}),u=t.useRef(null),c=t.useRef(null),d=t.useRef(null),[_,p]=t.useState({startX:0,startY:0,endX:0,endY:0}),[f,h]=t.useState(!1),[m,g]=t.useState(!1);function v(){let e=d.current,t=rG(rJ(n));if(e){e.width=t.width*rV,e.height=t.height*rV,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`;let n=e.getContext("2d");n&&n.scale(rV,rV)}let r=c.current;r&&(r.style.width=`${t.width}px`,r.style.height=`${t.height}px`),p({startX:0,startY:0,endX:t.width,endY:t.height})}function b(e,t){h(!1),g(!0);let n=y(t),r=()=>{ns.removeEventListener("mousemove",n),ns.removeEventListener("mouseup",r),h(!0),g(!1)};ns.addEventListener("mouseup",r),ns.addEventListener("mousemove",n)}t.useEffect(()=>{L.addEventListener("resize",v,!1)},[]),t.useEffect(()=>{let e=d.current;if(!e)return;let t=e.getContext("2d");if(!t)return;let r=rG(rJ(n)),o=rG(_);t.clearRect(0,0,r.width,r.height),t.fillStyle="rgba(0, 0, 0, 0.5)",t.fillRect(0,0,r.width,r.height),t.clearRect(o.x,o.y,o.width,o.height),t.strokeStyle="#ffffff",t.lineWidth=3,t.strokeRect(o.x+1,o.y+1,o.width-2,o.height-2),t.strokeStyle="#000000",t.lineWidth=1,t.strokeRect(o.x+3,o.y+3,o.width-6,o.height-6)},[_]);let y=t.useCallback(e=>function(t){if(!d.current)return;let n=d.current,r=n.getBoundingClientRect(),o=t.clientX-r.x,i=t.clientY-r.y;switch(e){case"top-left":p(e=>({...e,startX:Math.min(Math.max(0,o),e.endX-33),startY:Math.min(Math.max(0,i),e.endY-33)}));break;case"top-right":p(e=>({...e,endX:Math.max(Math.min(o,n.width/rV),e.startX+33),startY:Math.min(Math.max(0,i),e.endY-33)}));break;case"bottom-left":p(e=>({...e,startX:Math.min(Math.max(0,o),e.endX-33),endY:Math.max(Math.min(i,n.height/rV),e.startY+33)}));break;case"bottom-right":p(e=>({...e,endX:Math.max(Math.min(o,n.width/rV),e.startX+33),endY:Math.max(Math.min(i,n.height/rV),e.startY+33)}))}},[]),x=t.useRef({initialX:0,initialY:0});return i({onBeforeScreenshot:t.useCallback(()=>{r.el.style.display="none"},[]),onScreenshot:t.useCallback(e=>{let t=n.getContext("2d");if(!t)throw Error("Could not get canvas context");n.width=e.videoWidth,n.height=e.videoHeight,n.style.width="100%",n.style.height="100%",t.drawImage(e,0,0)},[n]),onAfterScreenshot:t.useCallback(()=>{r.el.style.display="block";let e=u.current;e&&e.appendChild(n),v()},[]),onError:t.useCallback(e=>{r.el.style.display="block",a(e)},[])}),e("div",{class:"editor",__self:this,__source:{fileName:rW,lineNumber:315}},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:s,__self:this,__source:{fileName:rW,lineNumber:316}}),e("div",{class:"editor__canvas-container",ref:u,__self:this,__source:{fileName:rW,lineNumber:317}},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:c,__self:this,__source:{fileName:rW,lineNumber:318}},e("canvas",{onMouseDown:function(e){if(m)return;x.current={initialX:e.clientX,initialY:e.clientY};let t=e=>{let t=d.current;if(!t)return;let n=e.clientX-x.current.initialX,r=e.clientY-x.current.initialY;p(o=>{let i=Math.max(0,Math.min(o.startX+n,t.width/rV-(o.endX-o.startX))),a=Math.max(0,Math.min(o.startY+r,t.height/rV-(o.endY-o.startY))),s=i+(o.endX-o.startX),l=a+(o.endY-o.startY);return x.current.initialX=e.clientX,x.current.initialY=e.clientY,{startX:i,startY:a,endX:s,endY:l}})},n=()=>{ns.removeEventListener("mousemove",t),ns.removeEventListener("mouseup",n)};ns.addEventListener("mousemove",t),ns.addEventListener("mouseup",n)}
372,style:{position:"absolute",cursor:f?"move":"auto"},ref:d,__self:this,__source:{fileName:rW,lineNumber:319}}),e(l,{left:_.startX-3,top:_.startY-3,onGrabButton:b,corner:"top-left",__self:this,__source:{fileName:rW,lineNumber:324}}),e(l,{left:_.endX-30+3,top:_.startY-3,onGrabButton:b,corner:"top-right",__self:this,__source:{fileName:rW,lineNumber:330}}),e(l,{left:_.startX-3,top:_.endY-30+3,onGrabButton:b,corner:"bottom-left",__self:this,__source:{fileName:rW,lineNumber:336}}),e(l,{left:_.endX-30+3,top:_.endY-30+3,onGrabButton:b,corner:"bottom-right",__self:this,__source:{fileName:rW,lineNumber:342}}),e("div",{style:{left:Math.max(0,_.endX-191),top:Math.max(0,_.endY+8),display:f?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:rW,lineNumber:348}},e("button",{onClick:e=>{e.preventDefault(),d.current&&p({startX:0,startY:0,endX:d.current.width/rV,endY:d.current.height/rV}),h(!1)},class:"btn btn--default",__self:this,__source:{fileName:rW,lineNumber:356}},o.cancelButtonLabel),e("button",{onClick:e=>{e.preventDefault(),function(){let e=ns.createElement("canvas"),t=rG(rJ(n)),r=rG(_);e.width=r.width*rV,e.height=r.height*rV;let o=e.getContext("2d");o&&n&&o.drawImage(n,r.x/t.width*n.width,r.y/t.height*n.height,r.width/t.width*n.width,r.height/t.height*n.height,0,0,e.width,e.height);let i=n.getContext("2d");i&&(i.clearRect(0,0,n.width,n.height),n.width=e.width,n.height=e.height,n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,i.drawImage(e,0,0),v())}(),h(!1)},class:"btn btn--primary",__self:this,__source:{fileName:rW,lineNumber:373}},o.confirmButtonLabel)))))}}({h:e,hooks:t,imageBuffer:o,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>
372{o.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),rZ=(({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:o=!0,showBranding:i=!0,isEmailRequired:a=!1,isNameRequired:s=!1,showEmail:u=!0,showName:c=!0,enableScreenshot:d=!0,useSentryUser:_={email:"email",name:"username"},tags:p,styleNonce:f,scriptNonce:h,colorScheme:m="system",themeLight:g={},themeDark:v={},addScreenshotButtonLabel:b=nw,cancelButtonLabel:y=nc,confirmButtonLabel:x=n_,emailLabel:w=nh,emailPlaceholder:E=nf,formTitle:S=np,isRequiredLabel:k=nx,messageLabel:C=ng,messagePlaceholder:N=nm,nameLabel:T=nb,namePlaceholder:D=nv,removeScreenshotButtonLabel:$=nE,submitButtonLabel:P=nd,successMessageText:O=ny,triggerLabel:I=nu,triggerAriaLabel:R="",onFormOpen:j,onFormClose:A,onSubmitSuccess:F,onSubmitError:H,onFormSubmitted:U}={})=>{let B={id:r,autoInject:o,showBranding:i,isEmailRequired:a,isNameRequired:s,showEmail:u,showName:c,enableScreenshot:d,useSentryUser:_,tags:p,styleNonce:f,scriptNonce:h,colorScheme:m,themeDark:v,themeLight:g,triggerLabel:I,triggerAriaLabel:R,cancelButtonLabel:y,submitButtonLabel:P,confirmButtonLabel:x,formTitle:S,emailLabel:w,emailPlaceholder:E,messageLabel:C,messagePlaceholder:N,nameLabel:T,namePlaceholder:D,successMessageText:O,isRequiredLabel:k,addScreenshotButtonLabel:b,removeScreenshotButtonLabel:$,onFormClose:A,onFormOpen:j,onSubmitError:H,onSubmitSuccess:F,onFormSubmitted:U},q=null,Y=[],z=e=>{if(!q){let t=ns.createElement("div");t.id=String(e.id),ns.body.appendChild(t),(q=t.attachShadow({mode:"open"})).appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let o=ns.createElement("style");return o.textContent=` 373:host { 374 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 375 --font-size: 14px; 376 --z-index: 100000; 377 378 --page-margin: 16px; 379 --inset: auto 0 0 auto; 380 --actor-inset: var(--inset); 381 382 font-family: var(--font-family); 383 font-size: var(--font-size); 384 385 ${"system"!==e?"color-scheme: only light;":""} 386 387 ${n$("dark"===e?{...nD,...t}:{...nT,...n})} 388} 389 390${"system"===e?` 391@media (prefers-color-scheme: dark) { 392 :host { 393 ${n$({...nD,...t})} 394 } 395}`:""} 396} 397`,r&&o.setAttribute("nonce",r),o}(e))}return q},X=async(t,n,r)=>{let o=e2(),i=o&&o.getIntegrationByName(t);if(i)return i;let a=(n&&n()||await e(r,h))();return o&&o.addIntegration(a),a},W=async e=>{let r=e.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(nl.userAgent)||/Macintosh/i.test(nl.userAgent)&&nl.maxTouchPoints&&nl.maxTouchPoints>1||!isSecureContext),[o,i]=await Promise.all([X("FeedbackModal",t,"feedbackModalIntegration"),r?X("FeedbackScreenshot",n,"feedbackScreenshotIntegration"):void 0]);if(!o)throw nk&&M.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error("[Feedback] Missing feedback modal integration!");r&&!i&&nk&&M.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.");let a=o.createDialog({options:{...e,onFormClose:()=>{a&&a.close(),e.onFormClose&&e.onFormClose()},onFormSubmitted:()=>{a&&a.close(),e.onFormSubmitted&&e.onFormSubmitted()}},screenshotIntegration:r?i:void 0,sendFeedback:nS,shadow:z(e)});return a},V=(e,t={})=>{let n=nC(B,t),r="string"==typeof e?ns.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw nk&&M.error("[Feedback] Unable to attach to target element"),Error("Unable to attach to target element");let o=null,i=async()=>{o||(o=await W({...n,onFormSubmitted:()=>{o&&o.removeFromDom(),n.onFormSubmitted&&n.onFormSubmitted()}})),o.appendToDom(),o.open()};r.addEventListener("click",i);let a=()=>{Y=Y.filter(e=>e!==a),o&&o.removeFromDom(),o=null,r.removeEventListener("click",i)};return Y.push(a),a},G=(e={})=>{let t=nC(B,e),n=z(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let o=ns.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||nu,o.appendChild(function(){let e=e=>L.document.createElementNS("http://www.w3.org/2000/svg",e),t=nN(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--foreground)"}),n=nN(e("g"),{clipPath:"url(#clip0_57_80)"}),r=nN(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
39756 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);let o=e("defs"),i=nN(e("clipPath"),{id:"clip0_57_80"}),a=nN(e("rect"),{width:"20",height:"20",fill:"white"});return i.appendChild(a),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(a),t}()),e){let t=ns.createElement("span");t.appendChild(ns.createTextNode(e)),o.appendChild(t)}let i=function(e){let t=ns.createElement("style");return t.textContent=` 398.widget__actor { 399 position: fixed; 400 z-index: var(--z-index); 401 margin: var(--page-margin); 402 inset: var(--actor-inset); 403 404 display: flex; 405 align-items: center; 406 gap: 8px; 407 padding: 16px; 408 409 font-family: inherit; 410 font-size: var(--font-size); 411 font-weight: 600; 412 line-height: 1.14em; 413 text-decoration: none; 414 415 background: var(--actor-background, var(--background)); 416 border-radius: var(--actor-border-radius, 1.7em/50%); 417 border: var(--actor-border, var(--border));
418 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 419 color: var(--actor-color, var(--foreground)); 420 fill: var(--actor-color, var(--foreground)); 421 cursor: pointer; 422 opacity: 1; 423 transition: transform 0.2s ease-in-out; 424 transform: translate(0, 0) scale(1); 425} 426.widget__actor[aria-hidden="true"] { 427 opacity: 0; 428 pointer-events: none; 429 visibility: hidden; 430 transform: translate(0, 16px) scale(0.98); 431} 432 433.widget__actor:hover { 434 background: var(--actor-hover-background, var(--background)); 435 filter: var(--interactive-filter); 436} 437 438.widget__actor svg { 439 width: 1.14em; 440 height: 1.14em; 441} 442 443@media (max-width: 600px) { 444 .widget__actor span { 445 display: none; 446 } 447} 448`,e&&t.setAttribute("nonce",e),t}(r);return{el:o,appendToDom(){n.appendChild(i),n.appendChild(o)},removeFromDom(){n.removeChild(o),n.removeChild(i)},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:f});return V(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("u">typeof l.p?l.p:0))||void 0!==L.process&&"renderer"===L.process.type)&&B.autoInject&&("loading"===ns.readyState?ns.addEventListener("DOMContentLoaded",()=>G().appendToDom()):G().appendToDom())},attachTo:V,createWidget(e={}){let t=G(nC(B,e));return t.appendToDom(),t},createForm:async(e={})=>W(nC(B,e)),remove(){q&&(q.parentElement&&q.parentElement.remove(),q=null),Y.forEach(e=>e()),Y=[]}}})({lazyLoadIntegration:na,getModalIntegration:()=>rX,getScreenshotIntegration:()=>rK})}}]); 449//# sourceMappingURL=f27c75c2.32885d761aead09e.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.