PageSourceSearch

https://app.networked.co/_next/static/chunks/0kctza7rnz7v~.js

js networked.co collected 2026-09-24 10:53:05 UTC 624,807 bytes, 562 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="84578abd-9110-56ab-33b5-3e4b160202ce")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,218412,e=>{e.q("/_next/static/media/Dropdown.0495spbqpuwqg.svg")},125772,e=>{e.q("/_next/static/media/sample-icon.0xwf~qevuuu3w.png")},697621,e=>{e.q("/_next/static/media/recent.0y4hm7664~pcs.svg")},863108,e=>{e.q("/_next/static/media/article.0042zj_1l1v~i.svg")},848723,e=>{e.q("/_next/static/media/photos.0881vlc3030k2.svg")},480446,e=>{e.q("/_next/static/media/videos.0z_y21fpod4bh.svg")},248205,e=>{e.q("/_next/static/media/like_color.0q_kx62ge1rys.svg")},118146,e=>{e.q("/_next/static/media/files_grey.049cen0a8ydbz.svg")},111480,e=>{e.q("/_next/static/media/poll.0zmer2pl9mo7m.svg")},962546,e=>{e.q("/_next/static/media/check_in.09zumn88fhv3m.svg")},411008,e=>{e.q("/_next/static/media/emotions.047kauz.0_ayl.svg")},321211,e=>{e.q("/_next/static/media/recommendations_icon.0~v.4deaf4eqp.svg")},124674,e=>{e.q("/_next/static/media/surveys.04hcupj6dyek-.svg")},333806,e=>{e.q("/_next/static/media/career.0kmee1v-v2zir.svg")},663292,e=>{e.q("/_next/static/media/events.0cbqd-z_9hvk~.svg")},946078,e=>{e.q("/_next/static/media/questionarie.09u~4axp6sx4d.svg")},602752,e=>{e.q("/_next/static/media/business_services.0jpidv5ql8wif.svg")},394058,e=>{e.q("/_next/static/media/fundraising.0l1td21_g0no-.svg")},138976,e=>{e.q("/_next/static/media/home_color.0t49oqmkyj73i.svg")},953621,e=>{e.q("/_next/static/media/home_white.189m_x62kc49z.svg")},746841,e=>{e.q("/_next/static/media/recommendation_color.04wrnzrubfop_.svg")},579107,e=>{e.q("/_next/static/media/recommendation_white.05lhqctjsw0z3.svg")},552406,e=>{e.q("/_next/static/media/recommendation_subcategory_color.13d331t_mav1v.svg")},836836,e=>{e.q("/_next/static/media/recommendation_subcategory_white.11rofqfyeco6~.svg")},151101,e=>{e.q("/_next/static/media/directory_color.05t.6w0f0v6hj.svg")},732701,e=>{e.q("/_next/static/media/directory_white.17x2~cu-utbvs.svg")},77641,e=>{e.q("/_next/static/media/career_color.0lfbosum67p34.svg")},982494,e=>{e.q("/_next/static/media/career_white.0bacy~tgkz.h8.svg")},802177,e=>{e.q("/_next/static/media/events_color.0tw2prw~v5uax.svg")},280997,e=>{e.q("/_next/static/media/events_white.0ioxpjx_rqb2l.svg")},558364,e=>{e.q("/_next/static/media/questions_color.130tkkp8utsy3.svg")},227378,e=>{e.q("/_next/static/media/questions.0hgx9zkubr6k0.svg")},77806,e=>{e.q("/_next/static/media/business_services_color.0l4a-cbi1ch2-.svg")},141204,e=>{e.q("/_next/static/media/business_services_white.07vyxdovkhrb-.svg")},944123,e=>{e.q("/_next/static/media/fundraising_color.0w.vzv8z42tsz.svg")},875466,e=>{e.q("/_next/static/media/fundraising_white.0fgsccwfm95me.svg")},486172,e=>{e.q("/_next/static/media/community_profile_color.17l-zuf13d1kt.svg")},905118,e=>{e.q("/_next/static/media/community_profile_white.0~qao0qwq_z7e.svg")},90026,e=>{e.q("/_next/static/media/community_settings_color.0d.ctgdj9e14-.svg")},710568,e=>{e.q("/_next/static/media/community_settings_white.024x45dk2va61.svg")},20053,e=>{e.q("/_next/static/media/community_analytics_color.1736moh8zng_w.svg")},345183,e=>{e.q("/_next/static/media/integrated_tools_color.0qy~vs0-~iuej.svg")},968483,e=>{e.q("/_next/static/media/community_analytics_white.0-_xiufo~2pkq.svg")},550648,e=>{e.q("/_next/static/media/manage_invitation_color.0ximvwiorg29v.svg")},39802,e=>{e.q("/_next/static/media/manage_invitation_whtie.0jbss2ww33myc.svg")},657193,e=>{e.q("/_next/static/media/invite_remove_color.0rf.yyuuwszth.svg")},815082,e=>{e.q("/_next/static/media/invite_remove_white.163kr6~78ah_7.svg")},648923,e=>{e.q("/_next/static/media/sub_aff_color.08_xvudcuayal.svg")},406634,e=>{e.q("/_next/static/media/sub_aff_white.0voqx7htte.3j.svg")},519197,e=>{e.q("/_next/static/media/media_center_color.0.uh17-wobq-e.svg")},778556,e=>{e.q("/_next/static/media/media_center_white.0fd7ity.rs.-u.svg")},375033,e=>{e.q("/_next/static/media/community-management-submenu.179260zibxx88.svg")},968743,e=>{e.q("/_next/static/media/filter_white.0wsgh_luoa_9g.svg")},267010,e=>{e.q("/_next/static/media/HomeBanner.135c-x_0g4z1p.png")},269686,e=>{e.q("/_next/static/media/featurebg.0ph-22b6dl11i.png")},553362,e=>{e.q("/_next/static/media/networkbg.0cy6hsa7441yk.png")},767521,e=>{e.q("/_next/static/media/HeroSection.0krpx6p4.cfs5.png")},370913,e=>{e.q("/_next/static/media/affiliateBanner.0poqa3ou4irx4.png")},699837,e=>{e.q("/_next/static/media/aboutus-bg.0810zb77piwbm.png")},358186,e=>
2{e.q("/_next/static/media/custom-checkbox-intermediate-icon.0iqt2vcmj7sq2.svg")},961068,e=>{e.q("/_next/static/media/checked.0ufot6gtxo.xw.svg")},281525,e=>{e.q("/_next/static/media/selected.17cmmh~fqsi8o.svg")},720160,e=>{e.q("/_next/static/media/main-bg.04daoyeuw~kej.png")},544542,e=>{e.q("/_next/static/media/Unionballon.0_4w3yrb.c2jt.png")},368857,e=>{e.q("/_next/static/media/Unionpara.05fh.656~anrt.png")},194182,(e,t,n)=>{t.exports=e.r(161457)},258819,e=>{e.v({closeButton:"GlobalMobilePopup-module-scss-module__l8Q1wq__closeButton",description:"GlobalMobilePopup-module-scss-module__l8Q1wq__description",downloadContent:"GlobalMobilePopup-module-scss-module__l8Q1wq__downloadContent",popupOverlay:"GlobalMobilePopup-module-scss-module__l8Q1wq__popupOverlay",title:"GlobalMobilePopup-module-scss-module__l8Q1wq__title"})},503617,(e,t,n)=>{"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,n){let r=new Date;r.setTime(r.getTime()+3456e7),document.cookie=e+"="+t+";path=/"+(n?";domain="+n:"")+";expires="+r.toUTCString()}function a(e){let t=("; "+document.cookie).split("; ".concat(e,"="));return t.length>=2?t[1].split(";")[0]:""}Object.defineProperty(n,"__esModule",{value:!0}),n.autoAttributesPlugin=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("u"<typeof window)throw Error("autoAttributesPlugin only works in the browser");let t=e.uuidCookieName||"gbuuid",n=e.uuidCookieDomain||"",r=e.uuidKey||"id",s=e.uuid||"";function l(){var e;n?(e=t,document.cookie=e+"=;path=/;expires=Thu, 01 Jan 1970 00:00:00 GMT",o(t,s,n),a(t)!==s&&o(t,s)):o(t,s)}function u(e){var n,o;let u=navigator.userAgent,c=s||(s=a(t))?s:s=(o=window.crypto)&&o.randomUUID?o.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^(o&&o.getRandomValues?o.getRandomValues(new Uint8Array(1))[0]:Math.floor(256*Math.random()))&15>>e/4).toString(16));(null!=(n=e.uuidAutoPersist)?n:!e.uuid)&&l();let d=location;return i(i(i(i({},function(){if("u"<typeof window||!window.dataLayer||!window.dataLayer.forEach)return{};let e={};return window.dataLayer.forEach(t=>{!t||"object"!=typeof t||"length"in t||"event"in t||Object.keys(t).forEach(n=>{if("string"!=typeof n||n.match(/^(gtm)/))return;let r=t[n];["string","number","boolean"].includes(typeof r)&&(e[n]=r)})}),e}()),{},{[r]:c},d?{url:d.href,path:d.pathname,host:d.host,query:d.search}:{}),{},{pageTitle:document.title},{browser:u.match(/Edg/)?"edge":u.match(/Chrome/)?"chrome":u.match(/Firefox/)?"firefox":u.match(/Safari/)?"safari":"unknown",deviceType:u.match(/Mobi/)?"mobile":"desktop"}),function(e){let t={};try{let e=sessionStorage.getItem("utm_params");e&&(t=JSON.parse(e))}catch(e){}if(e&&e.search){let n=new URLSearchParams(e.search),r=!1;if(["source","medium","campaign","term","content"].forEach(e=>{let i="utm_".concat(e),o="utm"+e[0].toUpperCase()+e.slice(1);n.has(i)&&(t[o]=n.get(i)||"",r=!0)}),r)try{sessionStorage.setItem("utm_params",JSON.stringify(t))}catch(e){}}return t}(d))}return document.addEventListener("growthbookpersist",()=>{l()}),t=>{if("createScopedInstance"in t)return;let n=u(e);n.url&&t.setURL(n.url),t.updateAttributes(n);let r=n.url,i=setInterval(()=>{location.href!==r&&(r=location.href,t.setURL(r),t.updateAttributes(u(e)))},500),o=()=>{location.href!==r&&(r=location.href,t.setURL(r)),t.updateAttributes(u(e))};document.addEventListener("growthbookrefresh",o),"onDestroy"in t&&t.onDestroy(()=>{clearInterval(i),document.removeEventListener("growthbookrefresh",o)})}}},743270,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.chooseVariation=function(e,t){for(let n=0;n<t.length;n++)if(s(e,t[n]))return n;return -1},n.decrypt=c,n.getAutoExperimentChangeType=function(e){return e.urlPatterns&&e.variations.some(e=>d(e)&&"urlRedirect"in e)?"redirect":e.variations.some(e=>d(e)&&(e.domMutations||"js"in e||"css"in e))?"visual":"unknown"},n.getBucketRanges=function(e,t,n){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);let r=a(e);(n=n||r).length!==e&&(n=r);let i=n.reduce((e,t)=>
2t+e,0);(i<.99||i>1.01)&&(n=r);let o=0;return n.map(e=>{let n=o;return o+=e,[n,n+t*e]})},n.getEqualWeights=a,n.getPolyfills=function(){return r},n.getQueryStringOverride=function(e,t,n){if(!t)return null;let r=t.split("?")[1];if(!r)return null;let i=r.replace(/#.*/,"").split("&").map(e=>e.split("=",2)).filter(t=>{let[n]=t;return n===e}).map(e=>{let[,t]=e;return parseInt(t)});return i.length>0&&i[0]>=0&&i[0]<n?i[0]:null},n.getUrlRegExp=l,n.hash=o,n.inNamespace=function(e,t){let n=o("__"+t[0],e,1);return null!==n&&n>=t[1]&&n<t[2]},n.inRange=s,n.isIncluded=function(e){try{return e()}catch(e){return console.error(e),!1}},n.isURLTargeted=function(e,t){if(!t.length)return!1;let n=!1,r=!1;for(let i=0;i<t.length;i++){let o=function(e,t,n){try{let r=new URL(e,"https://_");if("regex"===t){let e=l(n);if(!e)return!1;return e.test(r.href)||e.test(r.href.substring(r.origin.length))}if("simple"===t)try{let e=new URL(n.replace(/^([^:/?]*)\./i,"https://$1.").replace(/\*/g,"_____"),"https://_____"),t=[[r.host,e.host,!1],[r.pathname,e.pathname,!0]];return e.hash&&t.push([r.hash,e.hash,!1]),e.searchParams.forEach((e,n)=>{t.push([r.searchParams.get(n)||"",e,!1])}),!t.some(e=>!function(e,t,n){try{let r=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return n&&(r="\\/?"+r.replace(/(^\/|\/$)/g,"")+"\\/?"),RegExp("^"+r+"$","i").test(e)}catch(e){return!1}}(e[0],e[1],e[2]))}catch(e){}return!1}catch(e){return!1}}(e,t[i].type,t[i].pattern);if(!1===t[i].include){if(o)return!1}else n=!0,o&&(r=!0)}return r||!n},n.loadSDKVersion=function(){let e;try{e="1.7.0"}catch(t){e=""}return e},n.mergeQueryStrings=function(e,t){let n,r;try{n=new URL(e),r=new URL(t)}catch(e){return console.error("Unable to merge query strings: ".concat(e)),t}return n.searchParams.forEach((e,t)=>{r.searchParams.has(t)||r.searchParams.set(t,e)}),r.toString()},n.paddedVersionString=function(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");let t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map(e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e).join("-")},n.promiseTimeout=p,n.toString=function(e){return"string"==typeof e?e:JSON.stringify(e)};let r={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function i(e){let t=0x811c9dc5,n=e.length;for(let r=0;r<n;r++)t^=e.charCodeAt(r),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return t>>>0}function o(e,t,n){return 2===n?i(i(e+t)+"")%1e4/1e4:1===n?i(t+e)%1e3/1e3:null}function a(e){return e<=0?[]:Array(e).fill(1/e)}function s(e,t){return e>=t[0]&&e<t[1]}function l(e){try{let t=e.replace(/([^\\])\//g,"$1\\/");return new RegExp(t)}catch(e){console.error(e);return}}let u=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));async function c(e,t,n){if(t=t||"",!(n=n||globalThis.crypto&&globalThis.crypto.subtle||r.SubtleCrypto))throw Error("No SubtleCrypto implementation found");try{let r=await n.importKey("raw",u(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),a=await n.decrypt({name:"AES-CBC",iv:u(i)},r,u(o));return new TextDecoder().decode(a)}catch(e){throw Error("Failed to decrypt")}}function d(e){return"object"==typeof e&&null!==e}async function p(e,t){return new Promise(n=>{let r,i=!1,o=e=>{i||(i=!0,r&&clearTimeout(r),n(e||null))};t&&(r=setTimeout(()=>o(),t)),e.then(e=>o(e)).catch(()=>o())})}},71771,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.evalCondition=o;var r=e.r(743270);let i={};function o(e,t,n){for(let[r,i]of(n=n||{},Object.entries(t)))switch(r){case"$or":if(!d(e,i,n))return!1;break;case"$nor":if(d(e,i,n))return!1;break;case"$and":if(!function(e,t,n){for(let r=0;r<t.length;r++)if(!o(e,t[r],n))return!1;return!0}(e,i,n))return!1;break;case"$not":if(o(e,i,n))return!1;break;default:if(!s(i,function(e,t){let n=t.split("."),r=e;for(let e=0;e<n.length;e++)if(!r||"object"!=typeof r||!(n[e]in r))return null;else r=r[n[e]];return r}(e,r),n))return!1}return!0}function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="".concat(e).concat(t?"/i":"");return i[n]||(i[n]=new RegExp(e.replace(/([^\\])\//g,"$1\\/"),t?"i":void 0)),i[n]}function s(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"==typeof e)return i?String(t).toLowerCase()===e.toLowerCase():t+""===e;if("number"==typeof e)return+t===e;if("boolean"==typeof e)return null!==t&&!!t===e;if(null===e)return null===t;if(Array.isArray(e)||!l(e))return JSON.stringify(t)===JSON.stringify(e);for(let i in e)if(!function(e,t,n,i){switch(e){case"$veq":return(0,r.paddedVersionString)(t)===(0,r.paddedVersionString)(n);case"$vne":return(0,r.paddedVersionString)(t)!==(0,r.paddedVersionString)(n);case"$vgt":return(0,r.paddedVersionString)(t)>(0,r.paddedVersionString)(n);case"$vgte":return(0,r.paddedVersionString)(t)>=(0,r.paddedVersionString)(n);case"$vlt":return(0,r.paddedVersionString)(t)<(0,r.paddedVersionString)(n);case"$vlte":return(0,r.paddedVersionString)(t)<=(0,r.paddedVersionString)(n);case"$eq":return t===n;case"$ne":return t!==n;case"$lt":return t<n;case"$lte":return t<=n;case"$gt":return t>n;case"$gte":return t>=n;case"$exists":return n?null!=t:null==t;case"$in":if(!Array.isArray(n))return!1;return u(t,n);case"$ini":if(!Array.isArray(n))return!1;return u(t,n,!0);case"$inGroup":return u(t,i[n]||[]);case"$notInGroup":return!u(t,i[n]||[]);case"$nin":if(!Array.isArray(n))return!1;return!u(t,n);case"$nini":if(!Array.isArray(n))return!1;return!u(t,n,!0);case"$not":return!s(n,t,i);case"$size":if(!Array.isArray(t))return!1;return s(n,t.length,i);case"$elemMatch":if(!Array.isArray(t))return!1;let d=l(n)?e=>s(n,e,i):e=>o(e,n,i);for(let e=0;e<t.length;e++)if(t[e]&&d(t[e]))return!0;return!1;case"$all":if(!Array.isArray(n))return!1;return c(t,n,i);case"$alli":if(!Array.isArray(n))return!1;return c(t,n,i,!0);case"$regex":try{return a(n).test(t)}catch(e){return!1}case"$regexi":try{return a(n,!0).test(t)}catch(e){return!1}case"$type":return function(e){if(null===e)return"null";if(Array.isArray(e))return"array";let t=typeof e;return["string","number","boolean","object","undefined"].includes(t)?t:"unknown"}(t)===n;default:return console.error("Unknown operator: "+e),!1}}(i,t,e[i],n))return!1;return!0}function l(e){let t=Object.keys(e);return t.length>0&&t.filter(e=>"$"===e[0]).length===t.length}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n){let n=e=>"string"==typeof e?e.toLowerCase():e;return Array.isArray(e)?e.some(e=>
2t.some(t=>n(e)===n(t))):t.some(t=>n(e)===n(t))}return Array.isArray(e)?e.some(e=>t.includes(e)):t.includes(e)}function c(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Array.isArray(e))return!1;for(let i=0;i<t.length;i++){let o=!1;for(let a=0;a<e.length;a++)if(s(t[i],e[a],n,r)){o=!0;break}if(!o)return!1}return!0}function d(e,t,n){if(!t.length)return!0;for(let r=0;r<t.length;r++)if(o(e,t[r],n))return!0;return!1}},408880,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.EVENT_FEATURE_EVALUATED=n.EVENT_EXPERIMENT_VIEWED=void 0,n.decryptPayload=w,n.evalFeature=d,n.getAllStickyBucketAssignmentDocs=E,n.getApiHosts=function(e){let t=e.apiHost||"https://cdn.growthbook.io";return{apiHost:t.replace(/\/*$/,""),streamingHost:(e.streamingHost||t).replace(/\/*$/,""),apiRequestHeaders:e.apiHostRequestHeaders,streamingHostRequestHeaders:e.streamingHostRequestHeaders}},n.getExperimentDedupeKey=k,n.getExperimentResult=_,n.getHashAttribute=v,n.getStickyBucketAttributeKey=S,n.getStickyBucketAttributes=T,n.getTrackingUserContext=g,n.runExperiment=p;var r=e.r(71771),i=e.r(743270);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let s=n.EVENT_FEATURE_EVALUATED="Feature Evaluated",l=n.EVENT_EXPERIMENT_VIEWED="Experiment Viewed";async function u(e){try{await e()}catch(e){}}function c(e,t,n){if(e.user.trackedExperiments){let r=k(t,n);if(e.user.trackedExperiments.has(r))return[];e.user.trackedExperiments.add(r)}e.user.enableDevMode&&e.user.devLogs&&e.user.devLogs.push({experiment:t,result:n,timestamp:Date.now().toString(),logType:"experiment"});let r=[];if(e.global.trackingCallback){let i=e.global.trackingCallback;r.push(u(()=>i(t,n,g(e.user))))}if(e.user.trackingCallback){let i=e.user.trackingCallback;r.push(u(()=>i(t,n,g(e.user))))}if(e.global.eventLogger){let i=e.global.eventLogger;r.push(u(()=>i(l,{experimentId:t.key,variationId:n.key,hashAttribute:n.hashAttribute,hashValue:n.hashValue},g(e.user))))}return r}function d(e,t){var n;let o;if(t.stack.evaluatedFeatures.has(e))return f(t,e,null,"cyclicPrerequisite");t.stack.evaluatedFeatures.add(e),t.stack.id=e;let a=(o=new Map,t.global.forcedFeatureValues&&t.global.forcedFeatureValues.forEach((e,t)=>o.set(t,e)),t.user.forcedFeatureValues&&t.user.forcedFeatureValues.forEach((e,t)=>o.set(t,e)),o);if(a.has(e))return f(t,e,a.get(e),"override");if(!t.global.features||!t.global.features[e])return f(t,e,null,"unknownFeature");let s=t.global.features[e];if(s.rules){let o=new Set(t.stack.evaluatedFeatures);e:for(let a of s.rules){if(a.parentConditions)for(let n of a.parentConditions){t.stack.evaluatedFeatures=new Set(o);let i=d(n.id,t);if("cyclicPrerequisite"===i.source)return f(t,e,null,"cyclicPrerequisite");let a={value:i.value};if(!(0,r.evalCondition)(a,n.condition||{})){if(n.gate)return f(t,e,null,"prerequisite");continue e}}if(a.filters&&y(a.filters,t))continue;if("force"in a){if(a.condition&&!m(a.condition,t)||!function(e,t,n,r,o,a,s){if(!o&&void 0===a)return!0;if(!o&&0===a)return!1;let{hashValue:l}=v(e,n,r);if(!l)return!1;let u=(0,i.hash)(t,l,s||1);return null!==u&&(o?(0,i.inRange)(u,o):void 0===a||u<=a)}(t,a.seed||e,a.hashAttribute,t.user.saveStickyBucketAssignmentDoc&&!a.disableStickyBucketing?a.fallbackAttribute:void 0,a.range,a.coverage,a.hashVersion))continue;
2return a.tracks&&a.tracks.forEach(e=>{!c(t,e.experiment,e.result).length&&t.global.saveDeferredTrack&&t.global.saveDeferredTrack({experiment:e.experiment,result:e.result,user:g(t.user)})}),f(t,e,a.force,"force",a.id)}let s=null!=(n=a.contextualVariations)?n:a.variations;if(!s)continue;let l={variations:s,key:a.key||e};"coverage"in a&&(l.coverage=a.coverage),a.weights&&(l.weights=a.weights),a.hashAttribute&&(l.hashAttribute=a.hashAttribute),a.fallbackAttribute&&(l.fallbackAttribute=a.fallbackAttribute),a.disableStickyBucketing&&(l.disableStickyBucketing=a.disableStickyBucketing),void 0!==a.bucketVersion&&(l.bucketVersion=a.bucketVersion),void 0!==a.minBucketVersion&&(l.minBucketVersion=a.minBucketVersion),a.namespace&&(l.namespace=a.namespace),a.meta&&(l.meta=a.meta),a.ranges&&(l.ranges=a.ranges),a.name&&(l.name=a.name),a.phase&&(l.phase=a.phase),a.seed&&(l.seed=a.seed),a.hashVersion&&(l.hashVersion=a.hashVersion),a.filters&&(l.filters=a.filters),a.condition&&(l.condition=a.condition),a.contextualBanditRef&&function(e,t,n){var r,o;let a=null==(r=n.global.contextualBandits)?void 0:r[t];if(!a)return;let s=null;if(a.contexts&&a.contexts.length)try{s=function(e,t){for(let n of e.contexts||[])if(m(n.condition||{},t))return{leafId:n.leafId,weights:n.weights};return null}(a,n)}catch(e){}if(s){e.weights=s.weights,e.contextualBandit={leafId:s.leafId,variationWeights:s.weights,banditVersion:a.banditVersion};return}e.contextualBandit={leafId:-1,variationWeights:null!=(o=e.weights)?o:(0,i.getEqualWeights)(e.variations.length),banditVersion:a.banditVersion}}(l,a.contextualBanditRef,t);let{result:u}=p(l,e,t);if(l.contextualBandit&&!(u.hashUsed&&u.inExperiment)&&delete l.contextualBandit,t.global.onExperimentEval&&t.global.onExperimentEval(l,u),u.inExperiment&&!u.passthrough)return f(t,e,u.value,"experiment",a.id,l,u)}}return f(t,e,void 0===s.defaultValue?null:s.defaultValue,"defaultValue")}function p(e,t,n){var o,s,l,u,p,f,h;let E,T,w=e.key,k=e.variations.length;if(k<2||!1===n.global.enabled||!1===n.user.enabled)return{result:_(n,e,-1,!1,t)};if((o=e,s=n,E=o.key,(T=s.global.overrides)&&T[E]&&"string"==typeof(o=Object.assign({},o,T[E])).url&&(o.url=(0,i.getUrlRegExp)(o.url)),e=o).contextualBandit&&e.weights&&(e.contextualBandit=a(a({},e.contextualBandit),{},{variationWeights:e.weights})),e.urlPatterns&&!(0,i.isURLTargeted)(n.user.url||"",e.urlPatterns))return{result:_(n,e,-1,!1,t)};let I=(0,i.getQueryStringOverride)(w,n.user.url||"",k);if(null!==I)return{result:_(n,e,I,!1,t)};let x=(l=n).global.forcedVariations&&l.user.forcedVariations?a(a({},l.global.forcedVariations),l.user.forcedVariations):l.global.forcedVariations?l.global.forcedVariations:l.user.forcedVariations?l.user.forcedVariations:{};if(w in x)return{result:_(n,e,x[w],!1,t)};if("draft"===e.status||!1===e.active)return{result:_(n,e,-1,!1,t)};let{hashAttribute:C,hashValue:A}=v(n,e.hashAttribute,n.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing?e.fallbackAttribute:void 0);if(!A)return{result:_(n,e,-1,!1,t)};let R=-1,O=!1,N=!1;if(n.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing){let{variation:t,versionIsBlocked:r}=function(e){let{ctx:t,expKey:n,expBucketVersion:r,expHashAttribute:o,expFallbackAttribute:a,expMinBucketVersion:s,expMeta:l}=e;s=s||0,o=o||"id",l=l||[];let u=b(n,r=r||0),c=function(e,t,n){if(!e.user.stickyBucketAssignmentDocs)return{};let{hashAttribute:r,hashValue:o}=v(e,t),a=S(r,(0,i.toString)(o)),{hashAttribute:s,hashValue:l}=v(e,n),u=l?S(s,(0,i.toString)(l)):null,c={};return u&&e.user.stickyBucketAssignmentDocs[u]&&Object.assign(c,e.user.stickyBucketAssignmentDocs[u].assignments||{}),e.user.stickyBucketAssignmentDocs[a]&&Object.assign(c,e.user.stickyBucketAssignmentDocs[a].assignments||{}),c}(t,o,a);if(s>0){for(let e=0;e<s;e++)if(void 0!==c[b(n,e)])return{variation:-1,versionIsBlocked:!0}}let d=c[u];if(void 0===d)return{variation:-1};let p=l.findIndex(e=>e.key===d);return p<0?{variation:-1}:{variation:p}}({ctx:n,expKey:e.key,expBucketVersion:e.bucketVersion,expHashAttribute:e.hashAttribute,expFallbackAttribute:e.fallbackAttribute,expMinBucketVersion:e.minBucketVersion,expMeta:e.meta});O=t>=0,R=t,N=!!r}
2if(!O){if(e.filters){if(y(e.filters,n))return{result:_(n,e,-1,!1,t)}}else if(e.namespace&&!(0,i.inNamespace)(A,e.namespace))return{result:_(n,e,-1,!1,t)};if(e.include&&!(0,i.isIncluded)(e.include)||e.condition&&!m(e.condition,n))return{result:_(n,e,-1,!1,t)};if(e.parentConditions){let i=new Set(n.stack.evaluatedFeatures);for(let o of e.parentConditions){n.stack.evaluatedFeatures=new Set(i);let a=d(o.id,n);if("cyclicPrerequisite"===a.source)return{result:_(n,e,-1,!1,t)};let s={value:a.value};if(!(0,r.evalCondition)(s,o.condition||{}))return{result:_(n,e,-1,!1,t)}}}if(e.groups&&!function(e,t){let n=t.global.groups||{};for(let t=0;t<e.length;t++)if(n[e[t]])return!0;return!1}(e.groups,n))return{result:_(n,e,-1,!1,t)}}if(e.url&&!function(e,t){let n=t.user.url;if(!n)return!1;let r=n.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!(e.test(n)||e.test(r))}(e.url,n))return{result:_(n,e,-1,!1,t)};let P=(0,i.hash)(e.seed||w,A,e.hashVersion||1);if(null===P)return{result:_(n,e,-1,!1,t)};if(!O){let t=e.ranges||(0,i.getBucketRanges)(k,void 0===e.coverage?1:e.coverage,e.weights);R=(0,i.chooseVariation)(P,t)}if(N)return{result:_(n,e,-1,!1,t,void 0,!0)};if(R<0)return{result:_(n,e,-1,!1,t)};if("force"in e)return{result:_(n,e,void 0===e.force?-1:e.force,!1,t)};if(n.global.qaMode||n.user.qaMode||"stopped"===e.status)return{result:_(n,e,-1,!1,t)};let M=_(n,e,R,!0,t,P,O);if(n.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing){let t,r,o,s,{changed:l,key:c,doc:d}=(u=n,p=C,f=(0,i.toString)(A),h={[b(e.key,e.bucketVersion)]:M.key},t=S(p,f),o=a(a({},r=u.user.stickyBucketAssignmentDocs&&u.user.stickyBucketAssignmentDocs[t]&&u.user.stickyBucketAssignmentDocs[t].assignments||{}),h),s=JSON.stringify(r)!==JSON.stringify(o),{key:t,doc:{attributeName:p,attributeValue:f,assignments:o},changed:s});l&&(n.user.stickyBucketAssignmentDocs=n.user.stickyBucketAssignmentDocs||{},n.user.stickyBucketAssignmentDocs[c]=d,n.user.saveStickyBucketAssignmentDoc(d))}let D=c(n,e,M);0===D.length&&n.global.saveDeferredTrack&&n.global.saveDeferredTrack({experiment:e,result:M,user:g(n.user)});let L=D.length?1===D.length?D[0]:Promise.all(D).then(()=>{}):void 0;return"changeId"in e&&e.changeId&&n.global.recordChangeId&&n.global.recordChangeId(e.changeId),{result:M,trackingCall:L}}function f(e,t,n,r,i,o,a){let l={value:n,on:!!n,off:!n,source:r,ruleId:i||""};return o&&(l.experiment=o),a&&(l.experimentResult=a),"override"!==r&&function(e,t,n){if(e.user.trackedFeatureUsage){var r;let i=JSON.stringify(n.value);if(e.user.trackedFeatureUsage[t]===i)return;e.user.trackedFeatureUsage[t]=i,e.user.enableDevMode&&e.user.devLogs&&e.user.devLogs.push({featureKey:t,result:n,timestamp:Date.now().toString(),logType:"feature"}),null!=(r=e.user.featureUsageSubs)&&r.size&&e.user.featureUsageSubs.forEach(e=>{try{e(t,n)}catch(e){console.error(e)}})}if(e.global.onFeatureUsage){let r=e.global.onFeatureUsage;u(()=>r(t,n,g(e.user)))}if(e.user.onFeatureUsage){let r=e.user.onFeatureUsage;u(()=>r(t,n))}if(e.global.eventLogger){let r=e.global.eventLogger;u(()=>r(s,{feature:t,source:n.source,value:n.value,ruleId:"defaultValue"===n.source?"$default":n.ruleId||"",variationId:n.experimentResult?n.experimentResult.key:""},g(e.user)))}}(e,t,l),l}function h(e){return a(a({},e.attributes),e.attributeOverrides)}function g(e){return{attributes:h(e),url:e.url}}function m(e,t){return(0,r.evalCondition)(h(t.user),e,t.global.savedGroups||{})}function y(e,t){return e.some(e=>{let{hashValue:n}=v(t,e.attribute);if(!n)return!0;let r=(0,i.hash)(e.seed,n,e.hashVersion||2);return null===r||!e.ranges.some(e=>(0,i.inRange)(r,e))})}function _(e,t,n,r,i,o,a){let s=!0;(n<0||n>=t.variations.length)&&(n=0,s=!1);let{hashAttribute:l,hashValue:u}=v(e,t.hashAttribute,e.user.saveStickyBucketAssignmentDoc&&!t.disableStickyBucketing?t.fallbackAttribute:void 0),c=t.meta?t.meta[n]:{},d={key:c.key||""+n,featureId:i,inExperiment:s,hashUsed:r,variationId:n,value:t.variations[n],hashAttribute:l,hashValue:u,stickyBucketUsed:!!a};c.name&&(d.name=c.name),void 0!==o&&(d.bucket=o),c.passthrough&&(d.passthrough=c.passthrough);let p=t.contextualBandit;return p&&r&&s&&(d.leafId=p.leafId,d.variationWeights=p.variationWeights,void 0!==p.banditVersion&&(d.banditVersion=p.banditVersion)),d}function v(e,t,n){let r=t||"id",i="",o=h(e.user);return o[r]&&(i=o[r]),!i&&n&&(o[n]&&(i=o[n]),i&&(r=n)),{hashAttribute:r,hashValue:i}}function b(e,t){return t=t||0,"".concat(e,"__").concat(t)}function S(e,t){return"".concat(e,"||").concat(t)}async function E(e,t,n){let r=T(e,n);return t.getAllAssignments(r)}function T(e,t){let n,r,o,a={};return(n=new Set,r=t&&t.features?t.features:e.global.features||{},o=t&&t.experiments?t.experiments:e.global.experiments||[],Object.keys(r).forEach(e
2=>{let t=r[e];if(t.rules)for(let e of t.rules)(e.variations||e.contextualVariations)&&(n.add(e.hashAttribute||"id"),e.fallbackAttribute&&n.add(e.fallbackAttribute))}),o.map(e=>{n.add(e.hashAttribute||"id"),e.fallbackAttribute&&n.add(e.fallbackAttribute)}),Array.from(n)).forEach(t=>{let{hashValue:n}=v(e,t);a[t]=(0,i.toString)(n)}),a}async function w(e,t,n){if((e=a({},e)).encryptedFeatures){try{e.features=JSON.parse(await (0,i.decrypt)(e.encryptedFeatures,t,n))}catch(e){console.error(e)}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await (0,i.decrypt)(e.encryptedExperiments,t,n))}catch(e){console.error(e)}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await (0,i.decrypt)(e.encryptedSavedGroups,t,n))}catch(e){console.error(e)}delete e.encryptedSavedGroups}if(e.encryptedContextualBandits){try{e.contextualBandits=JSON.parse(await (0,i.decrypt)(e.encryptedContextualBandits,t,n))}catch(e){console.error(e)}delete e.encryptedContextualBandits}return e}function k(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}},817250,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.growthbookTrackingPlugin=function(){let{queueFlushInterval:e=100,ingestorHost:t,enable:n=!0,debug:r,dedupeCacheSize:a=1e3,dedupeKeyAttributes:d=[],eventFilter:p,transport:f="auto"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h=>{let g=h.getClientKey();if(!g)throw Error("clientKey must be specified to use event logging");let m=new Set,y="createScopedInstance"in h;if("setEventLogger"in h){let _=[],v=null,b=null,S=null,E=async e=>{let n=_;_=[],v&&clearTimeout(v),v=null;let r=S;S=null,b=null;try{n.length&&await c({clientKey:g,events:n,ingestorHost:t,useBeacon:"beacon"===f||"auto"===f&&!!e})}finally{r&&r()}};if(h.setEventLogger(async(t,c,f)=>{let h={eventName:t,properties:c,attributes:f.attributes||{},url:f.url||""};if(p&&!p(h))return;if(t===i.EVENT_FEATURE_EVALUATED||t===i.EVENT_EXPERIMENT_VIEWED){let e={eventName:t,properties:c};for(let n of d.length?d:y&&t===i.EVENT_FEATURE_EVALUATED?Object.keys(h.attributes):[])e["attr:"+n]=h.attributes[n];let n=JSON.stringify(e);if(m.has(n)){m.delete(n),m.add(n);return}if(m.add(n),m.size>a){let e=m.values().next().value;e&&m.delete(e)}}let g=function(e){let{eventName:t,properties:n,attributes:r,url:i}=e,{nested:a,topLevel:c}=function(e){let{user_id:t,device_id:n,anonymous_id:r,id:i,page_id:a,session_id:s,utmCampaign:l,utmContent:c,utmMedium:d,utmSource:p,utmTerm:f,pageTitle:h}=e;return{nested:function(e,t){if(null==e)return{};var n,r,i=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,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,o),topLevel:{user_id:u(t),device_id:u(n||r||i),page_id:u(a),session_id:u(s),utm_campaign:u(l)||void 0,utm_content:u(c)||void 0,utm_medium:u(d)||void 0,utm_source:u(p)||void 0,utm_term:u(f)||void 0,page_title:u(h)||void 0}}}(r||{});return s(s({event_name:t,properties_json:n||{}},c),{},{sdk_language:"js",sdk_version:l,url:i,context_json:a})}(h);r&&console.log("Logging event to GrowthBook",JSON.parse(JSON.stringify(g))),n&&(_.push(g),b||(b=new Promise(t=>{S=t,v=setTimeout(()=>{E().catch(console.error)},e)})),await b)}),"u">typeof document&&document.visibilityState){let e=()=>{"hidden"===document.visibilityState&&E(!0).catch(console.error)};document.addEventListener("visibilitychange",e),"onDestroy"in h&&h.onDestroy(()=>document.removeEventListener("visibilitychange",e))}if("u">typeof window){let e=()=>{E(!0).catch(console.error)};window.addEventListener("pagehide",e),"onDestroy"in h&&h.onDestroy(()=>window.removeEventListener("pagehide",e))}"onDestroy"in h&&h.onDestroy(()=>{E().catch(console.error)})}if("u">typeof window&&!("createScopedInstance"in h)){let e=Array.isArray(window.gbEvents)?window.gbEvents:[];for(let t of(window.gbEvents={push:e=>{if("isDestroyed"in h&&h.isDestroyed()){window.gbEvents=[e];return}"string"==typeof e?h.logEvent(e):e&&h.logEvent(e.eventName,e.properties)}},e))window.gbEvents.push(t)}}};var r=e.r(743270),i=e.r(408880);let o=["user_id","device_id","anonymous_id","id","page_id","session_id","utmCampaign","utmContent","utmMedium","utmSource","utmTerm","pageTitle"];function a(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let l=(0,r.loadSDKVersion)();function u(e){return"string"==typeof e?e:null}async function c(e){let{clientKey:t,ingestorHost:n,events:r,useBeacon:i}=e;if(!r.length)return;let o="".concat(n||"https://us1.gb-ingest.com","/track?client_key=").concat(t),a=JSON.stringify(r);if(i&&"u">typeof navigator&&navigator.sendBeacon)try{if(navigator.sendBeacon(o,new Blob([a],{type:"text/plain"})))return}catch(e){}try{await fetch(o,{method:"POST",body:a,headers:{Accept:"application/json","Content-Type":"text/plain"},credentials:"omit",keepalive:6e4>("u">typeof TextEncoder?new TextEncoder().encode(a).length:3*a.length)})}catch(e){console.error("Failed to track event",e)}}},996293,(e,t,n)=>{"use strict";function r(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 i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Object.defineProperty(n,"__esModule",{value:!0}),n.thirdPartyTrackingPlugin=function(){let{additionalCallback:e,trackers:t=["gtag","gtm","segment"]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("u"<typeof window)throw Error("thirdPartyTrackingPlugin only works in the browser");return n=>{n.setTrackingCallback(async(n,r)=>{let o=[],a={experiment_id:n.key,variation_id:r.key};if(e&&o.push(Promise.resolve(e(n,r))),t.includes("gtag")&&window.gtag){let e,t=new Promise(t=>{e=t});o.push(t),window.gtag("event","experiment_viewed",i(i({},a),{},{event_callback:e}))}if(t.includes("gtm")&&window.dataLayer){let e,t=new Promise(t=>{e=t});o.push(t),window.dataLayer.push(i(i({event:"experiment_viewed"},a),{},{eventCallback:e}))}if(t.includes("segment")&&window.analytics&&window.analytics.track){window.analytics.track("Experiment Viewed",a);let e=new Promise(e=>window.setTimeout(e,300));o.push(e)}await Promise.all(o)})}}},487306,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.clearAutoRefresh=P,n.clearCache=g,n.configureCache=function(e){Object.assign(a,e),a.backgroundSync||P()},n.helpers=void 0,n.onHidden=y,n.onVisible=_,n.refreshFeatures=m,n.setPolyfills=function(e){Object.assign(s,e)},n.startStreaming=function(e,t){if(t.streaming){let n,r;if(!e.getClientKey())throw Error("Must specify clientKey to enable streaming");t.payload&&C(e,!0),n=S(e),(r=u.get(n)||new Set).add(e),u.set(n,r)}},n.unsubscribe=function(e){u.forEach(t=>t.delete(e))};var r=e.r(743270);function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let a={staleTTL:6e4,maxAge:144e5,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},s=(0,r.getPolyfills)(),l=n.helpers={fetchFeaturesCall:e=>{let{host:t,clientKey:n,headers:r}=e;return s.fetch("".concat(t,"/api/features/").concat(n),{headers:r})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:n,payload:r,headers:i}=e,a={method:"POST",headers:o({"Content-Type":"application/json"},i),body:JSON.stringify(r)};return s.fetch("".concat(t,"/api/eval/").concat(n),a)},eventSourceCall:e=>{let{host:t,clientKey:n,headers:r}=e;return r?new s.EventSource("".concat(t,"/sub/").concat(n),{headers:r}):new s.EventSource("".concat(t,"/sub/").concat(n))},startIdleListener:()=>{let e;if(!("u">typeof window&&"u">typeof document))return;let t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),_()):"hidden"===document.visibilityState&&(e=window.setTimeout(y,a.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(s.localStorage=globalThis.localStorage)}catch(e){}let u=new Map,c=!1,d=new Map,p=new Map,f=new Map,h=new Set;async function g(){d.clear(),p.clear(),P(),c=!1,await v()}async function m(e){let{instance:t,timeout:n,skipCache:r,allowStale:i,backgroundSync:o}=e;return o||(a.backgroundSync=!1),b({instance:t,allowStale:i,timeout:n,skipCache:r})}function y(){f.forEach(e=>{e&&(e.state="idle",R(e))})}function _(){f.forEach(e=>{e&&"idle"===e.state&&O(e)})}async function v(){try{if(!s.localStorage)return;await s.localStorage.setItem(a.cacheKey,JSON.stringify(Array.from(d.entries())))}catch(e){}}async function b(e){let{instance:t,allowStale:n,timeout:i,skipCache:o}=e,s=S(t),l=E(t),u=new Date,c=new Date(u.getTime()-a.maxAge+a.staleTTL);await T();let p=a.disableCache||o?void 0:d.get(l);return p&&(n||p.staleAt>u)&&p.staleAt>c?(p.sse&&h.add(s),p.staleAt<u?x(t):C(t),{data:p.data,success:!0,source:"cache"}):await (0,r.promiseTimeout)(x(t),i)||{data:null,success:!1,source:"timeout",error:Error("Timeout")}}function S(e){let[t,n]=e.getApiInfo();return"".concat(t,"||").concat(n)}function E(e){let t=S(e);if(!("isRemoteEval"in e)||!e.isRemoteEval())return t;let n=e.getAttributes(),r=e.getCacheKeyAttributes()||Object.keys(e.getAttributes()),i={};r.forEach(e=>{i[e]=n[e]});let o=e.getForcedVariations(),a=e.getUrl();return"".concat(t,"||").concat(JSON.stringify({ca:i,fv:o,url:a}))}async function T(){if(!c){c=!0;try{if(s.localStorage){let e=await s.localStorage.getItem(a.cacheKey);if(!a.disableCache&&e){let t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach(e=>{let[t,n]=e;d.set(t,o(o({},n),{},{staleAt:new Date(n.staleAt)}))}),w()}}}catch(e){}if(!a.disableIdleStreams){let e=l.startIdleListener();e&&(l.stopIdleListener=e)}}}function w(){let e=Array.from(d.entries()).map(e=>{let[t,n]=e;return{key:t,staleAt:n.staleAt.getTime()}}).sort((e,t)=>e.staleAt-t.staleAt),t=Math.min(Math.max(0,d.size-a.maxEntries),d.size);for(let n=0;n<t;n++)d.delete(e[n].key)}function k(e,t,n){let r=n.dateUpdated||"",i=new Date(Date.now()+a.staleTTL),o=a.disableCache?void 0:d.get(t);if(o&&r&&o.version===r){o.staleAt=i,v();return}a.disableCache||(d.set(t,{data:n,version:r,staleAt:i,sse:h.has(e)}),w()),v();let s=u.get(e);s&&s.forEach(e=>I(e,n))}async function I(e,t){await e.setPayload(t||e.getPayload())}async function x(e){let{apiHost:t,apiRequestHeaders:n}
2=e.getApiHosts(),r=e.getClientKey(),i="isRemoteEval"in e&&e.isRemoteEval(),o=S(e),a=E(e),s=p.get(a);return s||(s=(i?l.fetchRemoteEvalCall({host:t,clientKey:r,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:n}):l.fetchFeaturesCall({host:t,clientKey:r,headers:n})).then(e=>{if(!e.ok)throw Error("HTTP error: ".concat(e.status));return"enabled"===e.headers.get("x-sse-support")&&h.add(o),e.json()}).then(t=>(k(o,a,t),C(e),p.delete(a),{data:t,success:!0,source:"network"})).catch(e=>(p.delete(a),{data:null,source:"error",success:!1,error:e})),p.set(a,s)),s}function C(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=S(e),r=E(e),{streamingHost:i,streamingHostRequestHeaders:o}=e.getApiHosts(),l=e.getClientKey();if(t&&h.add(n),a.backgroundSync&&h.has(n)&&s.EventSource){if(f.has(n))return;let e={src:null,host:i,clientKey:l,headers:o,cb:t=>{try{if("features-updated"===t.type){let e=u.get(n);e&&e.forEach(e=>{x(e)})}else if("features"===t.type){let e=JSON.parse(t.data);k(n,r,e)}e.errors=0}catch(t){A(e)}},errors:0,state:"active"};f.set(n,e),O(e)}}function A(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){let t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());R(e),setTimeout(()=>{["idle","active"].includes(e.state)||O(e)},Math.min(t,3e5))}}function R(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function O(e){e.src=l.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>A(e),e.src.onopen=()=>{e.errors=0}}function N(e,t){R(e),f.delete(t)}function P(){h.clear(),f.forEach(N),u.clear(),l.stopIdleListener()}},892198,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GrowthBook=void 0,n.prefetchPayload=h;var r,i=(r=e.r(735374))&&r.__esModule?r:{default:r},o=e.r(743270),a=e.r(487306),s=e.r(408880);let l=["data"];function u(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]:{};t%2?u(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let d="u">typeof window&&"u">typeof document,p=(0,o.loadSDKVersion)();class f{constructor(e){if(e=e||{},this.version=p,this._options=this.context=e,this._renderer=e.renderer||null,this._trackedExperiments=new Set,this._completedChangeIds=new Set,this._trackedFeatures={},this.debug=!!e.debug,this._subscriptions=new Set,this._featureUsageSubs=new Set,this._customEventSubs=new Set,this.ready=!1,this._assigned=new Map,this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._initialized=!1,this._redirectedUrl="",this._deferredTrackingCalls=new Map,this._autoExperimentsAllowed=!e.disableExperimentsOnLoad,this._destroyCallbacks=[],this.logs=[],this.log=this.log.bind(this),this._saveDeferredTrack=this._saveDeferredTrack.bind(this),this._onExperimentEval=this._onExperimentEval.bind(this),this._fireSubscriptions=this._fireSubscriptions.bind(this),this._recordChangedId=this._recordChangedId.bind(this),e.remoteEval){if(e.decryptionKey)throw Error("Encryption is not available for remoteEval");if(!e.clientKey)throw Error("Missing clientKey");let t=!1;try{t=!!new URL(e.apiHost||"").hostname.match(/growthbook\.io$/i)}catch(e){}if(t)throw Error("Cannot use remoteEval on GrowthBook Cloud")}
2else if(e.cacheKeyAttributes)throw Error("cacheKeyAttributes are only used for remoteEval");if(e.stickyBucketService){const t=e.stickyBucketService;this._saveStickyBucketAssignmentDoc=e=>t.saveAssignments(e)}if(e.plugins)for(const t of e.plugins)t(this);if(e.features&&(this.ready=!0),d&&e.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),e.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),this._options.stickyBucketService&&this._options.stickyBucketAssignmentDocs)for(const e in this._options.stickyBucketAssignmentDocs){const t=this._options.stickyBucketAssignmentDocs[e];t&&this._options.stickyBucketService.saveAssignments(t).catch(()=>{})}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(e){this._payload=e;let t=await (0,s.decryptPayload)(e,this._options.decryptionKey);this._decryptedPayload=t,await this.refreshStickyBuckets(t),t.features&&(this._options.features=t.features),t.savedGroups&&(this._options.savedGroups=t.savedGroups),t.contextualBandits&&(this._options.contextualBandits=t.contextualBandits),t.experiments&&(this._options.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(e){this._initialized=!0;let t=e.payload;if(t.encryptedExperiments||t.encryptedFeatures)throw Error("initSync does not support encrypted payloads");return this._options.stickyBucketService&&!this._options.stickyBucketAssignmentDocs&&(this._options.stickyBucketAssignmentDocs=this.generateStickyBucketAssignmentDocsSync(this._options.stickyBucketService,t)),this._payload=t,this._decryptedPayload=t,t.features&&(this._options.features=t.features),t.savedGroups&&(this._options.savedGroups=t.savedGroups),t.contextualBandits&&(this._options.contextualBandits=t.contextualBandits),t.experiments&&(this._options.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,(0,a.startStreaming)(this,e),this}async init(e){if(this._initialized=!0,(e=e||{}).cacheSettings&&(0,a.configureCache)(e.cacheSettings),e.payload)return await this.setPayload(e.payload),(0,a.startStreaming)(this,e),{success:!0,source:"init"};{let t=await this._refresh(c(c({},e),{},{allowStale:!0})),{data:n}=t,r=function(e,t){if(null==e)return{};var n,r,i=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,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,l);return(0,a.startStreaming)(this,e),await this.setPayload(n||{}),r}}async loadFeatures(e){var t;e=e||{},await this.init({skipCache:e.skipCache,timeout:e.timeout,streaming:(null==(t=this._options.backgroundSync)||t)&&(e.autoRefresh||this._options.subscribeToChanges)})}async refreshFeatures(e){let t=await this._refresh(c(c({},e||{}),{},{allowStale:!1}));t.data&&await this.setPayload(t.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){return(0,s.getApiHosts)(this._options)}getClientKey(){return this._options.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._options.remoteEval||!1}getCacheKeyAttributes(){return this._options.cacheKeyAttributes}async _refresh(e){var t;let{timeout:n,skipCache:r,allowStale:i,streaming:o}=e;if(!this._options.clientKey)throw Error("Missing clientKey");return(0,a.refreshFeatures)({instance:this,timeout:n,skipCache:r||this._options.disableCache,allowStale:i,backgroundSync:null==(t=null!=o?o:this._options.backgroundSync)||t})}_render(){if(this._renderer)try{this._renderer()}catch(e){console.error("Failed to render",e)}}setFeatures(e){this._options.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,n){let r=await (0,o.decrypt)(e,t||this._options.decryptionKey,n);this.setFeatures(JSON.parse(r))}setExperiments(e){this._options.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}
2async setEncryptedExperiments(e,t,n){let r=await (0,o.decrypt)(e,t||this._options.decryptionKey,n);this.setExperiments(JSON.parse(r))}async setAttributes(e){(this._options.attributes=e,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval)?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async updateAttributes(e){return this.setAttributes(c(c({},this._options.attributes),e))}async setAttributeOverrides(e){(this._options.attributeOverrides=e,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval)?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async setForcedVariations(e){(this._options.forcedVariations=e||{},this._options.remoteEval)?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}setForcedFeatures(e){this._options.forcedFeatureValues=e,this._render()}async setURL(e){if(e!==this._options.url){if(this._options.url=e,this._redirectedUrl="",this._options.remoteEval){await this._refreshForRemoteEval(),this._updateAllAutoExperiments(!0);return}this._updateAllAutoExperiments(!0)}}getAttributes(){return c(c({},this._options.attributes),this._options.attributeOverrides)}getForcedVariations(){return this._options.forcedVariations||{}}getForcedFeatures(){return this._options.forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._options.stickyBucketAssignmentDocs||{}}getUrl(){return this._options.url||""}getFeatures(){return this._options.features||{}}getExperiments(){return this._options.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}_subscribeFeatureUsage(e){return this._featureUsageSubs.add(e),()=>this._featureUsageSubs.delete(e)}_subscribeCustomEvents(e){return this._customEventSubs.add(e),()=>this._customEventSubs.delete(e)}async _refreshForRemoteEval(){if(!this._options.remoteEval||!this._initialized)return;let e=await this._refresh({allowStale:!1});e.data&&await this.setPayload(e.data)}getAllResults(){return new Map(this._assigned)}onDestroy(e){this._destroyCallbacks.push(e)}isDestroyed(){return!!this._destroyed}destroy(e){e=e||{},this._destroyed=!0,this._destroyCallbacks.forEach(e=>{try{e()}catch(e){console.error(e)}}),this._subscriptions.clear(),this._featureUsageSubs.clear(),this._customEventSubs.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._destroyCallbacks=[],this._payload=void 0,this._saveStickyBucketAssignmentDoc=void 0,(0,a.unsubscribe)(this),e.destroyAllStreams&&(0,a.clearAutoRefresh)(),this.logs=[],d&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach(e=>{e.undo()}),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){(this._options.forcedVariations=this._options.forcedVariations||{},this._options.forcedVariations[e]=t,this._options.remoteEval)?this._refreshForRemoteEval():(this._updateAllAutoExperiments(),this._render())}run(e){let{result:t}=(0,s.runExperiment)(e,null,this._getEvalContext());return this._onExperimentEval(e,t),t}triggerExperiment(e){return(this._triggeredExpKeys.add(e),this._options.experiments)?this._options.experiments.filter(t=>t.key===e).map(e=>this._runAutoExperiment(e)).filter(e=>null!==e):null}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_getEvalContext(){return{user:this._getUserContext(),global:this._getGlobalContext(),stack:{evaluatedFeatures:new Set}}}_getUserContext(){return{attributes:this._options.user?c(c({},this._options.user),this._options.attributes):this._options.attributes,enableDevMode:this._options.enableDevMode,blockedChangeIds:this._options.blockedChangeIds,stickyBucketAssignmentDocs:this._options.stickyBucketAssignmentDocs,url:this._getContextUrl(),forcedVariations:this._options.forcedVariations,forcedFeatureValues:this._options.forcedFeatureValues,attributeOverrides:this._options.attributeOverrides,saveStickyBucketAssignmentDoc:this._saveStickyBucketAssignmentDoc,trackingCallback:this._options.trackingCallback,onFeatureUsage:this._options.onFeatureUsage,devLogs:this.logs,featureUsageSubs:this._featureUsageSubs,trackedExperiments:this._trackedExperiments,trackedFeatureUsage:this._trackedFeatures}}_getGlobalContext(){return{features:this._options.features,experiments:this._options.experiments,log:this.log,enabled:this._options.enabled,qaMode:this._options.qaMode,savedGroups:this._options.savedGroups,contextualBandits:this._options.contextualBandits,groups:this._options.groups,overrides:this._options.overrides,onExperimentEval:this._onExperimentEval,recordChangeId:this._recordChangedId,saveDeferredTrack:this._saveDeferredTrack,eventLogger:this._options.eventLogger}}_runAutoExperiment(e,t){let n,r,i=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!i)return null;this._isAutoExperimentBlockedByContext(e)?n=(0,s.getExperimentResult)(this._getEvalContext(),e,-1,!1,""):({result:n,trackingCall:r}=(0,s.runExperiment)(e,null,this._getEvalContext()),this._onExperimentEval(e,n));let a=JSON.stringify(n.value);if(!t&&n.inExperiment&&i&&i.valueHash===a)return n;
2if(i&&this._undoActiveAutoExperiment(e),n.inExperiment){let t=(0,o.getAutoExperimentChangeType)(e);if("redirect"===t&&n.value.urlRedirect&&e.urlPatterns){let t=e.persistQueryString?(0,o.mergeQueryStrings)(this._getContextUrl(),n.value.urlRedirect):n.value.urlRedirect;if((0,o.isURLTargeted)(t,e.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:e.key}),n;this._redirectedUrl=t;let{navigate:i,delay:a}=this._getNavigateFunction();if(i)if(d){var l;Promise.all([...r?[(0,o.promiseTimeout)(r,null!=(l=this._options.maxNavigateDelay)?l:1e3)]:[],new Promise(e=>{var t;return window.setTimeout(e,null!=(t=this._options.navigateDelay)?t:a)})]).then(()=>{try{i(t)}catch(e){console.error(e)}})}else try{i(t)}catch(e){console.error(e)}}else if("visual"===t){let t=this._options.applyDomChangesCallback?this._options.applyDomChangesCallback(n.value):this._applyDOMChanges(n.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:a})}}return n}_undoActiveAutoExperiment(e){let t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){if(!this._autoExperimentsAllowed)return;let t=this._options.experiments||[],n=new Set(t);for(let r of(this._activeAutoExperiments.forEach((e,t)=>{n.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}),t)){let t=this._runAutoExperiment(r,e);if(t&&t.inExperiment&&"redirect"===(0,o.getAutoExperimentChangeType)(r))break}}_onExperimentEval(e,t){let n=this._assigned.get(e.key);this._assigned.set(e.key,{experiment:e,result:t}),this._subscriptions.size>0&&this._fireSubscriptions(e,t,n)}_fireSubscriptions(e,t,n){n&&n.result.inExperiment===t.inExperiment&&n.result.variationId===t.variationId||this._subscriptions.forEach(n=>{try{n(e,t)}catch(e){console.error(e)}})}_recordChangedId(e){this._completedChangeIds.add(e)}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){let n=this.evalFeature(e).value;return null===n?t:n}feature(e){return this.evalFeature(e)}evalFeature(e){return(0,s.evalFeature)(e,this._getEvalContext())}log(e,t){this.debug&&(this._options.log?this._options.log(e,t):console.log(e,t))}getDeferredTrackingCalls(){return Array.from(this._deferredTrackingCalls.values())}setDeferredTrackingCalls(e){this._deferredTrackingCalls=new Map(e.filter(e=>e&&e.experiment&&e.result).map(e=>[(0,s.getExperimentDedupeKey)(e.experiment,e.result),e]))}async fireDeferredTrackingCalls(){if(!this._options.trackingCallback)return;let e=[];this._deferredTrackingCalls.forEach(t=>{t&&t.experiment&&t.result?e.push(this._options.trackingCallback(t.experiment,t.result,t.user)):console.error("Invalid deferred tracking call",{call:t})}),this._deferredTrackingCalls.clear(),await Promise.all(e)}setTrackingCallback(e){this._options.trackingCallback=e,this.fireDeferredTrackingCalls()}setFeatureUsageCallback(e){this._options.onFeatureUsage=e}setEventLogger(e){this._options.eventLogger=e}async logEvent(e,t){if(this._destroyed)return void console.error("Cannot log event to destroyed GrowthBook instance");if(this._options.enableDevMode&&this.logs.push({eventName:e,properties:t,timestamp:Date.now().toString(),logType:"event"}),this._customEventSubs.size&&this._customEventSubs.forEach(n=>{try{n(e,t||{})}catch(e){console.error(e)}}),this._options.eventLogger)try{await this._options.eventLogger(e,t||{},(0,s.getTrackingUserContext)(this._getUserContext()))}catch(e){console.error(e)}else console.error("No event logger configured")}_saveDeferredTrack(e){this._deferredTrackingCalls.set((0,s.getExperimentDedupeKey)(e.experiment,e.result),e)}_getContextUrl(){return this._options.url||(d?window.location.href:"")}_isAutoExperimentBlockedByContext(e){let t=(0,o.getAutoExperimentChangeType)(e);if("visual"===t){if(this._options.disableVisualExperiments||this._options.disableJsInjection&&e.variations.some(e=>e.js))return!0}else{if("redirect"!==t||this._options.disableUrlRedirectExperiments)return!0;try{let t=new URL(this._getContextUrl());for(let n of e.variations){if(!n||!n.urlRedirect)continue;let e=new URL(n.urlRedirect);if(this._options.disableCrossOriginUrlRedirectExperiments&&(e.protocol!==t.protocol||e.host!==t.host))return!0}}catch(t){return this.log("Error parsing current or redirect URL",{id:e.key,error:t}),!0}}
2return!!(e.changeId&&(this._options.blockedChangeIds||[]).includes(e.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._options.navigate?{navigate:this._options.navigate,delay:0}:d?{navigate:e=>{window.location.replace(e)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(e){if(!d)return;let t=[];if(e.css){let n=document.createElement("style");n.innerHTML=e.css,document.head.appendChild(n),t.push(()=>n.remove())}if(e.js){let n=document.createElement("script");n.innerHTML=e.js,this._options.jsInjectionNonce&&(n.nonce=this._options.jsInjectionNonce),document.head.appendChild(n),t.push(()=>n.remove())}return e.domMutations&&e.domMutations.forEach(e=>{t.push(i.default.declarative(e).revert)}),()=>{t.forEach(e=>e())}}async refreshStickyBuckets(e){if(this._options.stickyBucketService){let t=this._getEvalContext(),n=await (0,s.getAllStickyBucketAssignmentDocs)(t,this._options.stickyBucketService,e);this._options.stickyBucketAssignmentDocs=n}}generateStickyBucketAssignmentDocsSync(e,t){if(!("getAllAssignmentsSync"in e))return void console.error("generating StickyBucketAssignmentDocs docs requires StickyBucketServiceSync");let n=this._getEvalContext(),r=(0,s.getStickyBucketAttributes)(n,t);return e.getAllAssignmentsSync(r)}inDevMode(){return!!this._options.enableDevMode}}async function h(e){let t=new f(e);await (0,a.refreshFeatures)({instance:t,skipCache:e.skipCache,allowStale:!1,backgroundSync:e.streaming}),t.destroy()}n.GrowthBook=f},432468,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UserScopedGrowthBook=n.GrowthBookClient=void 0;var r=e.r(743270),i=e.r(487306),o=e.r(408880);let a=["data"];function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let u=(0,r.loadSDKVersion)();n.GrowthBookClient=class{constructor(e){if(e=e||{},this.version=u,this._options=e,this.debug=!!e.debug,this.ready=!1,this._features={},this._experiments=[],this.log=this.log.bind(this),e.plugins)for(const t of e.plugins)t(this)}async setPayload(e){this._payload=e;let t=await (0,o.decryptPayload)(e,this._options.decryptionKey);this._decryptedPayload=t,t.features&&(this._features=t.features),t.experiments&&(this._experiments=t.experiments),t.savedGroups&&(this._options.savedGroups=t.savedGroups),t.contextualBandits&&(this._options.contextualBandits=t.contextualBandits),this.ready=!0}initSync(e){let t=e.payload;if(t.encryptedExperiments||t.encryptedFeatures)throw Error("initSync does not support encrypted payloads");return this._payload=t,this._decryptedPayload=t,t.features&&(this._features=t.features),t.savedGroups&&(this._options.savedGroups=t.savedGroups),t.contextualBandits&&(this._options.contextualBandits=t.contextualBandits),t.experiments&&(this._experiments=t.experiments),this.ready=!0,(0,i.startStreaming)(this,e),this}async init(e){if((e=e||{}).cacheSettings&&(0,i.configureCache)(e.cacheSettings),e.payload)return await this.setPayload(e.payload),(0,i.startStreaming)(this,e),{success:!0,source:"init"};{let t=await this._refresh(l(l({},e),{},{allowStale:!0})),{data:n}=t,r=function(e,t){if(null==e)return{};var n,r,i=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,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,a);return(0,i.startStreaming)(this,e),await this.setPayload(n||{}),r}}async refreshFeatures(e){let t=await this._refresh(l(l({},e||{}),{},{allowStale:!1}));t.data&&await this.setPayload(t.data)}
2getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){return(0,o.getApiHosts)(this._options)}getClientKey(){return this._options.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this._experiments||[]}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}async _refresh(e){let{timeout:t,skipCache:n,allowStale:r,streaming:o}=e;if(!this._options.clientKey)throw Error("Missing clientKey");return(0,i.refreshFeatures)({instance:this,timeout:t,skipCache:n||this._options.disableCache,allowStale:r,backgroundSync:null==o||o})}getFeatures(){return this._features||{}}getGlobalAttributes(){return this._options.globalAttributes||{}}setGlobalAttributes(e){this._options.globalAttributes=e}destroy(e){e=e||{},this._destroyed=!0,(0,i.unsubscribe)(this),e.destroyAllStreams&&(0,i.clearAutoRefresh)(),this._features={},this._experiments=[],this._decryptedPayload=void 0,this._payload=void 0,this._options={}}isDestroyed(){return!!this._destroyed}setEventLogger(e){this._options.eventLogger=e}logEvent(e,t,n){if(this._options.eventLogger){let r=this._getEvalContext(n);this._options.eventLogger(e,t,(0,o.getTrackingUserContext)(r.user))}}runInlineExperiment(e,t){let{result:n}=(0,o.runExperiment)(e,null,this._getEvalContext(t));return n}_getEvalContext(e){return this._options.globalAttributes&&(e=l(l({},e),{},{attributes:l(l({},this._options.globalAttributes),e.attributes)})),{user:e,global:this._getGlobalContext(),stack:{evaluatedFeatures:new Set}}}_getGlobalContext(){return{features:this._features,experiments:this._experiments,log:this.log,enabled:this._options.enabled,qaMode:this._options.qaMode,savedGroups:this._options.savedGroups,contextualBandits:this._options.contextualBandits,forcedFeatureValues:this._options.forcedFeatureValues,forcedVariations:this._options.forcedVariations,trackingCallback:this._options.trackingCallback,onFeatureUsage:this._options.onFeatureUsage,eventLogger:this._options.eventLogger}}isOn(e,t){return this.evalFeature(e,t).on}isOff(e,t){return this.evalFeature(e,t).off}getFeatureValue(e,t,n){let r=this.evalFeature(e,n).value;return null===r?t:r}evalFeature(e,t){return(0,o.evalFeature)(e,this._getEvalContext(t))}log(e,t){this.debug&&(this._options.log?this._options.log(e,t):console.log(e,t))}setTrackingCallback(e){this._options.trackingCallback=e}setFeatureUsageCallback(e){this._options.onFeatureUsage=e}async applyStickyBuckets(e,t){let n=this._getEvalContext(e),r=await (0,o.getAllStickyBucketAssignmentDocs)(n,t);return l(l({},e),{},{stickyBucketAssignmentDocs:r,saveStickyBucketAssignmentDoc:e=>t.saveAssignments(e)})}createScopedInstance(e,t){return new c(this,e,[...this._options.plugins||[],...t||[]])}};class c{constructor(e,t,n){if(this._gb=e,this._userContext=t,this.logs=[],this._userContext.trackedExperiments=this._userContext.trackedExperiments||new Set,this._userContext.trackedFeatureUsage=this._userContext.trackedFeatureUsage||{},this._userContext.devLogs=this.logs,n)for(const e of n)e(this)}runInlineExperiment(e){return this._gb.runInlineExperiment(e,this._userContext)}isOn(e){return this._gb.isOn(e,this._userContext)}isOff(e){return this._gb.isOff(e,this._userContext)}getFeatureValue(e,t){return this._gb.getFeatureValue(e,t,this._userContext)}evalFeature(e){return this._gb.evalFeature(e,this._userContext)}logEvent(e,t){this._userContext.enableDevMode&&this.logs.push({eventName:e,properties:t,timestamp:Date.now().toString(),logType:"event"}),this._gb.logEvent(e,t||{},this._userContext)}setTrackingCallback(e){this._userContext.trackingCallback=e}setFeatureUsageCallback(e){this._userContext.onFeatureUsage=e}getApiInfo(){return this._gb.getApiInfo()}getClientKey(){return this._gb.getClientKey()}setURL(e){this._userContext.url=e}updateAttributes(e){this._userContext.attributes=l(l({},this._userContext.attributes),e)}setAttributeOverrides(e){this._userContext.attributeOverrides=e}async setForcedVariations(e){this._userContext.forcedVariations=e||{}}setForcedFeatures(e){this._userContext.forcedFeatureValues=e}getUserContext(){return this._userContext}getVersion(){return u}getDecryptedPayload(){return this._gb.getDecryptedPayload()}inDevMode(){return!!this._userContext.enableDevMode}}n.UserScopedGrowthBook=c},878702,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.devtoolsExpressPlugin=function(e){let{request:t}=e;return e=>{var n,r;let i="string"==typeof(null==t||null==(n=t.query)?void 0:n._gbdebug)?t.query._gbdebug:void 0;i||(i="string"==typeof(null==t||null==(r=t.cookies)?void 0:r._gbdebug)?t.cookies._gbdebug:void 0);let o={};if(i)try{o=JSON.parse(i)}catch(e){console.error("cannot parse devtools payload",e)}s(o)(e)}},n.devtoolsNextjsPlugin=function(e){let{searchParams:t,requestCookies:n,request:r}=e;function i(e){var t,n;let{searchParams:r,requestCookies:i}=e;if(r){if("_gbdebug"in r)return r._gbdebug;if(r instanceof URLSearchParams)return null!=(n=r.get("_gbdebug"))?n:void 0}return null==i||null==(t=i.get("_gbdebug"))?void 0:t.value}return e=>{let o=i({searchParams:t,requestCookies:n});!o&&r&&(o=i({searchParams:r.nextUrl.searchParams,requestCookies:r.cookies}));let a={};if(o)try{a=JSON.parse(o)}catch(e){console.error("cannot parse devtools payload",e)}s(a)(e)}},n.devtoolsPlugin=s,n.getDebugEvent=l,n.getDebugScriptContents=function(e,t){let n=l(e,t);return n?"(window._gbdebugEvents = (window._gbdebugEvents || [])).push(".concat(JSON.stringify(n),");"):""};var r=e.r(892198),i=e.r(432468);function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?o(Object(n),!0).forEach(function(t){var r,i,o;r=e,i=t,o=n[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e){return t=>{if("createScopedInstance"in t)throw Error("devtoolsPlugin can only be set on a user-scoped instance");e&&function(e,t){if(t.inDevMode()){if(e.attributes&&"object"==typeof e.attributes&&t.setAttributeOverrides(e.attributes),e.features&&"object"==typeof e.features){let n=new Map(Object.entries(e.features));t.setForcedFeatures(n)}e.experiments&&"object"==typeof e.experiments&&t.setForcedVariations(e.experiments)}}(e,t)}}function l(e,t){if(!("logs"in e)||!e.inDevMode())return null;if(e instanceof r.GrowthBook){let[n,r]=e.getApiInfo();return{logs:e.logs,sdkInfo:{apiHost:n,clientKey:r,source:t,version:e.version,payload:e.getDecryptedPayload(),attributes:e.getAttributes()}}}if(e instanceof i.UserScopedGrowthBook){let n=e.getUserContext(),[r,i]=e.getApiInfo();return{logs:e.logs,sdkInfo:{apiHost:r,clientKey:i,source:t,version:e.getVersion(),payload:e.getDecryptedPayload(),attributes:a(a({},n.attributes),n.attributeOverrides)}}}return null}},448168,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"autoAttributesPlugin",{enumerable:!0,get:function(){return r.autoAttributesPlugin}}),Object.defineProperty(n,"devtoolsExpressPlugin",{enumerable:!0,get:function(){return a.devtoolsExpressPlugin}}),Object.defineProperty(n,"devtoolsNextjsPlugin",{enumerable:!0,get:function(){return a.devtoolsNextjsPlugin}}),Object.defineProperty(n,"devtoolsPlugin",{enumerable:!0,get:function(){return a.devtoolsPlugin}}),Object.defineProperty(n,"getDebugEvent",{enumerable:!0,get:function(){return a.getDebugEvent}}),Object.defineProperty(n,"getDebugScriptContents",{enumerable:!0,get:function(){return a.getDebugScriptContents}}),Object.defineProperty(n,"growthbookTrackingPlugin",{enumerable:!0,get:function(){return i.growthbookTrackingPlugin}}),Object.defineProperty(n,"thirdPartyTrackingPlugin",{enumerable:!0,get:function(){return o.thirdPartyTrackingPlugin}});var r=e.r(503617),i=e.r(817250),o=e.r(996293),a=e.r(878702)},702063,(e,t,n)=>{var r=e.r(247663);t.exports=function(){return r.Date.now()}},979021,(e,t,n)=>{var r=e.r(903275),i=e.r(702063),o=e.r(292921),a=Math.max,s=Math.min;t.exports=function(e,t,n){var l,u,c,d,p,f,h=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function _(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function v(e){var n=e-f,r=e-h;return void 0===f||n>=t||n<0||m&&r>=c}function b(){var e,n,r,o=i();if(v(o))return S(o);p=setTimeout(b,(e=o-f,n=o-h,r=t-e,m?s(r,c-n):r))}function S(e){return(p=void 0,y&&l)?_(e):(l=u=void 0,d)}function E(){var e,n=i(),r=v(n);if(l=arguments,u=this,f=n,r){if(void 0===p)return h=e=f,p=setTimeout(b,t),g?_(e):d;if(m)return clearTimeout(p),p=setTimeout(b,t),_(f)}return void 0===p&&(p=setTimeout(b,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(o(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=u=p=void 0},E.flush=function(){return void 0===p?d:S(i())},E}},58822,(e,t,n)=>{!function(r,i){if("function"==typeof define&&define.amd){let r;void 0!==(r=i(e.r,n,t))&&e.v(r)}else t.exports=i()}(e.e,function(){var e,t,n,r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(e,t,n){return e<t?t:e>n?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(i[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();r.status=1===(e=o(e,i.minimum,1))?null:e;var n=r.render(!t),l=n.querySelector(i.barSelector),u=i.speed,c=i.easing;return n.offsetWidth,a(function(t){var o,a,d,p;""===i.positionUsing&&(i.positionUsing=r.getPositioningCSS()),s(l,(o=e,a=u,d=c,(p="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+a+"ms "+d,p)),1===e?(s(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){s(n,{transition:"all "+u+"ms linear",opacity:0}
2),setTimeout(function(){r.remove(),t()},u)},u)):setTimeout(t,u)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var n,o=t.querySelector(i.barSelector),a=e?"-100":(-1+(r.status||0))*100,l=document.querySelector(i.parent);return s(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!i.showSpinner&&(n=t.querySelector(i.spinnerSelector))&&p(n),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(t),t},r.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,i){var o;r=t[o=(o=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[o]=function(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+o)in n)return r;return t}(o)),n.style[r]=i}return function(e,t){var r,i,o=arguments;if(2==o.length)for(r in t)void 0!==(i=t[r])&&t.hasOwnProperty(r)&&n(e,r,i);else n(e,o[1],o[2])}}();function l(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=d(e),r=n+t;l(n,t)||(e.className=r.substring(1))}function c(e,t){var n,r=d(e);l(e,t)&&(e.className=(n=r.replace(" "+t+" "," ")).substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r})},983971,(e,t,n)=>{let r;var i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=e=>o(e,"__esModule",{value:!0}),d=(e,t)=>o(e,"name",{value:t,configurable:!0}),p=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))!u.call(e,i)&&(n||"default"!==i)&&o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},f=(e,t)=>p(c(o(null!=e?i(l(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),h=(r="u">typeof WeakMap?new WeakMap:0,(e,t)=>r&&r.get(e)||(t=p(c({}),e,1),r&&r.set(e,t),t)),g={},m={default:()=>T};for(var y in m)o(g,y,{get:m[y],enumerable:!0});var _=f(e.r(203828)),v=f(e.r(58822)),b=f(e.r(691567)),S=f(e.r(191788)),E=d(({color:e="#29D",startPosition:t=.3,stopDelayMs:n=200,height:r=3,showOnShallow:i=!0,options:o,nonce:a,transformCSS:s=d(e=>S.createElement("style",{nonce:a},e),"transformCSS")})=>{let l=null;S.useEffect(()=>(o&&v.configure(o),_.default.events.on("routeChangeStart",u),_.default.events.on("routeChangeComplete",c),_.default.events.on("routeChangeError",p),()=>{_.default.events.off("routeChangeStart",u),_.default.events.off("routeChangeComplete",c),_.default.events.off("routeChangeError",p)}),[]);let u=d((e,{shallow:n})=>{(!n||i)&&(v.set(t),v.start())},"routeChangeStart"),c=d((e,{shallow:t})=>{(!t||i)&&(l&&clearTimeout(l),l=setTimeout(()=>{v.done(!0)},n))},"routeChangeEnd"),p=d((e,t,{shallow:r})=>{(!r||i)&&(l&&clearTimeout(l),l=setTimeout(()=>{v.done(!0)},n))},"routeChangeError");return s(`
3    #nprogress {
4      pointer-events: none;
5    }
6    #nprogress .bar {
7      background: ${e};
8      position: fixed;
9      z-index: 9999;
10      top: 0;
11      left: 0;
12      width: 100%;
13      height: ${r}px;
14    }
15    #nprogress .peg {
16      display: block;
17      position: absolute;
18      right: 0px;
19      width: 100px;
20      height: 100%;
21      box-shadow: 0 0 10px ${e}, 0 0 5px ${e};
22      opacity: 1;
23      -webkit-transform: rotate(3deg) translate(0px, -4px);
24      -ms-transform: rotate(3deg) translate(0px, -4px);
25      transform: rotate(3deg) translate(0px, -4px);
26    }
27    #nprogress .spinner {
28      display: block;
29      position: fixed;
30      z-index: 1031;
31      top: 15px;
32      right: 15px;
33    }
34    #nprogress .spinner-icon {
35      width: 18px;
36      height: 18px;
37      box-sizing: border-box;
38      border: solid 2px transparent;
39      border-top-color: ${e};
40      border-left-color: ${e};
41      border-radius: 50%;
42      -webkit-animation: nprogresss-spinner 400ms linear infinite;
43      animation: nprogress-spinner 400ms linear infinite;
44    }
45    .nprogress-custom-parent {
46      overflow: hidden;
47      position: relative;
48    }
49    .nprogress-custom-parent #nprogress .spinner,
50    .nprogress-custom-parent #nprogress .bar {
51      position: absolute;
52    }
53    @-webkit-keyframes nprogress-spinner {
54      0% {
55        -webkit-transform: rotate(0deg);
56      }
57      100% {
58        -webkit-transform: rotate(360deg);
59      }
60    }
61    @keyframes nprogress-spinner {
62      0% {
63        transform: rotate(0deg);
64      }
65      100% {
66        transform: rotate(360deg);
67      }
68    }
69  `)},"NextNProgress");E.propTypes={color:b.string,startPosition:b.number,stopDelayMs:b.number,height:b.number,showOnShallow:b.bool,options:b.object,nonce:b.string,transformCSS:b.func};var T=S.memo(E);t.exports=h(g)},318090,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.debounce=function(e,t,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||e.apply(i,o)},t),a&&e.apply(i,o)}},n.defaults=function(e){return i.call(o.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e},n.defer=function(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n},n.getPath=function(e,t){var n=a(e,t),r=n.obj,i=n.k;if(r)return r[i]},n.interpolate=function(e,t,n){for(var r,i,o;r=s.exec(e);)"string"!=typeof(i=r[1].trim())&&(i=null==(o=i)?"":""+o),i||(i=""),i=i.replace(/\$/g,"$$$$"),e=e.replace(r[0],t[i]||i),s.lastIndex=0;return e},n.isMissingOption=l,n.optionExist=function(e,t){return!l(e,t)},n.pushPath=function(e,t,n,r){var i=a(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)},n.setPath=function(e,t,n){var r=a(e,t,Object);r.obj[r.k]=n};var r=[],i=r.forEach,o=r.slice;function a(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(!e)return{};var o=r(i.shift());!e[o]&&n&&(e[o]=new n),e=e[o]}return e?{obj:e,k:r(i.shift())}:{}}var s=RegExp("{{(.+?)}}","g");function l(e,t){return t.reduce(function(t,n){if(t)return t;if(!e||!e[n]||"string"!=typeof e[n]||!e[n].toLowerCase()===n.toLowerCase()){var r='i18next-locize-backend :: got "'.concat(e[n],'" in options for ').concat(n," which is invalid.");return console.warn(r),r}return!1},!1)}},509625,(e,t,n)=>{var r="u">typeof globalThis&&globalThis||"u">typeof self&&self||e.g,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t=void 0!==i&&i||"u">typeof self&&self||void 0!==t&&t,n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(n.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){if(!this._bodyArrayBuffer)return this.blob().then(p);var e=c(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}),this.text=function(){var e,t,n,r=c(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=d(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=a(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[a(e)]},u.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},u.prototype.set=function(e,t){this.map[a(e)]=s(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),l(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),l(e)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(e,t){if(!(this instanceof m))throw TypeError('Please use the "new" operator, this DOM object c
69onstructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function _(e,t){if(!(this instanceof _))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},h.call(m.prototype),h.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];_.redirect=function(e,t){if(-1===v.indexOf(t))throw RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(r,i){return new Promise(function(o,a){var l=new m(r,i);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}c.onload=function(){var e,t,n={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout(function(){o(new _(r,n))},0)},c.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(n.blob?c.responseType="blob":n.arrayBuffer&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof u?l.headers.forEach(function(e,t){c.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){c.setRequestHeader(e,s(i.headers[e]))}),l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}b.polyfill=!0,t.fetch||(t.fetch=b,t.Headers=u,t.Request=m,t.Response=_),e.Headers=u,e.Request=m,e.Re
69sponse=_,e.fetch=b})({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=r.fetch?r:i;(n=o.fetch).default=o.fetch,n.fetch=o.fetch,n.Headers=o.Headers,n.Request=o.Request,n.Response=o.Response,t.exports=n},355582,(e,t,n)=>{var r="function"==typeof fetch?fetch:void 0;if(e.g.fetch?r=e.g.fetch:"u">typeof window&&window.fetch&&(r=window.fetch),"u"<typeof window){var i=r||e.r(509625);i.default&&(i=i.default),n.default=i,t.exports=n.default}},411101,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=s(e)&&"function"!=typeof e)return{default:e};var t=a(void 0);if(t&&t.has(e))return t.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(e.r(355582));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(e){return(s="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)}var l="function"==typeof fetch?fetch:void 0;e.g.fetch?l=e.g.fetch:"u">typeof window&&window.fetch&&(l=window.fetch),("function"==typeof XMLHttpRequest||("u"<typeof XMLHttpRequest?"undefined":s(XMLHttpRequest))==="object")&&(e.g.XMLHttpRequest?r=e.g.XMLHttpRequest:"u">typeof window&&window.XMLHttpRequest&&(r=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&(e.g.ActiveXObject?i=e.g.ActiveXObject:"u">typeof window&&window.ActiveXObject&&(i=window.ActiveXObject)),l||!o||r||i||(l=o.default||o),"function"!=typeof l&&(l=void 0);var u=function(t,n,r,i){var o={};"u"<typeof window&&void 0!==e.g.process&&e.g.process.versions&&e.g.process.versions.node&&(o["User-Agent"]="i18next-locize-backend (node/".concat(e.g.process.version,"; ").concat(e.g.process.platform," ").concat(e.g.process.arch,")")),t.authorize&&t.apiKey&&(o.Authorization=t.apiKey),(r||t.setContentTypeJSON)&&(o["Content-Type"]="application/json");var a=function(e){var t=e.headers&&"Error from cloudfront"===e.headers.get("x-cache");if(!e.ok)return i(e.statusText||"Error",{status:e.status,resourceNotExisting:t});e.text().then(function(n){i(null,{status:e.status,data:n,resourceNotExisting:t})}).catch(i)};"function"==typeof fetch?fetch(n,{method:r?"POST":"GET",body:r?JSON.stringify(r):void 0,headers:o}).then(a).catch(i):l(n,{method:r?"POST":"GET",body:r?JSON.stringify(r):void 0,headers:o}).then(a).catch(i)},c=function(e,t,n,o){try{var a;(a=r?new r:new i("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.authorize&&e.apiKey&&a.setRequestHeader("Authorization",e.apiKey),(n||e.setContentTypeJSON)&&a.setRequestHeader("Content-Type","application/json"),a.onreadystatechange=function(){var e="Error from cloudfront"===a.getResponseHeader("x-cache");a.readyState>3&&o(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText,resourceNotExisting:e})},a.send(JSON.stringify(n))}catch(e){console&&console.log(e)}};n.default=function(e,t,n,r){return("function"==typeof n&&(r=n,n=void 0),r=r||function(){},l)?u(e,t,n,r):"function"==typeof XMLHttpRequest||("u"<typeof XMLHttpRequest?"undefined":s(XMLHttpRequest))==="object"||"function"==typeof ActiveXObject?c(e,t,n,r):void r(Error("No fetch and no xhr implementation found!"))},t.exports=n.default},149736,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i,o,a,s=e.r(318090),l=(r=e.r(411101))&&r.__esModule?r:{default:r};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})(e)}try{a="u">typeof window&&null!==window.localStorage;var c="notExistingLocizeProject";window.localStorage.setItem(c,"foo"),window.localStorage.removeItem(c)}catch(e){a=!1}var d=function(e,t,n){var r={};return t.authorize&&t.apiKey&&(r.Authorization=t.apiKey),(n||t.setContentTypeJSON)&&(r["Content-Type"]="application/json"),{method:n?"POST":"GET",url:e,headers:r,body:n}},p=function(e,t,n){if(1===e.request.length){try{var r=e.request(t);r&&"function"==typeof r.then?r.then(function(e){return n(null,e)}).catch(n):n(null,r)}catch(e){n(e)}return}e.request(t,n)},f=(i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.services=t,this.options=n,this.allOptions=r,this.type="backend",t&&t.projectId?this.init(null,t,r,n):this.init(t,n,r,i)},o=[{key:"init",value:function(e){var t,n,r,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;!o.referenceLng&&l.fallbackLng&&Array.isArray(l.fallbackLng)&&"dev"!==l.fallbackLng[0]&&(o.referenceLng=l.fallbackLng[0]),this.services=e;var d={loadPath:"https://api.locize.app/{{projectId}}/{{version}}/{{lng}}/{{ns}}",privatePath:"https://api.locize.app/private/{{projectId}}/{{version}}/{{lng}}/{{ns}}",getLanguagesPath:"https://api.locize.app/languages/{{projectId}}",addPath:"https://api.locize.app/missing/{{projectId}}/{{version}}/{{lng}}/{{ns}}",updatePath:"https://api.locize.app/update/{{projectId}}/{{version}}/{{lng}}/{{ns}}",referenceLng:"en",crossDomain:!0,setContentTypeJSON:!1,version:"latest",private:!1,translatedPercentageThreshold:.9,failLoa
69dingOnEmptyJSON:!1,allowedAddOrUpdateHosts:["localhost"],onSaved:!1,reloadInterval:"u"<typeof window&&36e5,checkForProjectTimeout:3e3,storageExpiration:36e5,writeDebounce:5e3},p=(0,s.defaults)(o,this.options||{});p.reloadInterval&&p.reloadInterval<3e5&&(console.warn("Your configured reloadInterval option is to low."),p.reloadInterval=d.reloadInterval),this.options=(0,s.defaults)(o,this.options||{},d),this.allOptions=l,this.somethingLoaded=!1,this.isProjectNotExisting=!1,this.storage=(t=this.options.storageExpiration,n=function(){},r=function(){},a?(n=function(e){window.localStorage.setItem("notExistingLocizeProject_".concat(e),Date.now())},r=function(e){var n=window.localStorage.getItem("notExistingLocizeProject_".concat(e));return!!n&&(!(Date.now()-n>t)||(window.localStorage.removeItem("notExistingLocizeProject_".concat(e)),!1))}):"u">typeof document&&(n=function(e){var n=new Date;n.setTime(n.getTime()+t);var r="; expires=".concat(n.toGMTString());try{document.cookie="".concat("notExistingLocizeProject_".concat(e),"=").concat(Date.now()).concat(r,";path=/")}catch(e){}},r=function(e){var t="".concat("notExistingLocizeProject_".concat(e),"=");try{for(var n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return!0}}catch(e){}return!1}),{setProjectNotExisting:n,isProjectNotExisting:r}),this.options.pull&&console.warn('The pull API was removed use "private: true" option instead: https://docs.locize.com/integration/api#fetch-private-namespace-resources');var f="u">typeof window&&window.location&&window.location.hostname;f?(this.isAddOrUpdateAllowed="function"==typeof this.options.allowedAddOrUpdateHosts?this.options.allowedAddOrUpdateHosts(f):this.options.allowedAddOrUpdateHosts.indexOf(f)>-1,e&&e.logger&&(l.saveMissing||l.updateMissing)&&(this.isAddOrUpdateAllowed?"localhost"!==f&&e.logger.warn('locize-backend: you are using the save or update missings feature from this host "'.concat(f,'".\nMake sure you will not use it in production!\nhttps://docs.locize.com/guides-tips-and-tricks/going-production')):e.logger.warn("function"==typeof this.options.allowedAddOrUpdateHosts?'locize-backend: will not save or update missings because allowedAddOrUpdateHosts returned false for the host "'.concat(f,'".'):'locize-backend: will not save or update missings because the host "'.concat(f,'" was not in the list of allowedAddOrUpdateHosts: ').concat(this.options.allowedAddOrUpdateHosts.join(", ")," (matches need to be exact).")))):this.isAddOrUpdateAllowed=!0,"function"==typeof c&&this.getOptions(function(e,t,n){if(e)return c(e);i.options.referenceLng=o.referenceLng||t.referenceLng||i.options.referenceLng,c(null,t,n)}),this.queuedWrites={pending:{}},this.debouncedProcess=(0,s.debounce)(this.process,this.options.writeDebounce),this.interval&&clearInterval(this.interval),this.options.reloadInterval&&this.options.projectId&&(this.interval=setInterval(function(){return i.reload()},this.options.reloadInterval),"object"===u(this.interval)&&"function"==typeof this.interval.unref&&this.interval.unref())}},{key:"reload",value:function(){var e=this,t=this.services||{logger:console},n=t.backendConnector,r=t.languageUtils,i=t.logger;if(n){var o=n.language;if(!o||"cimode"!==o.toLowerCase()){var a=[],s=function(e){r.toResolveHierarchy(e).forEach(function(e){0>a.indexOf(e)&&a.push(e)})};s(o),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),a.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(r,o){r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&o&&i.log("loaded namespace ".concat(e," for language ").concat(t),o),n.loaded("".concat(t,"|").concat(e),r,o)})})})}}}},{key:"getLanguages",value:function(e){var t,n=this;e||(t=(0,s.defer)(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)});var r=(0,s.isMissingOption)(this.options,["projectId"]);if(r)return e(Error(r));var i=(0,s.interpolate)(this.options.getLanguagesPath,{projectId:this.options.projectId});return(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting)?e(Error("locize project ".concat(this.options.projectId," does not exist!"))):(this.getLanguagesCalls=this.getLanguagesCalls||[],this.getLanguagesCalls.push(e),this.getLanguagesCalls.length>1)?void 0:(this.loadUrl({},i,function(e,t,r){if(!n.somethingLoaded&&r&&r.resourceNotExisting){n.isProjectNotExisting=!0,n.storage.setProjectNotExisting(n.options.projectId);var i=Error("locize project ".concat(n.options.projectId," does not exist!")),o=n.getLanguagesCalls;return n.getLanguagesCalls=[],o.forEach(function(e){return e(i)})}if(t){var a=Object.keys(t).reduce(function(e,n){return t[n].isReferenceLanguage&&(e=n),e},"");a&&n.options.referenceLng!==a&&(n.options.referenceLng=a)}n.somethingLoaded=!0;var s=n.getLanguagesCalls;
69n.getLanguagesCalls=[],s.forEach(function(n){return n(e,t)})}),t)}},{key:"getOptions",value:function(e){var t,n=this;return e||(t=(0,s.defer)(),e=function(e,n){if(e)return t.reject(e);t.resolve(n)}),this.getLanguages(function(t,r){if(t)return e(t);var i=Object.keys(r);if(!i.length)return e(Error("was unable to load languages via API"));var o=i.reduce(function(e,t){var i=r[t];return i.translated[n.options.version]&&i.translated[n.options.version]>=n.options.translatedPercentageThreshold&&e.push(t),e},[]),a=i.reduce(function(e,t){return t.indexOf("-")>-1||e},!1);e(null,{fallbackLng:n.options.referenceLng,referenceLng:n.options.referenceLng,supportedLngs:0===o.length&&n.options.referenceLng?[n.options.referenceLng]:o,load:a?"all":"languageOnly"},r)}),t}},{key:"checkIfProjectExists",value:function(e){var t=this,n=(this.services||{logger:console}).logger;if(this.somethingLoaded){e&&e(null);return}this.alreadyRequestedCheckIfProjectExists?setTimeout(function(){return t.checkIfProjectExists(e)},this.options.checkForProjectTimeout):(this.alreadyRequestedCheckIfProjectExists=!0,this.getLanguages(function(t){t&&t.message&&t.message.indexOf("does not exist")>0&&n&&n.error(t.message),e&&e(t)}))}},{key:"read",value:function(e,t,n){var r,i=this,o=(this.services||{logger:console}).logger,a={};if(this.options.private){var l=(0,s.isMissingOption)(this.options,["projectId","version","apiKey"]);if(l)return n(Error(l),!1);r=(0,s.interpolate)(this.options.privatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),a={authorize:!0}}else{var u=(0,s.isMissingOption)(this.options,["projectId","version"]);if(u)return n(Error(u),!1);r=(0,s.interpolate)(this.options.loadPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version})}if(!this.isProjectNotExisting&&this.storage.isProjectNotExisting(this.options.projectId)&&(this.isProjectNotExisting=!0),this.isProjectNotExisting){var c=Error("locize project ".concat(this.options.projectId," does not exist!"));o&&o.error(c.message),n&&n(c);return}this.loadUrl(a,r,function(e,t,r){i.somethingLoaded||(r&&r.resourceNotExisting?setTimeout(function(){return i.checkIfProjectExists()},i.options.checkForProjectTimeout):i.somethingLoaded=!0),n(e,t)})}},{key:"loadUrl",value:function(e,t,n,r){var i=this;e=(0,s.defaults)(e,this.options),"function"==typeof n&&(r=n,n=void 0),r=r||function(){};var o=function(e,n){var o,a,s=n&&n.resourceNotExisting;if(n&&(408===n.status||400===n.status)||n&&(n.status>=500&&n.status<600||!n.status))return r("failed loading "+t,!0,{resourceNotExisting:s});if(n&&n.status>=400&&n.status<500)return r("failed loading "+t,!1,{resourceNotExisting:s});if(!n&&e&&e.message){var l=e.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return l.indexOf(e)>-1}))return r("failed loading "+t+": "+e.message,!0,{resourceNotExisting:s})}if(e)return r(e,!1);try{o="string"==typeof n.data?JSON.parse(n.data):n.data}catch(e){a="failed parsing "+t+" to json"}return a?r(a,!1):i.options.failLoadingOnEmptyJSON&&!Object.keys(o).length?r("loaded result empty for "+t,!1,{resourceNotExisting:s}):void r(null,o,{resourceNotExisting:s})};if(!this.options.request||t.indexOf("/languages/".concat(e.projectId))>0)return(0,l.default)(e,t,n,o);var a=d(t,e,n);p(this.options,a,o)}},{key:"create",value:function(e,t,n,r,i,o){var a=this;"function"!=typeof i&&(i=function(){}),this.checkIfProjectExists(function(l){if(l)return i(l);var u=(0,s.isMissingOption)(a.options,["projectId","version","apiKey","referenceLng"]);return u?i(Error(u)):a.isAddOrUpdateAllowed?void("string"==typeof e&&(e=[e]),e.filter(function(e){return e===a.options.referenceLng}).length<1&&a.services&&a.services.logger&&a.services.logger.warn('locize-backend: will not save missings because the reference language "'.concat(a.options.referenceLng,'" was not in the list of to save languages: ').concat(e.join(", ")," (open your site in the reference language to save missings).")),e.forEach(function(e){e===a.options.referenceLng&&a.queue.call(a,a.options.referenceLng,t,n,r,i,o)})):i("host is not allowed to create key.")})}},{key:"update",value:function(e,t,n,r,i,o){var a=this;"function"!=typeof i&&(i=function(){}),this.checkIfProjectExists(function(l){if(l)return i(l);var u=(0,s.isMissingOption)(a.options,["projectId","version","apiKey","referenceLng"]);return u?i(Error(u)):a.isAddOrUpdateAllowed?void(!o&&(o={}),"string"==typeof e&&(e=[e]),o.isUpdate=!0,e.forEach(function(e){e===a.options.referenceLng&&a.queue.call(a,a.options.referenceLng,t,n,r,i,o)})):i("host is not allowed to update key.")})}},{key:"writePage",value:function(e,t,n,r){var i=(0,s.interpolate)(this.options.addPath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}),o=(0,s.interpolate)(this.options.updatePath,{lng:e,ns:t,projectId:this.options.projectId,version:this.options.version}
69),a=!1,u=!1,c={},f={};n.forEach(function(e){var t=e.options&&e.options.tDescription?{value:e.fallbackValue||"",context:{text:e.options.tDescription}}:e.fallbackValue||"";e.options&&e.options.isUpdate?(u||(u=!0),f[e.key]=t):(a||(a=!0),c[e.key]=t)});var h=0;a&&h++,u&&h++;var g=function(e){--h||r(e)};if(h||g(),a)if(this.options.request){var m=d(i,(0,s.defaults)({authorize:!0},this.options),c);p(this.options,m,g)}else(0,l.default)((0,s.defaults)({authorize:!0},this.options),i,c,g);if(u)if(this.options.request){var y=d(o,(0,s.defaults)({authorize:!0},this.options),f);p(this.options,y,g)}else(0,l.default)((0,s.defaults)({authorize:!0},this.options),o,f,g)}},{key:"write",value:function(e,t){var n=this;if(!(0,s.getPath)(this.queuedWrites,["locks",e,t])){var r=(0,s.getPath)(this.queuedWrites,[e,t]);(0,s.setPath)(this.queuedWrites,[e,t],[]);var i=r.filter(function(e){return e.callback}).map(function(e){return e.callback});if(r.length){(0,s.setPath)(this.queuedWrites,["locks",e,t],!0);var o=function(){(0,s.setPath)(n.queuedWrites,["locks",e,t],!1),i.forEach(function(e){return e()}),n.options.onSaved&&n.options.onSaved(e,t),n.debouncedProcess(e,t)},a=r.length/1e3,l=0,u=r.splice(0,1e3);for(this.writePage(e,t,u,function(){++l>=a&&o()});1e3===u.length;)(u=r.splice(0,1e3)).length&&this.writePage(e,t,u,function(){++l>=a&&o()})}}}},{key:"process",value:function(){var e=this;Object.keys(this.queuedWrites).forEach(function(t){"locks"!==t&&Object.keys(e.queuedWrites[t]).forEach(function(n){e.queuedWrites[t][n].length&&e.write(t,n)})})}},{key:"queue",value:function(e,t,n,r,i,o){(0,s.pushPath)(this.queuedWrites,[e,t],{key:n,fallbackValue:r||"",callback:i,options:o}),this.debouncedProcess()}}],function(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,function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(r.key),r)}}(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),i);f.type="backend",n.default=f,t.exports=n.default},924550,e=>{"use strict";var t=e.i(812810),n=e.i(332513),r=[],i=r.forEach,o=r.slice;function a(e,t,n,r){var i=e.read.bind(e);if(2===i.length){try{var o=i(t,n);o&&"function"==typeof o.then?o.then(function(e){return r(null,e)}).catch(r):r(null,o)}catch(e){r(e)}return}i(t,n,r)}var s=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,t.default)(this,e),this.backends=[],this.type="backend",this.allOptions=i,this.init(n,r)}return(0,n.default)(e,[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return i.call(o.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}(n,this.options||{},{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}),this.allOptions=r,this.options.backends&&this.options.backends.forEach(function(n,i){t.backends[i]=t.backends[i]||(n?"function"==typeof n?new n:n:null),t.backends[i].init(e,t.options.backendOptions&&t.options.backendOptions[i]||{},r)}),this.services&&this.options.reloadInterval&&setInterval(function(){return t.reload()},this.options.reloadInterval)}},{key:"read",value:function(e,t,n){var r=this,i=this.backends.length,o=function n(i,o){if(!(i<0)){var a=r.backends[i];a.save&&a.save(e,t,o),n(i-1,o)}};!function s(l){if(l>=i)return n(Error("non of the backend loaded data",!0));var u=l===i-1,c=r.options.handleEmptyResourcesAsFailed&&!u?0:-1,d=r.backends[l];d.read?a(d,e,t,function(i,u,p){if(!i&&u&&Object.keys(u).length>c){if(n(null,u,l),o(l-1,u),d.save&&r.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(r.options.cacheHitMode)>-1){if(p&&r.options.refreshExpirationTime&&p+r.options.refreshExpirationTime>Date.now())return;var f=r.backends[l+1];f&&f.read&&a(f,e,t,function(n,i){n||!i||Object.keys(i).length<=c||(o(l,i),"refreshAndUpdateStore"===r.options.cacheHitMode&&r.services&&r.services.resourceStore&&r.services.resourceStore.addResourceBundle(e,t,i))})}}else s(l+1)}):s(l+1)}(0)}},{key:"create",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};
69this.backends.forEach(function(a){if(a.create){var s,l=a.create.bind(a);if(l.length<6){try{(s=5===l.length?l(e,t,n,r,o):l(e,t,n,r))&&"function"==typeof s.then?s.then(function(e){return i(null,e)}).catch(i):i(null,s)}catch(e){i(e)}return}l(e,t,n,r,i,o)}})}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,i=t.logger,o=n.language;if(!o||"cimode"!==o.toLowerCase()){var a=[],s=function(e){r.toResolveHierarchy(e).forEach(function(e){0>a.indexOf(e)&&a.push(e)})};s(o),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),a.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(r,o){r&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&o&&i.log("loaded namespace ".concat(e," for language ").concat(t),o),n.loaded("".concat(t,"|").concat(e),r,o)})})})}}}]),e}();s.type="backend",e.s(["default",0,s])},633172,e=>{"use strict";var t=e.i(661174),n=e.i(987250),r=e.i(812810),i=e.i(332513);function o(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 a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){(0,n.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var s=(0,i.default)(function e(t){(0,r.default)(this,e),this.store=t.store},[{key:"setItem",value:function(e,t){if(this.store)try{this.store.setItem(e,t)}catch(e){}}},{key:"getItem",value:function(e,t){if(this.store)try{return this.store.getItem(e,t)}catch(e){}}}]),l=(0,i.default)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(this,e),this.init(t,n),this.type="backend"},[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=a(a(a({},function(){var e=null;try{e=window.localStorage}catch(e){"u">typeof window&&console.log("Failed to load local storage.",e)}return{prefix:"i18next_res_",expirationTime:6048e5,defaultVersion:void 0,getVersion:void 0,versions:{},store:e}}()),this.options),t),this.storage=new s(this.options)}},{key:"read",value:function(e,n,r){var i=Date.now();if(!this.storage.store)return r(null,null);var o=this.storage.getItem("".concat(this.options.prefix).concat(e,"-").concat(n));if(o)try{o=JSON.parse(o)}catch(e){o=null}if(o&&"object"===(0,t.default)(o)){var a=this.getVersion(e,n);if(o.i18nStamp&&o.i18nStamp+this.options.expirationTime>i&&a===o.i18nVersion){var s=o.i18nStamp;return delete o.i18nVersion,delete o.i18nStamp,r(null,o,s)}}return r(null,null)}},{key:"save",value:function(e,t,n){if(this.storage.store){var r=a(a({},n),{},{i18nStamp:Date.now()}),i=this.getVersion(e,t);i&&(r.i18nVersion=i),this.storage.setItem("".concat(this.options.prefix).concat(e,"-").concat(t),JSON.stringify(r))}}},{key:"getVersion",value:function(e,t){var n=this.options,r=n.getVersion,i=n.versions,o=n.defaultVersion,a=Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0;return(null==r?void 0:r(e,t))||a||o}}]);l.type="backend",e.s(["default",0,l])},47811,(e,t,n)=>{var r=e.i(350461);let i=e.r(149736),o=e.r(924550).default,a=e.r(633172).default,s=e.r(799523),l={projectId:"f9a03b50-8284-459d-ae7b-1f5f54398dd1",apiKey:r.default.env.NEXT_PUBLIC_LOCIZE_APIKEY,referenceLng:"en",version:"production"};console.log("Locize Options",l,!1),t.exports={i18n:{defaultLocale:"en",locales:["en","es"],localeDetection:!1},backend:{backendOptions:[{expirationTime:36e5},l],backends:[a,i]},interpolation:{escapeValue:!1,formatSeparator:",",format:function(t,n,r){if(t instanceof Date)if("es"===r)return e.r(122387),s(t).locale("es").format(n);else return s(t).locale("en").format(n);return t.toString()}},serializeConfig:!1,use:[o],saveMissing:!1}},818793,(e,t,n)=>{t.exports=e.r(558784)},316027,e=>{"use strict";let t,n,r,i,o,a,s,l,u,c,d,p,f,h,g,m,y,_,v,b,S,E,T,w,k,I,x,C,A,R,O,N;var P,M,D,L,B,U,j,F,$,q,H,z,G,W,V=e.i(350461),J=e.i(391398),Y=e.i(958678),K=e.i(203828),X=e.i(691567);function Q(e){let{pageTitle:t,metaDescription:n,metaKeywords:r,ogTitle:i,ogDescription:o,ogImage:a}=e,s=(0,K.useRouter)(),l=("https://app.networked.co"+("/"===s.asPath?"":s.asPath)).split("?")[0];return(0,J.jsxs)(Y.default,{children:[(0,J.jsx)("meta",{charSet:"utf-8"}),(0,J.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"}),t&&(0,J.jsx)("title",{children:t}),(0,J.jsx)("link",{rel:"canonical",href:l}),n&&(0,J.jsx)("meta",{name:"description",content:n}),r&&(0,J.jsx)("meta",{name:"keywords",content:r}),i&&(0,J.jsx)("meta",{property:"og:title",content:i}),o&&(0,J.jsx)("meta",{property:"og:description",content:o}),a&&(0,J.jsx)("meta",{property:"og:image",content:a}),(0,J.jsx)("meta",{property:"og:type",content:"website"}),(0,J.jsx)("meta",{property:"og:url",content:l}),(0,J.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,J.jsx)("meta",{name:"twitter:site",content:"@networked"}),i&&(0,J.jsx)("meta",{name:"twitter:title",content:i}),o&&(0,J.jsx)("meta",{name:"twitter:description",content:o}),a&&(0,J.jsx)("meta",{name:"twitter:image",content:a}),a&&(0,J.jsx)("link",{rel:"icon",href:a})]})}Q.propTypes={pageTitle:X.default.string,metaDescription:X.default.string,metaKeywords:X.default.string,ogUrl:X.default.string,ogTitle:X.default.string,ogDescription:X.default.string,ogImage:X.default.string};var Z=e.i(451048),ee=e.i(182021),et=e.i(275885),en=e.i(111053);function er(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}
69function ei(e,t,n){let r;return t||`${er(e)}${e.projectId}/envelope/?${r={sentry_version:"7"},e.publicKey&&(r.sentry_key=e.publicKey),n&&(r.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(r).toString()}`}let eo="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var ea=e.i(410544),es=e.i(899619),el=e.i(387395),eu=e.i(914046);let ec=ea.GLOBAL_OBJ;function ed(){try{return ec.document.location.href}catch{return""}}function ep(e,t=5){if(!ec.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){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}let ef=ea.GLOBAL_OBJ,eh=0;function eg(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if((0,es.getOriginalFunction)(e))return e}catch{return e}let n=function(...n){ea.GLOBAL_OBJ._sentryWrappedDepth=(ea.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{let r=n.map(e=>eg(e,t));return e.apply(this,r)}catch(e){throw eh++,setTimeout(()=>{eh--}),(0,Z.withScope)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,el.addExceptionTypeValue)(e,void 0,void 0),(0,el.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,et.captureException)(e)}),e}finally{ea.GLOBAL_OBJ._sentryWrappedDepth=(ea.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,es.markFunctionWrapped)(n,e),(0,es.addNonEnumerableProperty)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function em(){let e=ed(),{referrer:t}=ef.document||{},{userAgent:n}=ef.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function ey(e={}){let t=ef.document,n=t?.head||t?.body;if(!n){eo&&ee.debug.error("[showReportDialog] Global document not defined");return}let r=(0,Z.getCurrentScope)(),i=(0,Z.getClient)(),o=i?.getDsn();if(!o){eo&&ee.debug.error("[showReportDialog] DSN not configured");return}let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||(0,et.lastEventId)()},s=ef.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,t){let n=(0,en.makeDsn)(e);if(!n)return"";let r=`${er(n)}embed/error-page/`,i=`dsn=${(0,en.dsnToString)(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${i}`}(o,a);let{onLoad:l,onClose:u}=a;if(l&&(s.onload=l),u){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{ef.removeEventListener("message",e)}};ef.addEventListener("message",e)}n.appendChild(s)}var e_=e.i(191788);let ev="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function eb(e,{componentStack:t},n){let r;if(null!==(r=e_.version.match(/^([^.]+)/))&&parseInt(r[0])>=17&&(0,eu.isError)(e)&&t){let n,r=Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,n=new WeakSet,function e(t,r){if(!n.has(t)){if(t.cause)return n.add(t),e(t.cause,r);t.cause=r}}(e,r)}return(0,et.captureException)(e,n)}function eS(e){return(t,n)=>{let r=!!e,i=eb(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,i)}}let eE={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},eT={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ew={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ek=Symbol.for("react.forward_ref"),eI=Symbol.for("react.memo"),ex={};function eC(e){if("object"==typeof e&&null!==e&&e.$$typeof===eI)return ew;let t=e.$$typeof;return t&&ex[t]||eE}ex[ek]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ex[eI]=ew;let eA=Object.defineProperty.bind(Object),eR=Object.getOwnPropertyNames.bind(Object),eO=Object.getOwnPropertySymbols?.bind(Object),eN=Object.getOwnPropertyDescriptor.bind(Object),eP=Object.getPrototypeOf.bind(Object),eM=Object.prototype;function eD(e,t,n){if("string"!=typeof t){if(eM){let n=eP(t);n&&n!==eM&&eD(e,n)}let n=eR(t);eO&&(n=n.concat(eO(t)));let r=eC(e),i=eC(t);for(let o of n)if(!eT[o]&&!i?.[o]&&!r?.[o]&&!eN(e,o)){let n=eN(t,o);if(n)try{eA(e,o,n)}catch(e){}}}return e}let eL={componentStack:null,error:null,eventId:null};class eB extends e_.Component{constructor(e){super(e),this.state=eL,this._openFallbackReportDialog=!0;const t=(0,Z.getClient)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&ey({...e.dialogOptions,eventId:this._lastEventId})}))}
69componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:i,showDialog:o,dialogOptions:a}=this.props;(0,Z.withScope)(s=>{r&&r(s,e,n);let l=eb(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});i&&i(e,n,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&ey({...a,eventId:l})),this.setState({error:e,componentStack:n,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===eL?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(eL)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;let r="function"==typeof e?e_.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return e_.isValidElement(r)?r:(e&&ev&&ee.debug.warn("fallback did not produce a valid ReactElement"),null)}}function eU(e,t){let n=e.displayName||e.name||"unknown",r=e_.memo(n=>e_.createElement(eB,{...t},e_.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,eD(r,e),r}var ej=e.i(430559),eF=e.i(168489),e$=e.i(194182),eq=e.i(622956),eq=eq,eH=e.i(68881);let ez=(0,e_.createContext)(void 0),eG=async()=>(localStorage.getItem("user")||(eH.CookieManager.removeCommunityToken(),eH.CookieManager.clearAuthCookies()),eH.CookieManager.getSessionToken()||(eH.CookieManager.removeCommunityToken(),eH.CookieManager.clearAuthCookies(),localStorage.removeItem("user")),localStorage.getItem("user")?JSON.parse(localStorage.getItem("user")):void 0);var eW=e.i(850209),eV=e.i(192837),eJ=e.i(728483),eY=e.i(353437),eK=e.i(26796),eX=e.i(131653),eQ=e.i(185175),eZ=e.i(967062),e0=e.i(417361),e1=e.i(972815),e2=e.i(392271);let e3=e=>{let{username:t}=e,[n,r]=(0,e_.useState)(!1),[i,o]=(0,e_.useState)(!1);return(0,J.jsx)(J.Fragment,{children:(0,J.jsx)("div",{className:"footer-container",children:(0,J.jsx)("div",{className:"container",children:(0,J.jsxs)("div",{className:"row",children:[(0,J.jsxs)("div",{className:"col-lg-4 text-left",children:[(0,J.jsx)("img",{src:eK.default,alt:"footer-icon"}),(0,J.jsxs)("div",{className:"footer-download-app",children:[(0,J.jsxs)("div",{className:"footer-download-link",children:[(0,J.jsx)("p",{className:"footer-download-title",children:"Download the app"}),(0,J.jsxs)("div",{className:"footer-store-btn",children:[(0,J.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.networked.app",target:"_blank",rel:"noopener noreferrer",children:(0,J.jsx)("button",{className:"mobl-store-button playStore",children:(0,J.jsx)("img",{src:eZ.default,alt:"playStore"})})}),(0,J.jsx)("a",{href:"https://apps.apple.com/us/app/networked-co/id1612064282",target:"_blank",rel:"noopener noreferrer",children:(0,J.jsx)("button",{className:"mobl-store-button appleStore",children:(0,J.jsx)("img",{src:eQ.default,alt:"appleStore"})})})]})]}),(0,J.jsxs)("div",{className:"footer-qr-link",children:[(0,J.jsx)("p",{className:"footer-download-title",children:"Scan QR code"}),(0,J.jsx)("img",{src:e0.default,alt:"appQRCode"})]})]})]}),(0,J.jsx)("div",{className:"col-lg-8",children:(0,J.jsxs)("div",{className:"footer-text-container",children:[(0,J.jsxs)("div",{className:"footer-text-col footer-menu",children:[(0,J.jsx)("div",{className:"footer-text-col-header",children:"Menu"}),(0,J.jsx)("div",{className:"footer-text-col-content",children:(0,J.jsx)(e2.default,{href:"/",defaultClassName:"footer-btn",page_section:"home_footer",click_text:"Home",children:"Home"})}),(0,J.jsx)("div",{className:"footer-text-col-content",children:(0,J.jsx)(e2.default,{href:"/features",defaultClassName:"footer-btn",page_section:"home_footer",click_text:"Features",children:"Features"})}),(0,J.jsx)("div",{className:"footer-text-col-content",children:(0,J.jsx)(e2.default,{href:"/pricing",defaultClassName:"footer-btn",page_section:"home_footer",click_text:"Pricing",children:"Pricing"})}),(0,J.jsx)("div",{className:"footer-text-col-content",children:(0,J.jsx)(e2.default,{href:"/affiliate",defaultClassName:"footer-btn",page_section:"home_footer",click_text:"Affiliate",children:"Affiliate"})}),(0,J.jsx)("div",{className:"footer-text-col-content",children:(0,J.jsx)(e2.default,{href:"/about-us",defaultClassName:"footer-btn",page_section:"home_footer",click_text:"About us",children:"About us"})}),(0,J.jsx)("div",{className:"footer-text-col-content",children:(0,J.jsx)(e2.default,{href:"/contact-us",defaultClassName:"footer-btn",page_section:"home_footer",click_text:"Contact us",children:"Contact us"})})]}),(0,J.jsxs)("div",{className:"footer-text-col footer-legel",children:[(0,J.jsx)("div",{className:"footer-text-col-header",children:"Legal"}),(0,J.jsxs)("div",{className:"footer-text-col-content",children:[(0,J.jsx)("p",{children:(0,J.jsx)("a",{href:"https://go.networked.co/terms-and-condition/",target:"_blank",rel:"noopener noreferrer",className:"termsandcondition",children:"Terms and Conditions"})}),(0,J.jsx)("p",{children:(0,J.jsx)("a",{href:"https://go.networked.co/privacy-policy/",target:"_blank",rel:"noopener noreferrer",className:"privacypolicy",children:"Privacy Policy"})})]})]}),(0,J.jsxs)("div",{className:"footer-text-col footer-Contact",children:[(0,J.jsx)("div",{className:"footer-text-col-header",children:"Contact"}),(0,J.jsxs)("div",{className:"footer-text-col-content footer-text-icon-link",children:[(0,J.jsx)(e1.default,{src:eJ.default,alt:"CompanyIcon"}),(0,J.jsx)("span",{children:"Networked International LLC"})]}),(0,J.jsxs)("div",{className:"footer-text-col-content footer-text-icon-link",children:[(0,J.jsx)(e1.default,{src:eY.default,alt:"LocationIcon"}),(0,J.jsx)("span",{children:"17 Grey Ct., Berwyn, Pennsylvania, United States, 19312"})]}),(0,J.jsxs)("div",{className:"footer-text-col-content footer-text-icon-link",children:[(0,J.jsx)(e1.default,{src:eW.default,alt:"CallIcon"}),(0,J.jsx)("span",{children:"+1 8334200999"})]}),(0,J.jsxs)("div",{className:"footer-text-col-content footer-btn-wrapper",children:[(0,J.jsxs)("a",{href:"mailto:[email protected]",className:"footer-btn mail-btn",children:[(0,J.jsx)(e1.default,{src:eV.default,alt:"CoustomerSucessIcon"}),"Client Success"]}),(0,J.jsxs)("a",{href:"mailto:[email protected]",className:"footer-btn mail-btn",children:[(0,J.jsx)(e1.default,{src:eX.default,alt:"SalesIcon"}
69),"Sales"]})]})]})]})})]})})})})};var e5=e.i(10780),e4=e.i(781918),e6=e.i(566194);let e8=e=>(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(e4.default,{"aria-labelledby":"contained-modal-title-vcenter",centered:!0,show:!0,backdrop:"static",keyboard:!1,dialogClassName:"modal-wrapper discardModal invalidCommunityModal",contentClassName:"modal-dialog",enforceFocus:!0,children:[(0,J.jsx)(e4.default.Header,{children:(0,J.jsx)(e4.default.Title,{children:"Invalid Community URL"})}),(0,J.jsxs)(e4.default.Body,{children:["Please check the URL and ensure it is valid and accessible. If the community is private, request access from the community owner or administrator. If the issue continues, for assistance, contact support at ",(0,J.jsx)("a",{href:"mailto:[email protected]",children:"“[email protected]“"})]}),(0,J.jsx)(e4.default.Footer,{children:(0,J.jsx)(e6.default,{size:"lg",variant:"primary",onClick:e.onClose,children:"Okay"})})]})});var e7=e.i(351774),e9=e.i(394869),te=e.i(709741),tt=e.i(712495),tn=e.i(41158),tr=e.i(817677),ti=e.i(930514);let to=e=>{let{user:t,setUser:n}=(0,e_.useContext)(ez),[r,i]=(0,e_.useState)(!1),o=(0,e9.getCookie)("show_popup"),[a,s]=(0,e_.useState)(o&&"invalid_community"===o);return(0,e_.useEffect)(()=>((0,e9.setCookie)("show_popup",""),()=>{i(!1),s(!1)}),[]),(0,J.jsxs)(J.Fragment,{children:[a&&(0,J.jsx)(e8,{onClose:()=>s(!1)}),(0,J.jsx)("nav",{className:"stat-landing navbar navbar-expand-lg navbar-light public-layout-navbar py-0",children:(0,J.jsxs)("div",{className:"container-fluid p-0",children:[(0,J.jsxs)("div",{className:"navbar-header",children:[(0,J.jsx)("li",{className:"hide-desktop",children:(0,J.jsx)(tn.default,{className:"navbar-brand",href:"/",children:(0,J.jsx)("img",{src:eK.default,alt:"networked logo",className:"logo"})})}),(0,J.jsx)("button",{onClick:()=>i(e=>!e),className:"navbar-toggler session-hd-toggle m-navbar",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation",children:(0,J.jsx)("span",{className:"navbar-toggler-icon",children:" "})})]}),r&&(0,J.jsx)("div",{className:"mobileMenu-overlay",onClick:()=>i(!1)}),(0,J.jsx)(e5.MobileMenu,{showModal:r,setShowModal:i,user:t,logout:e=>{e.preventDefault(),te.HttpWrapper.callUrl(tt.URLWrapper.urls.auth.logout,te.HttpMethod.POST,{firebaseToken:"test"},tr.VLogout,{sessionToken:eH.CookieManager.getSessionToken(),origin:"https://app.networked.co"}).then(async e=>{localStorage.removeItem("user"),eH.CookieManager.clearAuthCookies(),eH.CookieManager.removeCommunityToken(),n(void 0);try{await (0,ti.getSupabaseClient)().auth.signOut()}catch{}}).catch(e=>{e7.toastService.error(e.message)})}})]})})]})},ta=function({children:e}){let[t,n]=(0,e_.useState)(void 0);return(0,e_.useEffect)(()=>{(async()=>{n(await eG())})()},[]),(0,J.jsx)("div",{className:"public-layout",children:(0,J.jsxs)(ez.Provider,{value:{user:t,setUser:e=>{n(e)}},children:[(0,J.jsx)(to,{}),e,(0,J.jsx)(e3,{})]})})};var ts=e.i(425566),tl=e.i(221045),tu=e.i(964787),tc=e.i(107088);e.i(664157);var td=e.i(271179),tp=e.i(844434),tf=e.i(986207),th=e.i(308974),tg=e.i(382267),tm=e.i(258819);let ty="mobile_popup_visibility",t_="mobile_popup_visibility_member",tv=()=>{let[e,t]=(0,e_.useState)(!0),[n,r]=(0,e_.useState)(!0),[i,o]=(0,e_.useState)(!1),[a,s]=(0,e_.useState)(""),[l,u]=(0,e_.useState)(""),[c,d]=(0,e_.useState)(null),[p,f]=(0,e_.useState)(null),[h,g]=(0,e_.useState)(""),[m,y]=(0,e_.useState)(!1),_=(0,K.useRouter)();console.log("🚀 ~ GlobalAppDownloadPopup ~ router:",_);let{t:v}=(0,td.useTranslation)("next-app"),b=eH.CookieManager.isAuthenticated();(0,e_.useEffect)(()=>{if(!_.isReady)return;o((0,tf.isMobile)());let e=sessionStorage.getItem(ty),n="/o/[slug]"===_.pathname||_.pathname.includes("/offers");if("hidden"===e||"/app/verify-identity"==_.pathname||n?t(!1):b&&S(),"hidden"===sessionStorage.getItem(t_))r(!1);else if(b){let t=_.asPath||"";if(t.startsWith("/c/mobile")&&document.referrer&&document.referrer!==window.location.href)try{let e=new URL(document.referrer);t=e.pathname+e.search}catch(e){t=document.referrer}if(t.includes("verify-identity")||n)return void r(!1);"hidden"===e&&S()}},[_.isReady,_.query,_.asPath]);let S=async()=>{let e=_.asPath||"";if(e.startsWith("/c/mobile")&&document.referrer&&document.referrer!==window.location.href)try{let t=new URL(document.referrer);e=t.pathname+t.search}catch(t){e=document.referrer}let t=!1,n=null,r=null;if(/\/feed\b/.test(e)){t=!0,n="feed";let i=e.match(/\/feed\/([a-zA-Z0-9]{24})(?:[/?]|$)/);r=i?i[1]:null}else if(/\/events\b/.test(e)||/\/events-past\b/.test(e)){t=!0,n="event";let i=e.match(/\/(?:events|events-past)\/([a-zA-Z0-9]{24})(?:[/?]|$)/);r=i?i[1]:null}else if(/\/profile\b/.test(e))t=!0,n="community-profile";else if(/\/groups\b/.test(e)){t=!0,n="space";let i=e.match(/\/groups\/([a-zA-Z0-9]{24})(?:[/?]|$)/);r=i?i[1]:null}else t=!1;console.log("Current path:",e,"Matches relevant page:",t),console.log(" query : ",_.query.communityId," router.query.readbleid : ",_.query.readbleid),await te.HttpWrapper.callUrl(tt.URLWrapper.urls.globalRoutes.createAppLink,te.HttpMethod.POST,{readableId:_.query.readbleid||"",communityId:_.query.communityId||"",tokenId:eH.CookieManager.getTokenId(),linkParams:t?ts.default.getStructuredParams(n,r,_.query.readbleid,_.query.communityId):ts.default.getStructuredParams(void 0,void 0,_.query.readbleid,_.query.communityId)},tc.VCreateAppLink).then(async e=>{console.log(" response : ",e),s(e.androidLink),u(e.iosLink),d(e?.image),f(e?.communityName),g(e?.communityAbout),y(e?.isMember)}).finally(()=>{}).catch(e=>{console.log(" err ",e)}
69)};return(0,e_.useEffect)(()=>{let e=()=>o((0,tf.isMobile)());return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[e]),(0,J.jsxs)(J.Fragment,{children:[m&&b&&e&&i&&(0,J.jsxs)("div",{className:tm.default.popupOverlay,children:[(0,J.jsx)("div",{className:tm.default.closeButton,children:(0,J.jsx)(tl.default,{url:th.default,width:20,iconColor:"rgba(0, 0, 0, 0.8)",height:20,onClick:()=>{t(!1),sessionStorage.setItem(ty,"hidden")}})}),(0,J.jsxs)("div",{className:tm.default.downloadContent,children:[(0,J.jsx)("img",{src:c||tg.default,alt:"logo"}),(0,J.jsxs)("div",{children:[(0,J.jsx)("div",{className:tm.default.title,children:p||"Networked"}),(0,J.jsx)("div",{className:tm.default.description,children:h||v("downloadMobilePopup.descroption","Start using by downloading the Networked mobile app")})]}),(0,J.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:(0,J.jsx)(tu.default,{borderRadius:12,children:v("downloadMobilePopup.download","Download")})})]})]}),m&&b&&n&&i&&(0,J.jsxs)(tp.Modal,{"aria-labelledby":"contained-modal-title-vcenter",centered:!0,show:!0,backdrop:"static",keyboard:!1,dialogClassName:"modal-wrapper discardModal invalidCommunityModal memberCommunityModal",contentClassName:"modal-dialog memberCommunityModal",enforceFocus:!1,autoFocus:!1,zIndex:9999,children:[(0,J.jsx)(tp.Modal.Header,{className:"w-100",children:(0,J.jsx)(tp.Modal.Title,{className:"w-100",children:(0,J.jsxs)("div",{className:"d-flex align-items-center justify-content-between",children:[(0,J.jsx)("span",{children:"You're One of Us Now!"})," ",(0,J.jsx)("span",{className:tm.default.closeButton,children:(0,J.jsx)(tl.default,{url:th.default,width:15,isIconColor:!0,height:15,onClick:()=>{r(!1),sessionStorage.setItem(t_,"hidden")}})})]})})}),(0,J.jsx)(tp.Modal.Body,{children:(0,J.jsx)("div",{className:"pl-2",children:(0,J.jsx)("p",{children:"You are now part of the community. Please download the mobile app to get started!"})})})]})]})};var tb=e.i(392919),tS=e.i(789132),tE=e.i(669035),tT=e.i(975901);let{autoAttributesPlugin:tw}=e.r(448168),tk=new tS.GrowthBook,tI=({children:e})=>{let[t,n]=(0,e_.useState)(void 0);return(0,e_.useEffect)(()=>{let e=new tS.GrowthBook({apiHost:"https://cdn.growthbook.io",clientKey:"sdk-17uaI9zH5NSRfHxh",enableDevMode:!0,trackingCallback:(e,t)=>{tE.FirebaseAnalytics.getInstance()?.logEvent({eventName:"experiment_viewed",eventParams:{experiment_id:e.key,variation_id:t.key,experiment_name:e.name}}),sessionStorage.setItem(tT.SessionVariables.experimentViewed,JSON.stringify({experimentId:e.key,variationId:t.key})),console.log("GrowthBook Viewed Experiment",{experimentId:e.key,variationId:t.key})},plugins:[tw()]});e.init({streaming:!0}),n(e)},[]),(0,J.jsx)(tb.GrowthBookProvider,{growthbook:t||tk,children:(0,J.jsx)(tT.default,{children:e})})};var tx=e.i(250694),tC=e.i(979021),tA=e.i(765966),tR=e.i(91214),tO=e.i(983971),tN=e.i(47811);function tP(){return"https://8ce283a04950c74c3890dc3861e97997@o4510867320406016.ingest.us.sentry.io/4511211564892160".trim()}e.s([],176418),e.i(176418);var tM=e.i(653541);function tD(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:tM.SDK_VERSION})),i.version=tM.SDK_VERSION)}var tL=e.i(664660);let tB=[];function tU(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function tj(e,t,n){if(n[t.name]){tL.DEBUG_BUILD&&ee.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,tB.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),tB.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{let r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),tL.DEBUG_BUILD&&ee.debug.log(`Integration installed: ${t.name}`)}function tF(e){let t=(0,Z.getClient)();if(!t){tL.DEBUG_BUILD&&ee.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function t$(e){let t=[];e.message&&t.push(e.message);try{let 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}var tq=e.i(399677);let tH=[/^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$/,/Java object is gone$/],tz=(e={})=>{let t;return{name:"EventFilters",setup(n){t=tW(e,n.getOptions())},processEvent:(n,r,i)=>(t||(t=tW(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&(0,tq.stringMatchesSomePattern)(n,t)}(e,t.ignoreTransactions))return tL.DEBUG_BUILD&&ee.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
70Event: ${(0,el.getEventDescription)(e)}`),!0}else{var n,r,i;if(n=e,r=t.ignoreErrors,r?.length&&t$(n).some(e=>(0,tq.stringMatchesSomePattern)(e,r)))return tL.DEBUG_BUILD&&ee.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
71Event: ${(0,el.getEventDescription)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return tL.DEBUG_BUILD&&ee.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.
72Event: ${(0,el.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=tV(e);return!!n&&(0,tq.stringMatchesSomePattern)(n,t)}(e,t.denyUrls))return tL.DEBUG_BUILD&&ee.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.
73Event: ${(0,el.getEventDescription)(e)}.
74Url: ${tV(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=tV(e);return!n||(0,tq.stringMatchesSomePattern)(n,t)}(e,t.allowUrls))return tL.DEBUG_BUILD&&ee.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.
75Event: ${(0,el.getEventDescription)(e)}.
76Url: ${tV(e)}`),!0}return!1}(n,t)?n:null)}},tG=(e={})=>({...tz(e),name:"InboundFilters"});function tW(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:tH],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function tV(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return tL.DEBUG_BUILD&&ee.debug.error(`Cannot extract url for event ${(0,el.getEventDescription)(e)}`),null}}let tJ=new WeakMap,tY=()=>({name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n,r=(0,es.getOriginalFunction)(this);try{tJ.has((0,Z.getClient)())&&void 0!==r&&(n=r)}catch{}return e.apply(n??this,t)}}catch{}},setup(e){tJ.set(e,!0)}});var tK=e.i(63104),tX=e.i(893859),tQ=e.i(25366);let tZ=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n,r,i,o,a,s;let l,u,c,d;if(n=t,(r=e)&&(i=n,o=r,l=i.message,u=o.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&t1(i,o)&&t0(i,o)&&1||(a=n,s=r,c=t2(s),d=t2(a),c&&d&&c.type===d.type&&c.value===d.value&&t1(a,s)&&t0(a,s)
76)))return tL.DEBUG_BUILD&&ee.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function t0(e,t){let n=(0,tQ.getFramesFromEvent)(e),r=(0,tQ.getFramesFromEvent)(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function t1(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 t2(e){return e.exception?.values?.[0]}var t3=e.i(878174);function t5(e){(0,Z.getCurrentScope)().setClient(e)}var t4=e.i(872028),t6=e.i(540735);function t8(e){return(0,es.addNonEnumerableProperty)(e,"_streamed",!0),e}function t7(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}var t9=e.i(931140),ne=e.i(479838);function nt(e,t=[]){return[e,t]}function nn(e,t){let[n,r]=e;return[n,[...r,t]]}function nr(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function ni(e,t){return nr(e,(e,n)=>t.includes(n))}function no(e){let t=(0,t9.getSentryCarrier)(ea.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function na(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[no(r),e]:r.push("string"==typeof e?no(e):e)}for(let e of n){let[t,n]=e;if(i(`
77${JSON.stringify(t)}
78`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,t3.normalize)(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}let ns={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"};function nl(e){return e in ns?ns[e]:e}function nu(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function nc(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,ne.safeDateNow)()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,en.dsnToString)(r)},...i&&{trace:i}}}function nd(e){ee.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function np(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&(0,tq.isMatchingPattern)(e.description,r))return tL.DEBUG_BUILD&&nd(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let i=!r.name||e.description&&(0,tq.isMatchingPattern)(e.description,r.name),o=!r.op||e.op&&(0,tq.isMatchingPattern)(e.op,r.op),a=!r.attributes||Object.entries(r.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,tq.isMatchingPattern)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));if(i&&o&&a)return tL.DEBUG_BUILD&&nd(e),!0}return!1}var nf=e.i(574860),nh=e.i(272536),ng=e.i(266361),nm=e.i(847378);let ny=0;function n_(e){let n=Math.floor(1e3*e);void 0!==t&&n!==t&&(ny=0);let r=ny;return ny++,t=n,{key:"sentry.timestamp.sequence",value:{value:r,type:"integer"}}}function nv(e,t){return t?(0,Z.withScope)(t,()=>{let n=(0,tX.getActiveSpan)(),r=n?(0,tX.spanToTraceContext)(n):(0,Z.getTraceContextFromScope)(t);return[n?(0,t6.getDynamicSamplingContextFromSpan)(n):(0,t6.getDynamicSamplingContextFromScope)(e,t),r]}):[void 0,void 0]}let nb={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function nS(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==V.default?V.default:0))||(e=ea.GLOBAL_OBJ.process,e?.type==="renderer"))}function nE(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function nT(e,t){var n;let r=nI(),i=(n=e,nI().get(n));void 0===i?r.set(e,[t]):i.length>=100?(nk(e,i),r.set(e,[t])):r.set(e,[...i,t])}function nw(e,t=(0,Z.getCurrentScope)(),n=nT){let r=t?.getClient()??(0,Z.getClient)();if(!r){tL.DEBUG_BUILD&&ee.debug.warn("No client available to capture log.");return}let{release:i,environment:o,enableLogs:a=!0,beforeSendLog:s}=r.getOptions();if(!a){tL.DEBUG_BUILD&&ee.debug.warn("logging option not enabled, log will not be captured.");return}let[,l]=nv(r,t),u={...e.attributes},{user:{id:c,email:d,username:p},attributes:f={}}=(0,nh.getCombinedScopeData)((0,Z.getIsolationScope)(),t);nE(u,"user.id",c,!1),nE(u,"user.email",d,!1),nE(u,"user.name",p,!1),nE(u,"sentry.release",i),nE(u,"sentry.environment",o);let{name:h,version:g}=r.getSdkMetadata()?.sdk??{};nE(u,"sentry.sdk.name",h),nE(u,"sentry.sdk.version",g);let m=r.getIntegrationByName("Replay"),y=m?.getReplayId(!0);nE(u,"sentry.replay_id",y),y&&m?.getRecordingMode()==="buffer"&&nE(u,"sentry._internal.replay_is_buffering",!0);let _=e.message;
78if((0,eu.isParameterizedString)(_)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=_;t?.length&&(u["sentry.message.template"]=e),t.forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=e})}let v=(0,ng._getSpanForScope)(t);nE(u,"sentry.trace.parent_span_id",v?.spanContext().spanId);let b={...e,attributes:u};r.emit("beforeCaptureLog",b);let S=s?(0,ee.consoleSandbox)(()=>s(b)):b;if(!S){r.recordDroppedEvent("before_send","log_item",1),tL.DEBUG_BUILD&&ee.debug.warn("beforeSendLog returned null, log will not be captured.");return}let{level:E,message:T,attributes:w={},severityNumber:k}=S,I=(0,nm.timestampInSeconds)(),x=n_(I);n(r,{timestamp:I,level:E,body:nx(String(T)),trace_id:l?.trace_id,severity_number:k??nb[E],attributes:function(e){let t={};for(let[n,r]of Object.entries(e)){let e=nx(n);"string"===r.type?t[e]={...r,value:nx(r.value)}:t[e]=r}return t}({...(0,nf.serializeAttributes)(f),...(0,nf.serializeAttributes)(w,!0),[x.key]:x.value})}),r.emit("afterCaptureLog",S)}function nk(e,t){var n,r,i,o,a;let s,l,u=t??(a=e,nI().get(a))??[];if(0===u.length)return;let c=e.getOptions(),d=(n=c._metadata,r=c.tunnel,i=e.getDsn(),o=e.getDataCollectionOptions().userInfo,s={},n?.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(s.dsn=(0,en.dsnToString)(i)),nt(s,[(l=o?"auto":"never",[{type:"log",item_count:u.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...nS()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));nI().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(d)}function nI(){return(0,t9.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function nx(e){let t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return"function"==typeof n&&"function"==typeof r?n.call(e)?e:r.call(e):e}function nC(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function nA(e,t){var n;let r=nO(),i=(n=e,nO().get(n));void 0===i?r.set(e,[t]):i.length>=1e3?(nR(e,i),r.set(e,[t])):r.set(e,[...i,t])}function nR(e,t){var n,r,i,o,a;let s,l,u=t??(a=e,nO().get(a))??[];if(0===u.length)return;let c=e.getOptions(),d=(n=c._metadata,r=c.tunnel,i=e.getDsn(),o=e.getDataCollectionOptions().userInfo,s={},n?.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(s.dsn=(0,en.dsnToString)(i)),nt(s,[(l=o?"auto":"never",[{type:"trace_metric",item_count:u.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...nS()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));nO().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(d)}function nO(){return(0,t9.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}var nN=e.i(817433);function nP(e){return"stream"===e.getOptions().traceLifecycle}var nM=e.i(980323),nD=e.i(66437);let nL=Symbol.for("SentryBufferFullError");function nB(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return(0,nM.rejectedSyncPromise)(nL);let r=n();return t.add(r),r.then(()=>{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return(0,nM.resolvedSyncPromise)(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>(0,nD.safeUnref)(setTimeout(()=>t(!1),e)))]):n}}}function nU(e,t=(0,ne.safeDateNow)()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function nj(e,t,n=(0,ne.safeDateNow)()){return(e[t]||e.all||0)>n}function nF(e,{statusCode:t,headers:n},r=(0,ne.safeDateNow)()){let i={...e},o=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=r+s):i[e]=r+s;else i.all=r+s}else a?i.all=r+nU(a,r):429===t&&(i.all=r+6e4);return i}function n$(e,t,n=nB(e.bufferSize||64)){let r={};return{send:function(i){let o=[];if(nr(i,(t,n)=>{let i=nl(n);nj(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):o.push(t)}),0===o.length)return Promise.resolve({});let a=nt(i[0],o),s=t=>{if(ni(a,["client_report"])){tL.DEBUG_BUILD&&ee.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}nr(a,(n,r)=>{e.recordDroppedEvent(t,nl(r))})};return n.add(()=>t({body:na(a)}).then(e=>(413===e.statusCode?(tL.DEBUG_BUILD&&ee.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(tL.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&ee.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=nF(r,e)),e),e=>{throw s("network_error"),tL.DEBUG_BUILD&&ee.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>
78{if(e===nL)return tL.DEBUG_BUILD&&ee.debug.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}var nq=e.i(871766),nH=e.i(958927),nz=e.i(929203),nG=e.i(24460);let nW={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},nV="Not capturing exception because it's already been captured.",nJ="Discarded session because of missing or non-string release",nY=Symbol.for("SentryInternalError"),nK=Symbol.for("SentryDoNotSendEventError");function nX(e){return{message:e,[nY]:!0}}function nQ(e){return{message:e,[nK]:!0}}function nZ(e){return(0,eu.isObjectLike)(e)&&nY in e}function n0(e){return(0,eu.isObjectLike)(e)&&nK in e}function n1(e,t,n,r,i){let o,a=0,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if((a+=r(t))>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,o=(0,nD.safeUnref)(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class n2{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=nB(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?nW:(0,nG.defaultPiiToCollectionOptions)(e.sendDefaultPii),n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:function(e,t){return void 0===e?{...t.httpHeaders}:"boolean"==typeof e||"allow"in e||"deny"in e?{request:e,response:e}:{request:e.request??t.httpHeaders.request,response:e.response??t.httpHeaders.response}}(n.httpHeaders,t),httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=(0,en.makeDsn)(e.dsn):tL.DEBUG_BUILD&&ee.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=ei(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??!0,this._options.enableLogs&&n1(this,"afterCaptureLog","flushLogs",n8,nk),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&n1(this,"afterCaptureMetric","flushMetrics",n6,nR)}captureException(e,t,n){let r=(0,el.uuid4)();if((0,el.checkOrSetAlreadyCaught)(e))return tL.DEBUG_BUILD&&ee.debug.log(nV),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),"error"),i.event_id}captureMessage(e,t,n,r){let i={event_id:(0,el.uuid4)(),...n},o=(0,eu.isParameterizedString)(e)?e:String(e),a=(0,eu.isPrimitive)(e),s=a?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),a?"unknown":"error"),i.event_id}captureEvent(e,t,n){let r=(0,el.uuid4)();if(t?.originalException&&(0,el.checkOrSetAlreadyCaught)(t.originalException))return tL.DEBUG_BUILD&&ee.debug.log(nV),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},a=o.capturedSpanScope,s=o.capturedSpanIsolationScope,l=n3(e.type);return this._process(()=>this._captureEvent(e,i,a||n,s),l),i.event_id}captureSession(e){this.sendSession(e),(0,nN.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){let t=this._transport;
78if(this.emit("flush"),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let 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){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),tj(this,e,this._integrations),t||tU(this,[e])}sendEvent(e,t={}){var n,r,i;let o,a,s;this.emit("beforeSendEvent",e,t);let l=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||nP(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?n.push(function(e){let 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(0,tX.streamedSpanJsonToSerializedSpan)(t)}(t)):r.push(t);if(0===n.length)return;e.spans=r;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...nS()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}(e,this),u=(n=this._dsn,r=this._options._metadata,i=this._options.tunnel,o=nu(r),a=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){if(!t)return;let n=e.sdk||{};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,r?.sdk),s=nc(e,o,i,n),delete e.sdkProcessingMetadata,nt(s,[[{type:a},e]]));for(let e of t.attachments||[])u=nn(u,function(e){let t="string"==typeof e.data?no(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));l&&(u=nn(u,l)),this.sendEnvelope(u).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){var t,n,r;let i,{release:o,environment:a=t4.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!o){tL.DEBUG_BUILD&&ee.debug.warn(nJ);return}t.release=t.release||o,t.environment=t.environment||a,e.attrs=t}else{if(!e.release&&!o){tL.DEBUG_BUILD&&ee.debug.warn(nJ);return}e.release=e.release||o,e.environment=e.environment||a}this.emit("beforeSendSession",e);let s=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,i=nu(n),nt({sent_at:new Date((0,ne.safeDateNow)()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:(0,en.dsnToString)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(s)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;tL.DEBUG_BUILD&&ee.debug.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let 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(e){return tL.DEBUG_BUILD&&ee.debug.error("Error while sending envelope:",e),{}}return tL.DEBUG_BUILD&&ee.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),n.forEach(n=>{n&&tj(e,n,t)}),t),tU(this,n)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i){for(let e of(r=!0,n=!1,i))if(e.mechanism?.handled===!1){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,nN.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){let i=this.getOptions(),o=this.getIntegrationNames();
78return!t.integrations&&o.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,nz.prepareEvent)(i,e,t,n,this,r).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,Z.getTraceContextFromScope)(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,t6.getDynamicSamplingContextFromScope)(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=(0,Z.getCurrentScope)(),r=(0,Z.getIsolationScope)()){return tL.DEBUG_BUILD&&n5(e)&&ee.debug.log(`Captured error event \`${t$(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{tL.DEBUG_BUILD&&(n0(e)?ee.debug.log(e.message):nZ(e)?ee.debug.warn(e.message):ee.debug.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:o}=i,a=n4(e),s=n5(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===o?void 0:(0,nH.parseSampleRate)(o),d=n3(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),nQ("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,eu.isThenable)(e))return e.then(e=>{if(!(0,eu.isPlainObject)(e)&&null!==e)throw nX(n);return e},e=>{throw nX(`${t} rejected with ${e}`)});if(!(0,eu.isPlainObject)(e)&&null!==e)throw nX(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,ignoreSpans:a}=t,s=!t7(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(n5(l)&&i)return i(l,r);if(n4(l)){if(s||a){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:o,data:a,op:s}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:a?.[tK.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:a?.[tK.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(l);if(a?.length&&np({description:t.description,op:t.op,attributes:t.data},a))return null;if(s){let e=s(t);if(e)l=(0,nq.merge)(n,{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&&{[tK.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[tK.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,tX.showSpanDropWarning)()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(a?.length&&np({description:e.description,op:e.op,attributes:e.data},a)){!function(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}(n,e);continue}if(s){let n=s(e);n?t.push(n):((0,tX.showSpanDropWarning)(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(o){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(l,r)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw nQ(`${u} returned \`null\`, will not send event.`)}let l=n.getSession()||r.getSession();if(s&&l&&this._updateSessionFromEvent(l,i),s&&"number"==typeof c&&(0,ne.safeMathRandom)()>c)throw this.recordDroppedEvent("sample_rate","error"),nQ(`Discarding event because it's not included in the random sample (sampling rate = ${o})`);if(a){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let p=i.transaction_info;return a&&p&&i.transaction!==e.transaction&&(i.transaction_info={...p,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(n0(e)||nZ(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),nX(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
79Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===nL&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;tL.DEBUG_BUILD&&ee.debug.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){tL.DEBUG_BUILD&&ee.debug.log("No outcomes to send");return}if(!this._dsn){tL.DEBUG_BUILD&&ee.debug.log("No dsn provided, will not send outcomes");return}tL.DEBUG_BUILD&&ee.debug.log("Sending outcomes:",t);let n=nt((e=this._options.tunnel&&(0,en.dsnToString)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,nm.dateTimestampInSeconds)(),discarded_events:t}]]);this.sendEnvelope(n)}}function n3(e){return"replay_event"===e?"replay":e||"error"}function n5(e){return void 0===e.type}function n4(e){return"transaction"===e.type}function n6(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+n7(e.attributes)}function n8(e){let t=0;return e.message&&(t+=2*e.message.length),t+n7(e.attributes)}function n7(e){if(!e)return 0;let t=0;
79return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*n9(e[0]):(0,eu.isPrimitive)(e)?t+=n9(e):t+=100}),t}function n9(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function re(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function rt(e){return(0,eu.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function rn(e,t){var n,r;let i,o,a=ri(e,t),s={type:(n=t,!(i=n?.name)&&ra(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":i),value:(r=t,o=r?.message,ra(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":o?o.error&&"string"==typeof o.error.message?rt(o.error):rt(r):"No error message")};return a.length&&(s.stacktrace={frames:a}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function rr(e,t){return{exception:{values:[rn(e,t)]}}}function ri(e,t){var n,r;let i=t.stacktrace||t.stack||"",o=(n=t)&&ro.test(n.message)?1:0,a="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,o,a)}catch{}return[]}let ro=/Minified React error #\d+;/i;function ra(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function rs(e,t,n,r){let i=ru(e,t,n?.syntheticException||void 0,r);return(0,el.addExceptionMechanism)(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),(0,nM.resolvedSyncPromise)(i)}function rl(e,t,n="info",r,i){let o=rc(e,t,r?.syntheticException||void 0,i);return o.level=n,r?.event_id&&(o.event_id=r.event_id),(0,nM.resolvedSyncPromise)(o)}function ru(e,t,n,r,i){let o;if((0,eu.isErrorEvent)(t)&&t.error)return rr(e,t.error);if((0,eu.isDOMError)(t)||(0,eu.isDOMException)(t)){if("stack"in t){o=rr(e,t);let i=o.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=ri(e,n);t.length&&(i.stacktrace={frames:t},(0,el.addExceptionMechanism)(o,{synthetic:!0}))}}else{let i=t.name||((0,eu.isDOMError)(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;o=rc(e,a,n,r),(0,el.addExceptionTypeValue)(o,a)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,eu.isError)(t)?rr(e,t):((0,eu.isPlainObject)(t)||(0,eu.isEvent)(t)?o=function(e,t,n,r){let i=(0,Z.getClient)(),o=i?.getOptions().normalizeDepth,a=Object.values(t).find(eu.isError),s={__serialized__:(0,t3.normalizeToSize)(t,o)};if(a)return{exception:{values:[rn(e,a)]},extra:s};let l={exception:{values:[{type:(0,eu.isEvent)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,es.extractExceptionKeysForMessage)(e),r=t?"promise rejection":"exception";if((0,eu.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,eu.isEvent)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=ri(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i):(o=rc(e,t,n,r),(0,el.addExceptionTypeValue)(o,`${t}`,void 0)),(0,el.addExceptionMechanism)(o,{synthetic:!0}),o)}function rc(e,t,n,r){let i={};if(r&&n){let r=ri(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,el.addExceptionMechanism)(i,{synthetic:!0})}if((0,eu.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}class rd extends n2{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:ef.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);tD(t,"browser",["browser"],ef.SENTRY_SDK_SOURCE||"npm"),super(t);const{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:r}=this._options;ef.document&&ef.document.addEventListener("visibilitychange",()=>{"hidden"===ef.document.visibilityState&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",re)}eventFromException(e,t){return rs(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return rl(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)}}let rp={},rf={};function rh(e,t){return rp[e]=rp[e]||[],rp[e].push(t),()=>{let n=rp[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function rg(e,t){if(!rf[e]){rf[e]=!0;try{t()}catch(t){tL.DEBUG_BUILD&&ee.debug.error(`Error while instrumenting ${e}`,t)}}}function rm(e,t){let n=e&&rp[e];if(n)for(let r of n)try{r(t)}catch(t){tL.DEBUG_BUILD&&ee.debug.error(`Error while triggering instrumentation handler.
80Type: ${e}
81Name: ${(0,tQ.getFunctionName)(r)}
82Error:`,t)}}let ry=new Set([]);function r_(e){let t="console",n=rh(t,e);return rg(t,rb),n}
82let rv=new Set;function rb(){"console"in ea.GLOBAL_OBJ&&ee.CONSOLE_LEVELS.forEach(function(e){!rv.has(e)&&e in ea.GLOBAL_OBJ.console&&(rv.add(e),(0,es.fill)(ea.GLOBAL_OBJ.console,e,function(t){return ee.originalConsoleMethods[e]=t,function(...t){let n=t[0],r=ee.originalConsoleMethods[e],i=ry.size&&"string"==typeof n&&(0,tq.stringMatchesSomePattern)(n,ry);i||rm("console",{args:t,level:e}),(!i||tL.DEBUG_BUILD&&ee.debug.isEnabled())&&r?.apply(ea.GLOBAL_OBJ.console,t)}}))})}let rS=ea.GLOBAL_OBJ;function rE(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function rT(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in rS))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(rE(rS.fetch))return!0;let e=!1,t=rS.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=rE(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){tL.DEBUG_BUILD&&ee.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function rw(e,t){let n="fetch",r=rh(n,e);return rg(n,()=>rk(void 0,t)),r}function rk(e,t=!1){(!t||rT())&&(0,es.fill)(ea.GLOBAL_OBJ,"fetch",function(t){return function(...n){let r=Error(),{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:rA(t),method:rC(n,"method")?String(n.method).toUpperCase():(0,eu.isRequest)(t)&&rC(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:rA(t),method:rC(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:i,url:o},startTimestamp:1e3*(0,nm.timestampInSeconds)(),virtualError:r,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,eu.isRequest)(t))return new Headers(t.headers)}catch{}}(n)};return e||rm("fetch",{...a}),t.apply(ea.GLOBAL_OBJ,n).then(async t=>(e?e(t):rm("fetch",{...a,endTimestamp:1e3*(0,nm.timestampInSeconds)(),response:t}),t),e=>{rm("fetch",{...a,endTimestamp:1e3*(0,nm.timestampInSeconds)(),error:e}),(0,eu.isError)(e)&&void 0===e.stack&&(e.stack=r.stack,(0,es.addNonEnumerableProperty)(e,"framesToPop",1));let t=(0,Z.getClient)(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&(0,eu.isError)(e)&&"TypeError"===e.name&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(a.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:(0,es.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function rI(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function rx(e){let t;try{t=e.clone()}catch{return}rI(t,()=>{rm("fetch-body-resolved",{endTimestamp:1e3*(0,nm.timestampInSeconds)(),response:e})})}function rC(e,t){return(0,eu.isObjectLike)(e)&&!!e[t]}function rA(e){return"string"==typeof e?e:e?rC(e,"url")?e.url:e.toString?e.toString():"":""}function rR(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function rO(e,t){let n=(0,Z.getClient)(),r=(0,Z.getIsolationScope)();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=n.getOptions();if(o<=0)return;let a={timestamp:(0,nm.dateTimestampInSeconds)(),...e},s=i?(0,ee.consoleSandbox)(()=>i(a,t)):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function rN(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}let rP="graphql.document",rM="http.url",rD="sentry.segment.name",rL="sentry.transaction",rB="url.full",rU="url.path",rj="url.template";var rF=e.i(400403),r$=e.i(684293);function rq(e,t){if(e&&!1!==t)return e.split("&").map(e=>{let n=e.indexOf("="),r=-1===n?e:e.slice(0,n),i=new URLSearchParams(`${r}=`).keys().next().value;return void 0!==i&&(0,r$.shouldFilterDataKey)(i,t)?`${r}=${rF.FILTERED_VALUE}`:e}).join("&")}function rH(e){return(e??(0,Z.getClient)())?.getDataCollectionOptions().urlQueryParams??!0}function rz(e,t){return void 0===e?void 0:function(e,t){let n=e.indexOf("#"),r=-1===n?e.length:n,i=e.indexOf("?");if(-1===i||i>r)return e;let o=e.slice(0,i),a=e.slice(i+1,r),s=e.slice(r),l=rq(a,t);return l?`${o}?${l}${s}`:`${o}${s}`}(e,rH(t))}function rG(e,t){if(!e)return e;let n=e.startsWith("?"),r=rq(n?e.slice(1):e,rH(t));return r&&n?`?${r}`:r}function rW(e){return"isRelative"in e}function rV(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function rJ(e){if(rW(e))return e.pathname;let 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 rY(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function rK(e){return e.split(/[?#]/,1)[0]}function rX(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),o=e.indexOf(","),a="";if(t&&-1!==o){let t=e.slice(o+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?",base64":""}${a?`,${a}`:""}`}return e}let rQ=ea.GLOBAL_OBJ;function rZ(e){rh("dom",e),rg("dom",r0)}function r0(){if(!rQ.document)return;let e=rm.bind(null,"dom"),t=r1(e,!0);rQ.document.addEventListener("click",t,!1),rQ.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=rQ[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,es.fill)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=r1(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch{}return t.call(this,n,r,i)}}),(0,es.fill)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.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 r1(e,t=!1){return o=>{var a;if(!o||o._sentryCaptured)return;let s=function(e){try{return e.target}catch{return null}}(o);if(a=o.type,"keypress"===a&&(!s?.tagName||"INPUT"!==s.tagName&&"TEXTAREA"!==s.tagName&&!s.isContentEditable&&1))return;(0,es.addNonEnumerableProperty)(o,"_sentryCaptured",!0),s&&!s._sentryId&&(0,es.addNonEnumerableProperty)(s,"_sentryId",(0,el.uuid4)());let l="keypress"===o.type?"input":o.type;!function(e){if(e.type!==r)return!1;try{if(!e.target||e.target._sentryId!==i)return!1}catch{}return!0}(o)&&(e({event:o,name:l,global:t}),r=o.type,i=s?s._sentryId:void 0),clearTimeout(n),n=rQ.setTimeout(()=>{i=void 0,r=void 0},1e3)}}let r2="__sentry_xhr_v3__";function r3(e){rh("xhr",e),rg("xhr",r5)}function r5(){if(!rQ.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=1e3*(0,nm.timestampInSeconds)(),o=(0,eu.isString)(n[0])?n[0].toUpperCase():void 0,a=function(e){if((0,eu.isString)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!o||!a)return e.apply(t,n);t[r2]={method:o,url:a,request_headers:{}}
82,"POST"===o&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[r2];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}rm("xhr",{endTimestamp:1e3*(0,nm.timestampInSeconds)(),startTimestamp:i,xhr:t,virtualError:r}),r=void 0,t.removeEventListener("readystatechange",s)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(s(),e.apply(t,n))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,o=t[r2];return o&&(0,eu.isString)(r)&&(0,eu.isString)(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[r2];return r&&(void 0!==n[0]&&(r.body=n[0]),rm("xhr",{startTimestamp:1e3*(0,nm.timestampInSeconds)(),xhr:t})),e.apply(t,n)}})}function r4(e){let t="history";rh(t,e),rg(t,r6)}function r6(){function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=o,i=function(e){try{return new URL(e,rQ.location.origin).toString()}catch{return e}}(String(n));if(o=i,r===i)return e.apply(this,t);rm("history",{from:r,to:i})}return e.apply(this,t)}}rQ.addEventListener("popstate",()=>{let e=rQ.location.href,t=o;o=e,t===e||rm("history",{from:t,to:e})}),"history"in rS&&rS.history&&((0,es.fill)(rQ.history,"pushState",e),(0,es.fill)(rQ.history,"replaceState",e))}let r8={};try{"u">typeof Node&&(r8.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(r8.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,r8.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,r8.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,r8.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(r8.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function r7(e,t,n){let r=r8[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return"function"==typeof i?i.call(e,n):i}function r9(e,t={}){if(!e)return"<unknown>";try{let n,r=e,i=[],o=0,a=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&o++<5&&(n=function(e,t){let n=[],r=r7(e,"tagName");if(!r)return"";if("u">typeof HTMLElement&&e instanceof HTMLElement){let t=r7(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>r7(e,"getAttribute",t)).map(t=>[t,r7(e,"getAttribute",t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=r7(e,"id");t&&n.push(`#${t}`);let r=r7(e,"className");if(r&&(0,eu.isString)(r))for(let e of r.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=r7(e,"getAttribute",t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,s),"html"!==n&&(!(o>1)||!(a+3*i.length+n.length>=l)));)i.push(n),a+=n.length,r=r7(r,"parentNode");return i.reverse().join(" > ")}catch{return"<unknown>"}}let ie=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,o,a,s,l;t.console&&r_((n=e,function(e){if((0,Z.getClient)()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:rR(e.level),message:(0,tq.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,tq.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);rO(t,{input:e.args,level:e.level})})),t.dom&&rZ((r=e,i=t.dom,function(e){let t,n;if((0,Z.getClient)()!==r)return;let o="object"==typeof i?i.serializeAttribute:void 0,a="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;a&&a>1024&&(eo&&ee.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof o&&(o=[o]);try{var s;let r=e.event,i=(s=r)&&s.target?r.target:r;t=r9(i,{keyAttrs:o,maxStringLength:a}),n=ep(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),rO(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&r3((o=e,function(e){if((0,Z.getClient)()!==o)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[r2];if(!t||!n||!r)return;let{method:i,url:a,status_code:s,body:l}=r,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},c={category:"xhr",data:{method:i,url:a,status_code:s},type:"http",level:rN(s)};o.emit("beforeOutgoingRequestBreadcrumb",c,u),rO(c,u)}
82)),t.fetch&&rw((a=e,function(e){if((0,Z.getClient)()!==a)return;let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};a.emit("beforeOutgoingRequestBreadcrumb",i,r),rO(i,r)}else{let r=e.response,i={...e.fetchData,status_code:r?.status},o={input:e.args,response:r,startTimestamp:t,endTimestamp:n},s={category:"fetch",data:i,type:"http",level:rN(i.status_code)};a.emit("beforeOutgoingRequestBreadcrumb",s,o),rO(s,o)}})),t.history&&r4((s=e,function(e){if((0,Z.getClient)()!==s)return;let t=e.from,n=e.to,r=rY(ef.location.href),i=t?rY(t):void 0,o=rY(n);i?.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),rO({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,Z.getClient)()===l&&rO({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,el.getEventDescription)(e)},{event:e})}))}}},it="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(","),ir=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,es.fill)(ef,"setTimeout",ii),t.setInterval&&(0,es.fill)(ef,"setInterval",ii),t.requestAnimationFrame&&(0,es.fill)(ef,"requestAnimationFrame",io),t.XMLHttpRequest&&"XMLHttpRequest"in ef&&(0,es.fill)(XMLHttpRequest.prototype,"send",ia);let e=t.eventTarget;e&&(Array.isArray(e)?e:it).forEach(e=>{var n,r;let i;return n=e,r=t,i=ef[n]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&((0,es.fill)(i,"addEventListener",function(e){return function(t,i,o){var a,s,l,u;try{a=i,"function"==typeof a.handleEvent&&(i.handleEvent=eg(i.handleEvent,{mechanism:{data:{handler:(0,tQ.getFunctionName)(i),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&(s=this,l=t,u=i,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,u)),e.apply(this,[t,eg(i,{mechanism:{data:{handler:(0,tQ.getFunctionName)(i),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),(0,es.fill)(i,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}})))})}}};function ii(e){return function(...t){let n=t[0];return t[0]=eg(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,tQ.getFunctionName)(e)}`}}),e.apply(this,t)}}function io(e){return function(t){return e.apply(this,[eg(t,{mechanism:{data:{handler:(0,tQ.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function ia(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,es.fill)(n,e,function(t){let n={mechanism:{data:{handler:(0,tQ.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=(0,es.getOriginalFunction)(t);return r&&(n.mechanism.data.handler=(0,tQ.getFunctionName)(r)),eg(t,n)})}),e.apply(this,t)}}function is(e,t,n){rQ.document&&rQ.addEventListener(e,t,n)}function il(e,t,n){rQ.document&&rQ.removeEventListener(e,t,n)}let iu=e=>{let t=!1;return()=>{t||(e(),t=!0)}},ic=e=>{let t=rQ.requestIdleCallback||rQ.setTimeout;rQ.document?.visibilityState==="hidden"?e():(is("visibilitychange",e=iu(e),{once:!0,capture:!0}),is("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),il("visibilitychange",e,{capture:!0}),il("pagehide",e,{capture:!0})}
82))},id=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===ef.document){eo&&ee.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,et.startSession)({ignoreDuration:!0});let e=!1;ic(()=>{e||((0,et.captureSession)(),e=!0)});let n=(0,Z.getIsolationScope)(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&(0,et.captureSession)())}),"route"===t&&r4(({from:t,to:n})=>{t!==n&&((0,et.startSession)({ignoreDuration:!0}),(0,et.captureSession)(),e=!0)})}}};var ip=e.i(22511);function ih(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}let ig=()=>({name:"CultureContext",preprocessEvent(e){let t=im();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=im();t&&ih(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function im(){try{let e=ef.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let iy=null;function i_(e){let t="error";rh(t,e),rg(t,iv)}function iv(){iy=ea.GLOBAL_OBJ.onerror,ea.GLOBAL_OBJ.onerror=function(e,t,n,r,i){return rm("error",{column:r,error:i,line:n,msg:e,url:t}),!!iy&&iy.apply(this,arguments)},ea.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let ib=null;function iS(e){let t="unhandledrejection";rh(t,e),rg(t,iE)}function iE(){ib=ea.GLOBAL_OBJ.onunhandledrejection,ea.GLOBAL_OBJ.onunhandledrejection=function(e){return rm("unhandledrejection",e),!ib||ib.apply(this,arguments)},ea.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let iT=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,i_(e=>{var t,r,i,o;let a,s,l,u,c,{stackParser:d,attachStacktrace:p}=ix();if((0,Z.getClient)()!==n||eh>0)return;let{msg:f,url:h,line:g,column:m,error:y}=e,_=(t=ru(d,y||f,void 0,p,!1),r=h,i=g,o=m,0===(c=(u=(l=(s=(a=t.exception=t.exception||{}).values=a.values||[])[0]=s[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[]).length&&c.push({colno:o,lineno:i,filename:function(e){if((0,eu.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${rX(e,!1)}>`:e}(r)??ed(),function:tQ.UNKNOWN_FUNCTION,in_app:!0}),t);_.level="error",(0,et.captureEvent)(_,{originalException:y,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),iI("onerror")),t.onunhandledrejection&&(r=e,iS(e=>{let{stackParser:t,attachStacktrace:n}=ix();if((0,Z.getClient)()!==r||eh>0)return;let i=iw(e),o=(0,eu.isPrimitive)(i)?ik(i):ru(t,i,void 0,n,!0);o.level="error",(0,et.captureEvent)(o,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),iI("onunhandledrejection"))}}};function iw(e){if((0,eu.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 ik(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function iI(e){eo&&ee.debug.log(`Global Handler attached: ${e}`)}function ix(){let e=(0,Z.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let iC=()=>({name:"HttpContext",preprocessEvent(e){if(!ef.navigator&&!ef.location&&!ef.document)return;let t=em(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSpan(e){if(!ef.navigator&&!ef.location&&!ef.document)return;let t=em();ih(e,{"user_agent.original":t.headers["User-Agent"],...e.is_segment&&{[rB]:e.attributes?.["sentry.op"]!=="http.client"?rz(t.url):void 0,"http.request.header.referer":t.headers.Referer}})}});function iA(e){return Array.isArray(e.errors)}function iR(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...iA(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function iO(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let iN=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,o){if(!i.exception?.values||!o||!(0,eu.isError)(o.originalException))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=function e(t,n,r,i,o,a,s,l){if(a.length>=r+1)return a;let u=[...a];if((0,eu.isError)(i[o])){iR(s,l,i);let a=t(n,i[o]),c=u.length;iO(a,o,c,l),u=e(t,n,r,i[o],o,[a,...u],a,c)}
82return iA(i)&&i.errors.forEach((a,c)=>{if((0,eu.isError)(a)){iR(s,l,i);let d=t(n,a),p=u.length;iO(d,`errors[${c}]`,p,l),u=e(t,n,r,a,o,[d,...u],d,p)}}),u}(e,t,r,o.originalException,n,i.exception.values,a,0))}(rn,i.getOptions().stackParser,n,t,e,r)}}};function iP(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?tQ.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let iM=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,iD=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,iL=/\((\S*)(?::(\d+))(?::(\d+))\)/,iB=/at (.+?) ?\(data:(.+?),/,iU=[30,e=>{let t=e.match(iB);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=iM.exec(e);if(n){let[,e,t,r]=n;return iP(e,tQ.UNKNOWN_FUNCTION,+t,+r)}let r=iD.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let e=iL.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=iK(r[1]||tQ.UNKNOWN_FUNCTION,r[2]);return iP(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],ij=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,iF=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,i$=[50,e=>{let t=ij.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=iF.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]||tQ.UNKNOWN_FUNCTION;return[n,e]=iK(n,e),iP(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],iq=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,iH=[40,e=>{let t=iq.exec(e);return t?iP(t[2],t[1]||tQ.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],iz=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,iG=[10,e=>{let t=iz.exec(e);return t?iP(t[2],t[3]||tQ.UNKNOWN_FUNCTION,+t[1]):void 0}],iW=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,iV=[20,e=>{let t=iW.exec(e);return t?iP(t[5],t[3]||t[4]||tQ.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],iJ=[iU,i$],iY=(0,tQ.createStackParser)(...iJ),iK=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:tQ.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},iX="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,iQ={};function iZ(e){let t=iQ[e];if(t)return t;let n=rQ[e];if(rE(n))return iQ[e]=n.bind(rQ);let r=rQ.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){iX&&ee.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?iQ[e]=n.bind(rQ):n}function i0(...e){return iZ("setTimeout")(...e)}function i1(e,t=iZ("fetch")){let n=0,r=0;async function i(i){let o=i.body.length;n+=o,r++;let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,a);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw iQ.fetch=void 0,e}finally{n-=o,r--}}return n$(e,i,nB(e.bufferSize||40))}let i2=/^HTML(\w*)Element$/;function i3(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t,n=(t=Object.getPrototypeOf(e),t?.constructor?t.constructor.name:"null prototype");if(i2.test(n))return`[HTMLElement: ${r9(e)}]`}}function i5(e){return[tG(),tY(),{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,Z.getCurrentScope)().getScopeData(),n=(0,Z.getIsolationScope)().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=(0,tX.spanToJSON)(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute(tK.GEN_AI_CONVERSATION_ID_ATTRIBUTE,r)}})}},ir(),ie(),iT(),iN(),tZ(),iC(),ig(),id()]}function i4(e={}
82){let t,n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===ef.window||ef.nw)return!1;let e=ef.chrome||ef.browser;if(!e?.runtime?.id)return!1;let t=ed();return!(ef===ef.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(eo&&(0,ee.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),r=null==e.defaultIntegrations?i5():e.defaultIntegrations,i={...e,enabled:!n&&e.enabled,stackParser:(0,tQ.stackParserFromStackParserOptions)(e.stackParser||iY),integrations:function(e){let t,n,r=e.defaultIntegrations||[],i=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...r,...i];else if("function"==typeof i){let e=i(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||i1};return(0,t3.setNormalizeStringifier)(i3),!0===i.debug&&(tL.DEBUG_BUILD?ee.debug.enable():(0,ee.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,Z.getCurrentScope)().update(i.initialScope),t5(t=new rd(i)),t.init(),t}function i6(){}function i8(e){e()}function i7(e){let t={...e};tD(t,"react"),(0,et.setContext)("react",{version:e_.version});let n=i4(t);return(0,t3.setNormalizeStringifier)(i9),n}function i9(e){return(0,eu.isPlainObject)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":i3(e)}var oe=e.i(321231);function ot(e){return(0,eu.isError)(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)}function on(e){return(0,eu.isError)(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}var or=e.i(359546),oi=e.i(333226),oo=e.i(254402);function oa(e,t,n,r=(0,tX.getActiveSpan)()){let i=r&&(0,tX.getRootSpan)(r);i&&(tL.DEBUG_BUILD&&ee.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n}))}function os(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}function ol(){return(0,t9.getSentryCarrier)((0,t9.getMainCarrier)()).segmentSpanCaptureStrategy}class ou{constructor(e={}){this._traceId=e.traceId||(0,oo.generateTraceId)(),this._spanId=e.spanId||(0,oo.generateSpanId)(),this._startTime=e.startTimestamp||(0,nm.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[tK.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._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?tX.TRACE_FLAG_SAMPLED:tX.TRACE_FLAG_NONE}}setAttribute(e,t){return this._frozen||(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE&&void 0!==t&&(0,ip.spanShouldInferOtelSource)(this)&&(0,ip.markSpanSourceAsExplicit)(this)),this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=(0,tX.spanTimeInputToSeconds)(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen||(this._name=e,(0,ip.spanShouldInferOtelSource)(this)||this.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom")),this}end(e){if(this._endTime){this._frozen=(0,ip.spanIsTracerProviderSpan)(this);return}this._endTime=(0,tX.spanTimeInputToSeconds)(e),function(e){if(!tL.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,tX.spanToJSON)(e),{spanId:r}=e.spanContext(),i=(0,tX.getRootSpan)(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;ee.debug.log(o)}(this),this._onSpanEnded(),this._frozen=(0,ip.spanIsTracerProviderSpan)(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,tX.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[tK.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[tK.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:os(this._events),is_segment:this._isStandaloneSpan&&(0,tX.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,tX.getRootSpan)(this).spanContext().spanId:void 0,links:(0,tX.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===(0,tX.getRootSpan)(this),status:(0,tX.getSimpleStatus)(this._status),attributes:(0,tX.addStatusMessageAttribute)(this._attributes,this._status),links:(0,tX.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;tL.DEBUG_BUILD&&ee.debug.log("[Tracing] Adding an event to span:",e);let r=oc(t)?t:n||(0,nm.timestampInSeconds)(),i=oc(t)?{}:t||{},o={name:e,time:(0,tX.spanTimeInputToSeconds)(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,Z.getClient)();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=(0,tX.getRootSpan)(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,Z.getClient)();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let n=(0,t6.getDynamicSamplingContextFromSpan)(e[0]),r=t?.getDsn(),i=t?.getOptions().tunnel,o={sent_at:new Date((0,ne.safeDateNow)()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:(0,en.dsnToString)(r)}},{beforeSendSpan:a,ignoreSpans:s}=t?.getOptions()||{},l=s?.length?e.filter(e=>{let t=(0,tX.spanToJSON)(e);return!np({description:t.description,op:t.op,attributes:t.data},s)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=a?e=>{let t=(0,tX.spanToJSON)(e),n=t7(a)?t:a(t);return n||((0,tX.showSpanDropWarning)(),t)}:tX.spanToJSON,d=[];for(let e of l){let t=c(e);t&&d.push([{type:"span"},t])}return nt(o,d)}([this],e)):(tL.DEBUG_BUILD&&ee.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(!n){let e=ol();if(e){let n=(0,ip.getCapturedScopesOnSpan)(this).scope||(0,Z.getCurrentScope)();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&nP(e))return void e.emit("afterSegmentSpanEnd",this);let r=(0,ip.getCapturedScopesOnSpan)(this).scope||(0,Z.getCurrentScope)(),i=ol();if(i)i.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!od((0,tX.spanToJSON)(this)))return;this._name||(tL.DEBUG_BUILD&&ee.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=(0,ip.getCapturedScopesOnSpan)(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let i=[];for(let t of(0,tX.getSpanDescendants)(this)){var o;if(t===this||(o=t)instanceof ou&&o.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(t))continue;let n=(0,tX.spanToJSON)(t);od(n)&&(e.onSpanCaptured?.(t),i.push(n))}let a=this._attributes[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[tK.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let s=!1;
82i.forEach(e=>{delete e.data[tK.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],e.op?.startsWith("gen_ai.")&&(s=!0)});let l={contexts:{trace:(0,tX.spanToTransactionTraceContext)(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:(0,t6.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:s},request:r,...a&&{transaction_info:{source:a}}},u=os(this._events);return u&&Object.keys(u).length&&(tL.DEBUG_BUILD&&ee.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),l.measurements=u),l}}function oc(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function od(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var op=e.i(442044),of=e.i(414697),oh=e.i(157821),og=e.i(428659);function om(e,t,n=()=>{},r=()=>{}){var i,o,a,s;let l;try{l=e()}catch(e){throw t(e),n(),e}return i=l,o=t,a=n,s=r,(0,eu.isThenable)(i)?(0,og.chainAndCopyPromiseLike)(i,e=>{a(),s(e)},e=>{o(e),a()}):(a(),s(i),i)}var oy=e.i(76357);let o_="__SENTRY_SUPPRESS_TRACING__";function ov(e,t){let n=oR();if(n.startSpan)return n.startSpan(e,t);let r=oA(e),{forceTransaction:i,parentSpan:o,scope:a}=e,s=a?.clone();return(0,Z.withScope)(s,()=>oP(o)(()=>{let n=(0,Z.getCurrentScope)(),a=oN(n,o),s=(0,Z.getClient)(),l=e.onlyIfParent&&!a?ox(n,s):oC({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return oM(l)&&a||(0,ng._setSpanForScope)(n,l),om(()=>t(l),()=>{let{status:e}=(0,tX.spanToJSON)(l);l.isRecording()&&(!e||"ok"===e)&&l.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{l.end()})}))}function ob(e,t){let n=oR();if(n.startSpanManual)return n.startSpanManual(e,t);let r=oA(e),{forceTransaction:i,parentSpan:o,scope:a}=e,s=a?.clone();return(0,Z.withScope)(s,()=>oP(o)(()=>{let n=(0,Z.getCurrentScope)(),a=oN(n,o),s=e.onlyIfParent&&!a?ox(n,(0,Z.getClient)()):oC({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return oM(s)&&a||(0,ng._setSpanForScope)(n,s),om(()=>t(s,()=>s.end()),()=>{let{status:e}=(0,tX.spanToJSON)(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function oS(e){let t=oR();return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=oA(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>(0,Z.withScope)(e.scope,t):void 0!==r?e=>oT(r,e):e=>e())(()=>{let i=(0,Z.getCurrentScope)(),o=oN(i,r),a=(0,Z.getClient)();return e.onlyIfParent&&!o?ox(i,a):oC({parentSpan:o,spanArguments:t,forceTransaction:n,scope:i})})}(e)}let oE=(e,t)=>{let n=(0,t9.getMainCarrier)(),r=(0,of.getAsyncContextStrategy)(n);if(r.continueTrace)return r.continueTrace(e,t);let{sentryTrace:i,baggage:o}=e,a=(0,Z.getClient)(),s=(0,oh.baggageHeaderToDynamicSamplingContext)(o);return a&&!(0,oy.shouldContinueTrace)(a,s?.org_id)?oI(t):(0,Z.withScope)(e=>{let n=(0,oy.propagationContextFromHeaders)(i,o);return e.setPropagationContext(n),(0,ng._setSpanForScope)(e,void 0),t()})};function oT(e,t){let n=oR();return n.withActiveSpan?n.withActiveSpan(e,t):(0,Z.withScope)(n=>((0,ng._setSpanForScope)(n,e||void 0),t(n)))}function ow(e){let t=oR();return t.suppressTracing?t.suppressTracing(e):(0,Z.withScope)(t=>{t.setSDKProcessingMetadata({[o_]:!0});let n=e();return t.setSDKProcessingMetadata({[o_]:void 0}),n})}function ok(e=(0,Z.getCurrentScope)()){let t=oR();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata[o_]}function oI(e){let t=oR();return t.startNewTrace?t.startNewTrace(e):(0,Z.withScope)(t=>(t.setPropagationContext({traceId:(0,oo.generateTraceId)(),sampleRand:(0,ne.safeMathRandom)()}),tL.DEBUG_BUILD&&ee.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),oT(null,e)))}function ox(e,t){t?.recordDroppedEvent("no_parent_span","span");let n=new oi.SentryNonRecordingSpan({traceId:e.getPropagationContext().traceId});return(0,ip.setCapturedScopesOnSpan)(n,e,(0,Z.getIsolationScope)()),n}function oC({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var i,o;let a,s,l=(0,Z.getIsolationScope)();if(!(0,or.hasSpansEnabled)()){let t=r.getPropagationContext(),i=e?e.spanContext().traceId:t.traceId,o=new oi.SentryNonRecordingSpan({traceId:i});return e&&!n&&(0,tX.addChildSpanToSpan)(e,o),(0,ip.setCapturedScopesOnSpan)(o,r,l),o}let u=(0,Z.getClient)();if(i=u,o=t,a=i?.getOptions().ignoreSpans,i&&nP(i)&&a?.length&&np({description:o.name||"",op:o.attributes?.[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]||o.op,attributes:o.attributes},a)){ok(r)||u?.recordDroppedEvent("ignored","span");let t=new oi.SentryNonRecordingSpan({dropReason:"ignored",traceId:e?.
82spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&(0,tX.addChildSpanToSpan)(e,t),(0,ip.setCapturedScopesOnSpan)(t,r,l),t}if(e&&!n)s=function(e,t,n,r){let{spanId:i,traceId:o}=e.spanContext(),a=ok(t),s=!a&&(0,tX.spanIsSampled)(e),l=s?new ou({...n,parentSpanId:i,traceId:o,sampled:s}):new oi.SentryNonRecordingSpan({traceId:o});(0,tX.addChildSpanToSpan)(e,l),(0,ip.setCapturedScopesOnSpan)(l,t,r);let u=(0,Z.getClient)();return u&&(nP(u)&&(0,oi.spanIsNonRecordingSpan)(l)&&((0,oi.spanIsNonRecordingSpan)(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):a||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),n.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}(e,r,t,l),(0,tX.addChildSpanToSpan)(e,s);else if(e){let n=(0,t6.getDynamicSamplingContextFromSpan)(e),{traceId:i,spanId:o}=e.spanContext(),a=(0,tX.spanIsSampled)(e);s=oO({traceId:i,parentSpanId:o,...t},r,l,a),(0,t6.freezeDscOnSpan)(s,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:o}=r.getPropagationContext();s=oO({traceId:e,parentSpanId:i,...t},r,l,o),n&&(0,t6.freezeDscOnSpan)(s,n)}return!function(e){if(!tL.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,tX.spanToJSON)(e),{spanId:i}=e.spanContext(),o=(0,tX.spanIsSampled)(e),a=(0,tX.getRootSpan)(e),s=a===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!s){let{op:e,description:t}=(0,tX.spanToJSON)(a);u.push(`root ID: ${a.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}ee.debug.log(`${l}
83  ${u.join("\n  ")}`)}(s),s}function oA(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,tX.spanTimeInputToSeconds)(e.startTime),delete n.startTime,n}return t}function oR(){let e=(0,t9.getMainCarrier)();return(0,of.getAsyncContextStrategy)(e)}function oO(e,t,n,r){let i=(0,Z.getClient)(),o=i?.getOptions()||{},{name:a=""}=e,s={spanAttributes:{...e.attributes},spanName:a,parentSampled:r};i?.emit("beforeSampling",s,{decision:!1});let l=s.parentSampled??r,u=s.spanAttributes,c=t.getPropagationContext(),d=ok(t),[p,f,h]=d?[!1]:function(e,t,n){let r,i;if(!(0,or.hasSpansEnabled)(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,i=!0);let o=(0,nH.parseSampleRate)(r);if(void 0===o)return tL.DEBUG_BUILD&&ee.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(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!o)return tL.DEBUG_BUILD&&ee.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,o,i];let a=n<o;return!a&&tL.DEBUG_BUILD&&ee.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[a,o,i]}(o,{name:a,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,nH.parseSampleRate)(c.dsc?.sample_rate)},c.sampleRand),g=new ou({...e,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==f&&h?f:void 0,...u},sampled:p});return p||!i||d||(tL.DEBUG_BUILD&&ee.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",nP(i)?"span":"transaction")),(0,ip.setCapturedScopesOnSpan)(g,t,n),i&&i.emit("spanStart",g),g}function oN(e,t){if(t)return t;if(null===t)return;let n=(0,ng._getSpanForScope)(e);if(!n)return;let r=(0,Z.getClient)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,tX.getRootSpan)(n):n}function oP(e){return void 0!==e?t=>oT(e,t):e=>e()}function oM(e){return(0,oi.spanIsNonRecordingSpan)(e)&&"ignored"===e.dropReason}let oD={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function oL(e,t={}){let n,r,i,o=new Map,a=!1,s="externalFinish",l=!t.disableAutoFinish,u=[],{idleTimeout:c=oD.idleTimeout,finalTimeout:d=oD.finalTimeout,childSpanTimeout:p=oD.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:h=!0}=t,g=(0,Z.getClient)(),m=(0,Z.getCurrentScope)();if(!g||!(0,or.hasSpansEnabled)()){let e=new oi.SentryNonRecordingSpan({traceId:m.getPropagationContext().traceId});return(0,ip.setCapturedScopesOnSpan)(e,m,(0,Z.getIsolationScope)()),e}let y=(0,tX.getActiveSpan)(),_=(n=oS(e),(0,ng._setSpanForScope)((0,Z.getCurrentScope)(),n),tL.DEBUG_BUILD&&ee.debug.log("[Tracing] Started span is an i
83dle span"),n);function v(){r&&(clearTimeout(r),r=void 0)}function b(){i&&(clearTimeout(i),i=void 0)}function S(e){v(),r=setTimeout(()=>{!a&&0===o.size&&l&&(s="idleTimeout",_.end(e))},c)}function E(e){b(),i=setTimeout(()=>{!a&&l&&(s="heartbeatFailed",_.end(e))},p)}function T(e){a=!0,o.clear(),u.forEach(e=>e()),(0,ng._setSpanForScope)(m,y);let t=(0,tX.spanToJSON)(_),{start_timestamp:n}=t;if(!n)return;t.data[tK.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||_.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,s);let r=t.status;r&&"unknown"!==r||_.setStatus({code:op.SPAN_STATUS_OK}),ee.debug.log(`[Tracing] Idle span "${t.op}" finished`);let i=(0,tX.getSpanDescendants)(_).filter(e=>e!==_),l=0;i.forEach(t=>{t.isRecording()&&(t.setStatus({code:op.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),tL.DEBUG_BUILD&&ee.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,tX.spanToJSON)(t),i=r<=e,o=n-r<=(d+c)/1e3;if(tL.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);i?o||ee.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):ee.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,tX.removeChildSpanFromSpan)(_,t),l++)}),l>0&&_.setAttribute("sentry.idle_span_discarded_spans",l)}return _.end=new Proxy(_.end,{apply(e,t,n){if(f&&f(_),(0,oi.spanIsNonRecordingSpan)(t))return;let[r,...i]=n,o=r||(0,nm.timestampInSeconds)(),a=(0,tX.spanTimeInputToSeconds)(o),s=(0,tX.getSpanDescendants)(_).filter(e=>e!==_),l=(0,tX.spanToJSON)(_);if(!s.length||!h)return T(a),Reflect.apply(e,t,[a,...i]);let u=g.getOptions().ignoreSpans,c=s?.reduce((e,t)=>{let n=(0,tX.spanToJSON)(t);return!n.timestamp||u&&np({description:n.description,op:n.op,attributes:n.data},u)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),p=l.start_timestamp,m=Math.min(p?p+d/1e3:1/0,Math.max(p||-1/0,Math.min(a,c||1/0)));return T(m),Reflect.apply(e,t,[m,...i])}}),u.push(g.on("spanStart",e=>{var t;!(a||e===_||(0,tX.spanToJSON)(e).timestamp||e instanceof ou&&e.isStandaloneSpan())&&(0,tX.getSpanDescendants)(_).includes(e)&&(t=e.spanContext().spanId,v(),o.set(t,!0),E((0,nm.timestampInSeconds)()+p/1e3))})),u.push(g.on("spanEnd",e=>{if(!a){var t;t=e.spanContext().spanId,o.has(t)&&o.delete(t),0===o.size&&(S((0,nm.timestampInSeconds)()+c/1e3),b())}})),u.push(g.on("idleSpanEnableAutoFinish",e=>{e===_&&(l=!0,S(),o.size&&E())})),t.disableAutoFinish||S(),setTimeout(()=>{a||(_.setStatus({code:op.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),s="finalTimeout",_.end())},d),_}let oB=!1;function oU(){oB||(oB=!0,i_(e),iS(e));function e(){let e=(0,tX.getActiveSpan)(),t=e&&(0,tX.getRootSpan)(e);if(t){let e="internal_error";tL.DEBUG_BUILD&&ee.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:op.SPAN_STATUS_ERROR,message:e})}}}let oj=(e,t,n,r)=>{let i,o;return a=>{if(t.value>=0&&(a||r)&&((o=t.value-(i??0))||void 0===i)){var s;i=t.value,t.delta=o,s=t.value,t.rating=s>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t)}}},oF=(e=!0)=>{let t=rQ.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},o$=()=>{let e=oF();return e?.activationStart??0},oq=-1,oH=new Set,oz=e=>{if(("pagehide"===e.type||rQ.document?.visibilityState==="hidden")&&oq>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of oH)e();isFinite(oq)||(oq="visibilitychange"===e.type?e.timeStamp:0,il("prerenderingchange",oz,!0))}},oG=()=>{if(rQ.document&&oq<0){let e=o$();oq=(rQ.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(rQ.document?.visibilityState!=="hidden"||rQ.document?.prerendering?1/0:0),is("visibilitychange",oz,!0),is("pagehide",oz,!0),is("prerenderingchange",oz,!0)}return{get firstHiddenTime(){return oq},onHidden(e){oH.add(e)}}},oW=(e,t=-1)=>{let n=oF(),r="navigate";return n&&(rQ.document?.prerendering||o$()>0?r="prerender":rQ.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},oV=new WeakMap;function oJ(e,t){try{return oV.get(e)||oV.set(e,new t),oV.get(e)}catch(e){return new t}}class oY{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let 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)}}let oK=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},oX=e=>{rQ.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},oQ=[1800,3e3],oZ=[.1,.25],o0=0,o1=1/0,o2=0,o3=e=>
83{e.forEach(e=>{e.interactionId&&(o1=Math.min(o1,e.interactionId),o0=(o2=Math.max(o2,e.interactionId))?(o2-o1)/7+1:0)})},o5=()=>a?o0:performance.interactionCount||0,o4=0;class o6{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){o4=o5(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((o5()-o4)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),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)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}let o8=[200,500];class o7{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let o9=[2500,4e3],ae=[800,1800],at=e=>{rQ.document?.prerendering?oX(()=>at(e)):rQ.document?.readyState!=="complete"?addEventListener("load",()=>at(e),!0):setTimeout(e)},an={},ar={};function ai(e,t=!1){return af("cls",e,au,s,t)}function ao(e,t=!1){return af("lcp",e,ac,l,t)}function aa(e){return af("inp",e,ap,c)}function as(e,t){var n;let r;return ah(e,t),ar[e]||(r={},"event"===(n=e)&&(r.durationThreshold=0),oK(n,e=>{al(n,{entries:e})},r),ar[e]=!0),ag(e,t)}function al(e,t){let n=an[e];if(n?.length)for(let r of n)try{r(t)}catch(t){iX&&ee.debug.error(`Error while triggering instrumentation handler.
84Type: ${e}
85Name: ${(0,tQ.getFunctionName)(r)}
86Error:`,t)}}function au(){return((e,t={})=>{((e,t={})=>{oX(()=>{let n,r=oG(),i=oW("FCP"),o=oK("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-o$(),0),i.entries.push(t),n(!0)))});o&&(n=oj(e,i,oQ,t.reportAllChanges))})})(iu(()=>{let n,r=oW("CLS",0),i=oG(),o=oJ(t,oY),a=e=>{for(let t of e)o._processEntry(t);o._sessionValue>r.value&&(r.value=o._sessionValue,r.entries=o._sessionEntries,n())},s=oK("layout-shift",a);s&&(n=oj(e,r,oZ,t.reportAllChanges),i.onHidden(()=>{a(s.takeRecords()),n(!0)}),rQ?.setTimeout?.(n))}))})(e=>{al("cls",{metric:e}),s=e},{reportAllChanges:!0})}function ac(){return((e,t={})=>{oX(()=>{let n,r=oG(),i=oW("LCP"),o=oJ(t,o7),a=e=>{for(let a of(t.reportAllChanges||(e=e.slice(-1)),e))a&&(o._processEntry(a),a.startTime<r.firstHiddenTime&&(i.value=Math.max(a.startTime-o$(),0),i.entries=[a],n()))},s=oK("largest-contentful-paint",a);if(s){n=oj(e,i,o9,t.reportAllChanges);let r=iu(()=>{a(s.takeRecords()),s.disconnect(),n(!0)}),o=e=>{e.isTrusted&&(ic(r),il(e.type,o,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])is(e,o,{capture:!0})}})})(e=>{al("lcp",{metric:e}),l=e},{reportAllChanges:!0})}function ad(){return((e,t={})=>{let n=oW("TTFB"),r=oj(e,n,ae,t.reportAllChanges);at(()=>{let e=oF();e&&(n.value=Math.max(e.responseStart-o$(),0),n.entries=[e],r(!0))})})(e=>{al("ttfb",{metric:e}),u=e})}function ap(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=oG();oX(()=>{let r;"interactionCount"in performance||a||(a=oK("event",o3,{type:"event",buffered:!0,durationThreshold:0}));let i=oW("INP"),o=oJ(t,o6),s=e=>{ic(()=>{for(let t of e)o._processEntry(t);let t=o._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,r())})},l=oK("event",s,{durationThreshold:t.durationThreshold??40});r=oj(e,i,o8,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(l.takeRecords()),r(!0)}))})})(e=>{al("inp",{metric:e}),c=e})}function af(e,t,n,r,i=!1){let o;return ah(e,t),ar[e]||(o=n(),ar[e]=!0),r&&t({metric:r}),ag(e,t,i?o:void 0)}function ah(e,t){an[e]=an[e]||[],an[e].push(t)}function ag(e,t,n){return()=>{n&&n();let r=an[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function am(e){return"number"==typeof e&&isFinite(e)}function ay(e,t,n,{...r}){let i=(0,tX.spanToJSON)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),oT(e,()=>{let e=oS({startTime:t,...r});return e&&e.end(n),e})}function a_(e){let t,n=(0,Z.getClient)();if(!n)return;let{name:r,transaction:i,attributes:o,startTime:a}=e,{release:s,environment:l}=n.getOptions(),{userInfo:u}=n.getDataCollectionOptions(),c=n.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,Z.getCurrentScope)(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return oS({name:r,attributes:{release:s,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":rQ.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...o},startTime:a,experimental:{standalone:!0}})}function av(){return rQ.addEventListener&&rQ.performance}function ab(e){return e/1e3}function aS(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function aE(e,t){let n,r,i=!1;function o(e){!i&&r&&t(e,r.spanContext().spanId,r),i=!0}is("visibilitychange",n=e=>{("pagehide"===e.type||rQ.document?.visibilityState==="hidden")&&(()=>{o("pagehide")})(e)}
86,{capture:!0,once:!0}),is("pagehide",n,{capture:!0,once:!0});let a=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(o("navigation"),a(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e,s()})}function aT(e){return null!=e&&e>0&&e<=6e4}function aw(e){return e?(((0,nm.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function ak(e){let t={};if(void 0!=e.nextHopProtocol){let{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,nm.browserPerformanceTimeOrigin)()||av()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":aw(e.redirectStart),"http.request.redirect_end":aw(e.redirectEnd),"http.request.worker_start":aw(e.workerStart),"http.request.fetch_start":aw(e.fetchStart),"http.request.domain_lookup_start":aw(e.domainLookupStart),"http.request.domain_lookup_end":aw(e.domainLookupEnd),"http.request.connect_start":aw(e.connectStart),"http.request.secure_connection_start":aw(e.secureConnectionStart),"http.request.connection_end":aw(e.connectEnd),"http.request.request_start":aw(e.requestStart),"http.request.response_start":aw(e.responseStart),"http.request.response_end":aw(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let aI=0,ax={};function aC(){d=void 0,p=void 0,ax={}}function aA(e,t,n,r,i=n){var o;let a=t["secureConnection"===(o=n)?"connectEnd":"fetch"===o?"domainLookupStart":`${o}End`],s=t[`${n}Start`];s&&a&&ay(e,r+ab(s),r+ab(a),{op:`browser.${i}`,name:t.name,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let aR=new WeakMap,aO=new WeakMap,aN=["text/event-stream","application/x-ndjson","application/stream+json"],aP=()=>({name:"FetchStreamPerformance",setup(){let e;rh(e="fetch-body-resolved",e=>{if(e.response){let t=aR.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=aO.get(e.response);n&&clearTimeout(n)}}}),rg(e,()=>rk(rx)),rw(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!aN.some(e=>
86t.startsWith(e)))return;let n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",i=rV(n),o=n.startsWith("data:")?rX(n):i?rJ(i):n,a=oS({name:`${r} ${o}`,startTime:e.endTimestamp,attributes:{url:rz(rX(n)),"http.method":r,type:"fetch",[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});aR.set(e.response,a);let s=setTimeout(()=>{a.isRecording()&&a.end()},9e4);aO.set(e.response,s)}})}}),aM=[],aD=new Map,aL=new Map,aB={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"},aU=({metric:e})=>{if(void 0==e.value)return;let t=ab(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&aB[t.name]);if(!n)return;let{interactionId:r}=n,i=aB[n.name],o=ab((0,nm.browserPerformanceTimeOrigin)()+n.startTime),a=(0,tX.getActiveSpan)(),s=a?(0,tX.getRootSpan)(a):void 0,l=null!=r?aD.get(r):void 0,u=l?.span||s,c=u?(0,tX.spanToJSON)(u).description:(0,Z.getCurrentScope)().getScopeData().transactionName,d=a_({name:l?.elementName||r9(n.target),transaction:c,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${i}`,[tK.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration},startTime:o});d&&(d.addEvent("inp",{[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),d.end(o+t))};function aj(e){let{name:t,op:n,origin:r,metricName:i,value:o,attributes:a,parentSpan:s,reportEvent:l,startTime:u,endTime:c}=e,d=(0,Z.getCurrentScope)().getScopeData().transactionName,p={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:n,[tK.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,[`browser.web_vital.${i}.value`]:o,[rL]:d,[rD]:d,"user_agent.original":rQ.navigator?.userAgent,...a};s&&(0,tX.spanToStreamedSpanJSON)(s).attributes?.[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]==="pageload"&&(p["sentry.pageload.span_id"]=s.spanContext().spanId),l&&(p[`browser.web_vital.${i}.report_event`]=l);let f=oS({name:t,attributes:p,startTime:u,parentSpan:s});f&&f.end(c??u)}let aF="WebVitals",a$=(e={})=>{let t=new Set(e.ignore??[]);return{name:aF,setup(n){let r=nP(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:o}=e._experiments??{},a=r||t.has("cls")?void 0:i||!1,s=r||t.has("lcp")?void 0:o||!1,l=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=av();if(r&&(0,nm.browserPerformanceTimeOrigin)()){r.mark&&rQ.performance.mark("sentry-tracing-init");let i=t?function(e){let t,n=0;if(!aS("largest-contentful-paint"))return;let r=ao(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&aT(e.value)&&(n=e.value,t=r)},!0);aE(e,(e,i)=>{(function(e,t,n,r){if(!aT(e))return;iX&&ee.debug.log(`Sending LCP span (${e})`);let i=ab(((0,nm.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),o=(0,Z.getCurrentScope)().getScopeData().transactionName,a=t?r9(t.element):"Largest contentful paint",s={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[tK.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s["lcp.element"]=r9(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url),null!=t.loadTime&&(s["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(s["lcp.renderTime"]=t.renderTime),null!=t.size&&(s["lcp.size"]=t.size));let l=a_({name:a,transaction:o,attributes:s,startTime:i});l&&(l.addEvent("lcp",{[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),l.end(i))})(n,t,i,e),r()})}(n):!1===t?ao(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&aT(e.value)&&(ax.lcp={value:e.value,unit:"millisecond"},d=t)},!0):void 0,o=e?function(e){let t,n=0;if(!aS("layout-shift"))return;let r=ai(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);aE(e,(e,i)=>{var o,a,s,l;let u,c,d,p,f;o=n,a=t,s=i,l=e,iX&&ee.debug.log(`Sending CLS span (${o})`),u=a?ab(((0,nm.browserPerformanceTimeOrigin)()||0)+a.startTime):(0,nm.timestampInSeconds)(),c=(0,Z.getCurrentScope)().getScopeData().transactionName,d=a?r9(a.sources[0]?.node):"Layout shift",p={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[tK.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":s,"sentry.report_event":l}
86,a?.sources&&a.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=r9(e.node)}),(f=a_({name:d,transaction:c,attributes:p,startTime:u}))&&(f.addEvent("cls",{[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[tK.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:o}),f.end(u)),r()})}(n):!1===e?ai(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ax.cls={value:e.value,unit:""},p=t)},!0):void 0,a=af("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(ax.ttfb={value:e.value,unit:"millisecond"})},ad,u),s=as("paint",({entries:e})=>{let t=oG();for(let n of e){let e=n.startTime<t.firstHiddenTime;"first-paint"===n.name&&e&&(ax.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&e&&(ax.fcp={value:n.startTime,unit:"millisecond"})}});return()=>{a(),s(),i?.(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:a,recordLcpStandaloneSpans:s,client:n}),c=new WeakSet;n.on("afterStartPageLoadSpan",e=>{c.add(e)}),n.on("spanEnd",e=>{c.delete(e)&&(l(),function(e,t){let n=(0,nm.browserPerformanceTimeOrigin)();if(!av()?.getEntries||!n)return aC();let{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:o}=t,a=ab(n);if("pageload"===(0,tX.spanToJSON)(e).op){if(function(e){let t=oF(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(ax),r){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),iX&&ee.debug.log("Setting web vital attribute",{[i]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{ax[e]&&t(e,ax[e].value)}),ax["ttfb.requestTime"]&&t("ttfb.requestTime",ax["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var s,l;i||delete ax.cls,o||delete ax.lcp,Object.entries(ax).forEach(([t,n])=>{oa(t,n.value,n.unit,e)}),s=e,l=t,d&&l.recordLcpOnPageloadSpan&&(d.element&&s.setAttribute("lcp.element",r9(d.element)),d.id&&s.setAttribute("lcp.id",d.id),d.url&&s.setAttribute("lcp.url",d.url.trim().slice(0,200)),null!=d.loadTime&&s.setAttribute("lcp.loadTime",d.loadTime),null!=d.renderTime&&s.setAttribute("lcp.renderTime",d.renderTime),s.setAttribute("lcp.size",d.size)),p?.sources&&l.recordClsOnPageloadSpan&&p.sources.forEach((e,t)=>s.setAttribute(`cls.source.${t+1}`,r9(e.node)))}e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",a),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",o$())}aC()}(e,{recordClsOnPageloadSpan:!1===a,recordLcpOnPageloadSpan:!1===s,spanStreamingEnabled:r}))}),r?(t.has("lcp")||function(e){let t,n=0;if(!aS("largest-contentful-paint"))return;let r=ao(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&aT(e.value)&&(n=e.value,t=r)},!0);aE(e,(e,i,o)=>{(function(e,t,n,r){if(!aT(e))return;iX&&ee.debug.log(`Sending LCP span (${e})`);let i=(0,nm.browserPerformanceTimeOrigin)()||0,o=ab(i),a=ab(i+(t?.startTime||0)),s=t?r9(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=r9(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),aj({name:s,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:n,reportEvent:r,startTime:o,endTime:a})})(n,t,o,e),r()})}(n),t.has("cls")||function(e){let t,n=0;if(!aS("layout-shift"))return;let r=ai(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);aE(e,(e,i,o)=>{var a,s,l,u;let c,d,p;a=n,s=t,l=o,u=e,iX&&ee.debug.log(`Sending CLS span (${a})`),c=s?ab(((0,nm.browserPerformanceTimeOrigin)()||0)+s.startTime):(0,nm.timestampInSeconds)(),d=s?r9(s.sources[0]?.node):"Layout shift",p={},s?.sources&&s.sources.forEach((e,t)=>{p[`browser.web_vital.cls.source.${t+1}`]=r9(e.node)}),aj({name:d,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:a,attributes:p,parentSpan:l,reportEvent:u,startTime:c}),r()})}(n),!t.has("inp")&&av()&&(0,nm.browserPerformanceTimeOrigin)()&&aa(({metric:e})=>{var t,n,r;let i,o,a,s,l,u,c,d;if(null==e.value||ab(e.value)>60)return;let p=e.entries.find(t=>t.duration===e.value&&aB[t.name]);p&&(t=e.value,n=p,iX&&ee.debug.log(`Sending INP span (${t})`),i=ab((0,nm.browserPerformanceTimeOrigin)()+n.startTime),o=ab(t),a=aB[n.name],s=null!=(r=n.interactionId)?aD.get(r):void 0,u=(l=(0,tX.getActiveSpan)())?(0,tX.getRootSpan)(l):void 0,d=(c=s?.span||u)?(0,tX.spanToStreamedSpanJSON)(c).name:(0,Z.getCurrentScope)().getScopeData().transactionName,aj({name:s?.elementName||r9(n.target),op:`ui.interaction.${a}`,origin:"auto.http.browser.inp",metricName:"inp",value:t,attributes:{[tK.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration,[rL]:d,[rD]:d},startTime:i,endTime:i+o,parentSpan:c}))})):t.has("inp")||function(){if(av()&&(0,nm.browserPerformanceTimeOrigin)()){let e=aa(aU);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(aB);function t(e){let t=e.target;if(!t)return;let n=r9(t),r=Math.round(e.timeStamp);if(aL.set(r,n),aL.size>50){let e=aL.keys().next().value;void 0!==e&&aL.delete(e)}}
86nS()&&e.forEach(e=>{rQ.addEventListener(e,t,{capture:!0,passive:!0})});let n=({entries:e})=>{let t=(0,tX.getActiveSpan)(),n=t&&(0,tX.getRootSpan)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||aD.has(t))return;let r=e.target?r9(e.target):function(e){let t=Math.round(e.startTime),n=aL.get(t);if(!n)for(let e=-5;e<=5;e++){let r=aL.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(aM.length>10){let e=aM.shift();aD.delete(e)}aM.push(t),aD.set(t,{span:n,elementName:r})})};as("event",n),as("first-input",n)}()}}},aq="sentry_previous_trace";function aH(e){return 1===e.traceFlags}function az(e={}){let t=e.client||(0,Z.getClient)();if(!(0,et.isEnabled)()||!t)return{};let n=(0,t9.getMainCarrier)(),r=(0,of.getAsyncContextStrategy)(n);if(r.getTraceData)return r.getTraceData(e);let i=e.scope||(0,Z.getCurrentScope)(),o=e.span||(0,tX.getActiveSpan)(),a=(0,oi.spanIsNonRecordingSpan)(o)&&!(0,or.hasSpansEnabled)(t.getOptions());if(!o&&(0,Z.hasExternalPropagationContext)())return{};let s=o&&!a?(0,tX.spanToTraceHeader)(o):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,oy.generateSentryTraceHeader)(t,r,n)}(i),l=o?(0,t6.getDynamicSamplingContextFromSpan)(o):(0,t6.getDynamicSamplingContextFromScope)(t,i),u=(0,oh.dynamicSamplingContextToSentryBaggageHeader)(l);if(!oy.TRACEPARENT_REGEXP.test(s))return ee.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let c={"sentry-trace":s,baggage:u};return e.propagateTraceparent&&(c.traceparent=o&&!a?(0,tX.spanToTraceparentHeader)(o):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,oy.generateTraceparentHeader)(t,r,n)}(i)),c}function aG(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(oh.SENTRY_BAGGAGE_KEY_PREFIX))}function aW(e,t,n,r,i){let o={url:rz(rX(e),i),type:"fetch","http.method":n,[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(rW(t)||(o[rM]=rz(rX(t.href),i),o[rB]=rz(rX(t.href),i),o["server.address"]=t.host),t.search&&(o["http.query"]=rG(t.search,i)),t.hash&&(o["http.fragment"]=t.hash)),o}let aV=Symbol.for("sentry__originalRequestBody");function aJ(e){return new URLSearchParams(e).toString()}function aY(e,t=ee.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[aJ(e)];if(!e)return[void 0]}catch(n){return iX&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return iX&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function aK(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){let t=e[0][aV];if(void 0!==t)return t}}function aX(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return iX&&ee.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}function aQ(e){try{return new URL(e,ef.location.origin).href}catch{return}}function aZ(e){try{return new Headers(e)}catch{return}}let a0={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function a1(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:s,onRequestSpanEnd:l}={...a0,...t},u="function"==typeof i?i:e=>!0,c=e=>(function(e,t){let n=ed();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let o=r.origin===i;return t?(0,tq.stringMatchesSomePattern)(r.toString(),t)||o&&(0,tq.stringMatchesSomePattern)(r.pathname,t):o}{let n=!!e.match(/^\/(?!\/)/);return t?(0,tq.stringMatchesSomePattern)(e,t):n}})(e,a),d={},p=e.getOptions().propagateTraceparent;n&&rw(t=>{let n=function(e,t,n,r,i){if(!e.fetchData)return;let{method:o,url:a}=e.fetchData,s=(0,or.hasSpansEnabled)()&&t(a);if(e.endTimestamp){var l,u,c;let t,n=e.fetchData.__span;if(!n)return;let o=r[n];o&&(s&&(function(e,t){if(t.response){(0,op.setHttpStatus)(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(o,e),l=o,u=e,t="object"==typeof(c=i)&&null!==c?c.onRequestSpanEnd:void 0,t?.(l,{headers:u.response?.headers,error:u.error})),delete r[n]);return}let{spanOrigin:d="auto.http.browser",propagateTraceparent:p=!1}="object"==typeof i?i:{spanOrigin:i},f=(0,Z.getClient)(),h=!!(0,tX.getActiveSpan)(),g=h||!!f&&nP(f),m=s&&g?oS(function(e,t,n,r){if(e.startsWith("data:")){let i=rX(e);return{name:`${t} ${i}`,attributes:aW(e,void 0,t,n,r)}}let i=rV(e),o=i?rJ(i):e;return{name:`${t} ${o}`,attributes:aW(e,i,t,n,r)}}(a,o,d,f)):new oi.SentryNonRecordingSpan,y=oM(m)&&h?void 0:m;
86if(s&&!g&&f?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var i,o;let a=az({span:n,propagateTraceparent:r}),s=a["sentry-trace"],l=a.baggage,u=a.traceparent;if(!s)return;let c=t.headers||((0,eu.isRequest)(e)?e.headers:void 0);if(!c)return{"sentry-trace":s,...l&&{baggage:l},...u&&{traceparent:u}};if(i=c,"u">typeof Headers&&(0,eu.isInstanceOf)(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",s),r&&u&&!e.get("traceparent")&&e.set("traceparent",u),l){let t=e.get("baggage");t?aG(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(o=c)&&o.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",s]),r&&u&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",u]);let t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&aG(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],o=n&&(Array.isArray(n)?n.find(e=>aG(e)):aG(n));l&&!o&&i.push(l);let a=Object.assign({},c,{"sentry-trace":e??s,...i.length>0&&{baggage:i.join(",")}});return r&&u&&!t&&(a.traceparent=u),a}}(t,n,(0,or.hasSpansEnabled)()&&g?y:void 0,p);r&&(e.args[1]=n,n.headers=r)}if(f){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",m,t)}return m}(t,u,c,d,{propagateTraceparent:p,onRequestSpanEnd:l});if(n){let r=aQ(t.fetchData.url),i=r?rY(r).host:void 0,a=r?rX(r):void 0;n.setAttributes({[rM]:rz(a),[rB]:rz(a),"server.address":i}),o&&a2(n,e),s?.(n,{headers:t.headers})}}),r&&r3(t=>{let n=function(e,t,n,r,i,o){let a=e.xhr,s=a?.[r2];if(!a||a.__sentry_own_request__||!s)return;let{url:l,method:u}=s,c=(0,or.hasSpansEnabled)()&&t(l);if(e.endTimestamp){let t=a.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(c&&void 0!==s.status_code&&((0,op.setHttpStatus)(n,s.status_code),n.end(),o?.(n,{headers:aZ(aX(a)),error:e.error})),delete r[t]);return}let d=aQ(l),p=d?rY(d):rY(l),f=d?rX(d):void 0,h=rX(rK(l)),g=(0,Z.getClient)(),m=!!(0,tX.getActiveSpan)(),y=m||!!g&&nP(g),_=c&&y?oS({name:`${u} ${h}`,attributes:{url:rz(rX(l)),type:"xhr","http.method":u,"http.url":rz(f),[rB]:rz(f),"server.address":p?.host,[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...p?.search&&{"http.query":rG(p?.search)},...p?.hash&&{"http.fragment":p?.hash}}}):new oi.SentryNonRecordingSpan,v=oM(_)&&m?void 0:_;return c&&!y&&g?.recordDroppedEvent("no_parent_span","span"),a.__sentry_xhr_span_id__=_.spanContext().spanId,r[a.__sentry_xhr_span_id__]=_,n(l)&&function(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:o}=az({span:t,propagateTraceparent:n});r&&function(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,i,o)}(a,(0,or.hasSpansEnabled)()&&y?v:void 0,i),g&&g.emit("beforeOutgoingRequestSpan",_,e),_}(t,u,c,d,p,l);n&&(o&&a2(n,e),s?.(n,{headers:aZ(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}function a2(e,t){let{url:n}=(0,tX.spanToJSON)(e).data;if(!n||"string"!=typeof n)return;let r=()=>void setTimeout(i);if(nP(t)){let t=e.end.bind(e);e.end=e=>{let n=e??(0,nm.timestampInSeconds)(),o=!1,a=()=>{o||(o=!0,setTimeout(i),t(n),clearTimeout(s))};r=a;let s=setTimeout(a,300)}}let i=as("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(n)&&(e.setAttributes(ak(t)),r())})})}let a3=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function a5(){let e=ef.navigator;return!!e?.userAgent&&a3.test(e.userAgent)}let a4={...oD,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
86dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...a0},a6=(e={})=>{let t,n;"enableElementTiming"in e&&(0,ee.consoleSandbox)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let r={name:void 0,source:void 0},i=ef.document,{enableInp:o,enableLongTask:a,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c},beforeStartSpan:d,idleTimeout:p,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:g,traceFetch:m,traceXHR:y,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:v,enableHTTPTimings:b,ignoreResourceSpans:S,ignorePerformanceApiSpans:E,instrumentPageLoad:T,instrumentNavigation:w,detectRedirects:k,linkPreviousTrace:I,consistentTraceSampling:x,enableReportPageLoaded:C,onRequestSpanStart:A,onRequestSpanEnd:R}={...a4,...e},O=a5();function N(e,t,o=!0,a){let s="pageload"===t.op,l=t.name,u=d?d(t):t,c=rV(a||ed()),g={...c?.pathname&&{[rU]:c.pathname},...c&&!rW(c)&&{[rB]:rz(c.href)},...u.attributes};if(l!==u.name&&(g[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom"),u.attributes=g,!o){let e=(0,nm.dateTimestampInSeconds)();oS({...u,startTime:e}).end(e);return}r.name=u.name,r.source=g[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let m=oL(u,{idleTimeout:p,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:s,beforeSpanEnd:t=>{!function(e,t){let n=av(),r=(0,nm.browserPerformanceTimeOrigin)();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:o,ignoreResourceSpans:a}=t,s=ab(r),l=n.getEntries(),{op:u,start_timestamp:c}=(0,tX.spanToJSON)(e);l.slice(aI).forEach(t=>{let n=ab(t.startTime),r=ab(Math.max(0,t.duration));if("navigation"!==u||!c||!(s+n<c))switch(t.entryType){case"navigation":var i,l,d,p,f,h;let g,m,y;i=e,l=t,d=s,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{aA(i,l,e,d)}),aA(i,l,"secureConnection",d,"TLS/SSL"),aA(i,l,"fetch",d,"cache"),aA(i,l,"domainLookup",d,"DNS"),p=i,f=l,g=(h=d)+ab(f.requestStart),m=h+ab(f.responseEnd),y=h+ab(f.responseStart),f.responseEnd&&(ay(p,g,m,{op:"browser.request",name:f.name,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),ay(p,y,m,{op:"browser.response",name:f.name,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":!function(e,t,n,r,i,o){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,tq.stringMatchesSomePattern)(t.name,o))return;let a=oF(!1),s=i+Math.max(n,ab(a?a.requestStart:0)),l=i+n,u=l+r,c={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};s!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&(0,eu.isPrimitive)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,eu.isPrimitive)(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(c,t),s<=u&&ay(e,s,u,{name:t.name,op:t.entryType,attributes:c})}(e,t,n,r,s,o);break;case"resource":!function(e,t,n,r,i,o,a){var s,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(u))return;let c={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},d=rY(n);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=n.includes(rQ.location.origin),c[rB]=rz(n),s=t,l=c,[["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"]].forEac
86h(([e,t])=>{let n=s[e];null!=n&&("number"==typeof n&&n<0x7fffffff||"string"==typeof n)&&(l[t]=n)});let p={...c,...ak(t)},f=o+r;ay(e,f,f+i,{name:n.replace(rQ.location.origin,""),op:u,attributes:p})}(e,t,t.name,n,r,s,a)}}),aI=Math.max(l.length-1,0),function(e,t){let n=rQ.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),am(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):"pageload"===(0,tX.spanToJSON)(e).op&&oa("connection.rtt",r.rtt,"millisecond"))),am(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),am(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,i)}(t,{ignoreResourceSpans:S,ignorePerformanceApiSpans:E,spanStreamingEnabled:nP(e)}),sn(e,void 0);let r=(0,Z.getCurrentScope)(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:m.spanContext().traceId,sampled:(0,tX.spanIsSampled)(m),dsc:(0,t6.getDynamicSamplingContextFromSpan)(t)}),s&&(n=void 0)},trimIdleSpanEndTimestamp:!C});function y(){i&&["interactive","complete"].includes(i.readyState)&&(e.emit("idleSpanEnableAutoFinish",m),i.removeEventListener("readystatechange",y))}s&&C&&(n=m),sn(e,m),s&&!C&&i&&(i.addEventListener("readystatechange",y),y())}return{name:"BrowserTracing",setup(e){if(O){eo&&ee.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(oU(),s&&ea.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,tX.getActiveSpan)();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=ab((0,nm.browserPerformanceTimeOrigin)()+n.startTime),{start_timestamp:r,op:i}=(0,tX.spanToJSON)(t);if("navigation"===i&&r&&e<r)continue;let o=ab(n.duration),a={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},{invoker:s,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=n.scripts[0];a["browser.script.invoker"]=s,a["browser.script.invoker_type"]=l,u&&(a["code.filepath"]=u),c&&(a["code.function"]=c),-1!==d&&(a["browser.script.source_char_position"]=d),ay(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0}):a&&as("longtask",({entries:e})=>{let t=(0,tX.getActiveSpan)();if(!t)return;let{op:n,start_timestamp:r}=(0,tX.spanToJSON)(t);for(let i of e){let e=ab((0,nm.browserPerformanceTimeOrigin)()+i.startTime),o=ab(i.duration);"navigation"===n&&r&&e<r||ay(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}}),l&&as("event",({entries:e})=>{let t=(0,tX.getActiveSpan)();if(t){for(let n of e)if("click"===n.name){let e=ab((0,nm.browserPerformanceTimeOrigin)()+n.startTime),r=ab(n.duration),i={name:r9(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},o=ep(n.target);o&&(i.attributes["ui.component_name"]=o),ay(t,e,e+r,i)}}}),k&&i){let e=()=>{t=(0,nm.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function r(){let t=e[st];t&&!(0,tX.spanToJSON)(t).timestamp&&(eo&&ee.debug.log(`[Tracing] Finishing current active span with op: ${(0,tX.spanToJSON)(t).op}`),t.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(n,i)=>{if((0,Z.getClient)()!==e)return;if(i?.isRedirect){eo&&ee.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),N(e,{op:"navigation.redirect",...n},!1,i.url);return}t=void 0,r();let o=(0,Z.getCurrentScope)();o.setPropagationContext({traceId:(0,oo.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,or.hasSpansEnabled)()?void 0:(0,oo.generateSpanId)()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),N(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0},!0,i?.url)}),e.on("startPageLoadSpan",(t,n={})=>
86{if((0,Z.getClient)()!==e)return;r();let i=n.sentryTrace||a9("sentry-trace")||se("sentry-trace"),o=n.baggage||a9("baggage")||se("baggage"),a=(0,oy.propagationContextFromHeaders)(i,o),s=(0,Z.getCurrentScope)();s.setPropagationContext(a),(0,or.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,oo.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:em()}),N(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{C&&n&&(n.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),n.end())})},afterAllSetup(e){var n,i,a,s,d;let S;if(O)return;e.addIntegration&&!e.getIntegrationByName?.(aF)&&e.addIntegration(a$({ignore:o?[]:["inp"],_experiments:{enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c}}));let E=ed();if("off"!==I&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r="session-storage"===t,i=r?function(){try{let e=ef.sessionStorage?.getItem(aq);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,tX.getRootSpan)(e)!==e)return;let t=(0,Z.getCurrentScope)().getPropagationContext();i=function(e,t,n){let r=(0,tX.spanToJSON)(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{let e=Number(r.data?.[tK.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;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(eo&&ee.debug.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[tK.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${o.traceId}-${o.spanId}-${+!!aH(o)}`)),i)}(i,e,t),r&&function(e){try{ef.sessionStorage.setItem(aq,JSON.stringify(e))}catch(e){eo&&ee.debug.warn("Could not store previous trace in sessionStorage",e)}}(i)});let o=!0;n&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,Z.getCurrentScope)(),n=t.getPropagationContext();if(o&&n.parentSpanId){o=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(aH(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=aH(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[tK.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:i.sampleRate}})}(e,{linkPreviousTrace:I,consistentTraceSampling:x}),ef.location){if(T){let t=(0,nm.browserPerformanceTimeOrigin)();a8(e,{name:ef.location.pathname,startTime:t?t/1e3:void 0,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}w&&r4(({to:n,from:r})=>{var i,o;let a,s;if(void 0===r&&E?.indexOf(n)!==-1){E=void 0;return}E=void 0;let l=rV(n),u=e[st],c=u&&k&&(i=u,o=t,a=(0,tX.spanToJSON)(i),!((s=(0,nm.dateTimestampInSeconds)())-a.start_timestamp>1.5)&&(!o||!(s-o<=1.5)));a7(e,{name:l?.pathname||ef.location.pathname,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:n,isRedirect:c})})}g&&(ef.document?ef.document.addEventListener("visibilitychange",()=>{let e=(0,tX.getActiveSpan)();if(!e)return;let t=(0,tX.getRootSpan)(e);if(ef.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,tX.spanToJSON)(t);eo&&ee.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:op.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):eo&&ee.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")),l&&(n=e,i=p,a=f,s=h,d=r,ef.document&&addEventListener("click",()=>{let e="ui.action.click",t=function(e){return e[st]}(n);if(t&&["navigation","pageload"].includes((0,tX.spanToJSON)(t).op)){eo&&ee.debug.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(S&&(S.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),S.end(),S=void 0),!d.name){eo&&ee.debug.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}S=oL({name:d.name,op:e,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d.source||"url"}},{idleTimeout:i,finalTimeout:a,childSpanTimeout:s}
86)},{capture:!0})),a1(e,{traceFetch:m,traceXHR:y,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:b,onRequestSpanStart:A,onRequestSpanEnd:R}),_&&e.addIntegration(aP())}}};function a8(e,t,n){e.emit("startPageLoadSpan",t,n),(0,Z.getCurrentScope)().setTransactionName(t.name);let r=e[st];return r&&e.emit("afterStartPageLoadSpan",r),r}function a7(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:r}),e.emit("startNavigationSpan",t,{isRedirect:i,url:r});let o=(0,Z.getCurrentScope)();return o.setTransactionName(t.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...em(),url:r}}),e[st]}function a9(e){let t=ef.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function se(e){let t=ef.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}let st="_sentry_idleSpan";function sn(e,t){(0,es.addNonEnumerableProperty)(e,st,t)}function sr(e){try{return new URL(e,rQ.location.origin).toString()}catch{return e}}let si=ea.GLOBAL_OBJ,so=null,sa=new Map,ss=new Map;function sl(e){let t=e.split("/").filter(Boolean),n=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function su(e){if(sa.has(e))return sa.get(e)??null;try{let t=new RegExp(e);return sa.set(e,t),t}catch(t){return oe.DEBUG_BUILD&&ee.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function sc(){if(!si?._sentryRouteManifest||"string"!=typeof si._sentryRouteManifest)return null;let e=si._sentryRouteManifest;if(so&&C===e)return so;sa.clear(),ss.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return so=t,C=e,t}catch{return oe.DEBUG_BUILD&&ee.debug.warn("Could not extract route manifest"),null}}let sd=e=>{let t=sc();if(!t)return;let n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(ss.has(n))return ss.get(n);let{staticRoutes:r,dynamicRoutes:i}=t;if(!Array.isArray(r)||!Array.isArray(i))return;let o=(function(e,t,n){let r=[];if(t.some(t=>t.path===e))return r;for(let t of n)if(t.regex){let n=su(t.regex);n?.test(e)&&r.push(t.path)}if(!e.startsWith("/:")){for(let t of n)if(t.hasOptionalPrefix&&t.regex){let n="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=su(t.regex);i?.test(n)&&r.push(t.path)}}return r})(n,r,i).sort((e,t)=>sl(e)-sl(t))[0];return ss.set(n,o),o};function sp(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function sf(e,t,n){e.setAttributes({[rU]:t,[rB]:rz(sr(n))})}let sh="incomplete-app-router-transaction",sg="router-patch",sm={current:void 0},sy=ea.GLOBAL_OBJ,s_=ea.GLOBAL_OBJ;function sv(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let sb=new WeakSet;function sS(e,t,n){sb.has(t)||(sb.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,i,o){if("router-patch"!==sg)return t.apply(i,o);let a=sh,s={[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"},l=o[0],u=V.default.env._sentryBasePath??s_._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===r?(a=sp(sv(c)),s["navigation.type"]="router.push"):"replace"===r?(a=sp(sv(c)),s["navigation.type"]="router.replace"):"back"===r?s["navigation.type"]="router.back":"forward"===r&&(s["navigation.type"]="router.forward");let d=sd(a),p="back"===r||"forward"===r?void 0:sr(c);return n.current=a7(e,{name:d??a,attributes:{...s,[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d?"route":"url",...d&&{[rj]:d}}},p?{url:p}:void 0),t.apply(i,o)}}))}))}let sE=K.default.events?K.default:K.default.default;function sT(e={}){let t=a6({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[n,{headers:r}]=t;return r?.get("next-router-prefetch")&&n?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){!a5()&&(r&&function(e){if(ef.document.getElementById("__NEXT_DATA__"))"false"!==V.default.env._sentryHasPagesRouter&&sE.events.on("routeChangeStart",t=>{let n,r,i=rK(t),o=function(e){let t=ef.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n,r,i,o=(n=t.split("/"),r="",n[n.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(n.pop(),r="(?:/(.+?))?"),i=n.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${i}${r}(?:/)?$`));return e.match(o)})}(i);o?(n=o,r="route"):(n=i,r="url"),a7(e,{name:n,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,..."route"===r&&{[rj]:n}}},{url:sr(t)})});else{let t,n,r;A=(t,n)=>{let r=V.default.env._sentryBasePath??s_._sentryBasePath,i=r&&!t.startsWith(r)?`${r}${t}`:t,o=sp(new URL(i,ef.location.href).pathname),a=sd(o),s=a??o;"router-patch"===sg&&(sg="transition-start-hook");let l=sm.current;l?(l.updateName(s),l.setAttributes({"navigation.type":`router.${n}`,[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url",...a&&{[rj]:a}}),sf(l,o,i),sm.current=void 0):a7(e,{name:s,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url","navigation.type":`router.${n}`,...a&&{[rj]:a}}},{url:sr(i)})},ef.addEventListener("popstate",()=>{let t=sp(ef.location.pathname),n=sd(t);sm.current?.isRecording()?(sm.current.updateName(n??t),sm.current.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n?"route":"url"),n&&sm.current.setAttribute(rj,n),sf(sm.current,t,ef.location.href)):sm.current=a7(e,{name:n??t,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n?"route":"url","navigation.type":"browser.popstate",...n&&{[rj]:n}}},{url:sr(t)})}),t=!1,n=0,r=setInterval(()=>{n++;let i=sy?.next?.router??sy?.nd?.router;t||n>500?clearInterval(r):i&&(clearInterval(r),t=!0,sS(e,i,sm),["nd","next"].forEach(t=>{let n=sy[t];n&&(sy[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&sS(e,r,sm),t[n]=r,!0)}))}))},20)}}(e),t.afterAllSetup(e),n&&function(e){if(ef.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e,t=ef.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{oe.DEBUG_BUILD&&ee.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o?.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),o=(0,oh.parseBaggageHeader)(i),a=t||ef.location.pathname;o?.["sentry-transaction"]&&"/_error"===a&&(a=(a=o["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=(0,nm.browserPerformanceTimeOrigin)();a8(e,{name:a,startTime:s?s/1e3:void 0,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...t&&{[rj]:t},...n&&{...n}}},{sentryTrace:r,baggage:i})}(e);else{let t,n,r;n=sd(t=sp(ef.location.pathname)),a8(e,{name:n??t,startTime:(r=(0,nm.browserPerformanceTimeOrigin)())?r/1e3:void 0,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n?"route":"url",...n&&{[rj]:n}}})}}(e))}}}let sw=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function sk(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function sI(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)}let sx=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in ea.GLOBAL_OBJ&&!!ea.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||o){let e,o,a=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=sk(e).slice(1),t=sk(t).slice(1);let n=sI(e.split("/")),r=sI(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){o=e;break}let a=[];for(let e=o;e<n.length;e++)a.push("..");return(a=a.concat(r.slice(o))).join("/")}(t,a):(e=a.length>1024?`<truncated>${a.slice(-1024)}`:a,(o=sw.exec(e))?o.slice(1):[])[2]||"";r.filename=`${n}${s}`}return r}}({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=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}},sC=/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js(:\d+)*$/,sA=new class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let 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){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}(100),sR=ea.GLOBAL_OBJ,sO=!1,sN=ea.GLOBAL_OBJ;function sP(e,t={},n=(0,Z.getCurrentScope)()){let{message:r,name:i,email:o,url:a,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:o,name:i,message:r,url:a,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},d=n?.getClient()||(0,Z.getClient)();return d&&d.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}e.s([],123641),e.i(123641),e.s([],607627),e.i(607627);let sM=ea.GLOBAL_OBJ,sD=sM.document,sL=sM.navigator,sB="Report a Bug",sU="Cancel",sj="Send Bug Report",sF="Confirm",s$="Report a Bug",sq="[email protected]",sH="Email",sz="What's the bug? What did you expect?",sG="Description",sW="Your Name",sV="Name",sJ="Thank y
86ou for your report!",sY="(required)",sK="Add a screenshot",sX="Remove screenshot",sQ="Highlight",sZ="Hide",s0="Remove",s1="Unable to submit feedback with empty message",s2="No client setup, cannot send feedback.",s3="Unable to determine if Feedback was correctly sent.",s5="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",s4="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",s6={ERROR_EMPTY_MESSAGE:s1,ERROR_NO_CLIENT:s2,ERROR_TIMEOUT:s3,ERROR_FORBIDDEN:s5,ERROR_GENERIC:s4};function s8(e,t){return t?.[e]??s6[e]}let s7=(e,t={includeReplay:!0})=>{let n=t.errorMessages;if(!e.message)throw Error(s8("ERROR_EMPTY_MESSAGE",n));let r=(0,Z.getClient)();if(!r)throw Error(s8("ERROR_NO_CLIENT",n));e.tags&&Object.keys(e.tags).length&&(0,Z.getCurrentScope)().setTags(e.tags);let i=sP({source:"api",url:ed(),...e},t);return new Promise((e,t)=>{let o=setTimeout(()=>{a(),t(s8("ERROR_TIMEOUT",n))},3e4),a=r.on("afterSendEvent",(r,s)=>{if(r.event_id===i)return(clearTimeout(o),a(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300)?e(i):s?.statusCode===403?t(s8("ERROR_FORBIDDEN",n)):t(s8("ERROR_GENERIC",n))})})},s9="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function le(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 lt(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}let ln="rgba(88, 74, 192, 1)",lr={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:ln,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%)"},li={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:ln,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 lo(e){return`
87  --foreground: ${e.foreground};
88  --background: ${e.background};
89  --accent-foreground: ${e.accentForeground};
90  --accent-background: ${e.accentBackground};
91  --success-color: ${e.successColor};
92  --error-color: ${e.errorColor};
93  --border: ${e.border};
94  --box-shadow: ${e.boxShadow};
95  --outline: ${e.outline};
96  --interactive-filter: ${e.interactiveFilter};
97  `}function la({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let i=sD.createElement("style");return i.textContent=`
98:host {
99  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
100  --font-size: 14px;
101  --z-index: 100000;
102
103  --page-margin: 16px;
104  --inset: auto 0 0 auto;
105  --actor-inset: var(--inset);
106
107  font-family: var(--font-family);
108  font-size: var(--font-size);
109
110  ${"system"!==e?`color-scheme: only ${e};`:""}
111
112  ${lo("dark"===e?{...li,...t}:{...lr,...n})}
113}
114
115${"system"===e?`
116@media (prefers-color-scheme: dark) {
117  :host {
118    color-scheme: only dark;
119
120    ${lo({...li,...t})}
121  }
122}`:""}
123`,r&&i.setAttribute("nonce",r),i}let ls=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:i=!0,showBranding:o=!0,isEmailRequired:a=!1,isNameRequired:s=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:c=!0,useSentryUser:d={email:"email",name:"username"},tags:p,styleNonce:f,scriptNonce:h,colorScheme:g="system",themeLight:m={},themeDark:y={},addScreenshotButtonLabel:_=sK,cancelButtonLabel:v=sU,confirmButtonLabel:b=sF,emailLabel:S=sH,emailPlaceholder:E=sq,formTitle:T=s$,isRequiredLabel:w=sY,messageLabel:k=sG,messagePlaceholder:I=sz,nameLabel:x=sV,namePlaceholder:C=sW,removeScreenshotButtonLabel:A=sX,submitButtonLabel:R=sj,successMessageText:O=sJ,triggerLabel:N=sB,triggerAriaLabel:P="",highlightToolText:M=sQ,hideToolText:D=sZ,removeHighlightText:L=s0,errorEmptyMessageText:B=s1,errorNoClientText:U=s2,errorTimeoutText:j=s3,errorForbiddenText:F=s5,errorGenericText:$=s4,onF
123ormOpen:q,onFormClose:H,onSubmitSuccess:z,onSubmitError:G,onFormSubmitted:W}={})=>{let V={id:r,autoInject:i,showBranding:o,isEmailRequired:a,isNameRequired:s,showEmail:l,showName:u,enableScreenshot:c,useSentryUser:d,tags:p,styleNonce:f,scriptNonce:h,colorScheme:g,themeDark:y,themeLight:m,triggerLabel:N,triggerAriaLabel:P,cancelButtonLabel:v,submitButtonLabel:R,confirmButtonLabel:b,formTitle:T,emailLabel:S,emailPlaceholder:E,messageLabel:k,messagePlaceholder:I,nameLabel:x,namePlaceholder:C,successMessageText:O,isRequiredLabel:w,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:A,highlightToolText:M,hideToolText:D,removeHighlightText:L,errorEmptyMessageText:B,errorNoClientText:U,errorTimeoutText:j,errorForbiddenText:F,errorGenericText:$,onFormClose:H,onFormOpen:q,onSubmitError:G,onSubmitSuccess:z,onFormSubmitted:W},J=null,Y=null,K=[],X=e=>{if(!J){let t=sD.createElement("div");t.id=String(e.id),sD.body.appendChild(t),J=t.attachShadow({mode:"open"}),Y=la(e),J.appendChild(Y)}return J},Q=async r=>{let i,o,a=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(sL.userAgent)||/Macintosh/i.test(sL.userAgent)&&sL.maxTouchPoints&&sL.maxTouchPoints>1)&&!!isSecureContext;try{i=(t?t():await e("feedbackModalIntegration",h))(),tF(i)}catch{throw s9&&ee.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error("[Feedback] Missing feedback modal integration!")}try{let t=a?n?n():await e("feedbackScreenshotIntegration",h):void 0;t&&(o=t(),tF(o))}catch{s9&&ee.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let s={ERROR_EMPTY_MESSAGE:r.errorEmptyMessageText,ERROR_NO_CLIENT:r.errorNoClientText,ERROR_TIMEOUT:r.errorTimeoutText,ERROR_FORBIDDEN:r.errorForbiddenText,ERROR_GENERIC:r.errorGenericText},l=i.createDialog({options:{...r,onFormClose:()=>{l?.close(),r.onFormClose?.()},onFormSubmitted:()=>{l?.close(),r.onFormSubmitted?.()}},screenshotIntegration:o,sendFeedback:(e,t)=>s7(e,{includeReplay:!0,...t,errorMessages:s}),shadow:X(r)});return l},Z=(e,t={})=>{let n=le(V,t),r="string"==typeof e?sD.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw s9&&ee.debug.error("[Feedback] Unable to attach to target element"),Error("Unable to attach to target element");let i=null,o=async()=>{i||(i=await Q({...n,onFormSubmitted:()=>{i?.removeFromDom(),n.onFormSubmitted?.()}})),i.appendToDom(),i.open()};r.addEventListener("click",o);let a=()=>{K=K.filter(e=>e!==a),i?.removeFromDom(),i=null,r.removeEventListener("click",o)};return K.push(a),a},et=(e={})=>{let t=le(V,e),n=X(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let i,o,a,s,l,u,c,d,p=sD.createElement("button");if(p.type="button",p.className="widget__actor",p.ariaHidden="false",p.ariaLabel=t||e||sB,p.appendChild((o=lt((i=e=>sM.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),a=lt(i("g"),{clipPath:"url(#clip0_57_80)"}),s=lt(i("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
12356 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"}),o.appendChild(a).appendChild(s),l=i("defs"),u=lt(i("clipPath"),{id:"clip0_57_80"}),c=lt(i("rect"),{width:"20",height:"20",fill:"white"}),u.appendChild(c),l.appendChild(u),o.appendChild(l).appendChild(u).appendChild(c),o)),e){let t=sD.createElement("span");t.appendChild(sD.createTextNode(e)),p.appendChild(t)}let f=((d=sD.createElement("style")).textContent=`
124.widget__actor {
125  position: fixed;
126  z-index: var(--z-index);
127  margin: var(--page-margin);
128  inset: var(--actor-inset);
129
130  display: flex;
131  align-items: center;
132  gap: 8px;
133  padding: 16px;
134
135  font-family: inherit;
136  font-size: var(--font-size);
137  font-weight: 600;
138  line-height: 1.14em;
139  text-decoration: none;
140
141  background: var(--actor-background, var(--background));
142  border-radius: var(--actor-border-radius, 1.7em/50%);
143  border: var(--actor-border, var(--border));
144  box-shadow: var(--actor-box-shadow, var(--box-shadow));
145  color: var(--actor-color, var(--foreground));
146  fill: var(--actor-color, var(--foreground));
147  cursor: pointer;
148  opacity: 1;
149  transition: transform 0.2s ease-in-out;
150  transform: translate(0, 0) scale(1);
151}
152.widget__actor[aria-hidden="true"] {
153  opacity: 0;
154  pointer-events: none;
155  visibility: hidden;
156  transform: translate(0, 16px) scale(0.98);
157}
158
159.widget__actor:hover {
160  background: var(--actor-hover-background, var(--background));
161  filter: var(--interactive-filter);
162}
163
164.widget__actor svg {
165  width: 1.14em;
166  height: 1.14em;
167}
168
169@media (max-width: 600px) {
170  .widget__actor span {
171    display: none;
172  }
173}
174`,r&&d.setAttribute("nonce",r),d);return{el:p,appendToDom(){n.appendChild(f),n.appendChild(p)},removeFromDom(){p.remove(),f.remove()},show(){p.ariaHidden="false"},hide(){p.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:f});return Z(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){nS()&&V.autoInject&&("loading"===sD.readyState?sD.addEventListener("DOMContentLoaded",()=>et().appendToDom()):et().appendToDom())},attachTo:Z,createWidget(e={}){let t=et(le(V,e));return t.appendToDom(),t},createForm:async(e={})=>Q(le(V,e)),setTheme(e){if(V.colorScheme=e,J){let e=la(V);Y?J.replaceChild(e,Y):J.prepend(e),Y=e}},remove(){J&&(J.parentElement?.remove(),J=null,Y=null),K.forEach(e=>e()),K=[]}}};function ll(){let e=(0,Z.getClient)();return e?.getIntegrationByName("Feedback")}var lu,lc,ld,lp,lf,lh,lg,lm={},ly=[],l_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,lv=Array.isArray;function lb(e,t){for(var n in t)e[n]=t[n];return e}function lS(e){var t=e.parentNode;t&&t.removeChild(e)}function lE(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?lu.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return lT(e,a,r,i,null)}function lT(e,t,n,r,i){var o={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==i?++ld:i,__i:-1,__u:0};return null==i&&null!=lc.vnode&&lc.vnode(o),o}function lw(e){return e.children}function lk(e,t){this.props=e,this.context=t}function lI(e,t){if(null==t)return e.__?lI(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?lI(e):null}function lx(e){(!e.__d&&(e.__d=!0)&&lp.push(e)&&!lC.__r++||lf!==lc.debounceRendering)&&((lf=lc.debounceRendering)||lh)(lC)}function lC(){var e,t,n,r=[],i=[];for(lp.sort(lg);e=lp.shift();)e.__d&&(n=lp.length,t=function(e,t,n){var r,i=e.__v,o=i.__e,a=e.__P;if(a)return(r=lb({},i)).__v=i.__v+1,lc.vnode&&lc.vnode(r),lM(a,r,i,e.__n,void 0!==a.ownerSVGElement,32&i.__u?[o]:null,t,null==o?lI(i):o,!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}(e,r,i)||t,0===n||lp.length>n?(lD(r,t,i),i.length=r.length=0,t=void 0,lp.sort(lg)):t&&lc.__c&&lc.__c(t,ly));t&&lD(r,t,i),lC.__r=0}function lA(e,t,n,r,i,o,a,s,l,u,c){var d,p,f,h,g,m=r&&r.__k||ly,y=t.length;for(n.__d=l,function(e,t,n){var r,i,o,a,s,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],r=0;r<l;r++)null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?lT(null,i,null,null,i):lv(i)?lT(lw,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?lT(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=function(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type)return n;if(r>+(null!=l&&0==(131072&l.__u)))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return -1}(i,n,a=r+d,c),i.__i=s,o=null,-1!==s&&(c--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s===a+1?d++:s>a?c>
vendor: 4,360 bytes, line 174
174l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(i.__u|=65536))):(o=n[r])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=lI(o)),lB(o,o,!1),n[r]=null,c--);if(c)for(r=0;r<u;r++)null!=(o=n[r])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=lI(o)),lB(o,o))}(n,t,m),l=n.__d,d=0;d<y;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?lm:m[f.__i]||lm,f.__i=d,lM(e,f,p,i,o,a,s,l,u,c),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&lL(p.ref,null,f),c.push(f.ref,f.__c||h,f)),null==g&&null!=h&&(g=h),65536&f.__u||p.__k===f.__k?l=function e(t,n,r){var i,o;if("function"==typeof t.type){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,n=e(i[o],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType)return n}(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=g}function lR(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||l_.test(t)?n:n+"px"}function lO(e,t,n,r,i){var o;t: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||lR(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||lR(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=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+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?lP:lN,o)):e.removeEventListener(t,o?lP:lN,o);else{if(i)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 t}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function lN(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(lc.event?lc.event(e):e)}}function lP(e){if(this.l)return this.l[e.type+!0](lc.event?lc.event(e):e)}function lM(e,t,n,r,i,o,a,s,l,u){var c,d,p,f,h,g,m,y,_,v,b,S,E,T,w,k=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(c=lc.__b)&&c(t);t:if("function"==typeof k)try{if(y=t.props,_=(c=k.contextType)&&r[c.__c],v=c?_?_.props.value:c.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?t.__c=d=new k(y,v):(t.__c=d=new lk(y,v),d.constructor=k,d.render=lU),_&&_.sub(d),d.props=y,d.state||(d.state={}),d.context=v,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=k.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=lb({},d.__s)),lb(d.__s,k.getDerivedStateFromProps(y,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==k.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==k.getDerivedStateFromProps&&y!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,v),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,g)})}if(d.context=v,d.props=y,d.__P=e,d.__e=!1,S=lc.__r,E=0,"prototype"in k&&k.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++E<25)d.state=d.__s,null!=d.getChildContext&&(r=lb(lb({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(f,h)),lA(e,lv(w=null!=c&&c.type===lw&&null==c.key?c.props.children:c)?w:[w],t,n,r,i,o,a,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=o?(t.__e=s,t.__u|=l?160:32,o[o.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),lc.__e(e,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,a,s,l){var u,c,d,p,f,h,g,m=n.props,y=t.props,_=t.type;if("svg"===_&&(i=!0),null!=o){for(u=0;
174u<o.length;u++)if((f=o[u])&&"setAttribute"in f==!!_&&(_?f.localName===_:3===f.nodeType)){e=f,o[u]=null;break}}if(null==e){if(null===_)return document.createTextNode(y);e=i?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,y.is&&y),o=null,s=!1}if(null===_)m===y||s&&e.data===y||(e.data=y);else{if(o=o&&lu.call(e.childNodes),m=n.props||lm,!s&&null!=o)for(m={},u=0;u<e.attributes.length;u++)m[(f=e.attributes[u]).name]=f.value;for(u in m)f=m[u],"children"==u||("dangerouslySetInnerHTML"==u?d=f:"key"===u||u in y||lO(e,u,null,f,i));for(u in y)f=y[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?c=f:"value"==u?h=f:"checked"==u?g=f:"key"===u||s&&"function"!=typeof f||m[u]===f||lO(e,u,f,m[u],i);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),lA(e,lv(p)?p:[p],t,n,r,i&&"foreignObject"!==_,o,a,o?o[0]:n.__k&&lI(n,0),s,l),null!=o)for(u=o.length;u--;)null!=o[u]&&lS(o[u]);s||(u="value",void 0===h||h===e[u]&&("progress"!==_||h)&&("option"!==_||h===m[u])||lO(e,u,h,m[u],!1),u="checked",void 0!==g&&g!==e[u]&&lO(e,u,g,m[u],!1))}return e}(n.__e,t,n,r,i,o,a,l,u);(c=lc.diffed)&&c(t)}function lD(e,t,n){for(var r=0;r<n.length;r++)lL(n[r],n[++r],n[++r]);lc.__c&&lc.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){lc.__e(e,t.__v)}})}function lL(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){lc.__e(e,n)}}function lB(e,t,n){var r,i;if(lc.unmount&&lc.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||lL(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){lc.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&lB(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||lS(e.__e),e.__=e.__e=e.__d=void 0}function lU(e,t,n){return this.constructor(e,n)}lu=ly.slice,lc={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},ld=0,lk.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=lb({},this.state),"function"==typeof e&&(e=e(lb({},n),this.props)),e&&lb(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),lx(this))},lk.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),lx(this))},lk.prototype.render=lw,lp=[],lh="function"==typeof Promise?Promise.prototype.then.bind(Prom
174ise.resolve()):setTimeout,lg=function(e,t){return e.__v.__b-t.__v.__b},lC.__r=0;var lj,lF,l$,lq,lH=0,lz=[],lG=[],lW=lc,lV=lW.__b,lJ=lW.__r,lY=lW.diffed,lK=lW.__c,lX=lW.unmount,lQ=lW.__;function lZ(e,t){lW.__h&&lW.__h(lF,e,lH||t),lH=0;var n=lF.__H||(lF.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:lG}),n.__[e]}function l0(e){return lH=1,l1(ue,e)}function l1(e,t,n){var r=lZ(lj++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ue(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=lF,!lF.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,n);var a=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};lF.u=!0;var o=lF.shouldComponentUpdate,a=lF.componentWillUpdate;lF.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},lF.shouldComponentUpdate=i}return r.__N||r.__}function l2(e,t){var n=lZ(lj++,4);!lW.__s&&l9(n.__H,t)&&(n.__=e,n.i=t,lF.__h.push(n))}function l3(e,t){var n=lZ(lj++,7);return l9(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function l5(e,t){return lH=8,l3(function(){return e},t)}function l4(){for(var e;e=lz.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(l8),e.__H.__h.forEach(l7),e.__H.__h=[]}catch(t){e.__H.__h=[],lW.__e(t,e.__v)}}lW.__b=function(e){lF=null,lV&&lV(e)},lW.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),lQ&&lQ(e,t)},lW.__r=function(e){lJ&&lJ(e),lj=0;var t=(lF=e.__c).__H;t&&(l$===lF?(t.__h=[],lF.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=lG,e.__N=e.i=void 0})):(t.__h.forEach(l8),t.__h.forEach(l7),t.__h=[],lj=0)),l$=lF},lW.diffed=function(e){lY&&lY(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==lz.push(t)&&lq===lW.requestAnimationFrame||((lq=lW.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),l6&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);l6&&(t=requestAnimationFrame(n))})(l4)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==lG&&(e.__=e.__V),e.i=void 0,e.__V=lG})),l$=lF=null},lW.__c=function(e,t){t.some(function(e){try{e.__h.forEach(l8),e.__h=e.__h.filter(function(e){return!e.__||l7(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],lW.__e(n,e.__v)}}),lK&&lK(e,t)},lW.unmount=function(e){lX&&lX(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{l8(e)}catch(e){t=e}}),n.__H=void 0,t&&lW.__e(t,n.__v))};var l6="function"==typeof requestAnimationFrame;function l8(e){var t=lF,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),lF=t}function l7(e){var t=lF;e.__c=e.__(),lF=t}function l9(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function ue(e,t){return"function"==typeof t?t(e):t}let ut=Object.defineProperty({__proto__:null,useCallback:l5,useContext:function(e){var t=lF.context[e.__c],n=lZ(lj++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(lF)),t.props.value):e.__},useDebugValue:function(e,t){lW.useDebugValue&&lW.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=lZ(lj++,3);!lW.__s&&l9(n.__H,t)&&(n.__=e,n.i=t,lF.__H.__h.push(n))},useErrorBoundary:function(e){var t=lZ(lj++,10),n=l0();return t.__=e,lF.componentDidCatch||(lF.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=lZ(lj++,11);if(!e.__){for(var t=lF.__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){lH=6,l2(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:l2,useMemo:l3,useReducer:l1,useRef:function(e){return lH=5,l3(function(){return{current:e}},[])},useState:l0},Symbol.toStringTag,{value:"Module"});function un({options:e}){let t=l3(()=>{let e,t;return{__html:(e=lt(sD.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=lt(sD.createElementNS("http://www.w3.org/2000/svg","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"}),e.appendChild(t),e).outerHTML}},[]);return lE("h2",{class:"dialog__header"},lE("span",{class:"dialog__title"},e.formTitle),e.showBranding?lE("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function ur(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}function ui({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:o,onSubmitError:a,showEmail
174:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:g,isEmailRequired:m,isNameRequired:y,messageLabel:_,messagePlaceholder:v,nameLabel:b,namePlaceholder:S,submitButtonLabel:E,isRequiredLabel:T}=e,[w,k]=l0(!1),[I,x]=l0(null),[C,A]=l0(!1),R=u?.input,[O,N]=l0(null),P=l5(e=>{N(e),A(!1)},[]),M=l5(e=>{var t;let n,r=(n=[],(t={emailLabel:h,isEmailRequired:m,isNameRequired:y,messageLabel:_,nameLabel:b}).isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n);return r.length>0?x(`Please enter in the following required fields: ${r.join(", ")}`):x(null),0===r.length},[h,m,y,_,b]);return lE("form",{class:"form",onSubmit:l5(async e=>{k(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (u&&C?u.value():void 0),r={name:ur(t,"name"),email:ur(t,"email"),message:ur(t,"message"),attachments:n?[n]:void 0};if(!M(r))return;try{let e=await i({name:r.name,email:r.email,message:r.message,source:"widget",tags:c},{attachments:r.attachments});o(r,e)}catch(t){s9&&ee.debug.error(t);let e=t instanceof Error?t:Error(String(t));x(e.message),a(e)}}finally{k(!1)}},[u&&C,o,a])},R&&C?lE(R,{onError:P}):null,lE("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:w},lE("div",{class:"form__top"},I?lE("div",{class:"form__error-container"},I):null,l?lE("label",{for:"name",class:"form__label"},lE(uo,{label:b,isRequiredLabel:T,isRequired:y}),lE("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:y,type:"text"})):lE("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),s?lE("label",{for:"email",class:"form__label"},lE(uo,{label:h,isRequiredLabel:T,isRequired:m}),lE("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:m,type:"email"})):lE("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),lE("label",{for:"message",class:"form__label"},lE(uo,{label:_,isRequiredLabel:T,isRequired:!0}),lE("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5})),R?lE("label",{for:"screenshot",class:"form__label"},lE("button",{class:"btn btn--default",disabled:w,type:"button",onClick:()=>{N(null),A(e=>!e)}},C?p:d),O?lE("div",{class:"form__error-container"},O.message):null):null),lE("div",{class:"btn-group"},lE("button",{class:"btn btn--primary",disabled:w,type:"submit"},E),lE("button",{class:"btn btn--default",disabled:w,type:"button",onClick:r},f))))}function uo({label:e,isRequired:t,isRequiredLabel:n}){return lE("span",{class:"form__label__text"},e,t&&lE("span",{class:"form__label__text--required"},n))}function ua({open:e,onFormSubmitted:t,...n}){let r=n.options,i=l3(()=>{let e,t,n,r,i,o,a,s;return{__html:(t=lt((e=e=>sM.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=lt(e("g"),{clipPath:"url(#clip0_57_156)"}),r=lt(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"}),i=lt(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 
17410.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(i,r),o=e("defs"),a=lt(e("clipPath"),{id:"clip0_57_156"}),s=lt(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"}),a.appendChild(s),o.appendChild(a),t.appendChild(o).appendChild(a).appendChild(s),t).outerHTML}},[]),[o,a]=l0(null),s=l5(()=>{o&&(clearTimeout(o),a(null)),t()},[o]),l=l5((e,r)=>{n.onSubmitSuccess(e,r),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return lE(lw,null,o?lE("div",{class:"success__position",onClick:s},lE("div",{class:"success__content"},r.successMessageText,lE("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):lE("dialog",{class:"dialog",onClick:r.onFormClose,open:e},lE("div",{class:"dialog__position"},lE("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},lE(un,{options:r}),lE(ui,{...n,onSubmitSuccess:l})))))}let us=`
175.dialog {
176  position: fixed;
177  z-index: var(--z-index);
178  margin: 0;
179  inset: 0;
180
181  display: flex;
182  align-items: center;
183  justify-content: center;
184  padding: 0;
185  height: 100vh;
186  width: 100vw;
187
188  color: var(--dialog-color, var(--foreground));
189  fill: var(--dialog-color, var(--foreground));
190  line-height: 1.75em;
191
192  background-color: rgba(0, 0, 0, 0.05);
193  border: none;
194  inset: 0;
195  opacity: 1;
196  transition: opacity 0.2s ease-in-out;
197}
198
199.dialog__position {
200  position: fixed;
201  z-index: var(--z-index);
202  inset: var(--dialog-inset);
203  padding: var(--page-margin);
204  display: flex;
205  max-height: calc(100vh - (2 * var(--page-margin)));
206}
207@media (max-width: 600px) {
208  .dialog__position {
209    inset: var(--page-margin);
210    padding: 0;
211  }
212}
213
214.dialog__position:has(.editor) {
215  inset: var(--page-margin);
216  padding: 0;
217}
218
219.dialog:not([open]) {
220  opacity: 0;
221  pointer-events: none;
222  visibility: hidden;
223}
224.dialog:not([open]) .dialog__content {
225  transform: translate(0, -16px) scale(0.98);
226}
227
228.dialog__content {
229  display: flex;
230  flex-direction: column;
231  gap: 16px;
232  padding: var(--dialog-padding, 24px);
233  max-width: 100%;
234  width: 100%;
235  max-height: 100%;
236  overflow: auto;
237
238  background: var(--dialog-background, var(--background));
239  border-radius: var(--dialog-border-radius, 20px);
240  border: var(--dialog-border, var(--border));
241  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
242  transform: translate(0, 0) scale(1);
243  transition: transform 0.2s ease-in-out;
244}
245
246`,ul=`
247.dialog__header {
248  display: flex;
249  gap: 4px;
250  justify-content: space-between;
251  font-weight: var(--dialog-header-weight, 600);
252  margin: 0;
253}
254.dialog__title {
255  align-self: center;
256  width: var(--form-width, 272px);
257}
258
259@media (max-width: 600px) {
260  .dialog__title {
261    width: auto;
262  }
263}
264
265.dialog__position:has(.editor) .dialog__title {
266  width: auto;
267}
268
269
270.brand-link {
271  display: inline-flex;
272}
273.brand-link:focus-visible {
274  outline: var(--outline);
275}
276`,uu=`
277.form {
278  display: flex;
279  overflow: auto;
280  flex-direction: row;
281  gap: 16px;
282  flex: 1 0;
283}
284
285.form fieldset {
286  border: none;
287  margin: 0;
288  padding: 0;
289}
290
291.form__right {
292  flex: 0 0 auto;
293  display: flex;
294  overflow: auto;
295  flex-direction: column;
296  justify-content: space-between;
297  gap: 20px;
298  width: var(--form-width, 100%);
299}
300
301.dialog__position:has(.editor) .form__right {
302  width: var(--form-width, 272px);
303}
304
305.form__top {
306  display: flex;
307  flex-direction: column;
308  gap: 8px;
309}
310
311.form__error-container {
312  color: var(--error-color);
313  fill: var(--error-color);
314}
315
316.form__label {
317  display: flex;
318  flex-direction: column;
319  gap: 4px;
320  margin: 0px;
321}
322
323.form__label__text {
324  display: flex;
325  gap: 4px;
326  align-items: center;
327}
328
329.form__label__text--required {
330  font-size: 0.85em;
331}
332
333.form__input {
334  font-family: inherit;
335  line-height: inherit;
336  background: transparent;
337  box-sizing: border-box;
338  border: var(--input-border, var(--border));
339  border-radius: var(--input-border-radius, 6px);
340  color: var(--input-color, inherit);
341  fill: var(--input-color, inherit);
342  font-size: var(--input-font-size, inherit);
343  font-weight: var(--input-font-weight, 500);
344  padding: 6px 12px;
345}
346
347.form__input::placeholder {
348  opacity: 0.65;
349  color: var(--input-placeholder-color, inherit);
350  filter: var(--interactive-filter);
351}
352
353.form__input:focus-visible {
354  outline: var(--input-focus-outline, var(--outline));
355}
356
357.form__input--textarea {
358  font-family: inherit;
359  resize: vertical;
360}
361
362.error {
363  color: var(--error-color);
364  fill: var(--error-color);
365}
366`,uc=`
367.btn-group {
368  display: grid;
369  gap: 8px;
370}
371
372.btn {
373  line-height: inherit;
374  border: var(--button-border, var(--border));
375  border-radius: var(--button-border-radius, 6px);
376  cursor: pointer;
377  font-family: inherit;
378  font-size: var(--button-font-size, inherit);
379  font-weight: var(--button-font-weight, 600);
380  padding: var(--button-padding, 6px 16px);
381}
382.btn[disabled] {
383  opacity: 0.6;
384  pointer-events: none;
385}
386
387.btn--primary {
388  color: var(--button-primary-color, var(--accent-foreground));
389  fill: var(--button-primary-color, var(--accent-foreground));
390  background: var(--button-primary-background, var(--accent-background));
391  border: var(--button-primary-border, var(--border));
392  border-radius: var(--button-primary-border-radius, 6px);
393  font-weight: var(--button-primary-font-weight, 500);
394}
395.btn--primary:hover {
396  color: var(--button-primary-hover-color, var(--accent-foreground));
397  fill: var(--button-primary-hover-color, var(--accent-foreground));
398  background: var(--button-primary-hover-background, var(--accent-background));
399  filter: var(--interactive-filter);
400}
401.btn--primary:focus-visible {
402  background: var(--button-primary-hover-background, var(--accent-background));
403  filter: var(--interactive-filter);
404  outline: var(--button-primary-focus-outline, var(--outline));
405}
406
407.btn--default {
408  color: var(--button-color, var(--foreground));
409  fill: var(--button-color, var(--foreground));
410  background: var(--button-background, var(--background));
411  border: var(--button-border, var(--border));
412  border-radius: var(--button-border-radius, 6px);
413  font-weight: var(--button-font-weight, 500);
414}
415.btn--default:hover {
416  color: var(--button-color, var(--foreground));
417  fill: var(--button-color, var(--foreground));
418  background: var(--button-hover-background, var(--background));
419  filter: var(--interactive-filter);
420}
421.btn--default:focus-visible {
422  background: var(--button-hover-background, var(--background));
423  filter: var(--interactive-filter);
424  outline: var(--button-focus-outline, var(--outline));
425}
426`,ud=`
427.success__position {
428  position: fixed;
429  inset: var(--dialog-inset);
430  padding: var(--page-margin);
431  z-index: var(--z-index);
432}
433.success__content {
434  background: var(--success-background, var(--background));
435  border: var(--success-border, var(--border));
436  border-radius: var(--success-border-radius, 1.7em/50%);
437  box-shadow: var(--success-box-shadow, var(--box-shadow));
438  font-weight: var(--success-font-weight, 600);
439  color: var(--success-color);
440  fill: var(--success-color);
441  padding: 12px 24px;
442  line-height: 1.75em;
443
444  display: grid;
445  align-items: center;
446  grid-auto-flow: column;
447  gap: 6px;
448  cursor: default;
449}
450
451.success__icon {
452  display: flex;
453}
454`,up=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{var i;let o,a,s,l,u=e.useSentryUser,c=(o=(0,Z.getCurrentScope)().getUser(),a=(0,Z.getIsolationScope)().getUser(),s=(0,Z.getGlobalScope)().getUser(),o&&Object.keys(o).length?o:a&&Object.keys(a).length?a:s),d=sD.createElement("div"),p=(i=e.styleNonce,(l=sD.createElement("style")).textContent=`
455:host {
456  --dialog-inset: var(--inset);
457}
458
459${us}
460${ul}
461${uu}
462${uc}
463${ud}
464`,i&&l.setAttribute("nonce",i),l),f="",h={get el(){return d},appendToDom(){r.contains(p)||r.contains(d)||(r.appendChild(p),r.appendChild(d))},removeFromDom(){d.remove(),p.remove(),sD.body.style.overflow=f},open(){m(!0),e.onFormOpen?.(),(0,Z.getClient)()?.emit("openFeedbackWidget"),f=sD.body.style.overflow,sD.body.style.overflow="hidden"},close(){m(!1),sD.body.style.overflow=f}},g=t?.createInput({h:lE,hooks:ut,dialog:h,options:e}),m=t=>{var r,i,o,a;r=lE(ua,{options:e,screenshotInput:g,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(u&&c?.[u.name]||""),defaultEmail:String(u&&c?.[u.email]||""),onFormClose:()=>{m(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{m(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),lc.__&&lc.__(r,d),i=d.__k,o=[],a=[],lM(d,r=d.__k=lE(lw,null,[r]),i||lm,lm,void 0!==d.ownerSVGElement,i?null:d.firstChild?lu.call(d.childNodes):null,o,i?i.__e:d.firstChild,!1,a),r.__d=void 0,lD(o,r,a)};return h}});function uf(e,t,n){if(!e)return;let r=e.getContext("2d",t);r&&n(e,r)}function uh(e,t){uf(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function ug(e,t,n){uf(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{switch(e.type){case"highlight":r.shadowColor="rgba(0, 0, 0, 0.7)",r.shadowBlur=50,r.fillStyle=t,r.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),r.clearRect(e.x,e.y,e.w,e.h);break;case"hide":r.fillStyle="rgb(0, 0, 0)",r.fillRect(e.x,e.y,e.w,e.h)}})})}let um=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let i=sD.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){var o;let a,s,l,u=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:i}){let o=function(){let[t,n]=e.useState(sM.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(sM.devicePixelRatio)},t=matchMedia(`(resolution: ${sM.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await sL.mediaDevices.getDisplayMedia({video:{width:sM.innerWidth*o,height:sM.innerHeight*o},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),i=sD.createElement("video");await new Promise((t,r)=>{i.srcObject=e,i.onloadedmetadata=()=>{n(i,o),e.getTracks().forEach(e=>e.stop()),t()},i.play().catch(r)}),r()})().catch(i)},[])}}({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}),d=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}),p={__html:(o=i.styleNonce,a=sD.createElement("style"),s="#1A141F",l="#302735",a.textContent=`
465.editor {
466  display: flex;
467  flex-grow: 1;
468  flex-direction: column;
469}
470
471.editor__image-container {
472  justify-items: center;
473  padding: 15px;
474  position: relative;
475  height: 100%;
476  border-radius: var(--menu-border-radius, 6px);
477
478  background-color: ${s};
479  background-image: repeating-linear-gradient(
480      -145deg,
481      transparent,
482      transparent 8px,
483      ${s} 8px,
484      ${s} 11px
485    ),
486    repeating-linear-gradient(
487      -45deg,
488      transparent,
489      transparent 15px,
490      ${l} 15px,
491      ${l} 16px
492    );
493}
494
495.editor__canvas-container {
496  width: 100%;
497  height: 100%;
498  position: relative;
499  display: flex;
500  align-items: center;
501  justify-content: center;
502}
503
504.editor__canvas-container > * {
505  object-fit: contain;
506  position: absolute;
507}
508
509.editor__tool-container {
510  padding-top: 8px;
511  display: flex;
512  justify-content: center;
513}
514
515.editor__tool-bar {
516  display: flex;
517  gap: 8px;
518}
519
520.editor__tool {
521  display: flex;
522  padding: 8px 12px;
523  justify-content: center;
524  align-items: center;
525  border: var(--button-border, var(--border));
526  border-radius: var(--button-border-radius, 6px);
527  background: var(--button-background, var(--background));
528  color: var(--button-color, var(--foreground));
529}
530
531.editor__tool--active {
532  background: var(--button-primary-background, var(--accent-background));
533  color: var(--button-primary-color, var(--accent-foreground));
534}
535
536.editor__rect {
537  position: absolute;
538  z-index: 2;
539}
540
541.editor__rect button {
542  opacity: 0;
543  position: absolute;
544  top: -12px;
545  right: -12px;
546  cursor: pointer;
547  padding: 0;
548  z-index: 3;
549  border: none;
550  background: none;
551}
552
553.editor__rect:hover button {
554  opacity: 1;
555}
556`,o&&a.setAttribute("nonce",o),a).innerText},f=r.el.style,h=({screenshot:r})=>{let[o,a]=t.useState("highlight"),[s,l]=t.useState([]),u=t.useRef(null),f=t.useRef(null),h=t.useRef(null),g=t.useRef(null),[m,y]=t.useState(1),_=t.useMemo(()=>{let e=sD.getElementById(i.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{let e=()=>{let t=u.current;t&&(uf(r.canvas,{alpha:!1},e=>
556{y(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),sM.addEventListener("resize",e),()=>{sM.removeEventListener("resize",e)}},[r]);let v=t.useCallback((e,t)=>{uf(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{v(f.current,r.dpi),uh(f.current,r.canvas)},[r]),t.useEffect(()=>{v(h.current,r.dpi),uf(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),ug(h.current,_,s)},[s,_]),t.useEffect(()=>{v(n,r.dpi),uh(n,r.canvas),uf(sD.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,ug(e,_,s),uh(n,e)})},[s,r,_]);let b=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),l(t=>{let n=[...t];return n.splice(e,1),n})},[]),S={width:`${r.canvas.width*m}px`,height:`${r.canvas.height*m}px`},E=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:p}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:u},e("canvas",{ref:f,id:"background",style:S}),e("canvas",{ref:h,id:"foreground",style:S}),e("div",{ref:g,onMouseDown:e=>{if(!o||!g.current)return;let t=g.current.getBoundingClientRect(),n={type:o,x:e.offsetX/m,y:e.offsetY/m},r=(e,n)=>{let r=(n.clientX-t.x)/m,i=(n.clientY-t.y)/m;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,i),w:Math.abs(r-e.x),h:Math.abs(i-e.y)}},i=e=>{uf(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),ug(h.current,_,[...s,r(n,e)])},a=e=>{let t=r(n,e);t.w*m>=1&&t.h*m>=1&&l(e=>[...e,t]),sD.removeEventListener("mousemove",i),sD.removeEventListener("mouseup",a)};sD.addEventListener("mousemove",i),sD.addEventListener("mouseup",a)},style:S},s.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:`${t.y*m}px`,left:`${t.x*m}px`,width:`${t.w*m}px`,height:`${t.h*m}px`}},e("button",{"aria-label":i.removeHighlightText,onClick:b(n),onMouseDown:E,onMouseUp:E,type:"button"},e(d,null))))))),e(c,{options:i,action:o,setAction:a}))};return function({onError:r}){let[i,o]=t.useState();return(u({onBeforeScreenshot:t.useCallback(()=>{f.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{uf(sD.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),o({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{f.display="block"},[]),onError:t.useCallback(e=>{f.display="block",r(e)},[])}),i)?e(h,{screenshot:i}):e("div",null)}}({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),uy=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentStateGraph","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],u_={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};async function uv(e,t){var n;let r,i,o=uy.includes(e)?u_[e]||e.replace("Integration","").toLowerCase():void 0,a=ef.Sentry=ef.Sentry||{};if(!o)throw Error(`Cannot lazy load integration: ${e}`);let s=a[e];if("function"==typeof s&&!("_isShim"in s))return s;let l=(n=o,r=(0,Z.getClient)(),i=r?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com",new URL(`/${tM.SDK_VERSION}/${n}.min.js`,i).toString()),u=ef.document.createElement("script");
556u.src=l,u.crossOrigin="anonymous",u.referrerPolicy="strict-origin",t&&u.setAttribute("nonce",t);let c=new Promise((e,t)=>{u.addEventListener("load",()=>e()),u.addEventListener("error",t)}),d=ef.document.currentScript,p=ef.document.body||ef.document.head||d?.parentElement;if(p)p.appendChild(u);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await c}catch{throw Error(`Error when loading integration: ${e}`)}let f=a[e];if("function"!=typeof f)throw Error(`Could not load integration: ${e}`);return f}let ub=ls({lazyLoadIntegration:uv}),uS=ls({getModalIntegration:()=>up,getScreenshotIntegration:()=>um}),uE="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function uT(e,t){let n;return nr(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function uw(e,t){return n=>{let r=e(n),i=new Map,o=t||(e=>{let t=e.getEvent();return t?.extra?.[uE]&&Array.isArray(t.extra[uE])?t.extra[uE]:[]});function a(t,r){let o=r?`${t}:${r}`:t,a=i.get(o);if(!a){let s=(0,en.dsnFromString)(t);if(!s)return;let l=ei(s,n.tunnel);a=r?(t=>{let n=e(t);return{...n,send:async e=>{let t=uT(e,["event","transaction","profile","replay_event"]);return t&&(t.release=r),n.send(e)}}})({...n,url:l}):e({...n,url:l}),i.set(o,a)}return[t,a]}return{send:async function(e){let t=o({envelope:e,getEvent:function(t){return uT(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?a(e,void 0):a(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",r]];return(await Promise.all(n.map(([t,n])=>n.send(nt(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...i.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var uk=e.i(620978);let uI=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],ux=["removeListener","off","removeEventListener"],uC=Symbol("SentryScopeBoundListeners");function uA(e,t=(0,Z.getCurrentScope)()){var n,r;if(e[uC])return e;for(let n of(uO(e),uI))"function"==typeof e[n]&&(e[n]=function(e,t,n){return function(...r){let i=r[0],o=r[1],a=r.slice(2);if(!uR(o)||void 0!==f&&(o===f||o.listener===f))return t.apply(this,r);let s=function(e){return e[uC]}(e)||uO(e),l=s.get(i);l||(l=new WeakMap,s.set(i,l));let u=l.get(o);u||(u=function(...e){return(0,Z.withScope)(n,()=>o.apply(this,e))},l.set(o,u));let c=f;f=u;try{return t.call(this,i,u,...a)}finally{f=c}}}(e,e[n],t));for(let t of ux)"function"==typeof e[t]&&(e[t]=function(e,t){return function(...n){let r=n[0],i=n[1],o=n.slice(2),a=uR(i)?(function(e){return e[uC]})(e)?.get(r)?.get(i):void 0;return a?t.call(this,r,a,...o):t.apply(this,n)}}(e,e[t]));return"function"==typeof e.removeAllListeners&&(n=e,r=e.removeAllListeners,e.removeAllListeners=function(...e){let t=function(e){return e[uC]}(n);if(t)if(0===e.length)uO(n);else{let n=e[0];t.delete(n)}return r.apply(this,e)}),e}function uR(e){return"function"==typeof e}function uO(e){let t=new Map;return e[uC]=t,t}let uN=(e={})=>{let t=e.levels||ee.CONSOLE_LEVELS,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in ea.GLOBAL_OBJ&&r_(({args:r,level:i})=>{var o,a,s;let l,u,c;(0,Z.getClient)()===e&&t.includes(i)&&(o=r,a=i,s=n,l=rR(a),u=Error(),c={level:rR(a),extra:{arguments:o}},(0,Z.withScope)(e=>{if(e.addEventProcessor(e=>(e.logger="console",(0,el.addExceptionMechanism)(e,{handled:s,type:"auto.core.capture_console"}),e)),"assert"===a){if(!o[0]){let t=`Assertion failed: ${(0,tq.safeJoin)(o.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",o.slice(1)),e.captureMessage(t,l,{captureContext:c,syntheticException:u})}return}let t=o.find(e=>e instanceof Error);if(t)return void(0,et.captureException)(t,c);let n=(0,tq.safeJoin)(o," ");e.captureMessage(n,l,{captureContext:c,syntheticException:u})}))})}}};function uP(e,t,n){var r,i,o;return"util"in ea.GLOBAL_OBJ&&"function"==typeof ea.GLOBAL_OBJ.util.format?ea.GLOBAL_OBJ.util.format(...e):(r=e,i=t,o=n,r.map(e=>(0,eu.isPrimitive)(e)?String(e):JSON.stringify((0,t3.normalize)(e,i,o))).join(" "))}function uM(e){return/%[sdifocO]/.test(e)}function uD(e,t){let n={},r=Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}let uL={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},uB=(e={})=>{let t=e.levels||ee.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){let{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=e.getOptions();if(!n){tL.DEBUG_BUILD&&ee.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}let o=r_(({args:n,level:o})=>{if((0,Z.getClient)()!==e||!t.includes(o))return;let a=n[0],s=n.slice(1);if("assert"===o){a||nw({level:"error",message:s.length>0?`Assertion failed: ${uP(s,r,i)}`:"Assertion failed",attributes:uL});return}let l="log"===o,u={...uL};if((0,eu.isPlainObject)(a)){Object.assign(u,(0,t3.normalize)(a,r,i));let e="string"==typeof n[1]?2:1;n.slice(e).forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=(0,t3.normalize)(e,r,i)})}else if(s.length>0&&"string"==typeof a&&!uM(a))for(let[e,t]of Object.entries(uD(a,s)))u[e]=e.startsWith("sentry.message.parameter.")?(0,t3.normalize)(t,r,i):t;nw({level:l?"info":o,message:uP(n,r,i),severityNumber:l?10:void 0,attributes:u})});e.registerCleanup(o)}}},uU=["trace","debug","info","warn","error","fatal"];function uj(e={}){let t=new Set(e.levels??uU),n=e.client;return{log(e){let{type:r,level:i,message:o,args:a,tag:s,date:l,...u}=e,c=n||(0,Z.getClient)();if(!c)return;let d=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=uF[e];if(t)return t}if("number"==typeof t){let e=u$[t];if(e)return e}return"info"}(r,i);if(!t.has(d))return;
556let{normalizeDepth:p=3,normalizeMaxBreadth:f=1e3}=c.getOptions(),h={};for(let[e,t]of Object.entries(u))h[e]=(0,t3.normalize)(t,p,f);h["sentry.origin"]="auto.log.consola",s&&(h["consola.tag"]=s),r&&(h["consola.type"]=r),null!=i&&"number"==typeof i&&(h["consola.level"]=i);let g=function(e,t,n){let{message:r,attributes:i,messageTemplate:o,messageParameters:a}=e,s={};if(o&&a)for(let[e,r]of Object.entries(uD(o,a)))s[e]=e.startsWith("sentry.message.parameter.")?(0,t3.normalize)(r,t,n):r;else a&&a.length>0&&a.forEach((e,r)=>{s[`sentry.message.parameter.${r}`]=(0,t3.normalize)(e,t,n)});return{message:r,attributes:{...(0,t3.normalize)(i,t,n),...s}}}(function(e,t,n){if(!e?.length)return{message:""};let r=uP(e,t,n),i=e[0];if((0,eu.isPlainObject)(i)){let t="string"==typeof e[1]?2:1;return{message:r,attributes:i,messageParameters:e.slice(t)}}{let t=e.slice(1),n=t.length>0&&"string"==typeof i&&!uM(i);return{message:r,messageTemplate:n?i:void 0,messageParameters:n?t:void 0}}}(a,p,f),p,f);g?.attributes&&Object.assign(h,g.attributes),nw({level:d,message:g?.message||o||a&&uP(a,p,f)||"",attributes:h})}}}let uF={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"},u$={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"},uq="gen_ai.system",uH="gen_ai.request.model",uz="gen_ai.request.stream",uG="gen_ai.request.temperature",uW="gen_ai.request.max_tokens",uV="gen_ai.request.frequency_penalty",uJ="gen_ai.request.presence_penalty",uY="gen_ai.request.top_p",uK="gen_ai.request.top_k",uX="gen_ai.request.encoding_format",uQ="gen_ai.request.dimensions",uZ="gen_ai.response.finish_reasons",u0="gen_ai.response.model",u1="gen_ai.response.id",u2="gen_ai.usage.input_tokens",u3="gen_ai.usage.output_tokens",u5="gen_ai.usage.total_tokens",u4="gen_ai.operation.name",u6="sentry.sdk_meta.gen_ai.input.messages.original_length",u8="gen_ai.input.messages",u7="gen_ai.system_instructions",u9="gen_ai.response.text",ce="gen_ai.request.available_tools",ct="gen_ai.response.tool_calls",cn="gen_ai.agent.name",cr="gen_ai.conversation.id",ci="gen_ai.embeddings.input",co="gen_ai.embeddings",ca="gen_ai.execute_tool",cs="gen_ai.tool.name",cl="gen_ai.tool.input",cu="gen_ai.tool.output";function cc(e){var t,n,r,i,o,a,s,l;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&cc(t.source)||cp(e)||"image_url"in(n=e)&&("string"==typeof n.image_url?n.image_url.startsWith("data:"):cd(n))||cf(e)||ch(e)||"media_type"in(r=e)&&"string"==typeof r.media_type&&"data"in r||"type"in(i=e)&&"file"===i.type&&"mediaType"in i&&"string"==typeof i.mediaType&&"data"in i&&"string"==typeof i.data&&!i.data.startsWith("http://")&&!i.data.startsWith("https://")||"type"in(o=e)&&"image"===o.type&&"image"in o&&"string"==typeof o.image&&!o.image.startsWith("http://")&&!o.image.startsWith("https://")||"type"in(a=e)&&("blob"===a.type||"base64"===a.type)||"b64_json"in e||"type"in(s=e)&&"result"in s&&"image_generation"===s.type||"uri"in(l=e)&&"string"==typeof l.uri&&l.uri.startsWith("data:"))}function cd(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 cp(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function cf(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 ch(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}let cg="[Blob substitute]",cm=["image_url","data","content","b64_json","result","uri","image"];function cy(e){let t={...e};for(let n of(cc(t.source)&&(t.source=cy(t.source)),cp(e)&&(t.inlineData={...e.inlineData,data:cg}),cd(e)&&(t.image_url={...e.image_url,url:cg}),cf(e)&&(t.input_audio={...e.input_audio,data:cg}),ch(e)&&(t.file={...e.file,file_data:cg}),cm))"string"==typeof t[n]&&(t[n]=cg);return t}let c_=e=>new TextEncoder().encode(e).length,cv=e=>c_(JSON.stringify(e));function cb(e,t){if(c_(e)<=t)return e;let n=0,r=e.length,i="";for(;n<=r;){let o=Math.floor((n+r)/2),a=e.slice(0,o);c_(a)<=t?(i=a,n=o+1):r=o-1}return i}function cS(e,t){return"string"==typeof e?t:{...e,text:t}}function cE(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function cT(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function cw(e){let t=(0,Z.getClient)()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}}function ck(e){if(void 0!==e)return e;let t=(0,Z.getClient)();return!t||!nP(t)&&!1===t.getOptions().streamGenAiSpans}function cI(e,t){return e?`${e}.${t}`:t}function cx(e,t,n){if(!e.isRecording())return;let r={"gen_ai.response.streaming":!0};t.responseId&&(r[u1]=t.responseId),t.responseModel&&(r[u0]=t.responseModel),void 0!==t.promptTokens&&(r[u2]=t.promptTokens),void 0!==t.completionTokens&&(r[u3]=t.completionTokens),void 0!==t.totalTokens?r[u5]=t.totalTokens:(void 0!==t.promptTokens||void 0!==t.completionTokens||void 0!==t.cacheCreationInputTokens||void 0!==t.cacheReadInputTokens)&&(r[u5]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[uZ]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[u9]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[ct]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function cC(e){if("string"==typeof e)return cb(e,2e4);try{return JSON.stringify(Array.isArray(e)?function(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let n;return t&&"object"==typeof t&&(cE(t)?n={...t,content:e(t.content)}:"content"in t&&cc(t.content)&&(n={...t,content:cy(t.content)}),cT(t)&&(n={...n??t,parts:e(t.parts)}),cc(n)?n=cy(n):cc(t)&&(n=cy(t))),n??t})}([e[e.length-1]]),n=t[0];return 19998>=cv(n)?t:function(e){if(!e)return[];if("string"==typeof e){let t=cb(e,19998);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let t=19998-cv({...e,content:""});if(t<=0)return[];let n=cb(e.content,t);return[{...e,content:n}]}return cE(e)||cT(e)?function(e,t){let{key:n,items:r}="parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}
556:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]};if(null===n||0===r.length)return[];let i=r.map(e=>cS(e,"")),o=t-cv({...e,[n]:i});if(o<=0)return[];let a=[];for(let e of r){let t="string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:"",n=c_(t);if(n<=o)a.push(e),o-=n;else if(0===a.length){let n=cb(t,o);n&&a.push(cS(e,n));break}else break}return a.length<=0?[]:[{...e,[n]:a}]}(e,19998):[]}(n)}(e):e)}catch{return"[unserializable]"}}function cA(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let 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}}async function cR(e,t){let[n,r]=await Promise.all([t,e]);return r&&"object"==typeof r&&"data"in r?{...r,data:n}:n}function cO(e,t){return(0,eu.isThenable)(e)?new Proxy(e,{get(e,n){let r=n in Promise.prototype||n===Symbol.toStringTag?t:e,i=Reflect.get(r,n);return"withResponse"===n&&"function"==typeof i?function(){return cR(i.call(e),t)}:"function"==typeof i?i.bind(r):i}}):t}let cN="auto.ai.langchain",cP={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},cM=(e,t,n)=>{null!=n&&(e[t]=n)},cD=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function cL(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&cc(e)?cy(e):e);return JSON.stringify(t)}catch{return String(e)}return(0,tq.stringify)(e,String)}function cB(e){let t=e.toLowerCase();return cP[t]??t}function cU(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 cj(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function cF(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:cB(t.call(e)),content:cL(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:cB("string"==typeof n?cU(n):"user"),content:cL(e.kwargs?.content)}}if(e.type)return{role:cB(String(e.type).toLowerCase()),content:cL(e.content)};if(e.role)return{role:cB(String(e.role)),content:cL(e.content)};let n=e.constructor?.name;return n&&"Object"!==n?{role:cB(cU(n)),content:cL(e.content)}:{role:"user",content:cL(e.content)}})}function c$(e,t,n,r,i){let o,a;return{[uq]:(0,tq.stringify)(e??"langchain",String),[u4]:"chat",[uH]:(0,tq.stringify)(t,String),[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:cN,...(o={},a="kwargs"in n?n.kwargs:void 0,cD(o,uG,r?.temperature??i?.ls_temperature??a?.temperature),cD(o,uW,r?.max_tokens??i?.ls_max_tokens??a?.max_tokens),cD(o,uY,r?.top_p??a?.top_p),cD(o,uV,r?.frequency_penalty),cD(o,uJ,r?.presence_penalty),r&&"stream"in r&&cM(o,uz,!!r.stream),o)}}function cq(e){let t={},n=e?.lc_agent_name;return"string"==typeof n&&(t[cn]=n),t}function cH(e){return"object"==typeof e&&e?.name==="SentryCallbackHandler"}function cz(e={}){let{recordInputs:t,recordOutputs:n}=cw(e),r=ck(e.enableTruncation),i=new Map,o=e=>{let t=i.get(e);t?.isRecording()&&(t.end(),i.delete(e))},a={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,o,a,s,l,u,c){let d=function(e,t,n,r,i,o){let a=c$(o?.ls_provider,i?.model??o?.ls_model_name??"unknown",e,i,o);if(n&&Array.isArray(t)&&t.length>0){cM(a,u6,t.length);let e=t.map(e=>({role:"user",content:e}));cM(a,u8,r?cC(e):(0,tq.stringify)(e))}return a}(e,n,t,r,cj(l),u),p=d[uH],f=d[u4];ob({name:`${f} ${p}`,op:"gen_ai.chat",attributes:{...cq(u),...d,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}}
556,e=>(i.set(o,e),e))},handleChatModelStart(e,n,o,a,s,l,u,c){let d=function(e,t,n,r,i,o){let a=c$(o?.ls_provider??e.id?.[2],i?.model??o?.ls_model_name??"unknown",e,i,o);if(n&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:n}=cA(cF(t.flat()));e&&cM(a,u7,e),cM(a,u6,Array.isArray(n)?n.length:0),cM(a,u8,r?cC(n):(0,tq.stringify)(n))}return a}(e,n,t,r,cj(l),u),p=function(e){let t=e?.invocation_params?.tools??e?.options?.tools;if(Array.isArray(t)&&0!==t.length)return JSON.stringify(t.map(e=>{let t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}}))}(s);p&&(d[ce]=p);let f=d[uH],h=d[u4];ob({name:`${h} ${f}`,op:"gen_ai.chat",attributes:{...cq(u),...d,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(i.set(o,e),e))},handleLLMEnd(e,t,r,a,s){let l=i.get(t);if(l?.isRecording()){let r=function(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let 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&&cM(n,uZ,(0,tq.stringify)(r,String)),!function(e,t){let n=[];for(let t of e.flat()){let e=t.message,r=e?.tool_calls;if(Array.isArray(r)&&r.length>0)n.push(...r);else{let e=t.message?.content;if(Array.isArray(e))for(let t of e)"tool_use"===t.type&&n.push(t)}}n.length>0&&cM(t,ct,(0,tq.stringify)(n,String))}(e.generations,n),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&cM(n,u9,(0,tq.stringify)(t,String))}}!function(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)cD(t,u2,n.promptTokens),cD(t,u3,n.completionTokens),cD(t,u5,n.totalTokens);else if(r){cD(t,u2,r.input_tokens),cD(t,u3,r.output_tokens);let e=Number(r.input_tokens),n=Number(r.output_tokens),i=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);i>0&&cD(t,u5,i),void 0!==r.cache_creation_input_tokens&&cD(t,"gen_ai.usage.cache_creation_input_tokens",r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&cD(t,"gen_ai.usage.cache_read_input_tokens",r.cache_read_input_tokens)}}(e.llmOutput,n);let r=e.llmOutput,i=e.generations?.[0]?.[0],o=i?.message,a=r?.model_name??r?.model??o?.response_metadata?.model_name;a&&cM(n,u0,a);let s=r?.id??o?.id;s&&cM(n,u1,s);let l=r?.stop_reason??o?.response_metadata?.finish_reason;return l&&cM(n,"gen_ai.response.stop_reason",(0,tq.stringify)(l,String)),n}(e,n);r&&l.setAttributes(r),o(t)}},handleLLMError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),o(t))},handleChainStart(e,n,r,o,a,s,l,u){if(s?.__sentry_langgraph__)return;let c=u||e.name||"unknown_chain",d={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":c};t&&(d["langchain.chain.inputs"]=JSON.stringify(n)),ob({name:`chain ${c}`,op:"gen_ai.invoke_agent",attributes:{...d,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(i.set(r,e),e))},handleChainEnd(e,t){let r=i.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),o(t))},handleChainError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),o(t))},handleToolStart(e,n,r,o,a,s,l){if(s?.__sentry_langgraph__)return;let u=l||e.name||"unknown_tool",c={...cq(s),[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:cN,[u4]:"execute_tool",[cs]:u};t&&(c[cl]=n),ob({name:`execute_tool ${u}`,op:"gen_ai.execute_tool",attributes:{...c,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(i.set(r,e),e))},handleToolEnd(e,t){let r=i.get(t);if(r?.isRecording()){if(n){let t=e&&"object"==typeof e&&"content"in e?e.content:e;r.setAttributes({[cu]:"string"==typeof t?t:JSON.stringify(t)})}o(t)}},handleToolError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),o(t))},copy:()=>a,toJSON:()=>({lc:1,type:"not_implemented",id:a.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:a.lc_id})};return a}var cG=e.i(918895);let cW=(e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,i){let{maxValueLength:o}=i.getOptions();return function(e,t={},n,r,i){if(!t.originalException||!(0,eu.isError)(t.originalException))return e;let o=t.originalException.name||t.originalException.constructor.name,a=function e(t,n,r){try{let i=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let e of Object.keys(t)){if(-1!==i.indexOf(e))continue;let n=t[e];o[e]=(0,eu.isError)(n)||"string"==typeof n?r?(0,tq.truncate)(`${n}`,r):`${n}`:n}if(n&&void 0!==t.cause&&((0,eu.isError)(t.cause)?o.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,r)}:o.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let n=e[t];o[t]=(0,eu.isError)(n)?n.toString():n}}return o}catch(e){tL.DEBUG_BUILD&&ee.debug.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r,i);if(a){let t={...e.contexts},r=(0,t3.normalize)(a,n);return(0,eu.isPlainObject)(r)&&((0,cG.setSkipNormalizationHint)(r),t[o]=r),{...e,contexts:t}}return e}(e,r,t,n,o)}}},cV="flag.evaluation.";function cJ(e){if(e.type)return e;let t=(0,Z.getCurrentScope)().getScopeData().contexts.flags,n=t?t.values:[];return n.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]}),e}function cY(e,t,n=100){let r=(0,Z.getCurrentScope)().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>
556r){tL.DEBUG_BUILD&&ee.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}let i=e.findIndex(e=>e.flag===t);-1!==i&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function cK(e,t,n=10){if("boolean"!=typeof t)return;let r=(0,tX.getActiveSpan)();if(!r)return;let i=(0,tX.spanToJSON)(r).data;`${cV}${e}`in i?r.setAttribute(`${cV}${e}`,t):Object.keys(i).filter(e=>e.startsWith(cV)).length<n&&r.setAttribute(`${cV}${e}`,t)}let cX=()=>({name:"FeatureFlags",processEvent:(e,t,n)=>cJ(e),addFeatureFlag(e,t){cY(e,t),cK(e,t)}}),cQ={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}},cZ={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 c0(e){return e&&cZ[e]||"internal_error"}function c1(e,t,n,r){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(r.setStatus({code:op.SPAN_STATUS_ERROR,message:c0(e.error?.type)}),0))){if("message_delta"===e.type&&(e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.delta?.stop_reason&&t.finishReasons.push(e.delta.stop_reason)),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),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))}"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:[]});if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let 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)}!function(e,t){let n;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let r=t.activeToolBlocks[e.index];if(!r)return;let i=r.inputJsonParts.join("");try{n=i?JSON.parse(i):{}}catch{n={__unparsed:i}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:n}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*c2(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let i of e)c1(i,r,n,t),yield i}finally{cx(t,r,n)}}let c3=!1,c5=new WeakSet;function c4(e,t,n){!function(e,t,n){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:r,filteredMessages:i}=cA(t);r&&e.setAttributes({[u7]:r});let o=Array.isArray(i)?i.length:1;e.setAttributes({[u8]:n?cC(i):(0,tq.stringify)(i),[u6]:o})}(e,function(e){let{system:t,messages:n,input:r}=e,i="string"==typeof t?[{role:"system",content:e.system}]:[],o=Array.isArray(r)?r:null!=r?[r]:void 0,a=Array.isArray(n)?n:null!=n?[n]:[];return[...i,...o??a]}(t),n),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function c6(e,t){throw t.isRecording()&&(t.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function c8(e,t){return function(e,t){for(let n of Object.keys(cQ)){let r=n.split("."),i=r.pop(),o=e;for(let e of r)o=o?.[e];if(!o||"function"!=typeof o[i])continue;let a=o[i];if(c5.has(a))continue;let s=function(e,t,n,r,i){return new Proxy(e,{apply(e,o,a){let s,l=void 0!==o?o:r,u=!0===n.streaming;if(!u&&c3)return e.apply(l,a);let c=n.operation||"unknown",d=function(e,t,n){let r={[uq]:"anthropic",[u4]:n,[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(r[ce]=JSON.stringify(t.tools)),r[uH]=t.model??"unknown","temperature"in t&&(r[uG]=t.temperature),"top_p"in t&&(r[uY]=t.top_p),"stream"in t&&(r[uz]=t.stream),"top_k"in t&&(r[uK]=t.top_k),"frequency_penalty"in t&&(r[uV]=t.frequency_penalty),"max_tokens"in t&&(r[uW]=t.max_tokens)}
556else"models.retrieve"===t||"models.get"===t?r[uH]=e[0]:r[uH]="unknown";return r}(a,t,c),p=d[uH]??"unknown",f="object"==typeof a[0]?a[0]:void 0,h=!!f?.stream;if(h||u){let t=d[uH]??"unknown",n={name:`${c} ${t}`,op:`gen_ai.${c}`,attributes:d};if(!h||u)return ob(n,t=>{try{var n;let r;i.recordInputs&&f&&c4(t,f,ck(i.enableTruncation)),c3=!0;let o=e.apply(l,a);return c3=!1,n=i.recordOutputs??!1,r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}},o.on("streamEvent",e=>{c1(e,r,n,t)}),o.on("message",()=>{cx(t,r,n)}),o.on("error",e=>{(0,et.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),t.end())}),o}catch(e){return c3=!1,c6(e,t)}});{let t,r=ob(n,n=>(t=e.apply(l,a),i.recordInputs&&f&&c4(n,f,ck(i.enableTruncation)),(async()=>{try{let e=await t;return c2(e,n,i.recordOutputs??!1)}catch(e){return c6(e,n)}})()));return cO(t,r)}}let g=ov({name:`${c} ${p}`,op:`gen_ai.${c}`,attributes:d},t=>(s=e.apply(l,a),i.recordInputs&&f&&c4(t,f,ck(i.enableTruncation)),s.then(e=>(!function(e,t,n){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return t.error&&(e.setStatus({code:op.SPAN_STATUS_ERROR,message:c0(t.error.type)}),(0,et.captureException)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}));n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[u9]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let n=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&n.push(e);n.length>0&&e.setAttributes({[ct]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[u9]:t.completion}),"input_tokens"in t&&e.setAttributes({[u9]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){if("id"in t&&"model"in t){var n,r,i,o;e.setAttributes({[u1]:t.id,[u0]:t.model}),"usage"in t&&t.usage&&(n=t.usage.input_tokens,r=t.usage.output_tokens,i=t.usage.cache_creation_input_tokens,o=t.usage.cache_read_input_tokens,void 0!==n&&e.setAttributes({[u2]:n}),void 0!==r&&e.setAttributes({[u3]:r}),(void 0!==n||void 0!==r||void 0!==i||void 0!==o)&&e.setAttributes({[u5]:(n??0)+(r??0)+(i??0)+(o??0)}))}}(e,t)}}(t,e,i.recordOutputs),e))));return cO(s,g)}})}(a,n,cQ[n],o,t);c5.add(s),o[i]=s}return e}(e,cw(t))}let c7="auto.ai.langgraph",c9=!1,de="__sentry_patched__";function dt(e,t,n,r,i,o){return new Proxy(e,{apply(e,a,s){let l=i?.modelName??i?.model;return ov({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c7,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent",[u4]:"invoke_agent"}},async i=>{try{let u=n?.name;u&&"string"==typeof u&&(i.setAttribute("gen_ai.pipeline.name",u),i.setAttribute(cn,u),i.updateName(`invoke_agent ${u}`)),l&&i.setAttribute(uH,l);let c=s.length>1?s[1]:void 0,d=c?.configurable,p=d?.thread_id;if(p&&"string"==typeof p&&i.setAttribute(cr,p),o){let e=s[1]??{};s[1]=e;let t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof u?{lc_agent_name:u}:{}},e.callbacks=function(e,t){if(!e)return[t];if(e&&"object"==typeof e&&"function"==typeof e.addHandler&&"function"==typeof e.copy){if((e.handlers??[]).some(cH))return e;let n=e.copy();return n.addHandler(t,!0),n}let n=Array.isArray(e)?e:[e];return n.some(cH)?e:[...n,t]}(e.callbacks,o)}let f=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let 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);f&&i.setAttribute(ce,JSON.stringify(f));let h=r.recordInputs,g=r.recordOutputs,m=s.length>0?s[0]?.messages??[]:[];if(m&&h){let e=cF(m),{systemInstructions:t,filteredMessages:n}=cA(e);t&&i.setAttribute(u7,t);let o=ck(r.enableTruncation),a=Array.isArray(n)?n.length:0;i.setAttributes({[u8]:o?cC(n):(0,tq.stringify)(n),[u6]:a})}let y=await Reflect.apply(e,a,s);return g&&function(e,t,n){let r=n?.messages;if(!r||!Array.isArray(r))return;let i=t?.length??0,o=r.length>i?r.slice(i):[];if(0===o.length)return;let a=function(e){if(!e||0===e.length)return null;let t=[];for(let n of e)if(n&&"object"==typeof n){let e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(o);a&&e.setAttribute(ct,JSON.stringify(a));let s=cF(o);e.setAttribute(u9,JSON.stringify(s));let l=0,u=0,c=0;for(let t of o){let n=function(e){let t=0,n=0,r=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let i=e.usage_metadata;return"number"==typeof i.input_tokens&&(t=i.input_tokens),"number"==typeof i.output_tokens&&(n=i.output_tokens),"number"==typeof i.total_tokens&&(r=i.total_tokens),{inputTokens:t,outputTokens:n,totalTokens:r}}if(e.response_metadata&&"object"==typeof e.response_metadata){let i=e.response_metadata;if(i.tokenUsage&&"object"==typeof i.tokenUsage){let e=i.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(n=e.completionTokens),"number"==typeof e.totalTokens&&(r=e.totalTokens)}}return{inputTokens:t,outputTokens:n,totalTokens:r}}(t);l+=n.inputTokens,u+=n.outputTokens,c+=n.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let n=t.response_metadata;n.model_name&&"string"==typeof n.model_name&&e.setAttribute(u0,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&e.setAttribute(uZ,[n.finish_reason])}}(e,t)}l>0&&e.setAttribute(u2,l),u>0&&e.setAttribute(u3,u),c>0&&e.setAttribute(u5,c)}(i,m??null,y),y}catch(e){throw i.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),e}})}})}function dn(e,t){if(Object.prototype.hasOwnProperty.call(e,de))return e;let n=cw(t),r=cz(n),i=new Proxy(e,{apply(e,t,i){let o,a,s=function(e){let t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;let n=t.llm;return"string"!=typeof n.modelName&&"string"!=typeof n.model?null:n}(i),l="object"==typeof(a=i[0])&&a&&"name"in a&&"string"==typeof a.name?a.name:null,u=i[0];u&&Array.isArray(u.tools)&&u.tools.length>0&&function(e,t,n){let r="__sentry_tool_wrapped__";for(let i of e){if(!i||"object"!=typeof i)continue;let e=i.invoke;if("function"!=typeof e||Object.prototype.hasOwnProperty.call(i,r))continue;
556let o="string"==typeof i.name?i.name:"unknown_tool",a="string"==typeof i.description?i.description:void 0;i.invoke=new Proxy(e,{apply(e,r,i){let s={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c7,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:ca,[u4]:"execute_tool",[cs]:o,"gen_ai.tool.type":"function"},l=i[1],u=l?.metadata?.lc_agent_name??n;"string"==typeof u&&(s[cn]=u),a&&(s["gen_ai.tool.description"]=a);let c=i[0];if("object"==typeof c&&c&&("id"in c&&"string"==typeof c.id&&(s["gen_ai.tool.call.id"]=c.id),t.recordInputs)){let e="args"in c&&"object"==typeof c.args?c.args:c;try{s[cl]=JSON.stringify(e)}catch{}}return ov({op:ca,name:`execute_tool ${o}`,attributes:s},async n=>{try{let o=await Reflect.apply(e,r,i);if(t.recordOutputs)try{let e=o&&"object"==typeof o&&"content"in o?o.content:o;n.setAttribute(cu,"string"==typeof e?e:JSON.stringify(e))}catch{}return o}catch(e){throw n.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),e}})}}),Object.defineProperty(i,r,{value:!0,enumerable:!1})}}(u.tools,n,l??void 0),c9=!0;try{o=Reflect.apply(e,t,i)}finally{c9=!1}let c=o.invoke;if(c&&"function"==typeof c){let e={};l&&(e.name=l),o.invoke=dt(c.bind(o),o,e,n,s,r)}return o}});return Object.defineProperty(i,de,{value:!0,enumerable:!1}),i}function dr(e,t){return e.compile=function(e,t){if(Object.prototype.hasOwnProperty.call(e,de))return e;let n=cz(t),r=new Proxy(e,{apply:(e,r,i)=>
556c9?Reflect.apply(e,r,i):ov({op:"gen_ai.create_agent",name:"create_agent",attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c7,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[u4]:"create_agent"}},o=>{try{let a=Reflect.apply(e,r,i),s=i.length>0?i[0]:{};s?.name&&"string"==typeof s.name&&(o.setAttribute(cn,s.name),o.updateName(`create_agent ${s.name}`));let l=a.invoke;return l&&"function"==typeof l&&(a.invoke=dt(l.bind(a),a,s,t,void 0,n)),a}catch(e){throw o.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),e}})});return Object.defineProperty(r,de,{value:!0,enumerable:!1}),r}(e.compile,cw(t)),e}let di={"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}};async function*da(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let i of e)!function(e,t,n,r){if(!(!e||function(e,t){let n=e?.promptFeedback;if(n?.blockReason){let e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),(0,et.captureException)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,r))){let r;for(let i of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(r=e.usageMetadata)&&("number"==typeof r.promptTokenCount&&(t.promptTokens=r.promptTokenCount),"number"==typeof r.candidatesTokenCount&&(t.completionTokens=r.candidatesTokenCount),"number"==typeof r.totalTokenCount&&(t.totalTokens=r.totalTokenCount)),Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(i?.finishReason&&!t.finishReasons.includes(i.finishReason)&&t.finishReasons.push(i.finishReason),i?.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})}}(i,r,n,t),yield i}finally{cx(t,r,n)}}function ds(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>ds(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}function dl(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function du(e,t,n,r){if("embeddings"===n){let n=t.contents;null!=n&&e.setAttribute(ci,"string"==typeof n?n:JSON.stringify(n));return}let i=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&i.push(...ds(t.config.systemInstruction,"system")),"history"in t&&i.push(...ds(t.history,"user")),"contents"in t&&i.push(...ds(t.contents,"user")),"message"in t&&i.push(...ds(t.message,"user")),Array.isArray(i)&&i.length){let{systemInstructions:t,filteredMessages:n}=cA(i);t&&e.setAttribute(u7,t);let o=Array.isArray(n)?n.length:0;e.setAttributes({[u6]:o,[u8]:r?cC(n):(0,tq.stringify)(n)})}}function dc(e,t){return function e(t,n="",r){return new Proxy(t,{get:(t,i,o)=>{let a=Reflect.get(t,i,o),s=cI(n,String(i)),l=di[s];if("function"==typeof a&&l){let n,i=l.operation?(n="embeddings"===l.operation,new Proxy(a,{apply(e,i,o){let a=l.operation||"unknown",s=o[0],u=function(e,t,n){let r={[uq]:"google_genai",[u4]:e,[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(r[uH]=dl(t,n),"config"in t&&"object"==typeof t.config&&t.config){let e,n=t.config;if(Object.assign(r,(e={},"temperature"in n&&"number"==typeof n.temperature&&(e[uG]=n.temperature),"topP"in n&&"number"==typeof n.topP&&(e[uY]=n.topP),"topK"in n&&"number"==typeof n.topK&&(e[uK]=n.topK),"maxOutputTokens"in n&&"number"==typeof n.maxOutputTokens&&(e[uW]=n.maxOutputTokens),"frequencyPenalty"in n&&"number"==typeof n.frequencyPenalty&&(e[uV]=n.frequencyPenalty),"presencePenalty"in n&&"number"==typeof n.presencePenalty&&(e[uJ]=n.presencePenalty
556),e)),"tools"in n&&Array.isArray(n.tools)){let e=n.tools.flatMap(e=>e.functionDeclarations);r[ce]=JSON.stringify(e)}}}else r[uH]=dl({},n);return r}(a,s,t),c=u[uH]??"unknown";return l.streaming?ob({name:`${a} ${c}`,op:`gen_ai.${a}`,attributes:u},async n=>{try{r.recordInputs&&s&&du(n,s,a,ck(r.enableTruncation));let i=await e.apply(t,o);return da(i,n,!!r.recordOutputs)}catch(e){throw n.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),n.end(),e}}):ov({name:`${a} ${c}`,op:`gen_ai.${a}`,attributes:u},i=>(r.recordInputs&&s&&du(i,s,a,ck(r.enableTruncation)),om(()=>e.apply(t,o),()=>{},()=>{},e=>{n||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(u0,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[u2]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[u3]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[u5]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let 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({[u9]:n.join("")})}if(n&&t.functionCalls){let n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[ct]:JSON.stringify(n)})}}}(i,e,r.recordOutputs)})))}})):a.bind(t);return l.proxyResultPath?function(...t){let n=i(...t);return n&&"object"==typeof n?e(n,l.proxyResultPath,r):n}:i}return"function"==typeof a?a.bind(t):a&&"object"==typeof a?e(a,s,r):a}})}(e,"",cw(t))}function dd(e,t={}){return new Proxy(e,{apply:(e,n,r)=>ov(function(e,t,n={}){let r,i,o,{recordInputs:a}=cw(n),s=(r=e??{},(i={[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:cN,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:co,[u4]:"embeddings",[uH]:r.model??"unknown"})[uq]=(o=r.constructor?.name??"").includes("OpenAI")?"openai":o.includes("Google")?"google_genai":o.includes("Mistral")?"mistralai":o.includes("Vertex")?"google_vertexai":o.includes("Bedrock")?"aws_bedrock":o.includes("Ollama")?"ollama":o.includes("Cloudflare")?"cloudflare":o.includes("Cohere")?"cohere":"langchain","dimensions"in r&&(i[uQ]=r.dimensions),"encodingFormat"in r&&(i[uX]=r.encodingFormat),i),l=s[uH]||"unknown";return a&&null!=t&&(s[ci]="string"==typeof t?t:JSON.stringify(t)),{name:`embeddings ${l}`,op:co,attributes:s}}(n,r[0],t),()=>Reflect.apply(e,n,r))})}function dp(e,t){return"function"==typeof e.embedQuery&&(e.embedQuery=dd(e.embedQuery,t)),"function"==typeof e.embedDocuments&&(e.embedDocuments=dd(e.embedDocuments,t)),e}let df={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},dh=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];async function*dg(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let i of e){if(null!==i&&"object"==typeof i&&"object"in i&&"chat.completion.chunk"===i.object){for(let e of(r.responseId=i.id??r.responseId,r.responseModel=i.model??r.responseModel,i.usage&&(r.promptTokens=i.usage.prompt_tokens,r.completionTokens=i.usage.completion_tokens,r.totalTokens=i.usage.total_tokens),i.choices??[]))n&&(e.delta?.content&&r.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let n of e){let e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){let 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||""}}}}(e.delta.tool_calls,r)),e.finish_reason&&r.finishReasons.push(e.finish_reason)}else null!==i&&"object"==typeof i&&"type"in i&&"string"==typeof i.type&&i.type.startsWith("response.")&&function(e,t,n,r){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");
556if(e instanceof Error){r.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),(0,et.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!dh.includes(e.type))return t.eventTypes.push(e.type);if(n&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))return t.responseTexts.push(e.delta);if("response"in e){let{response:r}=e;t.responseId=r.id??t.responseId,t.responseModel=r.model??t.responseModel,r.usage&&(t.promptTokens=r.usage.input_tokens,t.completionTokens=r.usage.output_tokens,t.totalTokens=r.usage.total_tokens),r.status&&t.finishReasons.push(r.status),n&&r.output_text&&t.responseTexts.push(r.output_text)}}}(i,r,n,t);yield i}}finally{let e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];cx(t,{...r,toolCalls:e},n)}}function dm(e,t,n,r){if("embeddings"===n&&"input"in t){let n=t.input;if(null==n||"string"==typeof n&&0===n.length||Array.isArray(n)&&0===n.length)return;e.setAttribute(ci,"string"==typeof n?n:JSON.stringify(n));return}let i="input"in t?t.input:"messages"in t?t.messages:void 0;if(!i||Array.isArray(i)&&0===i.length)return;let{systemInstructions:o,filteredMessages:a}=cA(i);o&&e.setAttribute(u7,o),e.setAttribute(u8,r?cC(a):(0,tq.stringify)(a)),Array.isArray(a)?e.setAttribute(u6,a.length):e.setAttribute(u6,1)}function dy(e,t){return function e(t,n="",r){return new Proxy(t,{get(t,i){let o=t[i],a=cI(n,String(i)),s=df[a];if("function"==typeof o&&s)return function(...e){let n,i=s.operation||"unknown",a=function(e,t){let n={[uq]:"openai",[u4]:t,[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t,r,i=e[0],o=function(e){let 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(e){tL.DEBUG_BUILD&&ee.debug.error("Failed to serialize OpenAI tools:",e);return}}(i);o&&(n[ce]=o),Object.assign(n,(t={[uH]:i.model??"unknown"},"temperature"in i&&(t[uG]=i.temperature),"top_p"in i&&(t[uY]=i.top_p),"frequency_penalty"in i&&(t[uV]=i.frequency_penalty),"presence_penalty"in i&&(t[uJ]=i.presence_penalty),"stream"in i&&(t[uz]=i.stream),"encoding_format"in i&&(t[uX]=i.encoding_format),"dimensions"in i&&(t[uQ]=i.dimensions),(r="conversation"in i&&"string"==typeof i.conversation?i.conversation:"previous_response_id"in i&&"string"==typeof i.previous_response_id?i.previous_response_id:void 0)&&(t[cr]=r),t))}else n[uH]="unknown";return n}(e,i),l=a[uH]||"unknown",u=e[0],c=u&&"object"==typeof u&&!0===u.stream,d={name:`${i} ${l}`,op:`gen_ai.${i}`,attributes:a};if(c){let n,a=ob(d,a=>(n=o.apply(t,e),r.recordInputs&&u&&dm(a,u,i,ck(r.enableTruncation)),(async()=>{try{let e=await n;return dg(e,a,r.recordOutputs??!1)}catch(e){throw a.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),a.end(),e}})()));return cO(n,a)}let p=ov(d,a=>(n=o.apply(t,e),r.recordInputs&&u&&dm(a,u,i,ck(r.enableTruncation)),n.then(e=>(!function(e,t,n){if(!t||"object"!=typeof t)return;let r={};if("string"==typeof t.id&&(r[u1]=t.id),"string"==typeof t.model&&(r[u0]=t.model),"conversation"===t.object&&"string"==typeof t.id&&(r[cr]=t.id),t.usage&&"object"==typeof t.usage){let e=t.usage,n=e.prompt_tokens??e.input_tokens;"number"==typeof n&&(r[u2]=n);let i=e.completion_tokens??e.output_tokens;"number"==typeof i&&(r[u3]=i),"number"==typeof e.total_tokens&&(r[u5]=e.total_tokens)}if(Array.isArray(t.choices)){let e=t.choices,i=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(i.length>0&&(r[uZ]=JSON.stringify(i)),n){let t=e.map(e=>{let t=e.message;return t?.content||""});r[u9]=JSON.stringify(t);let n=e.map(e=>{let t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&(r[ct]=JSON.stringify(n))}}if("string"!=typeof t.status||r[uZ]||(r[uZ]=JSON.stringify([t.status])),n&&("string"!=typeof t.output_text||r[u9]||(r[u9]=t.output_text),Array.isArray(t.output)&&t.output.length>
5560&&!r[ct])){let e=t.output.filter(e=>e?.type==="function_call");e.length>0&&(r[ct]=JSON.stringify(e))}e.setAttributes(r)}(a,e,r.recordOutputs),e))));return cO(n,p)};return"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,a,r):o}})}(e,"",cw(t))}let d_=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],dv=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],db={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"},dS=["select","insert","upsert","update","delete"];function dE(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function dT(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function dw(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function dk(e,t){if(!e)return;if("function"==typeof e.get)return e.get(t)??void 0;let n=t.toLowerCase(),r=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==r?e[r]:void 0}function dI(e,t=!1){return new Proxy(e,{apply:(n,r,i)=>ov({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,i).then(t=>((0,eu.isObjectLike)(t)&&"error"in t&&t.error?(e.setStatus({code:op.SPAN_STATUS_ERROR}),(0,et.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:op.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:op.SPAN_STATUS_ERROR}),e.end(),(0,et.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...i))})}let dx=(e,t={})=>{var n;if(!e){tL.DEBUG_BUILD&&ee.debug.warn("Supabase integration was not installed because no Supabase client was provided.");return}n=e.constructor===Function?e:e.constructor,dT(n.prototype.from)||(n.prototype.from=new Proxy(n.prototype.from,{apply(e,n,r){let i=Reflect.apply(e,n,r);return function(e,t){for(let n of dS)dT(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(e,r,i){let o=Reflect.apply(e,r,i
556),a=o.constructor;return tL.DEBUG_BUILD&&ee.debug.log(`Instrumenting ${n} operation's PostgRESTFilterBuilder`),!function(e,t){dT(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,n,r){let i=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(dk(t,"Prefer")?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(n.method,n.headers);if(!dS.includes(i)||!n?.url?.pathname||"string"!=typeof n.url.pathname)return Reflect.apply(e,n,r);let o=n.url.pathname.split("/"),a=o.length>0?o[o.length-1]:"",s=[];for(let[e,t]of n.url.searchParams.entries())s.push(function(e,t){let n;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[r,...i]=t.split(".");return n=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&db[r]||"filter",`${n}(${e}, ${i.join(".")})`}(e,t));let l=Object.create(null);if((0,eu.isPlainObject)(n.body))for(let[e,t]of Object.entries(n.body))l[e]=t;let u=(0,Z.getClient)(),c=t.sendOperationData??u?.getDataCollectionOptions().databaseQueryData===!0,d=dw(n.body,l),p="select"===i?"":`${i}${void 0!==dw(n.body,l)?"(...) ":""}`,f=c?s.join(" "):s.length>0?"[redacted]":"",h=[p.trimEnd(),f].filter(Boolean).join(" "),g=h?`${h} from(${a})`:`from(${a})`,m={"db.table":a,"db.schema":n.schema,"db.url":n.url.origin,"db.sdk":dk(n.headers,"X-Client-Info"),"db.system":"postgresql","db.operation":i,[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return s.length&&c&&(m["db.query"]=s),void 0!==d&&c&&(m["db.body"]=d),ov({name:g,attributes:m},t=>Reflect.apply(e,n,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&(0,op.setHttpStatus)(t,e.status||500),t.end()),e?.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};s.length&&c&&(n.query=s),void 0!==d&&c&&(n.body=d),(0,et.captureException)(t,e=>(e.addEventProcessor(e=>((0,el.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}let n={type:"supabase",category:`db.${i}`,message:g},r={};return s.length&&c&&(r.query=s),void 0!==d&&c&&(r.body=d),Object.keys(r).length&&(n.data=r),rO(n),e},e=>{throw t&&((0,op.setHttpStatus)(t,500),t.end()),e}).then(...r))}}),dE(e.prototype.then))}(a,t),o}}),dE(e.prototype[n]))}(i.constructor,t),i}}),dE(n.prototype.from));let r=e.auth;if(!(!r||dT(e.auth))){for(let t of d_){let n=r[t];n&&"function"==typeof e.auth[t]&&(e.auth[t]=dI(n))}for(let t of dv){let n=r.admin[t];n&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=dI(n,!0))}dE(e.auth)}},dC=e=>{let t,n;return t=e.supabaseClient,n={sendOperationData:e.sendOperationData},{setupOnce(){dx(t,n)},name:"Supabase"}};function dA(e,t,n,r,i){nw({level:e,message:t,attributes:n,severityNumber:i},r)}function dR(e,t,{scope:n}={}){dA("trace",e,t,n)}function dO(e,t,{scope:n}={}){dA("debug",e,t,n)}function dN(e,t,{scope:n}={}){dA("info",e,t,n)}function dP(e,t,{scope:n}={}){dA("warn",e,t,n)}function dM(e,t,{scope:n}={}){dA("error",e,t,n)}function dD(e,t,{scope:n}={}){dA("fatal",e,t,n)}function dL(e,...t){let 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}e.s(["debug",0,dO,"error",0,dM,"fatal",0,dD,"info",0,dN,"trace",0,dR,"warn",0,dP],809333),e.i(809333),e.s(["debug",0,dO,"error",0,dM,"fatal",0,dD,"fmt",0,dL,"info",0,dN,"trace",0,dR,"warn",0,dP],745287);var dB=e.i(745287),dB=dB;function dU(e,t,n,r){!function(e,t){let n=t?.scope??(0,Z.getCurrentScope)(),r=t?.captureSerializedMetric??nA,i=n?.getClient()??(0,Z.getClient)();if(!i){tL.DEBUG_BUILD&&ee.debug.warn("No client available to capture metric.");return}let{_experiments:o,enableMetrics:a,beforeSendMetric:s}=i.getOptions();if(!(a??o?.enableMetrics??!0)){tL.DEBUG_BUILD&&ee.debug.warn("metrics option not enabled, metric will not be captured.");return}let{user:l,attributes:u}=(0,nh.getCombinedScopeData)((0,Z.getIsolationScope)(),n),c=function(e,t,n){let{release:r,environment:i}=t.getOptions(),o={...e.attributes};nC(o,"user.id",n.id,!1),nC(o,"user.email",n.email,!1),nC(o,"user.name",n.username,!1),nC(o,"sentry.release",r),nC(o,"sentry.environment",i);let{name:a,version:s}=t.getSdkMetadata()?.sdk??{};nC(o,"sentry.sdk.name",a),nC(o,"sentry.sdk.version",s);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return nC(o,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&nC(o,"sentry._internal.replay_is_buffering",!0),{...e,attributes:o}}(e,i,l);i.emit("processMetric",c);let d=s||o?.beforeSendMetric,p=d?d(c):c;if(!p){tL.DEBUG_BUILD&&ee.debug.log("`beforeSendMetric` returned `null`, will not send metric.");return}let f=function(e,t,n,r){let[,i]=nv(t,n),o=(0,ng._getSpanForScope)(n),a=o?o.spanContext().traceId:i?.trace_id,s=o?o.spanContext().spanId:void 0,l=(0,nm.timestampInSeconds)(),u=n_(l);return{timestamp:l,trace_id:a??"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,nf.serializeAttributes)(r),...(0,nf.serializeAttributes)(e.attributes,"skip-undefined"),[u.key]:u.value}}}(p,i,n,u);tL.DEBUG_BUILD&&ee.debug.log("[Metric]",f),r(i,f),i.emit("afterCaptureMetric",p)}({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}e.s(["count",0,function(e,t=1,n){dU("counter",e,t,n)},"distribution",0,function(e,t,n){dU("distribution",e,t,n)},"gauge",0,function(e,t,n){dU("gauge",e,t,n)}],832168);var dj=e.i(832168),dj=dj;let dF=new Map,d$=new Set;function dq(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=function(e,t){if(ea.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(ea.GLOBAL_OBJ._sentryModuleMetadata)){let n=ea.GLOBAL_OBJ._sentryModuleMetadata[t];if(!d$.has(t)){for(let r of(d$.add(t),e(t).reverse()))if(r.filename){dF.set(r.filename,n);break}}}return dF.get(t)}(e,t.filename);n&&(t.module_metadata=n)})})}
556function dH(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let dz=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{nr(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(dH(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||dq(e.getOptions().stackParser,t)})}}),dG=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{nr(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(dH(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||dq(e.getOptions().stackParser,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(ea.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){let n=!!e.ignoreSentryInternalFrames&&t.sdkProcessingMetadata?.insideSentryWrapped===!0&&t.exception?.values?.length===1,r=function(e,t,n){let r=(0,tQ.getFramesFromEvent)(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,n){var r;if(0!==t)return!1;if(n&&!(r=e).context_line&&!r.pre_context&&r.function&&r.function.length<=2||"sentryWrapped"===e.function)return!0;if(!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(dJ))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(dV))return!0}return!1}(e,r,!!n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(dW)).map(e=>e.slice(dW.length)):[])}(t,e.ignoreSentryInternalFrames,n);if(r&&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}}),dW="_sentryBundlerPluginAppKey:",dV="Attempt to invoke user-land function",dJ="fn.apply(this, wrappedArguments)";function dY(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}}let dK=(e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>(function(e,t=!1,n,r){var i;if(!n.exception?.values||!r.originalException||(i=r.originalException,!((0,eu.isError)(i)&&"ZodError"===i.name&&Array.isArray(i.issues)))||0===r.originalException.issues.length)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(dY);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues){let e=n.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){let 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: ${(0,tq.truncate)(n.join(", "),100)}`}(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
557${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,n,r)}},dX={startProfiler:function(){let e=(0,Z.getClient)();if(!e){eo&&ee.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){eo&&ee.debug.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=(0,Z.getClient)();if(!e){eo&&ee.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){eo&&ee.debug.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};function dQ(e,{metadata:t,tunnel:n,dsn:r}){return nt({event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,en.dsnToString)(r)}},[[{type:"user_report"},e]])}let dZ=ea.GLOBAL_OBJ,d0=new WeakMap,d1=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(e){if(d0.has((0,Z.getClient)()))for(let t of e)(0,Z.withScope)(e=>{e.setExtra("url",t.url);let n=`ReportingObserver [${t.type}]`,r="No details available";if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){let e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}(0,et.captureMessage)(`${n}: ${r}`)})}return{name:"ReportingObserver",setupOnce(){"ReportingObserver"in rS&&new dZ.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){d0.set(e,!0)}}};function d2(e,t){if(!1===t)return{};try{let n=function(e){let t={},n=0;for(;n<e.length;){let r=e.indexOf("=",n);if(-1===r)break;let i=e.indexOf(";",n);if(-1===i)i=e.length;else if(i<r){n=e.lastIndexOf(";",r-1)+1;continue}let o=e.slice(n,r).trim();if(void 0===t[o]){let n=e.slice(r+1,i).trim();
55734===n.charCodeAt(0)&&(n=n.slice(1,-1));try{t[o]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch{t[o]=n}}n=i+1}return t}(e);if(0===Object.keys(n).length)return{};return(0,r$.filterKeyValueData)(n,t,rF.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return rF.FILTERED_VALUE}}function d3(e,t){var n,r,i,o,a,s;let l,u=t?.getDsn(),c=t?.getOptions().tunnel;return n=e,r=u,!(!(l=rV(n))||rW(l))&&!!r&&(i=l.hostname,i===(o=r.host)||o.length>0&&i.endsWith(`.${o}`))&&/(^|&|\?)sentry_key=/.test(l.search)||(a=e,!!(s=c)&&d5(a)===d5(s))}function d5(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let d4=(e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var n,r,i,o;n=e,r=t,rT()&&rw(e=>{if((0,Z.getClient)()!==n)return;let{response:t,args:i,error:o,virtualError:a}=e,[s,l]=i;t&&function(e,t,n,r,i){if(d8(e,n.status,n.url)){var o,a;let e,s,l,u,c=(o=t,!(a=r)&&o instanceof Request||o instanceof Request&&o.bodyUsed?o:new Request(o,a)),d=d9();if(!1!==d.requestHeaders&&(e=(0,r$.filterKeyValueData)(d6(c.headers),d.requestHeaders)),!1!==d.responseHeaders&&(s=(0,r$.filterKeyValueData)(d6(n.headers),d.responseHeaders)),!1!==d.cookies){let e=c.headers.get("Cookie")||void 0;if(e){let t=d2(e,d.cookies);"object"==typeof t&&(l=t)}let t=n.headers.get("Set-Cookie")||void 0;if(t){let e=d2(t,d.cookies);"object"==typeof e&&(u=e)}}let p=d7({url:c.url,method:c.method,status:n.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:u,error:i,type:"fetch"});(0,et.captureEvent)(p)}}(r,s,t,l,o||a)},!1),i=e,o=t,"XMLHttpRequest"in ea.GLOBAL_OBJ&&r3(e=>{if((0,Z.getClient)()!==i)return;let{error:t,virtualError:n}=e,r=e.xhr,a=r[r2];if(!a)return;let{method:s,request_headers:l}=a;try{!function(e,t,n,r,i){if(d8(e,t.status,t.responseURL)){let e,o,a,s=d9();if(!1!==s.cookies)try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){let t=d2(e,s.cookies);"object"==typeof t&&(o=t)}}catch{}if(!1!==s.responseHeaders)try{let e;a=(0,r$.filterKeyValueData)((e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{},s.responseHeaders)}catch{}!1!==s.requestHeaders&&(e=(0,r$.filterKeyValueData)(r,s.requestHeaders));let l=d7({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:o,error:i,type:"xhr"});(0,et.captureEvent)(l)}}(o,r,s,l,t||n)}catch(e){eo&&ee.debug.warn("Error while extracting response event form XHR response",e)}})}}};function d6(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function d8(e,t,n){var r,i;return r=e.failedRequestStatusCodes,r.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(i=e.failedRequestTargets,i.some(e=>"string"==typeof e?n.includes(e):e.test(n)))&&!d3(n,(0,Z.getClient)())}function d7(e){let t=(0,Z.getClient)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,o={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}: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:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,el.addExceptionMechanism)(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function d9(){let e=(0,Z.getClient)();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};let t=e.getOptions();if(null==t.dataCollection){let e=!!t.sendDefaultPii;return{cookies:e,requestHeaders:e,responseHeaders:e}}let{cookies:n,httpHeaders:r}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:r.request,responseHeaders:r.response}}let pe=ea.GLOBAL_OBJ,pt=(e={})=>({name:"ContextLines",processEvent:(t,n,r)=>(function(e,t){let n=pe.document,r=pe.location&&rK(pe.location.href);if(!n||!r)return e;let i=e.exception?.values;if(!i?.length)return e;let o=n.documentElement.innerHTML;if(!o)return e;let a=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];
557return i.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>{var n,i,o,s;return n=e,i=a,o=r,s=t,n.filename===o&&n.lineno&&i.length&&(0,el.addContextToFrame)(i,n,s),n}))}),e})(t,e.frameContextLines??r?.getDataCollectionOptions().frameContextLines??7)});function pn(e){if(po(e))return`persisted ${e.operationName}`;if(pi(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return r?`${i} ${r}`:`${i}`}return"unknown"}function pr(e){let t;if("xhr"in e){let n=e.xhr[r2];t=n&&aY(n.body)[0]}else t=aY(aK(e.input))[0];return t}function pi(e){return(0,eu.isObjectLike)(e)&&"string"==typeof e.query}function po(e){return(0,eu.isObjectLike)(e)&&"string"==typeof e.operationName&&(0,eu.isObjectLike)(e.extensions)&&(0,eu.isObjectLike)(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function pa(e){try{let t=JSON.parse(e);if(pi(t)||po(t))return t;return}catch{return}}let ps=e=>({name:"GraphQLClient",setup(t){var n,r,i,o;n=t,r=e,n.on("beforeOutgoingRequestSpan",(e,t)=>{let i=(0,tX.spanToJSON)(e).data||{};if("http.client"!==i[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP])return;let o=i[rB]||i["http.url"]||i.url,a=i[tK.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||i["http.method"];if(!(0,eu.isString)(o)||!(0,eu.isString)(a))return;let{endpoints:s}=r,l=(0,tq.stringMatchesSomePattern)(o,s),u=pr(t);if(l&&u){let t=pa(u);if(t){let r=pn(t);e.updateName(`${a} ${o} (${r})`),pi(t)&&!0===n.getDataCollectionOptions().graphQL.document&&e.setAttribute(rP,t.query),po(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),i=t,o=e,i.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:n,type:r,data:a}=e;if("http"===r&&("fetch"===n||"xhr"===n)){let e=a?.url,{endpoints:n}=o,r=(0,tq.stringMatchesSomePattern)(e,n),s=pr(t);if(r&&a&&s){let e=pa(s);if(!a.graphql&&e){let t=pn(e);a["graphql.operation"]=t,pi(e)&&!0===i.getDataCollectionOptions().graphQL.document&&(a[rP]=e.query),po(e)&&(a["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,a["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}
557),pl=(e={})=>{let t=["script"];return{name:"ViewHierarchy",processEvent:(n,r)=>{if(void 0!==n.type||e.shouldAttach?.(n,r)===!1)return n;let i={rendering_system:"DOM",positioning:"absolute",windows:[]};!function n(r,i,o=0){if(r)for(let a of"shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children){if(!(a instanceof HTMLElement))continue;let r=ep(a,1)||void 0,s=a.tagName.toLowerCase();if(t.includes(s))continue;let l=e.onElement?.({element:a,componentName:r,tagName:s,depth:o})||{};if("skip"===l)continue;if("children"===l){n(a,i,o+1);continue}let{x:u,y:c,width:d,height:p}=a.getBoundingClientRect(),f={identifier:a.id||void 0,type:r||s,visible:!0,alpha:1,height:p,width:d,x:u,y:c,...l};f.children=[],n(a,f.children,o+1),i.push(f)}}(e.rootElement?.()||ef.document.body,i.windows);let o={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(i)};return r.attachments=r.attachments||[],r.attachments.push(o),n}}},pu=ea.GLOBAL_OBJ,pc="sentryReplaySession",pd="Unable to send Replay";var pp=Object.defineProperty,pf=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?pp(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n},ph=((P=ph||{})[P.Document=0]="Document",P[P.DocumentType=1]="DocumentType",P[P.Element=2]="Element",P[P.Text=3]="Text",P[P.CDATA=4]="CDATA",P[P.Comment=5]="Comment",P);function pg(e){let t=e?.host;return t?.shadowRoot===e}function pm(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function py(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,p_).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function p_(e){let t;if("styleSheet"in e)try{t=py(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],o=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class pv{constructor(){pf(this,"idNodeMap",new Map),pf(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-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){let 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){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let 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 pb({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function pS({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function pE(e){return e.toLowerCase()}function pT(e){return e.toUpperCase()}let pw="__rrweb_original__";function pk(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?pE(t):null}function pI(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function px(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}let r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}let pC={};function pA(e){let t=pC[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return pC[e]=r.bind(window)}function pR(...e){return pA("setTimeout")(...e)}
557function pO(...e){return pA("clearTimeout")(...e)}function pN(e){try{return e.contentDocument}catch{}}let pP=1,pM=RegExp("[^a-z0-9-_:]");function pD(){return pP++}let pL=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pB=/^(?:[a-z+]+:)?\/\//i,pU=/^www\..*/i,pj=/^(data:)([^,]*),(.*)/i;function pF(e,t){return(e||"").replace(pL,(e,n,r,i,o,a)=>{let s=r||o||a,l=n||i||"";if(!s)return e;if(pB.test(s)||pU.test(s)||pj.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let u=t.split("/"),c=s.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let p$=/^[^ \t\n\r\u000c]+/,pq=/^[, \t\n\r\u000c]+/,pH=new WeakMap;function pz(e,t){return t&&""!==t.trim()?pG(e,t):t}function pG(e,t){let n=pH.get(e);if(n||(n=e.createElement("a"),pH.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function pW(e,t,n,r,i,o,a){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0])return pz(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return pz(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(pq),!(n>=t.length);){let o=r(p$);if(","===o.slice(-1))o=pz(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=pz(e,o);let a=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(a)")"===e&&(a=!1);else if(","===e){n+=1,i.push((o+r).trim());break}else"("===e&&(a=!0);r+=e,n+=1}}}return i.join(", ")}(e,r);if("style"===n){let t=pF(r,pG(e));return a&&a.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let n=e.split(";"),r=[];for(let e of n){if(!(e=e.trim()))continue;let n=e.indexOf(":");if(-1===n){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,a)),t}else if("object"===t&&"data"===n)return pz(e,r);return"function"==typeof o?o(n,r,i):r}function pV(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function pJ(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:pJ(e.parentNode,t,n,r+1)}function pY(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}function pK(e,t,n,r,i,o){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(o){if((l=pJ(a,pY(r,i)))<0)return!0;s=pJ(a,pY(t,n),l>=0?l:1/0)}else{if((s=pJ(a,pY(t,n)))<0)return!1;l=pJ(a,pY(r,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!o}catch(e){}return!!o}function pX(e){return null==e?"":e.toLowerCase()}function pQ(e,t){let n,{doc:r,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:m=!0,maskInputOptions:y={},maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E={},inlineImages:T=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:x=5e3,onBlockedImageLoad:C,onStylesheetLoad:A,stylesheetLoadTimeout:R=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:N=!1,ignoreCSSAttributes:P}=t,{preserveWhiteSpace:M=!0}=t,D=function(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:m={},maskTextFn:y,maskInputFn:_,dataURLOptions:v={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T=!1,ignoreCSSAttributes:w}=t,k=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:ph.Document,childNodes:[],compatMode:e.compatMode};return{type:ph.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ph.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){let n,{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:m,newlyAddedElement:y=!1,rootId:_,maskTextClass:v,unmaskTextClass:b,maskTextSelector:S,unmaskTextSelector:E,ignoreCSSAttributes:T}=t,w=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,o,a),k=function(e){if(e instanceof HTMLFormElement)return"form";let t=pE(e.tagName);return pM.test(t)?"div":t}(e),I={},x=e.attributes.length;for(let t=0;t<x;t++){let n=e.attributes[t];n.name&&!pV(k,n.name,n.value)&&(I[n.name]=pW(r,k,pE(n.name),n.value,e,u,T))}if("link"===k&&s){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=py(t)),n&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=pF(n,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=py(e.sheet);t&&(I._cssText=pF(t,pG(r)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){let t=pk(e),n=pI(e,pT(k),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=pK(e,v,S,b,E,pb({type:t,tagName:pT(k),maskInputOptions:l}));I.value=pS({isMasked:r,element:e,value:n,maskInputFn:c})}r&&(I.checked=r)}if("option"===k&&(e.selected&&!l.select?I.selected=!0:delete I.selected),"canvas"===k&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;
557if(new Uint32Array((pw in i?i[pw]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(I.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(I.rr_dataURL=t)}}if("img"===k&&p){h||(g=(h=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{h.width=e.naturalWidth,h.height=e.naturalHeight,g.drawImage(e,0,0),I.rr_dataURL=h.toDataURL(d.type,d.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?I.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===k||"video"===k)&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),!y&&(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),w){let{width:t,height:n}=e.getBoundingClientRect();I={class:I.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==k||m(I.src)||(w||pN(e)||(I.rr_src=I.src),delete I.src);try{customElements.get(k)&&(n=!0)}catch(e){}return{type:ph.Element,tagName:k,attributes:I,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:_,isCustom:n}}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:m,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T,rootId:k,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:w});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,g="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=py(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=pF(p,pG(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let m=pK(e,r,o,i,a,n);return f||h||g||!p||!m||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),g&&p&&(l.textarea||m)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=pS({isMasked:pK(e,r,o,i,a,pb({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:ph.Text,textContent:p||"",isStyle:f,rootId:c}}(e,{doc:n,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:m,maskInputFn:_,rootId:k});case e.CDATA_SECTION_NODE:return{type:ph.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:ph.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:r,mirror:i,blockClass:o,blockSelector:a,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,dataURLOptions:E,inlineImages:T,recordCanvas:w,keepIframeSrcFn:O,newlyAddedElement:N,ignoreCSSAttributes:P});if(!D)return console.warn(e,"not serialized"),null;n=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===ph.Comment)return!0;if(e.type===ph.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===px(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(pX(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===pX(e.attributes.name)||"icon"===pX(e.attributes.rel)||"apple-touch-icon"===pX(e.attributes.rel)||"shortcut icon"===pX(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&pX(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(pX(e.attributes.property).match(/^(og|twitter|fb):/)||pX(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===pX(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===pX(e.attributes.name)||"googlebot"===pX(e.attributes.name)||"bingbot"===pX(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===pX(e.attributes.name)||"generator"===pX(e.attributes.name)||"framework"===pX(e.attributes.name)||"publisher"===pX(e.attributes.name)||"progid"===pX(e.attributes.name)||pX(e.attributes.property).match(/^article:/)||pX(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===pX(e.attributes.name)||"yandex-verification"===pX(e.attributes.name)||"csrf-token"===pX(e.attributes.name)||"p:domain_verify"===pX(e.attributes.name)||"verify-v1"===pX(e.attributes.name)||"verification"===pX(e.attributes.name)||"shopify-checkout-api-token"===pX(e.attributes.name)))return!0}}return!1}(D,S)&&(M||D.type!==ph.Text||D.isStyle||D.textContent.trim().length)?pD():-2;let L=Object.assign(D,{id:n});if(i.add(e,L),-2===n)return null;
557k&&k(e);let B=!f;if(L.type===ph.Element){B=B&&!L.needBlock;let t=e.shadowRoot;t&&pm(t)&&(L.isShadowHost=!0)}if((L.type===ph.Document||L.type===ph.Element)&&B){S.headWhitespace&&L.type===ph.Element&&"head"===L.tagName&&(M=!1);let t={doc:r,mirror:i,blockClass:o,blockSelector:a,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:x,onBlockedImageLoad:C,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:O,ignoreCSSAttributes:P};for(let n of e.childNodes?Array.from(e.childNodes):[]){let e=pQ(n,t);e&&L.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=pQ(n,t);r&&(pm(e.shadowRoot)&&(r.isShadow=!0),L.childNodes.push(r))}}if(e.parentNode&&pg(e.parentNode)&&pm(e.parentNode)&&(L.isShadow=!0),L.type!==ph.Element||"iframe"!==L.tagName||L.needBlock||function(e,t,n){let r,i=function(e){try{return e.contentWindow}catch{}}(e);if(!i)return;let o=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=pR(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{pO(r),o=!0,t()});return}let a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return pR(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=pN(e);if(t&&I){let n=pQ(t,{doc:t,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:O,ignoreCSSAttributes:P});n&&I(e,n)}},x),L.type===ph.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&C)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&C(e,L,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return L.type===ph.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===px(L.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){r=null}if(r)return;let o=pR(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{pO(o),i=!0,t()})}(e,()=>{if(A){let t=pQ(e,{doc:r,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:y,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:x,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:O,ignoreCSSAttributes:P});t&&A(e,t)}},R),L.type===ph.Element&&delete L.needBlock,L}function pZ(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let p0="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.",p1={map:{},getId:()=>(console.error(p0),-1),getNode:()=>(console.error(p0),null),removeNodeFromMap(){console.error(p0)},has:()=>(console.error(p0),!1),reset(){console.error(p0)}};function p2(e,t,n={}){let r=null,i=0;return function(...o){let a=Date.now();i||!1!==n.leading||(i=a);let s=t-(a-i),l=this;s<=0||s>t?(r&&(function(...e){fu("clearTimeout")(...e)}(r),r=null),i=a,e.apply(l,o)):r||!1===n.trailing||(r=fc(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,o)},s))}}function p3(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(p1=new Proxy(p1,{get:(e,t,n)=>("map"===t&&console.error(p0),Reflect.get(e,t,n))}));let p5=Date.now;function p4(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function p6(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function p8(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function p7(e){if(!e)return null;
557try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function p9(e,t,n,r,i){if(!e)return!1;let o=p7(e);if(!o)return!1;let a=pY(t,n);if(!i){let e=r&&o.matches(r);return a(o)&&!e}let s=pJ(o,a),l=-1;return!(s<0)&&(r&&(l=pJ(o,pY(null,r))),s>-1&&l<0||s<l)}function fe(e,t){return -2===t.getId(e)}function ft(e){return!!e.changedTouches}function fn(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function fr(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function fi(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(p5=()=>new Date().getTime());class fo{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function fa(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function fs(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=fa(n);)n=t;return n}(e);return t.contains(n)}(e))}let fl={};function fu(e){let t=fl[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return fl[e]=r.bind(window)}function fc(...e){return fu("setTimeout")(...e)}var fd=((M=fd||{})[M.DomContentLoaded=0]="DomContentLoaded",M[M.Load=1]="Load",M[M.FullSnapshot=2]="FullSnapshot",M[M.IncrementalSnapshot=3]="IncrementalSnapshot",M[M.Meta=4]="Meta",M[M.Custom=5]="Custom",M[M.Plugin=6]="Plugin",M),fp=((D=fp||{})[D.Mutation=0]="Mutation",D[D.MouseMove=1]="MouseMove",D[D.MouseInteraction=2]="MouseInteraction",D[D.Scroll=3]="Scroll",D[D.ViewportResize=4]="ViewportResize",D[D.Input=5]="Input",D[D.TouchMove=6]="TouchMove",D[D.MediaInteraction=7]="MediaInteraction",D[D.StyleSheetRule=8]="StyleSheetRule",D[D.CanvasMutation=9]="CanvasMutation",D[D.Font=10]="Font",D[D.Log=11]="Log",D[D.Drag=12]="Drag",D[D.StyleDeclaration=13]="StyleDeclaration",D[D.Selection=14]="Selection",D[D.AdoptedStyleSheet=15]="AdoptedStyleSheet",D[D.CustomElement=16]="CustomElement",D),ff=((L=ff||{})[L.MouseUp=0]="MouseUp",L[L.MouseDown=1]="MouseDown",L[L.Click=2]="Click",L[L.ContextMenu=3]="ContextMenu",L[L.DblClick=4]="DblClick",L[L.Focus=5]="Focus",L[L.Blur=6]="Blur",L[L.TouchStart=7]="TouchStart",L[L.TouchMove_Departed=8]="TouchMove_Departed",L[L.TouchEnd=9]="TouchEnd",L[L.TouchCancel=10]="TouchCancel",L),fh=((B=fh||{})[B.Mouse=0]="Mouse",B[B.Pen=1]="Pen",B[B.Touch=2]="Touch",B),fg=((U=fg||{})[U.Play=0]="Play",U[U.Pause=1]="Pause",U[U.Seeked=2]="Seeked",U[U.VolumeChange=3]="VolumeChange",U[U.RateChange=4]="RateChange",U);let fm=e=>m?(...t)=>{try{return e(...t)}catch(e){if(m&&!0===m(e))return()=>{};throw e}}:e;for(var fy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f_="u"<typeof Uint8Array?[]:new Uint8Array(256),fv=0;fv<fy.length;fv++)f_[fy.charCodeAt(fv)]=fv;class fb{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function fS(e){try{return e.contentDocument}catch(e){}}function fE(e){try{return e.contentWindow}catch(e){}}class fT{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("u"<typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let n=t.cssRules[0];if(!n||n.type!==CSSRule.STYLE_RULE)return null;return n.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}class fw{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
557(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let fk=(e,t)=>`${e}@${t}`;class fI{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new fw,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!fs(i))return;let o=pg(i.parentNode)?this.mirror.getId(fa(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===o||-1===a)return n.addNode(i);let s=pQ(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{fn(e,this.mirror)&&!p9(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),fr(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),fi(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(p9(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=fE(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!fC(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)fA(this.droppedSet,e)||fC(this.removes,e,this.mirror)?fA(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;n.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!fe(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;p9(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:pK(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,p7(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=pk(t),i=t.tagName;r=pI(t,i,n);let o=pb({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=pS({isMasked:pK(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(p9(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);
557if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(fS(t))return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!pV(t.tagName,n)&&(i.attributes[n]=pW(this.doc,pE(t.tagName),pE(n),r,t,this.maskAttributeFn),"style"===n)){let n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||"")||o!==(n?.getPropertyPriority(e)||"")?""===o?i.styleDiff[e]=r:i.styleDiff[e]=[r,o]:i._unchangedStyles[e]=[r,o]}if(n)for(let e of Array.from(n))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(p9(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=pg(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);p9(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||fe(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(fx(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(pg(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[fk(n,r)]?fx(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(pg(e.target)&&pm(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(fe(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[fk(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!p9(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),fi(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new fT(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function fx(e,t){e.delete(t),t.childNodes?.forEach(t=>fx(e,t))}function fC(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function fA(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let fR=[];function fO(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function fN(e,t){let n=new fI;fR.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(r=window[i]);let o=new r(fm(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function fP({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){return pZ("scroll",fm(p2(fm(a=>{let s=fO(a);if(!s||p9(s,r,i,o,!0))return;let l=n.getId(s);if(s===t&&t.defaultView){let n=p4(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100)),t)}let fM=["INPUT","TEXTAREA","SELECT"],fD=new WeakMap;function fL(e){var t=[];if(fF("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||fF("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||fF("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||fF("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function fB(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function fU({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,o=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){let n=o.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),fm(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function fj(e,t={}){let n,r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=fN(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=p2(fm(t=>{let n=Date.now()-i;e(s.map(e=>(e.timeOffset-=n,e)),t),s=[],i=null}),a),u=fm(p2(fm(e=>{let t=fO(e),{clientX:n,clientY:o}=ft(e)?e.changedTouches[0]:e;i||(i=p5()),s.push({x:n,y:o,id:r.getId(t),timeOffset:p5()-i}),l("u">typeof DragEvent&&e instanceof DragEvent?fp.Drag:e instanceof MouseEvent?fp.MouseMove:fp.TouchMove)}),o,{trailing:!1})),c=[pZ("mousemove",u,n),pZ("touchmove",u,n),pZ("drag",u,n)];return fm(()=>
557{c.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};let s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[],u=null;return Object.keys(ff).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(a=>{let s=pE(a),c=t=>{let s=fO(t);if(p9(s,r,i,o,!0))return;let l=null,c=a;if("pointerType"in t){switch(t.pointerType){case"mouse":l=fh.Mouse;break;case"touch":l=fh.Touch;break;case"pen":l=fh.Pen}l===fh.Touch?ff[a]===ff.MouseDown?c="TouchStart":ff[a]===ff.MouseUp&&(c="TouchEnd"):fh.Pen}else ft(t)&&(l=fh.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===fh.Touch||c.startsWith("Mouse")&&l===fh.Mouse)&&(l=null)):ff[a]===ff.Click&&(l=u,u=null);let d=ft(t)?t.changedTouches[0]:t;if(!d)return;let p=n.getId(s),{clientX:f,clientY:h}=d;fm(e)({type:ff[c],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(ff[a]){case ff.MouseDown:case ff.MouseUp:s=s.replace("mouse","pointer");break;case ff.TouchStart:case ff.TouchEnd:return}l.push(pZ(s,c,t))}),fm(()=>{l.forEach(e=>e())})}(e),a=fP(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return pZ("resize",fm(p2(fm(()=>{let t=p6(),i=p8();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:g}){function m(e){let n=fO(e),c=e.isTrusted,m=n&&pT(n.tagName);if("OPTION"===m&&(n=n.parentElement),!n||!m||0>fM.indexOf(m)||p9(n,r,i,o,!0))return;let _=n;if(_.classList.contains(a)||s&&_.matches(s))return;let v=pk(n),b=pI(_,m,v),S=!1,E=pb({maskInputOptions:l,tagName:m,type:v}),T=pK(n,p,h,f,g,E);("radio"===v||"checkbox"===v)&&(S=n.checked),b=pS({isMasked:T,element:n,value:b,maskInputFn:u}),y(n,d?{text:b,isChecked:S,userTriggered:c}:{text:b,isChecked:S});let w=n.name;"radio"===v&&w&&S&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=pS({isMasked:T,element:e,value:pI(e,m,v),maskInputFn:u});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,r){let i=fD.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){fD.set(t,r);let i=n.getId(t);fm(e)({...r,id:i})}}let _=("last"===c.input?["change"]:["input","change"]).map(e=>pZ(e,fm(m),t)),v=t.defaultView;if(!v)return()=>{_.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...S.map(e=>(function e(t,n,r,i,o=window){let a=o.Object.getOwnPropertyDescriptor(t,n);return o.Object.defineProperty(t,n,i?r:{set(e){fc(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,n,a||{},!0)})(e[0],e[1],{set(){fm(m)({target:this,isTrusted:!1})}},!1,v))),fm(()=>{_.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:a}){let s=fm(a=>p2(fm(o=>{let s=fO(o);if(!s||p9(s,t,n,r,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=s;e({type:a,id:i.getId(s),currentTime:l,volume:u,muted:c,playbackRate:d})}),o.media||500)),l=[pZ("play",s(fg.Play),a),pZ("pause",s(fg.Pause),a),pZ("seeked",s(fg.Seeked),a),pZ("volumechange",s(fg.VolumeChange),a),pZ("ratechange",s(fg.RateChange),a)];return fm(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,o;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:fm((r,i,o)=>{let[a,s]=o,{id:l,styleId:u}=fB(i,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:a,index:s}]}),r.apply(i,o)})});let s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:fm((r,i,o)=>{let[a]=o,{id:s,styleId:l}=fB(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),r.apply(i,o)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:fm((r,i,o)=>{let[a]=o,{id:s,styleId:l}=fB(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),r.apply(i,o)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:fm((r,i,o)=>{let[a]=o,{id:s,styleId:l}=fB(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),r.apply(i,o)})}));let l={};f$("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(f$("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),f$("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),f$("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(l).forEach(([r,i])=>{u[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[r].insertRule,{apply:fm((r,i,o)=>{let[a,s]=o,{id:l,styleId:u}=fB(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:a,index:[...fL(i),s||0]}]}),r.apply(i,o)})}),i.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:fm((r,i,o)=>{let[a]=o,{id:s,styleId:l}=fB(i.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...fL(i),a]}]}),r.apply(i,o)})})}),fm(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:r}),d=fU(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:fm((i,a,s)=>{let[l,u,c]=s;
557if(n.has(l))return o.apply(a,[l,u,c]);let{id:d,styleId:p}=fB(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:fL(a.parentRule)}),i.apply(a,s)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:fm((i,o,s)=>{let[l]=s;if(n.has(l))return a.apply(o,[l]);let{id:u,styleId:c}=fB(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:fL(o.parentRule)}),i.apply(o,s)})}),fm(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){let r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let a=p3(t.fonts,"add",function(t){return function(n){return fc(fm(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=o}),r.push(a),fm(()=>{r.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:a}=e,s=!0,l=fm(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:a,startOffset:s,endContainer:u,endOffset:c}=e.getRangeAt(t);p9(a,r,i,o,!0)||p9(u,r,i,o,!0)||l.push({start:n.getId(a),startOffset:s,end:n.getId(u),endOffset:c})}a({ranges:l})});return l(),pZ("selectionchange",l)}(e),g=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?p3(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),m=[];for(let t of e.plugins)m.push(t.observer(t.callback,r,t.options));return fm(()=>{fR.forEach(e=>e.reset()),n?.disconnect(),i(),o(),a(),s(),l(),u(),c(),d(),p(),f(),h(),g(),m.forEach(e=>e())})}function fF(e){return void 0!==window[e]}function f$(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class fq{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
557getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=r.get(t);return i||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class fH{constructor(){this.crossOriginIframeMirror=new fq(pD),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class fz{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new fq(pD),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new fq(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=fE(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&fE(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let n=fS(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case fd.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:fd.IncrementalSnapshot,data:{source:fp.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case fd.Meta:case fd.Load:case fd.DomContentLoaded:break;case fd.Plugin:return t;case fd.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case fd.IncrementalSnapshot:switch(t.data.source){case fp.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case fp.Drag:case fp.TouchMove:case fp.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case fp.ViewportResize:return!1;case fp.MediaInteraction:case fp.MouseInteraction:case fp.Scroll:case fp.CanvasMutation:case fp.Input:return this.replaceIds(t.data,e,["id"]),t;case fp.StyleSheetRule:case fp.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case fp.Font:return t;case fp.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case fp.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
557h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===ph.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class fG{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class fW{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!pm(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=fN({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(fP({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),fc(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(fU({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=fS(e),n=fE(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(p3(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&fs(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class fV{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new fo,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:p_(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class fJ{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){fu("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let fY=new pv;function fK(e={}){let t,{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:g=!0,maskAllInputs:v,maskInputOptions:b,slimDOMOptions:S,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,maxCanvasSize:k=null,packFn:I,sampling:x={},dataURLOptions:C={},mousemoveWait:A,recordDOM:R=!0,recordCanvas:O=!1,recordCrossOriginIframes:N=!1,recordAfter:P="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:D=!1,inlineImages:L=!1,plugins:B,keepIframeSrcFn:U=()=>!1,ignoreCSSAttributes:j=new Set([]),errorHandler:F,onMutation:$,getCanvasManager:q}=e;m=F;let H=!N||window.parent===window,z=!1;if(!H)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(H&&!n)throw Error("emit function is required");if(!H&&!z)return()=>{};void 0!==A&&void 0===x.mousemove&&(x.mousemove=A),fY.reset();let G=!0===v?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==b?b:{},W=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode)return!1})}();let V=0,J=e=>{for(let t of B||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&!z&&(e=I(e)),e};y=(e,o)=>{if(e.timestamp=p5(),fR[0]?.isFrozen()&&e.type!==fd.FullSnapshot&&(e.type!==fd.IncrementalSnapshot||e.data.source!==fp.Mutation)&&fR.forEach(e
557=>e.unfreeze()),H)n?.(J(e),o);else if(z){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===fd.FullSnapshot)t=e,V=0;else if(e.type===fd.IncrementalSnapshot){if(e.data.source===fp.Mutation&&e.data.isAttachIframe)return;V++;let n=i&&V>=i,o=r&&t&&e.timestamp-t.timestamp>r;(n||o)&&er(!0)}};let Y=e=>{y({type:fd.IncrementalSnapshot,data:{source:fp.Mutation,...e}})},K=e=>y({type:fd.IncrementalSnapshot,data:{source:fp.Scroll,...e}}),X=e=>y({type:fd.IncrementalSnapshot,data:{source:fp.CanvasMutation,...e}}),Q=new fV({mutationCb:Y,adoptedStyleSheetCb:e=>y({type:fd.IncrementalSnapshot,data:{source:fp.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new fH:new fz({mirror:fY,mutationCb:Y,stylesheetManager:Q,recordCrossOriginIframes:N,wrappedEmit:y});for(let e of B||[])e.getMirror&&e.getMirror({nodeMirror:fY,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new fJ,et=function(e,t){try{return e?e(t):new fb}catch{return console.warn("Unable to initialize CanvasManager"),new fb}}(q,{mirror:fY,win:window,mutationCb:e=>y({type:fd.IncrementalSnapshot,data:{source:fp.CanvasMutation,...e}}),recordCanvas:O,blockClass:o,blockSelector:a,unblockSelector:s,maxCanvasSize:k,sampling:x.canvas,dataURLOptions:C,errorHandler:F}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new fG:new fW({mutationCb:Y,scrollCb:K,bypassOptions:{onMutation:$,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:G,dataURLOptions:C,maskAttributeFn:E,maskTextFn:w,maskInputFn:T,recordCanvas:O,inlineImages:L,sampling:x,slimDOMOptions:W,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:U,processedNodeManager:ee,ignoreCSSAttributes:j},mirror:fY}),er=(e=!1)=>{if(!R)return;y({type:fd.Meta,data:{href:window.location.href,width:p8(),height:p6()}},e),Q.reset(),en.init(),fR.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new pv,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:m,maskInputFn:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:k,stylesheetLoadTimeout:I,keepIframeSrcFn:x=()=>!1,ignoreCSSAttributes:C=new Set([])}=t||{};return pQ(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:g,maskTextFn:m,maskInputFn:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:k,stylesheetLoadTimeout:I,keepIframeSrcFn:x,newlyAddedElement:!1,ignoreCSSAttributes:C})}(document,{mirror:fY,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskAllInputs:G,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,slimDOM:W,dataURLOptions:C,recordCanvas:O,inlineImages:L,onSerialize:e=>{fn(e,fY)&&Z.addIframe(e),fr(e,fY)&&Q.trackLinkElement(e),fi(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t);let n=fE(e);n&&et.addWindow(n),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{Y({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:U,ignoreCSSAttributes:j}
557);if(!t)return console.warn("Failed to snapshot the document");y({type:fd.FullSnapshot,data:{node:t,initialOffset:p4(window)}}),fR.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,fY.getId(document))};_=er;try{let e=[],t=e=>fm(fj)({onMutation:$,mutationCb:Y,mousemoveCb:(e,t)=>y({type:fd.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>y({type:fd.IncrementalSnapshot,data:{source:fp.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>y({type:fd.IncrementalSnapshot,data:{source:fp.ViewportResize,...e}}),inputCb:e=>y({type:fd.IncrementalSnapshot,data:{source:fp.Input,...e}}),mediaInteractionCb:e=>y({type:fd.IncrementalSnapshot,data:{source:fp.MediaInteraction,...e}}),styleSheetRuleCb:e=>y({type:fd.IncrementalSnapshot,data:{source:fp.StyleSheetRule,...e}}),styleDeclarationCb:e=>y({type:fd.IncrementalSnapshot,data:{source:fp.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>y({type:fd.IncrementalSnapshot,data:{source:fp.Font,...e}}),selectionCb:e=>{y({type:fd.IncrementalSnapshot,data:{source:fp.Selection,...e}})},customElementCb:e=>{y({type:fd.IncrementalSnapshot,data:{source:fp.CustomElement,...e}})},blockClass:o,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:G,inlineStylesheet:g,sampling:x,recordDOM:R,recordCanvas:O,inlineImages:L,userTriggeredOnInput:M,collectFonts:D,doc:e,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,keepIframeSrcFn:U,blockSelector:a,unblockSelector:s,slimDOMOptions:W,dataURLOptions:C,mirror:fY,iframeManager:Z,stylesheetManager:Q,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:j,plugins:B?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>y({type:fd.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Z.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(pZ("DOMContentLoaded",()=>{y({type:fd.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&n()})),e.push(pZ("load",()=>{y({type:fd.Load,data:{}}),"load"===P&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),_=void 0,m=void 0}}catch(e){console.warn(e)}}function fX(e){return e>0x2540be3ff?e:1e3*e}function fQ(e){return e>0x2540be3ff?e/1e3:e}function fZ(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:fd.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,t3.normalize)(t,10,1e3)}}),"console"===t.category)))}function f0(e){return e.closest("button,a")||e}function f1(e){let t=f2(e);return t&&t instanceof Element?f0(t):t}function f2(e){var t;return(t=e,(0,eu.isObjectLike)(t)&&"target"in t)?e.target:e}fK.mirror=fY,fK.takeFullSnapshot=function(e){if(!_)throw Error("please take full snapshot after start recording");_(e)},(j=G||(G={}))[j.NotStarted=0]="NotStarted",j[j.Running=1]="Running",j[j.Stopped=2]="Stopped";let f3=new Set([fp.Mutation,fp.StyleSheetRule,fp.StyleDeclaration,fp.AdoptedStyleSheet,fp.CanvasMutation,fp.Selection,fp.MediaInteraction]);class f5{constructor(e,t,n=fZ){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=f6()},v||(v=[],(0,es.fill)(pu,"open",function(e){return function(...t){if(v)try{v.forEach(e=>e())}catch{}return e.apply(pu,t)}})),v.push(e),()=>{let t=v?v.indexOf(e):-1;t>-1&&v.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n,r,i;if(n=t,r=this._ignoreSelector,!f4.includes(n.tagName)||"INPUT"===n.tagName&&!["submit","button"].includes(n.getAttribute("type")||"")||"A"===n.tagName&&(n.hasAttribute("download")||n.hasAttribute("target")&&"_self"!==n.getAttribute("target"))||r&&n.matches(r)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let o={timestamp:fQ(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===o.node&&1>
557Math.abs(e.timestamp-o.timestamp))||(this._clicks.push(o),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=fQ(e)}registerScroll(e=Date.now()){this._lastScroll=fQ(e)}registerClick(e){let t=f0(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=f6();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:o}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:pu.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,a);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:pu.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=i0(()=>this._checkClicks(),1e3)}}let f4=["A","BUTTON","INPUT"];function f6(){return Date.now()/1e3}function f8(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var f7=((F=f7||{})[F.Document=0]="Document",F[F.DocumentType=1]="DocumentType",F[F.Element=2]="Element",F[F.Text=3]="Text",F[F.CDATA=4]="CDATA",F[F.Comment=5]="Comment",F);let f9=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),he=new Set([...f9,"data-sentry-element"]);function ht(e,t){let n=fK.mirror.getId(e),r=n&&fK.mirror.getNode(n),i=r&&fK.mirror.getMeta(r),o=i&&i.type===f7.Element?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>e.type===f7.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in e)if(f9.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return!t["data-sentry-component"]&&e["data-sentry-element"]&&(t["data-sentry-component"]=e["data-sentry-element"]),t}(o.attributes)}}:{}}}let hn={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:ho(o),end:ho(i),name:r,data:{size:u,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,o=ho(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:g}=e;return 0===i?null:{type:`${t}.${g}`,start:ho(f),end:ho(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function hr(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function hi(e){let t=hn[e.entryType];return t?t(e):null}function ho(e){return(((0,nm.browserPerformanceTimeOrigin)()||pu.performance.timeOrigin)+e)/1e3}function ha(e){let t=e.entries[e.entries.length-1];return hu(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function hs(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=fK.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return hu(e,"cumulative-layout-shift",n,t)}function hl(e){let t=e.entries[e.entries.length-1];return hu(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function hu(e,t,n,r){let i=e.value,o=e.rating,a=ho(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:o,nodeIds:n?n.map(e=>fK.mirror.getId(e)):void 0,attributions:r}}}let hc="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,hd=["log","warn","error"],hp="[Replay] ";function hf(e,t="info"){rO({category:"console",data:{logger:"replay"},level:t,message:`${hp}${e}`},{level:t})}let hh=(R=!1,O=!1,N={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{R=!!e.captureExceptions,O=!!e.traceInternals}}
557,hc?(hd.forEach(e=>{N[e]=(...t)=>{ee.debug[e](hp,...t),O&&hf(t.join(""),rR(e))}}),N.exception=(e,...t)=>{t.length&&N.error&&N.error(...t),ee.debug.error(hp,e),R?(0,et.captureException)(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):O&&hf(e,"error")},N.infoTick=(...e)=>{ee.debug.log(hp,...e),O&&setTimeout(()=>hf(e[0]),0)}):hd.forEach(e=>{N[e]=()=>void 0}),N);class hg extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class hm extends Error{constructor(){super("Worker destroyed")}}class hy{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new hg;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:fX(e)}}class h_{constructor(e){this._onMessage=({data:e})=>{if("number"!=typeof e.id)return;let t=this._pending.get(e.id);if(t&&t.method===e.method){if(this._pending.delete(e.id),!e.success){hc&&hh.error("Error in compression worker: ",e.response),t.reject(Error("Error in compression worker"));return}t.resolve(e.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():(hc&&hh.warn("Received worker message with unsuccessful status",n),t(Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{hc&&hh.warn("Failed to load Replay compression worker",e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){hc&&hh.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(new hm)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{this._pending.set(n,{method:e,resolve:r,reject:i});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),i(e)}})}_getAndIncrementId(){return this._id++}}class hv{constructor(e){this._worker=new h_(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=fX(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new hg):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{hc&&hh.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class hb{constructor(e){this._fallback=new hy,this._compression=new hv(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}
557async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){hc&&hh.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){if(e instanceof hm)return;hc&&hh.exception(e,"Failed to add events when switching buffers.")}}}function hS(){try{return"sessionStorage"in pu&&!!pu.sessionStorage}catch{return!1}}function hE(e){return void 0!==e&&Math.random()<e}function hT(e){if(hS())try{pu.sessionStorage.setItem(pc,JSON.stringify(e))}catch{}}function hw(e){let t=Date.now(),n=e.id||(0,el.uuid4)(),r=e.started||t,i=e.lastActivity||t,o=e.segmentId||0,a=e.sampled;return{id:n,started:r,lastActivity:i,segmentId:o,sampled:a,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function hk({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=hw({sampled:hE(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&hT(i),i}function hI(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function hx(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return hI(e.started,t,r)||hI(e.lastActivity,n,r)}(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function hC({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&function(){if(!hS())return null;try{let e=pu.sessionStorage.getItem(pc);if(!e)return null;let t=JSON.parse(e);return hc&&hh.infoTick("Loading existing session"),hw(t)}catch{return null}}();return i?hx(i,{sessionIdleExpire:e,maxReplayDuration:t})?(hc&&hh.infoTick("Session in sessionStorage is expired, creating new one..."),hk(r,{previousSessionId:i.id})):i:(hc&&hh.infoTick("Creating new session"),hk(r,{previousSessionId:n}))}function hA(e,t,n){return!!hO(e,t)&&(hR(e,t,n),!0)}async function hR(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i="buffer"===e.recordingMode;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let o=e.getOptions(),a=function(e,t){try{if("function"==typeof t&&e.type===fd.Custom)return t(e)}catch(e){return hc&&hh.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,o.beforeAddRecordingEvent);if(!a)return;return await r.addEvent(a)}catch(o){if(!e.isEnabled())return e.handleException(o),null;let t=o&&o instanceof hg,n=(0,Z.getClient)();if(n&&n.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:t?"eventBufferOverflow":"eventBufferError"})}}function hO(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=fX(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(hc&&hh.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function hN(e,t,n){let r=e.getContext();t&&r.traceIds.size<100&&r.traceIds.add(t),n&&r.segmentNames.size<100&&r.segmentNames.add(n)}function hP(e){return"transaction"===e.type}function hM(e){return"feedback"===e.type}function hD(e){return!!e.category}function hL(){let e=(0,Z.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,tX.getActiveSpan)();if(t){let e=(0,t6.getDynamicSamplingContextFromSpan)(t);delete e.replay_id}}function hB(e){let t=(0,Z.getCurrentScope)().getPropagationContext().dsc;t&&(t.replay_id=e);let n=(0,tX.getActiveSpan)();n&&((0,t6.getDynamicSamplingContextFromSpan)(n).replay_id=e)}function hU(e,t){return t.map(({type:t,start:n,end:r,name:i,data:o})=>{let a=e.throttledAddEvent({type:fd.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof a?Promise.resolve(null):a})}function hj(e,t){var n;e.isEnabled()&&null!==t&&(n=t.name,(!hc||!e.getOptions()._experiments.traceInternals)&&d3(n,(0,Z.getClient)())||e.addUpdate(()=>(hU(e,[t]),!0)))}function hF(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=aJ(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function h$(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function hq(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function hH(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:a,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:o,statusCode:a,request:s,response:l}}}function hz(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function hG(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:o}=function(e){var t;let n,r;if(!e||"string"!=typeof e)return{body:e};let i=e.length>15e4,o=(n=(t=e)[0],r=t[t.length-1],"["===n&&"]"===r||"{"===n&&"}"===r);if(i){let t=e.slice(0,15e4);return o?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(o)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=i,o?.length&&(r._meta={warnings:o}),r}function hW(e,t){return Object.entries(e).reduce((n,[r,i])=>{let o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=i),n},{})}function hV(e,t){let n=function(e,t=pu.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(pu.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,tq.stringMatchesSomePattern)(n,t)}async function hJ(e,t,n){try{let r=await hY(e,t,n),i=hH("resource.fetch",r);hj(n.replay,i)}catch(e){hc&&hh.exception(e,"Failed to capture fetch breadcrumb")}}async function hY(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:a,method:s,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=hV(a,n.networkDetailAllowUrls)&&!hV(a,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){var i,o;let a=n?(i=n,o=t,1===i.length&&"string"!=typeof i[0]?hZ(i[0],o):2===i.length?hZ(i[1],o):{}):{};if(!e)return hG(a,r,void 0);let[s,l]=aY(aK(n),hh),u=hG(a,r,s);return l?hq(u,l):u}(n,t.input,u):hz(u),response:await hK(d,n,t.response,c)}}async function hK(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return hz(i);let o=r?hQ(r.headers,n):{};if(!r||!t&&void 0!==i)return hG(o,i,void 0);let[a,s]=await hX(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let o=e?.length&&void 0===n?hF(e):n;if(!r)return hz(o);if(t)return hG(i,o,e);return hG(i,o,void 0)}catch(e){return hc&&hh.exception(e,"Failed to serialize response body"),hG(i,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return s?hq(l,s):l}async function hX(e){let t=function(e){try{return e.clone()}catch(e){hc&&hh.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var n;return[await (n=t,new Promise((e,t)=>
557{let r=i0(()=>t(Error("Timeout while trying to read response body")),500);h0(n).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(r))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return hc&&hh.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return hc&&hh.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function hQ(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function hZ(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?hQ(n,t):Array.isArray(n)?{}:hW(n,t):{}}async function h0(e){return await e.text()}async function h1(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:a,xhr:s}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!s||!hV(l,n.networkDetailAllowUrls)||hV(l,n.networkDetailDenyUrls)){let e=hz(d);return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:e,response:hz(p)}}let f=s[r2],h=f?hW(f.request_headers,n.networkRequestHeaders):{},g=hW(aX(s),n.networkResponseHeaders),[m,y]=n.networkCaptureBodies?aY(a,hh):[void 0],[_,v]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var n=e.response,r=e.responseType;try{if("string"==typeof n)return[n];if(n instanceof Document)return[n.body.outerHTML];if("json"===r&&(0,eu.isObjectLike)(n))return[JSON.stringify(n)];if(!n)return[void 0]}catch(e){return hc&&hh.exception(e,"Failed to serialize body",n),[void 0,"BODY_PARSE_ERROR"]}return hc&&hh.log("Skipping network body because of body type",n),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return hc&&hh.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],b=hG(h,d,m),S=hG(g,p,_);return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:y?hq(b,y):b,response:v?hq(S,v):S}}(e,t,n),i=hH("resource.xhr",r);hj(n.replay,i)}catch(e){hc&&hh.exception(e,"Failed to capture xhr breadcrumb")}}async function h2(e){try{return Promise.all(hU(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(pu.performance.memory)]))}catch{return[]}}let h3=ea.GLOBAL_OBJ.navigator;async function h5({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);let o=await (0,nz.prepareEvent)(e.getOptions(),r,i,t,e,(0,Z.getIsolationScope)());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";let a=e.getSdkMetadata(),{name:s,version:l,settings:u}=a?.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},o}async function h4({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){var a;let s,l=function({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
558`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:c,traceIds:d,segmentNames:p,initialTimestamp:f}=r,h=(0,Z.getClient)(),g=(0,Z.getCurrentScope)(),m=h?.getTransport(),y=h?.getDsn();if(!h||!m||!y||!o.sampled)return Promise.resolve({});let _={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,segment_names:p,urls:u,replay_id:t,segment_id:n,replay_type:o.sampled},v=await h5({scope:g,client:h,replayId:t,event:_});if(!v)return h.recordDroppedEvent("event_processor","replay"),hc&&hh.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;let b=(a=h.getOptions().tunnel,nt(nc(v,nu(v),a,y),[[{type:"replay_event"},v],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await m.send(b)}catch(t){let e=Error(pd);try{e.cause=t}catch{}throw e}let S=nF({},s);if(nj(S,"replay"))throw new h8(S);if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new h6(s.statusCode);return s}
558class h6 extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class h8 extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class h7 extends Error{constructor(){super("Session is too long, not sending replay")}}async function h9(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await h4(e),!0}catch(n){if(n instanceof h6||n instanceof h8)throw n;if((0,et.setContext)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${pd} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{i0(async()=>{try{await h9(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let ge="__THROTTLED";class gt{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){return function(e,t,n){let r,i,o,a=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function l(){return u(),r=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=s(l,t),a&&void 0===o&&(o=s(l,a)),r}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==o?l():r},c}(e,t,{...n,setTimeoutImpl:i0})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,n=!1;return(...r)=>{let i,o=Math.floor(Date.now()/1e3);if(i=o-5,t.forEach((e,n)=>{n<i&&t.delete(n)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){let e=n;return n=!0,e?"__SKIPPED":ge}n=!1;let a=t.get(o)||0;return t.set(o,a+1),e(...r)}}((e,t)=>hO(this,e)?hR(this,e,t):Promise.resolve(null));const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(i&&(this.clickDetector=new f5(this,i)),hc){const t=e._experiments;hh.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===pu.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=f8({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=f8({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let l=n||i||o,u=1===a.length;if(!l&&u)return null;let c=r9(s,{maxStringLength:200})||"<unknown>",d=ht(s,c);return f8({category:"ui.keyDown",message:c,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a}})}(t);n&&fZ(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){hc&&hh.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){hc&&hh.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",hc&&hh.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){hc&&hh.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){hc&&hh.log("Buffering is in progress, call `flush()` to save the replay");return}hc&&hh.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=hC({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
558startBuffering(){if(this._isEnabled){hc&&hh.log("Buffering is in progress, call `flush()` to save the replay");return}hc&&hh.infoTick("Starting replay in buffer mode");let e=hC({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,n=this._canvas;this._stopRecording=fK({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{try{if(!e.checkAndHandleExpiredSession()){hc&&hh.warn("Received replay event after session expired.");return}let i=r||!t;t=!0,function(e){let t=e.data;if(e.type===fd.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===fp.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=fK.mirror.getNode(e.id),n=t&&fK.mirror.getMeta(t);if(!t||n?.type!==f7.Element)continue;let r={...n.attributes},i=!1;for(let[t,n]of Object.entries(e.attributes))he.has(t)&&(null===n?delete r[t]:r[t]=n,i=!0);i&&fK.mirror.add(t,{...n,attributes:r})}}(n),e.clickDetector&&function(e,t){try{var n;if(n=t,3!==n.type)return;let{source:r}=t.data;if(f3.has(r)&&e.registerMutation(t.timestamp),r===fp.Scroll&&e.registerScroll(t.timestamp),t.data.source===fp.MouseInteraction){let{type:n,id:r}=t.data,i=fK.mirror.getNode(r);i instanceof HTMLElement&&n===ff.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!hA(e,n,i))return!0;if(!i)return!1;let t=e.session;if(function(e,t){if(t&&e.session?.segmentId===0){let t;hA(e,(t=e.getOptions(),{type:fd.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(hc&&hh.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&hT(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}catch(t){e.handleException(t)}}),.../iPhone|iPad|iPod/i.test(h3?.userAgent??"")||/Macintosh/i.test(h3?.userAgent??"")&&h3?.maxTouchPoints&&h3?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";let n=t??"manual";(0,Z.getClient)()?.emit("replayEnd",{sessionId:this.session?.id,reason:n});try{hc&&hh.log(`Stopping Replay triggered by ${n}`),hL(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(hS())try{pu.sessionStorage.removeItem(pc)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),hc&&hh.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),hc&&hh.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();hc&&hh.log("Converting buffer to session"),await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),hB(this.session.id)),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}
558checkAndHandleExpiredSession(){return this._lastActivity&&hI(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"?void this.pause():!!this._checkSession()}setInitialState(){let e=`${pu.location.pathname}${pu.location.hash}${pu.location.search}`,t=`${pu.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===ge){let e=f8({category:"replay.throttled"});this.addUpdate(()=>!hA(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||(0,tX.getActiveSpan)(),t=e&&(0,tX.getRootSpan)(e),n=(t&&(0,tX.spanToJSON)(t).data||{})[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&n&&["route","custom"].includes(n))return(0,tX.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 558
558var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
558'],{type:"text/javascript"}),URL.createObjectURL(e)}return""}();if(!t)return;hc&&hh.log(`Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new hb(n)}catch(e){hc&&hh.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return hc&&hh.log("Using simple buffer"),new hy}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&(0,Z.getClient)()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&hB(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=hC({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!hx(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{pu.document.addEventListener("visibilitychange",this._handleVisibilityChange),pu.addEventListener("blur",this._handleWindowBlur),pu.addEventListener("focus",this._handleWindowFocus),pu.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,n=(0,Z.getClient)();rZ(t=>{var n,r;if(!e.isEnabled())return;let i=function(e){let{target:t,message:n}=function(e){let t,n="click"===e.name,r=null;try{r=n?f1(e.event):f2(e.event),t=r9(r,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:r,message:t}}(e);return f8({category:`ui.${e.name}`,...ht(t,n)})}(t);if(!i)return;let o="click"===t.name,a=o?t.event:void 0;o&&e.clickDetector&&a?.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&(n=e.clickDetector,r=f1(t.event),n.handleClick(i,r)),fZ(e,i)}),r4(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(hU(e,[n]),!1)))}),(t=(0,Z.getClient)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var n;if(!e.isEnabled()||!hD(t))return;let r=(n=t,!hD(n)||["fetch","xhr","sentry.event","sentry.transaction"].includes(n.category)||n.category.startsWith("ui.")?null:"console"===n.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return f8(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}\u2026`):e;if("object"==typeof e)try{let t=(0,t3.normalize)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}\u2026`;return t}catch{}return e});return f8({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(n):f8(n));r&&fZ(e,r)})(e,t));let r=(0,Z.getClient)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};r&&r.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i,o,a;r=t,"xhr"===r.category&&(i=n,i?.xhr)&&(!function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=hF(r),o=n.getResponseHeader("content-length")?h$(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&(0,eu.isObjectLike)(e)?JSON.stringify(e):e;return hF(n)}catch{return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),h1(t,n,e)),o=t,"fetch"===o.category&&(a=n,a?.input!==void 0)&&(!function(e,t){let{input
558:n,response:r}=t,i=hF(n?aK(n):void 0),o=r?h$(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),hJ(t,n,e))}catch(e){hc&&hh.exception(e,"Error when enriching network breadcrumb")}})(s,e,t))}catch{}let i=Object.assign((t,n)=>{if(e.session&&hx(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&hL(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!hP(t)&&!hM(t))return t;if(!e.checkAndHandleExpiredSession())return hL(),t;if(hM(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:fd.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&n.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return hc&&hh.log("Ignoring error from rrweb internals",t),null;let r="buffer"===e.recordingMode&&t.message!==pd&&!!t.exception&&!t.type&&hE(e.getOptions().errorSampleRate);if((r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&hT(t)}return t},{id:"Replay"});(0,et.addEventProcessor)(i),n&&(n.on("beforeSendEvent",t=>{var n,r;let i;e.isEnabled()&&!t.type&&(n=e,r=t,i=r.exception?.values?.[0]?.value,"string"==typeof i&&(i.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&fZ(n,f8({category:"replay.hydrate-error",data:{url:ed()}})))}),n.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!hP(t))return;let r=n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(hP(t)){var i,o;return void(i=e,o=t,hN(i,o.contexts?.trace?.trace_id,o.transaction))}!function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&i0(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),n.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),n.on("processSegmentSpan",t=>{e.isEnabled()&&hN(e,t.trace_id,t.name||void 0)}),n.on("spanStart",t=>{e.lastActiveSpan=t}),n.on("spanEnd",t=>{e.lastActiveSpan=t}),n.on("beforeSendFeedback",async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),n.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(as(e,n))}),r.push(ao(hr(ha,e)),ai(hr(hs,e)),aa(hr(hl,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{pu.document.removeEventListener("visibilitychange",this._handleVisibilityChange),pu.removeEventListener("blur",this._handleWindowBlur),pu.removeEventListener("focus",this._handleWindowFocus),pu.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(hx(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?hL():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){hc&&hh.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:fd.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(hi).filter(
558Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(hU(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){hc&&hh.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await h2(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new h7;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await h9({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendError"});let e=(0,Z.getClient)();e&&e.recordDroppedEvent(t instanceof h8?"ratelimit_backoff":t instanceof h7?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){hc&&hh.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){hc&&hh.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),r&&this._debouncedFlush();return}let o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&hc&&hh.log("Flushing initial segment without checkout.");let a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&hT(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=r&&n>r;if(n>i||o){let e=f8({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function gn(e,t){return[...e,...t].join(",")}let gr='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',gi=["content-length","content-type","accept"],go=Symbol.for("sentry__originalRequestBody"),ga=!1,gs=!1,gl=e=>new gu(e);class gu{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:m=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:E=[],block:T=[],unblock:w=[],ignore:k=[],maskFn:I,beforeAddRecordingEvent:x,beforeErrorSampling:C,onError:A,attachRawBodyFromRequest:R=!1}={}){this.name="Replay";const O=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:gn(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:gn(t,[]),blockSelector:gn(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
558([src])"]),unblockSelector:gn(r,[]),ignoreSelector:gn(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:E,block:T,unblock:w,ignore:k});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return o;let a=n.includes(t),s=r&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return a||s?o.replace(/[\S]/g,"*"):o})({maskAttributes:S,maskAllText:l,privacyOptions:O,key:e,value:t,el:n}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,36e5),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:g,networkDetailDenyUrls:m,networkCaptureBodies:y,networkRequestHeaders:gc(_),networkResponseHeaders:gc(v),beforeAddRecordingEvent:x,beforeErrorSampling:C,onError:A,attachRawBodyFromRequest:R,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${gr}`:gr,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&nS())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ga}set _isInitialized(e){ga=e}afterAllSetup(e){nS()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||gs)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[go]=n.body),r};t.prototype=e.prototype,ea.GLOBAL_OBJ.Request=t,gs=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(ih(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&ih(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let n,r,i,o,a=(t=this._initialOptions,n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...t},i=(0,nH.parseSampleRate)(n.replaysSessionSampleRate),o=(0,nH.parseSampleRate)(n.replaysOnErrorSampleRate),null==i&&null==o&&(0,ee.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=o&&(r.errorSampleRate=o),r);this._replay=new gt({options:a,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function gc(e){return[...gi,...e.map(e=>e.toLowerCase())]}function gd(){let e=(0,Z.getClient)();return e?.getIntegrationByName("Replay")}var gp=Object.defineProperty,gf=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?gp(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};function gh(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:gh(e.parentNode,t,n,r+1)}function gg(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}let gm="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.",gy={map:{},getId:()=>(console.error(gm),-1),getNode:()=>(console.error(gm),null),removeNodeFromMap(){console.error(gm)},has:()=>(console.error(gm),!1),reset(){console.error(gm)}};function g_(e,t,n,r,i=window){let o=i.Object.getOwnPropertyDescriptor(e,t);
558return i.Object.defineProperty(e,t,r?n:{set(e){gw(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>g_(e,t,o||{},!0)}function gv(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}function gb(e,t,n,r,i){if(!e)return!1;let o=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!o)return!1;let a=gg(t,n);if(!i){let e=r&&o.matches(r);return a(o)&&!e}let s=gh(o,a),l=-1;return!(s<0)&&(r&&(l=gh(o,gg(null,r))),s>-1&&l<0||s<l)}"u">typeof window&&window.Proxy&&window.Reflect&&(gy=new Proxy(gy,{get:(e,t,n)=>("map"===t&&console.error(gm),Reflect.get(e,t,n))})),Date.now().toString();let gS={};function gE(e){let t=gS[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return gS[e]=r.bind(window)}function gT(...e){return gE("requestAnimationFrame")(...e)}function gw(...e){return gE("setTimeout")(...e)}var gk=(($=gk||{})[$["2D"]=0]="2D",$[$.WebGL=1]="WebGL",$[$.WebGL2=2]="WebGL2",$);let gI=e=>b?(...t)=>{try{return e(...t)}catch(e){if(b&&!0===b(e))return()=>{};throw e}}:e;for(var gx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gC="u"<typeof Uint8Array?[]:new Uint8Array(256),gA=0;gA<gx.length;gA++)gC[gx.charCodeAt(gA)]=gA;var gR=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=gx[n[t]>>2],i+=gx[(3&n[t])<<4|n[t+1]>>4],i+=gx[(15&n[t+1])<<2|n[t+2]>>6],i+=gx[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let gO=new Map,gN=(e,t,n)=>{let r;if(!e||!(gM(e,t)||"object"==typeof e))return;let i=e.constructor.name,o=((r=gO.get(n))||(r=new Map,gO.set(n,r)),r.has(i)||r.set(i,[]),r.get(i)),a=o.indexOf(e);return -1===a&&(a=o.length,o.push(e)),a},gP=(e,t,n)=>e.map(e=>(function e(t,n,r){if(t instanceof Array)return t.map(t=>e(t,n,r));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:gR(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,n,r),t.width,t.height]};else if(gM(t,n)||"object"==typeof t)return{rr_type:t.constructor.name,index:gN(t,n,r)};return t})(e,t,n)),gM=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(n=>e instanceof t[n]);function gD(e,t,n,r,i){let o=[];try{let a=gv(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...a){if(!gb(this,t,n,r,!0)){let e="experimental-webgl"===o?"webgl":o;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(a[0]&&"object"==typeof a[0]){let e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...a])}});o.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function gL(e,t,n,r,i,o,a,s){let l=[];for(let a of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if
558("function"!=typeof e[a])continue;let u=gv(e,a,function(e){return function(...l){let u=e.apply(this,l);if(gN(u,s,this),"tagName"in this.canvas&&!gb(this.canvas,r,i,o,!0)){let e=gP(l,s,this),r={type:t,property:a,args:e};n(this.canvas,r)}return u}});l.push(u)}catch{let r=g_(e,a,{set(e){n(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(r)}return l}class gB{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:i,errorHandler:o}=e;if(e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,o&&function(e){b=e}(o),(i&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t)return;gI(()=>{i&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),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){let{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:i,recordCanvas:o,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(e)){if(a){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}gI(()=>{if(o&&"all"===t&&this.initCanvasMutationObserver(e,n,r,i),o&&"number"==typeof t){let t=gD(e,n,r,i,!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):gT(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e,t=new Worker((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)}};']),URL.createObjectURL(e)));return t.onmessage=e=>{let t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;let{base64:r,type:i,width:o,height:a}=t;this.mutationCb({id:n,type:gk["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0,o,a]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=gT(t)};e=gT(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){var i,o;let a,s=gD(e,t,n,r,!1),l=function(e,t,n,r,i){let o=[];for(let a of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;let s=gv(t.CanvasRenderingContext2D.prototype,a,function(o){return function(...s){return gb(this.canvas,n,r,i,!0)||gw(()=>{let n=gP(s,t,this);e(this.canvas,{type:gk["2D"],property:a,args:n})},0),o.apply(this,s)}});o.push(s)}catch{let n=g_(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:gk["2D"],property:a,args:[t],setter:!0})}});o.push(n)}return()=>
558{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),u=(i=this.processMutation.bind(this),o=this.mirror,(a=[]).push(...gL(e.WebGLRenderingContext.prototype,gk.WebGL,i,t,n,r,o,e)),void 0!==e.WebGL2RenderingContext&&a.push(...gL(e.WebGL2RenderingContext.prototype,gk.WebGL2,i,t,n,r,o,e)),()=>{a.forEach(e=>e())});this.restoreHandlers.push(()=>{s(),l(),u()})}getCanvasElements(e,t,n){let r=[],i=i=>{i.querySelectorAll("canvas").forEach(i=>{gb(i,e,t,n,!0)||r.push(i)})};for(let e of this.windows){let t,n=e.deref();try{t=n&&n.document}catch{}t&&i(t)}for(let e of this.shadowDoms){let t=e.deref();t&&i(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:i,blockSelector:o,unblockSelector:a,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===r?2:r||2)))&&(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(i,o,a)).forEach(e=>{let 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)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&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:l},[t])}).catch(e=>{gI(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){gT(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,gT(e)};gT(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),gT(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new class e{constructor(){gf(this,"idNodeMap",new Map),gf(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-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){let 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){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let 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}},(q=W||(W={}))[q.NotStarted=0]="NotStarted",q[q.Running=1]="Running",q[q.Stopped=2]="Stopped";let gU={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}}},gj=(e={})=>{let t,n,[r,i]=e.maxCanvasSize||[],o={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[r?Math.min(r,1280):1280,i?Math.min(i,1280):1280]},a=new Promise(e=>n=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:r,maxCanvasSize:i}=o;return{enableManualSnapshot:r,recordCanvas:!0,getCanvasManager:e=>{let o=new gB({...e,enableManualSnapshot:r,maxCanvasSize:i,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=o,n(o),o},...gU[e]||gU.medium}},async snapshot(e,n){(t||await a).snapshot(e,n)}}};var dj=dj;let gF=()=>({name:"ElementTiming",setup(){av()&&(0,nm.browserPerformanceTimeOrigin)()&&as("element",({entries:e})=>{for(let t of e){if(!t.identifier)continue;let e=t.identifier,n=t.name,r=t.renderTime,i=t.loadTime,o={"sentry.origin":"auto.ui.browser.element_timing","ui.element.i
558dentifier":e};n&&(o["ui.element.paint_type"]=n),t.id&&(o["ui.element.id"]=t.id),t.element&&(o["ui.element.type"]=t.element.tagName.toLowerCase()),t.url&&(o["ui.element.url"]=t.url),t.naturalWidth&&(o["ui.element.width"]=t.naturalWidth),t.naturalHeight&&(o["ui.element.height"]=t.naturalHeight),r>0&&dj.distribution("ui.element.render_time",r,{unit:"millisecond",attributes:o}),i>0&&dj.distribution("ui.element.load_time",i,{unit:"millisecond",attributes:o})}})}});function g$(e=(0,Z.getClient)()){e?.emit("endPageloadSpan")}function gq(e){let t=(0,tX.getActiveSpan)();if(t===e)return;let n=(0,Z.getCurrentScope)();e.end=new Proxy(e.end,{apply:(e,r,i)=>((0,ng._setSpanForScope)(n,t),Reflect.apply(e,r,i))}),(0,ng._setSpanForScope)(n,e)}class gH{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=i&&i>0?i:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:(0,nD.safeUnref)(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=function(e){let t;if(t=156+2*e.name.length+(0,nf.estimateTypedAttributesSizeInBytes)(e.attributes),e.links&&e.links.length>0){let n=e.links[0],r=n?.attributes;t+=(100+(r?(0,nf.estimateTypedAttributesSizeInBytes)(r):0))*e.links.length}return t}(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(tL.DEBUG_BUILD&&ee.debug.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){var t,n;let r,i,o,a,s,l,u=this._traceBuckets.get(e);if(!u)return;if(!u.spans.size)return void this._removeTrace(e);let c=Array.from(u.spans),d=c[0]?._segmentSpan;if(!d){tL.DEBUG_BUILD&&ee.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(e);return}let p=(0,t6.getDynamicSamplingContextFromSpan)(d),f=c.map(e=>{let{_segmentSpan:t,...n}=e;return n}),h=(r=(t=this._client).getOptions(),i=t.getDsn(),o=r.tunnel,a=nu(r._metadata),s={sent_at:new Date((0,ne.safeDateNow)()).toISOString(),...!!(n=p).trace_id&&!!n.public_key&&{trace:p},...a&&{sdk:a},...!!o&&i&&{dsn:(0,en.dsnToString)(i)}},l=t.getDataCollectionOptions().userInfo?"auto":"never",nt(s,[[{type:"span",item_count:f.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...nS()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:f}]]));tL.DEBUG_BUILD&&ee.debug.log(`Sending span envelope for trace ${e} with ${f.length} spans`),this._client.sendEnvelope(h).then(null,e=>{tL.DEBUG_BUILD&&ee.debug.error("Error while sending streamed span envelope:",e)}),this._removeTrace(e)}_removeTrace(e){let t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}let gz=()=>({name:"SpanStreaming",beforeSetup(e){let t=e.getOptions();t.traceLifecycle||(eo&&ee.debug.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){let t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=e.getOptions();if(!nP(e)){r.traceLifecycle="static",eo&&ee.debug.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`);return}let i=r.beforeSendSpan;if(i&&!t7(i)){r.traceLifecycle="static",eo&&ee.debug.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`);return}let o=new gH(e);e.on("afterSpanEnd",t=>{(0,tX.spanIsSampled)(t)&&o.add(function(e,t){var n,r;let i,o,a=(0,tX.spanToStreamedSpanJSON)(e),s=(0,tX.INTERNAL_getSegmentSpan)(e),l=(0,tX.spanToStreamedSpanJSON)(s),{isolationScope:u,scope:c}=(0,ip.getCapturedScopesOnSpan)(e),d=(0,nh.getCombinedScopeData)(u,c);!function(e,t,n,r){let i=n.getSdkMetadata(),{release:o,environment:a}=n.getOptions();ih(e,{"sentry.trace_lifecycle":"stream",[rD]:t.name,"sentry.segment.id":t.span_id,"sentry.sdk.name":i?.sdk?.name,"sentry.sdk.version":i?.sdk?.version,[tK.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:o,[tK.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:a||t4.DEFAULT_ENVIRONMENT,[tK.SEMANTIC_ATTRIBUTE_USER_ID]:r.user?.id,[tK.SEMANTIC_ATTRIBUTE_USER_EMAIL]:r.user?.email,[tK.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:r.user?.ip_address,[tK.SEMANTIC_ATTRIBUTE_USER_USERNAME]:r.user?.username,...r.attributes})}(a,l,t,d);let p=e.kind;t.emit("preprocessSpan",a,{spanKind:p}),a.is_segment&&(ih(a,function(e){let t={},{response:n,profile:r,cloud_resource:i,culture:o,state:a}=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)),i)for(let[e,n]of Object.entries(i))null!=n&&(t[e]=n);o&&(o.locale&&(t["culture.locale"]=o.locale),o.timezone&&(t["culture.timezone"]=o.timezone)),a?.state&&"string"==typeof a.state.type&&(t["state.type"]=a.state.type);let s=e.angular;if(s){let e=s.version;("string"==typeof e||"number"==typeof e)&&(t["angular.version"]=e)}let l=e.react;if(l){let e=l.version;("string"==typeof e||"number"==typeof e)&&(t["react.version"]=e)}return t}(d.contexts)),n=a,(i=t.getIntegrationNames()).length&&ih(n,{[tK.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:i}),t.emit("processSegmentSpan",a)),t.emit("processSpan",a);let{beforeSendSpan:f}=t.getOptions(),h=f&&t7(f)?(o=f(r=a))||((0,tX.showSpanDropWarning)(),r):a,g=h.attributes?.[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return a.is_segment&&g&&ih(h,{"sentry.segment.name.source":g}),{...(0,tX.streamedSpanJsonToSerializedSpan)(h),_segmentSpan:s}}(t,e))}),e.on("afterSegmentSpanEnd",e=>{let t=e.spanContext().traceId;setTimeout(()=>{o.flush(t)},500)})}});function gG(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function gW(e){return gG(e.getAllKeys())}function gV(e){let t;function n(){var n,r;let i,o;return void 0==t&&(n=e.dbName||"sentry-offline",r=e.storeName||"queue",(i=indexedDB.open(n)).onupgradeneeded=()=>i.result.createObjectStore(r),o=gG(i),t=e=>o.then(t=>e(t.transaction(r,"readwrite").objectStore(r)))),t}return{push:async t=>{try{var r,i;let o=na(t);await (r=n(),i=e.maxQueueSize||30,r(e=>gW(e).then(t=>{if(!(t.length>=i))return e.put(o,Math.max(...t,0)+1),gG(e.transaction)})))}catch{}},unshift:async t=>{try{var r,i;let o=na(t);await (r=n(),i=e.maxQueueSize||30,r(e=>gW(e).then(t=>{if(!(t.length>=i))return e.put(o,Math.min(...t,0)-1),gG(e.transaction)})))}catch{}},shift:async()=>{try{let e=await n()(e=>gW(e).then(t=>{let n=t[0];if(null!=n)return gG(e.get(n)).then(t=>(e.delete(n),gG(e.transaction).then(()=>t)))}));if(e)return function(e){let t="string"==typeof e?no(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){var e;let r,i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse((e=n(i),(r=(0,t9.getSentryCarrier)(ea.GLOBAL_OBJ)).decodePolyfill?r.decodePolyfill(e):new TextDecoder().decode(e)))}let i=r(),o=[];for(;t.length;){let e=r(),t="number"==typeof e.length?e.length:void 0;o.push([e,t?n(t):r()])}return[i,o]}(e)}catch{}}}}function gJ(e=i1){var t;return t=function(e){function t(...e){tL.DEBUG_BUILD&&ee.debug.log("[Offline]:",...e)}return n=>{let r,i=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let o=n.createStore(n),a=5e3;function s(e){r&&clearTimeout(r),r=(0,nD.safeUnref)(setTimeout(async()=>{r=void 0;let e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date((0,ne.safeDateNow)()).toISOString(),u(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function l(){r||(s(a),a=Math.min(2*a,36e5))}async function u(e,r=!1){if(!r&&ni(e,["replay_event","replay_recording"]))return await o.push(e),s(100),{};
558try{if(n.shouldSend&&await n.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await i.send(e),r=100;if(t){if(t.headers?.["retry-after"])r=nU(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return s(r),a=5e3,t}catch(i){var c;if(await (c=a,!ni(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,i,c))))return r?await o.unshift(e):await o.push(e),l(),t("Error sending. Event queued.",i),{};throw i}}return n.flushAtStartup&&l(),{send:u,flush:e=>(void 0===e&&(a=5e3,s(100)),i.flush(e))}}}(e),e=>{let n=t({...e,createStore:gV});return ef.addEventListener("online",async e=>{await n.flush()}),n}}var gY=e.i(790830);let gK="window"in ea.GLOBAL_OBJ&&ea.GLOBAL_OBJ.window===ea.GLOBAL_OBJ&&"u"<typeof importScripts,gX=String(0),gQ=gK?"main":"worker",gZ=ef.navigator,g0="",g1="",g2="",g3=gZ?.userAgent||"",g5="",g4=gZ?.language||gZ?.languages?.[0]||"",g6=gZ?.userAgentData;function g8(e){return"pageload"===(0,tX.spanToJSON)(e).op}function g7(e){let t=(0,Z.getClient)(),n=t?.getOptions(),r=n?.stackParser;return r?(0,gY.getDebugImagesForResources)(r,e):[]}function g9(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(eo&&ee.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)||(eo&&ee.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof g6&&null!==g6&&"getHighEntropyValues"in g6&&g6.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(g0=e.platform||"",g2=e.architecture||"",g5=e.model||"",g1=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];g3=`${t.brand} ${t.version}`}}).catch(e=>void 0);let me=!1;function mt(){let e=ef.Profiler;if("function"!=typeof e){eo&&ee.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){eo&&(ee.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),ee.debug.log("[Profiling] Disabling profiling for current user session.")),me=!0}}function mn(e){if(me)return eo&&ee.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return eo&&ee.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=(0,Z.getClient)(),n=t?.getOptions();if(!n)return eo&&ee.debug.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return g9(r)?r?!!(!0===r||Math.random()<r)||(eo&&ee.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(eo&&ee.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(eo&&ee.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function mr(e){return void 0!==e.profilesSampleRate}let mi=new Map,mo=new WeakSet;function ma(e){e.setAttribute("thread.id",gX),e.setAttribute("thread.name",gQ)}function ms(e){let t;g8(e)&&(t=1e3*(0,nm.timestampInSeconds)());let n=mt();if(!n)return;eo&&ee.debug.log(`[Profiling] started profiling span: ${(0,tX.spanToJSON)(e).description}`);let r=(0,el.uuid4)(),i=null;async function o(){if(e&&n){if(i){eo&&ee.debug.log("[Profiling] profile for:",(0,tX.spanToJSON)(e).description,"already exists, returning early");return}return n.stop().then(t=>{if(a&&(ef.clearTimeout(a),a=void 0),eo&&ee.debug.log(`[Profiling] stopped profiling of span: ${(0,tX.spanToJSON)(e).description}`),!t){eo&&ee.debug.log(`[Profiling] profiler returned null profile for: ${(0,tX.spanToJSON)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}i=t;if(mi.set(r,t),mi.size>30){let e=mi.keys().next().value;void 0!==e&&mi.delete(e)}}).catch(e=>{eo&&ee.debug.log("[Profiling] error while stopping profiler:",e)})}}(0,Z.getCurrentScope)().setContext("profile",{profile_id:r,start_timestamp:t}),mo.add(e),ma(e);let a=ef.setTimeout(()=>{eo&&ee.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,tX.spanToJSON)(e).description),o()},3e4),s=e.end.bind(e);e.end=function(){return e?(o().then(()=>{s()},()=>{s()}),e):s()}}class ml{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){let t=e.getOptions().profileLifecycle,n=function(e){if(me)return eo&&ee.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 eo&&ee.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return g9(t)?t?Math.random()<=t:(eo&&ee.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(eo&&ee.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());eo&&ee.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!n&&eo&&ee.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,el.uuid4)(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&ma(e)})}
558start(){if("trace"===this._lifecycleMode){eo&&ee.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){eo&&ee.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){eo&&ee.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){eo&&ee.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){eo&&ee.debug.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(eo&&ee.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this._beginProfiling()),this._isRunning&&ma(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,eo&&ee.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,Z.getGlobalScope)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){eo&&ee.debug.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{eo&&ee.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,Z.getGlobalScope)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){eo&&ee.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==(0,tX.getRootSpan)(e))return;if(!e.isRecording()){eo&&ee.debug.log("[Profiling] Discarding profile because root span was not sampled.");return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(eo&&ee.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;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;eo&&ee.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=>{eo&&ee.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,Z.getGlobalScope)().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=mt();if(!e){eo&&ee.debug.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{eo&&ee.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)&&(eo&&ee.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(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),n=function(e,t,n){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=function(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let i=[],o=r;for(;o;)i.push(o.frameId),o=void 0===o.parentId?void 0:e.stacks[o.parentId];n[t]=i}let r=(0,nm.browserPerformanceTimeOrigin)(),i="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,o=i-(r||i),a=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(i+(n.timestamp-o))/1e3;a[t]={stack_id:n.stackId??0,thread_id:gX,timestamp:r}}return{frames:t,stacks:n,samples:a,thread_metadata:{[gX]:{name:gQ}}}}(e),i=t.getOptions(),o=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,el.uuid4)(),client_sdk:{name:o?.name??"sentry.javascript.browser",version:o?.version??"0.0.0"},profiler_id:n||(0,el.uuid4)(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:g7(e.resources)},profile:r}}(t,this._client,this._profilerId),r=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);
558if(!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"};let n=e.profile;if(!n)return{reason:"missing profile data"};if(!Array.isArray(n.frames)||!n.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(n.stacks)||!n.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(n.samples)||!n.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(n);if("reason"in r){eo&&ee.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",r.reason);return}this._sendProfileChunk(n),eo&&ee.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){eo&&ee.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client,n=nu(t.getSdkMetadata?.()),r=t.getDsn(),i=t.getOptions().tunnel,o=nt({event_id:(0,el.uuid4)(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!i&&r&&{dsn:(0,en.dsnToString)(r)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(o).then(null,e=>{eo&&ee.debug.error("Error while sending profile chunk envelope:",e)})}}let mu=()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),n=new ml;if(mr(t)||t.profileLifecycle||(t.profileLifecycle="manual"),mr(t)&&!t.profilesSampleRate){eo&&ee.debug.log("[Profiling] Profiling disabled, no profiling options found.");return}let r=(0,tX.getActiveSpan)(),i=r&&(0,tX.getRootSpan)(r);if(mr(t)&&void 0!==t.profileSessionSampleRate&&eo&&ee.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),mr(t))i&&g8(i)&&mn(i)&&ms(i),e.on("spanStart",e=>{let t=(0,tX.getRootSpan)(e);e===t?mn(e)&&ms(e):mo.has(t)&&ma(e)}),e.on("beforeEnvelope",e=>{let t;if(!mi.size)return;let n=(t=[],nr(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t);if(!n.length)return;let r=[];for(let e of n){let t=e?.contexts,n=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if("string"!=typeof n||!n){eo&&ee.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let o=function(e){let t=mi.get(e);return t&&mi.delete(e),t}(n);if(!o){eo&&ee.debug.log(`[Profiling] Could not retrieve profile for span: ${n}`);continue}let a=function(e,t,n,r){return(n.samples.length<2?(eo&&ee.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!n.frames.length&&(eo&&ee.debug.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,n,r){var i;let o;if("transaction"!==r.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let a=("string"==typeof(o=r.contexts?.trace?.trace_id)&&32!==o.length&&eo&&ee.debug.log(`[Profiling] Invalid traceId: ${o} on profiled event`),"string"!=typeof o)?"":o,s="thread_metadata"in(i=n)?i:function(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[gX]:{name:gQ}}},i=e.samples[0];if(!i)return r;let o=i.timestamp,a=(0,nm.browserPerformanceTimeOrigin)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:a||0,l=s-(a||s);return e.samples.forEach((i,a)=>{if(void 0===i.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((i.timestamp+l-o)*1e6).toFixed(0),stack_id:t,thread_id:gX};return}let s=e.stacks[i.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===r.frames[s.frameId]&&(r.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}let c={elapsed_since_start_ns:((i.timestamp+l-o)*1e6).toFixed(0),stack_id:n,thread_id:gX};r.stacks[n]=u,r.samples[a]=c,n++}
558),r}(i),l=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,nm.timestampInSeconds)()),u="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,nm.timestampInSeconds)();return{event_id:e,timestamp:new Date(l).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||t4.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:ef.navigator.userAgent},os:{name:g0,version:g1,build_number:g3},device:{locale:g4,model:g5,manufacturer:g3,architecture:g2,is_emulator:!1},debug_meta:{images:g7(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||(0,el.uuid4)(),trace_id:a,active_thread_id:gX,relative_start_ns:"0",relative_end_ns:((u-l)*1e6).toFixed(0)}]}}(e,t,n,r)}(n,i,o,e);a&&r.push(a)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,r)});else{let r=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r)n.initialize(e);else if("trace"===r){if(!(0,or.hasSpansEnabled)(t)){eo&&ee.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),ef.setTimeout(()=>{let e=(0,tX.getActiveSpan)(),t=e&&(0,tX.getRootSpan)(e);t&&n.notifyRootSpanActive(t)},0)}}}}),mc=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],md=(e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{eo&&ee.debug.log("Using Sidecar URL",t)},beforeSetup(e){let t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...mc]},afterAllSetup:e=>{var n,r;let i,o;n=e,r=t,i=iZ("fetch"),o=0,n.on("beforeEnvelope",e=>{o>3?ee.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",o):i(r,{method:"POST",body:na(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(o=0)},e=>{o++,ee.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}},mp=()=>
558({name:"LaunchDarkly",processEvent:(e,t,n)=>cJ(e)});function mf(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{cY(e,t.value),cK(e,t.value)}}}let mh=()=>({name:"OpenFeature",processEvent:(e,t,n)=>cJ(e)});class mg{after(e,t){cY(t.flagKey,t.value),cK(t.flagKey,t.value)}error(e,t,n){cY(e.flagKey,e.defaultValue),cK(e.flagKey,e.defaultValue)}}let mm=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;(0,es.fill)(t,"isEnabled",my)},processEvent:(e,t,n)=>cJ(e)});function my(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?(cY(n,r),cK(n,r)):eo&&ee.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}function m_(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(cY(n,r),cK(n,r)),r}}let mv=({growthbookClass:e})=>(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&(0,es.fill)(t,"isOn",m_),"function"==typeof t.getFeatureValue&&(0,es.fill)(t,"getFeatureValue",m_)}
558,processEvent:(e,t,n)=>cJ(e)}))({growthbookClass:e}),mb=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{cY(e.gate.name,e.gate.value),cK(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>cJ(e)});async function mS(){let e=(0,Z.getClient)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";let 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 ow(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let mE=({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>mT(e))},addWorker:e=>mT(e)});function mT(e){e.addEventListener("message",e=>{if(function(e){if(!(0,eu.isPlainObject)(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,i="_sentryWasmImages"in e;return(!!t||!!n||!!r||!!i)&&(!t||!!((0,eu.isPlainObject)(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!n||!!((0,eu.isPlainObject)(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!r||!!(0,eu.isPlainObject)(e._sentryWorkerError))&&(!i||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>(0,eu.isPlainObject)(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(eo&&ee.debug.log("Sentry debugId web worker message received",e.data),ef._sentryDebugIds={...e.data._sentryDebugIds,...ef._sentryDebugIds}),e.data._sentryModuleMetadata&&(eo&&ee.debug.log("Sentry module metadata web worker message received",e.data),ef._sentryModuleMetadata={...e.data._sentryModuleMetadata,...ef._sentryModuleMetadata}),e.data._sentryWasmImages){eo&&ee.debug.log("Sentry WASM images web worker message received",e.data);let t=ef._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>(0,eu.isPlainObject)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));ef._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&(eo&&ee.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=(0,Z.getClient)();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,i=e.reason,o=(0,eu.isPrimitive)(i)?ik(i):ru(n,i,void 0,r,!0);o.level="error",e.filename&&(o.contexts={...o.contexts,worker:{filename:e.filename}}),(0,et.captureEvent)(o,{originalException:i,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),eo&&ee.debug.log("Captured worker unhandled rejection",i)}(e.data._sentryWorkerError))}})}function mw({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let n={reason:iw(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),eo&&ee.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),eo&&ee.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")}e.s(["BrowserClient",0,rd,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,uE,"OpenFeatureIntegrationHook",0,mg,"SDK_VERSION",()=>tM.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>uk.Scope,"WINDOW",0,ef,"addBreadcrumb",0,rO,"addEventProcessor",()=>et.addEventProcessor,"addIntegration",0,tF,"bindScopeToEmitter",0,uA,"breadcrumbsIntegration",0,ie,"browserApiErrorsIntegration",0,ir,"browserProfilingIntegration",0,mu,"browserSessionIntegration",0,id,"browserTracingIntegration",0,a6,"buildLaunchDarklyFlagUsedHandler",0,mf,"captureConsoleIntegration",0,uN,"captureEvent",()=>et.captureEvent,"captureException",()=>et.captureException,"captureFeedback",0,sP,"captureMessage",()=>et.captureMessage,"captureSession",()=>et.captureSession,"chromeStackLineParser",0,iU,"close",()=>et.close,"consoleLoggingIntegration",0,uB,"contextLinesIntegration",0,pt,"continueTrace",0,oE,"createConsolaReporter",0,uj,"createLangChainCallbackHandler",0,cz,"createTransport",0,n$,"createUserFeedbackEnvelope",0,dQ,"cultureContextIntegration",0,ig,"dedupeIntegration",0,tZ,"defaultRequestInstrumentationOptions",0,a0,"defaultStackLineParsers",0,iJ,"defaultStackParser",0,iY,"diagnoseSdkConnectivity",0,mS,"elementTimingIntegration",0,gF,"endSession",()=>et.endSession,"eventFiltersIntegration",0,tz,"eventFromException",0,rs,"eventFromMessage",0,rl,"exceptionFromError",0,rn,"extraErrorDataIntegration",0,cW,"featureFlagsIntegration",0,cX,"feedbackAsyncIntegration",0,ub,"feedbackIntegration",0,uS,"feedbackSyncIntegration",0,uS,"fetchStreamPerformanceIntegration",0,aP,"flush",()=>et.flush,"forceLoad",0,i6,"functionToStringIntegration",0,tY,"geckoStackLineParser",0,i$,"getAbsoluteUrl",0,sr,"getActiveSpan",()=>tX.getActiveSpan,"getClient",()=>Z.getClient,"getCurrentScope",()=>Z.getCurrentScope,"getDefaultIntegrations",0,i5,"getFeedback",0,ll,"getGlobalScope",()=>Z.getGlobalScope,"getIsolationScope",()=>Z.getIsolationScope,"getReplay",0,gd,"getRootSpan",()=>tX.getRootSpan,"getSpanDescendants",()=>tX.getSpanDescendants,"getSpanStatusFromHttpCode",()=>op.getSpanStatusFromHttpCode,"getTraceData",0,az,"globalHandlersIntegration",0,iT,"graphqlClientIntegration",0,ps,"growthbookIntegration",0,mv,"httpClientIntegration",0,d4,"httpContextIntegration",0,iC,"inboundFiltersIntegration",0,tG,"init",0,i4,"instrumentAnthropicAiClient",0,c8,"instrumentCreateReactAgent",0,dn,"instrumentGoogleGenAIClient",0,dc,"instrumentLangChainEmbeddings",0,dp,"instrumentLangGraph",0,dr,"instrumentOpenAiClient",0,dy,"instrumentOutgoingRequests",0,a1,"instrumentStateGraph",0,dr,"instrumentSupabaseClient",0,dx,"isBotUserAgent",0,a5,"isEnabled",()=>et.isEnabled,"isInitialized",()=>et.isInitialized,"lastEventId",()=>et.lastEventId,"launchDarklyIntegration",0,mp,"lazyLoadIntegration",0,uv,"linkedErrorsIntegration",0,iN,"logger",()=>dB,"makeBrowserOfflineTransport",0,gJ,"makeFetchTransport",0,i1,"makeMultiplexedTransport",0,uw,"metrics",()=>dj,"moduleMetadataIntegration",0,dz,"normalizeStringifyValue",0,i3,"onLoad",0,i8,"openFeatureIntegration",0,mh,"opera10StackLineParser",0,iG,"opera11StackLineParser",0,iV,"parameterize",0,dL,"registerSpanErrorInstrumentation",0,oU,"registerWebWorker",0,mw,"replayCanvasIntegration",0,gj,"replayIntegration",0,gl,"reportPageLoaded",0,g$,"reportingObserverIntegration",0,d1,"rewriteFramesIntegration",0,sx,"sendFeedback",0,s7,"setActiveSpanInBrowser",0,gq,"setAttribute",()=>et.setAttribute,"setAttributes",()=>et.setAttributes,"setContext",()=>et.setContext,"setConversationId",()=>et.setConversationId,"setCurrentClient",0,t5,"setExtra",()=>et.setExtra,"setExtras",()=>et.setExtras,"setHttpStatus",()=>op.setHttpStatus,"setMeasurement",0,oa,"setTag",()=>
558et.setTag,"setTags",()=>et.setTags,"setUser",()=>et.setUser,"showReportDialog",0,ey,"spanStreamingIntegration",0,gz,"spanToBaggageHeader",()=>t6.spanToBaggageHeader,"spanToJSON",()=>tX.spanToJSON,"spanToTraceHeader",()=>tX.spanToTraceHeader,"spotlightBrowserIntegration",0,md,"startBrowserTracingNavigationSpan",0,a7,"startBrowserTracingPageLoadSpan",0,a8,"startInactiveSpan",0,oS,"startNewTrace",0,oI,"startSession",()=>et.startSession,"startSpan",0,ov,"startSpanManual",0,ob,"statsigIntegration",0,mb,"supabaseIntegration",0,dC,"suppressTracing",0,ow,"thirdPartyErrorFilterIntegration",0,dG,"uiProfiler",0,dX,"unleashIntegration",0,mm,"updateSpanName",()=>tX.updateSpanName,"viewHierarchyIntegration",0,pl,"webVitalsIntegration",0,a$,"webWorkerIntegration",0,mE,"winjsStackLineParser",0,iH,"withActiveSpan",0,oT,"withIsolationScope",()=>Z.withIsolationScope,"withScope",()=>Z.withScope,"withStreamedSpan",0,t8,"zodErrorsIntegration",0,dK],148132),e.i(148132);var mk=e_;let mI="ui.react.render",mx="ui.react.mount";class mC extends mk.Component{constructor(e){super(e);const{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=oS({name:`<${t}>`,onlyIfParent:!0,op:mx,attributes:{[tK.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){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=(0,nm.timestampInSeconds)();this._updateSpan=oT(this._mountSpan,()=>oS({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[tK.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(){let e=(0,nm.timestampInSeconds)(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=(0,tX.spanToJSON)(this._mountSpan).timestamp;oT(this._mountSpan,()=>{let r=oS({onlyIfParent:!0,name:`<${t}>`,op:mI,startTime:n,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}}function mA(e,t){let n=t?.name||e.displayName||e.name||"unknown",r=r=>mk.createElement(mC,{...t,name:n,updateProps:r},mk.createElement(e,{...r}));return r.displayName=`profiler(${n})`,eD(r,e),r}function mR(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=mk.useState(()=>{if(!t?.disabled)return oS({name:`<${e}>`,onlyIfParent:!0,op:mx,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}})});mk.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=(0,tX.spanToJSON)(n).timestamp,r=(0,nm.timestampInSeconds)(),i=oS({name:`<${e}>`,onlyIfParent:!0,op:mI,startTime:t,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}});i&&i.end(r)}}),[])}Object.assign(mC,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});let mO={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function mN(e){let t={...mO,...e};return e=>(n,r)=>{function i(e){return(n,r)=>{let i=e(n,r),o=(0,Z.getCurrentScope)(),a=t.actionTransformer(r);null!=a&&rO({category:"redux.action",data:a,type:"info"});let s=t.stateTransformer(i);if(null!=s){let e=(0,Z.getClient)(),t=e?.getOptions(),n=t?.normalizeDepth||3,r={state:{type:"redux",value:s}};(0,cG.setNormalizationDepthOverrideHint)(r,3+n),o.setContext("state",r)}else o.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(o,i),i}}t.attachReduxState&&(0,Z.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});let o=e(i(n),r);return o.replaceReducer=new Proxy(o.replaceReducer,{apply:function(e,t,n){e.apply(t,[i(n[0])])}}),o}}function mP(e){let t=a6({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:i,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),o&&ef.location&&mM(r,ef.location,i,(t,n="url")=>{a8(e,{name:t,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v3",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n,..."route"===n&&{[rj]:t}}})}),a&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&mM(r,t,i,(t,n="url")=>{a7(e,{name:t,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v3",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n,..."route"===n&&{[rj]:t}}})})})}}}function mM(e,t,n,r){let i=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(i);let o=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),n=-1;for(let e=t.length-1;e>=0;e--){let r=t[e];if(r.path?.startsWith("/")){n=e;break}}return t.slice(n).reduce((e,{path:t})=>{let n="/"===e||""===e?t:`/${t}`;return`${e}${n}`},"")}(n.routes||[]);return 0===o.length||"/*"===o?r(i):r(i=o,"route")})}function mD(e,t={}){let n=a6({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:r=!0,instrumentNavigation:i=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let o=(t,n)=>{let r=e.matchRoutes(t,n,{preload:!1,throwOnError:!1}),i=r[r.length-1];return i?.routeId!=="__root__"?i:void 0},a=(t,n,r,i)=>{var o;let a;t.updateName(n?n.routeId:i),t.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n?"route":"url"),t.setAttributes({...n&&{[rj]:n.routeId}
558,...(a=mL(e,o=r),{[rU]:o.pathname,[rB]:rz(a)}),...mB(n)})},s=ef.location;if(r&&s){let n=e.state?.location,r=n?o(n.pathname,n.search):o(s.pathname,e.options.parseSearch(s.search)),i=a8(t,{name:r?r.routeId:s.pathname,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.tanstack_router",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r?"route":"url",...r&&{[rj]:r.routeId},...mB(r)}}),l=e.subscribe("onResolved",e=>{if(l(),!i)return;let{toLocation:t}=e;a(i,o(t.pathname,t.search),t,t.pathname)})}if(i){let n;e.subscribe("onBeforeLoad",r=>{let{toLocation:i,fromLocation:s}=r;if(!s||i.state===s.state)return;let l=o(i.pathname,i.search),u=ef.location?.pathname||i.pathname;n?a(n,l,i,u):n=a7(t,{name:l?l.routeId:u,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.tanstack_router",[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:l?"route":"url",...l&&{[rj]:l.routeId},...mB(l)}},{url:mL(e,i)})}),e.subscribe("onResolved",e=>{let t=n;if(n=void 0,!t)return;let{toLocation:r}=e,i=o(r.pathname,r.search);i&&a(t,i,r,ef.location?.pathname||r.pathname)})}}}}function mL(e,t){let n=e.options.stringifySearch?.(t.search)??"";return sr(`${t.pathname}${n&&"?"!==n?n:""}`)}function mB(e){if(!e)return{};let t={};return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n,t[`url.path.parameter.${e}`]=n,t[`params.${e}`]=n}),t}function mU(e){let t=a6({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:i,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),mF(e,o,a,n,"reactrouter_v4",r,i)}}}function mj(e){let t=a6({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:i,instrumentPageLoad:o=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),mF(e,o,a,n,"reactrouter_v5",r,i)}}}function mF(e,t,n,r,i,o=[],a){function s(e){if(0===o.length||!a)return[e,"url"];for(let t of function e(t,n,r,i=[]){return t.some(t=>{let o=t.path?r(n,t):i.length?i[i.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return o&&(i.push({route:t,match:o}),t.routes&&e(t.routes,n,r,i)),!!o}),i}(o,e,a))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=r.location?r.location.pathname:ef.location?ef.location.pathname:void 0;if(t){let[n,r]=s(t);a8(e,{name:n,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.${i}`,[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,..."route"===r&&{[rj]:n}}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,r]=s(t.pathname);a7(e,{name:n,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.${i}`,[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,..."route"===r&&{[rj]:n}}})}})}function m$(e){let t=e.displayName||e.name,n=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,n=function(){let e=(0,tX.getActiveSpan)(),t=e&&(0,tX.getRootSpan)(e);if(!t)return;let n=(0,tX.spanToJSON)(t).op;return"navigation"===n||"pageload"===n?t:void 0}();(0,Z.getCurrentScope)().setTransactionName(e),n&&(n.updateName(e),n.setAttributes({[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[rj]:e}))}return e_.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,eD(n,e),n}function mq(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}let mH=new WeakMap;function mz(e,t){return void 0!==e&&void 0!==t&&(!!mW.test(t)||e===t)}function mG(e){return e.split("/").filter(Boolean)}let mW=/^:[\w-]+$/;function mV(e){let t=e.split("/"),n=t.length;for(let e of(t.includes("*")&&(n+=-2),t))if("*"===e)continue;else mW.test(e)?n+=3:""===e?n+=1:n+=10;return n}let mJ=!1,mY=[];function mK(){let e=mY.length;return e>0?mY[e-1]??null:null}function mX(e){return e.params["*"]||""}function mQ(e){return"*"===e[e.length-1]?e.slice(0,-1):e}function mZ(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function m0(e){return e.endsWith("*")}function m1(e){return e.includes("/*")||e.endsWith("*")}function m2(e,t){return m0(e)&&!!t.route.children?.length||!1}function m3(e){return!!(!e.children&&e.element&&e.path?.endsWith("/*"))}function m5(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function m4(e){return"/"===e[0]?e:`/${e}`}function m6(e,t){let n=S(e,t);
558if(!n||0===n.length)return"";for(let r of n)if(r.route.path&&"*"!==r.route.path){let n=mQ(r.route.path||""),i=mq(t.pathname,m4(r.pathnameBase));if(t.pathname===i)return mZ(i);return mZ(mZ(n||"")+m4(m6(e.filter(e=>e!==r.route),{pathname:i})))}return""}function m8(e,t){return mJ?mq(e.pathname,t):e.pathname||""}function m7(e,t,n,r,i="",o,a){let s;if(a&&o&&o.length>0){let t=function(e,t,n){if(!e||!t?.length)return null;let r=n?mq(e,n):e,i=mH.get(t);for(let e of(!i&&(i=[...t].sort((e,t)=>{let n=mV(e);return mV(t)-n}),mH.set(t,i),ev&&ee.debug.log("[React Router] Sorted route manifest by specificity:",i.length,"patterns")),i))if(function(e,t){if("/"===t)return"/"===e||""===e;let n=mG(e),r=mG(t);if(r.length>0&&"*"===r[r.length-1]){let e=r.slice(0,-1);if(n.length<e.length)return!1;for(let[t,r]of e.entries())if(!mz(n[t],r))return!1;return!0}if(n.length!==r.length)return!1;for(let[e,t]of r.entries())if(!mz(n[e],t))return!1;return!0}(r,e))return ev&&ee.debug.log("[React Router] Matched pathname",r,"to pattern",e),e;return ev&&ee.debug.log("[React Router] No manifest match found for pathname:",r),null}(e.pathname,o,i);if(t)return[(mJ?"":i)+t,"route"]}let l="url",u=function(e,t){let n=S(t,e);if(n){for(let e of n)if(m3(e.route)&&mX(e))return!0}return!1}(e,n);u&&(s=m4(m6(n,e)),l="route"),u&&s||([s,l]=function(e,t,n,r=""){if(!e||0===e.length)return[mJ?mq(t.pathname,r):t.pathname,"url"];if(!n)return[m8(t,r),"url"];let i="";for(let e of n){let n=e.route;if(!n)continue;if(n.index)return function(e,t,n){let r=e&&e.length>0?e:mJ?mq(t,n):t,i="/*"===r.slice(-2)?r.slice(0,-2):r;return i.length>1&&"/"===i[i.length-1]&&(i=i.slice(0,-1)),[i,"route"]}(i,e.pathname,r);let o=n.path;if(!o||m2(o,e))continue;let a="/"===o[0]||"/"===i[i.length-1]?o:`/${o}`;if(i=mZ(i)+m4(a),mZ(t.pathname)===mZ(r+e.pathname)){if(m5(i)!==m5(e.pathname)&&!m0(i))return[(mJ?"":r)+a,"route"];return m2(i,e)&&(i=i.slice(0,-1)),[(mJ?"":r)+i,"route"]}}return[m8(t,r),"url"]}(t,e,r,i));let c=function(e,t,n){let r=t.filter(m3);if(!r.length)return;let i=S(r,e),o=i?.[i.length-1];if(!o||!mX(o))return;let a=mZ(mQ(o.route.path||""));if(!a)return;let s=m4(a),l=a.split("/")[0],u=l?.startsWith(":")&&n?.split("/").includes(l);if(n===s||n?.startsWith(`${s}/`)||u)return;let c=mq(e.pathname,m4(o.pathnameBase))||"/",d=m6(t.filter(e=>e!==o.route),{pathname:c});return d?m4(`${a}${m4(d)}`):void 0}(e,n,s);return c?[c,"route"]:[s||e.pathname,l]}function m9(){let e=(0,tX.getActiveSpan)(),t=e?(0,tX.getRootSpan)(e):void 0;if(!t)return;let n=(0,tX.spanToJSON)(t).op;return"navigation"===n||"pageload"===n?t:void 0}function ye(e,t){if(e.handle&&"object"==typeof e.handle)for(let n of Object.keys(e.handle)){let r=e.handle[n];"function"!=typeof r||r.__sentry_proxied__||(e.handle[n]=function(e,t,n,r){let i=new Proxy(e,{apply(e,i,o){let a,s=function(){let e=mK();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==ef)try{let e=ef.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{ev&&ee.debug.warn("[React Router] Could not access window.location")}return null}(),l=(a=mK())?a.span:m9(),u=e.apply(i,o);return function(e,t,n,r,i,o){(0,eu.isThenable)(e)?e.then(e=>{Array.isArray(e)&&r(e,t,i??void 0,o)}).catch(e=>{ev&&ee.debug.warn(`Error resolving async handler '${n}' for route`,t,e)}):Array.isArray(e)&&r(e,t,i??void 0,o)}(u,t,n,r,s,l),u}});return(0,es.addNonEnumerableProperty)(i,"__sentry_proxied__",!0),i}(r,e,n,t))}if(Array.isArray(e.children))for(let n of e.children)ye(n,t)}let yt=!1,yn=3e3,yr="",yi=new WeakSet,yo=ef?.document?e_.useLayoutEffect:e_.useEffect,ya=new WeakMap,ys=new Set,yl=new WeakMap,yu=new WeakMap;function yc(e){ef?.cancelAnimationFrame?ef.cancelAnimationFrame(e):clearTimeout(e)}function yd(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function yp(e){return e.includes(":")||e.includes("*")}function yf(e,t){let 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 yh(e,t){let n=yl.get(e);n||(n=new Set,yl.set(e,n)),n.add(t),t.finally(()=>{let n=yl.get(e);n&&n.delete(t)})}function yg(e){let t=new Promise(t=>{yu.set(e,t)});yh(e,t)}
558function ym(e,t,n=null,r){e.forEach(e=>{ys.add(e),yt&&ye(e,ym)}),t&&yf(e,t);let i=r??m9();if(i){let e=(0,tX.spanToJSON)(i);if(e.timestamp){ev&&ee.debug.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}let t=e.op,o=n;if(!o&&!r&&void 0!==ef){let e=ef.location;e?.pathname&&(o={pathname:e.pathname})}o&&("pageload"===t?yx({activeRootSpan:i,location:{pathname:o.pathname},routes:Array.from(ys),allRoutes:Array.from(ys)}):"navigation"===t&&yy(i,o,Array.from(ys),!1,I))}}function yy(e,t,n,r=!1,i){let o=(0,tX.spanToJSON)(e),a=o.description,s=e?.__sentry_navigation_name_set__,l=a&&m1(a);if((!s||r||l)&&!o.timestamp){let r=i(n,t),[u,c]=m7(t,n,n,r||[],yr,x,yt),d=o.data?.[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];u&&(!a||!s&&("route"!==d||"route"===c)||"route"!==d&&"route"===c||"route"===d&&"route"===c&&l)&&(e.updateName(u),e.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,c),"route"===c&&e.setAttribute(rj,u),m1(u)||"route"!==c||(0,es.addNonEnumerableProperty)(e,"__sentry_navigation_name_set__",!0))}}function y_(e,t,n,r,i){let o=!1,a=!!i&&"pageload"===(0,tX.spanToJSON)(i).op,s=!1,l=null,u=null;e.subscribe(e=>{if(!o){let t=m9();t&&"pageload"===(0,tX.spanToJSON)(t).op?a=!0:a&&("POP"!==e.historyAction||s?o=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&o){let i=yd(e.location),o=()=>{u!==i&&(u=i,l=null,yw({location:e.location,routes:t,navigationType:e.historyAction,version:n,basename:r,allRoutes:Array.from(ys)}))};if("idle"!==e.navigation.state)u!==i&&(u=null),null!==l&&yc(l),l=ef?.requestAnimationFrame?ef.requestAnimationFrame(o):setTimeout(o,0);else null!==l&&(yc(l),l=null),o()}})}function yv(e,t){return E&&T&&w&&I?function(n,r){if(yk(n),yt)for(let e of n)ye(e,ym);let i=m9();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&i&&((0,es.addNonEnumerableProperty)(i,"__sentry_may_have_lazy_routes__",!0),yg(i));let o=e(n,yT(r,!1,i)),a=r?.basename;return"POP"===o.state.historyAction&&i&&yx({activeRootSpan:i,location:o.state.location,routes:n,basename:a,allRoutes:Array.from(ys)}),yr=a||"",y_(o,n,t,a,i),o}:(ev&&ee.debug.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function yb(e,t){return E&&T&&w&&I?function(n,r){let i;if(yk(n),yt)for(let e of n)ye(e,ym);let o=m9();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&o&&((0,es.addNonEnumerableProperty)(o,"__sentry_may_have_lazy_routes__",!0),yg(o));let a=e(n,yT(r,!0,o)),s=r?.basename,l=r?.initialEntries,u=r?.initialIndex,c=l?.length===1,d=void 0!==u&&l?.[u],p=(i=c?l[0]:d?l[u]:void 0)?"string"==typeof i?{pathname:i}:i:a.state.location,f=m9();return"POP"===a.state.historyAction&&f&&yx({activeRootSpan:f,location:p,routes:n,basename:s,allRoutes:Array.from(ys)}),yr=s||"",y_(a,n,t,s,f),a}:(ev&&ee.debug.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function yS(e,t){let n=a6({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:i,useNavigationType:o,createRoutesFromChildren:a,matchRoutes:s,stripBasename:l,enableAsyncRouteHandlers:u=!1,instrumentPageLoad:c=!0,instrumentNavigation:d=!0,lazyRouteTimeout:p,lazyRouteManifest:f}=e;return{...n,setup(t){n.setup(t);let c=e.finalTimeout??3e4,d=(e.idleTimeout??1e3)*3,h=p??d;h===1/0?(yn=c,ev&&ee.debug.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",c,"ms to prevent indefinite hangs")):Number.isNaN(h)?(ev&&ee.debug.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",d),yn=d):h<0?(ev&&ee.debug.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",h,"falling back to:",d),yn=d):yn=h,E=r,T=i,w=o,I=s,k=a,yt=u,x=f,function(e,t=!1){S=e,mJ=t}(s,l||!1)},afterAllSetup(e){n.afterAllSetup(e);let r=ef.location?.pathname;c&&r&&a8(e,{name:r,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.reactrouter${t?`_v${t}`:""}`}}),d&&yi.add(e)}}}function yE(e,t){if(!E||!T||!w||!I)return ev&&ee.debug.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` be
558cause of one or more missing parameters."),e;let n=n=>{let r=e_.useRef(!0),{routes:i,locationArg:o}=n,a=e(i,o),s=T(),l=w(),u="string"==typeof o||o?.pathname?o:s;return yo(()=>{let e=yk(i);return()=>yI(e)}),yo(()=>{let e="string"==typeof u?{pathname:u}:u;r.current?(yx({activeRootSpan:m9(),location:e,routes:i,allRoutes:Array.from(ys)}),r.current=!1):yw({location:e,routes:i,navigationType:l,version:t,allRoutes:Array.from(ys)})},[l,u]),a};return(e,t)=>e_.createElement(n,{routes:e,locationArg:t})}function yT(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let i=e?.path,o=m9()??n;if(!t){let t=e?.patch,n=e?.matches;t&&(e.patch=(e,r)=>{if(yk(r),n&&n.length>0){let t=n[n.length-1],i=t?.route;if(i){let t=Array.from(ys).find(t=>{let n=void 0!==t.id&&t.id===e,r=t===i,o=void 0!==t.path&&void 0!==i.path&&t.path===i.path;return n||r||o});t&&yf(r,t)}}let a=o?(0,tX.spanToJSON)(o):void 0;return i&&o&&a&&!a.timestamp&&"navigation"===a.op&&yy(o,{pathname:i,search:"",hash:"",state:null,key:"default"},Array.from(ys),!0,I),t(e,r)})}let a=(async()=>{let t,n,a=(n={},mY.length>=10&&(ev&&ee.debug.warn("[React Router] Navigation context stack overflow - removing oldest context"),mY.shift()),mY.push({token:n,targetPath:i,span:o}),n);try{t=await r(e)}finally{let e,t;e=mY[mY.length-1],e?.token===a&&mY.pop(),o&&(t=yu.get(o))&&(t(),yu.delete(o),o.__sentry_may_have_lazy_routes__&&(o.__sentry_may_have_lazy_routes__=!1))}let s=o?(0,tX.spanToJSON)(o):void 0;return o&&s&&!s.timestamp&&"navigation"===s.op&&i&&yy(o,{pathname:i,search:"",hash:"",state:null,key:"default"},Array.from(ys),!1,I),t})();return o&&yh(o,a),a}}}function yw(e){let{location:t,routes:n,navigationType:r,version:i,matches:o,basename:a,allRoutes:s}=e,l=Array.isArray(o)?o:I(s||n,t,a),u=(0,Z.getClient)();if(!u||!yi.has(u))return;let c=m9();if((!c||"pageload"!==(0,tX.spanToJSON)(c).op||"POP"!==r)&&("PUSH"===r||"POP"===r)&&l){let e,[r,o]=m7(t,s||n,s||n,l,a,x,yt),c=yd(t),d=ya.get(u),p=!!d&&!d.isPlaceholder&&!!(0,tX.spanToJSON)(d.span).timestamp,{skip:f,shouldUpdate:h}=function(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){let t=!!e.routeName&&m1(e.routeName),r=m1(n),i=!!e.routeName&&yp(e.routeName),o=yp(n),a=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!r;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!r||!i&&o||a))}}return{skip:!1,shouldUpdate:!1}}(d,c,r,p);if(f){if(h&&d){let e=d.routeName;d.isPlaceholder?(d.routeName=r,ev&&ee.debug.log(`[Tracing] Updated placeholder navigation name from "${e}" to "${r}" (will apply to real span)`)):(d.span.updateName(r),d.span.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,o),"route"===o&&d.span.setAttribute(rj,r),(0,es.addNonEnumerableProperty)(d.span,"__sentry_navigation_name_set__",!0),d.routeName=r,ev&&ee.debug.log(`[Tracing] Updated navigation span name from "${e}" to "${r}"`))}else ev&&ee.debug.log(`[Tracing] Skipping duplicate navigation for location: ${c}`);return}let g={span:{end:()=>{}},routeName:r,pathname:t.pathname,locationKey:c,isPlaceholder:!0};ya.set(u,g);try{e=a7(u,{name:g.routeName,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o,[tK.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.reactrouter${i?`_v${i}`:""}`,..."route"===o&&{[rj]:g.routeName}}})}catch(e){throw ya.delete(u),e}e?(ya.set(u,{span:e,routeName:g.routeName,pathname:t.pathname,locationKey:c}),yA(e,t,n,a,"navigation")):ya.delete(u)}}function yk(e){let t=[];return e.forEach(e=>{(function e(t,n=new Set){return n.has(t)||(n.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,n).forEach(e=>{n.add(e)})})),n})(e).forEach(e=>{ys.add(e),t.push(e)})}),t}function yI(e){e.forEach(e=>{ys.delete(e)})}function yx({activeRootSpan:e,location:t,routes:n,matches:r,basename:i,allRoutes:o}){let a=Array.isArray(r)?r:I(o||n,t,i);if(a){let[r,s]=m7(t,o||n,o||n,a,i,x,yt);(0,Z.getCurrentScope)().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,s),"route"===s&&e.setAttribute(rj,r),yA(e,t,n,i,"pageload"))}else e&&yA(e,t,n,i,"pageload")}function yC(e,t,n,r,i,o,a,s){try{let l=t.data?.[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if("route"===l&&n&&!m1(n))return;let u=Array.from(s),c=u.length>0?u:i,d=I(c,r,o);if(!d)return;let[p,f]=m7(r,c,c,d,o,x,yt),h=function(e,t,n,r,i=!1){return!!n&&(!!(!e&&i||e&&m1(e)&&"route"===r&&!m1(n))||"route"!==t&&"route"===r)}
558(n,l,p,f,!0),g="pageload"===a||!t.timestamp;h&&g&&(e.updateName(p),e.setAttribute(tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,f),"route"===f&&e.setAttribute(rj,p))}catch(e){ev&&ee.debug.warn(`Error updating span details before ending: ${e}`)}}function yA(e,t,n,r,i){let o=`__sentry_${i}_end_patched__`;if(e?.[o]||!e.end)return;let a=e.end.bind(e),s=!1;e.end=function(...o){if(s)return;s=!0;let l=o.length>0?o[0]:Date.now()/1e3,u=(0,tX.spanToJSON)(e),c=u.description,d=u.data?.[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],p=()=>{let t=(0,Z.getClient)();if(t&&"navigation"===i){let n=ya.get(t);n&&n.span===e&&ya.delete(t)}},f=yl.get(e),h=e.__sentry_may_have_lazy_routes__;if((f&&f.size>0||h)&&c&&(m1(c)||"route"!==d)){let o;if(0===yn){yC(e,u,c,t,n,r,i,ys),p(),a(l);return}let s=new Promise(e=>setTimeout(e,yn));if(f&&f.size>0){let e=Promise.allSettled(f).then(()=>{});o=yn===1/0?e:Promise.race([e,s])}else o=s;o.then(()=>{let o=(0,tX.spanToJSON)(e);yC(e,o,o.description,t,n,r,i,ys),p(),a(l)}).catch(()=>{p(),a(l)});return}yC(e,u,c,t,n,r,i,ys),p(),a(l)},(0,es.addNonEnumerableProperty)(e,o,!0)}function yR(e,t){if(!E||!T||!w||!k||!I)return ev&&ee.debug.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
559      useEffect: ${E}. useLocation: ${T}. useNavigationType: ${w}.
560      createRoutesFromChildren: ${k}. matchRoutes: ${I}.`),e;let n=n=>{let r=e_.useRef(!0),i=T(),o=w(),a=k(n.children);return yo(()=>{let e=yk(a);return()=>yI(e)}),yo(()=>{r.current?(yx({activeRootSpan:m9(),location:i,routes:a,allRoutes:Array.from(ys)}),r.current=!1):yw({location:i,routes:a,navigationType:o,version:t,allRoutes:Array.from(ys)})},[i,o]),e_.createElement(e,{...n})};return eD(n,e),n}function yO(e){return yS(e,"6")}function yN(e){return yE(e,"6")}function yP(e){return yv(e,"6")}function yM(e){return yb(e,"6")}function yD(e){return yR(e,"6")}function yL(e){return yS(e,"7")}function yB(e){return yR(e,"7")}function yU(e){return yv(e,"7")}function yj(e){return yb(e,"7")}function yF(e){return yE(e,"7")}function y$(e){return yS(e,"")}function yq(e){return yR(e,"")}function yH(e){return yv(e,"")}function yz(e){return yb(e,"")}function yG(e){return yE(e,"")}e.s(["BrowserClient",0,rd,"ErrorBoundary",0,eB,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,uE,"OpenFeatureIntegrationHook",0,mg,"Profiler",0,mC,"SDK_VERSION",()=>tM.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>uk.Scope,"WINDOW",0,ef,"addBreadcrumb",0,rO,"addEventProcessor",()=>et.addEventProcessor,"addIntegration",0,tF,"bindScopeToEmitter",0,uA,"breadcrumbsIntegration",0,ie,"browserApiErrorsIntegration",0,ir,"browserProfilingIntegration",0,mu,"browserSessionIntegration",0,id,"browserTracingIntegration",0,a6,"buildLaunchDarklyFlagUsedHandler",0,mf,"captureConsoleIntegration",0,uN,"captureEvent",()=>et.captureEvent,"captureException",()=>et.captureException,"captureFeedback",0,sP,"captureMessage",()=>et.captureMessage,"captureReactException",0,eb,"captureSession",()=>et.captureSession,"chromeStackLineParser",0,iU,"close",()=>et.close,"consoleLoggingIntegration",0,uB,"contextLinesIntegration",0,pt,"continueTrace",0,oE,"createConsolaReporter",0,uj,"createLangChainCallbackHandler",0,cz,"createReduxEnhancer",0,mN,"createTransport",0,n$,"createUserFeedbackEnvelope",0,dQ,"cultureContextIntegration",0,ig,"dedupeIntegration",0,tZ,"defaultRequestInstrumentationOptions",0,a0,"defaultStackLineParsers",0,iJ,"defaultStackParser",0,iY,"diagnoseSdkConnectivity",0,mS,"elementTimingIntegration",0,gF,"endSession",()=>et.endSession,"eventFiltersIntegration",0,tz,"eventFromException",0,rs,"eventFromMessage",0,rl,"exceptionFromError",0,rn,"extraErrorDataIntegration",0,cW,"featureFlagsIntegration",0,cX,"feedbackAsyncIntegration",0,ub,"feedbackIntegration",0,uS,"feedbackSyncIntegration",0,uS,"fetchStreamPerformanceIntegration",0,aP,"flush",()=>et.flush,"forceLoad",0,i6,"functionToStringIntegration",0,tY,"geckoStackLineParser",0,i$,"getAbsoluteUrl",0,sr,"getActiveSpan",()=>tX.getActiveSpan,"getClient",()=>Z.getClient,"getCurrentScope",()=>Z.getCurrentScope,"getDefaultIntegrations",0,i5,"getFeedback",0,ll,"getGlobalScope",()=>Z.getGlobalScope,"getIsolationScope",()=>Z.getIsolationScope,"getReplay",0,gd,"getRootSpan",()=>tX.getRootSpan,"getSpanDescendants",()=>tX.getSpanDescendants,"getSpanStatusFromHttpCode",()=>op.getSpanStatusFromHttpCode,"getTraceData",0,az,"globalHandlersIntegration",0,iT,"graphqlClientIntegration",0,ps,"growthbookIntegration",0,mv,"httpClientIntegration",0,d4,"httpContextIntegration",0,iC,"inboundFiltersIntegration",0,tG,"init",0,i7,"instrumentAnthropicAiClient",0,c8,"instrumentCreateReactAgent",0,dn,"instrumentGoogleGenAIClient",0,dc,"instrumentLangChainEmbeddings",0,dp,"instrumentLangGraph",0,dr,"instrumentOpenAiClient",0,dy,"instrumentOutgoingRequests",0,a1,"instrumentStateGraph",0,dr,"instrumentSupabaseClient",0,dx,"isBotUserAgent",0,a5,"isEnabled",()=>et.isEnabled,"isInitialized",()=>et.isInitialized,"lastEventId",()=>et.lastEventId,"launchDarklyIntegration",0,mp,"lazyLoadIntegration",0,uv,"linkedErrorsIntegration",0,iN,"logger",()=>dB,"makeBrowserOfflineTransport",0,gJ,"makeFetchTransport",0,i1,"makeMultiplexedTransport",0,uw,"metrics",()=>dj,"moduleMetadataIntegration",0,dz,"normalizeStringifyValue",0,i3,"onLoad",0,i8,"openFeatureIntegration",0,mh,"opera10StackLineParser",0,iG,"opera11StackLineParser",0,iV,"parameterize",0,dL,"reactErrorHandler",0,eS,"reactRouterBrowserTracingIntegration",0,y$,"reactRouterV3BrowserTracingIntegration",0,mP,"reactRouterV4BrowserTracingIntegration",0,mU,"reactRouterV5BrowserTracingIntegration",0,mj,"reactRouterV6BrowserTracingIntegration",0,yO,"reactRouterV7BrowserTracingIntegration",0,yL,"registerSpanErrorInstrumentation",0,oU,"registerWebWorker",0,mw,"replayCanvasIntegration",0,gj,"replayIntegration",0,gl,"reportPageLoaded",0,g$,"reportingObserverIntegration",0,d1,"rewriteFramesIntegration",0,sx,"sendFeedback",0,s7,"setActiveSpanInBrowser",0,gq,"setAttribute",()=>et.setAttribute,"setAttributes",()=>et.setAttributes,"setContext",()=>et.setContext,"setConversationId",()=>et.setConversationId,"setCurrentClient",0,t5,"setExtra",()=>et.setExtra,"setExtras",()=>et.setExtras,"setHttpStatus",()=>op.setHttpStatus,"setMeasurement",0,oa,"setTag",()=>
560et.setTag,"setTags",()=>et.setTags,"setUser",()=>et.setUser,"showReportDialog",0,ey,"spanStreamingIntegration",0,gz,"spanToBaggageHeader",()=>t6.spanToBaggageHeader,"spanToJSON",()=>tX.spanToJSON,"spanToTraceHeader",()=>tX.spanToTraceHeader,"spotlightBrowserIntegration",0,md,"startBrowserTracingNavigationSpan",0,a7,"startBrowserTracingPageLoadSpan",0,a8,"startInactiveSpan",0,oS,"startNewTrace",0,oI,"startSession",()=>et.startSession,"startSpan",0,ov,"startSpanManual",0,ob,"statsigIntegration",0,mb,"supabaseIntegration",0,dC,"suppressTracing",0,ow,"tanstackRouterBrowserTracingIntegration",0,mD,"thirdPartyErrorFilterIntegration",0,dG,"uiProfiler",0,dX,"unleashIntegration",0,mm,"updateSpanName",()=>tX.updateSpanName,"useProfiler",0,mR,"viewHierarchyIntegration",0,pl,"webVitalsIntegration",0,a$,"webWorkerIntegration",0,mE,"winjsStackLineParser",0,iH,"withActiveSpan",0,oT,"withErrorBoundary",0,eU,"withIsolationScope",()=>Z.withIsolationScope,"withProfiler",0,mA,"withScope",()=>Z.withScope,"withSentryReactRouterV6Routing",0,yD,"withSentryReactRouterV7Routing",0,yB,"withSentryRouting",0,m$,"withStreamedSpan",0,t8,"wrapCreateBrowserRouter",0,yH,"wrapCreateBrowserRouterV6",0,yP,"wrapCreateBrowserRouterV7",0,yU,"wrapCreateMemoryRouter",0,yz,"wrapCreateMemoryRouterV6",0,yM,"wrapCreateMemoryRouterV7",0,yj,"wrapReactRouterRouting",0,yq,"wrapUseRoutes",0,yG,"wrapUseRoutesV6",0,yN,"wrapUseRoutesV7",0,yF,"zodErrorsIntegration",0,dK],351955),e.i(351955);var yW=e.i(82809),yV=e.i(826154),yJ=e.i(447116),yY=e.i(818793);function yK(){return V.default.env.NEXT_PHASE===yY.PHASE_PRODUCTION_BUILD}function yX(e){let t=yK(),n=!!e&&function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),n=t>>1&63,r=Array(6);for(let e=0;e<6;e++){let t=n>>5-e&1;r[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:r,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return n&&oe.DEBUG_BUILD&&ee.debug.log("Skipping span creation in Cache Components context"),t||n}function yQ(){return new oi.SentryNonRecordingSpan({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}async function yZ(e,t,n){return(0,Z.withIsolationScope)(async r=>{let i,o,a=(0,Z.getClient)()?.getDataCollectionOptions().httpBodies.includes("outgoingResponse"),s={};try{let e=await t.headers;i=e?.get("sentry-trace")??void 0,o=e?.get("baggage"),e?.forEach((e,t)=>{s[t]=e})}catch{oe.DEBUG_BUILD&&ee.debug.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return r.setTransactionName(`serverAction/${e}`),r.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),((0,tX.getActiveSpan)()?(e,t)=>t():oE)({sentryTrace:i,baggage:o},async()=>{try{return await ov({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.server_action"}},async e=>{let r=await om(n,t=>{ot(t)?e.setStatus({code:op.SPAN_STATUS_ERROR,message:"not_found"}):on(t)?(e.setStatus({code:op.SPAN_STATUS_OK}),e.end()):(e.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"}),(0,et.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:a)&&(0,Z.getIsolationScope)().setExtra("server_action_result",r),t.formData&&t.formData.forEach((e,t)=>{(0,Z.getIsolationScope)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),r})}finally{(0,yV.waitUntil)((0,yV.flushSafelyWithTimeout)())}})})}function y0(e,t){let n=(0,Z.getCurrentScope)(),r=(0,Z.getClient)();if(r)if(r.captureCheckIn)return r.captureCheckIn(e,t,n);else tL.DEBUG_BUILD&&ee.debug.warn("Cannot capture check-in. Client does not support sending check-ins.");else tL.DEBUG_BUILD&&ee.debug.warn("Cannot capture check-in. No client defined.");return(0,el.uuid4)()}function y1(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,et.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function y2(e,t,n,r){return async function(...n){let i=(0,yW.httpRequestToRequestData)(t);(0,Z.getCurrentScope)().setTransactionName(`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`),(0,Z.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:i});let o=(0,tX.getActiveSpan)();o&&"/_error"!==r.requestedRouteName&&(0,tX.getRootSpan)(o).setAttribute("sentry.route_backfill",r.requestedRouteName);let{"sentry-trace":a,baggage:s}=az();return{sentryTrace:a,baggage:s,data:await e.apply(this,n)}}}async function y3(e,t){try{return await e(...t)}catch(e){throw(0,et.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}function y5(e,t){(0,eu.isObjectLike)(e)&&(0,es.addNonEnumerableProperty)(e,"__sentry_event_id__",t)}e.s(["BrowserClient",0,rd,"ErrorBoundary",0,eB,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,uE,"OpenFeatureIntegrationHook",0,mg,"Profiler",0,mC,"SDK_VERSION",()=>tM.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>uk.Scope,"WINDOW",0,ef,"addBreadcrumb",0,rO,"addEventProcessor",()=>et.addEventProcessor,"addIntegration",0,tF,"bindScopeToEmitter",0,uA,"breadcrumbsIntegration",0,ie,"browserApiErrorsIntegration",0,ir,"browserProfilingIntegration",0,mu,"browserSessionIntegration",0,id,"browserTracingIntegration",0,sT,"buildLaunchDarklyFlagUsedHandler",0,mf,"captureConsoleIntegration",0,uN,"captureEvent",()=>et.captureEvent,"captureException",()=>et.captureException,"captureFeedback",0,sP,"captureMessage",()=>et.captureMessage,"captureReactException",0,eb,"captureRequestError",0,function(e,t,n){(0,Z.withScope)(r=>{r.setSDKProcessingMetadata({normalizedRequest:{headers:(0,yW.headersToDict)(t.headers),method:t.method}}),r.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),r.setTransactionName(`${t.method} ${n.routePath}`),(0,et.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),(0,yV.waitUntil)((0,yV.flushSafelyWithTimeout)())})},"captureRouterTransitionStart",0,function(e,t){A&&A(e,t)},"captureSession",()=>et.captureSession,"captureUnderscoreErrorException",()=>yJ.captureUnderscoreErrorException,"chromeStackLineParser",0,iU,"close",()=>et.close,"consoleLoggingIntegration",0,uB,"contextLinesIntegration",0,pt,"continueTrace",0,oE,"createConsolaReporter",0,uj,"createLangChainCallbackHandler",0,cz,"createReduxEnhancer",0,mN,"createTransport",0,n$,"createUserFeedbackEnvelope",0,dQ,"cultureContextIntegration",0,ig,"dedupeIntegration",0,tZ,"defaultRequestInstrumentationOptions",0,a0,"defaultStackLineParsers",0,iJ,"defaultStackParser",0,iY,"diagnoseSdkConnectivity",0,mS,"elementTimingIntegration",0,gF,"endSession",()=>et.endSession,"eventFiltersIntegration",0,tz,"eventFromException",0,rs,"eventFromMessage",0,rl,"exceptionFromError",0,rn,"extraErrorDataIntegration",0,cW,"featureFlagsIntegration",0,cX,"feedbackAsyncIntegration",0,ub,"feedbackIntegration",0,uS,"feedbackSyncIntegration",0,uS,"fetchStreamPerformanceIntegration",0,aP,"flush",()=>et.flush,"forceLoad",0,i6,"functionToStringIntegration",0,tY,"geckoStackLineParser",0,i$,"getAbsoluteUrl",0,sr,"getActiveSpan",()=>tX.getActiveSpan,"getClient",()=>Z.getClient,"getCurrentScope",()=>Z.getCurrentScope,"getDefaultIntegrations",0,i5,"getFeedback",0,ll,"getGlobalScope",()=>Z.getGlobalScope,"getIsolationScope",()=>Z.getIsolationScope,"getReplay",0,gd,"getRootSpan",()=>tX.getRootSpan,"getSpanDescendants",()=>tX.getSpanDescendants,"getSpanStatusFromHttpCode",()=>op.getSpanStatusFromHttpCode,"getTraceData",0,az,"globalHandlersIntegration",0,iT,"graphqlClientIntegration",0,ps,"growthbookIntegration",0,mv,"httpClientIntegration",0,d4,"httpContextIntegration",0,iC,"inboundFiltersIntegration",0,tG,"init",0,function(e){let t,n,r,i,o,a;sO&&(0,ee.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),sO=!0,!oe.DEBUG_BUILD&&e.debug&&(0,ee.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){ef.document&&function(e){let t=sd(e)||e,n=sA.get(t);if(void 0!==n)return n;let r=sc();if(!r?.isrRoutes||!Array.isArray(r.isrRoutes)||0===r.isrRoutes.length)return sA.set(t,!1),!1;let i=r.isrRoutes.includes(t);return sA.set(t,i),i}(ef.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=ef.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let s={environment:e.environment||V.default.env.SENTRY_ENVIRONMENT||((t=V.default.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${t}`:void 0)||"production",defaultIntegrations:(n=i5(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&n.push(sT()),r=sN._sentryRewriteFramesAssetPrefixPath||"",i=V.default.env._sentryAssetPrefix||sN._sentryAssetPrefix,o=V.default.env._sentryBasePath||sN._sentryBasePath,a="true"===V.default.env._experimentalThirdPartyOriginStackFrames||"true"===sN._experimentalThirdPartyOriginStackFrames,n.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...sx({iteratee:i=>{if(r){let n="u">typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(n)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===n&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(n,"")}catch{}return r?i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)):i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(sC)&&(i.in_app=!1),i}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:i,basePath:o,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:a})),n),release:V.default.env._sentryRelease||sN._sentryRelease,...e};!function(e){let t=V.default.env._sentryRewritesTunnelPath||sR._sentryRewritesTunnelPath;if(t&&e.dsn){let n=(0,en.dsnFromString)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],a=`${t}?o=${i}&p=${n.projectId}`;o&&(a+=`&r=${o}`),e.tunnel=a,oe.DEBUG_BUILD&&ee.debug.log(`Tunneling events to "${a}"`)}else oe.DEBUG_BUILD&&ee.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(s),tD(s,"nextjs",["nextjs","react"]),s.ignoreSpans=[...s.ignoreSpans||[],/^\/404$/,RegExp(`^${sh}$`)];let l=i7(s),u=(e,t)=>
560on(t?.originalException)||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e;u.id="NextRedirectErrorFilter",(0,et.addEventProcessor)(u);try{(0,Z.getGlobalScope)().setTag("turbopack",!0)}catch{}return l},"instrumentAnthropicAiClient",0,c8,"instrumentCreateReactAgent",0,dn,"instrumentGoogleGenAIClient",0,dc,"instrumentLangChainEmbeddings",0,dp,"instrumentLangGraph",0,dr,"instrumentOpenAiClient",0,dy,"instrumentOutgoingRequests",0,a1,"instrumentStateGraph",0,dr,"instrumentSupabaseClient",0,dx,"isBotUserAgent",0,a5,"isEnabled",()=>et.isEnabled,"isInitialized",()=>et.isInitialized,"lastEventId",()=>et.lastEventId,"launchDarklyIntegration",0,mp,"lazyLoadIntegration",0,uv,"linkedErrorsIntegration",0,iN,"logger",()=>dB,"makeBrowserOfflineTransport",0,gJ,"makeFetchTransport",0,i1,"makeMultiplexedTransport",0,uw,"metrics",()=>dj,"moduleMetadataIntegration",0,dz,"normalizeStringifyValue",0,i3,"onLoad",0,i8,"openFeatureIntegration",0,mh,"opera10StackLineParser",0,iG,"opera11StackLineParser",0,iV,"parameterize",0,dL,"reactErrorHandler",0,eS,"reactRouterBrowserTracingIntegration",0,y$,"reactRouterV3BrowserTracingIntegration",0,mP,"reactRouterV4BrowserTracingIntegration",0,mU,"reactRouterV5BrowserTracingIntegration",0,mj,"reactRouterV6BrowserTracingIntegration",0,yO,"reactRouterV7BrowserTracingIntegration",0,yL,"registerSpanErrorInstrumentation",0,oU,"registerWebWorker",0,mw,"replayCanvasIntegration",0,gj,"replayIntegration",0,gl,"reportPageLoaded",0,g$,"reportingObserverIntegration",0,d1,"rewriteFramesIntegration",0,sx,"sendFeedback",0,s7,"setActiveSpanInBrowser",0,gq,"setAttribute",()=>et.setAttribute,"setAttributes",()=>et.setAttributes,"setContext",()=>et.setContext,"setConversationId",()=>et.setConversationId,"setCurrentClient",0,t5,"setExtra",()=>et.setExtra,"setExtras",()=>et.setExtras,"setHttpStatus",()=>op.setHttpStatus,"setMeasurement",0,oa,"setTag",()=>et.setTag,"setTags",()=>et.setTags,"setUser",()=>et.setUser,"showReportDialog",0,ey,"spanStreamingIntegration",0,gz,"spanToBaggageHeader",()=>t6.spanToBaggageHeader,"spanToJSON",()=>tX.spanToJSON,"spanToTraceHeader",()=>tX.spanToTraceHeader,"spotlightBrowserIntegration",0,md,"startBrowserTracingNavigationSpan",0,a7,"startBrowserTracingPageLoadSpan",0,a8,"startInactiveSpan",0,function(e){return yX()?yQ():oS(e)},"startNewTrace",0,oI,"startSession",()=>et.startSession,"startSpan",0,function(e,t){return yX(t)?t(yQ()):ov(e,t)},"startSpanManual",0,function(e,t){if(yX(t)){let e=yQ();return t(e,()=>e.end())}return ob(e,t)},"statsigIntegration",0,mb,"supabaseIntegration",0,dC,"suppressTracing",0,ow,"tanstackRouterBrowserTracingIntegration",0,mD,"thirdPartyErrorFilterIntegration",0,dG,"uiProfiler",0,dX,"unleashIntegration",0,mm,"updateSpanName",()=>tX.updateSpanName,"useProfiler",0,mR,"viewHierarchyIntegration",0,pl,"webVitalsIntegration",0,a$,"webWorkerIntegration",0,mE,"winjsStackLineParser",0,iH,"withActiveSpan",0,oT,"withErrorBoundary",0,eU,"withIsolationScope",()=>Z.withIsolationScope,"withProfiler",0,mA,"withScope",()=>Z.withScope,"withSentryConfig",0,function(e){return e},"withSentryReactRouterV6Routing",0,yD,"withSentryReactRouterV7Routing",0,yB,"withSentryRouting",0,m$,"withServerActionInstrumentation",0,function(...e){if("function"==typeof e[1]){let[t,n]=e;return yZ(t,{},n)}{let[t,n,r]=e;return yZ(t,n,r)}},"withStreamedSpan",0,t8,"wrapApiHandlerWithSentryVercelCrons",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let i;if(!r?.[0])return e.apply(n,r);let[o]=r,a="nextUrl"in o?o.nextUrl.pathname:o.url,s="nextUrl"in o?o.headers.get("user-agent"):o.headers["user-agent"];if(!t||!s?.includes("vercel-cron"))return e.apply(n,r);let l=t.find(e=>e.path===a);if(!l?.path||!l.schedule)return e.apply(n,r);let u=l.path,c=y0({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),d=(0,ne.safeDateNow)()/1e3,p=()=>{y0({checkInId:c,monitorSlug:u,status:"error",duration:(0,ne.safeDateNow)()/1e3-d})};try{i=e.apply(n,r)}catch(e){throw p(),e}return(0,eu.isObjectLike)(i)&&"then"in i?Promise.resolve(i).then(()=>{y0({checkInId:c,monitorSlug:u,status:"ok",duration:(0,ne.safeDateNow)()/1e3-d})},()=>{p()}):y0({checkInId:c,monitorSlug:u,status:"ok",duration:(0,ne.safeDateNow)()/1e3-d}),i}})},"wrapAppGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(yK())return e.apply(t,n);let[r]=n,{req:i,res:o}=r.ctx,a=y1(e);if(!i||!o)return a.apply(t,n);{let e=y2(a,i,o,{dataFetcherRouteName:"/_app",requestedRouteName:r.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),u&&(s.pageProps._sentryBaggage=u)),s}}})},"wrapCreateBrowserRouter",0,yH,"wrapCreateBrowserRouterV6",0,yP,"wrapCreateBrowserRouterV7",0,yU,"wrapCreateMemoryRouter",0,yz,"wrapCreateMemoryRouterV6",0,yM,"wrapCreateMemoryRouterV7",0,yj,"wrapDocumentGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(yK())return e.apply(t,n);let[r]=n,{req:i,res:o}=r,a=y1(e);if(!i||!o)return a.apply(t,n);{let e=y2(a,i,o,{dataFetcherRouteName:"/_document",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,n);return s}}})},"wrapErrorGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(yK())return e.apply(t,n);let[r]=n,{req:i,res:o}=r,a=y1(e);if(!i||!o)return a.apply(t,n);{let e=y2(a,i,o,{dataFetcherRouteName:"/_error",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})},"wrapGenerationFunctionWithSentry",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let i,o=(0,Z.getIsolationScope)();try{i=t.requestAsyncStorage?.getStore()?.headers}catch{}let a=i?(0,yW.winterCGHeadersToDict)(i):void 0;return o.setSDKProcessingMetadata({normalizedRequest:{headers:a}}),om(()=>e.apply(n,r),e=>{let n=(0,tX.getActiveSpan)(),{componentRoute:r,componentType:i,generationFunctionIdentifier:a}=t,s=!0;o.setTransactionName(`${i}.${a} (${r})`),n&&(ot(e)?(s=!1,n.setStatus({code:op.SPAN_STATUS_ERROR,message:"not_found"})):on(e)?(s=!1,n.setStatus({code:op.SPAN_STATUS_OK})):n.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"})),s&&(0,et.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:a}}})},()=>{(0,yV.waitUntil)((0,yV.flushSafelyWithTimeout)())})}})},"wrapGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(yK())return e.apply(t,n);let[r]=n,{req:i,res:o}=r,a=y1(e);if(!i||!o)return a.apply(t,n);{let e=y2(a,i,o,{dataFetcherRouteName:r.pathname,requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n)??{};return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})},"wrapGetServerSidePropsWithSentry",0,function(e,t){return new Proxy(e,{apply:async(e,n,r)=>{if(yK())return e.apply(n,r);let[i]=r,{req:o,res:a}=i,s=y2(y1(e),o,a,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:u,sentryTrace:c}=await s.apply(n,r);return"object"==typeof l&&null!==l&&"props"in l&&(c&&(l.props._sentryTraceData=c),u&&(l.props._sentryBaggage=u)),l}})},"wrapGetStaticPropsWithSentry",0,function(e,t){return new Proxy(e,{apply:async(e,t,n)=>yK()?e.apply(t,n):y3(y1(e),n)})},"wrapMiddlewareWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{let r="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(r&&"string"==typeof r){let e=n[0];if(e instanceof Request&&function(e,t){if("POST"!==e.method)return!1;let n=new URL(e.url);return(n.pathname===t||n.pathname===`${t}/`)&&["o","p"].every(e=>{let t=n.searchParams.getAll(e);return t.length>0&&t.every(e=>/^\d+$/.test(e))})}(e,r))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}return(0,Z.withIsolationScope)(r=>{let i,o,a=n[0],s=(0,Z.getCurrentScope)();a instanceof Request?(r.setSDKProcessingMetadata({normalizedRequest:(0,yW.winterCGRequestToRequestData)(a)}),i=`middleware ${a.method}`,o="url"):(i="middleware",o="component"),s.setTransactionName(i);let l=()=>
560om(()=>e.apply(t,n),e=>{(0,et.captureException)(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{(0,yV.waitUntil)((0,yV.flushSafelyWithTimeout)())}),u=(0,tX.getActiveSpan)();if(u){let e=(0,tX.getRootSpan)(u);return e&&(0,ip.setCapturedScopesOnSpan)(e,s,r),l()}return ov({name:i,op:"http.server.middleware",attributes:{[tK.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o,[tK.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.wrap_middleware"}},l)})}})},"wrapPageComponentWithSentry",0,function(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return(0,Z.withIsolationScope)(()=>{let t=(0,Z.getCurrentScope)(),n=(0,eu.isObjectLike)(this.props)&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let e=(0,oy.extractTraceparentData)(n);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(t){let e=(0,et.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}});throw y5(t,e),t}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>(0,Z.withIsolationScope)(()=>{let r=(0,Z.getCurrentScope)(),i=n?.[0]?._sentryTraceData;if(i){let e=(0,oy.extractTraceparentData)(i);r.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,n)}catch(t){let e=(0,et.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}});throw y5(t,e),t}})}):e},"wrapReactRouterRouting",0,yq,"wrapRouteHandlerWithSentry",0,function(e,t){let{method:n,parameterizedRoute:r,headers:i}=t;return new Proxy(e,{apply:async(e,t,i)=>{let o=(0,tX.getActiveSpan)(),a=o?(0,tX.getRootSpan)(o):void 0;return(0,Z.withIsolationScope)((0,Z.getIsolationScope)(),()=>(0,Z.withScope)(async s=>{s.setTransactionName(`${n} ${r}`);let l=await om(()=>e.apply(t,i),e=>{on(e)||(ot(e)?(o&&(0,op.setHttpStatus)(o,404),a&&(0,op.setHttpStatus)(a,404)):(0,et.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{(0,yV.waitUntil)((0,yV.flushSafelyWithTimeout)())});try{l.status&&(o&&(0,op.setHttpStatus)(o,l.status),a&&(0,op.setHttpStatus)(a,l.status))}catch{}return l}))}})},"wrapServerComponentWithSentry",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let i=(0,Z.getIsolationScope)(),o=t.headers?(0,yW.winterCGHeadersToDict)(t.headers):void 0;return i.setSDKProcessingMetadata({normalizedRequest:{headers:o}}),om(()=>e.apply(n,r),e=>{let n=(0,tX.getActiveSpan)(),{componentRoute:r,componentType:o}=t,a=!0;i.setTransactionName(`${o} Server Component (${r})`),n&&(ot(e)?(a=!1,n.setStatus({code:op.SPAN_STATUS_ERROR,message:"not_found"})):on(e)?(a=!1,n.setStatus({code:op.SPAN_STATUS_OK})):n.setStatus({code:op.SPAN_STATUS_ERROR,message:"internal_error"})),a&&(0,et.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{(0,yV.waitUntil)((0,yV.flushSafelyWithTimeout)())})}})},"wrapUseRoutes",0,yG,"wrapUseRoutesV6",0,yN,"wrapUseRoutesV7",0,yF,"zodErrorsIntegration",0,dK],503896);var y4=e.i(503896),y6=e.i(446782),y8=e.i(162825),y7=e.i(217991),y9=((H={}).ReactFrontend="react-frontend",H.NextFrontend="next-frontend",H.BackendMain="main-backend",H.BackendEvents="events-backend",H.BackendMediaCenter="mediacenter-backend",H.BackendStripe="stripe-backend",H.BackendInfra="infra-backend",H.BackendOpenAI="openai-backend",H.BackendMessages="messages-backend",H.BackendHomeFeedScheduler="home-feed-scheduler-backend",H.BackendPollsAndSurveys="polls-and-surveys-backend",H);let _e="https://backend.networked.co".replace(/^https?:\/\//,""),_t=["localhost",..._e?[_e]:[],/^https:\/\/be\./],_n=new Set(["mobile"]);function _r(...e){for(let t of e){if(null==t)continue;let e=String(t).trim();if(""!==e)return e}}function _i(){let e=y7.UserUtility.getUserDetails(),t=function(){try{let e=eH.CookieManager.getCookie("community");if(!e||"string"!=typeof e)return{};let t=JSON.parse(e),n=t?.community??t;return{communityId:t?.communityId??n?.communityId,communityName:t?.communityName??n?.name??n?.communityName}}catch{return{}}}(),n=_r(y7.UserUtility.getSelectedCommunityId(),eH.CookieManager.getCookie("communityId"),t.communityId),r=_r(y7.UserUtility.getSelectedCommunityName(),t.communityName),i=function(e){let t=e.match(/^\/c\/([^/]+)/),n=t?.[1];if(!(!n||_n.has(n)))return n}(window.location.pathname),o={};return e?.userId&&(o.user={id:e.userId,email:e.email,name:e.name}),void 0!==n&&(o.communityId=n),void 0!==r&&(o.communityName=r),void 0!==i&&(o.readableId=i),o}e.i(335306);var _o=e.i(354771),_a=e.i(872675);let _s="string"==typeof(z=e.i(793656).default)?z:z&&"object"==typeof z&&"string"==typeof z.src?z.src:"",_l=_s?`url("${_s}")`:"none",_u=(0,eF.default)(()=>e.A(145796).then(e=>e.ToastContainer),{loadableGenerated:{modules:[948778]},ssr:!1});(0,ti.initSupabaseClient)(ti.createNetworkedSupabaseBrowserClient,"https://rchbgfhswcupvjuifdpt.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InJjaGJnZmhzd2N1cHZqdWlmZHB0Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzkwNzM3NzIsImV4cCI6MjA5NDY0OTc3Mn0.Ns5Lt1S3DaQsy8cBZ8vo2sb2lKCGvsT2cbZ4lgzkyOc");let _c=(0,tR.appWithTranslation)(({Component:e,pageProps:t})=>{(0,e_.useEffect)(()=>{let e=tP();if(e){y4.getClient()||function(e,t){if(!t.dsn)return;(0,y6.registerSentrySdk)(e,t.serviceTag);let n={dsn:t.dsn,environment:t.environment,integrations:[e.browserTracingIntegration(),e.replayIntegration({maskAllText:!1,blockAllMedia:!1,maskAllInputs:!1})],tracesSampleRate:"production"===t.environment?.1:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,tracePropagationTargets:t.tracePropagationTargets??["localhost"]};t.release&&(n.release=t.release),t.debug&&(n.debug=!0),e.init(n)}(y4,{dsn:e,environment:"production",serviceTag:y9.NextFrontend,tracePropagationTargets:_t,debug:!1});try{(0,y8.setFrontendContext)(_i())}catch{}}},[]),(0,e_.useEffect)(()=>{let e=(0,_a.resolvePosthogLandingConfig)({fallbackContext:{communityId:"",communityName:""}});e&&(0,_o.initAnalytics)(e)},[]),(0,e_.useEffect)(()=>{window.$zoho&&tE.FirebaseAnalytics.getInstance().logEvent(tA.FirebaseEventNames.buttonClick({page_section:"chat_window",click_text:"Chat"}));let e=e=>{tE.FirebaseAnalytics.getInstance().logEvent({eventName:"page_view",eventParam
560s:{page_url:e}}),tP()&&(0,y8.setFrontendContext)(_i())};return r.events.on("routeChangeComplete",e),document.addEventListener("scroll",(0,tC.default)(e=>{a(e)},100)),()=>{document.removeEventListener("scroll",(0,tC.default)(e=>{a(e)},100)),r.events.off("routeChangeComplete",e)}},[]);let n=e.getLayout??(e=>(0,J.jsx)(ta,{children:e})),r=(0,K.useRouter)(),i={pageTitle:`Networked ${t?.metaData?.ogTitle?"| "+t?.metaData?.ogTitle:""}`,metaDescription:t?.metaData?.ogDescription?t?.metaData?.ogDescription:"The best technology for your community. With Networked, create a safe, private, and social space. Bring people together, share updates, organize events, facilitate peer-to-peer networking, drive discussions, and generate revenue. All-in-one place, all under your brand, and fun for your people.",ogTitle:"Networked",ogDescription:"The best technology for your community. With Networked, create a safe, private, and social space. Bring people together, share updates, organize events, facilitate peer-to-peer networking, drive discussions, and generate revenue. All-in-one place, all under your brand, and fun for your people.",ogImage:t?.metaData?.ogImage?t?.metaData?.ogImage:"https://common-assets-networked.s3.us-east-2.amazonaws.com/common/logo+icon+rounded+corner.png",...t?.metaData},o=0,a=e=>{var t=window.pageYOffset||document.documentElement.scrollTop;o=t<=0?0:t},{isWhiteListed:s}=(0,tx.useWhiteListing)();s&&(t?.metaData?.ogTitle&&(i.pageTitle=t?.metaData?.ogTitle),t?.metaData?.ogTitle&&(i.ogTitle=t?.metaData?.ogTitle),t?.metaData?.metaDescription&&(i.metaDescription=t?.metaData?.ogDescription),t?.metaData?.ogDescription&&(i.ogDescription=t?.metaData?.ogDescription),t?.metaData?.ogImage&&(i.ogImage=t?.metaData?.ogImage));let l=(0,J.jsxs)(eq.S,{value:{dedupingInterval:1008e4,fetcher:e=>(0,ej.default)(e).then(e=>e.data)},children:[(0,J.jsx)("style",{dangerouslySetInnerHTML:{__html:`:root { --nw-loader-gif-url: ${_l}; }`}}),(0,J.jsx)(Q,{...i}),(0,J.jsx)(tI,{children:(0,J.jsxs)("div",{className:"App",children:[(0,J.jsx)(_u,{className:"toast-block"}),(0,J.jsx)(tO.default,{color:"#3354d6",options:{showSpinner:!1}})," ",n((0,J.jsx)(e,{...t}))]})}),(0,J.jsx)(tv,{}),(0,J.jsx)(e$.default,{id:"calendly-widget",src:"https://assets.calendly.com/assets/external/widget.js",strategy:"afterInteractive"})]});return tP()?(0,J.jsx)(eB,{children:l}):(0,J.jsx)(J.Fragment,{children:l})},tN.default);e.s(["default",0,_c],316027)},294757,(e,t,n)=>{let r="/_app";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(316027)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})}]);
561
562//# debugId=84578abd-9110-56ab-33b5-3e4b160202ce

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.