1/*! For license information please see app.eb506698-lab_show.js.LICENSE.txt */ 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3a4ff85d-a165-45fb-bcf0-809039b596e1",e._sentryDebugIdIdentifier="sentry-dbid-3a4ff85d-a165-45fb-bcf0-809039b596e1")}catch(e){}}(),(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3524],{48668:function(e,t,n){"use strict";n.r(t),n.d(t,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return U},lazy:function(){return C},loadableReady:function(){return P}});var r=n(96540),o=n(98587),a=n(58168),i=n(9417),s=n(77387),c=n(93101),u=n(4146),l=n.n(u);function p(e,t){if(!e){var n=new Error("loadable: "+t);throw n.framesToPop=1,n.name="Invariant Violation",n}}function d(e){console.warn("loadable: "+e)}var f=r.createContext(),g="__LOADABLE_REQUIRED_CHUNKS__";function m(e){return""+e+g}var h=Object.freeze({__proto__:null,getRequiredChunkKey:m,invariant:p,Context:f}),_={initialChunks:{}},y="PENDING",T="REJECTED";var S=function(e){return e};function E(e){var t=e.defaultResolveComponent,n=void 0===t?S:t,u=e.render,d=e.onLoad;function g(e,t){void 0===t&&(t={});var g=function(e){return"function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),m={};function h(e){return t.cacheKey?t.cacheKey(e):g.resolve?g.resolve(e):"static"}function S(e,r,o){var a=t.resolveComponent?t.resolveComponent(e,r):n(e);if(t.resolveComponent&&!(0,c.isValidElementType)(a))throw new Error("resolveComponent returned something that is not a React component!");return l()(o,a,{preload:!0}),a}var E,b,v=function(e){var t=h(e),n=m[t];return n&&n.status!==T||((n=g.requireAsync(e)).status=y,m[t]=n,n.then(function(){n.status="RESOLVED"},function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:g.resolve(e),chunkName:g.chunkName(e),error:t?t.message:t}),n.status=T})),n},I=function(e){function n(n){var r;return(r=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:h(n)},p(!n.__chunkExtractor||g.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),n.__chunkExtractor?(!1===t.ssr||(g.requireAsync(n).catch(function(){return null}),r.loadSync(),n.__chunkExtractor.addChunk(g.chunkName(n))),(0,i.A)(r)):(!1!==t.ssr&&(g.isReady&&g.isReady(n)||g.chunkName&&_.initialChunks[g.chunkName(n)])&&r.loadSync(),r)}(0,s.A)(n,e),n.getDerivedStateFromProps=function(e,t){var n=h(e);return(0,a.A)({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===T&&this.setCache(),this.state.loading&&this.loadAsync()},r.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},r.componentWillUnmount=function(){this.mounted=!1},r.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},r.getCacheKey=function(){return h(this.props)},r.getCache=function(){return m[this.getCacheKey()]},r.setCache=function(e){void 0===e&&(e=void 0),m[this.getCacheKey()]=e},r.triggerOnLoad=function(){var e=this;d&&setTimeout(function(){d(e.state.result,e.props)})},r.loadSync=function(){if(this.state.loading)try{var e=S(g.requireSync(this.props),this.props,R);this.state.result=e,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:g.resolve(this.props),chunkName:g.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},r.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then(function(t){var n=S(t,e.props,R);e.safeSetState({result:n,loading:!1},function(){return e.triggerOnLoad()})}).catch(function(t){return e.safeSetState({error:t,loading:!1})}),t},r.resolveAsync=function(){var e=this.props,t=(e.__chunkExtractor,e.forwardedRef,(0,o.A)(e,["__chunkExtractor","forwardedRef"]));return v(t)},r.render=function(){var e=this.props,n=e.forwardedRef,r=e.fallback,i=(e.__chunkExtractor,(0,o.A)(e,["forwardedRef","fallback","__chunkExtractor"])),s=this.state,c=s.error,l=s.loading,p=s.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===y)throw this.loadAsync();if(c)throw c;var d=r||t.fallback||null;return l?d:u({fallback:d,result:p,options:t,props:(0,a.A)({},i,{ref:n})})},n}(r.Component),A=(b=function(e){return r.createElement(f.Consumer,null,function(t){return r.createElement(E,Object.assign({__chunkExtractor:t},e))})},(E=I).displayName&&(b.displayName=E.displayName+"WithChunkExtractor"),b),R=r.forwardRef(function(e,t){return r.createElement(A,Object.assign({forwardedRef:t},e))});return R.displayName="Loadable",R.preload=function(e){R.load(e)},R.load=function(e){return v(e)},R}return{loadable:g,lazy:function(e,t){return g(e,(0,a.A)({},t,{suspense:!0}))}}}
2var b=E({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return r.createElement(t,n)}}),v=b.loadable,I=b.lazy,A=E({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),R=A.loadable,N=A.lazy,O="undefined"!=typeof window;function P(e,t){void 0===e&&(e=function(){});var n=void 0===t?{}:t,r=n.namespace,o=void 0===r?"":r,a=n.chunkLoadingGlobal,i=void 0===a?"__LOADABLE_LOADED_CHUNKS__":a;if(!O)return d("`loadableReady()` must be called in browser only"),e(),Promise.resolve();var s=null;if(O){var c=m(o),u=document.getElementById(c);if(u){s=JSON.parse(u.textContent);var l=document.getElementById(c+"_ext");if(!l)throw new Error("loadable-component: @loadable/server does not match @loadable/component");JSON.parse(l.textContent).namedChunks.forEach(function(e){_.initialChunks[e]=!0})}}if(!s)return d("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var p=!1;return new Promise(function(e){window[i]=window[i]||[];var t=window[i],n=t.push.bind(t);function r(){s.every(function(e){return t.some(function(t){return t[0].indexOf(e)>-1})})&&(p||(p=!0,e()))}t.push=function(){n.apply(void 0,arguments),r()},r()}).then(e)}var w=v;w.lib=R;var C=I;C.lib=N;var U=h;t.default=w},98161:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,T=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case p:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case h:case m:case c:return e;default:return t}}case o:return t}}}function b(e){return E(e)===p}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===i||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===T||e.$$typeof===S||e.$$typeof===_)}},93101:function(e,t,n){"use strict";e.exports=n(98161)},99611:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.DEBUG_BUILD=n},42132:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(99611),a=n(12236),i={};function s(e){const t=i[e];if(t)return t;let n=a.WINDOW[e];if(r.isNativeFunction(n))return i[e]=n.bind(a.WINDOW);const s=a.WINDOW.document;if(s&&"function"==typeof s.createElement)try{const t=s.createElement("iframe");t.hidden=!0,s.head.appendChild(t);const r=t.contentWindow;r?.[e]&&(n=r[e]),s.head.removeChild(t)}catch(c){o.DEBUG_BUILD&&r.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,c)}return n?i[e]=n.bind(a.WINDOW):n}t.clearCachedImplementation=function(e){i[e]=void 0},t.fetch=function(...e){return s("fetch")(...e)},t.getNativeImplementation=s,t.setTimeout=function(...e){return s("setTimeout")(...e)}},57169:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o={};try{"undefined"!=typeof Node&&(o.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"undefined"!=typeof Element&&(o.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,o.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,o.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,o.getAttribute=Element.prototype.getAttribute),"undefined"!=typeof HTMLElement&&(o.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function a(e,t,n){const r=o[t];if(r)try{return r.call(e,n)}catch{}const a=e[t];return"function"==typeof a?a.call(e,n):a}function i(e,t){const n=[],o=a(e,"tagName");if(!o)return"";if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement){const t=a(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(o.toLowerCase());const i=t?.length?t.filter(t=>a(e,"getAttribute",t)).map(t=>[t,a(e,"getAttribute",t)]):null;
2if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{const t=a(e,"id");t&&n.push(`#${t}`);const o=a(e,"className");if(o&&r.isString(o)){const e=o.split(/\s+/);for(const t of e)n.push(`.${t}`)}}for(const r of["aria-label","type","name","title","alt"]){const t=a(e,"getAttribute",r);t&&n.push(`[${r}="${t}"]`)}return n.join("")}t.htmlTreeAsString=function(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,c=0;const u=" > ",l=u.length;let p;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<r&&(p=i(n,d),!("html"===p||s>1&&c+o.length*l+p.length>=f));)o.push(p),c+=p.length,n=a(n,"parentNode");return o.reverse().join(u)}catch{return"<unknown>"}}},63461:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(10014),o=n(67026),a=n(64201),i=n(45282),s=n(54702),c=n(23707),u=n(97323),l=n(17943),p=n(42132),d=n(8961),f=n(9298),g=n(16797),m=n(57169),h=n(35205),_=n(8578);t.addClsInstrumentationHandler=r.addClsInstrumentationHandler,t.addInpInstrumentationHandler=r.addInpInstrumentationHandler,t.addLcpInstrumentationHandler=r.addLcpInstrumentationHandler,t.addPerformanceInstrumentationHandler=r.addPerformanceInstrumentationHandler,t.addTtfbInstrumentationHandler=r.addTtfbInstrumentationHandler,t.addPerformanceEntries=o.addPerformanceEntries,t.addWebVitalsToSpan=o.addWebVitalsToSpan,t.startTrackingInteractions=o.startTrackingInteractions,t.startTrackingLongAnimationFrames=o.startTrackingLongAnimationFrames,t.startTrackingLongTasks=o.startTrackingLongTasks,t.startTrackingWebVitals=o.startTrackingWebVitals,t.elementTimingIntegration=a.elementTimingIntegration,t.startTrackingElementTiming=a.startTrackingElementTiming,t.extractNetworkProtocol=i.extractNetworkProtocol,t.trackClsAsSpan=s.trackClsAsSpan,t.trackInpAsSpan=s.trackInpAsSpan,t.trackLcpAsSpan=s.trackLcpAsSpan,t.whenIdleOrHidden=c.whenIdleOrHidden,t.addClickKeypressInstrumentationHandler=u.addClickKeypressInstrumentationHandler,t.addHistoryInstrumentationHandler=l.addHistoryInstrumentationHandler,t.clearCachedImplementation=p.clearCachedImplementation,t.fetch=p.fetch,t.getNativeImplementation=p.getNativeImplementation,t.setTimeout=p.setTimeout,t.SENTRY_XHR_DATA_KEY=d.SENTRY_XHR_DATA_KEY,t.addXhrInstrumentationHandler=d.addXhrInstrumentationHandler,t.getBodyString=f.getBodyString,t.getFetchRequestArgBody=f.getFetchRequestArgBody,t.parseXhrResponseHeaders=f.parseXhrResponseHeaders,t.serializeFormData=f.serializeFormData,t.resourceTimingToSpanAttributes=g.resourceTimingToSpanAttributes,t.htmlTreeAsString=m.htmlTreeAsString,t.isElement=h.isElement,t.registerInpInteractionListener=_.registerInpInteractionListener,t.startTrackingINP=_.startTrackingINP},97323:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(12236);let a,i,s;function c(){if(!o.WINDOW.document)return;const e=r.triggerHandlers.bind(null,"dom"),t=u(e,!0);o.WINDOW.document.addEventListener("click",t,!1),o.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=o.WINDOW,a=n[t]?.prototype;a?.hasOwnProperty?.("addEventListener")&&(r.fill(a,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){const r=u(e);a.handler=r,t.call(this,n,r,o)}a.refCount++}catch{}return t.call(this,n,r,o)}}),r.fill(a,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const 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 u(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const c=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}
2(n.type,c))return;r.addNonEnumerableProperty(n,"_sentryCaptured",!0),c&&!c._sentryId&&r.addNonEnumerableProperty(c,"_sentryId",r.uuid4());const u="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch{}return!0}(n)){e({event:n,name:u,global:t}),i=n.type,s=c?c._sentryId:void 0}clearTimeout(a),a=o.WINDOW.setTimeout(()=>{s=void 0,i=void 0},1e3)}}t.addClickKeypressInstrumentationHandler=function(e){r.addHandler("dom",e),r.maybeInstrument("dom",c)},t.instrumentDOM=c},17943:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(12236);let a;function i(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const i=a,s=function(e){try{return new URL(e,o.WINDOW.location.origin).toString()}catch{return e}}(String(n));if(a=s,i===s)return e.apply(this,t);const c={from:i,to:s};r.triggerHandlers("history",c)}return e.apply(this,t)}}o.WINDOW.addEventListener("popstate",()=>{const e=o.WINDOW.location.href,t=a;if(a=e,t===e)return;const n={from:t,to:e};r.triggerHandlers("history",n)}),r.supportsHistory()&&(r.fill(o.WINDOW.history,"pushState",e),r.fill(o.WINDOW.history,"replaceState",e))}t.addHistoryInstrumentationHandler=function(e){const t="history";r.addHandler(t,e),r.maybeInstrument(t,i)},t.instrumentHistory=i},8961:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(12236),a="__sentry_xhr_v3__";function i(){if(!o.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const o=new Error,i=1e3*r.timestampInSeconds(),s=r.isString(n[0])?n[0].toUpperCase():void 0,c=function(e){if(r.isString(e))return e;try{return e.toString()}catch{}return}(n[1]);if(!s||!c)return e.apply(t,n);t[a]={method:s,url:c,request_headers:{}},"POST"===s&&c.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const u=()=>{const e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}const n={endTimestamp:1e3*r.timestampInSeconds(),startTimestamp:i,xhr:t,virtualError:o};r.triggerHandlers("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return u(),e.apply(t,n)}}):t.addEventListener("readystatechange",u),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[o,i]=n,s=t[a];return s&&r.isString(o)&&r.isString(i)&&(s.request_headers[o.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const o=t[a];if(!o)return e.apply(t,n);void 0!==n[0]&&(o.body=n[0]);const i={startTimestamp:1e3*r.timestampInSeconds(),xhr:t};return r.triggerHandlers("xhr",i),e.apply(t,n)}})}t.SENTRY_XHR_DATA_KEY=a,t.addXhrInstrumentationHandler=function(e){r.addHandler("xhr",e),r.maybeInstrument("xhr",i)},t.instrumentXHR=i},35205:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isElement=function(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}},67026:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(57169),a=n(12236),i=n(42991),s=n(10014),c=n(61632),u=n(16797),l=n(45282),p=n(34824),d=n(76946),f=n(34704),g=n(99611);let m,h,_=0,y={};function T(){m=void 0,h=void 0,y={}}function S(e,t,n,o,a,i){if(function(e){if("measure"===e?.entryType)try{return"Components â"===e.detail.devtools.track}catch{return}}(t))return;if(["mark","measure"].includes(t.entryType)&&r.stringMatchesSomePattern(t.name,i))return;const s=d.getNavigationEntry(!1),c=l.msToSec(s?s.requestStart:0),u=a+Math.max(n,c),p=a+n,f=p+o,g={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};u!==p&&(g["sentry.browser.measure_happened_before_request"]=!0,g["sentry.browser.measure_start_time"]=u),function(e,t){try{const n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,o]of Object.entries(n))if(o&&r.isPrimitive(o))e[`sentry.browser.measure.detail.${t}`]=o;else if(void 0!==o)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(o)}catch{}return}if(r.isPrimitive(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(g,t),u<=f&&l.startAndEndSpan(e,u,f,{name:t.name,op:t.entryType,attributes:g})}function E(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{b(e,t,r,n)}),b(e,t,"secureConnection",n,"TLS/SSL"),b(e,t,"fetch",n,"cache"),b(e,t,"domainLookup",n,"DNS"),function(e,t,n){const o=n+l.msToSec(t.requestStart),a=n+l.msToSec(t.responseEnd),i=n+l.msToSec(t.responseStart);t.responseEnd&&(l.startAndEndSpan(e,o,a,{op:"browser.request",name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),l.startAndEndSpan(e,i,a,{op:"browser.response",name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}
2(e,t,n)}function b(e,t,n,o,a=n){const i=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(n),s=t[i],c=t[`${n}Start`];c&&s&&l.startAndEndSpan(e,o+l.msToSec(c),o+l.msToSec(s),{op:`browser.${a}`,name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function v(e,t,n,o,i,s,c){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const p=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(c?.includes(p))return;const d={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},f=r.parseUrl(n);f.protocol&&(d["url.scheme"]=f.protocol.split(":").pop()),f.host&&(d["server.address"]=f.host),d["url.same_origin"]=n.includes(a.WINDOW.location.origin),d[r.SEMANTIC_ATTRIBUTE_URL_FULL]=n,I(t,d,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const g={...d,...u.resourceTimingToSpanAttributes(t)},m=s+o,h=m+i;l.startAndEndSpan(e,m,h,{name:n.replace(a.WINDOW.location.origin,""),op:p,attributes:g})}function I(e,t,n){n.forEach(([n,r])=>{const o=e[n];null!=o&&("number"==typeof o&&o<2147483647||"string"==typeof o)&&(t[r]=o)})}t._addMeasureSpans=S,t._addNavigationSpans=E,t._addResourceSpans=v,t._setResourceRequestAttributes=I,t.addPerformanceEntries=function(e,t){const n=l.getBrowserPerformanceAPI(),o=r.browserPerformanceTimeOrigin();if(!n?.getEntries||!o)return;const{spanStreamingEnabled:i,ignorePerformanceApiSpans:s,ignoreResourceSpans:c}=t,u=l.msToSec(o),p=n.getEntries(),{op:d,start_timestamp:f}=r.spanToJSON(e);p.slice(_).forEach(t=>{const n=l.msToSec(t.startTime),r=l.msToSec(Math.max(0,t.duration));if(!("navigation"===d&&f&&u+n<f))switch(t.entryType){case"navigation":E(e,t,u);break;case"mark":case"paint":case"measure":S(e,t,n,r,u,s);break;case"resource":v(e,t,t.name,n,r,u,c)}}),_=Math.max(p.length-1,0),function(e,t){const n=a.WINDOW.navigator;if(!n)return;const o=n.connection;o&&(o.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",o.effectiveType),o.type&&e.setAttribute(t?"network.connection.type":"connectionType",o.type),l.isMeasurementValue(o.rtt)&&(t?e.setAttribute("network.connection.rtt",o.rtt):"pageload"===r.spanToJSON(e).op&&r.setMeasurement("connection.rtt",o.rtt,"millisecond")));l.isMeasurementValue(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`));l.isMeasurementValue(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,i)},t.addWebVitalsToSpan=function(e,t){const n=r.browserPerformanceTimeOrigin();if(!l.getBrowserPerformanceAPI()?.getEntries||!n)return void T();const{spanStreamingEnabled:a,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:s}=t,c=l.msToSec(n);if("pageload"===r.spanToJSON(e).op){if(function(e){const t=d.getNavigationEntry(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(y),a){const t=(t,n,o)=>{const a=o??`browser.web_vital.${t}.value`;e.setAttribute(a,n),g.DEBUG_BUILD&&r.debug.log("Setting web vital attribute",{[a]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{y[e]&&t(e,y[e].value)}),y["ttfb.requestTime"]&&t("ttfb.requestTime",y["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else i||delete y.cls,s||delete y.lcp,Object.entries(y).forEach(([t,n])=>{r.setMeasurement(t,n.value,n.unit,e)}),function(e,t){m&&t.recordLcpOnPageloadSpan&&(m.element&&e.setAttribute("lcp.element",o.htmlTreeAsString(m.element)),m.id&&e.setAttribute("lcp.id",m.id),m.url&&e.setAttribute("lcp.url",m.url.trim().slice(0,200)),null!=m.loadTime&&e.setAttribute("lcp.loadTime",m.loadTime),null!=m.renderTime&&e.setAttribute("lcp.renderTime",m.renderTime),e.setAttribute("lcp.size",m.size));
2h?.sources&&t.recordClsOnPageloadSpan&&h.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,o.htmlTreeAsString(t.node)))}(e,t);e.setAttribute(a?"browser.performance.time_origin":"performance.timeOrigin",c),e.setAttribute(a?"browser.performance.navigation.activation_start":"performance.activationStart",p.getActivationStart())}T()},t.startTrackingInteractions=function(){s.addPerformanceInstrumentationHandler("event",({entries:e})=>{const t=r.getActiveSpan();if(t)for(const n of e)if("click"===n.name){const e=l.msToSec(r.browserPerformanceTimeOrigin()+n.startTime),a=l.msToSec(n.duration),i={name:o.htmlTreeAsString(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},s=r.getComponentName(n.target);s&&(i.attributes["ui.component_name"]=s),l.startAndEndSpan(t,e,e+a,i)}})},t.startTrackingLongAnimationFrames=function(){new PerformanceObserver(e=>{const t=r.getActiveSpan();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=l.msToSec(r.browserPerformanceTimeOrigin()+n.startTime),{start_timestamp:o,op:a}=r.spanToJSON(t);if("navigation"===a&&o&&e<o)continue;const i=l.msToSec(n.duration),s={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},c=n.scripts[0],{invoker:u,invokerType:p,sourceURL:d,sourceFunctionName:f,sourceCharPosition:g}=c;s["browser.script.invoker"]=u,s["browser.script.invoker_type"]=p,d&&(s["code.filepath"]=d),f&&(s["code.function"]=f),-1!==g&&(s["browser.script.source_char_position"]=g),l.startAndEndSpan(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0})},t.startTrackingLongTasks=function(){s.addPerformanceInstrumentationHandler("longtask",({entries:e})=>{const t=r.getActiveSpan();if(!t)return;const{op:n,start_timestamp:o}=r.spanToJSON(t);for(const a of e){const e=l.msToSec(r.browserPerformanceTimeOrigin()+a.startTime),i=l.msToSec(a.duration);"navigation"===n&&o&&e<o||l.startAndEndSpan(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}})},t.startTrackingWebVitals=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const o=l.getBrowserPerformanceAPI();if(o&&r.browserPerformanceTimeOrigin()){o.mark&&a.WINDOW.performance.mark("sentry-tracing-init");const r=t?c.trackLcpAsStandaloneSpan(n):!1===t?s.addLcpInstrumentationHandler(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&c.isValidLcpMetric(e.value)&&(y.lcp={value:e.value,unit:"millisecond"},m=t)},!0):void 0,u=e?i.trackClsAsStandaloneSpan(n):!1===e?s.addClsInstrumentationHandler(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(y.cls={value:e.value,unit:""},h=t)},!0):void 0,l=s.addTtfbInstrumentationHandler(({metric:e})=>{e.entries[e.entries.length-1]&&(y.ttfb={value:e.value,unit:"millisecond"})}),p=s.addPerformanceInstrumentationHandler("paint",({entries:e})=>{const t=f.getVisibilityWatcher();for(const n of e){const e=n.startTime<t.firstHiddenTime;"first-paint"===n.name&&e&&(y.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&e&&(y.fcp={value:n.startTime,unit:"millisecond"})}});return()=>{l(),p(),r?.(),u?.()}}return()=>{}}},42991:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(99611),a=n(57169),i=n(10014),s=n(45282);function c(e,t,n,i){o.DEBUG_BUILD&&r.debug.log(`Sending CLS span (${e})`);const c=t?s.msToSec((r.browserPerformanceTimeOrigin()||0)+t.startTime):r.timestampInSeconds(),u=r.getCurrentScope().getScopeData().transactionName,l=t?a.htmlTreeAsString(t.sources[0]?.node):"Layout shift",p={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":n,"sentry.report_event":i};t?.sources&&t.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=a.htmlTreeAsString(e.node)});const d=s.startStandaloneWebVitalSpan({name:l,transaction:u,attributes:p,startTime:c});d&&(d.addEvent("cls",{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),d.end(c))}t._sendStandaloneClsSpan=c,t.trackClsAsStandaloneSpan=function(e){let t,n=0;if(!s.supportsWebVital("layout-shift"))return;const r=i.addClsInstrumentationHandler(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);s.listenForWebVitalReportEvents(e,(e,o)=>{c(n,t,o,e),r()})}},64201:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(10014),a=n(45282),i=r.defineIntegration(()=>({name:"ElementTiming",setup(){a.getBrowserPerformanceAPI()&&r.browserPerformanceTimeOrigin()&&o.addPerformanceInstrumentationHandler("element",({entries:e})=>{for(const t of e){const e=t;if(!e.identifier)continue;const n=e.identifier,o=e.name,a=e.renderTime,i=e.loadTime,s={"sentry.origin":"auto.ui.browser.element_timing","ui.element.i
2dentifier":n};o&&(s["ui.element.paint_type"]=o),e.id&&(s["ui.element.id"]=e.id),e.element&&(s["ui.element.type"]=e.element.tagName.toLowerCase()),e.url&&(s["ui.element.url"]=e.url),e.naturalWidth&&(s["ui.element.width"]=e.naturalWidth),e.naturalHeight&&(s["ui.element.height"]=e.naturalHeight),a>0&&r.metrics.distribution("ui.element.render_time",a,{unit:"millisecond",attributes:s}),i>0&&r.metrics.distribution("ui.element.load_time",i,{unit:"millisecond",attributes:s})}})}}));t.elementTimingIntegration=i,t.startTrackingElementTiming=function(){return()=>{}}},8578:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(57169),a=n(12236),i=n(10014),s=n(45282),c=[],u=new Map,l=new Map;const p={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function d(){return i.addInpInstrumentationHandler(f)}const f=({metric:e})=>{if(null==e.value)return;const t=s.msToSec(e.value);if(t>60)return;const n=e.entries.find(t=>t.duration===e.value&&p[t.name]);if(!n)return;const{interactionId:a}=n,i=p[n.name],c=s.msToSec(r.browserPerformanceTimeOrigin()+n.startTime),l=r.getActiveSpan(),d=l?r.getRootSpan(l):void 0,f=null!=a?u.get(a):void 0,g=f?.span||d,m=g?r.spanToJSON(g).description:r.getCurrentScope().getScopeData().transactionName,h=f?.elementName||o.htmlTreeAsString(n.target),_={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${i}`,[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration},y=s.startStandaloneWebVitalSpan({name:h,transaction:m,attributes:_,startTime:c});y&&(y.addEvent("inp",{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),y.end(c+t))};t.INP_ENTRY_MAP=p,t.MAX_PLAUSIBLE_INP_DURATION=60,t._onInp=f,t._trackINP=d,t.getCachedInteractionContext=function(e){return null!=e?u.get(e):void 0},t.registerInpInteractionListener=function(){const e=Object.keys(p);function t(e){const t=e.target;if(!t)return;const n=o.htmlTreeAsString(t),r=Math.round(e.timeStamp);if(l.set(r,n),l.size>50){const e=l.keys().next().value;void 0!==e&&l.delete(e)}}r.isBrowser()&&e.forEach(e=>{a.WINDOW.addEventListener(e,t,{capture:!0,passive:!0})});const n=({entries:e})=>{const t=r.getActiveSpan(),n=t&&r.getRootSpan(t);e.forEach(e=>{if(!i.isPerformanceEventTiming(e))return;const t=e.interactionId;if(null==t)return;if(u.has(t))return;const r=e.target?o.htmlTreeAsString(e.target):function(e){const t=Math.round(e.startTime);let n=l.get(t);if(!n)for(let r=-5;r<=5;r++){const e=l.get(t+r);if(e){n=e;break}}return n||"<unknown>"}(e);if(c.length>10){const e=c.shift();u.delete(e)}c.push(t),u.set(t,{span:n,elementName:r})})};i.addPerformanceInstrumentationHandler("event",n),i.addPerformanceInstrumentationHandler("first-input",n)},t.startTrackingINP=function(){if(s.getBrowserPerformanceAPI()&&r.browserPerformanceTimeOrigin()){const e=d();return()=>{e()}}return()=>{}}},10014:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(99611),a=n(31120),i=n(92157),s=n(92295),c=n(35298),u=n(44217),l={},p={};let d,f,g,m;function h(e,t){const n=l[e];if(n?.length)for(const i of n)try{i(t)}catch(a){o.DEBUG_BUILD&&r.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${r.getFunctionName(i)}\nError:`,a)}}function _(){return a.onCLS(e=>{h("cls",{metric:e}),d=e},{reportAllChanges:!0})}function y(){return s.onLCP(e=>{h("lcp",{metric:e}),f=e},{reportAllChanges:!0})}function T(){return u.onTTFB(e=>{h("ttfb",{metric:e}),g=e})}function S(){return i.onINP(e=>{h("inp",{metric:e}),m=e})}function E(e,t,n,r,o=!1){let a;return b(e,t),p[e]||(a=n(),p[e]=!0),r&&t({metric:r}),v(e,t,o?a:void 0)}function b(e,t){l[e]=l[e]||[],l[e].push(t)}function v(e,t,n){return()=>{n&&n();const r=l[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}t.addClsInstrumentationHandler=function(e,t=!1){return E("cls",e,_,d,t)},t.addInpInstrumentationHandler=function(e){return E("inp",e,S,m)},t.addLcpInstrumentationHandler=function(e,t=!1){return E("lcp",e,y,f,t)},t.addPerformanceInstrumentationHandler=function(e,t){return b(e,t),p[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);c.observe(e,t=>{h(e,{entries:t})},t)}(e),p[e]=!0),v(e,t)},t.addTtfbInstrumentationHandler=function(e){return E("ttfb",e,T,g)},t.isPerformanceEventTiming=function(e){return"duration"in e}},61632:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(99611),a=n(57169),i=n(10014),s=n(45282);function c(e){return null!=e&&e>0&&e<=6e4}function u(e,t,n,i){if(!c(e))return;o.DEBUG_BUILD&&r.debug.log(`Sending LCP span (${e})`);const u=s.msToSec((r.browserPerformanceTimeOrigin()||0)+(t?.startTime||0)),l=r.getCurrentScope().getScopeData().transactionName,p=t?a.htmlTreeAsString(t.element):"Largest contentful paint",d={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":n,"sentry.report_event":i};t&&(t.element&&(d["lcp.element"]=a.htmlTreeAsString(t.element)),t.id&&(d["lcp.id"]=t.id),t.url&&(d["lcp.url"]=t.url),null!=t.loadTime&&(d["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(d["lcp.renderTime"]=t.renderTime),null!=t.size&&(d["lcp.size"]=t.size));const f=s.startStandaloneWebVitalSpan({name:p,transaction:l,attributes:d,startTime:u});f&&(f.addEvent("lcp",{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),f.end(u))}t.MAX_PLAUSIBLE_LCP_DURATION=6e4,t._sendStandaloneLcpSpan=u,t.isValidLcpMetric=c,t.trackLcpAsStandaloneSpan=function(e){let t,n=0;if(!s.supportsWebVital("largest-contentful-paint"))return;const r=i.addLcpInstrumentationHandler(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&c(e.value)&&(n=e.value,t=r)},!0);s.listenForWebVitalReportEvents(e,(e,o)=>{u(n,t,o,e),r()})}},16797:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(45282);function a(e){return e?((r.browserPerformanceTimeOrigin()||performance.timeOrigin)+e)/1e3:e}t.resourceTimingToSpanAttributes=function(e){const t={};if(null!=e.nextHopProtocol){const{name:n,version:r}=o.extractNetworkProtocol(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return r.browserPerformanceTimeOrigin()||o.getBrowserPerformanceAPI()?.timeOrigin?(n={...t,"http.request.redirect_start":a(e.redirectStart),"http.request.redirect_end":a(e.redirectEnd),"http.request.worker_start":a(e.workerStart),"http.request.fetch_start":a(e.fetchStart),"http.request.domain_lookup_start":a(e.domainLookupStart),"http.request.domain_lookup_end":a(e.domainLookupEnd),"http.request.connect_start":a(e.connectStart),"http.request.secure_connection_start":a(e.secureConnectionStart),"http.request.connection_end":a(e.connectEnd),"http.request.request_start":a(e.requestStart),"http.request.response_start":a(e.responseStart),"http.request.response_end":a(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(n).filter(([,e])=>null!=e))):t;var n}},45282:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(12236),a=n(75437);t.extractNetworkProtocol=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}
2return r===e&&(t=r),{name:t,version:n}},t.getBrowserPerformanceAPI=function(){return o.WINDOW.addEventListener&&o.WINDOW.performance},t.isMeasurementValue=function(e){return"number"==typeof e&&isFinite(e)},t.listenForWebVitalReportEvents=function(e,t){let n,r=!1;function o(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}a.onHidden(()=>{o("pagehide")});const i=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(o("navigation"),i(),s())}),s=e.on("afterStartPageLoadSpan",e=>{n=e,s()})},t.msToSec=function(e){return e/1e3},t.startAndEndSpan=function(e,t,n,{...o}){const a=r.spanToJSON(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),r.withActiveSpan(e,()=>{const e=r.startInactiveSpan({startTime:t,...o});return e&&e.end(n),e})},t.startStandaloneWebVitalSpan=function(e){const t=r.getClient();if(!t)return;const{name:n,transaction:a,attributes:i,startTime:s}=e,{release:c,environment:u}=t.getOptions(),{userInfo:l}=t.getDataCollectionOptions(),p=t.getIntegrationByName("Replay"),d=p?.getReplayId(),f=r.getCurrentScope(),g=f.getUser(),m=void 0!==g?g.email||g.id||g.ip_address:void 0;let h;try{h=f.getScopeData().contexts.profile.profile_id}catch{}const _={release:c,environment:u,user:m||void 0,profile_id:h||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":o.WINDOW.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...i};return r.startInactiveSpan({name:n,attributes:_,startTime:s,experimental:{standalone:!0}})},t.supportsWebVital=function(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}},31120:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(12236),o=n(4942),a=n(34704),i=n(85886),s=n(29813),c=n(82081),u=n(35298),l=n(24202),p=n(85536),d=[.1,.25];t.CLSThresholds=d,t.onCLS=(e,t={})=>{p.onFCP(l.runOnce(()=>{const n=i.initMetric("CLS",0);let l;const p=a.getVisibilityWatcher(),f=s.initUnique(t,c.LayoutShiftManager),g=e=>{for(const t of e)f._processEntry(t);f._sessionValue>n.value&&(n.value=f._sessionValue,n.entries=f._sessionEntries,l())},m=u.observe("layout-shift",g);m&&(l=o.bindReporter(e,n,d,t.reportAllChanges),p.onHidden(()=>{g(m.takeRecords()),l(!0)}),r.WINDOW?.setTimeout?.(l))}))}},92157:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(4942),o=n(34704),a=n(85886),i=n(29813),s=n(8787),c=n(35298),u=n(7157),l=n(53593),p=n(23707),d=[200,500];t.INPThresholds=d,t.onINP=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=o.getVisibilityWatcher();l.whenActivated(()=>{u.initInteractionCountPolyfill();const o=a.initMetric("INP");let l;const f=i.initUnique(t,s.InteractionManager),g=e=>{p.whenIdleOrHidden(()=>{for(const n of e)f._processEntry(n);const t=f._estimateP98LongestInteraction();t&&t._latency!==o.value&&(o.value=t._latency,o.entries=t.entries,l())})},m=c.observe("event",g,{durationThreshold:t.durationThreshold??40});l=r.bindReporter(e,o,d,t.reportAllChanges),m&&(m.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{g(m.takeRecords()),l(!0)}))})}},92295:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(4942),o=n(34824),a=n(34704),i=n(45614),s=n(85886),c=n(29813),u=n(72466),l=n(35298),p=n(24202),d=n(53593),f=n(23707),g=[2500,4e3];t.LCPThresholds=g,t.onLCP=(e,t={})=>{d.whenActivated(()=>{const n=a.getVisibilityWatcher(),d=s.initMetric("LCP");let m;const h=c.initUnique(t,u.LCPEntryManager),_=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)h._processEntry(t),t.startTime<n.firstHiddenTime&&(d.value=Math.max(t.startTime-o.getActivationStart(),0),d.entries=[t],m())},y=l.observe("largest-contentful-paint",_);if(y){m=r.bindReporter(e,d,g,t.reportAllChanges);const n=p.runOnce(()=>{_(y.takeRecords()),y.disconnect(),m(!0)}),o=e=>{e.isTrusted&&(f.whenIdleOrHidden(n),i.removePageListener(e.type,o,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])i.addPageListener(e,o,{capture:!0})}})}},8787:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(7157);let o=0;t.InteractionManager=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){o=r.getInteractionCount(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor((r.getInteractionCount()-o)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>
2t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}}},72466:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.LCPEntryManager=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}},82081:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.LayoutShiftManager=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}},4942:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.bindReporter=(e,t,n,r)=>{let o,a;return i=>{t.value>=0&&(i||r)&&(a=t.value-(o??0),(a||void 0===o)&&(o=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}}},72437:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.generateUniqueID=()=>`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},34824:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(76946);t.getActivationStart=()=>{const e=r.getNavigationEntry();return e?.activationStart??0}},76946:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(12236);t.getNavigationEntry=(e=!0)=>{const t=r.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},34704:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(12236),o=n(34824),a=n(45614);let i=-1;const s=new Set,c=e=>{if(function(e){return"pagehide"===e.type||"hidden"===r.WINDOW.document?.visibilityState}(e)&&i>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(const e of s)e();isFinite(i)||(i="visibilitychange"===e.type?e.timeStamp:0,a.removePageListener("prerenderingchange",c,!0))}};t.getVisibilityWatcher=()=>{if(r.WINDOW.document&&i<0){const e=o.getActivationStart(),t=r.WINDOW.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;i=t??("hidden"!==r.WINDOW.document?.visibilityState||r.WINDOW.document?.prerendering?1/0:0),a.addPageListener("visibilitychange",c,!0),a.addPageListener("pagehide",c,!0),a.addPageListener("prerenderingchange",c,!0)}return{get firstHiddenTime(){return i},onHidden(e){s.add(e)}}}},45614:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(12236);t.addPageListener=function(e,t,n){r.WINDOW.document&&r.WINDOW.addEventListener(e,t,n)},t.removePageListener=function(e,t,n){r.WINDOW.document&&r.WINDOW.removeEventListener(e,t,n)}},85886:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(12236),o=n(72437),a=n(34824),i=n(76946);t.initMetric=(e,t=-1)=>{const n=i.getNavigationEntry();let s="navigate";n&&(r.WINDOW.document?.prerendering||a.getActivationStart()>0?s="prerender":r.WINDOW.document?.wasDiscarded?s="restore":n.type&&(s=n.type.replace(/_/g,"-")));return{name:e,value:t,rating:"good",delta:0,entries:[],id:o.generateUniqueID(),navigationType:s}}},29813:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=new WeakMap;t.initUnique=function(e,t){try{return n.get(e)||n.set(e,new t),n.get(e)}catch(r){return new t}}},35298:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.observe=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}}},75437:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(12236),o=n(45614);t.onHidden=e=>{const t=t=>
2{"pagehide"!==t.type&&"hidden"!==r.WINDOW.document?.visibilityState||e(t)};o.addPageListener("visibilitychange",t,{capture:!0,once:!0}),o.addPageListener("pagehide",t,{capture:!0,once:!0})}},7157:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(35298);let o=0,a=1/0,i=0;const s=e=>{e.forEach(e=>{e.interactionId&&(a=Math.min(a,e.interactionId),i=Math.max(i,e.interactionId),o=i?(i-a)/7+1:0)})};let c;t.getInteractionCount=()=>c?o:performance.interactionCount||0,t.initInteractionCountPolyfill=()=>{"interactionCount"in performance||c||(c=r.observe("event",s,{type:"event",buffered:!0,durationThreshold:0}))}},24202:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.runOnce=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},53593:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(12236);t.whenActivated=e=>{r.WINDOW.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()}},23707:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(12236),o=n(45614),a=n(24202);t.whenIdleOrHidden=e=>{const t=r.WINDOW.requestIdleCallback||r.WINDOW.setTimeout;"hidden"===r.WINDOW.document?.visibilityState?e():(e=a.runOnce(e),o.addPageListener("visibilitychange",e,{once:!0,capture:!0}),o.addPageListener("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),o.removePageListener("visibilitychange",e,{capture:!0}),o.removePageListener("pagehide",e,{capture:!0})}))}},85536:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(4942),o=n(34824),a=n(34704),i=n(85886),s=n(35298),c=n(53593),u=[1800,3e3];t.FCPThresholds=u,t.onFCP=(e,t={})=>{c.whenActivated(()=>{const n=a.getVisibilityWatcher(),c=i.initMetric("FCP");let l;const p=s.observe("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(p.disconnect(),t.startTime<n.firstHiddenTime&&(c.value=Math.max(t.startTime-o.getActivationStart(),0),c.entries.push(t),l(!0)))});p&&(l=r.bindReporter(e,c,u,t.reportAllChanges))})}},44217:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(12236),o=n(4942),a=n(34824),i=n(76946),s=n(85886),c=n(53593),u=[800,1800],l=e=>{r.WINDOW.document?.prerendering?c.whenActivated(()=>l(e)):"complete"!==r.WINDOW.document?.readyState?addEventListener("load",()=>l(e),!0):setTimeout(e)};t.TTFBThresholds=u,t.onTTFB=(e,t={})=>{const n=s.initMetric("TTFB"),r=o.bindReporter(e,n,u,t.reportAllChanges);l(()=>{const e=i.getNavigationEntry();e&&(n.value=Math.max(e.responseStart-a.getActivationStart(),0),n.entries=[e],r(!0))})}},54702:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(99611),a=n(57169),i=n(12236),s=n(8578),c=n(10014),u=n(61632),l=n(45282);function p(e){const{name:t,op:n,origin:o,metricName:a,value:s,attributes:c,parentSpan:u,reportEvent:l,startTime:p,endTime:d}=e,f=r.getCurrentScope().getScopeData().transactionName,g={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o,[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:n,[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,[`browser.web_vital.${a}.value`]:s,"sentry.transaction":f,"user_agent.original":i.WINDOW.navigator?.userAgent,...c};u&&"pageload"===r.spanToStreamedSpanJSON(u).attributes?.[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&(g["sentry.pageload.span_id"]=u.spanContext().spanId),l&&(g[`browser.web_vital.${a}.report_event`]=l);const m=r.startInactiveSpan({name:t,attributes:g,startTime:p,parentSpan:u});m&&m.end(d??p)}function d(e,t,n,i){if(!u.isValidLcpMetric(e))return;o.DEBUG_BUILD&&r.debug.log(`Sending LCP span (${e})`);const s=r.browserPerformanceTimeOrigin()||0,c=l.msToSec(s),d=l.msToSec(s+(t?.startTime||0)),f=t?a.htmlTreeAsString(t.element):"Largest contentful paint",g={};t?.element&&(g["browser.web_vital.lcp.element"]=a.htmlTreeAsString(t.element)),t?.id&&(g["browser.web_vital.lcp.id"]=t.id),t?.url&&(g["browser.web_vital.lcp.url"]=t.url),null!=t?.loadTime&&(g["browser.web_vital.lcp.load_time"]=t.loadTime),null!=t?.renderTime&&(g["browser.web_vital.lcp.render_time"]=t.renderTime),null!=t?.size&&(g["browser.web_vital.lcp.size"]=t.size),p({name:f,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:g,parentSpan:n,reportEvent:i,startTime:c,endTime:d})}function f(e,t,n,i){o.DEBUG_BUILD&&r.debug.log(`Sending CLS span (${e})`);const s=t?l.msToSec((r.browserPerformanceTimeOrigin()||0)+t.startTime):r.timestampInSeconds(),c=t?a.htmlTreeAsString(t.sources[0]?.node):"Layout shift",u={};
2t?.sources&&t.sources.forEach((e,t)=>{u[`browser.web_vital.cls.source.${t+1}`]=a.htmlTreeAsString(e.node)}),p({name:c,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:u,parentSpan:n,reportEvent:i,startTime:s})}function g(e,t){o.DEBUG_BUILD&&r.debug.log(`Sending INP span (${e})`);const n=l.msToSec(r.browserPerformanceTimeOrigin()+t.startTime),i=l.msToSec(e),c=s.INP_ENTRY_MAP[t.name],u=s.getCachedInteractionContext(t.interactionId),d=r.getActiveSpan(),f=d?r.getRootSpan(d):void 0,g=u?.span||f,m=g?r.spanToStreamedSpanJSON(g).name:r.getCurrentScope().getScopeData().transactionName;p({name:u?.elementName||a.htmlTreeAsString(t.target),op:`ui.interaction.${c}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration,"sentry.transaction":m},startTime:n,endTime:n+i,parentSpan:g})}t._emitWebVitalSpan=p,t._sendClsSpan=f,t._sendInpSpan=g,t._sendLcpSpan=d,t.trackClsAsSpan=function(e){let t,n=0;if(!l.supportsWebVital("layout-shift"))return;const r=c.addClsInstrumentationHandler(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);l.listenForWebVitalReportEvents(e,(e,o,a)=>{f(n,t,a,e),r()})},t.trackInpAsSpan=function(){if(!l.getBrowserPerformanceAPI()||!r.browserPerformanceTimeOrigin())return;c.addInpInstrumentationHandler(({metric:e})=>{if(null==e.value)return;if(l.msToSec(e.value)>s.MAX_PLAUSIBLE_INP_DURATION)return;const t=e.entries.find(t=>t.duration===e.value&&s.INP_ENTRY_MAP[t.name]);t&&g(e.value,t)})},t.trackLcpAsSpan=function(e){let t,n=0;if(!l.supportsWebVital("largest-contentful-paint"))return;const r=c.addLcpInstrumentationHandler(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&u.isValidLcpMetric(e.value)&&(n=e.value,t=r)},!0);l.listenForWebVitalReportEvents(e,(e,o,a)=>{d(n,t,a,e),r()})}},9298:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(99611),a=Symbol.for("sentry__originalRequestBody");function i(e){return new URLSearchParams(e).toString()}t.ORIGINAL_REQ_BODY=a,t.getBodyString=function(e,t=r.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[i(e)];if(!e)return[void 0]}catch(n){return o.DEBUG_BUILD&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return o.DEBUG_BUILD&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]},t.getFetchRequestArgBody=function(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const t=e[0][a];return void 0!==t?t:void 0}},t.parseXhrResponseHeaders=function(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return o.DEBUG_BUILD&&r.debug.error(n,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}},t.serializeFormData=i},12236:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872).GLOBAL_OBJ;t.WINDOW=r},44186:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(80866),a=n(44572);class i extends r.Client{constructor(e){const t=s(e),n=a.WINDOW.SENTRY_SDK_SOURCE||r.getSDKSource();r.applySdkMetadata(t,"browser",["browser"],n),super(t);const{userInfo:o}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:o?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:i,enableLogs:c,_experiments:u,enableMetrics:l}=this._options,p=l??u?.enableMetrics??!0;a.WINDOW.document&&(i||c||p)&&a.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===a.WINDOW.document.visibilityState&&(i&&this._flushOutcomes(),c&&r._INTERNAL_flushLogsBuffer(this),p&&r._INTERNAL_flushMetricsBuffer(this))}),o&&this.on("beforeSendSession",r.addAutoIpAddressToSession)}eventFromException(e,t){return o.eventFromException(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return o.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}function s(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:a.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}t.BrowserClient=i,t.applyDefaultOptions=s},43471:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.DEBUG_BUILD=n},60520:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020);t.diagnoseSdkConnectivity=async function(){const e=r.getClient();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await r.suppressTracing(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}},80866:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020);function o(e,t){const n=s(e,t),r={type:l(t),value:p(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function a(e,t,n,a){const i=r.getClient(),c=i?.getOptions().normalizeDepth,u=(l=t,Object.values(l).find(e=>e instanceof Error));var l;const p={__serialized__:r.normalizeToSize(t,c)};if(u)return{exception:{values:[o(e,u)]},extra:p};const d={exception:{values:[{type:r.isEvent(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:g(t,{isUnhandledRejection:a})}]},extra:p};if(n){const t=s(e,n);t.length&&(d.exception.values[0].stacktrace={frames:t})}return d}function i(e,t){return{exception:{values:[o(e,t)]}}}function s(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&c.test(e.message))return 1;return 0}(t),o=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,o)}catch{}return[]}const c=/Minified React error #\d+;/i;function u(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function l(e){const t=e?.name;if(!t&&u(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function p(e){const t=e?.message;return u(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?r._INTERNAL_enhanceErrorWithSentryInfo(t.error):r._INT
2ERNAL_enhanceErrorWithSentryInfo(e):"No error message"}function d(e,t,n,o,c){let u;if(r.isErrorEvent(t)&&t.error){return i(e,t.error)}if(r.isDOMError(t)||r.isDOMException(t)){const a=t;if("stack"in t){u=i(e,t);const a=u.exception?.values?.[0];if(o&&n&&a&&!a.stacktrace){const t=s(e,n);t.length&&(a.stacktrace={frames:t},r.addExceptionMechanism(u,{synthetic:!0}))}}else{const t=a.name||(r.isDOMError(a)?"DOMError":"DOMException"),i=a.message?`${t}: ${a.message}`:t;u=f(e,i,n,o),r.addExceptionTypeValue(u,i)}return"code"in a&&(u.tags={...u.tags,"DOMException.code":`${a.code}`}),u}if(r.isError(t))return i(e,t);if(r.isPlainObject(t)||r.isEvent(t)){return u=a(e,t,n,c),r.addExceptionMechanism(u,{synthetic:!0}),u}return u=f(e,t,n,o),r.addExceptionTypeValue(u,`${t}`,void 0),r.addExceptionMechanism(u,{synthetic:!0}),u}function f(e,t,n,o){const a={};if(o&&n){const o=s(e,n);o.length&&(a.exception={values:[{value:t,stacktrace:{frames:o}}]}),r.addExceptionMechanism(a,{synthetic:!0})}if(r.isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return a.logentry={message:e,params:n},a}return a.message=t,a}function g(e,{isUnhandledRejection:t}){const n=r.extractExceptionKeysForMessage(e),o=t?"promise rejection":"exception";if(r.isErrorEvent(e))return`Event \`ErrorEvent\` captured as ${o} with message \`${e.message}\``;if(r.isEvent(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${o}`}return`Object captured as ${o} with keys: ${n}`}t.eventFromException=function(e,t,n,o){const a=d(e,t,n?.syntheticException||void 0,o);return r.addExceptionMechanism(a),a.level="error",n?.event_id&&(a.event_id=n.event_id),r.resolvedSyncPromise(a)},t.eventFromMessage=function(e,t,n="info",o,a){const i=f(e,t,o?.syntheticException||void 0,a);return i.level=n,o?.event_id&&(i.event_id=o.event_id),r.resolvedSyncPromise(i)},t.eventFromUnknownInput=d,t.exceptionFromError=o,t.extractMessage=p,t.extractType=l},82696:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(65946),o=n(21555),a=r.buildFeedbackIntegration({lazyLoadIntegration:o.lazyLoadIntegration});t.feedbackAsyncIntegration=a},15801:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(65946),o=r.buildFeedbackIntegration({getModalIntegration:()=>r.feedbackModalIntegration,getScreenshotIntegration:()=>r.feedbackScreenshotIntegration});t.feedbackSyncIntegration=o},44572:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=r.GLOBAL_OBJ;let a=0;function i(){a++,setTimeout(()=>{a--})}t.WINDOW=o,t.getHttpRequestData=function(){const e=r.getLocationHref(),{referrer:t}=o.document||{},{userAgent:n}=o.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}},t.ignoreNextOnError=i,t.shouldIgnoreOnError=function(){return a>0},t.wrap=function e(t,n={}){if("function"!=typeof t)return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){const e=t.__sentry_wrapped__;return"function"==typeof e?e:t}if(r.getOriginalFunction(t))return t}catch{return t}const o=function(...o){r.GLOBAL_OBJ._sentryWrappedDepth=(r.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{const r=o.map(t=>e(t,n));return t.apply(this,r)}catch(a){throw i(),r.withScope(e=>{e.addEventProcessor(e=>(n.mechanism&&(r.addExceptionTypeValue(e,void 0,void 0),r.addExceptionMechanism(e,n.mechanism)),e.extra={...e.extra,arguments:o},e)),r.captureException(a)}),a}finally{r.GLOBAL_OBJ._sentryWrappedDepth=(r.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}catch{}r.markFunctionWrapped(o,t),r.addNonEnumerableProperty(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get(){return t.name}})}catch{}return o}},49345:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(82696),o=n(15801),a=n(63020),i=n(44572),s=n(44186),c=n(34260),u=n(55232),l=n(10120),p=n(80866),d=n(7589),f=n(79949),g=n(36376),m=n(9239),h=n(15331),_=n(48290),y=n(50011),T=n(87698),S=n(77833),E=n(21555),b=n(23897),v=n(82478),I=n(71383),A=n(81891),R=n(16258),N=n(37834),O=n(42197),P=n(65946),w=n(39917),C=n(19228),U=n(63461),L=n(7180),k=n(69982),M=n(37722),x=n(24957),B=n(45387),D=n(95464),j=n(45971),F=n(88078),G=n(20941),H=n(40639),W=n(32398),$=n(48132),q=n(29626),V=n(8192),z=n(74685),Y=n(60520),K=n(91337);t.feedbackAsyncIntegration=r.feedbackAsyncIntegration,t.feedbackIntegration=o.feedbackSyncIntegration,t.feedbackSyncIntegration=o.feedbackSyncIntegration,t.MULTIPLEXED_TRANSPORT_EXTRA_KEY=a.MULTIPLEXED_TRANSPORT_EXTRA_KEY,t.
2SDK_VERSION=a.SDK_VERSION,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=a.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.Scope=a.Scope,t.addBreadcrumb=a.addBreadcrumb,t.addEventProcessor=a.addEventProcessor,t.addIntegration=a.addIntegration,t.bindScopeToEmitter=a.bindScopeToEmitter,t.captureConsoleIntegration=a.captureConsoleIntegration,t.captureEvent=a.captureEvent,t.captureException=a.captureException,t.captureFeedback=a.captureFeedback,t.captureMessage=a.captureMessage,t.captureSession=a.captureSession,t.close=a.close,t.consoleLoggingIntegration=a.consoleLoggingIntegration,t.continueTrace=a.continueTrace,t.createConsolaReporter=a.createConsolaReporter,t.createLangChainCallbackHandler=a.createLangChainCallbackHandler,t.createTransport=a.createTransport,t.dedupeIntegration=a.dedupeIntegration,t.endSession=a.endSession,t.eventFiltersIntegration=a.eventFiltersIntegration,t.extraErrorDataIntegration=a.extraErrorDataIntegration,t.featureFlagsIntegration=a.featureFlagsIntegration,t.flush=a.flush,t.functionToStringIntegration=a.functionToStringIntegration,t.getActiveSpan=a.getActiveSpan,t.getClient=a.getClient,t.getCurrentScope=a.getCurrentScope,t.getGlobalScope=a.getGlobalScope,t.getIsolationScope=a.getIsolationScope,t.getRootSpan=a.getRootSpan,t.getSpanDescendants=a.getSpanDescendants,t.getSpanStatusFromHttpCode=a.getSpanStatusFromHttpCode,t.getTraceData=a.getTraceData,t.inboundFiltersIntegration=a.inboundFiltersIntegration,t.instrumentAnthropicAiClient=a.instrumentAnthropicAiClient,t.instrumentCreateReactAgent=a.instrumentCreateReactAgent,t.instrumentGoogleGenAIClient=a.instrumentGoogleGenAIClient,t.instrumentLangChainEmbeddings=a.instrumentLangChainEmbeddings,t.instrumentLangGraph=a.instrumentLangGraph,t.instrumentOpenAiClient=a.instrumentOpenAiClient,t.instrumentSupabaseClient=a.instrumentSupabaseClient,t.isEnabled=a.isEnabled,t.isInitialized=a.isInitialized,t.lastEventId=a.lastEventId,t.logger=a.logger,t.makeMultiplexedTransport=a.makeMultiplexedTransport,t.metrics=a.metrics,t.moduleMetadataIntegration=a.moduleMetadataIntegration,t.parameterize=a.parameterize,t.registerSpanErrorInstrumentation=a.registerSpanErrorInstrumentation,t.rewriteFramesIntegration=a.rewriteFramesIntegration,t.setAttribute=a.setAttribute,t.setAttributes=a.setAttributes,t.setContext=a.setContext,t.setConversationId=a.setConversationId,t.setCurrentClient=a.setCurrentClient,t.setExtra=a.setExtra,t.setExtras=a.setExtras,t.setHttpStatus=a.setHttpStatus,t.setMeasurement=a.setMeasurement,t.setTag=a.setTag,t.setTags=a.setTags,t.setUser=a.setUser,t.spanToBaggageHeader=a.spanToBaggageHeader,t.spanToJSON=a.spanToJSON,t.spanToTraceHeader=a.spanToTraceHeader,t.startInactiveSpan=a.startInactiveSpan,t.startNewTrace=a.startNewTrace,t.startSession=a.startSession,t.startSpan=a.startSpan,t.startSpanManual=a.startSpanManual,t.supabaseIntegration=a.supabaseIntegration,t.suppressTracing=a.suppressTracing,t.thirdPartyErrorFilterIntegration=a.thirdPartyErrorFilterIntegration,t.updateSpanName=a.updateSpanName,t.withActiveSpan=a.withActiveSpan,t.withIsolationScope=a.withIsolationScope,t.withScope=a.withScope,t.withStreamedSpan=a.withStreamedSpan,t.zodErrorsIntegration=a.zodErrorsIntegration,t.WINDOW=i.WINDOW,t.BrowserClient=s.BrowserClient,t.makeFetchTransport=c.makeFetchTransport,t.uiProfiler=u.uiProfiler,t.chromeStackLineParser=l.chromeStackLineParser,t.defaultStackLineParsers=l.defaultStackLineParsers,t.defaultStackParser=l.defaultStackParser,t.geckoStackLineParser=l.geckoStackLineParser,t.opera10StackLineParser=l.opera10StackLineParser,t.opera11StackLineParser=l.opera11StackLineParser,t.winjsStackLineParser=l.winjsStackLineParser,t.eventFromException=p.eventFromException,t.eventFromMessage=p.eventFromMessage,t.exceptionFromError=p.exceptionFromError,t.createUserFeedbackEnvelope=d.createUserFeedbackEnvelope,t.forceLoad=f.forceLoad,t.getDefaultIntegrations=f.getDefaultIntegrations,t.init=f.init,t.onLoad=f.onLoad,t.showReportDialog=g.showReportDialog,t.breadcrumbsIntegration=m.breadcrumbsIntegration,t.globalHandlersIntegration=h.globalHandlersIntegration,t.httpContextIntegration=_.httpContextIntegration,t.linkedErrorsIntegration=y.linkedErrorsIntegration,t.browserApiErrorsIntegration=T.browserApiErrorsIntegration,t.browserSessionIntegration=S.browserSessionIntegration,t.lazyLoadIntegration=E.lazyLoadIntegration,t.reportingObserverIntegration=b.reportingObserverIntegration,t.httpClientIntegration=v.httpClientIntegration,t.contextLinesIntegration=I.contextLinesIntegration,t.graphqlClientIntegration=A.graphqlClientIntegration,t.viewHierarchyIntegration=R.viewHierarchyIntegration,t.getReplay=N.getReplay,t.replayIntegration=N.replayIntegration,t.replayCanvasIntegration=O.replayCanvasIntegration,t.getFeedback=P.getFeedback,t.sendFeedback=P.sendFeedback,t.defaultRequestInstrumentationOptions=w.defaultRequestInstrumentationOptions,t.instrumentOutgoingRequests=w.instrumentOutgoingRequests,t.browserTracingIntegration=C.browserTracingIntegration,t.isBotUserAgent=C.isBotUserAgent,t.startBrowserTracingNavigationSpan=C.startBrowserTracingNavigationSpan,t.startBrowserTracingPageLoadSpan=C.startBrowserTracingPageLoadSpan,t.elementTimingIntegration=U.elementTimingIntegration,t.normalizeStringifyValue=L.normalizeStringifyValue,t.reportPageLoaded=k.reportPageLoaded,t.setActiveSpanInBrowser=M.setActiveSpanInBrowser,t.spanStreamingIntegration=x.spanStreamingIntegration,t.fetchStreamPerformanceIntegration=B.fetchStreamPerformanceIntegration,t.webVitalsIntegration=D.webVitalsIntegration,t.makeBrowserOfflineTransport=j.makeBrowserOfflineTransport,t.browserProfilingIntegration=F.browserProfilingIntegration,t.spotlightBrowserIntegration=G.spotlightBrowserIntegration,t.cultureContextIntegration=H.cultureContextIntegration,t.buildLaunchDarklyFlagUsedHandler=W.buildLaunchDarklyFlagUsedHandler,t.launchDarklyIntegration=W.launchDarklyIntegration,t.OpenFeatureIntegrationHook=$.OpenFeatureIntegrationHook,t.openFeatureIntegration=$.openFeatureIntegration,t.unleashIntegration=q.unleashIntegration,t.growthbookIntegration=V.growthbookIntegration,t.statsigIntegration=z.statsigIntegration,t.diagnoseSdkConnectivity=Y.diagnoseSdkConnectivity,t.registerWebWorker=K.registerWebWorker,t.webWorkerIntegration=K.webWorkerIntegration},9239:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(63461),a=n(43471),i=n(44572),s=1024,c=r.defineIntegration((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&r.addConsoleInstrumentationHandler(function(e){return function(t){if(r.getClient()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:r.severityLevelFromString(t.level),message:r.safeJoin(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${r.safeJoin(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}r.addBreadcrumb(n,{input:t.args,level:t.level})}}(e)),t.dom&&o.addClickKeypressInstrumentationHandler(function(e,t){return function(n){if(r.getClient()!==e)return;let i,c,u="object"==typeof t?t.serializeAttribute:void 0,l="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;l&&l>s&&(a.DEBUG_BUILD&&r.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${l} was configured. Sentry will use 1024 instead.`),l=s),"string"==typeof u&&(u=[u]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;i=o.htmlTreeAsString(t,{keyAttrs:u,maxStringLength:l}),c=r.getComponentName(t)}catch{i="<unknown>"}if(0===i.length)return;const p={category:`ui.${n.name}`,message:i};c&&(p.data={"ui.component_name":c}),r.addBreadcrumb(p,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&o.addXhrInstrumentationHandler(function(e){return function(t){if(r.getClient()!==e)return;const{startTimestamp:n,endTimestamp:a}=t,i=t.xhr[o.SENTRY_XHR_DATA_KEY];if(!n||!a||!i)return;const{method:s,url:c,status_code:u,body:l}=i,p={method:s,url:c,status_code:u},d={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:a},f={category:"xhr",data:p,type:"http",level:r.getBreadcrumbLogLevelFromHttpStatusCode(u)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),r.addBreadcrumb(f,d)}}(e)),t.fetch&&r.addFetchInstrumentationHandler(function(e){return function(t){if(r.getClient()!==e)return;const{startTimestamp:n,endTimestamp:o}=t;
2if(o&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const a={data:t.error,input:t.args,startTimestamp:n,endTimestamp:o},i={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",i,a),r.addBreadcrumb(i,a)}else{const a=t.response,i={...t.fetchData,status_code:a?.status},s={input:t.args,response:a,startTimestamp:n,endTimestamp:o},c={category:"fetch",data:i,type:"http",level:r.getBreadcrumbLogLevelFromHttpStatusCode(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,s),r.addBreadcrumb(c,s)}}}(e)),t.history&&o.addHistoryInstrumentationHandler(function(e){return function(t){if(r.getClient()!==e)return;let n=t.from,o=t.to;const a=r.parseUrl(i.WINDOW.location.href);let s=n?r.parseUrl(n):void 0;const c=r.parseUrl(o);s?.path||(s=a),a.protocol===c.protocol&&a.host===c.host&&(o=c.relative),a.protocol===s.protocol&&a.host===s.host&&(n=s.relative),r.addBreadcrumb({category:"navigation",data:{from:n,to:o}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){r.getClient()===e&&r.addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:r.getEventDescription(t)},{event:t})}}(e))}}});t.breadcrumbsIntegration=c},87698:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(44572),a="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".split(","),i=r.defineIntegration((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&r.fill(o.WINDOW,"setTimeout",s),t.setInterval&&r.fill(o.WINDOW,"setInterval",s),t.requestAnimationFrame&&r.fill(o.WINDOW,"requestAnimationFrame",c),t.XMLHttpRequest&&"XMLHttpRequest"in o.WINDOW&&r.fill(XMLHttpRequest.prototype,"send",u);const e=t.eventTarget;if(e){(Array.isArray(e)?e:a).forEach(e=>function(e,t){const n=o.WINDOW,a=n[e]?.prototype;if(!a?.hasOwnProperty?.("addEventListener"))return;r.fill(a,"addEventListener",function(n){return function(a,i,s){try{"function"==typeof i.handleEvent&&(i.handleEvent=o.wrap(i.handleEvent,{mechanism:{data:{handler:r.getFunctionName(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,a,i),n.apply(this,[a,o.wrap(i,{mechanism:{data:{handler:r.getFunctionName(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),r.fill(a,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}}catch{}return e.call(this,t,n,r)}})}(e,t))}}}});function s(e){return function(...t){const n=t[0];return t[0]=o.wrap(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${r.getFunctionName(e)}`}}),e.apply(this,t)}}function c(e){return function(t){return e.apply(this,[o.wrap(t,{mechanism:{data:{handler:r.getFunctionName(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function u(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&r.fill(n,e,function(t){const n={mechanism:{data:{handler:r.getFunctionName(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},a=r.getOriginalFunction(t);return a&&(n.mechanism.data.handler=r.getFunctionName(a)),o.wrap(t,n)})}),e.apply(this,t)}}t.browserApiErrorsIntegration=i},77833:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(63461),a=n(43471),i=n(44572),s=r.defineIntegration((e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===i.WINDOW.document)return void(a.DEBUG_BUILD&&r.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));r.startSession({ignoreDuration:!0});let e=!1;o.whenIdleOrHidden(()=>{e||(r.captureSession(),e=!0)});const n=r.getIsolationScope();let s=n.getUser();n.addScopeListener(t=>{const n=t.getUser();s?.id===n?.id&&s?.ip_address===n?.ip_address||(s=n,e&&r.captureSession())}),"route"===t&&o.addHistoryInstrumentationHandler(({from:t,to:n})=>{t!==n&&(r.startSession({ignoreDuration:!0}),r.captureSession(),e=!0)})}}});t.browserSessionIntegration=s},71383:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=r.GLOBAL_OBJ,a=r.defineIntegration((e={})=>({name:"ContextLines",processEvent(t,n,a){return function(e,t){const n=o.document,a=o.location&&r.stripUrlQueryAndFragment(o.location.href);if(!n||!a)return e;const s=e.exception?.values;if(!s?.length)return e;const c=n.documentElement.innerHTML;if(!c)return e;const u=["<!DOCTYPE html>","<html>",...c.split("\n"),"</html>"];
2return s.forEach(e=>{const n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>i(e,u,a,t)))}),e}(t,e.frameContextLines??a?.getDataCollectionOptions().frameContextLines??7)}}));function i(e,t,n,o){return e.filename===n&&e.lineno&&t.length?(r.addContextToFrame(t,e,o),e):e}t.applySourceContextToFrame=i,t.contextLinesIntegration=a},40639:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(44572),a=r.defineIntegration(()=>({name:"CultureContext",preprocessEvent(e){const t=i();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=i();t&&r.safeSetSpanJSONAttributes(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}));function i(){try{const e=o.WINDOW.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}t.cultureContextIntegration=a},8192:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020);t.growthbookIntegration=({growthbookClass:e})=>r.growthbookIntegration({growthbookClass:e})},32398:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=r.defineIntegration(()=>({name:"LaunchDarkly",processEvent(e,t,n){return r._INTERNAL_copyFlagsFromScopeToEvent(e)}}));t.buildLaunchDarklyFlagUsedHandler=function(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{r._INTERNAL_insertFlagToScope(e,t.value),r._INTERNAL_addFeatureFlagToActiveSpan(e,t.value)}}},t.launchDarklyIntegration=o},48132:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=r.defineIntegration(()=>({name:"OpenFeature",processEvent(e,t,n){return r._INTERNAL_copyFlagsFromScopeToEvent(e)}}));t.OpenFeatureIntegrationHook=class{after(e,t){r._INTERNAL_insertFlagToScope(t.flagKey,t.value),r._INTERNAL_addFeatureFlagToActiveSpan(t.flagKey,t.value)}error(e,t,n){r._INTERNAL_insertFlagToScope(e.flagKey,e.defaultValue),r._INTERNAL_addFeatureFlagToActiveSpan(e.flagKey,e.defaultValue)}},t.openFeatureIntegration=o},74685:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=r.defineIntegration(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{r._INTERNAL_insertFlagToScope(e.gate.name,e.gate.value),r._INTERNAL_addFeatureFlagToActiveSpan(e.gate.name,e.gate.value)})},processEvent(e,t,n){return r._INTERNAL_copyFlagsFromScopeToEvent(e)}}));t.statsigIntegration=o},29626:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=r.defineIntegration(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;r.fill(t,"isEnabled",i)},processEvent(e,t,n){return r._INTERNAL_copyFlagsFromScopeToEvent(e)}}));function i(e){return function(...t){const n=t[0],a=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof a?(r._INTERNAL_insertFlagToScope(n,a),r._INTERNAL_addFeatureFlagToActiveSpan(n,a)):o.DEBUG_BUILD&&r.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${a} (${typeof a})`),a}}t.unleashIntegration=a},45387:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=new WeakMap,a=new WeakMap,i=["text/event-stream","application/x-ndjson","application/stream+json"],s=r.defineIntegration(()=>({name:"FetchStreamPerformance",setup(){r.addFetchEndInstrumentationHandler(e=>{if(e.response){const t=o.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);const n=a.get(e.response);n&&clearTimeout(n)}}}),r.addFetchInstrumentationHandler(e=>{if(e.endTimestamp&&e.response){const t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!i.some(e=>
2t.startsWith(e)))return;const n=e.fetchData?.url||"",s=e.fetchData?.method||"GET",c=r.parseStringToURLObject(n),u=n.startsWith("data:")?r.stripDataUrlContent(n):c?r.getSanitizedUrlStringFromUrlObject(c):n,l=r.startInactiveSpan({name:`${s} ${u}`,startTime:e.endTimestamp,attributes:{url:r.stripDataUrlContent(n),"http.method":s,type:"fetch",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});o.set(e.response,l);const p=setTimeout(()=>{l.isRecording()&&l.end()},9e4);a.set(e.response,p)}})}}));t.fetchStreamPerformanceIntegration=s},15331:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(80866),i=n(44572),s=r.defineIntegration((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){r.addGlobalErrorInstrumentationHandler(t=>{const{stackParser:n,attachStacktrace:o}=p();if(r.getClient()!==e||i.shouldIgnoreOnError())return;const{msg:s,url:c,line:u,column:l,error:f}=t,g=function(e,t,n,o){const a=e.exception=e.exception||{},i=a.values=a.values||[],s=i[0]=i[0]||{},c=s.stacktrace=s.stacktrace||{},u=c.frames=c.frames||[];0===u.length&&u.push({colno:o,lineno:n,filename:d(t)??r.getLocationHref(),function:r.UNKNOWN_FUNCTION,in_app:!0});return e}(a.eventFromUnknownInput(n,f||s,void 0,o,!1),c,u,l);g.level="error",r.captureEvent(g,{originalException:f,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),l("onerror")),t.onunhandledrejection&&(!function(e){r.addGlobalUnhandledRejectionInstrumentationHandler(t=>{const{stackParser:n,attachStacktrace:o}=p();if(r.getClient()!==e||i.shouldIgnoreOnError())return;const s=c(t),l=r.isPrimitive(s)?u(s):a.eventFromUnknownInput(n,s,void 0,o,!0);l.level="error",r.captureEvent(l,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),l("onunhandledrejection"))}}});function c(e){if(r.isPrimitive(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}function u(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function l(e){o.DEBUG_BUILD&&r.debug.log(`Global Handler attached: ${e}`)}function p(){const e=r.getClient();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function d(e){if(r.isString(e)&&0!==e.length)return e.startsWith("data:")?`<${r.stripDataUrlContent(e,!1)}>`:e}t._eventFromRejectionWithPrimitive=u,t._getUnhandledRejectionError=c,t.globalHandlersIntegration=s},81891:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(63461);function a(e){if(l(e))return`persisted ${e.operationName}`;if(u(e)){const{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=s(t);return r?`${o} ${r}`:`${o}`}return"unknown"}function i(e){let t;if("xhr"in e){const n=e.xhr[o.SENTRY_XHR_DATA_KEY];t=n&&o.getBodyString(n.body)[0]}else{const n=o.getFetchRequestArgBody(e.input);t=o.getBodyString(n)[0]}return t}function s(e){const t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};const n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function c(e){return"object"==typeof e&&null!==e}function u(e){return c(e)&&"string"==typeof e.query}function l(e){return c(e)&&"string"==typeof e.operationName&&c(e.extensions)&&c(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function p(e){try{const t=JSON.parse(e);return u(t)||l(t)?t:void 0}catch{return}}const d=r.defineIntegration(e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",(e,n)=>{const o=r.spanToJSON(e).data||{};if(!("http.client"===o[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]))return;const s=o[r.SEMANTIC_ATTRIBUTE_URL_FULL]||o["http.url"]||o.url,c=o[r.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||o["http.method"];
2if(!r.isString(s)||!r.isString(c))return;const{endpoints:d}=t,f=r.stringMatchesSomePattern(s,d),g=i(n);if(f&&g){const t=p(g);if(t){const n=a(t);e.updateName(`${c} ${s} (${n})`),u(t)&&e.setAttribute("graphql.document",t.query),l(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}})}(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,n)=>{const{category:o,type:s,data:c}=e;if("http"===s&&("fetch"===o||"xhr"===o)){const e=c?.url,{endpoints:o}=t,s=r.stringMatchesSomePattern(e,o),d=i(n);if(s&&c&&d){const e=p(d);if(!c.graphql&&e){const t=a(e);c["graphql.operation"]=t,u(e)&&(c["graphql.document"]=e.query),l(e)&&(c["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,c["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}(t,e)}}));t._getGraphQLOperation=a,t.getGraphQLRequestPayload=p,t.getRequestPayloadXhrOrFetch=i,t.graphqlClientIntegration=d,t.parseGraphQLQuery=s},82478:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(63461),a=n(43471),i=r.defineIntegration((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!r.supportsNativeFetch())return;r.addFetchInstrumentationHandler(n=>{if(r.getClient()!==e)return;const{response:o,args:a,error:i,virtualError:s}=n,[d,f]=a;o&&function(e,t,n,o,a){if(u(e,n.status,n.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(t,o);let i,s,u,d;const f=p();if(!1!==f.requestHeaders&&(i=r._INTERNAL_filterKeyValueData(c(e.headers),f.requestHeaders)),!1!==f.responseHeaders&&(s=r._INTERNAL_filterKeyValueData(c(n.headers),f.responseHeaders)),!1!==f.cookies){const t=e.headers.get("Cookie")||void 0;if(t){const e=r._INTERNAL_filterCookies(t,f.cookies);"object"==typeof e&&(u=e)}const o=n.headers.get("Set-Cookie")||void 0;if(o){const e=r._INTERNAL_filterCookies(o,f.cookies);"object"==typeof e&&(d=e)}}const g=l({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:u,responseCookies:d,error:a,type:"fetch"});r.captureEvent(g)}}(t,d,o,f,i||s)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in r.GLOBAL_OBJ))return;o.addXhrInstrumentationHandler(n=>{if(r.getClient()!==e)return;const{error:i,virtualError:s}=n,c=n.xhr,d=c[o.SENTRY_XHR_DATA_KEY];if(!d)return;const{method:f,request_headers:g}=d;try{!function(e,t,n,o,a){if(u(e,t.status,t.responseURL)){let e,i,s;const c=p();if(!1!==c.cookies)try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){const t=r._INTERNAL_filterCookies(e,c.cookies);"object"==typeof t&&(i=t)}}catch{}if(!1!==c.responseHeaders)try{s=r._INTERNAL_filterKeyValueData(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{})}(t),c.responseHeaders)}catch{}!1!==c.requestHeaders&&(e=r._INTERNAL_filterKeyValueData(o,c.requestHeaders));const u=l({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:s,responseCookies:i,error:a,type:"xhr"});r.captureEvent(u)}}(t,c,f,g,i||s)}catch(m){a.DEBUG_BUILD&&r.debug.warn("Error while extracting response event form XHR response",m)}})}(e,t)}}});function s(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function c(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}function u(e,t,n){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(o=e.failedRequestTargets,a=n,o.some(e=>"string"==typeof e?a.includes(e):e.test(a)))&&!r.isSentryRequestUrl(n,r.getClient());var o,a}function l(e){const t=r.getClient(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,o=n&&t?t.getOptions().stackParser(n,0,1):void 0,a=`HTTP Client Error with status code: ${e.status}`,i={message:a,exception:{values:[{type:"Error",value:a,stacktrace:o?{frames:o}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:s(e.responseHeaders)}}};return r.addExceptionMechanism(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function p(){const e=r.getClient();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};const t=e.getOptions();if(null==t.dataCollection){const e=Boolean(t.sendDefaultPii);return{cookies:e,requestHeaders:e,responseHeaders:e}}const{cookies:n,httpHeaders:o}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:o.request,responseHeaders:o.response}}t.httpClientIntegration=i},48290:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(44572),a=r.defineIntegration(()=>({name:"HttpContext",preprocessEvent(e){if(!o.WINDOW.navigator&&!o.WINDOW.location&&!o.WINDOW.document)return;const t=o.getHttpRequestData(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){const t=e.attributes?.[r.SEMANTIC_ATTRIBUTE_SENTRY_OP];if(!o.WINDOW.navigator&&!o.WINDOW.location&&!o.WINDOW.document)return;const n=o.getHttpRequestData();r.safeSetSpanJSONAttributes(e,{"url.full":"http.client"!==t?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}));t.httpContextIntegration=a},50011:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(80866),a=r.defineIntegration((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,a,i){const s=i.getOptions();r.applyAggregateErrorsToEvent(o.exceptionFromError,s.stackParser,n,t,e,a)}}});t.linkedErrorsIntegration=a},23897:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=r.GLOBAL_OBJ,a=new WeakMap,i=r.defineIntegration((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(a.has(r.getClient()))for(const t of e)r.withScope(e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let o="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;o=[e.crashId||"",e.reason||""].join(" ").trim()||o}else{o=t.body.message||o}}r.captureMessage(`${n}: ${o}`)})}return{name:"ReportingObserver",setupOnce(){if(!r.supportsReportingObserver())return;new o.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){a.set(e,!0)}}});t.reportingObserverIntegration=i},24957:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=r.defineIntegration(()=>({name:"SpanStreaming",beforeSetup(e){const t=e.getOptions();t.traceLifecycle||(o.DEBUG_BUILD&&r.debug.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){const t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",a=e.getOptions();if(!r.hasSpanStreamingEnabled(e))return a.traceLifecycle="static",void(o.DEBUG_BUILD&&r.debug.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`));const i=a.beforeSendSpan;if(i&&!r.isStreamedBeforeSendSpanCallback(i))return a.traceLifecycle="static",void(o.DEBUG_BUILD&&r.debug.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`));const s=new r.SpanBuffer(e);e.on("afterSpanEnd",t=>{r.spanIsSampled(t)&&s.add(r.captureSpan(t,e))}),e.on("afterSegmentSpanEnd",e=>{const t=e.spanContext().traceId;setTimeout(()=>{s.flush(t)},500)})}}));t.spanStreamingIntegration=a},20941:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(63461),a=n(43471),i="SpotlightBrowser",s=[{op:"ui.interaction.click",name:"#sentry-spotlight"}];const c=r.defineIntegration((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:i,setup:()=>{a.DEBUG_BUILD&&r.debug.log("Using Sidecar URL",t)},beforeSetup(e){const t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...s]},afterAllSetup:e=>{!function(e,t){const n=o.getNativeImplementation("fetch");let a=0;e.on("beforeEnvelope",e=>{a>3?r.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",a):n(t,{method:"POST",body:r.serializeEnvelope(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(a=0)},e=>
2{a++,r.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}});t.INTEGRATION_NAME=i,t.SPOTLIGHT_IGNORE_SPANS=s,t.spotlightBrowserIntegration=c},16258:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(44572),a=r.defineIntegration((e={})=>{const t=["script"];function n(o,a,i=0){if(!o)return;const s="shadowRoot"in o&&o.shadowRoot?o.shadowRoot.children:o.children;for(const c of s){if(!(c instanceof HTMLElement))continue;const o=r.getComponentName(c,1)||void 0,s=c.tagName.toLowerCase();if(t.includes(s))continue;const u=e.onElement?.({element:c,componentName:o,tagName:s,depth:i})||{};if("skip"===u)continue;if("children"===u){n(c,a,i+1);continue}const{x:l,y:p,width:d,height:f}=c.getBoundingClientRect(),g={identifier:c.id||void 0,type:o||s,visible:!0,alpha:1,height:f,width:d,x:l,y:p,...u},m=[];g.children=m,n(c,g.children,i+1),a.push(g)}}return{name:"ViewHierarchy",processEvent:(t,r)=>{if(void 0!==t.type||!1===e.shouldAttach?.(t,r))return t;const a={rendering_system:"DOM",positioning:"absolute",windows:[]};n(e.rootElement?.()||o.WINDOW.document.body,a.windows);const i={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(a)};return r.attachments=r.attachments||[],r.attachments.push(i),t}}});t.viewHierarchyIntegration=a},95464:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(63461),a="WebVitals",i=r.defineIntegration((e={})=>{const t=new Set(e.ignore??[]);return{name:a,setup(n){const a=r.hasSpanStreamingEnabled(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:s}=e._experiments??{},c=a||t.has("cls")?void 0:i||!1,u=a||t.has("lcp")?void 0:s||!1,l=o.startTrackingWebVitals({recordClsStandaloneSpans:c,recordLcpStandaloneSpans:u,client:n}),p=new WeakSet;n.on("afterStartPageLoadSpan",e=>{p.add(e)}),n.on("spanEnd",e=>{p.delete(e)&&(l(),o.addWebVitalsToSpan(e,{recordClsOnPageloadSpan:!1===c,recordLcpOnPageloadSpan:!1===u,spanStreamingEnabled:a}))}),a?(t.has("lcp")||o.trackLcpAsSpan(n),t.has("cls")||o.trackClsAsSpan(n),t.has("inp")||o.trackInpAsSpan()):t.has("inp")||o.startTrackingINP()},afterAllSetup(){t.has("inp")||o.registerInpInteractionListener()}}});t.WEB_VITALS_INTEGRATION_NAME=a,t.webVitalsIntegration=i},91337:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(80866),i=n(44572),s=n(15331),c="WebWorker",u=r.defineIntegration(({worker:e})=>({name:c,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>l(e))},addWorker:e=>l(e)}));function l(e){e.addEventListener("message",e=>{if(function(e){if(!r.isPlainObject(e)||!0!==e._sentryMessage)return!1;const t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,o="_sentryWorkerError"in e,a="_sentryWasmImages"in e;if(!(t||n||o||a))return!1;if(t&&!r.isPlainObject(e._sentryDebugIds)&&void 0!==e._sentryDebugIds)return!1;if(n&&!r.isPlainObject(e._sentryModuleMetadata)&&void 0!==e._sentryModuleMetadata)return!1;if(o&&!r.isPlainObject(e._sentryWorkerError))return!1;if(a&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(e=>r.isPlainObject(e)&&"string"==typeof e.code_file)))return!1;return!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(o.DEBUG_BUILD&&r.debug.log("Sentry debugId web worker message received",e.data),i.WINDOW._sentryDebugIds={...e.data._sentryDebugIds,...i.WINDOW._sentryDebugIds}),e.data._sentryModuleMetadata&&(o.DEBUG_BUILD&&r.debug.log("Sentry module metadata web worker message received",e.data),i.WINDOW._sentryModuleMetadata={...e.data._sentryModuleMetadata,...i.WINDOW._sentryModuleMetadata}),e.data._sentryWasmImages){o.DEBUG_BUILD&&r.debug.log("Sentry WASM images web worker message received",e.data);const t=i.WINDOW._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>r.isPlainObject(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));i.WINDOW._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&(o.DEBUG_BUILD&&r.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){const t=r.getClient();if(!t)return;const n=t.getOptions().stackParser,i=t.getOptions().attachStacktrace,c=e.reason,u=r.isPrimitive(c)?s._eventFromRejectionWithPrimitive(c):a.eventFromUnknownInput(n,c,void 0,i,!0);u.level="error",e.filename&&(u.contexts={...u.contexts,worker:{filename:e.filename}});r.captureEvent(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),o.DEBUG_BUILD&&r.debug.log("Captured worker unhandled rejection",c)}(e.data._sentryWorkerError))}})}t.INTEGRATION_NAME=c,t.registerWebWorker=function({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{const n={reason:s._getUnhandledRejectionError(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),o.DEBUG_BUILD&&r.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),o.DEBUG_BUILD&&r.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")},t.webWorkerIntegration=u},7180:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63461),o=/^HTML(\w*)Element$/;t.normalizeStringifyValue=function(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(r.isElement(e)){const t=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(o.test(t))return`[HTMLElement: ${r.htmlTreeAsString(e)}]`}}},1773:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(81625);t.UIProfiler=class{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){const t=e.getOptions().profileLifecycle,n=a.shouldProfileSession(e.getOptions());o.DEBUG_BUILD&&r.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||o.DEBUG_BUILD&&r.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=r.uuid4(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&a.setThreadAttributes(e)})}start(){"trace"!==this._lifecycleMode?this._isRunning?o.DEBUG_BUILD&&r.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a
2no-op."):this._sessionSampled?this._beginProfiling():o.DEBUG_BUILD&&r.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op."):o.DEBUG_BUILD&&r.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.')}stop(){"trace"!==this._lifecycleMode?this._isRunning?this._endProfiling():o.DEBUG_BUILD&&r.debug.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op."):o.DEBUG_BUILD&&r.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.')}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const n=this._activeRootSpanIds.size;1===n&&(o.DEBUG_BUILD&&r.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this._beginProfiling()),this._isRunning&&a.setThreadAttributes(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,o.DEBUG_BUILD&&r.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),r.getGlobalScope().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return o.DEBUG_BUILD&&r.debug.log("[Profiling] Failed to start JS Profiler; stopping."),void this._resetProfilerInfo();this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{o.DEBUG_BUILD&&r.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&r.getGlobalScope().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled)return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session."));if(e!==r.getRootSpan(e))return;if(!e.isRecording())return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because root span was not sampled."));const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const n=this._activeRootSpanIds.size;1===n&&(o.DEBUG_BUILD&&r.debug.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);const n=this._activeRootSpanIds.size;o.DEBUG_BUILD&&r.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),0===n&&(this._collectCurrentChunk().catch(e=>{o.DEBUG_BUILD&&r.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,r.getGlobalScope().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);const t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(!1===this._profiler?.stopped)return;const e=a.startJSSelfProfile();e?this._profiler=e:o.DEBUG_BUILD&&r.debug.log("[Profiling] Failed to start JS Profiler.")}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{o.DEBUG_BUILD&&r.debug.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(o.DEBUG_BUILD&&r.debug.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){const e=this._profiler;if(this._profiler=void 0,e)try{const t=await e.stop(),n=a.createProfileChunkPayload(t,this._client,this._profilerId),i=a.validateProfileChunk(n);if("reason"in i)return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",i.reason));this._sendProfileChunk(n),o.DEBUG_BUILD&&r.debug.log("[Profiling] Collected browser profile chunk.")}catch(t){o.DEBUG_BUILD&&r.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",t)}}_sendProfileChunk(e){const t=this._client,n=r.getSdkMetadataForEnvelopeHeader(t.getSdkMetadata?.()),a=t.getDsn(),i=t.getOptions().tunnel,s=r.createEnvelope({event_id:r.uuid4(),sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!i&&a&&{dsn:r.dsnToString(a)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(s).then(null,e=>{o.DEBUG_BUILD&&r.debug.error("Error while sending profile chunk envelope:",e)})}}},55232:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471);const a={startProfiler:function(){const e=r.getClient();if(!e)return void(o.DEBUG_BUILD&&r.debug.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("startUIProfiler"):o.DEBUG_BUILD&&r.debug.warn("BrowserProfiling integration is not available")},stopProfiler:function(){const e=r.getClient();if(!e)return void(o.DEBUG_BUILD&&r.debug.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("stopUIProfiler"):o.DEBUG_BUILD&&r.debug.warn("ProfilingIntegration is not available")}};t.uiProfiler=a},88078:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(44572),i=n(86624),s=n(1773),c=n(81625),u=r.defineIntegration(()=>({name:"BrowserProfiling",setup(e){const t=e.getOptions(),n=new s.UIProfiler;if(c.hasLegacyProfiling(t)||t.profileLifecycle||(t.profileLifecycle="manual"),c.hasLegacyProfiling(t)&&!t.profilesSampleRate)return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling disabled, no profiling options foun
2d."));const u=r.getActiveSpan(),l=u&&r.getRootSpan(u);if(c.hasLegacyProfiling(t)&&void 0!==t.profileSessionSampleRate&&o.DEBUG_BUILD&&r.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),c.hasLegacyProfiling(t))l&&c.isAutomatedPageLoadSpan(l)&&c.shouldProfileSpanLegacy(l)&&i.startProfileForSpan(l),e.on("spanStart",e=>{const t=r.getRootSpan(e);e===t?c.shouldProfileSpanLegacy(e)&&i.startProfileForSpan(e):c.PROFILED_ROOT_SPANS.has(t)&&c.setThreadAttributes(e)}),e.on("beforeEnvelope",e=>{if(!c.getActiveProfilesCount())return;const t=c.findProfiledTransactionsFromEnvelope(e);if(!t.length)return;const n=[];for(const a of t){const e=a?.contexts,t=e?.profile?.profile_id,i=e?.profile?.start_timestamp;if("string"!=typeof t){o.DEBUG_BUILD&&r.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!t){o.DEBUG_BUILD&&r.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}e?.profile&&delete e.profile;const s=c.takeProfileFromGlobalCache(t);if(!s){o.DEBUG_BUILD&&r.debug.log(`[Profiling] Could not retrieve profile for span: ${t}`);continue}const u=c.createProfilingEvent(t,i,s,a);u&&n.push(u)}c.addProfilesToEnvelope(e,n)});else{const i=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===i)n.initialize(e);else if("trace"===i){if(!r.hasSpansEnabled(t))return void(o.DEBUG_BUILD&&r.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing."));n.initialize(e),l&&n.notifyRootSpanActive(l),a.WINDOW.setTimeout(()=>{const e=r.getActiveSpan(),t=e&&r.getRootSpan(e);t&&n.notifyRootSpanActive(t)},0)}}}}));t.browserProfilingIntegration=u},86624:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(44572),i=n(81625);t.startProfileForSpan=function(e){let t;i.isAutomatedPageLoadSpan(e)&&(t=1e3*r.timestampInSeconds());const n=i.startJSSelfProfile();if(!n)return;o.DEBUG_BUILD&&r.debug.log(`[Profiling] started profiling span: ${r.spanToJSON(e).description}`);const s=r.uuid4();let c=null;async function u(){if(e&&n){if(!c)return n.stop().then(t=>{l&&(a.WINDOW.clearTimeout(l),l=void 0),o.DEBUG_BUILD&&r.debug.log(`[Profiling] stopped profiling of span: ${r.spanToJSON(e).description}`),t?(c=t,i.addProfileToGlobalCache(s,t)):o.DEBUG_BUILD&&r.debug.log(`[Profiling] profiler returned null profile for: ${r.spanToJSON(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}).catch(e=>{o.DEBUG_BUILD&&r.debug.log("[Profiling] error while stopping profiler:",e)});o.DEBUG_BUILD&&r.debug.log("[Profiling] profile for:",r.spanToJSON(e).description,"already exists, returning early")}}r.getCurrentScope().setContext("profile",{profile_id:s,start_timestamp:t}),i.PROFILED_ROOT_SPANS.add(e),i.setThreadAttributes(e);let l=a.WINDOW.setTimeout(()=>{o.DEBUG_BUILD&&r.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",r.spanToJSON(e).description),u()},i.MAX_PROFILE_DURATION_MS);const p=e.end.bind(e);e.end=function(){return e?(u().then(()=>{p()},()=>{p()}),e):p()}}},81625:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(44572),i=1e6,s="window"in r.GLOBAL_OBJ&&r.GLOBAL_OBJ.window===r.GLOBAL_OBJ&&"undefined"==typeof importScripts,c=String(0),u=s?"main":"worker",l=a.WINDOW.navigator;let p="",d="",f="",g=l?.userAgent||"",m="";const h=l?.language||l?.languages?.[0]||"";const _=l?.userAgentData;var y;function T(e){return function(e){return!("thread_metadata"in e)}(e)?E(e):e}function S(e,t,n,i){if("transaction"!==i.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const s=function(e){const t=e.contexts?.trace?.trace_id;return"string"==typeof t&&32!==t.length&&o.DEBUG_BUILD&&r.debug.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(i),u=T(n),l=t||("number"==typeof i.start_timestamp?1e3*i.start_timestamp:1e3*r.timestampInSeconds()),_="number"==typeof i.timestamp?1e3*i.timestamp:1e3*r.timestampInSeconds();return{event_id:e,timestamp:new Date(l).toISOString(),platform:"javascript",version:"1",release:i.release||"",environment:i.environment||r.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:a.WINDOW.navigator.userAgent},os:{name:p,version:d,build_number:g},device:{locale:h,model:m,manufacturer:g,architecture:f,is_emulator:!1},debug_meta:{images:b(n.resources)},profile:u,transactions:[{name:i.transaction||"",id:i.event_id||r.uuid4(),trace_id:s,active_thread_id:c,relative_start_ns:"0",relative_end_ns:(1e6*(_-l)).toFixed(0)}]}}function E(e){let t,n=0;const o={samples:[],stacks:[],frames:[],thread_metadata:{[c]:{name:u}}},a=e.samples[0];if(!a)return o;const s=a.timestamp,l=r.browserPerformanceTimeOrigin(),p="number"==typeof performance.timeOrigin?performance.timeOrigin:l||0,d=p-(l||p);
2return e.samples.forEach((r,a)=>{if(void 0===r.stackId)return void 0===t&&(t=n,o.stacks[t]=[],n++),void(o.samples[a]={elapsed_since_start_ns:((r.timestamp+d-s)*i).toFixed(0),stack_id:t,thread_id:c});let u=e.stacks[r.stackId];const l=[];for(;u;){l.push(u.frameId);const t=e.frames[u.frameId];t&&void 0===o.frames[u.frameId]&&(o.frames[u.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),u=void 0===u.parentId?void 0:e.stacks[u.parentId]}const p={elapsed_since_start_ns:((r.timestamp+d-s)*i).toFixed(0),stack_id:n,thread_id:c};o.stacks[n]=l,o.samples[a]=p,n++}),o}function b(e){const t=r.getClient(),n=t?.getOptions(),o=n?.stackParser;return o?r.getDebugImagesForResources(o,e):[]}function v(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(o.DEBUG_BUILD&&r.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||(!(e<0||e>1)||(o.DEBUG_BUILD&&r.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1))}"object"==typeof(y=_)&&null!==y&&"getHighEntropyValues"in y&&_.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(p=e.platform||"",f=e.architecture||"",m=e.model||"",d=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];g=`${t.brand} ${t.version}`}}).catch(e=>{});let I=!1;const A=new Map;const R=new WeakSet;t.MAX_PROFILE_DURATION_MS=3e4,t.PROFILED_ROOT_SPANS=R,t.PROFILER_THREAD_ID_STRING=c,t.PROFILER_THREAD_NAME=u,t.addProfileToGlobalCache=function(e,t){if(A.set(e,t),A.size>30){const e=A.keys().next().value;void 0!==e&&A.delete(e)}},t.addProfilesToEnvelope=function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e},t.applyDebugMetadata=b,t.convertJSSelfProfileToSampledFormat=E,t.createProfileChunkPayload=function(e,t,n){if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const o=function(e){const t=[];for(let r=0;r<e.frames.length;r++){const n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}const n=[];for(let r=0;r<e.stacks.length;r++){const t=e.stacks[r];if(!t)continue;const o=[];let a=t;for(;a;)o.push(a.frameId),a=void 0===a.parentId?void 0:e.stacks[a.parentId];n[r]=o}const o=r.browserPerformanceTimeOrigin(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:o||0,i=a-(o||a),s=[];for(let r=0;r<e.samples.length;r++){const t=e.samples[r];if(!t)continue;const n=(a+(t.timestamp-i))/1e3;s[r]={stack_id:t.stackId??0,thread_id:c,timestamp:n}}return{frames:t,stacks:n,samples:s,thread_metadata:{[c]:{name:u}}}}(e),a=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:r.uuid4(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||r.uuid4(),platform:"javascript",version:"2",release:a.release??"",environment:a.environment??"production",debug_meta:{images:b(e.resources)},profile:o}},t.createProfilePayload=S,t.createProfilingEvent=function(e,t,n,a){return function(e){return e.samples.length<2?(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?S(e,t,n,a):null},t.enrichWithThreadInformation=T,t.findProfiledTransactionsFromEnvelope=function(e){const t=[];return r.forEachEnvelopeItem(e,(e,n)=>{if("transaction"===n)for(let r=1;r<e.length;r++){const n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t},t.getActiveProfilesCount=function(){return A.size},t.hasLegacyProfiling=function(e){return void 0!==e.profilesSampleRate},t.isAutomatedPageLoadSpan=function(e){return"pageload"===r.spanToJSON(e).op},t.isValidSampleRate=v,t.setThreadAttributes=function(e){e.setAttribute("thread.id",c),e.setAttribute("thread.name",u)},t.shouldProfileSession=function(e){if(I)return o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return o.DEBUG_BUILD&&r.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return v(t)?t?Math.random()<=t:(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(o.DEBUG_BUILD&&r.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)},t.shouldProfileSpanLegacy=function(e){if(I)return o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;const t=r.getClient(),n=t?.getOptions();if(!n)return o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling disabled, no options foun
2d."),!1;const a=n.profilesSampleRate;return v(a)?a?!!(!0===a||Math.random()<a)||(o.DEBUG_BUILD&&r.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(a)})`),!1):(o.DEBUG_BUILD&&r.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(o.DEBUG_BUILD&&r.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)},t.startJSSelfProfile=function(){const e=a.WINDOW.Profiler;if("function"!=typeof e)return void(o.DEBUG_BUILD&&r.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(n){o.DEBUG_BUILD&&(r.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),r.debug.log("[Profiling] Disabling profiling for current user session.")),I=!0}},t.takeProfileFromGlobalCache=function(e){const t=A.get(e);return t&&A.delete(e),t},t.validateProfileChunk=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};const t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?Array.isArray(n.frames)&&n.frames.length?Array.isArray(n.stacks)&&n.stacks.length?Array.isArray(n.samples)&&n.samples.length?{valid:!0}:{reason:"profile has no samples"}:{reason:"profile has no stacks"}:{reason:"profile has no frames"}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}},36376:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(44572);t.showReportDialog=function(e={}){const t=a.WINDOW.document,n=t?.head||t?.body;if(!n)return void(o.DEBUG_BUILD&&r.debug.error("[showReportDialog] Global document not defined"));const i=r.getCurrentScope(),s=r.getClient(),c=s?.getDsn();if(!c)return void(o.DEBUG_BUILD&&r.debug.error("[showReportDialog] DSN not configured"));const u={...e,user:{...i.getUser(),...e.user},eventId:e.eventId||r.lastEventId()},l=a.WINDOW.document.createElement("script");l.async=!0,l.crossOrigin="anonymous",l.src=r.getReportDialogEndpoint(c,u);const{onLoad:p,onClose:d}=u;if(p&&(l.onload=p),d){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{d()}finally{a.WINDOW.removeEventListener("message",e)}};a.WINDOW.addEventListener("message",e)}n.appendChild(l)}},79949:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(44186),a=n(9239),i=n(87698),s=n(77833),c=n(40639),u=n(15331),l=n(48290),p=n(50011),d=n(10120),f=n(34260),g=n(7180),m=n(40845);function h(e){return[r.inboundFiltersIntegration(),r.functionToStringIntegration(),r.conversationIdIntegration(),i.browserApiErrorsIntegration(),a.breadcrumbsIntegration(),u.globalHandlersIntegration(),p.linkedErrorsIntegration(),r.dedupeIntegration(),l.httpContextIntegration(),c.cultureContextIntegration(),s.browserSessionIntegration()]}t.forceLoad=function(){},t.getDefaultIntegrations=h,t.init=function(e={}){const t=!e.skipBrowserExtensionCheck&&m.checkAndWarnIfIsEmbeddedBrowserExtension();let n=null==e.defaultIntegrations?h():e.defaultIntegrations;const a={...e,enabled:!t&&e.enabled,stackParser:r.stackParserFromStackParserOptions(e.stackParser||d.defaultStackParser),integrations:r.getIntegrationsToSetup({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||f.makeFetchTransport};return r.setNormalizeStringifier(g.normalizeStringifyValue),r.initAndBind(o.BrowserClient,a)},t.onLoad=function(e){e()}},10120:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020);function o(e,t,n,o){const a={filename:e,function:"<anonymous>"===t?r.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==n&&(a.lineno=n),void 0!==o&&(a.colno=o),a}
2const a=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,i=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=/at (.+?) ?\(data:(.+?),/,u=[30,e=>{const t=e.match(c);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=a.exec(e);if(n){const[,e,t,a]=n;return o(e,r.UNKNOWN_FUNCTION,+t,+a)}const u=i.exec(e);if(u){if(0===u[2]?.indexOf("eval")){const e=s.exec(u[2]);e&&(u[2]=e[1],u[3]=e[2],u[4]=e[3])}const[e,t]=E(u[1]||r.UNKNOWN_FUNCTION,u[2]);return o(t,e,u[3]?+u[3]:void 0,u[4]?+u[4]:void 0)}}],l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=[50,e=>{const t=l.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=p.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]||r.UNKNOWN_FUNCTION;return[n,e]=E(n,e),o(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,g=[40,e=>{const t=f.exec(e);return t?o(t[2],t[1]||r.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],m=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,h=[10,e=>{const t=m.exec(e);return t?o(t[2],t[3]||r.UNKNOWN_FUNCTION,+t[1]):void 0}],_=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,y=[20,e=>{const t=_.exec(e);return t?o(t[5],t[3]||t[4]||r.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],T=[u,d],S=r.createStackParser(...T),E=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return n||o?[-1!==e.indexOf("@")?e.split("@")[0]:r.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};t.chromeStackLineParser=u,t.defaultStackLineParsers=T,t.defaultStackParser=S,t.geckoStackLineParser=d,t.opera10StackLineParser=h,t.opera11StackLineParser=y,t.winjsStackLineParser=g},77555:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(44572);t.registerBackgroundTabDetection=function(){a.WINDOW.document?a.WINDOW.document.addEventListener("visibilitychange",()=>{const e=r.getActiveSpan();if(!e)return;const t=r.getRootSpan(e);if(a.WINDOW.document.hidden&&t){const e="cancelled",{op:n,status:a}=r.spanToJSON(t);o.DEBUG_BUILD&&r.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),a||t.setStatus({code:r.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):o.DEBUG_BUILD&&r.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},19228:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(63461),a=n(43471),i=n(44572),s=n(45387),c=n(95464),u=n(77555),l=n(27737),p=n(39917),d="BrowserTracing",f=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function g(){const e=i.WINDOW.navigator;return!!e?.userAgent&&f.test(e.userAgent)}const m={...r.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...p.defaultRequestInstrumentationOptions};function h(e,t,n){e.emit("startPageLoadSpan",t,n),r.getCurrentScope().setTransactionName(t.name);const o=E(e);return o&&e.emit("afterStartPageLoadSpan",o),o}function _(e,t,n){const{url:o,isRedirect:a}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a}),e.emit("startNavigationSpan",t,{isRedirect:a});const s=r.getCurrentScope();return s.setTransactionName(t.name),o&&!a&&s.setSDKProcessingMetadata({normalizedRequest:{...i.getHttpRequestData(),url:o}}),E(e)}function y(e){const t=i.WINDOW.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function T(e){const t=i.WINDOW.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}const S="_sentry_idleSpan";function E(e){return e[S]}function b(e,t){r.addNonEnumerableProperty(e,S,t)}const v=1.5;t.BROWSER_TRACING_INTEGRATION_ID=d,t.browserTracingIntegration=(e={})=>{"enableElementTiming"in e&&r.consoleSandbox(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=i.WINDOW.document,{enableInp:f,enableLongTask:S,enableLongAnimationFrame:I,_experiments:{enableInteractions:A,enableStandaloneClsSpans:R,enableStandaloneLcpSpans:N},beforeStartSpan:O,idleTimeout:P,finalTimeout:w,childSpanTimeout:C,markBackgroun
2dSpan:U,traceFetch:L,traceXHR:k,trackFetchStreamPerformance:M,shouldCreateSpanForRequest:x,enableHTTPTimings:B,ignoreResourceSpans:D,ignorePerformanceApiSpans:j,instrumentPageLoad:F,instrumentNavigation:G,detectRedirects:H,linkPreviousTrace:W,consistentTraceSampling:$,enableReportPageLoaded:q,onRequestSpanStart:V,onRequestSpanEnd:z}={...m,...e},Y=g();let K,J;function X(e,a,i=!0){const s="pageload"===a.op,c=a.name,u=O?O(a):a,l=u.attributes||{};if(c!==u.name&&(l[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",u.attributes=l),!i){const e=r.dateTimestampInSeconds();return void r.startInactiveSpan({...u,startTime:e}).end(e)}t.name=u.name,t.source=l[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const p=r.startIdleSpan(u,{idleTimeout:P,finalTimeout:w,childSpanTimeout:C,disableAutoFinish:s,beforeSpanEnd:t=>{o.addPerformanceEntries(t,{ignoreResourceSpans:D,ignorePerformanceApiSpans:j,spanStreamingEnabled:r.hasSpanStreamingEnabled(e)}),b(e,void 0);const n=r.getCurrentScope(),a=n.getPropagationContext();n.setPropagationContext({...a,traceId:p.spanContext().traceId,sampled:r.spanIsSampled(p),dsc:r.getDynamicSamplingContextFromSpan(t)}),s&&(J=void 0)},trimIdleSpanEndTimestamp:!q});function d(){n&&["interactive","complete"].includes(n.readyState)&&(e.emit("idleSpanEnableAutoFinish",p),n.removeEventListener("readystatechange",d))}s&&q&&(J=p),b(e,p),s&&!q&&n&&(n.addEventListener("readystatechange",d),d())}return{name:d,setup(e){if(Y)a.DEBUG_BUILD&&r.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");else{if(r.registerSpanErrorInstrumentation(),I&&r.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?o.startTrackingLongAnimationFrames():S&&o.startTrackingLongTasks(),A&&o.startTrackingInteractions(),H&&n){const e=()=>{K=r.timestampInSeconds()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}e.on("startNavigationSpan",(n,o)=>{if(r.getClient()!==e)return;if(o?.isRedirect)return a.DEBUG_BUILD&&r.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void X(e,{op:"navigation.redirect",...n},!1);K=void 0,t(),r.getIsolationScope().setPropagationContext({traceId:r.generateTraceId(),sampleRand:Math.random(),propagationSpanId:r.hasSpansEnabled()?void 0:r.generateSpanId()});const i=r.getCurrentScope();i.setPropagationContext({traceId:r.generateTraceId(),sampleRand:Math.random(),propagationSpanId:r.hasSpansEnabled()?void 0:r.generateSpanId()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),X(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(n,o={})=>{if(r.getClient()!==e)return;t();const a=o.sentryTrace||y("sentry-trace")||T("sentry-trace"),s=o.baggage||y("baggage")||T("baggage"),c=r.propagationContextFromHeaders(a,s),u=r.getCurrentScope();u.setPropagationContext(c),r.hasSpansEnabled()||(u.getPropagationContext().propagationSpanId=r.generateSpanId()),u.setSDKProcessingMetadata({normalizedRequest:i.getHttpRequestData()}),X(e,{op:"pageload",...n})}),e.on("endPageloadSpan",()=>{q&&J&&(J.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),J.end())})}function t(){const t=E(e);t&&!r.spanToJSON(t).timestamp&&(a.DEBUG_BUILD&&r.debug.log(`[Tracing] Finishing current active span with op: ${r.spanToJSON(t).op}`),t.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}},afterAllSetup(e){if(Y)return;e.addIntegration&&!e.getIntegrationByName?.(c.WEB_VITALS_INTEGRATION_NAME)&&e.addIntegration(c.webVitalsIntegration({ignore:f?[]:["inp"],_experiments:{enableStandaloneClsSpans:R,enableStandaloneLcpSpans:N}}));let n=r.getLocationHref();if("off"!==W&&l.linkTraces(e,{linkPreviousTrace:W,consistentTraceSampling:$}),i.WINDOW.location){if(F){const t=r.browserPerformanceTimeOrigin();h(e,{name:i.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}G&&o.addHistoryInstrumentationHandler(({to:t,from:o})=>{if(void 0===o&&-1!==n?.indexOf(t))return void(n=void 0);n=void 0;const a=r.parseStringToURLObject(t),s=E(e),c=s&&H&&function(e,t){const n=r.spanToJSON(e),o=r.dateTimestampInSeconds(),a=n.start_timestamp;if(o-a>v)return!1;if(t&&o-t<=v)return!1;return!0}(s,K);_(e,{name:a?.pathname||i.WINDOW.location.pathname,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:c}
2)})}U&&u.registerBackgroundTabDetection(),A&&function(e,t,n,o,s){const c=i.WINDOW.document;let u;const l=()=>{const i="ui.action.click",c=E(e);if(c){const e=r.spanToJSON(c).op;if(["navigation","pageload"].includes(e))return void(a.DEBUG_BUILD&&r.debug.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}u&&(u.setAttribute(r.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),u.end(),u=void 0),s.name?u=r.startIdleSpan({name:s.name,op:i,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:o}):a.DEBUG_BUILD&&r.debug.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)};c&&addEventListener("click",l,{capture:!0})}(e,P,w,C,t),p.instrumentOutgoingRequests(e,{traceFetch:L,traceXHR:k,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:x,enableHTTPTimings:B,onRequestSpanStart:V,onRequestSpanEnd:z}),M&&e.addIntegration(s.fetchStreamPerformanceIntegration())}}},t.getMetaContent=y,t.getServerTiming=T,t.isBotUserAgent=g,t.startBrowserTracingNavigationSpan=_,t.startBrowserTracingPageLoadSpan=h},27737:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(44572);n(63461),n(10120),n(9239),n(87698),n(77833),n(40639),n(15331),n(48290),n(50011);const i="sentry_previous_trace",s="sentry.previous_trace";function c(e,t,n){const a=r.spanToJSON(t);const i={spanContext:t.spanContext(),startTimestamp:a.start_timestamp,sampleRate:function(){try{const e=Number(a.data?.[r.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;const c=e.spanContext;return c.traceId===a.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(o.DEBUG_BUILD&&r.debug.log(`Adding previous_trace \`${JSON.stringify(c)}\` link to span \`${JSON.stringify({op:a.op,...t.spanContext()})}\``),t.addLink({context:c,attributes:{[r.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute(s,`${c.traceId}-${c.spanId}-${p(c)?1:0}`)),i)}function u(e){try{a.WINDOW.sessionStorage.setItem(i,JSON.stringify(e))}catch(t){o.DEBUG_BUILD&&r.debug.warn("Could not store previous trace in sessionStorage",t)}}function l(){try{const e=a.WINDOW.sessionStorage?.getItem(i);return JSON.parse(e)}catch{return}}function p(e){return 1===e.traceFlags}t.PREVIOUS_TRACE_KEY=i,t.PREVIOUS_TRACE_MAX_DURATION=3600,t.PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE=s,t.addPreviousTraceSpanLink=c,t.getPreviousTraceFromSessionStorage=l,t.linkTraces=function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const o="session-storage"===t;let a=o?l():void 0;e.on("spanStart",e=>{if(r.getRootSpan(e)!==e)return;const t=r.getCurrentScope().getPropagationContext();a=c(a,e,t),o&&u(a)});let i=!0;n&&e.on("beforeSampling",e=>{if(!a)return;const t=r.getCurrentScope(),n=t.getPropagationContext();i&&n.parentSpanId?i=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(a.sampleRate),sampled:String(p(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=p(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[r.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:a.sampleRate})})},t.spanContextSampled=p,t.storePreviousTraceInSessionStorage=u},69982:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020);t.reportPageLoaded=function(e=r.getClient()){e?.emit("endPageloadSpan")}},39917:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(63461),a=n(37337),i={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};const s=300;function c(e,t){const{url:n}=r.spanToJSON(e).data;if(!n||"string"!=typeof n)return;let i=()=>{setTimeout(c)};if(r.hasSpanStreamingEnabled(t)){const t=e.end.bind(e);e.end=e=>{const n=e??r.timestampInSeconds();let o=!1;const a=()=>{o||(o=!0,setTimeout(c),t(n),clearTimeout(u))};i=a;const u=setTimeout(a,s)}}const c=o.addPerformanceInstrumentationHandler("resource",({entries:t})=>{t.forEach(t=>{a.isPerformanceResourceTiming(t)&&t.name.endsWith(n)&&(e.setAttributes(o.resourceTimingToSpanAttributes(t)),i())})})}function u(e,t){const n=r.getLocationHref();if(n){let o,a;try{o=new URL(e,n),a=new URL(n).origin}catch{return!1}const i=o.origin===a;return t?r.stringMatchesSomePattern(o.toString(),t)||i&&r.stringMatchesSomePattern(o.pathname,t):i}{const n=!!e.match(/^\/(?!\/)/);return t?r.stringMatchesSomePattern(e,t):n}}t.defaultRequestInstrumentationOptions=i,t.instrumentOutgoingRequests=function(e,t){const{traceFetch:n,traceXHR:s,shouldCreateSpanForRequest:l,enableHTTPTimings:p,tracePropagationTargets:d,onRequestSpanStart:f,onRequestSpanEnd:g}={...i,...t},m="function"==typeof l?l:e=>!0,h=e=>u(e,d),_={},y=e.getOptions().propagateTraceparent;n&&r.addFetchInstrumentationHandler(t=>{const n=r.instrumentFetchRequest(t,m,h,_,{propagateTraceparent:y,onRequestSpanEnd:g});if(n){const o=a.getFullURL(t.fetchData.url),i=o?r.parseUrl(o).host:void 0,s=o?r.stripDataUrlContent(o):void 0;n.setAttributes({"http.url":s,"url.full":s,"server.address":i}),p&&c(n,e),f?.(n,{headers:t.headers})}}),s&&o.addXhrInstrumentationHandler(t=>{const n=function(e,t,n,i,s,c){const u=e.xhr,l=u?.[o.SENTRY_XHR_DATA_KEY];if(!u||u.__sentry_own_request__||!l)return;const{url:p,method:d}=l,f=r.hasSpansEnabled()&&t(p);if(e.endTimestamp){const t=u.__sentry_xhr_span_id__;if(!t)return;const n=i[t];return void(n&&(f&&void 0!==l.status_code&&(r.setHttpStatus(n,l.status_code),n.end(),c?.(n,{headers:a.createHeadersSafely(o.parseXhrResponseHeaders(u)),error:e.error})),delete i[t]))}const g=a.getFullURL(p),m=g?r.parseUrl(g):r.parseUrl(p),h=g?r.stripDataUrlContent(g):void 0,_=r.stripDataUrlContent(r.stripUrlQueryAndFragment(p)),y=r.getClient(),T=!!r.getActiveSpan()||!!y&&r.hasSpanStreamingEnabled(y),S=f&&T?r.startInactiveSpan({name:`${d} ${_}`,attributes:{url:r.stripDataUrlContent(p),type:"xhr","http.method":d,"http.url":h,"url.full":h,"server.address":m?.host,[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...m?.search&&{"http.query":m?.search},...m?.hash&&{"http.fragment":m?.hash}}}):new r.SentryNonRecordingSpan;f&&!T&&y?.recordDroppedEvent("no_parent_span","span");u.__sentry_xhr_span_id__=S.spanContext().spanId,i[u.__sentry_xhr_span_id__]=S,n(p)&&function(e,t,n){const{"sentry-trace":o,baggage:i,traceparent:s}=r.getTraceData({span:t,propagateTraceparent:n});o&&function(e,t,n,r){const o=e.__sentry_xhr_v3__?.request_headers;if(o?.["sentry-trace"]||!e.setRequestHeader)return;try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){const t=o?.baggage;t&&a.baggageHeaderHasSentryValues(t)||e.setRequestHeader("baggage",n)}}catch{}}(e,o,i,s)}(u,r.hasSpansEnabled()&&T?S:void 0,s);y&&y.emit("beforeOutgoingRequestSpan",S,e);return S}(t,m,h,_,y,g);n&&(p&&c(n,e),f?.(n,{headers:a.createHeadersSafely(t.xhr.__sentry_xhr_v3__?.request_headers)}))})},t.shouldAttachHeaders=u},37722:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020);t.setActiveSpanInBrowser=function(e){const t=r.getActiveSpan();if(t===e)return;const n=r.getCurrentScope();e.end=new Proxy(e.end,{apply(e,o,a){return r._INTERNAL_setSpanForScope(n,t),Reflect.apply(e,o,a)}}),r._INTERNAL_setSpanForScope(n,e)}},37337:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(44572);t.baggageHeaderHasSentryValues=function(e){return e.split(",").some(e=>e.trim().startsWith("sentry-"))},t.createHeadersSafely=function(e){try{return new Headers(e)}catch{return}},t.getFullURL=function(e){try{return new URL(e,r.WINDOW.location.origin).href}catch{return}},t.isPerformanceResourceTiming=function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}},34260:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(63461);t.makeFetchTransport=function(e,t=o.getNativeImplementation("fetch")){let n=0,a=0;return r.createTransport(e,async function(r){const i=r.body.length;n+=i,a++;
2const s={body:r.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&a<15,...e.fetchOptions};try{const n=await t(e.url,s);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(c){throw o.clearCachedImplementation("fetch"),c}finally{n-=i,a--}},r.makePromiseBuffer(e.bufferSize||40))}},45971:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(44572),a=n(34260);function i(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function s(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=i(n);return e=>r.then(n=>e(n.transaction(t,"readwrite").objectStore(t)))}function c(e){return i(e.getAllKeys())}function u(e,t,n){return e(e=>c(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),i(e.transaction)}))}function l(e,t,n){return e(e=>c(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),i(e.transaction)}))}function p(e){return e(e=>c(e).then(t=>{const n=t[0];if(null!=n)return i(e.get(n)).then(t=>(e.delete(n),i(e.transaction).then(()=>t)))}))}function d(e){let t;function n(){return null==t&&(t=s(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const o=r.serializeEnvelope(t);await u(n(),o,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{const o=r.serializeEnvelope(t);await l(n(),o,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const e=await p(n());if(e)return r.parseEnvelope(e)}catch{}}}}t.createStore=s,t.makeBrowserOfflineTransport=function(e=a.makeFetchTransport){return function(e){return t=>{const n=e({...t,createStore:d});return o.WINDOW.addEventListener("online",async e=>{await n.flush()}),n}}(r.makeOfflineTransport(e))},t.push=u,t.shift=p,t.unshift=l},7589:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020);t.createUserFeedbackEnvelope=function(e,{metadata:t,tunnel:n,dsn:o}){const a={event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!o&&{dsn:r.dsnToString(o)}},i=function(e){return[{type:"user_report"},e]}(e);return r.createEnvelope(a,[i])}},40845:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(43471),a=n(44572);t.checkAndWarnIfIsEmbeddedBrowserExtension=function(){return!!function(){if(void 0===a.WINDOW.window)return!1;const e=a.WINDOW;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const n=r.getLocationHref();return!(a.WINDOW===a.WINDOW.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}()&&(o.DEBUG_BUILD&&r.consoleSandbox(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0)}},21555:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(44572),a=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],i={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};const s=o.WINDOW;t.lazyLoadIntegration=async function(e,t){const n=a.includes(e)?function(e){return i[e]||e.replace("Integration","").toLowerCase()}(e):void 0,c=s.Sentry=s.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const u=c[e];if("function"==typeof u&&!("_isShim"in u))return u;const l=function(e){const t=r.getClient(),n=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${r.SDK_VERSION}/${e}.min.js`,n).toString()}(n),p=o.WINDOW.document.createElement("script");
2p.src=l,p.crossOrigin="anonymous",p.referrerPolicy="strict-origin",t&&p.setAttribute("nonce",t);const d=new Promise((e,t)=>{p.addEventListener("load",()=>e()),p.addEventListener("error",t)}),f=o.WINDOW.document.currentScript,g=o.WINDOW.document.body||o.WINDOW.document.head||f?.parentElement;if(!g)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);g.appendChild(p);try{await d}catch{throw new Error(`Error when loading integration: ${e}`)}const m=c[e];if("function"!=typeof m)throw new Error(`Could not load integration: ${e}`);return m}},85740:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(21811);function o(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}t.SENTRY_API_VERSION="7",t.getEnvelopeEndpointWithUrlEncodedAuth=function(e,t,n){return t||`${function(e){return`${o(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`},t.getReportDialogEndpoint=function(e,t){const n=r.makeDsn(e);if(!n)return"";const a=`${o(n)}embed/error-page/`;let i=`dsn=${r.dsnToString(n)}`;for(const r in t)if("dsn"!==r&&"onClose"!==r)if("user"===r){const e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(r)}=${encodeURIComponent(t[r])}`;return`${a}?${i}`}},42810:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73220),o=n(5475);t.getAsyncContextStrategy=function(e){const t=r.getSentryCarrier(e);return t.acs?t.acs:o.getStackAsyncContextStrategy()},t.setAsyncContextStrategy=function(e){const t=r.getMainCarrier();r.getSentryCarrier(t).acs=e}},5475:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37320),o=n(69640),a=n(15470),i=n(88532),s=n(73220);class c{constructor(e,t){let n,r;n=e||new o.Scope,r=t||new o.Scope,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(r){throw this._popScope(),r}return i.isThenable(n)?a.chainAndCopyPromiseLike(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function u(){const e=s.getMainCarrier(),t=s.getSentryCarrier(e);return t.stack=t.stack||new c(r.getDefaultCurrentScope(),r.getDefaultIsolationScope())}function l(e){return u().withScope(e)}function p(e,t){const n=u();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return u().withScope(()=>e(u().getIsolationScope()))}t.AsyncContextStack=c,t.getStackAsyncContextStrategy=function(){return{withIsolationScope:d,withScope:l,withSetScope:p,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>u().getScope(),getIsolationScope:()=>u().getIsolationScope()}}},44994:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73220),o=n(64865),a=n(41335),i=n(42810);t._INTERNAL_createTracingChannelBinding=function(e,t){return{asyncLocalStorage:e,getStoreWithActiveSpan:e=>{const{scope:n,isolationScope:r}=t(),a=n.clone();return o._setSpanForScope(a,e),{scope:a,isolationScope:r}}}},t.waitForTracingChannelBinding=function e(t,n=1){const o=i.getAsyncContextStrategy(r.getMainCarrier()).getTracingChannelBinding?.();o?t():n&&a.safeUnref(setTimeout(()=>{e(t,n-1)},1))}},22147:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(88532);function o(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")}function a(e,t){const{value:n,unit:r}=o(e)?e:{value:e,unit:void 0},a=function(e){if(Array.isArray(e))return{value:e,type:"array"};const t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),i=r&&"string"==typeof r?{unit:r}:{};if(a)return{...a,...i};
2if(!t||"skip-undefined"===t&&void 0===n)return;let s="";try{s=JSON.stringify(n)??""}catch{}return{value:s,type:"string",...i}}function i(e){return"string"==typeof e?2*e.length:"boolean"==typeof e?4:"number"==typeof e?8:0}t.attributeValueToTypedAttributeValue=a,t.estimateTypedAttributesSizeInBytes=function(e){if(!e)return 0;let t=0;for(const[n,o]of Object.entries(e)){t+=2*n.length,t+=2*o.type.length,t+=2*(o.unit?.length??0);const e=o.value;Array.isArray(e)?t+=i(e[0])*e.length:r.isPrimitive(e)?t+=i(e):t+=100}return t},t.isAttributeObject=o,t.serializeAttributes=function(e,t=!1){const n={};for(const[r,o]of Object.entries(e??{})){const e=a(o,t);e&&(n[r]=e)}return n}},87990:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(85110),a=n(26869),i=100;t.addBreadcrumb=function(e,t){const n=r.getClient(),s=r.getIsolationScope();if(!n)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=i}=n.getOptions();if(u<=0)return;const l={timestamp:a.dateTimestampInSeconds(),...e},p=c?o.consoleSandbox(()=>c(l,t)):l;null!==p&&(n.emit&&n.emit("beforeAddBreadcrumb",p,t),s.addBreadcrumb(p,u))}},63020:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(44038),o=n(64284),a=n(57011),i=n(30242),s=n(67392),c=n(15363),u=n(55908),l=n(52719),p=n(93754),d=n(28945),f=n(79816),g=n(8346),m=n(47473),h=n(52751),_=n(30238),y=n(79183),T=n(49564),S=n(37320),E=n(42810),b=n(44994),v=n(73220),I=n(11348),A=n(69640),R=n(51929),N=n(85740),O=n(83913),P=n(27008),w=n(64450),C=n(52256),U=n(14082),L=n(82430),k=n(52311),M=n(96098),x=n(89927),B=n(69150),D=n(83412),j=n(37402),F=n(31485),G=n(60251),H=n(51228),W=n(95150),$=n(46877),q=n(76354),V=n(72979),z=n(78182),Y=n(78949),K=n(54583),J=n(64865),X=n(10393),Q=n(55303),Z=n(20647),ee=n(78371),te=n(145),ne=n(19367),re=n(23879),oe=n(87687),ae=n(56011),ie=n(42501),se=n(61204),ce=n(87990),ue=n(68360),le=n(51179),pe=n(92958),de=n(55873),fe=n(92215),ge=n(75003),me=n(431),he=n(41312),_e=n(17536),ye=n(60262),Te=n(24208),Se=n(80699),Ee=n(14867),be=n(70875),ve=n(98398),Ie=n(94966),Ae=n(83090),Re=n(31096),Ne=n(6933),Oe=n(97373),Pe=n(85296),we=n(78604),Ce=n(63717),Ue=n(39320),Le=n(19575),ke=n(61038),Me=n(2881),xe=n(24231),Be=n(67935),De=n(57471),je=n(49464),Fe=n(47277),Ge=n(7747),He=n(82054),We=n(13860),$e=n(60393),qe=n(37135),Ve=n(65226),ze=n(1170),Ye=n(50162),Ke=n(92579),Je=n(13161),Xe=n(85526),Qe=n(61126),Ze=n(83609),et=n(90153),tt=n(72833),nt=n(21811),rt=n(69960),ot=n(73969),at=n(83389),it=n(39048),st=n(49759),ct=n(53551),ut=n(91535),lt=n(88532),pt=n(64702),dt=n(85110),ft=n(96940),gt=n(88585),mt=n(77765),ht=n(96159),_t=n(73155),yt=n(31901),Tt=n(89499),St=n(23513),Et=n(70561),bt=n(79721),vt=n(21148),It=n(94486),At=n(26869),Rt=n(23336),Nt=n(81857),Ot=n(99188),Pt=n(64841),wt=n(28119),Ct=n(5684),Ut=n(9635),Lt=n(93395),kt=n(43807),Mt=n(58913),xt=n(6102),Bt=n(47274),Dt=n(36823),jt=n(89235),Ft=n(83031),Gt=n(3138),Ht=n(48937);t.registerSpanErrorInstrumentation=r.registerSpanErrorInstrumentation,t.getCapturedScopesOnSpan=o.getCapturedScopesOnSpan,t.markSpanForOtelSourceInference=o.markSpanForOtelSourceInference,t.setCapturedScopesOnSpan=o.setCapturedScopesOnSpan,t.spanShouldInferOtelSource=o.spanShouldInferOtelSource,t.TRACING_DEFAULTS=a.TRACING_DEFAULTS,t.startIdleSpan=a.startIdleSpan,t.SentrySpan=i.SentrySpan,t.SentryNonRecordingSpan=s.SentryNonRecordingSpan,t.SPAN_STATUS_ERROR=c.SPAN_STATUS_ERROR,t.SPAN_STATUS_OK=c.SPAN_STATUS_OK,t.SPAN_STATUS_UNSET=c.SPAN_STATUS_UNSET,t.getSpanStatusFromHttpCode=c.getSpanStatusFromHttpCode,t.setHttpStatus=c.setHttpStatus,t.SUPPRESS_TRACING_KEY=u.SUPPRESS_TRACING_KEY,t.continueTrace=u.continueTrace,t.isTracingSuppressed=u.isTracingSuppressed,t.startInactiveSpan=u.startInactiveSpan,t.startNewTrace=u.startNewTrace,t.startSpan=u.startSpan,t.startSpanManual=u.startSpanManual,t.suppressTracing=u.suppressTracing,t.withActiveSpan=u.withActiveSpan,t.bindScopeToEmitter=l.bindScopeToEmitter,t.getDynamicSamplingContextFromClient=p.getDynamicSamplingContextFromClient,t.getDynamicSamplingContextFromScope=p.getDynamicSamplingContextFromScope,t.getDynamicSamplingContextFromSpan=p.getDynamicSamplingContextFromSpan,t.spanToBaggageHeader=p.spanToBaggageHeader,t.setMeasurement=d.setMeasurement,t.timedEventsToMeasurements=d.timedEventsToMeasurements,t.sampleSpan=f.sampleSpan,t.logSpanEnd=g.logSpanEnd,t.logSpanStart=g.logSpanStart,t.captureSpan=m.captureSpan,t.s
2afeSetSpanJSONAttributes=m.safeSetSpanJSONAttributes,t.GEN_AI_CONVERSATION_ID_ATTRIBUTE=h.GEN_AI_CONVERSATION_ID_ATTRIBUTE,t.SEMANTIC_ATTRIBUTE_CACHE_HIT=h.SEMANTIC_ATTRIBUTE_CACHE_HIT,t.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=h.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,t.SEMANTIC_ATTRIBUTE_CACHE_KEY=h.SEMANTIC_ATTRIBUTE_CACHE_KEY,t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=h.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=h.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD,t.SEMANTIC_ATTRIBUTE_PROFILE_ID=h.SEMANTIC_ATTRIBUTE_PROFILE_ID,t.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME=h.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME,t.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT=h.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT,t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=h.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=h.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=h.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=h.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=h.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE=h.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE=h.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=h.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS=h.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS,t.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME=h.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME,t.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION=h.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION,t.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID=h.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID,t.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME=h.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=h.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE=h.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE,t.SEMANTIC_ATTRIBUTE_URL_FULL=h.SEMANTIC_ATTRIBUTE_URL_FULL,t.SEMANTIC_ATTRIBUTE_USER_EMAIL=h.SEMANTIC_ATTRIBUTE_USER_EMAIL,t.SEMANTIC_ATTRIBUTE_USER_ID=h.SEMANTIC_ATTRIBUTE_USER_ID,t.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS=h.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS,t.SEMANTIC_ATTRIBUTE_USER_USERNAME=h.SEMANTIC_ATTRIBUTE_USER_USERNAME,t.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE=h.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE,t.createEventEnvelope=_.createEventEnvelope,t.createSessionEnvelope=_.createSessionEnvelope,t.createSpanEnvelope=_.createSpanEnvelope,t.addEventProcessor=y.addEventProcessor,t.captureCheckIn=y.captureCheckIn,t.captureEvent=y.captureEvent,t.captureException=y.captureException,t.captureMessage=y.captureMessage,t.captureSession=y.captureSession,t.close=y.close,t.endSession=y.endSession,t.flush=y.flush,t.isEnabled=y.isEnabled,t.isInitialized=y.isInitialized,t.lastEventId=y.lastEventId,t.setAttribute=y.setAttribute,t.setAttributes=y.setAttributes,t.setContext=y.setContext,t.setConversationId=y.setConversationId,t.setExtra=y.setExtra,t.setExtras=y.setExtras,t.setTag=y.setTag,t.setTags=y.setTags,t.setUser=y.setUser,t.startSession=y.startSession,t.withMonitor=y.withMonitor,t.getClient=T.getClient,t.getCurrentScope=T.getCurrentScope,t.getExternalPropagationContext=T.getExternalPropagationContext,t.getGlobalScope=T.getGlobalScope,t.getIsolationScope=T.getIsolationScope,t.getTraceContextFromScope=T.getTraceContextFromScope,t.hasExternalPropagationContext=T.hasExternalPropagationContext,t.registerExternalPropagationContext=T.registerExternalPropagationContext,t.withIsolationScope=T.withIsolationScope,t.withScope=T.withScope,t.getDefaultCurrentScope=S.getDefaultCurrentScope,t.getDefaultIsolationScope=S.getDefaultIsolationScope,t.getAsyncContextStrategy=E.getAsyncContextStrategy,t.setAsyncContextStrategy=E.setAsyncContextStrategy,t._INTERNAL_createTracingChannelBinding=b._INTERNAL_createTracingChannelBinding,t.waitForTracingChannelBinding=b.waitForTracingChannelBinding,t.getGlobalSingleton=v.getGlobalSingleton,t.getMainCarrier=v.getMainCarrier,t.closeSession=I.closeSession,t.makeSession=I.makeSession,t.updateSession=I.updateSession,t.Scope=A.Scope,t.notifyEventProcessors=R.notifyEventProcessors,t.SENTRY_API_VERSION=N.SENTRY_API_VERSION,t.getEnvelopeEndpointWithUrlEncodedAuth=N.getEnvelopeEndpointWithUrlEncodedAuth,t.getReportDialogEndpoint=N.getReportDialogEndpoint,t.Client=O.Client,t.initAndBind=P.initAndBind,t.setCurrentClient=P.setCurrentClient,t.createTransport=w.createTransport,t.makeOfflineTransport=C.makeOfflineTransport,t.MULTIPLEXED_TRANSPORT_EXTRA_KEY=U.MULTIPLEXED_TRANSPORT_EXTRA_KEY,t.makeMultiplexedTransport=U.makeMultiplexedTransport,t.addIntegration=L.addIntegration,t.defineIntegration=L.defineIntegration,t.extendIntegration=L.extendIntegration,t.getIntegrationsToSetup=L.getIntegrationsToSetup,t.installedIntegrations=L.installedIntegrations,t._INTERNAL_clearAiProvi
2derSkips=k._INTERNAL_clearAiProviderSkips,t._INTERNAL_shouldSkipAiProviderWrapping=k._INTERNAL_shouldSkipAiProviderWrapping,t._INTERNAL_skipAiProviderWrapping=k._INTERNAL_skipAiProviderWrapping,t._INTERNAL_filterKeyValueData=M.filterKeyValueData,t._INTERNAL_filterCookies=x.filterCookies,t._INTERNAL_filterQueryParams=B.filterQueryParams,t.envToBool=D.envToBool,t.applyScopeDataToEvent=j.applyScopeDataToEvent,t.getCombinedScopeData=j.getCombinedScopeData,t.mergeScopeData=j.mergeScopeData,t.prepareEvent=F.prepareEvent,t.createCheckInEnvelope=G.createCheckInEnvelope,t.hasSpansEnabled=H.hasSpansEnabled,t.isStreamedBeforeSendSpanCallback=W.isStreamedBeforeSendSpanCallback,t.withStreamedSpan=W.withStreamedSpan,t.isSentryRequestUrl=$.isSentryRequestUrl,t.handleCallbackErrors=q.handleCallbackErrors,t.fmt=V.fmt,t.parameterize=V.parameterize,t.handleTunnelRequest=z.handleTunnelRequest,t.addAutoIpAddressToSession=Y.addAutoIpAddressToSession,t.addAutoIpAddressToUser=Y.addAutoIpAddressToUser,t.INTERNAL_getSegmentSpan=K.INTERNAL_getSegmentSpan,t.addChildSpanToSpan=K.addChildSpanToSpan,t.convertSpanLinksForEnvelope=K.convertSpanLinksForEnvelope,t.getActiveSpan=K.getActiveSpan,t.getRootSpan=K.getRootSpan,t.getSpanDescendants=K.getSpanDescendants,t.getStatusMessage=K.getStatusMessage,t.spanIsSampled=K.spanIsSampled,t.spanTimeInputToSeconds=K.spanTimeInputToSeconds,t.spanToJSON=K.spanToJSON,t.spanToStreamedSpanJSON=K.spanToStreamedSpanJSON,t.spanToTraceContext=K.spanToTraceContext,t.spanToTraceHeader=K.spanToTraceHeader,t.updateSpanName=K.updateSpanName,t._INTERNAL_setSpanForScope=J._setSpanForScope,t.parseSampleRate=X.parseSampleRate,t.applySdkMetadata=Q.applySdkMetadata,t.getTraceData=Z.getTraceData,t.shouldPropagateTraceForUrl=ee.shouldPropagateTraceForUrl,t.getTraceMetaTags=te.getTraceMetaTags,t.debounce=ne.debounce,t.derefWeakRef=re.derefWeakRef,t.makeWeakRef=re.makeWeakRef,t.shouldIgnoreSpan=oe.shouldIgnoreSpan,t.MAX_BODY_BYTE_LENGTH=ae.MAX_BODY_BYTE_LENGTH,t.captureBodyFromWinterCGRequest=ae.captureBodyFromWinterCGRequest,t.extractQueryParamsFromUrl=ae.extractQueryParamsFromUrl,t.getMaxBodyByteLength=ae.getMaxBodyByteLength,t.headersToDict=ae.headersToDict,t.httpHeadersToSpanAttributes=ae.httpHeadersToSpanAttributes,t.httpRequestToRequestData=ae.httpRequestToRequestData,t.winterCGHeadersToDict=ae.winterCGHeadersToDict,t.winterCGRequestToRequestData=ae.winterCGRequestToRequestData,t.DEFAULT_ENVIRONMENT=ie.DEFAULT_ENVIRONMENT,t.DEV_ENVIRONMENT=ie.DEV_ENVIRONMENT,t.SPAN_KIND=se.SPAN_KIND,t.spanKindToName=se.spanKindToName,t.addBreadcrumb=ce.addBreadcrumb,t.functionToStringIntegration=ue.functionToStringIntegration,t.eventFiltersIntegration=le.eventFiltersIntegration,t.inboundFiltersIntegration=le.inboundFiltersIntegration,t.linkedErrorsIntegration=pe.linkedErrorsIntegration,t.moduleMetadataIntegration=de.moduleMetadataIntegration,t.requestDataIntegration=fe.requestDataIntegration,t.captureConsoleIntegration=ge.captureConsoleIntegration,t.dedupeIntegration=me.dedupeIntegration,t.extraErrorDataIntegration=he.extraErrorDataIntegration,t.rewriteFramesIntegration=_e.rewriteFramesIntegration,t.instrumentSupabaseClient=ye.instrumentSupabaseClient,t.supabaseIntegration=ye.supabaseIntegration,t.zodErrorsIntegration=Te.zodErrorsIntegration,t.thirdPartyErrorFilterIntegration=Se.thirdPartyErrorFilterIntegration,t.consoleIntegration=Ee.consoleIntegration,t.featureFlagsIntegration=be.featureFlagsIntegration,t.growthbookIntegration=ve.growthbookIntegration,t.conversationIdIntegration=Ie.conversationIdIntegration,t.profiler=Ae.profiler,t._INTERNAL_getTracingHeadersForFetchRequest=Re._INTERNAL_getTracingHeadersForFetchRequest,t.instrumentFetchRequest=Re.instrumentFetchRequest,t.captureFeedback=Ne.captureFeedback,t._INTERNAL_captureLog=Oe._INTERNAL_captureLog,t._INTERNAL_captureSerializedLog=Oe._INTERNAL_captureSerializedLog,t._INTERNAL_flushLogsBuffer=Oe._INTERNAL_flushLogsBuffer,t.logger=Pe,t.consoleLoggingIntegration=we.consoleLoggingIntegration,t._INTERNAL_captureMetric=Ce._INTERNAL_captureMetric,t._INTERNAL_captureSerializedMetric=Ce._INTERNAL_captureSerializedMetric,t._INTERNAL_flushMetricsBuffer=Ce._INTERNAL_flushMetricsBuffer,t.metrics=Ue,t.createConsolaReporter=Le.createConsolaReporter,t.addVercelAiProcessors=ke.addVercelAiProcessors,t.getProviderMetadataAttributes=ke.getProviderMetadataAttributes,t.getTruncatedJsonString=Me.getTruncatedJsonString,t.shouldEnableTruncation=Me.shouldEnableTruncation,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE=xe.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE=xe.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t._INTERNAL_cleanupToolCallSpanContext=Be._INTERNAL_cleanupToolCallSpanContext,t._INTERNAL_getSpanContextForToolCallId=Be._INTERNAL_getSpanContextForToolCallId,t._INTERNAL_toolCallSpanContextMap=De.toolCallSpanContextMap,t.instrumentOpenAiClient=je.instrumentOpenAiClient,t.OPENAI_INTEGRATION_NAME=Fe.OPENAI_INTEGRATION_NAME,t.instrumentAnthropicAiClient=Ge.instrumentAnthropicAiClient,t.ANTHROPIC_AI_INTEGRATION_NAME=He.ANTHROPIC_AI_INTEGRATION_NAME,t.instrumentGoogleGenAIClient=We.instrumentGoogleGenAIClient,t.GOOGLE_GENAI_INTEGRATION_NAME=$e.GOOGLE_GENAI_INTEGRATION_NAME,t.createLangChainCallbackHandler=qe.createLangChainCallbackHandler,t._INTERNAL_mergeLangChainCallbackHandler=Ve._INTERNAL_mergeLangChainCallbackHandler,t.LANGCHAIN_INTEGRATION_NAME=ze.LANGCHAIN_INTEGRATION_NAME,t.instrumentCreateReactAgent=Ye.instrumentCreateReactAgent,t.instrumentLangGraph=Ye.instrumentLangGraph,t.instrumentStateGraphCompile=Ye.instrumentStateGraphCompile,t.LANGGRAPH_INTEGRATION_NAME=Ke.LANGGRAPH_INTEGRATION_NAME,t.SpanBuffer=Je.SpanBuffer,t.hasSpanStreamingEnabled=Xe.hasSpanStreamingEnabled,t.spanStreamingIntegration=Qe.spanStreamingIntegration,t._INTERNAL_FLAG_BUFFER_SIZE=Ze._INTERNAL_FLAG_BUFFER_SIZE,t._INTERNAL_MAX_FLAGS_PER_SPAN=Ze._INTERNAL_MAX_FLAGS_PER_SPAN,t._INTERNAL_addFeatureFlagToActiveSpan=Ze._INTERNAL_addFeatureFlagToActiveSpan,t._INTERNAL_copyFlagsFromScopeToEvent=Ze._INTERNAL_copyFlagsFromScopeToEvent,t._INTERNAL_insertFlagToScope=Ze._INTERNAL_insertFlagToScope,t.applyAggregateErrorsToEvent=et.applyAggregateErrorsToEvent,t.getBreadcrumbLogLevelFromHttpStatusCode=tt.getBreadcrumbLogLevelFromHttpStatusCode,t.dsnFromString=nt.dsnFromString,t.dsnToString=nt.dsnToString,t.makeDsn=nt.makeDsn,t.SentryError=rt.SentryError,t.GLOBAL_OBJ=ot.GLOBAL_OBJ,t.addConsoleInstrumentationFilter=at.addConsoleInstrumentationFilter,t.addConsoleInstrumentationHandler=at.addConsoleInstrumentationHandler,t.addFetchEndInstrumentationHandler=it.addFetchEndInstrumentationHandler,t.addFetchInstrumentationHandler=it.addFetchInstrumentationHandler,t.addGlobalErrorInstrumentationHandler=st.addGlobalErrorInstrumentationHandler,t.addGlobalUnhandledRejectionInstrumentationHandler=ct.addGlobalUnhandledRejectionInstrumentationHandler,t.addHandler=ut.addHandler,t.maybeInstrument=ut.maybeInstrument,t.resetInstrumentationHandlers=ut.resetInstrumentationHandlers,t.triggerHandlers=ut.triggerHandlers,t.isDOMError=lt.isDOMError,t.isDOMException=lt.isDOMException,t.isElement=lt.isElement,t.isError=lt.isError,t.isErrorEvent=lt.isErrorEvent,t.isEvent=lt.isEvent,t.isInstanceOf=lt.isInstanceOf,t.isParameterizedString=lt.isParameterizedString,t.isPlainObject=lt.isPlainObject,t.isPrimitive=lt.isPrimitive,t.isRegExp=lt.isRegExp,t.isString=lt.isString,t.isSyntheticEvent=lt.isSyntheticEvent,t.isThenable=lt.isThenable,t.isVueViewModel=lt.isVueViewModel,t.isBrowser=pt.isBrowser,t.CONSOLE_LEVELS=dt.CONSOLE_LEVELS,t.consoleSandbox=dt.consoleSandbox,t.debug=dt.debug,t.originalConsoleMethods=dt.originalConsoleMethods,t.addContextToFrame=ft.addContextToFrame,t.addExceptionMechanism=ft.addExceptionMechanism,t.addExceptionTypeValue=ft.addExceptionTypeValue,t.checkOrSetAlreadyCaught=ft.checkOrSetAlreadyCaught,t.getEventDescription=ft.getEventDescription,t.isAlreadyCaptured=ft.isAlreadyCaptured,t.parseSemver=ft.parseSemver,t.uuid4=ft.uuid4,t.normalize=gt.normalize,t.normalizeToSize=gt.normalizeToSize,t.normalizeUrlToBase=gt.normalizeUrlToBase,t.setNormalizeStringifier=gt.setN
2ormalizeStringifier,t.setNormalizationDepthOverrideHint=mt.setNormalizationDepthOverrideHint,t.setSkipNormalizationHint=mt.setSkipNormalizationHint,t.addNonEnumerableProperty=ht.addNonEnumerableProperty,t.convertToPlainObject=ht.convertToPlainObject,t.dropUndefinedKeys=ht.dropUndefinedKeys,t.extractExceptionKeysForMessage=ht.extractExceptionKeysForMessage,t.fill=ht.fill,t.getOriginalFunction=ht.getOriginalFunction,t.markFunctionWrapped=ht.markFunctionWrapped,t.objectify=ht.objectify,t.basename=_t.basename,t.dirname=_t.dirname,t.isAbsolute=_t.isAbsolute,t.join=_t.join,t.normalizePath=_t.normalizePath,t.relative=_t.relative,t.resolve=_t.resolve,t.SENTRY_BUFFER_FULL_ERROR=yt.SENTRY_BUFFER_FULL_ERROR,t.makePromiseBuffer=yt.makePromiseBuffer,t.severityLevelFromString=Tt.severityLevelFromString,t.replaceExports=St.replaceExports,t.UNKNOWN_FUNCTION=Et.UNKNOWN_FUNCTION,t.createStackParser=Et.createStackParser,t.getFramesFromEvent=Et.getFramesFromEvent,t.getFunctionName=Et.getFunctionName,t.stackParserFromStackParserOptions=Et.stackParserFromStackParserOptions,t.stripSentryFramesAndReverse=Et.stripSentryFramesAndReverse,t.isMatchingPattern=bt.isMatchingPattern,t.safeJoin=bt.safeJoin,t.snipLine=bt.snipLine,t.stringMatchesSomePattern=bt.stringMatchesSomePattern,t.truncate=bt.truncate,t.isNativeFunction=vt.isNativeFunction,t.supportsDOMError=vt.supportsDOMError,t.supportsDOMException=vt.supportsDOMException,t.supportsErrorEvent=vt.supportsErrorEvent,t.supportsFetch=vt.supportsFetch,t.supportsHistory=vt.supportsHistory,t.supportsNativeFetch=vt.supportsNativeFetch,t.supportsReferrerPolicy=vt.supportsReferrerPolicy,t.supportsReportingObserver=vt.supportsReportingObserver,t.SyncPromise=It.SyncPromise,t.rejectedSyncPromise=It.rejectedSyncPromise,t.resolvedSyncPromise=It.resolvedSyncPromise,t.browserPerformanceTimeOrigin=At.browserPerformanceTimeOrigin,t.dateTimestampInSeconds=At.dateTimestampInSeconds,t.timestampInSeconds=At.timestampInSeconds,t.TRACEPARENT_REGEXP=Rt.TRACEPARENT_REGEXP,t.extractTraceparentData=Rt.extractTraceparentData,t.generateSentryTraceHeader=Rt.generateSentryTraceHeader,t.generateTraceparentHeader=Rt.generateTraceparentHeader,t.propagationContextFromHeaders=Rt.propagationContextFromHeaders,t.shouldContinueTrace=Rt.shouldContinueTrace,t.getSDKSource=Nt.getSDKSource,t.isBrowserBundle=Nt.isBrowserBundle,t.addItemToEnvelope=Ot.addItemToEnvelope,t.createAttachmentEnvelopeItem=Ot.createAttachmentEnvelopeItem,t.createEnvelope=Ot.createEnvelope,t.createEventEnvelopeHeaders=Ot.createEventEnvelopeHeaders,t.createSpanEnvelopeItem=Ot.createSpanEnvelopeItem,t.envelopeContainsItemType=Ot.envelopeContainsItemType,t.envelopeItemTypeToDataCategory=Ot.envelopeItemTypeToDataCategory,t.forEachEnvelopeItem=Ot.forEachEnvelopeItem,t.getSdkMetadataForEnvelopeHeader=Ot.getSdkMetadataForEnvelopeHeader,t.parseEnvelope=Ot.parseEnvelope,t.serializeEnvelope=Ot.serializeEnvelope,t.createClientReportEnvelope=Pt.createClientReportEnvelope,t.DEFAULT_RETRY_AFTER=wt.DEFAULT_RETRY_AFTER,t.disabledUntil=wt.disabledUntil,t.isRateLimited=wt.isRateLimited,t.parseRetryAfterHeader=wt.parseRetryAfterHeader,t.updateRateLimits=wt.updateRateLimits,t.MAX_BAGGAGE_STRING_LENGTH=Ct.MAX_BAGGAGE_STRING_LENGTH,t.SENTRY_BAGGAGE_KEY_PREFIX=Ct.SENTRY_BAGGAGE_KEY_PREFIX,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=Ct.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,t.baggageHeaderToDynamicSamplingContext=Ct.baggageHeaderToDynamicSamplingContext,t.dynamicSamplingContextToSentryBaggageHeader=Ct.dynamicSamplingContextToSentryBaggageHeader,t.mergeBaggageHeaders=Ct.mergeBaggageHeaders,t.objectToBaggageHeader=Ct.objectToBaggageHeader,t.parseBaggageHeader=Ct.parseBaggageHeader,t.getHttpSpanDetail
2sFromUrlObject=Ut.getHttpSpanDetailsFromUrlObject,t.getSanitizedUrlString=Ut.getSanitizedUrlString,t.getSanitizedUrlStringFromUrlObject=Ut.getSanitizedUrlStringFromUrlObject,t.isURLObjectRelative=Ut.isURLObjectRelative,t.parseStringToURLObject=Ut.parseStringToURLObject,t.parseUrl=Ut.parseUrl,t.stripDataUrlContent=Ut.stripDataUrlContent,t.stripUrlQueryAndFragment=Ut.stripUrlQueryAndFragment,t._INTERNAL_enhanceErrorWithSentryInfo=Lt._enhanceErrorWithSentryInfo,t.eventFromMessage=Lt.eventFromMessage,t.eventFromUnknownInput=Lt.eventFromUnknownInput,t.exceptionFromError=Lt.exceptionFromError,t.parseStackFrames=Lt.parseStackFrames,t.LRUMap=kt.LRUMap,t.generateSpanId=Mt.generateSpanId,t.generateTraceId=Mt.generateTraceId,t.SDK_VERSION=xt.SDK_VERSION,t.getDebugImagesForResources=Bt.getDebugImagesForResources,t.getFilenameToDebugIdMap=Bt.getFilenameToDebugIdMap,t.getFilenameToMetadataMap=Dt.getFilenameToMetadataMap,t.escapeStringForRegex=jt.escapeStringForRegex,t._INTERNAL_safeDateNow=Ft.safeDateNow,t._INTERNAL_safeMathRandom=Ft.safeMathRandom,t._INTERNAL_withRandomSafeContext=Ft.withRandomSafeContext,t.getComponentName=Gt.getComponentName,t.getLocationHref=Gt.getLocationHref,t.htmlTreeAsString=Gt.htmlTreeAsString,t.instrumentLangChainEmbeddings=Ht.instrumentLangChainEmbeddings},73220:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6102),o=n(73969);function a(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.SDK_VERSION,t[r.SDK_VERSION]=t[r.SDK_VERSION]||{}}t.getGlobalSingleton=function(e,t,n=o.GLOBAL_OBJ){const a=n.__SENTRY__=n.__SENTRY__||{},i=a[r.SDK_VERSION]=a[r.SDK_VERSION]||{};return i[e]||(i[e]=t())},t.getMainCarrier=function(){return a(o.GLOBAL_OBJ),o.GLOBAL_OBJ},t.getSentryCarrier=a},60251:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(21811),o=n(99188),a=n(83031);t.createCheckInEnvelope=function(e,t,n,i,s){const c={sent_at:new Date(a.safeDateNow()).toISOString()};n?.sdk&&(c.sdk={name:n.sdk.name,version:n.sdk.version}),i&&s&&(c.dsn=r.dsnToString(s)),t&&(c.trace=t);const u=function(e){return[{type:"check_in"},e]}(e);return o.createEnvelope(c,[u])}},83913:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(85740),o=n(42501),a=n(49564),i=n(68974),s=n(30238),c=n(82430),u=n(97373),l=n(63717),p=n(11348),d=n(93754),f=n(95150),g=n(34983),m=n(64450),h=n(64841),_=n(85110),y=n(21811),T=n(99188),S=n(27389),E=n(88532),b=n(19090),v=n(96940),I=n(10393),A=n(31485),R=n(31901),N=n(83031),O=n(87687),P=n(54583),w=n(94486),C=n(41335),U=n(73324),L=n(57422),k="Not capturing exception because it's already been captured.",M="Discarded session because of missing or non-string release",x=Symbol.for("SentryInternalError"),B=Symbol.for("SentryDoNotSendEventError");function D(e){return{message:e,[x]:!0}}function j(e){return{message:e,[B]:!0}}function F(e){return!!e&&"object"==typeof e&&x in e}function G(e){return!!e&&"object"==typeof e&&B in e}function H(e,t,n,r,o){let a,i=0,s=!1;e.on(n,()=>{i=0,clearTimeout(a),s=!1}),e.on(t,t=>{if(i+=r(t),i>=8e5)o(e);else if(!s){const t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,a=C.safeUnref(setTimeout(()=>{o(e)},t)))}}),e.on("flush",()=>{o(e)})}function W(e){return"replay_event"===e?"replay":e||"error"}function $(e){return void 0===e.type}function q(e){return"transaction"===e.type}function V(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+Y(e.attributes)}function z(e){let t=0;return e.message&&(t+=2*e.message.length),t+Y(e.attributes)}function Y(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*K(e[0]):E.isPrimitive(e)?t+=K(e):t+=100}),t}function K(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}t.Client=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=R.makePromiseBuffer(e.transportOptions?.bufferSize??m.DEFAULT_TRANSPORT_BUFFER_SIZE),this._dataCollection=L.resolveDataCollectionOptions(e),e.dsn?this._dsn=y.makeDsn(e.dsn):i.DEBUG_BUILD&&_.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=r.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&H(this,"afterCaptureLog","flushLogs",z,u._INT
2ERNAL_flushLogsBuffer);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&H(this,"afterCaptureMetric","flushMetrics",V,l._INTERNAL_flushMetricsBuffer)}captureException(e,t,n){const r=v.uuid4();if(v.checkOrSetAlreadyCaught(e))return i.DEBUG_BUILD&&_.debug.log(k),r;const o={event_id:r,...t};return this._process(()=>this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n)).then(e=>e),"error"),o.event_id}captureMessage(e,t,n,r){const o={event_id:v.uuid4(),...n},a=E.isParameterizedString(e)?e:String(e),i=E.isPrimitive(e),s=i?this.eventFromMessage(a,t,o):this.eventFromException(e,o);return this._process(()=>s.then(e=>this._captureEvent(e,o,r)),i?"unknown":"error"),o.event_id}captureEvent(e,t,n){const r=v.uuid4();if(t?.originalException&&v.checkOrSetAlreadyCaught(t.originalException))return i.DEBUG_BUILD&&_.debug.log(k),r;const o={event_id:r,...t},a=e.sdkProcessingMetadata||{},s=a.capturedSpanScope,c=a.capturedSpanIsolationScope,u=W(e.type);return this._process(()=>this._captureEvent(e,o,s||n,c),u),o.event_id}captureSession(e){this.sendSession(e),p.updateSession(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){u._INTERNAL_flushLogsBuffer(this);const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}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]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),c.setupIntegration(this,e,this._integrations),t||c.afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const n=g.extractGenAiSpansFromEvent(e,this);let r=s.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of t.attachments||[])r=T.addItemToEnvelope(r,T.createAttachmentEnvelopeItem(o));n&&(r=T.addItemToEnvelope(r,n)),this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:n=o.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(i.DEBUG_BUILD&&_.debug.warn(M));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(i.DEBUG_BUILD&&_.debug.warn(M));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=s.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;i.DEBUG_BUILD&&_.debug.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(t){return i.DEBUG_BUILD&&_.debug.error("Error while sending envelope:",t),{}}return i.DEBUG_BUILD&&_.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=c.setupIntegrations(this,e),c.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception?.values;if(o){r=!0,n=!1;for(const e of o)if(!1===e.mechanism?.handled){n=!0;break}}const a="ok"===e.status;(a&&0===e.errors||a&&n)&&(p.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){const o=this.getOptions(),i=this.getIntegrationNames();
2return!t.integrations&&i.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),A.prepareEvent(o,e,t,n,this,r).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...a.getTraceContextFromScope(n)},...e.contexts};const r=d.getDynamicSamplingContextFromScope(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=a.getCurrentScope(),r=a.getIsolationScope()){return i.DEBUG_BUILD&&$(e)&&_.debug.log(`Captured error event \`${S.getPossibleEventMessages(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{i.DEBUG_BUILD&&(G(e)?_.debug.log(e.message):F(e)?_.debug.warn(e.message):_.debug.warn(e))})}_processEvent(e,t,n,r){const o=this.getOptions(),{sampleRate:a}=o,i=q(e),s=$(e),c=`before send for type \`${e.type||"error"}\``,u=void 0===a?void 0:I.parseSampleRate(a);if(s&&"number"==typeof u&&N.safeMathRandom()>u)return this.recordDroppedEvent("sample_rate","error"),w.rejectedSyncPromise(j(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const l=W(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",l),j("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:a,ignoreSpans:i}=t,s=!f.isStreamedBeforeSendSpanCallback(t.beforeSendSpan)&&t.beforeSendSpan;let c=n;if($(c)&&o)return o(c,r);if(q(c)){if(s||i){const t=U.convertTransactionEventToSpanJson(c);if(i?.length&&O.shouldIgnoreSpan({description:t.description,op:t.op,attributes:t.data},i))return null;if(s){const e=s(t);e?c=b.merge(n,U.convertSpanJsonToTransactionEvent(e)):P.showSpanDropWarning()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(i?.length&&O.shouldIgnoreSpan({description:e.description,op:e.op,attributes:e.data},i))O.reparentChildSpans(n,e);else if(s){const n=s(e);n?t.push(n):(P.showSpanDropWarning(),t.push(e))}else t.push(e);const r=c.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),c.spans=t}}if(a){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}(this,o,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(E.isThenable(e))return e.then(e=>{if(!E.isPlainObject(e)&&null!==e)throw D(n);return e},e=>{throw D(`${t} rejected with ${e}`)});if(!E.isPlainObject(e)&&null!==e)throw D(n);return e}(n,c)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",l),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw j(`${c} returned \`null\`, will not send event.`)}const a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,o),i){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const u=o.transaction_info;if(i&&u&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...u,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(G(e)||F(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),D(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===R.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){i.DEBUG_BUILD&&_.debug.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(i.DEBUG_BUILD&&_.debug.log("No outcomes to send"));if(!this._dsn)return void(i.DEBUG_BUILD&&_.debug.log("No dsn provided, will not send outcomes"));i.DEBUG_BUILD&&_.debug.log("Sending outcomes:",e);const t=h.createClientReportEnvelope(e,this._options.tunnel&&y.dsnToString(this._dsn));this.sendEnvelope(t)}}},42501:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.DEFAULT_ENVIRONMENT="production",t.DEV_ENVIRONMENT="development"},49564:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(42810),o=n(73220),a=n(69640),i=n(58913);let s;function c(){return s?.()}function u(){const e=o.getMainCarrier();return r.getAsyncContextStrategy(e).getCurrentScope()}t.getClient=function(){return u().getClient()},t.getCurrentScope=u,t.getExternalPropagationContext=c,t.getGlobalScope=function(){return o.getGlobalSingleton("globalScope",()=>new a.Scope)},t.getIsolationScope=function(){const e=o.getMainCarrier();return r.getAsyncContextStrategy(e).getIsolationScope()},t.getTraceContextFromScope=function(e){const t=c();if(t)return{trace_id:t.traceId,span_id:t.spanId};const n=e.getPropagationContext(),{traceId:r,parentSpanId:o,propagationSpanId:a}=n,s={trace_id:r,span_id:a||i.generateSpanId()};return o&&(s.parent_span_id=o),s},t.hasExternalPropagationContext=function(){return void 0!==s},t.registerExternalPropagationContext=function(e){s=e},t.withIsolationScope=function(...e){const t=o.getMainCarrier(),n=r.getAsyncContextStrategy(t);if(2===e.length){const[t,r]=e;return t?n.withSetIsolationScope(t,r):n.withIsolationScope(r)}return n.withIsolationScope(e[0])},t.withScope=function(...e){const t=o.getMainCarrier(),n=r.getAsyncContextStrategy(t);if(2===e.length){const[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}},68974:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.DEBUG_BUILD=n},37320:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73220),o=n(69640);t.getDefaultCurrentScope=function(){return r.getGlobalSingleton("defaultCurrentScope",()=>new o.Scope)},t.getDefaultIsolationScope=function(){return r.getGlobalSingleton("defaultIsolationScope",()=>new o.Scope)}},30238:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(93754),o=n(95150),a=n(21811),i=n(99188),s=n(83031),c=n(87687),u=n(54583);function l(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}t._enhanceEventWithSdkInfo=l,t.createEventEnvelope=function(e,t,n,r){const o=i.getSdkMetadataForEnvelopeHeader(n),a=e.type&&"replay_event"!==e.type?e.type:"event";l(e,n?.sdk);
2const s=i.createEventEnvelopeHeaders(e,o,r,t);delete e.sdkProcessingMetadata;const c=[{type:a},e];return i.createEnvelope(s,[c])},t.createSessionEnvelope=function(e,t,n,r){const o=i.getSdkMetadataForEnvelopeHeader(n),c={sent_at:new Date(s.safeDateNow()).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:a.dsnToString(t)}},u="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return i.createEnvelope(c,[u])},t.createSpanEnvelope=function(e,t){const n=r.getDynamicSamplingContextFromSpan(e[0]),l=t?.getDsn(),p=t?.getOptions().tunnel,d={sent_at:new Date(s.safeDateNow()).toISOString(),...(f=n,!!f.trace_id&&!!f.public_key&&{trace:n}),...!!p&&l&&{dsn:a.dsnToString(l)}};var f;const{beforeSendSpan:g,ignoreSpans:m}=t?.getOptions()||{},h=m?.length?e.filter(e=>{const t=u.spanToJSON(e);return!c.shouldIgnoreSpan({description:t.description,op:t.op,attributes:t.data},m)}):e,_=e.length-h.length;_&&t?.recordDroppedEvent("before_send","span",_);const y=g?e=>{const t=u.spanToJSON(e),n=o.isStreamedBeforeSendSpanCallback(g)?t:g(t);return n||(u.showSpanDropWarning(),t)}:u.spanToJSON,T=[];for(const r of h){const e=y(r);e&&T.push(i.createSpanEnvelopeItem(e))}return i.createEnvelope(d,T)}},51929:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(88532),i=n(94486);function s(e,t,n,i){const c=n[i];if(!e||!c)return e;const u=c({...e},t);return r.DEBUG_BUILD&&null===u&&o.debug.log(`Event processor "${c.id||"?"}" dropped event`),a.isThenable(u)?u.then(e=>s(e,t,n,i+1)):s(u,t,n,i+1)}t.notifyEventProcessors=function(e,t,n,r=0){try{const o=s(t,n,e,r);return a.isThenable(o)?o:i.resolvedSyncPromise(o)}catch(o){return i.rejectedSyncPromise(o)}}},79183:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(68974),a=n(11348),i=n(55908),s=n(85110),c=n(88532),u=n(96940),l=n(31485),p=n(37402),d=n(26869),f=n(73969);function g(e,t){const n=r.getCurrentScope(),a=r.getClient();if(a){if(a.captureCheckIn)return a.captureCheckIn(e,t,n);o.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else o.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. No client defined.");return u.uuid4()}function m(){const e=r.getIsolationScope(),t=r.getCurrentScope().getSession()||e.getSession();t&&a.closeSession(t),h(),e.setSession()}function h(){const e=r.getIsolationScope(),t=r.getClient(),n=e.getSession();n&&t&&t.captureSession(n)}t.addEventProcessor=function(e){r.getIsolationScope().addEventProcessor(e)},t.captureCheckIn=g,t.captureEvent=function(e,t){return r.getCurrentScope().captureEvent(e,t)},t.captureException=function(e,t){return r.getCurrentScope().captureException(e,l.parseEventHintOrCaptureContext(t))},t.captureMessage=function(e,t){const n="string"==typeof t?t:void 0,o="string"!=typeof t?{captureContext:t}:void 0;return r.getCurrentScope().captureMessage(e,n,o)},t.captureSession=function(e=!1){e?m():h()},t.close=async function(e){const t=r.getClient();return t?t.close(e):(o.DEBUG_BUILD&&s.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},t.endSession=m,t.flush=async function(e){const t=r.getClient();return t?t.flush(e):(o.DEBUG_BUILD&&s.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},t.isEnabled=function(){const e=r.getClient();return!1!==e?.getOptions().enabled&&!!e?.getTransport()},t.isInitialized=function(){return!!r.getClient()},t.lastEventId=function(){return r.getIsolationScope().lastEventId()},t.setAttribute=function(e,t){r.getIsolationScope().setAttribute(e,t)},t.setAttributes=function(e){r.getIsolationScope().setAttributes(e)},t.setContext=function(e,t){r.getIsolationScope().setContext(e,t)},t.setConversationId=function(e){r.getIsolationScope().setConversationId(e)},t.setExtra=function(e,t){r.getIsolationScope().setExtra(e,t)},t.setExtras=function(e){r.getIsolationScope().setExtras(e)},t.setTag=function(e,t){r.getIsolationScope().setTag(e,t)},t.setTags=function(e){r.getIsolationScope().setTags(e)},t.setUser=function(e){r.getIsolationScope().setUser(e)},t.startSession=function(e){const t=r.getIsolationScope(),{user:n}=p.getCombinedScopeData(t,r.getCurrentScope()),{userAgent:o}=f.GLOBAL_OBJ.navigator||{},i=a.makeSession({user:n,...o&&{userAgent:o},...e}),s=t.getSession();return"ok"===s?.status&&a.updateSession(s,{status:"exited"}),m(),t.setSession(i),i},t.withMonitor=function(e,t,n){function o(){const r=g({monitorSlug:e,status:"in_progress"},n),o=d.timestampInSeconds();function a(t){g({monitorSlug:e,status:t,checkInId:r,duration:d.timestampInSeconds()-o})}let i;try{i=t()}catch(s){throw a("error"),s}return c.isThenable(i)?i.then(e=>(a("ok"),e),e=>{throw a("error"),e}):(a("ok"),i)}return r.withIsolationScope(()=>n?.isolateTrace?i.startNewTrace(o):o())}},6933:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564);t.captureFeedback=function(e,t={},n=r.getCurrentScope()){const{message:o,name:a,email:i,url:s,source:c,associatedEventId:u,tags:l}=e,p={contexts:{feedback:{contact_email:i,name:a,message:o,url:s,source:c,associated_event_id:u}},type:"feedback",level:"info",tags:l},d=n?.getClient()||r.getClient();return d&&d.emit("beforeSendFeedback",p,t),n.captureEvent(p,t)}},31096:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(52751),a=n(54583),i=n(15363),s=n(88532),c=n(51228),u=n(67392),l=n(5684),p=n(85526),d=n(55908),f=n(20647),g=n(9635);function m(e,t,n){const r="object"==typeof n&&null!==n?n.onRequestSpanEnd:void 0;r?.(e,{headers:t.response?.headers,error:t.error})}function h(e,t,n,r){const o=f.getTraceData({span:n,propagateTraceparent:r}),a=o["sentry-trace"],i=o.baggage,c=o.traceparent;if(!a)return;const u=t.headers||(s.isRequest(e)?e.headers:void 0);if(u){if(l=u,"undefined"!=typeof Headers&&s.isInstanceOf(l,Headers)){const e=new Headers(u);if(e.get("sentry-trace")||e.set("sentry-trace",a),r&&c&&!e.get("traceparent")&&e.set("traceparent",c),i){const t=e.get("baggage");t?_(t)||e.set("baggage",`${t},${i}`):e.set("baggage",i)}return e}if(function(e){if(!Array.isArray(e))return!1;return e.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])}(u)){const e=[...u];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",a]),r&&c&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",c]);const t=u.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&_(e[1]));return i&&!t&&e.push(["baggage",i]),e}{const e="sentry-trace"in u?u["sentry-trace"]:void 0,t="traceparent"in u?u.traceparent:void 0,n="baggage"in u?u.baggage:void 0,o=n?Array.isArray(n)?[...n]:[n]:[],s=n&&(Array.isArray(n)?n.find(e=>_(e)):_(n));i&&!s&&o.push(i);const l=Object.assign({},u,{"sentry-trace":e??a,baggage:o.length>0?o.join(","):void 0});return r&&c&&!t&&(l.traceparent=c),l}}return{...o};var l}function _(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(l.SENTRY_BAGGAGE_KEY_PREFIX))}function y(e,t,n){if(e.startsWith("data:")){return{name:`${t} ${g.stripDataUrlContent(e)}`,attributes:T(e,void 0,t,n)}}const r=g.parseStringToURLObject(e);return{name:`${t} ${r?g.getSanitizedUrlStringFromUrlObject(r):e}`,attributes:T(e,r,t,n)}}function T(e,t,n,r){const a={url:g.stripDataUrlContent(e),type:"fetch","http.method":n,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(g.isURLObjectRelative(t)||(a["http.url"]=g.stripDataUrlContent(t.href),a["server.address"]=t.host),t.search&&(a["http.query"]=t.search),t.hash&&(a["http.fragment"]=t.hash)),a}t._INTERNAL_getTracingHeadersForFetchRequest=h,t._callOnRequestSpanEnd=m,t.instrumentFetchRequest=function(e,t,n,o,s){if
2(!e.fetchData)return;const{method:l,url:f}=e.fetchData,g=c.hasSpansEnabled()&&t(f);if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const n=o[t];return void(n&&(g&&(!function(e,t){if(t.response){i.setHttpStatus(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(n,e),m(n,e,s)),delete o[t]))}const{spanOrigin:_="auto.http.browser",propagateTraceparent:T=!1}="object"==typeof s?s:{spanOrigin:s},S=r.getClient(),E=!!a.getActiveSpan()||!!S&&p.hasSpanStreamingEnabled(S),b=g&&E?d.startInactiveSpan(y(f,l,_)):new u.SentryNonRecordingSpan;if(g&&!E&&S?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=b.spanContext().spanId,o[b.spanContext().spanId]=b,n(e.fetchData.url)){const t=e.args[0],n={...e.args[1]||{}},r=h(t,n,c.hasSpansEnabled()&&E?b:void 0,T);r&&(e.args[1]=n,n.headers=r)}if(S){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};S.emit("beforeOutgoingRequestSpan",b,t)}return b}},37872:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(44038),o=n(64284),a=n(57011),i=n(30242),s=n(67392),c=n(15363),u=n(55908),l=n(52719),p=n(93754),d=n(28945),f=n(79816),g=n(8346),m=n(47473),h=n(52751),_=n(30238),y=n(79183),T=n(49564),S=n(37320),E=n(42810),b=n(44994),v=n(73220),I=n(11348),A=n(69640),R=n(51929),N=n(85740),O=n(83913),P=n(27008),w=n(64450),C=n(52256),U=n(14082),L=n(82430),k=n(52311),M=n(96098),x=n(89927),B=n(69150),D=n(83412),j=n(37402),F=n(31485),G=n(60251),H=n(51228),W=n(95150),$=n(46877),q=n(76354),V=n(72979),z=n(78182),Y=n(78949),K=n(54583),J=n(64865),X=n(10393),Q=n(55303),Z=n(20647),ee=n(78371),te=n(145),ne=n(19367),re=n(23879),oe=n(87687),ae=n(56011),ie=n(42501),se=n(61204),ce=n(87990),ue=n(68360),le=n(51179),pe=n(92958),de=n(55873),fe=n(92215),ge=n(75003),me=n(431),he=n(41312),_e=n(17536),ye=n(60262),Te=n(24208),Se=n(80699),Ee=n(14867),be=n(70875),ve=n(98398),Ie=n(94966),Ae=n(83090),Re=n(31096),Ne=n(6933),Oe=n(97373),Pe=n(85296),we=n(78604),Ce=n(63717),Ue=n(39320),Le=n(19575),ke=n(61038),Me=n(2881),xe=n(24231),Be=n(67935),De=n(57471),je=n(49464),Fe=n(47277),Ge=n(7747),He=n(82054),We=n(13860),$e=n(60393),qe=n(37135),Ve=n(65226),ze=n(1170),Ye=n(50162),Ke=n(92579),Je=n(13161),Xe=n(85526),Qe=n(61126),Ze=n(83609),et=n(90153),tt=n(72833),nt=n(21811),rt=n(69960),ot=n(73969),at=n(83389),it=n(39048),st=n(49759),ct=n(53551),ut=n(91535),lt=n(88532),pt=n(64702),dt=n(85110),ft=n(96940),gt=n(88585),mt=n(77765),ht=n(96159),_t=n(73155),yt=n(31901),Tt=n(89499),St=n(23513),Et=n(70561),bt=n(79721),vt=n(21148),It=n(94486),At=n(26869),Rt=n(23336),Nt=n(81857),Ot=n(99188),Pt=n(64841),wt=n(28119),Ct=n(5684),Ut=n(9635),Lt=n(93395),kt=n(43807),Mt=n(58913),xt=n(6102),Bt=n(47274),Dt=n(36823),jt=n(89235),Ft=n(83031),Gt=n(24842),Ht=n(36033),Wt=n(6855),$t=n(86744),qt=n(69025),Vt=n(64548),zt=n(13053),Yt=n(10537),Kt=n(41335),Jt=n(56953),Xt=n(68904),Qt=n(35310),Zt=n(10571),en=n(31223),tn=n(75492),nn=n(42927),rn=n(25073),on=n(36707),an=n(52366),sn=n(3138),cn=n(48937);t.registerSpanErrorInstrumentation=r.registerSpanErrorInstrumentation,t.getCapturedScopesOnSpan=o.getCapturedScopesOnSpan,t.markSpanForOtelSourceInference=o.markSpanForOtelSourceInference,t.setCapturedScopesOnSpan=o.setCapturedScopesOnSpan,t.spanShouldInferOtelSource=o.spanShouldInferOtelSource,t.TRACING_DEFAULTS=a.TRACING_DEFAULTS,t.startIdleSpan=a.startIdleSpan,t.SentrySpan=i.SentrySpan,t.SentryNonRecordingSpan=s.SentryNonRecordingSpan,t.SPAN_STATUS_ERROR=c.SPAN_STATUS_ERROR,t.SPAN_STATUS_OK=c.SPAN_STATUS_OK,t.SPAN_STATUS_UNSET=c.SPAN_STATUS_UNSET,t.getSpanStatusFromHttpCode=c.getSpanStatusFromHttpCode,t.setHttpStatus=c.setHttpStatus,t.SUPPRESS_TRACING_KEY=u.SUPPRESS_TRACING_KEY,t.continueTrace=u.continueTrace,t.isTracingSuppressed=u.isTracingSuppressed,t.startInactiveSpan=u.startInactiveSpan,t.startNewTrace=u.startNewTrace,t.startSpan=u.startSpan,t.startSpanManual=u.startSpanManual,t.suppressTracing=u.suppressTracing,t.withActiveSpan=u.withActiveSpan,t.bindScopeToEmitter=l.bindScopeToEmitter,t.getDynamicSamplingContextFromClient=p.getDynamicSamplingContextFromClient,t.getDynamicSamplingContextFromScope=p.getDynamicSamplingContextFromScope,t.getDynamicSamplingContextFromSpan=p.getDynamicSamplingContextFromSpan,t.spanToBaggageHeader=p.spanToBaggageHeader,t.setMeasurement=d.setMeasurement,t.timedEventsToMeasurements=d.timedEventsToMeasurements,t.sampleSpan=f.sampleSpan,t.logSpanEnd=g.logSpanEnd,t.logSpanStart=g.logSpanStart,t.captureSpan=m.captureSpan,t.s
2afeSetSpanJSONAttributes=m.safeSetSpanJSONAttributes,t.GEN_AI_CONVERSATION_ID_ATTRIBUTE=h.GEN_AI_CONVERSATION_ID_ATTRIBUTE,t.SEMANTIC_ATTRIBUTE_CACHE_HIT=h.SEMANTIC_ATTRIBUTE_CACHE_HIT,t.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=h.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,t.SEMANTIC_ATTRIBUTE_CACHE_KEY=h.SEMANTIC_ATTRIBUTE_CACHE_KEY,t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=h.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=h.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD,t.SEMANTIC_ATTRIBUTE_PROFILE_ID=h.SEMANTIC_ATTRIBUTE_PROFILE_ID,t.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME=h.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME,t.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT=h.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT,t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=h.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=h.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=h.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=h.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=h.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE=h.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE=h.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=h.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS=h.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS,t.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME=h.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME,t.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION=h.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION,t.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID=h.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID,t.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME=h.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=h.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE=h.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE,t.SEMANTIC_ATTRIBUTE_URL_FULL=h.SEMANTIC_ATTRIBUTE_URL_FULL,t.SEMANTIC_ATTRIBUTE_USER_EMAIL=h.SEMANTIC_ATTRIBUTE_USER_EMAIL,t.SEMANTIC_ATTRIBUTE_USER_ID=h.SEMANTIC_ATTRIBUTE_USER_ID,t.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS=h.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS,t.SEMANTIC_ATTRIBUTE_USER_USERNAME=h.SEMANTIC_ATTRIBUTE_USER_USERNAME,t.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE=h.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE,t.createEventEnvelope=_.createEventEnvelope,t.createSessionEnvelope=_.createSessionEnvelope,t.createSpanEnvelope=_.createSpanEnvelope,t.addEventProcessor=y.addEventProcessor,t.captureCheckIn=y.captureCheckIn,t.captureEvent=y.captureEvent,t.captureException=y.captureException,t.captureMessage=y.captureMessage,t.captureSession=y.captureSession,t.close=y.close,t.endSession=y.endSession,t.flush=y.flush,t.isEnabled=y.isEnabled,t.isInitialized=y.isInitialized,t.lastEventId=y.lastEventId,t.setAttribute=y.setAttribute,t.setAttributes=y.setAttributes,t.setContext=y.setContext,t.setConversationId=y.setConversationId,t.setExtra=y.setExtra,t.setExtras=y.setExtras,t.setTag=y.setTag,t.setTags=y.setTags,t.setUser=y.setUser,t.startSession=y.startSession,t.withMonitor=y.withMonitor,t.getClient=T.getClient,t.getCurrentScope=T.getCurrentScope,t.getExternalPropagationContext=T.getExternalPropagationContext,t.getGlobalScope=T.getGlobalScope,t.getIsolationScope=T.getIsolationScope,t.getTraceContextFromScope=T.getTraceContextFromScope,t.hasExternalPropagationContext=T.hasExternalPropagationContext,t.registerExternalPropagationContext=T.registerExternalPropagationContext,t.withIsolationScope=T.withIsolationScope,t.withScope=T.withScope,t.getDefaultCurrentScope=S.getDefaultCurrentScope,t.getDefaultIsolationScope=S.getDefaultIsolationScope,t.getAsyncContextStrategy=E.getAsyncContextStrategy,t.setAsyncContextStrategy=E.setAsyncContextStrategy,t._INTERNAL_createTracingChannelBinding=b._INTERNAL_createTracingChannelBinding,t.waitForTracingChannelBinding=b.waitForTracingChannelBinding,t.getGlobalSingleton=v.getGlobalSingleton,t.getMainCarrier=v.getMainCarrier,t.closeSession=I.closeSession,t.makeSession=I.makeSession,t.updateSession=I.updateSession,t.Scope=A.Scope,t.notifyEventProcessors=R.notifyEventProcessors,t.SENTRY_API_VERSION=N.SENTRY_API_VERSION,t.getEnvelopeEndpointWithUrlEncodedAuth=N.getEnvelopeEndpointWithUrlEncodedAuth,t.getReportDialogEndpoint=N.getReportDialogEndpoint,t.Client=O.Client,t.initAndBind=P.initAndBind,t.setCurrentClient=P.setCurrentClient,t.createTransport=w.createTransport,t.makeOfflineTransport=C.makeOfflineTransport,t.MULTIPLEXED_TRANSPORT_EXTRA_KEY=U.MULTIPLEXED_TRANSPORT_EXTRA_KEY,t.makeMultiplexedTransport=U.makeMultiplexedTransport,t.addIntegration=L.addIntegration,t.defineIntegration=L.defineIntegration,t.extendIntegration=L.extendIntegration,t.getIntegrationsToSetup=L.getIntegrationsToSetup,t.installedIntegrations=L.installedIntegrations,t._INTERNAL_clearAiProvi
2derSkips=k._INTERNAL_clearAiProviderSkips,t._INTERNAL_shouldSkipAiProviderWrapping=k._INTERNAL_shouldSkipAiProviderWrapping,t._INTERNAL_skipAiProviderWrapping=k._INTERNAL_skipAiProviderWrapping,t._INTERNAL_filterKeyValueData=M.filterKeyValueData,t._INTERNAL_filterCookies=x.filterCookies,t._INTERNAL_filterQueryParams=B.filterQueryParams,t.envToBool=D.envToBool,t.applyScopeDataToEvent=j.applyScopeDataToEvent,t.getCombinedScopeData=j.getCombinedScopeData,t.mergeScopeData=j.mergeScopeData,t.prepareEvent=F.prepareEvent,t.createCheckInEnvelope=G.createCheckInEnvelope,t.hasSpansEnabled=H.hasSpansEnabled,t.isStreamedBeforeSendSpanCallback=W.isStreamedBeforeSendSpanCallback,t.withStreamedSpan=W.withStreamedSpan,t.isSentryRequestUrl=$.isSentryRequestUrl,t.handleCallbackErrors=q.handleCallbackErrors,t.fmt=V.fmt,t.parameterize=V.parameterize,t.handleTunnelRequest=z.handleTunnelRequest,t.addAutoIpAddressToSession=Y.addAutoIpAddressToSession,t.addAutoIpAddressToUser=Y.addAutoIpAddressToUser,t.INTERNAL_getSegmentSpan=K.INTERNAL_getSegmentSpan,t.addChildSpanToSpan=K.addChildSpanToSpan,t.convertSpanLinksForEnvelope=K.convertSpanLinksForEnvelope,t.getActiveSpan=K.getActiveSpan,t.getRootSpan=K.getRootSpan,t.getSpanDescendants=K.getSpanDescendants,t.getStatusMessage=K.getStatusMessage,t.spanIsSampled=K.spanIsSampled,t.spanTimeInputToSeconds=K.spanTimeInputToSeconds,t.spanToJSON=K.spanToJSON,t.spanToStreamedSpanJSON=K.spanToStreamedSpanJSON,t.spanToTraceContext=K.spanToTraceContext,t.spanToTraceHeader=K.spanToTraceHeader,t.updateSpanName=K.updateSpanName,t._INTERNAL_setSpanForScope=J._setSpanForScope,t.parseSampleRate=X.parseSampleRate,t.applySdkMetadata=Q.applySdkMetadata,t.getTraceData=Z.getTraceData,t.shouldPropagateTraceForUrl=ee.shouldPropagateTraceForUrl,t.getTraceMetaTags=te.getTraceMetaTags,t.debounce=ne.debounce,t.derefWeakRef=re.derefWeakRef,t.makeWeakRef=re.makeWeakRef,t.shouldIgnoreSpan=oe.shouldIgnoreSpan,t.MAX_BODY_BYTE_LENGTH=ae.MAX_BODY_BYTE_LENGTH,t.captureBodyFromWinterCGRequest=ae.captureBodyFromWinterCGRequest,t.extractQueryParamsFromUrl=ae.extractQueryParamsFromUrl,t.getMaxBodyByteLength=ae.getMaxBodyByteLength,t.headersToDict=ae.headersToDict,t.httpHeadersToSpanAttributes=ae.httpHeadersToSpanAttributes,t.httpRequestToRequestData=ae.httpRequestToRequestData,t.winterCGHeadersToDict=ae.winterCGHeadersToDict,t.winterCGRequestToRequestData=ae.winterCGRequestToRequestData,t.DEFAULT_ENVIRONMENT=ie.DEFAULT_ENVIRONMENT,t.DEV_ENVIRONMENT=ie.DEV_ENVIRONMENT,t.SPAN_KIND=se.SPAN_KIND,t.spanKindToName=se.spanKindToName,t.addBreadcrumb=ce.addBreadcrumb,t.functionToStringIntegration=ue.functionToStringIntegration,t.eventFiltersIntegration=le.eventFiltersIntegration,t.inboundFiltersIntegration=le.inboundFiltersIntegration,t.linkedErrorsIntegration=pe.linkedErrorsIntegration,t.moduleMetadataIntegration=de.moduleMetadataIntegration,t.requestDataIntegration=fe.requestDataIntegration,t.captureConsoleIntegration=ge.captureConsoleIntegration,t.dedupeIntegration=me.dedupeIntegration,t.extraErrorDataIntegration=he.extraErrorDataIntegration,t.rewriteFramesIntegration=_e.rewriteFramesIntegration,t.instrumentSupabaseClient=ye.instrumentSupabaseClient,t.supabaseIntegration=ye.supabaseIntegration,t.zodErrorsIntegration=Te.zodErrorsIntegration,t.thirdPartyErrorFilterIntegration=Se.thirdPartyErrorFilterIntegration,t.consoleIntegration=Ee.consoleIntegration,t.featureFlagsIntegration=be.featureFlagsIntegration,t.growthbookIntegration=ve.growthbookIntegration,t.conversationIdIntegration=Ie.conversationIdIntegration,t.profiler=Ae.profiler,t._INTERNAL_getTracingHeadersForFetchRequest=Re._INTERNAL_getTracingHeadersForFetchRequest,t.instrumentFetchRequest=Re.instrumentFetchRequest,t.captureFeedback=Ne.captureFeedback,t._INTERNAL_captureLog=Oe._INTERNAL_captureLog,t._INTERNAL_captureSerializedLog=Oe._INTERNAL_captureSerializedLog,t._INTERNAL_flushLogsBuffer=Oe._INTERNAL_flushLogsBuffer,t.logger=Pe,t.consoleLoggingIntegration=we.consoleLoggingIntegration,t._INTERNAL_captureMetric=Ce._INTERNAL_captureMetric,t._INTERNAL_captureSerializedMetric=Ce._INTERNAL_captureSerializedMetric,t._INTERNAL_flushMetricsBuffer=Ce._INTERNAL_flushMetricsBuffer,t.metrics=Ue,t.createConsolaReporter=Le.createConsolaReporter,t.addVercelAiProcessors=ke.addVercelAiProcessors,t.getProviderMetadataAttributes=ke.getProviderMetadataAttributes,t.getTruncatedJsonString=Me.getTruncatedJsonString,t.shouldEnableTruncation=Me.shouldEnableTruncation,t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE=xe.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE=xe.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t._INTERNAL_cleanupToolCallSpanContext=Be._INTERNAL_cleanupToolCallSpanContext,t._INTERNAL_getSpanContextForToolCallId=Be._INTERNAL_getSpanContextForToolCallId,t._INTERNAL_toolCallSpanContextMap=De.toolCallSpanContextMap,t.instrumentOpenAiClient=je.instrumentOpenAiClient,t.OPENAI_INTEGRATION_NAME=Fe.OPENAI_INTEGRATION_NAME,t.instrumentAnthropicAiClient=Ge.instrumentAnthropicAiClient,t.ANTHROPIC_AI_INTEGRATION_NAME=He.ANTHROPIC_AI_INTEGRATION_NAME,t.instrumentGoogleGenAIClient=We.instrumentGoogleGenAIClient,t.GOOGLE_GENAI_INTEGRATION_NAME=$e.GOOGLE_GENAI_INTEGRATION_NAME,t.createLangChainCallbackHandler=qe.createLangChainCallbackHandler,t._INTERNAL_mergeLangChainCallbackHandler=Ve._INTERNAL_mergeLangChainCallbackHandler,t.LANGCHAIN_INTEGRATION_NAME=ze.LANGCHAIN_INTEGRATION_NAME,t.instrumentCreateReactAgent=Ye.instrumentCreateReactAgent,t.instrumentLangGraph=Ye.instrumentLangGraph,t.instrumentStateGraphCompile=Ye.instrumentStateGraphCompile,t.LANGGRAPH_INTEGRATION_NAME=Ke.LANGGRAPH_INTEGRATION_NAME,t.SpanBuffer=Je.SpanBuffer,t.hasSpanStreamingEnabled=Xe.hasSpanStreamingEnabled,t.spanStreamingIntegration=Qe.spanStreamingIntegration,t._INTERNAL_FLAG_BUFFER_SIZE=Ze._INTERNAL_FLAG_BUFFER_SIZE,t._INTERNAL_MAX_FLAGS_PER_SPAN=Ze._INTERNAL_MAX_FLAGS_PER_SPAN,t._INTERNAL_addFeatureFlagToActiveSpan=Ze._INTERNAL_addFeatureFlagToActiveSpan,t._INTERNAL_copyFlagsFromScopeToEvent=Ze._INTERNAL_copyFlagsFromScopeToEvent,t._INTERNAL_insertFlagToScope=Ze._INTERNAL_insertFlagToScope,t.applyAggregateErrorsToEvent=et.applyAggregateErrorsToEvent,t.getBreadcrumbLogLevelFromHttpStatusCode=tt.getBreadcrumbLogLevelFromHttpStatusCode,t.dsnFromString=nt.dsnFromString,t.dsnToString=nt.dsnToString,t.makeDsn=nt.makeDsn,t.SentryError=rt.SentryError,t.GLOBAL_OBJ=ot.GLOBAL_OBJ,t.addConsoleInstrumentationFilter=at.addConsoleInstrumentationFilter,t.addConsoleInstrumentationHandler=at.addConsoleInstrumentationHandler,t.addFetchEndInstrumentationHandler=it.addFetchEndInstrumentationHandler,t.addFetchInstrumentationHandler=it.addFetchInstrumentationHandler,t.addGlobalErrorInstrumentationHandler=st.addGlobalErrorInstrumentationHandler,t.addGlobalUnhandledRejectionInstrumentationHandler=ct.addGlobalUnhandledRejectionInstrumentationHandler,t.addHandler=ut.addHandler,t.maybeInstrument=ut.maybeInstrument,t.resetInstrumentationHandlers=ut.resetInstrumentationHandlers,t.triggerHandlers=ut.triggerHandlers,t.isDOMError=lt.isDOMError,t.isDOMException=lt.isDOMException,t.isElement=lt.isElement,t.isError=lt.isError,t.isErrorEvent=lt.isErrorEvent,t.isEvent=lt.isEvent,t.isInstanceOf=lt.isInstanceOf,t.isParameterizedString=lt.isParameterizedString,t.isPlainObject=lt.isPlainObject,t.isPrimitive=lt.isPrimitive,t.isRegExp=lt.isRegExp,t.isString=lt.isString,t.isSyntheticEvent=lt.isSyntheticEvent,t.isThenable=lt.isThenable,t.isVueViewModel=lt.isVueViewModel,t.isBrowser=pt.isBrowser,t.CONSOLE_LEVELS=dt.CONSOLE_LEVELS,t.consoleSandbox=dt.consoleSandbox,t.debug=dt.debug,t.originalConsoleMethods=dt.originalConsoleMethods,t.addContextToFrame=ft.addContextToFrame,t.addExceptionMechanism=ft.addExceptionMechanism,t.addExceptionTypeValue=ft.addExceptionTypeValue,t.checkOrSetAlreadyCaught=ft.checkOrSetAlreadyCaught,t.getEventDescription=ft.getEventDescription,t.isAlreadyCaptured=ft.isAlreadyCaptured,t.parseSemver=ft.parseSemver,t.uuid4=ft.uuid4,t.normalize=gt.normalize,t.normalizeToSize=gt.normalizeToSize,t.normalizeUrlToBase=gt.normalizeUrlToBase,t.setNormalizeStringifier=gt.setN
2ormalizeStringifier,t.setNormalizationDepthOverrideHint=mt.setNormalizationDepthOverrideHint,t.setSkipNormalizationHint=mt.setSkipNormalizationHint,t.addNonEnumerableProperty=ht.addNonEnumerableProperty,t.convertToPlainObject=ht.convertToPlainObject,t.dropUndefinedKeys=ht.dropUndefinedKeys,t.extractExceptionKeysForMessage=ht.extractExceptionKeysForMessage,t.fill=ht.fill,t.getOriginalFunction=ht.getOriginalFunction,t.markFunctionWrapped=ht.markFunctionWrapped,t.objectify=ht.objectify,t.basename=_t.basename,t.dirname=_t.dirname,t.isAbsolute=_t.isAbsolute,t.join=_t.join,t.normalizePath=_t.normalizePath,t.relative=_t.relative,t.resolve=_t.resolve,t.SENTRY_BUFFER_FULL_ERROR=yt.SENTRY_BUFFER_FULL_ERROR,t.makePromiseBuffer=yt.makePromiseBuffer,t.severityLevelFromString=Tt.severityLevelFromString,t.replaceExports=St.replaceExports,t.UNKNOWN_FUNCTION=Et.UNKNOWN_FUNCTION,t.createStackParser=Et.createStackParser,t.getFramesFromEvent=Et.getFramesFromEvent,t.getFunctionName=Et.getFunctionName,t.stackParserFromStackParserOptions=Et.stackParserFromStackParserOptions,t.stripSentryFramesAndReverse=Et.stripSentryFramesAndReverse,t.isMatchingPattern=bt.isMatchingPattern,t.safeJoin=bt.safeJoin,t.snipLine=bt.snipLine,t.stringMatchesSomePattern=bt.stringMatchesSomePattern,t.truncate=bt.truncate,t.isNativeFunction=vt.isNativeFunction,t.supportsDOMError=vt.supportsDOMError,t.supportsDOMException=vt.supportsDOMException,t.supportsErrorEvent=vt.supportsErrorEvent,t.supportsFetch=vt.supportsFetch,t.supportsHistory=vt.supportsHistory,t.supportsNativeFetch=vt.supportsNativeFetch,t.supportsReferrerPolicy=vt.supportsReferrerPolicy,t.supportsReportingObserver=vt.supportsReportingObserver,t.SyncPromise=It.SyncPromise,t.rejectedSyncPromise=It.rejectedSyncPromise,t.resolvedSyncPromise=It.resolvedSyncPromise,t.browserPerformanceTimeOrigin=At.browserPerformanceTimeOrigin,t.dateTimestampInSeconds=At.dateTimestampInSeconds,t.timestampInSeconds=At.timestampInSeconds,t.TRACEPARENT_REGEXP=Rt.TRACEPARENT_REGEXP,t.extractTraceparentData=Rt.extractTraceparentData,t.generateSentryTraceHeader=Rt.generateSentryTraceHeader,t.generateTraceparentHeader=Rt.generateTraceparentHeader,t.propagationContextFromHeaders=Rt.propagationContextFromHeaders,t.shouldContinueTrace=Rt.shouldContinueTrace,t.getSDKSource=Nt.getSDKSource,t.isBrowserBundle=Nt.isBrowserBundle,t.addItemToEnvelope=Ot.addItemToEnvelope,t.createAttachmentEnvelopeItem=Ot.createAttachmentEnvelopeItem,t.createEnvelope=Ot.createEnvelope,t.createEventEnvelopeHeaders=Ot.createEventEnvelopeHeaders,t.createSpanEnvelopeItem=Ot.createSpanEnvelopeItem,t.envelopeContainsItemType=Ot.envelopeContainsItemType,t.envelopeItemTypeToDataCategory=Ot.envelopeItemTypeToDataCategory,t.forEachEnvelopeItem=Ot.forEachEnvelopeItem,t.getSdkMetadataForEnvelopeHeader=Ot.getSdkMetadataForEnvelopeHeader,t.parseEnvelope=Ot.parseEnvelope,t.serializeEnvelope=Ot.serializeEnvelope,t.createClientReportEnvelope=Pt.createClientReportEnvelope,t.DEFAULT_RETRY_AFTER=wt.DEFAULT_RETRY_AFTER,t.disabledUntil=wt.disabledUntil,t.isRateLimited=wt.isRateLimited,t.parseRetryAfterHeader=wt.parseRetryAfterHeader,t.updateRateLimits=wt.updateRateLimits,t.MAX_BAGGAGE_STRING_LENGTH=Ct.MAX_BAGGAGE_STRING_LENGTH,t.SENTRY_BAGGAGE_KEY_PREFIX=Ct.SENTRY_BAGGAGE_KEY_PREFIX,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=Ct.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,t.baggageHeaderToDynamicSamplingContext=Ct.baggageHeaderToDynamicSamplingContext,t.dynamicSamplingContextToSentryBaggageHeader=Ct.dynamicSamplingContextToSentryBaggageHeader,t.mergeBaggageHeaders=Ct.mergeBaggageHeaders,t.objectToBaggageHeader=Ct.objectToBaggageHeader,t.parseBaggageHeader=Ct.parseBaggageHeader,t.getHttpSpanDetail
2sFromUrlObject=Ut.getHttpSpanDetailsFromUrlObject,t.getSanitizedUrlString=Ut.getSanitizedUrlString,t.getSanitizedUrlStringFromUrlObject=Ut.getSanitizedUrlStringFromUrlObject,t.isURLObjectRelative=Ut.isURLObjectRelative,t.parseStringToURLObject=Ut.parseStringToURLObject,t.parseUrl=Ut.parseUrl,t.stripDataUrlContent=Ut.stripDataUrlContent,t.stripUrlQueryAndFragment=Ut.stripUrlQueryAndFragment,t._INTERNAL_enhanceErrorWithSentryInfo=Lt._enhanceErrorWithSentryInfo,t.eventFromMessage=Lt.eventFromMessage,t.eventFromUnknownInput=Lt.eventFromUnknownInput,t.exceptionFromError=Lt.exceptionFromError,t.parseStackFrames=Lt.parseStackFrames,t.LRUMap=kt.LRUMap,t.generateSpanId=Mt.generateSpanId,t.generateTraceId=Mt.generateTraceId,t.SDK_VERSION=xt.SDK_VERSION,t.getDebugImagesForResources=Bt.getDebugImagesForResources,t.getFilenameToDebugIdMap=Bt.getFilenameToDebugIdMap,t.getFilenameToMetadataMap=Dt.getFilenameToMetadataMap,t.escapeStringForRegex=jt.escapeStringForRegex,t._INTERNAL_safeDateNow=Ft.safeDateNow,t._INTERNAL_safeMathRandom=Ft.safeMathRandom,t._INTERNAL_withRandomSafeContext=Ft.withRandomSafeContext,t.ServerRuntimeClient=Gt.ServerRuntimeClient,t.trpcMiddleware=Ht.trpcMiddleware,t.wrapMcpServerWithSentry=Wt.wrapMcpServerWithSentry,t.isNodeEnv=$t.isNodeEnv,t.loadModule=$t.loadModule,t.filenameIsInApp=qt.filenameIsInApp,t.node=qt.node,t.nodeStackLineParser=qt.nodeStackLineParser,t.vercelWaitUntil=Vt.vercelWaitUntil,t.flushIfServerless=zt.flushIfServerless,t.callFrameToStackFrame=Yt.callFrameToStackFrame,t.watchdogTimer=Yt.watchdogTimer,t._INTERNAL_safeUnref=Kt.safeUnref,t.expressErrorHandler=Jt.expressErrorHandler,t.patchExpressModule=Jt.patchExpressModule,t.setupExpressErrorHandler=Jt.setupExpressErrorHandler,t._INTERNAL_sanitizeSqlQuery=Xt._sanitizeSqlQuery,t.instrumentPostgresJsSql=Xt.instrumentPostgresJsSql,t._INTERNAL_getSqlQuerySummary=Qt.getSqlQuerySummary,t.patchHttpModuleClient=Zt.patchHttpModuleClient,t.getHttpClientSubscriptions=en.getHttpClientSubscriptions,t.getHttpServerSubscriptions=tn.getHttpServerSubscriptions,t.isStaticAssetRequest=tn.isStaticAssetRequest,t.recordRequestSession=nn.recordRequestSession,t.addOutgoingRequestBreadcrumb=rn.addOutgoingRequestBreadcrumb,t.getRequestOptions=on.getRequestOptions,t.getRequestUrl=on.getRequestUrl,t.getRequestUrlFromClientRequest=on.getRequestUrlFromClientRequest,t.getRequestUrlObject=on.getRequestUrlObject,t.HTTP_ON_CLIENT_REQUEST=an.HTTP_ON_CLIENT_REQUEST,t.HTTP_ON_SERVER_REQUEST=an.HTTP_ON_SERVER_REQUEST,t.getComponentName=sn.getComponentName,t.getLocationHref=sn.getLocationHref,t.htmlTreeAsString=sn.htmlTreeAsString,t.instrumentLangChainEmbeddings=cn.instrumentLangChainEmbeddings},83389:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(96159),i=n(79721),s=n(73969),c=n(91535),u=new Set([]);function l(){"console"in s.GLOBAL_OBJ&&o.CONSOLE_LEVELS.forEach(function(e){e in s.GLOBAL_OBJ.console&&a.fill(s.GLOBAL_OBJ.console,e,function(t){return o.originalConsoleMethods[e]=t,function(...t){const n=t[0],a=o.originalConsoleMethods[e],l=u.size&&"string"==typeof n&&i.stringMatchesSomePattern(n,u);l||c.triggerHandlers("console",{args:t,level:e}),(!l||r.DEBUG_BUILD&&o.debug.isEnabled())&&a?.apply(s.GLOBAL_OBJ.console,t)}})})}t.addConsoleInstrumentationFilter=function(e){for(const t of e)u.add(t);return()=>{for(const t of e)u.delete(t)}},t.addConsoleInstrumentationHandler=function(e){const t="console",n=c.addHandler(t,e);return c.maybeInstrument(t,l),n}},39048:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(88532),a=n(96159),i=n(21148),s=n(26869),c=n(73969),u=n(91535);function l(e,t=!1){t&&!i.supportsNativeFetch()||a.fill(c.GLOBAL_OBJ,"fetch",function(t){return function(...n){const i=new Error,{method:l,url:p}=g(n),d={args:n,fetchData:{method:l,url:p},startTimestamp:1e3*s.timestampInSeconds(),virtualError:i,headers:m(n)};return e||u.triggerHandlers("fetch",{...d}),t.apply(c.GLOBAL_OBJ,n).then(async t=>(e?e(t):u.triggerHandlers("fetch",{...d,endTimestamp:1e3*s.timestampInSeconds(),response:t}),t),e=>{u.triggerHandlers("fetch",{...d,endTimestamp:1e3*s.timestampInSeconds(),error:e}),o.isError(e)&&void 0===e.stack&&(e.stack=i.stack,a.addNonEnumerableProperty(e,"framesToPop",1));const t=r.getClient(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(d.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:a.addNonEnumerableProperty(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}function p(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4);let a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(e),o&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}(t,()=>{u.triggerHandlers("fetch-body-resolved",{endTimestamp:1e3*s.timestampInSeconds(),response:e})})}function d(e,t){return!!e&&"object"==typeof e&&!!e[t]}function f(e){return"string"==typeof e?e:e?d(e,"url")?e.url:e.toString?e.toString():"":""}function g(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:f(t),method:d(n,"method")?String(n.method).toUpperCase():o.isRequest(t)&&d(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:f(t),method:d(t,"method")?String(t.method).toUpperCase():"GET"}}function m(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(o.isRequest(t))return new Headers(t.headers)}catch{}}t.addFetchEndInstrumentationHandler=function(e){const t="fetch-body-resolved",n=u.addHandler(t,e);return u.maybeInstrument(t,()=>l(p)),n},t.addFetchInstrumentationHandler=function(e,t){const n="fetch",r=u.addHandler(n,e);return u.maybeInstrument(n,()=>l(void 0,t)),r},t.parseFetchArgs=g},49759:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73969),o=n(91535);let a=null;function i(){a=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(e,t,n,r,i){const s={column:r,error:i,line:n,msg:e,url:t};return o.triggerHandlers("error",s),!!a&&a.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}t.addGlobalErrorInstrumentationHandler=function(e){const t="error";o.addHandler(t,e),o.maybeInstrument(t,i)}},53551:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73969),o=n(91535);let a=null;function i(){a=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return o.triggerHandlers("unhandledrejection",t),!a||a.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}t.addGlobalUnhandledRejectionInstrumentationHandler=function(e){const t="unhandledrejection";o.addHandler(t,e),o.maybeInstrument(t,i)}},91535:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(70561),i={},s={};t.addHandler=function(e,t){return i[e]=i[e]||[],i[e].push(t),()=>{const n=i[e];if(n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},t.maybeInstrument=function(e,t){if(!s[e]){s[e]=!0;try{t()}catch(n){r.DEBUG_BUILD&&o.debug.error(`Error while instrumenting ${e}`,n)}}},t.resetInstrumentationHandlers=function(){Object.keys(i).forEac
2h(e=>{i[e]=void 0})},t.triggerHandlers=function(e,t){const n=e&&i[e];if(n)for(const i of n)try{i(t)}catch(s){r.DEBUG_BUILD&&o.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${a.getFunctionName(i)}\nError:`,s)}}},82430:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(68974),a=n(85110),i=[];function s(e,t,n){if(n[t.name])o.DEBUG_BUILD&&a.debug.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,i.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),i.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{const r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),o.DEBUG_BUILD&&a.debug.log(`Integration installed: ${t.name}`)}}t.addIntegration=function(e){const t=r.getClient();t?t.addIntegration(e):o.DEBUG_BUILD&&a.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)},t.afterSetupIntegrations=function(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)},t.defineIntegration=function(e){return e},t.extendIntegration=function(e,t){const n={...e,...t};for(const r in t){const o=e[r],a=t[r];if("function"==typeof o&&"function"==typeof a){const e=new Proxy(o,{apply:(e,t,n)=>(Reflect.apply(e,t,n),Reflect.apply(a,t,n))});n[r]=e}}return n},t.getIntegrationsToSetup=function(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r)},t.installedIntegrations=i,t.setupIntegration=s,t.setupIntegrations=function(e,t){const n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&s(e,t,n)}),n}},75003:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(79183),a=n(83389),i=n(82430),s=n(85110),c=n(96940),u=n(89499),l=n(79721),p=n(73969),d=i.defineIntegration((e={})=>{const t=e.levels||s.CONSOLE_LEVELS,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in p.GLOBAL_OBJ&&a.addConsoleInstrumentationHandler(({args:a,level:i})=>{r.getClient()===e&&t.includes(i)&&function(e,t,n){const a=u.severityLevelFromString(t),i=new Error,s={level:u.severityLevelFromString(t),extra:{arguments:e}};r.withScope(r=>{if(r.addEventProcessor(e=>(e.logger="console",c.addExceptionMechanism(e,{handled:n,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){const t=`Assertion failed: ${l.safeJoin(e.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",e.slice(1)),r.captureMessage(t,a,{captureContext:s,syntheticException:i})}return}const u=e.find(e=>e instanceof Error);if(u)return void o.captureException(u,s);const p=l.safeJoin(e," ");r.captureMessage(p,a,{captureContext:s,syntheticException:i})})}(a,i,n)})}}});t.captureConsoleIntegration=d},19575:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(97373),a=n(59075),i=n(88532),s=n(88585),c=["trace","debug","info","warn","error","fatal"];const u={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},l={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};t.createConsolaReporter=function(e={}){const t=new Set(e.levels??c),n=e.client;return{log(e){const{type:c,level:p,message:d,args:f,tag:g,date:m,...h}=e,_=n||r.getClient();if(!_)return;const y=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){const t=u[e];if(t)return t}if("number"==typeof t){const e=l[t];if(e)return e}return"info"}(c,p);if(!t.has(y))return;const{normalizeDepth:T=3,normalizeMaxBreadth:S=1e3}=_.getOptions(),E={};for(const[t,n]of Object.entries(h))E[t]=s.normalize(n,T,S);E["sentry.origin"]="auto.log.consola",g&&(E["consola.tag"]=g),c&&(E["consola.type"]=c),null!=p&&"number"==typeof p&&(E["consola.level"]=p);const b=function(e,t,n){const{message:r,attributes:o,messageTemplate:i,messageParameters:c}=e,u={};if(i&&c){const e=a.createConsoleTemplateAttributes(i,c);for(const[r,o]of Object.entries(e))u[r]=r.startsWith("sentry.message.parameter.")?
2s.normalize(o,t,n):o}else c&&c.length>0&&c.forEach((e,r)=>{u[`sentry.message.parameter.${r}`]=s.normalize(e,t,n)});return{message:r,attributes:{...s.normalize(o,t,n),...u}}}(function(e,t,n){if(!e?.length)return{message:""};const r=a.formatConsoleArgs(e,t,n),o=e[0];if(i.isPlainObject(o)){const t="string"==typeof e[1]?2:1;return{message:r,attributes:o,messageParameters:e.slice(t)}}{const t=e.slice(1),n=t.length>0&&"string"==typeof o&&!a.hasConsoleSubstitutions(o);return{message:r,messageTemplate:n?o:void 0,messageParameters:n?t:void 0}}}(f,T,S),T,S);b?.attributes&&Object.assign(E,b.attributes),o._INTERNAL_captureLog({level:y,message:b?.message||d||f&&a.formatConsoleArgs(f,T,S)||"",attributes:E})}}}},14867:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(87990),o=n(49564),a=n(83389),i=n(82430),s=n(85110),c=n(89499),u=n(79721),l=n(73969),p=i.defineIntegration((e={})=>{const t=new Set(e.levels||s.CONSOLE_LEVELS);return{name:"Console",setup(n){const r=a.addConsoleInstrumentationHandler(({args:e,level:r})=>{o.getClient()===n&&t.has(r)&&d(r,e)});if(n.registerCleanup(r),e.filter){const t=a.addConsoleInstrumentationFilter(e.filter);n.registerCleanup(t)}}}});function d(e,t){const n={category:"console",data:{arguments:t,logger:"console"},level:c.severityLevelFromString(e),message:f(t)};if("assert"===e){if(!1!==t[0])return;{const e=t.slice(1);n.message=e.length>0?`Assertion failed: ${f(e)}`:"Assertion failed",n.data.arguments=e}}r.addBreadcrumb(n,{input:t,level:e})}function f(e){return"util"in l.GLOBAL_OBJ&&"function"==typeof l.GLOBAL_OBJ.util.format?l.GLOBAL_OBJ.util.format(...e):u.safeJoin(e," ")}t.addConsoleBreadcrumb=d,t.consoleIntegration=p},94966:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(82430),a=n(52751),i=n(54583),s=o.defineIntegration(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=r.getCurrentScope().getScopeData(),n=r.getIsolationScope().getScopeData(),o=t.conversationId||n.conversationId;if(o){const{op:t,data:n,description:r}=i.spanToJSON(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!r?.startsWith("ai."))return;e.setAttribute(a.GEN_AI_CONVERSATION_ID_ATTRIBUTE,o)}})}}));t.conversationIdIntegration=s},431:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(82430),a=n(85110),i=n(70561),s=o.defineIntegration(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(c(t,e))return r.DEBUG_BUILD&&a.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function c(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!l(e,t))return!1;if(!u(e,t))return!1;return!0}(e,t)||!!function(e,t){const n=p(t),r=p(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!l(e,t))return!1;if(!u(e,t))return!1;return!0}(e,t))}function u(e,t){let n=i.getFramesFromEvent(e),r=i.getFramesFromEvent(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const e=r[o],t=n[o];if(e.filename!==t.filename||e.lineno!==t.lineno||e.colno!==t.colno||e.function!==t.function)return!1}return!0}function l(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 p(e){return e.exception?.values?.[0]}t._shouldDropEvent=c,t.dedupeIntegration=s},51179:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(82430),a=n(85110),i=n(27389),s=n(96940),c=n(79721),u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],l=o.defineIntegration((e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=d(e,r)},processEvent(n,o,u){if(!t){const n=u.getOptions();t=d(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;
2return!!n&&c.stringMatchesSomePattern(n,t)}(e,t.ignoreTransactions))return r.DEBUG_BUILD&&a.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${s.getEventDescription(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return i.getPossibleEventMessages(e).some(e=>c.stringMatchesSomePattern(e,t))}(e,t.ignoreErrors))return r.DEBUG_BUILD&&a.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${s.getEventDescription(e)}`),!0;if(function(e){if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)}(e))return r.DEBUG_BUILD&&a.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${s.getEventDescription(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=f(e);return!!n&&c.stringMatchesSomePattern(n,t)}(e,t.denyUrls))return r.DEBUG_BUILD&&a.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${s.getEventDescription(e)}.\nUrl: ${f(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=f(e);return!n||c.stringMatchesSomePattern(n,t)}(e,t.allowUrls))return r.DEBUG_BUILD&&a.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${s.getEventDescription(e)}.\nUrl: ${f(e)}`),!0}return!1}(n,t)?null:n}}}),p=o.defineIntegration((e={})=>({...l(e),name:"InboundFilters"}));function d(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:u],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function f(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return r.DEBUG_BUILD&&a.debug.error(`Cannot extract url for event ${s.getEventDescription(e)}`),null}}t.eventFiltersIntegration=l,t.inboundFiltersIntegration=p},56953:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(85110),o=n(79183),a=n(68974),i=n(14036),s=n(96159),c=n(73855),u=n(89058),l=n(29057);let p=!1;function d(e){return function(t,n,r,a){u.setSDKProcessingMetadata(n);if((e?.shouldHandleError||i.defaultShouldHandleError)(t)){const e=o.captureException(t,{mechanism:{type:"auto.middleware.express",handled:!1}});r.sentry=e}a(t)}}t.expressErrorHandler=d,t.patchExpressModule=function(e,t){let n,o;if(!t&&e.express){const{express:t,...i}=e;o=t,n=()=>i,p||(p=!0,a.DEBUG_BUILD&&r.debug.warn("[Express] `patchExpressModule(options)` is deprecated. Use `patchExpressModule(moduleExports, getOptions)` instead."))}else{if("function"!=typeof t)throw new TypeError("`patchExpressModule(moduleExports, getOptions)` requires a `getOptions` callback");n=t,o=e}const u=l.getDefaultExport(o),d=i.isExpressWithRouterPrototype(u)?u.Router.prototype:i.isExpressWithoutRouterPrototype(u)?u.Router:void 0;if(!d)throw new TypeError("no valid Express route function to instrument");const f=d.route;try{s.wrapMethod(d,"route",function(...e){const t=f.apply(this,e),r=this.stack[this.stack.length-1];return c.patchLayer(n,r,i.getLayerPath(e)),t})}catch(_){a.DEBUG_BUILD&&r.debug.error("Failed to patch express route method:",_)}const g=d.use;try{s.wrapMethod(d,"use",function(...e){const t=g.apply(this,e),r=this.stack[this.stack.length-1];return r?(c.patchLayer(n,r,i.getLayerPath(e)),t):t})}catch(_){a.DEBUG_BUILD&&r.debug.error("Failed to patch express use method:",_)}const{application:m}=u,h=m.use;try{s.wrapMethod(m,"use",function(...e){const t=h.apply(this,e),r=i.isExpressWithRouterPrototype(u)?this.router:this._router;if(r){const t=r.stack[r.stack.length-1];t&&c.patchLayer(n,t,i.getLayerPath(e))}return t})}catch(_){a.DEBUG_BUILD&&r.debug.error("Failed to patch express application.use method:",_)}return u},t.setupExpressErrorHandler=function(e,t){e.use(function(e,t,n){u.setSDKProcessingMetadata(e),n()}),e.use(d(t))}},73855:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(52751),a=n(85110),i=n(54583),s=n(15363),c=n(96159),u=n(49564),l=n(55908),p=n(10096),d=n(66568),f=n(14036),g=n(37320),m=n(89058);t.patchLayer=function(e,t,n){if(!t?.handle)return;const h=t,_=h.handle;if(!c.getOriginalFunction(_)&&4!==_.length){for(const e in _)e in y||Object.defineProperty(y,e,{get(){return _[e]},set(t){_[e]=t}});c.markFunctionWrapped(y,_),Object.defineProperty(h,"handle",{enumerable:!0,configurable:!0,writable:!0,value:y})}function y(t,c,...y){const T=e();m.setSDKProcessingMetadata(t);const S=i.getActiveSpan();if(!S)return _.apply(this,[t,c,...y]);n&&p.storeLayer(t,n);const E=p.getStoredLayers(t),b=!!n,v=f.getConstructedRoute(t),I=f.getActualMatchedRoute(t,v);T.onRouteResolved?.(I);const A=f.getLayerMetadata(v,h,n),R=A.attributes[d.ATTR_EXPRESS_NAME],N=A.attributes[d.ATTR_EXPRESS_TYPE],O=Object.assign(A.attributes,{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.express",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${N}.express`});if(I&&(O[d.ATTR_HTTP_ROUTE]=I),f.isLayerIgnored(A.attributes[d.ATTR_EXPRESS_NAME],N,T))return b&&E.pop(),_.apply(this,[t,c,...y]);const P=u.getIsolationScope();if(P!==g.getDefaultIsolationScope()){if("request_handler"===N){const e=t.method?t.method.toUpperCase():"GET";P.setTransactionName(`${e} ${v}`)}}else r.DEBUG_BUILD&&a.debug.warn("Isolation scope is still default isolation scope - skipping setting transactionName");return l.startSpanManual({name:R,attributes:O},e=>{let n=!1;A.attributes[d.ATTR_EXPRESS_TYPE]===d.ExpressLayerType_ROUTER&&(e.end(),n=!0);const r=()=>{n||(n=!0,e.end())};for(let a=0;a<y.length;a++){const o=y[a];if("function"==typeof o){y[a]=function(...a){const i=a[0],u=!!i&&"route"!==i&&"router"!==i;if(!n&&u){const[t,n]=f.asErrorAndMessage(i);e.setStatus({code:s.SPAN_STATUS_ERROR,message:n})}return n||(n=!0,c.removeListener("finish",r),e.end()),t.route&&u||!b||E.pop(),l.withActiveSpan(S,()=>o.apply(this,a))};break}}try{return _.apply(this,[t,c,...y])}catch(o){const[t,n]=f.asErrorAndMessage(o);throw e.setStatus({code:s.SPAN_STATUS_ERROR,message:n}),o}finally{n||c.once("finish",r)}})}}},10096:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=new WeakMap;t.getStoredLayers=e=>{let t=n.get(e);return t||(t=[],n.set(e,t)),t},t.storeLayer=(e,t)=>{const r=n.get(e);r?r.push(t):n.set(e,[t])}},89058:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(56011);t.setSDKProcessingMetadata=function(e){const t=r.getIsolationScope()?.getScopeData()?.sdkProcessingMetadata;if(!t?.normalizedRequest){const t=o.httpRequestToRequestData(e);r.getIsolationScope().setSDKProcessingMetadata({normalizedRequest:t})}}},66568:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.ATTR_EXPRESS_NAME="express.name",t.ATTR_EXPRESS_TYPE="express.type",t.ATTR_HTTP_ROUTE="http.route",t.ExpressLayerType_MIDDLEWARE="middleware",t.ExpressLayerType_REQUEST_HANDLER="request_handler",t.ExpressLayerType_ROUTER="router"},14036:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(10096),o=n(66568),a=n(79721);function i(e){return e.includes(":")||e.includes("*")}const s=(e,t)=>{const n=Array.isArray(t.handle?.stack)?t.handle?.stack?.[0]:void 0;return n?.route?.path?`${e}${n.route.path}`:n&&Array.isArray(n?.handle?.stack)?s(e,n):e};const c=e=>"string"==typeof e?e:e instanceof RegExp||"number"==typeof e?String(e):void 0,u=e=>l(e?.Router?.prototype),l=e=>("object"==typeof e||"function"==typeof e)&&!!e&&"route"in e&&"function"==typeof e.route;t.asErrorAndMessage=e=>e instanceof Error?[e,e.message]:[String(e),String(e)],t.defaultShouldHandleError=function(e){return function(e){const t=e.status||e.statusCode||e.status_code||e.output?.statusCode;return t?parseInt(t,10):500}(e)>=500},t.getActualMatchedRoute=function(e,t){const n=r.getStoredLayers(e);if(0===n.length)return;if(n.every(e=>"/"===e))return"/"===e.originalUrl?"/":void 0;if("*"===t)return t;if(t.includes("/")&&(t.includes(",")||t.includes("\\")||t.includes("*")||t.includes("[")))return t;const o=t.startsWith("/")?t:`/${t}`;return o.length>
20&&(e.originalUrl===o||e.originalUrl.startsWith(o)||i(o))?o:void 0},t.getConstructedRoute=function(e){const t=r.getStoredLayers(e);let n="";for(const r of t)"/"!==r&&"/*"!==r&&(n+=!n||n.endsWith("/")?r:`/${r}`);return n.replace(/\/{2,}/g,"/")},t.getLayerMetadata=(e,t,n)=>{if("router"===t.name){const r=s("",t),a=r||(n||e||"/");return{attributes:{[o.ATTR_EXPRESS_NAME]:a,[o.ATTR_EXPRESS_TYPE]:o.ExpressLayerType_ROUTER},name:`router - ${a}`}}return"bound dispatch"===t.name||"handle"===t.name?{attributes:{[o.ATTR_EXPRESS_NAME]:(e||n)??"request handler",[o.ATTR_EXPRESS_TYPE]:o.ExpressLayerType_REQUEST_HANDLER},name:"request handler"+(t.path?` - ${e||n}`:"")}:{attributes:{[o.ATTR_EXPRESS_NAME]:t.name,[o.ATTR_EXPRESS_TYPE]:o.ExpressLayerType_MIDDLEWARE},name:`middleware - ${t.name}`}},t.getLayerPath=e=>{const t=e[0];return Array.isArray(t)?t.map(e=>c(e)||"").join(","):c(t)},t.getRouterPath=s,t.isExpressWithRouterPrototype=u,t.isExpressWithoutRouterPrototype=e=>l(e.Router)&&!u(e),t.isLayerIgnored=(e,t,n)=>{if(Array.isArray(n?.ignoreLayersType)&&n?.ignoreLayersType?.includes(t))return!0;if(!Array.isArray(n?.ignoreLayers))return!1;try{return a.stringMatchesSomePattern(e,n.ignoreLayers,!0)}catch{}return!1},t.isRoutePattern=i},41312:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(82430),a=n(85110),i=n(88532),s=n(88585),c=n(77765),u=n(79721),l=o.defineIntegration((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:a}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!i.isError(t.originalException))return e;const a=t.originalException.name||t.originalException.constructor.name,u=p(t.originalException,r,o);if(u){const t={...e.contexts},r=s.normalize(u,n);return i.isPlainObject(r)&&(c.setSkipNormalizationHint(r),t[a]=r),{...e,contexts:t}}return e}(e,r,t,n,a)}}});function p(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const a=e[t];o[t]=i.isError(a)||"string"==typeof a?n?u.truncate(`${a}`,n):`${a}`:a}if(t&&void 0!==e.cause)if(i.isError(e.cause)){const t=e.cause.name||e.cause.constructor.name;o.cause={[t]:p(e.cause,!1,n)}}else o.cause=e.cause;if("function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=i.isError(n)?n.toString():n}}return o}catch(o){r.DEBUG_BUILD&&a.debug.error("Unable to extract extra data from the Error object:",o)}return null}t.extraErrorDataIntegration=l},70875:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(82430),o=n(83609),a=r.defineIntegration(()=>({name:"FeatureFlags",processEvent(e,t,n){return o._INTERNAL_copyFlagsFromScopeToEvent(e)},addFeatureFlag(e,t){o._INTERNAL_insertFlagToScope(e,t),o._INTERNAL_addFeatureFlagToActiveSpan(e,t)}}));t.featureFlagsIntegration=a},98398:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(82430),o=n(83609),a=n(96159),i=r.defineIntegration(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;"function"==typeof t.isOn&&a.fill(t,"isOn",s),"function"==typeof t.getFeatureValue&&a.fill(t,"getFeatureValue",s)},processEvent(e,t,n){return o._INTERNAL_copyFlagsFromScopeToEvent(e)}}));function s(e){return function(...t){const n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(o._INTERNAL_insertFlagToScope(n,r),o._INTERNAL_addFeatureFlagToActiveSpan(n,r)),r}}t.growthbookIntegration=i},68360:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(82430),a=n(96159);let i;const s=new WeakMap,c=o.defineIntegration(()=>({name:"FunctionToString",setupOnce(){i=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=a.getOriginalFunction(this),n=s.has(r.getClient())&&void 0!==t?t:this;return i.apply(n,e)}}catch{}},setup(e){s.set(e,!0)}}));t.functionToStringIntegration=c},25073:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(87990),o=n(72833),a=n(9635),i=n(36707);t.addOutgoingRequestBreadcrumb=function(e,t){const n=i.getRequestUrlFromClientRequest(e),s=a.parseUrl(n),c=t?.statusCode,u=o.getBreadcrumbLogLevelFromHttpStatusCode(c);r.addBreadcrumb({category:"http",data:{status_code:c,url:a.getSanitizedUrlString(s),"http.method":e.method||"GET",...s.search?{"http.query":s.search}:{},...s.hash?{"http.fragment":s.hash}:{}},type:"http",level:u},{event:"response",request:e,response:t})}},10571:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(29057),o=n(52366),a=n(96159),i=n(31223);function s(e,t={}){const n=r.getDefaultExport(e),c=e;if(n!==e){s(n,t);for(const e of["get","request"]){const t=Object.getOwnPropertyDescriptor(n,e);t&&Object.defineProperty(c,e,t)}return c}return function(e,t){if(!a.getOriginalFunction(e.request)){const{[o.HTTP_ON_CLIENT_REQUEST]:n}=i.getHttpClientSubscriptions({...t,http:e}),r=e.request;a.wrapMethod(e,"request",function(...e){const t=r.apply(this,e);return n({request:t},o.HTTP_ON_CLIENT_REQUEST),t})}}(c,t),function(e){a.getOriginalFunction(e.get)||a.wrapMethod(e,"get",function(t,n,r){const o=e.request.call(this,t,n,r);return o.end(),o})}(c),e}t.patchHttpModuleClient=(e,t={})=>s(e,t)},31223:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(25073),o=n(68974),a=n(85110),i=n(49564),s=n(15363),c=n(51228),u=n(55908),l=n(43807),p=n(5540),d=n(36707),f=n(60134),g=n(52366),m=n(25422);t.getHttpClientSubscriptions=function(e){const t=new l.LRUMap(100);return{[g.HTTP_ON_CLIENT_REQUEST]:n=>{if(!0===i.getCurrentScope().getScopeData().sdkProcessingMetadata[u.SUPPRESS_TRACING_KEY])return;const l=i.getClient()?.getOptions(),{errorMonitor:h="error",spans:_=!l||c.hasSpansEnabled(l),propagateTrace:y=!1,breadcrumbs:T=!0,http:S,https:E,suppressOtelWarning:b=!1}=e,{request:v}=n;if(e.ignoreOutgoingRequests?.(d.getRequestUrlFromClientRequest(v),v))return;let I=!1;function A(e,t){I||(I=!0,r.addOutgoingRequestBreadcrumb(e,t))}if(!_)return T&&((R=v).on(h,()=>A(R,void 0)),R.prependListener("response",e=>{R.listenerCount("response")<=1&&e.resume(),e.on("end",()=>A(R,e)),e.on(h,()=>A(R,e))})),void(y&&f.injectTracePropagationHeaders(v,t));var R;b||(S&&m.doubleWrapWarning(S),E&&m.doubleWrapWarning(E));const N=u.startInactiveSpan(p.getOutgoingRequestSpanData(v));e.outgoingRequestHook?.(N,v),y&&(N.isRecording()?u.withActiveSpan(N,()=>{f.injectTracePropagationHeaders(v,t)}):f.injectTracePropagationHeaders(v,t));let O=!1;function P(e){O||(O=!0,N.setStatus(e),N.end())}const w=()=>P({code:s.SPAN_STATUS_UNSET});v.on("close",w),v.on(h,e=>{o.DEBUG_BUILD&&a.debug.log(g.LOG_PREFIX,"outgoingRequest on request error()",e),T&&A(v,void 0),P({code:s.SPAN_STATUS_ERROR})}),v.prependListener("response",t=>{v.removeListener("close",w),v.listenerCount("response")<=1&&t.resume(),p.setIncomingResponseSpanData(t,N),e.outgoingResponseHook?.(N,t);let n=!1;function r(r){if(!n){n=!0,r&&o.DEBUG_BUILD&&a.debug.log(g.LOG_PREFIX,"outgoingRequest on response error()",r),T&&A(v,t);const i=t.aborted&&!t.complete,c=r||"number"!=typeof t.statusCode||i?{code:s.SPAN_STATUS_ERROR}:s.getSpanStatusFromHttpCode(t.statusCode);e.applyCustomAttributesOnSpan?.(N,v,t),P(c)}}t.on("end",()=>r()),t.on(h,r)})}}}},52366:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.HTTP_ON_CLIENT_REQUEST="http.client.request.created",t.HTTP_ON_SERVER_REQUEST="http.server.request.start",t.LOG_PREFIX="@sentry/instrumentation-http"},25422:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=e=>"function"==typeof e.__unwrap,i="Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation. See: https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/#custom-http-instrumentation";let s=!1;const c=r.DEBUG_BUILD?e=>{s||(a(e.request)||a(e.get))&&(s=!0,o.debug.warn(i))}:()=>{};t.doubleWrapWarning=c,t.warning=i},5540:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(52751),o=n(9635),a=n(36707);function i(e){if(!e)return{};const{remoteAddress:t,remotePort:n}=e;return{"network.peer.address":t,"network.peer.port":n,"net.peer.ip":t,"net.peer.port":n}}function s(e){const{headers:t}=e,n=t["content-length"],r=n?parseInt(String(n),10):-1,o=t["content-encoding"];return r>=0?o&&"identity"!==o?{"http.response_content_length":r}:{"http.response_content_length_uncompressed":r}:{}}t.getOutgoingRequestSpanData=function(e){const t=a.getRequestUrlFromClientRequest(e),[n,i]=o.getHttpSpanDetail
2sFromUrlObject(o.parseStringToURLObject(t),"client","auto.http.client",e),s=e.getHeader("user-agent");return{name:n,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client","otel.kind":"CLIENT","http.url":t,"http.method":e.method,"http.target":e.path||"/","net.peer.name":e.host,"http.host":e.getHeader("host"),...s?{"user_agent.original":s}:{},...i},onlyIfParent:!0}},t.setIncomingResponseSpanData=function(e,t){const{statusCode:n,statusMessage:r,httpVersion:o,socket:a}=e,c="QUIC"!==o?.toUpperCase()?"ip_tcp":"ip_udp";t.setAttributes({"http.response.status_code":n,"network.protocol.version":o,"http.flavor":o,"network.transport":c,"net.transport":c,"http.status_text":r?.toUpperCase(),"http.status_code":n,...s(e),...i(a)})}},36707:function(e,t){function n(e){const t=e.host||"",n=/^(.*):(\d+)$/.exec(t),r=n?n[1]:t,o=e.port??(n?Number(n[2]):void 0);return{method:e.method,port:o,protocol:e.protocol,host:e.host,hostname:r,path:e.path,headers:e.getHeaders()}}function r(e){try{return String(o(e))}catch{return""}}function o(e){const t=e.protocol||"http:",n=e.headers?.host&&String(e.headers?.host)||e.hostname||e.host||"",r=!e.port||80===e.port||443===e.port||/^(.*):(\d+)$/.test(n)?"":`:${e.port}`,o=e.path?e.path:"/",a=`${t}//${n}${r}`;return new URL(o.startsWith("//")?`${a}${o}`:o,a)}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getRequestOptions=n,t.getRequestUrl=r,t.getRequestUrlFromClientRequest=function(e){return String(r(n(e)))},t.getRequestUrlObject=o},60134:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(68974),a=n(85110),i=n(88532),s=n(20647),c=n(78371),u=n(52366),l=n(36707),p=n(5684);t.injectTracePropagationHeaders=function(e,t){const n=l.getRequestUrlFromClientRequest(e),d=r.getClient()?.getOptions(),{tracePropagationTargets:f,propagateTraceparent:g}=d??{};if(!c.shouldPropagateTraceForUrl(n,f,t))return;if(!!e.getHeader("sentry-trace"))return;const m=s.getTraceData({propagateTraceparent:g});if(!m)return;const{"sentry-trace":h,baggage:_,traceparent:y}=m;if(h)try{e.setHeader("sentry-trace",h),o.DEBUG_BUILD&&a.debug.log(u.LOG_PREFIX,"Added sentry-trace header")}catch(T){o.DEBUG_BUILD&&a.debug.error(u.LOG_PREFIX,"Failed to set sentry-trace header:",i.isError(T)?T.message:"Unknown error")}if(y&&!e.getHeader("traceparent"))try{e.setHeader("traceparent",y),o.DEBUG_BUILD&&a.debug.log(u.LOG_PREFIX,"Added traceparent header")}catch(T){o.DEBUG_BUILD&&a.debug.error(u.LOG_PREFIX,"Failed to set traceparent header:",i.isError(T)?T.message:"Unknown error")}if(_){const t=p.mergeBaggageHeaders(e.getHeader("baggage"),_);if(t)try{e.setHeader("baggage",t),o.DEBUG_BUILD&&a.debug.log(u.LOG_PREFIX,"Added baggage header")}catch(T){o.DEBUG_BUILD&&a.debug.error(u.LOG_PREFIX,"Failed to set baggage header:",i.isError(T)?T.message:"Unknown error")}}}},43029:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(85110),o=n(68974),a=n(56011);t.patchRequestToCaptureBody=function(e,t,n,i){let s=0;const c=[];o.DEBUG_BUILD&&r.debug.log(i,"Patching request.on");const u=new WeakMap,l=a.getMaxBodyByteLength(n);try{e.on=e.addListener=new Proxy(e.on,{apply:(e,t,n)=>{const[a,p,...d]=n;if("data"===a){o.DEBUG_BUILD&&r.debug.log(i,`Handling request.on("data") with maximum body size of ${l}b`);const n=new Proxy(p,{apply:(e,t,n)=>{try{const e=n[0],t=Buffer.from(e);s<l?(c.push(t),s+=t.byteLength):o.DEBUG_BUILD&&r.debug.log(i,`Dropping request body chunk because maximum body length of ${l}b is exceeded.`)}catch(a){o.DEBUG_BUILD&&r.debug.error(i,"Encountered error while storing body chunk.")}return Reflect.apply(e,t,n)}});return u.set(p,n),Reflect.apply(e,t,[a,n,...d])}return Reflect.apply(e,t,n)}}),e.off=e.removeListener=new Proxy(e.off,{apply:(e,t,n)=>{const[,r]=n,o=u.get(r);if(o){u.delete(r);const a=n.slice();return a[1]=o,Reflect.apply(e,t,a)}return Reflect.apply(e,t,n)}}),e.on("end",()=>{try{const e=Buffer.concat(c).toString("utf-8");if(e){const n=Buffer.byteLength(e,"utf-8")>l?`${Buffer.from(e).subarray(0,l-3).toString("utf-8")}...`:e;t.setSDKProcessingMetadata({normalizedRequest:{data:n}})}}catch(e){o.DEBUG_BUILD&&r.debug.error(i,"Error building captured request body",e)}})}catch(p){o.DEBUG_BUILD&&r.debug.error(i,"Error patching request to capture body",p)}}},42927:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(85110),o=n(68974),a=n(83031),i=n(41335),s=new WeakMap;t.recordRequestSession=function(e,{requestIsolationScope:t,response:n,sessionFlushingDelayMS:c}){t.setSDKProcessingMetadata({requestSession:{status:"ok"}}),n.once("close",()=>{const n=t.getScopeData().sdkProcessingMetadata.requestSession;if(e&&n){o.DEBUG_BUILD&&r.debug.log(`Recorded request session with status: ${n.status}`);const t=new Date(a.safeDateNow());t.setSeconds(0,0);const u=t.toISOString(),l=s.get(e),p=l?.[u]||{exited:0,crashed:0,errored:0};if(p[{ok:"exited",crashed:"crashed",errored:"errored"}[n.status]]++,l)l[u]=p;else{o.DEBUG_BUILD&&r.debug.log("Opened new request session aggregate.");const t={[u]:p};s.set(e,t);const n=()=>{clearTimeout(l),a(),s.delete(e);const n=Object.entries(t).map(([e,t])=>({started:e,exited:t.exited,errored:t.errored,crashed:t.crashed}));e.sendSession({aggregates:n})},a=e.on("flush",()=>{o.DEBUG_BUILD&&r.debug.log("Sending request session aggregate due to client flush"),n()}),l=setTimeout(()=>{o.DEBUG_BUILD&&r.debug.log("Sending request session aggregate due to flushing schedule"),n()},c);i.safeUnref(l)}}})}},75492:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(52366),o=n(68974),a=n(85110),i=n(49564),s=n(51228),c=n(56011),u=n(43029),l=n(9635),p=n(42927),d=n(58913),f=n(55908),g=n(83031),m=n(52751),h=n(15363),_=n(61204),y="Http.Server",T="Http.SentryServerSpans",S=new WeakMap,E=Symbol.for("sentry_http_server_instrumented");function b(e,t){const n=t.emit;if(n===S.get(t))return;const r=new Proxy(n,{apply(t,n,r){const[s,...m]=r;if("request"!==s)return t.apply(n,r);const h=i.getClient(),[_,T]=m;if(!h||!function(e){return!e[E]&&(e[E]=!0)}(_))return t.apply(n,r);o.DEBUG_BUILD&&a.debug.log(y,"Handling incoming request");const S=i.getIsolationScope().clone();S.setClient(h);const b=_.socket?.remoteAddress,v=_.url||"/",I=c.httpRequestToRequestData(_),{maxRequestBodySize:A="medium",ignoreRequestBody:R,sessions:N=!0,sessionFlushingDelayMS:O=6e4}=e;"none"===A||R?.(v,_)||u.patchRequestToCaptureBody(_,S,A,y),S.setSDKProcessingMetadata({normalizedRequest:I,ipAddress:b});const P=`${(_.method||"GET").toUpperCase()} ${l.stripUrlQueryAndFragment(v)}`;return S.setTransactionName(P),N&&p.recordRequestSession(h,{requestIsolationScope:S,response:T,sessionFlushingDelayMS:O??6e4}),i.withIsolationScope(S,()=>{const o=I.headers?.["sentry-trace"],a=I.headers?.baggage,s=Array.isArray(o)?o[0]:o;return f.continueTrace({sentryTrace:s,baggage:Array.isArray(a)?a[0]:a},()=>{const o=i.getCurrentScope().getPropagationContext();o.propagationSpanId=d.generateSpanId(),s||(o.traceId=d.generateTraceId(),o.sampleRand=g.safeMathRandom()),T.once("close",()=>{S.setContext("response",{status_code:T.statusCode})});const a=e.wrapServerEmitRequest;let c=!1;return a?a(_,T,I,()=>{c=t.apply(n,r)}):c=t.apply(n,r),c})})}});S.set(t,r),t.emit=r}function v(e){const t=l.stripUrlQueryAndFragment(e);return!!t.match(/\.(ico|png|jpg|jpeg|gif|svg|css|js|woff|woff2|ttf|eot|webp|avif)$/)||!!t.match(/^\/(robots\.txt|sitemap\.xml|manifest\.json|browserconfig\.xml)$/)}function I(e){return"1"===e.headers["next-router-prefetch"]}function A(e){const{headers:t}=e,n=t["content-length"],r=n?parseInt(String(n),10):-1,o=t["content-encoding"];return r>=0?o&&"identity"!==o?{"http.request_content_length":r}:{"http.request_content_length_uncompressed":r}:{}}t.getHttpServerSubscriptions=function(e){const t=e.wrapServerEmitRequest,n=function(e){const{wrapServerEmitRequest:t,ignoreIncomingRequests:n,ignoreStaticAssets:r=!0,onSpanCreated:s,errorMonitor:u="error",onSpanEnd:p}=e;return(e,d,g,y)=>{return"undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__?t?t(e,d,g,S):S():y();function S(){const t=i.getIsolationScope().getClient();if(!t)return y();if(function(e,{ignoreStaticAssets:t,ignoreIncomingRequests:n}){const r=e.url,o=e.method?.toUpperCase();if("OPTIONS"===o||"HEAD"===o||!r)return!0;
2if(t&&"GET"===o&&v(r))return!0;if(n?.(r,e))return!0;return!1}(e,{ignoreStaticAssets:r,ignoreIncomingRequests:n}))return o.DEBUG_BUILD&&a.debug.log(T,"Skipping span creation for incoming request",e.url),y();const S=g.url||e.url||"/",E=l.parseStringToURLObject(S),b=E?E.pathname:l.stripUrlQueryAndFragment(S),R=(e.method||"GET").toUpperCase(),N=`${R} ${b}`,O=e.headers,P=O["user-agent"],w=O["x-forwarded-for"],C=e.httpVersion,U=O.host,L=U?.replace(/^(.*)(:[0-9]{1,5})/,"$1")||"localhost",k=S.startsWith("https")?"https":"http",{socket:M}=e,{localAddress:x,localPort:B,remoteAddress:D,remotePort:j}=M??{};return f.startSpanManual({name:N,kind:_.SPAN_KIND.SERVER,attributes:{[m.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.server",[m.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.server",[m.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url","http.route":b,"otel.kind":"SERVER","net.host.ip":x,"net.host.port":B,"net.peer.ip":D,"net.peer.port":j,"sentry.http.prefetch":I(e)||void 0,"http.url":S,"http.method":R,"http.target":E?`${E.pathname}${E.search}`:b,"http.host":U,"net.host.name":L,"http.client_ip":"string"==typeof w?w.split(",")[0]:void 0,"http.user_agent":P,"http.scheme":k,"http.flavor":C,"net.transport":"QUIC"===C?.toUpperCase()?"ip_udp":"ip_tcp",...A(e),...c.httpHeadersToSpanAttributes(g.headers||{},t.getDataCollectionOptions())}},n=>{s?.(n,e,d);let r=!1;function o(o){r||(r=!0,n.setAttributes({"http.status_text":d.statusMessage?.toUpperCase(),"http.response.status_code":d.statusCode,"http.status_code":d.statusCode,...c.httpHeadersToSpanAttributes(c.headersToDict(d.headers),t?.getDataCollectionOptions()??!1,"response")}),n.setStatus(o),p?.(n,e,d),n.end())}d.once("close",()=>{o(h.getSpanStatusFromHttpCode(d.statusCode))}),d.once(u,()=>{const e=h.getSpanStatusFromHttpCode(d.statusCode);o(e.code===h.SPAN_STATUS_ERROR?e:{code:h.SPAN_STATUS_ERROR})}),y()})}}}(e),u={...e,wrapServerEmitRequest(r,o,a,c){const u=i.getClient()?.getOptions();e.spans??(!!u&&s.hasSpansEnabled(u))?n(r,o,a,c):t?t(r,o,a,c):c()}};return{[r.HTTP_ON_SERVER_REQUEST]:e=>{const{server:t}=e;b(u,t)}}},t.instrumentServer=b,t.isStaticAssetRequest=v},92958:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(82430),o=n(90153),a=n(93395),i=r.defineIntegration((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){const s=i.getOptions();o.applyAggregateErrorsToEvent(a.exceptionFromError,s.stackParser,n,t,e,r)}}});t.linkedErrorsIntegration=i},65870:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9635),o=n(2230),a=n(6332);function i(e,t,n){const a={};switch(e){case"notifications/cancelled":t?.requestId&&(a["mcp.cancelled.request_id"]=String(t.requestId)),t?.reason&&(a["mcp.cancelled.reason"]=String(t.reason));break;case"notifications/message":t?.level&&(a[o.MCP_LOGGING_LEVEL_ATTRIBUTE]=String(t.level)),t?.logger&&(a[o.MCP_LOGGING_LOGGE
2R_ATTRIBUTE]=String(t.logger)),void 0!==t?.data&&(a[o.MCP_LOGGING_DATA_TYPE_ATTRIBUTE]=typeof t.data,n&&(a[o.MCP_LOGGING_MESSAGE_ATTRIBUTE]="string"==typeof(i=t.data)?i:JSON.stringify(i)));break;case"notifications/progress":t?.progressToken&&(a["mcp.progress.token"]=String(t.progressToken)),"number"==typeof t?.progress&&(a["mcp.progress.current"]=t.progress),"number"==typeof t?.total&&(a["mcp.progress.total"]=t.total,"number"==typeof t?.progress&&(a["mcp.progress.percentage"]=t.progress/t.total*100)),t?.message&&(a["mcp.progress.message"]=String(t.message));break;case"notifications/resources/updated":if(t?.uri){a[o.MCP_RESOURCE_URI_ATTRIBUTE]=String(t.uri);const e=r.parseStringToURLObject(String(t.uri));e&&!r.isURLObjectRelative(e)&&(a["mcp.resource.protocol"]=e.protocol.replace(":",""))}break;case"notifications/initialized":a["mcp.lifecycle.phase"]="initialization_complete",a["mcp.protocol.ready"]=1}var i;return a}t.buildTypeSpecificAttributes=function(e,t,n,r){if("request"===e){const e=t,i=a.extractTargetInfo(e.method,n||{});return{...void 0!==e.id&&{[o.MCP_REQUEST_ID_ATTRIBUTE]:String(e.id)},...i.attributes,...r?a.getRequestArguments(e.method,n||{}):{}}}return i(t.method,n||{},r)},t.getNotificationAttributes=i},2230:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.CLIENT_ADDRESS_ATTRIBUTE="client.address",t.CLIENT_PORT_ATTRIBUTE="client.port",t.MCP_FUNCTION_ORIGIN_VALUE="auto.function.mcp_server",t.MCP_LOGGING_DATA_TYPE_ATTRIBUTE="mcp.logging.data_type",t.MCP_LOGGING_LEVEL_ATTRIBUTE="mcp.logging.level",t.MCP_LOGGING_LOGGE
2R_ATTRIBUTE="mcp.logging.logger",t.MCP_LOGGING_MESSAGE_ATTRIBUTE="mcp.logging.message",t.MCP_METHOD_NAME_ATTRIBUTE="mcp.method.name",t.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE="mcp.notification.client_to_server",t.MCP_NOTIFICATION_ORIGIN_VALUE="auto.mcp.notification",t.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE="mcp.notification.server_to_client",t.MCP_PROMPT_NAME_ATTRIBUTE="mcp.prompt.name",t.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE="mcp.prompt.result.description",t.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE="mcp.prompt.result.message_count",t.MCP_PROTOCOL_VERSION_ATTRIBUTE="mcp.protocol.version",t.MCP_REQUEST_ARGUMENT="mcp.request.argument",t.MCP_REQUEST_ID_ATTRIBUTE="mcp.request.id",t.MCP_RESOURCE_URI_ATTRIBUTE="mcp.resource.uri",t.MCP_ROUTE_SOURCE_VALUE="route",t.MCP_SERVER_NAME_ATTRIBUTE="mcp.server.name",t.MCP_SERVER_OP_VALUE="mcp.server",t.MCP_SERVER_TITLE_ATTRIBUTE="mcp.server.title",t.MCP_SERVER_VERSION_ATTRIBUTE="mcp.server.version",t.MCP_SESSION_ID_ATTRIBUTE="mcp.session.id",t.MCP_TOOL_NAME_ATTRIBUTE="mcp.tool.name",t.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE="mcp.tool.result.content_count",t.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE="mcp.tool.result.is_error",t.MCP_TRANSPORT_ATTRIBUTE="mcp.transport",t.NETWORK_PROTOCOL_VERSION_ATTRIBUTE="network.protocol.version",t.NETWORK_TRANSPORT_ATTRIBUTE="network.transport"},94815:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(15363),o=n(2230),a=n(91303),i=n(69562),s=new Map,c=new WeakMap;function u(e){const t=e.sessionId;if(t){let e=s.get(t);return e||(e=new Map,s.set(t,e)),e}let n=c.get(e);return n||(n=new Map,c.set(e,n)),n}t.cleanupPendingSpansForTransport=function(e){const t=e.sessionId;if(t){const e=s.get(t);if(e){for(const[,t]of e)t.span.setStatus({code:r.SPAN_STATUS_ERROR,message:"cancelled"}),t.span.end();s.delete(t)}return}const n=c.get(e);if(n){for(const[,e]of n)e.span.setStatus({code:r.SPAN_STATUS_ERROR,message:"cancelled"}),e.span.end();n.clear()}},t.completeSpanWithResults=function(e,t,n,s,c=!1){const l=u(e),p=l.get(t);if(p){const{span:e,method:u}=p;if(c)e.setStatus({code:r.SPAN_STATUS_ERROR,message:"internal_error"});else if("initialize"===u){const t=i.extractSessionDataFromInitializeResponse(n),r={...i.buildServerAttributesFromInfo(t.serverInfo)};t.protocolVersion&&(r[o.MCP_PROTOCOL_VERSION_ATTRIBUTE]=t.protocolVersion),e.setAttributes(r)}else if("tools/call"===u){const t=a.extractToolResultAttributes(n,s.recordOutputs);e.setAttributes(t)}else if("prompts/get"===u){const t=a.extractPromptResultAttributes(n,s.recordOutputs);e.setAttributes(t)}e.end(),l.delete(t)}},t.storeSpanForRequest=function(e,t,n,r){u(e).set(t,{span:n,method:r,startTime:Date.now()})}},67695:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(79183),a=n(54583),i=n(15363);t.captureError=function(e,t,n){try{if(!r.getClient())return;const s=a.getActiveSpan();s?.isRecording()&&s.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),o.captureException(e,{mechanism:{type:"auto.ai.mcp_server",handled:!1,data:{error_type:t||"handler_execution",...n}}})}catch{}}},34514:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(96159),i=n(67695);function s(e,t){a.fill(e,t,e=>function(n,...r){const o=r[r.length-1];if("function"!=typeof o)return e.call(this,n,...r);const a=c(o,t,n);return e.call(this,n,...r.slice(0,-1),a)})}function c(e,t,n){return function(...a){try{return u.call(this,e,t,n,a)}catch(i){return r.DEBUG_BUILD&&o.debug.warn("MCP handler wrapping failed:",i),e.apply(this,a)}}}function u(e,t,n,r){try{const o=e.apply(this,r);return o&&"object"==typeof o&&"function"==typeof o.then?Promise.resolve(o).catch(e=>{throw l(e,t,n),e}):o}catch(o){throw l(o,t,n),o}}function l(e,t,n){try{const r={};"tool"===t||"registerTool"===t?(r.tool_name=n,"ProtocolValidationError"===e.name||e.message.includes("validation")||e.message.includes("protocol")?i.captureError(e,"validation",r):"ServerTimeoutError"===e.name||e.message.includes("timed out")||e.message.includes("timeout")?i.captureError(e,"timeout",r):i.captureError(e,"tool_execution",r)):"resource"===t||"registerResource"===t?(r.resource_uri=n,i.captureError(e,"resource_execution",r)):"prompt"!==t&&"registerPrompt"!==t||(r.prompt_name=n,i.captureError(e,"prompt_execution",r))}catch(r){}}function p(e){"function"==typeof e.tool&&s(e,"tool"),"function"==typeof e.registerTool&&s(e,"registerTool")}function d(e){"function"==typeof e.resource&&s(e,"resource"),"function"==typeof e.registerResource&&s(e,"registerResource")}function f(e){"function"==typeof e.prompt&&s(e,"prompt"),"function"==typeof e.registerPrompt&&s(e,"registerPrompt")}t.wrapAllMCPHandlers=function(e){p(e),d(e),f(e)},t.wrapExistingHandlers=function(e){const t=e,n=t._registeredTools;if(n&&"object"==typeof n)for(const[i,s]of Object.entries(n))"function"==typeof s.executor&&(s.executor=c(s.executor,"registerTool",i));const r=t._registeredResources;if(r&&"object"==typeof r)for(const[i,s]of Object.entries(r))"function"==typeof s.readCallback&&(s.readCallback=c(s.readCallback,"registerResource",i));const o=t._registeredResourceTemplates;if(o&&"object"==typeof o)for(const[i,s]of Object.entries(o))"function"==typeof s.readCallback&&(s.readCallback=c(s.readCallback,"registerResource",i));const a=t._registeredPrompts;if(a&&"object"==typeof a)for(const[i,s]of Object.entries(a))"function"==typeof s.handler&&(s.handler=c(s.handler,"registerPrompt",i))},t.wrapPromptHandlers=f,t.wrapResourceHandlers=d,t.wrapToolHandlers=p},6855:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(96159),a=n(34514),i=n(80170),s=n(86748),c=new WeakSet;t.wrapMcpServerWithSentry=function(e,t){if(c.has(e))return e;if(!s.validateMcpServerInstance(e))return e;const n=e,u=r.getClient(),l=u?.getDataCollectionOptions().genAI,p={recordInputs:t?.recordInputs??l?.inputs??!1,recordOutputs:t?.recordOutputs??l?.outputs??!1};return o.fill(n,"connect",e=>async function(t,...n){const r=await e.call(this,t,...n);return i.wrapTransportOnMessage(t,p),i.wrapTransportSend(t,p),i.wrapTransportOnClose(t),i.wrapTransportError(t),r}),a.wrapAllMCPHandlers(n),a.wrapExistingHandlers(n),c.add(e),e}},6332:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2230),o={"tools/call":{targetField:"name",targetAttribute:r.MCP_TOOL_NAME_ATTRIBUTE,captureArguments:!0,argumentsField:"arguments"},"resources/read":{targetField:"uri",targetAttribute:r.MCP_RESOURCE_URI_ATTRIBUTE,captureUri:!0}
2,"resources/subscribe":{targetField:"uri",targetAttribute:r.MCP_RESOURCE_URI_ATTRIBUTE},"resources/unsubscribe":{targetField:"uri",targetAttribute:r.MCP_RESOURCE_URI_ATTRIBUTE},"prompts/get":{targetField:"name",targetAttribute:r.MCP_PROMPT_NAME_ATTRIBUTE,captureName:!0,captureArguments:!0,argumentsField:"arguments"}};t.extractTargetInfo=function(e,t){const n=o[e];if(!n)return{attributes:{}};const r=n.targetField&&"string"==typeof t?.[n.targetField]?t[n.targetField]:void 0;return{target:r,attributes:r&&n.targetAttribute?{[n.targetAttribute]:r}:{}}},t.getRequestArguments=function(e,t){const n={},a=o[e];if(!a)return n;if(a.captureArguments&&a.argumentsField&&t?.[a.argumentsField]){const e=t[a.argumentsField];if("object"==typeof e&&null!==e)for(const[t,o]of Object.entries(e))n[`${r.MCP_REQUEST_ARGUMENT}.${t.toLowerCase()}`]=JSON.stringify(o)}return a.captureUri&&t?.uri&&(n[`${r.MCP_REQUEST_ARGUMENT}.uri`]=JSON.stringify(t.uri)),a.captureName&&t?.name&&(n[`${r.MCP_REQUEST_ARGUMENT}.name`]=JSON.stringify(t.name)),n}},54827:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2230),o=new Set([r.CLIENT_ADDRESS_ATTRIBUTE,r.CLIENT_PORT_ATTRIBUTE,r.MCP_RESOURCE_URI_ATTRIBUTE]);t.filterMcpPiiFromSpanData=function(e,t){return t?e:Object.entries(e).reduce((e,[t,n])=>(function(e){return o.has(e)}(t)||(e[t]=n),e),{})}},91303:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2230),o=n(86748);t.extractPromptResultAttributes=function(e,t){const n={};if(!o.isValidContentItem(e))return n;if(t&&"string"==typeof e.description&&(n[r.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE]=e.description),Array.isArray(e.messages)&&(n[r.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE]=e.messages.length,t)){const t=e.messages;for(const[e,r]of t.entries()){if(!o.isValidContentItem(r))continue;const a=1===t.length?"mcp.prompt.result":`mcp.prompt.result.${e}`;if(((e,r)=>{if("string"==typeof r){const o=1===t.length?`${a}.message_${e}`:`${a}.${e}`;n[o]=r}})("role",r.role),o.isValidContentItem(r.content)){const e=r.content;if("string"==typeof e.text){const r=1===t.length?`${a}.message_content`:`${a}.content`;n[r]=e.text}}}}return n},t.extractToolResultAttributes=function(e,t){if(!o.isValidContentItem(e))return{};const n=Array.isArray(e.content)?function(e,t){const n={[r.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE]:e.length};for(const[r,a]of e.entries()){if(!o.isValidContentItem(a))continue;const i=1===e.length?"mcp.tool.result":`mcp.tool.result.${r}`;if("string"==typeof a.type&&(n[`${i}.content_type`]=a.type),t){const e=(e,t)=>{"string"==typeof t&&(n[`${i}.${e}`]=t)};e("mime_type",a.mimeType),e("uri",a.uri),e("name",a.name),"string"==typeof a.text&&(n[`${i}.content`]=a.text),"string"==typeof a.data&&(n[`${i}.data_size`]=a.data.length);const t=a.resource;o.isValidContentItem(t)&&(e("resource_uri",t.uri),e("resource_mime_type",t.mimeType))}}return n}(e.content,t):{};return"boolean"==typeof e.isError&&(n[r.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE]=e.isError),n}},69562:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(2230),o=n(45208),a=n(86748);function i(e){const t={};return a.isValidContentItem(e)&&("string"==typeof e.name&&(t.name=e.name),"string"==typeof e.title&&(t.title=e.title),"string"==typeof e.version&&(t.version=e.version)),t}function s(e){const t=o.getClientInfoForTransport(e),n={};return t?.name&&(n["mcp.client.name"]=t.name),t?.title&&(n["mcp.client.title"]=t.title),t?.version&&(n["mcp.client.version"]=t.version),n}function c(e){const t=o.getSessionDataForTransport(e)?.serverInfo,n={};return t?.name&&(n[r.MCP_SERVER_NAME_ATTRIBUTE]=t.name),t?.title&&(n[r.MCP_SERVER_TITLE_ATTRIBUTE]=t.title),t?.version&&(n[r.MCP_SERVER_VERSION_ATTRIBUTE]=t.version),n}function u(e){return{address:e?.requestInfo?.remoteAddress||e?.clientAddress||e?.request?.ip||e?.request?.connection?.remoteAddress,port:e?.requestInfo?.remotePort||e?.clientPort||e?.request?.connection?.remotePort}}function l(e){if(!e?.constructor)return{mcpTransport:"unknown",networkTransport:"unknown"};const t="string"==typeof e.constructor?.name?e.constructor.name:"unknown";let n="unknown";const r=t.toLowerCase();return r.includes("stdio")?n="pipe":(r.includes("http")||r.includes("sse"))&&(n="tcp"),{mcpTransport:t,networkTransport:n}}t.buildClientAttributesFromInfo=function(e){const t={};return e?.name&&(t["mcp.client.name"]=e.name),e?.title&&(t["mcp.client.title"]=e.title),e?.version&&(t["mcp.client.version"]=e.version),t},t.buildServerAttributesFromInfo=function(e){const t={};return e?.name&&(t[r.MCP_SERVER_NAME_ATTRIBUTE]=e.name),e?.title&&(t[r.MCP_SERVER_TIT
2LE_ATTRIBUTE]=e.title),e?.version&&(t[r.MCP_SERVER_VERSION_ATTRIBUTE]=e.version),t},t.buildTransportAttributes=function(e,t){const n=e&&"sessionId"in e?e.sessionId:void 0,a=t?u(t):{},{mcpTransport:i,networkTransport:p}=l(e),d=s(e),f=c(e),g=o.getProtocolVersionForTransport(e);return{...n&&{[r.MCP_SESSION_ID_ATTRIBUTE]:n},...a.address&&{[r.CLIENT_ADDRESS_ATTRIBUTE]:a.address},...a.port&&{[r.CLIENT_PORT_ATTRIBUTE]:a.port},[r.MCP_TRANSPORT_ATTRIBUTE]:i,[r.NETWORK_TRANSPORT_ATTRIBUTE]:p,[r.NETWORK_PROTOCOL_VERSION_ATTRIBUTE]:"2.0",...g&&{[r.MCP_PROTOCOL_VERSION_ATTRIBUTE]:g},...d,...f}},t.extractClientInfo=u,t.extractSessionDataFromInitializeRequest=function(e){const t={};return a.isValidContentItem(e.params)&&("string"==typeof e.params.protocolVersion&&(t.protocolVersion=e.params.protocolVersion),e.params.clientInfo&&(t.clientInfo=i(e.params.clientInfo))),t},t.extractSessionDataFromInitializeResponse=function(e){const t={};return a.isValidContentItem(e)&&("string"==typeof e.protocolVersion&&(t.protocolVersion=e.protocolVersion),e.serverInfo&&(t.serverInfo=i(e.serverInfo))),t},t.getClientAttributes=s,t.getServerAttributes=c,t.getTransportTypes=l},45208:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=new Map,r=new WeakMap;function o(e){const t=e.sessionId;return t?n.get(t):r.get(e)}function a(e,t){const o=e.sessionId;o?n.set(o,t):r.set(e,t)}t.cleanupSessionDataForTransport=function(e){const t=e.sessionId;t&&n.delete(t)},t.getClientInfoForTransport=function(e){return o(e)?.clientInfo},t.getProtocolVersionForTransport=function(e){return o(e)?.protocolVersion},t.getSessionDataForTransport=function(e){return o(e)},t.storeSessionDataForTransport=function(e,t){a(e,t)},t.updateSessionDataForTransport=function(e,t){a(e,{...o(e)||{},...t})}},68998:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(52751),a=n(55908),i=n(65870),s=n(2230),c=n(6332),u=n(54827),l=n(69562);function p(e,t){return t?`${e} ${t}`:e}function d(e){let t,n;switch(e){case"request":t=s.MCP_SERVER_OP_VALUE,n=s.MCP_FUNCTION_ORIGIN_VALUE;break;case"notification-incoming":t=s.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE,n=s.MCP_NOTIFICATION_ORIGIN_VALUE;break;case"notification-outgoing":t=s.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE,n=s.MCP_NOTIFICATION_ORIGIN_VALUE}return{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:t,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:s.MCP_ROUTE_SOURCE_VALUE}}function f(e){const{type:t,message:n,transport:o,extra:f,callback:g,options:m}=e,{method:h}=n,_=n.params;let y;if("request"===t){y=p(h,c.extractTargetInfo(h,_||{}).target)}else y=h;const T={...l.buildTransportAttributes(o,f),[s.MCP_METHOD_NAME_ATTRIBUTE]:h,...i.buildTypeSpecificAttributes(t,n,_,m?.recordInputs),...d(t)},S=r.getClient(),E=Boolean(S?.getDataCollectionOptions().userInfo),b=u.filterMcpPiiFromSpanData(T,E);return a.startSpan({name:y,forceTransaction:!0,attributes:b},g)}t.buildMcpServerSpanConfig=function(e,t,n,o){const{method:a}=e,f=e.params,g=p(a,c.extractTargetInfo(a,f||{}).target),m={...l.buildTransportAttributes(t,n),[s.MCP_METHOD_NAME_ATTRIBUTE]:a,...i.buildTypeSpecificAttributes("request",e,f,o?.recordInputs),...d("request")},h=r.getClient(),_=Boolean(h?.getDataCollectionOptions().userInfo),y=u.filterMcpPiiFromSpanData(m,_);return{name:g,op:s.MCP_SERVER_OP_VALUE,forceTransaction:!0,attributes:y}},t.createMcpNotificationSpan=function(e,t,n,r,o){return f({type:"notification-incoming",message:e,transport:t,extra:n,callback:o,options:r})},t.createMcpOutgoingNotificationSpan=function(e,t,n,r){return f({type:"notification-outgoing",message:e,transport:t,options:n,callback:r})}},80170:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(96159),a=n(55908),i=n(2230),s=n(94815),c=n(67695),u=n(69562),l=n(45208),p=n(68998),d=n(86748);t.wrapTransportError=function(e){e.onerror&&o.fill(e,"onerror",e=>function(t){return function(e){try{c.captureError(e,"transport")}catch{}}(t),e.call(this,t)})},t.wrapTransportOnClose=function(e){e.onclose&&o.fill(e,"onclose",t=>function(...n){return s.cleanupPendingSpansForTransport(e),l.cleanupSessionDataForTransport(e),t.call(this,...n
2)})},t.wrapTransportOnMessage=function(e,t){e.onmessage&&o.fill(e,"onmessage",n=>function(o,c){if(d.isJsonRpcRequest(o)){const d="initialize"===o.method;let f;if(d)try{f=u.extractSessionDataFromInitializeRequest(o),l.storeSessionDataForTransport(e,f)}catch{}const g=r.getIsolationScope().clone();return r.withIsolationScope(g,()=>{const r=p.buildMcpServerSpanConfig(o,e,c,t),l=a.startInactiveSpan(r);return d&&f&&l.setAttributes({...u.buildClientAttributesFromInfo(f.clientInfo),...f.protocolVersion&&{[i.MCP_PROTOCOL_VERSION_ATTRIBUTE]:f.protocolVersion}}),s.storeSpanForRequest(e,o.id,l,o.method),a.withActiveSpan(l,()=>n.call(this,o,c))})}return d.isJsonRpcNotification(o)?p.createMcpNotificationSpan(o,e,c,t,()=>n.call(this,o,c)):n.call(this,o,c)})},t.wrapTransportSend=function(e,t){e.send&&o.fill(e,"send",n=>async function(...r){const[o]=r;if(d.isJsonRpcNotification(o))return p.createMcpOutgoingNotificationSpan(o,e,t,()=>n.call(this,...r));if(d.isJsonRpcResponse(o)&&null!==o.id&&void 0!==o.id){if(o.error&&function(e){try{if(e&&"object"==typeof e&&"code"in e&&"message"in e){const t=e;if(-32603===t.code||t.code>=-32099&&t.code<=-32e3){const e=new Error(t.message);e.name=`JsonRpcError_${t.code}`,c.captureError(e,"protocol")}}}catch{}}(o.error),d.isValidContentItem(o.result)&&(o.result.protocolVersion||o.result.serverInfo))try{const t=u.extractSessionDataFromInitializeResponse(o.result);l.updateSessionDataForTransport(e,t)}catch{}s.completeSpanWithResults(e,o.id,o.result,t,!!o.error)}return n.call(this,...r)})}},86748:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110);t.isJsonRpcNotification=function(e){return"object"==typeof e&&null!==e&&"jsonrpc"in e&&"2.0"===e.jsonrpc&&"method"in e&&!("id"in e)},t.isJsonRpcRequest=function(e){return"object"==typeof e&&null!==e&&"jsonrpc"in e&&"2.0"===e.jsonrpc&&"method"in e&&"id"in e},t.isJsonRpcResponse=function(e){return"object"==typeof e&&null!==e&&"jsonrpc"in e&&"2.0"===e.jsonrpc&&"id"in e&&("result"in e||"error"in e)},t.isValidContentItem=function(e){return null!=e&&"object"==typeof e},t.validateMcpServerInstance=function(e){return"object"==typeof e&&null!==e&&"connect"in e&&("tool"in e&&"resource"in e&&"prompt"in e||"registerTool"in e&&"registerResource"in e&&"registerPrompt"in e)||(r.DEBUG_BUILD&&o.debug.warn("Did not patch MCP server. Interface is incompatible."),!1)}},55873:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(82430),o=n(36823),a=n(99188),i=r.defineIntegration(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{a.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(o.stripMetadataFromStackFrames(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;o.addMetadataToStackFrames(n,t)})}}));t.moduleMetadataIntegration=i},68904:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(52751),a=n(85110),i=n(54583),s=n(15363),c=n(55908),u=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,l=Symbol("sentryPostgresConnectionContext"),p=Symbol.for("sentry.instrumented.postgresjs"),d=Symbol.for("sentry.query.from.instrumented.sql");function f(e,t,n){if(e[p])return e;const r=new Proxy(e,{apply(e,n,o){const a=Reflect.apply(e,n,o);return a&&"object"==typeof a&&"handle"in a&&g(a,r,t),a},get(e,n){const o=e[n];return"string"!=typeof n||"function"!=typeof o?o:"unsafe"===n||"file"===n?function(e,t,n,r){return function(...o){const a=Reflect.apply(e,t,o);return a&&"object"==typeof a&&"handle"in a&&g(a,n,r),a}}(o,e,r,t):"begin"===n||"reserve"===n?function(e,t,n,r){return function(...o){const a=n[l];if(!("function"==typeof o[o.length-1])){const n=Reflect.apply(e,t,o);return n&&"function"==typeof n.then?n.then(e=>f(e,r,a)):n}const i=1===o.length?o[0]:o[1],s=function(e){const t=f(e,r,a);return i(t)},c=1===o.length?[s]:[o[0],s];return Reflect.apply(e,t,c)}}(o,e,r,t):o}});return n?r[l]=n:function(e,t){const n=e;if(!n.options||"object"!=typeof n.options)return;const r=n.options,o=r.host?.[0]||"localhost",a=r.port?.[0]||5432,i={ATTR_DB_NAMESPACE:"string"==typeof r.database&&""!==r.database?r.database:void 0,ATTR_SERVER_ADDRESS:o,ATTR_SERVER_PORT:String(a)};t[l]=i}(e,r),e[p]=!0,r[p]=!0,r}function g(e,t,n){if(e.handle?.__sentryWrapped)return;e[d]=!0;const u=e.handle,p=async function(...p){if(this.executed||!function(e){return void 0!==i.getActiveSpan()||!e.requireParentSpan}(n))return u.apply(this,p);const d=_(m(e.strings));return c.startSpanManual({name:d||"postgresjs.query",op:"db"},e=>{e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.postgresjs"),e.setAttributes({"db.system.name":"postgres","db.query.text":d});const i=t?t[l]:void 0;if(function(e,t){if(!t)return;t.ATTR_DB_NAMESPACE&&e.setAttribute("db.namespace",t.ATTR_DB_NAMESPACE);t.ATTR_SERVER_ADDRESS&&e.setAttribute("server.address",t.ATTR_SERVER_ADDRESS);if(void 0!==t.ATTR_SERVER_PORT){const n=parseInt(t.ATTR_SERVER_PORT,10);isNaN(n)||e.setAttribute("server.port",n)}}(e,i),n.requestHook)try{n.requestHook(e,d,i)}catch(f){e.setAttribute("sentry.hook.error","requestHook failed"),r.DEBUG_BUILD&&a.debug.error("Error in requestHook for PostgresJs instrumentation:",f)}const c=this;c.resolve=new Proxy(c.resolve,{apply:(t,n,o)=>{try{y(e,d,o?.[0]?.command),e.end()}catch(f){r.DEBUG_BUILD&&a.debug.error("Error ending span in resolve callback:",f)}return Reflect.apply(t,n,o)}}),c.reject=new Proxy(c.reject,{apply:(t,n,o)=>{try{e.setStatus({code:s.SPAN_STATUS_ERROR,message:o?.[0]?.message||"unknown_error"}),e.setAttribute("db.response.status_code",o?.[0]?.code||"unknown"),e.setAttribute("error.type",o?.[0]?.name||"unknown"),y(e,d),e.end()}catch(f){r.DEBUG_BUILD&&a.debug.error("Error ending span in reject callback:",f)}return Reflect.apply(t,n,o)}});try{return u.apply(this,p)}catch(f){throw e.setStatus({code:s.SPAN_STATUS_ERROR,message:f instanceof Error?f.message:"unknown_error"}),e.end(),f}})};p.__sentryWrapped=!0,e.handle=p}function m(e){if(e?.length)return 1===e.length?e[0]||void 0:e.reduce((e,t,n
2)=>0===n?t:`${e}$${n}${t}`,"")}let h;function _(e){return e?(h||(h=new RegExp("(?<!\\$)-?\\b\\d+\\b","g")),e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(h,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)")):"Unknown SQL Query"}function y(e,t,n){if(n)return void e.setAttribute("db.operation.name",n);const r=t?.match(u);r?.[1]&&e.setAttribute("db.operation.name",r[1].toUpperCase())}t._reconstructQuery=m,t._sanitizeSqlQuery=_,t.instrumentPostgresJsSql=function(e,t){return e&&"function"==typeof e?f(e,{requireParentSpan:!0,...t}):(r.DEBUG_BUILD&&a.debug.warn("instrumentPostgresJsSql: provided value is not a valid postgres.js sql instance"),e)}},92215:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(82430),a=n(52751),i=n(81894),s=n(56011),c=n(49764),u=n(47473),l=o.defineIntegration((e={})=>{function t(t){const n=t.getDataCollectionOptions(),r={...n,...!0===e.include?.cookies&&!1===n.cookies&&{cookies:!0},...!0===e.include?.headers&&!1===n.httpHeaders.request&&{httpHeaders:{...n.httpHeaders,request:!0}}};return{dataCollection:r,include:{cookies:!1!==r.cookies,data:!0,headers:!1!==r.httpHeaders.request,ip:r.userInfo,query_string:!1!==r.queryParams,url:!0,...e.include}}}return{name:"RequestData",processEvent(e,n,r){const{sdkProcessingMetadata:o={}}=e,{normalizedRequest:a,ipAddress:i}=o,{include:s}=t(r);return a&&function(e,t,n,r){if(e.request={...e.request,...p(t,r)},r.ip){const r=t.headers&&c.getClientIPAddress(t.headers)||n.ipAddress;r&&(e.user={...e.user,ip_address:r})}}(e,a,{ipAddress:i},s),e},processSegmentSpan(e,n){const{sdkProcessingMetadata:o={}}=r.getIsolationScope().getScopeData(),{normalizedRequest:i,ipAddress:l}=o;if(!i)return;const{include:d,dataCollection:f}=t(n);!function(e,t,n,r,o){const i=p(t,r),l={};i.url&&(l["url.full"]=i.url);i.method&&(l["http.request.method"]=i.method);i.query_string&&(l["url.query"]=function(e){if("string"==typeof e)return e||void 0;const t=Array.isArray(e)?e:Object.entries(e);return t.map(([e,t])=>`${e}=${t}`).join("&")||void 0}(i.query_string));if(u.safeSetSpanJSONAttributes(e,l),i.cookies&&Object.keys(i.cookies).length>0){const t=Object.entries(i.cookies).map(([e,t])=>`${e}=${t}`).join("; "),n=s.httpHeadersToSpanAttributes({cookie:t},o,"request");u.safeSetSpanJSONAttributes(e,n)}if(i.headers){const t=s.httpHeadersToSpanAttributes(i.headers,o,"request");u.safeSetSpanJSONAttributes(e,t)}if(null!=i.data){const t="string"==typeof i.data?i.data:JSON.stringify(i.data);t&&u.safeSetSpanJSONAttributes(e,{"http.request.body.data":t})}if(r.ip){const r=t.headers&&c.getClientIPAddress(t.headers)||n||void 0;r&&u.safeSetSpanJSONAttributes(e,{[a.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:r})}}(e,i,l,d,f)}}});function p(e,t){const n={},r={...e.headers};if(t.headers&&(n.headers=r,t.cookies||delete r.cookie,!t.ip)){const e=new Set(c.ipHeaderNames.map(e=>e.toLowerCase()));for(const t of Object.keys(r))e.has(t.toLowerCase())&&delete r[t]}if(n.method=e.method,t.url&&(n.url=e.url),t.cookies){const t=e.cookies||(r?.cookie?i.parseCookie(r.cookie):void 0);n.cookies=t||{}}return t.query_string&&(n.query_string=e.query_string),t.data&&(n.data=e.data),n}t.requestDataIntegration=l},17536:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(82430),o=n(73155),a=n(73969),i=r.defineIntegration((e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in a.GLOBAL_OBJ&&!!a.GLOBAL_OBJ.window,o=e.iteratee||s({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t?.frames?.map(e=>o(e))})}};var t})}}}catch{return e}}(t)),t}}});function s({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const a=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){const e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(a||i){const e=a?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,i=t?o.relative(t,e):o.basename(e);r.filename=`${n}${i}`}return r}}t.generateIteratee=s,t.rewriteFramesIntegration=i},61126:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(82430),a=n(95150),i=n(47473),s=n(85526),c=n(13161),u=n(85110),l=n(54583),p=o.defineIntegration(()=>({name:"SpanStreaming",setup(e){const t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",o=e.getOptions();
2if(!s.hasSpanStreamingEnabled(e))return o.traceLifecycle="static",void(r.DEBUG_BUILD&&u.debug.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`));const p=o.beforeSendSpan;if(p&&!a.isStreamedBeforeSendSpanCallback(p))return o.traceLifecycle="static",void(r.DEBUG_BUILD&&u.debug.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`));const d=new c.SpanBuffer(e);e.on("afterSpanEnd",t=>{l.spanIsSampled(t)&&d.add(i.captureSpan(t,e))})}}));t.spanStreamingIntegration=p},60262:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(87990),o=n(49564),a=n(68974),i=n(79183),s=n(82430),c=n(52751),u=n(85110),l=n(96940),p=n(88532),d=n(15363),f=n(55908),g=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],m=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],h={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},_=["select","insert","upsert","update","delete"];function y(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function T(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function S(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function E(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function b(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let o;return o=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&h[n]||"filter",`${o}(${e}, ${r.join(".")})`}function v(e,t=!1){return new Proxy(e,{apply(n,r,o){return f.startSpan({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,o).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:d.SPAN_STATUS_ERROR}),i.captureException(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:d.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:d.SPAN_STATUS_ERROR}),e.end(),i.captureException(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...o))}})}function I(e,t){T(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,n,r){const o=Reflect.apply(e,n,r);return function(e,t){for(const n of _)T(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(e,r,o){const i=Reflect.apply(e,r,o),s=i.constructor;return a.DEBUG_BUILD&&u.debug.log(`Instrumenting ${n} operation's PostgRESTFilterBuilder`),A(s,t),i}}),y(e.prototype[n]))}(o.constructor,t),o}}),y(e.prototype.from))}function A(e,t){T(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,n,a){const s=_,u=n,g=E(u.method,u.headers);if(!s.includes(g))return Reflect.apply(e,n,a);if(!u?.url?.pathname||"string"!=typeof u.url.pathname)return Reflect.apply(e,n,a);const m=u.url.pathname.split("/"),h=m.length>0?m[m.length-1]:"",y=[];for(const[t,r]of u.url.searchParams.entries())y.push(b(t,r));const T=Object.create(null);if(p.isPlainObject(u.body))for(const[t,r]of Object.entries(u.body))T[t]=r;const v=o.getClient(),I=t.sendOperationData??!0===v?.getDataCollectionOptions().userInfo,A=S(u.body,T),R="select"===g?"":`${g}${N=u.body,O=T,void 0!==S(N,O)?"(...) ":""}`;var N,O;const P=I?y.join(" "):y.length>
20?"[redacted]":"",w=[R.trimEnd(),P].filter(Boolean).join(" "),C=w?`${w} from(${h})`:`from(${h})`,U={"db.table":h,"db.schema":u.schema,"db.url":u.url.origin,"db.sdk":u.headers["X-Client-Info"],"db.system":"postgresql","db.operation":g,[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return y.length&&I&&(U["db.query"]=y),void 0!==A&&I&&(U["db.body"]=A),f.startSpan({name:C,attributes:U},t=>Reflect.apply(e,n,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&d.setHttpStatus(t,e.status||500),t.end()),e?.error){const t=new Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);const n={};y.length&&I&&(n.query=y),void 0!==A&&I&&(n.body=A),i.captureException(t,e=>(e.addEventProcessor(e=>(l.addExceptionMechanism(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}const n={type:"supabase",category:`db.${g}`,message:C},o={};return y.length&&I&&(o.query=y),void 0!==A&&I&&(o.body=A),Object.keys(o).length&&(n.data=o),r.addBreadcrumb(n),e},e=>{throw t&&(d.setHttpStatus(t,500),t.end()),e}).then(...a))}}),y(e.prototype.then))}const R=(e,t={})=>{if(!e)return void(a.DEBUG_BUILD&&u.debug.warn("Supabase integration was not installed because no Supabase client was provided."));I(e.constructor===Function?e:e.constructor,t),function(e){const t=e.auth;if(t&&!T(e.auth)){for(const n of g){const r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=v(r))}for(const n of m){const r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=v(r,!0))}y(e.auth)}}(e)},N=s.defineIntegration(e=>((e,t)=>({setupOnce(){R(e,t)},name:"Supabase"}))(e.supabaseClient,{sendOperationData:e.sendOperationData}));t.DB_OPERATIONS_TO_INSTRUMENT=_,t.FILTER_MAPPINGS=h,t.extractOperation=E,t.instrumentSupabaseClient=R,t.supabaseIntegration=N,t.translateFiltersIntoMethods=b},80699:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(82430),o=n(36823),a=n(99188),i=n(70561),s=n(73969),c=r.defineIntegration(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{a.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(o.stripMetadataFromStackFrames(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;o.addMetadataToStackFrames(n,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(s.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){const n=!!e.ignoreSentryInternalFrames&&(!0===t.sdkProcessingMetadata?.insideSentryWrapped&&1===t.exception?.values?.length),r=function(e,t,n){const r=i.getFramesFromEvent(e);if(!r)return;return r.filter((e,r)=>!!e.filename&&((null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,n){if(0!==t)return!1;if(n&&function(e){return!e.context_line&&!e.pre_context&&!!e.function&&e.function.length<=2}(e))return!0;if("sentryWrapped"===e.function)return!0;if(!e.context_line||!e.filename)return!1;if(!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(p))return!1;if(e.pre_context){const t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(l))return!0}return!1}(e,r,!!n)))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(u)).map(e=>e.slice(u.length)):[])}(t,e.ignoreSentryInternalFrames,n);if(r){if(r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}}return t}}));const u="_sentryBundlerPluginAppKey:",l="Attempt to invoke user-land function",p="fn.apply(this, wrappedArguments)";t.thirdPartyErrorFilterIntegration=c},24208:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(82430),o=n(88532),a=n(79721);function i(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function s(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function c(e){const t=new Set;for(const r of e.issues){const e=s(r.path);e.length>0&&t.add(e)}const n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${a.truncate(n.join(", "),100)}`}function u(e,t=!1,n,r){if(!(n.exception?.values&&r.originalException&&(a=r.originalException,o.isError(a)&&"ZodError"===a.name&&Array.isArray(a.issues))&&0!==r.originalException.issues.length))return n;var a;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(i);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({f
2ilename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:c(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(s){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:s instanceof Error?`${s.name}: ${s.message}\n${s.stack}`:"unknown"}}}}}const l=r.defineIntegration((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent(n,r){return u(t,e.saveZodIssuesAsAttachment,n,r)}}});t.applyZodErrorsToEvent=u,t.flattenIssue=i,t.flattenIssuePath=s,t.formatIssueMessage=c,t.zodErrorsIntegration=l},78604:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(68974),a=n(83389),i=n(82430),s=n(52751),c=n(85110),u=n(88532),l=n(88585),p=n(97373),d=n(59075),f={[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},g=i.defineIntegration((e={})=>{const t=e.levels||c.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){const{enableLogs:n,normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=e.getOptions();if(!n)return void(o.DEBUG_BUILD&&c.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const g=a.addConsoleInstrumentationHandler(({args:n,level:o})=>{if(r.getClient()!==e||!t.includes(o))return;const a=n[0],c=n.slice(1);if("assert"===o){if(!a){const e=c.length>0?`Assertion failed: ${d.formatConsoleArgs(c,i,s)}`:"Assertion failed";p._INTERNAL_captureLog({level:"error",message:e,attributes:f})}return}const g="log"===o,m={...f};if(u.isPlainObject(a)){Object.assign(m,l.normalize(a,i,s));const e="string"==typeof n[1]?2:1;n.slice(e).forEach((e,t)=>{m[`sentry.message.parameter.${t}`]=l.normalize(e,i,s)})}else{if(c.length>0&&"string"==typeof a&&!d.hasConsoleSubstitutions(a)){const e=d.createConsoleTemplateAttributes(a,c);for(const[t,n]of Object.entries(e))m[t]=t.startsWith("sentry.message.parameter.")?l.normalize(n,i,s):n}}p._INTERNAL_captureLog({level:g?"info":o,message:d.formatConsoleArgs(n,i,s),severityNumber:g?10:void 0,attributes:m})});e.registerCleanup(g)}}});t.consoleLoggingIntegration=g},80851:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.SEVERITY_TEXT_TO_SEVERITY_NUMBER={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},85236:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(21811),o=n(99188),a=n(64702);function i(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...a.isBrowser()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}t.createLogContainerEnvelopeItem=i,t.createLogEnvelope=function(e,t,n,a,s){const c={};return t?.sdk&&(c.sdk={name:t.sdk.name,version:t.sdk.version}),n&&a&&(c.dsn=r.dsnToString(a)),o.createEnvelope(c,[i(e,s)])}},97373:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(22147),o=n(73220),a=n(49564),i=n(68974),s=n(85110),c=n(88532),u=n(37402),l=n(64865),p=n(26869),d=n(69483),f=n(61872),g=n(80851),m=n(85236);function h(e,t,n,r=!0){!n||e[t]&&!r||(e[t]=n)}function _(e,t){const n=S(),r=T(e);void 0===r?n.set(e,[t]):r.length>=100?(y(e,r),n.set(e,[t])):n.set(e,[...r,t])}function y(e,t){const n=t??T(e)??[];if(0===n.length)return;const r=e.getOptions(),o=m.createLogEnvelope(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);S().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function T(e){return S().get(e)}function S(){return o.getGlobalSingleton("clientToLogBufferMap",()=>new WeakMap)}function E(e){const t={};for(const[n,r]of Object.entries(e)){const e=b(n);"string"===r.type?t[e]={...r,value:b(r.value)}:t[e]=r}return t}function b(e){const t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return"function"==typeof n&&"function"==typeof r?n.call(e)?e:r.call(e):e}t._INTERNAL_captureLog=function(e,t=a.getCurrentScope(),n=_){const o=t?.getClient()??a.getClient();if(!o)return void(i.DEBUG_BUILD&&s.debug.warn("No client available to capture log."));const{release:m,environment:y,enableLogs:T=!1,beforeSendLog:S}=o.getOptions();if(!T)return void(i.DEBUG_BUILD&&s.debug.warn("logging option not enabled, log will not be captured."));const[,v]=f._getTraceInfoFromScope(o,t),I={...e.attributes},{user:{id:A,email:R,username:N},attributes:O={}}=u.getCombinedScopeData(a.getIsolationScope(),t);h(I,"user.id",A,!1),h(I,"user.email",R,!1),h(I,"user.name",N,!1),h(I,"sentry.release",m),h(I,"sentry.environment",y);const{name:P,version:w}=o.getSdkMetadata()?.sdk??{};h(I,"sentry.sdk.name",P),h(I,"sentry.sdk.version",w);const C=o.getIntegrationByName("Replay"),U=C?.getReplayId(!0);h(I,"sentry.replay_id",U),U&&"buffer"===C?.getRecordingMode()&&h(I,"sentry._internal.replay_is_buffering",!0);const L=e.message;
2if(c.isParameterizedString(L)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=L;t?.length&&(I["sentry.message.template"]=e),t.forEach((e,t)=>{I[`sentry.message.parameter.${t}`]=e})}const k=l._getSpanForScope(t);h(I,"sentry.trace.parent_span_id",k?.spanContext().spanId);const M={...e,attributes:I};o.emit("beforeCaptureLog",M);const x=S?s.consoleSandbox(()=>S(M)):M;if(!x)return o.recordDroppedEvent("before_send","log_item",1),void(i.DEBUG_BUILD&&s.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:B,message:D,attributes:j={},severityNumber:F}=x,G=p.timestampInSeconds(),H=d.getSequenceAttribute(G);n(o,{timestamp:G,level:B,body:b(String(D)),trace_id:v?.trace_id,severity_number:F??g.SEVERITY_TEXT_TO_SEVERITY_NUMBER[B],attributes:E({...r.serializeAttributes(O),...r.serializeAttributes(j,!0),[H.key]:H.value})}),o.emit("afterCaptureLog",x)},t._INTERNAL_captureSerializedLog=_,t._INTERNAL_flushLogsBuffer=y,t._INTERNAL_getLogBuffer=T,t._removeLoneSurrogates=b},85296:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(97373),o=n(72979);function a(e,t,n,o,a){r._INTERNAL_captureLog({level:e,message:t,attributes:n,severityNumber:a},o)}t.fmt=o.fmt,t.debug=function(e,t,{scope:n}={}){a("debug",e,t,n)},t.error=function(e,t,{scope:n}={}){a("error",e,t,n)},t.fatal=function(e,t,{scope:n}={}){a("fatal",e,t,n)},t.info=function(e,t,{scope:n}={}){a("info",e,t,n)},t.trace=function(e,t,{scope:n}={}){a("trace",e,t,n)},t.warn=function(e,t,{scope:n}={}){a("warn",e,t,n)}},59075:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(88532),o=n(88585),a=n(73969);function i(e,t,n){return e.map(e=>r.isPrimitive(e)?String(e):JSON.stringify(o.normalize(e,t,n))).join(" ")}t.createConsoleTemplateAttributes=function(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n},t.formatConsoleArgs=function(e,t,n){return"util"in a.GLOBAL_OBJ&&"function"==typeof a.GLOBAL_OBJ.util.format?a.GLOBAL_OBJ.util.format(...e):i(e,t,n)},t.hasConsoleSubstitutions=function(e){return/%[sdifocO]/.test(e)},t.safeJoinConsoleArgs=i},36823:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73969),o=new Map,a=new Set;function i(e,t){return function(e){if(r.GLOBAL_OBJ._sentryModuleMetadata)for(const t of Object.keys(r.GLOBAL_OBJ._sentryModuleMetadata)){const n=r.GLOBAL_OBJ._sentryModuleMetadata[t];if(a.has(t))continue;a.add(t);const i=e(t);for(const e of i.reverse())if(e.filename){o.set(e.filename,n);break}}}(e),o.get(t)}t.addMetadataToStackFrames=function(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;const n=i(e,t.filename);n&&(t.module_metadata=n)})})},t.getFilenameToMetadataMap=function(e){if(!r.GLOBAL_OBJ._sentryModuleMetadata)return{};const t={};for(const n of Object.keys(r.GLOBAL_OBJ._sentryModuleMetadata)){const o=r.GLOBAL_OBJ._sentryModuleMetadata[n],a=e(n);for(const e of a.reverse())if(e.filename){t[e.filename]=o;break}}return t},t.getMetadataForUrl=i,t.stripMetadataFromStackFrames=function(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}},8844:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(21811),o=n(99188),a=n(64702);function i(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...a.isBrowser()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}t.createMetricContainerEnvelopeItem=i,t.createMetricEnvelope=function(e,t,n,a,s){const c={};return t?.sdk&&(c.sdk={name:t.sdk.name,version:t.sdk.version}),n&&a&&(c.dsn=r.dsnToString(a)),o.createEnvelope(c,[i(e,s)])}},63717:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(22147),o=n(73220),a=n(49564),i=n(68974),s=n(85110),c=n(37402),u=n(64865),l=n(26869),p=n(69483),d=n(61872),f=n(8844);function g(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function m(e,t){const n=y(),r=_(e);void 0===r?n.set(e,[t]):r.length>=1e3?(h(e,r),n.set(e,[t])):n.set(e,[...r,t])}function h(e,t){const n=t??_(e)??[];if(0===n.length)return;const r=e.getOptions(),o=f.createMetricEnvelope(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);y().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function _(e){return y().get(e)}function y(){return o.getGlobalSingleton("clientToMetricBufferMap",()=>new WeakMap)}
2t._INTERNAL_captureMetric=function(e,t){const n=t?.scope??a.getCurrentScope(),o=t?.captureSerializedMetric??m,f=n?.getClient()??a.getClient();if(!f)return void(i.DEBUG_BUILD&&s.debug.warn("No client available to capture metric."));const{_experiments:h,enableMetrics:_,beforeSendMetric:y}=f.getOptions();if(!(_??h?.enableMetrics??!0))return void(i.DEBUG_BUILD&&s.debug.warn("metrics option not enabled, metric will not be captured."));const{user:T,attributes:S}=c.getCombinedScopeData(a.getIsolationScope(),n),E=function(e,t,n){const{release:r,environment:o}=t.getOptions(),a={...e.attributes};g(a,"user.id",n.id,!1),g(a,"user.email",n.email,!1),g(a,"user.name",n.username,!1),g(a,"sentry.release",r),g(a,"sentry.environment",o);const{name:i,version:s}=t.getSdkMetadata()?.sdk??{};g(a,"sentry.sdk.name",i),g(a,"sentry.sdk.version",s);const c=t.getIntegrationByName("Replay"),u=c?.getReplayId(!0);return g(a,"sentry.replay_id",u),u&&"buffer"===c?.getRecordingMode()&&g(a,"sentry._internal.replay_is_buffering",!0),{...e,attributes:a}}(e,f,T);f.emit("processMetric",E);const b=y||h?.beforeSendMetric,v=b?b(E):E;if(!v)return void(i.DEBUG_BUILD&&s.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const I=function(e,t,n,o){const[,a]=d._getTraceInfoFromScope(t,n),i=u._getSpanForScope(n),s=i?i.spanContext().traceId:a?.trace_id,c=i?i.spanContext().spanId:void 0,f=l.timestampInSeconds(),g=p.getSequenceAttribute(f);return{timestamp:f,trace_id:s??"",span_id:c,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...r.serializeAttributes(o),...r.serializeAttributes(e.attributes,"skip-undefined"),[g.key]:g.value}}}(v,f,n,S);i.DEBUG_BUILD&&s.debug.log("[Metric]",I),o(f,I),f.emit("afterCaptureMetric",v)},t._INTERNAL_captureSerializedMetric=m,t._INTERNAL_flushMetricsBuffer=h,t._INTERNAL_getMetricBuffer=_},39320:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63717);function o(e,t,n,o){r._INTERNAL_captureMetric({type:e,name:t,value:n,unit:o?.unit,attributes:o?.attributes},{scope:o?.scope})}t.count=function(e,t=1,n){o("counter",e,t,n)},t.distribution=function(e,t,n){o("distribution",e,t,n)},t.gauge=function(e,t,n){o("gauge",e,t,n)}},83090:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(68974),a=n(85110);function i(e){return!!e&&void 0!==e._profiler&&"function"==typeof e._profiler.start&&"function"==typeof e._profiler.stop}const s={startProfiler:function(){const e=r.getClient();if(!e)return void(o.DEBUG_BUILD&&a.debug.warn("No Sentry client available, profiling is not started"));const t=e.getIntegrationByName("ProfilingIntegration");t?i(t)?t._profiler.start():o.DEBUG_BUILD&&a.debug.warn("Profiler is not available on profiling integration."):o.DEBUG_BUILD&&a.debug.warn("ProfilingIntegration is not available")},stopProfiler:function(){const e=r.getClient();if(!e)return void(o.DEBUG_BUILD&&a.debug.warn("No Sentry client available, profiling is not started"));const t=e.getIntegrationByName("ProfilingIntegration");t?i(t)?t._profiler.stop():o.DEBUG_BUILD&&a.debug.warn("Profiler is not available on profiling integration."):o.DEBUG_BUILD&&a.debug.warn("ProfilingIntegration is not available")}};t.profiler=s},69640:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(11348),a=n(85110),i=n(88532),s=n(19090),c=n(96940),u=n(58913),l=n(83031),p=n(64865),d=n(79721),f=n(26869);class g{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:u.generateTraceId(),sampleRand:l.safeMathRandom()}}clone(){const e=new g;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,p._setSpanForScope(e,p._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&o.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof g?t.getScopeData():i.isPlainObject(t)?e:void 0,{tags:r,attributes:o,extra:a,user:s,contexts:c,level:u,fingerprint:l=[],propagationContext:p,conversationId:d}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...c},s&&Object.keys(s).length&&(this._user=s),u&&(this._level=u),l.length&&(this._fingerprint=l),p&&(this._propagationContext=p),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,p._setSpanForScope(this,void 0),this._attachments=[],this.setPropagationContext({traceId:u.generateTraceId(),sampleRand:l.safeMathRandom()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:f.dateTimestampInSeconds(),...e,message:e.message?d.truncate(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,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:p._getSpanForScope(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=s.merge
2(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t?.event_id||c.uuid4();if(!this._client)return r.DEBUG_BUILD&&a.debug.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...t,event_id:n},this),n}captureMessage(e,t,n){const o=n?.event_id||c.uuid4();if(!this._client)return r.DEBUG_BUILD&&a.debug.warn("No client configured on scope - will not capture message!"),o;const i=n?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:o},this),o}captureEvent(e,t){const n=e.event_id||t?.event_id||c.uuid4();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r.DEBUG_BUILD&&a.debug.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}t.Scope=g},27008:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(68974),a=n(85110);function i(e){r.getCurrentScope().setClient(e)}t.initAndBind=function(e,t){!0===t.debug&&(o.DEBUG_BUILD?a.debug.enable():a.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),r.getCurrentScope().update(t.initialScope);const n=new e(t);return i(n),n.init(),n},t.setCurrentClient=i},52751:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.GEN_AI_CONVERSATION_ID_ATTRIBUTE="gen_ai.conversation.id",t.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",t.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",t.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD="http.request.method",t.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",t.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME="sentry.custom_span_name",t.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT="sentry.environment",t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",t.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",t.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE="sentry.previous_trace_sample_rate",t.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE="sentry.release",t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",t.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS="sentry.sdk.integrations",t.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME="sentry.sdk.name",t.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION="sentry.sdk.version",t.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID="sentry.segment.id",t.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME="sentry.segment.name",t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source",t.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE="sentry.status.message",t.SEMANTIC_ATTRIBUTE_URL_FULL="url.full",t.SEMANTIC_ATTRIBUTE_USER_EMAIL="user.email",t.SEMANTIC_ATTRIBUTE_USER_ID="user.id",t.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS="user.ip_address",t.SEMANTIC_ATTRIBUTE_USER_USERNAME="user.name",t.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE="sentry.link.type"},24842:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(60251),o=n(83913),a=n(49564),i=n(68974),s=n(61126),c=n(64450),u=n(62299),l=n(85110),p=n(93395),d=n(96940),f=n(31901),g=n(94486),m=n(61872);class h extends o.Client{constructor(e){u.addUserAgentToTransportHeaders(e),"stream"!==e.traceLifecycle||e.integrations.some(e=>"SpanStreaming"===e.name)||e.integrations.push(s.spanStreamingIntegration()),super(e),this._disposeCallbacks=[],this._setUpMetricsProcessing()}eventFromException(e,t){const n=p.eventFromUnknownInput(this,this._options.stackParser,e,t);return n.level="error",g.resolvedSyncPromise(n)}eventFromMessage(e,t="info",n){return g.resolvedSyncPromise(p.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace))}captureException(e,t,n){return _(t),super.captureException(e,t,n)}captureEvent(e,t,n){return!e.type&&e.exception?.values&&e.exception.values.length>0&&_(t),super.captureEvent(e,t,n)}captureCheckIn(e,t,n){const o="checkInId"in e&&e.checkInId?e.checkInId:d.uuid4();if(!this._isEnabled())return i.DEBUG_BUILD&&l.debug.warn("SDK not enabled, will not capture check-in."),o;const a=this.getOptions(),{release:s,environment:c,tunnel:u}=a,p={check_in_id:o,monitor_slug:e.monitorSlug,status:e.status,release:s,environment:c};"duration"in e&&(p.duration=e.duration),t&&(p.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone,failure_issue_threshold:t.failureIssueThreshold,recovery_threshold:t.recoveryThreshold});const[f,g]=m._getTraceInfoFromScope(this,n);g&&(p.contexts={trace:g});
2const h=r.createCheckInEnvelope(p,f,this.getSdkMetadata(),u,this.getDsn());return i.DEBUG_BUILD&&l.debug.log("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(h),o}registerCleanup(e){this._disposeCallbacks.push(e)}dispose(){i.DEBUG_BUILD&&l.debug.log("Disposing client...");for(const e of this._disposeCallbacks)try{e()}catch{}this._disposeCallbacks.length=0;for(const e of Object.keys(this._hooks))this._hooks[e]?.clear();this._hooks={},this._eventProcessors.length=0,this._integrations={},this._outcomes={},this._transport=void 0,this._promiseBuffer=f.makePromiseBuffer(c.DEFAULT_TRANSPORT_BUFFER_SIZE)}_prepareEvent(e,t,n,r){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:e.contexts?.runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,n,r)}_setUpMetricsProcessing(){this.on("processMetric",e=>{this._options.serverName&&(e.attributes={"server.address":this._options.serverName,...e.attributes})})}}function _(e){const t=a.getIsolationScope().getScopeData().sdkProcessingMetadata.requestSession;if(t){const n=e?.mechanism?.handled??!0;n&&"crashed"!==t.status?t.status="errored":n||(t.status="crashed")}}t.ServerRuntimeClient=h},11348:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(96940),o=n(26869);function a(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||o.timestampInSeconds(),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:r.uuid4()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}t.closeSession=function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)},t.makeSession=function(e){const t=o.timestampInSeconds(),n={sid:r.uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(n)};return e&&a(n,e),n},t.updateSession=a},61204:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n={INTERNAL:0,SERVER:1,CLIENT:2,PRODUCER:3,CONSUMER:4},r={[n.INTERNAL]:"INTERNAL",[n.SERVER]:"SERVER",[n.CLIENT]:"CLIENT",[n.PRODUCER]:"PRODUCER",[n.CONSUMER]:"CONSUMER"};t.SPAN_KIND=n,t.spanKindToName=function(e){return r[e]}},24231:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.GEN_AI_AGENT_NAME_ATTRIBUTE="gen_ai.agent.name",t.GEN_AI_CONVERSATION_ID_ATTRIBUTE="gen_ai.conversation.id",t.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE="gen_ai.embeddings.input",t.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE="gen_ai.embeddings",t.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE="gen_ai.execute_tool",t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE="gen_ai.input.messages",t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE="sentry.sdk_meta.gen_ai.input.messages.original_length",t.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE="gen_ai.invoke_agent",t.GEN_AI_OPERATION_NAME_ATTRIBUTE="gen_ai.operation.name",t.GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE="gen_ai.output.messages",t.GEN_AI_PIPELINE_NAME_ATTRIBUTE="gen_ai.pipeline.name",t.GEN_AI_PROMPT_ATTRIBUTE="gen_ai.prompt",t.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE="gen_ai.request.available_tools",t.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE="gen_ai.request.dimensions",t.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE="gen_ai.request.encoding_format",t.GEN_AI_REQUEST_FREQUENCY_PENA
2LTY_ATTRIBUTE="gen_ai.request.frequency_penalty",t.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE="gen_ai.request.max_tokens",t.GEN_AI_REQUEST_MODEL_ATTRIBUTE="gen_ai.request.model",t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE="gen_ai.request.presence_penalty",t.GEN_AI_REQUEST_STREAM_ATTRIBUTE="gen_ai.request.stream",t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE="gen_ai.request.temperature",t.GEN_AI_REQUEST_TOP_K_ATTRIBUTE="gen_ai.request.top_k",t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE="gen_ai.request.top_p",t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE="gen_ai.response.finish_reasons",t.GEN_AI_RESPONSE_ID_ATTRIBUTE="gen_ai.response.id",t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE="gen_ai.response.model",t.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE="gen_ai.response.stop_reason",t.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE="gen_ai.response.streaming",t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE="gen_ai.response.text",t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE="gen_ai.response.tool_calls",t.GEN_AI_SYSTEM_ATTRIBUTE="gen_ai.system",t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE="gen_ai.system_instructions",t.GEN_AI_TOOL_CALL_ID_ATTRIBUTE="gen_ai.tool.call.id",t.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE="gen_ai.tool.description",t.GEN_AI_TOOL_INPUT_ATTRIBUTE="gen_ai.tool.input",t.GEN_AI_TOOL_NAME_ATTRIBUTE="gen_ai.tool.name",t.GEN_AI_TOOL_OUTPUT_ATTRIBUTE="gen_ai.tool.output",t.GEN_AI_TOOL_TYPE_ATTRIBUTE="gen_ai.tool.type",t.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.cache_creation_input_tokens",t.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.cache_read_input_tokens",t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.input_tokens",t.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE="gen_ai.usage.input_tokens.cached",t.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE="gen_ai.usage.input_tokens.cache_write",t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE="gen_ai.usage.output_tokens",t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE="gen_ai.usage.total_tokens"},53620:function(e,t){function n(e){return!(!e||"object"!=typeof e)&&(function(e){return"type"in e&&"string"==typeof e.type&&"source"in e&&n(e.source)}(e)||o(e)||function(e){return"image_url"in e&&("string"==typeof e.image_url?e.image_url.startsWith("data:"):r(e))}(e)||a(e)||i(e)||function(e){return"media_type"in e&&"string"==typeof e.media_type&&"data"in e}(e)||function(e){return"type"in e&&"file"===e.type&&"mediaType"in e&&"string"==typeof e.mediaType&&"data"in e&&"string"==typeof e.data&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}(e)||function(e){return"type"in e&&"image"===e.type&&"image"in e&&"string"==typeof e.image&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}(e)||function(e){return"type"in e&&("blob"===e.type||"base64"===e.type)}(e)||function(e){return"b64_json"in e}(e)||function(e){return"type"in e&&"result"in e&&"image_generation"===e.type}(e)||function(e){return"uri"in e&&"string"==typeof e.uri&&e.uri.startsWith("data:")}(e))}function r(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.image_url.url.startsWith("data:")}function o(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function a(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function i(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const s="[Blob substitute]",c=["image_url","data","content","b64_json","result","uri","image"];t.isContentMedia=n,t.stripInlineMediaFromSingleMessage=function e(t){const u={...t};n(u.source)&&(u.source=e(u.source)),o(t)&&(u.inlineData={...t.inlineData,data:s}),r(t)&&(u.image_url={...t.image_url,url:s}),a(t)&&(u.input_audio={...t.input_audio,data:s}),i(t)&&(u.file={...t.file,file_data:s});for(const n of c)"string"==typeof u[n]&&(u[n]=s);return u}},69144:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(53620),o=2e4,a=e=>(new TextEncoder).encode(e).length,i=e=>a(JSON.stringify(e));function s(e,t){if(a(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){const i=Math.floor((n+r)/2),s=e.slice(0,i);a(s)<=t?(o=s,n=i+1):r=i-1}return o}function c(e){return"string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:""}function u(e,t){return"string"==typeof e?t:{...e,text:t}}function l(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function p(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function d(e,t){const{key:n,items:r}=function(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}
2:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}(e);if(null===n||0===r.length)return[];const o=r.map(e=>u(e,""));let l=t-i({...e,[n]:o});if(l<=0)return[];const p=[];for(const i of r){const e=c(i),t=a(e);if(!(t<=l)){if(0===p.length){const t=s(e,l);t&&p.push(u(i,t));break}break}p.push(i),l-=t}return p.length<=0?[]:[{...e,[n]:p}]}function f(e,t){if(!e)return[];if("string"==typeof e){const n=s(e,t);return n?[n]:[]}return"object"!=typeof e?[]:function(e){return null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content}(e)?function(e,t){const n={...e,content:""},r=t-i(n);if(r<=0)return[];const o=s(e.content,r);return[{...e,content:o}]}(e,t):l(e)||p(e)?d(e,t):[]}function g(e){return e.map(e=>{let t;return e&&"object"==typeof e&&(l(e)?t={...e,content:g(e.content)}:"content"in e&&r.isContentMedia(e.content)&&(t={...e,content:r.stripInlineMediaFromSingleMessage(e.content)}),p(e)&&(t={...t??e,parts:g(e.parts)}),r.isContentMedia(t)?t=r.stripInlineMediaFromSingleMessage(t):r.isContentMedia(e)&&(t=r.stripInlineMediaFromSingleMessage(e))),t??e})}function m(e,t){if(!Array.isArray(e)||0===e.length)return e;const n=t-2,r=g([e[e.length-1]]),o=r[0];return i(o)<=n?r:f(o,n)}t.DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT=o,t.truncateGenAiMessages=function(e){return m(e,o)},t.truncateGenAiStringInput=function(e){return s(e,o)}},2881:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(49564),a=n(85526),i=n(88532),s=n(24231),c=n(69144);t.buildMethodPath=function(e,t){return e?`${e}.${t}`:t},t.endStreamSpan=function(e,t,n){if(!e.isRecording())return;const r={[s.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};t.responseId&&(r[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]=t.responseId),t.responseModel&&(r[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=t.responseModel),void 0!==t.promptTokens&&(r[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=t.promptTokens),void 0!==t.completionTokens&&(r[s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=t.completionTokens),void 0!==t.totalTokens?r[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=t.totalTokens:void 0===t.promptTokens&&void 0===t.completionTokens&&void 0===t.cacheCreationInputTokens&&void 0===t.cacheReadInputTokens||(r[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[s.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()},t.extractSystemInstructions=function(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};const n=e[t],r="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;return r?{systemInstructions:JSON.stringify([{type:"text",content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}},t.getJsonString=function(e){return"string"==typeof e?e:JSON.stringify(e)},t.getTruncatedJsonString=function(e){if("string"==typeof e)return c.truncateGenAiStringInput(e);if(Array.isArray(e)){const t=c.truncateGenAiMessages(e);return JSON.stringify(t)}return JSON.stringify(e)},t.resolveAIRecordingOptions=function(e){const t=o.getClient()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}},t.setTokenUsageAttributes=function(e,t,n,r,o){if(void 0!==t&&e.setAttributes({[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==n&&e.setAttributes({[s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:n}),void 0!==t||void 0!==n||void 0!==r||void 0!==o){const a=(t??0)+(n??0)+(r??0)+(o??0);e.setAttributes({[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:a})}},t.shouldEnableTruncation=function(e){if(void 0!==e)return e;const t=o.getClient();return!t||!a.hasSpanStreamingEnabled(t)&&!1===t.getOptions().streamGenAiSpans},t.wrapPromiseWithMethods=function(e,t,n){return i.isThenable(e)?new Proxy(e,{get(e,o){const a=o in Promise.prototype||o===Symbol.toStringTag?t:e,i=Reflect.get(a,o);return"withResponse"===o&&"function"==typeof i?function(){return async function(e,t,n){const o=e.catch(e=>{throw r.captureException(e,{mechanism:{handled:!1,type:n}}),e}),a=await t,i=await o;return i&&"object"==typeof i&&"data"in i?{...i,data:a}:a}(i.call(e),t,n)}:"function"==typeof i?i.bind(a):i}}):t}},82054:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.ANTHROPIC_AI_INTEGRATION_NAME="Anthropic_AI",t.ANTHROPIC_METHOD_REGISTRY={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"}
2,"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}}},7747:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(52751),a=n(15363),i=n(55908),s=n(24231),c=n(2881),u=n(82054),l=n(10135),p=n(82526);function d(e,t,n){const r=p.messagesFromParams(t);p.setMessagesAttribute(e,r,n),"prompt"in t&&e.setAttributes({[s.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(t.prompt)})}function f(e,t,n){t&&"object"==typeof t&&("type"in t&&"error"===t.type?p.handleResponseError(e,t):(n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.content.map(e=>e.text).filter(e=>!!e).join("")});const n=[];for(const e of t.content)"tool_use"!==e.type&&"server_tool_use"!==e.type||n.push(e);n.length>0&&e.setAttributes({[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.completion}),"input_tokens"in t&&e.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){"id"in t&&"model"in t&&(e.setAttributes({[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t.id,[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:t.model}),"usage"in t&&t.usage&&c.setTokenUsageAttributes(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}(e,t)))}function g(e,t,n){throw r.captureException(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function m(e,t,n,a,u){return new Proxy(e,{apply(p,m,h){const _=n.operation||"unknown",y=function(e,t,n){const r={[s.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:n,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];t.tools&&Array.isArray(t.tools)&&(r[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t.tools)),r[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=t.model??"unknown","temperature"in t&&(r[s.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"top_p"in t&&(r[s.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.top_p),"stream"in t&&(r[s.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=t.stream),"top_k"in t&&(r[s.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.top_k),"frequency_penalty"in t&&(r[s.GEN_AI_REQUEST_FREQUENCY_PENA
2LTY_ATTRIBUTE]=t.frequency_penalty),"max_tokens"in t&&(r[s.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.max_tokens)}else r[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===t||"models.get"===t?e[0]:"unknown";return r}(h,t,_),T=y[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",S="object"==typeof h[0]?h[0]:void 0,E=Boolean(S?.stream),b=!0===n.streaming;if(E||b)return function(e,t,n,r,o,a,u,p,f,m,h){const _={name:`${a} ${o[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"}`,op:`gen_ai.${a}`,attributes:o};if(m&&!h){let t;const o=i.startSpanManual(_,o=>(t=e.apply(n,r),f.recordInputs&&p&&d(o,p,c.shouldEnableTruncation(f.enableTruncation)),(async()=>{try{const e=await t;return l.instrumentAsyncIterableStream(e,o,f.recordOutputs??!1)}catch(e){return g(e,o,u)}})()));return c.wrapPromiseWithMethods(t,o,"auto.ai.anthropic")}return i.startSpanManual(_,e=>{try{f.recordInputs&&p&&d(e,p,c.shouldEnableTruncation(f.enableTruncation));const o=t.apply(n,r);return l.instrumentMessageStream(o,e,f.recordOutputs??!1)}catch(o){return g(o,e,u)}})}(e,p,a,h,y,_,t,S,u,E,b);let v;const I=i.startSpan({name:`${_} ${T}`,op:`gen_ai.${_}`,attributes:y},e=>(v=p.apply(a,h),u.recordInputs&&S&&d(e,S,c.shouldEnableTruncation(u.enableTruncation)),v.then(t=>(f(e,t,u.recordOutputs),t),e=>{throw r.captureException(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}}),e})));return c.wrapPromiseWithMethods(v,I,"auto.ai.anthropic")}})}function h(e,t="",n){return new Proxy(e,{get(e,r){const o=e[r],a=c.buildMethodPath(t,String(r)),i=u.ANTHROPIC_METHOD_REGISTRY[a];return"function"==typeof o&&i?m(o,a,i,e,n):"function"==typeof o?o.bind(e):o&&"object"==typeof o?h(o,a,n):o}})}t.instrumentAnthropicAiClient=function(e,t){return h(e,"",c.resolveAIRecordingOptions(t))}},10135:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(15363),a=n(2881),i=n(82526);function s(e,t,n,a){if(!e||"object"!=typeof e)return;const s=function(e,t){return"type"in e&&"string"==typeof e.type&&"error"===e.type&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:i.mapAnthropicErrorToStatusMessage(e.error?.type)}),r.captureException(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}(e,a);s||(function(e,t){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}(e,t),function(e,t){"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"!==e.content_block.type&&"server_tool_use"!==e.content_block.type||(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]}))}(e,t),function(e,t,n){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){const n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,n),function(e,t){if("content_block_stop"!==e.type||"number"!=typeof e.index)return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let o;try{o=r?JSON.parse(r):{}}catch{o={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:o}),delete t.activeToolBlocks[e.index]}(e,t))}t.instrumentAsyncIterableStream=async function*(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of e)s(o,r,n,t),yield o}finally{a.endStreamSpan(t,r,n)}},t.instrumentMessageStream=function(e,t,n){const i={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{s(e,i,n,t)}),e.on("message",()=>{a.endStreamSpan(t,i,n)}),e.on("error",e=>{r.captureException(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),t.end())}),e}},82526:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(15363),a=n(24231),i=n(2881);const s={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function c(e){return e&&s[e]||"internal_error"}t.handleResponseError=function(e,t){t.error&&(e.setStatus({code:o.SPAN_STATUS_ERROR,message:c(t.error.type)}),r.captureException(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))},t.mapAnthropicErrorToStatusMessage=c,t.messagesFromParams=function(e){const{system:t,messages:n,input:r}
2=e,o="string"==typeof t?[{role:"system",content:e.system}]:[],a=Array.isArray(r)?r:null!=r?[r]:void 0,i=Array.isArray(n)?n:null!=n?[n]:[];return[...o,...a??i]},t.setMessagesAttribute=function(e,t,n){if(Array.isArray(t)&&0===t.length)return;const{systemInstructions:r,filteredMessages:o}=i.extractSystemInstructions(t);r&&e.setAttributes({[a.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:r});const s=Array.isArray(o)?o.length:1;e.setAttributes({[a.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:n?i.getTruncatedJsonString(o):i.getJsonString(o),[a.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:s})}},52719:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],a=["removeListener","off","removeEventListener"],i=Symbol("SentryScopeBoundListeners");let s;function c(e){return"function"==typeof e}function u(e,t,n){return function(...o){const a=o[0],i=o[1],u=o.slice(2);if(!c(i)||function(e){return void 0!==s&&(e===s||e.listener===s)}(i))return t.apply(this,o);const l=d(e)||p(e);let f=l.get(a);f||(f=new WeakMap,l.set(a,f));let g=f.get(i);g||(g=function(e,t){return function(...n){return r.withScope(t,()=>e.apply(this,n))}}(i,n),f.set(i,g));const m=s;s=g;try{return t.call(this,a,g,...u)}finally{s=m}}}function l(e,t){return function(...n){const r=n[0],o=n[1],a=n.slice(2),i=c(o)?d(e)?.get(r)?.get(o):void 0;return i?t.call(this,r,i,...a):t.apply(this,n)}}function p(e){const t=new Map;return e[i]=t,t}function d(e){return e[i]}t.bindScopeToEmitter=function(e,t=r.getCurrentScope()){const n=e;if(d(n))return e;p(n);for(const r of o)"function"==typeof n[r]&&(n[r]=u(n,n[r],t));for(const r of a)"function"==typeof n[r]&&(n[r]=l(n,n[r]));return"function"==typeof n.removeAllListeners&&(n.removeAllListeners=function(e,t){return function(...n){const r=d(e);if(r)if(0===n.length)p(e);else{const e=n[0];r.delete(e)}return t.apply(this,n)}}(n,n.removeAllListeners)),e}},93754:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(42501),o=n(49564),a=n(52751),i=n(5684),s=n(21811),c=n(51228),u=n(96159),l=n(54583),p=n(67392),d=n(64284),f="_frozenDsc";function g(e,t){const n=t.getOptions(),{publicKey:o}=t.getDsn()||{},a={environment:n.environment||r.DEFAULT_ENVIRONMENT,release:n.release,public_key:o,trace_id:e,org_id:s.extractOrgIdFromClient(t)};return t.emit("createDsc",a),a}function m(e,t){const n=t.getPropagationContext();return n.dsc||g(n.traceId,e)}function h(e){const t=o.getClient();if(!t)return{};const n=l.getRootSpan(e),r=l.spanToJSON(n),s=r.data,u=n.spanContext().traceState,h=u?.get("sentry.sample_rate")??s[a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??s[a.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function _(e){return"number"!=typeof h&&"string"!=typeof h||(e.sample_rate=`${h}`),e}const y=n[f];if(y)return _(y);if(p.spanIsNonRecordingSpan(n)&&!c.hasSpansEnabled(t.getOptions())){const e=d.getCapturedScopesOnSpan(n).scope;if(e)return _({...m(t,e)})}const T=u?.get("sentry.dsc"),S=T&&i.baggageHeaderToDynamicSamplingContext(T);if(S)return _(S);const E=g(e.spanContext().traceId,t),b=s[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??s["sentry.span.source"],v=r.description;return"url"!==b&&v&&(E.transaction=v),c.hasSpansEnabled()&&(E.sampled=String(l.spanIsSampled(n)),E.sample_rand=u?.get("sentry.sample_rand")??d.getCapturedScopesOnSpan(n).scope?.getPropagationContext().sampleRand.toString()),_(E),t.emit("createDsc",E,n),E}t.freezeDscOnSpan=function(e,t){const n=e;u.addNonEnumerableProperty(n,f,t)},t.getDynamicSamplingContextFromClient=g,t.getDynamicSamplingContextFromScope=m,t.getDynamicSamplingContextFromSpan=h,t.spanToBaggageHeader=function(e){const t=h(e);return i.dynamicSamplingContextToSentryBaggageHeader(t)}},44038:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(49759),a=n(53551),i=n(85110),s=n(54583),c=n(15363);let u=!1;t.registerSpanErrorInstrumentation=function(){function e(){const e=s.getActiveSpan(),t=e&&s.getRootSpan(e);if(t){const e="internal_error";r.DEBUG_BUILD&&i.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:c.SPAN_STATUS_ERROR,message:e})}}u||(u=!0,o.addGlobalErrorInstrumentationHandler(e),a.addGlobalUnhandledRejectionInstrumentationHandler(e))}},60393:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.GOOGLE_GENAI_INTEGRATION_NAME="Google_GenAI",t.GOOGLE_GENAI_METHOD_REGISTRY={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},t.GOOGLE_GENAI_SYSTEM_NAME="google_genai"},13860:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(52751),a=n(15363),i=n(55908),s=n(76354),c=n(24231),u=n(2881),l=n(60393),p=n(77844),d=n(56141);function f(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){const e=t;if("model"in e&&"string"==typeof e.model)return e.model;if("modelVersion"in e&&"string"==typeof e.modelVersion)return e.modelVersion}return"unknown"}function g(e,t,n){const r={[c.GEN_AI_SYSTEM_ATTRIBUTE]:l.GOOGLE_GENAI_SYSTEM_NAME,[c.GEN_AI_OPERATION_NAME_ATTRIBUTE]:e,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(r[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=f(t,n),"config"in t&&"object"==typeof t.config&&t.config){const e=t.config;if(Object.assign(r,function(e){const t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[c.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[c.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[c.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[c.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[c.GEN_AI_REQUEST_FREQUENCY_PENA
2LTY_ATTRIBUTE]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[c.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presencePenalty),t}(e)),"tools"in e&&Array.isArray(e.tools)){const t=e.tools.flatMap(e=>e.functionDeclarations);r[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t)}}}else r[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=f({},n);return r}function m(e,t,n,r){if(n){const n=t.contents;return void(null!=n&&e.setAttribute(c.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof n?n:JSON.stringify(n)))}const o=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&o.push(...d.contentUnionToMessages(t.config.systemInstruction,"system")),"history"in t&&o.push(...d.contentUnionToMessages(t.history,"user")),"contents"in t&&o.push(...d.contentUnionToMessages(t.contents,"user")),"message"in t&&o.push(...d.contentUnionToMessages(t.message,"user")),Array.isArray(o)&&o.length){const{systemInstructions:t,filteredMessages:n}=u.extractSystemInstructions(o);t&&e.setAttribute(c.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);const a=Array.isArray(n)?n.length:0;e.setAttributes({[c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:a,[c.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:r?u.getTruncatedJsonString(n):u.getJsonString(n)})}}function h(e,t,n,o,l){const d="embeddings"===n.operation;return new Proxy(e,{apply(e,f,h){const _=n.operation||"unknown",y=h[0],T=g(_,y,o),S=T[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown";return n.streaming?i.startSpanManual({name:`${_} ${S}`,op:`gen_ai.${_}`,attributes:T},async n=>{try{l.recordInputs&&y&&m(n,y,d,u.shouldEnableTruncation(l.enableTruncation));const t=await e.apply(o,h);return p.instrumentStream(t,n,Boolean(l.recordOutputs))}catch(i){throw n.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),r.captureException(i,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),n.end(),i}}):i.startSpan({name:`${_} ${S}`,op:`gen_ai.${_}`,attributes:T},n=>(l.recordInputs&&y&&m(n,y,d,u.shouldEnableTruncation(l.enableTruncation)),s.handleCallbackErrors(()=>e.apply(o,h),e=>{r.captureException(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{d||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(c.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){const n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[c.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[c.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[c.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);n.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.join("")})}if(n&&t.functionCalls){const n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[c.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(n)})}}}(n,e,l.recordOutputs)})))}})}function _(e,t="",n){return new Proxy(e,{get:(e,r,o)=>{const a=Reflect.get(e,r,o),i=u.buildMethodPath(t,String(r)),s=l.GOOGLE_GENAI_METHOD_REGISTRY[i];if("function"==typeof a&&s){const t=s.operation?h(a,i,s,e,n):a.bind(e);return s.proxyResultPath?function(...e){const r=t(...e);return r&&"object"==typeof r?_(r,s.proxyResultPath,n):r}:t}return"function"==typeof a?a.bind(e):a&&"object"==typeof a?_(a,i,n):a}})}t.extractModel=f,t.instrumentGoogleGenAIClient=function(e,t){return _(e,"",u.resolveAIRecordingOptions(t))}},77844:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(15363),a=n(2881);function i(e,t,n,a){e&&!function(e,t){const n=e?.promptFeedback;if(n?.blockReason){const e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),r.captureException(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,a)&&(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount))}(e,t),function(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const e of r?.content?.parts??[])n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}
2(e,t,n))}t.instrumentStream=async function*(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const o of e)i(o,r,n,t),yield o}finally{a.endStreamSpan(t,r,n)}}},56141:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.contentUnionToMessages=function e(t,n="user"){return"string"==typeof t?[{role:n,content:t}]:Array.isArray(t)?t.flatMap(t=>e(t,n)):"object"==typeof t&&t?"role"in t&&"string"==typeof t.role?[t]:"parts"in t?[{...t,role:n}]:[{role:n,content:t}]:[]}},57011:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(68974),a=n(52751),i=n(85110),s=n(51228),c=n(87687),u=n(64865),l=n(54583),p=n(26869),d=n(67392),f=n(30242),g=n(15363),m=n(55908),h=n(64284),_={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};t.TRACING_DEFAULTS=_,t.startIdleSpan=function(e,t={}){const n=new Map;let y,T=!1,S="externalFinish",E=!t.disableAutoFinish;const b=[],{idleTimeout:v=_.idleTimeout,finalTimeout:I=_.finalTimeout,childSpanTimeout:A=_.childSpanTimeout,beforeSpanEnd:R,trimIdleSpanEndTimestamp:N=!0}=t,O=r.getClient(),P=r.getCurrentScope();if(!O||!s.hasSpansEnabled()){const e=new d.SentryNonRecordingSpan({traceId:P.getPropagationContext().traceId});return h.setCapturedScopesOnSpan(e,P,r.getIsolationScope()),e}const w=l.getActiveSpan(),C=function(e){const t=m.startInactiveSpan(e);return u._setSpanForScope(r.getCurrentScope(),t),o.DEBUG_BUILD&&i.debug.log("[Tracing] Started span is an idle span"),t}(e);function U(){y&&(clearTimeout(y),y=void 0)}function L(e){U(),y=setTimeout(()=>{!T&&0===n.size&&E&&(S="idleTimeout",C.end(e))},v)}function k(e){y=setTimeout(()=>{!T&&E&&(S="heartbeatFailed",C.end(e))},A)}function M(e){T=!0,n.clear(),b.forEach(e=>e()),u._setSpanForScope(P,w);const t=l.spanToJSON(C),{start_timestamp:r}=t;if(!r)return;t.data[a.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||C.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,S);const s=t.status;s&&"unknown"!==s||C.setStatus({code:g.SPAN_STATUS_OK}),i.debug.log(`[Tracing] Idle span "${t.op}" finished`);const c=l.getSpanDescendants(C).filter(e=>e!==C);let p=0;
2c.forEach(t=>{t.isRecording()&&(t.setStatus({code:g.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),o.DEBUG_BUILD&&i.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=l.spanToJSON(t),{timestamp:r=0,start_timestamp:a=0}=n,s=a<=e,c=r-a<=(I+v)/1e3;if(o.DEBUG_BUILD){const e=JSON.stringify(t,void 0,2);s?c||i.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):i.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&s||(l.removeChildSpanFromSpan(C,t),p++)}),p>0&&C.setAttribute("sentry.idle_span_discarded_spans",p)}return C.end=new Proxy(C.end,{apply(e,t,n){if(R&&R(C),d.spanIsNonRecordingSpan(t))return;const[r,...o]=n,a=r||p.timestampInSeconds(),i=l.spanTimeInputToSeconds(a),s=l.getSpanDescendants(C).filter(e=>e!==C),u=l.spanToJSON(C);if(!s.length||!N)return M(i),Reflect.apply(e,t,[i,...o]);const f=O.getOptions().ignoreSpans,g=s?.reduce((e,t)=>{const n=l.spanToJSON(t);return n.timestamp?f&&c.shouldIgnoreSpan({description:n.description,op:n.op,attributes:n.data},f)?e:e?Math.max(e,n.timestamp):n.timestamp:e},void 0),m=u.start_timestamp,h=Math.min(m?m+I/1e3:1/0,Math.max(m||-1/0,Math.min(i,g||1/0)));return M(h),Reflect.apply(e,t,[h,...o])}}),b.push(O.on("spanStart",e=>{if(T||e===C||l.spanToJSON(e).timestamp||e instanceof f.SentrySpan&&e.isStandaloneSpan())return;var t;l.getSpanDescendants(C).includes(e)&&(t=e.spanContext().spanId,U(),n.set(t,!0),k(p.timestampInSeconds()+A/1e3))})),b.push(O.on("spanEnd",e=>{var t;T||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&L(p.timestampInSeconds()+v/1e3))})),b.push(O.on("idleSpanEnableAutoFinish",e=>{e===C&&(E=!0,L(),n.size&&k())})),t.disableAutoFinish||L(),setTimeout(()=>{T||(C.setStatus({code:g.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),S="finalTimeout",C.end())},I),C}},1170:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.LANGCHAIN_INTEGRATION_NAME="LangChain",t.LANGCHAIN_ORIGIN="auto.ai.langchain",t.ROLE_MAP={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},48937:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(52751),a=n(55908),i=n(24231),s=n(2881),c=n(1170);function u(e,t={}){const{recordInputs:n}=s.resolveAIRecordingOptions(t);return new Proxy(e,{apply(e,t,s){const u=function(e){const t=e??{},n={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c.LANGCHAIN_ORIGIN,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:i.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,[i.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"embeddings",[i.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:t.model??"unknown"};return n[i.GEN_AI_SYSTEM_ATTRIBUTE]=function(e){const t=e.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}(t),"dimensions"in t&&(n[i.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=t.dimensions),"encodingFormat"in t&&(n[i.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=t.encodingFormat),n}(t),l=u[i.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown";if(n){const e=s[0];null!=e&&(u[i.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]="string"==typeof e?e:JSON.stringify(e))}return a.startSpan({name:`embeddings ${l}`,op:i.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,attributes:u},()=>Reflect.apply(e,t,s).then(void 0,e=>{throw r.captureException(e,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),e}))}})}t.instrumentEmbeddingMethod=u,t.instrumentLangChainEmbeddings=function(e,t){const n=e;return"function"==typeof n.embedQuery&&(n.embedQuery=u(n.embedQuery,t)),"function"==typeof n.embedDocuments&&(n.embedDocuments=u(n.embedDocuments,t)),e}},37135:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(52751),a=n(15363),i=n(55908),s=n(24231),c=n(2881),u=n(1170),l=n(65226);t.createLangChainCallbackHandler=function(e={}){const{recordInputs:t,recordOutputs:n}=c.resolveAIRecordingOptions(e),p=c.shouldEnableTruncation(e.enableTruncation),d=new Map,f=e=>{const t=d.get(e);t?.isRecording()&&(t.end(),d.delete(e))}
2,g={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,n,r,a,c,u,f,g){const m=l.getInvocationParams(u),h=l.extractLLMRequestAttributes(e,n,t,p,m,f),_=h[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE],y=h[s.GEN_AI_OPERATION_NAME_ATTRIBUTE];i.startSpanManual({name:`${y} ${_}`,op:"gen_ai.chat",attributes:{...l.getAgentNameFromMetadata(f),...h,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(d.set(r,e),e))},handleChatModelStart(e,n,r,a,c,u,f,g){const m=l.getInvocationParams(u),h=l.extractChatModelRequestAttributes(e,n,t,p,m,f),_=l.extractToolDefinitions(c);_&&(h[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=_);const y=h[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE],T=h[s.GEN_AI_OPERATION_NAME_ATTRIBUTE];i.startSpanManual({name:`${T} ${y}`,op:"gen_ai.chat",attributes:{...l.getAgentNameFromMetadata(f),...h,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(d.set(r,e),e))},handleLLMEnd(e,t,r,o,a){const i=d.get(t);if(i?.isRecording()){const r=l.extractLlmResponseAttributes(e,n);r&&i.setAttributes(r),f(t)}},handleLLMError(e,t){const n=d.get(t);n?.isRecording()&&(n.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),f(t)),r.captureException(e,{mechanism:{handled:!1,type:`${u.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(e,n,r,a,s,c,u,l){if(c?.__sentry_langgraph__)return;const p=l||e.name||"unknown_chain",f={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":p};t&&(f["langchain.chain.inputs"]=JSON.stringify(n)),i.startSpanManual({name:`chain ${p}`,op:"gen_ai.invoke_agent",attributes:{...f,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(d.set(r,e),e))},handleChainEnd(e,t){const r=d.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),f(t))},handleChainError(e,t){const n=d.get(t);n?.isRecording()&&(n.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),f(t)),r.captureException(e,{mechanism:{handled:!1,type:`${u.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(e,n,r,a,c,p,f){if(p?.__sentry_langgraph__)return;const g=f||e.name||"unknown_tool",m={...l.getAgentNameFromMetadata(p),[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:u.LANGCHAIN_ORIGIN,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[s.GEN_AI_TOOL_NAME_ATTRIBUTE]:g};t&&(m[s.GEN_AI_TOOL_INPUT_ATTRIBUTE]=n),i.startSpanManual({name:`execute_tool ${g}`,op:"gen_ai.execute_tool",attributes:{...m,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(d.set(r,e),e))},handleToolEnd(e,t){const r=d.get(t);if(r?.isRecording()){if(n){const t=e&&"object"==typeof e&&"content"in e?e.content:e;r.setAttributes({[s.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:"string"==typeof t?t:JSON.stringify(t)})}f(t)}},handleToolError(e,t){const n=d.get(t);n?.isRecording()&&(n.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),f(t)),r.captureException(e,{mechanism:{handled:!1,type:`${u.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy(){return g},toJSON(){return{lc:1,type:"not_implemented",id:g.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:g.lc_id}}};return g}},65226:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(52751),o=n(24231),a=n(53620),i=n(2881),s=n(1170),c=(e,t,n)=>{null!=n&&(e[t]=n)},u=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function l(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function p(e){if(Array.isArray(e))try{const t=e.map(e=>e&&"object"==typeof e&&a.isContentMedia(e)?a.stripInlineMediaFromSingleMessage(e):e);return JSON.stringify(t)}catch{return String(e)}return l(e)}function d(e){const t=e.toLowerCase();return s.ROLE_MAP[t]??t}function f(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function g(e){return e.map(e=>{const t=e._getType;if("function"==typeof t){return{role:d(t.call(e)),content:p(e.content)}}if(1===e.lc&&e.kwargs){const t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";
2return{role:d("string"==typeof n?f(n):"user"),content:p(e.kwargs?.content)}}if(e.type){return{role:d(String(e.type).toLowerCase()),content:p(e.content)}}if(e.role)return{role:d(String(e.role)),content:p(e.content)};const n=e.constructor?.name;return n&&"Object"!==n?{role:d(f(n)),content:p(e.content)}:{role:"user",content:p(e.content)}})}function m(e,t,n){const r={},a="kwargs"in e?e.kwargs:void 0,i=t?.temperature??n?.ls_temperature??a?.temperature;u(r,o.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,i);const s=t?.max_tokens??n?.ls_max_tokens??a?.max_tokens;u(r,o.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,s);const l=t?.top_p??a?.top_p;u(r,o.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,l);const p=t?.frequency_penalty;u(r,o.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,p);const d=t?.presence_penalty;return u(r,o.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,d),t&&"stream"in t&&c(r,o.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(t.stream)),r}function h(e,t,n,a,i){return{[o.GEN_AI_SYSTEM_ATTRIBUTE]:l(e??"langchain"),[o.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[o.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:l(t),[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:s.LANGCHAIN_ORIGIN,...m(n,a,i)}}function _(e){return"object"==typeof e&&"SentryCallbackHandler"===e?.name}function y(e){return e.some(_)}t._INTERNAL_mergeLangChainCallbackHandler=function(e,t){if(!e)return[t];if(function(e){if(!e||"object"!=typeof e)return!1;const t=e;return"function"==typeof t.addHandler&&"function"==typeof t.copy}(e)){if(y(e.handlers??[]))return e;const n=e.copy();return n.addHandler(t,!0),n}const n=Array.isArray(e)?e:[e];return y(n)?e:[...n,t]},t.extractChatModelRequestAttributes=function(e,t,n,r,a,s){const u=h(s?.ls_provider??e.id?.[2],a?.model??s?.ls_model_name??"unknown",e,a,s);if(n&&Array.isArray(t)&&t.length>0){const e=g(t.flat()),{systemInstructions:n,filteredMessages:a}=i.extractSystemInstructions(e);n&&c(u,o.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,n);const s=Array.isArray(a)?a.length:0;c(u,o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,s),c(u,o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,r?i.getTruncatedJsonString(a):i.getJsonString(a))}return u},t.extractLLMRequestAttributes=function(e,t,n,r,a,s){const u=s?.ls_provider,l=h(u,a?.model??s?.ls_model_name??"unknown",e,a,s);if(n&&Array.isArray(t)&&t.length>0){c(l,o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,t.length);const e=t.map(e=>({role:"user",content:e}));c(l,o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,r?i.getTruncatedJsonString(e):i.getJsonString(e))}return l},t.extractLlmResponseAttributes=function(e,t){if(!e)return;const n={};if(Array.isArray(e.generations)){const r=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(r.length>0&&c(n,o.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,l(r)),function(e,t){const n=[],r=e.flat();for(const o of r){const e=o.message,t=e?.tool_calls;if(Array.isArray(t)&&t.length>0)n.push(...t);else{const e=o.message?.content;if(Array.isArray(e))for(const t of e){const e=t;"tool_use"===e.type&&n.push(e)}}}n.length>0&&c(t,o.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,l(n))}(e.generations,n),t){const t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&c(n,o.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,l(t))}}!function(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)u(t,o.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,n.promptTokens),u(t,o.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,n.completionTokens),u(t,o.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,n.totalTokens);else if(r){u(t,o.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,r.input_tokens),u(t,o.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,r.output_tokens);const e=Number(r.input_tokens),n=Number(r.output_tokens),a=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);a>0&&u(t,o.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,a),void 0!==r.cache_creation_input_tokens&&u(t,o.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&u(t,o.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,r.cache_read_input_tokens)}}(e.llmOutput,n);const r=e.llmOutput,a=e.generations?.[0]?.[0],i=a?.message,s=r?.model_name??r?.model??i?.response_metadata?.model_name;s&&c(n,o.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,s);const p=r?.id??i?.id;
2p&&c(n,o.GEN_AI_RESPONSE_ID_ATTRIBUTE,p);const d=r?.stop_reason??i?.response_metadata?.finish_reason;return d&&c(n,o.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,l(d)),n},t.extractToolDefinitions=function(e){const t=e?.invocation_params?.tools??e?.options?.tools;if(!Array.isArray(t)||0===t.length)return;const n=t.map(e=>{const t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}});return JSON.stringify(n)},t.getAgentNameFromMetadata=function(e){const t={},n=e?.lc_agent_name;return"string"==typeof n&&(t[o.GEN_AI_AGENT_NAME_ATTRIBUTE]=n),t},t.getInvocationParams=function(e){if(e&&!Array.isArray(e))return e.invocation_params},t.normalizeLangChainMessages=g},92579:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.LANGGRAPH_INTEGRATION_NAME="LangGraph",t.LANGGRAPH_ORIGIN="auto.ai.langgraph"},50162:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(52751),a=n(15363),i=n(55908),s=n(24231),c=n(2881),u=n(37135),l=n(65226),p=n(92579),d=n(43795);let f=!1;const g="__sentry_patched__";function m(e,t){if(Object.prototype.hasOwnProperty.call(e,g))return e;const n=u.createLangChainCallbackHandler(t),c=new Proxy(e,{apply(e,c,u){return f?Reflect.apply(e,c,u):i.startSpan({op:"gen_ai.create_agent",name:"create_agent",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p.LANGGRAPH_ORIGIN,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"}},o=>{try{const r=Reflect.apply(e,c,u),a=u.length>0?u[0]:{};a?.name&&"string"==typeof a.name&&(o.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,a.name),o.updateName(`create_agent ${a.name}`));const i=r.invoke;return i&&"function"==typeof i&&(r.invoke=h(i.bind(r),r,a,t,void 0,n)),r}catch(i){throw o.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),r.captureException(i,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),i}})}});return Object.defineProperty(c,g,{value:!0,enumerable:!1}),c}function h(e,t,n,u,f,g){return new Proxy(e,{apply(e,m,h){const _=f?.modelName??f?.model;return i.startSpan({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:p.LANGGRAPH_ORIGIN,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async o=>{try{const r=n?.name;r&&"string"==typeof r&&(o.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,r),o.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,r),o.updateName(`invoke_agent ${r}`)),_&&o.setAttribute(s.GEN_AI_REQUEST_MODEL_ATTRIBUTE,_);const a=h.length>1?h[1]:void 0,i=a?.configurable,p=i?.thread_id;if(p&&"string"==typeof p&&o.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,p),g){const e=h[1]??{};h[1]=e;const t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof r?{lc_agent_name:r}:{}},e.callbacks=l._INTERNAL_mergeLangChainCallbackHandler(e.callbacks,g)}const f=d.extractToolsFromCompiledGraph(t);f&&o.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(f));const y=u.recordInputs,T=u.recordOutputs,S=h.length>0?h[0]?.messages??[]:[];if(S&&y){const e=l.normalizeLangChainMessages(S),{systemInstructions:t,filteredMessages:n}=c.extractSystemInstructions(e);t&&o.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);const r=c.shouldEnableTruncation(u.enableTruncation),a=Array.isArray(n)?n.length:0;o.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:r?c.getTruncatedJsonString(n):c.getJsonString(n),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:a})}const E=await Reflect.apply(e,m,h);return T&&d.setResponseAttributes(o,S??null,E),E}catch(i){throw o.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),r.captureException(i,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),i}})}})}t.instrumentCreateReactAgent=function(e,t){if(Object.prototype.hasOwnProperty.call(e,g))return e;const n=c.resolveAIRecordingOptions(t),r=u.createLangChainCallbackHandler(n),o=new Proxy(e,{apply(e,t,o){const a=d.extractLLMFromParams(o),i=d.extractAgentNameFromParams(o),s=o[0];let c;s&&Array.isArray(s.tools)&&s.tools.length>0&&d.wrapToolsWithSpans(s.tools,n,i??void 0),f=!0;try{c=Reflect.apply(e,t,o)}finally{f=!1}const u=c.invoke;if(u&&"function"==typeof u){const e={};i&&(e.name=i),c.invoke=h(u.bind(c),c,e,n,a,r)}return c}});return Object.defineProperty(o,g,{value:!0,enumerable:!1}),o},t.instrumentLangGraph=function(e,t){return e.compile=m(e.compile,c.resolveAIRecordingOptions(t)),e},t.instrumentStateGraphCompile=m},43795:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(52751),a=n(15363),i=n(55908),s=n(24231),c=n(65226),u=n(92579);function l(e){if(!e||0===e.length)return null;const t=[];for(const n of e)if(n&&"object"==typeof n){const e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}function p(e){const t=e;let n=0,r=0,o=0;if(t.usage_metadata&&"object"==typeof t.usage_metadata){const e=t.usage_metadata;return"number"==typeof e.input_tokens&&(n=e.input_tokens),"number"==typeof e.output_tokens&&(r=e.output_tokens),"number"==typeof e.total_tokens&&(o=e.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:o}}if(t.response_metadata&&"object"==typeof t.response_metadata){const e=t.response_metadata;if(e.tokenUsage&&"object"==typeof e.tokenUsage){const t=e.tokenUsage;"number"==typeof t.promptTokens&&(n=t.promptTokens),"number"==typeof t.completionTokens&&(r=t.completionTokens),"number"==typeof t.totalTokens&&(o=t.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:o}}function d(e,t){const n=t;if(n.response_metadata&&"object"==typeof n.response_metadata){const t=n.response_metadata;t.model_name&&"string"==typeof t.model_name&&e.setAttribute(s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,t.model_name),t.finish_reason&&"string"==typeof t.finish_reason&&e.setAttribute(s.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[t.finish_reason])}}t.extractAgentNameFromParams=function(e){const t=e[0];return"object"==typeof t&&t&&"name"in t&&"string"==typeof t.name?t.name:null},t.extractLLMFromParams=function(e){const t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;const n=t.llm;return"string"!=typeof n.modelName&&"string"!=typeof n.model?null:n},t.extractModelMetadata=d,t.extractTokenUsageFromMessage=p,t.extractToolCalls=l,t.extractToolsFromCompiledGraph=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;const t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null},t.setResponseAttributes=function(e,t,n){const r=n,o=r?.messages;if(!o||!Array.isArray(o))return;const a=t?.length??0,i=o.length>a?o.slice(a):[];if(0===i.length)return;const u=l(i);u&&e.setAttribute(s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(u));const f=c.normalizeLangChainMessages(i);e.setAttribute(s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(f));let g=0,m=0,h=0;for(const s of i){const t=p(s);g+=t.inputTokens,m+=t.outputTokens,h+=t.totalTokens,d(e,s)}g>0&&e.setAttribute(s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,g),m>0&&e.setAttribute(s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,m),h>0&&e.setAttribute(s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,h)},t.wrapToolsWithSpans=function(e,t,n){const c="__sentry_tool_wrapped__";for(const l of e){if(!l||"object"!=typeof l)continue;const e=l,p=e.invoke;if("function"!=typeof p||Object.prototype.hasOwnProperty.call(e,c))continue;const d="string"==typeof e.name?e.name:"unknown_tool",f="string"==typeof e.description?e.description:void 0,g=new Proxy(p,{apply(e,c,l){const p={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:u.LANGGRAPH_ORIGIN,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[s.GEN_AI_TOOL_NAME_ATTRIBUTE]:d,[s.GEN_AI_TOOL_TYPE_ATTRIBUTE]:"function"},g=l[1],m=g?.metadata?.lc_agent_name??n;"string"==typeof m&&(p[s.GEN_AI_AGENT_NAME_ATTRIBUTE]=m),f&&(p[s.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=f);const h=l[0];if("object"==typeof h&&h&&("id"in h&&"string"==typeof h.id&&(p[s.GEN_AI_TOOL_CALL_ID_ATTRIBUTE]=h.id),t.recordInputs)){const e="args"in h&&"object"==typeof h.args?h.args:h;try{p[s.GEN_AI_TOOL_INPUT_ATTRIBUTE]=JSON.stringify(e)}catch{}}return i.startSpan({op:s.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,name:`execute_tool ${d}`,attributes:p},async n=>{try{const r=await Reflect.apply(e,c,l);if(t.recordOutputs)try{const e=r&&"object"==typeof r&&"content"in r?r.content:r;n.setAttribute(s.GEN_AI_TOOL_OUTPUT_ATTRIBUTE,"string"==typeof e?e:JSON.stringify(e))}catch{}return r}catch(o){throw n.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),r.captureException(o,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),o}})}});e.invoke=g,Object.defineProperty(e,c,{value:!0,enumerable:!1})}return e}},8346:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(54583);t.logSpanEnd=function(e){if(!r.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >"}=a.spanToJSON(e),{spanId:i}=e.spanContext(),s=`[Tracing] Finishing "${n}" ${a.getRootSpan(e)===e?"root ":""}span "${t}" with ID ${i}`;o.debug.log(s)},t.logSpanStart=function(e){if(!r.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:i}=a.spanToJSON(e),{spanId:s}=e.spanContext(),c=a.spanIsSampled(e),u=a.getRootSpan(e),l=u===e,p=`[Tracing] Starting ${c?"sampled":"unsampled"} ${l?"root ":""}span`,d=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(i&&d.push(`parent ID: ${i}`),!l){const{op:e,description:t}=a.spanToJSON(u);d.push(`root ID: ${u.spanContext().spanId}`),e&&d.push(`root op: ${e}`),t&&d.push(`root description: ${t}`)}o.debug.log(`${p}\n ${d.join("\n ")}`)}},28945:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(52751),a=n(85110),i=n(54583);t.setMeasurement=function(e,t,n,s=i.getActiveSpan()){const c=s&&i.getRootSpan(s);c&&(r.DEBUG_BUILD&&a.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),c.addEvent(e,{[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n}))},t.timedEventsToMeasurements=function(e){if(!e||0===e.length)return;const t={};
2return e.forEach(e=>{const n=e.attributes||{},r=n[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],a=n[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof a&&(t[e.name]={value:a,unit:r})}),t}},47277:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],r=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...n];t.OPENAI_INTEGRATION_NAME="OpenAI",t.OPENAI_METHOD_REGISTRY={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},t.RESPONSES_TOOL_CALL_EVENT_TYPES=n,t.RESPONSE_EVENT_TYPES=r},49464:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(79183),a=n(52751),i=n(85110),s=n(15363),c=n(55908),u=n(24231),l=n(2881),p=n(47277),d=n(92104),f=n(55201);function g(e,t){const n={[u.GEN_AI_SYSTEM_ATTRIBUTE]:"openai",[u.GEN_AI_OPERATION_NAME_ATTRIBUTE]:t,[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0],o=function(e){const t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(n){return void(r.DEBUG_BUILD&&i.debug.error("Failed to serialize OpenAI tools:",n))}}(t);o&&(n[u.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=o),Object.assign(n,f.extractRequestParameters(t))}else n[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return n}function m(e,t,n,r){if("embeddings"===n&&"input"in t){const n=t.input;if(null==n)return;if("string"==typeof n&&0===n.length)return;if(Array.isArray(n)&&0===n.length)return;return void e.setAttribute(u.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof n?n:JSON.stringify(n))}const o="input"in t?t.input:"messages"in t?t.messages:void 0;if(!o)return;if(Array.isArray(o)&&0===o.length)return;const{systemInstructions:a,filteredMessages:i}=l.extractSystemInstructions(o);a&&e.setAttribute(u.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,a),e.setAttribute(u.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,r?l.getTruncatedJsonString(i):l.getJsonString(i)),Array.isArray(i)?e.setAttribute(u.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,i.length):e.setAttribute(u.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}function h(e,t="",n){return new Proxy(e,{get(e,r){const a=e[r],i=l.buildMethodPath(t,String(r)),_=p.OPENAI_METHOD_REGISTRY[i];return"function"==typeof a&&_?function(e,t,n,r,a){return function(...i){const p=n.operation||"unknown",h=g(i,p),_=h[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",y=i[0],T=y&&"object"==typeof y&&!0===y.stream,S={name:`${p} ${_}`,op:`gen_ai.${p}`,attributes:h};if(T){let n;const u=c.startSpanManual(S,c=>(n=e.apply(r,i),a.recordInputs&&y&&m(c,y,p,l.shouldEnableTruncation(a.enableTruncation)),(async()=>{try{const e=await n;return d.instrumentStream(e,c,a.recordOutputs??!1)}catch(e){throw c.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),o.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),c.end(),e}})()));return l.wrapPromiseWithMethods(n,u,"auto.ai.openai")}let E;const b=c.startSpan(S,n=>(E=e.apply(r,i),a.recordInputs&&y&&m(n,y,p,l.shouldEnableTruncation(a.enableTruncation)),E.then(e=>(f.addResponseAttributes(n,e,a.recordOutputs),e),e=>{throw o.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),e})));return l.wrapPromiseWithMethods(E,b,"auto.ai.openai")}}(a,i,_,e,n):"function"==typeof a?a.bind(e):a&&"object"==typeof a?h(a,i,n):a}})}t.instrumentOpenAiClient=function(e,t){return h(e,"",l.resolveAIRecordingOptions(t))}},92104:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(15363),a=n(2881),i=n(47277),s=n(55201);function c(e,t){for(const n of e){const e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){const r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}function u(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&c(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function l(e,t,n,a){if(!e||"object"!=typeof e)return void t.eventTypes.push("unknown:non-object");
2if(e instanceof Error)return a.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),void r.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in e))return;const s=e;if(i.RESPONSE_EVENT_TYPES.includes(s.type)){if(n&&("response.output_item.done"===s.type&&"item"in s&&t.responsesApiToolCalls.push(s.item),"response.output_text.delta"===s.type&&"delta"in s&&s.delta))t.responseTexts.push(s.delta);else if("response"in s){const{response:e}=s;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.input_tokens,t.completionTokens=e.usage.output_tokens,t.totalTokens=e.usage.total_tokens),e.status&&t.finishReasons.push(e.status),n&&e.output_text&&t.responseTexts.push(e.output_text)}}else t.eventTypes.push(s.type)}t.instrumentStream=async function*(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const o of e)s.isChatCompletionChunk(o)?u(o,r,n):s.isResponsesApiStreamEvent(o)&&l(o,r,n,t),yield o}finally{const e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];a.endStreamSpan(t,{...r,toolCalls:e},n)}}},55201:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(24231);t.addResponseAttributes=function(e,t,n){if(!t||"object"!=typeof t)return;const o=t,a={};if("string"==typeof o.id&&(a[r.GEN_AI_RESPONSE_ID_ATTRIBUTE]=o.id),"string"==typeof o.model&&(a[r.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=o.model),"conversation"===o.object&&"string"==typeof o.id&&(a[r.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=o.id),o.usage&&"object"==typeof o.usage){const e=o.usage,t=e.prompt_tokens??e.input_tokens;"number"==typeof t&&(a[r.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=t);const n=e.completion_tokens??e.output_tokens;"number"==typeof n&&(a[r.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n),"number"==typeof e.total_tokens&&(a[r.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=e.total_tokens)}if(Array.isArray(o.choices)){const e=o.choices,t=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(t.length>0&&(a[r.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(t)),n){const t=e.map(e=>{const t=e.message;return t?.content||""});a[r.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=JSON.stringify(t);const n=e.map(e=>{const t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&(a[r.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n))}}if("string"==typeof o.status&&(a[r.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]||(a[r.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify([o.status]))),n&&("string"!=typeof o.output_text||a[r.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]||(a[r.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=o.output_text),Array.isArray(o.output)&&o.output.length>0&&!a[r.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE])){const e=o.output.f
2ilter(e=>"function_call"===e?.type);e.length>0&&(a[r.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(e))}e.setAttributes(a)},t.extractRequestParameters=function(e){const t={[r.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:e.model??"unknown"};"temperature"in e&&(t[r.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"top_p"in e&&(t[r.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.top_p),"frequency_penalty"in e&&(t[r.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=e.frequency_penalty),"presence_penalty"in e&&(t[r.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presence_penalty),"stream"in e&&(t[r.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=e.stream),"encoding_format"in e&&(t[r.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=e.encoding_format),"dimensions"in e&&(t[r.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=e.dimensions);const n=function(e){return"conversation"in e&&"string"==typeof e.conversation?e.conversation:"previous_response_id"in e&&"string"==typeof e.previous_response_id?e.previous_response_id:void 0}(e);return n&&(t[r.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=n),t},t.isChatCompletionChunk=function(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion.chunk"===e.object},t.isResponsesApiStreamEvent=function(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.startsWith("response.")}},79816:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(51228),i=n(10393);t.sampleSpan=function(e,t,n){if(!a.hasSpansEnabled(e))return[!1];let s,c;"function"==typeof e.tracesSampler?(c=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),s=!0):void 0!==t.parentSampled?c=t.parentSampled:void 0!==e.tracesSampleRate&&(c=e.tracesSampleRate,s=!0);const u=i.parseSampleRate(c);if(void 0===u)return r.DEBUG_BUILD&&o.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(c)} of type ${JSON.stringify(typeof c)}.`),[!1];if(!u)return r.DEBUG_BUILD&&o.debug.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,u,s];const l=n<u;return l||r.DEBUG_BUILD&&o.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(c)})`),[l,u,s]}},67392:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(96159),o=n(58913),a=n(54583),i=Symbol.for("sentry.nonRecordingSpan");t.SentryNonRecordingSpan=class{constructor(e={}){this._traceId=e.traceId||o.generateTraceId(),this._spanId=e.spanId||o.generateSpanId(),this.dropReason=e.dropReason,r.addNonEnumerableProperty(this,i,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:a.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}},t.spanIsNonRecordingSpan=function(e){return!!e&&!0===e[i]}},30242:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(68974),a=n(30238),i=n(52751),s=n(85110),c=n(58913),u=n(54583),l=n(26869),p=n(93754),d=n(8346),f=n(28945),g=n(85526),m=n(64284);class h{constructor(e={}){this._traceId=e.traceId||c.generateTraceId(),this._spanId=e.spanId||c.generateSpanId(),this._startTime=e.startTimestamp||l.timestampInSeconds(),this._links=e.links,this._attributes={},this.setAttributes({[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?u.TRACE_FLAG_SAMPLED:u.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=u.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,m.spanShouldInferOtelSource(this)||this.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=u.spanTimeInputToSeconds(e),d.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[i.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[i.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[i.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:f.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&u.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?u.getRootSpan(this).spanContext().spanId:void 0,links:u.convertSpanLinksForEnvelope(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===u.getRootSpan(this),status:u.getSimpleStatus(this._status),attributes:u.addStatusMessageAttribute(this._attributes,this._status),links:u.getStreamedSpanLinks(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){o.DEBUG_BUILD&&s.debug.log("[Tracing] Adding an event to span:",e);const r=_(t)?t:n||l.timestampInSeconds(),a=_(t)?{}:t||{},i={name:e,time:u.spanTimeInputToSeconds(r),attributes:a};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=r.getClient();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===u.getRootSpan(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=r.getClient();if(!t)return;const n=e[1];
2if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(a.createSpanEnvelope([this],e)):(o.DEBUG_BUILD&&s.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(e&&g.hasSpanStreamingEnabled(e))return void e.emit("afterSegmentSpanEnd",this);const t=this._convertSpanToTransaction();if(t){(m.getCapturedScopesOnSpan(this).scope||r.getCurrentScope()).captureEvent(t)}}_convertSpanToTransaction(){if(!y(u.spanToJSON(this)))return;this._name||(o.DEBUG_BUILD&&s.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=m.getCapturedScopesOnSpan(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=u.getSpanDescendants(this).filter(e=>e!==this&&!function(e){return e instanceof h&&e.isStandaloneSpan()}(e)).map(e=>u.spanToJSON(e)).filter(y),a=this._attributes[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[i.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let c=!1;r.forEach(e=>{delete e.data[i.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],e.op?.startsWith("gen_ai.")&&(c=!0)});const l={contexts:{trace:u.spanToTransactionTraceContext(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:p.getDynamicSamplingContextFromSpan(this),hasGenAiSpans:c},request:n,...a&&{transaction_info:{source:a}}},d=f.timedEventsToMeasurements(this._events);return d&&Object.keys(d).length&&(o.DEBUG_BUILD&&s.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(d,void 0,2)),l.measurements=d),l}}function _(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function y(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}t.SentrySpan=h},95150:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(96159);t.isStreamedBeforeSendSpanCallback=function(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed},t.withStreamedSpan=function(e){return r.addNonEnumerableProperty(e,"_streamed",!0),e}},47473:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(52751),o=n(37402),a=n(54583),i=n(64284),s=n(95150),c=n(49593),u=n(42501);function l(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}function p(e,t){const n=t(e);return n||(a.showSpanDropWarning(),e)}t.applyBeforeSendSpanCallback=p,t.captureSpan=function(e,t){const n=a.spanToStreamedSpanJSON(e),d=a.INTERNAL_getSegmentSpan(e),f=a.spanToStreamedSpanJSON(d),{isolationScope:g,scope:m}=i.getCapturedScopesOnSpan(e),h=o.getCombinedScopeData(g,m);!function(e,t,n,o){const a=n.getSdkMetadata(),{release:i,environment:s}=n.getOptions();l(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:i,[r.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:s||u.DEFAULT_ENVIRONMENT,[r.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME]:t.name,[r.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]:t.span_id,[r.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]:a?.sdk?.name,[r.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]:a?.sdk?.version,[r.SEMANTIC_ATTRIBUTE_USER_ID]:o.user?.id,[r.SEMANTIC_ATTRIBUTE_USER_EMAIL]:o.user?.email,[r.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:o.user?.ip_address,[r.SEMANTIC_ATTRIBUTE_USER_USERNAME]:o.user?.username,...o.attributes})}(n,f,t,h);const _=e.kind;t.emit("preprocessSpan",n,{spanKind:_}),n.is_segment&&(!function(e,t){const n=c.scopeContextsToSpanAttributes(t.contexts);l(e,n)}(n,h),function(e,t){const n=t.getIntegrationNames();if(!n.length)return;l(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:n})}(n,t),t.emit("processSegmentSpan",n)),t.emit("processSpan",n);const{beforeSendSpan:y}=t.getOptions(),T=y&&s.isStreamedBeforeSendSpanCallback(y)?p(n,y):n,S=T.attributes?.[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return S&&l(T,{"sentry.span.source":S}),{...a.streamedSpanJsonToSerializedSpan(T),_segmentSpan:d}},t.safeSetSpanJSONAttributes=l},26287:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(21811),o=n(99188),a=n(64702),i=n(83031);function s(e){return!!e.trace_id&&!!e.public_key}t.createStreamedSpanEnvelope=function(e,t,n){const c=n.getOptions(),u=n.getDsn(),l=c.tunnel,p=o.getSdkMetadataForEnvelopeHeader(c._metadata),d={sent_at:new Date(i.safeDateNow()).toISOString(),...s(t)&&{trace:t},...p&&{sdk:p},...!!l&&u&&{dsn:r.dsnToString(u)}},f=n.getDataCollectionOptions().userInfo?"auto":"never",g=[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...a.isBrowser()&&{ingest_settings:{infer_ip:f,infer_user_agent:f}},items:e}];return o.createEnvelope(d,[g])}},13696:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(22147);t.estimateSerializedSpanSizeInBytes=function(e){let t=156;if(t+=2*e.name.length,t+=r.estimateTypedAttributesSizeInBytes(e.attributes),e.links&&e.links.length>0){const n=e.links[0],o=n?.attributes;t+=(100+(o?r.estimateTypedAttributesSizeInBytes(o):0))*e.links.length}return t}},34983:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(64702),o=n(85526),a=n(4805);t.extractGenAiSpansFromEvent=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||o.hasSpanStreamingEnabled(t))return;const n=[],i=[];for(const r of e.spans)r.op?.startsWith("gen_ai.")?n.push(a.spanJsonToSerializedStreamedSpan(r)):i.push(r);if(0===n.length)return;e.spans=i;const s=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...r.isBrowser()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}},85526:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.hasSpanStreamingEnabled=function(e){return"stream"===e.getOptions().traceLifecycle}},49593:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.scopeContextsToSpanAttributes=function(e){const t={},{response:n,profile:r,cloud_resource:o,culture:a,state:i}=e;if(n&&(null!=n.status_code&&(t["http.response.status_code"]=n.status_code),null!=n.body_size&&(t["http.response.body.size"]=n.body_size)),r&&(r.profile_id&&(t["sentry.profile_id"]=r.profile_id),r.profiler_id&&(t["sentry.profiler_id"]=r.profiler_id)),o)for(const[u,l]of Object.entries(o))null!=l&&(t[u]=l);a&&(a.locale&&(t["culture.locale"]=a.locale),a.timezone&&(t["culture.timezone"]=a.timezone)),i?.state&&"string"==typeof i.state.type&&(t["state.type"]=i.state.type);const s=e.angular;if(s){const e=s.version;"string"!=typeof e&&"number"!=typeof e||(t["angular.version"]=e)}const c=e.react;if(c){const e=c.version;"string"!=typeof e&&"number"!=typeof e||(t["react.version"]=e)}return t}},13161:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(41335),i=n(93754),s=n(26287),c=n(13696);t.SpanBuffer=class{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:o}=t??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=o&&o>0?o:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>
2{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){const t=e.trace_id;let n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:a.safeUnref(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=c.estimateSerializedSpanSizeInBytes(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(r.DEBUG_BUILD&&o.debug.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){const t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size)return void this._removeTrace(e);const n=Array.from(t.spans),a=n[0]?._segmentSpan;if(!a)return r.DEBUG_BUILD&&o.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(e);const c=i.getDynamicSamplingContextFromSpan(a),u=n.map(e=>{const{_segmentSpan:t,...n}=e;return n}),l=s.createStreamedSpanEnvelope(u,c,this._client);r.DEBUG_BUILD&&o.debug.log(`Sending span envelope for trace ${e} with ${u.length} spans`),this._client.sendEnvelope(l).then(null,e=>{r.DEBUG_BUILD&&o.debug.error("Error while sending streamed span envelope:",e)}),this._removeTrace(e)}_removeTrace(e){const t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}},4805:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(54583);t.spanJsonToSerializedStreamedSpan=function(e){const t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return r.streamedSpanJsonToSerializedSpan(t)}},15363:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function n(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}t.SPAN_STATUS_ERROR=2,t.SPAN_STATUS_OK=1,t.SPAN_STATUS_UNSET=0,t.getSpanStatusFromHttpCode=n,t.setHttpStatus=function(e,t){e.setAttribute("http.response.status_code",t);const r=n(t);"unknown_error"!==r.message&&e.setStatus(r)}},55908:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(42810),o=n(73220),a=n(49564),i=n(68974),s=n(52751),c=n(5684),u=n(85110),l=n(76354),p=n(51228),d=n(87687),f=n(85526),g=n(10393),m=n(58913),h=n(83031),_=n(64865),y=n(54583),T=n(23336),S=n(93754),E=n(8346),b=n(79816),v=n(67392),I=n(30242),A=n(15363),R=n(64284),N="__SENTRY_SUPPRESS_TRACING__";function O(e,t){const n=k();return n.withActiveSpan?n.withActiveSpan(e,t):a.withScope(n=>(_._setSpanForScope(n,e||void 0),t(n)))}function P(e=a.getCurrentScope()){const t=k();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata[N]}function w(e){const t=k();return t.startNewTrace?t.startNewTrace(e):a.withScope(t=>(t.setPropagationContext({traceId:m.generateTraceId(),sampleRand:h.safeMathRandom()}),i.DEBUG_BUILD&&u.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),O(null,e)))}function C(e,t){t?.recordDroppedEvent("no_parent_span","span");const n=new v.SentryNonRecordingSpan({traceId:e.getPropagationContext().traceId});return R.setCapturedScopesOnSpan(n,e,a.getIsolationScope()),n}function U({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){const o=a.getIsolationScope();if(!p.hasSpansEnabled()){const t={...o.getPropagationContext(),...r.getPropagationContext()},a=e?e.spanContext().traceId:t.traceId,i=new v.SentryNonRecordingSpan({traceId:a});return e&&!n&&y.addChildSpanToSpan(e,i),R.setCapturedScopesOnSpan(i,r,o),i}const i=a.getClient();if(function(e,t){const n=e?.getOptions().ignoreSpans;if(!e||!f.hasSpanStreamingEnabled(e)||!n?.length)return!1;return d.shouldIgnoreSpan({description:t.name||"",op:t.attributes?.[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]||t.op,attributes:t.attributes},n)}(i,t)){P(r)||i?.recordDroppedEvent("ignored","span");const t=new v.SentryNonRecordingSpan({dropReason:"ignored",traceId:e?.
2spanContext().traceId??r.getPropagationContext().traceId});return R.setCapturedScopesOnSpan(t,r,o),t}let c;if(e&&!n)c=function(e,t,n,r){const{spanId:o,traceId:i}=e.spanContext(),s=P(t),c=!s&&y.spanIsSampled(e),u=c?new I.SentrySpan({...n,parentSpanId:o,traceId:i,sampled:c}):new v.SentryNonRecordingSpan({traceId:i});y.addChildSpanToSpan(e,u),R.setCapturedScopesOnSpan(u,t,r);const l=a.getClient();if(!l)return u;f.hasSpanStreamingEnabled(l)&&v.spanIsNonRecordingSpan(u)&&(v.spanIsNonRecordingSpan(e)&&e.dropReason?(u.dropReason=e.dropReason,l.recordDroppedEvent(e.dropReason,"span")):s||(u.dropReason="sample_rate",l.recordDroppedEvent("sample_rate","span")));l.emit("spanStart",u),n.endTimestamp&&(l.emit("spanEnd",u),l.emit("afterSpanEnd",u));return u}(e,r,t,o),y.addChildSpanToSpan(e,c);else if(e){const n=S.getDynamicSamplingContextFromSpan(e),{traceId:a,spanId:i}=e.spanContext(),s=y.spanIsSampled(e);c=M({traceId:a,parentSpanId:i,...t},r,o,s),S.freezeDscOnSpan(c,n)}else{const{traceId:e,dsc:n,parentSpanId:a,sampled:i}={...o.getPropagationContext(),...r.getPropagationContext()};c=M({traceId:e,parentSpanId:a,...t},r,o,i),n&&S.freezeDscOnSpan(c,n)}return E.logSpanStart(c),c}function L(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=y.spanTimeInputToSeconds(e.startTime),delete n.startTime,n}return t}function k(){const e=o.getMainCarrier();return r.getAsyncContextStrategy(e)}function M(e,t,n,r){const o=a.getClient(),c=o?.getOptions()||{},{name:l=""}=e,p={spanAttributes:{...e.attributes},spanName:l,parentSampled:r};o?.emit("beforeSampling",p,{decision:!1});const d=p.parentSampled??r,m=p.spanAttributes,h=t.getPropagationContext(),_=P(t),[y,T,S]=_?[!1]:b.sampleSpan(c,{name:l,parentSampled:d,attributes:m,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:g.parseSampleRate(h.dsc?.sample_rate)},h.sampleRand),E=new I.SentrySpan({...e,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==T&&S?T:void 0,...m},sampled:y}
2);return y||!o||_||(i.DEBUG_BUILD&&u.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),o.recordDroppedEvent("sample_rate",f.hasSpanStreamingEnabled(o)?"span":"transaction")),R.setCapturedScopesOnSpan(E,t,n),o&&o.emit("spanStart",E),E}function x(e,t){if(t)return t;if(null===t)return;const n=_._getSpanForScope(e);if(!n)return;const r=a.getClient();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?y.getRootSpan(n):n}function B(e){return void 0!==e?t=>O(e,t):e=>e()}function D(e){return v.spanIsNonRecordingSpan(e)&&"ignored"===e.dropReason}t.SUPPRESS_TRACING_KEY=N,t.continueTrace=(e,t)=>{const n=o.getMainCarrier(),i=r.getAsyncContextStrategy(n);if(i.continueTrace)return i.continueTrace(e,t);const{sentryTrace:s,baggage:u}=e,l=a.getClient(),p=c.baggageHeaderToDynamicSamplingContext(u);return l&&!T.shouldContinueTrace(l,p?.org_id)?w(t):a.withScope(e=>{const n=T.propagationContextFromHeaders(s,u);return e.setPropagationContext(n),_._setSpanForScope(e,void 0),t()})},t.isTracingSuppressed=P,t.startInactiveSpan=function(e){const t=k();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=L(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>a.withScope(e.scope,t):void 0!==o?e=>O(o,e):e=>e())(()=>{const t=a.getCurrentScope(),i=x(t,o),s=a.getClient();return e.onlyIfParent&&!i?C(t,s):U({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})},t.startNewTrace=w,t.startSpan=function(e,t){const n=k();if(n.startSpan)return n.startSpan(e,t);const r=L(e),{forceTransaction:o,parentSpan:i,scope:s}=e,c=s?.clone();return a.withScope(c,()=>B(i)(()=>{const n=a.getCurrentScope(),s=x(n,i),c=a.getClient(),u=e.onlyIfParent&&!s?C(n,c):U({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return D(u)&&s||_._setSpanForScope(n,u),l.handleCallbackErrors(()=>t(u),()=>{const{status:e}=y.spanToJSON(u);!u.isRecording()||e&&"ok"!==e||u.setStatus({code:A.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{u.end()})}))},t.startSpanManual=function(e,t){const n=k();if(n.startSpanManual)return n.startSpanManual(e,t);const r=L(e),{forceTransaction:o,parentSpan:i,scope:s}=e,c=s?.clone();return a.withScope(c,()=>B(i)(()=>{const n=a.getCurrentScope(),s=x(n,i),c=e.onlyIfParent&&!s?C(n,a.getClient()):U({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return D(c)&&s||_._setSpanForScope(n,c),l.handleCallbackErrors(()=>t(c,()=>c.end()),()=>{const{status:e}=y.spanToJSON(c);!c.isRecording()||e&&"ok"!==e||c.setStatus({code:A.SPAN_STATUS_ERROR,message:"internal_error"})})}))},t.suppressTracing=function(e){const t=k();return t.suppressTracing?t.suppressTracing(e):a.withScope(t=>{t.setSDKProcessingMetadata({[N]:!0});const n=e();return t.setSDKProcessingMetadata({[N]:void 0}),n})},t.withActiveSpan=O},64284:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(96159),o=n(23879),a="_sentryScope",i="_sentryIsolationScope",s=Symbol.for("sentry.otelSourceInference");t.getCapturedScopesOnSpan=function(e){const t=e;return{scope:t[a],isolationScope:o.derefWeakRef(t[i])}},t.markSpanForOtelSourceInference=function(e){r.addNonEnumerableProperty(e,s,!0)},t.setCapturedScopesOnSpan=function(e,t,n){e&&(r.addNonEnumerableProperty(e,i,o.makeWeakRef(n)),r.addNonEnumerableProperty(e,a,t))},t.spanShouldInferOtelSource=function(e){return!0===e[s]}},57471:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=new Map,r=new Map,o=new Map([["ai.generateText","invoke_agent"],["ai.streamText","invoke_agent"],["ai.generateObject","invoke_agent"],["ai.streamObject","invoke_agent"],["ai.generateText.doGenerate","generate_content"],["ai.streamText.doStream","generate_content"],["ai.generateObject.doGenerate","generate_content"],["ai.streamObject.doStream","generate_content"],["ai.embed.doEmbed","embeddings"],["ai.embedMany.doEmbed","embeddings"],["ai.rerank.doRerank","rerank"],["ai.toolCall","execute_tool"]]);t.SPAN_TO_OPERATION_NAME=o,t.toolCallSpanContextMap=n,t.toolDescriptionMap=r},61038:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(52751),a=n(2881),i=n(54583),s=n(24231),c=n(57471),u=n(85526),l=n(67935),p=n(87350);function d(e){const{data:t,description:n}=i.spanToJSON(e);if(!n)return;if(t[p.AI_TOOL_CALL_NAME_ATTRIBUTE]&&t[p.AI_TOOL_CALL_ID_ATTRIBUTE]&&"ai.toolCall"===n)return void function(e,t){e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel"),e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.execute_tool"),e.setAttribute(s.GEN_AI_OPERATION_NAME_ATTRIBUTE,"execute_tool"),_(t,p.AI_TOOL_CALL_NAME_ATTRIBUTE,s.GEN_AI_TOOL_NAME_ATTRIBUTE),_(t,p.AI_TOOL_CALL_ID_ATTRIBUTE,s.GEN_AI_TOOL_CALL_ID_ATTRIBUTE);const n=t[s.GEN_AI_TOOL_CALL_ID_ATTRIBUTE];"string"==typeof n&&c.toolCallSpanContextMap.set(n,e.spanContext());t[s.GEN_AI_TOOL_TYPE_ATTRIBUTE]||e.setAttribute(s.GEN_AI_TOOL_TYPE_ATTRIBUTE,"function");const r=t[s.GEN_AI_TOOL_NAME_ATTRIBUTE];r&&e.updateName(`execute_tool ${r}`)}(e,t);
2if(!t[p.AI_OPERATION_ID_ATTRIBUTE]&&!n.startsWith("ai."))return;const d=r.getClient(),f=d?.getIntegrationByName("VercelAI");!function(e,t,n,a){e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.vercelai.otel");const d=t.replace("ai.","");e.setAttribute("ai.pipeline.name",d),e.updateName(d);const f=n[p.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE];f&&"string"==typeof f&&e.setAttribute("gen_ai.function_id",f);l.requestMessagesFromPrompt(e,n,a),n[p.AI_MODEL_ID_ATTRIBUTE]&&!n[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]&&e.setAttribute(s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,n[p.AI_MODEL_ID_ATTRIBUTE]);e.setAttribute("ai.streaming",t.includes("stream"));const g=c.SPAN_TO_OPERATION_NAME.get(t);g?e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_OP,`gen_ai.${g}`):t.startsWith("ai.stream")&&e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_OP,"ai.run");if("invoke_agent"===g)return void(f&&"string"==typeof f?e.updateName(`invoke_agent ${f}`):e.updateName("invoke_agent"));const m=n[p.AI_MODEL_ID_ATTRIBUTE];m&&g&&e.updateName(`${g} ${m}`);const h=r.getClient();if(h&&u.hasSpanStreamingEnabled(h)&&n[p.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(n[p.AI_PROMPT_TOOLS_ATTRIBUTE])){const t=new Map;for(const e of n[p.AI_PROMPT_TOOLS_ATTRIBUTE])try{const n="string"==typeof e?JSON.parse(e):e;n?.name&&n?.description&&t.set(n.name,n.description)}catch{}if(t.size>0){const n=i.spanToJSON(e).parent_span_id;n&&c.toolDescriptionMap.set(n,t)}}}(e,n,t,a.shouldEnableTruncation(f?.options?.enableTruncation))}function f(e){if("transaction"===e.type&&e.spans){const t=new Map;for(const r of e.spans)h(r),l.accumulateTokensForParent(r,t);l.applyToolDescriptionsAndTokens(e.spans,t);const n=e.contexts?.trace;"gen_ai.invoke_agent"===n?.op&&l.applyAccumulatedTokens(n,t)}return e}function g(e){return"string"!=typeof e?"stop":"tool-calls"===e?"tool_call":e}function m(e){_(e,p.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE,s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),_(e,p.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE,s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),_(e,p.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE,s.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE),_(e,"ai.usage.inputTokens",s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),_(e,"ai.usage.outputTokens",s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),_(e,p.AI_USAGE_TOKENS_ATTRIBUTE,s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),_(e,"ai.response.avgOutputTokensPerSecond","ai.response.avgCompletionTokensPerSecond");if(Object.keys(e).some(e=>e.startsWith(p.AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX))||"number"!=typeof e[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]||"number"!=typeof e[s.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]||(e[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=e[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]+e[s.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]),"number"==typeof e[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]){const t="number"==typeof e[s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]?e[s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:0;e[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=t+e[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]}if(e[p.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(e[p.AI_PROMPT_TOOLS_ATTRIBUTE])&&(e[p.AI_PROMPT_TOOLS_ATTRIBUTE]=l.convertAvailableToolsToJsonString(e[p.AI_PROMPT_TOOLS_ATTRIBUTE])),e[p.OPERATION_NAME_ATTRIBUTE]){const t=e[p.AI_OPERATION_ID_ATTRIBUTE]?e[p.AI_OPERATION_ID_ATTRIBUTE]:e[p.OPERATION_NAME_ATTRIBUTE],n=c.SPAN_TO_OPERATION_NAME.get(t)??t;e[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]=n,delete e[p.OPERATION_NAME_ATTRIBUTE]}if(_(e,p.AI_PROMPT_MESSAGES_ATTRIBUTE,s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE),function(e){const t=e[p.AI_RESPONSE_TEXT_ATTRIBUTE],n=e[p.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE],r=e[p.AI_RESPONSE_FINISH_REASON_ATTRIBUTE];if(null==t&&null==n)return;const o=[];if("string"==typeof t&&t.length>0&&o.push({type:"text",content:t}),null!=n)try{const t="string"==typeof n?JSON.parse(n):n;if(Array.isArray(t)){for(const e of t){const t=e.input??e.args;o.push({type:"tool_call",id:e.toolCallId,name:e.toolName,arguments:"string"==typeof t?t:JSON.stringify(t??{})})}delete e[p.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]}}catch{}if(o.length>0){const t={role:"assistant",parts:o,finish_reason:g(r)};e[s.GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE]=JSON.stringify([t]),delete e[p.AI_RESPONSE_TEXT_ATTRIBUTE]}}(e),_(e,p.AI_RESPONSE_OBJECT_ATTRIBUTE,"gen_ai.response.object"),_(e,p.AI_PROMPT_TOOLS_ATTRIBUTE,"gen_ai.request.available_tools"),_(e,p.AI_TOOL_CALL_ARGS_ATTRIBUTE,s.GEN_AI_TOOL_INPUT_ATTRIBUTE),_(e,p.AI_TOOL_CALL_RESULT_ATTRIBUTE,s.GEN_AI_TOOL_OUTPUT_ATTRIBUTE),_(e,p.AI_SCHEMA_ATTRIBUTE,"gen_ai.request.schema"),_(e,p.AI_MODEL_ID_ATTRIBUTE,s.GEN_AI_REQUEST_MODEL_ATTRIBUTE),Array.isArray(e[p.AI_VALUES_ATTRIBUTE])){const t=e[p.AI_VALUES_ATTRIBUTE].map(e=>{try{return JSON.parse(e)}catch{return e}});e[s.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]=1===t.length?t[0]:JSON.stringify(t)}!function(e){const t=e[p.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE];if(!t)return;try{const n=y(JSON.parse(t));for(const[t,r]of Object.entries(n))t===s.GEN_AI_CONVERSATION_ID_ATTRIBUTE&&e[t]||(e[t]=r)}catch{}}(e);for(const t of Object.keys(e))Array.isArray(e[t])&&(e[t]=JSON.stringify(e[t])),t.startsWith("ai.")&&_(e,t,`vercel.${t}`)}function h(e){const{data:t,origin:n}=e;"auto.vercelai.otel"===n&&(e.status&&"ok"!==e.status&&(e.status="internal_error"),m(t))}function _(e,t,n){null!=e[t]&&(e[n]=e[t],delete e[t])}function y(e){const t={};if(!e||"object"!=typeof e)return t;const n=e,r=n.openai??n.azure;if(r&&(T(t,s.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,r.cachedPromptTokens),T(t,"gen_ai.usage.output_tokens.reasoning",r.reasoningTokens),T(t,"gen_ai.usage.output_tokens.prediction_accepted",r.acceptedPredictionTokens),T(t,"gen_ai.usage.output_tokens.prediction_rejected",r.rejectedPredictionTokens),T(t,s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,r.responseId)),n.anthropic){const e=n.anthropic.usage?.cache_read_input_tokens??n.anthropic.cacheReadInputTokens;T(t,s.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,e);const r=n.anthropic.usage?.cache_creation_input_tokens??n.anthropic.cacheCreationInputTokens;T(t,s.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,r)}return n.bedrock?.usage&&(T(t,s.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,n.bedrock.usage.cacheReadInputTokens),T(t,s.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,n.bedrock.usage.cacheWriteInputTokens)),n.deepseek&&(T(t,s.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,n.deepseek.promptCacheHitTokens),T(t,"gen_ai.usage.input_tokens.cache_miss",n.deepseek.promptCacheMissTokens)),t}function T(e,t,n){null!=n&&(e[t]=n)}t.addVercelAiProcessors=function(e){e.on("spanStart",d),e.addEventProcessor(Object.assign(f,{id:"VercelAiEventProcessor"})),e.on("processSpan",e=>{!function(e){const t=e.attributes;if("auto.vercelai.otel"===t?.[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]){if(m(t),"gen_ai.execute_tool"===t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&e.parent_span_id){const n=c.toolDescriptionMap.get(e.parent_span_id);if(n){const e=t[s.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof e){const r=n.get(e);r&&(t[s.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=r)}}}c.toolDescriptionMap.delete(e.span_id)}}(e)})},t.getProviderMetadataAttributes=y,t.processVercelAiSpanAttributes=m},67935:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(24231),o=n(2881),a=n(57471),i=n(87350);function s(e,t){const n=t.get(e.span_id);n&&e.data&&(n.inputTokens>0&&(e.data[r.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=n.inputTokens),n.outputTokens>0&&(e.data[r.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n.outputTokens),(n.inputTokens>0||n.outputTokens>0)&&(e.data["gen_ai.usage.total_tokens"]=n.inputTokens+n.outputTokens))}function c(e){return e.filter(e=>!!e&&"object"==typeof e&&"role"in e&&"content"in e)}function u(e){try{const t=JSON.parse(e);if(t&&"object"==typeof t){let{messages:e}=t;const{prompt:n,system:r}=t,o=[];if("string"==typeof r&&o.push({role:"system",content:r}),"string"==typeof e)try{e=JSON.parse(e)}catch{}if(Array.isArray(e))return o.push(...c(e)),o;if(Array.isArray(n))return o.push(...c(n)),o;if("string"==typeof n&&o.push({role:"user",content:n}),o.length>0)return o}}catch{}return[]}t._INTERNAL_cleanupToolCallSpanContext=function(e){a.toolCallSpanContextMap.delete(e)},t._INTERNAL_getSpanContextForToolCallId=function(e){return a.toolCallSpanContextMap.get(e)},t.accumulateTokensForParent=function(e,t){const n=e.parent_span_id;if(!n)return;const o=e.data[r.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE],a=e.data[r.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE];if("number"==typeof o||"number"==typeof a){const e=t.get(n)||{inputTokens:0,outputTokens:0};"number"==typeof o&&(e.inputTokens+=o),"number"==typeof a&&(e.outputTokens+=a),t.set(n,e)}},t.applyAccumulatedTokens=s,t.applyToolDescriptionsAndTokens=function(e,t){const n=function(e){const t=new Map;for(const n of e){const e=n.data[r.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE];if("string"==typeof e)try{const n=JSON.parse(e);for(const e of n)e.name&&e.description&&!t.has(e.name)&&t.set(e.name,e.description)}catch{}}return t}(e);for(const o of e){if("gen_ai.execute_tool"===o.op){const e=o.data[r.GEN_AI_TOOL_NAME_ATTRIBUTE];if("string"==typeof e){const t=n.get(e);t&&(o.data[r.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=t)}}"gen_ai.invoke_agent"===o.op&&s(o,t)}},t.convertAvailableToolsToJsonString=function(e){const t=e.map(e=>{if("string"==typeof e)try{return JSON.parse(e)}catch{return e}return e});return JSON.stringify(t)},t.convertUserInputToMessagesFormat=u,t.requestMessagesFromPrompt=function(e,t,n){if("string"!=typeof t[i.AI_PROMPT_ATTRIBUTE]||t[r.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]||t[i.AI_PROMPT_MESSAGES_ATTRIBUTE]){if
2("string"==typeof t[i.AI_PROMPT_MESSAGES_ATTRIBUTE]){const a=t[i.AI_PROMPT_MESSAGES_ATTRIBUTE];try{const t=JSON.parse(a);if(Array.isArray(t)){const{systemInstructions:s,filteredMessages:c}=o.extractSystemInstructions(t);s&&e.setAttribute(r.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,s);const u=Array.isArray(c)?c.length:0,l=n||c!==t?n?o.getTruncatedJsonString(c):o.getJsonString(c):a;e.setAttributes({[i.AI_PROMPT_MESSAGES_ATTRIBUTE]:l,[r.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:l,[r.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:u})}}catch{}}}else{const a=u(t[i.AI_PROMPT_ATTRIBUTE]);if(a.length){const{systemInstructions:t,filteredMessages:s}=o.extractSystemInstructions(a);t&&e.setAttribute(r.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);const c=Array.isArray(s)?s.length:0,u=n?o.getTruncatedJsonString(s):o.getJsonString(s);e.setAttributes({[i.AI_PROMPT_ATTRIBUTE]:u,[r.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:u,[r.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:c})}}}},87350:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.AI_MODEL_ID_ATTRIBUTE="ai.model.id",t.AI_OPERATION_ID_ATTRIBUTE="ai.operationId",t.AI_PROMPT_ATTRIBUTE="ai.prompt",t.AI_PROMPT_MESSAGES_ATTRIBUTE="ai.prompt.messages",t.AI_PROMPT_TOOLS_ATTRIBUTE="ai.prompt.tools",t.AI_RESPONSE_FINISH_REASON_ATTRIBUTE="ai.response.finishReason",t.AI_RESPONSE_OBJECT_ATTRIBUTE="ai.response.object",t.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE="ai.response.providerMetadata",t.AI_RESPONSE_TEXT_ATTRIBUTE="ai.response.text",t.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE="ai.response.toolCalls",t.AI_SCHEMA_ATTRIBUTE="ai.schema",t.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE="ai.telemetry.functionId",t.AI_TOOL_CALL_ARGS_ATTRIBUTE="ai.toolCall.args",t.AI_TOOL_CALL_ID_ATTRIBUTE="ai.toolCall.id",t.AI_TOOL_CALL_NAME_ATTRIBUTE="ai.toolCall.name",t.AI_TOOL_CALL_RESULT_ATTRIBUTE="ai.toolCall.result",t.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE="ai.usage.cachedInputTokens",t.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE="ai.usage.completionTokens",t.AI_USAGE_INPUT_TOKEN_DETAILS_ATTRIBUTE_PREFIX="ai.usage.inputTokenDetails.",t.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE="ai.usage.promptTokens",t.AI_USAGE_TOKENS_ATTRIBUTE="ai.usage.tokens",t.AI_VALUES_ATTRIBUTE="ai.values",t.OPERATION_NAME_ATTRIBUTE="operation.name"},64450:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(99188),i=n(31901),s=n(28119);t.DEFAULT_TRANSPORT_BUFFER_SIZE=64,t.createTransport=function(e,t,n=i.makePromiseBuffer(e.bufferSize||64)){let c={};return{send:function(u){const l=[];if(a.forEachEnvelopeItem(u,(t,n)=>{const r=a.envelopeItemTypeToDataCategory(n);s.isRateLimited(c,r)?e.recordDroppedEvent("ratelimit_backoff",r):l.push(t)}),0===l.length)return Promise.resolve({});const p=a.createEnvelope(u[0],l),d=t=>{a.envelopeContainsItemType(p,["client_report"])?r.DEBUG_BUILD&&o.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}
2).`):a.forEachEnvelopeItem(p,(n,r)=>{e.recordDroppedEvent(t,a.envelopeItemTypeToDataCategory(r))})};return n.add(()=>t({body:a.serializeEnvelope(p)}).then(e=>413===e.statusCode?(r.DEBUG_BUILD&&o.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),d("send_error"),e):(r.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&o.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),c=s.updateRateLimits(c,e),e),e=>{throw d("network_error"),r.DEBUG_BUILD&&o.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===i.SENTRY_BUFFER_FULL_ERROR)return r.DEBUG_BUILD&&o.debug.error("Skipped sending event because buffer is full."),d("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}},14082:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(85740),o=n(21811),a=n(99188),i="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function s(e,t){let n;return a.forEachEnvelopeItem(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function c(e,t){return a.createEnvelope(t?{...e[0],dsn:t}:e[0],e[1])}t.MULTIPLEXED_TRANSPORT_EXTRA_KEY=i,t.eventFromEnvelope=s,t.makeMultiplexedTransport=function(e,t){return n=>{const a=e(n),u=new Map,l=t||(e=>{const t=e.getEvent();return t?.extra?.[i]&&Array.isArray(t.extra[i])?t.extra[i]:[]});function p(t,a){const i=a?`${t}:${a}`:t;let c=u.get(i);if(!c){const l=o.dsnFromString(t);if(!l)return;const p=r.getEnvelopeEndpointWithUrlEncodedAuth(l,n.tunnel);c=a?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=s(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,a)({...n,url:p}):e({...n,url:p}),u.set(i,c)}return[t,c]}return{send:async function(e){const t=l({envelope:e,getEvent:function(t){return s(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?p(e,void 0):p(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",a]],r=await Promise.all(n.map(([t,n])=>n.send(c(e,t))));return r[0]},flush:async function(e){const t=[...u.values(),a];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}},52256:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(99188),i=n(83031),s=n(28119),c=n(41335),u=100,l=5e3;t.MIN_DELAY=u,t.START_DELAY=l,t.makeOfflineTransport=function(e){function t(...e){r.DEBUG_BUILD&&o.debug.log("[Offline]:",...e)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let p,d=l;function f(e){p&&clearTimeout(p),p=c.safeUnref(setTimeout(async()=>{p=void 0;const e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date(i.safeDateNow()).toISOString(),m(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function g(){p||(f(d),d=Math.min(2*d,36e5))}async function m(e,i=!1){if(!i&&a.envelopeContainsItemType(e,["replay_event","replay_recording"]))return await o.push(e),f(u),{};try{if(n.shouldSend&&!1===await n.shouldSend(e))throw new Error("Envelope not sent because `shouldSend` callback returned false");const t=await r.send(e);let o=u;if(t)if(t.headers?.["retry-after"])o=s.parseRetryAfterHeader(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])o=6e4;else if((t.statusCode||0)>=400)return t;return f(o),d=l,t}catch(h){if(await(c=e,p=h,m=d,!a.envelopeContainsItemType(c,["client_report"])&&(!n.shouldStore||n.shouldStore(c,p,m))))return i?await o.unshift(e):await o.push(e),g(),t("Error sending. Event queued.",h),{};throw h}var c,p,m}return n.flushAtStartup&&g(),{send:m,flush:e=>(void 0===e&&(d=l,f(u)),r.flush(e))}}}},62299:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.addUserAgentToTransportHeaders=function(e){const t=e._metadata?.sdk,n=t?.name&&t?.version?`${t?.name}/${t?.version}`:void 0;e.transportOptions={...e.transportOptions,headers:{...n&&{"user-agent":n},...e.transportOptions?.headers}}}},36033:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(79183),a=n(52751),i=n(88585),s=n(55908),c=n(77765),u={mechanism:{handled:!1,type:"auto.rpc.trpc.middleware"}};t.trpcMiddleware=function(e={}){return async function(t){const{path:n,type:l,next:p,rawInput:d,getRawInput
2:f}=t,g=r.getClient(),m=g?.getOptions(),h=g?.getDataCollectionOptions(),_={procedure_path:n,procedure_type:l};if(c.setNormalizationDepthOverrideHint(_,1+(m?.normalizeDepth??5)),(void 0!==e.attachRpcInput?e.attachRpcInput:h?.httpBodies.includes("incomingRequest"))&&(void 0!==d&&(_.input=i.normalize(d)),void 0!==f&&"function"==typeof f))try{const e=await f();_.input=i.normalize(e)}catch{}return r.withIsolationScope(t=>(t.setContext("trpc",_),s.startSpanManual({name:`trpc/${n}`,op:"rpc.server",attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"},forceTransaction:!!e.forceTransaction},async e=>{try{const t=await p();return function(e){"object"==typeof e&&null!==e&&"ok"in e&&!e.ok&&"error"in e&&o.captureException(e.error,u)}(t),e.end(),t}catch(t){throw o.captureException(t,u),e.end(),t}})))}}},90153:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(88532);function o(e,t,n,c,u,l,p,d){if(l.length>=n+1)return l;let f=[...l];if(r.isInstanceOf(c[u],Error)){i(p,d,c);const r=e(t,c[u]),a=f.length;s(r,u,a,d),f=o(e,t,n,c[u],u,[r,...f],r,a)}return a(c)&&c.errors.forEach((a,l)=>
2{if(r.isInstanceOf(a,Error)){i(p,d,c);const r=e(t,a),g=f.length;s(r,`errors[${l}]`,g,d),f=o(e,t,n,a,u,[r,...f],r,g)}}),f}function a(e){return Array.isArray(e.errors)}function i(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...a(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function s(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}t.applyAggregateErrorsToEvent=function(e,t,n,a,i,s){if(!i.exception?.values||!s||!r.isInstanceOf(s.originalException,Error))return;const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;c&&(i.exception.values=o(e,t,a,s.originalException,n,i.exception.values,c,0))}},52311:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=new Set;t._INTERNAL_clearAiProviderSkips=function(){a.clear(),r.DEBUG_BUILD&&o.debug.log("Cleared AI provider skip registrations")},t._INTERNAL_shouldSkipAiProviderWrapping=function(e){return a.has(e)},t._INTERNAL_skipAiProviderWrapping=function(e){e.forEach(e=>{a.add(e),r.DEBUG_BUILD&&o.debug.log(`AI provider "${e}" wrapping will be skipped`)})}},10537:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(69025),o=n(70561);t.callFrameToStackFrame=function(e,t,n){const a=t?t.replace(/^file:\/\//,""):void 0,i=e.location.columnNumber?e.location.columnNumber+1:void 0,s=e.location.lineNumber?e.location.lineNumber+1:void 0;return{filename:a,module:n(a),function:e.functionName||o.UNKNOWN_FUNCTION,colno:i,lineno:s,in_app:a?r.filenameIsInApp(a):void 0}},t.watchdogTimer=function(e,t,n,r){const o=e();let a=!1,i=!0;return setInterval(()=>{const e=o.getTimeMs();!1===a&&e>t+n&&(a=!0,i&&r()),e<t+n&&(a=!1)},20),{poll:()=>{o.reset()},enabled:e=>{i=e}}}},5684:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(88532),i="sentry-";function s(e){if(e&&(a.isString(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const n=c(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):c(e)}function c(e){return e.split(",").map(e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function u(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],a)=>{const i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===a?i:`${e},${i}`;return s.length>8192?(r.DEBUG_BUILD&&o.debug.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}t.MAX_BAGGAGE_STRING_LENGTH=8192,t.SENTRY_BAGGAGE_KEY_PREFIX=i,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=/^sentry-/,t.baggageHeaderToDynamicSamplingContext=function(e){const t=s(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(i)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0},t.dynamicSamplingContextToSentryBaggageHeader=function(e){if(!e)return;return u(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${i}${t}`]=n),e),{}))},t.mergeBaggageHeaders=function(e,t){if(!e)return t;const n=s(e),r=s(t);if(!r)return e;const o={};let a=!1;const c={},l={};for(const[s,u]of Object.entries(r))s.startsWith(i)?(c[s]=u,a=!0):l[s]=u;if(n)for(const[s,u]of Object.entries(n))a&&s.startsWith(i)||(o[s]=u);a&&Object.assign(o,c);for(const[i,s]of Object.entries(l))o[i]??(o[i]=s);return u(o)},t.objectToBaggageHeader=u,t.parseBaggageHeader=s},72833:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getBreadcrumbLogLevelFromHttpStatusCode=function(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}},3138:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(88532),o=n(73969).GLOBAL_OBJ;function a(e,t){const n=e,a=[];if(!n?.tagName)return"";if(o.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}a.push(n.tagName.toLowerCase());const i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;
2if(i?.length)i.forEach(e=>{a.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&a.push(`#${n.id}`);const e=n.className;if(e&&r.isString(e)){const t=e.split(/\s+/);for(const e of t)a.push(`.${e}`)}}for(const r of["aria-label","type","name","title","alt"]){const e=n.getAttribute(r);e&&a.push(`[${r}="${e}"]`)}return a.join("")}t.getComponentName=function(e,t=5){if(!o.HTMLElement)return null;let n=e;for(let r=0;r<t;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null},t.getLocationHref=function(){try{return o.document.location.href}catch{return""}},t.htmlTreeAsString=function(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const c=" > ",u=c.length;let l;const p=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(l=a(n,p),!("html"===l||i>1&&s+o.length*u+l.length>=d));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}},15470:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=e=>e instanceof Promise&&!e[r],r=Symbol("chained PromiseLike"),o=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const o=e[r];"function"==typeof o?Object.defineProperty(t,r,{value:(...t)=>o.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=o}return n&&Object.assign(t,{[r]:!0}),t};t.chainAndCopyPromiseLike=(e,t,r)=>{const a=e.then(e=>(t(e),e),e=>{throw r(e),e});return n(a)&&n(e)?a:o(e,a)}},64841:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(99188),o=n(26869);t.createClientReportEnvelope=function(e,t,n){const a=[{type:"client_report"},{timestamp:n||o.dateTimestampInSeconds(),discarded_events:e}];return r.createEnvelope(t?{dsn:t}:{},[a])}},81894:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.parseCookie=function(e){const t={};let n=0;for(;n<e.length;){const r=e.indexOf("=",n);if(-1===r)break;let o=e.indexOf(";",n);if(-1===o)o=e.length;else if(o<r){n=e.lastIndexOf(";",r-1)+1;continue}const a=e.slice(n,r).trim();if(void 0===t[a]){let n=e.slice(r+1,o).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));
2try{t[a]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch{t[a]=n}}n=o+1}return t}},5212:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(60179);t.defaultPiiToCollectionOptions=function(e){return!0===e?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:r.PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:r.PII_HEADER_SNIPPETS},response:{deny:r.PII_HEADER_SNIPPETS}},httpBodies:[],queryParams:{deny:r.PII_HEADER_SNIPPETS},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7}}},89927:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(81894),o=n(60179),a=n(96098);t.filterCookies=function(e,t){if(!1===t)return{};try{const n=r.parseCookie(e);return 0===Object.keys(n).length?{}:a.filterKeyValueData(n,t,o.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return o.FILTERED_VALUE}}},96098:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(60179);function o(e,t){return t.some(t=>e.includes(t))}t.filterKeyValueData=function(e,t,n){if(!1===t)return{};const a=null!=n?[...r.SENSITIVE_KEY_SNIPPETS,...n]:r.SENSITIVE_KEY_SNIPPETS,i={};if(!0===t){for(const t of Object.keys(e))i[t]=o(t.toLowerCase(),a)?r.FILTERED_VALUE:e[t];return i}if("deny"in t){const n=t.deny.map(e=>e.toLowerCase());for(const t of Object.keys(e)){const s=t.toLowerCase(),c=o(s,a)||n.some(e=>s.includes(e));i[t]=c?r.FILTERED_VALUE:e[t]}return i}const s=t.allow.map(e=>e.toLowerCase());for(const c of Object.keys(e)){const t=c.toLowerCase();if(o(t,a))i[c]=r.FILTERED_VALUE;else{const n=s.some(e=>t.includes(e));i[c]=n?e[c]:r.FILTERED_VALUE}}return i}},69150:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(60179),o=n(96098);t.filterQueryParams=function(e,t){if(!1===t)return{};try{const n=new URLSearchParams(e),r={};return n.forEach((e,t)=>{r[t]=e}),0===Object.keys(r).length?{}:o.filterKeyValueData(r,t)}catch{return r.FILTERED_VALUE}}},60179:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.FILTERED_VALUE="[Filtered]",t.PII_HEADER_SNIPPETS=["forwarded","-ip","remote-","via","-user"],t.SENSITIVE_COOKIE_NAME_SNIPPETS=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"],t.SENSITIVE_KEY_SNIPPETS=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"]},57422:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(5212),o={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};t.resolveDataCollectionOptions=function(e){const t=null!=e.dataCollection?o:r.defaultPiiToCollectionOptions(e.sendDefaultPii),n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,queryParams:n.queryParams??t.queryParams,genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}},19367:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.debounce=function(e,t,n){let r,o,a;const i=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==a&&clearTimeout(a),o=a=void 0}function l(){return o&&clearTimeout(o),o=s(c,t),i&&void 0===a&&(a=s(c,i)),r}return l.cancel=u,l.flush=function(){return void 0!==o||void 0!==a?c():r},l}},47274:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(70561),o=n(73969);let a,i,s,c;function u(e){const t=o.GLOBAL_OBJ._sentryDebugIds,n=o.GLOBAL_OBJ._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],u=n?Object.keys(n):[];if(c&&r.length===i&&u.length===s)return c;i=r.length,s=u.length,c={},a||(a={});const l=(t,n)=>{for(const r of t){const t=n[r],o=a?.[r];if(o&&c&&t)c[o[0]]=t,a&&(a[r]=[o[0],t]);else if(t){const n=e(r);for(let e=n.length-1;e>=0;e--){const o=n[e],i=o?.filename;if(i&&c&&a){c[i]=t,a[r]=[i,t];break}}}}};return t&&l(r,t),n&&l(u,n),c}t.getDebugImagesForResources=function(e,t){const n=u(e);if(!n)return[];const o=[];for(const a of t){const e=r.normalizeStackTracePath(a);e&&n[e]&&o.push({type:"sourcemap",code_file:a,debug_id:n[e]})}return o},t.getFilenameToDebugIdMap=u},85110:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73220),o=n(68974),a=n(73969),i={};function s(e){if(!("console"in a.GLOBAL_OBJ))return e();const t=a.GLOBAL_OBJ.console,n={},r=Object.keys(i);
2r.forEach(e=>{const r=i[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function c(){return l().enabled}function u(e,...t){o.DEBUG_BUILD&&c()&&s(()=>{a.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function l(){return o.DEBUG_BUILD?r.getGlobalSingleton("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const p={enable:function(){l().enabled=!0},disable:function(){l().enabled=!1},isEnabled:c,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}};t.CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],t.consoleSandbox=s,t.debug=p,t.originalConsoleMethods=i},21811:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=/^o(\d+)\./,i=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(e){const t=i.exec(e);if(!t)return void o.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,a="",s="",u="",l=""]=t.slice(1);let p="",d=l;const f=d.split("/");if(f.length>1&&(p=f.slice(0,-1).join("/"),d=f.pop()),d){const e=d.match(/^\d+/);e&&(d=e[0])}return c({host:s,pass:a,path:p,projectId:d,port:u,protocol:n,publicKey:r})}function c(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){const t=e.match(a);return t?.[1]}t.dsnFromString=s,t.dsnToString=function(e,t=!1){const{host:n,path:r,pass:o,port:a,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&o?`:${o}`:""}@${n}${a?`:${a}`:""}/${r?`${r}/`:r}${i}`},t.extractOrgIdFromClient=function(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=u(n)),r},t.extractOrgIdFromDsnHost=u,t.makeDsn=function(e){const t="string"==typeof e?s(e):c(e);if(t&&function(e){if(!r.DEBUG_BUILD)return!0;const{port:t,projectId:n,protocol:a}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(o.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(a)?t&&isNaN(parseInt(t,10))&&(o.debug.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(o.debug.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),1):(o.debug.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}},81857:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getSDKSource=function(){return"npm"},t.isBrowserBundle=function(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}},83412:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=new Set(["false","f","n","no","off","0"]),r=new Set(["true","t","y","yes","on","1"]);t.FALSY_ENV_VALUES=n,t.TRUTHY_ENV_VALUES=r,t.envToBool=function(e,t){const o=String(e).toLowerCase();return!n.has(o)&&(!!r.has(o)||(t?.strict?null:Boolean(e)))}},99188:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73220),o=n(21811),a=n(88585),i=n(83031),s=n(73969);function c(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function u(e){const t=r.getSentryCarrier(s.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}const l={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};t.addItemToEnvelope=function(e,t){const[n,r]=e;return[n,[...r,t]]},t.createAttachmentEnvelopeItem=function(e){const t="string"==typeof e.data?u(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]},t.createEnvelope=function(e,t=[]){return[e,t]},t.createEventEnvelopeHeaders=function(e,t,n,r){const a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(i.safeDateNow()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:o.dsnToString(r)},...a&&{trace:a}}},t.createSpanEnvelopeItem=function(e){return[{type:"span"},e]},t.envelopeContainsItemType=function(e,t){return c(e,(e,n)=>t.includes(n))},t.envelopeItemTypeToDataCategory=function(e){return function(e){return e in l}(e)?l[e]:e},t.forEachEnvelopeItem=c,t.getSdkMetadataForEnvelopeHeader=function(e){if(!e?.sdk)return;
2const{name:t,version:n}=e.sdk;return{name:t,version:n}},t.parseEnvelope=function(e){let t="string"==typeof e?u(e):e;function n(e){const n=t.subarray(0,e);return t=t.subarray(e+1),n}function o(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=r.getSentryCarrier(s.GLOBAL_OBJ);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(n(e)))}const a=o(),i=[];for(;t.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;i.push([e,t?n(t):o()])}return[a,i]},t.serializeEnvelope=function(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[u(r),e]:r.push("string"==typeof e?u(e):e)}for(const i of n){const[e,t]=i;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch{e=JSON.stringify(a.normalize(t))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}(r)}},69960:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}t.SentryError=n},27389:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getPossibleEventMessages=function(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}},93395:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(88532),o=n(96940),a=n(88585),i=n(96159);function s(e,t){return e(t.stack||"",1)}function c(e){return function(e){return r.isError(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function u(e,t){const n={type:t.name||t.constructor.name,value:c(t)},r=s(e,t);return r.length&&(n.stacktrace={frames:r}),n}function l(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}if("message"in e&&"string"==typeof e.message)return e.message;const t=i.extractExceptionKeysForMessage(e);if(r.isErrorEvent(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;const n=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`${n&&"Object"!==n?`'${n}'`:"Object"} captured as exception with keys: ${t}`}function p(e,t,n,o){if(r.isError(n))return[n,void 0];if(t.synthetic=!0,r.isPlainObject(n)){const t=e?.getOptions().normalizeDepth,r={__serialized__:a.normalizeToSize(n,t)},i=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(n);if(i)return[i,r];const s=l(n),c=o?.syntheticException||new Error(s);return c.message=s,[c,r]}const i=o?.syntheticException||new Error(n);return i.message=`${n}`,[i,void 0]}t._enhanceErrorWithSentryInfo=c,t.eventFromMessage=function(e,t,n="info",a,i){const c={event_id:a?.event_id,level:n};if(i&&a?.syntheticException){const n=s(e,a.syntheticException);n.length&&(c.exception={values:[{value:t,stacktrace:{frames:n}}]},o.addExceptionMechanism(c,{synthetic:!0}))}if(r.isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return c.logentry={message:e,params:n},c}return c.message=t,c},t.eventFromUnknownInput=function(e,t,n,r){const a=r?.data&&r.data.mechanism||{handled:!0,type:"generic"},[i,s]=p(e,a,n,r),c={exception:{values:[u(t,i)]}};return s&&(c.extra=s),o.addExceptionTypeValue(c,void 0,void 0),o.addExceptionMechanism(c,a),{...c,event_id:r?.event_id}},t.exceptionFromError=u,t.parseStackFrames=s},23513:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.replaceExports=function(e,t,n){const r=e[t];if("function"==typeof r){try{e[t]=n}catch{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0,enumerable:!0})}if(e.default===r)try{e.default=n}catch{Object.defineProperty(e,"default",{value:n,writable:!0,configurable:!0,enumerable:!0})}}}},83609:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(68974),a=n(85110),i=n(54583),s="flag.evaluation.";function c(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r)return void(o.DEBUG_BUILD&&a.debug.error(`[Feature Flags] insertTo
2FlagBuffer called on a buffer larger than maxSize=${r}`));const i=e.findIndex(e=>e.flag===t);-1!==i&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}t._INTERNAL_FLAG_BUFFER_SIZE=100,t._INTERNAL_MAX_FLAGS_PER_SPAN=10,t._INTERNAL_addFeatureFlagToActiveSpan=function(e,t,n=10){if("boolean"!=typeof t)return;const r=i.getActiveSpan();if(!r)return;const o=i.spanToJSON(r).data;if(`${s}${e}`in o)return void r.setAttribute(`${s}${e}`,t);Object.keys(o).filter(e=>e.startsWith(s)).length<n&&r.setAttribute(`${s}${e}`,t)},t._INTERNAL_copyFlagsFromScopeToEvent=function(e){if(e.type)return e;const t=r.getCurrentScope().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e},t._INTERNAL_insertFlagToScope=function(e,t,n=100){const o=r.getCurrentScope().getScopeData().contexts;o.flags||(o.flags={values:[]}),c(o.flags.values,e,t,n)},t._INTERNAL_insertToFlagBuffer=c},13053:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(79183),o=n(85110),a=n(64548),i=n(73969);async function s(e){try{o.debug.log("Flushing events..."),await r.flush(e),o.debug.log("Done flushing events")}catch(t){o.debug.log("Error while flushing events:\n",t)}}t.flushIfServerless=async function(e={}){const{timeout:t=2e3}=e;if("cloudflareWaitUntil"in e&&"function"==typeof e?.cloudflareWaitUntil)return void e.cloudflareWaitUntil(s(t));if("cloudflareCtx"in e&&"function"==typeof e.cloudflareCtx?.waitUntil)return void e.cloudflareCtx.waitUntil(s(t));if(i.GLOBAL_OBJ[Symbol.for("@vercel/request-context")])return void a.vercelWaitUntil(s(t));if("undefined"==typeof process)return;!!({}.FUNCTIONS_WORKER_RUNTIME||{}.LAMBDA_TASK_ROOT||{}.K_SERVICE||{}.CF_PAGES||{}.VERCEL||{}.NETLIFY)&&await s(t)}},29057:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getDefaultExport=function(e){return!!e&&"object"==typeof e&&"default"in e&&e.default||e}},76354:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(15470),o=n(88532);t.handleCallbackErrors=function(e,t,n=()=>{},a=()=>{}){let i;try{i=e()}catch(s){throw t(s),n(),s}return function(e,t,n,a){if(o.isThenable(e))return r.chainAndCopyPromiseLike(e,e=>{n(),a(e)},e=>{t(e),n()});return n(),a(e),e}(i,t,n,a)}},51228:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564);t.hasSpansEnabled=function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||r.getClient()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}},78949:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.addAutoIpAddressToSession=function(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")},t.addAutoIpAddressToUser=function(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}},88532:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=Object.prototype.toString;function r(e,t){return n.call(e)===`[object ${t}]`}function o(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function a(e){return r(e,"Object")}function i(e,t){try{return e instanceof t}catch{return!1}}t.isDOMError=function(e){return r(e,"DOMError")},t.isDOMException=function(e){return r(e,"DOMException")},t.isElement=function(e){return"undefined"!=typeof Element&&i(e,Element)},t.isError=function(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return i(e,Error)}},t.isErrorEvent=function(e){return r(e,"ErrorEvent")},t.isEvent=function(e){return"undefined"!=typeof Event&&i(e,Event)},t.isInstanceOf=i,t.isParameterizedString=o,t.isPlainObject=a,t.isPrimitive=function(e){return null===e||o(e)||"object"!=typeof e&&"function"!=typeof e},t.isRegExp=function(e){return r(e,"RegExp")},t.isRequest=function(e){return"undefined"!=typeof Request&&i(e,Request)},t.isString=function(e){return r(e,"String")}
2,t.isSyntheticEvent=function(e){return a(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},t.isThenable=function(e){return Boolean(e?.then&&"function"==typeof e.then)},t.isVueViewModel=function(e){return!("object"!=typeof e||null===e||!(e.__isVue||e._isVue||e.__v_isVNode))}},64702:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(86744),o=n(73969);t.isBrowser=function(){return"undefined"!=typeof window&&(!r.isNodeEnv()||function(){const e=o.GLOBAL_OBJ.process;return"renderer"===e?.type}())}},46877:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(9635);function o(e,t){const n=r.parseStringToURLObject(e);return!(!n||r.isURLObjectRelative(n))&&(!!t&&(o=n.hostname,a=t.host,(o===a||a.length>0&&o.endsWith(`.${a}`))&&/(^|&|\?)sentry_key=/.test(n.search)));var o,a}function a(e){return"/"===e[e.length-1]?e.slice(0,-1):e}t.isSentryRequestUrl=function(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return o(e,n)||function(e,t){if(!t)return!1;return a(e)===a(t)}(e,r)}},43807:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.LRUMap=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){const t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){const e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){const t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const e=[];return this._cache.forEach(t=>e.push(t)),e}}},19090:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.merge=function e(t,n,r=2){if(!n||"object"!=typeof n||r<=0)return n;if(t&&0===Object.keys(n).length)return t;const o={...t};for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=e(o[a],n[a],r-1));return o}},145:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(20647);t.getTraceMetaTags=function(e){return Object.entries(e||r.getTraceData()).map(([e,t])=>`<meta name="${e}" content="${t}"/>`).join("\n")}},96940:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(96159),o=n(83031),a=n(79721),i=n(73969);let s;function c(e){return e.exception?.values?.[0]}const u=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function l(e){return parseInt(e||"",10)}function p(e){try{return e.__sentry_captured__}catch{}}t.addContextToFrame=function(e,t,n=5){if(void 0===t.lineno)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(e=>a.snipLine(e,0));const i=Math.min(r-1,o);t.context_line=a.snipLine(e[i],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(e=>a.snipLine(e,0))},t.addExceptionMechanism=function(e,t){const n=c(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}},t.addExceptionTypeValue=function(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],a=o[0]=o[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")},t.checkOrSetAlreadyCaught=function(e){if(p(e))return!0;try{r.addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch{}return!1},t.getEventDescription=function(e){const{message:t,event_id:n}=e;if(t)return t;const r=c(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},t.isAlreadyCaptured=p,t.parseSemver=function(e){const t=e.match(u)||[],n=l(t[1]),r=l(t[2]),o=l(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(o)?void 0:o,prerelease:t[4]}},t.uuid4=function(e=function(){const e=i.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return o.withRandomSafeContext(()=>e.randomUUID()).replace(/-/g,"")}catch{}return s||(s="10000000100040008000100000000000"),s.replace(/[018]/g,e=>(e^(16*o.safeMathRandom()&15)>>e/4).toString(16))}},69025:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(70561);function o(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==e&&!e.includes("node_modules/")}function a(e){const t=/^\s*[-]{4,}$/,n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/,a=/at (?:async )?(.+?) \(data:(.*?),/;return s=>{const c=s.match(a);
2if(c)return{filename:`<data:${c[2]}>`,function:c[1]};const u=s.match(n);if(u){let t,n,a,s,c;if(u[1]){a=u[1];let e=a.lastIndexOf(".");if("."===a[e-1]&&e--,e>0){t=a.slice(0,e),n=a.slice(e+1);const r=t.indexOf(".Module");r>0&&(a=a.slice(r+1),t=t.slice(0,r))}s=void 0}n&&(s=t,c=n),"<anonymous>"===n&&(c=void 0,a=void 0),void 0===a&&(c=c||r.UNKNOWN_FUNCTION,a=s?`${s}.${c}`:c);let l=r.normalizeStackTracePath(u[2]);const p="native"===u[5];l||!u[5]||p||(l=u[5]);const d=l?function(e){try{return decodeURI(e)}catch{return}}(l):void 0;return{filename:d??l,module:d&&e?.(d),function:a,lineno:i(u[3]),colno:i(u[4]),in_app:o(l||"",p)}}return s.match(t)?{filename:s}:void 0}}function i(e){return parseInt(e||"",10)||void 0}t.filenameIsInApp=o,t.node=a,t.nodeStackLineParser=function(e){return[90,a(e)]}},86744:function(e,t,n){e=n.nmd(e),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(81857);function o(e,t){return e.require(t)}t.isNodeEnv=function(){return!r.isBrowserBundle()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)},t.loadModule=function(t,n=e){let r;try{r=o(n,t)}catch{}if(!r)try{const{cwd:e}=o(n,"process");r=o(n,`${e()}/node_modules/${t}`)}catch{}return r}},77765:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(96159),o=Symbol.for("sentry.skipNormalization"),a=Symbol.for("sentry.overrideNormalizationDepth");t.getNormalizationDepthOverrideHint=function(e){const t=e[a];return"number"==typeof t?t:void 0},t.hasSkipNormalizationHint=function(e){return Boolean(e[o])},t.setNormalizationDepthOverrideHint=function(e,t){r.addNonEnumerableProperty(e,a,t)},t.setSkipNormalizationHint=function(e){r.addNonEnumerableProperty(e,o,!0)}},88585:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(77765),o=n(96159),a=n(70561);let i;function s(e,t=100,n=1/0){try{return c("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function c(e,t,n=1/0,a=1/0,i=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}()){const[s,l]=i;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const p=u(e,t);if(!p.startsWith("[object "))return p;if(r.hasSkipNormalizationHint(t))return t;const d=r.getNormalizationDepthOverrideHint(t),f=void 0!==d?d:n;if(0===f)return p.replace("object ","");if(s(t))return"[Circular ~]";const g=t;if(g&&"function"==typeof g.toJSON)try{return c("",g.toJSON(),f-1,a,i)}catch{}const m=Array.isArray(t)?[]:{};let h=0;const _=o.convertToPlainObject(t);for(const r in _){if(!Object.prototype.hasOwnProperty.call(_,r))continue;if(h>=a){m[r]="[MaxProperties ~]";break}const e=_[r];m[r]=c(r,e,f-1,a,i),h++}return l(t),m}function u(e,t){try{if(i){const e=i(t);if(e)return e}if(void 0!==n.g&&t===n.g)return"[Global]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${a.getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const e=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return`[object ${e}]`}catch(r){return`**non-serializable** (${r})`}}t.normalize=s,t.normalizeToSize=function e(t,n=3,r=102400){const o=s(t,n);return a=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(a))>r?e(t,n-1,r):o;var a},t.normalizeUrlToBase=function(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")},t.setNormalizeStringifier=function(e){i=e},t.stringifyValue=u},96159:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(88532);function i(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.DEBUG_BUILD&&o.debug.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function s(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,i(e,"__sentry_original__",t)}catch{}}function c(e){return e.__sentry_original__}function u(e){if(a.isError(e))return{message:e.message,name:e.name,stack:e.stack,...l(e)};
2if(a.isEvent(e)){const{type:t,target:n,currentTarget:r,detail:o}=e;return{type:t,target:n,currentTarget:r,...o?{detail:o}:{},...l(e)}}return e}function l(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}function p(e,t){if(null===e||"object"!=typeof e)return e;const n=t.get(e);if(void 0!==n)return n;if(Array.isArray(e)){const n=[];return t.set(e,n),e.forEach(e=>{n.push(p(e,t))}),n}if(function(e){const t=e.constructor;return t===Object||void 0===t}(e)){const n={};t.set(e,n);return Object.keys(e).forEach(r=>{const o=e[r];void 0!==o&&(n[r]=p(o,t))}),n}return e}t.addNonEnumerableProperty=i,t.convertToPlainObject=u,t.dropUndefinedKeys=function(e){return p(e,new Map)},t.extractExceptionKeysForMessage=function(e){const t=Object.keys(u(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"},t.fill=function(e,t,n){if(!(t in e))return;const a=e[t];if("function"!=typeof a)return;const i=n(a);"function"==typeof i&&s(i,a);try{e[t]=i}catch{r.DEBUG_BUILD&&o.debug.log(`Failed to replace method "${t}" in object`,e)}},t.getOriginalFunction=c,t.markFunctionWrapped=s,t.objectify=function(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case a.isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t},t.wrapMethod=function(e,t,n,r=!0){const o=e[t];if("function"!=typeof o)throw new Error(`Cannot wrap method: ${t} is not a function`);if(c(o))throw new Error(`Attempting to wrap method ${t} multiple times`);s(n,o),Object.defineProperty(e,t,{writable:!0,configurable:!0,enumerable:r,value:n})}},72979:function(e,t){function n(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n;t.fmt=r,t.parameterize=n},10393:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.parseSampleRate=function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}},73155:function(e,t){function n(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const t=e[r];"."===t?e.splice(r,1):".."===t?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function o(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=r.exec(t);return n?n.slice(1):[]}function a(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const o=n>=0?e[n]:"/";o&&(t=`${o}/${t}`,r="/"===o.charAt(0))}return t=n(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function i(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function s(e){const t=c(e),r="/"===e.slice(-1);let o=n(e.split("/").filter(e=>!!e),!t).join("/");return o||t||(o="."),o&&r&&(o+="/"),(t?"/":"")+o}function c(e){return"/"===e.charAt(0)}t.basename=function(e,t){let n=o(e)[2]||"";return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n},t.dirname=function(e){const t=o(e),n=t[0]||"";let r=t[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."},t.isAbsolute=c,t.join=function(...e){return s(e.join("/"))},t.normalizePath=s,t.relative=function(e,t){e=a(e).slice(1),t=a(t).slice(1);const n=i(e.split("/")),r=i(t.split("/")),o=Math.min(n.length,r.length);let s=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){s=a;break}let c=[];for(let a=s;a<n.length;a++)c.push("..");return c=c.concat(r.slice(s)),c.join("/")},t.resolve=a},31485:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(42501),o=n(51929),a=n(69640),i=n(47274),s=n(96940),c=n(88585),u=n(37402),l=n(79721),p=n(94486),d=n(26869);function f(e,t){const{environment:n,release:o,dist:a,maxValueLength:i}=t;e.environment=e.environment||n||r.DEFAULT_ENVIRONMENT,!e.release&&o&&(e.release=o),!e.dist&&a&&(e.dist=a);const s=e.request;s?.url&&i&&(s.url=l.truncate(s.url,i)),i&&e.exception?.values?.forEach(e
2=>{e.value&&(e.value=l.truncate(e.value,i))})}function g(e,t){const n=i.getFilenameToDebugIdMap(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function m(e){const t={};if(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)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}function h(e,t){if(!t)return e;const n=e?e.clone():new a.Scope;return n.update(t),n}const _=["user","level","extra","contexts","tags","fingerprint","propagationContext"];t.applyClientOptions=f,t.applyDebugIds=g,t.applyDebugMeta=m,t.parseEventHintOrCaptureContext=function(e){if(e)return function(e){return e instanceof a.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>_.includes(e))}(e)?{captureContext:e}:e},t.prepareEvent=function(e,t,n,r,a,i){const{normalizeDepth:l=3,normalizeMaxBreadth:_=1e3}=e,y={...t,event_id:t.event_id||n.event_id||s.uuid4(),timestamp:t.timestamp||d.dateTimestampInSeconds()},T=n.integrations||e.integrations.map(e=>e.name);f(y,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(y,T),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&g(y,e.stackParser);const S=h(r,n.captureContext);n.mechanism&&s.addExceptionMechanism(y,n.mechanism);const E=a?a.getEventProcessors():[],b=u.getCombinedScopeData(i,S),v=[...n.attachments||[],...b.attachments];v.length&&(n.attachments=v),u.applyScopeDataToEvent(y,b);const I=[...E,...b.eventProcessors];return(n.data&&!0===n.data.__sentry__?p.resolvedSyncPromise(y):o.notifyEventProcessors(I,y,n)).then(e=>(e&&m(e),"number"==typeof l&&l>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:c.normalize(e.data,t,n)}}))},...e.user&&{user:c.normalize(e.user,t,n)},...e.contexts&&{contexts:c.normalize(e.contexts,t,n)},...e.extra&&{extra:c.normalize(e.extra,t,n)}};e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=c.normalize(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:c.normalize(e.data,t,n)}})));e.contexts?.flags&&r.contexts&&(r.contexts.flags=c.normalize(e.contexts.flags,3,n));return r}(e,l,_):e))}},31901:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(94486),o=n(41335),a=Symbol.for("SentryBufferFullError");t.SENTRY_BUFFER_FULL_ERROR=a,t.makePromiseBuffer=function(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(o){if(!(t.size<e))return r.rejectedSyncPromise(a);const i=o();return t.add(i),i.then(()=>n(i),()=>n(i)),i},drain:function(e){if(!t.size)return r.resolvedSyncPromise(!0);const n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;const a=[n,new Promise(t=>o.safeUnref(setTimeout(()=>t(!1),e)))];return Promise.race(a)}}}},58913:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(96940);t.generateSpanId=function(){return r.uuid4().substring(16)},t.generateTraceId=function(){return r.uuid4()}},83031:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73969);let o;function a(e){if(void 0!==o)return o?o(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=r.GLOBAL_OBJ;return t in n&&"function"==typeof n[t]?(o=n[t],o(e)):(o=null,e())}t.safeDateNow=function(){return a(()=>Date.now())},t.safeMathRandom=function(){return a(()=>Math.random())},t.withRandomSafeContext=a},28119:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(83031);function o(e,t=r.safeDateNow()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const o=Date.parse(`${e}`);return isNaN(o)?6e4:o-t}function a(e,t){return e[t]||e.all||0}t.DEFAULT_RETRY_AFTER=6e4,t.disabledUntil=a,t.isRateLimited=function(e,t,n=r.safeDateNow()){return a(e,t)>n},t.parseRetryAfterHeader=o,t.updateRateLimits=function(e,{statusCode:t,headers:n},a=r.safeDateNow()){const i={...e},s=n?.["x-sentry-rate-limits"],c=n?.["retry-after"];if(s)for(const r of s.trim().split(",")){const[e,t,,,n]=r.split(":",5),o=parseInt(e,10),s=1e3*(isNaN(o)?60:o);if(t)for(const r of t.split(";"))"metric_bucket"===r&&n&&!n.split(";").includes("custom")||(i[r]=a+s);else i.all=a+s}else c?i.all=a+o(c,a):429===t&&(i.all=a+6e4);return i}},56011:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(5212),i=n(60179),s=n(96098),c=n(41335),u=1048576,l=["text/","application/json","application/x-www-form-urlencoded","application/xml","application/graphql"];function p(e){return"small"===e?1e3:"medium"===e?1e4:u}function d(e){const t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch{}return t}function f(e){const t=Object.create(null);try{Object.entries(e).forEach(([e,n])=>{"string"==typeof n?t[e]=n:"number"==typeof n&&(t[e]=String(n))})}catch{}return t}function g(e){return e.replace(/-/g,"_")}function m(e,t){const n=e.indexOf(";"),r=t&&-1!==n?e.substring(0,n):e,o=t?[r]:r.split("; "),a={};for(const i of o){const e=i.indexOf("="),t=(-1!==e?i.substring(0,e):i).toLowerCase(),n=-1!==e?i.substring(e+1):"";a[t]=n}return a}function h(e){if(e)try{const t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}t.MAX_BODY_BYTE_LENGTH=u,t.captureBodyFromWinterCGRequest=async function(e,t,n){try{const a=e.headers.get("content-type");if(!function(e){if(!e)return!1;const t=e.toLowerCase();return l.some(e=>t.includes(e))}(a))return void(r.DEBUG_BUILD&&o.debug.log("Skipping body capture for non-textual content type:",a));if(!e.body)return;const i=e.headers.get("content-length"),s=p(n);if(i){const e=parseInt(i,10);if(!isNaN(e)&&e>u)return void(r.DEBUG_BUILD&&o.debug.log("Skipping body capture: body too large",e))}const d=e.clone().text(),f=new Promise(e=>{c.safeUnref(setTimeout(()=>e(null),2e3))}),g=await Promise.race([d,f]);if(null===g)return void(r.DEBUG_BUILD&&o.debug.log("Timeout reading request body"));if(!g)return;const m=(new TextEncoder).encode(g),h=m.length;let _;if(h>s){_=`${(new TextDecoder).decode(m.slice(0,s-3))}...`}else _=g;t.setSDKProcessingMetadata({normalizedRequest:{data:_}}),r.DEBUG_BUILD&&o.debug.log("Captured request body:",h,"bytes")}catch(a){r.DEBUG_BUILD&&o.debug.error("Error capturing request body:",a)}},t.extractQueryParamsFromUrl=h,t.getMaxBodyByteLength=p,t.headersToDict=f,t.httpHeadersToSpanAttributes=function(e,t=!1,n="request"){const r="boolean"==typeof t?a.defaultPiiToCollectionOptions(t):t,o="request"===n?r.httpHeaders.request:r.httpHeaders.response,c=r.cookies,u=`http.${n}.header.`,l={};try{const t={};for(const[n,r]of Object.entries(e)){if(null==r)continue;const e=n.toLowerCase();if("cookie"===e||"set-cookie"===e){if(!1===c)continue;if("string"==typeof r&&""!==r){const t=m(r,"set-cookie"===e),n=s.filterKeyValueData(t,c,i.SENSITIVE_COOKIE_NAME_SNIPPETS);for(const[r,o]of Object.entries(n))l[`${u}${g(e)}.${g(r)}`]=o}else l[`${u}${g(e)}`]=i.FILTERED_VALUE}else{if(!1===o)continue;Array.isArray(r)?t[e]=r.map(e=>null!=e?String(e):e).join(";
2"):"string"==typeof r&&(t[e]=r)}}if(!1!==o){const e=s.filterKeyValueData(t,o);for(const[t,n]of Object.entries(e))l[`${u}${g(t)}`]=n}}catch{}return l},t.httpRequestToRequestData=function(e){const t=e.headers||{},n=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),r=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),o=e.url||"",a=function({url:e,protocol:t,host:n}){if(e?.startsWith("http"))return e;if(e&&n)return`${t}://${n}${e}`;return}({url:o,host:n,protocol:r}),i=e.body||void 0,s=e.cookies;return{url:a,method:e.method,query_string:h(o),headers:f(t),cookies:s,data:i}},t.winterCGHeadersToDict=d,t.winterCGRequestToRequestData=function(e){const t=d(e.headers);return{method:e.method,url:e.url,query_string:h(e.url),headers:t}}},37402:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(93754),a=n(19090),i=n(54583);function s(e,t){const{extra:n,tags:r,attributes:o,user:i,contexts:s,level:u,sdkProcessingMetadata:l,breadcrumbs:p,fingerprint:d,eventProcessors:f,attachments:g,propagationContext:m,transactionName:h,span:_}=t;c(e,"extra",n),c(e,"tags",r),c(e,"attributes",o),c(e,"user",i),c(e,"contexts",s),e.sdkProcessingMetadata=a.merge(e.sdkProcessingMetadata,l,2),u&&(e.level=u),h&&(e.transactionName=h),_&&(e.span=_),p.length&&(e.breadcrumbs=[...e.breadcrumbs,...p]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),g.length&&(e.attachments=[...e.attachments,...g]),e.propagationContext={...e.propagationContext,...m}}function c(e,t,n){e[t]=a.merge(e[t],n,1)}t.applyScopeDataToEvent=function(e,t){const{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:a,level:i,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra});Object.keys(r).length&&(e.tags={...r,...e.tags});Object.keys(o).length&&(e.user={...o,...e.user});Object.keys(a).length&&(e.contexts={...a,...e.contexts});i&&(e.level=i);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:i.spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:o.getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};const n=i.getRootSpan(t),r=i.spanToJSON(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,a),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}
2(e,s)},t.getCombinedScopeData=function(e,t){const n=r.getGlobalScope().getScopeData();return e&&s(n,e.getScopeData()),t&&s(n,t.getScopeData()),n},t.mergeAndOverwriteScopeData=c,t.mergeScopeData=s},55303:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(6102);t.applySdkMetadata=function(e,t,n=[t],o="npm"){const a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=n.map(e=>({name:`${o}:@sentry/${e}`,version:r.SDK_VERSION})),a.version=r.SDK_VERSION)}},89499:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.severityLevelFromString=function(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}},87687:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(79721);function i(e){o.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function s(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?a.isMatchingPattern(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function c(e){return"string"==typeof e||e instanceof RegExp}t.reparentChildSpans=function(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const o of e)o.parent_span_id===r&&(o.parent_span_id=n)},t.shouldIgnoreSpan=function(e,t){if(!t?.length)return!1;for(const n of t){if(c(n)){if(e.description&&a.isMatchingPattern(e.description,n))return r.DEBUG_BUILD&&i(e),!0;continue}const t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;const o=!n.name||e.description&&a.isMatchingPattern(e.description,n.name),u=!n.op||e.op&&a.isMatchingPattern(e.op,n.op),l=!n.attributes||Object.entries(n.attributes).every(([t,n])=>s(e.attributes?.[t],n));if(o&&u&&l)return r.DEBUG_BUILD&&i(e),!0}return!1}},64865:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(96159),o=n(23879),a="_sentrySpan";t._getSpanForScope=function(e){return o.derefWeakRef(e[a])},t._setSpanForScope=function(e,t){t?r.addNonEnumerableProperty(e,a,o.makeWeakRef(t)):delete e[a]}},54583:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(42810),o=n(22147),a=n(73220),i=n(49564),s=n(52751),c=n(15363),u=n(64284),l=n(96159),p=n(58913),d=n(26869),f=n(23336),g=n(85110),m=n(64865);let h=!1;function _(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:o})=>({span_id:e,trace_id:t,sampled:1===n,attributes:o,...r})):void 0}function y(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:1===n,attributes:r})):void 0}function T(e){return"number"==typeof e?S(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?S(e.getTime()):d.timestampInSeconds()}function S(e){return e>9999999999?e/1e3:e}function E(e){if(I(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(v(e)){const{attributes:r,startTime:o,name:a,endTime:i,status:c,links:u}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:b(e),start_timestamp:T(o),timestamp:T(i)||void 0,status:R(c),op:r[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:r[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:_(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function b(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function v(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function I(e){return"function"==typeof e.getSpanJSON}function A(e){const{traceFlags:t}=e.spanContext();return 1===t}function R(e){if(e&&e.code!==c.SPAN_STATUS_UNSET)return e.code===c.SPAN_STATUS_OK?"ok":e.message||"internal_error"}function N(e){return e&&e.code!==c.SPAN_STATUS_OK&&e.code!==c.SPAN_STATUS_UNSET&&"cancelled"!==e.message?"error":"ok"}function O(e,t){const n="error"===N(t)?t?.message:void 0;return{...n&&{[s.SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE]:n},...e}}const P="_sentryChildSpans",w="_sentryRootSpan";const C=U;function U(e){return e[w]||e}t.INTERNAL_getSegmentSpan=U,t.TRACE_FLAG_NONE=0,t.TRACE_FLAG_SAMPLED=1,t.addChildSpanToSpan=function(e,t){const n=e[w]||e;l.addNonEnumerableProperty(t,w,n),e[P]?e[P].add(t):l.addNonEnumerableProperty(e,P,new Set([t]))},t.addStatusMessageAttribute=O,t.convertSpanLinksForEnvelope=_,t.getActiveSpan=function(){const e=a.getMainCarrier(),t=r.getAsyncContextStrategy(e);
2return t.getActiveSpan?t.getActiveSpan():m._getSpanForScope(i.getCurrentScope())},t.getRootSpan=C,t.getSimpleStatus=N,t.getSpanDescendants=function(e){const t=new Set;return function e(n){if(!t.has(n)&&A(n)){t.add(n);const r=n[P]?Array.from(n[P]):[];for(const t of r)e(t)}}(e),Array.from(t)},t.getStatusMessage=R,t.getStreamedSpanLinks=y,t.removeChildSpanFromSpan=function(e,t){e[P]&&e[P].delete(t)},t.showSpanDropWarning=function(){h||(g.consoleSandbox(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),h=!0)},t.spanIsSampled=A,t.spanTimeInputToSeconds=T,t.spanToJSON=E,t.spanToStreamedSpanJSON=function(e){if(I(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(v(e)){const{attributes:r,startTime:o,name:a,endTime:i,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:b(e),start_timestamp:T(o),end_timestamp:T(i),is_segment:e===U(e),status:N(s),attributes:O(r,s),links:y(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===U(e)}},t.spanToTraceContext=function(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:E(e).parent_span_id,a=u.getCapturedScopesOnSpan(e).scope;return{parent_span_id:o,span_id:r?a?.getPropagationContext().propagationSpanId||p.generateSpanId():t,trace_id:n}},t.spanToTraceHeader=function(e){const{traceId:t,spanId:n}=e.spanContext(),r=A(e);return f.generateSentryTraceHeader(t,n,r)},t.spanToTraceparentHeader=function(e){const{traceId:t,spanId:n}=e.spanContext(),r=A(e);return f.generateTraceparentHeader(t,n,r)},t.spanToTransactionTraceContext=function(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:a,status:i,origin:s,links:c}=E(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:o,status:i,origin:s,links:c}},t.streamedSpanJsonToSerializedSpan=function(e){return{...e,attributes:o.serializeAttributes(e.attributes),links:e.links?.map(e=>({...e,attributes:o.serializeAttributes(e.attributes)}))}},t.updateSpanName=function(e,t){e.updateName(t),e.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},35310:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=/[^\s(,;)]+/.source,r=new RegExp(`^\\s*(?<operation>(?:CREATE|DROP)\\s+(?:TABLE|INDEX)|ALTER\\s+TABLE)(?:\\s+IF\\s+(?:NOT\\s+)?EXISTS)?\\s+(?<table>${n})`,"i"),o=new RegExp(`^\\s*(?<operation>INSERT)\\s+INTO\\s+(?<table>${n})`,"i"),a=new RegExp(`^\\s*(?<operation>UPDATE)\\s+(?<table>${n})`,"i"),i=new RegExp(`^\\s*(?<operation>DELETE)\\s+FROM\\s+(?<table>${n})`,"i"),s=/^\s*\(?\s*(?<operation>SELECT)\b/i,c=/^\s*(?<operation>PRAGMA)\s+(?<command>\S+)/i,u=/\b(?:FROM|JOIN)\s+|\(\s*(SELECT)\b|\b(?:UNION|INTERSECT|EXCEPT|MINUS)\s+(?:ALL\s+)?(SELECT)\b/gi,l=/^(?:"[^"]*"|'[^']*'|[^\s(,;)]+)/,p=/^\s*,\s*((?:"[^"]*"|'[^']*'|[^\s(,;)]+))/,d=/^\(\s*(SELECT)\b/i;function f(e){const t=[];let n;for(u.lastIndex=0;null!==(n=u.exec(e));){if(n[1]||n[2]){t.push(n[1]||n[2]);continue}const r=e.slice(n.index+n[0].length),o=d.exec(r);if(o?.[1]){t.push(o[1]),u.lastIndex=n.index+n[0].length+o[0].length;continue}const a=l.exec(r);if(!a)continue;t.push(a[0]);let i,s=r.slice(a[0].length);for(;null!==(i=p.exec(s))&&i[1];)t.push(i[1]),s=s.slice(i[0].length)}return t}function g(e){if(e.length<=255)return e;const t=e.substring(0,255),n=t.lastIndexOf(" ");return n>0?t.substring(0,n):t}t.getSqlQuerySummary=function(e){if(!e)return;const t=c.exec(e);if(t?.groups?.operation&&t.groups.command){const e=t.groups.operation,n=t.groups.command,r=n.indexOf("(");return g(`${e} ${r>=0?n.substring(0,r):n}`)}const n=r.exec(e);if(n?.groups?.operation&&n.groups.table)return g(`${n.groups.operation} ${n.groups.table}`);const u=o.exec(e);if(u?.groups?.operation&&u.groups.table){const t=[u.groups.operation,u.groups.table],n=e.slice(u[0].length),r=/\b(SELECT)\b/i.exec(n);if(r?.[1]){t.push(r[1]);const e=f(n.slice(r.index));t.push(...e)}return g(t.join(" "))}const l=a.exec(e);if(l?.groups?.operation&&l.groups.table)return g(`${l.groups.operation} ${l.groups.table}`);const p=i.exec(e);if(p?.groups?.operation&&p.groups.table)return g(`${p.groups.operation} ${p.groups.table}`);const d=s.exec(e);if(d?.groups?.operation){const t=f(e.slice(d[0].length));return t.length>0?g(`${d.groups.operation} ${t.join(" ")}`):d.groups.operation}return g(e.trim().split(/\s+/)[0]??e)}},70561:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=/\(error: (.*)\)/,r=/captureMessage|captureException/;function o(...e){const t=e.sort((e,t)=>
2e[0]-t[0]).map(e=>e[1]);return(e,r=0,o=0)=>{const i=[],s=e.split("\n");for(let a=r;a<s.length;a++){let e=s[a];e.length>1024&&(e=e.slice(0,1024));const r=n.test(e)?e.replace(n,"$1"):e;if(!r.includes("Error: ")){for(const e of t){const t=e(r);if(t){i.push(t);break}}if(i.length>=50+o)break}}return a(i.slice(o))}}function a(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(i(t).function||"")&&t.pop(),t.reverse(),r.test(i(t).function||"")&&(t.pop(),r.test(i(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||i(t).filename,function:e.function||"?"}))}function i(e){return e[e.length-1]||{}}const s="<anonymous>";t.UNKNOWN_FUNCTION="?",t.createStackParser=o,t.getFramesFromEvent=function(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}},t.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||s}catch{return s}},t.normalizeStackTracePath=function(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t},t.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?o(...e):e},t.stripSentryFramesAndReverse=a},79721:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(88532),o=n(88585);function a(e,t,n=!1){return!!r.isString(e)&&(r.isRegExp(t)?t.test(e):r.isString(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}t.isMatchingPattern=a,t.safeJoin=function(e,t){if(!Array.isArray(e))return"";const n=[];for(let a=0;a<e.length;a++){const t=e[a];r.isPrimitive(t)?n.push(String(t)):t instanceof Error?n.push(t.message?`${t.name}: ${t.message}`:t.name):n.push(o.stringifyValue(void 0,t))}return n.join(t)},t.snipLine=function(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let a=Math.min(o+140,r);return a>r-5&&(a=r),a===r&&(o=Math.max(a-140,0)),n=n.slice(o,a),o>0&&(n=`'{snip} ${n}`),a<r&&(n+=" {snip}"),n},t.stringMatchesSomePattern=function(e,t=[],n=!1){for(const r of t)if(a(e,r,n))return!0;return!1},t.truncate=function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}},21148:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(73969).GLOBAL_OBJ;const i=s;function s(){if(!("fetch"in a))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function c(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}t.isNativeFunction=c,t.supportsDOMError=function(){try{return new DOMError(""),!0}catch{return!1}},t.supportsDOMException=function(){try{return new DOMException(""),!0}catch{return!1}},t.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch{return!1}},t.supportsFetch=i,t.supportsHistory=function(){return"history"in a&&!!a.history},t.supportsNativeFetch=function(){if("string"==typeof EdgeRuntime)return!0;if(!s())return!1;if(c(a.fetch))return!0;let e=!1;const t=a.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=c(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){r.DEBUG_BUILD&&o.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e},t.supportsReferrerPolicy=function(){if(!s())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}},t.supportsReportingObserver=function(){return"ReportingObserver"in a}},94486:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(88532);class o{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new o((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(o){r(o)}else n(t)},e=>{if(t)try{n(t(e))}catch(o){r(o)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new o((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();
2this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){const t=(e,t)=>{0===this._state&&(r.isThenable(t)?t.then(n,o):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},o=e=>{t(2,e)};try{e(n,o)}catch(a){o(a)}}}t.SyncPromise=o,t.rejectedSyncPromise=function(e){return new o((t,n)=>{n(e)})},t.resolvedSyncPromise=function(e){return new o(t=>{t(e)})}},26869:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(83031),o=n(73969);function a(){return r.safeDateNow()/1e3}let i;let s=null;t.browserPerformanceTimeOrigin=function(){return null===s&&(s=function(){const{performance:e}=o.GLOBAL_OBJ;if(!e?.now)return;const t=3e5,n=r.withRandomSafeContext(()=>e.now()),a=r.safeDateNow(),i=e.timeOrigin;if("number"==typeof i&&Math.abs(i+n-a)<t)return i;const s=e.timing?.navigationStart;if("number"==typeof s&&Math.abs(s+n-a)<t)return s;return a-n}()),s},t.dateTimestampInSeconds=a,t.timestampInSeconds=function(){return(i??(i=function(){const{performance:e}=o.GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return a;const t=e.timeOrigin;return()=>(t+r.withRandomSafeContext(()=>e.now()))/1e3}()))()}},41335:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.safeUnref=function(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}},69483:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n,r=0;t.getSequenceAttribute=function(e){const t=Math.floor(1e3*e);void 0!==n&&t!==n&&(r=0);const o=r;return r++,n=t,{key:"sentry.timestamp.sequence",value:{value:o,type:"integer"}}}},61872:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49564),o=n(93754),a=n(54583);t._getTraceInfoFromScope=function(e,t){return t?r.withScope(t,()=>{const n=a.getActiveSpan(),i=n?a.spanToTraceContext(n):r.getTraceContextFromScope(t);return[n?o.getDynamicSamplingContextFromSpan(n):o.getDynamicSamplingContextFromScope(e,t),i]}):[void 0,void 0]}},20647:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(42810),o=n(73220),a=n(49564),i=n(79183),s=n(85110),c=n(54583),u=n(51228),l=n(67392),p=n(93754),d=n(5684),f=n(23336);t.getTraceData=function(e={}){const t=e.client||a.getClient();if(!i.isEnabled()||!t)return{};const n=o.getMainCarrier(),g=r.getAsyncContextStrategy(n);if(g.getTraceData)return g.getTraceData(e);const m=e.scope||a.getCurrentScope(),h=e.span||c.getActiveSpan(),_=l.spanIsNonRecordingSpan(h)&&!u.hasSpansEnabled(t.getOptions());if(!h&&a.hasExternalPropagationContext())return{};const y=h&&!_?c.spanToTraceHeader(h):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return f.generateSentryTraceHeader(t,r,n)}(m),T=h?p.getDynamicSamplingContextFromSpan(h):p.getDynamicSamplingContextFromScope(t,m),S=d.dynamicSamplingContextToSentryBaggageHeader(T);if(!f.TRACEPARENT_REGEXP.test(y))return s.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const E={"sentry-trace":y,baggage:S};return e.propagateTraceparent&&(E.traceparent=h&&!_?c.spanToTraceparentHeader(h):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return f.generateTraceparentHeader(t,r,n)}(m)),E}},78371:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(68974),o=n(85110),a=n(79721),i="[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:";t.shouldPropagateTraceForUrl=function(e,t,n){if("string"!=typeof e||!t)return!0;const s=n?.get(e);if(void 0!==s)return r.DEBUG_BUILD&&!s&&o.debug.log(i,e),s;const c=a.stringMatchesSomePattern(e,t);return n?.set(e,c),r.DEBUG_BUILD&&!c&&o.debug.log(i,e),c}},23336:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(85110),o=n(5684),a=n(21811),i=n(10393),s=n(58913),c=n(83031),u=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function l(e){if(!e)return;const t=e.match(u);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}t.TRACEPARENT_REGEXP=u,t.extractTraceparentData=l,t.generateSentryTraceHeader=function(e=s.generateTraceId(),t=s.generateSpanId(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`},t.generateTraceparentHeader=function(e=s.generateTraceId(),t=s.generateSpanId(),n){return`00-${e}-${t}-${n?"01":"00"}`},t.propagationContextFromHeaders=function(e,t){const n=l(e),r=o.baggageHeaderToDynamicSamplingContext(t);if(!n?.traceId)return{traceId:s.generateTraceId(),sampleRand:c.safeMathRandom()};const a=function(e,t){const n=i.parseSampleRate(t?.sample_rand);if(void 0!==n)return n;const r=i.parseSampleRate(t?.sample_rate);return r&&void 0!==e?.parentSampled?e.parentSampled?c.safeMathRandom()*r:r+c.safeMathRandom()*(1-r):c.safeMathRandom()}(n,r);r&&(r.sample_rand=a.toString());const{traceId:u,parentSpanId:p,parentSampled:d}=n;return{traceId:u,parentSpanId:p,sampled:d,dsc:r||{},sampleRand:a}},t.shouldContinueTrace=function(e,t){const n=a.extractOrgIdFromClient(e);return t&&n&&t!==n?(r.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):!(e.getOptions().strictTraceContinuation||!1)||!(t&&!n||!t&&n)||(r.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1)}},73324:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(52751);t.convertSpanJsonToTransactionEvent=function(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[r.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements}},t.convertTransactionEventToSpanJson=function(e){const{trace_id:t,parent_span_id:n,span_id:o,status:a,origin:i,data:s,op:c}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:c,parent_span_id:n,span_id:o??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[r.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:s?.[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}}
2,78182:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(85740),o=n(85110),a=n(21811),i=n(99188);t.handleTunnelRequest=async function(e){const{request:t,allowedDsns:n}=e;if(0===n.length)return new Response("Tunnel not configured",{status:500});const s=new Uint8Array(await t.arrayBuffer());let c;try{[c]=i.parseEnvelope(s)}catch{return new Response("Invalid envelope",{status:400})}if(!c)return new Response("Invalid envelope: missing header",{status:400});const u=c.dsn;if(!u)return new Response("Invalid envelope: missing DSN",{status:400});if(!n.some(e=>e===u))return o.debug.warn(`Sentry tunnel: rejected request with unauthorized DSN (${u})`),new Response("DSN not allowed",{status:403});const l=a.makeDsn(u);if(!l)return o.debug.warn(`Could not extract DSN Components from: ${u}`),new Response("Invalid DSN",{status:403});const p=r.getEnvelopeEndpointWithUrlEncodedAuth(l);try{return await fetch(p,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:s})}catch(d){return o.debug.error("Sentry tunnel: failed to forward envelope",d),new Response("Failed to forward envelope to Sentry",{status:500})}}},9635:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(52751);function o(e){return"isRelative"in e}function a(e){if(o(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function i(e,t,n,r){return`${n?.method?.toUpperCase()??"GET"} ${r||(e?"client"===t?a(e):e.pathname:"/")}`}
2t.getHttpSpanDetailsFromUrlObject=function(e,t,n,a,s){const c={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return s&&(c["server"===t?"http.route":"url.template"]=s,c[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),a?.method&&(c[r.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=a.method.toUpperCase()),e&&(e.search&&(c["url.query"]=e.search),e.hash&&(c["url.fragment"]=e.hash),e.pathname&&(c["url.path"]=e.pathname,"/"===e.pathname&&(c[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),o(e)||(c[r.SEMANTIC_ATTRIBUTE_URL_FULL]=e.href,e.port&&(c["url.port"]=e.port),e.protocol&&(c["url.scheme"]=e.protocol),e.hostname&&(c["server"===t?"server.address":"url.domain"]=e.hostname))),[i(e,t,a,s),c]},t.getSanitizedUrlString=function(e){const{protocol:t,host:n,path:r}=e;return`${t?`${t}://`:""}${n?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${r}`},t.getSanitizedUrlStringFromUrlObject=a,t.isURLObjectRelative=o,t.parseStringToURLObject=function(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}},t.parseUrl=function(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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}},t.stripDataUrlContent=function(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",o=e.includes(";base64,"),a=e.indexOf(",");let i="";if(t&&-1!==a){const t=e.slice(a+1);i=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${o?",base64":""}${i?`,${i}`:""}`}return e},t.stripUrlQueryAndFragment=function(e){return e.split(/[?#]/,1)[0]}},64548:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73969);t.vercelWaitUntil=function(e){if("string"!=typeof EdgeRuntime)return;const t=r.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],n=t?.get?.();n?.waitUntil&&n.waitUntil(e)}},6102:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.SDK_VERSION="10.63.0"},23879:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(73969);t.derefWeakRef=function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}},t.makeWeakRef=function(e){try{const t=r.GLOBAL_OBJ.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}},73969:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=globalThis;t.GLOBAL_OBJ=n},89235:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},49764:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];t.getClientIPAddress=function(e){const t={};for(const n of Object.keys(e))t[n.toLowerCase()]=e[n];return n.map(e=>{const n=t[e.toLowerCase()],r=Array.isArray(n)?n.join(";"):n;return"Forwarded"===e?function(e){if(!e)return null;for(const t of e.split(";"))if(t.startsWith("for="))return t.slice(4);return null}(r):r?.split(",").map(e=>e.trim())}).reduce((e,t)=>t?e.concat(t):e,[]).find(e=>null!==e&&/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(e))||null},t.ipHeaderNames=n},65946:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=r.GLOBAL_OBJ,a=o.document,i=o.navigator,s="Report a Bug",c="Unable to submit feedback with empty message",u="No client setup, cannot send feedback.",l="Unable to determine if Feedback was correctly sent.",p="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",d="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",f={ERROR_EMPTY_MESSAGE:c,ERROR_NO_CLIENT:u,ERROR_TIMEOUT:l,ERROR_FORBIDDEN:p,ERROR_GENERIC:d};function g(e,t){return t?.[e]??f[e]}function m(e,t){return new Error(g(e,t))}const h=(e,t={includeReplay:!0})=>{const n=t.errorMessages;if(!e.message)throw m("ERROR_EMPTY_MESSAGE",n);const o=r.getClient();if(!o)throw m("ERROR_NO_CLIENT",n);e.tags&&Object.keys(e.tags).length&&r.getCurrentScope().setTags(e.tags);const a=r.captureFeedback({source:"api",url:r.getLocationHref(),...e},t);return new Promise((e,t)=>
2{const r=setTimeout(()=>{i(),t(g("ERROR_TIMEOUT",n))},3e4),i=o.on("afterSendEvent",(o,s)=>{if(o.event_id===a)return clearTimeout(r),i(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300?e(a):t(g(403===s?.statusCode?"ERROR_FORBIDDEN":"ERROR_GENERIC",n))})})},_="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function y(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function T(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}function S({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const i=a.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||s,i.appendChild(function(){const e=e=>o.document.createElementNS("http://www.w3.org/2000/svg",e),t=T(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=T(e("g"),{clipPath:"url(#clip0_57_80)"}),r=T(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.4556 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);const a=e("defs"),i=T(e("clipPath"),{id:"clip0_57_80"}),s=T(e("rect"),{width:"20",height:"20",fill:"white"});return i.appendChild(s),a.appendChild(i),t.appendChild(a).appendChild(i).appendChild(s),t}()),e){const t=a.createElement("span");t.appendChild(a.createTextNode(e)),i.appendChild(t)}const c=function(e){const t=a.createElement("style");return t.textContent='\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));
2\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n',e&&t.setAttribute("nonce",e),t}(r);return{el:i,appendToDom(){n.appendChild(c),n.appendChild(i)},removeFromDom(){i.remove(),c.remove()},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}const E="rgba(88, 74, 192, 1)",b={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:E,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%)"},v={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:E,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 I(e){return`\n --foreground: ${e.foreground};\n --background: ${e.background};\n --accent-foreground: ${e.accentForeground};\n --accent-background: ${e.accentBackground};\n --success-color: ${e.successColor};\n --error-color: ${e.errorColor};\n --border: ${e.border};\n --box-shadow: ${e.boxShadow};\n --outline: ${e.outline};\n --interactive-filter: ${e.interactiveFilter};\n `}function A({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=a.createElement("style");return o.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${"system"!==e?`color-scheme: only ${e};`:""}\n\n ${I("dark"===e?{...v,...t}:{...b,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n :host {\n color-scheme: only dark;\n\n ${I({...v,...t})}\n }\n}`:""}\n`,r&&o.setAttribute("nonce",r),o}var R,N,O,P,w,C,U,L={},k=[],M=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,x=Array.isArray;function B(e,t){for(var n in t)e[n]=t[n];return e}function D(e){var t=e.parentNode;t&&t.removeChild(e)}function j(e,t,n){var r,o,a,i={};
vendor: 5,099 bytes, line 2
2for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?R.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===i[a]&&(i[a]=e.defaultProps[a]);return F(e,i,r,o,null)}function F(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++O:o,__i:-1,__u:0};return null==o&&null!=N.vnode&&N.vnode(a),a}function G(e){return e.children}function H(e,t){this.props=e,this.context=t}function W(e,t){if(null==t)return e.__?W(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?W(e):null}function $(e,t,n){var r,o=e.__v,a=o.__e,i=e.__P;if(i)return(r=B({},o)).__v=o.__v+1,N.vnode&&N.vnode(r),te(i,r,o,e.__n,void 0!==i.ownerSVGElement,32&o.__u?[a]:null,t,null==a?W(o):a,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=a&&q(r),r}function q(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return q(e)}}function V(e){(!e.__d&&(e.__d=!0)&&P.push(e)&&!z.__r++||w!==N.debounceRendering)&&((w=N.debounceRendering)||C)(z)}function z(){var e,t,n,r=[],o=[];for(P.sort(U);e=P.shift();)e.__d&&(n=P.length,t=$(e,r,o)||t,0===n||P.length>n?(ne(r,t,o),o.length=r.length=0,t=void 0,P.sort(U)):t&&N.__c&&N.__c(t,k));t&&ne(r,t,o),z.__r=0}function Y(e,t,n,r,o,a,i,s,c,u,l){var p,d,f,g,m,h=r&&r.__k||k,_=t.length;for(n.__d=c,function(e,t,n){var r,o,a,i,s,c=t.length,u=n.length,l=u,p=0;for(e.__k=[],r=0;r<c;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?F(null,o,null,null,o):x(o)?F(G,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?F(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=J(o,n,i=r+p,l),o.__i=s,a=null,-1!==s&&(l--,(a=n[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&p--,"function"!=typeof o.type&&(o.__u|=65536)):s!==i&&(s===i+1?p++:s>i?l>c-i?p+=s-i:p--:p=s<i&&s==i-1?s-i:0,s!==r+p&&(o.__u|=65536))):(a=n[r])&&null==a.key&&a.__e&&(a.__e==e.__d&&(e.__d=W(a)),ae(a,a,!1),n[r]=null,l--);if(l)for(r=0;r<u;r++)null!=(a=n[r])&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=W(a)),ae(a,a))}(n,t,h),c=n.__d,p=0;p<_;p++)null!=(f=n.__k[p])&&"boolean"!=typeof f&&"function"!=typeof f&&(d=-1===f.__i?L:h[f.__i]||L,f.__i=p,te(e,f,d,o,a,i,s,c,u,l),g=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&oe(d.ref,null,f),l.push(f.ref,f.__c||g,f)),null==m&&null!=g&&(m=g),65536&f.__u||d.__k===f.__k?c=K(f,c,e):"function"==typeof f.type&&void 0!==f.__d?c=f.__d:g&&(c=g.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=m}function K(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=K(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function J(e,t,n,r){var o=e.key,a=e.type,i=n-1,s=n+1,c=t[n];if(null===c||c&&o==c.key&&a===c.type)return n;if(r>(null==c||131072&c.__u?0:1))for(;i>=0||s<t.length;){if(i>=0){if((c=t[i])&&!(131072&c.__u)&&o==c.key&&a===c.type)return i;i--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&a===c.type)return s;s++}}return-1}function X(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||M.test(t)?n:n+"px"}function Q(e,t,n,r,o){var a;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||X(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||X(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=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+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?ee:Z,a)):e.removeEventListener(t,a?ee:Z,a);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]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Z(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(N.event?N.event(e):e)}}function ee(e){if(this.l)return this.l[e.type+!0](N.event?N.event(e):e)}function te(e,t,n,r,o,a,i,s,c,u){var l,p,d,f,g,m,h,_,y,T,S,E,b,v,I,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(l=N.__b)&&l(t);e:if("function"==typeof A)try{if(_=t.props,y=(l=A.contextType)&&r[l.__c],T=l?y?y.props.value:l.__:r,n.__c?h=(p=t.__c=n.__c).__=p.__E:("prototype"in A&&A.prototype.render?t.__c=p=new A(_,T):(t.__c=p=new H(_,T),p.constructor=A,p.render=ie),y&&y.sub(p),p.props=_,p.state||(p.state={}),p.context=T,p.__n=r,d=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=B({}
vendor: 4,236 bytes, line 2
2,p.__s)),B(p.__s,A.getDerivedStateFromProps(_,p.__s))),f=p.props,g=p.state,p.__v=t,d)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==A.getDerivedStateFromProps&&_!==f&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(_,T),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(_,p.__s,T)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=_,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&i.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(_,p.__s,T),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(f,g,m)})}if(p.context=T,p.props=_,p.__P=e,p.__e=!1,E=N.__r,b=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,E&&E(t),l=p.render(p.props,p.state,p.context),v=0;v<p._sb.length;v++)p.__h.push(p._sb[v]);p._sb=[]}else do{p.__d=!1,E&&E(t),l=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++b<25);p.state=p.__s,null!=p.getChildContext&&(r=B(B({},r),p.getChildContext())),d||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(f,g)),Y(e,x(I=null!=l&&l.type===G&&null==l.key?l.props.children:l)?I:[I],t,n,r,o,a,i,s,c,u),p.base=t.__e,t.__u&=-161,p.__h.length&&i.push(p),h&&(p.__E=p.__=null)}catch(e){t.__v=null,c||null!=a?(t.__e=s,t.__u|=c?160:32,a[a.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),N.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=re(n.__e,t,n,r,o,a,i,c,u);(l=N.diffed)&&l(t)}function ne(e,t,n){for(var r=0;r<n.length;r++)oe(n[r],n[++r],n[++r]);N.__c&&N.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){N.__e(e,t.__v)}})}function re(e,t,n,r,o,a,i,s,c){var u,l,p,d,f,g,m,h=n.props,_=t.props,y=t.type;if("svg"===y&&(o=!0),null!=a)for(u=0;u<a.length;u++)if((f=a[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,a[u]=null;break}if(null==e){if(null===y)return document.createTextNode(_);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),a=null,s=!1}if(null===y)h===_||s&&e.data===_||(e.data=_);else{if(a=a&&R.call(e.childNodes),h=n.props||L,!s&&null!=a)for(h={},u=0;u<e.attributes.length;u++)h[(f=e.attributes[u]).name]=f.value;for(u in h)f=h[u],"children"==u||("dangerouslySetInnerHTML"==u?p=f:"key"===u||u in _||Q(e,u,null,f,o));for(u in _)f=_[u],"children"==u?d=f:"dangerouslySetInnerHTML"==u?l=f:"value"==u?g=f:"checked"==u?m=f:"key"===u||s&&"function"!=typeof f||h[u]===f||Q(e,u,f,h[u],o);if(l)s||p&&(l.__html===p.__html||l.__html===e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(p&&(e.innerHTML=""),Y(e,x(d)?d:[d],t,n,r,o&&"foreignObject"!==y,a,i,a?a[0]:n.__k&&W(n,0),s,c),null!=a)for(u=a.length;u--;)null!=a[u]&&D(a[u]);s||(u="value",void 0!==g&&(g!==e[u]||"progress"===y&&!g||"option"===y&&g!==h[u])&&Q(e,u,g,h[u],!1),u="checked",void 0!==m&&m!==e[u]&&Q(e,u,m,h[u],!1))}return e}function oe(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){N.__e(e,n)}}function ae(e,t,n){var r,o;if(N.unmount&&N.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||oe(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){N.__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]&&ae(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||D(e.__e),e.__=e.__e=e.__d=void 0}function ie(e,t,n){return this.constructor(e,n)}R=k.slice,N={__e:function(e,t,n,r){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},O=0,H.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=B({},this.state),"function"==typeof e&&(e=e(B({},n),this.props)),e&&B(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),V(this))},H.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),V(this))},H.prototype.render=G,P=[],C="function"==typeof Promise?Promise.prototype.then.bind(Prom
2ise.resolve()):setTimeout,U=function(e,t){return e.__v.__b-t.__v.__b},z.__r=0;var se,ce,ue,le,pe=0,de=[],fe=[],ge=N,me=ge.__b,he=ge.__r,_e=ge.diffed,ye=ge.__c,Te=ge.unmount,Se=ge.__;function Ee(e,t){ge.__h&&ge.__h(ce,e,pe||t),pe=0;var n=ce.__H||(ce.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:fe}),n.__[e]}function be(e){return pe=1,ve(Le,e)}function ve(e,t,n){var r=Ee(se++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Le(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=ce,!ce.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!a||a.call(this,e,t,n);var i=!1;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};ce.u=!0;var a=ce.shouldComponentUpdate,i=ce.componentWillUpdate;ce.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,o(e,t,n),a=r}i&&i.call(this,e,t,n)},ce.shouldComponentUpdate=o}return r.__N||r.__}function Ie(e,t){var n=Ee(se++,4);!ge.__s&&Ue(n.__H,t)&&(n.__=e,n.i=t,ce.__h.push(n))}function Ae(e,t){var n=Ee(se++,7);return Ue(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Re(e,t){return pe=8,Ae(function(){return e},t)}function Ne(){for(var e;e=de.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(we),e.__H.__h.forEach(Ce),e.__H.__h=[]}catch(se){e.__H.__h=[],ge.__e(se,e.__v)}}ge.__b=function(e){ce=null,me&&me(e)},ge.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Se&&Se(e,t)},ge.__r=function(e){he&&he(e),se=0;var t=(ce=e.__c).__H;t&&(ue===ce?(t.__h=[],ce.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=fe,e.__N=e.i=void 0})):(t.__h.forEach(we),t.__h.forEach(Ce),t.__h=[],se=0)),ue=ce},ge.diffed=function(e){_e&&_e(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==de.push(t)&&le===ge.requestAnimationFrame||((le=ge.requestAnimationFrame)||Pe)(Ne)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==fe&&(e.__=e.__V),e.i=void 0,e.__V=fe})),ue=ce=null},ge.__c=function(e,t){t.some(function(e){try{e.__h.forEach(we),e.__h=e.__h.filter(function(e){return!e.__||Ce(e)})}catch(ce){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ge.__e(ce,e.__v)}}),ye&&ye(e,t)},ge.unmount=function(e){Te&&Te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{we(e)}catch(e){t=e}}),n.__H=void 0,t&&ge.__e(t,n.__v))};var Oe="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(r),Oe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Oe&&(t=requestAnimationFrame(n))}function we(e){var t=ce,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ce=t}function Ce(e){var t=ce;e.__c=e.__(),ce=t}function Ue(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Le(e,t){return"function"==typeof t?t(e):t}const ke=Object.defineProperty({__proto__:null,useCallback:Re,useContext:function(e){var t=ce.context[e.__c],n=Ee(se++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(ce)),t.props.value):e.__},useDebugValue:function(e,t){ge.useDebugValue&&ge.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=Ee(se++,3);!ge.__s&&Ue(n.__H,t)&&(n.__=e,n.i=t,ce.__H.__h.push(n))},useErrorBoundary:function(e){var t=Ee(se++,10),n=be();return t.__=e,ce.componentDidCatch||(ce.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=Ee(se++,11);if(!e.__){for(var t=ce.__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){pe=6,Ie(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))},useLayoutEffect:Ie,useMemo:Ae,useReducer:ve,useRef:function(e){return pe=5,Ae(function(){return{current:e}},[])},useState:be},Symbol.toStringTag,{value:"Module"});function Me(){const e=e=>a.createElementNS("http://www.w3.org/2000/svg",e),t=T(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=T(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}function xe({options:e}){const t=Ae(()=>({__html:Me().outerHTML}),[]);return j("h2",{class:"dialog__header"},j("span",{class:"dialog__title"},e.formTitle),e.showBranding?j("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Be(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}
2function De({options:e,defaultEmail:t,defaultName:n,onFormClose:o,onSubmit:a,onSubmitSuccess:i,onSubmitError:s,showEmail:c,showName:u,screenshotInput:l}){const{tags:p,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:f,cancelButtonLabel:g,emailLabel:m,emailPlaceholder:h,isEmailRequired:y,isNameRequired:T,messageLabel:S,messagePlaceholder:E,nameLabel:b,namePlaceholder:v,submitButtonLabel:I,isRequiredLabel:A}=e,[R,N]=be(!1),[O,P]=be(null),[w,C]=be(!1),U=l?.input,[L,k]=be(null),M=Re(e=>{k(e),C(!1)},[]),x=Re(e=>{const t=function(e,t){const 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:m,isEmailRequired:y,isNameRequired:T,messageLabel:S,nameLabel:b});return t.length>0?P(`Please enter in the following required fields: ${t.join(", ")}`):P(null),0===t.length},[m,y,T,S,b]),B=Re(async e=>{N(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const n=new FormData(e.target),o=await(l&&w?l.value():void 0),c={name:Be(n,"name"),email:Be(n,"email"),message:Be(n,"message"),attachments:o?[o]:void 0};if(!x(c))return;try{const e=await a({name:c.name,email:c.email,message:c.message,source:"widget",tags:p},{attachments:c.attachments});i(c,e)}catch(t){_&&r.debug.error(t);const e=t instanceof Error?t:new Error(String(t));P(e.message),s(e)}}finally{N(!1)}},[l&&w,i,s]);return j("form",{class:"form",onSubmit:B},U&&w?j(U,{onError:M}):null,j("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:R},j("div",{class:"form__top"},O?j("div",{class:"form__error-container"},O):null,u?j("label",{for:"name",class:"form__label"},j(je,{label:b,isRequiredLabel:A,isRequired:T}),j("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:v,required:T,type:"text"})):j("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),c?j("label",{for:"email",class:"form__label"},j(je,{label:m,isRequiredLabel:A,isRequired:y}),j("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:h,required:y,type:"email"})):j("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),j("label",{for:"message",class:"form__label"},j(je,{label:S,isRequiredLabel:A,isRequired:!0}),j("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:E,required:!0,rows:5})),U?j("label",{for:"screenshot",class:"form__label"},j("button",{class:"btn btn--default",disabled:R,type:"button",onClick:()=>{k(null),C(e=>!e)}},w?f:d),L?j("div",{class:"form__error-container"},L.message):null):null),j("div",{class:"btn-group"},j("button",{class:"btn btn--primary",disabled:R,type:"submit"},I),j("button",{class:"btn btn--default",disabled:R,type:"button",onClick:o},g))))}function je({label:e,isRequired:t,isRequiredLabel:n}){return j("span",{class:"form__label__text"},e,t&&j("span",{class:"form__label__text--required"},n))}function Fe(){const e=e=>o.document.createElementNS("http://www.w3.org/2000/svg",e),t=T(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=T(e("g"),{clipPath:"url(#clip0_57_156)"}),r=T(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"}),a=T(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
210.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(a,r);const i=e("defs"),s=T(e("clipPath"),{id:"clip0_57_156"}),c=T(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return s.appendChild(c),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(c),t}function Ge({open:e,onFormSubmitted:t,...n}){const r=n.options,o=Ae(()=>({__html:Fe().outerHTML}),[]),[a,i]=be(null),s=Re(()=>{a&&(clearTimeout(a),i(null)),t()},[a]),c=Re((e,r)=>{n.onSubmitSuccess(e,r),i(setTimeout(()=>{t(),i(null)},5e3))},[t]);return j(G,null,a?j("div",{class:"success__position",onClick:s},j("div",{class:"success__content"},r.successMessageText,j("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):j("dialog",{class:"dialog",onClick:r.onFormClose,open:e},j("div",{class:"dialog__position"},j("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},j(xe,{options:r}),j(De,{...n,onSubmitSuccess:c})))))}function He(e){const t=a.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`\n.editor {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n}\n\n.editor__image-container {\n justify-items: center;\n padding: 15px;\n position: relative;\n height: 100%;\n border-radius: var(--menu-border-radius, 6px);\n\n background-color: ${n};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${n} 8px,\n ${n} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${r} 15px,\n ${r} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container > * {\n object-fit: contain;\n position: absolute;\n}\n\n.editor__tool-container {\n padding-top: 8px;\n display: flex;\n justify-content: center;\n}\n\n.editor__tool-bar {\n display: flex;\n gap: 8px;\n}\n\n.editor__tool {\n display: flex;\n padding: 8px 12px;\n justify-content: center;\n align-items: center;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n background: var(--button-background, var(--background));\n color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n background: var(--button-primary-background, var(--accent-background));\n color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n position: absolute;\n z-index: 2;\n}\n\n.editor__rect button {\n opacity: 0;\n position: absolute;\n top: -12px;\n right: -12px;\n cursor: pointer;\n padding: 0;\n z-index: 3;\n border: none;\n background: none;\n}\n\n.editor__rect:hover button {\n opacity: 1;\n}\n`,e&&t.setAttribute("nonce",e),t}function We({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:s}){const c=function(){const[t,n]=e.useState(o.devicePixelRatio??1);return e.useEffect(()=>{const e=()=>{n(o.devicePixelRatio)},t=matchMedia(`(resolution: ${o.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();const e=await i.mediaDevices.getDisplayMedia({video:{width:o.innerWidth*c,height:o.innerHeight*c},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),s=a.createElement("video");await new Promise((t,r)=>{s.srcObject=e,s.onloadedmetadata=()=>{n(s,c),e.getTracks().forEach(e=>e.stop()),t()},s.play().catch(r)}),r()})().catch(s)},[])}}function $e(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function qe(e,t){$e(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function Ve(e,t,n){$e(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEac
2h(e=>{!function(e,t,n){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,r,t)})})}function ze({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){const s=We({hooks:t}),c=function({h:e}){return function({action:t,setAction:n,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:"editor__tool "+("highlight"===t?"editor__tool--active":""),onClick:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:"editor__tool "+("hide"===t?"editor__tool--active":""),onClick:()=>{n("hide"===t?"":"hide")}},r.hideToolText)))}}({h:e}),u=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),l={__html:He(i.styleNonce).innerText},p=r.el.style,d=({screenshot:r})=>{const[s,p]=t.useState("highlight"),[d,f]=t.useState([]),g=t.useRef(null),m=t.useRef(null),h=t.useRef(null),_=t.useRef(null),[y,T]=t.useState(1),S=t.useMemo(()=>{const e=a.getElementById(i.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{const e=()=>{const t=g.current;t&&($e(r.canvas,{alpha:!1},e=>{const n=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);T(n)}),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),o.addEventListener("resize",e),()=>{o.removeEventListener("resize",e)}},[r]);const E=t.useCallback((e,t)=>{$e(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{E(m.current,r.dpi),qe(m.current,r.canvas)},[r]),t.useEffect(()=>{E(h.current,r.dpi),$e(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Ve(h.current,S,d)},[d,S]),t.useEffect(()=>{E(n,r.dpi),qe(n,r.canvas),$e(a.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,Ve(e,S,d),qe(n,e)})},[d,r,S]);const b=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),f(t=>{const n=[...t];return n.splice(e,1),n})},[]),v={width:r.canvas.width*y+"px",height:r.canvas.height*y+"px"},I=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:l}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:g},e("canvas",{ref:m,id:"background",style:v}),e("canvas",{ref:h,id:"foreground",style:v}),e("div",{ref:_,onMouseDown:e=>{if(!s||!_.current)return;const t=_.current.getBoundingClientRect(),n={type:s,x:e.offsetX/y,y:e.offsetY/y},r=(e,n)=>{const r=(n.clientX-t.x)/y,o=(n.clientY-t.y)/y;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,o),w:Math.abs(r-e.x),h:Math.abs(o-e.y)}},o=e=>{$e(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Ve(h.current,S,[...d,r(n,e)])},i=e=>{const t=r(n,e);t.w*y>=1&&t.h*y>=1&&f(e=>[...e,t]),a.removeEventListener("mousemove",o),a.removeEventListener("mouseup",i)};a.addEventListener("mousemove",o),a.addEventListener("mouseup",i)},style:v},d.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:t.y*y+"px",left:t.x*y+"px",width:t.w*y+"px",height:t.h*y+"px"}},e("button",{"aria-label":i.removeHighlightText,onClick:b(n),onMouseDown:I,onMouseUp:I,type:"button"},e(u,null))))))),e(c,{options:i,action:s,setAction:p}))};return function({onError:r}){const[o,i]=t.useState();return s({onBeforeScreenshot:t.useCallback(()=>{p.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{$e(a.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),i({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{p.display="block"},[]),onError:t.useCallback(e=>{p.display="block",r(e)},[])}),o?e(d,{screenshot:o}):e("div",null)}}t.buildFeedbackIntegration=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:o="sentry-feedback",autoInject:f=!0,showBranding:g=!0,isEmailRequired:m=!1,isNameRequired:T=!1,showEmail
2:E=!0,showName:b=!0,enableScreenshot:v=!0,useSentryUser:I={email:"email",name:"username"},tags:R,styleNonce:N,scriptNonce:O,colorScheme:P="system",themeLight:w={},themeDark:C={},addScreenshotButtonLabel:U="Add a screenshot",cancelButtonLabel:L="Cancel",confirmButtonLabel:k="Confirm",emailLabel:M="Email",emailPlaceholder:x="[email protected]",formTitle:B="Report a Bug",isRequiredLabel:D="(required)",messageLabel:j="Description",messagePlaceholder:F="What's the bug? What did you expect?",nameLabel:G="Name",namePlaceholder:H="Your Name",removeScreenshotButtonLabel:W="Remove screenshot",submitButtonLabel:$="Send Bug Report",successMessageText:q="Thank you for your report!",triggerLabel:V=s,triggerAriaLabel:z="",highlightToolText:Y="Highlight",hideToolText:K="Hide",removeHighlightText:J="Remove",errorEmptyMessageText:X=c,errorNoClientText:Q=u,errorTimeoutText:Z=l,errorForbiddenText:ee=p,errorGenericText:te=d,onFormOpen:ne,onFormClose:re,onSubmitSuccess:oe,onSubmitError:ae,onFormSubmitted:ie}={})=>{const se={id:o,autoInject:f,showBranding:g,isEmailRequired:m,isNameRequired:T,showEmail:E,showName:b,enableScreenshot:v,useSentryUser:I,tags:R,styleNonce:N,scriptNonce:O,colorScheme:P,themeDark:C,themeLight:w,triggerLabel:V,triggerAriaLabel:z,cancelButtonLabel:L,submitButtonLabel:$,confirmButtonLabel:k,formTitle:B,emailLabel:M,emailPlaceholder:x,messageLabel:j,messagePlaceholder:F,nameLabel:G,namePlaceholder:H,successMessageText:q,isRequiredLabel:D,addScreenshotButtonLabel:U,removeScreenshotButtonLabel:W,highlightToolText:Y,hideToolText:K,removeHighlightText:J,errorEmptyMessageText:X,errorNoClientText:Q,errorTimeoutText:Z,errorForbiddenText:ee,errorGenericText:te,onFormClose:re,onFormOpen:ne,onSubmitError:ae,onSubmitSuccess:oe,onFormSubmitted:ie};let ce=null,ue=null,le=[];const pe=e=>{if(!ce){const t=a.createElement("div");t.id=String(e.id),a.body.appendChild(t),ce=t.attachShadow({mode:"open"}),ue=A(e),ce.appendChild(ue)}return ce},de=async o=>{const a=o.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i.userAgent)||/Macintosh/i.test(i.userAgent)&&i.maxTouchPoints&&i.maxTouchPoints>1||!isSecureContext);let s,c;try{s=(t?t():await e("feedbackModalIntegration",O))(),r.addIntegration(s)}catch{throw _&&r.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const t=a?n?n():await e("feedbackScreenshotIntegration",O):void 0;t&&(c=t(),r.addIntegration(c))}catch{_&&r.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const u={ERROR_EMPTY_MESSAGE:o.errorEmptyMessageText,ERROR_NO_CLIENT:o.errorNoClientText,ERROR_TIMEOUT:o.errorTimeoutText,ERROR_FORBIDDEN:o.errorForbiddenText,ERROR_GENERIC:o.errorGenericText},l=s.createDialog({options:{...o,onFormClose:()=>{l?.close(),o.onFormClose?.()},onFormSubmitted:()=>{l?.close(),o.onFormSubmitted?.()}},screenshotIntegration:c,sendFeedback:(e,t)=>h(e,{includeReplay:!0,...t,errorMessages:u}),shadow:pe(o)});return l},fe=(e,t={})=>{const n=y(se,t),o="string"==typeof e?a.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!o)throw _&&r.debug.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let i=null;const s=async()=>{i||(i=await de({...n,onFormSubmitted:()=>{i?.removeFromDom(),n.onFormSubmitted?.()}})),i.appendToDom(),i.open()};o.addEventListener("click",s);const c=()=>{le=le.filter(e=>e!==c),i?.removeFromDom(),i=null,o.removeEventListener("click",s)};return le.push(c),c},ge=(e={})=>{const t=y(se,e),n=pe(t),r=S({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:N});return fe(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){r.isBrowser()&&se.autoInject&&("loading"===a.readyState?a.addEventListener("DOMContentLoaded",()=>ge().appendToDom()):ge().appendToDom())},attachTo:fe,createWidget(e={}){const t=ge(y(se,e));return t.appendToDom(),t},async createForm(e={}){return de(y(se,e))},setTheme(e){if(se.colorScheme=e,ce){const e=A(se);ue?ce.replaceChild(e,ue):ce.prepend(e),ue=e}},remove(){ce&&(ce.parentElement?.remove(),ce=null,ue=null),le.forEach(e
2=>e()),le=[]}}},t.feedbackModalIntegration=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:o})=>{const i=o,s=e.useSentryUser,c=function(){const e=r.getCurrentScope().getUser(),t=r.getIsolationScope().getUser(),n=r.getGlobalScope().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),u=a.createElement("div"),l=function(e){const t=a.createElement("style");return t.textContent="\n:host {\n --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));
2\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n display: flex;\n gap: 4px;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n.dialog__title {\n align-self: center;\n width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n .dialog__title {\n width: auto;\n }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n width: auto;\n}\n\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n\n\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form fieldset {\n border: none;\n margin: 0;\n padding: 0;\n}\n\n.form__right {\n flex: 0 0 auto;\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n width: var(--form-width, 272px);\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);
2\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(e.styleNonce);let p="";const d={get el(){return u},appendToDom(){i.contains(l)||i.contains(u)||(i.appendChild(l),i.appendChild(u))},removeFromDom(){u.remove(),l.remove(),a.body.style.overflow=p},open(){g(!0),e.onFormOpen?.(),r.getClient()?.emit("openFeedbackWidget"),p=a.body.style.overflow,a.body.style.overflow="hidden"},close(){g(!1),a.body.style.overflow=p}},f=t?.createInput({h:j,hooks:ke,dialog:d,options:e}),g=t=>{!function(e,t){var n,r,o;N.__&&N.__(e,t),n=t.__k,r=[],o=[],te(t,e=t.__k=j(G,null,[e]),n||L,L,void 0!==t.ownerSVGElement,n?null:t.firstChild?R.call(t.childNodes):null,r,n?n.__e:t.firstChild,!1,o),e.__d=void 0,ne(r,e,o)}(j(Ge,{options:e,screenshotInput:f,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(s&&c?.[s.name]||""),defaultEmail:String(s&&c?.[s.email]||""),onFormClose:()=>{g(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{g(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),u)};return d}}),t.feedbackScreenshotIntegration=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=a.createElement("canvas");return{input:ze({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{const e=await new Promise(e=>
2{o.toBlob(e,"image/png")});if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}}),t.getFeedback=function(){const e=r.getClient();return e?.getIntegrationByName("Feedback")},t.sendFeedback=h},90059:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(19122),o=n(30307);t.init=o.init,Object.prototype.hasOwnProperty.call(r,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:r.__proto__}),Object.keys(r).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r[e])})},30307:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872),o=n(19122);t.init=function(e){return r.applySdkMetadata(e,"gatsby"),o.init({...e})}},94851:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});t.REACT_MOUNT_OP="ui.react.mount",t.REACT_RENDER_OP="ui.react.render",t.REACT_UPDATE_OP="ui.react.update"},31008:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.DEBUG_BUILD=n},40504:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(63020),a=n(96540);function i(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}function s(e,t){const n=new WeakSet;!function e(t,r){if(!n.has(t))return t.cause?(n.add(t),e(t.cause,r)):void(t.cause=r)}(e,t)}function c(e,{componentStack:t},n){if(i(a.version)&&o.isError(e)&&t){const n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,s(e,n)}return r.captureException(e,n)}t.captureReactException=c,t.isAtLeastReact17=i,t.reactErrorHandler=function(e){return(t,n)=>{const r=!!e,o=c(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,o)}},t.setCause=s},17398:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(37872),a=n(96540),i=n(31008),s=n(40504),c=n(66815),u="unknown",l={componentStack:null,error:null,eventId:null};class p extends a.Component{constructor(e){super(e),this.state=l,this._openFallbackReportDialog=!0;const t=r.getClient();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&r.showReportDialog({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){const{componentStack:n}=t,{beforeCapture:o,onError:a,showDialog:i,dialogOptions:c}=this.props;r.withScope(u=>{o&&o(u,e,n);const l=null!=this.props.handled?this.props.handled:!!this.props.fallback,p=s.captureReactException(e,t,{mechanism:{handled:l,type:"auto.function.react.error_boundary"}});a&&a(e,n,p),i&&(this._lastEventId=p,this._openFallbackReportDialog&&r.showReportDialog({...c,eventId:p})),this.setState({error:e,componentStack:n,eventId:p})})}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===l?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(l)}render(){const{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;const r="function"==typeof e?a.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return a.isValidElement(r)?r:(e&&i.DEBUG_BUILD&&o.debug.warn("fallback did not produce a valid ReactElement"),null)}}t.ErrorBoundary=p,t.UNKNOWN_COMPONENT=u,t.withErrorBoundary=function(e,t){const n=e.displayName||e.name||u,r=a.memo(n=>a.createElement(p,{...t},a.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,c.hoistNonReactStatics(r,e),r}},66815:function(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0}
2,r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a=Symbol.for("react.forward_ref"),i=Symbol.for("react.memo");const s={};function c(e){if(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}(e))return o;const t=e.$$typeof;return t&&s[t]||n}s[a]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i]=o;const u=Object.defineProperty.bind(Object),l=Object.getOwnPropertyNames.bind(Object),p=Object.getOwnPropertySymbols?.bind(Object),d=Object.getOwnPropertyDescriptor.bind(Object),f=Object.getPrototypeOf.bind(Object),g=Object.prototype;t.hoistNonReactStatics=function e(t,n,o){if("string"!=typeof n){if(g){const r=f(n);r&&r!==g&&e(t,r)}let o=l(n);p&&(o=o.concat(p(n)));const i=c(t),s=c(n);for(const e of o)if(!(r[e]||s?.[e]||i?.[e]||d(t,e))){const r=d(n,e);if(r)try{u(t,e,r)}catch(a){}}}return t}},19122:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(27830),a=n(40504),i=n(79005),s=n(17398),c=n(21524),u=n(14663),l=n(10524),p=n(71044),d=n(32988),f=n(72099),g=n(95910);t.init=o.init,t.captureReactException=a.captureReactException,t.reactErrorHandler=a.reactErrorHandler,t.Profiler=i.Profiler,t.useProfiler=i.useProfiler,t.withProfiler=i.withProfiler,t.ErrorBoundary=s.ErrorBoundary,t.withErrorBoundary=s.withErrorBoundary,t.createReduxEnhancer=c.createReduxEnhancer,t.reactRouterV3BrowserTracingIntegration=u.reactRouterV3BrowserTracingIntegration,t.tanstackRouterBrowserTracingIntegration=l.tanstackRouterBrowserTracingIntegration,t.reactRouterV4BrowserTracingIntegration=p.reactRouterV4BrowserTracingIntegration,t.reactRouterV5BrowserTracingIntegration=p.reactRouterV5BrowserTracingIntegration,t.withSentryRouting=p.withSentryRouting,t.reactRouterV6BrowserTracingIntegration=d.reactRouterV6BrowserTracingIntegration,t.withSentryReactRouterV6Routing=d.withSentryReactRouterV6Routing,t.wrapCreateBrowserRouterV6=d.wrapCreateBrowserRouterV6,t.wrapCreateMemoryRouterV6=d.wrapCreateMemoryRouterV6,t.wrapUseRoutesV6=d.wrapUseRoutesV6,t.reactRouterV7BrowserTracingIntegration=f.reactRouterV7BrowserTracingIntegration,t.withSentryReactRouterV7Routing=f.withSentryReactRouterV7Routing,t.wrapCreateBrowserRouterV7=f.wrapCreateBrowserRouterV7,t.wrapCreateMemoryRouterV7=f.wrapCreateMemoryRouterV7,t.wrapUseRoutesV7=f.wrapUseRoutesV7,t.reactRouterBrowserTracingIntegration=g.reactRouterBrowserTracingIntegration,t.wrapCreateBrowserRouter=g.wrapCreateBrowserRouter,t.wrapCreateMemoryRouter=g.wrapCreateMemoryRouter,t.wrapReactRouterRouting=g.wrapReactRouterRouting,t.wrapUseRoutes=g.wrapUseRoutes,Object.prototype.hasOwnProperty.call(r,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:r.__proto__}),Object.keys(r).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r[e])})},69513:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872);t.isSyntheticEvent=function(e){return r.isPlainObject(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}},79005:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(37872),a=n(96540),i=n(94851),s=n(66815),c="unknown";class u extends a.Component{constructor(e){super(e);const{name:t,disabled:n=!1}=this.props;n||(this._mountSpan=r.startInactiveSpan({name:`<${t}>`,onlyIfParent:!0,op:i.REACT_MOUNT_OP,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){const t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){const e=o.timestampInSeconds();this._updateSpan=o.withActiveSpan(this._mountSpan,()=>r.startInactiveSpan({name:`<${this.props.name}>`,onlyIfParent:!0,op:i.REACT_UPDATE_OP,startTime:e,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const e=o.timestampInSeconds(),{name:t,includeRender:n=!0}
2=this.props;if(this._mountSpan&&n){const n=o.spanToJSON(this._mountSpan).timestamp;o.withActiveSpan(this._mountSpan,()=>{const a=r.startInactiveSpan({onlyIfParent:!0,name:`<${t}>`,op:i.REACT_RENDER_OP,startTime:n,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}});a&&a.end(e)})}}render(){return this.props.children}}Object.assign(u,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}}),t.Profiler=u,t.UNKNOWN_COMPONENT=c,t.useProfiler=function(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=a.useState(()=>{if(!t?.disabled)return r.startInactiveSpan({name:`<${e}>`,onlyIfParent:!0,op:i.REACT_MOUNT_OP,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}})});a.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const t=o.spanToJSON(n).timestamp,a=o.timestampInSeconds(),s=r.startInactiveSpan({name:`<${e}>`,onlyIfParent:!0,op:i.REACT_RENDER_OP,startTime:t,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}});s&&s.end(a)}}),[])},t.withProfiler=function(e,t){const n=t?.name||e.displayName||e.name||c,r=r=>a.createElement(u,{...t,name:n,updateProps:r},a.createElement(e,{...r}));return r.displayName=`profiler(${n})`,s.hoistNonReactStatics(r,e),r}},39014:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(37872),a=n(96540),i=n(31008),s=n(66815),c=n(83),u=n(69865);let l,p,d,f,g,m,h=!1,_=3e3,y="";const T=new WeakSet,S=r.WINDOW?.document?a.useLayoutEffect:a.useEffect,E=new WeakMap,b=new Set,v=new WeakMap,I=new WeakMap;function A(e){r.WINDOW?.cancelAnimationFrame?r.WINDOW.cancelAnimationFrame(e):clearTimeout(e)}function R(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function N(e){return e.includes(":")||e.includes("*")}function O(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){const t=!!e.routeName&&u.transactionNameHasWildcard(e.routeName),r=u.transactionNameHasWildcard(n),o=!!e.routeName&&N(e.routeName),a=N(n),i=t&&!r,s=!o&&a,c=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!r;return{skip:!0,shouldUpdate:!(!e.routeName||!(i||s||c))}}return{skip:!1,shouldUpdate:!1}}function P(e,t){const n=t.children||[],r=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));r.length>0&&(t.children=[...n,...r])}function w(e,t){let n=v.get(e);n||(n=new Set,v.set(e,n)),n.add(t),t.finally(()=>{const n=v.get(e);n&&n.delete(t)})}function C(e){const t=new Promise(t=>{I.set(e,t)});w(e,t)}function U(e,t,n=null,a){e.forEach(e=>{b.add(e),h&&c.checkRouteForAsyncHandler(e,U)}),t&&P(e,t);const s=a??u.getActiveRootSpan();if(s){const e=o.spanToJSON(s);if(e.timestamp)return void(i.DEBUG_BUILD&&o.debug.warn("[React Router] Lazy handler resolved after span ended - skipping update"));const t=e.op;let c=n;if(!c&&!a&&void 0!==r.WINDOW){const e=r.WINDOW.location;e?.pathname&&(c={pathname:e.pathname})}c&&("pageload"===t?j({activeRootSpan:s,location:{pathname:c.pathname},routes:Array.from(b),allRoutes:Array.from(b)}):"navigation"===t&&L(s,c,Array.from(b),!1,g))}}function L(e,t,n,r=!1,a){const i=o.spanToJSON(e),s=i.description,c=e?.__sentry_navigation_name_set__,l=s&&u.transactionNameHasWildcard(s);if((!c||r||l)&&!i.timestamp){const r=a(n,t),[p,d]=u.resolveRouteNameAndSource(t,n,n,r||[],y,m,h),f=i.data?.[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];p&&(!s||!c&&("route"!==f||"route"===d)||"route"!==f&&"route"===d||"route"===f&&"route"===d&&l)&&(e.updateName(p),e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,d),u.transactionNameHasWildcard(p)||"route"!==d||o.addNonEnumerableProperty(e,"__sentry_navigation_name_set__",!0))}}function k(e,t,n,a,i){let s=!1,c=!!i&&"pageload"===o.spanToJSON(i).op,l=!1,p=null,d=null;e.subscribe(e=>{if(!s){const t=u.getActiveRootSpan();t&&"pageload"===o.spanToJSON(t).op?c=!0:c&&("POP"!==e.historyAction||l?s=!0:l=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&s){const o=R(e.location),s=()=>{d!==o&&(d=o,p=null,x({location:e.location,routes:t,navigationType:e.historyAction,version:n,basename:a,allRoutes:Array.from(b)}))};
2"idle"!==e.navigation.state?(d!==o&&(d=null),null!==p&&A(p),i=s,p=r.WINDOW?.requestAnimationFrame?r.WINDOW.requestAnimationFrame(i):setTimeout(i,0)):(null!==p&&(A(p),p=null),s())}var i})}function M(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};const r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{const a=e?.path,i=u.getActiveRootSpan()??n;if(!t){const t=e?.patch,n=e?.matches;t&&(e.patch=(e,r)=>{if(B(r),n&&n.length>0){const t=n[n.length-1],o=t?.route;if(o){const t=Array.from(b).find(t=>{const n=void 0!==t.id&&t.id===e,r=t===o,a=void 0!==t.path&&void 0!==o.path&&t.path===o.path;return n||r||a});t&&P(r,t)}}const s=i?o.spanToJSON(i):void 0;return a&&i&&s&&!s.timestamp&&"navigation"===s.op&&L(i,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(b),!0,g),t(e,r)})}const s=(async()=>{const t=u.setNavigationContext(a,i);let n;try{n=await r(e)}finally{u.clearNavigationContext(t),i&&function(e){const t=I.get(e);t&&(t(),I.delete(e),e.__sentry_may_have_lazy_routes__&&(e.__sentry_may_have_lazy_routes__=!1))}(i)}const s=i?o.spanToJSON(i):void 0;if(i&&s&&!s.timestamp&&"navigation"===s.op){a&&L(i,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(b),!1,g)}return n})();return i&&w(i,s),s}}}function x(e){const{location:t,routes:n,navigationType:a,version:s,matches:c,basename:l,allRoutes:p}=e,d=Array.isArray(c)?c:g(p||n,t,l),f=o.getClient();if(!f||!T.has(f))return;const _=u.getActiveRootSpan();if((!_||"pageload"!==o.spanToJSON(_).op||"POP"!==a)&&("PUSH"===a||"POP"===a)&&d){const[e,a]=u.resolveRouteNameAndSource(t,p||n,p||n,d,l,m,h),c=R(t),g=E.get(f),_=!(!g||g.isPlaceholder)&&!!o.spanToJSON(g.span).timestamp,{skip:T,shouldUpdate:S}=O(g,c,e,_);if(T){if(S&&g){const t=g.routeName;g.isPlaceholder?(g.routeName=e,i.DEBUG_BUILD&&o.debug.log(`[Tracing] Updated placeholder navigation name from "${t}" to "${e}" (will apply to real span)`)):(g.span.updateName(e),g.span.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,a),o.addNonEnumerableProperty(g.span,"__sentry_navigation_name_set__",!0),g.routeName=e,i.DEBUG_BUILD&&o.debug.log(`[Tracing] Updated navigation span name from "${t}" to "${e}"`))}else i.DEBUG_BUILD&&o.debug.log(`[Tracing] Skipping duplicate navigation for location: ${c}`);return}const b={span:{end:()=>{}},routeName:e,pathname:t.pathname,locationKey:c,isPlaceholder:!0};let v;E.set(f,b);try{v=r.startBrowserTracingNavigationSpan(f,{name:b.routeName,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter"+(s?`_v${s}`:"")}})}catch(y){throw E.delete(f),y}v?(E.set(f,{span:v,routeName:b.routeName,pathname:t.pathname,locationKey:c}),G(v,t,n,l,"navigation")):E.delete(f)}}function B(e){e.forEach(e=>{D(e).forEach(e=>{b.add(e)})})}function D(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(e=>{D(e,t).forEach(e=>{t.add(e)})})),t}function j({activeRootSpan:e,location:t,routes:n,matches:r,basename:a,allRoutes:i}){const s=Array.isArray(r)?r:g(i||n,t,a);if(s){const[r,c]=u.resolveRouteNameAndSource(t,i||n,i||n,s,a,m,h);o.getCurrentScope().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,c),G(e,t,n,a,"pageload"))}else e&&G(e,t,n,a,"pageload")}function F(e,t,n,r,a,s,c,l){try{const i=t.data?.[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if("route"===i&&n&&!u.transactionNameHasWildcard(n))return;const p=Array.from(l),d=p.length>0?p:a,f=g(d,r,s);if(!f)return;const[_,y]=u.resolveRouteNameAndSource(r,d,d,f,s,m,h),T=function(e,t,n,r,o=!1){return!!n&&(!(e||!o)||(!(!e||!u.transactionNameHasWildcard(e)||"route"!==r||u.transactionNameHasWildcard(n))||"route"!==t&&"route"===r))}(n,i,_,y,!0),S="pageload"===c||!t.timestamp;T&&S&&(e.updateName(_),e.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,y))}catch(p){i.DEBUG_BUILD&&o.debug.warn(`Error updating span details before ending: ${p}`)}}function G(e,t,n,r,a){const i=`__sentry_${a}_end_patched__`,s=e?.[i];if(s||!e.end)return;const c=e.end.bind(e);let l=!1;e.end=function(...i){if(l)return;l=!0;const s=i.length>0?i[0]:Date.now()/1e3,p=o.spanToJSON(e),d=p.description,f=p.data?.[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],g=()=>{const t=o.getClient();if(t&&"navigation"===a){const n=E.get(t);n&&n.span===e&&E.delete(t)}},m=v.get(e),h=e.__sentry_may_have_lazy_routes__;if((m&&m.size>0||h)&&d&&(u.transactionNameHasWildcard(d)||"route"!==f)){if(0===_)return F(e,p,d,t,n,r,a,b),g(),void c(s);const i=new Promise(e=>setTimeout(e,_));let u;if(m&&m.size>0){const e=Promise.allSettled(m).then(()=>{});u=_===1/0?e:Promise.race([e,i])}else u=i;return void u.then(()=>{const i=o.spanToJSON(e);F(e,i,i.description,t,n,r,a,b),g(),c(s)}).catch(()=>{g(),c(s)})}F(e,p,d,t,n,r,a,b),g(),c(s)},o.addNonEnumerableProperty(e,i,!0)}t.addResolvedRoutesToParent=P,t.addRoutesToAllRoutes=B,t.allRoutes=b,t.computeLocationKey=R,t.createReactRouterV6CompatibleTracingIntegration=function(e,t){const n=r.browserTracingIntegration({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:a,useLocation:s,useNavigationType:c,createRoutesFromChildren:y,matchRoutes:S,stripBasename:E,enableAsyncRouteHandlers:b=!1,instrumentPageLoad:v=!0,instrumentNavigation:I=!0,lazyRouteTimeout:A,lazyRouteManifest:R}=e;return{...n,setup(t){n.setup(t);const r=e.finalTimeout??3e4,T=3*(e.idleTimeout??1e3),v=A??T;v===1/0?(_=r,i.DEBUG_BUILD&&o.debug.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",r,"ms to prevent indefinite hangs")):Number.isNaN(v)?(i.DEBUG_BUILD&&o.debug.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",T),_=T):v<0?(i.DEBUG_BUILD&&o.debug.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",v,"falling back to:",T),_=T):_=v,l=a,p=s,d=c,g=S,f=y,h=b,m=R,u.initializeRouterUtils(S,E||!1)},afterAllSetup(e){n.afterAllSetup(e);const a=r.WINDOW.location?.pathname;v&&a&&r.startBrowserTracingPageLoadSpan(e,{name:a,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter"+(t?`_v${t}`:"")}}),I&&T.add(e)}}},t.createV6CompatibleWithSentryReactRouterRouting=function(e,t){if(!(l&&p&&d&&f&&g))return i.DEBUG_BUILD&&o.debug.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: ${l}. useLocation: ${p}. useNavigationType: ${d}.\n createRoutesFromChildren: ${f}. matchRoutes: ${g}.`),e;const n=n=>{const r=a.useRef(!0),o=p(),i=d();return S(()=>{const e=f(n.children);r.current?(B(e),j({activeRootSpan:u.getActiveRootSpan(),location:o,routes:e,allRoutes:Array.from(b)}),r.current=!1):x({location:o,routes:e,navigationType:i,version:t,allRoutes:Array.from(b)})},[o,i]),a.createElement(e,{...n})};return s.hoistNonReactStatics(n,e),n},t.createV6CompatibleWrapCreateBrowserRouter=function(e,t){return l&&p&&d&&g?function(n,r){if(B(n),h)for(const e of n)c.checkRouteForAsyncHandler(e,U);const a=u.getActiveRootSpan();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&a&&(o.addNonEnumerableProperty(a,"__sentry_may_have_lazy_routes__",!0),C(a));const i=M(r,!1,a),s=e(n,i),l=r?.basename;return"POP"===s.state.historyAction&&a&&j({activeRootSpan:a,location:s.state.location,routes:n,basename:l,allRoutes:Array.from(b)}),y=l||"",k(s,n,t,l,a),s}:(i.DEBUG_BUILD&&o.debug.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)},t.createV6CompatibleWrapCreateMemoryRouter=function(e,t){return l&&p&&d&&g?function(n,r){if(B(n),h)for(const e of n)c.checkRouteForAsyncHandler(e,U);const a=u.getActiveRootSpan();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&a&&(o.addNonEnumerableProperty(a,"__sentry_may_have_lazy_routes__",!0),C(a));const i=M(r,!0,a),s=e(n,i),l=r?.basename;let p;const d=r?.initialEntries,f=r?.initialIndex,g=1===d?.length,m=void 0!==f&&d?.[f];p=g?d[0]:m?d[f]:void 0;const _=p?"string"==typeof p?{pathname:p}:p:s.state.location,T=u.getActiveRootSpan();return"POP"===s.state.historyAction&&T&&j({activeRootSpan:T,location:_,routes:n,basename:l,allRoutes:Array.from(b)}),y=l||"",k(s,n,t,l,T),s}:(i.DEBUG_BUILD&&o.debug.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)},t.createV6CompatibleWrapUseRoutes=function(e,t){if(!(l&&p&&d&&g))return i.DEBUG_BUILD&&o.debug.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` be
2cause of one or more missing parameters."),e;const n=n=>{const r=a.useRef(!0),{routes:o,locationArg:i}=n,s=e(o,i),c=p(),l=d(),f="string"==typeof i||i?.pathname?i:c;return S(()=>{const e="string"==typeof f?{pathname:f}:f;r.current?(B(o),j({activeRootSpan:u.getActiveRootSpan(),location:e,routes:o,allRoutes:Array.from(b)}),r.current=!1):x({location:e,routes:o,navigationType:l,version:t,allRoutes:Array.from(b)})},[l,f]),s};return(e,t)=>a.createElement(n,{routes:e,locationArg:t})},t.handleNavigation=x,t.processResolvedRoutes=U,t.shouldSkipNavigation=O,t.updateNavigationSpan=L},83:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(37872),a=n(31008),i=n(69865);function s(e,t,n,s){const u=new Proxy(e,{apply(e,u,l){const p=function(){const e=i.getNavigationContext();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==r.WINDOW)try{const e=r.WINDOW.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{a.DEBUG_BUILD&&o.debug.warn("[React Router] Could not access window.location")}return null}(),d=function(){const e=i.getNavigationContext();return e?e.span:i.getActiveRootSpan()}(),f=e.apply(u,l);return c(f,t,n,s,p,d),f}});return o.addNonEnumerableProperty(u,"__sentry_proxied__",!0),u}function c(e,t,n,r,i,s){o.isThenable(e)?e.then(e=>{Array.isArray(e)&&r(e,t,i??void 0,s)}).catch(e=>{a.DEBUG_BUILD&&o.debug.warn(`Error resolving async handler '${n}' for route`,t,e)}):Array.isArray(e)&&r(e,t,i??void 0,s)}t.checkRouteForAsyncHandler=function e(t,n){if(t.handle&&"object"==typeof t.handle)for(const r of Object.keys(t.handle)){const e=t.handle[r];"function"!=typeof e||e.__sentry_proxied__||(t.handle[r]=s(e,t,r,n))}if(Array.isArray(t.children))for(const r of t.children)e(r,n)},t.createAsyncHandlerProxy=s,t.handleAsyncHandlerResult=c},23807:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(31008);function a(e,t){if(!t||"/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}const i=new WeakMap;function s(e,t){if("/"===t)return"/"===e||""===e;const n=u(e),r=u(t);if(r.length>0&&"*"===r[r.length-1]){const e=r.slice(0,-1);if(n.length<e.length)return!1;for(const[t,r]of e.entries())if(!c(n[t],r))return!1;return!0}if(n.length!==r.length)return!1;for(const[o,a]of r.entries())if(!c(n[o],a))return!1;return!0}function c(e,t){return void 0!==e&&void 0!==t&&(!!l.test(t)||e===t)}function u(e){return e.split("/").filter(Boolean)}const l=/^:[\w-]+$/,p=10,d=3,f=1,g=-2;function m(e){const t=e.split("/");let n=t.length;t.includes("*")&&(n+=g);for(const r of t)"*"!==r&&(l.test(r)?n+=d:n+=""===r?f:p);return n}t.matchRouteManifest=function(e,t,n){if(!e||!t?.length)return null;const c=n?a(e,n):e;let u=i.get(t);u||(u=function(e){return[...e].sort((e,t)=>{const n=m(e);return m(t)-n})}(t),i.set(t,u),o.DEBUG_BUILD&&r.debug.log("[React Router] Sorted route manifest by specificity:",u.length,"patterns"));for(const a of u)if(s(c,a))return o.DEBUG_BUILD&&r.debug.log("[React Router] Matched pathname",c,"to pattern",a),a;return o.DEBUG_BUILD&&r.debug.log("[React Router] No manifest match found for pathname:",c),null},t.stripBasenameFromPathname=a},69865:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o=n(31008),a=n(23807);let i,s=!1;const c=[];function u(e){return"*"===(t=e.route.path||"")[t.length-1]?t.slice(0,-1):t;var t}function l(e){return e.params["*"]||""}function p(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function d(e){return e.endsWith("*")}function f(e,t){return d(e)&&!!t.route.children?.length||!1}function g(e){return!(e.children||!e.element||!e.path?.endsWith("/*"))}function m(e,t,n){const r=e&&e.length>0?e:s?a.stripBasenameFromPathname(t,n):t;let o="/*"===r.slice(-2)?r.slice(0,-2):r;return o.length>1&&"/"===o[o.length-1]&&(o=o.slice(0,-1)),[o,"route"]}function h(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function _(e){return"/"===e[0]?e:`/${e}`}function y(e,t){const n=i(e,t);
2if(!n||0===n.length)return"";for(const r of n)if(r.route.path&&"*"!==r.route.path){const n=u(r),o=a.stripBasenameFromPathname(t.pathname,_(r.pathnameBase));return t.pathname===o?p(o):p(p(n||"")+_(y(e.filter(e=>e!==r.route),{pathname:o})))}return""}function T(e,t){const n=i(t,e);if(n)for(const r of n)if(g(r.route)&&l(r))return!0;return!1}function S(e,t){return s?a.stripBasenameFromPathname(e.pathname,t):e.pathname||""}function E(e,t,n,r=""){if(!e||0===e.length)return[s?a.stripBasenameFromPathname(t.pathname,r):t.pathname,"url"];if(!n)return[S(t,r),"url"];let o="";for(const a of n){const e=a.route;if(!e)continue;if(e.index)return m(o,a.pathname,r);const n=e.path;if(!n||f(n,a))continue;const i="/"===n[0]||"/"===o[o.length-1]?n:`/${n}`;if(o=p(o)+_(i),p(t.pathname)===p(r+a.pathname))return h(o)===h(a.pathname)||d(o)?(f(o,a)&&(o=o.slice(0,-1)),[(s?"":r)+o,"route"]):[(s?"":r)+i,"route"]}return[S(t,r),"url"]}t.clearNavigationContext=function(e){const t=c[c.length-1];t?.token===e&&c.pop()},t.getActiveRootSpan=function(){const e=r.getActiveSpan(),t=e?r.getRootSpan(e):void 0;if(!t)return;const n=r.spanToJSON(t).op;return"navigation"===n||"pageload"===n?t:void 0},t.getNavigationContext=function(){const e=c.length;return e>0?c[e-1]??null:null},t.getNormalizedName=E,t.getNumberOfUrlSegments=h,t.initializeRouterUtils=function(e,t=!1){i=e,s=t},t.locationIsInsideDescendantRoute=T,t.pathEndsWithWildcard=d,t.pathIsWildcardAndHasChildren=f,t.prefixWithSlash=_,t.rebuildRoutePathFromAllRoutes=y,t.resolveRouteNameAndSource=function(e,t,n,r,o="",i,c){if(c&&i&&i.length>0){const t=a.matchRouteManifest(e.pathname,i,o);if(t)return[(s?"":o)+t,"route"]}let u,l="url";const p=T(e,n);return p&&(u=_(y(n,e)),l="route"),p&&u||([u,l]=E(t,e,r,o)),[u||e.pathname,l]},t.routeIsDescendant=g,t.setNavigationContext=function(e,t){const n={};return c.length>=10&&(o.DEBUG_BUILD&&r.debug.warn("[React Router] Navigation context stack overflow - removing oldest context"),c.shift()),c.push({token:n,targetPath:e,span:t}),n},t.transactionNameHasWildcard=function(e){return e.includes("/*")||e.endsWith("*")}},95910:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(39014);n(63020),n(49345),n(37872),t.reactRouterBrowserTracingIntegration=function(e){return r.createReactRouterV6CompatibleTracingIntegration(e,"")},t.wrapCreateBrowserRouter=function(e){return r.createV6CompatibleWrapCreateBrowserRouter(e,"")},t.wrapCreateMemoryRouter=function(e){return r.createV6CompatibleWrapCreateMemoryRouter(e,"")},t.wrapReactRouterRouting=function(e){return r.createV6CompatibleWithSentryReactRouterRouting(e,"")},t.wrapUseRoutes=function(e){return r.createV6CompatibleWrapUseRoutes(e,"")}},71044:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(37872),a=n(96540),i=n(66815);function s(e,t,n,a,i,s=[],u){function l(e){if(0===s.length||!u)return[e,"url"];const t=c(s,e,u);for(const n of t)if(n.match.isExact)return[n.match.path,"route"];return[e,"url"]}if(t){const t=a.location?a.location.pathname:r.WINDOW.location?r.WINDOW.location.pathname:void 0;if(t){const[n,a]=l(t);r.startBrowserTracingPageLoadSpan(e,{name:n,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.${i}`,[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a}})}}n&&a.listen&&a.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){const[n,a]=l(t.pathname);r.startBrowserTracingNavigationSpan(e,{name:n,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.${i}`,[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a}})}})}function c(e,t,n,r=[]){return e.some(e=>{const o=e.path?n(t,e):r.length?r[r.length-1].match:function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}}(t);return o&&(r.push({route:e,match:o}),e.routes&&c(e.routes,t,n,r)),!!o}),r}t.reactRouterV4BrowserTracingIntegration=function(e){const t=r.browserTracingIntegration({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:o,matchPath:a,instrumentPageLoad:i=!0,instrumentNavigation:c=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),s(e,i,c,n,"reactrouter_v4",o,a)}}},t.reactRouterV5BrowserTracingIntegration=function(e){const t=r.browserTracingIntegration({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:o,matchPath:a,instrumentPageLoad:i=!0,instrumentNavigation:c=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),s(e,i,c,n,"reactrouter_v5",o,a)}}}
2,t.withSentryRouting=function(e){const t=e.displayName||e.name,n=t=>{if(t?.computedMatch?.isExact){const e=t.computedMatch.path,n=function(){const e=o.getActiveSpan(),t=e&&o.getRootSpan(e);if(!t)return;const n=o.spanToJSON(t).op;return"navigation"===n||"pageload"===n?t:void 0}();o.getCurrentScope().setTransactionName(e),n&&(n.updateName(e),n.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"))}return a.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,i.hoistNonReactStatics(n,e),n}},14663:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(63020);function a(e,t,n,r){let o=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(o);const a=function(e){if(!Array.isArray(e)||0===e.length)return"";const t=e.filter(e=>!!e.path);let n=-1;for(let r=t.length-1;r>=0;r--){const e=t[r];if(e.path?.startsWith("/")){n=r;break}}return t.slice(n).reduce((e,{path:t})=>`${e}${"/"===e||""===e?t:`/${t}`}`,"")}(n.routes||[]);return 0===a.length||"/*"===a?r(o):(o=a,r(o,"route"))})}t.reactRouterV3BrowserTracingIntegration=function(e){const t=r.browserTracingIntegration({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:i,match:s,instrumentPageLoad:c=!0,instrumentNavigation:u=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),c&&r.WINDOW.location&&a(i,r.WINDOW.location,s,(t,n="url")=>{r.startBrowserTracingPageLoadSpan(e,{name:t,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v3",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})}),u&&n.listen&&n.listen(t=>{"PUSH"!==t.action&&"POP"!==t.action||a(i,t,s,(t,n="url")=>{r.startBrowserTracingNavigationSpan(e,{name:t,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v3",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})})})}}}},32988:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(39014);n(63020),n(49345),n(37872),t.reactRouterV6BrowserTracingIntegration=function(e){return r.createReactRouterV6CompatibleTracingIntegration(e,"6")},t.withSentryReactRouterV6Routing=function(e){return r.createV6CompatibleWithSentryReactRouterRouting(e,"6")},t.wrapCreateBrowserRouterV6=function(e){return r.createV6CompatibleWrapCreateBrowserRouter(e,"6")},t.wrapCreateMemoryRouterV6=function(e){return r.createV6CompatibleWrapCreateMemoryRouter(e,"6")},t.wrapUseRoutesV6=function(e){return r.createV6CompatibleWrapUseRoutes(e,"6")}},72099:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(39014);n(63020),n(49345),n(37872),t.reactRouterV7BrowserTracingIntegration=function(e){return r.createReactRouterV6CompatibleTracingIntegration(e,"7")},t.withSentryReactRouterV7Routing=function(e){return r.createV6CompatibleWithSentryReactRouterRouting(e,"7")},t.wrapCreateBrowserRouterV7=function(e){return r.createV6CompatibleWrapCreateBrowserRouter(e,"7")},t.wrapCreateMemoryRouterV7=function(e){return r.createV6CompatibleWrapCreateMemoryRouter(e,"7")},t.wrapUseRoutesV7=function(e){return r.createV6CompatibleWrapUseRoutes(e,"7")}},21524:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(63020),o={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};t.createReduxEnhancer=function(e){const t={...o,...e};return e=>(n,o)=>{function a(e){return(n,o)=>{const a=e(n,o),i=r.getCurrentScope(),s=t.actionTransformer(o);null!=s&&r.addBreadcrumb({category:"redux.action",data:s,type:"info"});const c=t.stateTransformer(a);if(null!=c){const e=r.getClient(),t=e?.getOptions(),n=t?.normalizeDepth||3,o={state:{type:"redux",value:c}};r.setNormalizationDepthOverrideHint(o,3+n),i.setContext("state",o)}else i.setContext("state",null);const{configureScopeWithState:u}=t;return"function"==typeof u&&u(i,a),a}}t.attachReduxState&&r.getGlobalScope().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});const i=e(a(n),o);return i.replaceReducer=new Proxy(i.replaceReducer,{apply:function(e,t,n){e.apply(t,[a(n[0])])}}),i}}},27830:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(63020),a=n(96540),i=n(69513);function s(e){return i.isSyntheticEvent(e)?"[SyntheticEvent]":r.normalizeStringifyValue(e)}t.init=function(e){const t={...e};o.applySdkMetadata(t,"react"),r.setContext("react",{version:a.version});const n=r.init(t);return o.setNormalizeStringifier(s),n}},10524:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(49345),o=n(63020);function a(e){if(!e)return{};const t={};
2return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n,t[`url.path.parameter.${e}`]=n,t[`params.${e}`]=n}),t}t.tanstackRouterBrowserTracingIntegration=function(e,t={}){const n=e,i=r.browserTracingIntegration({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:s=!0,instrumentNavigation:c=!0}=t;return{...i,afterAllSetup(e){i.afterAllSetup(e);const t=r.WINDOW.location;if(s&&t){const i=n.matchRoutes(t.pathname,n.options.parseSearch(t.search),{preload:!1,throwOnError:!1}),s=i[i.length-1],c="__root__"!==s?.routeId?s:void 0;r.startBrowserTracingPageLoadSpan(e,{name:c?c.routeId:t.pathname,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.tanstack_router",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:c?"route":"url",...a(c)}})}c&&n.subscribe("onBeforeNavigate",t=>{if(!t.fromLocation||t.toLocation.state===t.fromLocation.state)return;const i=n.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),s=i[i.length-1],c="__root__"!==s?.routeId?s:void 0,u=r.WINDOW.location,l=r.startBrowserTracingNavigationSpan(e,{name:c?c.routeId:u.pathname,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.tanstack_router",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:c?"route":"url"}}),p=n.subscribe("onResolved",e=>{if(p(),l){const t=n.matchRoutes(e.toLocation.pathname,e.toLocation.search,{preload:!1,throwOnError:!1}),r=t[t.length-1],i="__root__"!==r?.routeId?r:void 0;i&&(l.updateName(i.routeId),l.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"),l.setAttributes(a(i)))}})})}}}},42197:function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=n(37872);var o=Object.defineProperty,a=(e,t,n)=>((e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class i{constructor(){a(this,"idNodeMap",new Map),a(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function s(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:s(e.parentNode,t,n,r+1):-1}function c(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}const u="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let l={map:{},getId(){return console.error(u),-1},getNode(){return console.error(u),null},removeNodeFromMap(){console.error(u)},has(){return console.error(u),!1},reset(){console.error(u)}};function p(e,t,n,r,o=window){const a=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){_(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>p(e,t,a||{},!0)}function d(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}function f(e,t,n,r,o){if(!e)return!1;const a=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(t){return null}}(e);if(!a)return!1;const i=c(t,n);if(!o){const e=r&&a.matches(r);return i(a)&&!e}const u=s(a,i);let l=-1;return!(u<0)&&(r&&(l=s(a,c(null,r))),u>-1&&l<0||u<l)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(l=new Proxy(l,{get(e,t,n){return"map"===t&&console.error(u),Reflect.get(e,t,n)}})),Date.now().toString();const g={};function m(e){const t=g[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(o){}return g[e]=r.bind(window)}function h(...e){return m("requestAnimationFrame")(...e)}
2function _(...e){return m("setTimeout")(...e)}var y=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(y||{});let T;const S=e=>{if(!T)return e;return(...t)=>{try{return e(...t)}catch(n){if(T&&!0===T(n))return()=>{};throw n}}};for(var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b="undefined"==typeof Uint8Array?[]:new Uint8Array(256),v=0;v<64;v++)b[E.charCodeAt(v)]=v;const I=new Map;const A=(e,t,n)=>{if(!e||!O(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=I.get(e);return n||(n=new Map,I.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function R(e,t,n){if(e instanceof Array)return e.map(e=>R(e,t,n));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){return{rr_type:e.constructor.name,base64:function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=E[n[t]>>2],o+=E[(3&n[t])<<4|n[t+1]>>4],o+=E[(15&n[t+1])<<2|n[t+2]>>6],o+=E[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[R(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[R(e.data,t,n),e.width,e.height]}}if(O(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:A(e,t,n)}}return e}const N=(e,t,n)=>e.map(e=>R(e,t,n)),O=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(n.find(n=>e instanceof t[n]))};function P(e,t,n,r,o){const a=[];try{const i=d(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(a,...i){if(!f(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(a);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[a,...i])}});a.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(e=>e())}}function w(e,t,n,r,o,a,i,s){const c=[],u=Object.getOwnPropertyNames(e);for(const l of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if("function"!=typeof e[l])continue;const i=d(e,l,function(e){return function(...i){const c=e.apply(this,i);if(A(c,s,this),"tagName"in this.canvas&&!f(this.canvas,r,o,a,!0)){const e=N(i,s,this),r={type:t,property:l,args:e};n(this.canvas,r)}return c}});c.push(i)}catch{const r=p(e,l,{set(e){n(this.canvas,{type:t,property:l,args:[e],setter:!0})}});c.push(r)}return c}class C{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:n="all",win:r,recordCanvas:o,errorHandler:a}=e;e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,a&&(T=a),(o&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t||S(()=>{o&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
2h(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){const{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:a,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(e)){if(i)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));S(()=>{if(a&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),a&&"number"==typeof t){const t=P(e,n,r,o,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):h(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;const{base64:r,type:o,width:a,height:i}=t;this.mutationCb({id:n,type:y["2D"],commands:[{property:"clearRect",args:[0,0,a,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,a,i]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;const t=n=>{this.takeSnapshot(n,!1),e=h(t)};e=h(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){const o=P(e,t,n,r,!1),a=function(e,t,n,r,o){const a=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const i=d(t.CanvasRenderingContext2D.prototype,s,function(a){return function(...i){return f(this.canvas,n,r,o,!0)||_(()=>{const n=N(i,t,this);e(this.canvas,{type:y["2D"],property:s,args:n})},0),a.apply(this,i)}});a.push(i)}catch{const n=p(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:y["2D"],property:s,args:[t],setter:!0})}});a.push(n)}return()=>{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),i=function(e,t,n,r,o){const a=[];return a.push(...w(t.WebGLRenderingContext.prototype,y.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&a.push(...w(t.WebGL2RenderingContext.prototype,y.WebGL2,e,n,r,o,0,t)),()=>{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{o(),a(),i()})}
2getCanvasElements(e,t,n){const r=[],o=o=>{o.querySelectorAll("canvas").forEach(o=>{f(o,e,t,n,!0)||r.push(o)})};for(const a of this.windows){const e=a.deref();let t;try{t=e&&e.document}catch{}t&&o(t)}for(const a of this.shadowDoms){const e=a.deref();e&&o(e)}return r}takeSnapshot(e,t,n){const{sampling:r,blockClass:o,blockSelector:a,unblockSelector:i,dataURLOptions:s,maxCanvasSize:c}=this.options,u=1e3/("all"===r?2:r||2);if(this.lastSnapshotTime&&e-this.lastSnapshotTime<u)return!1;this.lastSnapshotTime=e;return(n?[n]:this.getCanvasElements(o,a,i)).forEach(e=>{const n=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(n)){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){const t=e.getContext(e.__context);!1===t?.getContextAttributes()?.preserveDrawingBuffer&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:c},[t])}).catch(e=>{S(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0}startPendingCanvasMutationFlusher(){h(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,h(e)};h(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),h(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map(e=>{const{type:t,...n}=e;return n}),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(B){console.debug("Unable to override Array.from",B)}var U,L;new i,(L=U||(U={}))[L.NotStarted=0]="NotStarted",L[L.Running=1]="Running",L[L.Stopped=2]="Stopped";const k={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},M=1280,x=r.defineIntegration((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,M):M,n?Math.min(n,M):M]};let o,a;const i=new Promise(e=>a=e);return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new C({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return o=r,a(r),r},...k[e]||k.medium}},async snapshot(e,t){(o||await i).snapshot(e,t)}}});t.replayCanvasIntegration=x},23999:function(e,t){"use strict";t.initSentryWithClient=function(e,t){const{dsn:o,environment:a=r(),release:i,tags:s={},additionalOptions:c={}}=t,u=Object.assign(Object.assign({},n),s);e.init(Object.assign({dsn:o,environment:a,release:i},c)),e.setTags(u)};const n={team:"frontend"};function r(){var e;return"undefined"!=typeof process&&(null===(e={})||void 0===e?void 0:e.NODE_ENV)?"production":"development"}},31106:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&o(t,e,n[i]);return a(t,e),t}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};
2Object.defineProperty(t,"__esModule",{value:!0}),t.initSentry=function(e){(0,u.initSentryWithClient)(c,e)};const c=i(n(90059)),u=n(23999);s(n(90059),t)},93870:function(e){"use strict";const t=async function(){}.constructor;e.exports=()=>t},61722:function(e){"use strict";const t=async function*(){}.constructor;e.exports=()=>t},20545:function(e){function t(e){this.queue=[],this.timeslotRequests=0,this.interceptors={request:null,response:null},this.handleRequest=this.handleRequest.bind(this),this.handleResponse=this.handleResponse.bind(this),this.enable(e)}t.prototype.getMaxRPS=function(){var e=this.perMilliseconds/1e3;return this.maxRequests/e},t.prototype.setMaxRPS=function(e){this.setRateLimitOptions({maxRequests:e,perMilliseconds:1e3})},t.prototype.setRateLimitOptions=function(e){e.maxRPS?this.setMaxRPS(e.maxRPS):(this.perMilliseconds=e.perMilliseconds,this.maxRequests=e.maxRequests)},t.prototype.enable=function(e){function t(e){return Promise.reject(e)}this.interceptors.request=e.interceptors.request.use(this.handleRequest,t),this.interceptors.response=e.interceptors.response.use(this.handleResponse,t)},t.prototype.handleRequest=function(e){return new Promise(function(t){this.push({resolve:function(){t(e)}})}.bind(this))},t.prototype.handleResponse=function(e){return this.shift(),e},t.prototype.push=function(e){this.queue.push(e),this.shiftInitial()},t.prototype.shiftInitial=function(){setTimeout(function(){return this.shift()}.bind(this),0)},t.prototype.shift=function(){this.queue.length&&(this.timeslotRequests!==this.maxRequests?(this.queue.shift().resolve(),0===this.timeslotRequests&&(this.timeoutId=setTimeout(function(){this.timeslotRequests=0,this.shift()}.bind(this),this.perMilliseconds),"function"==typeof this.timeoutId.unref&&0===this.queue.length&&this.timeoutId.unref()),this.timeslotRequests+=1):this.timeoutId&&"function"==typeof this.timeoutId.ref&&this.timeoutId.ref())},e.exports=function(e,n){var r=new t(e);return r.setRateLimitOptions(n),e.getMaxRPS=t.prototype.getMaxRPS.bind(r),e.setMaxRPS=t.prototype.setMaxRPS.bind(r),e.setRateLimitOptions=t.prototype.setRateLimitOptions.bind(r),e}},13144:function(e,t,n){"use strict";var r=n(66743),o=n(11002),a=n(10076),i=n(47119);e.exports=i||r.call(a,o)},11002:function(e){"use strict";e.exports=Function.prototype.apply},10076:function(e){"use strict";e.exports=Function.prototype.call},73126:function(e,t,n){"use strict";var r=n(66743),o=n(69675),a=n(10076),i=n(13144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return i(r,a,e)}},47119:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},36556:function(e,t,n){"use strict";var r=n(70453),o=n(73126),a=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o([n]):n}},71858:function(e,t,n){"use strict";n.d(t,{E:function(){return a},q:function(){return o}});var r={};function o(){return r}function a(e){r=e}},70551:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:function(){return r}})},89742:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(10123),o=n(70551),a=n(94188),i=n(71858);function s(e,t){var n,s,c,u,l,p,d,f;(0,o.A)(1,arguments);var g=(0,i.q)(),m=(0,a.A)(null!==(n=null!==(s=null!==(c=null!==(u=null==t?void 0:t.weekStartsOn)&&void 0!==u?u:null==t||null===(l=t.locale)||void 0===l||null===(p=l.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==c?c:g.weekStartsOn)&&void 0!==s?s:null===(d=g.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=(0,r.default)(e),_=h.getUTCDay(),y=(_<m?7:0)+_-m;return h.setUTCDate(h.getUTCDate()-y),h.setUTCHours(0,0,0,0),h}},94188:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:function(){return r}})},95047:function(e,t,n){"use strict";function r(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}n.d(t,{A:function(){return r}})},14797:function(e,t,n){"use strict";function r(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=null!=n&&n.width?String(n.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var i=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[i]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{A:function(){return r}})},13091:function(e,t,n){"use strict";function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,function(e){return e.test(s)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,function(e){return e.test(s)});return i=e.valueCallback?e.valueCallback(u):u,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(s.length)}}}n.d(t,{A:function(){return r}})},46171:function(e,t,n){"use strict";function r(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],a=t.match(e.parsePattern);if(!a)return null;var i=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(o.length)}}}n.d(t,{A:function(){return r}})},10123:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(82284),o=n(70551);function a(e){(0,o.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.
21 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},7176:function(e,t,n){"use strict";var r,o=n(73126),a=n(75795);try{r=[].__proto__===Array.prototype}catch(u){if(!u||"object"!=typeof u||!("code"in u)||"ERR_PROTO_ACCESS"!==u.code)throw u}var i=!!r&&a&&a(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=i&&"function"==typeof i.get?o([i.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},30655:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},41237:function(e){"use strict";e.exports=EvalError},69383:function(e){"use strict";e.exports=Error},79290:function(e){"use strict";e.exports=RangeError},79538:function(e){"use strict";e.exports=ReferenceError},58068:function(e){"use strict";e.exports=SyntaxError},69675:function(e){"use strict";e.exports=TypeError},35345:function(e){"use strict";e.exports=URIError},79612:function(e){"use strict";e.exports=Object},30228:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function i(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],p=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,a),!0;case 6:return l.fn.call(l.context,t,r,o,a,i),!0}for(u=1,c=new Array(p-1);u<p;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),p){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[a]=1===u.length?u[0]:u:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},89353:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}
2(arguments,1),s=n(0,o.length-i.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(a=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=o.apply(this,r(i,arguments));return Object(t)===t?t:this}return o.apply(e,r(i,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,a.prototype=new l,l.prototype=null}return a}},66743:function(e,t,n){"use strict";var r=n(89353);e.exports=Function.prototype.bind||r},96395:function(e,t){"use strict";t.T=void 0;const n=[".html",".json",".js",".map",".txt",".xml",".pdf"];t.T=(e,t="always")=>{if("/"===e)return e;const r=e.endsWith("/");return((e,t)=>{for(const n of e)if(t.endsWith(n))return!0;return!1})(n,e)?e:"always"===t?r?e:`${e}/`:"never"===t&&r?e.slice(0,-1):e}},97035:function(e,t,n){"use strict";t.z_=void 0;var r=n(33215);t.z_=r.ScrollHandler,n(73721).useScrollRestoration},33215:function(e,t,n){"use strict";var r=n(24994);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var o=r(n(12475)),a=r(n(6221)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(96540)),s=r(n(5556)),c=n(74351);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var l=i.createContext(new c.SessionStorage);t.ScrollContext=l,l.displayName="GatsbyScrollContext";var p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this)._stateStorage=new c.SessionStorage,t._isTicking=!1,t._latestKnownScrollY=0,t.scrollListener=function(){t._latestKnownScrollY=window.scrollY,t._isTicking||(t._isTicking=!0,requestAnimationFrame(t._saveScroll.bind((0,o.default)(t))))},t.windowScroll=function(e,n){t.shouldUpdateScroll(n,t.props)&&window.scrollTo(0,e)},t.scrollToHash=function(e,n){var r=document.getElementById(e.substring(1));r&&t.shouldUpdateScroll(n,t.props)&&r.scrollIntoView()},t.shouldUpdateScroll=function(e,n){var r=t.props.shouldUpdateScroll;return!r||r.call((0,o.default)(t),e,n)},t}(0,a.default)(t,e);var n=t.prototype;return n._saveScroll=function(){var e=this.props.location.key||null;e&&this._stateStorage.save(this.props.location,e,this._latestKnownScrollY),this._isTicking=!1},n.componentDidMount=function(){var e;window.addEventListener("scroll",this.scrollListener);var t=this.props.location,n=t.key,r=t.hash;n&&(e=this._stateStorage.read(this.props.location,n)),r?this.scrollToHash(decodeURI(r),void 0):e&&this.windowScroll(e,void 0)},n.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollListener)},n.componentDidUpdate=function(e){var t,n=this.props.location,r=n.hash,o=n.key;o&&(t=this._stateStorage.read(this.props.location,o)),r?this.scrollToHash(decodeURI(r),e):this.windowScroll(t,e)},n.render=function(){return i.createElement(l.Provider,{value:this._stateStorage},this.props.children)},t}(i.Component);t.ScrollHandler=p,p.propTypes={shouldUpdateScroll:s.default.func,children:s.default.element.isRequired,location:s.default.object.isRequired}},74351:function(e,t){"use strict";t.__esModule=!0,t.SessionStorage=void 0;var n="___GATSBY_REACT_ROUTER_SCROLL",r=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var r=this.getStateKey(e,t);try{var o=window.sessionStorage.getItem(r);return o?JSON.parse(o):0}catch(a){return window&&window[n]&&window[n][r]?window[n][r]:0}},t.save=function(e,t,r){var o=this.getStateKey(e,t),a=JSON.stringify(r);try{window.sessionStorage.setItem(o,a)}catch(i){window&&window[n]||(window[n]={}),window[n][o]=JSON.parse(a)}},t.getStateKey=function(e,t){var n="@@scroll|"+e.pathname;return null==t?n:n+"|"+t},e}();t.SessionStorage=r},73721:function(e,t,n){"use strict";t.__esModule=!0,t.useScrollRestoration=function(e){var t=(0,a.useLocation)(),n=(0,o.useContext)(r.ScrollC
2ontext),i=(0,o.useRef)(null);return(0,o.useLayoutEffect)(function(){if(i.current){var r=n.read(t,e);i.current.scrollTo(0,r||0)}},[t.key]),{ref:i,onScroll:function(){i.current&&n.save(t,e,i.current.scrollTop)}}};var r=n(33215),o=n(96540),a=n(86462)},2311:function(e,t,n){"use strict";t.__esModule=!0,t.onInitialClientRender=void 0;n(75535),n(99300);t.onInitialClientRender=()=>{}},53309:function(e,t){"use strict";t.__esModule=!0,t.getForwards=function(e){return null==e?void 0:e.flatMap(e=>(null==e?void 0:e.forward)||[])}},99300:function(e,t,n){"use strict";t.__esModule=!0,t.injectPartytownSnippet=function(e){if(!e.length)return;const t=document.querySelector("script[data-partytown]"),n=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');t&&t.remove();n&&n.remove();const a=(0,o.getForwards)(e),i=document.createElement("script");i.dataset.partytown="",i.innerHTML=(0,r.partytownSnippet)({forward:a}),document.head.appendChild(i)};var r=n(14656),o=n(53309)},96877:function(e,t,n){t.components={"component---apps-client-src-templates-404-tsx":()=>Promise.all([n.e(4223),n.e(599)]).then(n.bind(n,88491)),"component---apps-client-src-templates-about-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(3110),n.e(7460)]).then(n.bind(n,45254)),"component---apps-client-src-templates-cart-tsx":()=>Promise.all([n.e(4223),n.e(8258),n.e(6351)]).then(n.bind(n,8661)),"component---apps-client-src-templates-contacts-tsx":()=>Promise.all([n.e(4223),n.e(7638)]).then(n.bind(n,1948)),"component---apps-client-src-templates-custom-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(8258),n.e(7764)]).then(n.bind(n,3561)),"component---apps-client-src-templates-events-[id]-tsx":()=>Promise.all([n.e(4223),n.e(1671),n.e(7308),n.e(3110),n.e(8258),n.e(2274),n.e(5238),n.e(2483),n.e(3014)]).then(n.bind(n,41842)),"component---apps-client-src-templates-events-index-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(3110),n.e(6373),n.e(1273)]).then(n.bind(n,34527)),"component---apps-client-src-templates-events-search-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(3110),n.e(6373),n.e(459)]).then(n.bind(n,56210)),"component---apps-client-src-templates-guarantee-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(3110),n.e(3393)]).then(n.bind(n,66695)),"component---apps-client-src-templates-index-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(5891)]).then(n.bind(n,9783)),"component---apps-client-src-templates-news-[id]-tsx":()=>Promise.all([n.e(4223),n.e(1671),n.e(7308),n.e(4568)]).then(n.bind(n,44203)),"component---apps-client-src-templates-news-index-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(7607)]).then(n.bind(n,56520)),"component---apps-client-src-templates-offer-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(3110),n.e(509)]).then(n.bind(n,16511)),"component---apps-client-src-templates-order-bill-tsx":()=>Promise.all([n.e(4223),n.e(1671),n.e(2483),n.e(5719)]).then(n.bind(n,4872)),"component---apps-client-src-templates-order-fail-tsx":()=>Promise.all([n.e(4223),n.e(1572)]).then(n.bind(n,12125)),"component---apps-client-src-templates-pay-and-delivery-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(3110),n.e(3326)]).then(n.bind(n,11270)),"component---apps-client-src-templates-persons-[id]-tsx":()=>Promise.all([n.e(4223),n.e(1671),n.e(7308),n.e(3111)]).then(n.bind(n,30402)),"component---apps-client-src-templates-persons-index-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(3598)]).then(n.bind(n,93191)),"component---apps-client-src-templates-places-[id]-tsx":()=>Promise.all([n.e(4223),n.e(1671),n.e(7308),n.e(2483),n.e(7491)]).then(n.bind(n,24418)),"component---apps-client-src-templates-places-index-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(3110),n.e(7681),n.e(378)]).then(n.bind(n,87100)),"component---apps-client-src-templates-privacy-policy-tsx":()=>Promise.all([n.e(4223),n.e(7308),n.e(3110),n.e(8998)]).then(n.bind(n,25090)),"component---apps-client-src-templates-success-tsx":()=>Promise.all([n.e(4223),n.e(9270)]).then(n.bind(n,99395))}},79377:function(e,t,n){e.exports=[{plugin:n(62659),options:{plugins:[],preloadTags:!0}},{plugin:n(70984),options:{plugins:[]}},{plugin:n(2311),options:{plugins:[]}}]},60020:function(e,t,n){const r=n(79377),{getResourceURLsForPathname:o,loadPage:a,loadPageSync:i}=n(56814).Zf;t.N=function(e,t,n,s){void 0===t&&(t={});let c=r.map(n=>{if(!n.plugin[e])return;t.getResourceURLsForPathname=o,t.loadPage=a,t.loadPageSync=i;const r=n.plugin[e](t,n.options);return r&&s&&(t=s({args:t,result:r,plugin:n})),r});return c=c.filter(e=>void 0!==e),c.length>0?c:n?[n]:[]}
2,t.v=(e,t,n)=>r.reduce((n,r)=>r.plugin[e]?n.then(()=>r.plugin[e](t,r.options)):n,Promise.resolve())},50700:function(e,t){},79369:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var r=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map(function(e){e(n)}),(e["*"]||[]).slice().map(function(e){e(t,n)})}}}()},88990:function(e,t,n){"use strict";n.d(t,{Yl:function(){return d},Hh:function(){return g},UA:function(){return f},QX:function(){return p}});var r=n(86462),o=n(38797),a=e=>{if(void 0===e)return e;let[t,n=""]=e.split("?");return n&&(n="?"+n),"/"===t?"/"+n:"/"===t.charAt(t.length-1)?t.slice(0,-1)+n:t+n};n.dn(a);var i=n(16491);const s=new Map;let c=[];const u=e=>{let t=e;if(-1!==e.indexOf("?")){const[n,r]=e.split("?");t=`${n}?${encodeURIComponent(r)}`}const n=decodeURIComponent(t);return(0,o.A)(n,decodeURIComponent("")).split("#")[0]};function l(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}const p=e=>{c=e},d=e=>{const t=m(e),n=c.map(e=>{let{path:t,matchPath:n}=e;return{path:n,originalPath:t}}),o=(0,r.pick)(n,t);return o?a(o.route.originalPath):null},f=e=>{const t=m(e),n=c.map(e=>{let{path:t,matchPath:n}=e;return{path:n,originalPath:t}}),o=(0,r.pick)(n,t);return o?o.params:{}},g=e=>{const t=u(l(e));if(s.has(t))return s.get(t);const n=(0,i.X)(e);if(n)return g(n.toPath);let r=d(t);return r||(r=m(e)),s.set(t,r),r},m=e=>{let t=u(l(e));return"/index.html"===t&&(t="/"),t=a(t),t}},56814:function(e,t,n){"use strict";n.d(t,{Wi:function(){return p},N5:function(){return b},Ay:function(){return A},Rh:function(){return N},LE:function(){return R},Zf:function(){return I},iC:function(){return v}});var r=n(77387),o=n(60436),a=n(58163);const i=function(e){if("undefined"==typeof document)return!1;const t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e,t){return new Promise((n,r)=>{if("undefined"==typeof document)return void r();const o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",e),Object.keys(t).forEach(e=>{o.setAttribute(e,t[e])}),o.onload=n,o.onerror=r;(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)})}:function(e){return new Promise((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.onload=()=>{200===r.status?t():n()},r.send(null)})},s={};var c=function(e,t){return new Promise(n=>{s[e]?n():i(e,t).then(()=>{n(),s[e]=!0}).catch(()=>{})})},u=n(79369),l=n(88990);const p={Error:"error",Success:"success"},d=e=>`${e}.1790315726234.json`,f=e=>{const[t,n]=e.split("?");var r;return`https://lab-show.ru/assets/v1/page-data/${"/"===t?"index":(r="/"===(r=t)[0]?r.slice(1):r).endsWith("/")?r.slice(0,-1):r}/${d("page-data")}${n?`?${n}`:""}`},g=e=>e.startsWith("//");function m(e,t){return void 0===t&&(t="GET"),new Promise(n=>{const r=new XMLHttpRequest;r.open(t,e,!0),r.onreadystatechange=()=>{4==r.readyState&&n(r)},r.send(null)})}const h=/bot|crawler|spider|crawling/i,_=function(e,t,n){var r;void 0===t&&(t=null);const o={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes,getServerDataError:e.getServerDataError,slicesMap:null!==(r=e.slicesMap)&&void 0!==r?r:{}};return{component:t,head:n,json:e.result,page:o}};function y(e){return new Promise(t=>{try{const n=e.readRoot();t(n)}catch(n){if(!Object.hasOwnProperty.call(n,"_response")||!Object.hasOwnProperty.call(n,"_status"))throw n;setTimeout(()=>{y(e).then(t)},200)}})}let T=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.partialHydrationDb=new Map,this.slicesDataDb=new Map,this.sliceInflightDb=new Map,this.slice
2sDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,l.QX)(t)}var t=e.prototype;return t.memoizedGet=function(e){let t=this.inFlightNetworkRequests.get(e);return t||(t=m(e,"GET"),this.inFlightNetworkRequests.set(e,t)),t.then(t=>(this.inFlightNetworkRequests.delete(e),t)).catch(t=>{throw this.inFlightNetworkRequests.delete(e),t})},t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some(e=>e)},t.fetchPageDataJson=function(e){const{pagePath:t,retries:n=0}=e,r=f(t);return this.memoizedGet(r).then(r=>{const{status:o,responseText:a}=r;if(200===o)try{const n=JSON.parse(a);if(void 0===n.path)throw new Error("not a valid pageData response");const r=t.split("?")[1];return r&&!n.path.includes(r)&&(n.path+=`?${r}`),Object.assign(e,{status:p.Success,payload:n})}catch(i){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:p.Error}):this.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPageDataJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPageDataJson(Object.assign(e,{retries:n+1})):Object.assign(e,{status:p.Error})})},t.fetchPartialHydrationJson=function(e){const{pagePath:t,retries:n=0}=e,r=f(t).replace(".json","-rsc.json");return this.memoizedGet(r).then(r=>{const{status:o,responseText:a}=r;if(200===o)try{return Object.assign(e,{status:p.Success,payload:a})}catch(i){}return 404===o||200===o?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:p.Error}):this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPartialHydrationJson(Object.assign(e,{retries:n+1})):Object.assign(e,{status:p.Error})})},t.loadPageDataJson=function(e){const t=(0,l.Hh)(e);if(this.pageDataDb.has(t)){const e=this.pageDataDb.get(t);return Promise.resolve(e)}return this.fetchPageDataJson({pagePath:t}).then(e=>(this.pageDataDb.set(t,e),e))},t.loadPartialHydrationJson=function(e){const t=(0,l.Hh)(e);if(this.partialHydrationDb.has(t)){const e=this.partialHydrationDb.get(t);return Promise.resolve(e)}return this.fetchPartialHydrationJson({pagePath:t}).then(e=>(this.partialHydrationDb.set(t,e),e))}
2,t.loadSliceDataJson=function(e){if(this.slicesDataDb.has(e)){const t=this.slicesDataDb.get(e);return Promise.resolve({sliceName:e,jsonPayload:t})}return m(`https://lab-show.ru/assets/v1/slice-data/${e}.json`,"GET").then(t=>{const n=JSON.parse(t.responseText);return this.slicesDataDb.set(e,n),{sliceName:e,jsonPayload:n}})},t.findMatchPath=function(e){return(0,l.Yl)(e)},t.loadPage=function(e){const t=(0,l.Hh)(e);if(this.pageDb.has(t)){const e=this.pageDb.get(t);return e.error?Promise.resolve({error:e.error,status:e.status}):Promise.resolve(e.payload)}if(this.inFlightDb.has(t))return this.inFlightDb.get(t);const n=[this.loadAppData(),this.loadPageDataJson(t)];const r=Promise.all(n).then(e=>{const[n,r,i]=e;if(r.status===p.Error||(null==i?void 0:i.status)===p.Error)return{status:p.Error};let s=r.payload;const{componentChunkName:c,staticQueryHashes:l=[],slicesMap:d={}}=s,f={},g=Array.from(new Set(Object.values(d))),m=e=>{if(this.slicesDb.has(e.name))return this.slicesDb.get(e.name);if(this.sliceInflightDb.has(e.name))return this.sliceInflightDb.get(e.name);const t=this.loadComponent(e.componentChunkName).then(t=>{return{component:(n=t,n&&n.default||n),sliceContext:e.result.sliceContext,data:e.result.data};var n});return this.sliceInflightDb.set(e.name,t),t.then(t=>{this.slicesDb.set(e.name,t),this.sliceInflightDb.delete(e.name)}),t};return Promise.all(g.map(e=>this.loadSliceDataJson(e))).then(e=>{const d=[],g=(0,o.A)(l);for(const{jsonPayload:t,sliceName:n}of Object.values(e)){d.push({name:n,...t});for(const e of t.staticQueryHashes)g.includes(e)||g.push(e)}const h=[Promise.all(d.map(m)),this.loadComponent(c,"head")];h.push(this.loadComponent(c));const T=Promise.all(h).then(e=>{const[t,o,c]=e;f.createdAt=new Date;for(const n of t)(!n||n instanceof Error)&&(f.status=p.Error,f.error=n);let u;if((!c||c instanceof Error)&&(f.status=p.Error,f.error=c),f.status!==p.Error){if(f.status=p.Success,!0!==r.notFound&&!0!==(null==i?void 0:i.notFound)||(f.notFound=!0),s=Object.assign(s,{webpackCompilationHash:n?n.webpackCompilationHash:""}),"string"==typeof(null==i?void 0:i.payload)){u=_(s,null,o),u.partialHydration=i.payload;const e=new ReadableStream({start(e){const t=new TextEncoder;e.enqueue(t.encode(i.payload))},pull(e){e.close()},cancel(){}});return y((0,a.createFromReadableStream)(e)).then(e=>(u.partialHydration=e,u))}u=_(s,c,o)}return u}),S=Promise.all(g.map(e=>{if(this.staticQueryDb[e]){const t=this.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:t}}return this.memoizedGet(`https://lab-show.ru/assets/v1/page-data/sq/d/${e}.json`).then(t=>{const n=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:n}}).catch(()=>{throw new Error(`We couldn't load "https://lab-show.ru/assets/v1/page-data/sq/d/${e}.json"`)})})).then(e=>{const t={};return e.forEach(e=>{let{staticQueryHash:n,jsonPayload:r}=e;t[n]=r,this.staticQueryDb[n]=r}),t});return Promise.all([T,S]).then(e=>{let n,[r,o]=e;return r&&(n={...r,staticQueryResults:o},f.payload=n,u.A.emit("onPostLoadPageResources",{page:n,pageResources:n})),this.pageDb.set(t,f),f.error?{error:f.error,status:f.status}:n}).catch(e=>({error:e,status:p.Error}))})});return r.then(()=>{this.inFlightDb.delete(t)}).catch(e=>{throw this.inFlightDb.delete(t),e}),this.inFlightDb.set(t,r),r},t.loadPageSync=function(e,t){void 0===t&&(t={});const n=(0,l.Hh)(e);if(this.pageDb.has(n)){var r;const e=this.pageDb.get(n);if(e.payload)return e.payload;if(null!==(r=t)&&void 0!==r&&r.withErrorDetails)return{error:e.error,status:e.status}}},t.shouldPrefetch=function(e){return!!(()=>{if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0})()&&((!navigator.userAgent||!h.test(navigator.userAgent))&&!this.pageDb.has(e))},t.prefetch=function(e){if(!this.shouldPrefetch(e))return{then:e=>e(!1),abort:()=>{}};if(this.prefetchTriggered.has(e))return{then:e=>e(!0),abort:()=>{}};const t={resolve:null,reject:null,promise:null};t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),this.prefetchQueued.push([e,t]);const n=new AbortController;return n.signal.addEventListener("abort",()=>{const t=this.prefetchQueued.findIndex(t=>{let[n]=t;return n===e});-1!==t&&this.prefetchQueued.splice(t,1)}),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout(()=>{this._processNextPrefetchBatch()},3e3)),{then:(e,n)=>t.promise.then(e,n),abort:n.abort.bind(n)}},t._processNextPrefetchBatch=function(){(window.requestIdleCallback||(e=>setTimeout(e,0)))(()=>{const e=this.prefetchQueued.splice(0,4),t=Promise.all(e.map(e=>{let[t,n]=e;return this.prefetchTriggered.has(t)||(this.apiRunner("onPrefetchPathname",{pathname:t}),this.prefetchTriggered.add(t)),this.prefetchDisabled?n.resolve(!1):this.doPrefetch((0,l.Hh)(t)).then(()=>{this.prefetchCompleted.has(t)||(this.apiRunner("onPostPrefetchPathname",{pathname:t}),this.prefetchCompleted.add(t)),n.resolve(!0)})}));this.prefetchQueued.length?t.then(()=>{setTimeout(()=>{this._processNextPrefetchBatch()},3e3)}):this.isPrefetchQueueRunning=!1})},t.doPrefetch=function(e){const t=f(e);return c(t,{crossOrigin:"anonymous",as:"fetch"}).then(()=>this.loadPageDataJson(e))},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){const t=(0,l.Hh)(e),n=this.pageDataDb.get(t);if(n){const e=_(n.payload);return[].concat((0,o.A)(S(e.page.componentChunkName)),[f(t)])}return null},t.isPageNotFound=function(e){const t=(0,l.Hh)(e),n=this.pageDb.get(t);return!n||n.notFound},t.loadAppData=function(e){void 0===e&&(e=0);const t=d("app-data");return this.memoizedGet(`https://lab-show.ru/assets/v1/page-data/${t}`).then(t=>{const{status:n,responseText:r}=t;let o;if(200!==n&&e<3)return this.loadAppData(e+1);if(200===n)try{const e=JSON.parse(r);if(void 0===e.webpackCompilationHash)throw new Error("not a valid app-data response");o=e}catch(a){}return o}
2)},e}();const S=e=>(window.___chunkMapping[e]||[]).map(e=>"https://lab-show.ru/assets/v1"+e);let E,b=function(e){function t(t,n,r){var o;return o=e.call(this,function(e,n){if(void 0===n&&(n="components"),!t[n="components"][e])throw new Error(`We couldn't find the correct component chunk with the name "${e}"`);return t[n][e]().catch(e=>e)},n)||this,r&&o.pageDataDb.set((0,l.Hh)(r.path),{pagePath:r.path,payload:r,status:"success"}),o}(0,r.A)(t,e);var n=t.prototype;return n.doPrefetch=function(t){return e.prototype.doPrefetch.call(this,t).then(e=>{if(e.status!==p.Success)return Promise.resolve();const t=e.payload,n=t.componentChunkName,r=S(n);return Promise.all(r.map(c)).then(()=>t)})},n.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then(e=>e.notFound?g(t)?e:m(t,"HEAD").then(t=>200===t.status?{status:p.Error}:e):e)},n.loadPartialHydrationJson=function(t){return e.prototype.loadPartialHydrationJson.call(this,t).then(e=>e.notFound?g(t)?e:m(t,"HEAD").then(t=>200===t.status?{status:p.Error}:e):e)},t}(T);const v=e=>{E=e},I={enqueue:e=>E.prefetch(e),getResourceURLsForPathname:e=>E.getResourceURLsForPathname(e),loadPage:e=>E.loadPage(e),loadPageSync:function(e,t){return void 0===t&&(t={}),E.loadPageSync(e,t)},prefetch:e=>E.prefetch(e),isPageNotFound:e=>E.isPageNotFound(e),hovering:e=>E.hovering(e),loadAppData:()=>E.loadAppData()};var A=I;function R(){return E?E.staticQueryDb:{}}function N(){return E?E.slicesDb:{}}},84288:function(e,t,n){"use strict";n.d(t,{A:function(){return R}});var r=n(96540),o=n(5556),a=n.n(o),i=n(60020),s=n(88990),c=n(60436),u=n(56814),l=(n(42549),n(97035),n(7231));n(50700),n(2024);u.Ay.enqueue;var p=n(86462),d=n(79732);function f(e){let{children:t,callback:n}=e;return(0,r.useEffect)(()=>{n()}),t}const g=["link","meta","style","title","base","noscript","script","html","body"];function m(e){0}function h(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){const r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}function _(e,t){void 0===t&&(t={html:{},body:{}});const n=new Map,r=[];for(const u of e.childNodes){var o,a;const e=u.nodeName.toLowerCase(),l=null===(o=u.attributes)||void 0===o||null===(a=o.id)||void 0===a?void 0:a.value;if(S(u)){if(T(e))if("html"===e||"body"===e)for(const n of u.attributes){const r="style"===n.name;var i;if(t[e]={...t[e]},r||(t[e][n.name]=n.value),r)t[e].style=`${null!==(i=t[e])&&void 0!==i&&i.style?t[e].style:""}${n.value} `}else{let e=u.cloneNode(!0);if(e.setAttribute("data-gatsby-head",!0),"script"===e.nodeName.toLowerCase()&&(e=y(e)),l)if(n.has(l)){var s;const t=n.get(l);null===(s=r[t].parentNode)||void 0===s||s.removeChild(r[t]),r[t]=e}else r.push(e),n.set(l,r.length-1);else r.push(e)}else m();u.childNodes.length&&r.push.apply(r,(0,c.A)(_(u,t).validHeadNodes))}}return{validHeadNodes:r,htmlAndBodyAttributes:t}}function y(e){const t=document.createElement("script");for(const n of e.attributes)t.setAttribute(n.name,n.value);return t.innerHTML=e.innerHTML,t}function T(e){return g.includes(e)}function S(e){return 1===e.nodeType}const E=document.createElement("div"),b={html:[],body:[]},v=()=>{var e;const{validHeadNodes:t,htmlAndBodyAttributes:n}=_(E);b.html=Object.keys(n.html),b.body=Object.keys(n.body),function(e){if(!e)return;const{html:t,body:n}=e,r=document.querySelector("html");
2r&&Object.entries(t).forEach(e=>{let[t,n]=e;r.setAttribute(t,n)});const o=document.querySelector("body");o&&Object.entries(n).forEach(e=>{let[t,n]=e;o.setAttribute(t,n)})}(n);const r=document.querySelectorAll("[data-gatsby-head]");var o;if(0===r.length)return void(o=document.head).append.apply(o,(0,c.A)(t));const a=[];!function(e){let{oldNodes:t,newNodes:n,onStale:r,onNew:o}=e;for(const a of t){const e=n.findIndex(e=>h(e,a));-1===e?r(a):n.splice(e,1)}for(const a of n)o(a)}({oldNodes:r,newNodes:t,onStale:e=>e.parentNode.removeChild(e),onNew:e=>a.push(e)}),(e=document.head).append.apply(e,a)};function I(e){let{pageComponent:t,staticQueryResults:n,pageComponentProps:o}=e;(0,r.useEffect)(()=>{if(null!=t&&t.Head){!function(e){if("function"!=typeof e)throw new Error(`Expected "Head" export to be a function got "${typeof e}".`)}(t.Head);const{render:a}=(0,d.n)(),s=r.createElement(t.Head,{location:{pathname:(e=o).location.pathname},params:e.params,data:e.data||{},serverData:e.serverData,pageContext:e.pageContext}),c=(0,i.N)("wrapRootElement",{element:s},s,e=>{let{result:t}=e;return{element:t}}).pop();a(r.createElement(f,{callback:v},r.createElement(l.G.Provider,{value:n},r.createElement(p.LocationProvider,null,c))),E)}var e;return()=>{!function(){const e=document.querySelectorAll("[data-gatsby-head]");for(const t of e)t.parentNode.removeChild(t)}(),function(e){if(!e)return;const{html:t,body:n}=e;if(t){const e=document.querySelector("html");t.forEach(t=>{e&&e.removeAttribute(t)})}if(n){const e=document.querySelector("body");n.forEach(t=>{e&&e.removeAttribute(t)})}}(b)}})}function A(e){const t={...e,params:{...(0,s.UA)(e.location.pathname),...e.pageResources.json.pageContext.__params}};let n;var o;n=e.pageResources.partialHydration?e.pageResources.partialHydration:(0,r.createElement)((o=e.pageResources.component)&&o.default||o,{...t,key:e.path||e.pageResources.page.path});I({pageComponent:e.pageResources.head,staticQueryResults:e.pageResources.staticQueryResults,pageComponentProps:t});return(0,i.N)("wrapPageElement",{element:n,props:t},n,e=>{let{result:n}=e;return{element:n,props:t}}).pop()}A.propTypes={location:a().object.isRequired,pageResources:a().object.isRequired,data:a().object,pageContext:a().object.isRequired};var R=A},47616:function(e,t,n){"use strict";var r=n(77387),o=n(60020),a=n(96540),i=n(86462),s=n(97035),c=n(7231),u=n(2024),l=n(56814),p=n(16491),d=n(79369);const f={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"};var g=n(5556),m=n(96395);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function _(e){let t=e||"/",n="",r="";const o=t.indexOf("#");-1!==o&&(r=t.slice(o),t=t.slice(0,o));const a=t.indexOf("?");return-1!==a&&(n=t.slice(a),t=t.slice(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}const y=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,T=e=>{if("string"==typeof e)return!(e=>y.test(e))(e)};function S(e,t=""){var n;if(!T(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;const r=null!=(n=null!=t?t:"https://lab-show.ru/assets/v1")?n:"/";return`${null!=r&&r.endsWith("/")?r.slice(0,-1):r}${e.startsWith("/")?e:`/${e}`}`}const E=e=>null==e?void 0:e.startsWith("/");function b(e,t){const{pathname:n,search:r,hash:o}=_(e);return`${(0,m.T)(n,t)}${r}${o}`}const v=(e,t)=>"number"==typeof e?e:T(e)?E(e)?function(e){const t=S(e),n="never";return b(t,n)}(e):function(e,t){if(E(e))return e;const n="never",r=(0,i.resolve)(e,t);return b(r,n)}(e,t):e,I=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];const A={activeClassName:g.string,activeStyle:g.object,partiallyActive:g.bool};function R(e){return a.createElement(i.Location,null,({location:t})=>a.createElement(N,h({},e,{_location:t})))}class N extends a.Component{constructor(e){super(e),this.defaultGetProps=({isPartiallyCurrent:e,isCurrent:t})=>(this.props.partiallyActive?e:t)?{className:[this.props.className,this.props.activeClassName].filter(
2Boolean).join(" "),style:h({},this.props.style,this.props.activeStyle)}:null;let t=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(t=!0),this.state={IOSupported:t},this.abortPrefetch=null,this.handleRef=this.handleRef.bind(this)}_prefetch(){let e=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname+this.props._location.search);const t=_(v(this.props.to,e)),n=t.pathname+t.search;if(e!==n)return ___loader.enqueue(n)}componentWillUnmount(){if(!this.io)return;const{instance:e,el:t}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),e.unobserve(t),e.disconnect()}handleRef(e){this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=((e,t)=>{const n=new window.IntersectionObserver(n=>{n.forEach(n=>{e===n.target&&t(n.isIntersecting||n.intersectionRatio>0)})});return n.observe(e),{instance:n,el:e}})(e,e=>{e?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()}))}render(){const e=this.props,{to:t,getProps:n=this.defaultGetProps,onClick:r,onMouseEnter:o,state:s,replace:c,_location:u}=e,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}(e,I),p=v(t,u.pathname);return T(p)?a.createElement(i.Link,h({to:p,state:s,getProps:n,innerRef:this.handleRef,onMouseEnter:e=>{o&&o(e);const t=_(p);___loader.hovering(t.pathname+t.search)},onClick:e=>{if(r&&r(e),!(0!==e.button||this.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault();let t=c;const n=encodeURI(p)===u.pathname;"boolean"!=typeof c&&n&&(t=!0),window.___navigate(p,{state:s,replace:t})}return!0}},l)):a.createElement("a",h({href:p},l))}}N.propTypes=h({},A,{onClick:g.func,to:g.string.isRequired,replace:g.bool,state:g.object});a.forwardRef((e,t)=>a.createElement(R,h({innerRef:t},e)));function O(e){const t=(0,p.X)(e),{hash:n,search:r}=window.location;return null!=t&&(window.___replace(t.toPath+r+n),!0)}let P="";window.addEventListener("unhandledrejection",e=>{/loading chunk \d* failed./i.test(e.reason)&&P&&(window.location.pathname=P)});const w=(e,t)=>{O(e.pathname)||(P=e.pathname,(0,o.N)("onPreRouteUpdate",{location:e,prevLocation:t}))},C=(e,t)=>{O(e.pathname)||(0,o.N)("onRouteUpdate",{location:e,prevLocation:t})},U=function(e,t){if(void 0===t&&(t={}),"number"==typeof e)return void i.globalHistory.navigate(e);const{pathname:n,search:r,hash:a}=_(e),s=(0,p.X)(n);if(s&&(e=s.toPath+r+a),window.___swUpdated)return void(window.location=n+r+a);const c=setTimeout(()=>{d.A.emit("onDelayedLoadPageResources",{pathname:n}),(0,o.N)("onRouteUpdateDelayed",{location:window.location})},1e3);l.Ay.loadPage(n+r).then(o=>{if(!o||o.status===l.Wi.Error)return window.history.replaceState({},"",location.href),window.location=n,void clearTimeout(c);o&&o.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=n+r+a),(0,i.navigate)(e,t),clearTimeout(c)})};function L(e,t){let{location:n}=t;const{pathname:r,hash:a}=n,i=(0,o.N)("shouldUpdateScroll",{prevRouterProps:e,pathname:r,routerProps:{location:n},getSavedScrollPosition:e=>[0,this._stateStorage.read(e,e.key)]});if(i.length>0)return i[i.length-1];if(e){const{location:{pathname:t}}=e;if(t===r)return a?decodeURI(a.slice(1)):[0,0]}return!0}let k=function(e){function t(t){var n;return(n=e.call(this,t)||this).announcementRef=a.createRef(),n}(0,r.A)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){requestAnimationFrame(()=>{let e=`new page at ${this.props.location.pathname}`;document.title&&(e=document.title);const t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);const n=`Navigated to ${e}`;if(this.announcementRef.current){this.announcementRef.current.innerText!==n&&(this.announcementRef.current.innerText=n)}})},n.render=function(){return a.createElement("div",Object.assign({},f,{ref:this.announcementRef}))},t}(a.Component);const M=(e,t)=>{var n,r;return e.href!==t.href||(null==e||null===(n=e.state)||void 0===n?void 0:n.key)!==(null==t||null===(r=t.state)||void 0===r?void 0:r.key)};let x=function(e){function t(t){var n;return n=e.call(this,t)||this,w(t.location,null),n}(0,r.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){C(this.props.location,null)},n.shouldComponentUpdate=function(e){return!!M(this.props.location,e.location)&&(w(e.location,this.props.location),!0)},n.componentDidUpdate=function(e){M(e.location,this.props.location)&&C(this.props.location,e.location)},n.render=function(){return a.createElement(a.Fragment,null,this.props.children,a.createElement(k,{location:location}))},t}(a.Component);var B=n(84288),D=n(96877);function j(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var F=function(e,t,n){return j(e.props,t)||j(e.state,n)};n.dn(F);var G=function(e){function t(t){var n;n=e.call(this)||this;const{location:r,pageResources:o}=t;return n.state={location:{...r},pageResources:o||l.Ay.loadPageSync(r.pathname+r.search,{withErrorDetails:!0})},n}(0,r.A)(t,e),t.getDerivedStateFromProps=function(e,t){let{location:n}=e;if(t.location.href!==n.href){return{pageResources:l.Ay.loadPageSync(n.pathname+n.search,{withErrorDetails:!0}),location:{...n}}}return{location:{...n}}};var n=t.prototype;return n.loadResources=function(e){l.Ay.loadPage(e).then(t=>{t&&t.status!==l.Wi.Error?this.setState({location:{...window.location},pageResources:t}):(window.history.replaceState({},"",location.href),window.location=e)})},n.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||
2(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||F(this,e,t)))):(this.loadResources(e.location.pathname+e.location.search),!1)},n.render=function(){return this.props.children(this.state)},t}(a.Component),H=n(38797),W=JSON.parse('[{"path":"/news/page/2","matchPath":"/news/page/2"},{"path":"/persons/person/2922","matchPath":"/persons/person/2922"},{"path":"/persons/person/3001","matchPath":"/persons/person/3001"},{"path":"/persons/person/3067","matchPath":"/persons/person/3067"},{"path":"/persons/person/3496","matchPath":"/persons/person/3496"},{"path":"/persons/person/3536","matchPath":"/persons/person/3536"},{"path":"/persons/person/3776","matchPath":"/persons/person/3776"},{"path":"/persons/person/3850","matchPath":"/persons/person/3850"},{"path":"/persons/person/388","matchPath":"/persons/person/388"},{"path":"/persons/person/554","matchPath":"/persons/person/554"},{"path":"/events/263704","matchPath":"/events/263704"},{"path":"/events/279331","matchPath":"/events/279331"},{"path":"/events/283784","matchPath":"/events/283784"},{"path":"/events/283819","matchPath":"/events/283819"},{"path":"/events/284362","matchPath":"/events/284362"},{"path":"/events/285070","matchPath":"/events/285070"},{"path":"/events/289243","matchPath":"/events/289243"},{"path":"/events/289245","matchPath":"/events/289245"},{"path":"/events/291411","matchPath":"/events/291411"},{"path":"/events/291413","matchPath":"/events/291413"},{"path":"/events/292001","matchPath":"/events/292001"},{"path":"/events/292492","matchPath":"/events/292492"},{"path":"/events/293409","matchPath":"/events/293409"},{"path":"/events/44118","matchPath":"/events/44118"},{"path":"/events/bilet-koncert-ledovyj-dvorec-spb-285196","matchPath":"/events/bilet-koncert-ledovyj-dvorec-spb-285196"},{"path":"/events/lab-vtb-arena-277940","matchPath":"/events/lab-vtb-arena-277940"},{"path":"/events/search","matchPath":"/events/search"},{"path":"/news/45667","matchPath":"/news/45667"},{"path":"/news/45670","matchPath":"/news/45670"},{"path":"/news/45671","matchPath":"/news/45671"},{"path":"/news/45676","matchPath":"/news/45676"},{"path":"/news/45881","matchPath":"/news/45881"},{"path":"/news/47142","matchPath":"/news/47142"},{"path":"/news/48309","matchPath":"/news/48309"},{"path":"/news/48990","matchPath":"/news/48990"},{"path":"/news/49616","matchPath":"/news/49616"},{"path":"/news/49884","matchPath":"/news/49884"},{"path":"/news/49926","matchPath":"/news/49926"},{"path":"/news/50297","matchPath":"/news/50297"},{"path":"/news/50707","matchPath":"/news/50707"},{"path":"/news/51300","matchPath":"/news/51300"},{"path":"/news/51909","matchPath":"/news/51909"},{"path":"/news/53393","matchPath":"/news/53393"},{"path":"/news/53539","matchPath":"/news/53539"},{"path":"/news/54600","matchPath":"/news/54600"},{"path":"/news/54635","matchPath":"/news/54635"},{"path":"/news/55767","matchPath":"/news/55767"},{"path":"/news/62364","matchPath":"/news/62364"},{"path":"/news/63460","matchPath":"/news/63460"},{"path":"/news/64081","matchPath":"/news/64081"},{"path":"/news/65147","matchPath":"/news/65147"},{"path":"/news/65317","matchPath":"/news/65317"},{"path":"/news/66455","matchPath":"/news/66455"},{"path":"/news/67091","matchPath":"/news/67091"},{"path":"/news/67789","matchPath":"/news/67789"},{"path":"/news/69094","matchPath":"/news/69094"},{"path":"/news/69218","matchPath":"/news/69218"},{"path":"/news/69771","matchPath":"/news/69771"},{"path":"/news/69955","matchPath":"/news/69955"},{"path":"/news/anton-belyaev-i-lab-nezabyvaemyj-muzykalnyj-vecher-v-krk-nagornom","matchPath":"/news/anton-belyaev-i-lab-nezabyvaemyj-muzykalnyj-vecher-v-krk-nagornom"},{"path":"/news/anton-belyaev-i-lab-v-sankt-peterburge-unikalnyj-koncert-v-ledovom-dvorce","matchPath":"/news/anton-belyaev-i-lab-v-sankt-peterburge-unikalnyj-koncert-v-ledovom-dvorce"},{"path":"/news/anton-belyaev-i-therr-maitz-koncert-v-yantar-holle-kotoryj-nelzya-propustit","matchPath":"/news/anton-belyaev-i-therr-maitz-koncert-v-yantar-holle-kotoryj-nelzya-propustit"},{"path":"/news/anton-belyaev-v-svetlogorske-koncert-v-yantar-holle-s-unikalnoj-atmosferoj","matchPath":"/news/anton-belyaev-v-svetlogorske-koncert-v-yantar-holle-s-unikalnoj-atmosferoj"},{"path":"/news/koncert-lab-s-antonom-belyaevym-sostoyalsya-v-ledovom-dvorce-sankt-peterburga-i-eto-sobytie-stalo-poistine-znachimym-dlya-vseh-poklonnikov-muzykanta","matchPath":"/news/koncert-lab-s-antonom-belyaevym-sostoyalsya-v-ledovom-dvorce-sankt-peterburga-i-eto-sobytie-stalo-poistine-znachimym-dlya-vseh-poklonnikov-muzykanta"},{"path":"/news/koncert-lab-s-antonom-belyaevym-v-nagornom-muzykalnye-eksperimenty-goda","matchPath":"/news/koncert-lab-s-antonom-belyaevym-v-nagornom-muzykalnye-eksperimenty-goda"},{"path":"/news/koncert-lab-v-nagornom-muzykalnye-eksperimenty-s-antonom-belyaevym-i-zvezdami","matchPath":"/news/koncert-lab-v-nagornom-muzykalnye-eksperimenty-s-antonom-belyaevym-i-zvezdami"},{"path":"/news/koncert-therr-maitz-v-yantar-holle-muzykalnoe-volshebstvo-na-beregu-baltijskogo-morya","matchPath":"/news/koncert-therr-maitz-v-yantar-holle-muzykalnoe-volshebstvo-na-beregu-baltijskogo-morya"},{"path":"/news/lab-s-antonom-belyaevym-vozvrashaetsya-na-vtb-arenu-s-bolshim-shou","matchPath":"/news/lab-s-antonom-belyaevym-vozvrashaetsya-na-vtb-arenu-s-bolshim-shou"},{"path":"/news/pogruzites-v-magiyu-muzyki-anton-belyaev-s-shou-lab-v-krk-nagornyj","matchPath":"/news/pogruzites-v-magiyu-muzyki-anton-belyaev-s-shou-lab-v-krk-nagornyj"},{"path":"/order/fail","matchPath":"/order/fail"},{"path":"/order/success","matchPath":"/order/success"},{"path":"/places/3192","matchPath":"/places/3192"},{"path":"/places/53","matchPath":"/places/53"},{"path":"/ru/order","matchPath":"/ru/order/*"},{"path":"/404.html","matchPath":"/404.html"},{"path":"/about","matchPath":"/about"},{"path":"/cart","matchPath":"/cart"},{"path":"/contacts","matchPath":"/contacts"},{"path":"/events","matchPath":"/events"},{"path":"/guarantee","matchPath":"/guarantee"},{"path":"/msk","matchPath":"/msk"},{"path":"/news","matchPath":"/news"},{"path":"/offer","matchPath":"/offer"},{"path":"/pay-and-delivery","matchPath":"/pay-and-delivery"},{"path":"/persons","matchPath":"/persons"},{"path":"/places","matchPath":"/places"},{"path":"/privacy-policy","matchPath":"/privacy-policy"},{"path":"/spb","matchPath":"/spb"},{"path":"/order","matchPath":"/order/*"},{"path":"/","matchPath":"/"},{"path":"/404","matchPath":"/*"}]'),$=n(79732);const q=new l.N5(D,W,window.pageData);(0,l.iC)(q),q.setApiRunner(o.N);const{render:V,hydrate:z}=(0,$.n)();window.asyncRequires=D,window.___emitter=d.A,window.___loader=l.Zf,i.globalHistory.listen(e=>{e.location.action=e.action}),window.___push=e=>U(e,{replace:!1}),window.___replace=e=>U(e,{replace:!0}),window.___navigate=(e,t)=>
2U(e,t);const Y="gatsby-reload-compilation-hash-match";(0,o.v)("onClientEntry").then(()=>{(0,o.N)("registerServiceWorker").filter(Boolean).length>0&&n(30626);const e=e=>a.createElement(i.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},a.createElement(B.A,e)),t=a.createContext({}),p={renderEnvironment:"browser"};let d=function(e){function n(){return e.apply(this,arguments)||this}return(0,r.A)(n,e),n.prototype.render=function(){const{children:e}=this.props;return a.createElement(i.Location,null,n=>{let{location:r}=n;return a.createElement(G,{location:r},n=>{let{pageResources:r,location:o}=n;const i=(0,l.LE)(),s=(0,l.Rh)();return a.createElement(c.G.Provider,{value:i},a.createElement(u.j$.Provider,{value:p},a.createElement(u.dd.Provider,{value:s},a.createElement(u.Jr.Provider,{value:r.page.slicesMap},a.createElement(t.Provider,{value:{pageResources:r,location:o}},e)))))})})},n}(a.Component),f=function(n){function o(){return n.apply(this,arguments)||this}return(0,r.A)(o,n),o.prototype.render=function(){return a.createElement(t.Consumer,null,t=>{let{pageResources:n,location:r}=t;return a.createElement(x,{location:r},a.createElement(s.z_,{location:r,shouldUpdateScroll:L},a.createElement(i.Router,{basepath:"",location:r,id:"gatsby-focus-wrapper"},a.createElement(e,Object.assign({path:"/404.html"===n.page.path||"/500.html"===n.page.path?(0,H.A)(r.pathname,""):encodeURI((n.page.matchPath||n.page.path).split("?")[0])},this.props,{location:r,pageResources:n},n.json)))))})},o}(a.Component);const{pagePath:g,location:m}=window;g&&""+g!==m.pathname+(g.includes("?")?m.search:"")&&!(q.findMatchPath((0,H.A)(m.pathname,""))||g.match(/^\/(404|500)(\/?|.html)$/)||g.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,i.navigate)(""+g+(g.includes("?")?"":m.search)+m.hash,{replace:!0});const h=()=>{try{return sessionStorage}catch{return null}};l.Zf.loadPage(m.pathname+m.search).then(e=>{var t;const n=h();if(null!=e&&null!==(t=e.page)&&void 0!==t&&t.webpackCompilationHash&&e.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),n)){if(!("1"===n.getItem(Y)))return n.setItem(Y,"1"),void window.location.reload(!0)}if(n&&n.removeItem(Y),!e||e.status===l.Wi.Error){const t=`page resources for ${m.pathname} not found. Not rendering React`;if(e&&e.error)throw console.error(t),e.error;throw new Error(t)}const r=(0,o.N)("wrapRootElement",{element:a.createElement(f,null)},a.createElement(f,null),e=>{let{result:t}=e;return{element:t}}).pop(),i=function(){const e=a.useRef(!1);return a.useEffect(()=>{e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.N)("onInitialClientRender"))},[]),a.createElement(d,null,r)},s=document.getElementById("gatsby-focus-wrapper");let c=V;s&&s.children.length&&(c=z);const u=(0,o.N)("replaceHydrateFunction",void 0,c)[0];function p(){const e="undefined"!=typeof window?document.getElementById("___gatsby"):null;u(a.createElement(i,null),e)}const g=document;if("complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll)setTimeout(function(){p()},0);else{const e=function(){g.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),p()};g.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)}})})},50963:function(e,t,n){"use strict";n.r(t);var r=n(96540),o=n(56814),a=n(84288);t.default=e=>{let{location:t}=e;const n=o.Ay.loadPageSync(t.pathname);return n?r.createElement(a.A,{location:t,pageResources:n,...n.json}):null}},42549:function(e,t,n){var r;e.exports=(r=n(50963))&&r.default||r},79732:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});const r=new WeakMap;function o(){const e=n(5338);return{render:(t,n)=>{let o=r.get(n);o||r.set(n,o=e.createRoot(n)),o.render(t)},hydrate:(t,n)=>e.hydrateRoot(n,t)}}},16491:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});const r=new Map,o=new Map;function a(e){let t=r.get(e);return t||(t=o.get(e.toLowerCase())),t}
2[].forEach(e=>{e.ignoreCase?o.set(e.fromPath,e):r.set(e.fromPath,e)})},30626:function(e,t,n){"use strict";n.r(t);var r=n(60020);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(function(e){e.addEventListener("updatefound",()=>{(0,r.N)("onServiceWorkerUpdateFound",{serviceWorker:e});const t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",()=>{switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,r.N)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,r.N)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),(0,r.N)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,r.N)("onServiceWorkerActive",{serviceWorker:e})}})})}).catch(function(e){console.error("Error during service worker registration:",e)})},2024:function(e,t,n){"use strict";var r=n(96540);const o=r.createContext({}),a=r.createContext({}),i=r.createContext({});n.d(t,["Jr",0,i,"dd",0,o,"j$",0,a])},7231:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(96540);const o=(a="StaticQuery",i={},r.createServerContext?function(e,t){return void 0===t&&(t=null),globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=r.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]}(a,i):r.createContext(i));var a,i},38797:function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=""),t?e===t?"/":e.startsWith(`${t}/`)?e.slice(t.length):e:e}n.d(t,{A:function(){return r}})},62659:function(e,t,n){"use strict";t.__esModule=!0,t.replaceHydrateFunction=void 0;var r=n(40961),o=n(48668);t.replaceHydrateFunction=(e,t)=>(e,n,a)=>{(0,o.loadableReady)(()=>{(void 0===t.useHydrate?"build-javascript".includes("develop")?r.render:r.hydrate:t.useHydrate?r.hydrate:r.render)(e,n,a)})}},70385:function(e,t,n){"use strict";function r(e,t){if(void 0!==e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function o(e){return function(t,n){return null!=n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?r(e.future,t):"ÑеÑез "+r(e.regular,t):e.past?r(e.past,t):r(e.regular,t)+" назад":r(e.regular,t)}}n.d(t,{I:function(){return T}});var a={lessThanXSeconds:o({regular:{one:"менÑÑе ÑекÑндÑ",singularNominative:"менÑÑе {{count}} ÑекÑндÑ",singularGenitive:"менÑÑе {{count}} ÑекÑнд",pluralGenitive:"менÑÑе {{count}} ÑекÑнд"},future:{one:"менÑÑе, Ñем ÑеÑез ÑекÑндÑ",singularNominative:"менÑÑе, Ñем ÑеÑез {{count}} ÑекÑндÑ",singularGenitive:"менÑÑе, Ñем ÑеÑез {{count}} ÑекÑндÑ",pluralGenitive:"менÑÑе, Ñем ÑеÑез {{count}} ÑекÑнд"}}),xSeconds:o({regular:{singularNominative:"{{count}} ÑекÑнда",singularGenitive:"{{count}} ÑекÑндÑ",pluralGenitive:"{{count}} ÑекÑнд"},past:{singularNominative:"{{count}} ÑекÑÐ½Ð´Ñ Ð½Ð°Ð·Ð°Ð´",singularGenitive:"{{count}} ÑекÑÐ½Ð´Ñ Ð½Ð°Ð·Ð°Ð´",pluralGenitive:"{{count}} ÑекÑнд назад"},future:{singularNominative:"ÑеÑез {{count}} ÑекÑндÑ",singularGenitive:"ÑеÑез {{count}} ÑекÑндÑ",pluralGenitive:"ÑеÑез {{count}} ÑекÑнд"}}),halfAMinute:function(e,t){return null!=t&&t.addSuffix?t.comparison&&t.comparison>0?"ÑеÑез полминÑÑÑ":"полминÑÑÑ Ð½Ð°Ð·Ð°Ð´":"полминÑÑÑ"},lessThanXMinutes:o({regular:{one:"менÑÑе минÑÑÑ",singularNominative:"менÑÑе {{count}} минÑÑÑ",singularGenitive:"менÑÑе {{count}} минÑÑ",pluralGenitive:"менÑÑе {{count}} минÑÑ"},future:{one:"менÑÑе, Ñем ÑеÑез минÑÑÑ",singularNominative:"менÑÑе, Ñем ÑеÑез {{count}} минÑÑÑ",singularGenitive:"менÑÑе, Ñем ÑеÑез {{count}} минÑÑÑ",pluralGenitive:"менÑÑе, Ñем ÑеÑез {{count}} минÑÑ"}}),xMinutes:o({regular:{singularNominative:"{{count}} минÑÑа",singularGenitive:"{{count}} минÑÑÑ",pluralGenitive:"{{count}} минÑÑ"},past:{singularNominative:"{{count}} минÑÑÑ Ð½Ð°Ð·Ð°Ð´",singularGenitive:"{{count}} минÑÑÑ Ð½Ð°Ð·Ð°Ð´",pluralGenitive:"{{count}} минÑÑ Ð½Ð°Ð·Ð°Ð´"},future:{singularNominative:"ÑеÑез {{count}} минÑÑÑ",singularGenitive:"ÑеÑез {{count}} минÑÑÑ",pluralGenitive:"ÑеÑез {{count}} минÑÑ"}}),aboutXHours:o({regular:{singularNominative:"около {{count}} ÑаÑа",singularGenitive:"около {{count}} ÑаÑов",pluralGenitive:"около {{count}} ÑаÑов"},future:{singularNominative:"пÑиблизиÑелÑно ÑеÑез {{count}} ÑаÑ",singularGenitive:"пÑиблизиÑелÑно ÑеÑез {{count}} ÑаÑа",pluralGenitive:"пÑиблизиÑелÑно ÑеÑез {{count}} ÑаÑов"}}),xHours:o({regular:{singularNominative:"{{count}} ÑаÑ",singularGenitive:"{{count}} ÑаÑа",pluralGenitive:"{{count}} ÑаÑов"}}),xDays:o({regular:{singularNominative:"{{count}} денÑ",singularGenitive:"{{count}} днÑ",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:o({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} неделÑ",pluralGenitive:"около {{count}} неделÑ"},future:{singularNominative:"пÑиблизиÑелÑно ÑеÑез {{count}} неделÑ",singularGenitive:"пÑиблизиÑелÑно ÑеÑез {{count}} недели",pluralGenitive:"пÑиблизиÑелÑно ÑеÑез {{count}} неделÑ"}}),xWeeks:o({regular:{singularNominative:"{{count}} неделÑ",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} неделÑ"}}),aboutXMonths:o({regular:{singularNominative:"около {{count}} меÑÑÑа",singularGenitive:"около {{count}} меÑÑÑев",pluralGenitive:"около {{count}} меÑÑÑев"},future:{singularNominative:"пÑиблизиÑелÑно ÑеÑез {{count}} меÑÑÑ",singularGenitive:"пÑиблизиÑелÑно ÑеÑез {{count}} меÑÑÑа",pluralGenitive:"пÑиблизиÑелÑно ÑеÑез {{count}} меÑÑÑев"}}),xMonths:o({regular:{singularNominative:"{{count}} меÑÑÑ",singularGenitive:"{{count}} меÑÑÑа",pluralGenitive:"{{count}} меÑÑÑев"}}),aboutXYears:o({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} леÑ",pluralGenitive:"около {{count}} леÑ"},future:{singularNominative:"пÑиблизиÑелÑно ÑеÑез {{count}} год",singularGenitive:"пÑиблизиÑелÑно ÑеÑез {{count}} года",pluralGenitive:"пÑиблизиÑелÑно ÑеÑез {{count}} леÑ"}}
2),xYears:o({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} леÑ"}}),overXYears:o({regular:{singularNominative:"болÑÑе {{count}} года",singularGenitive:"болÑÑе {{count}} леÑ",pluralGenitive:"болÑÑе {{count}} леÑ"},future:{singularNominative:"болÑÑе, Ñем ÑеÑез {{count}} год",singularGenitive:"болÑÑе, Ñем ÑеÑез {{count}} года",pluralGenitive:"болÑÑе, Ñем ÑеÑез {{count}} леÑ"}}),almostXYears:o({regular:{singularNominative:"поÑÑи {{count}} год",singularGenitive:"поÑÑи {{count}} года",pluralGenitive:"поÑÑи {{count}} леÑ"},future:{singularNominative:"поÑÑи ÑеÑез {{count}} год",singularGenitive:"поÑÑи ÑеÑез {{count}} года",pluralGenitive:"поÑÑи ÑеÑез {{count}} леÑ"}})},i=function(e,t,n){return a[e](t,n)},s=n(95047),c={date:(0,s.A)({formats:{full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},defaultWidth:"full"}),time:(0,s.A)({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,s.A)({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})},u=n(70551),l=n(89742);function p(e,t,n){(0,u.A)(2,arguments);var r=(0,l.A)(e,n),o=(0,l.A)(t,n);return r.getTime()===o.getTime()}var d=["воÑкÑеÑенÑе","понеделÑник","вÑоÑник","ÑÑедÑ","ÑеÑвеÑг","пÑÑниÑÑ","ÑÑббоÑÑ"];function f(e){var t=d[e];return 2===e?"'во "+t+" в' p":"'в "+t+" в' p"}var g={lastWeek:function(e,t,n){var r=e.getUTCDay();return p(e,t,n)?f(r):function(e){var t=d[e];switch(e){case 0:return"'в пÑоÑлое "+t+" в' p";case 1:case 2:case 4:return"'в пÑоÑлÑй "+t+" в' p";case 3:case 5:case 6:return"'в пÑоÑлÑÑ "+t+" в' p"}}(r)},yesterday:"'вÑеÑа в' p",today:"'ÑÐµÐ³Ð¾Ð´Ð½Ñ Ð²' p",tomorrow:"'завÑÑа в' p",nextWeek:function(e,t,n){var r=e.getUTCDay();return p(e,t,n)?f(r):function(e){var t=d[e];switch(e){case 0:return"'в ÑледÑÑÑее "+t+" в' p";case 1:case 2:case 4:return"'в ÑледÑÑÑий "+t+" в' p";case 3:case 5:case 6:return"'в ÑледÑÑÑÑÑ "+t+" в' p"}}(r)},other:"P"},m=function(e,t,n,r){var o=g[e];return"function"==typeof o?o(t,n,r):o},h=n(14797),_={ordinalNumber:function(e,t){var n=Number(e),r=null==t?void 0:t.unit;return n+("date"===r?"-е":"week"===r||"minute"===r||"second"===r?"-Ñ":"-й")},era:(0,h.A)({values:{narrow:["до н.Ñ.","н.Ñ."],abbreviated:["до н. Ñ.","н. Ñ."],wide:["до наÑей ÑÑÑ","наÑей ÑÑÑ"]},defaultWidth:"wide"}),quarter:(0,h.A)({values:{narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й кваÑÑал","2-й кваÑÑал","3-й кваÑÑал","4-й кваÑÑал"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,h.A)({values:{narrow:["Я","Ф","Ð","Ð","Ð","Ð","Ð","Ð","С","Ð","Ð","Ð"],abbreviated:["Ñнв.","Ñев.","маÑÑ","апÑ.","май","иÑнÑ","иÑлÑ","авг.","ÑенÑ.","окÑ.","ноÑб.","дек."],wide:["ÑнваÑÑ","ÑевÑалÑ","маÑÑ","апÑелÑ","май","иÑнÑ","иÑлÑ","авгÑÑÑ","ÑенÑÑбÑÑ","окÑÑбÑÑ","ноÑбÑÑ","декабÑÑ"]},defaultWidth:"wide",formattingValues:{narrow:["Я","Ф","Ð","Ð","Ð","Ð","Ð","Ð","С","Ð","Ð","Ð"],abbreviated:["Ñнв.","Ñев.","маÑ.","апÑ.","маÑ","иÑн.","иÑл.","авг.","ÑенÑ.","окÑ.","ноÑб.","дек."],wide:["ÑнваÑÑ","ÑевÑалÑ","маÑÑа","апÑелÑ","маÑ","иÑнÑ","иÑлÑ","авгÑÑÑа","ÑенÑÑбÑÑ","окÑÑбÑÑ","ноÑбÑÑ","декабÑÑ"]},defaultFormattingWidth:"wide"}),day:(0,h.A)({values:{narrow:["Ð","Ð","Ð","С","Ч","Ð","С"],short:["вÑ","пн","вÑ","ÑÑ","ÑÑ","пÑ","Ñб"],abbreviated:["вÑк","пнд","вÑÑ","ÑÑд","ÑÑв","пÑн","ÑÑб"],wide:["воÑкÑеÑенÑе","понеделÑник","вÑоÑник","ÑÑеда","ÑеÑвеÑг","пÑÑниÑа","ÑÑббоÑа"]},defaultWidth:"wide"}),dayPeriod:(0,h.A)({values:{narrow:{am:"ÐÐ",pm:"ÐÐ",midnight:"полн.",noon:"полд.",morning:"ÑÑÑо",afternoon:"денÑ",evening:"веÑ.",night:"ноÑÑ"},abbreviated:{am:"ÐÐ",pm:"ÐÐ",midnight:"полн.",noon:"полд.",morning:"ÑÑÑо",afternoon:"денÑ",evening:"веÑ.",night:"ноÑÑ"},wide:{am:"ÐÐ",pm:"ÐÐ",midnight:"полноÑÑ",noon:"полденÑ",morning:"ÑÑÑо",afternoon:"денÑ",evening:"веÑеÑ",night:"ноÑÑ"}},defaultWidth:"any",formattingValues:{narrow:{am:"ÐÐ",pm:"ÐÐ",midnight:"полн.",noon:"полд.",morning:"ÑÑÑа",afternoon:"днÑ",evening:"веÑ.",night:"ноÑи"},abbreviated:{am:"ÐÐ",pm:"ÐÐ",midnight:"полн.",noon:"полд.",morning:"ÑÑÑа",afternoon:"днÑ",evening:"веÑ.",night:"ноÑи"},wide:{am:"ÐÐ",pm:"ÐÐ",midnight:"полноÑÑ",noon:"полденÑ",morning:"ÑÑÑа",afternoon:"днÑ",evening:"веÑеÑа",night:"ноÑи"}},defaultFormattingWidth:"wide"})},y=n(13091);const T={ru:{code:"ru",formatDistance:i,formatLong:c,formatRelative:m,localize:_,match:{ordinalNumber:(0,n(46171).A)({matchPattern:/^(\d+)(-?(е|Ñ|й|ое|Ñе|аÑ|ÑÑ|Ñй|ой|ий|Ñй))?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,y.A)({matchPatterns:{narrow:/^((до )?н\.?\s?Ñ\.?)/i,abbreviated:/^((до )?н\.?\s?Ñ\.?)/i,wide:/^(до наÑей ÑÑÑ|наÑей ÑÑÑ|наÑа ÑÑа)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:"any"}),quarter:(0,y.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[Ñои]?й?)? кв.?/i,wide:/^[1234](-?[Ñои]?й?)? кваÑÑал/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,y.A)({matchPatterns:{narrow:/^[ÑÑмаиÑонд]/i,abbreviated:/^(Ñнв|Ñев|маÑÑ?|апÑ|ма[йÑ]|иÑн[ÑÑ]?|иÑл[ÑÑ]?|авг|ÑенÑ?|оÐ
2ºÑ|ноÑб?|дек)\.?/i,wide:/^(ÑнваÑ[ÑÑ]|ÑевÑал[ÑÑ]|маÑÑа?|апÑел[ÑÑ]|ма[йÑ]|иÑн[ÑÑ]|иÑл[ÑÑ]|авгÑÑÑа?|ÑенÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|ноÑбÑ[ÑÑ]|декабÑ[ÑÑ])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^Ñ/i,/^Ñ/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^Ñ/i,/^о/i,/^н/i,/^Ñ/i],any:[/^Ñ/i,/^Ñ/i,/^маÑ/i,/^ап/i,/^ма[йÑ]/i,/^иÑн/i,/^иÑл/i,/^ав/i,/^Ñ/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:"any"}),day:(0,y.A)({matchPatterns:{narrow:/^[впÑÑ]/i,short:/^(вÑ|во|пн|по|вÑ|ÑÑ|ÑÑ|Ñе|пÑ|пÑ|Ñб|ÑÑ)\.?/i,abbreviated:/^(вÑк|воÑ|пнд|пон|вÑÑ|вÑо|ÑÑд|ÑÑе|ÑÑв|ÑеÑ|пÑн|пÑÑ|ÑÑб).?/i,wide:/^(воÑкÑеÑенÑ[еÑ]|понеделÑника?|вÑоÑника?|ÑÑед[аÑ]|ÑеÑвеÑга?|пÑÑниÑ[аÑ]|ÑÑббоÑ[аÑ])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^Ñ/i,/^Ñ/i,/^п/i,/^Ñ/i],any:[/^в[оÑ]/i,/^п[он]/i,/^в/i,/^ÑÑ/i,/^Ñ/i,/^п[ÑÑ]/i,/^Ñ[Ñб]/i]},defaultParseWidth:"any"}),dayPeriod:(0,y.A)({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|ÑÑÑ[оа]|денÑ|днÑ|веÑ\.?|ноÑ[Ñи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|ÑÑÑ[оа]|денÑ|днÑ|веÑ\.?|ноÑ[Ñи])/i,wide:/^([дп]п|полноÑÑ|полденÑ|ÑÑÑ[оа]|денÑ|днÑ|веÑеÑа?|ноÑ[Ñи])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^Ñ/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}}},83292:function(e,t){"use strict";t.A={UPDATE_BASKET:"UPDATE_BASKET",WIDGET_FULLSCREEN:"WIDGET_FULLSCREEN",UPDATE_PRICES:"UPDATE_PRICES",QUERY_CHANGE:"QUERY_CHANGE",QUERY_CHANGED:"QUERY_CHANGED",SUBMIT_SMARTCAPTCHA:"SUB
2MIT_SMARTCAPTCHA",SMARTCAPTCHA_CALLBACK:"SMARTCAPTCHA_CALLBACK"}},90510:function(e,t,n){"use strict";var r=n(7309),o=n.n(r),a=n(71536);const i=e=>{let{language_currency:t,currencies:n}=e;return Object.keys(t||[]).reduce((e,r)=>{const o=t&&t[r]||[],a=(n||[]).filter(e=>e.code.toUpperCase()===r.toUpperCase());return o.forEach(t=>{e[t.value]={currency:r,meta:a[0]}}),e},{})};n.d(t,["$r",0,i,"MN",0,e=>(0,a.setCookie)(null,"currency",e,{path:"/"}),"OY",0,e=>{let{theme:t}=e;const n=(0,a.parseCookies)(),{currency:r}=n,{language_currency:s,ui_config_show_currencies:c,currencies:u}=t,l=i({language_currency:s,currencies:u}),p=t.currencies&&t.currencies[0];if(c&&l[t.language||t.main_lang]&&!r)return l[t.language||t.main_lang].meta;{const e=o()(t.currencies,e=>"RUB"===e.code.toUpperCase()),n=o()(t.currencies,e=>e.code===r);return r&&n?n:e||p}}])},25016:function(e,t,n){"use strict";n.d(t,{Xo:function(){return a},sX:function(){return o}});var r={UTM:"__utm_"};const o=e=>{try{const{utm_source:t,utm_campaign:n,utm_term:o}=e;sessionStorage.setItem(r.UTM,JSON.stringify({utm_source:t,utm_campaign:n,utm_term:o}))}catch(t){console.error(t)}},a=()=>{try{return JSON.parse(sessionStorage.getItem(r.UTM)||"{}")}catch(e){return console.error(e),null}}},76341:function(e,t,n){"use strict";n.d(t,{NP:function(){return i}});var r=n(77387),o=n(96540);const a=o.createContext({});let i=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.A)(t,e),t.prototype.render=function(){return o.createElement(a.Provider,{value:{...this.props.theme,ui_config_time_format:this.props.theme.ui_config_use_am_pm?"hh:mm aa":"HH:mm"}},this.props.children)},t}(o.Component);const s=a.Consumer;n.d(t,["Dx",0,a,"e$",0,s])},65390:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var r=n(32024),o=n(20545),a=n.n(o),i=n(51111);const s="axios-retry";function c(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&i(e)))}const u=["get","head","options"],l=u.concat(["put","delete"]);function p(e){return"ECONNABORTED"!==e.code&&(!e.response||e.response.status>=500&&e.response.status<=599)}function d(e){return!!e.config?.method&&(p(e)&&-1!==l.indexOf(e.config.method))}function f(e){return c(e)||d(e)}const g={retries:3,retryCondition:f,retryDelay:function(){return 0},shouldResetTimeout:!1,onRetry:()=>{}};function m(e,t){const n=function(e,t){return{...g,...t,...e[s]}}(e,t||{});return n.retryCount=n.retryCount||0,n.lastRequestTime=n.lastRequestTime||Date.now(),e[s]=n,n}const h=(e,t)=>({requestInterceptorId:e.interceptors.request.use(e=>(m(e,t),e)),responseInterceptorId:e.interceptors.response.use(null,async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const o=m(r,t);if(await async function(e,t){const{retries:n,retryCondition:r}=e,o=(e.retryCount||0)<n&&r(t);if("object"==typeof o)try{return!1!==await o}catch(a){return!1}return o}(o,n)){o.retryCount+=1;const{retryDelay:t,shouldResetTimeout:a,onRetry:i}=o,s=t(o.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!a&&r.timeout&&o.lastRequestTime){const e=Date.now()-o.lastRequestTime,t=r.timeout-e-s;if(t<=0)return Promise.reject(n);r.timeout=t}return r.transformRequest=[e=>e],await i(o.retryCount,n,r),new Promise(t=>{setTimeout(()=>t(e(r)),s)})}return Promise.reject(n)})});h.isNetworkError=c,h.isSafeRequestError=function(e){return!!e.config?.method&&(p(e)&&-1!==u.indexOf(e.config.method))},h.isIdempotentRequestError=d,h.isNetworkOrIdempotentRequestError=f,h.exponentialDelay=function(e=0,t=void 0,n=100){const r=2**e*n;return r+.2*r*Math.random()},h.isRetryableError=p;var _=h,y=n(55373);const T=Number({}.REQUEST_RPS_LIMIT||10),S=r.A.create({baseURL:{}.INTERNAL_API_URL||"https://api.pbilet.net/public",timeout:6e4}),E=r.A.create({baseURL:{}.INTERNAL_API_URL||"https://api.pbilet.net/public",timeout:6e4}),b=r.A.create({baseURL:{}.INTERNAL_API_URL||"https://api.pbilet.net/public",timeout:6e4}),v=r.A.create({baseURL:{}.INTERNAL_API_URL||"https://api.pbilet.net/public",timeout:6e4});_(S,{retries:3,retryDelay:function(){return 1e3}}),_(E,{retries:3,retryDelay:function(){return 1e3}}),_(b,{retries:3,retryDelay:function(){return 1e3}});const I=e=>(e.meta=e.meta||{},e.meta.requestStartedAt=(new Date).getTime(),e),A=e=>e,R=e=>{if(e&&e.config){var t,n;const r=`${e.config.baseURL}${e.config.url}?${e.config.params?y.stringify(e.config.params):""}`;return Promise.reject(JSON.stringify({response:null==e||null===(t=e.response)||void 0===t?void 0:t.data,statusCode:null==e||null===(n=e.response)||void 0===n?void 0:n.status,url:r},null,2))}return Promise.reject(e)};S.interceptors.request.use(I),S.interceptors.response.use(A,R),E.interceptors.request.use(I),E.interceptors.response.use(A,R),b.interceptors.request.use(I),b.interceptors.response.use(A,R),v.interceptors.request.use(I),v.interceptors.response.use(A,R);const N=a()?a()(S,{maxRequests:T,perMilliseconds:1e3}):S,O=a()?a()(E,{maxRequests:T,perMilliseconds:1e3}):E,P=a()?a()(b,{maxRequests:T,perMilliseconds:1e3}):b,w=a()?a()(v,{maxRequests:T,perMilliseconds:1e3}):v;var C={newsList:async e=>w.get("/v1/news",e).then(e=>e.data),eventsList:async e=>{let t=e.params||{};const{categories:n,halls:r,places:o,date_gte:a,date_lte:i,cities:s,is_star_cast:c,...u}=t;return t={date_type:"active",sort_by:"started_at",sort_on:"asc",...u,...n&&{category_id_in:n},...r&&{hall_id_in:r},...o&&{place_id_in:o},...a&&{started_gte:a,started_lte:i||a},...s&&{location_id_in:s},...(a||u.started_gte)&&{sort_by:"started_at"},...c&&{label_id_in:3}},e.params=t,N.get("/v1/events",e).then(e=>e.data)},placesList:async e=>O.get("/v1/places",e).then(e=>e.data),personsList:async e=>P.get("/v1/persons",e).then(e=>e.data),acquiringsList:async e=>S.get("https://tickets.api.pbilet.net/public/v2/acquirings",e).then(e=>e.data.results),eventsCategoryTypes:async e=>N.get("/v1/events_category_types",e).then(e=>e.data),eventsCategories:async e=>N.get("/v1/events_categories",e).then(e=>e.data),eventsDates:async e=>N.get("/v1/events_dates",e).then(e=>e.data),eventsHalls:async e=>N.get("/v1/events_halls",e).then(e=>e.data),eventsPlaces:async e=>N.get("/v1/events_places",e).then(e=>e.data),eventsLocations:async e=>N.get("/v1/events_locations",e).then(e=>e.data),landingConfig:async e=>S.get(`/v2/landings/${e}`).then(e=>({languages:["ru"],...e.data})),landingInfo:async e=>S.get(`/v1/landings/${e}`).then(e=>e.data),eventsPrices:async(e,t)=>S.get("https://api.pbilet.net/public/v2/events_prices",{params:{event_source_id_in:e.join(","),currency_code:t,source_id:2}}).then(e=>e.data).catch(()=>[]),datesPrices:async(e,t)=>S.get("/v2/dates_prices",{params:{event_source_id:e,currency:t,source_id:2}}).then(e=>e.data).catch(()=>[])}},54299:function(e,t,n){"use strict";n.d(t,{ie:function(){return c},GM:function(){return r},Up:function(){return p},cC:function(){return l},Bm:function(){return s},F9:function(){return u}});var r={};n.r(r),n.d(r,{basketTotal:function(){return g},getTicketsCount:function(){return f}});var o=n(73134);var a={ADD_TICKET:"ADD_TICKET",UPDATE_TICKET:"UPDATE_TICKET",DELETE_TICKET:"DELETE_TICKET",DELETE_EVENT:"DELETE_EVENT"};const i="/api/basket",s=async()=>await o.A.get(i).then(e=>e.data).catch(()=>({created:void 0,tickets:[]})),c=async e=>await o.A.post(i,{ticket:e,type:a.ADD_TICKET,referral_location:window.location.href}).then(e=>e.data),u=async e=>await o.A.post(i,{ticket:e,type:a.UPDATE_TICKET}).then(e=>e.data),l=async e=>await o.A.post(i,{ticket:e,type:a.DELETE_TICKET}).then(e=>e.data),p=async()=>await o.A.delete("/api/basket").then(e=>e.data),d=e=>e.reduce((e,t)=>
2{var n;const r=(null===(n=t.extra)||void 0===n?void 0:n.netto_price)||t.price_per_ticket||t.price;return e.price+=r*t.count,e.count+=t.count,e.selectedTickets.push({id:t.id,count:t.count}),t.extra&&t.extra.service_fee&&(e.service_fee+=t.extra.service_fee*t.count),e},{price:0,count:0,service_fee:0,selectedTickets:[]}),f=e=>d(e).count,g=e=>{const t=d(e),n=Math.round(100*t.price)/100,r=Math.round(100*t.service_fee)/100,o=Math.round(100*(n+r))/100;return{...t,price:n,service_fee:r,totalPrice:o}}},73134:function(e,t,n){"use strict";const r=n(32024).A.create({...{}.GATSBY_BASKET_API_URL&&{baseURL:{}.GATSBY_BASKET_API_URL,withCredentials:!0},responseType:"json"}),o=e=>{let{ctx:t,params:n,headers:r,...o}=e;return{headers:r,params:n,...o}},a={get:function(e,t){void 0===t&&(t={});const n=o(t);return r.get(e,n)},post:function(e,t,n){void 0===n&&(n={});const a=o(n);return r.post(e,t,a)},delete:function(e,t){void 0===t&&(t={});const n=o(t);return r.delete(e,n)}};t.A=a},42978:function(e,t,n){"use strict";var r=n(96540),o=n(83292),a=n(86451),i=n(54299);const s={created:void 0,state:{isProcessingOrder:!1,isLoading:!0},tickets:[],referral_location:void 0},c=r.createContext(s);t.Ay=c,n.d(t,["S9",0,e=>a.A.emit(o.A.UPDATE_BASKET,e),"VH",0,e=>{let{children:t}=e;const{0:n,1:u}=(0,r.useState)(s),l=e=>u(t=>({...t,...e}));return(0,r.useEffect)(()=>((0,i.Bm)().then(e=>{u({...e,state:{isLoading:!1,isProcessingOrder:!1}})}),a.A.addListener(o.A.UPDATE_BASKET,l),()=>{a.A.removeListener(o.A.UPDATE_BASKET,l)}),[]),r.createElement(c.Provider,{value:n},t)}])},56881:function(e,t,n){"use strict";n.d(t,{Ay:function(){return _e}});var r=n(82284),o=n(23029),a=n(92901),i=n(9417),s=n(85501),c=n(56822),u=n(53954),l=n(64467),p=n(96369),d=n(73893),f=n(27800),g=n(76562);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},y=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.A)(this,e),this.init(t,n)}return(0,a.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,h(h({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),T=new y,S=function(){function e(){(0,o.A)(this,e),this.observers={}}return(0,a.A)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];
2this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)});this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function E(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function b(e){return null==e?"":""+e}function v(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(o())return{};var i=r(a.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function I(e,t,n){var r=v(e,t,Object);r.obj[r.k]=n}function A(e,t){var n=v(e,t),r=n.obj,o=n.k;if(r)return r[o]}function R(e,t,n){var r=A(e,n);return void 0!==r?r:A(t,n)}function N(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):N(e[r],t[r],n):e[r]=t[r]);return e}function O(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var P={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function w(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return P[e]}):e}var C="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,U=[" ",",","?","!",";"];function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=(0,u.A)(e);if(t){var o=(0,u.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.A)(this,n)}}function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,a=0;a<r.length;++a){if(!o)return;if("string"==typeof o[r[a]]&&a+1<r.length)return;if(void 0===o[r[a]]){for(var i=2,s=r.slice(a,a+i).join(n),c=o[s];void 0===c&&r.length>a+i;)i++,c=o[s=r.slice(a,a+i).join(n)];if(void 0===c)return;if(null===c)return null;if(t.endsWith(s)){if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s]}var u=r.slice(a+i).join(n);return u?x(c,u,n):void 0}o=o[r[a]]}return o}}var B=function(e){(0,s.A)(n,e);var t=M(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,o.A)(this,n),r=t.call(this),C&&S.call((0,i.A)(r)),r.data=e||{},r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return(0,a.A)(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[e,t];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.
2indexOf(".")>-1&&(i=e.split("."));var s=A(this.data,i);return s||!a||"string"!=typeof n?s:x(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=t,t=(i=e.split("."))[1]),this.addNamespaces(t),I(this.data,i,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(i=e.split("."))[1]),this.addNamespaces(t);var s=A(this.data,i)||{};r?N(s,n,o):s=k(k({},s),n),I(this.data,i,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?k(k({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(S),D={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var a=this;return e.forEach(function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,o))}),t}};function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=(0,u.A)(e);if(t){var o=(0,u.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.A)(this,n)}}var H={},W=function(e){(0,s.A)(n,e);var t=G(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.A)(this,n),r=t.call(this),C&&S.call((0,i.A)(r)),function(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,(0,i.A)(r)),r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=T.create("translator"),r}return(0,a.A)(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=U.filter(function(e){return t.indexOf(e)<0&&n.indexOf(e)<0});if(0===r.length)return!0;var o=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),a=!o.test(e);if(!a){var i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a}(e,n,r));if(a&&!i){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var c=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),e=c.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,o){var a=this;if("object"!==(0,r.A)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],t),u=c.key,l=c.namespaces,p=l[l.length-1],d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var g=t.nsSeparator||this.options.nsSeparator;return i?(m.res="".concat(p).concat(g).concat(u),m):"".concat(p).concat(g).concat(u)}return i?(m.res=u,m):u}var m=this.resolve(e,t),h=m&&m.res,_=m&&m.usedKey||u,y=m&&m.exactUsedKey||u,T=Object.prototype.toString.apply(h),S=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject;if(E&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(T)<0&&("string"!=typeof S||"[object Array]"!==T)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,h,F(F({},t),{},{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return i?(m.res=b,m):b}if(s){var v="[object Array]"===T,I=v?[]:{},A=v?y:_;for(var R in h)if(Object.prototype.hasOwnProperty.call(h,R)){var N="".concat(A).concat(s).concat(R);I[R]=this.translate(N,F(F({},t),{joinArrays:!1,ns:l})),I[R]===N&&(I[R]=h[R])}h=I}}else if(E&&"string"==typeof S&&"[object Array]"===T)(h=h.join(S))&&(h=this.extendTranslation(h,e,t,o));else{var O=!1,P=!1,w=void 0!==t.count&&"string"!=typeof t.count,C=n.hasDefaultValue(t),U=w?this.pluralResolver.getSuffix(d,t.count,t):"",L=t["defaultValue".concat(U)]||t.defaultValue;!this.isValidLookup(h)&&C&&(O=!0,h=L),this.isValidLookup(h)||(P=!0,h=u);var k=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&P?void 0:h,M=C&&L!==h&&this.options.updateMissing;if(P||O||M){if(this.logger.log(M?"updateKey":"missingKey",d,p,u,M?L:h),s){var x=this.resolve(u,F(F({},t),{},{keySeparator:!1}));x&&x.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&D&&D[0])for(var j=0;j<D.length;j++)B.push(D[j]);else"all"===this.options.saveMissingTo?B=this.languageUtils.toResolveHierarchy(t.lng||this.language):B.push(t.lng||this.language);var G=function(e,n,r){var o=C&&r!==h?r:k;a.options.missingKeyHandler?a.options.missingKeyHandler(e,p,n,o,M,t):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,p,n,o,M,t),a.emit("missingKey",e,p,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?B.forEach(function(e){a.pluralResolver.getSuffixes(e,t).forEach(function(n){G([e],u+n,t["defaultValue".concat(n)]||L)})}):G(B,u,L))}h=this.extendTranslation(h,e,t,m,o),P&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(p,":").concat(u)),(P||O)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(u):u,O?h:void 0):this.options.parseMissingKeyHandler(h)
vendor: 14,960 bytes, line 2
2)}return i?(m.res=h,m):h}},{key:"extendTranslation",value:function(e,t,n,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,F(F({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(F(F({},n),{interpolation:F(F({},this.options.interpolation),n.interpolation)}));var i,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var c=e.match(this.interpolator.nestingRegexp);i=c&&c.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=F(F({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);i<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,d="string"==typeof p?[p]:p;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=D.handle(d,e,t,this.options&&this.options.postProcessPassResolved?F({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,a,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!i.isValidLookup(t)){var c=i.extractFromKey(e,s),u=c.key;n=u;var l=c.namespaces;i.options.fallbackNS&&(l=l.concat(i.options.fallbackNS));var p=void 0!==s.count&&"string"!=typeof s.count,d=p&&!s.ordinal&&0===s.count&&i.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,g=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);l.forEach(function(e){i.isValidLookup(t)||(a=e,!H["".concat(g[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(a)&&(H["".concat(g[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(g.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(function(n){if(!i.isValidLookup(t)){o=n;var a,c=[u];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(c,u,n,e,s);else{var l;p&&(l=i.pluralResolver.getSuffix(n,s.count,s));var g="".concat(i.options.pluralSeparator,"zero");if(p&&(c.push(u+l),d&&c.push(u+g)),f){var m="".concat(u).concat(i.options.contextSeparator).concat(s.context);c.push(m),p&&(c.push(m+l),d&&c.push(m+g))}}for(;a=c.pop();)i.isValidLookup(t)||(r=a,t=i.getResource(n,e,a,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:a}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),n}(S);function $(e){return e.charAt(0).toUpperCase()+e.slice(1)}var q=function(){function e(t){(0,o.A)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=T.create("languageUtils")}return(0,a.A)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=$(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=$(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=$(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],a=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),r.forEach(function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))}),o}}]),e}(),V=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],z={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Y=["v1","v2","v3"],K={zero:0,one:1,two:2,few:3,many:4,other:5};var J=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.A)(this,e),this.languageUtils=t,this.options=r,this.logger=T.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},V.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:z[e.fc]}})}),n)}return(0,a.A)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return K[e]-K[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Y.includes(this.options.compatibilityJSON)}}]),e}();function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.A)(this,e),this.logger=T.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,a.A)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:w,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?O(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?O(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?O(t.nestingPrefix):t.nestingPrefixEscaped||O("$t("),this.nestingSuffix=t.nestingSuffix?O(t.nestingSuffix):t.nestingSuffixEscaped||O(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,a,i,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var o=R(t,c,e);
2return s.alwaysFormat?s.format(o,void 0,n,Q(Q(Q({},r),t),{},{interpolationkey:e})):o}var a=e.split(s.formatSeparator),i=a.shift().trim(),u=a.join(s.formatSeparator).trim();return s.format(R(t,c,i),u,n,Q(Q(Q({},r),t),{},{interpolationkey:i}))};this.resetRegExp();var p=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach(function(t){for(i=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(a=l(n)))if("function"==typeof p){var c=p(e,o,r);a="string"==typeof c?c:""}else if(r&&r.hasOwnProperty(n))a="";else{if(d){a=o[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=b(a));var u=t.safeValue(a);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++i>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,o,a=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),a="{".concat(r[1]);e=r[0];var i=(a=this.interpolate(a,o)).match(/'/g),s=a.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(a=a.replace(/'/g,'"'));try{o=JSON.parse(a),t&&(o=Q(Q({},t),o))}catch(c){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),c),"".concat(e).concat(n).concat(a)}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var c=[];(o=(o=Q({},i)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=l.shift(),c=l,u=!0}if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=b(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=c.reduce(function(e,t){return a.format(e,t,i.lng,Q(Q({},i),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ne(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if("currency"===t&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if("relativetime"===t&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{o.split(";").forEach(function(e){if(e){var t,r=e.split(":"),o=(t=r,(0,p.A)(t)||(0,d.A)(t)||(0,f.A)(t)||(0,g.A)()),a=o[0],i=o.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=i),"false"===i&&(n[a.trim()]=!1),"true"===i&&(n[a.trim()]=!0),isNaN(i)||(n[a.trim()]=parseInt(i,10))}})}}return{formatName:t,formatOptions:n}}function re(e){var t={};return function(n,r,o){var a=r+JSON.stringify(o),i=t[a];return i||(i=e(r,o),t[a]=i),i(n)}}var oe=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.A)(this,e),this.logger=T.create("formatter"),this.options=t,this.formats={number:re(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:re(function(e,t){var n=new Intl.NumberFormat(e,te(te({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:re(function(e,t){var n=new Intl.DateTimeFormat(e,te({},t));return function(e){return n.format(e)}}),relativetime:re(function(e,t){var n=new Intl.RelativeTimeFormat(e,te({},t));return function(e){return n.format(e,t.range||"day")}}),list:re(function(e,t){var n=new Intl.ListFormat(e,te({},t));return function(e){return n.format(e)}})},this.init(t)}return(0,a.A)(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=re(t)}},{key:"format",value:function(e,t,n,r){var o=this;return t.split(this.formatSeparator).reduce(function(e,t){var a=ne(t),i=a.formatName,s=a.formatOptions;if(o.formats[i]){var c=e;try{var u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=u.locale||u.lng||r.locale||r.lng||n;c=o.formats[i](e,l,te(te(te({},s),r),u))}catch(p){o.logger.warn(p)}return c}return o.logger.warn("there was no format function for ".concat(i)),e},e)}}]),e}();function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ae(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=(0,u.A)(e);if(t){var o=(0,u.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.A)(this,n)}}var ce=function(e){(0,s.A)(n,e);var t=se(n);function n(e,r,a){var s,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,o.A)(this,n),s=t.call(this),C&&S.call((0,i.A)(s)),s.backend=e,s.store=r,s.services=a,s.languageUtils=a.languageUtils,s.options=c,s.logger=T.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=c.maxParallelReads||10,s.readingCalls=0,s.maxRetries=c.maxRetries>=0?c.maxRetries:5,s.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(a,c.backend,c),s}return(0,a.A)(n,[{key:"queueLoad",value:function(e,t,n,r){var o=this,a={},i={},s={},c={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===i[s]&&(i[s]=!0):(o.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===c[t]&&(c[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],a=r[1];t&&this.emit("failedLoading",o,a,t),n&&this.store.addResourceBundle(o,a,n),this.state[e]=t?-1:2;var i={};this.queue.forEach(function(n){var r,s,c,u,l,p;r=n.loaded,s=a,u=v(r,[o],Object),l=u.obj,p=u.k,l[p]=l[p]||[],c&&(l[p]=l[p].concat(s)),c||l[p].push(s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){i[e]||(i[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===i[e][t]&&(i[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:a,callback:i});else{this.readingCalls++;var s=function(s,c){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&c&&o<r.maxRetries?setTimeout(function(){r.read.call(r,e,t,n,o+1,2*a,i)},a):i(s,c)},c=this.backend[n].bind(this.backend);if(2!==c.length)return c(e,t,s);try{var u=c(e,t);u&&"function"==typeof u.then?u.then(function(e){return s(null,e)}).catch(s):s(null,u)}catch(l){s(l)}}}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var a=this.queueLoad(e,t,r,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],a=r[1];this.read(o,a,"read",void 0,void 0,function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),t.loaded(e,r,i)})}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var s=ie(ie({},a),{},{isUpdate:o}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var u;
2(u=5===c.length?c(e,t,n,r,s):c(e,t,n,r))&&"function"==typeof u.then?u.then(function(e){return i(null,e)}).catch(i):i(null,u)}catch(l){i(l)}else c(e,t,n,r,i,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),n}(S);function ue(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,r.A)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,r.A)(e[2])||"object"===(0,r.A)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function le(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=(0,u.A)(e);if(t){var o=(0,u.A)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.A)(this,n)}}function ge(){}var me=function(e){(0,s.A)(n,e);var t=fe(n);function n(){var e,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if((0,o.A)(this,n),e=t.call(this),C&&S.call((0,i.A)(e)),e.options=le(a),e.services={},e.logger=T,e.modules={external:[]},r=(0,i.A)(e),Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(function(e){"function"==typeof r[e]&&(r[e]=r[e].bind(r))}),s&&!e.isInitialized&&!a.isClone){if(!e.options.initImmediate)return e.init(a,s),(0,c.A)(e,(0,i.A)(e));setTimeout(function(){e.init(a,s)},0)}return e}return(0,a.A)(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=ue();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=de(de(de({},r),this.options),le(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=de(de({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var a;this.modules.logger?T.init(o(this.modules.logger),this.options):T.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=oe);var i=new q(this.options);this.store=new B(this.options.resources,this.options);var s=this.services;s.logger=T,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new J(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=o(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Z(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ce(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new W(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=ge),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var u=E(),l=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};if(r)a(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)});
2this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=E();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ge),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&D.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=E();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(a){e||a||!n.services.languageDetector||(a=[]);var i="string"==typeof a?a:n.services.languageUtils.getBestMatchFromCodes(a);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(e){!function(e,a){a?(o(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})}(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var o=this,a=function e(t,a){var i;if("object"!==(0,r.A)(a)){for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];i=o.options.overloadTranslationOptionHandler([t,a].concat(c))}else i=de({},a);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var l,p=o.options.keySeparator||".";return l=i.keyPrefix&&Array.isArray(t)?t.map(function(e){return"".concat(i.keyPrefix).concat(p).concat(e)}):i.keyPrefix?"".concat(i.keyPrefix).concat(p).concat(t):t,o.t(l,i)};return"string"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(r,e)||o&&!i(a,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=E();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=E();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter(function(e){return r.indexOf(e)<0});return o.length?(this.options.preload=r.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new q(ue());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge,o=de(de(de({},this.options),t),{isClone:!0}),a=new n(o);void 0===t.debug&&void 0===t.prefix||(a.logger=a.logger.clone(t));return["store","services","language"].forEach(function(t){a[t]=e[t]}),a.services=de({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new W(a.services,a.options),a.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))}),a.init(o,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(S);(0,l.A)(me,"createInstance",function(){return new me(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var he=me.createInstance();he.createInstance=me.createInstance;he.createInstance,he.dir,he.init,he.loadResources,he.reloadResources,he.use,he.changeLanguage,he.getFixedT,he.t,he.exists,he.setDefaultNamespace,he.hasLoadedNamespace,he.loadNamespaces,he.loadLanguages;var _e=he},40125:function(e,t,n){"use strict";const r=n(96540).createContext({language:"ru",languages:["ru","en","de","fr","es"],routed:!1,defaultLanguage:"ru",generateDefaultLanguagePage:!1,originalPath:"/",path:"/"});n.d(t,["X",0,r])},34183:function(e,t,n){"use strict";var r=n(96540),o=n(83292),a=n(86451),i=n(65390);const s=r.createContext({});t.Ay=s,n.d(t,["RR",0,e=>{let{children:t}=e;const{0:n,1:c}=(0,r.useState)({}),u=async e=>{e.eventsIds.length>0&&await i.A.eventsPrices(e.eventsIds,e.currency).then(e=>{if(null!=e&&e.length){const t=e.reduce((e,t)=>(e[t.id]=t,e),{});c(e=>({...e,...t}))}})};return(0,r.useLayoutEffect)(()=>(a.A.addListener(o.A.UPDATE_PRICES,u),()=>{a.A.removeListener(o.A.UPDATE_PRICES,u)}),[]),r.createElement(s.Provider,{value:n},t)},"XF",0,e=>{let{currency:t,events:n}=e;const r={currency:null==t?void 0:t.code,eventsIds:[]};
2return n.forEach(e=>{e.event_source_id&&r.eventsIds.push(e.event_source_id)}),r},"r3",0,e=>a.A.emit(o.A.UPDATE_PRICES,e)])},85541:function(e,t,n){"use strict";var r=n(96540);const o=(0,r.createContext)({});n.d(t,["a",0,e=>{let{children:t,location:n}=e;return r.createElement(o.Provider,{value:n},t)},"z",0,o])},64651:function(e,t,n){"use strict";n.d(t,["z",0,e=>{const t=window.CHAT_WIDGET;if(t){const n="umnico_override_styles",r=t.getElementById(n)||document.createElement("style");r.id=n,r.innerHTML=`\n .widget-umnico-logo { display: none!important; }\n .widget__preview-block {\n right: 5px!important; bottom: 75px!important; z-index: ${e?"0":"999"}!important;\n @media screen and (min-width: 992px) {right: 18px!important; bottom: 100px!important; }\n }\n `,t.appendChild(r)}}])},86451:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var r=new(n(30228))},70984:function(e,t,n){"use strict";n.r(t),n.d(t,{wrapPageElement:function(){return v}});var r=n(83673),o=n.n(r),a=n(71858),i=n(70551);var s=n(96540),c=n(32389),u=n(70385),l=n(56881),p=n(40125),d=n(76341),f=n(42978),g=n(90510),m=n(34183),h=n(9072),_=n(25016),y=n(43276),T=n(35764),S=n(85541),E=n(64651);var b=e=>{let{element:t,props:n}=e;if(!n)return;const{pageContext:r,location:b}=n,{i18nextOptions:v={},generateDefaultLanguagePage:I=!1,siteUrl:A,theme:R,i18n:N={}}=r,{routed:O,language:P,languages:w,originalPath:C,defaultLanguage:U,path:L,initialI18nStore:k}=N;if("undefined"!=typeof window){window.dataLayer=window.dataLayer||[];const e=y.A.parse(window.location.search);e.utm_source&&(0,_.sX)(e),void 0!==R&&(R.currency=(0,g.OY)({theme:R}));const t=setInterval(()=>{window.CHAT_WIDGET&&(clearInterval(t),(0,E.z)())},200)}const M="common",x=["common","pages","forms"].filter(e=>e!==M);l.Ay.init({...v,resources:k,lng:P,fallbackLng:U,defaultNS:M,fallbackNS:x,react:{...v.react,useSuspense:!1}}),l.Ay.language!==P&&l.Ay.changeLanguage(P),function(e){(0,i.A)(1,arguments);var t={},n=(0,a.q)();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(void 0===e[o]?delete t[o]:t[o]=e[o]);(0,a.E)(t)}({locale:u.I[l.Ay.language||"ru"]});const B={routed:O,language:P,languages:w,originalPath:C,defaultLanguage:U,generateDefaultLanguagePage:I,siteUrl:A,path:L};return((e,t,n,r)=>a=>s.createElement(c.xC,{i18n:e},s.createElement(p.X.Provider,{value:t},s.createElement(S.a,{location:r},s.createElement(f.VH,null,s.createElement(m.RR,null,s.createElement(h.N9,null),s.createElement("div",{id:"recaptcha"}),s.createElement(d.NP,{theme:n},a),((null==n?void 0:n.ya_metric_id)||r.pathname.includes("/events/"))&&s.createElement(T.TD,{accounts:o()([n.ya_metric_id,r.pathname.includes("/events/")&&Number("5.5585e+07")]),options:{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:n.ya_metric_webvisor,...n.ya_metric_ecommerce&&{ecommerce:"dataLayer"}},version:"2"}),n.umnico_widget_hash&&s.createElement("script",{dangerouslySetInnerHTML:{__html:` document.umnicoWidgetHash = '${n.umnico_widget_hash}';\n var x = document.createElement('script');\n x.src = 'https://umnico.com/assets/widget-loader.js';\n x.type = 'text/javascript';\n x.charset = 'UTF-8';\n x.async = true;\n document.body.appendChild(x);\n`}})))))))(l.Ay,B,R,b)(t)};const v=b},15898:function(e,t,n){"use strict";var r=n(31106);const o="ROUTE_TO",a=(0,r.makeMultiplexedTransport)(r.makeFetchTransport,e=>{const t=e.getEvent();return t&&t.extra&&o in t.extra&&Array.isArray(t.extra[o])?t.extra[o]:[]});r.initSentry({dsn:"https://[email protected]/14",environment:"production",release:{}.VERSION||"81baaaad",additionalOptions:{tracesSampleRate:.1,sendDefaultPii:!0,integrations:[(0,r.moduleMetadataIntegration)()],transport:a,beforeSend:e=>{var t,n,r;const a=null==e||null===(t=e.exception)||void 0===t||null===(n=t.values)||void 0===n?void 0:n[0];if(["Unexpected token '?'","app.daily-grow.com","Loading CSS chunk","The string did not match the expected pattern.","is not a valid XPath expression","The result is not a node set","Not rendering React"].some(e=>{var t;return null==a||null===(t=a.value)||void 0===t?void 0:t.includes(e)}))return null;if(null!=a&&null!==(r=a.stacktrace)&&void 0!==r&&r.frames){const t=a.stacktrace.frames.filter(e=>e.module_metadata&&e.module_metadata.dsn).map(e=>e.module_metadata).slice(-1);t.length&&(e.extra={...e.extra,[o]:t})}return e}}})},4233:function(e){"use strict";const t=function*(){}.constructor;e.exports=()=>t},70453:function(e,t,n){"use strict";var r,o=n(79612),a=n(69383),i=n(41237),s=n(79290),c=n(79538),u=n(58068),l=n(69675),p=n(35345),d=n(71514),f=n(58968),g=n(6188),m=n(68002),h=n(75880),_=n(70414),y=n(73093),T=n(75795),S=n(30655),E=function(){throw new l},b=T?function(){try{return E}catch(e){try{return T(arguments,"callee").get}catch(t){return E}}}():E,v=n(64039)(),I=n(93628),A=n(71064),R=n(48648),N=n(11002),O=n(10076),P={},w="undefined"!=typeof Uint8Array&&I?I(Uint8Array):r,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":v&&I?I([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?r:Atom
vendor: 16,384 bytes, line 2
2ics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":Function,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&I?I(I([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&v&&I?I((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":T,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&v&&I?I((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&I?I(""[Symbol.iterator]()):r,"%Symbol%":v?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":b,"%TypedArray%":w,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":N,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":A,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":_,"%Math.sign%":y,"%Reflect.getPrototypeOf%":R};if(I)try{null.error}catch(Y){var U=I(I(Y));C["%Error.prototype%"]=U}var L=n(18147).c,k=n(69294).c,M=n(19215).c,x=function e(t){var n;if("%AsyncFunction%"===t)n=L()||void 0;else if("%GeneratorFunction%"===t)n=k()||void 0;else if("%AsyncGeneratorFunction%"===t)n=M()||void 0;else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&I&&(n=I(o.prototype))}return C[t]=n,n},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=n(66743),j=n(9957),F=D.call(O,Array.prototype.concat),G=D.call(N,Array.prototype.splice),H=D.call(O,String.prototype.replace),W=D.call(O,String.prototype.slice),$=D.call(O,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,z=function(e,t){var n,r=e;if(j(B,r)&&(r="%"+(n=B[r])[0]+"%"),j(C,r)){var o=C[r];if(o===P&&(o=x(r)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=W(e,0,1),n=W(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return H(e,q,function(e,t,n,o){r[r.length]=n?H(o,V,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=z("%"+r+"%",t),a=o.name,i=o.value,s=!1,c=o.alias;c&&(r=c[0],G(n,F([0,1],c)));for(var p=1,d=!0;p<n.length;p+=1){var f=n[p],g=W(f,0,1),m=W(f,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==f&&d||(s=!0),j(C,a="%"+(r+="."+f)+"%"))i=C[a];else if(null!=i){if(!(f in i)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(T&&p+1>=n.length){var h=T(i,f);i=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:i[f]}else d=j(i,f),i=i[f];d&&!s&&(C[a]=i)}}return i}},71064:function(e,t,n){"use strict";var r=n(79612);e.exports=r.getPrototypeOf||null},48648:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},93628:function(e,t,n){"use strict";var r=n(48648),o=n(71064),a=n(7176);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:a?function(e){return a(e)}:null},6549:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},75795:function(e,t,n){"use strict";var r=n(6549);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},64039:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(41333);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},41333:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},9957:function(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(66743);e.exports=a.call(r,o)},4146:function(e,t,n){"use strict";var r=n(73404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var u=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(g){var o=f(n);o&&o!==g&&e(t,o,r)}var i=l(n);p&&(i=i.concat(p(n)));for(var s=c(t),m=c(n),h=0;h<i.length;++h){var _=i[h];if(!(a[_]||r&&r[_]||m&&m[_]||s&&s[_])){var y=d(n,_);try{u(t,_,y)}catch(T){}}}}return t}},3072:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,T=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case p:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case h:case m:case c:return e;default:return t}}case o:return t}}}function b(e){return E(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=h,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return b(e)||E(e)===l},t.isConcurrentMode=b,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===i||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===T||e.$$typeof===S||e.$$typeof===_)},t.typeOf=E},73404:function(e,t,n){"use strict";e.exports=n(3072)},20311:function(e){"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],l=0;(c=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},51111:function(e){"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},55580:function(e,t,n){var r=n(56110)(n(9325),"DataView");e.exports=r},21549:function(e,t,n){var r=n(22032),o=n(63862),a=n(66721),i=n(12749),s=n(35749);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=s,e.exports=c},80079:function(e,t,n){var r=n(63702),o=n(70080),a=n(24739),i=n(48655),s=n(31175);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=s,e.exports=c},68223:function(e,t,n){var r=n(56110)(n(9325),"Map");e.exports=r},53661:function(e,t,n){var r=n(63040),o=n(17670),a=n(90289),i=n(4509),s=n(72949);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=s,e.exports=c},32804:function(e,t,n){var r=n(56110)(n(9325),"Promise");e.exports=r},76545:function(e,t,n){var r=n(56110)(n(9325),"Set");e.exports=r},38859:function(e,t,n){var r=n(53661),o=n(31380),a=n(51459);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},37217:function(e,t,n){var r=n(80079),o=n(51420),a=n(90938),i=n(63605),s=n(29817),c=n(80945);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=a,u.prototype.get=i,u.prototype.has=s,u.prototype.set=c,e.exports=u},51873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},37828:function(e,t,n){var r=n(9325).Uint8Array;e.exports=r},28303:function(e,t,n){var r=n(56110)(n(9325),"WeakMap");e.exports=r},79770:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},70695:function(e,t,n){var r=n(78096),o=n(72428),a=n(56449),i=n(3656),s=n(30361),c=n(37167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),l=!n&&o(e),p=!n&&!l&&i(e),d=!n&&!l&&!p&&c(e),f=n||l||p||d,g=f?r(e.length,String):[],m=g.length;for(var h in e)!t&&!u.call(e,h)||f&&("length"==h||p&&("offset"==h||"parent"==h)||d&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,m))||g.push(h);return g}},34932:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},14528:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},14248:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}
vendor: 1,561 bytes, line 2
2,26025:function(e,t,n){var r=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2523:function(e){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},47422:function(e,t,n){var r=n(31769),o=n(77797);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},82199:function(e,t,n){var r=n(14528),o=n(56449);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},72552:function(e,t,n){var r=n(51873),o=n(659),a=n(59350),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},28077:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},27534:function(e,t,n){var r=n(72552),o=n(40346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},60270:function(e,t,n){var r=n(87068),o=n(40346);e.exports=function e(t,n,a,i,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,s))}},87068:function(e,t,n){var r=n(37217),o=n(25911),a=n(21986),i=n(50689),s=n(5861),c=n(56449),u=n(3656),l=n(37167),p="[object Arguments]",d="[object Array]",f="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,h,_){var y=c(e),T=c(t),S=y?d:s(e),E=T?d:s(t),b=(S=S==p?f:S)==f,v=(E=E==p?f:E)==f,I=S==E;if(I&&u(e)){if(!u(t))return!1;y=!0,b=!1}if(I&&!b)return _||(_=new r),y||l(e)?o(e,t,n,m,h,_):a(e,t,S,n,m,h,_);if(!(1&n)){var A=b&&g.call(e,"__wrapped__"),R=v&&g.call(t,"__wrapped__");
vendor: 9,075 bytes, line 2
2if(A||R){var N=A?e.value():e,O=R?t.value():t;return _||(_=new r),h(N,O,n,m,_)}}return!!I&&(_||(_=new r),i(e,t,n,m,h,_))}},41799:function(e,t,n){var r=n(37217),o=n(60270);e.exports=function(e,t,n,a){var i=n.length,s=i,c=!a;if(null==e)return!s;for(e=Object(e);i--;){var u=n[i];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var l=(u=n[i])[0],p=e[l],d=u[1];if(c&&u[2]){if(void 0===p&&!(l in e))return!1}else{var f=new r;if(a)var g=a(p,d,l,e,t,f);if(!(void 0===g?o(d,p,3,a,f):g))return!1}}return!0}},45083:function(e,t,n){var r=n(1882),o=n(87296),a=n(23805),i=n(69854),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,d=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?d:s).test(i(e))}},4901:function(e,t,n){var r=n(72552),o=n(30294),a=n(40346),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},15389:function(e,t,n){var r=n(93663),o=n(87978),a=n(83488),i=n(56449),s=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):s(e)}},88984:function(e,t,n){var r=n(55527),o=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},93663:function(e,t,n){var r=n(41799),o=n(10776),a=n(67197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},87978:function(e,t,n){var r=n(60270),o=n(58156),a=n(80631),i=n(28586),s=n(30756),c=n(67197),u=n(77797);e.exports=function(e,t){return i(e)&&s(t)?c(u(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},47237:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},17255:function(e,t,n){var r=n(47422);e.exports=function(e){return function(t){return r(t,e)}}},78096:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},77556:function(e,t,n){var r=n(51873),o=n(34932),a=n(56449),i=n(44394),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128:function(e,t,n){var r=n(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},27301:function(e){e.exports=function(e){return function(t){return e(t)}}},19219:function(e){e.exports=function(e,t){return e.has(t)}},31769:function(e,t,n){var r=n(56449),o=n(28586),a=n(61802),i=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},55481:function(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},62006:function(e,t,n){var r=n(15389),o=n(64894),a=n(95950);e.exports=function(e){return function(t,n,i){var s=Object(t);if(!o(t)){var c=r(n,3);t=a(t),n=function(e){return c(s[e],e,s)}}var u=e(t,n,i);return u>-1?s[c?t[u]:u]:void 0}}},25911:function(e,t,n){var r=n(38859),o=n(14248),a=n(19219);e.exports=function(e,t,n,i,s,c){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var d=c.get(e),f=c.get(t);if(d&&f)return d==t&&f==e;var g=-1,m=!0,h=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++g<l;){var _=e[g],y=t[g];if(i)var T=u?i(y,_,g,t,e,c):i(_,y,g,e,t,c);if(void 0!==T){if(T)continue;m=!1;break}if(h){if(!o(t,function(e,t){if(!a(h,t)&&(_===e||s(_,e,n,i,c)))return h.push(t)})){m=!1;break}}else if(_!==y&&!s(_,y,n,i,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},21986:function(e,t,n){var r=n(51873),o=n(37828),a=n(75288),i=n(25911),s=n(20317),c=n(84247),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var g=1&r;if(f||(f=c),e.size!=t.size&&!g)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var h=i(f(e),f(t),r,u,p,d);return d.delete(e),h;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},50689:function(e,t,n){var r=n(50002),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,s){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var d=u[p];if(!(c?d in t:o.call(t,d)))return!1}var f=s.get(e),g=s.get(t);if(f&&g)return f==t&&g==e;var m=!0;s.set(e,t),s.set(t,e);for(var h=c;++p<l;){var _=e[d=u[p]],y=t[d];if(a)var T=c?a(y,_,d,t,e,s):a(_,y,d,e,t,s);if(!(void 0===T?_===y||i(_,y,n,a,s):T)){m=!1;break}h||(h="constructor"==d)}if(m&&!h){var S=e.constructor,E=t.constructor;S==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof E&&E instanceof E||(m=!1)}return s.delete(e),s.delete(t),m}},34840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},50002:function(e,t,n){var r=n(82199),o=n(4664),a=n(95950);e.exports=function(e){return r(e,a,o)}},12651:function(e,t,n){var r=n(74218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10776:function(e,t,n){var r=n(30756),o=n(95950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},56110:function(e,t,n){var r=n(45083),o=n(10392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:function(e,t,n){var r=n(51873),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(c){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664:function(e,t,n){var r=n(79770),o=n(63345),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),function(t){return a.call(e,t)}))}:o;e.exports=s},5861:function(e,t,n){var r=n(55580),o=n(68223),a=n(32804),i=n(76545),s=n(28303),c=n(72552),u=n(69854),l="[object Map]",p="[object Promise]",d="[object Set]",f="[object WeakMap]",g="[object DataView]",m=u(r),h=u(o),_=u(a),y=u(i),T=u(s),S=c;(r&&S(new r(new ArrayBuffer(1)))!=g||o&&S(new o)!=l||a&&S(a.resolve())!=p||i&&S(new i)!=d||s&&S(new s)!=f)&&(S=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return g;case h:return l;case _:return p;case y:return d;case T:return f}return t}),e.exports=S},10392:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},49326:function(e,t,n){var r=n(31769),o=n(72428),a=n(56449),i=n(30361),s=n(30294),c=n(77797);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,p=!1;++u<l;){var d=c(t[u]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++u!=l?p:!!(l=null==e?0:e.length)&&s(l)&&i(d,l)&&(a(e)||o(e))}},22032:function(e,t,n){var r=n(81042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},63862:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721:function(e,t,n){var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},12749:function(e,t,n){var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},35749:function(e,t,n){var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},30361:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},28586:function(e,t,n){var r=n(56449),o=n(44394),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},74218:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},87296:function(e,t,n){var r,o=n(55481),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+r:"";e.exports=function(e){return!!a&&a in e}},55527:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},30756:function(e,t,n){var r=n(23805);e.exports=function(e){return e==e&&!r(e)}},63702:function(e){e.exports=function(){this.__data__=[],this.size=0}},70080:function(e,t,n){var r=n(26025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},24739:function(e,t,n){var r=n(26025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},48655:function(e,t,n){var r=n(26025);e.exports=function(e){return r(this.__data__,e)>-1}},31175:function(e,t,n){var r=n(26025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},63040:function(e,t,n){var r=n(21549),o=n(80079),a=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},17670:function(e,t,n){var r=n(12651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},90289:function(e,t,n){var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},4509:function(e,t,n){var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},72949:function(e,t,n){var r=n(12651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},20317:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},67197:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},62224:function(e,t,n){var r=n(50104);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},81042:function(e,t,n){var r=n(56110)(Object,"create");e.exports=r},3650:function(e,t,n){var r=n(74335)(Object.keys,Object);e.exports=r},86009:function(e,t,n){e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=s},59350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},9325:function(e,t,n){var r=n(34840),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},31380:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},51459:function(e){e.exports=function(e){return this.__data__.has(e)}},84247:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},51420:function(e,t,n){var r=n(80079);e.exports=function(){this.__data__=new r,this.size=0}},90938:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},63605:function(e){e.exports=function(e){return this.__data__.get(e)}},29817:function(e){e.exports=function(e){return this.__data__.has(e)}},80945:function(e,t,n){var r=n(80079),o=n(68223),a=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},61802:function(e,t,n){var r=n(62224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)}),t});e.exports=i},77797:function(e,t,n){var r=n(44394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},69854:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},31800:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},83673:function(e){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var a=e[t];a&&(o[r++]=a)}return o}},75288:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},7309:function(e,t,n){var r=n(62006)(n(24713));e.exports=r},24713:function(e,t,n){var r=n(2523),o=n(15389),a=n(61489),i=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=i(s+c,0)),r(e,o(t,3),c)}},58156:function(e,t,n){var r=n(47422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},80631:function(e,t,n){var r=n(28077),o=n(49326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},83488:function(e){e.exports=function(e){return e}},72428:function(e,t,n){var r=n(27534),o=n(40346),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},56449:function(e){var t=Array.isArray;e.exports=t},64894:function(e,t,n){var r=n(1882),o=n(30294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3656:function(e,t,n){e=n.nmd(e);var r=n(9325),o=n(89935),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},1882:function(e,t,n){var r=n(72552),o=n(23805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},23805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},44394:function(e,t,n){var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},37167:function(e,t,n){var r=n(4901),o=n(27301),a=n(86009),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},95950:function(e,t,n){var r=n(70695),o=n(88984),a=n(64894);e.exports=function(e){return a(e)?r(e):o(e)}},50104:function(e,t,n){var r=n(53661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},50583:function(e,t,n){var r=n(47237),o=n(17255),a=n(28586),i=n(77797);e.exports=function(e){return a(e)?r(i(e)):o(e)}},63345:function(e){e.exports=function(){return[]}},89935:function(e){e.exports=function(){return!1}},17400:function(e,t,n){var r=n(99374),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},61489:function(e,t,n){var r=n(17400);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},99374:function(e,t,n){var r=n(54128),o=n(23805),a=n(44394),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},13222:function(e,t,n){var r=n(77556);e.exports=function(e){return null==e?"":r(e)}},71514:function(e){"use strict";e.exports=Math.abs},58968:function(e){"use strict";e.exports=Math.floor},94459:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},6188:function(e){"use strict";e.exports=Math.max},68002:function(e){"use strict";e.exports=Math.min},75880:function(e){"use strict";e.exports=Math.pow},70414:function(e){"use strict";e.exports=Math.round},73093:function(e,t,n){"use strict";var r=n(94459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},71536:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};
2Object.defineProperty(t,"__esModule",{value:!0}),t.destroyCookie=t.setCookie=t.parseCookies=void 0;var o=n(57309),a=n(34635),i=n(16905);function s(e,t){var n,r;return(null===(r=null===(n=null==e?void 0:e.req)||void 0===n?void 0:n.headers)||void 0===r?void 0:r.cookie)?o.parse(e.req.headers.cookie,t):i.isBrowser()?o.parse(document.cookie,t):{}}function c(e,t,n,s){var c,u;if(void 0===s&&(s={}),(null===(c=null==e?void 0:e.res)||void 0===c?void 0:c.getHeader)&&e.res.setHeader){if(null===(u=null==e?void 0:e.res)||void 0===u?void 0:u.finished)return console.warn('Not setting "'+t+'" cookie. Response has finished.'),console.warn("You should set cookie before res.send()"),{};var l=e.res.getHeader("Set-Cookie")||[];"string"==typeof l&&(l=[l]),"number"==typeof l&&(l=[]);var p=a.parse(l,{decodeValues:!1}),d=i.createCookie(t,n,s),f=[];p.forEach(function(e){if(!i.areCookiesEqual(e,d)){var t=o.serialize(e.name,e.value,r({encode:function(e){return e}},e));f.push(t)}}),f.push(o.serialize(t,n,s)),e.res.setHeader("Set-Cookie",f)}if(i.isBrowser()){if(s&&s.httpOnly)throw new Error("Can not set a httpOnly cookie in the browser.");document.cookie=o.serialize(t,n,s)}return{}}function u(e,t,n){return c(e,t,"",r(r({},n||{}),{maxAge:-1}))}t.parseCookies=s,t.setCookie=c,t.destroyCookie=u,t.default={set:c,get:s,destroy:u}},16905:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};function r(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var a=n[o];if(e[a]!==t[a])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.areCookiesEqual=t.hasSameProperties=t.createCookie=t.isBrowser=void 0,t.isBrowser=function(){return"undefined"!=typeof window},t.createCookie=function(e,t,r){var o=r.sameSite;!0===o&&(o="strict"),void 0!==o&&!1!==o||(o="lax");var a=n(n({},r),{sameSite:o});return delete a.encode,n({name:e,value:t},a)},t.hasSameProperties=r,t.areCookiesEqual=function(e,t){var o=e.sameSite===t.sameSite;return"string"==typeof e.sameSite&&"string"==typeof t.sameSite&&(o=e.sameSite.toLowerCase()===t.sameSite.toLowerCase()),r(n(n({},e),{sameSite:void 0}),n(n({},t),{sameSite:void 0}))&&o}},57309:function(e,t){"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},o=t||{},i=e.split(";"),s=o.decode||n,c=0;c<i.length;c++){var u=i[c],l=u.indexOf("=");if(!(l<0)){var p=u.substring(0,l).trim();if(null==r[p]){var d=u.substring(l+1,u.length).trim();'"'===d[0]&&(d=d.slice(1,-1)),r[p]=a(d,s)}}}return r},t.serialize=function(e,t,n){var a=n||{},i=a.encode||r;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!o.test(e))throw new TypeError("argument name is invalid");var s=i(t);if(s&&!o.test(s))throw new TypeError("argument val is invalid");var c=e+"="+s;if(null!=a.maxAge){var u=a.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(a.domain){if(!o.test(a.domain))throw new TypeError("option domain is invalid");c+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw new TypeError("option path is invalid");c+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw new TypeError("option expires is invali
vendor: 7,907 bytes, line 2
2d");c+="; Expires="+a.expires.toUTCString()}a.httpOnly&&(c+="; HttpOnly");a.secure&&(c+="; Secure");if(a.sameSite){switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var n=decodeURIComponent,r=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(n){return e}}},58859:function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,_=String.prototype.match,y=String.prototype.slice,T=String.prototype.replace,S=String.prototype.toUpperCase,E=String.prototype.toLowerCase,b=RegExp.prototype.test,v=Array.prototype.concat,I=Array.prototype.join,A=Array.prototype.slice,R=Math.floor,N="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,w="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===w||"symbol")?Symbol.toStringTag:null,U=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function k(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-R(-e):R(e);if(r!==e){var o=String(r),a=y.call(t,o.length+1);return T.call(o,n,"$&_")+"."+T.call(T.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return T.call(t,n,"$&_")}var M=n(42634),x=M.custom,B=q(x)?x:null,D={__proto__:null,double:'"',single:"'"},j={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function F(e,t,n){var r=n.quoteStyle||t,o=D[r];return o+e+o}function G(e){return T.call(String(e),/"/g,""")}function H(e){return!C||!("object"==typeof e&&(C in e||void 0!==e[C]))}function W(e){return"[object Array]"===Y(e)&&H(e)}function $(e){return"[object RegExp]"===Y(e)&&H(e)}function q(e){if(w)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,o,s){var c=r||{};if(z(c,"quoteStyle")&&!z(D,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!z(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var S=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return J(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var b=String(t);return S?k(t,b):b}if("bigint"==typeof t){var R=String(t)+"n";return S?k(t,R):R}var O=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=O&&O>0&&"object"==typeof t)return W(t)?"[Array]":"[Object]";var x=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=I.call(Array(e.indent+1)," ")}return{base:n,prev:I.call(Array(t+1),n)}}(c,o);if(void 0===s)s=[];else if(K(s,t)>=0)return"[Circular]";function j(t,n,r){if(n&&(s=A.call(s)).push(n),r){var a={depth:c.depth};return z(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),e(t,a,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!$(t)){var V=function(e){if(e.name)return e.name;var t=_.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),X=ne(t,j);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(X.length>0?" { "+I.call(X,", ")+" }":"")}if(q(t)){var re=w?T.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||w?re:Q(re)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var oe="<"+E.call(String(t.nodeName)),ae=t.attributes||[],ie=0;ie<ae.length;ie++)oe+=" "+ae[ie].name+"="+F(G(ae[ie].value),"double",c);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+="</"+E.call(String(t.nodeName))+">"}if(W(t)){if(0===t.length)return"[]";var se=ne(t,j);return x&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(se)?"["+te(se,x)+"]":"[ "+I.call(se,", ")+" ]"}if(function(e){return"[object Error]"===Y(e)&&H(e)}(t)){var ce=ne(t,j);return"cause"in Error.prototype||!("cause"in t)||U.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+I.call(ce,", ")+" }":"{ ["+String(t)+"] "+I.call(v.call("[cause]: "+j(t.cause),ce),", ")+" }"}if("object"==typeof t&&m){if(B&&"function"==typeof t[B]&&M)return M(t,{depth:O-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{u.call(e)}catch(oe){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ue=[];return i&&i.call(t,function(e,n){ue.push(j(n,t,!0)+" => "+j(e,t))}),ee("Map",a.call(t),ue,x)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return l&&l.call(t,function(e){le.push(j(e,t))}),ee("Set",u.call(t),le,x)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(oe){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Z("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(oe){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Z("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(t){}return!1}(t))return Z("WeakRef");if(function(e){return"[object Number]"===Y(e)&&H(e)}(t))return Q(j(Number(t)));if(function(e){if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(t){}return!1}(t))return Q(j(N.call(t)));if(function(e){return"[object Boolean]"===Y(e)&&H(e)}(t))return Q(g.call(t));if(function(e){return"[object String]"===Y(e)&&H(e)}(t))return Q(j(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Y(e)&&H(e)}(t)&&!$(t)){var pe=ne(t,j),de=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",ge=!de&&C&&Object(t)===t&&
vendor: 5,113 bytes, line 2
2C in t?y.call(Y(t),8,-1):fe?"Object":"",me=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ge||fe?"["+I.call(v.call([],ge||[],fe||[]),": ")+"] ":"");return 0===pe.length?me+"{}":x?me+"{"+te(pe,x)+"}":me+"{ "+I.call(pe,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return V.call(e,t)}function Y(e){return m.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function J(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return J(y.call(e,0,t.maxStringLength),t)+r}var o=j[t.quoteStyle||"single"];return o.lastIndex=0,F(T.call(T.call(e,o,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function Q(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function ee(e,t,n,r){return e+" ("+t+") {"+(r?te(n,r):I.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+I.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=W(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=z(e,o)?t(e[o],e):""}var a,i="function"==typeof O?O(e):[];if(w){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var c in e)z(e,c)&&(n&&String(Number(c))===c&&c<e.length||w&&a["$"+c]instanceof Symbol||(b.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof O)for(var u=0;u<i.length;u++)U.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}},74765:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},55373:function(e,t,n){"use strict";var r=n(98636),o=n(62642),a=n(74765);e.exports={formats:a,parse:o,stringify:r}},62642:function(e,t,n){"use strict";var r=n(37720),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},c=function(e,t,n,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(r&&t.throwOnLimitExceeded)for(var o=0,a=e.indexOf(",");a>-1;){if((o+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");a=e.indexOf(",",a+1)}return e.split(",")}if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},u=function(e,t,n,a){if(e){var i=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&o.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=[],a=n.indexOf("["),i=a>=0?n.slice(0,a):n;if(i){if(!t.plainObjects&&o.call(Object.prototype,i)&&!t.allowPrototypes)return;r[r.length]=i}for(var s=n.length,c=a,u=0;c>=0&&u<t.depth;){for(var l=1,p=c+1,d=-1;p<s&&d<0;){var f=n.charCodeAt(p);91===f?l+=1:93===f&&0==(l-=1)&&(d=p),p+=1}if(d<0)return r[r.length]="["+n.slice(c)+"]",r;var g=n.slice(c,d+1),m=g.slice(1,-1);if(!t.plainObjects&&o.call(Object.prototype,m)&&!t.allowPrototypes)return;r[r.length]=g,u+=1,c=n.indexOf("[",d+1)}if(c>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");r[r.length]="["+n.slice(c)+"]"}return r}(e,n);if(i)return function(e,t,n,o){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var i=e.slice(0,-1).join("");a=Array.isArray(t)&&t[i]?t[i].length:0}for(var s=o?t:c(t,n,a),u=e.length-1;u>=0;--u){var l,p=e[u];if("[]"===p&&n.parseArrays)l=r.isOverflow(s)?s:n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s,n.arrayLimit,n.plainObjects,n.throwOnLimitExceeded);else{l=n.plainObjects?{__proto__:null}:{};var d="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,f=n.decodeDotInKeys?d.replace(/%2E/g,"."):d,g=parseInt(f,10),m=!isNaN(g)&&p!==f&&String(g)===f&&g>=0&&n.parseArrays;if(n.parseArrays||""!==f)if(m&&g<n.arrayLimit)(l=[])[g]=s;else{if(m&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");m?(l[g]=s,r.markOverflow(l,g)):"__proto__"!==f&&(l[f]=s)}else l={0:s}}s=l}return s}(i,t,n,a)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
vendor: 10,231 bytes, line 2
2if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?i.charset:e.charset,n=void 0===e.duplicates?i.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:i.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:i.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var l="string"==typeof e?function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==l?l+1:l);if(t.throwOnLimitExceeded&&void 0!==l&&p.length>l)throw new RangeError("Parameter limit exceeded. Only "+l+" parameter"+(1===l?"":"s")+" allowed.");var d,f=-1,g=t.charset;if(t.charsetSentinel)for(d=0;d<p.length;++d)0===p[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[d]?g="utf-8":"utf8=%26%2310003%3B"===p[d]&&(g="iso-8859-1"),f=d,d=p.length);for(d=0;d<p.length;++d)if(d!==f){var m,h,_=p[d],y=_.indexOf("]="),T=-1===y?_.indexOf("="):y+1;if(-1===T?(m=t.decoder(_,i.decoder,g,"key"),h=t.strictNullHandling?null:""):null!==(m=t.decoder(_.slice(0,T),i.decoder,g,"key"))&&(h=r.maybeMap(c(_.slice(T+1),t,a(n[m])?n[m].length:0,-1===_.indexOf("[]=")),function(e){return t.decoder(e,i.decoder,g,"value")})),h&&t.interpretNumericEntities&&"iso-8859-1"===g&&(h=s(String(h))),_.indexOf("[]=")>-1&&(h=a(h)?[h]:h),t.comma&&a(h)&&h.length>t.arrayLimit&&(h=r.combine([],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==m){var S=o.call(n,m);S&&("combine"===t.duplicates||_.indexOf("[]=")>-1)?n[m]=r.combine(n[m],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):S&&"last"!==t.duplicates||(n[m]=h)}}return n}(e,n):e,p=n.plainObjects?{__proto__:null}:{},d=Object.keys(l),f=0;f<d.length;++f){var g=d[f],m=u(g,l[g],n,"string"==typeof e);p=r.merge(p,m,n)}return!0===n.allowSparse?p:r.compact(p)}},98636:function(e,t,n){"use strict";var r=n(920),o=n(37720),a=n(74765),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,d=a.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},g={},m=function e(t,n,a,i,s,u,p,d,m,h,_,y,T,S,E,b,v,I){for(var A,R=t,N=I,O=0,P=!1;void 0!==(N=N.get(g))&&!P;){var w=N.get(t);if(O+=1,void 0!==w){if(w===O)throw new RangeError("Cyclic object value");P=!0}void 0===N.get(g)&&(O=0)}if("function"==typeof h?R=h(n,R):R instanceof Date?R=T(R):"comma"===a&&c(R)&&(R=o.maybeMap(R,function(e){return e instanceof Date?T(e):e})),null===R){if(u)return E(m&&!b?m(n,f.encoder,v,"key",S):n);R=""}if("string"==typeof(A=R)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||o.isBuffer(R))return m?[E(b?n:m(n,f.encoder,v,"key",S))+"="+E(m(R,f.encoder,v,"value",S))]:[E(n)+"="+E(String(R))];var C,U=[];if(void 0===R)return U;if("comma"===a&&c(R))b&&m&&(R=o.maybeMap(R,function(e){return null==e?e:m(e)})),C=[{value:R.length>0?R.join(",")||null:void 0}];else if(c(h))C=h;else{var L=Object.keys(R);C=_?L.sort(_):L}var k=d?String(n).replace(/\./g,"%2E"):String(n),M=i&&c(R)&&1===R.length?k+"[]":k;if(s&&c(R)&&0===R.length)return M+"[]";for(var x=0;x<C.length;++x){var B=C[x],D="object"==typeof B&&B&&void 0!==B.value?B.value:R[B];if(!p||null!==D){var j=y&&d?String(B).replace(/\./g,"%2E"):String(B),F=c(R)?"function"==typeof a?a(M,j):M:M+(y?"."+j:"["+j+"]");I.set(t,O);var G=r();G.set(g,I),l(U,e(D,F,a,i,s,u,p,d,"comma"===a&&b&&c(R)?null:m,h,_,y,T,S,E,b,v,G))}}return U};e.exports=function(e,t){var n,o=e,u=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=a.formatters[n],u=f.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:u,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof u.filter?o=(0,u.filter)("",o):c(u.filter)&&(n=u.filter);var p=[];if("object"!=typeof o||null===o)return"";var d=s[u.arrayFormat],g="comma"===d&&u.commaRoundTrip;n||(n=Object.keys(o)),u.sort&&n.sort(u.sort);for(var h=r(),_=0;_<n.length;++_){var y=n[_];if(null!=y){var T=o[y];u.skipNulls&&null===T||l(p,m(T,y,d,g,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,h))}}var S=p.join(u.delimiter),E=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?E+="utf8=%26%2310003%3B"+u.delimiter:E+="utf8=%E2%9C%93"+u.delimiter),S.length>0?E+S:""}},37720:function(e,t,n){"use strict";var r=n(74765),o=n(920),a=n(30655),i=Object.prototype.hasOwnProperty,s=Array.isArray,c=o(),u=function(e,t){return c.set(e,t),e},l=function(e){return c.has(e)},p=function(e){return c.get(e)},d=function(e,t){c.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),g=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},m=function(e,t,n){"__proto__"===t&&a?a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},h=1024;e.exports={arrayToObject:g,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return m(e,n,t[n]),e},e)},combine:function(e,t,n,r,o){if(l(e)){if(o)throw new RangeError("Array limit exceeded. Only "+n+" element"+(1===n?"":"s")+" allowed in an array.");var a=p(e)+1;return e[a]=t,d(e,a),e}var i=[].concat(e,t);if(i.length>n){if(o)throw new RangeError("Array limit exceeded. Only "+n+" element"+(1===n?"":"s")+" allowed in an array.");return u(g(i,{plainObjects:r}),i.length-1)}return i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=o(),r=0;r<t.length;++r)for(var a=t[r],i=a.obj[a.prop],c=Object.keys(i),u=0;u<c.length;++u){var l=c[u],p=i[l];
2"object"!=typeof p||null===p||n.has(p)||(t[t.length]={obj:i,prop:l},n.set(p,!0))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(s(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&(r[r.length]=n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n,o,a){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",c=0;c<i.length;c+=h){var u=i.length>=h?i.slice(c,c+h):i;if(c+h<i.length){var l=u.charCodeAt(u.length-1);l>=55296&&l<=56319&&(u=u.slice(0,-1),c-=1)}for(var p=[],d=0;d<u.length;++d){var g=u.charCodeAt(d);45===g||46===g||95===g||126===g||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||a===r.RFC1738&&(40===g||41===g)?p[p.length]=u.charAt(d):g<128?p[p.length]=f[g]:g<2048?p[p.length]=f[192|g>>6]+f[128|63&g]:g<55296||g>=57344?p[p.length]=f[224|g>>12]+f[128|g>>6&63]+f[128|63&g]:(d+=1,g=65536+((1023&g)<<10|1023&u.charCodeAt(d)),p[p.length]=f[240|g>>18]+f[128|g>>12&63]+f[128|g>>6&63]+f[128|63&g])}s+=p.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:u,maybeMap:function(e,t){if(s(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(s(t)){var o=t.length;if(r&&"number"==typeof r.arrayLimit&&o>=r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return u(g(t.concat(n),r),o)}t[o]=n}else{if(!t||"object"!=typeof t)return[t,n];if(l(t)){var a=p(t)+1;t[a]=n,d(t,a)}else{if(r&&r.strictMerge)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}}return t}if(!t||"object"!=typeof t){if(l(n)){for(var c=Object.keys(n),f=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<c.length;h++){f[parseInt(c[h],10)+1]=n[c[h]]}return u(f,p(n)+1)}var _=[t].concat(n);if(r&&"number"==typeof r.arrayLimit&&_.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return u(g(_,r),_.length-1)}return _}var y=t;if(s(t)&&!s(n)&&(y=g(t,r)),s(t)&&s(n)){if(n.forEach(function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t[t.length]=n}else t[o]=n}),r&&"number"==typeof r.arrayLimit&&t.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return u(g(t,r),t.length-1)}return t}return Object.keys(n).reduce(function(t,o){var a=n[o];if(i.call(t,o)?m(t,o,e(t[o],a,r)):m(t,o,a),l(n)&&!l(t)&&u(t,p(n)),l(t)){var s=parseInt(o,10);String(s)===o&&s>=0&&s>p(t)&&d(t,s)}return t},y)}}},60207:function(e,t,n){"use strict";var r=n(96540),o={stream:!0},a=new Map,i=Symbol.for("react.element"),s=Symbol.for("react.lazy"),c=Symbol.for("react.default_value"),u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function l(e,t,n){this._status=e,this._value=t,this._response=n}function p(e){switch(e._status){case 3:return e._value;case 1:var t=JSON.parse(e._value,e._response._fromJSON);return e._status=3,e._value=t;case 2:for(var r=(t=e._value).chunks,o=0;o<r.length;o++){var i=a.get(r[o]);if(null!==i)throw i}return r=n(t.id),t="*"===t.name?r:""===t.name?r.__esModule?r.default:r:r[t.name],e._status=3,e._value=t;case 0:throw e;default:throw e._value}}function d(){return p(_(this,0))}function f(e,t){return new l(3,t,e)}function g(e){if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}function m(e,t){if(0===e._status){var n=e._value;e._status=4,e._value=t,g(n)}}function h(e,t){e._chunks.forEach(function(e){m(e,t)})}function _(e,t){var n=e._chunks,r=n.get(t);return r||(r=new l(0,null,e),n.set(t,r)),r}function y(e){h(e,Error("Connection closed."))}function T(e,t){if(""!==t){var o=t[0],i=t.indexOf(":",1),s=parseInt(t.substring(1,i),16);switch(i=t.substring(i+1),o){case"J":(o=(t=e._chunks).get(s))?0===o._status&&(e=o._value,o._status=1,o._value=i,g(e)):t.set(s,new l(1,i,e));break;case"M":o=(t=e._chunks).get(s),i=JSON.parse(i,e._fromJSON);var p=e._bundlerConfig;p=(i=p?p[i.id][i.name]:i).chunks;for(var d=0;d<p.length;d++){var h=p[d];if(void 0===a.get(h)){var _=n.e(h),y=a.set.bind(a,h,null),T=a.set.bind(a,h);_.then(y,T),a.set(h,_)}}o?0===o._status&&(e=o._value,o._status=2,o._value=i,g(e)):t.set(s,new l(2,i,e));break;case"P":e._chunks.set(s,f(e,function(e){return u[e]||(u[e]=r.createServerContext(e,c)),u[e]}(i).Provider));break;case"S":o=JSON.parse(i),e._chunks.set(s,f(e,Symbol.for(o)));break;case"E":t=JSON.parse(i),(o=Error(t.message)).stack=t.stack,(i=(t=e._chunks).get(s))?m(i,o):t.set(s,new l(4,o,e));break;default:throw Error("Error parsing the data. It's probably an error code or network corruption.")}}}function S(e){return function(t,n){return"string"==typeof n?function(e,t,n){switch(n[0]){case"$":return"$"===n?i:"$"===n[1]||"@"===n[1]?n.substring(1):p(e=_(e,parseInt(n.substring(1),16)));case"@":return e=_(e,parseInt(n.substring(1),16)),{$$typeof:s,_payload:e,_init:p}}return n}(e,0,n):"object"==typeof n&&null!==n?n[0]===i?{$$typeof:i,type:n[1],key:n[2],ref:null,props:n[3],_owner:null}:n:n}}function E(e){var t=new TextDecoder;return(e={_bundlerConfig:e,_chunks:new Map,readRoot:d,_partialRow:"",_stringDecoder:t})._fromJSON=S(e),e}function b(e,t){function n(t){h(e,t)}var r=t.getReader();r.read().then(function t(a){var i=a.value;if(!a.done){a=i,i=e._stringDecoder;for(var s=a.indexOf(10);-1<s;){var c=e._partialRow,u=a.subarray(0,s);u=i.decode(u),T(e,c+u),e._partialRow="",s=(a=a.subarray(s+1)).indexOf(10)}return e._partialRow+=i.decode(a,o),r.read().then(t,n)}y(e)},n)}l.prototype.then=function(e){0===this._status?(null===this._value&&(this._value=[]),this._value.push(e)):e()},t.createFromReadableStream=function(e,t){return b(t=E(t&&t.moduleMap?t.moduleMap:null),e),t}},58163:function(e,t,n){"use strict";e.exports=n(60207)},70019:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.YMInitializer=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(96540)),o=s(n(5556)),a=s(n(57644)),i=n(59449);function s(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}var g=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,d(t).apply(this,arguments))}var n,o,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){(0,a.default)(this.props.accounts,this.props.options,this.props.version);var e=document.createElement("script"),t=this.props.attrs;e.type="text/javascript",e.async=!0,e.src=(0,i.scriptPath)(this.props.version),Object.keys(t).map(function(n){e.__proto__.hasOwnProperty(n)&&e.setAttribute(n,t[n])}),this.insertPoint.insertBefore(e,null)}},{key:"render",value:function(){var e=this;return r.default.createElement(this.props.containerElement,{ref:function(t){e.insertPoint=t}},this.props.children)}}])&&l(n.prototype,o),s&&l(n,s),t}(r.Component);t.YMInitializer=g,g.displayName="YMInitializer",g.propTypes={accounts:o.default.arrayOf(o.default.number).isRequired,containerElement:o.default.string,options:o.default.object,attrs:o.default.object,version:o.default.oneOf(["1","2"])},g.defaultProps={containerElement:"div",options:{},attrs:{},version:"1"}},59449:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callbackQueueName=function(e){if("1"===e)return"yandex_metrika_callbacks";if("2"===e)return"yandex_metrika_callbacks2";n()},t.scriptPath=function(e){if("1"===e)return"https://mc.yandex.ru/metrika/watch.js";if("2"===e)return"https://mc.yandex.ru/metrika/tag.js";n()},t.trackerConstructorName=function(e){if("1"===e)return"Metrika";if("2"===e)return"Metrika2";n()},t.trackerInstanceName=function(e){return"yaCounter".concat(e)},t.trackerVersionName=function(e){return"yaCounterVersion".concat(e)},t.accountListName=void 0;function n(){throw new Error("invalid Ya.Metrika version")}t.accountListName="yandex_metrika_accounts"},35764:function(e,t,n){"use strict";Object.defineProperty(t,"TD",{enumerable:!0,get:function(){return o.YMInitializer}}),t.Ay=void 0;var r=n(59449),o=n(70019);function a(e,t){try{for(var n,o=arguments.length,a=new Array(o>2?o-2:0),i=2;i<o;i++)a[i-2]=arguments[i];(n=window[(0,r.trackerInstanceName)(e)])[t].apply(n,a)}catch(s){console.warn(s)}}function i(){return"undefined"!=typeof window?window[r.accountListName]:[]}function s(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e.forEach(function(e){var t=window[(0,r.trackerVersionName)(e)],o=window[(0,r.callbackQueueName)(t)];o?o.push(function(){return a.apply(void 0,[e].concat(n))}):a.apply(void 0,[e].concat(n))})}}function c(e){return s(i().filter(e))}var u=function(){return s(i()).apply(void 0,arguments)};t.Ay=u},57644:function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",o=(0,r.callbackQueueName)(n);window[r.accountListName]=window[r.accountListName]||[],window[r.accountListName]=window[r.accountListName].concat(e),window[o]=window[o]||[],window[o].push(function(){e.forEach(function(e){var o={id:e};try{window[(0,r.trackerInstanceName)(e)]=new(Ya[(0,r.trackerConstructorName)(n)])(Object.assign(o,t))}catch(a){console.warn(a)}})}),e.forEach(function(e){window[(0,r.trackerVersionName)(e)]=n})};var r=n(59449)},34635:function(e){"use strict";var t={decodeValues:!0,map:!1,silent:!1};function n(e){return"string"!=typeof e||e in{}}function r(){return Object.create(null)}function o(e){return"string"==typeof e&&!!e.trim()}function a(e,a){var i=e.split(";").filter(o),s=function(e){var t="",n="",r=e.split("=");r.length>1?(t=r.shift(),n=r.join("=")):n=e;return{name:t,value:n}}(i.shift()),c=s.name,u=s.value;if(a=a?Object.assign({},t,a):t,n(c))return null;try{u=a.decodeValues?decodeURIComponent(u):u}catch(p){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",p)}var l=r();return l.name=c,l.value=u,i.forEach(function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase();if(!n(r)){var o=t.join("=");if("expires"===r)l.expires=new Date(o);else if("max-age"===r){var a=parseInt(o,10);Number.isNaN(a)||(l.maxAge=a)}else"secure"===r?l.secure=!0:"httponly"===r?l.httpOnly=!0:"samesite"===r?l.sameSite=o:"partitioned"===r?l.partitioned=!0:r&&(l[r]=o)}}),l}function i(e,i){if(i=i?Object.assign({},t,i):t,!e)return i.map?r():[];if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];s||!e.headers.cookie||i.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=s}if(Array.isArray(e)||(e=[e]),i.map){var c=r();return e.filter(o).reduce(function(e,t){var r=a(t,i);return r&&!n(r.name)&&(e[r.name]=r),e},c)}return e.filter(o).map(function(e){return a(e,i)}).filter(Boolean)}e.exports=i,e.exports.parse=i,e.exports.parseString=a,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,n,r,o,a,i=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}function u(){return"="!==(n=e.charAt(s))&&";"!==n&&","!==n}for(;s<e.length;){for(t=s,a=!1;c();)if(","===(n=e.charAt(s))){for(r=s,s+=1,c(),o=s;s<e.length&&u();)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=o,i.push(e.substring(t,r)),t=s):s=r+1}else s+=1;(!a||s>=e.length)&&i.push(e.substring(t,e.length))}return i}},14803:function(e,t,n){"use strict";var r=n(58859),o=n(69675),a=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=function(e,t){if(e)return a(e,t,!0)}(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return function(e,t){if(e){var n=a(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!a(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=a(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},80507:function(e,t,n){"use strict";var r=n(70453),o=n(36556),a=n(58859),i=n(69675),s=r("%Map%",!0),c=o("Map.prototype.get",!0),u=o("Map.prototype.set",!0),l=o("Map.prototype.has",!0),p=o("Map.prototype.delete",!0),d=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+a(e))},delete:function(t){if(e){var n=p(e,t);return 0===d(e)&&(e=void 0),n}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,n){e||(e=new s),u(e,t,n)}};return t}},72271:function(e,t,n){"use strict";var r=n(70453),o=n(36556),a=n(58859),i=n(80507),s=n(69675),c=r("%WeakMap%",!0),u=o("WeakMap.prototype.get",!0),l=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(e)return d(e,n)}else if(i&&t)return t.delete(n);return!1},get:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?u(e,n):t&&t.get(n)},has:function(n){return c&&n&&("object"==typeof n||"function"==typeof n)&&e?p(e,n):!!t&&t.has(n)},set:function(n,r){c&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new c),l(e,n,r)):i&&(t||(t=i()),t.set(n,r))}};return n}:i},920:function(e,t,n){"use strict";var r=n(69675),o=n(58859),a=n(14803),i=n(80507),s=n(72271)||i||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e)){var n=e&&Object(e)===e?"the given object key":o(e);throw new r("Side channel does not contain "+n)}},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},34915:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},42634:function(){},70079:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},92987:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},12475:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},17383:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},34579:function(e,t,n){var r=n(77736);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},43693:function(e,t,n){var r=n(77736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},6221:function(e,t,n){var r=n(95636);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports}
2,24994:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},81156:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},47752:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},91847:function(e,t,n){var r=n(54893);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},54893:function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},95636:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},85715:function(e,t,n){var r=n(92987),o=n(81156),a=n(17122),i=n(47752);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},89045:function(e,t,n){var r=n(73738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},77736:function(e,t,n){var r=n(73738).default,o=n(89045);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},73738:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},17122:function(e,t,n){var r=n(70079);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},14656:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SCRIPT_TYPE="text/partytown",t.partytownSnippet=e=>((e,t)=>{const{forward:n=[],...r}=e||{},o=JSON.stringify(r,(e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t));return["!(function(w,p,f,c){",Object.keys(r).length>0?`c=w[p]=Object.assign(w[p]||{},${o});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",n.length>0?`.concat(${JSON.stringify(n)})`:"","})(window,'partytown','forward');",t].join("")})(e,'/* Partytown 0.7.6 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll(\'script[type="text/partytown"]\'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(f,1e4),e.addEventListener("pt0",w),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):f())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.7.6":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function f(n,r){for(w(),i==t&&(o.forward||[]).map((function(e){delete t[e.split(".")[0]]})),n=0;n<s.length;n++)(r=e.createElement("script")).innerHTML=s[n].innerHTML,e.head.appendChild(r);c&&c.parentNode.removeChild(c)}function w(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(".").map((function(e,n,i){p=p[i[n]]=n+1<i.length?"push"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),"complete"==e.readyState?u():(t.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))}(window,document,navigator,top,window.crossOriginIsolated);')},43145:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:function(){return r}})},96369:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:function(){return r}})},9417:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:function(){return r}})},23029:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:function(){return r}})},92901:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(20816);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},64467:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(20816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:function(){return r}})},53954:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:function(){return r}})},85501:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},77387:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(63662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},73893:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:function(){return r}})},76562:function(e,t,n){"use strict";
2function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:function(){return r}})},98587:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:function(){return r}})},56822:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(82284),o=n(9417);function a(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:function(){return r}})},60436:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(43145);var o=n(73893),a=n(27800);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,o.A)(e)||(0,a.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},20816:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(82284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:function(){return r}})},27800:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},86462:function(e,t,n){"use strict";var r;n.r(t);var o=n(96540),a=n(5556),i=n(20311);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}const u=e=>{const{search:t,hash:n,href:r,origin:o,protocol:a,host:i,hostname:s,port:c}=e.location;let{pathname:u}=e.location;return!u&&r&&d&&(u=new URL(r).pathname),{pathname:encodeURI(decodeURI(u)),search:t,hash:n,href:r,origin:o,protocol:a,host:i,hostname:s,port:c,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},l=(e,t)=>
2{let n=[],r=u(e),o=!1,a=()=>{};return{get location(){return r},get transitioning(){return o},_onTransitionComplete(){o=!1,a()},listen(t){n.push(t);const o=()=>{r=u(e),t({location:r,action:"POP"})};return e.addEventListener("popstate",o),()=>{e.removeEventListener("popstate",o),n=n.filter(e=>e!==t)}},navigate(t,{state:i,replace:c=!1}={}){if("number"==typeof t)e.history.go(t);else{i=s({},i,{key:Date.now()+""});try{o||c?e.history.replaceState(i,null,t):e.history.pushState(i,null,t)}catch(n){e.location[c?"replace":"assign"](t)}}r=u(e),o=!0;const l=new Promise(e=>a=e);return n.forEach(e=>e({location:r,action:"PUSH"})),l}}},p=(e="/")=>{const t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""};let r=0;const o=[n],a=[null];return{get location(){return o[r]},addEventListener(e,t){},removeEventListener(e,t){},history:{get entries(){return o},get index(){return r},get state(){return a[r]},pushState(e,t,n){const[i,s=""]=n.split("?");r++,o.push({pathname:i,search:s.length?`?${s}`:s}),a.push(e)},replaceState(e,t,n){const[i,s=""]=n.split("?");o[r]={pathname:i,search:s},a[r]=e},go(e){const t=r+e;t<0||t>a.length-1||(r=t)}}}},d=!("undefined"==typeof window||!window.document||!window.document.createElement),f=l(d?window:p()),{navigate:g}=f;function m(e,t){return o.createServerContext?((e,t=null)=>(globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=o.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]))(e,t):o.createContext(t)}const h=m("Base",{baseuri:"/",basepath:"/"}),_=m("Location"),y=()=>o.useContext(h),T=()=>o.useContext(_);function S(e){this.uri=e}const E=e=>e instanceof S,b=e=>{throw new S(e)};function v(e){const{to:t,replace:n=!0,state:r,noThrow:a,baseuri:i}=e;o.useEffect(()=>{Promise.resolve().then(()=>{const o=O(t,i);g(P(o,e),{replace:n,state:r})})},[]);const s=O(t,i);return a||b(P(s,e)),null}const I=e=>{const t=T(),{baseuri:n}=y();return o.createElement(v,s({},t,{baseuri:n},e))};I.propTypes={from:a.string,to:a.string.isRequired};const A=(e,t)=>e.substr(0,t.length)===t,R=(e,t)=>{let n,r;const[o]=t.split("?"),a=x(o),s=""===a[0],c=M(e);for(let u=0,l=c.length;u<l;u++){let e=!1;const o=c[u].route;if(o.default){r={route:o,params:{},uri:t};continue}const l=x(o.path),p={},d=Math.max(a.length,l.length);let f=0;for(;f<d;f++){const t=l[f],n=a[f];if(L(t)){p[t.slice(1)||"*"]=a.slice(f).map(decodeURIComponent).join("/");break}if(void 0===n){e=!0;break}const r=C.exec(t);if(r&&!s){const e=-1===D.indexOf(r[1]);i(e,`<Router> dynamic segment "${r[1]}" is a reserved name. Please use a different name in path "${o.path}".`);const t=decodeURIComponent(n);p[r[1]]=t}else if(t!==n){e=!0;break}}if(!e){n={route:o,params:p,uri:"/"+a.slice(0,f).join("/")};break}}return n||r||null},N=(e,t)=>R([{path:e}],t),O=(e,t)=>{if(A(e,"/"))return e;const[n,r]=e.split("?"),[o]=t.split("?"),a=x(n),i=x(o);if(""===a[0])return B(o,r);if(!A(a[0],".")){const e=i.concat(a).join("/");return B(("/"===o?"":"/")+e,r)}const s=i.concat(a),c=[];for(let u=0,l=s.length;u<l;u++){const e=s[u];".."===e?c.pop():"."!==e&&c.push(e)}return B("/"+c.join("/"),r)},P=(e,t)=>{const[n,r=""]=e.split("?");let o="/"+x(n).map(e=>{const n=C.exec(e);return n?t[n[1]]:e}).join("/");const{location:{search:a=""}={}}=t,i=a.split("?")[1]||"";return o=B(o,r,i),o},w=(e,t)=>{const n=e=>U(e);return x(e).filter(n).sort().join("/")===x(t).filter(n).sort().join("/")},C=/^:(.+)/,U=e=>C.test(e),L=e=>e&&"*"===e[0],k=(e,t)=>({route:e,score:e.default?0:x(e.path).reduce((e,t)=>(e+=4,(e=>""===e)(t)?e+=1:U(t)?e+=2:L(t)?e-=5:e+=3,e),0),index:t}),M=e=>e.map(k).sort((e,t)=>e.score<t.score?1:e.score>t.score?-1:e.index-t.index),x=e=>e.replace(/(^\/+|\/+$)/g,"").split("/"),B=(e,...t)=>e+((t=t.filter(e=>e&&e.length>0))&&t.length>0?`?${t.join("&")}`:""),D=["uri","path"],j=(e,t)=>{const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>t.hasOwnProperty(n)&&e[n]===t[n])},F=e=>e.replace(/(^\/+|\/+$)/g,""),G=e=>t=>{if(!t)return null;if(t.type===o.Fragment&&t.props.children)return o.Children.map(t.props.children,G(e));if(i(t.props.path||t.props.default||t.type===I,`<Router>: Children of <Router> must have a \`path\` or \`default\` prop, or be a \`<Redirect>\`. None found on element type \`${t.type}\``),i(!!(t.type!==I||t.props.from&&t.props.to),`<Redirect from="${t.props.from}" to="${t.props.to}"/> requires both "from" and "to" props when inside a <Router>
2.`),i(!(t.type===I&&!w(t.props.from,t.props.to)),`<Redirect from="${t.props.from} to="${t.props.to}"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.`),t.props.default)return{value:t,default:!0};const n=t.type===I?t.props.from:t.props.path,r="/"===n?e:`${F(e)}/${F(n)}`;return{value:t,default:t.props.default,path:t.props.children?`${F(r)}/*`:r}},H=["innerRef"],W=["to","state","replace","getProps"],$=["key"];let{forwardRef:q}=r||(r=n.t(o,2));void 0===q&&(q=e=>e);const V=()=>{},z=q((e,t)=>{let{innerRef:n}=e,r=c(e,H);const{baseuri:a}=y(),{location:i}=T(),{to:u,state:l,replace:p,getProps:d=V}=r,f=c(r,W),m=O(u,a),h=encodeURI(m),_=i.pathname===h,S=A(i.pathname,h);return o.createElement("a",s({ref:t||n,"aria-current":_?"page":void 0},f,d({isCurrent:_,isPartiallyCurrent:S,href:m,location:i}),{href:m,onClick:e=>{if(f.onClick&&f.onClick(e),(e=>!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(e)){e.preventDefault();let t=p;if("boolean"!=typeof p&&_){const e=c(s({},i.state),$);t=j(s({},l),e)}g(m,{state:l,replace:t})}}}))});z.displayName="Link",z.propTypes={to:a.string.isRequired};class Y extends o.Component{constructor(...e){super(...e),this.displayName="ReactUseErrorBoundary"}componentDidCatch(...e){this.setState({}),this.props.onError(...e)}render(){return this.props.children}}const K=o.createContext({componentDidCatch:{current:void 0},error:void 0,setError:()=>!1});function J({children:e}){const[t,n]=o.useState(),r=o.useRef(),a=o.useMemo(()=>({componentDidCatch:r,error:t,setError:n}),[t]);return o.createElement(K.Provider,{value:a},o.createElement(Y,{error:t,onError:(e,t)=>{n(e),null==r.current||r.current(e,t)}},e))}J.displayName="ReactUseErrorBoundaryContext";const X=function(e){var t,n;function r(t){return o.createElement(J,null,o.createElement(e,s({key:"WrappedComponent"},t)))}return r.displayName=`WithErrorBoundary(${null!=(t=null!=(n=e.displayName)?n:e.name)?t:"Component"})`,r}(({history:e=f,children:t})=>{const{location:n}=e,[r,a]=o.useState({location:n}),[i]=function(){const e=o.useContext(K);e.componentDidCatch.current=void 0;const t=o.useCallback(()=>{e.setError(void 0)},[]);return[e.error,t]}();if(o.useEffect(()=>{e._onTransitionComplete()},[r.location]),o.useEffect(()=>{let t=!1;const n=e.listen(({location:e})=>{Promise.resolve().then(()=>{requestAnimationFrame(()=>{t||a({location:e})})})});return()=>{t=!0,n()}},[]),i){if(!E(i))throw i;g(i.uri,{replace:!0})}return o.createElement(_.Provider,{value:r},"function"==typeof t?t(r):t||null)}),Q=["uri","location","component"],Z=["children","style","component","uri","location"],ee=e=>{let{uri:t,location:n,component:r}=e,a=c(e,Q);return o.createElement(ne,s({},a,{component:r,uri:t,location:n}))};let te=0;const ne=e=>{let{children:t,style:n,component:r="div",uri:a,location:i}=e,u=c(e,Z);const l=o.useRef(),p=o.useRef(!0),d=o.useRef(a),f=o.useRef(i.pathname),g=o.useRef(!1);o.useEffect(()=>(te++,m(),()=>{te--,0===te&&(p.current=!0)}),[]),o.useEffect(()=>{let e=!1,t=!1;a!==d.current&&(d.current=a,e=!0),i.pathname!==f.current&&(f.current=i.pathname,t=!0),g.current=e||t&&i.pathname===a,g.current&&m()},[a,i]);const m=o.useCallback(()=>{var e;p.current?p.current=!1:(e=l.current,g.current&&e&&e.focus())},[]);return o.createElement(r,s({style:s({outline:"none"},n),tabIndex:"-1",ref:l},u),t)},re=["location","primary","children","basepath","baseuri","component"],oe=e=>{const t=y(),n=T();return o.createElement(ae,s({},t,n,e))};function ae(e){const{location:t,primary:n=!0,children:r,basepath:a,component:i="div"}=e,u=c(e,re),l=o.Children.toArray(r).reduce((e,t)=>{const n=G(a)(t);return e.concat(n)},[]),{pathname:p}=t,d=R(l,p);if(d){const{params:e,uri:r,route:c,route:{value:l}}=d,p=c.default?a:c.path.replace(/\*$/,""),f=s({},e,{uri:r,location:t}),g=o.cloneElement(l,f,l.props.children?o.createElement(oe,{location:t,primary:n},l.props.children):void 0),m=n?ee:i,_=n?s({uri:r,location:t,component:i},u):u;return o.createElement(h.Provider,{value:{baseuri:r,basepath:p}},o.createElement(m,_,g))}return null}const ie=()=>{const e=T();if(!e)throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.location};n.d(t,["BaseContext",0,h,"Link",0,z,"Location",0,({children:e})=>{const t=T();return t?e(t):o.createElement(X,null,e)},"LocationContext",0,_,"LocationProvider",0,X,"Match",0,({path:e,children:t})=>{const{baseuri:n}=y(),{location:r}=T(),o=O(e,n),a=N(o,r.pathname);return t({location:r,match:a?s({},a.params,{uri:a.uri,path:e}):null})},"Redirect",0,I,"Router",0,oe,"ServerLocation",0,({url:e,children:t})=>{const n=e.indexOf("?");let r,a="";return n>-1?(r=e.substring(0,n),a=e.substring(n)):r=e,o.createElement(_.Provider,{value:{location:{pathname:r,search:a,hash:""}}},t)},"createHistory",0,l,"createMemorySource",0,p,"globalHistory",0,f,"insertParams",0,P,"isRedirect",0,E,"match",0,N,"navigate",0,g,"pick",0,R,"redirectTo",0,b,"resolve",0,O,"shallowCompare",0,j,"startsWith",0,A,"useBaseContext",0,y,"useLocation",0,ie,"useLocationContext",0,T,"useMatch",0,e=>
2{if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");const t=y();if(!t)throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");const n=ie(),r=O(e,t.baseuri),o=N(r,n.pathname);return o?s({},o.params,{uri:o.uri,path:e}):null},"useNavigate",0,()=>{throw new Error("useNavigate is removed. Use import { navigate } from 'gatsby' instead")},"useParams",0,()=>{const e=y();if(!e)throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");const t=ie(),n=N(e.basepath,t.pathname);return n?n.params:null},"validateRedirect",0,w])},18147:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});var r=n(93870)},19215:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});var r=n(61722)},32024:function(e,t,n){"use strict";n.d(t,{A:function(){return Et}});var r={};function o(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:function(){return fe},hasStandardBrowserEnv:function(){return me},hasStandardBrowserWebWorkerEnv:function(){return he},navigator:function(){return ge},origin:function(){return _e}});const{toString:a}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:s,toStringTag:c}=Symbol,u=(l=Object.create(null),e=>{const t=a.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const p=e=>(e=e.toLowerCase(),t=>u(t)===e),d=e=>t=>typeof t===e,{isArray:f}=Array,g=d("undefined");function m(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const h=p("ArrayBuffer");const _=d("string"),y=d("function"),T=d("number"),S=e=>null!==e&&"object"==typeof e,E=e=>{if("object"!==u(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||c in e||s in e)},b=p("Date"),v=p("File"),I=p("Blob"),A=p("FileList");const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},N=void 0!==R.FormData?R.FormData:void 0,O=p("URLSearchParams"),[P,w,C,U]=["ReadableStream","Request","Response","Headers"].map(p);function L(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),f(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(m(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function k(e,t){if(m(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,x=e=>!g(e)&&e!==M;const B=(D="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>D&&e instanceof D);var D;const j=p("HTMLFormElement"),F=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),G=p("RegExp"),H=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};L(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const W=p("AsyncFunction"),$=(q="function"==typeof setImmediate,V=y(M.postMessage),q?setImmediate:V?(z=`axios@${Math.random()}`,Y=[],M.addEventListener("message",({source:e,data:t})=>{e===M&&t===z&&Y.length&&Y.shift()()},!1),e=>{Y.push(e),M.postMessage(z,"*")}):e=>setTimeout(e));var q,V,z,Y;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(M):"undefined"!=typeof process&&process.nextTick||$;var J={isArray:f,isArrayBuffer:h,isBuffer:m,isFormData:e=>{let t;return e&&(N&&e instanceof N||y(e.append)&&("formdata"===(t=u(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:_,isNumber:T,isBoolean:e=>!0===e||!1===e,isObject:S,isPlainObject:E,isEmptyObject:e=>{if(!S(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:P,isRequest:w,isResponse:C,isHeaders:U,isUndefined:g,isDate:b,isFile:v,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:I,isRegExp:G,isFunction:y,isStream:e=>S(e)&&y(e.pipe),isURLSearchParams:O,isTypedArray:B,isFileList:A,forEach:L,merge:function e(){const{caseless:t,skipUndefined:n}=x(this)&&this||{},r={},o=(o,a)=>
vendor: 6,543 bytes, line 2
2{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=t&&k(r,a)||a;E(r[i])&&E(o)?r[i]=e(r[i],o):E(o)?r[i]=e({},o):f(o)?r[i]=o.slice():n&&g(o)||(r[i]=o)};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&L(arguments[a],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(L(t,(t,r)=>{n&&y(t)?Object.defineProperty(e,r,{value:o(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,s;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],r&&!r(s,e,t)||c[s]||(t[s]=e[s],c[s]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:p,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!T(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[s]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:j,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,n)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];y(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return f(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:M,isContextDefined:x,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[c]&&e[s])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(S(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[r]=e;const o=f(e)?[]:{};return L(e,(e,t)=>{const a=n(e,r+1);!g(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:W,isThenable:e=>e&&(S(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:$,asap:K,isIterable:e=>null!=e&&y(e[s])};class X extends Error{static from(e,t,n,r,o,a){const i=new X(e.message,t||e.code,n,r,o);return i.cause=e,i.name=e.name,null!=e.status&&null==i.status&&(i.status=e.status),a&&Object.assign(i,a),i}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}}X.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",X.ERR_BAD_OPTION="ERR_BAD_OPTION",X.ECONNABORTED="ECONNABORTED",X.ETIMEDOUT="ETIMEDOUT",X.ERR_NETWORK="ERR_NETWORK",X.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",X.ERR_DEPRECATED="ERR_DEPRECATED",X.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",X.ERR_BAD_REQUEST="ERR_BAD_REQUEST",X.ERR_CANCELED="ERR_CANCELED",X.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",X.ERR_INVALID_URL="ERR_INVALID_URL";var Q=X;function Z(e){return J.isPlainObject(e)||J.isArray(e)}function ee(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function te(e,t,n){return e?e.concat(t).map(function(e,t){return e=ee(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ne=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});var re=function(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!J.isUndefined(t[e])})).metaTokens,o=n.visitor||u,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(J.isBoolean(e))return e.toString();if(!s&&J.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(J.isReactNative(t)&&J.isReactNativeBlob(e))return t.append(te(o,n,a),c(e)),!1;if(e&&!o&&"object"==typeof e)if(J.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(Z)}(e)||(J.isFileList(e)||J.endsWith(n,"[]"))&&(s=J.toArray(e)))return n=ee(n),s.forEach(function(e,r){!J.isUndefined(e)&&null!==e&&t.append(!0===i?te([n],r,a):null===i?n:n+"[]",c(e))}),!1;return!!Z(e)||(t.append(te(o,n,a),c(e)),!1)}const l=[],p=Object.assign(ne,{defaultVisitor:u,convertValue:c,isVisitable:Z});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!J.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),J.forEach(n,function(n,a){!0===(!(J.isUndefined(n)||null===n)&&o.call(t,n,J.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a])}),l.pop()}}(e),t};function oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ae(e,t){this._pairs=[],e&&re(e,this,t)}const ie=ae.prototype;ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,oe)}:oe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var se=ae;function ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ue(e,t,n){if(!t)return e;const r=n&&n.encode||ce,o=J.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let i;if(i=a?a(t,o):J.isURLSearchParams(t)?t.toString():new se(t,o).toString(r),i){const t=e.indexOf("#");
vendor: 20,274 bytes, line 2
2-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var le=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(t){null!==t&&e(t)})}},pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},de={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:se,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const fe="undefined"!=typeof window&&"undefined"!=typeof document,ge="object"==typeof navigator&&navigator||void 0,me=fe&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_e=fe&&window.location.href||"http://localhost";var ye={...r,...de};var Te=function(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&J.isArray(r)?r.length:a,s)return J.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&J.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&J.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(e,r)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null};const Se={transitional:pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=J.isObject(e);o&&J.isHTMLForm(e)&&(e=new FormData(e));if(J.isFormData(e))return r?JSON.stringify(Te(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return re(e,new ye.classes.URLSearchParams,{visitor:function(e,t,n,r){return ye.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=J.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return re(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Se.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw Q.from(o,Q.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ye.classes.FormData,Blob:ye.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Se.headers[e]={}});var Ee=Se;const be=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ve=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&be[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};n.dn(ve);const Ie=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Re(e){return!1===e||null==e?e:J.isArray(e)?e.map(Re):String(e)}function Ne(e,t,n,r,o){return J.isFunction(r)?r.call(this,t,n):(o&&(t=n),J.isString(t)?J.isString(r)?-1!==t.indexOf(r):J.isRegExp(r)?r.test(t):void 0:void 0)}class Oe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ae(t);if(!o)throw new Error("header name must be a non-empty string");const a=J.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Re(e))}const a=(e,t)=>J.forEach(e,(e,n)=>o(e,n,t));if(J.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a(ve(e),t);else if(J.isObject(e)&&J.isIterable(e)){let n,r,o={};for(const t of e){if(!J.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?J.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ae(e)){const n=J.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(J.isFunction(t))return t.call(this,e,n);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const n=J.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ne(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ae(e)){const o=J.findKey(n,e);!o||t&&!Ne(0,n[o],o,t)||(delete n[o],r=!0)}}return J.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ne(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return J.forEach(this,(r,o)=>{const a=J.findKey(n,o);if(a)return t[a]=Re(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Re(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&J.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ie]=this[Ie]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ae(e);t[r]||(!function(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return J.isArray(e)?e.forEach(r):r(e),this}}Oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Oe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),J.freezeMethods(Oe);var Pe=Oe;function we(e,t){const n=this||Ee,r=t||n,o=Pe.from(r.headers);let a=r.data;return J.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Ce(e){return!(!e||!e.__CANCEL__)}var Ue=class extends Q{constructor(e,t,n){super(null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Le(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var ke=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=r[i];o||(o=c),n[a]=s,r[a]=c;let l=i,p=0;for(;l!==a;)p+=n[l++],l%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}};var Me=function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]};const xe=(e,t,n=3)=>{let r=0;const o=ke(50,250);return Me(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,c=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Be=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},De=e=>(...t)=>J.asap(()=>e(...t));var je=ye.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ye.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ye.origin),ye.navigator&&/(msie|trident)/i.test(ye.navigator.userAgent)):()=>!0,Fe=ye.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&s.push(`path=${r}`),J.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),J.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ge(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const He=e=>e instanceof Pe?{...e}:e;function We(e,t){t=t||{};const n={};function r(e,t,n,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,n,o){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!J.isUndefined(t))return r(void 0,t)}function i(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(He(e),He(t),0,!0)};return J.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=J.hasOwnProp(c,r)?c[r]:o,i=a(e[r],t[r],r);J.isUndefined(i)&&a!==s||(n[r]=i)}),n}var $e=e=>{const t=We({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Pe.from(i),t.url=ue(Ge(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),J.isFormData(n))if(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(J.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(ye.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||!1!==r&&je(t.url))){const e=o&&a&&Fe.read(a);e&&i.set(o,e)}return t};n.dn($e);var qe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=$e(e);let o=r.data;const a=Pe.from(r.headers).normalize();let i,s,c,u,l,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function g(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function h(){if(!m)return;const r=Pe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Le(function(e){t(e),g()},function(e){n(e),g()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=h:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(h)},m.onabort=function(){m&&(n(new Q("Request aborted",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new Q(r,Q.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||pe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Q(t,o.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&J.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),J.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,l]=xe(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([s,u]=xe(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ue(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);_&&-1===ye.protocols.indexOf(_)?n(new Q("Unsupported protocol "+_+":",Q.ERR_BAD_REQUEST,e)):m.send(o||null)})};var Ve=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new Ue(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new Q(`timeout of ${t}ms exceeded`,Q.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>J.asap(i),s}};const ze=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ye=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ke=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ye(e))yield*ze(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel(e){return s(e),o.return()}},{highWaterMark:2})},{isFunction:Je}=J,Xe=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:Qe,TextEncoder:Ze}=J.global,et=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},tt=e=>{e=J.merge.call({skipUndefined:!0},Xe,e);const{fetch:t,Request:n,Response:r}=e,o=t?Je(t):"function"==typeof fetch,a=Je(n),i=Je(r);if(!o)return!1;const s=o&&Je(Qe),c=o&&("function"==typeof Ze?(u=new Ze,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const l=a&&s&&et(()=>{let e=!1;const t=new n(ye.origin,{body:new Qe,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),p=i&&s&&et(()=>J.isReadableStream(new r("").body)),d={stream:p&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e)){const t=new n(ye.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:s,signal:c,cancelToken:u,timeout:g,onDownloadProgress:m,onUploadProgress:h,responseType:_,headers:y,withCredentials:T="same-origin",fetchOptions:S}=$e(e),E=t||fetch;_=_?(_+"").toLowerCase():"text";let b=Ve([c,u&&u.toAbortSignal()],g),v=null;const I=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let A;try{if(h&&l&&"get"!==i&&"head"!==i&&0!==(A=await f(y,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(J.isFormData(s)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=Be(A,xe(De(h)));s=Ke(t.body,65536,e,n)}}J.isString(T)||(T=T?"include":"omit");const t=a&&"credentials"in n.prototype,c={...S,signal:b,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:t?T:void 0};v=a&&new n(o,c);let u=await(a?E(v,S):E(o,c));const g=p&&("stream"===_||"response"===_);if(p&&(m||g&&I)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=J.toFiniteNumber(u.headers.get("content-length")),[n,o]=m&&Be(t,xe(De(m),!0))||[];u=new r(Ke(u.body,65536,n,()=>{o&&o(),I&&I()}),e)}_=_||"text";let R=await d[J.findKey(d,_)||"text"](u,e);return!g&&I&&I(),await new Promise((t,n)=>{Le(t,n,{data:R,headers:Pe.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:v})})}catch(R){if(I&&I(),R&&"TypeError"===R.name&&/Load failed|fetch/i.test(R.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,v,R&&R.response),{cause:R.cause||R});throw Q.from(R,R&&R.code,e,v,R&&R.response)}}},nt=new Map,rt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,c=a.length,u=nt;for(;c--;)i=a[c],s=u.get(i),void 0===s&&u.set(i,s=c?new Map:tt(t)),u=s;return s};rt();const ot={http:null,xhr:qe,fetch:{get:rt}};J.forEach(ot,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const at=e=>`- ${e}`,it=e=>J.isFunction(e)||null===e||!1===e;var st={getAdapter:function(e,t){e=J.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!it(r)&&(o=ot[(n=String(r)).toLowerCase()],void 0===o))throw new Q(`Unknown adapter '${n}'`);if(o&&(J.isFunction(o)||(o=o.get(t))))break;a[n||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(at).join("\n"):" "+at(e[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:ot};function ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ue(null,e)}function ut(e){ct(e),e.headers=Pe.from(e.headers),e.data=we.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return st.getAdapter(e.adapter||Ee.adapter,e)(e).then(function(t){return ct(e),t.data=we.call(e,e.transformResponse,t),t.headers=Pe.from(t.headers),t},function(t){return Ce(t)||(ct(e),t&&t.response&&(t.response.data=we.call(e,e.transformResponse,t.response),t.response.headers=Pe.from(t.response.headers))),Promise.reject(t)})}const lt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const pt={};lt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.13.6] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>
vendor: 4,481 bytes, line 2
2{if(!1===e)throw new Q(r(o," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!pt[o]&&(pt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},lt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var dt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new Q("option "+a+" must be "+n,Q.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Q("Unknown option "+a,Q.ERR_BAD_OPTION)}},validators:lt};const ft=dt.validators;class gt{constructor(e){this.defaults=e||{},this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=We(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&dt.assertOptions(n,{silentJSONParsing:ft.transitional(ft.boolean),forcedJSONParsing:ft.transitional(ft.boolean),clarifyTimeoutError:ft.transitional(ft.boolean),legacyInterceptorReqResOrdering:ft.transitional(ft.boolean)},!1),null!=r&&(J.isFunction(r)?t.paramsSerializer={serialize:r}:dt.assertOptions(r,{encode:ft.function,serialize:ft.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dt.assertOptions(t,{baseUrl:ft.spelling("baseURL"),withXsrfToken:ft.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&J.merge(o.common,o[t.method]);o&&J.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Pe.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||pe;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,p=0;if(!s){const e=[ut.bind(this),void 0];for(e.unshift(...i),e.push(...c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=i.length;let d=t;for(;p<l;){const e=i[p++],t=i[p++];try{d=e(d)}catch(f){t.call(this,f);break}}try{u=ut.call(this,d)}catch(f){return Promise.reject(f)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return ue(Ge((e=We(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],function(e){gt.prototype[e]=function(t,n){return this.request(We(n||{},{method:e,url:t,data:(n||{}).data}))}}),J.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(We(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}gt.prototype[e]=t(),gt.prototype[e+"Form"]=t(!0)});var mt=gt;class ht{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Ue(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ht(function(t){e=t}),cancel:e}}}var _t=ht;const yt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
2setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yt).forEach(([e,t])=>{yt[t]=e});var Tt=yt;const St=function e(t){const n=new mt(t),r=o(mt.prototype.request,n);return J.extend(r,mt.prototype,n,{allOwnKeys:!0}),J.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(We(t,n))},r}(Ee);St.Axios=mt,St.CanceledError=Ue,St.CancelToken=_t,St.isCancel=Ce,St.VERSION="1.13.6",St.toFormData=re,St.AxiosError=Q,St.Cancel=St.CanceledError,St.all=function(e){return Promise.all(e)},St.spread=function(e){return function(t){return e.apply(null,t)}},St.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},St.mergeConfig=We,St.AxiosHeaders=Pe,St.formToJSON=e=>Te(J.isHTMLForm(e)?new FormData(e):e),St.getAdapter=st.getAdapter,St.HttpStatusCode=Tt,St.default=St;var Et=St},75535:function(e,t,n){"use strict";n.r(t),n.d(t,{Script:function(){return g},ScriptStrategy:function(){return u}});var r=n(96540),o=n(86462);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const i=new Map,s={get:e=>i.get(e)||[],set(e,t){const n=i.get(e)||[];n.push(t),i.set(e,n)},delete(e){i.delete(e)}},c="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){const t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)};var u,l;(l=u||(u={})).postHydrate="post-hydrate",l.idle="idle",l.offMainThread="off-main-thread";const p=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),d=new Set,f=new Map;function g(e){return r.createElement(o.Location,null,()=>r.createElement(m,e))}function m(e){const{src:t,strategy:n=u.postHydrate}=e||{},{pathname:i}=(0,o.useLocation)();if((0,r.useEffect)(()=>{let t;switch(n){case u.postHydrate:t=h(e);break;case u.idle:c(()=>{t=h(e)});break;case u.offMainThread:{const t=y(e);s.set(i,t)}}return()=>{const{script:e,loadCallback:n,errorCallback:r}=t||{};n&&(null==e||e.removeEventListener("load",n)),r&&(null==e||e.removeEventListener("error",r)),null==e||e.remove()}},[]),n===u.offMainThread){const o=_(e),c=y(e);return"undefined"==typeof window&&s.set(i,c),r.createElement("script",o?a({type:"text/partytown","data-strategy":n,crossOrigin:"anonymous"},c,{dangerouslySetInnerHTML:{__html:_(e)}}):a({type:"text/partytown",src:T(t),"data-strategy":n,crossOrigin:"anonymous"},c))}return null}function h(e){const{id:t,src:n,strategy:r=u.postHydrate,onLoad:o,onError:i}=e||{},s=t||n,c=["load","error"],l={load:o,error:i};if(s){for(const e of c)if(null!=l&&l[e]){var p;const t=f.get(s)||{},{callbacks:n=[]}=(null==t?void 0:t[e])||{};var g,m;n.push(null==l?void 0:l[e]),null!=t&&null!=(p=t[e])&&p.event?null==l||null==(g=l[e])||g.call(l,null==t||null==(m=t[e])?void 0:m.event):f.set(s,a({},t,{[e]:{callbacks:n}}))}if(d.has(s))return null}const h=_(e),T=y(e),E=document.createElement("script");t&&(E.id=t),E.dataset.strategy=r;for(const[a,u]of Object.entries(T))E.setAttribute(a,u);h&&(E.textContent=h),n&&(E.src=n);const b={};if(s){for(const e of c){const t=t=>S(t,s,e);E.addEventListener(e,t),b[`${e}Callback`]=t}d.add(s)}return document.body.appendChild(E),{script:E,loadCallback:b.loadCallback,errorCallback:b.errorCallback}}function _(e){const{dangerouslySetInnerHTML:t,children:n=""}=e||{},{__html:r=""}=t||{};return r||n}function y(e){const t={};for(const[n,r]of Object.entries(e))p.has(n)||(t[n]=r);return t}function T(e){if(e)return`/__third-party-proxy?url=${encodeURIComponent(e)}`}function S(e,t,n){const r=f.get(t)||{};for(const a of(null==r||null==(o=r[n])?void 0:o.callbacks)||[]){var o;a(e)}f.set(t,{[n]:{event:e}})}n.d(t,["collectedScriptsByPage",0,s,"scriptCache",0,d,"scriptCallbackCache",0,f])},69294:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});var r=n(4233)},43276:function(e,t,n){"use strict";n.d(t,{A:function(){return O}});var r={};n.r(r),n.d(r,{exclude:function(){return N},extract:function(){return E},parse:function(){return b},parseUrl:function(){return I},pick:function(){return R},stringify:function(){return v},stringifyUrl:function(){return A}});const o="%[a-f0-9]{2}",a=new RegExp("("+o+")|([^%]+?)","gi"),i=new RegExp("("+o+")+","gi");function s(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],s(n),s(r))}function c(e){try{return decodeURIComponent(e)}catch{let t=e.match(a)||[];for(let n=1;n<t.length;n++)t=(e=s(t,n).join("")).match(a)||[];return e}}function u(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=i.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=c(n[0]);e!==n[0]&&(t[n[0]]=e)}n=i.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const o of r)e=e.replace(new RegExp(o,"g"),t[o]);return e}(e)}}function l(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function p(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);if(o.enumerable){t(r,e[r],e)&&Object.defineProperty(n,r,o)}}return n}const d=e=>null==e,f=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),g=Symbol("encodeFragmentIdentifier");function m(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?f(e):encodeURIComponent(e):e}function _(e,t){return t.decode?u(e):e}function y(e){return Array.isArray(e)?e.sort():"object"==typeof e?y(Object.keys(e)).sort((e,t)=>
vendor: 4,231 bytes, line 2
2Number(e)-Number(t)).map(t=>e[t]):e}function T(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function S(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function E(e){const t=(e=T(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function b(e,t){m((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!o&&_(n,e).includes(e.arrayFormatSeparator);n=a?_(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map(t=>_(t,e)):null===n?n:_(n,e);r[t]=i};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?_(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map(t=>_(t,e));void 0!==r[t]?r[t]=[...r[t],...a]:r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[a,i]=l(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:_(i,t),n(_(a,t),i,r)}for(const[o,a]of Object.entries(r))if("object"==typeof a&&null!==a)for(const[e,n]of Object.entries(a))a[e]=S(n,t);else r[o]=S(a,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=y(n):e[t]=n,e},Object.create(null))}function v(e,t){if(!e)return"";m((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&d(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[h(t,e),"[",o,"]"].join("")]:[...n,[h(t,e),"[",h(o,e),"]=",h(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[h(t,e),"[]"].join("")]:[...n,[h(t,e),"[]=",h(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[h(t,e),":list="].join("")]:[...n,[h(t,e),":list=",h(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[h(n,e),t,h(o,e)].join("")]:[[r,h(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,h(t,e)]:[...n,[h(t,e),"=",h(r,e)].join("")]}}(t),o={};for(const[i,s]of Object.entries(e))n(i)||(o[i]=s);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map(n=>{const o=e[n];return void 0===o?"":null===o?h(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?h(n,t)+"[]":o.reduce(r(n),[]).join("&"):h(n,t)+"="+h(o,t)}).filter(e=>e.length>0).join("&")}function I(e,t){t={decode:!0,...t};let[n,r]=l(e,"#");return void 0===n&&(n=e),{url:n?.split("?")?.[0]??"",query:b(E(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:_(r,t)}:{}}}function A(e,t){t={encode:!0,strict:!0,[g]:!0,...t};const n=T(e.url).split("?")[0]||"";let r=v({...b(E(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);
2if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[g]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function R(e,t,n){n={parseFragmentIdentifier:!0,[g]:!1,...n};const{url:r,query:o,fragmentIdentifier:a}=I(e,n);return A({url:r,query:p(o,t),fragmentIdentifier:a},n)}function N(e,t,n){return R(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}var O=r},32389:function(e,t,n){"use strict";n.d(t,{xC:function(){return J},x6:function(){return $},Bd:function(){return K}});var r=n(43693),o=n(91847),a=n(96540),i=n(73738),s=n(34915),c=n.n(s),u=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(c()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(u),a=null;null!==(a=o.exec(e));)if(a[0].trim())if(a[1]){var i=a[1].trim(),s=[i,""];i.indexOf("=")>-1&&(s=i.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var p=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,f=Object.create(null);function g(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(g,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var m={parse:function(e,t){t||(t={}),t.components||(t.components=f);var n,r=[],o=[],a=-1,i=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(p,function(s,c){if(i){if(s!=="</"+n.name+">")return;i=!1}var u,p="/"!==s.charAt(1),f=s.startsWith("\x3c!--"),g=c+s.length,m=e.charAt(g);if(f){var h=l(s);return a<0?(r.push(h),r):((u=o[a]).children.push(h),r)}if(p&&(a++,"tag"===(n=l(s)).type&&t.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!m||"<"===m||n.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===a&&r.push(n),(u=o[a-1])&&u.children.push(n),o[a]=n),(!p||n.voidElement)&&(a>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(a--,n=-1===a?r:o[a]),!i&&"<"!==m&&m)){u=-1===a?r:o[a].children;var _=e.indexOf("<",g),y=e.slice(g,-1===_?void 0:_);d.test(y)&&(y=" "),(_>-1&&a+u.length>=0||" "!==y)&&u.push({type:"text",content:y})}}),r},stringify:function(e){return e.reduce(function(e,t){return e+g("",t)},"")}},h=m;function _(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var y={};function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&y[t[0]]||("string"==typeof t[0]&&(y[t[0]]=new Date),_.apply(void 0,t))}function S(e,t,n){e.loadNamespaces(t,function(){if(e.isInitialized)n();else{e.on("initialized",function t(){setTimeout(function(){e.off("initialized",t)},0),n()})}})}var E=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,b={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},v=function(e){return b[e]};var I,A={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(E,v)}};function R(){return A}function N(){return I}var O=["format"],P=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,372 bytes, line 2
2t%2?w(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function L(e){return e?e.props?e.props.children:e.children:[]}function k(e){return Array.isArray(e)?e:[e]}function M(e,t){if(!e)return"";var n="",r=k(e),s=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach(function(e,r){if("string"==typeof e)n+="".concat(e);else if((0,a.isValidElement)(e)){var c=Object.keys(e.props).length,u=s.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===c)n+="<".concat(e.type,"/>");else if(l||u&&0===c)if(e.props.i18nIsDynamicList)n+="<".concat(r,"></").concat(r,">");else if(u&&1===c&&"string"==typeof l)n+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var p=M(l,t);n+="<".concat(r,">").concat(p,"</").concat(r,">")}else n+="<".concat(r,"></").concat(r,">")}else if(null===e)_("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===i(e)){var d=e.format,f=o(e,O),g=Object.keys(f);if(1===g.length){var m=d?"".concat(g[0],", ").concat(d):g[0];n+="{{".concat(m,"}}")}else _("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else _("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)}),n}function x(e,t,n,r,o,s){if(""===t)return[];var c=r.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(c.join("|")).test(t);if(!e&&!u)return[t];var l={};!function e(t){k(t).forEach(function(t){"string"!=typeof t&&(U(t)?e(L(t)):"object"!==i(t)||(0,a.isValidElement)(t)||Object.assign(l,t))})}(e);var p=h.parse("<0>".concat(t,"</0>")),d=C(C({},l),o);function f(e,t,n){var r=L(e),o=m(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every(function(e){return(0,a.isValidElement)(e)})}(r)&&0===o.length?r:o}function g(e,t,n,r,o){e.dummy&&(e.children=t),n.push((0,a.cloneElement)(e,C(C({},e.props),{},{key:r}),o?void 0:t))}function m(t,o,l){var p=k(t);return k(o).reduce(function(t,o,h){var _,y,T,S=o.children&&o.children[0]&&o.children[0].content&&n.services.interpolator.interpolate(o.children[0].content,d,n.language);if("tag"===o.type){var E=p[parseInt(o.name,10)];!E&&1===l.length&&l[0][o.name]&&(E=l[0][o.name]),E||(E={});var b=0!==Object.keys(o.attrs).length?(_={props:o.attrs},(T=C({},y=E)).props=Object.assign(_.props,y.props),T):E,v=(0,a.isValidElement)(b),I=v&&U(o,!0)&&!o.voidElement,A=u&&"object"===i(b)&&b.dummy&&!v,R="object"===i(e)&&null!==e&&Object.hasOwnProperty.call(e,o.name);if("string"==typeof b){var N=n.services.interpolator.interpolate(b,d,n.language);t.push(N)}else if(U(b)||I){g(b,f(b,o,l),t,h)}else if(A){var O=m(p,o.children,l);t.push((0,a.cloneElement)(b,C(C({},b.props),{},{key:h}),O))}else if(Number.isNaN(parseFloat(o.name))){if(R)g(b,f(b,o,l),t,h,o.voidElement);else if(r.transSupportBasicHtmlNodes&&c.indexOf(o.name)>-1)if(o.voidElement)t.push((0,a.createElement)(o.name,{key:"".concat(o.name,"-").concat(h)}));else{var P=m(p,o.children,l);t.push((0,a.createElement)(o.name,{key:"".concat(o.name,"-").concat(h)},P))}else if(o.voidElement)t.push("<".concat(o.name," />"));else{var w=m(p,o.children,l);t.push("<".concat(o.name,">").concat(w,"</").concat(o.name,">"))}}else if("object"!==i(b)||v)1===o.children.length&&S?t.push((0,a.cloneElement)(b,C(C({},b.props),{},{key:h}),S)):t.push((0,a.cloneElement)(b,C(C({},b.props),{},{key:h})));else{var L=o.children[0]?S:null;L&&t.push(L)}}else if("text"===o.type){var k=r.transWrapTextNodes,M=s?r.unescape(n.services.interpolator.interpolate(o.content,d,n.language)):n.services.interpolator.interpolate(o.content,d,n.language);k?t.push((0,a.createElement)(k,{key:"".concat(o.name,"-").concat(h)},M)):t.push(M)}return t},[])}return L(m([{dummy:!0,children:e||[]}],p,k(e||[]))[0])}function B(e){var t=e.children,n=e.count,r=e.parent,i=e.i18nKey,s=e.context,c=e.tOptions,u=void 0===c?{}:c,l=e.values,p=e.defaults,d=e.components,f=e.ns,g=e.i18n,m=e.t,h=e.shouldUne
2scape,_=o(e,P),y=g||N();if(!y)return T("You will need to pass in an i18next instance by using i18nextReactModule"),t;var S=m||y.t.bind(y)||function(e){return e};s&&(u.context=s);var E=C(C({},R()),y.options&&y.options.react),b=f||S.ns||y.options&&y.options.defaultNS;b="string"==typeof b?[b]:b||["translation"];var v=p||M(t,E)||E.transEmptyNodeValue||i,I=E.hashTransKey,A=i||(I?I(v):v),O=l?u.interpolation:{interpolation:C(C({},u.interpolation),{},{prefix:"#$?",suffix:"?$#"})},w=C(C(C(C({},u),{},{count:n},l),O),{},{defaultValue:v,ns:b}),U=x(d||t,A?S(A,w):v,y,E,w,h),L=void 0!==r?r:E.defaultTransParent;return L?(0,a.createElement)(L,_,U):U}var D=n(17383),j=n(34579);var F=(0,a.createContext)(),G=function(){function e(){D(this,e),this.usedNamespaces={}}return j(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();var H=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){var t=e.children,n=e.count,i=e.parent,s=e.i18nKey,c=e.context,u=e.tOptions,l=void 0===u?{}:u,p=e.values,d=e.defaults,f=e.components,g=e.ns,m=e.i18n,h=e.t,_=e.shouldUnescape,y=o(e,H),T=(0,a.useContext)(F)||{},S=T.i18n,E=T.defaultNS,b=m||S||N(),v=h||b&&b.t.bind(b);return B(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({children:t,count:n,parent:i,i18nKey:s,context:c,tOptions:l,values:p,defaults:d,components:f,ns:g||v&&v.ns||E||b&&b.options&&b.options.defaultNS,i18n:b,t:h,shouldUnescape:_},y))}var q=n(85715);function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Y=function(e,t){var n=(0,a.useRef)();return(0,a.useEffect)(function(){n.current=t?n.current:e},[e,t]),n.current};function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,a.useContext)(F)||{},o=r.i18n,i=r.defaultNS,s=n||o||N();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new G),!s){T("You will need to pass in an i18next instance by using initReactI18next");var c=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[c,{},!1];return u.t=c,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&T("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=z(z(z({},R()),s.options.react),t),p=l.useSuspense,d=l.keyPrefix,f=e||i||s.options&&s.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(f);var g=(s.isInitialized||s.initializedStoreOnce)&&f.every(function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!i(r,e)||o&&!i(a,e)))}
2(e,t,n):(T("i18n.languages were undefined or empty",t.languages),!0)}(e,s,l)});function m(){return s.getFixedT(null,"fallback"===l.nsMode?f:f[0],d)}var h=(0,a.useState)(m),_=q(h,2),y=_[0],E=_[1],b=f.join(),v=Y(b),I=(0,a.useRef)(!0);(0,a.useEffect)(function(){var e=l.bindI18n,t=l.bindI18nStore;function n(){I.current&&E(m)}return I.current=!0,g||p||S(s,f,function(){I.current&&E(m)}),g&&v&&v!==b&&I.current&&E(m),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){I.current=!1,e&&s&&e.split(" ").forEach(function(e){return s.off(e,n)}),t&&s&&t.split(" ").forEach(function(e){return s.store.off(e,n)})}},[s,b]);var A=(0,a.useRef)(!0);(0,a.useEffect)(function(){I.current&&!A.current&&E(m),A.current=!1},[s,d]);var O=[y,s,g];if(O.t=y,O.i18n=s,O.ready=g,g)return O;if(!g&&!p)return O;throw new Promise(function(e){S(s,f,function(){e()})})}function J(e){var t=e.i18n,n=e.defaultNS,r=e.children,o=(0,a.useMemo)(function(){return{i18n:t,defaultNS:n}},[t,n]);return(0,a.createElement)(F.Provider,{value:o},r)}},9072:function(e,t,n){"use strict";n.d(t,{N9:function(){return A},oR:function(){return M}});var r=n(96540);function o(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=o(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var a=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o(e))&&(r&&(r+=" "),r+=t);return r};const i=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e,c=e=>"function"==typeof e,u=e=>s(e)||c(e)?e:null,l=e=>(0,r.isValidElement)(e)||s(e)||c(e)||i(e);function p(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:a=!0,collapseDuration:i=300}=e;return function(e){let{children:s,position:c,preventExitTransition:u,done:l,nodeRef:p,isIn:d}=e;const f=o?`${t}--${c}`:t,g=o?`${n}--${c}`:n,m=(0,r.useRef)(0);return(0,r.useLayoutEffect)(()=>{const e=p.current,t=f.split(" "),n=r=>{r.target===p.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,r.useEffect)(()=>{const e=p.current,t=()=>{e.removeEventListener("animationend",t),a?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}(e,l,i):l()};d||(u?t():(m.current=1,e.className+=` ${g}`,e.addEventListener("animationend",t)))},[d]),r.createElement(r.Fragment,null,s)}}function d(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const f={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},g=e=>{let{theme:t,type:n,...o}=e;return r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},m={info:function(e){return r.createElement(g,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(g,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(g,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(g,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}};function h(e){const[,t]=(0,r.useReducer)(e=>e+1,0),[n,o]=(0,r.useState)([]),a=(0,r.useRef)(null),p=(0,r.useRef)(new Map).current,g=e=>-1!==n.indexOf(e),h=(0,r.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:g,getToast:e=>p.get(e)}).current;
2function _(e){let{containerId:t}=e;const{limit:n}=h.props;!n||t&&h.containerId!==t||(h.count-=h.queue.length,h.queue=[])}function y(e){o(t=>null==e?[]:t.filter(t=>t!==e))}function T(){const{toastContent:e,toastProps:t,staleId:n}=h.queue.shift();E(e,t,n)}function S(e,n){let{delay:o,staleId:g,..._}=n;if(!l(e)||function(e){return!a.current||h.props.enableMultiContainer&&e.containerId!==h.props.containerId||p.has(e.toastId)&&null==e.updateId}(_))return;const{toastId:S,updateId:b,data:v}=_,{props:I}=h,A=()=>y(S),R=null==b;R&&h.count++;const N={...I,style:I.toastStyle,key:h.toastKey++,...Object.fromEntries(Object.entries(_).filter(e=>{let[t,n]=e;return null!=n})),toastId:S,updateId:b,data:v,closeToast:A,isIn:!1,className:u(_.className||I.toastClassName),bodyClassName:u(_.bodyClassName||I.bodyClassName),progressClassName:u(_.progressClassName||I.progressClassName),autoClose:!_.isLoading&&(O=_.autoClose,P=I.autoClose,!1===O||i(O)&&O>0?O:P),deleteToast(){const e=d(p.get(S),"removed");p.delete(S),f.emit(4,e);const n=h.queue.length;if(h.count=null==S?h.count-h.displayedToast:h.count-1,h.count<0&&(h.count=0),n>0){const e=null==S?h.props.limit:1;if(1===n||1===e)h.displayedToast++,T();else{const t=e>n?n:e;h.displayedToast=t;for(let e=0;e<t;e++)T()}}else t()}};var O,P;N.iconOut=function(e){let{theme:t,type:n,isLoading:o,icon:a}=e,u=null;const l={theme:t,type:n};return!1===a||(c(a)?u=a(l):(0,r.isValidElement)(a)?u=(0,r.cloneElement)(a,l):s(a)||i(a)?u=a:o?u=m.spinner():(e=>e in m)(n)&&(u=m[n](l))),u}(N),c(_.onOpen)&&(N.onOpen=_.onOpen),c(_.onClose)&&(N.onClose=_.onClose),N.closeButton=I.closeButton,!1===_.closeButton||l(_.closeButton)?N.closeButton=_.closeButton:!0===_.closeButton&&(N.closeButton=!l(I.closeButton)||I.closeButton);let w=e;(0,r.isValidElement)(e)&&!s(e.type)?w=(0,r.cloneElement)(e,{closeToast:A,toastProps:N,data:v}):c(e)&&(w=e({closeToast:A,toastProps:N,data:v})),I.limit&&I.limit>0&&h.count>I.limit&&R?h.queue.push({toastContent:w,toastProps:N,staleId:g}):i(o)?setTimeout(()=>{E(w,N,g)},o):E(w,N,g)}function E(e,t,n){const{toastId:r}=t;n&&p.delete(n);const a={content:e,props:t};p.set(r,a),o(e=>[...e,r].filter(e=>e!==n)),f.emit(4,d(a,null==a.props.updateId?"added":"updated"))}return(0,r.useEffect)(()=>(h.containerId=e.containerId,f.cancelEmit(3).on(0,S).on(1,e=>a.current&&y(e)).on(5,_).emit(2,h),()=>{p.clear(),f.emit(3,h)}),[]),(0,r.useEffect)(()=>{h.props=e,h.isToastActive=g,h.displayedToast=n.length}),{getToastToRender:function(t){const n=new Map,r=Array.from(p.values());return e.newestOnTop&&r.reverse(),r.forEach(e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))},containerRef:a,isToastActive:g}}function _(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function T(e){const[t,n]=(0,r.useState)(!1),[o,a]=(0,r.useState)(!1),i=(0,r.useRef)(null),s=(0,r.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,u=(0,r.useRef)(e),{autoClose:l,pauseOnHover:p,closeToast:d,onClick:f,closeOnClick:g}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",E),document.addEventListener("mouseup",b),document.addEventListener("touchmove",E),document.addEventListener("touchend",b);const n=i.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=_(t.nativeEvent),s.y=y(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(t){if(s.boundingRect){const{top:n,bottom:r,left:o,right:a}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=o&&s.x<=a&&s.y>=n&&s.y<=r?S():T()}}function T(){n(!0)}function S(){n(!1)}function E(n){const r=i.current;s.canDrag&&r&&(s.didMove=!0,t&&S(),s.x=_(n),s.y=y(n),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function b(){document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",E
2),document.removeEventListener("touchend",b);const t=i.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return a(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,r.useEffect)(()=>{u.current=e}),(0,r.useEffect)(()=>(i.current&&i.current.addEventListener("d",T,{once:!0}),c(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),()=>{const e=u.current;c(e.onClose)&&e.onClose((0,r.isValidElement)(e.children)&&e.children.props)}),[]),(0,r.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||S(),window.addEventListener("focus",T),window.addEventListener("blur",S)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",T),window.removeEventListener("blur",S))}),[e.pauseOnFocusLoss]);const v={onMouseDown:m,onTouchStart:m,onMouseUp:h,onTouchEnd:h};return l&&p&&(v.onMouseEnter=S,v.onMouseLeave=T),g&&(v.onClick=e=>{f&&f(e),s.canCloseOnClick&&d()}),{playToast:T,pauseToast:S,isRunning:t,preventExitTransition:o,toastRef:i,eventHandlers:v}}function S(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return r.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function E(e){let{delay:t,isRunning:n,closeToast:o,type:i="default",hide:s,className:u,style:l,controlledProgress:p,progress:d,rtl:f,isIn:g,theme:m}=e;const h=s||p&&0===d,_={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};p&&(_.transform=`scaleX(${d})`);const y=a("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),T=c(u)?u({rtl:f,type:i,defaultClassName:y}):a(y,u);return r.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:_,[p&&d>=1?"onTransitionEnd":"onAnimationEnd"]:p&&d<1?null:()=>{g&&o()}})}const b=e=>{const{isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:i}=T(e),{closeButton:s,children:u,autoClose:l,onClick:p,type:d,hideProgressBar:f,closeToast:g,transition:m,position:h,className:_,style:y,bodyClassName:b,bodyStyle:v,progressClassName:I,progressStyle:A,updateId:R,role:N,progress:O,rtl:P,toastId:w,deleteToast:C,isIn:U,isLoading:L,iconOut:k,closeOnClick:M,theme:x}=e,B=a("Toastify__toast",`Toastify__toast-theme--${x}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":M}),D=c(_)?_({rtl:P,position:h,type:d,defaultClassName:B}):a(B,_),j=!!O||!l,F={closeToast:g,type:d,theme:x};let G=null;return!1===s||(G=c(s)?s(F):(0,r.isValidElement)(s)?(0,r.cloneElement)(s,F):S(F)),r.createElement(m,{isIn:U,done:C,position:h,preventExitTransition:n,nodeRef:o},r.createElement("div",{id:w,onClick:p,className:D,...i,style:y,ref:o},r.createElement("div",{...U&&{role:N},className:c(b)?b({type:d}):a("Toastify__toast-body",b),style:v},null!=k&&r.createElement("div",{className:a("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!L})},k),r.createElement("div",null,u)),G,r.createElement(E,{...R&&!j?{key:`pb-${R}`}:{},rtl:P,theme:x,delay:l,isRunning:t,isIn:U,closeToast:g,hide:f,type:d,style:A,className:I,controlledProgress:j,progress:O||0})))}
2,v=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},I=p(v("bounce",!0)),A=(p(v("slide",!0)),p(v("zoom")),p(v("flip")),(0,r.forwardRef)((e,t)=>{const{getToastToRender:n,containerRef:o,isToastActive:i}=h(e),{className:s,style:l,rtl:p,containerId:d}=e;function f(e){const t=a("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":p});return c(s)?s({position:e,rtl:p,defaultClassName:t}):a(t,u(s))}return(0,r.useEffect)(()=>{t&&(t.current=o.current)},[]),r.createElement("div",{ref:o,className:"Toastify",id:d},n((e,t)=>{const n=t.length?{...l}:{...l,pointerEvents:"none"};return r.createElement("div",{className:f(e),style:n,key:`container-${e}`},t.map((e,n)=>{let{content:o,props:a}=e;return r.createElement(b,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},o)}))}))}));A.displayName="ToastContainer",A.defaultProps={position:"top-right",transition:I,autoClose:5e3,closeButton:S,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let R,N=new Map,O=[],P=1;function w(){return""+P++}function C(e){return e&&(s(e.toastId)||i(e.toastId))?e.toastId:w()}function U(e,t){return N.size>0?f.emit(0,e,t):O.push({content:e,options:t}),t.toastId}function L(e,t){return{...t,type:t&&t.type||e,toastId:C(t)}}function k(e){return(t,n)=>U(t,L(e,n))}function M(e,t){return U(e,L("default",t))}M.loading=(e,t)=>
2U(e,L("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),M.promise=function(e,t,n){let r,{pending:o,error:a,success:i}=t;o&&(r=s(o)?M.loading(o,n):M.loading(o.render,{...n,...o}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,o)=>{if(null==t)return void M.dismiss(r);const a={type:e,...u,...n,data:o},i=s(t)?{render:t}:t;return r?M.update(r,{...a,...i}):M(i.render,{...a,...i}),o},p=c(e)?e():e;return p.then(e=>l("success",i,e)).catch(e=>l("error",a,e)),p},M.success=k("success"),M.info=k("info"),M.error=k("error"),M.warning=k("warning"),M.warn=M.warning,M.dark=(e,t)=>U(e,L("default",{theme:"dark",...t})),M.dismiss=e=>{N.size>0?f.emit(1,e):O=O.filter(t=>null!=e&&t.options.toastId!==e)},M.clearWaitingQueue=function(e){return void 0===e&&(e={}),f.emit(5,e)},M.isActive=e=>{let t=!1;return N.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},M.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{const n=function(e,t){let{containerId:n}=t;const r=N.get(n||R);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:w()};a.toastId!==e&&(a.staleId=e);const i=a.render||o;delete a.render,U(i,a)}},0)},M.done=e=>{M.update(e,{progress:1})},M.onChange=e=>(f.on(4,e),()=>{f.off(4,e)}),M.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},M.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},f.on(2,e=>{R=e.containerId||e,N.set(R,e),O.forEach(e=>{f.emit(0,e.content,e.options)}),O=[]}).on(3,e=>{N.delete(e.containerId||e),0===N.size&&f.off(0).off(1).off(5)})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[6593,1869,8935],function(){return t(15898),t(47616)});e.O()}]);
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.