1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/web-8SoFzamV.js","assets/pinia-BZRDrTuq.js","assets/vue-DhRW_Bdo.js","assets/vuetify-D-QhuFO2.js"])))=>i.map(i=>d[i]); 2import{g as $c,d as Kf}from"./pinia-BZRDrTuq.js";import{u as kc}from"./vuetify-D-QhuFO2.js";const Xf="modulepreload",Yf=function(e){return"/"+e},hi={},Zf=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=i?.nonce||i?.getAttribute("nonce");s=c(n.map(u=>{if(u=Yf(u),u in hi)return;hi[u]=!0;const f=u.endsWith(".css"),l=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${l}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Xf,f||(d.as="script"),d.crossOrigin="",d.href=u,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((h,m)=>{d.addEventListener("load",h),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var Vt;(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(Vt||(Vt={}));let fs=class extends Error{constructor(t,n,r){super(t),this.message=t,this.code=n,this.data=r}};const Qf=e=>{var t,n;return e?.androidBridge?"android":!((n=(t=e?.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0)&&n.bridge?"ios":"web"},ed=e=>{const t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},s=()=>t!==null?t.name:Qf(e),o=()=>s()!=="web",i=l=>{const d=u.get(l);return!!(d?.platforms.has(s())||a(l))},a=l=>{var d;return(d=n.PluginHeaders)===null||d===void 0?void 0:d.find(h=>h.name===l)},c=l=>e.console.error(l),u=new Map,f=(l,d={})=>{const h=u.get(l);if(h)return console.warn(`Capacitor plugin "${l}" already registered. Cannot register plugins twice.`),h.proxy;const m=s(),y=a(l);let _;const g=async()=>(!_&&m in d?_=typeof d[m]=="function"?_=await d[m]():_=d[m]:t!==null&&!_&&"web"in d&&(_=typeof d.web=="function"?_=await d.web():_=d.web),_),S=(v,F)=>{var M,H;if(y){const G=y?.methods.find(V=>F===V.name);if(G)return G.rtype==="promise"?V=>n.nativePromise(l,F.toString(),V):(V,U)=>n.nativeCallback(l,F.toString(),V,U);if(v)return(M=v[F])===null||M===void 0?void 0:M.bind(v)}else{if(v)return(H=v[F])===null||H===void 0?void 0:H.bind(v);throw new fs(`"${l}" plugin is not implemented on ${m}`,Vt.Unimplemented)}},w=v=>{let F;const M=(...H)=>{const G=g().then(V=>{const U=S(V,v);if(U){const Q=U(...H);return F=Q?.remove,Q}else throw new fs(`"${l}.${v}()" is not implemented on ${m}`,Vt.Unimplemented)});return v==="addListener"&&(G.remove=async()=>F()),G};return M.toString=()=>`${v.toString()}() { [capacitor code] }`,Object.defineProperty(M,"name",{value:v,writable:!1,configurable:!1}),M},A=w("addListener"),L=w("removeListener"),I=(v,F)=>{const M=A({eventName:v},F),H=async()=>{const V=await M;L({eventName:v,callbackId:V},F)},G=new Promise(V=>M.then(()=>V({remove:H})));return G.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await H()},G},T=new Proxy({},{get(v,F){switch(F){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return y?I:A;case"removeListener":return L;default:return w(F)}}});return r[l]=T,u.set(l,{name:l,proxy:T,platforms:new Set([...Object.keys(d),...y?[m]:[]])}),T};return n.convertFileSrc||(n.convertFileSrc=l=>l),n.getPlatform=s,n.handleError=c,n.isNativePlatform=o,n.isPluginAvailable=i,n.registerPlugin=f,n.Exception=fs,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},td=e=>e.Capacitor=ed(e),Pn=td(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{}),Dc=Pn.registerPlugin;let Uc=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(t,n){let r=!1;this.listeners[t]||(this.listeners[t]=[],r=!0),this.listeners[t].push(n);const o=this.windowListeners[t];o&&!o.registered&&this.addWindowListener(o),r&&this.sendRetainedArgumentsForEvent(t);const i=async()=>this.removeListener(t,n);return Promise.resolve({remove:i})}async removeAllListeners(){this.listeners={};for(const t in this.windowListeners)this.removeWindowListener(this.windowListeners[t]);this.windowListeners={}}notifyListeners(t,n,r){const s=this.listeners[t];if(!s){if(r){let o=this.retainedEventArguments[t];o||(o=[]),o.push(n),this.retainedEventArguments[t]=o}return}s.forEach(o=>o(n))}hasListeners(t){var n;return!!(!((n=this.listeners[t])===null||n===void 0)&&n.length)}registerWindowListener(t,n){this.windowListeners[n]={registered:!1,windowEventName:t,pluginEventName:n,handler:r=>{this.notifyListeners(n,r)}}}unimplemented(t="not implemented"){return new Pn.Exception(t,Vt.Unimplemented)}unavailable(t="not available"){return new Pn.Exception(t,Vt.Unavailable)}async removeListener(t,n){const r=this.listeners[t];if(!r)return;const s=r.indexOf(n);this.listeners[t].splice(s,1),this.listeners[t].length||this.removeWindowListener(this.windowListeners[t])}
2addWindowListener(t){window.addEventListener(t.windowEventName,t.handler),t.registered=!0}removeWindowListener(t){t&&(window.removeEventListener(t.windowEventName,t.handler),t.registered=!1)}sendRetainedArgumentsForEvent(t){const n=this.retainedEventArguments[t];n&&(delete this.retainedEventArguments[t],n.forEach(r=>{this.notifyListeners(t,r)}))}};const mi=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),gi=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class nd extends Uc{async getCookies(){const t=document.cookie,n={};return t.split(";").forEach(r=>{if(r.length<=0)return;let[s,o]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");s=gi(s).trim(),o=gi(o).trim(),n[s]=o}),n}async setCookie(t){try{const n=mi(t.key),r=mi(t.value),s=t.expires?`; expires=${t.expires.replace("expires=","")}`:"",o=(t.path||"/").replace("path=",""),i=t.url!=null&&t.url.length>0?`domain=${t.url}`:"";document.cookie=`${n}=${r||""}${s}; path=${o}; ${i};`}catch(n){return Promise.reject(n)}}async deleteCookie(t){try{document.cookie=`${t.key}=; Max-Age=0`}catch(n){return Promise.reject(n)}}async clearCookies(){try{const t=document.cookie.split(";")||[];for(const n of t)document.cookie=n.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(t){return Promise.reject(t)}}async clearAllCookies(){try{await this.clearCookies()}catch(t){return Promise.reject(t)}}}Dc("CapacitorCookies",{web:()=>new nd});const rd=async e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{const s=r.result;t(s.indexOf(",")>=0?s.split(",")[1]:s)},r.onerror=s=>n(s),r.readAsDataURL(e)}),sd=(e={})=>{const t=Object.keys(e);return Object.keys(e).map(s=>s.toLocaleLowerCase()).reduce((s,o,i)=>(s[o]=e[t[i]],s),{})},od=(e,t=!0)=>e?Object.entries(e).reduce((r,s)=>{const[o,i]=s;let a,c;return Array.isArray(i)?(c="",i.forEach(u=>{a=t?encodeURIComponent(u):u,c+=`${o}=${a}&`}),c.slice(0,-1)):(a=t?encodeURIComponent(i):i,c=`${o}=${a}`),`${r}&${c}`},"").substr(1):null,id=(e,t={})=>{const n=Object.assign({method:e.method||"GET",headers:e.headers},t),s=sd(e.headers)["content-type"]||"";if(typeof e.data=="string")n.body=e.data;else if(s.includes("application/x-www-form-urlencoded")){const o=new URLSearchParams;for(const[i,a]of Object.entries(e.data||{}))o.set(i,a);n.body=o.toString()}else if(s.includes("multipart/form-data")||e.data instanceof FormData){const o=new FormData;if(e.data instanceof FormData)e.data.forEach((a,c)=>{o.append(c,a)});else for(const a of Object.keys(e.data))o.append(a,e.data[a]);n.body=o;const i=new Headers(n.headers);i.delete("content-type"),n.headers=i}else(s.includes("application/json")||typeof e.data=="object")&&(n.body=JSON.stringify(e.data));return n};class ad extends Uc{async request(t){const n=id(t,t.webFetchExtra),r=od(t.params,t.shouldEncodeUrlParams),s=r?`${t.url}?${r}`:t.url,o=await fetch(s,n),i=o.headers.get("content-type")||"";let{responseType:a="text"}=o.ok?t:{};i.includes("application/json")&&(a="json");let c,u;switch(a){case"arraybuffer":case"blob":u=await o.blob(),c=await rd(u);break;case"json":c=await o.json();break;default:c=await o.text()}const f={};return o.headers.forEach((l,d)=>{f[d]=l}
vendor: 4,145 bytes, line 2
2),{data:c,headers:f,status:o.status,url:o.url}}async get(t){return this.request(Object.assign(Object.assign({},t),{method:"GET"}))}async post(t){return this.request(Object.assign(Object.assign({},t),{method:"POST"}))}async put(t){return this.request(Object.assign(Object.assign({},t),{method:"PUT"}))}async patch(t){return this.request(Object.assign(Object.assign({},t),{method:"PATCH"}))}async delete(t){return this.request(Object.assign(Object.assign({},t),{method:"DELETE"}))}}Dc("CapacitorHttp",{web:()=>new ad});var Mc=typeof window=="object"&&window&&window.Object===Object&&window,cd=typeof self=="object"&&self&&self.Object===Object&&self,Ne=Mc||cd||Function("return this")(),Ue=Ne.Symbol,Fc=Object.prototype,ud=Fc.hasOwnProperty,ld=Fc.toString,Sn=Ue?Ue.toStringTag:void 0;function fd(e){var t=ud.call(e,Sn),n=e[Sn];try{e[Sn]=void 0;var r=!0}catch{}var s=ld.call(e);return r&&(t?e[Sn]=n:delete e[Sn]),s}var dd=Object.prototype,pd=dd.toString;function hd(e){return pd.call(e)}var md="[object Null]",gd="[object Undefined]",_i=Ue?Ue.toStringTag:void 0;function sn(e){return e==null?e===void 0?gd:md:_i&&_i in Object(e)?fd(e):hd(e)}function it(e){return e!=null&&typeof e=="object"}var _d="[object Symbol]";function qr(e){return typeof e=="symbol"||it(e)&&sn(e)==_d}function yd(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}var Pe=Array.isArray,yi=Ue?Ue.prototype:void 0,bi=yi?yi.toString:void 0;function jc(e){if(typeof e=="string")return e;if(Pe(e))return yd(e,jc)+"";if(qr(e))return bi?bi.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var bd=/\s/;function Sd(e){for(var t=e.length;t--&&bd.test(e.charAt(t)););return t}var Ed=/^\s+/;function Td(e){return e&&e.slice(0,Sd(e)+1).replace(Ed,"")}function at(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Si=NaN,vd=/^[-+]0x[0-9a-f]+$/i,wd=/^0b[01]+$/i,Rd=/^0o[0-7]+$/i,Ad=parseInt;function Ei(e){if(typeof e=="number")return e;if(qr(e))return Si;if(at(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=at(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Td(e);var n=wd.test(e);return n||Rd.test(e)?Ad(e.slice(2),n?2:8):vd.test(e)?Si:+e}function Id(e){return e}var Od="[object AsyncFunction]",Pd="[object Function]",Cd="[object GeneratorFunction]",xd="[object Proxy]";function Hc(e){if(!at(e))return!1;var t=sn(e);return t==Pd||t==Cd||t==Od||t==xd}var ds=Ne["__core-js_shared__"],Ti=(function(){var e=/[^.]+$/.exec(ds&&ds.keys&&ds.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ld(e){return!!Ti&&Ti in e}var Nd=Function.prototype,$d=Nd.toString;function Nt(e){if(e!=null){try{return $d.call(e)}catch{}try{return e+""}catch{}}return""}var kd=/[\\^$.*+?()[\]{}|]/g,Dd=/^\[object .+?Constructor\]$/,Ud=Function.prototype,Md=Object.prototype,Fd=Ud.toString,jd=Md.hasOwnProperty,Hd=RegExp("^"+Fd.call(jd).replace(kd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bd(e){if(!at(e)||Ld(e))return!1;var t=Hc(e)?Hd:Dd;return t.test(Nt(e))}function qd(e,t){return e?.[t]}function $t(e,t){var n=qd(e,t);return Bd(n)?n:void 0}var Ms=$t(Ne,"WeakMap"),vi=Object.create,Wd=(function(){function e(){}return function(t){if(!at(t))return{};if(vi)return vi(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function zd(){}var wi=(function(){try{var e=$t(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Gd(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Vd(e,t,n,r){for(var s=e.length,o=n+-1;++o<s;)if(t(e[o],o,e))return o;return-1}function Jd(e){return e!==e}function Kd(e,t,n){for(var r=n-1,s=e.length;++r<s;)if(e[r]===t)return r;return-1}function Xd(e,t,n){return t===t?Kd(e,t,n):Vd(e,Jd,n)}function Yd(e,t){var n=e==null?0:e.length;return!!n&&Xd(e,t,0)>-1}var Zd=9007199254740991,Qd=/^(?:0|[1-9]\d*)$/;function Bc(e,t){var n=typeof e;return t=t??Zd,!!t&&(n=="number"||n!="symbol"&&Qd.test(e))&&e>-1&&e%1==0&&e<t}function qc(e,t,n){t=="__proto__"&&wi?wi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function yo(e,t){return e===t||e!==e&&t!==t}var ep=Object.prototype,tp=ep.hasOwnProperty;
vendor: 4,665 bytes, line 2
2function np(e,t,n){var r=e[t];(!(tp.call(e,t)&&yo(r,n))||n===void 0&&!(t in e))&&qc(e,t,n)}var rp=9007199254740991;function bo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=rp}function So(e){return e!=null&&bo(e.length)&&!Hc(e)}var sp=Object.prototype;function Eo(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||sp;return e===n}function op(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ip="[object Arguments]";function Ri(e){return it(e)&&sn(e)==ip}var Wc=Object.prototype,ap=Wc.hasOwnProperty,cp=Wc.propertyIsEnumerable,To=Ri((function(){return arguments})())?Ri:function(e){return it(e)&&ap.call(e,"callee")&&!cp.call(e,"callee")};function up(){return!1}var zc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ai=zc&&typeof module=="object"&&module&&!module.nodeType&&module,lp=Ai&&Ai.exports===zc,Ii=lp?Ne.Buffer:void 0,fp=Ii?Ii.isBuffer:void 0,Cn=fp||up,dp="[object Arguments]",pp="[object Array]",hp="[object Boolean]",mp="[object Date]",gp="[object Error]",_p="[object Function]",yp="[object Map]",bp="[object Number]",Sp="[object Object]",Ep="[object RegExp]",Tp="[object Set]",vp="[object String]",wp="[object WeakMap]",Rp="[object ArrayBuffer]",Ap="[object DataView]",Ip="[object Float32Array]",Op="[object Float64Array]",Pp="[object Int8Array]",Cp="[object Int16Array]",xp="[object Int32Array]",Lp="[object Uint8Array]",Np="[object Uint8ClampedArray]",$p="[object Uint16Array]",kp="[object Uint32Array]",Y={};Y[Ip]=Y[Op]=Y[Pp]=Y[Cp]=Y[xp]=Y[Lp]=Y[Np]=Y[$p]=Y[kp]=!0;Y[dp]=Y[pp]=Y[Rp]=Y[hp]=Y[Ap]=Y[mp]=Y[gp]=Y[_p]=Y[yp]=Y[bp]=Y[Sp]=Y[Ep]=Y[Tp]=Y[vp]=Y[wp]=!1;function Dp(e){return it(e)&&bo(e.length)&&!!Y[sn(e)]}function vo(e){return function(t){return e(t)}}var Gc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rn=Gc&&typeof module=="object"&&module&&!module.nodeType&&module,Up=Rn&&Rn.exports===Gc,ps=Up&&Mc.process,Jt=(function(){try{var e=Rn&&Rn.require&&Rn.require("util").types;return e||ps&&ps.binding&&ps.binding("util")}catch{}})(),Oi=Jt&&Jt.isTypedArray,wo=Oi?vo(Oi):Dp,Mp=Object.prototype,Fp=Mp.hasOwnProperty;function jp(e,t){var n=Pe(e),r=!n&&To(e),s=!n&&!r&&Cn(e),o=!n&&!r&&!s&&wo(e),i=n||r||s||o,a=i?op(e.length,String):[],c=a.length;for(var u in e)Fp.call(e,u)&&!(i&&(u=="length"||s&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Bc(u,c)))&&a.push(u);return a}function Vc(e,t){return function(n){return e(t(n))}}var Hp=Vc(Object.keys,Object),Bp=Object.prototype,qp=Bp.hasOwnProperty;function Jc(e){if(!Eo(e))return Hp(e);var t=[];for(var n in Object(e))qp.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ro(e){return So(e)?jp(e):Jc(e)}var Wp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zp=/^\w*$/;function Ao(e,t){if(Pe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||qr(e)?!0:zp.test(e)||!Wp.test(e)||t!=null&&e in Object(t)}var xn=$t(Object,"create");function Gp(){this.__data__=xn?xn(null):{},this.size=0}function Vp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Jp="__lodash_hash_undefined__",Kp=Object.prototype,Xp=Kp.hasOwnProperty;function Yp(e){var t=this.__data__;if(xn){var n=t[e];return n===Jp?void 0:n}return Xp.call(t,e)?t[e]:void 0}var Zp=Object.prototype,Qp=Zp.hasOwnProperty;function eh(e){var t=this.__data__;return xn?t[e]!==void 0:Qp.call(t,e)}var th="__lodash_hash_undefined__";function nh(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xn&&t===void 0?th:t,this}function Rt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rt.prototype.clear=Gp;Rt.prototype.delete=Vp;Rt.prototype.get=Yp;Rt.prototype.has=eh;Rt.prototype.set=nh;function rh(){this.__data__=[],this.size=0}function Wr(e,t){for(var n=e.length;n--;)if(yo(e[n][0],t))return n;return-1}var sh=Array.prototype,oh=sh.splice;function ih(e){var t=this.__data__,n=Wr(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():oh.call(t,n,1),--this.size,!0}function ah(e){var t=this.__data__,n=Wr(t,e);return n<0?void 0:t[n][1]}function ch(e){return Wr(this.__data__,e)>-1}function uh(e,t){var n=this.__data__,r=Wr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ye.prototype.clear=rh;Ye.prototype.delete=ih;Ye.prototype.get=ah;Ye.prototype.has=ch;Ye.prototype.set=uh;var Ln=$t(Ne,"Map");function lh(){this.size=0,this.__data__={hash:new Rt,map:new(Ln||Ye),string:new Rt}}function fh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zr(e,t){var n=e.__data__;
vendor: 1,074 bytes, line 2
2return fh(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dh(e){var t=zr(this,e).delete(e);return this.size-=t?1:0,t}function ph(e){return zr(this,e).get(e)}function hh(e){return zr(this,e).has(e)}function mh(e,t){var n=zr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ze(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ze.prototype.clear=lh;Ze.prototype.delete=dh;Ze.prototype.get=ph;Ze.prototype.has=hh;Ze.prototype.set=mh;var gh="Expected a function";function Io(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(gh);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],o=n.cache;if(o.has(s))return o.get(s);var i=e.apply(this,r);return n.cache=o.set(s,i)||o,i};return n.cache=new(Io.Cache||Ze),n}Io.Cache=Ze;var _h=500;function yh(e){var t=Io(e,function(r){return n.size===_h&&n.clear(),r}),n=t.cache;return t}var bh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sh=/\\(\\)?/g,Eh=yh(function(e){var t=[];
2return e.charCodeAt(0)===46&&t.push(""),e.replace(bh,function(n,r,s,o){t.push(s?o.replace(Sh,"$1"):r||n)}),t});function on(e){return e==null?"":jc(e)}function Kc(e,t){return Pe(e)?e:Ao(e,t)?[e]:Eh(on(e))}function Gr(e){if(typeof e=="string"||qr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Xc(e,t){t=Kc(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Gr(t[n++])];return n&&n==r?e:void 0}function Fs(e,t,n){var r=e==null?void 0:Xc(e,t);return r===void 0?n:r}function Th(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var vh=Vc(Object.getPrototypeOf,Object);function wh(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(s);++r<s;)o[r]=e[r+t];return o}function Rh(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:wh(e,t,n)}var Ah="\\ud800-\\udfff",Ih="\\u0300-\\u036f",Oh="\\ufe20-\\ufe2f",Ph="\\u20d0-\\u20ff",Ch=Ih+Oh+Ph,xh="\\ufe0e\\ufe0f",Lh="\\u200d",Nh=RegExp("["+Lh+Ah+Ch+xh+"]");function Yc(e){return Nh.test(e)}function $h(e){return e.split("")}var Zc="\\ud800-\\udfff",kh="\\u0300-\\u036f",Dh="\\ufe20-\\ufe2f",Uh="\\u20d0-\\u20ff",Mh=kh+Dh+Uh,Fh="\\ufe0e\\ufe0f",jh="["+Zc+"]",js="["+Mh+"]",Hs="\\ud83c[\\udffb-\\udfff]",Hh="(?:"+js+"|"+Hs+")",Qc="[^"+Zc+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",tu="[\\ud800-\\udbff][\\udc00-\\udfff]",Bh="\\u200d",nu=Hh+"?",ru="["+Fh+"]?",qh="(?:"+Bh+"(?:"+[Qc,eu,tu].join("|")+")"+ru+nu+")*",Wh=ru+nu+qh,zh="(?:"+[Qc+js+"?",js,eu,tu,jh].join("|")+")",Gh=RegExp(Hs+"(?="+Hs+")|"+zh+Wh,"g");function Vh(e){return e.match(Gh)||[]}function Jh(e){return Yc(e)?Vh(e):$h(e)}function Kh(e){return function(t){t=on(t);var n=Yc(t)?Jh(t):void 0,r=n?n[0]:t.charAt(0),s=n?Rh(n,1).join(""):t.slice(1);return r[e]()+s}}var su=Kh("toUpperCase");function Xh(e){return su(on(e).toLowerCase())}function Yh(e,t,n,r){for(var s=-1,o=e==null?0:e.length;++s<o;)n=t(n,e[s],s,e);return n}function Zh(e){return function(t){return e?.[t]}}var Qh={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}
2,em=Zh(Qh),tm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nm="\\u0300-\\u036f",rm="\\ufe20-\\ufe2f",sm="\\u20d0-\\u20ff",om=nm+rm+sm,im="["+om+"]",am=RegExp(im,"g");function cm(e){return e=on(e),e&&e.replace(tm,em).replace(am,"")}var um=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function lm(e){return e.match(um)||[]}var fm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function dm(e){return fm.test(e)}var ou="\\ud800-\\udfff",pm="\\u0300-\\u036f",hm="\\ufe20-\\ufe2f",mm="\\u20d0-\\u20ff",gm=pm+hm+mm,iu="\\u2700-\\u27bf",au="a-z\\xdf-\\xf6\\xf8-\\xff",_m="\\xac\\xb1\\xd7\\xf7",ym="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bm="\\u2000-\\u206f",Sm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cu="A-Z\\xc0-\\xd6\\xd8-\\xde",Em="\\ufe0e\\ufe0f",uu=_m+ym+bm+Sm,lu="['â]",Pi="["+uu+"]",Tm="["+gm+"]",fu="\\d+",vm="["+iu+"]",du="["+au+"]",pu="[^"+ou+uu+fu+iu+au+cu+"]",wm="\\ud83c[\\udffb-\\udfff]",Rm="(?:"+Tm+"|"+wm+")",Am="[^"+ou+"]",hu="(?:\\ud83c[\\udde6-\\uddff]){2}",mu="[\\ud800-\\udbff][\\udc00-\\udfff]",Ht="["+cu+"]",Im="\\u200d",Ci="(?:"+du+"|"+pu+")",Om="(?:"+Ht+"|"+pu+")",xi="(?:"+lu+"(?:d|ll|m|re|s|t|ve))?",Li="(?:"+lu+"(?:D|LL|M|RE|S|T|VE))?",gu=Rm+"?",_u="["+Em+"]?",Pm="(?:"+Im+"(?:"+[Am,hu,mu].join("|")+")"+_u+gu+")*",Cm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lm=_u+gu+Pm,Nm="(?:"+[vm,hu,mu].join("|")+")"+Lm,$m=RegExp([Ht+"?"+du+"+"+xi+"(?="+[Pi,Ht,"$"].join("|")+")",Om+"+"+Li+"(?="+[Pi,Ht+Ci,"$"].join("|")+")",Ht+"?"+Ci+"+"+xi,Ht+"+"+Li,xm,Cm,fu,Nm].join("|"),"g");function km(e){return e.match($m)||[]}function Dm(e,t,n){return e=on(e),t=t,t===void 0?dm(e)?km(e):lm(e):e.match(t)||[]}var Um="['â]",Mm=RegExp(Um,"g");function Oo(e){return function(t){return Yh(Dm(cm(t).replace(Mm,"")),e,"")}}var LI=Oo(function(e,t,n){return t=t.toLowerCase(),e+(n?Xh(t):t)});function Fm(){this.__data__=new Ye,this.size=0}function jm(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hm(e){return this.__data__.get(e)}function Bm(e){return this.__data__.has(e)}var qm=200;function Wm(e,t){var n=this.__data__;if(n instanceof Ye){var r=n.__data__;if(!Ln||r.length<qm-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ze(r)}return n.set(e,t),this.size=n.size,this}function De(e){var t=this.__data__=new Ye(e);this.size=t.size}De.prototype.clear=Fm;De.prototype.delete=jm;De.prototype.get=Hm;De.prototype.has=Bm;De.prototype.set=Wm;var yu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ni=yu&&typeof module=="object"&&module&&!module.nodeType&&module,zm=Ni&&Ni.exports===yu,$i=zm?Ne.Buffer:void 0;$i&&$i.allocUnsafe;function Gm(e,t){return e.slice()}function Vm(e,t){for(var n=-1,r=e==null?0:e.length,s=0,o=[];++n<r;){var i=e[n];t(i,n,e)&&(o[s++]=i)}return o}function Jm(){return[]}var Km=Object.prototype,Xm=Km.propertyIsEnumerable,ki=Object.getOwnPropertySymbols,Ym=ki?function(e){return e==null?[]:(e=Object(e),Vm(ki(e),function(t){return Xm.call(e,t)}))}:Jm;function Zm(e,t,n){var r=t(e);return Pe(e)?r:Th(r,n(e))}function Bs(e){return Zm(e,Ro,Ym)}var qs=$t(Ne,"DataView"),Ws=$t(Ne,"Promise"),Wt=$t(Ne,"Set"),Di="[object Map]",Qm="[object Object]",Ui="[object Promise]",Mi="[object Set]",Fi="[object WeakMap]",ji="[object DataView]",eg=Nt(qs),tg=Nt(Ln),ng=Nt(Ws),rg=Nt(Wt),sg=Nt(Ms),Ae=sn;(qs&&Ae(new qs(new ArrayBuffer(1)))!=ji||Ln&&Ae(new Ln)!=Di||Ws&&Ae(Ws.resolve())!=Ui||Wt&&Ae(new Wt)!=Mi||Ms&&Ae(new Ms)!=Fi)&&(Ae=function(e){var t=sn(e),n=t==Qm?e.constructor:void 0,r=n?Nt(n):"";if(r)switch(r){case eg:return ji;case tg:return Di;case ng:return Ui;case rg:return Mi;case sg:return Fi}return t});var og=Object.prototype,ig=og.hasOwnProperty;function ag(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ig.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Ir=Ne.Uint8Array;function Po(e){var t=new e.constructor(e.byteLength);return new Ir(t).set(new Ir(e)),t}function cg(e,t){var n=Po(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var ug=/\w*$/;function lg(e){var t=new e.constructor(e.source,ug.exec(e));return t.lastIndex=e.lastIndex,t}
vendor: 4,402 bytes, line 2
2var Hi=Ue?Ue.prototype:void 0,Bi=Hi?Hi.valueOf:void 0;function fg(e){return Bi?Object(Bi.call(e)):{}}function dg(e,t){var n=Po(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var pg="[object Boolean]",hg="[object Date]",mg="[object Map]",gg="[object Number]",_g="[object RegExp]",yg="[object Set]",bg="[object String]",Sg="[object Symbol]",Eg="[object ArrayBuffer]",Tg="[object DataView]",vg="[object Float32Array]",wg="[object Float64Array]",Rg="[object Int8Array]",Ag="[object Int16Array]",Ig="[object Int32Array]",Og="[object Uint8Array]",Pg="[object Uint8ClampedArray]",Cg="[object Uint16Array]",xg="[object Uint32Array]";function Lg(e,t,n){var r=e.constructor;switch(t){case Eg:return Po(e);case pg:case hg:return new r(+e);case Tg:return cg(e);case vg:case wg:case Rg:case Ag:case Ig:case Og:case Pg:case Cg:case xg:return dg(e);case mg:return new r;case gg:case bg:return new r(e);case _g:return lg(e);case yg:return new r;case Sg:return fg(e)}}function Ng(e){return typeof e.constructor=="function"&&!Eo(e)?Wd(vh(e)):{}}var $g="[object Map]";function kg(e){return it(e)&&Ae(e)==$g}var qi=Jt&&Jt.isMap,Dg=qi?vo(qi):kg,Ug="[object Set]";function Mg(e){return it(e)&&Ae(e)==Ug}var Wi=Jt&&Jt.isSet,Fg=Wi?vo(Wi):Mg,bu="[object Arguments]",jg="[object Array]",Hg="[object Boolean]",Bg="[object Date]",qg="[object Error]",Su="[object Function]",Wg="[object GeneratorFunction]",zg="[object Map]",Gg="[object Number]",Eu="[object Object]",Vg="[object RegExp]",Jg="[object Set]",Kg="[object String]",Xg="[object Symbol]",Yg="[object WeakMap]",Zg="[object ArrayBuffer]",Qg="[object DataView]",e_="[object Float32Array]",t_="[object Float64Array]",n_="[object Int8Array]",r_="[object Int16Array]",s_="[object Int32Array]",o_="[object Uint8Array]",i_="[object Uint8ClampedArray]",a_="[object Uint16Array]",c_="[object Uint32Array]",K={};K[bu]=K[jg]=K[Zg]=K[Qg]=K[Hg]=K[Bg]=K[e_]=K[t_]=K[n_]=K[r_]=K[s_]=K[zg]=K[Gg]=K[Eu]=K[Vg]=K[Jg]=K[Kg]=K[Xg]=K[o_]=K[i_]=K[a_]=K[c_]=!0;K[qg]=K[Su]=K[Yg]=!1;function gr(e,t,n,r,s,o){var i;if(i!==void 0)return i;if(!at(e))return e;var a=Pe(e);if(a)i=ag(e);else{var c=Ae(e),u=c==Su||c==Wg;if(Cn(e))return Gm(e);if(c==Eu||c==bu||u&&!s)i=u?{}:Ng(e);else{if(!K[c])return s?e:{};i=Lg(e,c)}}o||(o=new De);var f=o.get(e);if(f)return f;o.set(e,i),Fg(e)?e.forEach(function(h){i.add(gr(h,t,n,h,e,o))}):Dg(e)&&e.forEach(function(h,m){i.set(m,gr(h,t,n,m,e,o))});var l=Bs,d=a?void 0:l(e);return Gd(d||e,function(h,m){d&&(m=h,h=e[m]),np(i,m,gr(h,t,n,m,e,o))}),i}var u_=1,l_=4;function NI(e){return gr(e,u_|l_)}var f_="__lodash_hash_undefined__";function d_(e){return this.__data__.set(e,f_),this}function p_(e){return this.__data__.has(e)}function Nn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ze;++t<n;)this.add(e[t])}Nn.prototype.add=Nn.prototype.push=d_;Nn.prototype.has=p_;function h_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Tu(e,t){return e.has(t)}var m_=1,g_=2;function vu(e,t,n,r,s,o){var i=n&m_,a=e.length,c=t.length;if(a!=c&&!(i&&c>a))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var l=-1,d=!0,h=n&g_?new Nn:void 0;for(o.set(e,t),o.set(t,e);++l<a;){var m=e[l],y=t[l];if(r)var _=i?r(y,m,l,t,e,o):r(m,y,l,e,t,o);if(_!==void 0){if(_)continue;d=!1;break}if(h){if(!h_(t,function(g,S){if(!Tu(h,S)&&(m===g||s(m,g,n,r,o)))return h.push(S)})){d=!1;break}}else if(!(m===y||s(m,y,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function __(e){var t=-1,n=Array(e.size);return e.forEach(function(r,s){n[++t]=[s,r]}),n}function Co(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var y_=1,b_=2,S_="[object Boolean]",E_="[object Date]",T_="[object Error]",v_="[object Map]",w_="[object Number]",R_="[object RegExp]",A_="[object Set]",I_="[object String]",O_="[object Symbol]",P_="[object ArrayBuffer]",C_="[object DataView]",zi=Ue?Ue.prototype:void 0,hs=zi?zi.valueOf:void 0;function x_(e,t,n,r,s,o,i){switch(n){case C_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P_:return!(e.byteLength!=t.byteLength||!o(new Ir(e),new Ir(t)));case S_:case E_:case w_:return yo(+e,+t);case T_:return e.name==t.name&&e.message==t.message;case R_:case I_:return e==t+"";case v_:var a=__;case A_:var c=r&y_;if(a||(a=Co),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;r|=b_,i.set(e,t);var f=vu(a(e),a(t),r,s,o,i);return i.delete(e),f;
vendor: 1,149 bytes, line 2
2case O_:if(hs)return hs.call(e)==hs.call(t)}return!1}var L_=1,N_=Object.prototype,$_=N_.hasOwnProperty;function k_(e,t,n,r,s,o){var i=n&L_,a=Bs(e),c=a.length,u=Bs(t),f=u.length;if(c!=f&&!i)return!1;for(var l=c;l--;){var d=a[l];if(!(i?d in t:$_.call(t,d)))return!1}var h=o.get(e),m=o.get(t);if(h&&m)return h==t&&m==e;var y=!0;o.set(e,t),o.set(t,e);for(var _=i;++l<c;){d=a[l];var g=e[d],S=t[d];if(r)var w=i?r(S,g,d,t,e,o):r(g,S,d,e,t,o);if(!(w===void 0?g===S||s(g,S,n,r,o):w)){y=!1;break}_||(_=d=="constructor")}if(y&&!_){var A=e.constructor,L=t.constructor;A!=L&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof L=="function"&&L instanceof L)&&(y=!1)}return o.delete(e),o.delete(t),y}var D_=1,Gi="[object Arguments]",Vi="[object Array]",ar="[object Object]",U_=Object.prototype,Ji=U_.hasOwnProperty;function M_(e,t,n,r,s,o){var i=Pe(e),a=Pe(t),c=i?Vi:Ae(e),u=a?Vi:Ae(t);c=c==Gi?ar:c,u=u==Gi?ar:u;var f=c==ar,l=u==ar,d=c==u;if(d&&Cn(e)){if(!Cn(t))return!1;i=!0,f=!1}if(d&&!f)return o||(o=new De),i||wo(e)?vu(e,t,n,r,s,o):x_(e,t,c,n,r,s,o);if(!(n&D_)){var h=f&&Ji.call(e,"__wrapped__"),m=l&&Ji.call(t,"__wrapped__");
2if(h||m){var y=h?e.value():e,_=m?t.value():t;return o||(o=new De),s(y,_,n,r,o)}}return d?(o||(o=new De),k_(e,t,n,r,s,o)):!1}function Vr(e,t,n,r,s){return e===t?!0:e==null||t==null||!it(e)&&!it(t)?e!==e&&t!==t:M_(e,t,n,r,Vr,s)}var F_=1,j_=2;function H_(e,t,n,r){var s=n.length,o=s;if(e==null)return!o;for(e=Object(e);s--;){var i=n[s];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++s<o;){i=n[s];var a=i[0],c=e[a],u=i[1];if(i[2]){if(c===void 0&&!(a in e))return!1}else{var f=new De,l;if(!(l===void 0?Vr(u,c,F_|j_,r,f):l))return!1}}return!0}function wu(e){return e===e&&!at(e)}function B_(e){for(var t=Ro(e),n=t.length;n--;){var r=t[n],s=e[r];t[n]=[r,s,wu(s)]}return t}function Ru(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function q_(e){var t=B_(e);return t.length==1&&t[0][2]?Ru(t[0][0],t[0][1]):function(n){return n===e||H_(n,e,t)}}function W_(e,t){return e!=null&&t in Object(e)}function z_(e,t,n){t=Kc(t,e);for(var r=-1,s=t.length,o=!1;++r<s;){var i=Gr(t[r]);if(!(o=e!=null&&n(e,i)))break;e=e[i]}return o||++r!=s?o:(s=e==null?0:e.length,!!s&&bo(s)&&Bc(i,s)&&(Pe(e)||To(e)))}function G_(e,t){return e!=null&&z_(e,t,W_)}var V_=1,J_=2;function K_(e,t){return Ao(e)&&wu(t)?Ru(Gr(e),t):function(n){var r=Fs(n,e);return r===void 0&&r===t?G_(n,e):Vr(t,r,V_|J_)}}function X_(e){return function(t){return t?.[e]}}function Y_(e){return function(t){return Xc(t,e)}}function Z_(e){return Ao(e)?X_(Gr(e)):Y_(e)}function Q_(e){return typeof e=="function"?e:e==null?Id:typeof e=="object"?Pe(e)?K_(e[0],e[1]):q_(e):Z_(e)}function ey(e,t,n,r){for(var s=-1,o=e==null?0:e.length;++s<o;){var i=e[s];t(r,i,n(i),e)}return r}function ty(e){return function(t,n,r){for(var s=-1,o=Object(t),i=r(t),a=i.length;a--;){var c=i[++s];if(n(o[c],c,o)===!1)break}return t}}var ny=ty();function ry(e,t){return e&&ny(e,t,Ro)}function sy(e,t){return function(n,r){if(n==null)return n;if(!So(n))return e(n,r);for(var s=n.length,o=-1,i=Object(n);++o<s&&r(i[o],o,i)!==!1;);return n}}var oy=sy(ry);function iy(e,t,n,r){return oy(e,function(s,o,i){t(r,s,n(s),i)}),r}function ay(e,t){return function(n,r){var s=Pe(n)?ey:iy,o={};return s(n,e,Q_(r),o)}}var ms=function(){return Ne.Date.now()},cy="Expected a function",uy=Math.max,ly=Math.min;function $I(e,t,n){var r,s,o,i,a,c,u=0,f=!1,l=!1,d=!0;if(typeof e!="function")throw new TypeError(cy);t=Ei(t)||0,at(n)&&(f=!!n.leading,l="maxWait"in n,o=l?uy(Ei(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function h(I){var T=r,v=s;return r=s=void 0,u=I,i=e.apply(v,T),i}function m(I){return u=I,a=setTimeout(g,t),f?h(I):i}function y(I){var T=I-c,v=I-u,F=t-T;return l?ly(F,o-v):F}function _(I){var T=I-c,v=I-u;return c===void 0||T>=t||T<0||l&&v>=o}function g(){var I=ms();if(_(I))return S(I);a=setTimeout(g,y(I))}function S(I){return a=void 0,d&&r?h(I):(r=s=void 0,i)}function w(){a!==void 0&&clearTimeout(a),u=0,r=c=s=a=void 0}function A(){return a===void 0?i:S(ms())}function L(){var I=ms(),T=_(I);if(r=arguments,s=this,c=I,T){if(a===void 0)return m(c);if(l)return clearTimeout(a),a=setTimeout(g,t),h(c)}return a===void 0&&(a=setTimeout(g,t)),i}return L.cancel=w,L.flush=A,L}function fy(e,t,n){for(var r=-1,s=e==null?0:e.length;++r<s;)if(n(t,e[r]))return!0;return!1}var dy=Object.prototype,py=dy.hasOwnProperty,kI=ay(function(e,t,n){py.call(e,n)?e[n].push(t):qc(e,n,[t])}),hy="[object Map]",my="[object Set]",gy=Object.prototype,_y=gy.hasOwnProperty;function DI(e){if(e==null)return!0;if(So(e)&&(Pe(e)||typeof e=="string"||typeof e.splice=="function"||Cn(e)||wo(e)||To(e)))return!e.length;var t=Ae(e);if(t==hy||t==my)return!e.size;if(Eo(e))return!Jc(e).length;for(var n in e)if(_y.call(e,n))return!1;return!0}function UI(e,t){return Vr(e,t)}var MI=Oo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),FI=Oo(function(e,t,n){return e+(n?" ":"")+su(t)});function jI(e){return on(e).toLowerCase()}var yy=1/0,by=Wt&&1/Co(new Wt([,-0]))[1]==yy?function(e){return new Wt(e)}:zd,Sy=200;function Ey(e,t,n){var r=-1,s=Yd,o=e.length,i=!0,a=[],c=a;if(n)i=!1,s=fy;else if(o>=Sy){var u=by(e);if(u)return Co(u);i=!1,s=Tu,c=new Nn}else c=a;e:for(;++r<o;){var f=e[r],l=f;if(f=n||f!==0?f:0,i&&l===l){for(var d=c.length;d--;)if(c[d]===l)continue e;a.push(f)}else s(c,l,n)||(c!==a&&c.push(l),a.push(f))}return a}function HI(e,t){return t=typeof t=="function"?t:void 0,e&&e.length?Ey(e,void 0,t):[]}const Ty=e=>{const t=new Map;t.set("web",{name:"web"});const n=e.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:t},r=(o,i)=>{n.platforms.set(o,i)},s=o=>{n.platforms.has(o)&&(n.currentPlatform=n.platforms.get(o))};return n.addPlatform=r,n.setPlatform=s,n},vy=e=>e.CapacitorPlatforms=Ty(e),Au=vy(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{});Au.addPlatform;Au.setPlatform;var Kt;
2(function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"})(Kt||(Kt={}));class gs extends Error{constructor(t,n){super(t),this.message=t,this.code=n}}const wy=e=>{var t,n;return e?.androidBridge?"android":!((n=(t=e?.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0)&&n.bridge?"ios":"web"},Ry=e=>{var t,n,r,s,o;const i=e.CapacitorCustomPlatform||null,a=e.Capacitor||{},c=a.Plugins=a.Plugins||{},u=e.CapacitorPlatforms,f=()=>i!==null?i.name:wy(e),l=((t=u?.currentPlatform)===null||t===void 0?void 0:t.getPlatform)||f,d=()=>l()!=="web",h=((n=u?.currentPlatform)===null||n===void 0?void 0:n.isNativePlatform)||d,m=T=>{const v=A.get(T);return!!(v?.platforms.has(l())||g(T))},y=((r=u?.currentPlatform)===null||r===void 0?void 0:r.isPluginAvailable)||m,_=T=>{var v;return(v=a.PluginHeaders)===null||v===void 0?void 0:v.find(F=>F.name===T)},g=((s=u?.currentPlatform)===null||s===void 0?void 0:s.getPluginHeader)||_,S=T=>e.console.error(T),w=(T,v,F)=>Promise.reject(`${F} does not have an implementation of "${v}".`),A=new Map,L=(T,v={})=>{const F=A.get(T);if(F)return console.warn(`Capacitor plugin "${T}" already registered. Cannot register plugins twice.`),F.proxy;const M=l(),H=g(T);let G;const V=async()=>(!G&&M in v?G=typeof v[M]=="function"?G=await v[M]():G=v[M]:i!==null&&!G&&"web"in v&&(G=typeof v.web=="function"?G=await v.web():G=v.web),G),U=(P,O)=>{var B,J;if(H){const Z=H?.methods.find(oe=>O===oe.name);if(Z)return Z.rtype==="promise"?oe=>a.nativePromise(T,O.toString(),oe):(oe,N)=>a.nativeCallback(T,O.toString(),oe,N);if(P)return(B=P[O])===null||B===void 0?void 0:B.bind(P)}else{if(P)return(J=P[O])===null||J===void 0?void 0:J.bind(P);throw new gs(`"${T}" plugin is not implemented on ${M}`,Kt.Unimplemented)}},Q=P=>{let O;const B=(...J)=>{const Z=V().then(oe=>{const N=U(oe,P);if(N){const te=N(...J);return O=te?.remove,te}else throw new gs(`"${T}.${P}()" is not implemented on ${M}`,Kt.Unimplemented)});return P==="addListener"&&(Z.remove=async()=>O()),Z};return B.toString=()=>`${P.toString()}() { [capacitor code] }`,Object.defineProperty(B,"name",{value:P,writable:!1,configurable:!1}),B},ae=Q("addListener"),k=Q("removeListener"),ee=(P,O)=>{const B=ae({eventName:P},O),J=async()=>{const oe=await B;k({eventName:P,callbackId:oe},O)},Z=new Promise(oe=>B.then(()=>oe({remove:J})));return Z.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await J()},Z},j=new Proxy({},{get(P,O){switch(O){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return H?ee:ae;case"removeListener":return k;default:return Q(O)}}});return c[T]=j,A.set(T,{name:T,proxy:j,platforms:new Set([...Object.keys(v),...H?[M]:[]])}),j},I=((o=u?.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||L;return a.convertFileSrc||(a.convertFileSrc=T=>T),a.getPlatform=l,a.handleError=S,a.isNativePlatform=h,a.isPluginAvailable=y,a.pluginMethodNoop=w,a.registerPlugin=I,a.Exception=gs,a.DEBUG=!!a.DEBUG,a.isLoggingEnabled=!!a.isLoggingEnabled,a.platform=a.getPlatform(),a.isNative=a.isNativePlatform(),a},Ay=e=>e.Capacitor=Ry(e),Or=Ay(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{}),Iy=Or.registerPlugin;Or.Plugins;class BI{constructor(t){this.listeners={},this.windowListeners={},t&&(console.warn(`Capacitor WebPlugin "${t.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=t)}addListener(t,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(n);const s=this.windowListeners[t];s&&!s.registered&&this.addWindowListener(s);const o=async()=>this.removeListener(t,n),i=Promise.resolve({remove:o});return Object.defineProperty(i,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await o()}}),i}async removeAllListeners(){this.listeners={};for(const t in this.windowListeners)this.removeWindowListener(this.windowListeners[t]);this.windowListeners={}}notifyListeners(t,n){const r=this.listeners[t];r&&r.forEach(s=>s(n))}hasListeners(t){return!!this.listeners[t].length}registerWindowListener(t,n){this.windowListeners[n]={registered:!1,windowEventName:t,pluginEventName:n,handler:r=>{this.notifyListeners(n,r)}}}unimplemented(t="not implemented"){return new Or.Exception(t,Kt.Unimplemented)}unavailable(t="not available"){return new Or.Exception(t,Kt.Unavailable)}async removeListener(t,n){const r=this.listeners[t];if(!r)return;const s=r.indexOf(n);this.listeners[t].splice(s,1),this.listeners[t].length||this.removeWindowListener(this.windowListeners[t])}
2addWindowListener(t){window.addEventListener(t.windowEventName,t.handler),t.registered=!0}removeWindowListener(t){t&&(window.removeEventListener(t.windowEventName,t.handler),t.registered=!1)}}var Ki;(function(e){e[e.NONE=0]="NONE",e[e.TOUCH_ID=1]="TOUCH_ID",e[e.FACE_ID=2]="FACE_ID",e[e.FINGERPRINT=3]="FINGERPRINT",e[e.FACE_AUTHENTICATION=4]="FACE_AUTHENTICATION",e[e.IRIS_AUTHENTICATION=5]="IRIS_AUTHENTICATION",e[e.MULTIPLE=6]="MULTIPLE"})(Ki||(Ki={}));var Xi;(function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BIOMETRICS_UNAVAILABLE=1]="BIOMETRICS_UNAVAILABLE",e[e.USER_LOCKOUT=2]="USER_LOCKOUT",e[e.BIOMETRICS_NOT_ENROLLED=3]="BIOMETRICS_NOT_ENROLLED",e[e.USER_TEMPORARY_LOCKOUT=4]="USER_TEMPORARY_LOCKOUT",e[e.AUTHENTICATION_FAILED=10]="AUTHENTICATION_FAILED",e[e.APP_CANCEL=11]="APP_CANCEL",e[e.INVALID_CONTEXT=12]="INVALID_CONTEXT",e[e.NOT_INTERACTIVE=13]="NOT_INTERACTIVE",e[e.PASSCODE_NOT_SET=14]="PASSCODE_NOT_SET",e[e.SYSTEM_CANCEL=15]="SYSTEM_CANCEL",e[e.USER_CANCEL=16]="USER_CANCEL",e[e.USER_FALLBACK=17]="USER_FALLBACK"})(Xi||(Xi={}));const Oy=Iy("NativeBiometric",{web:()=>Zf(()=>import("./web-8SoFzamV.js"),__vite__mapDeps([0,1,2,3])).then(e=>new e.NativeBiometricWeb)});class vn extends Error{}vn.prototype.name="InvalidTokenError";function Py(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Cy(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Py(t)}catch{return atob(t)}}function xy(e,t){if(typeof e!="string")throw new vn("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new vn(`Invalid token specified: missing part #${n+1}`);let s;try{s=Cy(r)}catch(o){throw new vn(`Invalid token specified: invalid base64 for part #${n+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new vn(`Invalid token specified: invalid json for part #${n+1} (${o.message})`)}}const Ly=["android","cordova","electron","phonegap","ios","touch"],qI=()=>kc().smAndDown.value,WI=()=>kc().xs.value,zI=e=>{const t=Pn.getPlatform(),n=Pn.isNativePlatform(),r=Ly.includes(t),s=e.smAndDown.value;return n||r||s},Yi=e=>{let t=typeof e!="string"?JSON.stringify(e):e;try{t=JSON.parse(e)}catch{return!1}return typeof t=="object"&&t!==null},GI=(e,t)=>{t=t||"";const n=1024,r=atob(e),s=r.length,o=Math.ceil(s/n),i=new Array(o);for(let a=0;a<o;++a){const c=a*n,u=Math.min(c+n,s),f=new Array(u-c);for(let l=c,d=0;l<u;++d,++l)f[d]=r[l].charCodeAt(0);i[a]=new Uint8Array(f)}return new Blob(i,{type:t})},ce=[];for(let e=0;e<256;++e)ce.push((e+256).toString(16).slice(1));function Ny(e,t=0){return(ce[e[t+0]]+ce[e[t+1]]+ce[e[t+2]]+ce[e[t+3]]+"-"+ce[e[t+4]]+ce[e[t+5]]+"-"+ce[e[t+6]]+ce[e[t+7]]+"-"+ce[e[t+8]]+ce[e[t+9]]+"-"+ce[e[t+10]]+ce[e[t+11]]+ce[e[t+12]]+ce[e[t+13]]+ce[e[t+14]]+ce[e[t+15]]).toLowerCase()}let _s;const $y=new Uint8Array(16);function ky(){if(!_s){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");_s=crypto.getRandomValues.bind(crypto)}return _s($y)}const Dy=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Zi={randomUUID:Dy};function Uy(e,t,n){e=e||{};const r=e.random??e.rng?.()??ky();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ny(r)}function Iu(e,t,n){return Zi.randomUUID&&!e?Zi.randomUUID():Uy(e)}function Ou(e,t){return function(){return e.apply(t,arguments)}}const{toString:My}=Object.prototype,{getPrototypeOf:Xt}=Object,{iterator:Wn,toStringTag:Pu}=Symbol,Pr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$n=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Pr(n,t))return!0;n=Xt(n)}return!1},Fy=(e,t)=>e!=null&&$n(e,t)?e[t]:void 0,xo=(e=>t=>{const n=My.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ce=e=>(e=e.toLowerCase(),t=>xo(t)===e),Jr=e=>t=>typeof t===e,{isArray:At}=Array,It=Jr("undefined");function an(e){return e!==null&&!It(e)&&e.constructor!==null&&!It(e.constructor)&&ye(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cu=Ce("ArrayBuffer");function jy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cu(e.buffer),t}const Hy=Jr("string"),ye=Jr("function"),xu=Jr("number"),cn=e=>e!==null&&typeof e=="object",By=e=>e===!0||e===!1,_r=e=>{if(!cn(e))return!1;const t=Xt(e);return(t===null||t===Object.prototype||Xt(t)===null)&&!$n(e,Pu)&&!$n(e,Wn)},qy=e=>{if(!cn(e)||an(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Wy=Ce("Date"),zy=Ce("File"),Gy=e=>!!(e&&typeof e.uri<"u"),Vy=e=>e&&typeof e.getParts<"u",Jy=Ce("Blob"),Ky=Ce("FileList"),Xy=Ce("Set"),Yy=e=>cn(e)&&ye(e.pipe);function Zy(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"||typeof window<"u"?window:{}}const Qi=Zy(),ea=typeof Qi.FormData<"u"?Qi.FormData:void 0,Qy=e=>{if(!e)return!1;if(ea&&e instanceof ea)return!0;const t=Xt(e);if(!t||t===Object.prototype||!ye(e.append))return!1;const n=xo(e);return n==="formdata"||n==="object"&&ye(e.toString)&&e.toString()==="[object FormData]"},eb=Ce("URLSearchParams"),[tb,nb,rb,sb]=["ReadableStream","Request","Response","Headers"].map(Ce),ob=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),At(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(an(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Lu(e,t){if(an(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const bt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,Nu=e=>!It(e)&&e!==bt;function zs(...e){const{caseless:t,skipUndefined:n}=Nu(this)&&this||{},r={},s=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&typeof i=="string"&&Lu(r,i)||i,c=Pr(r,a)?r[a]:void 0;_r(c)&&_r(o)?r[a]=zs(c,o):_r(o)?r[a]=zs({},o):At(o)?r[a]=o.slice():(!n||!It(o))&&(r[a]=o)};for(let o=0,i=e.length;o<i;o++){const a=e[o];if(!a||an(a)||(zn(a,s),typeof a!="object"||At(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let u=0;u<c.length;u++){const f=c[u];_b.call(a,f)&&s(a[f],f)}}return r}const ib=(e,t,n,{allOwnKeys:r}={})=>(zn(t,(s,o)=>{n&&ye(s)?Object.defineProperty(e,o,{__proto__:null,value:Ou(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),ab=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cb=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,
vendor: 4,620 bytes, lines 2-3
2configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},ub=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Xt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},lb=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fb=e=>{if(!e)return null;if(At(e))return e;let t=e.length;if(!xu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},db=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xt(Uint8Array)),pb=(e,t)=>{const r=(e&&e[Wn]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},hb=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mb=Ce("HTMLFormElement"),gb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),{propertyIsEnumerable:_b}=Object.prototype,yb=Ce("RegExp"),$u=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zn(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},bb=e=>{$u(e,(t,n)=>{if(ye(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(ye(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sb=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return At(e)?r(e):r(String(e).split(t)),n},Eb=()=>{},Tb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vb(e){return!!(e&&ye(e.append)&&e[Pu]==="FormData"&&e[Wn])}const wb=e=>{const t=new WeakSet,n=r=>{if(cn(r)){if(t.has(r))return;if(an(r))return r;if(!("toJSON"in r)){t.add(r);let s;if(Xy(r)){s=[];for(const o of r){const i=n(o);!It(i)&&s.push(i)}}else s=At(r)?[]:{},zn(r,(o,i)=>{const a=n(o);!It(a)&&(s[i]=a)});return t.delete(r),s}}return r};return n(e)},Rb=Ce("AsyncFunction"),Ab=e=>e&&(cn(e)||ye(e))&&ye(e.then)&&ye(e.catch),ku=((e,t)=>e?setImmediate:t?((n,r)=>(bt.addEventListener("message",({source:s,data:o})=>{s===bt&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),bt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ye(bt.postMessage)),Ib=typeof queueMicrotask<"u"?queueMicrotask.bind(bt):typeof process<"u"&&process.nextTick||ku,Du=e=>e!=null&&ye(e[Wn]),Ob=e=>e!=null&&$n(e,Wn)&&Du(e),p={isArray:At,isArrayBuffer:Cu,isBuffer:an,isFormData:Qy,isArrayBufferView:jy,isString:Hy,isNumber:xu,isBoolean:By,isObject:cn,isPlainObject:_r,isEmptyObject:qy,isReadableStream:tb,isRequest:nb,isResponse:rb,isHeaders:sb,isUndefined:It,isDate:Wy,isFile:zy,isReactNativeBlob:Gy,isReactNative:Vy,isBlob:Jy,isRegExp:yb,isFunction:ye,isStream:Yy,isURLSearchParams:eb,isTypedArray:db,isFileList:Ky,forEach:zn,merge:zs,extend:ib,trim:ob,stripBOM:ab,inherits:cb,toFlatObject:ub,kindOf:xo,kindOfTest:Ce,endsWith:lb,toArray:fb,forEachEntry:pb,matchAll:hb,isHTMLForm:mb,hasOwnProperty:Pr,hasOwnProp:Pr,hasOwnInPrototypeChain:$n,getSafeProp:Fy,reduceDescriptors:$u,freezeMethods:bb,toObjectSet:Sb,toCamelCase:gb,noop:Eb,toFiniteNumber:Tb,findKey:Lu,global:bt,isContextDefined:Nu,isSpecCompliantForm:vb,toJSONObject:wb,isAsyncFn:Rb,isThenable:Ab,setImmediate:ku,asap:Ib,isIterable:Du,isSafeIterable:Ob},Pb=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cb=e=>{const t={};let n,r,s;return e&&e.split(` 3`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim();const a=p.hasOwnProp(t,n);!n||a&&p.hasOwnProp(Pb,n)||(n==="set-cookie"?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+", "+r:r)}),t};function xb(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const Lb=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Nb=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Lo(e,t){return p.isArray(e)?e.map(n=>Lo(n,t)):xb(String(e).replace(t,""))}const $b=e=>Lo(e,Lb),kb=e=>Lo(e,Nb);function Uu(e){const t=Object.create(null);return p.forEach(e.toJSON(),(n,r)=>{t[r]=kb(n)}),t}const ta=Symbol("internals");function En(e){return e&&String(e).trim().toLowerCase()}function yr(e){return e===!1||e==null?e:p.isArray(e)?e.map(yr):$b(String(e))}function Db(e){const t=Object.create(null),n=/([^\s,;
3=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ub=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ys(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function Mb(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n="";for(let r=1;r<t;r++){const s=e.charCodeAt(r);if(s===34||s===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function Fb(e){const t=Object.create(null),n=String(e);let r=0,s=!1,o=!1;function i(a){const c=ys(n.slice(r,a)),u=c.indexOf("=");if(u<1)return;const f=ys(c.slice(0,u));if(!Ub.test(f))return;const l=f.toLowerCase();if(l==="__proto__"||l==="constructor"||l==="prototype")return;const d=ys(c.slice(u+1));t[l]=Mb(d)}for(let a=0;a<n.length;a++){const c=n.charCodeAt(a);s?o?o=!1:c===92?o=!0:c===34&&(s=!1):c===34?s=!0:(c===44||c===59)&&(i(a),r=a+1)}return i(n.length),t}const jb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bs(e,t,n,r,s){if(p.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!p.isString(t)){if(p.isString(r))return t.indexOf(r)!==-1;if(p.isRegExp(r))return r.test(t)}}function Hb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Bb(e,t){const n=p.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let he=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,c,u){const f=En(c);if(!f)return;const l=p.findKey(s,f);(!l||s[l]===void 0||u===!0||u===void 0&&s[l]!==!1)&&(s[l||c]=yr(a))}const i=(a,c)=>p.forEach(a,(u,f)=>o(u,f,c));if(p.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(p.isString(t)&&(t=t.trim())&&!jb(t))i(Cb(t),n);else if(p.isObject(t)&&p.isSafeIterable(t)){let a=Object.create(null),c,u;for(const f of t){if(!p.isArray(f))throw new TypeError("Object iterator must return a key-value pair");
vendor: 10,125 bytes, lines 3-4
3u=f[0],p.hasOwnProp(a,u)?(c=a[u],a[u]=p.isArray(c)?[...c,f[1]]:[c,f[1]]):a[u]=f[1]}i(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=En(t),t){const r=p.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Db(s);if(p.isFunction(n))return n.call(this,s,r);if(p.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=En(t),t){const r=p.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||bs(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=En(i),i){const a=p.findKey(r,i);a&&(!n||bs(r,r[a],a,n))&&(delete r[a],s=!0)}}return p.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||bs(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return p.forEach(this,(s,o)=>{const i=p.findKey(r,o);if(i){n[i]=yr(s),delete n[o];return}const a=t?Hb(o):String(o).trim();a!==o&&delete n[o],n[a]=yr(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return p.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&p.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 4`)}getSetCookie(){const t=this.get("set-cookie");return p.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return Fb(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ta]=this[ta]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=En(i);r[a]||(Bb(s,i),r[a]=!0)}return p.isArray(t)?t.forEach(o):o(t),this}};he.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);p.reduceDescriptors(he.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});p.freezeMethods(he);const Cr="[REDACTED ****]";function qb(e){if(p.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(p.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Wb(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||p.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof he&&(o=o.toJSON()),r.push(o);let i;if(p.isArray(o))i=[],o.forEach((a,c)=>{const u=s(a);p.isUndefined(u)||(i[c]=u)});else{if(!p.isPlainObject(o)&&qb(o))return r.pop(),o;i=Object.create(null);for(const[a,c]of Object.entries(o)){const u=n.has(a.toLowerCase())?Cr:s(c);p.isUndefined(u)||(i[a]=u)}}return r.pop(),i};return s(e)}function na(e){try{return String(e)}catch{return""}}function zb(e){return e.errors.map(n=>{try{return n&&n.message?na(n.message):na(n)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let E=class Mu extends Error{static from(t,n,r,s,o,i){let a=t.message;!a&&p.isArray(t.errors)&&t.errors.length&&(a=zb(t));const c=new Mu(a,n||t.code,r,s,o);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),i&&Object.assign(c,i),c}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&p.hasOwnProp(t,"redact")?t.redact:void 0,r=p.isArray(n)&&n.length>0?Wb(t,n):p.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};E.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";E.ERR_BAD_OPTION="ERR_BAD_OPTION";E.ECONNABORTED="ECONNABORTED";E.ETIMEDOUT="ETIMEDOUT";E.ECONNREFUSED="ECONNREFUSED";E.ERR_NETWORK="ERR_NETWORK";E.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";E.ERR_DEPRECATED="ERR_DEPRECATED";E.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";E.ERR_BAD_REQUEST="ERR_BAD_REQUEST";E.ERR_CANCELED="ERR_CANCELED";E.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";E.ERR_INVALID_URL="ERR_INVALID_URL";E.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Gb=null,Fu=100;function Gs(e){return p.isPlainObject(e)||p.isArray(e)}function ju(e){return p.endsWith(e,"[]")?e.slice(0,-2):e}function Ss(e,t,n){return e?e.concat(t).map(function(s,o){return s=ju(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Vb(e){return p.isArray(e)&&!e.some(Gs)}const Jb=p.toFlatObject(p,{},null,function(t){return/^is[A-Z]/.test(t)});function Kr(e,t,n){if(!p.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=p.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!p.isUndefined(w[S])});const r=n.metaTokens,s=n.visitor||m,o=n.dots,i=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?Fu:n.maxDepth,u=a&&p.isSpecCompliantForm(t),f=[];if(!p.isFunction(s))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(p.isDate(g))return g.toISOString();if(p.isBoolean(g))return g.toString();if(!u&&p.isBlob(g))throw new E("Blob is not supported. Use a Buffer instead.");if(p.isArrayBuffer(g)||p.isTypedArray(g)){if(u&&typeof a=="function")return new a([g]);throw new E("Blob is not supported. Use a Buffer instead.",E.ERR_NOT_SUPPORT)}return g}function d(g){if(g>c)throw new E("Object is too deeply nested ("+g+" levels). Max depth: "+c,E.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(g,S){if(c===1/0)return JSON.stringify(g);const w=[];return JSON.stringify(g,function(L,I){if(!p.isObject(I))return I;for(;w.length&&w[w.length-1]!==this;)w.pop();return w.push(I),d(S+w.length-1),I})}function m(g,S,w){let A=g;if(p.isReactNative(t)&&p.isReactNativeBlob(g))return t.append(Ss(w,S,o),l(g)),!1;if(g&&!w&&typeof g=="object"){if(p.endsWith(S,"{}"))S=r?S:S.slice(0,-2),g=h(g,1);else if(p.isArray(g)&&Vb(g)||(p.isFileList(g)||p.endsWith(S,"[]"))&&(A=p.toArray(g)))return S=ju(S),A.forEach(function(I,T){!(p.isUndefined(I)||I===null)&&t.append(i===!0?Ss([S],T,o):i===null?S:S+"[]",l(I))}),!1}return Gs(g)?!0:(t.append(Ss(w,S,o),l(g)),!1)}const y=Object.assign(Jb,{defaultVisitor:m,convertValue:l,isVisitable:Gs});function _(g,S,w=0){if(!p.isUndefined(g)){if(d(w),f.indexOf(g)!==-1)throw new Error("Circular reference detected in "+S.join("."));f.push(g),p.forEach(g,function(L,I){(!(p.isUndefined(L)||L===null)&&s.call(t,L,p.isString(I)?I.trim():I,S,y))===!0&&_(L,S?S.concat(I):[I],w+1)}),f.pop()}}if(!p.isObject(e))throw new TypeError("data must be an object");return _(e),t}function ra(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function No(e,t){this._pairs=[],e&&Kr(e,this,t)}const Hu=No.prototype;Hu.append=function(t,n){this._pairs.push([t,n])};Hu.toString=function(t){const n=t?r=>t.call(this,r,ra):ra;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Kb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Bu(e,t,n){if(!t)return e;e=e||"";const r=p.isFunction(n)?{serialize:n}:n,s=p.getSafeProp(r,"encode")||Kb,o=p.getSafeProp(r,"serialize");let i;if(o?i=o(t,r):i=p.isURLSearchParams(t)?t.toString():new No(t,r).toString(s),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class sa{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){p.forEach(this.handlers,function(r){r!==null&&t(r)})}}const $o={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Xb=typeof URLSearchParams<"u"?URLSearchParams:No,Yb=typeof FormData<"u"?FormData:null,Zb=typeof Blob<"u"?Blob:null,Qb={isBrowser:!0,classes:{URLSearchParams:Xb,FormData:Yb,Blob:Zb},protocols:["http","https","file","blob","url","data"]},ko=typeof window<"u"&&typeof document<"u",Vs=typeof navigator=="object"&&navigator||void 0,eS=ko&&(!Vs||["ReactNative","NativeScript","NS"].indexOf(Vs.product)<0),tS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nS=ko&&window.location.href||"http://localhost",rS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ko,hasStandardBrowserEnv:eS,hasStandardBrowserWebWorkerEnv:tS,navigator:Vs,origin:nS},Symbol.toStringTag,{value:"Module"})),ue={...rS,...Qb};function sS(e,t){return Kr(e,new ue.classes.URLSearchParams,{visitor:function(n,r,s,o){return ue.isNode&&p.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}const oa=Fu;function qu(e){if(e>oa)throw new E("FormData field is too deeply nested ("+e+" levels). Max depth: "+oa,E.ERR_FORM_DATA_DEPTH_EXCEEDED)}function oS(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(e))!==null;)qu(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function iS(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Wu(e){function t(n,r,s,o){qu(o);let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=o>=n.length;return i=!i&&p.isArray(s)?s.length:i,c?(p.hasOwnProp(s,i)?s[i]=p.isArray(s[i])?s[i].concat(r):[s[i],r]:s[i]=r,!a):((!p.hasOwnProp(s,i)||!p.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&p.isArray(s[i])&&(s[i]=iS(s[i])),!a)}if(p.isFormData(e)&&p.isFunction(e.entries)){const n={};return p.forEachEntry(e,(r,s)=>{t(oS(r),s,n,0)}),n}return null}const Mt=(e,t)=>
vendor: 7,571 bytes, line 4
4e!=null&&p.hasOwnProp(e,t)?e[t]:void 0;function aS(e,t,n){if(p.isString(e))try{return(t||JSON.parse)(e),p.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Gn={transitional:$o,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=p.isObject(t);if(o&&p.isHTMLForm(t)&&(t=new FormData(t)),p.isFormData(t))return s?JSON.stringify(Wu(t)):t;if(p.isArrayBuffer(t)||p.isBuffer(t)||p.isStream(t)||p.isFile(t)||p.isBlob(t)||p.isReadableStream(t))return t;if(p.isArrayBufferView(t))return t.buffer;if(p.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){const c=Mt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return sS(t,c).toString();if((a=p.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=Mt(this,"env"),f=u&&u.FormData;return Kr(a?{"files[]":t}:t,f&&new f,c)}}return o||s?(n.setContentType("application/json",!1),aS(t)):t}],transformResponse:[function(t){const n=Mt(this,"transitional")||Gn.transitional,r=n&&n.forcedJSONParsing,s=Mt(this,"responseType"),o=s==="json";if(p.isResponse(t)||p.isReadableStream(t))return t;if(t&&p.isString(t)&&(r&&!s||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,Mt(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?E.from(c,E.ERR_BAD_RESPONSE,this,null,Mt(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch","query"],e=>{Gn.headers[e]={}});function Es(e,t){const n=this||Gn,r=t||n,s=he.from(r.headers);let o=r.data;return p.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function zu(e){return!!(e&&e.__CANCEL__)}let Vn=class extends E{constructor(t,n,r){super(t??"canceled",E.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Gu(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new E("Request failed with status code "+n.status,n.status>=400&&n.status<500?E.ERR_BAD_REQUEST:E.ERR_BAD_RESPONSE,n.config,n.request,n))}function cS(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function uS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),f=r[o];i||(i=u),n[s]=c,r[s]=u;let l=o,d=0;for(;l!==s;)d+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const h=f&&u-f;return h?Math.round(d*1e3/h):void 0}}function lS(e,t){let n=0,r=1e3/t,s,o;const i=(u,f=Date.now())=>{n=f,s=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const f=Date.now(),l=f-n;l>=r?i(u,f):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-l)))},()=>s&&i(s)]}const xr=(e,t,n=3)=>{let r=0;const s=uS(50,250);return lS(o=>{if(!o||typeof o.loaded!="number")return;const i=o.loaded,a=o.lengthComputable?o.total:void 0,c=Math.max(0,a!=null?Math.min(i,a):i),u=Math.max(0,c-r),f=s(u);r=Math.max(r,c);const l={loaded:c,total:a,progress:a?c/a:void 0,bytes:u,rate:f||void 0,estimated:f&&a?(a-c)/f:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(l)},n)},ia=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},aa=(e,t=p.asap)=>(...n)=>t(()=>e(...n)),fS=ue.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ue.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ue.origin),ue.navigator&&/(msie|trident)/i.test(ue.navigator.userAgent)):()=>!0,dS=ue.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];p.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),p.isString(r)&&a.push(`path=${r}`),p.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),p.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),s=r.indexOf("=");if(s!==-1&&r.slice(0,s)===e)try{return decodeURIComponent(r.slice(s+1))}catch{return r.slice(s+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function pS(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hS(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}const mS=/^https?:(?!\/\/)/i,gS=/[\t\n\r]/g;function _S(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function yS(e){return _S(e).replace(gS,"")}function bS(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,r="")=>`${n}${r}${Cr}`)}function SS(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Cr}@`),n=t.indexOf("#"),s=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Cr}`);return n===-1?s:`${s}#${bS(t.slice(n+1))}`}function ca(e,t){if(typeof e=="string"){const n=yS(e);if(mS.test(n))throw new E(`Invalid URL ${JSON.stringify(SS(n))}: missing "//" after protocol`,E.ERR_INVALID_URL,t)}}function Vu(e,t,n,r){ca(t,r);let s=!pS(t);return e&&(s||n===!1)?(ca(e,r),hS(e,t)):t}const ua=e=>e instanceof he?{...e}:e,ES=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function Ot(e,t){e=e||{},t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,l,d,h){return p.isPlainObject(f)&&p.isPlainObject(l)?p.merge.call({caseless:h},f,l):p.isPlainObject(l)?p.merge({},l):p.isArray(l)?l.slice():l}function s(f,l,d,h){if(p.isUndefined(l)){if(!p.isUndefined(f))return r(void 0,f,d,h)}else return r(f,l,d,h)}function o(f,l){if(!p.isUndefined(l))return r(void 0,l)}function i(f,l){if(p.isUndefined(l)){if(!p.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function a(f){const l=p.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!p.isUndefined(l))if(p.isPlainObject(l)){if(p.hasOwnProp(l,f))return l[f]}else return;const d=p.hasOwnProp(e,"transitional")?e.transitional:void 0;if(p.isPlainObject(d)&&p.hasOwnProp(d,f))return d[f]}function c(f,l,d){if(p.hasOwnProp(t,d))return r(f,l);if(p.hasOwnProp(e,d))return r(void 0,f)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:c,headers:(f,l,d)=>s(ua(f),ua(l),d,!0)};return p.forEach(ES({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const d=p.hasOwnProp(u,l)?u[l]:s,h=p.hasOwnProp(e,l)?e[l]:void 0,m=p.hasOwnProp(t,l)?t[l]:void 0,y=d(h,m,l);p.isUndefined(y)&&d!==c||(n[l]=y)}),p.hasOwnProp(t,"validateStatus")&&p.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(p.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.val
4idateStatus),n}const TS=["content-type","content-length"];function vS(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([r,s])=>{TS.includes(r.toLowerCase())&&e.set(r,s)})}const wS=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function Ju(e){const t=Ot({},e),n=d=>p.hasOwnProp(t,d)?t[d]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const c=n("auth"),u=n("baseURL"),f=n("allowAbsoluteUrls"),l=n("url");if(t.headers=a=he.from(a),t.url=Bu(Vu(u,l,f,t),n("params"),n("paramsSerializer")),c){const d=p.getSafeProp(c,"username")||"",h=p.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(d+":"+(h?wS(h):"")))}catch(m){throw E.from(m,E.ERR_BAD_OPTION_VALUE,e)}}if(p.isFormData(r)&&(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv||p.isReactNative(r)?a.setContentType(void 0):p.isFunction(r.getHeaders)&&vS(a,r.getHeaders(),n("formDataHeaderPolicy"))),ue.hasStandardBrowserEnv&&(p.isFunction(s)&&(s=s(t)),s===!0||s==null&&fS(t.url))){const h=o&&i&&dS.read(i);h&&a.set(o,h)}return t}const RS=typeof XMLHttpRequest<"u",AS=RS&&function(e){return new Promise(function(n,r){const s=Ju(e);let o=s.data;const i=he.from(s.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=s,f,l,d,h,m;function y(){h&&h(),m&&m(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let _=new XMLHttpRequest;_.open(s.method.toUpperCase(),s.url,!0),_.timeout=s.timeout;function g(){if(!_)return;const w=he.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),L={data:!a||a==="text"||a==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:w,config:e,request:_};Gu(function(T){n(T),y()},function(T){r(T),y()},L),_=null}"onloadend"in _?_.onloadend=g:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.startsWith("file:"))||setTimeout(g)},_.onabort=function(){_&&(r(new E("Request aborted",E.ECONNABORTED,e,_)),y(),_=null)},_.onerror=function(A){const L=A&&A.message?A.message:"Network Error",I=new E(L,E.ERR_NETWORK,e,_);I.event=A||null,r(I),y(),_=null},_.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||$o;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),r(new E(A,L.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,e,_)),y(),_=null},o===void 0&&i.setContentType(null),"setRequestHeader"in _&&p.forEach(Uu(i),function(A,L){_.setRequestHeader(L,A)}),p.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),a&&a!=="json"&&(_.responseType=s.responseType),u&&([d,m]=xr(u,!0),_.addEventListener("progress",d)),c&&_.upload&&([l,h]=xr(c),_.upload.addEventListener("progress",l),_.upload.addEventListener("loadend",h)),(s.cancelToken||s.signal)&&(f=w=>{_&&(r(!w||w.type?new Vn(null,e,_):w),_.abort(),y(),_=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const S=cS(s.url);if(S&&!ue.protocols.includes(S)){r(new E("Unsupported protocol "+S+":",E.ERR_BAD_REQUEST,e)),y();return}_.send(o||null)})},IS=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const s=function(c){if(!r){r=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof E?u:new Vn(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,s(new E(`timeout of ${t}ms exceeded`,E.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>{if(!r){if(c.aborted){s.call(c);return}c.addEventListener("abort",s,{once:!0})}});const{signal:a}=n;return a.unsubscribe=()=>p.asap(i),a},OS=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},PS=async function*(e,t){for await(const n of CS(e))yield*OS(n,t)},CS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},la=(e,t,n,r)=>{const s=PS(e,t);let o=0,i,a=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await s.next();if(u){a(),c.close();return}let l=f.byteLength;if(n){let d=o+=l;n(d)}c.enqueue(new Uint8Array(f))}catch(u){throw a(u),u}},cancel(c){return a(c),s.return()}},{highWaterMark:2})},fa=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ku=(e,t,n)=>t+2<n&&fa(e.charCodeAt(t+1))&&fa(e.charCodeAt(t+2)),da=e=>e<=57?e-48:(e&223)-55,xS=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,LS=e=>e===9||e===10||e===12||e===13||e===32,NS=e=>{const t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},$S=e=>{const t=e.length;let n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},kS=e=>{const t=e.length;let n=0,r=0,s=!1;for(let o=0;o<t;o++){let i=e.charCodeAt(o);if(i===37&&Ku(e,o,t)&&(i=da(e.charCodeAt(o+1))*16+da(e.charCodeAt(o+2)),o+=2),!LS(i)){if(i===61){r++;continue}if(!xS(i)||r>0){s=!0;continue}n++}}return s||r>2||r>0&&(n+r)%4!==0||n%4===1?$S(e):NS(n)},DS=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),s=e.slice(n+1);if(/;base64/i.test(r))return t(s);let i=0;for(let a=0,c=s.length;a<c;a++){const u=s.charCodeAt(a);if(u===37&&Ku(s,a,c))i+=1,a+=2;else if(u<128)i+=1;else if(u<2048)i+=2;else if(u>=55296&&u<=56319&&a+1<c){const f=s.charCodeAt(a+1);f>=56320&&f<=57343?(i+=4,a++):i+=3}else i+=3}return i};function US(e){const t=typeof e=="string"?e.indexOf("#"):-1;return DS(t===-1?e:e.slice(0,t),kS)}const Do="1.19.0",pa=64*1024,{isFunction:cr}=p,MS=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),ha=e=>{if(!p.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},ma=(e,...t)=>{try{return!!e(...t)}catch{return!1}},FS=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},jS=e=>{const t=p.global!==void 0&&p.global!==null?p.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=p.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:i}=e,a=s?cr(s):typeof fetch=="function",c=cr(o),u=cr(i);if(!a)return!1;const f=a&&cr(n),l=a&&(typeof r=="function"?(g=>S=>g.encode(S))(new r):async g=>new Uint8Array(await new o(g).arrayBuffer())),d=c&&f&&ma(()=>{let g=!1;const S=new o(ue.origin,{body:new n,method:"POST",get duplex(){return g=!0,"half"}}),w=S.headers.has("Content-Type");return S.body!=null&&S.body.cancel(),g&&!w}),h=u&&f&&ma(()=>
vendor: 8,594 bytes, lines 4-10
4p.isReadableStream(new i("").body)),m={stream:h&&(g=>g.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!m[g]&&(m[g]=(S,w)=>{let A=S&&S[g];if(A)return A.call(S);throw new E(`Response type '${g}' is not supported`,E.ERR_NOT_SUPPORT,w)})});const y=async g=>{if(g==null)return 0;if(p.isBlob(g))return g.size;if(p.isSpecCompliantForm(g))return(await new o(ue.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(p.isArrayBufferView(g)||p.isArrayBuffer(g))return g.byteLength;if(p.isURLSearchParams(g)&&(g=g+""),p.isString(g))return(await l(g)).byteLength},_=async(g,S)=>{const w=p.toFiniteNumber(g.getContentLength());return w??y(S)};return async g=>{let{url:S,method:w,data:A,signal:L,cancelToken:I,timeout:T,onDownloadProgress:v,onUploadProgress:F,responseType:M,headers:H,withCredentials:G="same-origin",fetchOptions:V,maxContentLength:U,maxBodyLength:Q}=Ju(g);const ae=p.isNumber(U)&&U>-1,k=p.isNumber(Q)&&Q>-1,ee=N=>p.hasOwnProp(g,N)?g[N]:void 0;let j=s||fetch;M=M?(M+"").toLowerCase():"text";let P=IS([L,I&&I.toAbortSignal()],T),O=null;const B=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let J,Z=null;const oe=()=>new E("Request body larger than maxBodyLength limit",E.ERR_BAD_REQUEST,g,O);try{let N;const te=ee("auth");if(te){const x=p.getSafeProp(te,"username")||"",Se=p.getSafeProp(te,"password")||"";N={username:x,password:Se}}if(FS(S)){const x=new URL(S,ue.origin);if(!N&&(x.username||x.password)){const Se=ha(x.username),tt=ha(x.password);N={username:Se,password:tt}}(x.username||x.password)&&(x.username="",x.password="",S=x.href)}if(N&&(H.delete("authorization"),H.set("Authorization","Basic "+btoa(MS((N.username||"")+":"+(N.password||""))))),ae&&typeof S=="string"&&S.startsWith("data:")&&US(S)>U)throw new E("maxContentLength size of "+U+" exceeded",E.ERR_BAD_RESPONSE,g,O);if(k&&w!=="get"&&w!=="head"){const x=await y(A);if(typeof x=="number"&&isFinite(x)&&(J=x,x>Q))throw oe()}const $e=k&&(p.isReadableStream(A)||p.isStream(A)),yn=(x,Se,tt)=>la(x,pa,mt=>{if(k&&mt>Q)throw Z=oe();Se&&Se(mt)},tt);if(d&&w!=="get"&&w!=="head"&&(F||$e)){if(J=J??await _(H,A),J!==0||$e){let x=new o(S,{method:"POST",body:A,duplex:"half"}),Se;if(p.isFormData(A)&&(Se=x.headers.get("content-type"))&&H.setContentType(Se),x.body){const[tt,mt]=F&&ia(J,xr(aa(F)))||[];A=yn(x.body,tt,mt)}}}else if($e&&!c&&f&&w!=="get"&&w!=="head")A=yn(A);else if($e&&c&&!d&&w!=="get"&&w!=="head")throw new E("Stream request bodies are not supported by the current fetch implementation",E.ERR_NOT_SUPPORT,g,O);p.isString(G)||(G=G?"include":"omit");const us=c&&"credentials"in o.prototype;if(p.isFormData(A)){const x=H.getContentType();x&&/^multipart\/form-data/i.test(x)&&!/boundary=/i.test(x)&&H.delete("content-type")}H.set("User-Agent","axios/"+Do,!1);const fi={...V,signal:P,method:w.toUpperCase(),headers:Uu(H.normalize()),body:A,duplex:"half",credentials:us?G:void 0};O=c&&new o(S,fi);let Fe=await(c?j(O,V):j(S,fi));const di=he.from(Fe.headers);if(ae){const x=p.toFiniteNumber(di.getContentLength());if(x!=null&&x>U)throw new E("maxContentLength size of "+U+" exceeded",E.ERR_BAD_RESPONSE,g,O)}const ls=h&&(M==="stream"||M==="response");if(h&&Fe.body&&(v||ae||ls&&B)){const x={};["status","statusText","headers"].forEach(bn=>{x[bn]=Fe[bn]});const Se=p.toFiniteNumber(di.getContentLength()),[tt,mt]=v&&ia(Se,xr(aa(v),!0))||[];let pi=0;const Jf=bn=>{if(ae&&(pi=bn,pi>U))throw new E("maxContentLength size of "+U+" exceeded",E.ERR_BAD_RESPONSE,g,O);tt&&tt(bn)};Fe=new i(la(Fe.body,pa,Jf,()=>{mt&&mt(),B&&B()}),x)}M=M||"text";let je=await m[p.findKey(m,M)||"text"](Fe,g);if(ae&&!h&&!ls){let x;if(je!=null&&(typeof je.byteLength=="number"?x=je.byteLength:typeof je.size=="number"?x=je.size:typeof je=="string"&&(x=typeof r=="function"?new r().encode(je).byteLength:je.length)),typeof x=="number"&&x>U)throw new E("maxContentLength size of "+U+" exceeded",E.ERR_BAD_RESPONSE,g,O)}return!ls&&B&&B(),await new Promise((x,Se)=>{Gu(x,Se,{data:je,headers:he.from(Fe.headers),status:Fe.status,statusText:Fe.statusText,config:g,request:O})})}catch(N){if(B&&B(),P&&P.aborted&&P.reason instanceof E){const te=P.reason;throw te.config=g,O&&(te.request=O),N!==te&&Object.defineProperty(te,"cause",{__proto__:null,value:N,writable:!0,enumerable:!1,configurable:!0}),te}if(Z)throw O&&!Z.request&&(Z.request=O),Z;if(N instanceof E)throw O&&!N.request&&(N.request=O),N;if(N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)){const te=new E("Network Error",E.ERR_NETWORK,g,O,N&&N.response);throw Object.defineProperty(te,"cause",{__proto__:null,value:N.cause||N,writable:!0,enumerable:!1,configurable:!0}),te}throw E.from(N,N&&N.code,g,O,N&&N.response)}}},HS=new Map,Xu=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,a=i,c,u,f=HS;for(;a--;)c=o[a],u=f.get(c),u===void 0&&f.set(c,u=a?new Map:jS(t)),f=u;return u};Xu();const Uo={http:Gb,xhr:AS,fetch:{get:Xu}};p.forEach(Uo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ga=e=>`- ${e}`,BS=e=>p.isFunction(e)||e===null||e===!1;function qS(e,t){e=p.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let a;if(s=r,!BS(r)&&(s=Uo[(a=String(r)).toLowerCase()],s===void 0))throw new E(`Unknown adapter '${a}'`);if(s&&(p.isFunction(s)||(s=s.get(t))))break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since : 5`+i.map(ga).join(` 6`):" "+ga(i[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+a,E.ERR_NOT_SUPPORT)}return s}const Yu={getAdapter:qS,adapters:Uo};function Ts(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vn(null,e)}function vs(e){return Ts(e),e.headers=he.from(e.headers),e.data=Es.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yu.getAdapter(e.adapter||Gn.adapter,e)(e).then(function(r){Ts(e),e.response=r;try{r.data=Es.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=he.from(r.headers),r},function(r){if(!zu(r)&&(Ts(e),r&&r.response)){e.response=r.response;try{r.response.data=Es.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=he.from(r.response.headers)}return Promise.reject(r)})}const Xr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _a={};Xr.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Do+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(t===!1)throw new E(s(i," has been removed"+(n?" in "+n:"")),E.ERR_DEPRECATED);return n&&!_a[i]&&(_a[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};Xr.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function WS(e,t,n){if(typeof e!="object"||e===null)throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const a=e[o],c=a===void 0||i(a,o,e);if(c!==!0)throw new E("option "+o+" must be "+c,E.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new E("Unknown option "+o,E.ERR_BAD_OPTION)}}const br={assertOptions:WS,validators:Xr},de=br.validators;let St=class{constructor(t){this.defaults=t||{},this.interceptors={request:new sa,response:new sa}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=(()=>{if(!s.stack)return"";const i=s.stack.indexOf(` 7`);return i===-1?"":s.stack.slice(i+1)})();try{if(!r.stack)r.stack=o;else if(o){const i=o.indexOf(` 8`),a=i===-1?-1:o.indexOf(` 9`,i+1),c=a===-1?"":o.slice(a+1);String(r.stack).endsWith(c)||(r.stack+=` 10`+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ot(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&br.assertOptions(r,{silentJSONParsing:de.transitional(de.boolean),forcedJSONParsing:de.transitional(de.boolean),clarifyTimeoutError:de.transitional(de.boolean),legacyInterceptorReqResOrdering:de.transitional(de.boolean),advertiseZstdAcceptEncoding:de.transitional(de.boolean),validateStatusUndefinedResolves:de.transitional(de.boolean)}
vendor: 3,310 bytes, line 10
10,!1),s!=null&&(p.isFunction(s)?n.paramsSerializer={serialize:s}:br.assertOptions(s,{encode:de.function,serialize:de.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),br.assertOptions(n,{baseUrl:de.spelling("baseURL"),withXsrfToken:de.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&p.merge(o.common,o[n.method]);o&&p.forEach(["delete","get","head","post","put","patch","query","common"],m=>{delete o[m]}),n.headers=he.concat(i,o);const a=[];let c=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;c=c&&y.synchronous;const _=n.transitional||$o;_&&_.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,l=0,d;if(!c){const m=[vs.bind(this),void 0];for(m.unshift(...a),m.push(...u),d=m.length,f=Promise.resolve(n);l<d;)f=f.then(m[l++],m[l++]);return f}d=a.length;let h=n;for(;l<d;){const m=a[l++],y=a[l++];try{h=m?m(h):h}catch(_){if(!y){f=Promise.reject(_);break}try{const g=y.call(this,_);p.isThenable(g)&&(f=Promise.resolve(g).then(()=>vs.call(this,h)))}catch(g){f=Promise.reject(g)}break}}if(!f)try{f=vs.call(this,h)}catch(m){f=Promise.reject(m)}for(l=0,d=u.length;l<d;)f=f.then(u[l++],u[l++]);return f}getUri(t){t=Ot(this.defaults,t);const n=Vu(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Bu(n,t.params,t.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(t){St.prototype[t]=function(n,r){return this.request(Ot(r||{},{method:t,url:n,data:r&&p.hasOwnProp(r,"data")?r.data:void 0}))}});p.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,i,a){return this.request(Ot(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}St.prototype[t]=n(),t!=="query"&&(St.prototype[t+"Form"]=n(!0))});let zS=class Zu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,a){r.reason||(r.reason=new Vn(o,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Zu(function(s){t=s}),cancel:t}}};function GS(e){return function(n){return e.apply(null,n)}}function VS(e){return p.isObject(e)&&e.isAxiosError===!0}const Js={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
10alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Js).forEach(([e,t])=>{Js[t]=e});function Qu(e){const t=new St(e),n=Ou(St.prototype.request,t);return p.extend(n,St.prototype,t,{allOwnKeys:!0}),p.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qu(Ot(e,s))},n}const ne=Qu(Gn);ne.Axios=St;ne.CanceledError=Vn;ne.CancelToken=zS;ne.isCancel=zu;ne.VERSION=Do;ne.toFormData=Kr;ne.AxiosError=E;ne.Cancel=ne.CanceledError;ne.all=function(t){return Promise.all(t)};ne.spread=GS;ne.isAxiosError=VS;ne.mergeConfig=Ot;ne.AxiosHeaders=he;ne.formToJSON=e=>Wu(p.isHTMLForm(e)?new FormData(e):e);ne.getAdapter=Yu.getAdapter;ne.HttpStatusCode=Js;ne.default=ne;const{Axios:XI,AxiosError:YI,CanceledError:ZI,isCancel:QI,CancelToken:eO,VERSION:tO,all:nO,Cancel:rO,isAxiosError:sO,spread:oO,toFormData:iO,AxiosHeaders:aO,HttpStatusCode:cO,formToJSON:uO,getAdapter:lO,mergeConfig:fO,create:dO}=ne,JS=`https://api.hht.llc/hercules/v${"4.0.0".substring(0,3)}`,Lr=ne.create({baseURL:JS}),KS=["/auth/login","/auth/check-credentials","/auth/token_login"],el=e=>KS.some(t=>e?.startsWith(t));Lr.interceptors.request.use(function(e){const n=qn().accessToken;return!e.headers.Authorization&&n&&!el(e.url)&&(e.headers.Authorization=`Bearer ${n}`),e});Lr.interceptors.response.use(e=>e,async function(e){const t=e.config,n=e.response?.status===401,r=t&&t._retry,s=t&&t.__retryCount||0,o=$c()!==void 0;return n&&!r&&o&&s<3&&!el(t?.url)?(await qn().requestRefresh(),t._retry=!0,t.__retryCount=s+1,Lr(t)):Promise.reject(e)});const XS={instance:Lr,install(e,t){e.config.globalProperties.$http=this.instance}},YS="4.0.91",Bt=[];let ya=!1;const ba=()=>{const e=window.syncHandler;if(e?.centrifuge?.state==="connected")for(;Bt.length>0;){const t=Bt.shift();try{e.insert("app_event","all",t.eventDoc)}catch(n){console.error("WebSocket send failed. The event will be sent via HTTP fallback.",n)}}};function tl(){if(ya)return;const e=window.syncHandler;e?(e.centrifuge.on("connected",ba),ya=!0,e.centrifuge.state==="connected"&&ba()):setTimeout(tl,200)}tl();let He=class{constructor(t,n,r=null){const s=qn();r||(r=s.uuid);let o;switch(t){case"http":o=this.makeHttpEvent(n);break;case"http-error":o=this.makeHttpErrorEvent(n);break;default:o={name:n.name,data:n.data};break}this.reportEvent(t,o,r)}reportEvent(t,n,r){const s=qn(),o=Iu(),i={id:o,eventTime:new Date().toISOString(),version:YS,eventType:t,data:n},a=window.syncHandler;if(a?.centrifuge?.state==="connected")try{a.insert("app_event","all",i);return}catch(u){console.error("WebSocket send failed. The event will be sent via HTTP fallback.",u)}Bt.some(u=>u.eventDoc.id===o)||Bt.push({eventDoc:i,uuid:r,auth:s}),setTimeout(()=>{const u=Bt.findIndex(h=>h.eventDoc.id===o);if(u===-1)return;const{eventDoc:f}=Bt.splice(u,1)[0],l=XS.instance,d={_id:f.id,record_type:"app_event",member_uuid:r||s.uuid,device_id:s.deviceId||"unknown",key:"app_event.all",scope:"global",value:f};l.post("/events",d).catch(h=>{console.error("HTTP fallback failed:",h)})},3e3)}makeHttpEvent(t){const n=t.data,r=["Accept","Content-Type"],s=["access-control-allow-credentials","access-control-allow-headers","access-control-allow-methods","access-control-allow-origin","access-control-expose-headers","access-control-max-age","cache-control","connection","content-length","content-type","date"],o=Yi(n.config.data)?JSON.parse(n.config.data):Object.fromEntries(new URLSearchParams(n.config.data));return{name:t.name,data:{status:"success",statusCode:n.status,parameters:o,uri:n.config.url,url:n.config.baseURL+n.config.url,method:n.config.method,headers:this.makeHeaders(n,r,s)}}}makeHttpErrorEvent(t){const n=t.data;if(typeof n=="string")return{name:t.name,data:{status:"error",parameters:{error:n}}};const r=Yi(n.config?.data)?JSON.parse(n.config.data):Object.fromEntries(new URLSearchParams(n.config?.data||""));return{name:t.name,data:{status:"error",statusCode:n.response?.status,parameters:r,errorName:n.name,httpData:n.response?this.makeHttpEvent({name:t.name,data:n.response}).data:null}}}makeHeaders(t,n,r){const s=t.config.headers,o=t.headers;let i={},a={};return o&&(i=Object.fromEntries(Object.entries(s).filter(([c])=>n.includes(c)))),o&&(a=Object.fromEntries(Object.entries(o).filter(([c])=>r.includes(c)))),{...i,...a}}};const ZS=()=>{const e=$c();if(!e){console.error("No active Pinia instance found in resetAllStores");return}
10Array.from(e._s.keys()).forEach(n=>{try{if(n==="auth"||n==="device_setting")return;const r=e._s.get(n);r&&typeof r.$reset=="function"&&r.$reset()}catch(r){console.error(`Failed to reset store: ${n}`,r)}})},R=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,D=globalThis,Et="10.71.0";function ut(){return Jn(D),D}function Jn(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Et,t[Et]=t[Et]||{}}function un(e,t,n=D){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Et]=r[Et]||{};return s[e]||(s[e]=t())}const QS=["debug","info","warn","error","log","assert","trace"],eE="Sentry Logger ",Nr={};function kt(e){if(!("console"in D))return e();const t=D.console,n={},r=Object.keys(Nr);r.forEach(s=>{const o=Nr[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function tE(){Fo().enabled=!0}function nE(){Fo().enabled=!1}function nl(){return Fo().enabled}function rE(...e){Mo("log",...e)}function sE(...e){Mo("warn",...e)}function oE(...e){Mo("error",...e)}function Mo(e,...t){R&&nl()&&kt(()=>{D.console[e](`${eE}[${e}]:`,...t)})}function Fo(){return R?un("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const b={enable:tE,disable:nE,isEnabled:nl,log:rE,warn:sE,error:oE},rl=50,Pt="?",Sa=/\(error: (.*)\)/,Ea=/captureMessage|captureException/;function sl(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(` 11`);for(let a=r;a<i.length;a++){let c=i[a];c.length>1024&&(c=c.slice(0,1024));const u=Sa.test(c)?c.replace(Sa,"$1"):c;if(!u.includes("Error: ")){for(const f of t){const l=f(u);if(l){o.push(l);break}}if(o.length>=rl+s)break}}return aE(o.slice(s))}}function iE(e){return Array.isArray(e)?sl(...e):e}function aE(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(ur(t).function||"")&&t.pop(),t.reverse(),Ea.test(ur(t).function||"")&&(t.pop(),Ea.test(ur(t).function||"")&&t.pop()),t.slice(0,rl).map(n=>({...n,filename:n.filename||ur(t).filename,function:n.function||Pt}))}function ur(e){return e[e.length-1]||{}}const ws="<anonymous>";function Ve(e){try{return!e||typeof e!="function"?ws:e.name||ws}catch{return ws}}function Ta(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const wn={},va={};function lt(e,t){return wn[e]=wn[e]||[],wn[e].push(t),()=>{const n=wn[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function ft(e,t){if(!va[e]){va[e]=!0;try{t()}catch(n){R&&b.error(`Error while instrumenting ${e}`,n)}}}function Ie(e,t){const n=e&&wn[e];if(n)for(const r of n)try{r(t)}catch(s){R&&b.error(`Error while triggering instrumentation handler. 12Type: ${e} 13Name: ${Ve(r)} 14Error:`,s)}}let Rs=null;function ol(e){const t="error";lt(t,e),ft(t,cE)}function cE(){Rs=D.onerror,D.onerror=function(e,t,n,r,s){return Ie("error",{column:r,error:s,line:n,msg:e,url:t}),Rs?Rs.apply(this,arguments):!1},D.onerror.__SENTRY_INSTRUMENTED__=!0}let As=null;function il(e){const t="unhandledrejection";lt(t,e),ft(t,uE)}function uE(){As=D.onunhandledrejection,D.onunhandledrejection=function(e){return Ie("unhandledrejection",e),As?As.apply(this,arguments):!0},D.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const al=Object.prototype.toString;function Je(e){switch(al.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Qr(e,Error)}}function ln(e,t){return al.call(e)===`[object ${t}]`}function cl(e){return ln(e,"ErrorEvent")}function wa(e){return ln(e,"DOMError")}function lE(e){return ln(e,"DOMException")}function qe(e){return ln(e,"String")}function jo(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}
14function Ct(e){return e===null||jo(e)||typeof e!="object"&&typeof e!="function"}function $r(e){return ln(e,"Object")}function Yr(e){return typeof e=="object"&&e!==null}function Zr(e){return typeof Event<"u"&&Qr(e,Event)}function fE(e){return ln(e,"RegExp")}function Kn(e){return!!(e?.then&&typeof e.then=="function")}function Qr(e,t){try{return e instanceof t}catch{return!1}}function Ho(e){return typeof Request<"u"&&Qr(e,Request)}function Ee(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&ul(s,r);try{e[t]=s}catch{R&&b.log(`Failed to replace method "${t}" in object`,e)}}function me(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{R&&b.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function ul(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,me(e,"__sentry_original__",t)}catch{}}function Bo(e){return e.__sentry_original__}function ll(e){if(Je(e))return{message:e.message,name:e.name,stack:e.stack,...Ra(e)};if(Zr(e)){const{type:t,target:n,currentTarget:r,detail:s}=e;return{type:t,target:n,currentTarget:r,...s?{detail:s}:{},...Ra(e)}}return e}function Ra(e){return Yr(e)?Object.fromEntries(Object.entries(e)):{}}function dE(e){const t=Object.keys(ll(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Ft;function Xn(e){if(Ft!==void 0)return Ft?Ft(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=D;return t in n&&typeof n[t]=="function"?(Ft=n[t],Ft(e)):(Ft=null,e())}function st(){return Xn(()=>Math.random())}function dt(){return Xn(()=>Date.now())}const pE=Symbol.for("sentry.skipNormalization"),hE=Symbol.for("sentry.overrideNormalizationDepth");function mE(e){return!!e[pE]}function gE(e){const t=e[hE];return typeof t=="number"?t:void 0}let Ks;function _E(e){Ks=e}function Be(e,t=100,n=1/0){try{return Xs("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function fl(e,t=3,n=100*1024){const r=Be(e,t);return SE(r)>n?fl(e,t-1,n):r}function Xs(e,t,n=1/0,r=1/0,s=EE()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=dl(e,t);if(!a.startsWith("[object "))return a;if(mE(t))return t;const c=gE(t),u=c!==void 0?c:n;if(u===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const f=t;if(f&&typeof f.toJSON=="function")try{const m=f.toJSON();return Xs("",m,u-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const h=ll(t);for(const m in h){if(!Object.prototype.hasOwnProperty.call(h,m))continue;if(d>=r){l[m]="[MaxProperties ~]";break}const y=h[m];l[m]=Xs(m,y,u-1,r,s),d++}return i(t),l}function dl(e,t){try{if(Ks){const r=Ks(t);if(r)return r}return typeof window<"u"&&t===window?"[Global]":typeof t=="number"&&!Number.isFinite(t)?`[${t}]`:typeof t=="function"?`[Function: ${Ve(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${yE(t)}]`}catch(n){return`**non-serializable** (${n})`}}function yE(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function bE(e){return~-encodeURI(e).split(/%..|./).length}function SE(e){return bE(JSON.stringify(e))}function EE(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Ys(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Aa(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];Ct(s)?n.push(String(s)):s instanceof Error?n.push(s.message?`${s.name}: ${s.message}`:s.name):n.push(dl(void 0,s))}return n.join(t)}function An(e,t,n=!1){return qe(e)?fE(t)?t.test(e):qe(t)?n?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1}function We(e,t=[],n=!1){for(const r of t)if(An(e,r,n))return!0;return!1}function TE(){const e=D;return e.crypto||e.msCrypto}let Is;function vE(){return st()*16}function Oe(e=TE()){try{if(e?.randomUUID)return Xn(()=>e.randomUUID()).replace(/-/g,"")}catch{}return Is||(Is="10000000100040008000"+1e11),Is.replace(/[018]/g,t=>(t^(vE()&15)>>t/4).toString(16))}function pl(e){return e.exception?.values?.[0]}function yt(e){const{message:t,event_id:n}=e;if(t)return t;const r=pl(e);return r?r.type&&r.value?`${r.type}: ${r.value}
14`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Zs(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function Tt(e,t){const n=pl(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s?.data,...t.data};n.mechanism.data=o}}function Ia(e){if(wE(e))return!0;try{me(e,"__sentry_captured__",!0)}catch{}return!1}function wE(e){try{return e.__sentry_captured__}catch{}}const hl=1e3;function Dt(){return dt()/hl}function RE(){const{performance:e}=D;if(!e?.now||!e.timeOrigin)return Dt;const t=e.timeOrigin;return()=>(t+Xn(()=>e.now()))/hl}let Oa;function se(){return(Oa??(Oa=RE()))()}let Os=null;function AE(){const{performance:e}=D;if(!e?.now)return;const t=3e5,n=Xn(()=>e.now()),r=dt(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const o=e.timing?.navigationStart;return typeof o=="number"&&Math.abs(o+n-r)<t?o:r-n}function fe(){return Os===null&&(Os=AE()),Os}function IE(e){const t=se(),n={sid:Oe(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>PE(n)};return e&&Yt(n,e),n}function Yt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||se(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Oe()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function OE(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Yt(e,n)}function PE(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Yn(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=Yn(r[s],t[s],n-1));return r}function Ke(){return Oe()}function ze(){return Oe().substring(16)}function ml(e){try{const t=D.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function gl(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}const Qs="_sentrySpan";function kn(e,t){t?me(e,Qs,ml(t)):delete e[Qs]}function kr(e){return gl(e[Qs])}const CE=100;class Xe{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ke(),sampleRand:st()}}clone(){const t=new Xe;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,kn(t,kr(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Yt(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Xe?n.getScopeData():$r(n)?t:void 0,{tags:s,attributes:o,extra:i,user:a,contexts:c,level:u,fingerprint:f=[],propagationContext:l,conversationId:d}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),f.length&&(this._fingerprint=f),l&&(this._propagationContext=l),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,kn(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ke(),sampleRand:st()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:CE;if(r<=0)return this;const s={timestamp:Dt(),...t,message:t.message?Ys(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:kr(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Yn(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||Oe();if(!this._client)return R&&b.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||Oe();if(!this._client)return R&&b.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||Oe();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(R&&b.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
14h(t=>{t(this)}),this._notifyingListeners=!1)}}function xE(){return un("defaultCurrentScope",()=>new Xe)}function LE(){return un("defaultIsolationScope",()=>new Xe)}const Pa=e=>e instanceof Promise&&!e[_l],_l=Symbol("chained PromiseLike"),NE=(e,t,n)=>{const r=e.then(s=>(t(s),s),s=>{throw n(s),s});return Pa(r)&&Pa(e)?r:$E(e,r)},$E=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const s=e[r];typeof s=="function"?Object.defineProperty(t,r,{value:(...o)=>s.apply(e,o),enumerable:!0,configurable:!0,writable:!0}):t[r]=s}return n&&Object.assign(t,{[_l]:!0}),t};class kE{constructor(t,n){let r;t?r=t:r=new Xe;let s;n?s=n:s=new Xe,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return Kn(r)?NE(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Zt(){const e=ut(),t=Jn(e);return t.stack=t.stack||new kE(xE(),LE())}function DE(e){return Zt().withScope(e)}function UE(e,t){const n=Zt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ca(e){return Zt().withScope(()=>e(Zt().getIsolationScope()))}function ME(){return{withIsolationScope:Ca,withScope:DE,withSetScope:UE,withSetIsolationScope:(e,t)=>Ca(t),getCurrentScope:()=>Zt().getScope(),getIsolationScope:()=>Zt().getIsolationScope()}}function fn(e){const t=Jn(e);return t.acs?t.acs:ME()}function FE(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function jE(e,t){const{value:n,unit:r}=FE(e)?e:{value:e,unit:void 0},s=HE(n),o=r&&typeof r=="string"?{unit:r}:{};if(s)return{...s,...o};if(!t||t==="skip-undefined"&&n===void 0)return;let i="";try{i=JSON.stringify(n)??""}catch{}return{value:i,type:"string",...o}}function xa(e,t=!1){const n={};for(const[r,s]of Object.entries(e??{})){const o=jE(s,t);o&&(n[r]=o)}return n}function HE(e){if(Array.isArray(e))return{value:e,type:"array"};const t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}function z(){const e=ut();return fn(e).getCurrentScope()}function xe(){const e=ut();return fn(e).getIsolationScope()}function BE(){return un("globalScope",()=>new Xe)}function qo(...e){const t=ut(),n=fn(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function W(){return z().getClient()}function qE(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,o={trace_id:n,span_id:s||ze()};return r&&(o.parent_span_id=r),o}const ke="sentry.source",Wo="sentry.sample_rate",yl="sentry.previous_trace_sample_rate",ve="sentry.op",re="sentry.origin",WE="sentry.status.message",Dn="sentry.idle_span_finish_reason",Zn="sentry.measurement_unit",Qn="sentry.measurement_value",La="sentry.custom_span_name",zo="sentry.profile_id",pt="sentry.exclusive_time",zE="sentry.link.type",GE="gen_ai.conversation.id",bl=0,es=1,ie=2;function VE(e){if(e<400&&e>=100)return{code:es};if(e>=400&&e<500)switch(e){case 401:return{code:ie,message:"unauthenticated"};case 403:return{code:ie,message:"permission_denied"};case 404:return{code:ie,message:"not_found"};case 409:return{code:ie,message:"already_exists"};case 413:return{code:ie,message:"failed_precondition"};case 429:return{code:ie,message:"resource_exhausted"};case 499:return{code:ie,message:"cancelled"};default:return{code:ie,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:ie,message:"unimplemented"};case 503:return{code:ie,message:"unavailable"};case 504:return{code:ie,message:"deadline_exceeded"};default:return{code:ie,message:"internal_error"}}return{code:ie,message:"internal_error"}}function Sl(e,t){e.setAttribute("http.response.status_code",t);const n=VE(t);n.message!=="unknown_error"&&e.setStatus(n)}const El="_sentryScope",Tl="_sentryIsolationScope",JE=Symbol.for("sentry.otelSourceInference"),KE=Symbol.for("sentry.otelSourceExplicitlySet"),XE=Symbol.for("sentry.tracerProviderSpan");function Qt(e,t,n){e&&(me(e,Tl,ml(n)),me(e,El,t))}function zt(e){const t=e;return{scope:t[El],isolationScope:gl(t[Tl])}}function Na(e){return e[JE]===!0}function YE(e){me(e,KE,!0)}function $a(e){return e[XE]===!0}const Dr="sentry-",ZE=8192;function vl(e){const t=eT(e);
14if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.startsWith(Dr)){const i=s.slice(Dr.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function QE(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Dr}${r}`]=s),n),{});return tT(t)}function eT(e){if(!(!e||!qe(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=ka(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):ka(e)}function ka(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(o=>{try{return decodeURIComponent(o.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function tT(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>ZE?(R&&b.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const nT=/^o(\d+)\./,rT=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function sT(e){return e==="http"||e==="https"}function dn(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function oT(e){const t=rT.exec(e);if(!t){kt(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return wl({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function wl(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function iT(e){if(!R)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(b.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?sT(r)?t&&isNaN(parseInt(t,10))?(b.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(b.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(b.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function aT(e){return e.match(nT)?.[1]}function cT(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=aT(n)),r}function uT(e){const t=typeof e=="string"?oT(e):wl(e);if(!(!t||!iT(t)))return t}function Un(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Rl=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function lT(e){if(!e)return;const t=e.match(Rl);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function fT(e,t){const n=lT(e),r=vl(t);if(!n?.traceId)return{traceId:Ke(),sampleRand:st()};const s=dT(n,r);r&&(r.sample_rand=s.toString());const{traceId:o,parentSpanId:i,parentSampled:a}=n;return{traceId:o,parentSpanId:i,sampled:a,dsc:r||{},sampleRand:s}}function Al(e=Ke(),t=ze(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Il(e=Ke(),t=ze(),n){return`00-${e}-${t}-${n?"01":"00"}`}function dT(e,t){const n=Un(t?.sample_rand);if(n!==void 0)return n;const r=Un(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?st()*r:r+st()*(1-r):st()}const Ol=0,ts=1;let Da=!1;function pT(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a,links:c}=q(e);return{parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a,links:c}}function hT(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:q(e).parent_span_id,o=zt(e).scope,i=r?o?.getPropagationContext().propagationSpanId||ze():t;return{parent_span_id:s,span_id:i,trace_id:n}}function mT(e){const{traceId:t,spanId:n}=e.spanContext(),r=Qe(e);return Al(t,n,r)}function gT(e){const{traceId:t,spanId:n}=e.spanContext(),r=Qe(e);return Il(t,n,r)}function Pl(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:t,trace_id:n,sampled:r===ts,attributes:o,...s}))}function Cl(e){if(e?.length)return e.map(({context:{spanId:t,traceId:n,traceFlags:r},attributes:s})=>({span_id:t,trace_id:n,sampled:r===ts,attributes:s}))}function Ge(e){return typeof e=="number"?Ua(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Ua(e.getTime()):se()}function Ua(e){return e>9999999999?e/1e3:e}function q(e){if($l(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Nl(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=e;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:Ll(e),start_timestamp:Ge(s),timestamp:Ge(i)||void 0,status:kl(a),op:r[ve],origin:r[re],links:Pl(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function xl(e){if($l(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Nl(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=e;return{name:o,span_id:t,trace_id:n,parent_span_id:Ll(e),start_timestamp:Ge(s),end_timestamp:Ge(i),is_segment:e===to(e),status:Go(a),attributes:Dl(r,a),links:Cl(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===to(e)}}function Ll(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function _T(e){return{...e,attributes:xa(e.attributes),links:e.links?.map(t=>({...t,attributes:xa(t.attributes)}))}}function Nl(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function $l(e){return typeof e.getSpanJSON=="function"}function Qe(e){const{traceFlags:t}=e.spanContext();return t===ts}function kl(e){if(!(!e||e.code===bl))return e.code===es?"ok":e.message||"internal_error"}function Go(e){return!e||e.code===es||e.code===bl||e.message==="cancelled"?"ok":"error"}function Dl(e,t){const n=Go(t)==="error"?t?.message:void 0;return{...n&&{[WE]:n},...e}}const vt="_sentryChildSpans",eo="_sentryRootSpan";function Sr(e,t){const n=e[eo]||e;me(t,eo,n),Qe(e)&&(!e.isRecording()&&!n.isRecording()||(e[vt]?e[vt].add(t):me(e,vt,new Set([t]))))}function yT(e,t){e[vt]&&e[vt].delete(t)}function Er(e){const t=new Set;function n(r){if(!t.has(r)&&Qe(r)){t.add(r);const s=r[vt]?Array.from(r[vt]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}const pe=to;function to(e){return e[eo]||e}function we(){const e=ut(),t=fn(e);return t.getActiveSpan?t.getActiveSpan():kr(z())}function no(){Da||(kt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Da=!0)}let Ma=!1;function bT(){if(Ma)return;function e(){const t=we(),n=t&&pe(t);if(n){const r="internal_error";R&&b.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:ie,message:r})}}Ma=!0,ol(e),il(e)}function Te(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||W()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Fa(e){b.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Mn(e,t){if(!t?.length)return!1;
14for(const n of t){if(TT(n)){if(e.description&&An(e.description,n))return R&&Fa(e),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const s=n.name?e.description&&An(e.description,n.name):!0,o=n.op?e.op&&An(e.op,n.op):!0,i=n.attributes?Object.entries(n.attributes).every(([a,c])=>ST(e.attributes?.[a],c)):!0;if(s&&o&&i)return R&&Fa(e),!0}return!1}function ST(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?An(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e===t}function ET(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function TT(e){return typeof e=="string"||e instanceof RegExp}const Ul=Symbol.for("sentry.nonRecordingSpan");class xt{constructor(t={}){this._traceId=t.traceId||Ke(),this._spanId=t.spanId||ze(),this.dropReason=t.dropReason,me(this,Ul,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Ol}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function en(e){return!!e&&e[Ul]===!0}const Vo="production",Ml="_frozenDsc";function ja(e,t){me(e,Ml,t)}function Fl(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||Vo,release:n.release,public_key:r,trace_id:e,org_id:cT(t)};return t.emit("createDsc",s),s}function Jo(e,t){const n=t.getPropagationContext();return n.dsc||Fl(n.traceId,e)}function pn(e){const t=W();if(!t)return{};const n=pe(e),r=q(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[Wo]??s[yl];function a(_){return(typeof i=="number"||typeof i=="string")&&(_.sample_rate=`${i}`),_}const c=n[Ml];if(c)return a(c);const u=en(n),f=u&&n.dropReason==="ignored";if(u&&(!Te(t.getOptions())||f)){const _=zt(n).scope;if(_){const g={...Jo(t,_)};return f&&(g.sampled="false"),a(g)}}const l=o?.get("sentry.dsc"),d=l&&vl(l);if(d)return a(d);const h=Fl(e.spanContext().traceId,t),m=s[ke]??s["sentry.segment.name.source"],y=r.description;return m!=="url"&&y&&(h.transaction=y),Te()&&(h.sampled=String(Qe(n)),h.sample_rand=o?.get("sentry.sample_rand")??zt(n).scope?.getPropagationContext().sampleRand.toString()),a(h),t.emit("createDsc",h,n),h}function jl(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}function Ut(e,t=[]){return[e,t]}function Ha(e,t){const[n,r]=e;return[n,[...r,t]]}function ro(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function vT(e,t){return ro(e,(n,r)=>t.includes(r))}function so(e){const t=Jn(D);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Hl(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[so(r),o]:r.push(typeof o=="string"?so(o):o)}for(const o of n){const[i,a]=o;if(s(` 15${JSON.stringify(i)} 16`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Be(a))}s(c)}}return typeof r=="string"?r:wT(r)}function wT(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function RT(e){return[{type:"span"},e]}function AT(e){const t=typeof e.data=="string"?so(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Bl={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 IT(e){return e in Bl}function Ba(e){return IT(e)?Bl[e]:e}function ql(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function OT(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(dt()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:dn(r)},...s&&{trace:s}}}function PT(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function CT(e,t,n,r){const s=ql(n),o={sent_at:new Date(dt()).toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:dn(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ut(o,[i])}function xT(e,t,n,r){const s=ql(n),o=e.type&&e.type!=="replay_event"?e.type:"event";PT(e,n?.sdk);const i=OT(e,s,r,t);return delete e.sdkProcessingMetadata,Ut(i,[[{type:o},e]])}function LT(e,t){function n(h){return!!h.trace_id&&!!h.public_key}const r=pn(e[0]),s=t?.getDsn(),o=t?.getOptions().tunnel,i={sent_at:new Date(dt()).toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:dn(s)}},{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},u=c?.length?e.filter(h=>{const m=q(h);return!Mn({description:m.description,op:m.op,attributes:m.data},c)}):e,f=e.length-u.length;f&&t?.recordDroppedEvent("before_send","span",f);const l=a?h=>
16{const m=q(h),y=jl(a)?m:a(m);return y||(no(),m)}:q,d=[];for(const h of u){const m=l(h);m&&d.push(RT(m))}return Ut(i,d)}function NT(e){if(!R)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=q(e),{spanId:s}=e.spanContext(),o=Qe(e),i=pe(e),a=i===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:f,description:l}=q(i);u.push(`root ID: ${i.spanContext().spanId}`),f&&u.push(`root op: ${f}`),l&&u.push(`root description: ${l}`)}b.log(`${c} 17 ${u.join(` 18 `)}`)}function $T(e){if(!R)return;const{description:t="< unknown name >",op:n="< unknown op >"}=q(e),{spanId:r}=e.spanContext(),o=pe(e)===e,i=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;b.log(i)}function Wl(e,t,n,r=we()){const s=r&&pe(r);s&&(R&&b.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[Qn]:t,[Zn]:n}))}function qa(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[Zn],o=r[Qn];typeof s=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:s})}),t}function Wa(){return Jn(ut()).segmentSpanCaptureStrategy}function Me(e){return e.getOptions().traceLifecycle==="stream"}const za=1e3;class ns{constructor(t={}){this._traceId=t.traceId||Ke(),this._spanId=t.spanId||ze(),this._startTime=t.startTimestamp||se(),this._links=t.links,this._attributes={},this.setAttributes({[re]:"manual",[ve]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._frozen?this:(this._links?this._links.push(t):this._links=[t],this)}addLinks(t){return this._frozen?this:(this._links?this._links.push(...t):this._links=t,this)}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?ts:Ol}}setAttribute(t,n){return this._frozen?this:(n===void 0?delete this._attributes[t]:this._attributes[t]=n,t===ke&&n!==void 0&&Na(this)&&YE(this),this)}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._frozen||(this._startTime=Ge(t))}setStatus(t){return this._frozen?this:(this._status=t,this)}updateName(t){return this._frozen?this:(this._name=t,Na(this)||this.setAttribute(ke,"custom"),this)}end(t){if(this._endTime){this._frozen=$a(this);return}this._endTime=Ge(t),$T(this),this._onSpanEnded(),this._frozen=$a(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ve],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:kl(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[re],profile_id:this._attributes[zo],exclusive_time:this._attributes[pt],measurements:qa(this._events),is_segment:this._isStandaloneSpan&&pe(this)===this||void 0,segment_id:this._isStandaloneSpan?pe(this).spanContext().spanId:void 0,links:Pl(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===pe(this),status:Go(this._status),attributes:Dl(this._attributes,this._status),links:Cl(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){if(this._frozen)return this;R&&b.log("[Tracing] Adding an event to span:",t);const s=Ga(n)?n:r||se(),o=Ga(n)?{}:n||{},i={name:t,time:Ge(s),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=W();t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this));const n=pe(this),r=this._isStandaloneSpan||this===n;if(this._isStandaloneSpan){this._sampled?DT(LT([this],t)):(R&&b.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}if(!r){const i=Wa();if(i){const a=zt(this).scope||z();i.onChildSpanEnded(this,n,c=>this._convertSpanToTransaction(c),a)}return}if(t&&Me(t)){t.emit("afterSegmentSpanEnd",this);return}const s=zt(this).scope||z(),o=Wa();if(o)o.onSegmentSpanEnded(i=>this._convertSpanToTransaction(i),s);else{const i=this._convertSpanToTransaction();i&&s.captureEvent(i)}}_convertSpanToTransaction(t={}){if(!Va(q(this)))return;this._name||(R&&b.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:n,isolationScope:r}=zt(this),s=n?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;t.onSpanCaptured?.(this);const o=[];for(const l of Er(this)){if(l===this||kT(l)||t.isSpanAlreadyCaptured?.(l))continue;const d=q(l);Va(d)&&(t.onSpanCaptured?.(l),o.push(d))}const i=this._attributes[ke];delete this._attributes[La];let a=!1;o.forEach(l=>{delete l.data[La],l.op?.startsWith("gen_ai.")&&(a=!0)});const c={contexts:{trace:pT(this)},spans:o.length>za?o.sort((l,d)=>l.start_timestamp-d.start_timestamp).slice(0,za):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:n,capturedSpanIsolationScope:r,dynamicSamplingContext:pn(this),hasGenAiSpans:a},request:s,...i&&{transaction_info:{source:i}}},u=qa(this._events);return u&&Object.keys(u).length&&(R&&b.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),c.measurements=u),c}}function Ga(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Va(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function kT(e){return e instanceof ns&&e.isStandaloneSpan()}function DT(e){const t=W();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function UT(e,t,n){if(!Te(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const o=Un(s);if(o===void 0)return R&&b.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(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!o)return R&&b.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,r];const i=n<o;return i||R&&b.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[i,o,r]}
18const MT="__SENTRY_SUPPRESS_TRACING__";function ht(e){const t=Xo();return t.startInactiveSpan?t.startInactiveSpan(e):FT(e)}function FT(e){const t=BT(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?o=>qo(e.scope,o):r!==void 0?o=>zl(r,o):o=>o())(()=>{const o=z(),i=WT(o,r),a=W();return e.onlyIfParent&&!i?jT(o,a):HT({parentSpan:i,spanArguments:t,forceTransaction:n,scope:o})})}function zl(e,t){const n=Xo();return n.withActiveSpan?n.withActiveSpan(e,t):qo(r=>(kn(r,e||void 0),t(r)))}function Ko(e=z()){const t=Xo();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[MT]===!0}function jT(e,t){t?.recordDroppedEvent("no_parent_span","span");const n=new xt({traceId:e.getPropagationContext().traceId});return Qt(n,e,xe()),n}function HT({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){const s=xe();if(!Te()){const a={...s.getPropagationContext(),...r.getPropagationContext()},c=e?e.spanContext().traceId:a.traceId,u=new xt({traceId:c});return e&&!n&&Sr(e,u),Qt(u,r,s),u}const o=W();if(zT(o,t)){Ko(r)||o?.recordDroppedEvent("ignored","span");const a=new xt({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&Sr(e,a),Qt(a,r,s),a}let i;if(e&&!n)i=qT(e,r,t,s),Sr(e,i);else if(e){const a=pn(e),{traceId:c,spanId:u}=e.spanContext(),f=Qe(e);i=Ja({traceId:c,parentSpanId:u,...t},r,s,f),ja(i,a)}else{const{traceId:a,dsc:c,parentSpanId:u,sampled:f}={...s.getPropagationContext(),...r.getPropagationContext()};i=Ja({traceId:a,parentSpanId:u,...t},r,s,f),c&&ja(i,c)}return NT(i),i}function BT(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=Ge(e.startTime),delete r.startTime,r}return n}function Xo(){const e=ut();return fn(e)}function Ja(e,t,n,r){const s=W(),o=s?.getOptions()||{},{name:i=""}=e,a={spanAttributes:{...e.attributes},spanName:i,parentSampled:r};s?.emit("beforeSampling",a,{decision:!1});const c=a.parentSampled??r,u=a.spanAttributes,f=t.getPropagationContext(),l=Ko(t),[d,h,m]=l?[!1]:UT(o,{name:i,parentSampled:c,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Un(f.dsc?.sample_rate)},f.sampleRand),y=new ns({...e,attributes:{[ke]:"custom",[Wo]:h!==void 0&&m?h:void 0,...u},sampled:d});return!d&&s&&!l&&(R&&b.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),s.recordDroppedEvent("sample_rate",Me(s)?"span":"transaction")),Qt(y,t,n),s&&s.emit("spanStart",y),y}function qT(e,t,n,r){const{spanId:s,traceId:o}=e.spanContext(),i=Ko(t),a=i?!1:Qe(e),c=a?new ns({...n,parentSpanId:s,traceId:o,sampled:a}):new xt({traceId:o});Sr(e,c),Qt(c,t,r);const u=W();return u&&(Me(u)&&en(c)&&(en(e)&&e.dropReason?(c.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):i||(c.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",c),n.endTimestamp&&(u.emit("spanEnd",c),u.emit("afterSpanEnd",c))),c}function WT(e,t){if(t)return t;if(t===null)return;const n=kr(e);if(!n)return;const r=W();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?pe(n):n}function zT(e,t){const n=e?.getOptions().ignoreSpans;return!e||!Me(e)||!n?.length?!1:Mn({description:t.name||"",op:t.attributes?.[ve]||t.op,attributes:t.attributes},n)}function Gl(e){return en(e)&&e.dropReason==="ignored"}const Tr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},GT="heartbeatFailed",VT="idleTimeout",JT="finalTimeout",KT="externalFinish";function Vl(e,t={}){const n=new Map;let r=!1,s,o=KT,i=!t.disableAutoFinish;const a=[],{idleTimeout:c=Tr.idleTimeout,finalTimeout:u=Tr.finalTimeout,childSpanTimeout:f=Tr.childSpanTimeout,beforeSpanEnd:l,trimIdleSpanEndTimestamp:d=!0}=t,h=W(),m=z();if(!h||!Te()){const T=new xt({traceId:m.getPropagationContext().traceId});return Qt(T,m,xe()),T}const y=we(),_=XT(e);_.end=new Proxy(_.end,{apply(T,v,F){if(l&&l(_),en(v))return;const[M,...H]=F,G=M||se(),V=Ge(G),U=Er(_).filter(P=>P!==_),Q=q(_);if(!U.length||!d)return I(V),Reflect.apply(T,v,[V,...H]);const ae=h.getOptions().ignoreSpans,k=U?.reduce((P,O)=>{const B=q(O);return!B.timestamp||ae&&Mn({description:B.description,op:B.op,attributes:B.data},ae)?P:P?Math.max(P,B.timestamp):B.timestamp},void 0),ee=Q.start_timestamp,j=Math.min(ee?ee+u/1e3:1/0,Math.max(ee||-1/0,Math.min(V,k||1/0)));return I(j),Reflect.apply(T,v,[j,...H])}});function g(){s&&(clearTimeout(s),s=void 0)}function S(T){g(),s=setTimeout(()=>{!r&&n.size===0&&i&&(o=VT,_.end(T))}
18,c)}function w(T){s=setTimeout(()=>{!r&&i&&(o=GT,_.end(T))},f)}function A(T){g(),n.set(T,!0);const v=se();w(v+f/1e3)}function L(T){if(n.has(T)&&n.delete(T),n.size===0){const v=se();S(v+c/1e3)}}function I(T){r=!0,n.clear(),a.forEach(U=>U()),kn(m,y);const v=q(_),{start_timestamp:F}=v;if(!F)return;v.data[Dn]||_.setAttribute(Dn,o);const H=v.status;(!H||H==="unknown")&&_.setStatus({code:es}),b.log(`[Tracing] Idle span "${v.op}" finished`);const G=Er(_).filter(U=>U!==_);let V=0;G.forEach(U=>{U.isRecording()&&(U.setStatus({code:ie,message:"cancelled"}),U.end(T),R&&b.log("[Tracing] Cancelling span since span ended early",JSON.stringify(U,void 0,2)));const Q=q(U),{timestamp:ae=0,start_timestamp:k=0}=Q,ee=k<=T,j=(u+c)/1e3,P=ae-k<=j;if(R){const O=JSON.stringify(U,void 0,2);ee?P||b.log("[Tracing] Discarding span since it finished after idle span final timeout",O):b.log("[Tracing] Discarding span since it happened after idle span was finished",O)}(!P||!ee)&&(yT(_,U),V++)}),V>0&&_.setAttribute("sentry.idle_span_discarded_spans",V)}return a.push(h.on("spanStart",T=>{if(r||T===_||q(T).timestamp||T instanceof ns&&T.isStandaloneSpan())return;Er(_).includes(T)&&A(T.spanContext().spanId)})),a.push(h.on("spanEnd",T=>{r||L(T.spanContext().spanId)})),a.push(h.on("idleSpanEnableAutoFinish",T=>{T===_&&(i=!0,S(),n.size&&w())})),t.disableAutoFinish||S(),setTimeout(()=>{r||(_.setStatus({code:ie,message:"deadline_exceeded"}),o=JT,_.end())},u),_}function XT(e){const t=ht(e);return kn(z(),t),R&&b.log("[Tracing] Started span is an idle span"),t}function YT(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;ZT(e,t),r&&tv(e,r),nv(e,n),QT(e,s),ev(e,o)}function Ka(e,t){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:f,eventProcessors:l,attachments:d,propagationContext:h,transactionName:m,span:y}=t;Tn(e,"extra",n),Tn(e,"tags",r),Tn(e,"attributes",s),Tn(e,"user",o),Tn(e,"contexts",i),e.sdkProcessingMetadata=Yn(e.sdkProcessingMetadata,c,2),a&&(e.level=a),m&&(e.transactionName=m),y&&(e.span=y),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),f.length&&(e.fingerprint=[...e.fingerprint,...f]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...h}}function Tn(e,t,n){e[t]=Yn(e[t],n,1)}function Jl(e,t){const n=BE().getScopeData();return e&&Ka(n,e.getScopeData()),t&&Ka(n,t.getScopeData()),n}function ZT(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function QT(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ev(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function tv(e,t){e.contexts={trace:hT(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:pn(t),...e.sdkProcessingMetadata};const n=pe(t),r=q(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function nv(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}const Kl="http.url",Xl="sentry.segment.name",Yl="sentry.transaction",hn="url.full",rv="url.path";function Zl(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([r,s])=>{s!=null&&!(r in n)&&(n[r]=s)})}const Ps=0,Xa=1,Ya=2;function er(e){return new Fn(t=>{t(e)})}function Ql(e){return new Fn((t,n)=>{n(e)})}class Fn{constructor(t){this._state=Ps,this._handlers=[],this._runExecutor(t)}then(t,n){return new Fn((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Fn((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>
18{if(o){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Ps)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Xa&&n[1](this._value),this._state===Ya&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(o,i)=>{if(this._state===Ps){if(Kn(i)){i.then(r,s);return}this._state=o,this._value=i,this._executeHandlers()}},r=o=>{n(Xa,o)},s=o=>{n(Ya,o)};try{t(r,s)}catch(o){s(o)}}}function sv(e,t,n,r=0){try{const s=oo(t,n,e,r);return Kn(s)?s:er(s)}catch(s){return Ql(s)}}function oo(e,t,n,r){const s=n[r];if(!e||!s)return e;const o=s({...e},t);return R&&o===null&&b.log(`Event processor "${s.id||"?"}" dropped event`),Kn(o)?o.then(i=>oo(i,t,n,r+1)):oo(o,t,n,r+1)}let gt,Za,Qa,nt;function ov(e){const t=D._sentryDebugIds,n=D._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(nt&&r.length===Za&&s.length===Qa)return nt;Za=r.length,Qa=s.length,nt={},gt||(gt={});const o=(i,a)=>{for(const c of i){const u=a[c],f=gt?.[c];if(f&&nt&&u)nt[f[0]]=u,gt&&(gt[c]=[f[0],u]);else if(u){const l=e(c);for(let d=l.length-1;d>=0;d--){const m=l[d]?.filename;if(m&&nt&>){nt[m]=u,gt[c]=[m,u];break}}}}};return t&&o(r,t),n&&o(s,n),nt}function iv(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Oe(),timestamp:t.timestamp||Dt()},u=n.integrations||e.integrations.map(g=>g.name);av(c,e),lv(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&cv(c,e.stackParser);const f=dv(r,n.captureContext);n.mechanism&&Tt(c,n.mechanism);const l=s?s.getEventProcessors():[],d=Jl(o,f),h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),YT(c,d);const m=[...l,...d.eventProcessors];return(n.data&&n.data.__sentry__===!0?er(c):sv(m,c,n)).then(g=>(g&&uv(g),typeof i=="number"&&i>0?fv(g,i,a):g))}function av(e,t){const{environment:n,release:r,dist:s,maxValueLength:o}=t;e.environment=e.environment||n||Vo,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const i=e.request;i?.url&&o&&(i.url=Ys(i.url,o)),o&&e.exception?.values?.forEach(a=>{a.value&&(a.value=Ys(a.value,o))})}function cv(e,t){const n=ov(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function uv(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function lv(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function fv(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Be(s.data,t,n)}}))},...e.user&&{user:Be(e.user,t,n)},...e.contexts&&{contexts:Be(e.contexts,t,n)},...e.extra&&{extra:Be(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Be(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:Be(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Be(e.contexts.flags,3,n)),r}function dv(e,t){if(!t)return e;const n=e?e.clone():new Xe;return n.update(t),n}function pv(e,t){return z().captureException(e,void 0)}function ef(e,t){return z().captureEvent(e,t)}function hv(e){xe().setUser(e)}function mv(){const e=W();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function ec(e){const t=xe(),{user:n}=Jl(t,z()),{userAgent:r}=D.navigator||{},s=IE({user:n,...r&&{userAgent:r},...e}),o=t.getSession();return o?.status==="ok"&&Yt(o,{status:"exited"}),tf(),t.setSession(s),s}function tf(){const e=xe(),n=z().getSession()||e.getSession();n&&OE(n),nf(),e.setSession()}function nf(){const e=xe(),t=W(),n=e.getSession();n&&t&&t.captureSession(n)}function Cs(e=!1){if(e){tf();return}nf()}function rf(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const gv="7";function _v(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function yv(e){return`${_v(e)}${e.projectId}/envelope/`}function bv(e,t){const n={sentry_version:gv};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Sv(e,t,n){return t||`${yv(e)}?${bv(e,n)}`}const tc=[];function Ev(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Tv(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return Ev(r)}function vv(e,t){const n={};return t.forEach(r=>{r?.beforeSetup&&r.beforeSetup(e)}),t.forEach(r=>{r&&sf(e,r,n)}),n}function nc(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function sf(e,t,n){if(n[t.name]){R&&b.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!tc.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),tc.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}["processSpan","processSegmentSpan"].forEach(r=>{const s=t[r];typeof s=="function"&&e.on(r,o=>s.call(t,o,e))}),R&&b.log(`Integration installed: ${t.name}`)}function wv(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Rv(){return"npm"}function Av(){return!wv()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function rs(){return typeof window<"u"&&(!Av()||Iv())}function Iv(){return D.process?.type==="renderer"}function Ov(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...rs()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}
18function Pv(e,t,n,r,s){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=dn(r)),Ut(o,[Ov(e,s)])}function Cv(e,t){const n=t??xv(e)??[];if(n.length===0)return;const r=e.getOptions(),s=Pv(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);of().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function xv(e){return of().get(e)}function of(){return un("clientToLogBufferMap",()=>new WeakMap)}function Lv(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...rs()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Nv(e,t,n,r,s){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=dn(r)),Ut(o,[Lv(e,s)])}function $v(e,t){const n=t??kv(e)??[];if(n.length===0)return;const r=e.getOptions(),s=Nv(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);af().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function kv(e){return af().get(e)}function af(){return un("clientToMetricBufferMap",()=>new WeakMap)}function Dv(e){const t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status==="ok"||e.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...e.data},links:e.links};return _T(t)}function Uv(e,t){if(e.type!=="transaction"||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||t.getOptions().streamGenAiSpans===!1||Me(t))return;const n=[],r=[];for(const o of e.spans)o.op?.startsWith("gen_ai.")?n.push(Dv(o)):r.push(o);if(n.length===0)return;e.spans=r;const s=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...rs()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}const Yo=Symbol.for("SentryBufferFullError");function Zo(e=100){const t=new Set;function n(){return t.size<e}function r(i){t.delete(i)}function s(i){if(!n())return Ql(Yo);const a=i();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function o(i){if(!t.size)return er(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!i)return a;const c=[a,new Promise(u=>rf(setTimeout(()=>u(!1),i)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:o}}const Mv=60*1e3;function Fv(e,t=dt()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Mv:r-t}function jv(e,t){return e[t]||e.all||0}function Hv(e,t,n=dt()){return jv(e,t)>n}function Bv(e,{statusCode:t,headers:n},r=dt()){const s={...e},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,f]=a.split(":",5),l=parseInt(c,10),d=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+d;else for(const h of u.split(";"))h==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[h]=r+d):s[h]=r+d}else i?s.all=r+Fv(i,r):t===429&&(s.all=r+60*1e3);return s}const cf=64;function qv(e,t,n=Zo(e.bufferSize||cf)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(ro(i,(l,d)=>{const h=Ba(d);Hv(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):a.push(l)}),a.length===0)return Promise.resolve({});const c=Ut(i[0],a),u=l=>{if(vT(c,["client_report"])){R&&b.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);return}ro(c,(d,h)=>{e.recordDroppedEvent(l,Ba(h))})},f=()=>t({body:Hl(c)}).then(l=>l.statusCode===413?(R&&b.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),l):(R&&l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&b.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=Bv(r,l),l),l=>{throw u("network_error"),R&&b.error("Encountered error running transport request:",l),l});return n.add(f).then(l=>l,l=>{if(l===Yo)return R&&b.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw l})}return{send:o,flush:s}}function Wv(e,t,n){const r=[{type:"client_report"},{timestamp:Dt(),discarded_events:e}];return Ut(t?{dsn:t}:{},[r])}function uf(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function zv(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=e.contexts?.trace??{};return{data:i??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:i?.[zo],exclusive_time:i?.[pt],measurements:e.measurements,is_segment:!0}}function Gv(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[zo]:e.profile_id},...e.exclusive_time&&{[pt]:e.exclusive_time}}}},measurements:e.measurements}}const lr=["forwarded","-ip","remote-","via","-user"];function Vv(e){return e===!0?{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}
18,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:lr},httpHeaders:{request:{deny:lr},response:{deny:lr}},httpBodies:[],urlQueryParams:{deny:lr},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}const Jv={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};function Kv(e){const t=e.dataCollection!=null?Jv:Vv(e.sendDefaultPii),n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,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}}const rc="Not capturing exception because it's already been captured.",sc="Discarded session because of missing or non-string release",lf=Symbol.for("SentryInternalError"),ff=Symbol.for("SentryDoNotSendEventError"),Xv=5e3;function vr(e){return{message:e,[lf]:!0}}function xs(e){return{message:e,[ff]:!0}}function oc(e){return Yr(e)&&lf in e}function ic(e){return Yr(e)&&ff in e}function ac(e,t,n,r,s){let o=0,i,a=!1;e.on(n,()=>{o=0,clearTimeout(i),a=!1}),e.on(t,c=>{if(o+=r(c),o>=8e5)s(e);else if(!a){const u=e.getOptions()._flushInterval??Xv;u>0&&(a=!0,i=rf(setTimeout(()=>{s(e)},u)))}}),e.on("flush",()=>{s(e)})}class Yv{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Zo(t.transportOptions?.bufferSize??cf),this._dataCollection=Kv(t),t.dsn?this._dsn=uT(t.dsn):R&&b.warn("No DSN provided, client will not send events."),this._dsn){const r=Sv(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&ac(this,"afterCaptureLog","flushLogs",t0,Cv),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&ac(this,"afterCaptureMetric","flushMetrics",e0,$v)}captureException(t,n,r){const s=Oe();if(Ia(t))return R&&b.log(rc),s;const o={event_id:s,...n};return this._process(()=>this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r)).then(i=>i),"error"),o.event_id}captureMessage(t,n,r,s){const o={event_id:Oe(),...r},i=jo(t)?t:String(t),a=Ct(t),c=a?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(()=>c.then(u=>this._captureEvent(u,o,s)),a?"unknown":"error"),o.event_id}captureEvent(t,n,r){const s=Oe();if(n?.originalException&&Ia(n.originalException))return R&&b.log(rc),s;const o={event_id:s,...n},i=t.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=cc(t.type);return this._process(()=>this._captureEvent(t,o,a||r,c),u),o.event_id}captureSession(t){this.sendSession(t),Yt(t,{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(t){const n=this._transport;if(this.emit("flush"),!n)return!0;const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){const n=this._integrations[t.name];!n&&t.beforeSetup&&t.beforeSetup(this),sf(this,t,this._integrations),n||nc(this,[t])}sendEvent(t,n={}
18){this.emit("beforeSendEvent",t,n);const r=Uv(t,this);let s=xT(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])s=Ha(s,AT(o));r&&(s=Ha(s,r)),this.sendEnvelope(s).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){const{release:n,environment:r=Vo}=this._options;if("aggregates"in t){const o=t.attrs||{};if(!o.release&&!n){R&&b.warn(sc);return}o.release=o.release||n,o.environment=o.environment||r,t.attrs=o}else{if(!t.release&&!n){R&&b.warn(sc);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=CT(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;R&&b.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...o)=>n(...o);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return R&&b.error("Error while sending envelope:",n),{}}return R&&b.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=vv(this,t),nc(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const o=n.exception?.values;if(o){s=!0,r=!1;for(const c of o)if(c.mechanism?.handled===!1){r=!0;break}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(Yt(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const o=this.getOptions(),i=this.getIntegrationNames();return!n.integrations&&i.length&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),iv(o,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:{...a.contexts?.trace,...qE(r)},...a.contexts};const c=Jo(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=z(),s=xe()){return R&&io(t)&&b.log(`Captured error event \`${uf(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(o=>o.event_id,o=>{R&&(ic(o)?b.log(o.message):oc(o)?b.warn(o.message):b.warn(o))})}_processEvent(t,n,r,s){const o=this.getOptions(),{sampleRate:i}=o,a=df(t),c=io(t),f=`before send for type \`${t.type||"error"}\``,l=typeof i>"u"?void 0:Un(i),d=cc(t.type);return this._prepareEvent(t,n,r,s).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",d),xs("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return h;const y=Qv(this,o,h,n);return Zv(y,f)}).then(h=>{if(h===null){if(this.recordDroppedEvent("before_send",d),a){const g=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",g)}throw xs(`${f} returned \`null\`, will not send event.`)}const m=r.getSession()||s.getSession();if(c&&m&&this._updateSessionFromEvent(m,h),c&&typeof l=="number"&&st()>l)throw this.recordDroppedEvent("sample_rate","error"),xs(`Discarding event because it's not included in the random sample (sampling rate = ${i})`);if(a){const _=h.sdkProcessingMetadata?.spanCountBeforeProcessing||0,g=h.spans?h.spans.length:0,S=_-g;S>0&&this.recordDroppedEvent("before_send","span",S)}const y=h.transaction_info;if(a&&y&&h.transaction!==t.transaction){const _="custom";h.transaction_info={...y,source:_}}return this.sendEvent(h,n),h}).then(null,h=>{throw ic(h)||oc(h)?h:(this.captureException(h,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:h}),vr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 19Reason: ${h}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Yo&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){R&&b.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){R&&b.log("No outcomes to send");return}if(!this._dsn){R&&b.log("No dsn provided, will not send outcomes");return}R&&b.log("Sending outcomes:",t);const n=Wv(t,this._options.tunnel&&dn(this._dsn));this.sendEnvelope(n)}}function cc(e){return e==="replay_event"?"replay":e||"error"}function Zv(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Kn(e))return e.then(r=>{if(!$r(r)&&r!==null)throw vr(n);return r},r=>{throw vr(`${t} rejected with ${r}`)});if(!$r(e)&&e!==null)throw vr(n);return e}function Qv(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,ignoreSpans:i}=t,a=!jl(t.beforeSendSpan)&&t.beforeSendSpan;let c=n;if(io(c)&&s)return s(c,r);if(df(c)){if(a||i){const u=zv(c);if(i?.length&&Mn({description:u.description,op:u.op,attributes:u.data},i))return null;if(a){const f=a(u);f?c=Yn(n,Gv(f)):no()}if(c.spans){const f=[],l=c.spans;for(const h of l){if(i?.length&&Mn({description:h.description,op:h.op,attributes:h.data},i)){ET(l,h);continue}if(a){const m=a(h);m?f.push(m):(no(),f.push(h))}else f.push(h)}const d=c.spans.length-f.length;d&&e.recordDroppedEvent("before_send","span",d),c.spans=f}}if(o){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return o(c,r)}}return c}function io(e){return e.type===void 0}function df(e){return e.type==="transaction"}function e0(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+pf(e.attributes)}function t0(e){let t=0;return e.message&&(t+=e.message.length*2),t+pf(e.attributes)}function pf(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*uc(n[0]):Ct(n)?t+=uc(n):t+=100}),t}function uc(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function n0(e,t){t.debug===!0&&(R?b.enable():kt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),z().update(t.initialScope);const r=new e(t);return r0(r),r.init(),r}function r0(e){z().setClient(e)}const s0="thismessage:/";function Qo(e){return"isRelative"in e}function Ur(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?s0:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function hf(e){if(Qo(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function wt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function o0(e){return e.split(/[?#]/,1)[0]}function Le(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),o=e.indexOf(",");let i="";if(t&&o!==-1){const a=e.slice(o+1);i=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return e}function i0(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function a0(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(o=>({name:`${r}:@sentry/${o}`,version:Et})),s.version=Et)}function mf(e={}){const t=e.client||W();if(!mv()||!t)return{};const n=ut(),r=fn(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||z(),o=e.span||we(),i=en(o)&&!Te(t.getOptions()),a=o&&!i?mT(o):c0(s),c=o?pn(o):Jo(t,s),u=QE(c);if(!Rl.test(a))return b.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const l={"sentry-trace":a,baggage:u};return e.propagateTraceparent&&(l.traceparent=o&&!i?gT(o):u0(s)),l}function c0(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Al(t,r,n)}function u0(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Il(t,r,n)}const l0=100;function Lt(e,t){const n=W(),r=xe();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=l0}=n.getOptions();if(o<=0)return;const a={timestamp:Dt(),...e},c=s?kt(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}const f0="FunctionToString",lc=new WeakMap,d0=(()=>({name:f0,setupOnce(){const e=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=Bo(this);let r;try{lc.has(W())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){lc.set(e,!0)}})),p0=d0,h0=[/^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$/],m0="EventFilters",g0=(e={})=>{let t;return{name:m0,setup(n){const r=n.getOptions();t=fc(e,r)},processEvent(n,r,s){if(!t){const o=s.getOptions();t=fc(e,o)}return y0(n,t)?null:n}}},_0=((e={})=>({...g0(e),name:"InboundFilters"}));function fc(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:h0],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function y0(e,t){if(e.type){if(e.type==="transaction"&&S0(e,t.ignoreTransactions))return R&&b.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 20Event: ${yt(e)}`),!0}else{if(b0(e,t.ignoreErrors))return R&&b.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 21Event: ${yt(e)}`),!0;if(w0(e))return R&&b.warn(`Event dropped due to not having an error message, error type or stacktrace. 22Event: ${yt(e)}`),!0;if(E0(e,t.denyUrls))return R&&b.warn(`Event dropped due to being matched by \`denyUrls\` option. 23Event: ${yt(e)}. 24Url: ${Mr(e)}`),!0;if(!T0(e,t.allowUrls))return R&&b.warn(`Event dropped due to not being matched by \`allowUrls\` option. 25Event: ${yt(e)}. 26Url: ${Mr(e)}`),!0}return!1}function b0(e,t){return t?.length?uf(e).some(n=>We(n,t)):!1}function S0(e,t){if(!t?.length)return!1;const n=e.transaction;return n?We(n,t):!1}function E0(e,t){if(!t?.length)return!1;const n=Mr(e);return n?We(n,t):!1}function T0(e,t){if(!t?.length)return!0;const n=Mr(e);return n?We(n,t):!0}function v0(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Mr(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?v0(n):null}catch{return R&&b.error(`Cannot extract url for event ${yt(e)}`),null}}function w0(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function R0(e,t,n,r,s,o){if(!s.exception?.values||!o||!Je(o.originalException))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=ao(e,t,r,o.originalException,n,s.exception.values,i,0
26))}function ao(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(Je(r[s])){dc(i,a,r);const u=e(t,r[s]),f=c.length;pc(u,s,f,a),c=ao(e,t,n,r[s],s,[u,...c],u,f)}return gf(r)&&r.errors.forEach((u,f)=>{if(Je(u)){dc(i,a,r);const l=e(t,u),d=c.length;pc(l,`errors[${f}]`,d,a),c=ao(e,t,n,u,s,[l,...c],l,d)}}),c}function gf(e){return Array.isArray(e.errors)}function dc(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...gf(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function pc(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function A0(e){return Je(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function hc(e){return A0(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}const mc=new Set([]);function I0(e){const t="console",n=lt(t,e);return ft(t,O0),n}const gc=new Set;function O0(){"console"in D&&QS.forEach(function(e){gc.has(e)||!(e in D.console)||(gc.add(e),Ee(D.console,e,function(t){return Nr[e]=t,function(...n){const r=n[0],s=Nr[e],o=mc.size&&typeof r=="string"&&We(r,mc);o||Ie("console",{args:n,level:e}),(!o||R&&b.isEnabled())&&s?.apply(D.console,n)}}))})}function P0(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const C0="Dedupe",x0=(()=>{let e;return{name:C0,processEvent(t){if(t.type)return t;try{if(N0(t,e))return R&&b.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),L0=x0;function N0(e,t){return t?!!($0(e,t)||k0(e,t)):!1}function $0(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!yf(e,t)||!_f(e,t))}function k0(e,t){const n=_c(t),r=_c(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!yf(e,t)||!_f(e,t))}function _f(e,t){let n=Ta(e),r=Ta(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function yf(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function _c(e){return e.exception?.values?.[0]}const D0="ConversationId",U0=(()=>({name:D0,setup(e){e.on("spanStart",t=>{const n=z().getScopeData(),r=xe().getScopeData(),s=n.conversationId||r.conversationId;if(s){const{op:o,data:i,description:a}=q(t);if(!o?.startsWith("gen_ai.")&&!i["ai.operationId"]&&!a?.startsWith("ai."))return;t.setAttribute(GE,s)}})}})),M0=U0;function F0(e,t,n,r,s){if(!e.fetchData)return;const{method:o,url:i}=e.fetchData,a=Te()&&t(i);if(e.endTimestamp){const y=e.fetchData.__span;if(!y)return;const _=r[y];_&&(a&&(B0(_,e),j0(_,e,s)),delete r[y]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof s=="object"?s:{spanOrigin:s},f=W(),l=!!we(),d=l||!!f&&Me(f),h=a&&d?ht(z0(i,o,c)):new xt,m=Gl(h)&&l?void 0:h;if(a&&!d&&f?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)){const y=e.args[0],_={...e.args[1]||{}},g=H0(y,_,Te()&&d?m:void 0,u);g&&(e.args[1]=_,_.headers=g)}if(f){const y={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",h,y)}return h}function j0(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function H0(e,t,n,r){const s=mf({span:n,propagateTraceparent:r}),o=s["sentry-trace"],i=s.baggage,a=s.traceparent;if(!o)return;const c=t.headers||(Ho(e)?e.headers:void 0);if(c)if(q0(c)){const u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",o),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),i){const f=u.get("baggage");f?fr(f)||u.set("baggage",`${f},${i}`):u.set("baggage",i)}return u}else if(W0(c)){const u=[...c];u.find(l=>l[0]==="sentry-trace")||u.push(["sentry-trace",o]),r&&a&&!u.find(l=>l[0]==="traceparent")&&u.push(["traceparent",a]);const f=c.find(l=>l[0]==="baggage"&&typeof l[1]=="string"&&fr(l[1]));return i&&!f&&u.push(["baggage",i]),u}else{const u="sentry-trace"in c?c["sentry-trace"]:void 0,f="traceparent"in c?c.traceparent:void 0,l="baggage"in c?c.baggage:void 0,d=l?Array.isArray(l)?[...l]:[l]:[],h=l&&(Array.isArray(l)?l.find(y=>fr(y)):fr(l));i&&!h&&d.push(i);const m=Object.assign({},c,{"sentry-trace":u??o,...d.length>0&&{baggage:d.join(",")}});return r&&a&&!f&&(m.traceparent=a),m}else return{"sentry-trace":o,...i&&{baggage:i},...a&&{traceparent:a}}}function B0(e,t){if(t.response){Sl(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:ie,message:"internal_error"});e.end()}function fr(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(Dr))}function q0(e){return typeof Headers<"u"&&Qr(e,Headers)}function W0(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}
26function z0(e,t,n){if(e.startsWith("data:")){const o=Le(e);return{name:`${t} ${o}`,attributes:yc(e,void 0,t,n)}}const r=Ur(e),s=r?hf(r):e;return{name:`${t} ${s}`,attributes:yc(e,r,t,n)}}function yc(e,t,n,r){const s={url:Le(e),type:"fetch","http.method":n,[re]:r,[ve]:"http.client"};return t&&(Qo(t)||(s[Kl]=Le(t.href),s[hn]=Le(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function bf(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const jn=D;function G0(){return"history"in jn&&!!jn.history}function V0(){if(!("fetch"in jn))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function co(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function J0(){if(typeof EdgeRuntime=="string")return!0;if(!V0())return!1;if(co(jn.fetch))return!0;let e=!1;const t=jn.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=co(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){R&&b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function ei(e,t){const n="fetch",r=lt(n,e);return ft(n,()=>Sf(void 0,t)),r}function K0(e){const t="fetch-body-resolved",n=lt(t,e);return ft(t,()=>Sf(Y0)),n}function Sf(e,t=!1){t&&!J0()||Ee(D,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=Z0(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:se()*1e3,virtualError:s,headers:Q0(r)};return e||Ie("fetch",{...a}),n.apply(D,r).then(async c=>(e?e(c):Ie("fetch",{...a,endTimestamp:se()*1e3,response:c}),c),c=>{Ie("fetch",{...a,endTimestamp:se()*1e3,error:c}),Je(c)&&c.stack===void 0&&(c.stack=s.stack,me(c,"framesToPop",1));const f=W()?.getOptions().enhanceFetchErrorMessages??"always";if(f!==!1&&Je(c)&&c.name==="TypeError"&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const h=new URL(a.fetchData.url).host;f==="always"?c.message=`${c.message} (${h})`:me(c,"__sentry_fetch_url_host__",h)}catch{}throw c})}})}async function X0(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Y0(e){let t;try{t=e.clone()}catch{return}X0(t,()=>{Ie("fetch-body-resolved",{endTimestamp:se()*1e3,response:e})})}function wr(e,t){return Yr(e)&&!!e[t]}function bc(e){return typeof e=="string"?e:e?wr(e,"url")?e.url:e.toString?e.toString():"":""}function Z0(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:bc(n),method:wr(r,"method")?String(r.method).toUpperCase():Ho(n)&&wr(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:bc(t),method:wr(t,"method")?String(t.method).toUpperCase():"GET"}}function Q0(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Ho(t))return new Headers(t.headers)}catch{}}const Ef=D;function tn(){try{return Ef.document.location.href}catch{return""}}function Tf(e,t=5){if(!Ef.HTMLElement)return null;let n=e;for(let r=0;r<t;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}const $=D;let uo=0;function vf(){return uo>0}function ew(){uo++,setTimeout(()=>{uo--})}function nn(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const o=e.__sentry_wrapped__;return typeof o=="function"?o:e}if(Bo(e))return e}catch{return e}const r=function(...s){D._sentryWrappedDepth=(D._sentryWrappedDepth||0)+1;try{const o=s.map(i=>nn(i,t));return e.apply(this,o)}catch(o){throw ew(),qo(i=>{i.addEventProcessor(a=>(t.mechanism&&(Zs(a,void 0),Tt(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),pv(o)}),o}finally{D._sentryWrappedDepth=(D._sentryWrappedDepth||0)-1}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}ul(r,e),me(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Fr(){const e=tn(),{referrer:t}=$.document||{},{userAgent:n}=$.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function ti(e,t){const n=ss(e,t),r={type:ow(t),value:iw(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function tw(e,t,n,r){const o=W()?.getOptions().normalizeDepth,i=fw(t),a={__serialized__:fl(t,o)};if(i)return{exception:{values:[ti(e,i)]},extra:a};const c={exception:{values:[{type:Zr(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:uw(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=ss(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Ls(e,t){return{exception:{values:[ti(e,t)]}}}function ss(e,t){const n=t.stacktrace||t.stack||"",r=rw(t),s=sw(t);try{return e(n,r,s)}catch{}return[]}const nw=/Minified React error #\d+;/i;function rw(e){return e&&nw.test(e.message)?1:0}function sw(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function wf(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function ow(e){const t=e?.name;return!t&&wf(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function iw(e){const t=e?.message;return wf(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?hc(t.error):hc(e):"No error message"}function aw(e,t,n,r){const s=n?.syntheticException||void 0,o=ni(e,t,s,r);return Tt(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),er(o)}function cw(e,t,n="info",r,s){const o=r?.syntheticException||void 0,i=lo(e,t,o,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),er(i)}
26function ni(e,t,n,r,s){let o;if(cl(t)&&t.error)return Ls(e,t.error);if(wa(t)||lE(t)){const i=t;if("stack"in t){o=Ls(e,t);const a=o.exception?.values?.[0];if(r&&n&&a&&!a.stacktrace){const c=ss(e,n);c.length&&(a.stacktrace={frames:c},Tt(o,{synthetic:!0}))}}else{const a=i.name||(wa(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=lo(e,c,n,r),Zs(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Je(t)?Ls(e,t):$r(t)||Zr(t)?(o=tw(e,t,n,s),Tt(o,{synthetic:!0}),o):(o=lo(e,t,n,r),Zs(o,`${t}`),Tt(o,{synthetic:!0}),o)}function lo(e,t,n,r){const s={};if(r&&n){const o=ss(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),Tt(s,{synthetic:!0})}if(jo(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function uw(e,{isUnhandledRejection:t}){const n=dE(e),r=t?"promise rejection":"exception";return cl(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Zr(e)?`Event \`${lw(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function lw(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function fw(e){return Object.values(e).find(Je)}class dw extends Yv{constructor(t){const n=pw(t),r=$.SENTRY_SDK_SOURCE||Rv();a0(n,"browser",["browser"],r),super(n);const{userInfo:s}=this.getDataCollectionOptions();n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:s?"auto":"never",...n._metadata.sdk.settings});const{sendClientReports:o}=this._options;$.document&&$.document.addEventListener("visibilitychange",()=>{$.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),s&&this.on("beforeSendSession",i0)}eventFromException(t,n){return aw(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return cw(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function pw(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:$.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,C=D,hw=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",tr=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s??0),(o||s===void 0)&&(s=t.value,t.delta=o,t.rating=hw(t.value,n),e(t)))}},nr=(e=!0)=>{const t=C.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},mn=()=>nr()?.activationStart??0;function ot(e,t,n){C.document&&C.addEventListener(e,t,n)}function jr(e,t,n){C.document&&C.removeEventListener(e,t,n)}let Gt=-1;const Rf=new Set,mw=()=>C.document?.visibilityState==="hidden"&&!C.document?.prerendering?0:1/0,Rr=e=>{if(gw(e)&&Gt>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of Rf)t();isFinite(Gt)||(Gt=e.type==="visibilitychange"?e.timeStamp:0,jr("prerenderingchange",Rr,!0))}},rr=()=>{if(C.document&&Gt<0){const e=mn();Gt=(C.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??mw(),ot("visibilitychange",Rr,!0),ot("pagehide",Rr,!0),ot("prerenderingchange",Rr,!0)}return{get firstHiddenTime(){return Gt},onHidden(e){Rf.add(e)}}};function gw(e){return e.type==="pagehide"||C.document?.visibilityState==="hidden"}const _w=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,sr=(e,t=-1)=>{const n=nr();let r="navigate";return n&&(C.document?.prerendering||mn()>0?r="prerender":C.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:_w(),navigationType:r}},Ns=new WeakMap;function ri(e,t){try{return Ns.get(e)||Ns.set(e,new t),Ns.get(e)}catch{return new t}}class yw{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const gn=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},si=e=>{let t=!1;return()=>{t||(e(),t=!0)}},os=e=>{C.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},bw=[1800,3e3],Sw=(e,t={})=>{os(()=>{const n=rr(),r=sr("FCP");let s;const i=gn("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-mn(),0),r.entries.push(c),s(!0)))});i&&(s=tr(e,r,bw,t.reportAllChanges))})},Ew=[.1,.25],Tw=(e,t={})=>{Sw(si(()=>{const n=sr("CLS",0);let r;const s=rr(),o=ri(t,yw),i=c=>{for(const u of c)o._processEntry(u);o._sessionValue>
26n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},a=gn("layout-shift",i);a&&(r=tr(e,n,Ew,t.reportAllChanges),s.onHidden(()=>{i(a.takeRecords()),r(!0)}),C?.setTimeout?.(r))}))};let Af=0,$s=1/0,dr=0;const vw=e=>{e.forEach(t=>{t.interactionId&&($s=Math.min($s,t.interactionId),dr=Math.max(dr,t.interactionId),Af=dr?(dr-$s)/7+1:0)})};let fo;const If=()=>fo?Af:performance.interactionCount||0,ww=()=>{"interactionCount"in performance||fo||(fo=gn("event",vw,{type:"event",buffered:!0,durationThreshold:0}))},ks=10;let Of=0;const Rw=()=>If()-Of;class Aw{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){Of=If(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(Rw()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<ks||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,o)=>o._latency-s._latency),this._longestInteractionList.length>ks){const s=this._longestInteractionList.splice(ks);for(const o of s)this._longestInteractionMap.delete(o.id)}this._onAfterProcessingINPCandidate?.(r)}}}const oi=e=>{const t=C.requestIdleCallback||C.setTimeout;C.document?.visibilityState==="hidden"?e():(e=si(e),ot("visibilitychange",e,{once:!0,capture:!0}),ot("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),jr("visibilitychange",e,{capture:!0}),jr("pagehide",e,{capture:!0})}))},Iw=[200,500],Ow=40,Pw=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=rr();os(()=>{ww();const r=sr("INP");let s;const o=ri(t,Aw),i=c=>{oi(()=>{for(const f of c)o._processEntry(f);const u=o._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,s())})},a=gn("event",i,{durationThreshold:t.durationThreshold??Ow});s=tr(e,r,Iw,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{i(a.takeRecords()),s(!0)}))})};class Cw{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const xw=[2500,4e3],Lw=(e,t={})=>{os(()=>{const n=rr(),r=sr("LCP");let s;const o=ri(t,Cw),i=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)o._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-mn(),0),r.entries=[u],s())},a=gn("largest-contentful-paint",i);if(a){s=tr(e,r,xw,t.reportAllChanges);const c=si(()=>{i(a.takeRecords()),a.disconnect(),s(!0)}),u=f=>{f.isTrusted&&(oi(c),jr(f.type,u,{capture:!0}))};for(const f of["keydown","click","visibilitychange"])ot(f,u,{capture:!0})}})},Nw=[800,1800],po=e=>{C.document?.prerendering?os(()=>po(e)):C.document?.readyState!=="complete"?addEventListener("load",()=>po(e),!0):setTimeout(e)},$w=(e,t={})=>{const n=sr("TTFB"),r=tr(e,n,Nw,t.reportAllChanges);po(()=>{const s=nr();s&&(n.value=Math.max(s.responseStart-mn(),0),n.entries=[s],r(!0))})},In={},Hr={};let Pf,Cf,xf,Lf;function ii(e,t=!1){return is("cls",e,Dw,Pf,t)}function ai(e,t=!1){return is("lcp",e,Uw,Cf,t)}function kw(e){return is("ttfb",e,Mw,xf)}function Nf(e){return is("inp",e,Fw,Lf)}function rn(e,t){return $f(e,t),Hr[e]||(jw(e),Hr[e]=!0),kf(e,t)}function or(e,t){const n=In[e];if(n?.length)for(const r of n)try{r(t)}catch(s){et&&b.error(`Error while triggering instrumentation handler. 27Type: ${e} 28Name: ${Ve(r)} 29Error:`,s)}}function Dw(){return Tw(e=>{or("cls",{metric:e}),Pf=e},{reportAllChanges:!0})}function Uw(){return Lw(e=>{or("lcp",{metric:e}),Cf=e},{reportAllChanges:!0})}function Mw(){return $w(e=>{or("ttfb",{metric:e}),xf=e})}function Fw(){return Pw(e=>{or("inp",{metric:e}),Lf=e})}function is(e,t,n,r,s=!1){$f(e,t);let o;return Hr[e]||(o=n(),Hr[e]=!0),r&&t({metric:r}),kf(e,t,s?o:void 0)}function jw(e){const t={};e==="event"&&(t.durationThreshold=0),gn(e,n=>{or(e,{entries:n})},t)}function $f(e,t){In[e]=In[e]||[],In[e].push(t)}function kf(e,t,n){return()=>{n&&n();const r=In[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function Hw(e){return"duration"in e}const Bw=80,_t={};try{typeof Node<"u"&&(_t.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(_t.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,_t.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,_t.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,_t.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(_t.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function rt(e,t,n){const r=_t[t];if(r)try{return r.call(e,n)}catch{}const s=e[t];return typeof s=="function"?s.call(e,n):s}function le(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const f=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||Bw;for(;n&&o++<r&&(u=qw(n,f),!(u==="html"||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=rt(n,"parentNode");return s.reverse().join(a)}catch{return"<unknown>"}}function qw(e,t){const n=[],r=rt(e,"tagName");if(!r)return"";if(typeof HTMLElement<"u"&&e instanceof HTMLElement){const o=rt(e,"dataset");if(o){if(o.sentryComponent)return o.sentryComponent;if(o.sentryElement)return o.sentryElement}}n.push(r.toLowerCase());const s=t?.length?t.filter(o=>rt(e,"getAttribute",o)).map(o=>[o,rt(e,"getAttribute",o)]):null;if(s?.length)s.forEach(o=>{n.push(`[${o[0]}="${o[1]}"]`)});else{const o=rt(e,"id");o&&n.push(`#${o}`);const i=rt(e,"className");if(i&&qe(i)){const a=i.split(/\s+/);for(const c of a)n.push(`.${c}`)}}for(const o of["aria-label","type","name","title","alt"]){const i=rt(e,"getAttribute",o);i&&n.push(`[${o}="${i}"]`)}return n.join("")}const Ww=e=>{const t=n=>{(n.type==="pagehide"||C.document?.visibilityState==="hidden")&&e(n)};ot("visibilitychange",t,{capture:!0,once:!0}),ot("pagehide",t,{capture:!0,once:!0})};function Ds(e){return typeof e=="number"&&isFinite(e)}function ct(e,t,n,{...r}){const s=q(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),zl(e,()=>
29{const o=ht({startTime:t,...r});return o&&o.end(n),o})}function ci(e){const t=W();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:o}=e,{release:i,environment:a}=t.getOptions(),{userInfo:c}=t.getDataCollectionOptions(),f=t.getIntegrationByName("Replay")?.getReplayId(),l=z(),d=l.getUser(),h=d!==void 0?d.email||d.id||d.ip_address:void 0;let m;try{m=l.getScopeData().contexts.profile.profile_id}catch{}const y={release:i,environment:a,user:h||void 0,profile_id:m||void 0,replay_id:f||void 0,transaction:r,"user_agent.original":C.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s};return ht({name:n,attributes:y,startTime:o,experimental:{standalone:!0}})}function _n(){return C.addEventListener&&C.performance}function X(e){return e/1e3}function zw(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function as(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function cs(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n.spanContext().spanId,n),r=!0}Ww(()=>{s("pagehide")});const o=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(s("navigation"),o(),i())}),i=e.on("afterStartPageLoadSpan",a=>{n=a,i()})}function Gw(e){let t=0,n;if(!as("layout-shift"))return;const r=ii(({metric:s})=>{const o=s.entries[s.entries.length-1];o&&(t=s.value,n=o)},!0);cs(e,(s,o)=>{Vw(t,n,o,s),r()})}function Vw(e,t,n,r){et&&b.log(`Sending CLS span (${e})`);const s=t?X((fe()||0)+t.startTime):se(),o=z().getScopeData().transactionName,i=t?le(t.sources[0]?.node):"Layout shift",a={[re]:"auto.http.browser.cls",[ve]:"ui.webvital.cls",[pt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,f)=>{a[`cls.source.${f+1}`]=le(u.node)});const c=ci({name:i,transaction:o,attributes:a,startTime:s});c&&(c.addEvent("cls",{[Zn]:"",[Qn]:e}),c.end(s))}const Jw=6e4;function ir(e){return e!=null&&e>0&&e<=Jw}function Kw(e){let t=0,n;if(!as("largest-contentful-paint"))return;const r=ai(({metric:s})=>{const o=s.entries[s.entries.length-1];!o||!ir(s.value)||(t=s.value,n=o)},!0);cs(e,(s,o)=>{Xw(t,n,o,s),r()})}function Xw(e,t,n,r){if(!ir(e))return;et&&b.log(`Sending LCP span (${e})`);const s=X((fe()||0)+(t?.startTime||0)),o=z().getScopeData().transactionName,i=t?le(t.element):"Largest contentful paint",a={[re]:"auto.http.browser.lcp",[ve]:"ui.webvital.lcp",[pt]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=le(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=ci({name:i,transaction:o,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[Zn]:"millisecond",[Qn]:e}),c.end(s))}function Re(e){return e&&((fe()||performance.timeOrigin)+e)/1e3}function Df(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=zw(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return fe()||_n()?.timeOrigin?Yw({...t,"http.request.redirect_start":Re(e.redirectStart),"http.request.redirect_end":Re(e.redirectEnd),"http.request.worker_start":Re(e.workerStart),"http.request.fetch_start":Re(e.fetchStart),"http.request.domain_lookup_start":Re(e.domainLookupStart),"http.request.domain_lookup_end":Re(e.domainLookupEnd),"http.request.connect_start":Re(e.connectStart),"http.request.secure_connection_start":Re(e.secureConnectionStart),"http.request.connection_end":Re(e.connectEnd),"http.request.request_start":Re(e.requestStart),"http.request.response_start":Re(e.responseStart),"http.request.response_end":Re(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function Yw(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const Zw=2147483647;let Sc=0,_e={},ge,Br;function Qw({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=_n();if(r&&fe()){r.mark&&C.performance.mark("sentry-tracing-init");const s=t?Kw(n):t===!1?sR():void 0,o=e?Gw(n):e===!1?rR():void 0,i=oR(),a=iR();return()=>{i(),a(),s?.(),o?.()}}return()=>{}}function eR(){rn("longtask",({entries:e})=>{const t=we();if(!t)return;const{op:n,start_timestamp:r}=q(t);for(const s of e){const o=X(fe()+s.startTime),i=X(s.duration);n==="navigation"&&r&&o<r||ct(t,o,o+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[re]:"auto.ui.browser.metrics"}})}})}function tR(){new PerformanceObserver(t=>{const n=we();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=X(fe()+r.startTime),{start_timestamp:o,op:i}=q(n);if(i==="navigation"&&o&&s<o)continue;const a=X(r.duration),c={[re]:"auto.ui.browser.metrics"}
29,u=r.scripts[0],{invoker:f,invokerType:l,sourceURL:d,sourceFunctionName:h,sourceCharPosition:m}=u;c["browser.script.invoker"]=f,c["browser.script.invoker_type"]=l,d&&(c["code.filepath"]=d),h&&(c["code.function"]=h),m!==-1&&(c["browser.script.source_char_position"]=m),ct(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function nR(){rn("event",({entries:e})=>{const t=we();if(t){for(const n of e)if(n.name==="click"){const r=X(fe()+n.startTime),s=X(n.duration),o={name:le(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[re]:"auto.ui.browser.metrics"}},i=Tf(n.target);i&&(o.attributes["ui.component_name"]=i),ct(t,r,r+s,o)}}})}function rR(){return ii(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(_e.cls={value:e.value,unit:""},Br=t)},!0)}function sR(){return ai(({metric:e})=>{const t=e.entries[e.entries.length-1];!t||!ir(e.value)||(_e.lcp={value:e.value,unit:"millisecond"},ge=t)},!0)}function oR(){return kw(({metric:e})=>{e.entries[e.entries.length-1]&&(_e.ttfb={value:e.value,unit:"millisecond"})})}function iR(){return rn("paint",({entries:e})=>{const t=rr();for(const n of e){const r=n.startTime<t.firstHiddenTime;n.name==="first-paint"&&r&&(_e.fp={value:n.startTime,unit:"millisecond"}),n.name==="first-contentful-paint"&&r&&(_e.fcp={value:n.startTime,unit:"millisecond"})}})}function aR(e,t){const n=_n(),r=fe();if(!n?.getEntries||!r)return;const{spanStreamingEnabled:s,ignorePerformanceApiSpans:o,ignoreResourceSpans:i}=t,a=X(r),c=n.getEntries(),{op:u,start_timestamp:f}=q(e);c.slice(Sc).forEach(l=>{const d=X(l.startTime),h=X(Math.max(0,l.duration));if(!(u==="navigation"&&f&&a+d<f))switch(l.entryType){case"navigation":{dR(e,l,a);break}case"mark":case"paint":case"measure":{lR(e,l,d,h,a,o);break}case"resource":{mR(e,l,l.name,d,h,a,i);break}}}),Sc=Math.max(c.length-1,0),gR(e,s)}function cR(e,t){const n=fe();if(!_n()?.getEntries||!n){Ec();return}const{spanStreamingEnabled:r,recordClsOnPageloadSpan:s,recordLcpOnPageloadSpan:o}=t,i=X(n);if(q(e).op==="pageload"){if(bR(_e),r){const a=(c,u,f)=>{const l=f??`browser.web_vital.${c}.value`;e.setAttribute(l,u),et&&b.log("Setting web vital attribute",{[l]:u},"on pageload span")};["ttfb","fp","fcp"].forEach(c=>{_e[c]&&a(c,_e[c].value)}),_e["ttfb.requestTime"]&&a("ttfb.requestTime",_e["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else s||delete _e.cls,o||delete _e.lcp,Object.entries(_e).forEach(([a,c])=>{Wl(a,c.value,c.unit,e)}),_R(e,t);e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",i),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",mn())}Ec()}function Ec(){ge=void 0,Br=void 0,_e={}}function uR(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components â"}catch{return}}function lR(e,t,n,r,s,o){if(uR(t)||["mark","measure"].includes(t.entryType)&&We(t.name,o))return;const i=nr(!1),a=X(i?i.requestStart:0),c=s+Math.max(n,a),u=s+n,f=u+r,l={[re]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),fR(l,t),c<=f&&ct(e,c,f,{name:t.name,op:t.entryType,attributes:l})}function fR(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&Ct(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(Ct(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function dR(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{pr(e,t,r,n)}),pr(e,t,"secureConnection",n,"TLS/SSL"),pr(e,t,"fetch",n,"cache"),pr(e,t,"domainLookup",n,"DNS"),hR(e,t,n)}function pr(e,t,n,r,s=n){const o=pR(n),i=t[o],a=t[`${n}Start`];!a||!i||ct(e,r+X(a),r+X(i),{op:`browser.${s}`,name:t.name,attributes:{[re]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function pR(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}
29function hR(e,t,n){const r=n+X(t.requestStart),s=n+X(t.responseEnd),o=n+X(t.responseStart);t.responseEnd&&(ct(e,r,s,{op:"browser.request",name:t.name,attributes:{[re]:"auto.ui.browser.metrics"}}),ct(e,o,s,{op:"browser.response",name:t.name,attributes:{[re]:"auto.ui.browser.metrics"}}))}function mR(e,t,n,r,s,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(i?.includes(a))return;const c={[re]:"auto.resource.browser.metrics"},u=wt(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(C.location.origin),c[hn]=n,yR(t,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"]]);const f={...c,...Df(t)},l=o+r,d=l+s;ct(e,l,d,{name:n.replace(C.location.origin,""),op:a,attributes:f})}function gR(e,t){const n=C.navigator;if(!n)return;const 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),Ds(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):q(e).op==="pageload"&&Wl("connection.rtt",r.rtt,"millisecond"))),Ds(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),Ds(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function _R(e,t){ge&&t.recordLcpOnPageloadSpan&&(ge.element&&e.setAttribute("lcp.element",le(ge.element)),ge.id&&e.setAttribute("lcp.id",ge.id),ge.url&&e.setAttribute("lcp.url",ge.url.trim().slice(0,200)),ge.loadTime!=null&&e.setAttribute("lcp.loadTime",ge.loadTime),ge.renderTime!=null&&e.setAttribute("lcp.renderTime",ge.renderTime),e.setAttribute("lcp.size",ge.size)),Br?.sources&&t.recordClsOnPageloadSpan&&Br.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,le(n.node)))}function yR(e,t,n){n.forEach(([r,s])=>{const o=e[r];o!=null&&(typeof o=="number"&&o<Zw||typeof o=="string")&&(t[s]=o)})}function bR(e){const t=nr(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const Us=[],On=new Map,jt=new Map,Uf=60;function SR(){if(_n()&&fe()){const t=ER();return()=>{t()}}return()=>{}}const Hn={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ER(){return Nf(TR)}const TR=({metric:e})=>{if(e.value==null)return;const t=X(e.value);if(t>Uf)return;const n=e.entries.find(m=>m.duration===e.value&&Hn[m.name]);if(!n)return;const{interactionId:r}=n,s=Hn[n.name],o=X(fe()+n.startTime),i=we(),a=i?pe(i):void 0,c=r!=null?On.get(r):void 0,u=c?.span||a,f=u?q(u).description:z().getScopeData().transactionName,l=c?.elementName||le(n.target),d={[re]:"auto.http.browser.inp",[ve]:`ui.interaction.${s}`,[pt]:n.duration},h=ci({name:l,transaction:f,attributes:d,startTime:o});h&&(h.addEvent("inp",{[Zn]:"millisecond",[Qn]:e.value}),h.end(o+t))};function vR(e){return e!=null?On.get(e):void 0}function wR(){const e=Object.keys(Hn);rs()&&e.forEach(s=>{C.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const o=s.target;if(!o)return;const i=le(o),a=Math.round(s.timeStamp);if(jt.set(a,i),jt.size>50){const c=jt.keys().next().value;c!==void 0&&jt.delete(c)}}function n(s){const o=Math.round(s.startTime);let i=jt.get(o);if(!i)for(let a=-5;a<=5;a++){const c=jt.get(o+a);if(c){i=c;break}}return i||"<unknown>"}const r=({entries:s})=>{const o=we(),i=o&&pe(o);
29s.forEach(a=>{if(!Hw(a))return;const c=a.interactionId;if(c==null||On.has(c))return;const u=a.target?le(a.target):n(a);if(Us.length>10){const f=Us.shift();On.delete(f)}Us.push(c),On.set(c,{span:i,elementName:u})})};rn("event",r),rn("first-input",r)}function ui(e){const{name:t,op:n,origin:r,metricName:s,value:o,attributes:i,parentSpan:a,reportEvent:c,startTime:u,endTime:f}=e,l=z().getScopeData().transactionName,d={[re]:r,[ve]:n,[pt]:0,[`browser.web_vital.${s}.value`]:o,[Yl]:l,[Xl]:l,"user_agent.original":C.navigator?.userAgent,...i};a&&xl(a).attributes?.[ve]==="pageload"&&(d["sentry.pageload.span_id"]=a.spanContext().spanId),c&&(d[`browser.web_vital.${s}.report_event`]=c);const h=ht({name:t,attributes:d,startTime:u,parentSpan:a});h&&h.end(f??u)}function RR(e){let t=0,n;if(!as("largest-contentful-paint"))return;const r=ai(({metric:s})=>{const o=s.entries[s.entries.length-1];!o||!ir(s.value)||(t=s.value,n=o)},!0);cs(e,(s,o,i)=>{AR(t,n,i,s),r()})}function AR(e,t,n,r){if(!ir(e))return;et&&b.log(`Sending LCP span (${e})`);const s=fe()||0,o=X(s),i=X(s+(t?.startTime||0)),a=t?le(t.element):"Largest contentful paint",c={};t?.element&&(c["browser.web_vital.lcp.element"]=le(t.element)),t?.id&&(c["browser.web_vital.lcp.id"]=t.id),t?.url&&(c["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(c["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(c["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(c["browser.web_vital.lcp.size"]=t.size),ui({name:a,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:o,endTime:i})}function IR(e){let t=0,n;if(!as("layout-shift"))return;const r=ii(({metric:s})=>{const o=s.entries[s.entries.length-1];o&&(t=s.value,n=o)},!0);cs(e,(s,o,i)=>{OR(t,n,i,s),r()})}function OR(e,t,n,r){et&&b.log(`Sending CLS span (${e})`);const s=t?X((fe()||0)+t.startTime):se(),o=t?le(t.sources[0]?.node):"Layout shift",i={};t?.sources&&t.sources.forEach((a,c)=>{i[`browser.web_vital.cls.source.${c+1}`]=le(a.node)}),ui({name:o,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:i,parentSpan:n,reportEvent:r,startTime:s})}function PR(){if(!_n()||!fe())return;Nf(({metric:n})=>{if(n.value==null||X(n.value)>Uf)return;const s=n.entries.find(o=>o.duration===n.value&&Hn[o.name]);s&&CR(n.value,s)})}function CR(e,t){et&&b.log(`Sending INP span (${e})`);const n=X(fe()+t.startTime),r=X(e),s=Hn[t.name],o=vR(t.interactionId),i=we(),a=i?pe(i):void 0,c=o?.span||a,u=c?xl(c).name:z().getScopeData().transactionName,f=o?.elementName||le(t.target);ui({name:f,op:`ui.interaction.${s}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[pt]:t.duration,[Yl]:u,[Xl]:u},startTime:n,endTime:n+r,parentSpan:c})}const xR=1e3;let Tc,ho,mo;function LR(e){lt("dom",e),ft("dom",NR)}function NR(){if(!C.document)return;const e=Ie.bind(null,"dom"),t=vc(e,!0);C.document.addEventListener("click",t,!1),C.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=C[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(Ee(s,"addEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[i]=u[i]||{refCount:0};if(!f.handler){const l=vc(e);f.handler=l,o.call(this,i,l,c)}f.refCount++}catch{}return o.call(this,i,a,c)}}),Ee(s,"removeEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[i];f&&(f.refCount--,f.refCount<=0&&(o.call(this,i,f.handler,c),f.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,a,c)}}))})}function $R(e){if(e.type!==ho)return!1;try{if(!e.target||e.target._sentryId!==mo)return!1}catch{}return!0}function kR(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function vc(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=DR(n);if(kR(n.type,r))return;me(n,"_sentryCaptured",!0),r&&!r._sentryId&&me(r,"_sentryId",Oe());
vendor: 1,281 bytes, line 29
29const s=n.type==="keypress"?"input":n.type;$R(n)||(e({event:n,name:s,global:t}),ho=n.type,mo=r?r._sentryId:void 0),clearTimeout(Tc),Tc=C.setTimeout(()=>{mo=void 0,ho=void 0},xR)}}function DR(e){try{return e.target}catch{return null}}let hr;function li(e){const t="history";lt(t,e),ft(t,UR)}function UR(){if(C.addEventListener("popstate",()=>{const t=C.location.href,n=hr;if(hr=t,n===t)return;Ie("history",{from:n,to:t})}),!G0())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=hr,o=MR(String(r));if(hr=o,s===o)return t.apply(this,n);Ie("history",{from:s,to:o})}return t.apply(this,n)}}Ee(C.history,"pushState",e),Ee(C.history,"replaceState",e)}function MR(e){try{return new URL(e,C.location.origin).toString()}catch{return e}}const Ar={};function Mf(e){const t=Ar[e];if(t)return t;let n=C[e];if(co(n))return Ar[e]=n.bind(C);const r=C.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o?.[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){et&&b.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Ar[e]=n.bind(C))}function FR(e){Ar[e]=void 0}const qt="__sentry_xhr_v3__";function Ff(e){lt("xhr",e),ft("xhr",jR)}
29function jR(){if(!C.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=se()*1e3,i=qe(r[0])?r[0].toUpperCase():void 0,a=HR(r[1]);if(!i||!a)return t.apply(n,r);n[qt]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[qt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:se()*1e3,startTimestamp:o,xhr:n,virtualError:s};Ie("xhr",f),n.removeEventListener("readystatechange",c)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,l){return c(),u.apply(f,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,l){const[d,h]=l,m=f[qt];return m&&qe(d)&&qe(h)&&(m.request_headers[d.toLowerCase()]=h),u.apply(f,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[qt];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:se()*1e3,xhr:n};return Ie("xhr",o),t.apply(n,r)}})}function HR(e){if(qe(e))return e;try{return e.toString()}catch{}}function BR(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return et&&b.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 30`).reduce((n,r)=>{const[s,o]=r.split(": ");return o&&(n[s.toLowerCase()]=o),n},{}):{}}function qR(e){if(typeof Element>"u")return!1;try{return e instanceof Element}catch{return!1}}const WR=40;function zR(e,t=Mf("fetch")){let n=0,r=0;async function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw FR("fetch"),c}finally{n-=i,r--}}return qv(e,s,Zo(e.bufferSize||WR))}const be=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,GR=30,VR=50;function go(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?Pt:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const JR=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,KR=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,XR=/\((\S*)(?::(\d+))(?::(\d+))\)/,YR=/at (.+?) ?\(data:(.+?),/,ZR=e=>{const t=e.match(YR);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=JR.exec(e);if(n){const[,s,o,i]=n;return go(s,Pt,+o,+i)}const r=KR.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const a=XR.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,i]=jf(r[1]||Pt,r[2]);return go(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},QR=[GR,ZR],eA=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tA=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nA=e=>{const t=eA.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=tA.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||Pt;return[s,r]=jf(s,r),go(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},rA=[VR,nA],sA=[QR,rA],oA=sl(...sA),jf=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Pt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},mr=1024,iA="Breadcrumbs",aA=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:iA,setup(n){t.console&&I0(fA(n)),t.dom&&LR(lA(n,t.dom)),t.xhr&&Ff(dA(n)),t.fetch&&ei(pA(n)),t.history&&li(hA(n)),t.sentry&&n.on("beforeSendEvent",uA(n))}}}),cA=aA;function uA(e){return function(n){W()===e&&Lt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:yt(n)},{event:n})}}function lA(e,t){return function(r){if(W()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>mr&&(be&&b.warn(`\`dom.maxStringLength\` cannot exceed ${mr}, but a value of ${a} was configured. Sentry will use ${mr} instead.`),a=mr),typeof i=="string"&&(i=[i]);try{const u=r.event,f=mA(u)?u.target:u;
30s=le(f,{keyAttrs:i,maxStringLength:a}),o=Tf(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),Lt(c,{event:r.event,name:r.name,global:r.global})}}function fA(e){return function(n){if(W()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:P0(n.level),message:Aa(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Aa(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Lt(r,{input:n.args,level:n.level})}}function dA(e){return function(n){if(W()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[qt];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,f={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},d={category:"xhr",data:f,type:"http",level:bf(c)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),Lt(d,l)}}function pA(e){return function(n){if(W()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",i,o),Lt(i,o)}else{const o=n.response,i={...n.fetchData,status_code:o?.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:bf(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Lt(c,a)}}}function hA(e){return function(n){if(W()!==e)return;let r=n.from,s=n.to;const o=wt($.location.href);let i=r?wt(r):void 0;const a=wt(s);i?.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),Lt({category:"navigation",data:{from:r,to:s}})}}function mA(e){return!!e&&!!e.target}const gA="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(","),_A="BrowserApiErrors",yA=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:_A,setupOnce(){t.setTimeout&&Ee($,"setTimeout",wc),t.setInterval&&Ee($,"setInterval",wc),t.requestAnimationFrame&&Ee($,"requestAnimationFrame",SA),t.XMLHttpRequest&&"XMLHttpRequest"in $&&Ee(XMLHttpRequest.prototype,"send",EA);const n=t.eventTarget;n&&(Array.isArray(n)?n:gA).forEach(s=>TA(s,t))}}}),bA=yA;function wc(e){return function(...t){const n=t[0];return t[0]=nn(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Ve(e)}`}}),e.apply(this,t)}}function SA(e){return function(t){return e.apply(this,[nn(t,{mechanism:{data:{handler:Ve(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function EA(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Ee(n,s,function(o){const i={mechanism:{data:{handler:Ve(o)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=Bo(o);return a&&(i.mechanism.data.handler=Ve(a)),nn(o,i)})}),e.apply(this,t)}}function TA(e,t){const r=$[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Ee(r,"addEventListener",function(s){return function(o,i,a){try{vA(i)&&(i.handleEvent=nn(i.handleEvent,{mechanism:{data:{handler:Ve(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&wA(this,o,i),s.apply(this,[o,nn(i,{mechanism:{data:{handler:Ve(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),Ee(r,"removeEventListener",function(s){return function(o,i,a){try{if(Object.prototype.hasOwnProperty.call(i,"__sentry_wrapped__")){const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}}catch{}return s.call(this,o,i,a)}}))}function vA(e){return typeof e.handleEvent=="function"}function wA(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const RA=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof $.document>"u"){be&&b.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}ec({ignoreDuration:!0});let n=!1;oi(()=>{n||(Cs(),n=!0)});const r=xe();let s=r.getUser();r.addScopeListener(o=>{const i=o.getUser();(s?.id!==i?.id||s?.ip_address!==i?.ip_address)&&(s=i,n&&Cs())}),t==="route"&&li(({from:o,to:i})=>{o!==i&&(ec({ignoreDuration:!0}),Cs(),n=!0)})}}},AA="CultureContext",IA=(()=>({name:AA,preprocessEvent(e){const t=Rc();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=Rc();t&&Zl(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})),OA=IA;function Rc(){try{const e=$.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const PA="GlobalHandlers",CA=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:PA,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(LA(n),Ac("onerror")),t.onunhandledrejection&&(NA(n),Ac("onunhandledrejection"))}}}),xA=CA;function LA(e){ol(t=>{const{stackParser:n,attachStacktrace:r}=Hf();if(W()!==e||vf())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=DA(ni(n,c||s,void 0,r,!1),o,i,a);u.level="error",ef(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function NA(e){il(t=>{const{stackParser:n,attachStacktrace:r}=Hf();if(W()!==e||vf())return;const s=$A(t),o=Ct(s)?kA(s):ni(n,s,void 0,r,!0);o.level="error",ef(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function $A(e){if(Ct(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 kA(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function DA(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];
30return c.length===0&&c.push({colno:r,lineno:n,filename:UA(t)??tn(),function:Pt,in_app:!0}),e}function Ac(e){be&&b.log(`Global Handler attached: ${e}`)}function Hf(){return W()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function UA(e){if(!(!qe(e)||e.length===0))return e.startsWith("data:")?`<${Le(e,!1)}>`:e}const MA=()=>({name:"HttpContext",preprocessEvent(e){if(!$.navigator&&!$.location&&!$.document)return;const t=Fr(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){const t=e.attributes?.[ve];if(!$.navigator&&!$.location&&!$.document)return;const n=Fr();Zl(e,{[hn]:t!=="http.client"?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}),FA="cause",jA=5,HA="LinkedErrors",BA=((e={})=>{const t=e.limit||jA,n=e.key||FA;return{name:HA,preprocessEvent(r,s,o){const i=o.getOptions();R0(ti,i.stackParser,n,t,r,s)}}}),qA=BA,WA="SpotlightBrowser",zA=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],GA=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:WA,setup:()=>{be&&b.log("Using Sidecar URL",t)},beforeSetup(n){const r=n.getOptions();r.ignoreSpans=[...r.ignoreSpans||[],...zA]},afterAllSetup:n=>{VA(n,t)}}});function VA(e,t){const n=Mf("fetch");let r=0;e.on("beforeEnvelope",s=>{if(r>3){b.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Hl(s),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,b.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const JA=GA,KA=/^HTML(\w*)Element$/;function XA(e){if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(qR(e)){const t=YA(e);if(KA.test(t))return`[HTMLElement: ${le(e)}]`}}function YA(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function ZA(){return QA()?(be&&kt(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function QA(){if(typeof $.window>"u")return!1;const e=$;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=tn();return!($===$.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function eI(e){return[_0(),p0(),M0(),bA(),cA(),xA(),qA(),L0(),MA(),OA(),RA()]}function hO(e={}){const t=!e.skipBrowserExtensionCheck&&ZA();let n=e.defaultIntegrations==null?eI():e.defaultIntegrations;if(e.spotlight){n||(n=[]);const s=typeof e.spotlight=="string"?{sidecarUrl:e.spotlight}:void 0;n.push(JA(s))}const r={...e,enabled:t?!1:e.enabled,stackParser:iE(e.stackParser||oA),integrations:Tv({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||zR};return _E(XA),n0(dw,r)}function tI(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Bf(e){try{return new URL(e,$.location.origin).href}catch{return}}function nI(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function qf(e){try{return new Headers(e)}catch{return}}const Wf={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function rI(e,t){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:s,enableHTTPTimings:o,tracePropagationTargets:i,onRequestSpanStart:a,onRequestSpanEnd:c}
30={...Wf,...t},u=typeof s=="function"?s:h=>!0,f=h=>oI(h,i),l={},d=e.getOptions().propagateTraceparent;n&&ei(h=>{const m=F0(h,u,f,l,{propagateTraceparent:d,onRequestSpanEnd:c});if(m){const y=Bf(h.fetchData.url),_=y?wt(y).host:void 0,g=y?Le(y):void 0;m.setAttributes({[Kl]:g,[hn]:g,"server.address":_}),o&&Ic(m,e),a?.(m,{headers:h.headers})}}),r&&Ff(h=>{const m=iI(h,u,f,l,d,c);m&&(o&&Ic(m,e),a?.(m,{headers:qf(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}const sI=300;function Ic(e,t){const{url:n}=q(e).data;if(!n||typeof n!="string")return;let r=()=>{setTimeout(s)};if(Me(t)){const o=e.end.bind(e);e.end=i=>{const a=i??se();let c=!1;const u=()=>{c||(c=!0,setTimeout(s),o(a),clearTimeout(f))};r=u;const f=setTimeout(u,sI)}}const s=rn("resource",({entries:o})=>{o.forEach(i=>{nI(i)&&i.name.endsWith(n)&&(e.setAttributes(Df(i)),r())})})}function oI(e,t){const n=tn();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const o=r.origin===s;return t?We(r.toString(),t)||o&&We(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?We(e,t):r}}function iI(e,t,n,r,s,o){const i=e.xhr,a=i?.[qt];if(!i||i.__sentry_own_request__||!a)return;const{url:c,method:u}=a,f=Te()&&t(c);if(e.endTimestamp){const A=i.__sentry_xhr_span_id__;if(!A)return;const L=r[A];L&&(f&&a.status_code!==void 0&&(Sl(L,a.status_code),L.end(),o?.(L,{headers:qf(BR(i)),error:e.error})),delete r[A]);return}const l=Bf(c),d=wt(l||c),h=l?Le(l):void 0,m=Le(o0(c)),y=W(),_=!!we(),g=_||!!y&&Me(y),S=f&&g?ht({name:`${u} ${m}`,attributes:{url:Le(c),type:"xhr","http.method":u,"http.url":h,[hn]:h,"server.address":d?.host,[re]:"auto.http.browser",[ve]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new xt,w=Gl(S)&&_?void 0:S;return f&&!g&&y?.recordDroppedEvent("no_parent_span","span"),i.__sentry_xhr_span_id__=S.spanContext().spanId,r[i.__sentry_xhr_span_id__]=S,n(c)&&aI(i,Te()&&g?w:void 0,s),y&&y.emit("beforeOutgoingRequestSpan",S,e),S}
30function aI(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:o}=mf({span:t,propagateTraceparent:n});r&&cI(e,r,s,o)}function cI(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(!(s?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const o=s?.baggage;(!o||!tI(o))&&e.setRequestHeader("baggage",n)}}catch{}}const Oc=new WeakMap,Pc=new WeakMap,uI=9e4,lI=["text/event-stream","application/x-ndjson","application/stream+json"],fI=()=>({name:"FetchStreamPerformance",setup(){K0(e=>{if(e.response){const t=Oc.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);const n=Pc.get(e.response);n&&clearTimeout(n)}}}),ei(e=>{if(e.endTimestamp&&e.response){const t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!lI.some(c=>t.startsWith(c)))return;const n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",s=Ur(n),o=n.startsWith("data:")?Le(n):s?hf(s):n,i=ht({name:`${r} ${o}`,startTime:e.endTimestamp,attributes:{url:Le(n),"http.method":r,type:"fetch",[ve]:"http.client.stream",[re]:"auto.http.browser.stream"}});Oc.set(e.response,i);const a=setTimeout(()=>{i.isRecording()&&i.end()},uI);Pc.set(e.response,a)}})}}),zf="WebVitals",dI=(e={})=>{const t=new Set(e.ignore??[]);return{name:zf,setup(n){const r=Me(n),{enableStandaloneClsSpans:s,enableStandaloneLcpSpans:o}=e._experiments??{},i=r||t.has("cls")?void 0:s||!1,a=r||t.has("lcp")?void 0:o||!1,c=Qw({recordClsStandaloneSpans:i,recordLcpStandaloneSpans:a,client:n}),u=new WeakSet;n.on("afterStartPageLoadSpan",f=>{u.add(f)}),n.on("spanEnd",f=>{u.delete(f)&&(c(),cR(f,{recordClsOnPageloadSpan:i===!1,recordLcpOnPageloadSpan:a===!1,spanStreamingEnabled:r}))}),r?(t.has("lcp")||RR(n),t.has("cls")||IR(n),t.has("inp")||PR()):t.has("inp")||SR()},afterAllSetup(){t.has("inp")||wR()}}};function pI(){$.document?$.document.addEventListener("visibilitychange",()=>{const e=we();if(!e)return;const t=pe(e);if($.document.hidden&&t){const n="cancelled",{op:r,status:s}=q(t);be&&b.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:ie,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):be&&b.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const hI=3600,Gf="sentry_previous_trace",mI="sentry.previous_trace";function gI(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?bI():void 0;e.on("spanStart",i=>{if(pe(i)!==i)return;const a=z().getPropagationContext();s=_I(s,i,a),r&&yI(s)});let o=!0;n&&e.on("beforeSampling",i=>{if(!s)return;const a=z(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(_o(s.spanContext))},sampleRand:s.sampleRand}),i.parentSampled=_o(s.spanContext),i.parentSampleRate=s.sampleRate,i.spanAttributes={...i.spanAttributes,[yl]:s.sampleRate}})}function _I(e,t,n){const r=q(t);function s(){try{const a=Number(r.data?.[Wo]??n.dsc?.sample_rate);return Number.isNaN(a)?0:a}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return o;const i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=hI&&(be&&b.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[zE]:"previous_trace"}}),t.setAttribute(mI,`${i.traceId}-${i.spanId}-${_o(i)?1:0}`)),o)}function yI(e){try{$.sessionStorage.setItem(Gf,JSON.stringify(e))}catch(t){be&&b.warn("Could not store previous trace in sessionStorage",t)}}function bI(){try{const e=$.sessionStorage?.getItem(Gf);return JSON.parse(e)}catch{return}}function _o(e){return e.traceFlags===1}const SI="BrowserTracing",EI=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function TI(){const e=$.navigator;return e?.userAgent?EI.test(e.userAgent):!1}const vI={...Tr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
30dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Wf},mO=((e={})=>{"enableElementTiming"in e&&kt(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=$.document,{enableInp:r,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:i,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:c},beforeStartSpan:u,idleTimeout:f,finalTimeout:l,childSpanTimeout:d,markBackgroundSpan:h,traceFetch:m,traceXHR:y,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:g,enableHTTPTimings:S,ignoreResourceSpans:w,ignorePerformanceApiSpans:A,instrumentPageLoad:L,instrumentNavigation:I,detectRedirects:T,linkPreviousTrace:v,consistentTraceSampling:F,enableReportPageLoaded:M,onRequestSpanStart:H,onRequestSpanEnd:G}={...vI,...e},V=TI();let U,Q;function ae(k,ee,j=!0,P){const O=ee.op==="pageload",B=ee.name,J=u?u(ee):ee,Z=Ur(P||tn()),oe={...Z?.pathname&&{[rv]:Z.pathname},...Z&&!Qo(Z)&&{[hn]:Z.href},...J.attributes};if(B!==J.name&&(oe[ke]="custom"),J.attributes=oe,!j){const $e=Dt();ht({...J,startTime:$e}).end($e);return}t.name=J.name,t.source=oe[ke];const N=Vl(J,{idleTimeout:f,finalTimeout:l,childSpanTimeout:d,disableAutoFinish:O,beforeSpanEnd:$e=>{aR($e,{ignoreResourceSpans:w,ignorePerformanceApiSpans:A,spanStreamingEnabled:Me(k)}),Lc(k,void 0);const yn=z(),us=yn.getPropagationContext();yn.setPropagationContext({...us,traceId:N.spanContext().traceId,sampled:Qe(N),dsc:pn($e)}),O&&(Q=void 0)},trimIdleSpanEndTimestamp:!M});O&&M&&(Q=N),Lc(k,N);function te(){n&&["interactive","complete"].includes(n.readyState)&&(k.emit("idleSpanEnableAutoFinish",N),n.removeEventListener("readystatechange",te))}O&&!M&&n&&(n.addEventListener("readystatechange",te),te())}return{name:SI,setup(k){if(V){be&&b.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(bT(),o&&D.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?tR():s&&eR(),i&&nR(),T&&n){const j=()=>{U=se()};addEventListener("click",j,{capture:!0}),addEventListener("keydown",j,{capture:!0,passive:!0})}function ee(){const j=Bn(k);j&&!q(j).timestamp&&(be&&b.log(`[Tracing] Finishing current active span with op: ${q(j).op}`),j.setAttribute(Dn,"cancelled"),j.end())}k.on("startNavigationSpan",(j,P)=>{if(W()!==k)return;if(P?.isRedirect){be&&b.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),ae(k,{op:"navigation.redirect",...j},!1,P.url);return}U=void 0,ee(),xe().setPropagationContext({traceId:Ke(),sampleRand:Math.random(),propagationSpanId:Te()?void 0:ze()});const O=z();O.setPropagationContext({traceId:Ke(),sampleRand:Math.random(),propagationSpanId:Te()?void 0:ze()}),O.setSDKProcessingMetadata({normalizedRequest:void 0}),ae(k,{op:"navigation",...j,parentSpan:null,forceTransaction:!0},!0,P?.url)}),k.on("startPageLoadSpan",(j,P={})=>{if(W()!==k)return;ee();const O=P.sentryTrace||Cc("sentry-trace")||xc("sentry-trace"),B=P.baggage||Cc("baggage")||xc("baggage"),J=fT(O,B),Z=z();Z.setPropagationContext(J),Te()||(Z.getPropagationContext().propagationSpanId=ze()),Z.setSDKProcessingMetadata({normalizedRequest:Fr()}),ae(k,{op:"pageload",...j})}),k.on("endPageloadSpan",()=>{M&&Q&&(Q.setAttribute(Dn,"reportPageLoaded"),Q.end())})},afterAllSetup(k){if(V)return;k.addIntegration&&!k.getIntegrationByName?.(zf)&&k.addIntegration(dI({ignore:r?[]:["inp"],_experiments:{enableStandaloneClsSpans:a,enableStandaloneLcpSpans:c}}));let ee=tn();if(v!=="off"&&gI(k,{linkPreviousTrace:v,consistentTraceSampling:F}),$.location){if(L){const j=fe();wI(k,{name:$.location.pathname,startTime:j?j/1e3:void 0,attributes:{[ke]:"url",[re]:"auto.pageload.browser"}})}I&&li(({to:j,from:P})=>{if(P===void 0&&ee?.indexOf(j)!==-1){ee=void 0;return}ee=void 0;const O=Ur(j),B=Bn(k),J=B&&T&&II(B,U);RI(k,{name:O?.pathname||$.location.pathname,attributes:{[ke]:"url",[re]:"auto.navigation.browser"}},{url:j,isRedirect:J})})}h&&pI(),i&&AI(k,f,l,d,t),rI(k,{traceFetch:m,traceXHR:y,tracePropagationTargets:k.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:g,enableHTTPTimings:S,onRequestSpanStart:H,onRequestSpanEnd:G}),_&&k.addIntegration(fI())}}});function wI(e,t,n){e.emit("startPageLoadSpan",t,n),z().setTransactionName(t.name);const r=Bn(e);return r&&e.emit("afterStartPageLoadSpan",r),r}
30function RI(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s,url:r}),e.emit("startNavigationSpan",t,{isRedirect:s,url:r});const o=z();return o.setTransactionName(t.name),r&&!s&&o.setSDKProcessingMetadata({normalizedRequest:{...Fr(),url:r}}),Bn(e)}function Cc(e){return $.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function xc(e){return $.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function AI(e,t,n,r,s){const o=$.document;let i;const a=()=>{const c="ui.action.click",u=Bn(e);if(u){const f=q(u).op;if(["navigation","pageload"].includes(f)){be&&b.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(Dn,"interactionInterrupted"),i.end(),i=void 0),!s.name){be&&b.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=Vl({name:s.name,op:c,attributes:{[ke]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const Vf="_sentry_idleSpan";function Bn(e){return e[Vf]}function Lc(e,t){me(e,Vf,t)}const Nc=1.5;function II(e,t){const n=q(e),r=Dt(),s=n.start_timestamp;return!(r-s>Nc||t&&r-t<=Nc)}const qn=Kf("auth",{state:()=>({accessExpires:null,accessToken:null,activeAccessGrants:[],authenticated:!1,authenticatedAt:0,authenticating:!1,centrifugoToken:null,credentialsSet:!1,email:null,fetchingModules:!1,grantees:[],grantors:[],idToken:null,inactiveAt:0,intendedRoute:"",authLoading:!1,locked:!1,lockedRoute:"",loginAttempts:0,loginErrorMessage:"",loginFailed:!1,matrixToken:null,other_members:[],passwordResetError:"",passwordResetMessage:"",pendingAccessRequests:{},refreshExpires:null,refreshToken:null,reported:!1,store_key:"auth",talonToken:null,token:"",tokenExpires:null,uuid:null}),actions:{requestRefresh(){const e={refresh_token:this.refreshToken,grant_type:"refresh_token",client_id:"apiv2login"};return this.$http.post("/auth/refresh",e,{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(t=>{new He("http",{name:"auth.refresh",data:t}),new He("function",{name:"auth.token",data:{status:"refreshed"}});const n=t.data;this.accessToken=n.access_token,this.refreshToken=n.refresh_token;const r=xy(n.access_token);return this.tokenExpires=r.exp,!0}).catch(t=>((t.response?.status===400||t.response?.status===401)&&(this.authenticated=!1,this.$router.push({name:"welcome"})),new He("http-error",{name:"auth.refresh",data:t}),!1))},hasTokens(){return!!this.accessToken&&!!this.refreshToken&&(!!this.matrixToken||!!this.talonToken||!!this.centrifugoToken)},tearDownSilent(){window.syncHandler?.destroy(),ZS(),this.loginAttempts=0,this.authenticated=!1,this.accessToken=null,this.accessExpires=null,this.idToken=null,this.refreshToken=null,hv({id:null}),localStorage.clear(),sessionStorage.clear()},tearDown(e){this.tearDownSilent(),this.$router.replace({name:"welcome",params:e})},async logout(e=null){const t={_id:Iu(),user_uuid:this.uuid,eventType:"function",eventTime:new Date().toISOString(),event:{function:"logout",note:"User logged out"}};this.$http.post("/events",t),await this.$http.post("/auth/logout",{id_token:this.idToken}).catch(n=>{new He("function",{name:"auth.logout_fail",data:n})}),this.tearDown(e)},sendResetPasswordEmail(e){const t=encodeURIComponent(e);new He("function",{name:"auth.password_reset",data:{status:"requested",parameters:{sendEmail:t}}}),this.$http.post(`/auth/request-password-reset?email=${t}`)},async resetPassword(e){return this.$http.post("/auth/reset-password",e)},updatePassword(e){return this.$http.post("/auth/update-password",e).then(()=>!0).catch(t=>(new He("error",{name:"auth.updatePassword",data:t}),console.error(t),!1))},async fetchAccessGrants(){await this.$http.get("/me/access-grants").then(({data:e})=>{this.grantees=e.grantees?e.grantees:[],this.grantors=e.grantors?e.grantors:[]}).catch(e=>(new He("error",{name:"auth.fetchAccessGrants",data:e}),console.error(e),null))},async fetchPendingAccessRequests(){let e=await this.$http.get("/me/access-grants/pending").then(({data:t})=>t).catch(t=>(new He("error",{name:"auth.fetchPendingAccessRequests",data:t}),console.error(t),null));e||(e={granteeRequests:[],grantorRequests:[]}),this.pendingAccessRequests=e},async sendInvitation(e,t){this.authLoading=!0,await this.$http.post(`/me/access-grants/invite/${e}
30`,{grantEndDate:t}).catch(async n=>{new He("error",{name:"auth.sendInvitation",data:n}),console.error(n),await this.fetchPendingAccessRequests()}),await this.fetchPendingAccessRequests(),this.authLoading=!1},async cancelInvitation(e){this.authLoading=!0,await this.$http.post(`/me/access-grants/invite/${e}/cancel`),await this.fetchPendingAccessRequests(),this.authLoading=!1},async acceptInvitation(e){this.authLoading=!0,await this.$http.post(`/me/access-grants/invite/${e}/accept`),await this.fetchPendingAccessRequests(),this.authLoading=!1},async rejectInvitation(e){this.authLoading=!0,await this.$http.post(`/me/access-grants/invite/${e}/reject`),await this.fetchPendingAccessRequests(),this.authLoading=!1},async relinquishAccess(e){this.authLoading=!0,await this.$http.post(`/me/access-grants/relinquish/${e}`),this.grantors=this.grantors.filter(t=>t.uuid!==e),await this.fetchPendingAccessRequests(),this.authLoading=!1},async requestAccess(e){return this.$http.post(`/me/access-grants/request/${e}`).then(()=>{this.fetchPendingAccessRequests()})},async approveRequest(e,t){this.authLoading=!0,await this.$http.post(`/me/access-grants/request/${e}/approve`,{grantEndDate:t}),await this.fetchPendingAccessRequests(),this.authLoading=!1},async rejectRequest(e){this.authLoading=!0,await this.$http.post(`/me/access-grants/request/${e}/reject`),await this.fetchPendingAccessRequests(),this.authLoading=!1},async revokeAccess(e){this.authLoading=!0,await this.$http.post(`/me/access-grants/revoke/${e}`),this.grantees=this.grantees.filter(t=>t.uuid!==e),this.authLoading=!1,await this.fetchPendingAccessRequests()},async cancelRequest(e){this.authLoading=!0,await this.$http.post(`/me/access-grants/request/${e}/cancel`),await this.fetchPendingAccessRequests(),this.authLoading=!1},removeCredentials(){Oy.deleteCredentials({server:"herculeshealth.app"})}},getters:{inboundRequests(e){const t=localStorage.getItem("member_uuid");let n={};return Fs(e,"pendingAccessRequests.incoming",[]).map(r=>(r.grantor_uuid===t?n=e.other_members.find(s=>s.uuid===r.grantee_uuid):n=e.other_members.find(s=>s.uuid===r.grantor_uuid),{...r,member:n}))},outboundRequests(e){const t=localStorage.getItem("member_uuid");let n={};return Fs(e,"pendingAccessRequests.outgoing",[]).map(r=>(r.grantor_uuid===t?n=e.other_members.find(s=>s.uuid===r.grantee_uuid):n=e.other_members.find(s=>s.uuid===r.grantor_uuid),{...r,member:n}))}}}),gO=Object.freeze(Object.defineProperty({__proto__:null,useAuthStore:qn},Symbol.toStringTag,{value:"Module"}));export{jI as A,WI as B,Pn as C,kI as D,He as E,fs as F,gO as G,Oy as N,Uc as W,Zf as _,HI as a,ne as b,DI as c,GI as d,LI as e,hO as f,Fs as g,XS as h,UI as i,xy as j,mO as k,hv as l,at as m,id as n,MI as o,NI as p,BI as q,Dc as r,FI as s,qI as t,qn as u,Iu as v,YS as w,ZS as x,$I as y,zI as z};
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.