const xl=["activate","mount"];const kl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,wh=/(?:^|[-_])(\w)/g,xh=e=>e.replace(wh,t=>t.toUpperCase()).replace(/[-_]/g,""),kh="",Qo="",Ch=(e,t)=>e.repeat(t),Ki=(e,t)=>{if(!e)return Qo;if(e.$root===e)return kh;if(!e.$options)return Qo;const n=e.$options;let r=n.name||n._componentTag||n.__name;const i=n.__file;if(!r&&i){const s=i.match(/([^/\\]+)\.vue$/);s&&(r=s[1])}return(r?`<${xh(r)}>`:Qo)+(i&&t!==!1?` at ${i}`:"")},Oh=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return` found in ${t.map((r,i)=>`${(i===0?"---> ":Ch(" ",5+i*2))+(Array.isArray(r)?`${Ki(r[0])}... (${r[1]} recursive calls)`:Ki(r))}`).join(` `)}`}return` (found in ${Ki(e)})`},N=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,nt=globalThis,So="11.17.0";function mr(){return Pi(nt),nt}function Pi(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"11.17.0",t[So]=t["11.17.0"]||{}}function Fo(e,t,n=nt){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[So]=r["11.17.0"]||{};return i[e]||(i[e]=t())}const Cl=["debug","info","warn","error","log","assert","trace"],Rh="Sentry Logger ",bo={};function En(e){if(!("console"in nt))return e();const t=nt.console,n={},r=Object.keys(bo);r.forEach(i=>{const s=bo[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Ih(){Pc().enabled=!0}function Ph(){Pc().enabled=!1}function Ol(){return Pc().enabled}function Ah(...e){Ic("log",...e)}function Dh(...e){Ic("warn",...e)}function Mh(...e){Ic("error",...e)}function Ic(e,...t){N&&Ol()&&En(()=>{nt.console[e](`${Rh}[${e}]:`,...t)})}function Pc(){return N?Fo("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const M={enable:Ih,disable:Ph,isEnabled:Ol,log:Ah,warn:Dh,error:Mh},Rl=50,gi="?",Cu=/\(error: (.*)\)/,Ou=/captureMessage|captureException/;function Il(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],o=n.split(` `);for(let a=r;a1024&&(c=c.slice(0,1024));const u=Cu.test(c)?c.replace(Cu,"$1"):c;if(!u.includes("Error: ")){for(const f of t){const l=f(u);if(l){s.push(l);break}}if(s.length>=Rl+i)break}}return Lh(s.slice(i))}}function Nh(e){return Array.isArray(e)?Il(...e):e}function Lh(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(zs(t).function||"")&&t.pop(),t.reverse(),Ou.test(zs(t).function||"")&&(t.pop(),Ou.test(zs(t).function||"")&&t.pop()),t.slice(0,Rl).map(n=>({...n,filename:n.filename||zs(t).filename,function:n.function||"?"}))}function zs(e){return e[e.length-1]||{}}const Zo="";function lr(e){try{return!e||typeof e!="function"?Zo:e.name||Zo}catch{return Zo}}function Ru(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 zi={},Iu={};function qr(e,t){return zi[e]=zi[e]||[],zi[e].push(t),()=>{const n=zi[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function Gr(e,t){if(!Iu[e]){Iu[e]=!0;try{t()}catch(n){N&&M.error(`Error while instrumenting ${e}`,n)}}}function bn(e,t){const n=e&&zi[e];if(n)for(const r of n)try{r(t)}catch(i){N&&M.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${lr(r)} Error:`,i)}}let ta=null;function $h(e){const t="error";qr(t,e),Gr(t,Fh)}function Fh(){ta=nt.onerror,nt.onerror=function(e,t,n,r,i){return bn("error",{column:r,error:i,line:n,msg:e,url:t}),ta?ta.apply(this,arguments):!1},nt.onerror.__SENTRY_INSTRUMENTED__=!0}let ea=null;function Bh(e){const t="unhandledrejection";qr(t,e),Gr(t,zh)}function zh(){ea=nt.onunhandledrejection,nt.onunhandledrejection=function(e){return bn("unhandledrejection",e),ea?ea.apply(this,arguments):!0},nt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Pl=Object.prototype.toString;function Dn(e){switch(Pl.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Dc(e,Error)}}function Ai(e,t){return Pl.call(e)===`[object ${t}]`}function Al(e){return Ai(e,"ErrorEvent")}function Pu(e){return Ai(e,"DOMError")}function Uh(e){return Ai(e,"DOMException")}function Yn(e){return Ai(e,"String")}function Ac(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Xr(e){return e===null||Ac(e)||typeof e!="object"&&typeof e!="function"}function xs(e){return Ai(e,"Object")}function Bo(e){return typeof e=="object"&&e!==null}function zo(e){return typeof Event<"u"&&Dc(e,Event)}function Hh(e){return Ai(e,"RegExp")}function ks(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function Dc(e,t){try{return e instanceof t}catch{return!1}}function Dl(e){return typeof Request<"u"&&Dc(e,Request)}function Ze(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&Ml(i,r);try{e[t]=i}catch{N&&M.log(`Failed to replace method "${String(t)}" in object`,e)}}function ze(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{N&&M.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function Ml(e,t){try{e.prototype=t.prototype=t.prototype||{},ze(e,"__sentry_original__",t)}catch{}}function Mc(e){return e.__sentry_original__}function Nl(e){if(Dn(e))return{message:e.message,name:e.name,stack:e.stack,...Au(e)};if(zo(e)){const{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...Au(e)}}return e}function Au(e){return Bo(e)?Object.fromEntries(Object.entries(e)):{}}function Wh(e){const t=Object.keys(Nl(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Zr;function mi(e){if(Zr!==void 0)return Zr?Zr(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=nt;return t in n&&typeof n[t]=="function"?(Zr=n[t],Zr(e)):(Zr=null,e())}function Nc(){return mi(()=>Math.random())}function yr(){return mi(()=>Date.now())}const Yh=Symbol.for("sentry.skipNormalization"),Vh=Symbol.for("sentry.overrideNormalizationDepth");function jh(e){return!!e[Yh]}function qh(e){const t=e[Vh];return typeof t=="number"?t:void 0}let Ra;function Ll(e){Ra=e}function Bn(e,t=100,n=1/0){try{return Ia("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${$l(r)})`}}}function $l(e){try{return String(e)}catch{return"unknown error"}}function Fl(e,t=3,n=102400){const r=Bn(e,t);return Kh(r)>n?Fl(e,t-1,n):r}function Ia(e,t,n=1/0,r=1/0,i=Jh()){const[s,o]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=Lc(e,t);if(!a.startsWith("[object "))return a;if(jh(t))return t;const c=qh(t),u=c!==void 0?c:n;if(u===0)return a.replace("object ","");if(s(t))return"[Circular ~]";const f=t;if(f&&typeof f.toJSON=="function")try{return Ia("",f.toJSON(),u-1,r,i)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const p=Nl(t);for(const _ in p){if(!Object.prototype.hasOwnProperty.call(p,_))continue;if(d>=r){l[_]="[MaxProperties ~]";break}const h=p[_];l[_]=Ia(_,h,u-1,r,i),d++}return o(t),l}function Lc(e,t){try{if(Ra){const n=Ra(t);if(n)return n}return typeof global<"u"&&t===global?"[Global]":typeof t=="number"&&!Number.isFinite(t)?`[${t}]`:typeof t=="function"?`[Function: ${lr(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${Gh(t)}]`}catch(n){return`**non-serializable** (${$l(n)})`}}function Gh(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function Xh(e){return~-encodeURI(e).split(/%..|./).length}function Kh(e){return Xh(JSON.stringify(e))}function Jh(){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 Qh(e,t="[unserializable]"){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return typeof t=="function"?t(e):t}}function Pa(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Zh(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;re.randomUUID()).replace(/-/g,"")}catch{}return na||(na="10000000100040008000100000000000"),na.replace(/[018]/g,t=>(t^(e_()&15)>>t/4).toString(16))}function Bl(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function Rr(e){const{message:t,event_id:n}=e;if(t)return t;const r=Bl(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Aa(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function ui(e,t){const n=Bl(e);n&&zl(n,t)}function n_(e,t){var i;const n=(i=e.exception)==null?void 0:i.values,r=(n==null?void 0:n.find(s=>{var o;return((o=s.mechanism)==null?void 0:o.exception_id)===0}))??(n==null?void 0:n[0]);r&&zl(r,t)}function zl(e,t){const n={type:"generic",handled:!0},r=e.mechanism;e.mechanism={...n,...r,...t},t&&"data"in t&&(e.mechanism.data={...r==null?void 0:r.data,...t.data})}function Du(e){if(r_(e))return!0;try{ze(e,"__sentry_captured__",!0)}catch{}return!1}function r_(e){try{return e.__sentry_captured__}catch{}}const $c=1e3,i_=1e3,s_=100;function Os(){return yr()/$c}let Tr=[];function o_(){const{performance:e}=nt;if(!(e!=null&&e.now)||!e.timeOrigin)return e!=null&&e.now&&(Tr=[{from:0,origin:yr()-mi(()=>e.now())}]),Os;let t=e.timeOrigin;Tr=[{from:0,origin:t}];let n=!0,r=0;return()=>mi(()=>{const i=e.now(),s=Date.now();return Math.abs(t+i-s)>i_&&(t=s-i,n?Tr=[{from:0,origin:t}]:(Tr.push({from:r,origin:t}),Tr.length>s_&&Tr.splice(1,1))),n=!1,r=i,(t+i)/$c})}function Mu(){const{performance:e}=nt;return e!=null&&e.now?mi(()=>e.now()):void 0}let Nu,ra=!1;function a_(e,t=e){const n=c_(t);return n==null?void 0:(n+e)/$c}function pe(){return(Nu??(Nu=o_()))()}function c_(e=0){ra||(ra=!0,Promise.resolve().then(()=>{ra=!1}),pe());let t;for(const n of Tr){if(t&&n.from>e)break;t=n}return t==null?void 0:t.origin}function u_(e){const t=pe(),n={sid:dn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>l_(n)};return e&&yi(n,e),n}function yi(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||pe(),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:dn()),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 f_(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),yi(e,n)}function l_(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 Rs(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 i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=Rs(r[i],t[i],n-1));return r}function Fc(){return dn()}function Uo(){return dn().substring(16)}const d_=100;var Br=class Da{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},ze(this,"refs",{}),this._propagationContext={traceId:Fc(),sampleRand:Nc()}}clone(){const t=new Da;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,t.refs={...this.refs},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&&yi(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,{tags:r,attributes:i,extra:s,user:o,contexts:a,level:c,fingerprint:u=[],propagationContext:f,conversationId:l}=(n instanceof Da?n.getScopeData():xs(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),l&&(this._conversationId=l),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:d_;if(r<=0)return this;const i={timestamp:Os(),...t,message:t.message?Pa(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r)),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,conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Rs(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||dn();if(!this._client)return N&&M.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=(r==null?void 0:r.event_id)||dn();if(!this._client)return N&&M.warn("No client configured on scope - will not capture message!"),i;const s=(r==null?void 0:r.syntheticException)??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=t.event_id||(n==null?void 0:n.event_id)||dn();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(N&&M.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function p_(){return Fo("defaultCurrentScope",()=>new Br)}function h_(){return Fo("defaultIsolationScope",()=>new Br)}const Ma="__SENTRY_SUPPRESS_TRACING__",Lu=e=>e instanceof Promise&&!e[Ul],Ul=Symbol("chained PromiseLike"),__=(e,t,n)=>{const r=e.then(i=>(t(i),i),i=>{throw n(i),i});return Lu(r)&&Lu(e)?r:g_(e,r)},g_=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const i=e[r];typeof i=="function"?Object.defineProperty(t,r,{value:(...s)=>i.apply(e,s),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[Ul]:!0}),t};var m_=class{constructor(e,t){let n;e?n=e:n=new Br;let r;t?r=t:r=new Br,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(r){throw this._popScope(),r}return ks(n)?__(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Si(){const e=mr(),t=Pi(e);return t.stack=t.stack||new m_(p_(),h_())}function Hl(e){return Si().withScope(e)}function y_(e,t){const n=Si();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function $u(e){return Si().withScope(()=>e(Si().getIsolationScope()))}function S_(){return{suppressTracing:b_,withIsolationScope:$u,withScope:Hl,withSetScope:y_,withSetIsolationScope:(e,t)=>$u(t),getCurrentScope:()=>Si().getScope(),getIsolationScope:()=>Si().getIsolationScope()}}function b_(e){return Hl(t=>{t.setSDKProcessingMetadata({[Ma]:!0});const n=e();return t.setSDKProcessingMetadata({[Ma]:void 0}),n})}function Is(e){const t=Pi(e);return t.acs?t.acs:S_()}function v_(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function E_(e,t){const{value:n,unit:r}=v_(e)?e:{value:e,unit:void 0},i=T_(n),s=r&&typeof r=="string"?{unit:r}:{};if(i)return{...i,...s};if(!t||t==="skip-undefined"&&n===void 0)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...s}}function Fu(e,t=!1){const n={};for(const[r,i]of Object.entries(e??{})){const s=E_(i,t);s&&(n[r]=s)}return n}function Bu(e){var n;if(!e)return 0;let t=0;for(const[r,i]of Object.entries(e)){t+=r.length*2,t+=i.type.length*2,t+=(((n=i.unit)==null?void 0:n.length)??0)*2;const s=i.value;Array.isArray(s)?t+=zu(s[0])*s.length:Xr(s)?t+=zu(s):t+=100}return t}function zu(e){return typeof e=="string"?e.length*2:typeof e=="boolean"?4:typeof e=="number"?8:0}function T_(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 Wl(){var e,t;return(t=(e=Pi(mr())).externalPropagationContextProvider)==null?void 0:t.call(e)}function Ue(){const e=mr();return Is(e).getCurrentScope()}function Gn(){const e=mr();return Is(e).getIsolationScope()}function w_(){return Fo("globalScope",()=>new Br)}function Bc(...e){const t=mr(),n=Is(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function ht(){return Ue().getClient()}function Yl(e){const t=Wl();if(t)return{trace_id:t.traceId,span_id:t.spanId};const{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),s={trace_id:n,span_id:i||Uo()};return r&&(s.parent_span_id=r),s}const x_="sentry.sample_rate",k_="sentry.measurement_unit",C_="sentry.measurement_value",Na="sentry.custom_span_name",O_=["ok","deadline_exceeded","unauthenticated","permission_denied","not_found","resource_exhausted","invalid_argument","unimplemented","unavailable","internal_error","unknown_error","cancelled","already_exists","failed_precondition","aborted","out_of_range","data_loss"],R_="angular.version",I_="culture.calendar",Vl="culture.locale",jl="culture.timezone",P_="gen_ai.conversation.id",A_="http.request.header",D_="http.response.body.size",M_="http.response.status_code",N_="react.version",Uu="sentry.description",L_="sentry.environment",zc="sentry.exclusive_time",$_="sentry.is_localhost",dr="sentry.op",ds="sentry.origin",F_="sentry.profiler_id",Ho="sentry.profile_id",B_="sentry.release",z_="sentry.sdk.integrations",U_="sentry.sdk.name",H_="sentry.sdk.version",W_="sentry.segment.id",La="sentry.segment.name",bi="sentry.segment.name.source",Y_="sentry.status.message",V_="sentry.trace_lifecycle",j_="state.type",Hu="ui.component_name",q_="url.full",G_="user_agent.original",X_="user.email",K_="user.id",J_="user.ip_address",Q_="user.name";function Z_(e){return e!=="ok"&&O_.includes(e)}function ql(e){try{const t=nt.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 Xl="_sentryScope",Kl="_sentryIsolationScope",tg=Symbol.for("sentry.tracerProviderSpan");function ps(e,t,n){e&&(ze(e,Kl,ql(n)),ze(e,Xl,t))}function ar(e){const t=e;return{scope:t[Xl],isolationScope:Gl(t[Kl])}}function Jl(e){return e[tg]===!0}function eg(e){const t=ng(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.startsWith("sentry-")){const o=i.slice(7);r[o]=s}return r},{});if(Object.keys(n).length>0)return n}function ng(e){if(!(!e||!Yn(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Wu(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):Wu(e)}function Wu(e){return e.split(",").map(t=>{const n=t.indexOf("=");return n===-1?[]:[t.slice(0,n),t.slice(n+1)].map(r=>{try{return decodeURIComponent(r.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}const rg=/^o(\d+)\./,ig=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function sg(e){return e==="http"||e==="https"}function Ps(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${o}`}function og(e){const t=ig.exec(e);if(!t){En(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",o="",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 Ql({host:s,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function Ql(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ag(e){if(!N)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(M.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?sg(r)?t&&isNaN(parseInt(t,10))?(M.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(M.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(M.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function cg(e){var t;return(t=e.match(rg))==null?void 0:t[1]}function ug(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=cg(n)),r}function Uc(e){const t=typeof e=="string"?og(e):Ql(e);if(!(!t||!ag(t)))return t}function Hc(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 $a="span";function fg(e,t){t?e.refs[$a]=ql(t):delete e.refs[$a]}function lg(e){return Gl(e.refs[$a])}function dg(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:o,origin:a,links:c}=vn(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:o,origin:a,links:c}}function pg(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:vn(e).parent_span_id,s=ar(e).scope;return{parent_span_id:i,span_id:r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||Uo():t,trace_id:n}}function Zl(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:t,trace_id:n,sampled:r===1,attributes:s,...i}))}function td(e){if(e!=null&&e.length)return e.map(({context:{spanId:t,traceId:n,traceFlags:r},attributes:i})=>({span_id:t,trace_id:n,sampled:r===1,attributes:i}))}function zr(e){return typeof e=="number"?Yu(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Yu(e.getTime()):pe()}function Yu(e){return e>9999999999?e/1e3:e}function hg(e){return typeof e!="number"?zr(e):e<1e12?a_(e)??pe():e/1e3}function vn(e){if(id(e))return e.getStaticSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(rd(e)){const{attributes:r,startTime:i,name:s,endTime:o,status:a,links:c}=e;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:ed(e),start_timestamp:zr(i),timestamp:zr(o)||void 0,status:sd(a),op:r[dr],origin:r[ds],links:Zl(c)}}return{span_id:t,trace_id:n,start_timestamp:0,status:"ok",data:{}}}function vo(e){if(id(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(rd(e)){const{attributes:r,startTime:i,name:s,endTime:o,status:a,links:c}=e;return{name:s,span_id:t,trace_id:n,parent_span_id:ed(e),start_timestamp:zr(i),end_timestamp:zr(o)||void 0,is_segment:hs(e),status:Wc(a),attributes:od(r,a),links:td(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",status:"ok",is_segment:hs(e),attributes:{}}}function ed(e){var t;return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(t=e.parentSpanContext)==null?void 0:t.spanId:void 0}function nd(e){var t;return{...e,end_timestamp:e.end_timestamp??e.start_timestamp,attributes:Fu(e.attributes),links:(t=e.links)==null?void 0:t.map(n=>({...n,attributes:Fu(n.attributes)}))}}function rd(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function id(e){return typeof e.getSpanJSON=="function"}function Kr(e){const{traceFlags:t}=e.spanContext();return t===1}function sd(e){return!e||e.code===0||e.code===1?"ok":e.message&&Z_(e.message)?e.message:"internal_error"}function Wc(e){return!e||e.code===1||e.code===0||e.message==="cancelled"?"ok":"error"}function od(e,t){const n=Wc(t)==="error"?t==null?void 0:t.message:void 0;return{...n&&{[Y_]:n},...e}}const Qi="_sentryChildSpans",Fa="_sentryRootSpan";function so(e,t){const n=e[Fa]||e;ze(t,Fa,n),t.setAttribute(bi,void 0),Kr(e)&&(!e.isRecording()&&!n.isRecording()||(e[Qi]?e[Qi].add(t):ze(e,Qi,new Set([t]))))}function _g(e){const t=new Set;function n(r){if(!t.has(r)&&Kr(r)){t.add(r);const i=r[Qi]?Array.from(r[Qi]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}const Di=Wo;function Wo(e){return e[Fa]||e}function hs(e){return e===Wo(e)}function Yc(e){const t=mr(),n=Is(t);return n.getActiveSpan?n.getActiveSpan(e):lg(e||Ue())}function gg(e,t){hs(e)&&e.setAttribute(bi,t)}function _s(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=ht())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Vu(e){M.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Ba(e,t){if(!(t!=null&&t.length))return!1;for(const n of t){if(Sg(n)){if(e.description&&Ji(e.description,n))return N&&Vu(e),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const i=n.name?e.description&&Ji(e.description,n.name):!0,s=n.op?e.op&&Ji(e.op,n.op):!0,o=n.attributes?Object.entries(n.attributes).every(([a,c])=>{var u;return mg((u=e.attributes)==null?void 0:u[a],c)}):!0;if(i&&s&&o)return N&&Vu(e),!0}return!1}function mg(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?Ji(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e===t}function yg(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function Sg(e){return typeof e=="string"||e instanceof RegExp}const ju=[];function bg(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function vg(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return bg(r)}function Eg(e,t){const n={};return t.forEach(r=>{r!=null&&r.beforeSetup&&r.beforeSetup(e)}),t.forEach(r=>{r&&ad(e,r,n)}),n}function qu(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function ad(e,t,n){if(n[t.name]){N&&M.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!ju.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),ju.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",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,o)=>r(s,o,e),{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(r=>{const i=t[r];typeof i=="function"&&e.on(r,s=>i.call(t,s,e))}),N&&M.log(`Integration installed: ${t.name}`)}function We(e){return(...t)=>{const n=xs(t[0])?{...t[0]}:t[0],r=e(...t);return r._options=n,r}}const Tg="production",cd=Symbol.for("sentry.nonRecordingSpan");var Eo=class{constructor(e={}){this._traceId=e.traceId||Fc(),this._spanId=e.spanId||Uo(),this.dropReason=e.dropReason,ze(this,cd,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function za(e){return!!e&&e[cd]===!0}const ud="_frozenDsc";function To(e,t){ze(e,ud,t)}function fd(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||"production",release:n.release,public_key:r,trace_id:e,org_id:ug(t)};return t.emit("createDsc",i),i}function ld(e,t){if(Wl())return;const n=t.getPropagationContext();return n.dsc||fd(n.traceId,e)}function Ur(e){var g;const t=ht();if(!t)return{};const n=Di(e),r=vn(n),i=r.data,s=n.spanContext().traceState,o=(s==null?void 0:s.get("sentry.sample_rate"))??i["sentry.sample_rate"]??i["sentry.previous_trace_sample_rate"];function a(v){return(typeof o=="number"||typeof o=="string")&&(v.sample_rate=`${o}`),v}const c=n[ud];if(c)return a(c);const u=za(n),f=u&&n.dropReason==="ignored";if(u&&(!_s(t.getOptions())||f)){const v=ar(n).scope,T=v&&ld(t,v);if(T){const k={...T};return f&&(k.sampled="false"),a(k)}}const l=s==null?void 0:s.get("sentry.dsc"),d=l&&eg(l);if(d)return a(d);const p=fd(e.spanContext().traceId,t),_=i[bi],h=r.description;if(_!=="url"&&h&&(p.transaction=h),_s()){const v=(g=ar(n).scope)==null?void 0:g.getPropagationContext(),T=Kr(n);p.sampled=String(T),p.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??(v==null?void 0:v.sampleRand.toString()),o==null&&typeof(v==null?void 0:v.sampled)=="boolean"&&(p.sample_rate=T?"1":"0")}return a(p),t.emit("createDsc",p,n),p}function wg(e,t){const{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:i}=t;xg(e,t),Rg(e,n),kg(e,r),Cg(e,i)}function Gu(e,t){const{extra:n,tags:r,attributes:i,user:s,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:f,eventProcessors:l,attachments:d,propagationContext:p,transactionName:_}=t;Li(e,"extra",n),Li(e,"tags",r),Li(e,"attributes",i),Li(e,"user",s),Li(e,"contexts",o),e.sdkProcessingMetadata=Rs(e.sdkProcessingMetadata,c,2),a&&(e.level=a),_&&(e.transactionName=_),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,...p}}function Li(e,t,n){e[t]=Rs(e[t],n,1)}function Yo(e,t){const n=w_().getScopeData();return e&&Gu(n,e.getScopeData()),t&&Gu(n,t.getScopeData()),n}function xg(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),o&&(e.level=o),a&&e.type!=="transaction"&&(e.transaction=a)}function kg(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Cg(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Og(e,t){e.contexts={trace:pg(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ur(t),...e.sdkProcessingMetadata};const n=Di(t),r=vn(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Rg(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}function vi(e,t,n){let r;try{r=t()}catch(i){return Xu(e,i,n)}return ks(r)?r.then(void 0,i=>Xu(e,i,n)):r}function Xu(e,t,n){return N&&M.error(e,t),n(t)}function Vo(e){return!!e&&typeof e=="function"&&"_static"in e&&!!e._static}function wo(e,t){return vi(N?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":"",()=>t(e),()=>e)||e}function dd(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,status:!e.status||e.status==="ok"||e.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...e.data},links:e.links};return nd(t)}function Ig(e){const t={},{response:n,profile:r,cloud_resource:i,culture:s,state:o}=e;if(n&&(n.status_code!=null&&(t[M_]=n.status_code),n.body_size!=null&&(t[D_]=n.body_size)),r&&(r.profile_id&&(t[Ho]=r.profile_id),r.profiler_id&&(t[F_]=r.profiler_id)),i)for(const[u,f]of Object.entries(i))f!=null&&(t[u]=f);s&&(s.locale&&(t[Vl]=s.locale),s.timezone&&(t[jl]=s.timezone)),o!=null&&o.state&&typeof o.state.type=="string"&&(t[j_]=o.state.type);const a=e.angular;if(a){const u=a.version;(typeof u=="string"||typeof u=="number")&&(t[R_]=u)}const c=e.react;if(c){const u=c.version;(typeof u=="string"||typeof u=="number")&&(t[N_]=u)}return t}function pd(e,t){const n=vo(e);n.attributes&&delete n.attributes[Na];const r=Wo(e),i=vo(r),{isolationScope:s,scope:o}=ar(e),a=Yo(s,o);Dg(n,i,t,a),t.emit("preprocessSpan",n),n.is_segment&&(To(r,Ur(r)),Pg(n,a),Ag(n,t),t.emit("processSegmentSpan",n)),t.emit("processSpan",n);const{beforeSendSpan:c,traceLifecycle:u}=t.getOptions(),f=u!=="static"&&c&&!Vo(c)?wo(n,c):n;return{...nd(f),_segmentSpan:r,_segmentNameAtCapture:i.name}}function Pg(e,t){As(e,Ig(t.contexts))}function As(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([r,i])=>{i!=null&&!(r in n)&&(n[r]=i)})}function Ag(e,t){const n=t.getIntegrationNames();n.length&&As(e,{[z_]:n})}function hd(e,t,n,r=!0){var a,c,u,f,l,d;const i=t.getSdkMetadata(),{release:s,environment:o}=t.getOptions();return{[V_]:"stream",[La]:e.name,[W_]:e.span_id,[U_]:(a=i==null?void 0:i.sdk)==null?void 0:a.name,[H_]:(c=i==null?void 0:i.sdk)==null?void 0:c.version,[B_]:s,[L_]:o||"production",[K_]:(u=n.user)==null?void 0:u.id,[X_]:(f=n.user)==null?void 0:f.email,[J_]:(l=n.user)==null?void 0:l.ip_address,[Q_]:(d=n.user)==null?void 0:d.username,...r?n.attributes:void 0}}function Dg(e,t,n,r){As(e,hd(t,n,r))}function Mg(e,t,n){const r=vn(e),i=Wo(e),s=vo(i),{isolationScope:o,scope:a}=ar(e),c=hd(s,t,Yo(o,a),!1);Object.entries(c).forEach(([f,l])=>{l!=null&&!(f in r.data)&&(r.data[f]=l)});const u=wo(r,n);return dd(u)}function Jr(e){return e.getOptions().traceLifecycle==="stream"}function Vc(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}function Ds(e,t=[]){return[e,t]}function Ku(e,t){const[n,r]=e;return[n,[...r,t]]}function Ua(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Ng(e,t){return Ua(e,(n,r)=>t.includes(r))}function Ha(e){const t=Pi(nt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Lg(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[Ha(r),s]:r.push(typeof s=="string"?Ha(s):s)}for(const s of n){const[o,a]=s;if(i(` ${JSON.stringify(o)} `),typeof a=="string"||a instanceof Uint8Array)i(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Bn(a))}i(c)}}return typeof r=="string"?r:$g(r)}function $g(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Fg(e){const t=typeof e.data=="string"?Ha(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const _d={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",metric:"trace_metric"};function Bg(e){return e in _d}function Ju(e){return Bg(e)?_d[e]:e}function jc(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function zg(e,t,n,r){var s;const i=(s=e.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(yr()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ps(r)},...i&&{trace:i}}}function Wa(e){return e==="replay_event"?"replay":e||"error"}function Ug(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Hg(){/*! __SENTRY_SDK_SOURCE__ */return"npm"}function Wg(){return!Ug()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function gd(){return typeof window<"u"&&(!Wg()||Yg())}function Yg(){var e;return((e=nt.process)==null?void 0:e.type)==="renderer"}function Ya(e,t,n){const r=n.getOptions(),i=n.getDsn(),s=r.tunnel,o=jc(r._metadata),a={sent_at:new Date(yr()).toISOString(),...Vg(t)&&{trace:t},...o&&{sdk:o},...!!s&&i&&{dsn:Ps(i)}};return Ds(a,[md(e,n)])}function md(e,t){const n=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,ingest_settings:gd()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}function Vg(e){return!!e.trace_id&&!!e.public_key}function jg(e){var n;let t=156;if(t+=e.name.length*2,t+=Bu(e.attributes),e.links&&e.links.length>0){const r=(n=e.links[0])==null?void 0:n.attributes,i=100+(r?Bu(r):0);t+=i*e.links.length}return t}const Qu=1e3,qg=5e6;var Gg=class{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=n&&n>0&&n<=Qu?n:Qu,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=i&&i>0?i:qg,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(s=>{clearTimeout(s.timeout)}),this._traceBuckets.clear()})}add(e){const t=e.trace_id;let n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:Vc(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=jg(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(N&&M.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){var u;const t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size){this._removeTrace(e);return}const n=Array.from(t.spans),r=(u=n[0])==null?void 0:u._segmentSpan;if(!r){N&&M.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(e);return}const i=Ur(r);To(r,i);const s=new Map,o=f=>{let l=s.get(f);return l===void 0&&(l=vo(f).name,s.set(f,l)),l},a=n.map(f=>{const{_segmentSpan:l,_segmentNameAtCapture:d,...p}=f;return Xg(p,d,()=>o(l)),p}),c=Ya(a,i,this._client);N&&M.log(`Sending span envelope for trace ${e} with ${a.length} spans`),this._client.sendEnvelope(c).then(null,f=>{N&&M.error("Error while sending streamed span envelope:",f)}),this._removeTrace(e)}_removeTrace(e){const t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}};function Xg(e,t,n){const r=e.attributes[La];if(t===void 0||(r==null?void 0:r.value)!==t)return;const i=n();i!==t&&(e.attributes[La]={...r,value:i})}const Kg="SpanStreaming",Jg=We((e={})=>{const t=e.flushOnSegmentEnd??!0;return{name:Kg,setup(n){if(!Jr(n)){N&&M.log('[SpanStreaming] `traceLifecycle` is "static", skipping setup.');return}const r=new Gg(n);n.on("afterSpanEnd",i=>{Kr(i)&&r.add(pd(i,n))}),n.on("flushTraceSpans",i=>{r.flush(i)}),t&&n.on("afterSegmentSpanEnd",i=>{const s=i.spanContext().traceId;Vc(setTimeout(()=>{r.flush(s)},500))})}}}),Qg=new WeakMap;function Zg(e){return Xr(e)?void 0:e}function tm(e,t,n){var o;const r=Zg(t.originalException),i=r&&Qg.get(r);if(!i)return;const s=(o=e.contexts)==null?void 0:o.trace;((s==null?void 0:s.trace_id)??(n&&Yl(n).trace_id))===i.trace_id&&(e.contexts={...e.contexts,trace:{...s,...i}})}function em(e){if(!N)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=vn(e),{spanId:i}=e.spanContext(),s=Kr(e),o=Di(e),a=o===e,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:f,description:l}=vn(o);u.push(`root ID: ${o.spanContext().spanId}`),f&&u.push(`root op: ${f}`),l&&u.push(`root description: ${l}`)}M.log(`${c} ${u.join(` `)}`)}function nm(e){if(!N)return;const{description:t="< unknown name >",op:n="< unknown op >"}=vn(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${Di(e)===e?"root ":""}span "${t}" with ID ${r}`;M.log(i)}function rm(e,t,n){if(!_s(e))return[!1];const r=im(e,t);if(!r)return[!1,void 0,void 0,"callback_error"];const[i,s]=r,o=Hc(i);if(o===void 0)return N&&M.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(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!o)return N&&M.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,s];const a=n[n({...t,inheritOrSampleWith:s=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):s}),!0],()=>{});if(i)return i}if(t.parentSampled!==void 0)return[t.parentSampled];if(typeof r<"u")return[r,!0]}function Zu(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[k_],s=r[C_];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}function tf(){return Pi(mr()).segmentSpanCaptureStrategy}const Us=1e3;var qc=class{constructor(e={}){this._traceId=e.traceId||Fc(),this._spanId=e.spanId||Uo(),e.startTimestamp?this._startTime=e.startTimestamp:(this._startTime=pe(),this._startPerformanceNow=Mu()),this._links=e.links,this._attributes={},this.setAttributes({[ds]:"manual",[dr]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),this._events=[],this._isStandaloneSpan=e.isStandalone}addLink(e){return this._frozen?this:(this._links?this._links.push(e):this._links=[e],this)}addLinks(e){return this._frozen?this:(this._links?this._links.push(...e):this._links=e,this)}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return this._frozen?this:e===bi&&t!==void 0&&!hs(this)?(N&&M.warn("[Tracing] Ignoring name source on a child span: this attribute is only valid on the root span."),this):(t===void 0?delete this._attributes[e]:this._attributes[e]=t,this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=ia(this,e),this._startPerformanceNow=void 0)}setStatus(e){return this._frozen?this:(this._status=e,this)}updateName(e){return this._frozen?this:(this._name=e,gg(this,"custom"),this)}end(e){this._endTime||(this._endTime=e==null?this._getEndTimeFromDuration():ia(this,e),nm(this),this._onSpanEnded(),this._frozen=Jl(this))}getStaticSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[dr],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:sd(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ds],profile_id:this._attributes[Ho],exclusive_time:this._attributes[zc],measurements:Zu(this._events),links:Zl(this._links)}}getSpanJSON(){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,is_segment:hs(this),status:Wc(this._status),attributes:od(this._attributes,this._status),links:td(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;N&&M.log("[Tracing] Adding an event to span:",e);const r=ef(t)?t:n||void 0,i=ef(t)?{}:t||{},s={name:e,time:ia(this,r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_getEndTimeFromDuration(){const e=Mu();return this._startPerformanceNow==null||e==null?pe():this._startTime+(e-this._startPerformanceNow)/1e3}_onSpanEnded(){const e=ht();if(e==null||e.emit("spanEnd",this),this._isStandaloneSpan){if(!e)return;if(this._sampled){om(this,e);return}N&&M.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled.");return}e==null||e.emit("afterSpanEnd",this);const t=Di(this);if(t!==this){const i=tf();if(i){const s=ar(this).scope||Ue();i.onChildSpanEnded(this,t,o=>this._convertSpanToTransaction(o),s)}return}if(e&&Jr(e)){e.emit("afterSegmentSpanEnd",this);return}const n=ar(this).scope||Ue(),r=tf();if(r)r.onSegmentSpanEnded(i=>this._convertSpanToTransaction(i),n);else{const i=this._convertSpanToTransaction();i&&n.captureEvent(i)}}_convertSpanToTransaction(e={}){var l,d,p,_;if(!nf(vn(this)))return;this._name||(N&&M.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:t,isolationScope:n}=ar(this),r=(l=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:l.normalizedRequest;if(this._sampled!==!0)return;(d=e.onSpanCaptured)==null||d.call(e,this);const i=[];let s=0;for(const h of _g(this)){if(h===this||sm(h)||(p=e.isSpanAlreadyCaptured)!=null&&p.call(e,h))continue;const g=vn(h);if(!nf(g)){e.onSpanCaptured||s++;continue}(_=e.onSpanCaptured)==null||_.call(e,h),i.push(g)}const o=(t==null?void 0:t.getClient())||ht();s&&(o==null||o.recordDroppedEvent("invalid","span",s)),i.length>Us&&(o==null||o.recordDroppedEvent("buffer_overflow","span",i.length-Us));const a=this._attributes[bi];delete this._attributes[Na];let c=!1;i.forEach(h=>{var g;delete h.data[Na],(g=h.op)!=null&&g.startsWith("gen_ai.")&&(c=!0)});const u={contexts:{trace:dg(this)},spans:i.length>Us?i.sort((h,g)=>h.start_timestamp-g.start_timestamp).slice(0,Us):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ur(this),hasGenAiSpans:c},request:r,...a&&{transaction_info:{source:a}}},f=Zu(this._events);return f&&Object.keys(f).length&&(N&&M.log("[Measurements] Adding measurements to transaction event",JSON.stringify(f,void 0,2)),u.measurements=f),u}};function ia(e,t){return Jl(e)?hg(t):zr(t)}function ef(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function nf(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function sm(e){return e instanceof qc&&e.isStandaloneSpan()}function om(e,t){const{beforeSendSpan:n,traceLifecycle:r}=t.getOptions();if(r==="static"&&Vo(n)){const c=Mg(e,t,n),u=Ur(e);t.sendEnvelope(Ya([c],u,t));return}const{_segmentSpan:i,_segmentNameAtCapture:s,...o}=pd(e,t),a=Ur(i);t.sendEnvelope(Ya([o],a,t))}function am(e){const t=lm(e),{forceTransaction:n,parentSpan:r,scope:i}=e;return(i?s=>Bc(i,s):r!==void 0?s=>cm(r,s):s=>s())(()=>{const s=Ue(),o=pm(i??s,r),a=ht();return e.onlyIfParent&&!o?um(s,a):fm({parentSpan:o,spanArguments:t,forceTransaction:n,scope:s})})}function cm(e,t){const n=yd();return n.withActiveSpan?n.withActiveSpan(e,t):Bc(r=>(fg(r,e||void 0),t(r)))}function Gc(e=Ue()){const t=yd();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[Ma]===!0}function um(e,t){t==null||t.recordDroppedEvent("no_parent_span","span");const n=new Eo({dropReason:"no_parent_span",traceId:e.getPropagationContext().traceId});return ps(n,e,Gn()),n}function fm({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var f;const i=Gn(),s={scope:r,parentSpan:e};(f=ht())==null||f.emit("prepareSpanScope",s);const{scope:o,parentSpan:a}=s;if(!_s()){const l=o.getPropagationContext(),d=a?a.spanContext().traceId:l.traceId,p=new Eo({traceId:d});return a&&!n&&so(a,p),ps(p,o,i),p}const c=ht();if(hm(c,t)){Gc(o)||c==null||c.recordDroppedEvent("ignored","span");const l=new Eo({dropReason:"ignored",traceId:(a==null?void 0:a.spanContext().traceId)??o.getPropagationContext().traceId});return a&&!n&&so(a,l),ps(l,o,i),l}let u;if(a&&!n)u=dm(a,o,t,i),so(a,u);else if(a){const l=Ur(a),{traceId:d,spanId:p}=a.spanContext(),_=Kr(a);u=rf({traceId:d,parentSpanId:p,...t},o,i,_),To(u,l)}else{const{traceId:l,dsc:d,parentSpanId:p,sampled:_}=o.getPropagationContext();u=rf({traceId:l,parentSpanId:p,...t},o,i,_),d&&To(u,d)}return em(u),u}function lm(e){var n;const t={isStandalone:(n=e.experimental)==null?void 0:n.standalone,...e};if(e.op&&(t.attributes={[dr]:e.op,...e.attributes}),e.startTime){const r={...t};return r.startTimestamp=zr(e.startTime),delete r.startTime,r}return t}function yd(){const e=mr();return Is(e)}function rf(e,t,n,r){var v;const i=ht(),s=(i==null?void 0:i.getOptions())||{},{name:o=""}=e,a={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i==null||i.emit("beforeSampling",a,{decision:!1});const c=a.parentSampled??r,u=a.spanAttributes,f=t.getPropagationContext(),l=Gc(t),[d,p,_,h]=l?[!1]:rm(s,{name:o,parentSampled:c,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Hc((v=f.dsc)==null?void 0:v.sample_rate)},f.sampleRand),g=new qc({...e,attributes:{[bi]:"custom",[x_]:p!==void 0&&_?p:void 0,...u},sampled:d});if(!d&&i&&!l){N&&M.log("[Tracing] Discarding root span because its trace was not chosen to be sampled.");const T=h||"sample_rate";!Jr(i)&&!e.isStandalone&&i.recordDroppedEvent(T,"transaction"),i.recordDroppedEvent(T,"span")}return ps(g,t,n),i&&i.emit("spanStart",g),g}function dm(e,t,n,r){const{spanId:i,traceId:s}=e.spanContext(),o=Gc(t),a=o?!1:Kr(e),c=a?new qc({...n,parentSpanId:i,traceId:s,sampled:a}):new Eo({traceId:s});so(e,c),ps(c,t,r);const u=ht();return u&&(za(c)&&(za(e)&&e.dropReason?(c.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):o||(c.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",c)),c}function pm(e,t){if(t)return t;if(t===null)return;const n=Yc(e);if(!n)return;const r=ht();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Di(n):n}function hm(e,t){var r;const n=e==null?void 0:e.getOptions().ignoreSpans;return!e||!Jr(e)||!(n!=null&&n.length)?!1:Ba({description:t.name||"",op:((r=t.attributes)==null?void 0:r[dr])||t.op,attributes:t.attributes},n)}const sf=new WeakSet;function _m(e=ht()){!e||sf.has(e)||!Jr(e)||(sf.add(e),e.addIntegration(Jg()))}function of(e){return _m(),am(e)}const gm="ui.render",sa="ui.mount",mm="ui.update",af="ui.unmount",oa="Component mount",ym="Component update",Sm="Component render",cf="Component unmount";function bm(e,t){var r,i,s,o;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((i=e.sdk)==null?void 0:i.packages)||[],...t.packages||[]],settings:(s=e.sdk)!=null&&s.settings||t.settings?{...(o=e.sdk)==null?void 0:o.settings,...t.settings}:void 0},e}function vm(e,t,n,r){const i=jc(n),s={sent_at:new Date(yr()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Ps(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ds(s,[o])}function Em(e,t,n,r){const i=jc(n),s=e.type&&e.type!=="replay_event"?e.type:"event";bm(e,n==null?void 0:n.sdk);const o=zg(e,i,r,t);return delete e.sdkProcessingMetadata,Ds(o,[[{type:s},e]])}const Sd="[Filtered]",Tm=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"];function wm(e,t){return t.some(n=>e.includes(n))}function bd(e,t,n){if(t===!1)return!0;const r=e.toLowerCase();if(wm(r,Tm))return!0;if(t===!0)return!1;const i=("deny"in t?t.deny:t.allow).some(s=>r.includes(s.toLowerCase()));return"deny"in t?i:!i}function Va(e,t,n){if(t===!1)return{};const r={};for(const i of Object.keys(e))r[i]=bd(i,t)?Sd:e[i];return r}const aa=0,uf=1,ff=2;function Ms(e){return new vd(t=>{t(e)})}function Xc(e){return new vd((t,n)=>{n(e)})}var vd=class ja{constructor(t){this._state=aa,this._handlers=[],this._runExecutor(t)}then(t,n){return new ja((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(o){i(o)}},s=>{if(!n)i(s);else try{r(n(s))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ja((n,r)=>{let i,s;return this.then(o=>{s=!1,i=o,t&&t()},o=>{s=!0,i=o,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===aa)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===uf&&n[1](this._value),this._state===ff&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,o)=>{if(this._state===aa){if(ks(o)){o.then(r,i);return}this._state=s,this._value=o,this._executeHandlers()}},r=s=>{n(uf,s)},i=s=>{n(ff,s)};try{t(r,i)}catch(s){i(s)}}};function xm(e,t,n,r=0,i){try{const s=qa(t,n,e,r,i);return ks(s)?s:Ms(s)}catch(s){return Xc(s)}}function qa(e,t,n,r,i){const s=n[r];if(!e||!s)return e;const o=`Event processor "${s.id||"?"}"`;let a=!1;const c=vi(N?`${o} threw an error, dropping event:`:"",()=>s({...e},t),()=>(a=!0,null));return N&&c===null&&M.log(`${o} dropped event`),ks(c)?c.then(u=>u?qa(u,t,n,r+1,i):(i==null||i(a?"callback_error":"event_processor"),null)):c?qa(c,t,n,r+1,i):(i==null||i(a?"callback_error":"event_processor"),null)}let $n,lf,df,Jn;function km(e){const t=nt._sentryDebugIds,n=nt._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Jn&&r.length===lf&&i.length===df)return Jn;lf=r.length,df=i.length,Jn={},$n||($n={});const s=(o,a)=>{var c;for(const u of o){const f=a[u],l=$n==null?void 0:$n[u];if(l&&Jn&&f)Jn[l[0]]=f,$n&&($n[u]=[l[0],f]);else if(f){const d=e(u);for(let p=d.length-1;p>=0;p--){const _=(c=d[p])==null?void 0:c.filename;if(_&&Jn&&$n){Jn[_]=f,$n[u]=[_,f];break}}}}};return t&&s(r,t),n&&s(i,n),Jn}function Ga(e){var t;return((t=e.data)==null?void 0:t.__sentry__)===!0}function Ed(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Cm(e,t,n,r,i,s){var T;const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||dn(),timestamp:t.timestamp||Os()},u=n.integrations||e.integrations.map(k=>k.name);Om(c,e),Pm(c,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&Rm(c,e.stackParser);const f=Dm(r,n.captureContext);n.mechanism&&n_(c,n.mechanism);const l=i?i.getEventProcessors():[],d=Yo(s,f),p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),wg(c,d);const _=Yc(f);_&&Og(c,_),tm(c,n,f);const h=[...l,...d.eventProcessors],g=t.type==="transaction",v=((T=t.spans)==null?void 0:T.length)||0;return(Ga(n)?Ms(c):xm(h,c,n,0,k=>{i&&(i.recordDroppedEvent(k,Wa(t.type)),g&&i.recordDroppedEvent(k,"span",1+v))})).then(k=>{var m;if(!k)return null;if(g&&i){const b=v-(((m=k.spans)==null?void 0:m.length)||0);b>0&&i.recordDroppedEvent("event_processor","span",b)}return Im(k),typeof o=="number"&&o>0?Am(k,o,a):k})}function Om(e,t){var a,c;const{environment:n,release:r,dist:i,maxValueLength:s}=t;e.environment=e.environment||n||"production",!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const o=e.request;o!=null&&o.url&&s&&(o.url=Pa(o.url,s)),s&&((c=(a=e.exception)==null?void 0:a.values)==null||c.forEach(u=>{u.value&&(u.value=Pa(u.value,s))}))}function Rm(e,t){var r,i;const n=km(t);(i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var o,a;(a=(o=s.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function Im(e){var r,i;const t={};if((i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var o,a;(a=(o=s.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.debug_id&&(c.abs_path?t[c.abs_path]=c.debug_id:c.filename&&(t[c.filename]=c.debug_id),delete c.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(([s,o])=>{n.push({type:"sourcemap",code_file:s,debug_id:o})})}function Pm(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Am(e,t,n){var i,s;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Bn(o.data,t,n)}}))},...e.user&&{user:Bn(e.user,t,n)},...e.contexts&&{contexts:Bn(e.contexts,t,n)},...e.extra&&{extra:Bn(e.extra,t,n)}};return(i=e.contexts)!=null&&i.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Bn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:Bn(o.data,t,n)}}))),(s=e.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=Bn(e.contexts.flags,3,n)),r}function Dm(e,t){if(!t)return e;const n=e?e.clone():new Br;return n.update(t),n}function Mm(e){if(e)return Nm(e)?{captureContext:e}:$m(e)?{captureContext:e}:e}function Nm(e){return e instanceof Br||typeof e=="function"}const Lm=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function $m(e){return Object.keys(e).some(t=>Lm.includes(t))}function Td(e,t){return Ue().captureException(e,Mm(t))}function wd(e,t){return Ue().captureEvent(e,t)}function pf(e){var o,a;const t=Gn(),{user:n}=Yo(t,Ue());let r=(o=nt.navigator)==null?void 0:o.userAgent;if(r){const c=((a=ht())==null?void 0:a.getDataCollectionOptions().httpHeaders.request)??!0;r=Va({"User-Agent":r},c)["User-Agent"]}const i=u_({user:n,userAgent:r,...e}),s=t.getSession();return(s==null?void 0:s.status)==="ok"&&yi(s,{status:"exited"}),xd(),t.setSession(i),i}function xd(){const e=Gn(),t=Ue().getSession()||e.getSession();t&&f_(t),kd(),e.setSession()}function kd(){const e=Gn(),t=ht(),n=e.getSession();n&&t&&t.captureSession(n)}function ca(e=!1){if(e){xd();return}kd()}function Fm(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Bm(e){return`${Fm(e)}${e.projectId}/envelope/`}function zm(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Um(e,t,n){return t||`${Bm(e)}?${zm(e,n)}`}function Hm(e,t){var i,s,o;if(e.type!=="transaction"||!((i=e.spans)!=null&&i.length)||!((s=e.sdkProcessingMetadata)!=null&&s.hasGenAiSpans)||Jr(t))return;const n=[],r=[];for(const a of e.spans)(o=a.op)!=null&&o.startsWith("gen_ai.")?n.push(dd(a)):r.push(a);if(n.length!==0)return e.spans=r,md(n,t)}const Kc=Symbol.for("SentryBufferFullError");function Jc(e=100){const t=new Set;function n(){return t.sizer(a),()=>r(a)),a}function s(o){if(!t.size)return Ms(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const c=[a,new Promise(u=>Vc(setTimeout(()=>u(!1),o)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:i,drain:s}}const Wm=6e4;function Ym(e,t=yr()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Wm:r-t}function Vm(e,t){return e[t]||e.all||0}function jm(e,t,n=yr()){return Vm(e,t)>n}function qm(e,t,n=yr()){const r={...e};return Gm(t,n,(i,s)=>{r[i]=Math.max(r[i]||0,s)}),r}function Gm({statusCode:e,headers:t},n,r){const i=t==null?void 0:t["x-sentry-rate-limits"],s=t==null?void 0:t["retry-after"];if(i)for(const o of i.trim().split(",")){const[a,c,,,u]=o.split(":",5),f=parseInt(a,10),l=(isNaN(f)?60:f)*1e3;if(!c)r("all",n+l);else for(const d of c.split(";"))d==="metric_bucket"?(!u||u.split(";").includes("custom"))&&r(d,n+l):r(d,n+l)}else s?r("all",n+Ym(s,n)):e===429&&r("all",n+6e4)}function Xm(e,t,n=Jc(e.bufferSize||64)){let r={};const i=a=>n.drain(a);function s(a,[c,u],f){var d;const l=Ju(f);f==="transaction"&&e.recordDroppedEvent(a,"span",(((d=u.spans)==null?void 0:d.length)??0)+1),e.recordDroppedEvent(a,l,typeof c.item_count=="number"?c.item_count:1)}function o(a){const c=[];if(Ua(a,(d,p)=>{jm(r,Ju(p))?s("ratelimit_backoff",d,p):c.push(d)}),c.length===0)return Promise.resolve({});const u=Ds(a[0],c),f=d=>{if(Ng(u,["client_report"])){N&&M.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}Ua(u,(p,_)=>{s(d,p,_)})},l=()=>t({body:Lg(u)}).then(d=>d.statusCode===413?(N&&M.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),f("send_error"),d):(N&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&M.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=qm(r,d),d),d=>{throw f("network_error"),N&&M.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===Kc)return N&&M.error("Skipped sending event because buffer is full."),f("queue_overflow"),Promise.resolve({});throw d})}return{send:o,flush:i}}function Km(e,t,n){const r=[{type:"client_report"},{timestamp:Os(),discarded_events:e}];return Ds(t?{dsn:t}:{},[r])}function Jm(e){var u;const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:o,op:a,links:c}=((u=e.contexts)==null?void 0:u.trace)??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i??"ok",timestamp:e.timestamp,trace_id:t??"",origin:s,links:c,profile_id:o==null?void 0:o[Ho],exclusive_time:o==null?void 0:o[zc],measurements:e.measurements,is_segment:!0}}function Qm(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,links:e.links,data:{...e.data,...e.profile_id&&{[Ho]:e.profile_id},...e.exclusive_time&&{[zc]:e.exclusive_time}}}},measurements:e.measurements}}function Zm(e){var t;e.traceLifecycle!=="stream"||!(e.beforeSendTransaction||(t=e.ignoreTransactions)!=null&&t.length)||En(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}const le={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},mcp:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function t0(e){return typeof e=="boolean"||"allow"in e||"deny"in e}function e0(e){return e===void 0?{...le.httpHeaders}:t0(e)?{request:e,response:e}:{request:e.request??le.httpHeaders.request,response:e.response??le.httpHeaders.response}}function n0(e){var n,r,i,s,o,a;const t=e.dataCollection??{};return{userInfo:t.userInfo??le.userInfo,cookies:t.cookies??le.cookies,httpHeaders:e0(t.httpHeaders),httpBodies:t.httpBodies??le.httpBodies,urlQueryParams:t.urlQueryParams??le.urlQueryParams,graphQL:{document:((n=t.graphQL)==null?void 0:n.document)??le.graphQL.document,variables:((r=t.graphQL)==null?void 0:r.variables)??le.graphQL.variables},genAI:{inputs:((i=t.genAI)==null?void 0:i.inputs)??le.genAI.inputs,outputs:((s=t.genAI)==null?void 0:s.outputs)??le.genAI.outputs},mcp:{inputs:((o=t.mcp)==null?void 0:o.inputs)??le.mcp.inputs,outputs:((a=t.mcp)==null?void 0:a.outputs)??le.mcp.outputs},databaseQueryData:t.databaseQueryData??le.databaseQueryData,queues:t.queues??le.queues,stackFrameVariables:t.stackFrameVariables??le.stackFrameVariables,frameContextLines:t.frameContextLines??le.frameContextLines}}const hf="Not capturing exception because it's already been captured.",_f="Discarded session because of missing or non-string release",Cd=Symbol.for("SentryInternalError"),Od=Symbol.for("SentryDoNotSendEventError"),Rd=Symbol.for("SentryClosedClient");function r0(e){return Rd in e}function gf(e){return{message:e,[Cd]:!0}}function Xa(e){return{message:e,[Od]:!0}}function mf(e){return Xa(`Discarding event because it's not included in the random sample (sampling rate = ${e})`)}function yf(e){return Bo(e)&&Cd in e}function Sf(e){return Bo(e)&&Od in e}var i0=class{constructor(e){var r;this._options={attachStacktrace:!0,...e,traceLifecycle:e.traceLifecycle==="static"?"static":"stream"},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Jc(((r=e.transportOptions)==null?void 0:r.bufferSize)??64),this._dataCollection=n0(e),this._unhandledSessionStatus="crashed",this._attachStacktraceIsDefault=e.attachStacktrace===void 0,e.dsn?this._dsn=Uc(e.dsn):N&&M.warn("No DSN provided, client will not send events.");const{beforeSendSpan:t,traceLifecycle:n}=this._options;if(N&&t&&Vo(t)!==(n==="static")&&En(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${n==="static"?"wrap it with":"remove"} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${n}"\`.`)}),this._dsn){const i=Um(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,n){const r=dn();if(Du(e))return N&&M.log(hf),r;const i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(s=>this._captureEvent(s,i,n)).then(s=>s),"error"),i.event_id}captureMessage(e,t,n,r){const i={event_id:dn(),...n},s=Ac(e)?e:String(e),o=Xr(e),a=o?this.eventFromMessage(s,t,i).then(c=>(c.exception&&this._attachStacktraceIsDefault&&(c.sdkProcessingMetadata={...c.sdkProcessingMetadata,hasDefaultSyntheticStacktrace:!0}),c)):this.eventFromException(e,i);return this._process(()=>a.then(c=>this._captureEvent(c,i,r)),o?"unknown":"error"),i.event_id}captureEvent(e,t,n){const r=dn();if(t!=null&&t.originalException&&Du(t.originalException))return N&&M.log(hf),r;const i={event_id:r,...t},s=e.sdkProcessingMetadata||{},o=s.capturedSpanScope,a=s.capturedSpanIsolationScope,c=Wa(e.type);return this._process(()=>this._captureEvent(e,i,o||n,a),c),i.event_id}captureSession(e){this.sendSession(e),yi(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Object.defineProperty(this,Rd,{value:!0});const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&(this._setupIntegrations(),Zm(this._options))}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),ad(this,e,this._integrations),t||qu(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const n=Hm(e,this);let r=Em(e,this._dsn,this._options._metadata,this._options.tunnel);if(!Ga(t))for(const i of t.attachments||[])r=Ku(r,Fg(i));n&&(r=Ku(r,n)),this.sendEnvelope(r).then(i=>this.emit("afterSendEvent",e,i))}sendSession(e){const{release:t,environment:n=Tg}=this._options;if("aggregates"in e){const i=e.attrs||{};if(!i.release&&!t){N&&M.warn(_f);return}i.release=i.release||t,i.environment=i.environment||n,e.attrs=i}else{if(!e.release&&!t){N&&M.warn(_f);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=vm(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;N&&M.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...i)=>t(...i);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(r=>r(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{const t=await this._transport.send(e);return this.emit("afterEnvelope",e),t}catch(t){return N&&M.error("Error while sending envelope:",t),{}}return N&&M.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Eg(this,e),qu(this,e)}_updateSessionFromEvent(e,t){var o,a;let n=t.level==="fatal",r=!1;const i=(o=t.exception)==null?void 0:o.values;if(i){r=!0,n=!1;for(const c of i)if(((a=c.mechanism)==null?void 0:a.handled)===!1){n=!0;break}}const s=e.status==="ok";(s&&e.errors===0||s&&n)&&(yi(e,{...n&&{status:this._unhandledSessionStatus},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||tsetTimeout(n,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){const i=this.getOptions(),s=this.getIntegrationNames();return!t.integrations&&s.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Cm(i,e,t,n,this,r).then(o=>{var a;return o===null||(this.emit("postprocessEvent",o,t),o.contexts={trace:{...(a=o.contexts)==null?void 0:a.trace,...Yl(n)},...o.contexts},o.sdkProcessingMetadata={dynamicSamplingContext:ld(this,n),...o.sdkProcessingMetadata}),o})}_captureEvent(e,t={},n=Ue(),r=Gn()){return N&&Ka(e)&&M.log(`Captured error event \`${Ed(e)[0]||""}\``),this._processEvent(e,t,n,r).then(i=>i.event_id,i=>{N&&(Sf(i)?M.log(i.message):yf(i)?M.warn(i.message):M.warn(i))})}_processEvent(e,t,n,r){const i=this.getOptions(),{sampleRate:s}=i,o=Id(e),a=Ka(e),c=`before send for type \`${e.type||"error"}\``;let u="before_send",f=0;const l=typeof s>"u"?void 0:Hc(s),d=a&&typeof l=="number"&&Nc()>l,p=Wa(e.type);let _=0;const h=n.getSession()||r.getSession();return d&&(h==null?void 0:h.status)!=="ok"?(this.recordDroppedEvent("sample_rate","error"),Xc(mf(s))):this._prepareEvent(e,t,n,r).then(g=>{var v;if(g===null)throw Xa("An event processor returned `null`, will not send event.");return _=((v=g.spans)==null?void 0:v.length)||0,Ga(t)?g:s0(i,g,t,T=>{u=T},T=>{f=T})}).then(g=>{var T;if(f&&this.recordDroppedEvent("ignored","span",f),!xs(g)||g===null)throw this.recordDroppedEvent(u,p),o&&this.recordDroppedEvent(u,"span",1+_-f),g!==null?gf(`${c} must return \`null\` or a valid event.`):Xa(`${u==="ignored"?"Transaction matched `ignoreSpans`":`${c} ${u==="callback_error"?"threw an error":"returned `null`"}`}, will not send event.`);if(a&&h&&this._updateSessionFromEvent(h,g),d)throw this.recordDroppedEvent("sample_rate","error"),mf(s);if(o){const k=_-f-(((T=g.spans)==null?void 0:T.length)||0);k>0&&this.recordDroppedEvent("before_send","span",k)}const v=g.transaction_info;if(o&&v&&g.transaction!==e.transaction){const k="custom";g.transaction_info={...v,source:k}}return this.sendEvent(g,t),g}).then(null,g=>{throw Sf(g)||yf(g)?g:(this.captureException(g,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:g}),gf(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${g}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===Kc&&this.recordDroppedEvent("queue_overflow",t),n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([t,n])=>{const[r,i]=t.split(":");return{reason:r,category:i,quantity:n}})}_flushOutcomes(){N&&M.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){N&&M.log("No outcomes to send");return}if(!this._dsn){N&&M.log("No dsn provided, will not send outcomes");return}N&&M.log("Sending outcomes:",e);const t=Km(e,this._options.tunnel&&Ps(this._dsn));this.sendEnvelope(t)}};function s0(e,t,n,r,i){const{beforeSend:s,ignoreSpans:o,beforeSendTransaction:a}=e,c=Vo(e.beforeSendSpan)&&e.beforeSendSpan;let u=t;if(Ka(u)&&s){const f=u;return vi(N?"The `beforeSend` callback threw an error, dropping the event:":"",()=>s(f,n),()=>(r("callback_error"),null))}if(Id(u)){if(c||o){const f=Jm(u);if(o!=null&&o.length&&Ba({description:f.description,op:f.op,attributes:f.data},o))return r("ignored"),null;if(c){const l=wo(f,c);u=Rs(t,Qm(l))}if(u.spans){const l=[],d=u.spans;for(const p of d){if(o!=null&&o.length&&Ba({description:p.description,op:p.op,attributes:p.data},o)){yg(d,p);continue}c?l.push(wo(p,c)):l.push(p)}i(d.length-l.length),u.spans=l}}if(a)return vi(N?"The `beforeSendTransaction` callback threw an error, dropping the event:":"",()=>a(u,n),()=>(r("callback_error"),null))}return u}function Ka(e){return e.type===void 0}function Id(e){return e.type==="transaction"}function o0(e,t){t.debug===!0&&(N?M.enable():En(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),a0(),Ue().update(t.initialScope);const n=new e(t);return c0(n),n.init(),n}function a0(){const e=ht();e&&!r0(e)&&En(()=>{console.warn("[Sentry] `Sentry.init()` was called more than once. The new client replaces the active client, but the active client is not closed, so state from both can mix. Call `Sentry.init()` only once, or call `await Sentry.close()` before you call it again.")})}function c0(e){Ue().setClient(e)}function Pd(e,t){const n=e.indexOf("="),r=n===-1?e:e.slice(0,n),i=new URLSearchParams(`${r}=`).keys().next().value;return i!==void 0&&bd(i,t)?`${r}=${Sd}`:e}function u0(e,t){if(!(!e||t===!1))return e.split("&").map(n=>Pd(n,t)).join("&")}function f0(e,t){if(!e||t===!1)return;const n=e.indexOf("?");return`${n===-1?"":e.slice(0,n+1)}${(n===-1?e:e.slice(n+1)).split("&").map(r=>r.includes("=")?Pd(r,t):r).join("&")}`}function l0(e,t){const n=e.indexOf("#"),r=n===-1?e:e.slice(0,n),i=n===-1?void 0:e.slice(n+1),s=r.indexOf("?");let o=r;if(s!==-1){const c=u0(r.slice(s+1),t);o=`${r.slice(0,s)}${c?`?${c}`:""}`}const a=i===void 0?void 0:f0(i,t);return a?`${o}#${a}`:o}function d0(e){var t;return((t=e??ht())==null?void 0:t.getDataCollectionOptions().urlQueryParams)??!0}function Ei(e,t){return e===void 0?void 0:l0(e,d0(t))}const p0="thismessage:/";function h0(e){return"isRelative"in e}function Ad(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=t??(n?p0:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function ua(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 _0(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(",");let o="";if(t&&s!==-1){const a=e.slice(s+1);o=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${i?",base64":""}${o?`,${o}`:""}`}return e}function g0(e){let t=2166136261;for(let n=0;n>>0).toString(36)}function m0(e){var n;const t=e?Uc(e):(n=ht())==null?void 0:n.getDsn();return t?`/${g0(Ps(t))}`:void 0}function y0(e){const t=(e!=null&&e.startsWith("./")?e.slice(1):e??"").replace(/\/$/,"");return!t||t.startsWith("/")?t:`/${t}`}function S0(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function Dd(e){return Array.from(new Set(e))}function Md(e){var r;if((r=e._metadata)!=null&&r.optionsSetByUser)return e;const{integrations:t}=e,n={...e._metadata,optionsSetByUser:Object.keys(e).filter(i=>i!=="_metadata").sort()};return Array.isArray(t)&&(n.integrationsSetByUser=Dd(t.map(i=>i.name))),{...e,_metadata:n,...typeof t=="function"&&{integrations:i=>{const s=new Set(i),o=t(i),a=Array.isArray(o)?o:[o],c=new Set,u=new Set;for(const l of a)c.add(l.name),!s.has(l)&&!l.isDefaultInstance&&u.add(l.name);const f=new Set;for(const l of s)c.has(l.name)||f.add(l.name);return n.integrationsSetByUser=Array.from(u),f.size&&(n.removedDefaultIntegrations=Array.from(f).sort()),a}}}}function Nd(e,t,n=[t],r="npm"){const i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(s=>({name:`${r}:@sentry/${s}`,version:So})),i.version=So)}const b0="sentry-release",v0=100;function Hr(e,t){const n=ht(),r=Gn();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=v0}=n.getOptions();if(s<=0)return;const o={timestamp:Os(),...e},a=i?vi(N?"The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:":"",()=>En(()=>i(o,t)),()=>null):o;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}const E0="FunctionToString",bf=new WeakMap,T0=()=>({name:E0,setupOnce(){const e=Function.prototype.toString,t=Function.prototype.call.bind(e),n=Function.prototype.call.bind(Object.prototype.hasOwnProperty);try{Function.prototype.toString=function(){let r;try{bf.has(ht())&&n(this,"__sentry_original__")&&(r=Mc(this))}catch{}return t(r??this)}}catch{}},setup(e){bf.set(e,!0)}}),w0=We(T0),x0=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],k0="EventFilters",C0=We((e={})=>{let t;return{name:k0,setup(n){t=vf(e,n.getOptions())},processEvent(n,r,i){return t||(t=vf(e,i.getOptions())),O0(n,t)?null:n}}});function vf(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:x0],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function O0(e,t){if(e.type){if(e.type==="transaction"&&I0(e,t.ignoreTransactions))return N&&M.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${Rr(e)}`),!0}else{if(R0(e,t.ignoreErrors))return N&&M.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${Rr(e)}`),!0;if(M0(e))return N&&M.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${Rr(e)}`),!0;if(P0(e,t.denyUrls))return N&&M.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${Rr(e)}. Url: ${xo(e)}`),!0;if(!A0(e,t.allowUrls))return N&&M.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${Rr(e)}. Url: ${xo(e)}`),!0}return!1}function R0(e,t){return t!=null&&t.length?Ed(e).some(n=>Cs(n,t)):!1}function I0(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?Cs(n,t):!1}function P0(e,t){if(!(t!=null&&t.length))return!1;const n=xo(e);return n?Cs(n,t):!1}function A0(e,t){if(!(t!=null&&t.length))return!0;const n=xo(e);return n?Cs(n,t):!0}function D0(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function xo(e){var t,n,r;try{const i=(r=(n=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(s=>{var o,a,c;return((o=s.mechanism)==null?void 0:o.parent_id)===void 0&&((c=(a=s.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}))==null?void 0:n.stacktrace)==null?void 0:r.frames;return i?D0(i):null}catch{return N&&M.error(`Cannot extract url for event ${Rr(e)}`),null}}function M0(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function N0(e,t,n,r,i,s){var a;if(!((a=i.exception)!=null&&a.values)||!s||!Dn(s.originalException))return;const o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=oo(e,t,r,s.originalException,n,i.exception.values,o,0))}function oo(e,t,n,r,i,s,o,a){if(s.length>=n+1)return s;let c=[...s];if(Dn(r[i])){fa(o,a,r);const u=e(t,r[i]),f=c.length;la(u,i,f,a),c=oo(e,t,n,r[i],i,[u,...c],u,f)}return Ld(r)&&r.errors.forEach((u,f)=>{if(c.length{const f=r[u];if(c.length{for(const t of e)ko.delete(t)}}const Tf=new Set;function U0(){"console"in nt&&Cl.forEach(function(e){Tf.has(e)||!(e in nt.console)||(Tf.add(e),Ze(nt.console,e,function(t){return bo[e]=t,function(...n){const r=n[0],i=bo[e],s=ko.size&&typeof r=="string"&&Cs(r,ko);s||bn("console",{args:n,level:e}),(!s||N&&M.isEnabled())&&(i==null||i.apply(nt.console,n))}}))})}function H0(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const W0="Dedupe",Y0=()=>{let e;return{name:W0,processEvent(t){if(t.type)return t;try{if(j0(t,e))return N&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},V0=We(Y0);function j0(e,t){return t?!!(q0(e,t)||G0(e,t)):!1}function q0(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Fd(e,t)||!$d(e,t))}function G0(e,t){const n=wf(t),r=wf(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Fd(e,t)||!$d(e,t))}function $d(e,t){const n=Ru(e),r=Ru(t);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let i=0;i{const t=new Set(e.levels||Cl);return{name:X0,setup(n){const r=B0(({args:i,level:s})=>{ht()!==n||!t.has(s)||J0(s,i)});if(n.registerCleanup(r),e.filter){const i=z0(e.filter);n.registerCleanup(i)}}}});function J0(e,t){const n={category:"console",data:{arguments:t,logger:"console"},level:H0(e),message:xf(t)};if(e==="assert")if(t[0]===!1){const r=t.slice(1);n.message=r.length>0?`Assertion failed: ${xf(r)}`:"Assertion failed",n.data.arguments=r}else return;Hr(n,{input:t,level:e})}function xf(e){return"util"in nt&&typeof nt.util.format=="function"?nt.util.format(...e):Zh(e," ")}const Q0="ConversationId",Z0=()=>({name:Q0,setup(e){e.on("spanStart",t=>{const n=Ue().getScopeData(),r=Gn().getScopeData(),i=n.conversationId||r.conversationId;if(i){const{op:s,data:o,description:a}=vn(t);if(!(s!=null&&s.startsWith("gen_ai."))&&!o["ai.operationId"]&&!(a!=null&&a.startsWith("ai.")))return;t.setAttribute(P_,i)}})}}),ty=We(Z0),Ja=nt;function ey(){if(!("fetch"in Ja))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Qa(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ny(){var n;if(typeof EdgeRuntime=="string")return!0;if(!ey())return!1;if(Qa(Ja.fetch))return!0;let e=!1;const t=Ja.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=Qa(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){N&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function ry(e){const t="fetch",n=qr(t,e);return Gr(t,()=>iy()),n}function iy(e){gd()&&!ny()||Ze(nt,"fetch",function(t){return new Proxy(t,{apply(n,r,i){const s=new Error,{method:o,url:a}=sy(i),c={args:i,fetchData:{method:o,url:a},startTimestamp:pe()*1e3,virtualError:s,headers:oy(i)};return bn("fetch",{...c}),Reflect.apply(n,nt,i).then(async u=>(bn("fetch",{...c,endTimestamp:pe()*1e3,response:u}),u),u=>{var l,d;bn("fetch",{...c,endTimestamp:pe()*1e3,error:u}),Dn(u)&&u.stack===void 0&&(u.stack=s.stack,ze(u,"framesToPop",1));const f=((l=ht())==null?void 0:l.getOptions().enhanceFetchErrorMessages)??"always";if(f!==!1&&Dn(u)&&u.name==="TypeError"&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const p=new URL(c.fetchData.url,(d=nt.location)==null?void 0:d.href).host;p&&(f==="always"?u.message=`${u.message} (${p})`:ze(u,"__sentry_fetch_url_host__",p))}catch{}throw u})}})})}function ao(e,t){return Bo(e)&&!!e[t]}function kf(e){return typeof e=="string"?e:e?ao(e,"url")?e.url:e.toString?e.toString():"":""}function sy(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:kf(n),method:ao(r,"method")?String(r.method).toUpperCase():Dl(n)&&ao(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:kf(t),method:ao(t,"method")?String(t.method).toUpperCase():"GET"}}function oy(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Dl(t))return new Headers(t.headers)}catch{}}function Bd(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const ay=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,i,s)=>{var a;const o={componentName:Ki(i,!1),lifecycleHook:s,trace:i?Oh(i):""};if((t==null?void 0:t.attachProps)!==!1&&i&&((a=i.$options)!=null&&a.propsData?o.propsData=i.$options.propsData:i.$props&&(o.propsData=i.$props)),setTimeout(()=>{Td(r,{captureContext:{contexts:{vue:o}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,i,s);else throw r}},Cf=new WeakSet;function cy(){const e={$props:{}};return e.$root=e,e}function uy(e,t){if(Cf.has(e))return;const n=e,r=n.mount;if(typeof r!="function")return;const i=cy();Cf.add(e);const s=t;n.mount=function(...o){var a,c;(a=s.beforeMount)==null||a.call(i);try{return r.apply(this,o)}finally{(c=s.mounted)==null||c.call(i)}}}const Za=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ct=nt,fy=80,wr={};try{typeof Node<"u"&&(wr.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(wr.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,wr.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,wr.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,wr.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(wr.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function Zn(e,t,n){const r=wr[t];if(r)try{return r.call(e,n)}catch{}const i=e[t];return typeof i=="function"?i.call(e,n):i}function zd(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let s=0,o=0;const a=" > ",c=3;let u;const f=Array.isArray(t)?t:t.keyAttrs,l=Array.isArray(t)?void 0:t.maskAttributeFn,d=!Array.isArray(t)&&t.maxStringLength||fy;for(;n&&s++1&&o+i.length*c+u.length>=d));)i.push(u),o+=u.length,n=Zn(n,"parentNode");return i.reverse().join(a)}catch{return""}}function ly(e,t,n){const r=[],i=Zn(e,"tagName");if(!i)return"";if(typeof HTMLElement<"u"&&e instanceof HTMLElement){const o=Zn(e,"dataset");if(o){if(o.sentryComponent)return n?n("data-sentry-component",o.sentryComponent,e):o.sentryComponent;if(o.sentryElement)return n?n("data-sentry-element",o.sentryElement,e):o.sentryElement}}r.push(i.toLowerCase());const s=t!=null&&t.length?t.filter(o=>Zn(e,"getAttribute",o)).map(o=>[o,Zn(e,"getAttribute",o)]):null;if(s!=null&&s.length)s.forEach(([o,a])=>{r.push(`[${o}="${n&&a?n(o,a,e):a}"]`)});else{const o=Zn(e,"id");o&&r.push(`#${n?n("id",o,e):o}`);const a=Zn(e,"className");if(a&&Yn(a)){const c=(n?n("class",a,e):a).split(/\s+/);for(const u of c)r.push(`.${u}`)}}for(const o of["aria-label","type","name","title","alt"]){const a=Zn(e,"getAttribute",o);a&&r.push(`[${o}="${n?n(o,a,e):a}"]`)}return r.join("")}function dy(e,t,n){Ct.document&&Ct.addEventListener(e,t,n)}function py(e,t,n){Ct.document&&Ct.removeEventListener(e,t,n)}const hy=e=>{var n;const t=Ct.requestIdleCallback||Ct.setTimeout;if(((n=Ct.document)==null?void 0:n.visibilityState)==="hidden")e();else{let r=!1;const i=()=>{r||(e(),r=!0)};dy("visibilitychange",i,{once:!0,capture:!0}),t(()=>{i(),py("visibilitychange",i,{capture:!0})})}};function _y(e,t=5){if(!nt.HTMLElement)return null;let n=e;for(let r=0;r{const t=my(Ns());return t&&e(t)}}}function my(e){return e?Ad(e,Ns()||void 0):void 0}const yy=1e3;let Of,tc,ec;function Rf(e){return typeof e=="boolean"?e:!!(e!=null&&e.capture)}function Sy(e){const t="dom";qr(t,e),Gr(t,by)}function by(){if(!Ct.document)return;const e=bn.bind(null,"dom"),t=If(e,!0);Ct.document.addEventListener("click",t,!1),Ct.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var i,s;const r=(i=Ct[n])==null?void 0:i.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(Ze(r,"addEventListener",function(o){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=f[a]=f[a]||{captureListeners:new WeakSet,bubbleListeners:new WeakSet,listenerCount:0},d=Rf(u);if(!l.handler){const _=If(e);l.handler=_,l.capture=d,o.call(this,a,_,l.capture)}const p=l[d?"captureListeners":"bubbleListeners"];p.has(c)||(typeof u=="object"&&(u!=null&&u.once||u!=null&&u.signal)?l.sticky=!0:(p.add(c),l.listenerCount++))}catch{}return o.call(this,a,c,u)}}),Ze(r,"removeEventListener",function(o){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__||{},l=f[a];l!=null&&l[Rf(u)?"captureListeners":"bubbleListeners"].delete(c)&&(!--l.listenerCount&&!l.sticky&&(o.call(this,a,l.handler,l.capture),l.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,a,c,u)}}))})}function vy(e){if(e.type!==tc)return!1;try{if(!e.target||e.target._sentryId!==ec)return!1}catch{}return!0}function Ey(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function If(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Ty(n);if(Ey(n.type,r))return;ze(n,"_sentryCaptured",!0),r&&!r._sentryId&&ze(r,"_sentryId",dn());const i=n.type==="keypress"?"input":n.type;vy(n)||(e({event:n,name:i,global:t}),tc=n.type,ec=r?r._sentryId:void 0),clearTimeout(Of),Of=Ct.setTimeout(()=>{ec=void 0,tc=void 0},yy)}}function Ty(e){try{return e.target}catch{return null}}let Hs;function wy(){return"history"in Ct&&!!Ct.history}function Yd(e){const t="history";qr(t,e),Gr(t,xy)}function xy(){if(Ct.addEventListener("popstate",()=>{const t=Ct.location.href,n=Hs;Hs=t,n!==t&&bn("history",{from:n,to:t})}),!wy())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Hs,s=ky(String(r));if(Hs=s,i===s)return t.apply(this,n);bn("history",{from:i,to:s})}return t.apply(this,n)}}Ze(Ct.history,"pushState",e),Ze(Ct.history,"replaceState",e)}function ky(e){try{return new URL(e,Ct.location.origin).toString()}catch{return e}}const co={};function Cy(e){const t=co[e];if(t)return t;let n=Ct[e];if(Qa(n))return co[e]=n.bind(Ct);const r=Ct.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s!=null&&s[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){Za&&M.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(co[e]=n.bind(Ct))}function Oy(e){co[e]=void 0}const Ui="__sentry_xhr_v3__";function Ry(e){const t="xhr";qr(t,e),Gr(t,Iy)}function Iy(){if(!Ct.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){let i=new Error;const s=pe()*1e3,o=Yn(r[0])?r[0].toUpperCase():void 0,a=Py(r[1]);if(!o||a===void 0)return t.apply(n,r);n[Ui]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Ui];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:pe()*1e3,startTimestamp:s,xhr:n,virtualError:i};bn("xhr",f),i=void 0,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,p]=l,_=f[Ui];return _&&Yn(d)&&Yn(p)&&(_.request_headers[d.toLowerCase()]=p),u.apply(f,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Ui];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:pe()*1e3,xhr:n};return bn("xhr",s),t.apply(n,r)}})}function Py(e){if(Yn(e))return e;try{return e.toString()}catch{}}function Ay(e){if(typeof Element>"u")return!1;try{return e instanceof Element}catch{return!1}}const pt=nt;let nc=0;const Pf=[];function Vd(e){if(nc>0)return!0;const t=e?Pf.findIndex(n=>Dy(n,e)):-1;return t===-1?!1:(Pf.splice(t,1),!0)}function Dy(e,t){return e.msg===t.msg&&e.url===t.url&&e.line===t.line&&e.column===t.column}function My(){nc++,setTimeout(()=>{nc--})}function Ti(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const i=e.__sentry_wrapped__;return typeof i=="function"?i:e}if(Mc(e))return e}catch{return e}const r=function(...i){nt._sentryWrappedDepth=(nt._sentryWrappedDepth||0)+1;try{const s=i.map(o=>Ti(o,t));return e.apply(this,s)}catch(s){throw My(),Bc(o=>{o.addEventProcessor(a=>(t.mechanism&&(Aa(a,void 0),ui(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),Td(s)}),s}finally{nt._sentryWrappedDepth=(nt._sentryWrappedDepth||0)-1}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Ml(r,e),ze(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Af(e){const t=Ns(),{referrer:n}=pt.document||{},{userAgent:r}=pt.navigator||{};return{url:t,headers:{...n&&{Referer:Ei(n,e)},...r&&{"User-Agent":r}}}}function Qc(e,t){const n=jo(e,t),r={type:By(t),value:zy(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Ny(e,t,n,r){var c;const i=(c=ht())==null?void 0:c.getOptions().normalizeDepth,s=Vy(t),o={__serialized__:Fl(t,i)};if(s)return{exception:{values:[Qc(e,s)]},extra:o};const a={exception:{values:[{type:zo(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Wy(t,{isUnhandledRejection:r})}]},extra:o};if(n){const u=jo(e,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function da(e,t){return{exception:{values:[Qc(e,t)]}}}function jo(e,t){const n=t.stacktrace||t.stack||"",r=$y(t),i=Fy(t);try{return e(n,r,i)}catch{}return[]}const Ly=/Minified React error #\d+;/i;function $y(e){return e&&Ly.test(e.message)?1:0}function Fy(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function jd(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function By(e){const t=e==null?void 0:e.name;return!t&&jd(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function zy(e){const t=e==null?void 0:e.message;return jd(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Ef(t.error):Ef(e):"No error message"}function Uy(e,t,n,r){const i=Zc(e,t,(n==null?void 0:n.syntheticException)||void 0,r);return ui(i),i.level="error",n!=null&&n.event_id&&(i.event_id=n.event_id),Ms(i)}function Hy(e,t,n="info",r,i){const s=rc(e,t,(r==null?void 0:r.syntheticException)||void 0,i);return s.level=n,r!=null&&r.event_id&&(s.event_id=r.event_id),Ms(s)}function Zc(e,t,n,r,i){var a,c;let s;if(Al(t)&&t.error)return da(e,t.error);if(Pu(t)||Uh(t)){const u=t;if("stack"in t){s=da(e,t);const f=(c=(a=s.exception)==null?void 0:a.values)==null?void 0:c[0];if(r&&n&&f&&!f.stacktrace){const l=jo(e,n);l.length&&(f.stacktrace={frames:l},ui(s,{synthetic:!0}))}}else{const f=u.name||(Pu(u)?"DOMError":"DOMException"),l=u.message?`${f}: ${u.message}`:f;s=rc(e,l,n,r),Aa(s,l)}return s}if(Dn(t))return da(e,t);if(xs(t)||zo(t))return s=Ny(e,t,n,i),ui(s,{synthetic:!0}),s;const o=String(t);return s=rc(e,o,n,r),Aa(s,o),ui(s,{synthetic:!0}),s}function rc(e,t,n,r){const i={};if(r&&n){const s=jo(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),ui(i,{synthetic:!0})}if(Ac(t)){const{__sentry_template_string__:s,__sentry_template_values__:o}=t;return i.logentry={message:s,params:o},i}return i.message=t,i}function Wy(e,{isUnhandledRejection:t}){const n=Wh(e),r=t?"promise rejection":"exception";return Al(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:zo(e)?`Event \`${Yy(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Yy(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Vy(e){return Object.values(e).find(Dn)}const Ls=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function qd(e){const{tunnel:t,dsn:n,transportOptions:r}=e;if(!t)return{tunnel:t,transportOptions:r};if(typeof t=="string")return{tunnel:t,transportOptions:jy(t)?Df(r):r};const i=t===!0?{}:t,s=n&&Uc(n),o=i.path??(s&&m0(s));if(!o)return{tunnel:void 0,transportOptions:r};const a=`${y0(i.basePath)}${o}${i.trailingSlash?"/":""}`;return Ls&&M.log(`Tunneling events to "${a}"`),{tunnel:a,transportOptions:Df(r)}}function Df(e){return{...e,headers:{"Content-Type":"application/x-sentry-envelope",...e==null?void 0:e.headers}}}function jy(e){var n,r;const t=Ad(e,(n=pt.location)==null?void 0:n.href);return t?h0(t)||t.origin===((r=pt.location)==null?void 0:r.origin):!1}var qy=class extends i0{constructor(e){var a;const t=Gy({...e,...qd(e)}),n=pt.SENTRY_SDK_SOURCE||Hg();Nd(t,"browser",["browser"],n),super(t),t.routeProvider&&Hd(t.routeProvider,this),this._unhandledSessionStatus="unhandled";const{userInfo:r}=this.getDataCollectionOptions();(a=t._metadata)!=null&&a.sdk&&(t._metadata.sdk.settings={infer_ip:r?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:i}=this._options,s=()=>{pe()},o=[[pt.document,"visibilitychange",()=>{s(),pt.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[pt.document,"freeze",s],[pt.document,"resume",s],[pt,"pagehide",s],[pt,"pageshow",s]];o.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.addEventListener)==null?void 0:l.call(c,u,f)}),this.on("close",()=>o.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.removeEventListener)==null?void 0:l.call(c,u,f)})),r&&this.on("beforeSendSession",S0)}eventFromException(e,t){return Uy(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return Hy(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}};function Gy(e){return{sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e,release:e.release??Xy()}}function Xy(){var e;return typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ky()??((e=pt.SENTRY_RELEASE)==null?void 0:e.id)}function Ky(){var e,t,n;return((n=(t=(e=pt.document)==null?void 0:e.querySelector)==null?void 0:t.call(e,`meta[name="${b0}"]`))==null?void 0:n.getAttribute("content"))||void 0}const Jy=40;function Qy(e,t=Cy("fetch")){let n=0,r=0;async function i(s){const o=s.body.length;n+=o,r++;const a={body:s.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 Oy("fetch"),c}finally{n-=o,r--}}return Xm(e,i,Jc(e.bufferSize||Jy))}const Zy=30,tS=50;function ic(e,t,n,r){const i={filename:e,function:t===""?gi:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const eS=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nS=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?![^(]*\) )(?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rS=/\((\S*)(?::(\d+))(?::(\d+))\)/,iS=/at (.+?) ?\(data:(.+?),/,sS=e=>{var i;const t=e.match(iS);if(t)return{filename:``,function:t[1]};const n=eS.exec(e);if(n){const[,s,o,a]=n;return ic(s,gi,+o,+a)}const r=nS.exec(e);if(r){if(((i=r[2])==null?void 0:i.indexOf("eval"))===0){const a=rS.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[s,o]=Gd(r[1]||gi,r[2]);return ic(o,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},oS=[Zy,sS],aS=/^\s*(.*?)(?:\(([^()]*)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,cS=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,uS=e=>{const t=aS.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=cS.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let n=t[3],r=t[1]||gi;return[r,n]=Gd(r,n),ic(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},fS=[tS,uS],lS=[oS,fS],dS=Il(...lS),Gd=(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]:gi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ws=1024,pS="Breadcrumbs",hS=(e={})=>{const t={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:pS,setup(n){t.dom&&Sy(mS(n,t.dom)),t.xhr&&Ry(yS(n)),t.fetch&&ry(SS(n)),t.history&&Yd(bS(n)),t.sentry&&n.on("beforeSendEvent",gS(n))}}},_S=We(hS);function gS(e){return function(n){ht()===e&&Hr({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Rr(n)},{event:n})}}function mS(e,t){return function(r){if(ht()!==e)return;let i,s,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ws&&(Ls&&M.warn(`\`dom.maxStringLength\` cannot exceed ${Ws}, but a value of ${a} was configured. Sentry will use ${Ws} instead.`),a=Ws),typeof o=="string"&&(o=[o]);try{const u=r.event,f=vS(u)?u.target:u;i=zd(f,{keyAttrs:o,maxStringLength:a}),s=_y(f)}catch{i=""}if(i.length===0)return;const c={category:`ui.${r.name}`,message:i};s&&(c.data={"ui.component_name":s}),Hr(c,{event:r.event,name:r.name,global:r.global})}}function yS(e){return function(n){if(ht()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[Ui];if(!r||!i||!s)return;const{method:o,url:a,status_code:c,body:u}=s,f={method:o,url:sc(a,e),status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},d={category:"xhr",data:f,type:"http",level:Bd(c)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),Hr(d,l)}}function SS(e){return function(n){if(ht()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},o={category:"fetch",data:{...n.fetchData,url:sc(n.fetchData.url,e)},level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,s),Hr(o,s)}else{const s=n.response,o={...n.fetchData,url:sc(n.fetchData.url,e),status_code:s==null?void 0:s.status},a={input:n.args,response:s,startTimestamp:r,endTimestamp:i},c={category:"fetch",data:o,type:"http",level:Bd(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Hr(c,a)}}}function bS(e){return function(n){if(ht()!==e)return;let r=n.from,i=n.to;const s=ua(pt.location.href);let o=r?ua(r):void 0;const a=ua(i);o!=null&&o.path||(o=s),s.protocol===a.protocol&&s.host===a.host&&(i=a.relative),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),Hr({category:"navigation",data:{from:Ei(r),to:Ei(i)}})}}function sc(e,t){var r;const n=e===""?(r=pt.location)==null?void 0:r.href:void 0;return Ei(n?n.split("#")[0]??"":e,t)}function vS(e){return!!e&&!!e.target}const ES="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(","),TS="BrowserApiErrors",wS=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:TS,setupOnce(){t.setTimeout&&Ze(pt,"setTimeout",Mf),t.setInterval&&Ze(pt,"setInterval",Mf),t.requestAnimationFrame&&Ze(pt,"requestAnimationFrame",kS),t.XMLHttpRequest&&"XMLHttpRequest"in pt&&Ze(XMLHttpRequest.prototype,"send",CS);const n=t.eventTarget;n&&(Array.isArray(n)?n:ES).forEach(r=>OS(r,t))}}},xS=We(wS);function Mf(e){return function(...t){const n=t[0];return t[0]=Ti(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${lr(e)}`}}),e.apply(this,t)}}function kS(e){return function(t){return e.apply(this,[Ti(t,{mechanism:{data:{handler:lr(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function CS(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&Ze(n,r,function(i){const s={mechanism:{data:{handler:lr(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},o=Mc(i);return o&&(s.mechanism.data.handler=lr(o)),Ti(i,s)})}),e.apply(this,t)}}function OS(e,t){var r,i;const n=(r=pt[e])==null?void 0:r.prototype;(i=n==null?void 0:n.hasOwnProperty)!=null&&i.call(n,"addEventListener")&&(Ze(n,"addEventListener",function(s){return function(o,a,c){try{RS(a)&&(a.handleEvent=Ti(a.handleEvent,{mechanism:{data:{handler:lr(a),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&IS(this,o,a),s.apply(this,[o,Ti(a,{mechanism:{data:{handler:lr(a),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),Ze(n,"removeEventListener",function(s){return function(o,a,c){try{if(Object.prototype.hasOwnProperty.call(a,"__sentry_wrapped__")){const u=a.__sentry_wrapped__;u&&s.call(this,o,u,c)}}catch{}return s.call(this,o,a,c)}}))}function RS(e){return typeof e.handleEvent=="function"}function IS(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const PS=We((e={})=>{const t=e.lifecycle??"page";return{name:"BrowserSession",setupOnce(){if(typeof pt.document>"u"){Ls&&M.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}pf({ignoreDuration:!0});let n=!1;hy(()=>{n||(ca(),n=!0)});const r=Gn();let i=r.getUser();r.addScopeListener(s=>{const o=s.getUser();((i==null?void 0:i.id)!==(o==null?void 0:o.id)||(i==null?void 0:i.ip_address)!==(o==null?void 0:o.ip_address))&&(i=o,n&&ca())}),t==="route"&&Yd(({from:s,to:o})=>{s!==o&&(pf({ignoreDuration:!0}),ca(),n=!0)})}}}),AS="CultureContext",DS=()=>({name:AS,preprocessEvent(e){var n;const t=Nf();t&&(e.contexts={...e.contexts,culture:{...t,...(n=e.contexts)==null?void 0:n.culture}})},processSegmentSpan(e){const t=Nf();t&&As(e,{[Vl]:t.locale,[jl]:t.timezone,[I_]:t.calendar})}}),MS=We(DS);function Nf(){try{const e=pt.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const NS="GlobalHandlers",LS=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:NS,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(FS(n),Lf("onerror")),t.onunhandledrejection&&(BS(n),Lf("onunhandledrejection"))}}},$S=We(LS);function FS(e){$h(t=>{const{stackParser:n,attachStacktrace:r}=Xd();if(ht()!==e||Vd(t))return;const{msg:i,url:s,line:o,column:a,error:c}=t,u=HS(Zc(n,c||i,void 0,r,!1),s,o,a);u.level="error",wd(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function BS(e){Bh(t=>{const{stackParser:n,attachStacktrace:r}=Xd();if(ht()!==e||Vd())return;const i=zS(t),s=Xr(i)?US(i):Zc(n,i,void 0,r,!0);s.level="error",wd(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function zS(e){if(Xr(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 US(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function HS(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:WS(t)??Ns(),function:gi,in_app:!0}),e}function Lf(e){Ls&&M.log(`Global Handler attached: ${e}`)}function Xd(){var e;return((e=ht())==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function WS(e){if(!(!Yn(e)||e.length===0))return e.startsWith("data:")?`<${_0(e,!1)}>`:e}const YS=We(()=>({name:"HttpContext",preprocessEvent(e,t,n){var c;if(!pt.navigator&&!pt.location&&!pt.document)return;const{url:r,headers:i}=Af(n),s=n.getDataCollectionOptions().httpHeaders.request,o=Object.entries(((c=e.request)==null?void 0:c.headers)??{}).filter(([u])=>!(u in i)),a={...Va(i,s),...Object.fromEntries(o)};e.request={url:Ei(r,n),...e.request,...Object.keys(a).length>0?{headers:a}:{headers:void 0}}},processSpan(e,t){var a;if(!pt.navigator&&!pt.location&&!pt.document)return;const n=Af(t),r=Va(n.headers,t.getDataCollectionOptions().httpHeaders.request),i=r.Referer,{hostname:s,protocol:o}=pt.location||{};As(e,{[G_]:r["User-Agent"],[$_]:o==="file:"||s==="localhost"||s==="127.0.0.1"||s==="[::1]"||!!(s!=null&&s.endsWith(".localhost")),...e.is_segment&&{[q_]:((a=e.attributes)==null?void 0:a[dr])!=="http.client"?Ei(n.url):void 0,[`${A_}.referer`]:i?[i]:void 0}})}})),VS="cause",jS=5,qS="LinkedErrors",GS=(e={})=>{const t=e.limit||jS,n=e.key||VS;return{name:qS,preprocessEvent(r,i,s){const o=s.getOptions();N0(Qc,o.stackParser,n,t,r,i)}}},XS=We(GS),KS=/^HTML(\w*)Element$/;function Kd(e){if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Ay(e)){const t=JS(e);if(KS.test(t))return`[HTMLElement: ${zd(e)}]`}}function JS(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function QS(){return ZS()?(Ls&&En(()=>{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 ZS(){var n,r;if(typeof pt.window>"u")return!1;const e=pt;if(e.nw||!((r=(n=e.chrome||e.browser)==null?void 0:n.runtime)!=null&&r.id))return!1;const t=Ns();return!(pt===pt.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Jd(e){return[C0(),w0(),ty(),xS(),_S(),K0(),$S(),XS(),V0(),YS(),MS(),PS()]}function tb(e={}){const t=Md(e),n=!t.skipBrowserExtensionCheck&&QS();let r=t.defaultIntegrations==null?Jd():t.defaultIntegrations;const i=vg({integrations:t.integrations,defaultIntegrations:r}),s={...t,...qd(t),enabled:n?!1:t.enabled,stackParser:Nh(t.stackParser||dS),integrations:i,transport:t.transport||Qy};return Ll(Kd),o0(qy,s)}function eb(e){return gy(t=>{var s,o;const n=e(),r=(s=n==null?void 0:n.resolve)==null?void 0:s.call(n,ib(n,t));if(!r)return;const i="matched"in r?r:r.route;return(o=i.matched[i.matched.length-1])==null?void 0:o.path})}function nb(e){var t,n,r;return(r=(n=(t=Array.isArray(e)?e[0]:e)==null?void 0:t.config)==null?void 0:n.globalProperties)==null?void 0:r.$router}function rb(e){let t;return e.mixin({beforeCreate(){t=t||this.$options.router}}),()=>t}function ib(e,{pathname:t,search:n,hash:r}){var o,a,c;const i=((a=(o=e.options)==null?void 0:o.history)==null?void 0:a.base)??((c=e.history)==null?void 0:c.base)??"",s=i.indexOf("#");if(s>-1||e.mode==="hash"){const u=s>-1?i.slice(s):"#",f=r.slice(r.startsWith(u)?u.length:1);return f.startsWith("/")?f:`/${f}`}return`${i&&t.toLowerCase().startsWith(i.toLowerCase())?t.slice(i.length)||"/":t}${n}${r}`}const sb={activate:sa,create:sa,mount:sa,update:mm,unmount:af,destroy:af},ob={activate:oa,create:oa,mount:oa,update:ym,unmount:cf,destroy:cf},ab={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function pa(e,t,n){const r=e.$root;r.$_sentryRootComponentSpanActivity=t,r.$_sentryRootComponentSpanTimer||Qd(r,t,n)}function Qd(e,t,n){e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$_sentryRootComponentSpanTimer=void 0;const r=e.$_sentryRootComponentSpanActivity??t;if(r>t){Qd(e,r,(r-t)*1e3);return}e.$_sentryRootComponentSpan&&(e.$_sentryRootComponentSpan.end(r),e.$_sentryRootComponentSpan=void 0)},n)}function cb(e,t){function n(r){return r.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(r=>n(t)===n(r))}const ub=(e={})=>{const t=Dd((e.hooks||[]).concat(xl)),n={},r=e.timeout||2e3;for(const i of t){const s=ab[i];if(!s){kl&&M.warn(`Unknown hook: ${i}`);continue}for(const o of s)n[o]=function(){var h,g;const a=this.$root===this,c=ht(),u=!!c&&Jr(c),f=Ki(this,!1),l=((h=f.match(/^<([^\s]*)>(?: at [^\s]*)?$/))==null?void 0:h[1])??f,d=l==="Anonymous"?void 0:l;if(a){const v="Application Render";this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||of({name:u?d||Sm:v,attributes:{[dr]:gm,[ds]:"auto.ui.vue",[Hu]:d||void 0,...u&&{[Uu]:v}},onlyIfParent:!0}),pa(this,pe(),r)}if(!(a||(Array.isArray(e.trackComponents)?cb(e.trackComponents,f):e.trackComponents))){pa(this,pe(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const p=o===s[0],_=((g=this.$root)==null?void 0:g.$_sentryRootComponentSpan)||Yc();if(p){if(_){const v=this.$_sentryComponentSpans[i];v&&v.end();const T=`Vue ${f}`;this.$_sentryComponentSpans[i]=of({name:u?d||ob[i]:T,attributes:{[dr]:sb[i],[ds]:"auto.ui.vue",[Hu]:d||void 0,...u&&{[Uu]:T}},onlyIfParent:!0})}}else{const v=this.$_sentryComponentSpans[i];if(!v)return;v.end(),pa(this,pe(),r)}}}return n},fb={Vue:nt.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:xl,timeout:2e3,trackComponents:!1}},lb="Vue",db=We((e={})=>({name:lb,setup(t){const n={...fb,...t.getOptions(),...e};if(!n.Vue&&!n.app){En(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}if(!Wd(t)){const{app:r,Vue:i}=n,s=r?()=>nb(r):rb(i);Hd(eb(s),t)}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(r=>$f(r,n)):n.Vue&&$f(n.Vue,n)}})),$f=(e,t)=>{var n;if(kl&&((n=e._instance)==null?void 0:n.isMounted)===!0&&En(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&ay(e,t),_s(t)){const r=ub(t.tracingOptions);e.mixin(r),pb(e,r)||(uy(e,r),hb(e,t.tracingOptions))}};function pb(e,t){var r;const n=(r=e._context)==null?void 0:r.mixins;return!n||n.includes(t)}function hb(e,t){const n=t==null?void 0:t.trackComponents;if(!(n===!0||Array.isArray(n)&&n.length>0))return;const r="$nuxt"in e?"Set `vue: { optionsApi: true }` in your `nuxt.config.ts`.":"Set `__VUE_OPTIONS_API__` to `true` in the `define` config of your bundler.";En(()=>{console.warn(`[@sentry/vue]: The Vue Options API is disabled (\`__VUE_OPTIONS_API__: false\`). Sentry still records the \`Application Render\` and root component mount spans, but component tracking (\`trackComponents\`) needs the Options API. ${r}`)})}function _b(e){return!!(typeof e=="object"&&e&&(e.__isVue||e._isVue))}function gb(e){return!!(typeof e=="object"&&(e!=null&&e.__v_isVNode))}function mb(e){return _b(e)?"[VueViewModel]":gb(e)?"[VueVNode]":Kd(e)}function yb(e={}){const t={defaultIntegrations:[...Jd(),db()],...Md(e)};Nd(t,"vue");const n=tb(t);return Ll(mb),n}function zn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*! * GSAP 3.14.1 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var nn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},wi={duration:.5,overwrite:!1,delay:0},tu,he,It,fn=1e8,wt=1/fn,oc=Math.PI*2,Sb=oc/4,bb=0,tp=Math.sqrt,vb=Math.cos,Eb=Math.sin,ae=function(t){return typeof t=="string"},Bt=function(t){return typeof t=="function"},jn=function(t){return typeof t=="number"},eu=function(t){return typeof t>"u"},Nn=function(t){return typeof t=="object"},Le=function(t){return t!==!1},nu=function(){return typeof window<"u"},Ys=function(t){return Bt(t)||ae(t)},ep=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},we=Array.isArray,Tb=/random\([^)]+\)/g,wb=/,\s*/g,Ff=/(?:-?\.?\d|\.)+/gi,np=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,si=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ha=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,rp=/[+-]=-?[.\d]+/,xb=/[^,'"\[\]\s]+/gi,kb=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Nt,Cn,ac,ru,rn={},Co={},ip,sp=function(t){return(Co=xi(t,rn))&&He},iu=function(t,n){return console.warn("Invalid property",t,"set to",n,"Missing plugin? gsap.registerPlugin()")},gs=function(t,n){return!n&&console.warn(t)},op=function(t,n){return t&&(rn[t]=n)&&Co&&(Co[t]=n)||rn},ms=function(){return 0},Cb={suppressEvents:!0,isStart:!0,kill:!1},uo={suppressEvents:!0,kill:!1},Ob={suppressEvents:!0},su={},cr=[],cc={},ap,Xe={},_a={},Bf=30,fo=[],ou="",au=function(t){var n=t[0],r,i;if(Nn(n)||Bt(n)||(t=[t]),!(r=(n._gsap||{}).harness)){for(i=fo.length;i--&&!fo[i].targetTest(n););r=fo[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Pp(t[i],r)))||t.splice(i,1);return t},Ar=function(t){return t._gsap||au(ln(t))[0]._gsap},cp=function(t,n,r){return(r=t[n])&&Bt(r)?t[n]():eu(r)&&t.getAttribute&&t.getAttribute(n)||r},$e=function(t,n){return(t=t.split(",")).forEach(n)||t},Ht=function(t){return Math.round(t*1e5)/1e5||0},Mt=function(t){return Math.round(t*1e7)/1e7||0},fi=function(t,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return t=parseFloat(t),r==="+"?t+i:r==="-"?t-i:r==="*"?t*i:t/i},Rb=function(t,n){for(var r=n.length,i=0;t.indexOf(n[i])<0&&++ia;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=t[r],t[r]=n),n._next?n._next._prev=n:t[i]=n,n._prev=o,n.parent=n._dp=t,n},qo=function(t,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,o=n._next;s?s._next=o:t[r]===n&&(t[r]=o),o?o._prev=s:t[i]===n&&(t[i]=s),n._next=n._prev=n.parent=null},pr=function(t,n){t.parent&&(!n||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Dr=function(t,n){if(t&&(!n||n._end>t._dur||n._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Ab=function(t){for(var n=t.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return t},uc=function(t,n,r,i){return t._startAt&&(he?t._startAt.revert(uo):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(n,!0,i))},Db=function e(t){return!t||t._ts&&e(t.parent)},Uf=function(t){return t._repeat?ki(t._tTime,t=t.duration()+t._rDelay)*t:0},ki=function(t,n){var r=Math.floor(t=Mt(t/n));return t&&r===t?r-1:r},Io=function(t,n){return(t-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Go=function(t){return t._end=Mt(t._start+(t._tDur/Math.abs(t._ts||t._rts||wt)||0))},Xo=function(t,n){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Mt(r._time-(t._ts>0?n/t._ts:((t._dirty?t.totalDuration():t._tDur)-n)/-t._ts)),Go(t),r._dirty||Dr(r,t)),t},pp=function(t,n){var r;if((n._time||!n._dur&&n._initted||n._startwt)&&n.render(r,!0)),Dr(t,n)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-wt}},In=function(t,n,r,i){return n.parent&&pr(n),n._start=Mt((jn(r)?r:r||t!==Nt?an(t,r,n):t._time)+n._delay),n._end=Mt(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),dp(t,n,"_first","_last",t._sort?"_start":0),fc(n)||(t._recent=n),i||pp(t,n),t._ts<0&&Xo(t,t._tTime),t},hp=function(t,n){return(rn.ScrollTrigger||iu("scrollTrigger",n))&&rn.ScrollTrigger.create(n,t)},_p=function(t,n,r,i,s){if(fu(t,n,s),!t._initted)return 1;if(!r&&t._pt&&!he&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&ap!==Je.frame)return cr.push(t),t._lazy=[s,i],1},Mb=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},fc=function(t){var n=t.data;return n==="isFromStart"||n==="isStart"},Nb=function(t,n,r,i){var s=t.ratio,o=n<0||!n&&(!t._start&&Mb(t)&&!(!t._initted&&fc(t))||(t._ts<0||t._dp._ts<0)&&!fc(t))?0:1,a=t._rDelay,c=0,u,f,l;if(a&&t._repeat&&(c=$s(0,t._tDur,n),f=ki(c,a),t._yoyo&&f&1&&(o=1-o),f!==ki(t._tTime,a)&&(s=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==s||he||i||t._zTime===wt||!n&&t._zTime){if(!t._initted&&_p(t,n,i,r,c))return;for(l=t._zTime,t._zTime=n||(r?wt:0),r||(r=n&&!l),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=c,u=t._pt;u;)u.r(o,u.d),u=u._next;n<0&&uc(t,n,r,!0),t._onUpdate&&!r&&tn(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&tn(t,"onRepeat"),(n>=t._tDur||n<0)&&t.ratio===o&&(o&&pr(t,1),!r&&!he&&(tn(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=n)},Lb=function(t,n,r){var i;if(r>n)for(i=t._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start0&&!i&&Xo(t,t._tTime=t._tDur*a),t.parent&&Go(t),r||Dr(t.parent,t),t},Hf=function(t){return t instanceof Ae?Dr(t):Ci(t,t._dur)},$b={_start:0,endTime:ms,totalDuration:ms},an=function e(t,n,r){var i=t.labels,s=t._recent||$b,o=t.duration()>=fn?s.endTime(!1):t._dur,a,c,u;return ae(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),u=n.substr(-1)==="%",a=n.indexOf("="),c==="<"||c===">"?(a>=0&&(n=n.replace(/=/,"")),(c==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(a<0?s:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(a-1)+n.substr(a+1)),u&&r&&(c=c/100*(we(r)?r[0]:r).totalDuration()),a>1?e(t,n.substr(0,a-1),r)+c:o+c)):n==null?o:+n},ts=function(t,n,r){var i=jn(n[1]),s=(i?2:1)+(t<2?0:1),o=n[s],a,c;if(i&&(o.duration=n[1]),o.parent=r,t){for(a=o,c=r;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=Le(c.vars.inherit)&&c.parent;o.immediateRender=Le(a.immediateRender),t<2?o.runBackwards=1:o.startAt=n[s-1]}return new qt(n[0],o,n[s+1])},Sr=function(t,n){return t||t===0?n(t):n},$s=function(t,n,r){return rn?n:r},Ee=function(t,n){return!ae(t)||!(n=kb.exec(t))?"":n[1]},Fb=function(t,n,r){return Sr(r,function(i){return $s(t,n,i)})},lc=[].slice,gp=function(t,n){return t&&Nn(t)&&"length"in t&&(!n&&!t.length||t.length-1 in t&&Nn(t[0]))&&!t.nodeType&&t!==Cn},Bb=function(t,n,r){return r===void 0&&(r=[]),t.forEach(function(i){var s;return ae(i)&&!n||gp(i,1)?(s=r).push.apply(s,ln(i)):r.push(i)})||r},ln=function(t,n,r){return It&&!n&&It.selector?It.selector(t):ae(t)&&!r&&(ac||!Oi())?lc.call((n||ru).querySelectorAll(t),0):we(t)?Bb(t,r):gp(t)?lc.call(t,0):t?[t]:[]},dc=function(t){return t=ln(t)[0]||gs("Invalid scope")||{},function(n){var r=t.current||t.nativeElement||t;return ln(n,r.querySelectorAll?r:r===t?gs("Invalid scope")||ru.createElement("div"):t)}},mp=function(t){return t.sort(function(){return .5-Math.random()})},yp=function(t){if(Bt(t))return t;var n=Nn(t)?t:{each:t},r=Mr(n.ease),i=n.from||0,s=parseFloat(n.base)||0,o={},a=i>0&&i<1,c=isNaN(i)||a,u=n.axis,f=i,l=i;return ae(i)?f=l={center:.5,edges:.5,end:1}[i]||0:!a&&c&&(f=i[0],l=i[1]),function(d,p,_){var h=(_||n).length,g=o[h],v,T,k,m,b,x,E,C,O;if(!g){if(O=n.grid==="auto"?0:(n.grid||[1,fn])[1],!O){for(E=-fn;E<(E=_[O++].getBoundingClientRect().left)&&OE&&(E=b),bh?h-1:u?u==="y"?h/O:O:Math.max(O,h/O))||0)*(i==="edges"?-1:1),g.b=h<0?s-h:s,g.u=Ee(n.amount||n.each)||0,r=r&&h<0?Op(r):r}return h=(g[d]-g.min)/g.max||0,Mt(g.b+(r?r(h):h)*g.v)+g.u}},pc=function(t){var n=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=Mt(Math.round(parseFloat(r)/t)*t*n);return(i-i%1)/n+(jn(r)?0:Ee(r))}},Sp=function(t,n){var r=we(t),i,s;return!r&&Nn(t)&&(i=r=t.radius||fn,t.values?(t=ln(t.values),(s=!jn(t[0]))&&(i*=i)):t=pc(t.increment)),Sr(n,r?Bt(t)?function(o){return s=t(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),c=parseFloat(s?o.y:0),u=fn,f=0,l=t.length,d,p;l--;)s?(d=t[l].x-a,p=t[l].y-c,d=d*d+p*p):d=Math.abs(t[l]-a),di?s-o:o)})},ys=function(t){return t.replace(Tb,function(n){var r=n.indexOf("[")+1,i=n.substring(r||7,r?n.indexOf("]"):n.length-1).split(wb);return bp(r?i:+i[0],r?0:+i[1],+i[2]||1e-5)})},Ep=function(t,n,r,i,s){var o=n-t,a=i-r;return Sr(s,function(c){return r+((c-t)/o*a||0)})},Vb=function e(t,n,r,i){var s=isNaN(t+n)?0:function(p){return(1-p)*t+p*n};if(!s){var o=ae(t),a={},c,u,f,l,d;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(we(t)&&!we(n)){for(f=[],l=t.length,d=l-2,u=1;u(a=Math.abs(a))&&(c=o,s=a);return c},tn=function(t,n,r){var i=t.vars,s=i[n],o=It,a=t._ctx,c,u,f;if(s)return c=i[n+"Params"],u=i.callbackScope||t,r&&cr.length&&Oo(),a&&(It=a),f=c?s.apply(u,c):s.call(u),It=o,f},Hi=function(t){return pr(t),t.scrollTrigger&&t.scrollTrigger.kill(!!he),t.progress()<1&&tn(t,"onInterrupt"),t},oi,Tp=[],wp=function(t){if(t)if(t=!t.name&&t.default||t,nu()||t.headless){var n=t.name,r=Bt(t),i=n&&!r&&t.init?function(){this._props=[]}:t,s={init:ms,render:pu,add:uu,kill:av,modifier:ov,rawVars:0},o={targetTest:0,get:0,getSetter:du,aliases:{},register:0};if(Oi(),t!==i){if(Xe[n])return;sn(i,sn(Ro(t,s),o)),xi(i.prototype,xi(s,Ro(t,o))),Xe[i.prop=n]=i,t.targetTest&&(fo.push(i),su[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}op(n,i),t.register&&t.register(He,i,Fe)}else Tp.push(t)},Tt=255,Wi={aqua:[0,Tt,Tt],lime:[0,Tt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Tt],navy:[0,0,128],white:[Tt,Tt,Tt],olive:[128,128,0],yellow:[Tt,Tt,0],orange:[Tt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Tt,0,0],pink:[Tt,192,203],cyan:[0,Tt,Tt],transparent:[Tt,Tt,Tt,0]},ga=function(t,n,r){return t+=t<0?1:t>1?-1:0,(t*6<1?n+(r-n)*t*6:t<.5?r:t*3<2?n+(r-n)*(2/3-t)*6:n)*Tt+.5|0},xp=function(t,n,r){var i=t?jn(t)?[t>>16,t>>8&Tt,t&Tt]:0:Wi.black,s,o,a,c,u,f,l,d,p,_;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Wi[t])i=Wi[t];else if(t.charAt(0)==="#"){if(t.length<6&&(s=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+s+s+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Tt,i&Tt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Tt,t&Tt]}else if(t.substr(0,3)==="hsl"){if(i=_=t.match(Ff),!n)c=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,o=f<=.5?f*(u+1):f+u-f*u,s=f*2-o,i.length>3&&(i[3]*=1),i[0]=ga(c+1/3,s,o),i[1]=ga(c,s,o),i[2]=ga(c-1/3,s,o);else if(~t.indexOf("="))return i=t.match(np),r&&i.length<4&&(i[3]=1),i}else i=t.match(Ff)||Wi.transparent;i=i.map(Number)}return n&&!_&&(s=i[0]/Tt,o=i[1]/Tt,a=i[2]/Tt,l=Math.max(s,o,a),d=Math.min(s,o,a),f=(l+d)/2,l===d?c=u=0:(p=l-d,u=f>.5?p/(2-l-d):p/(l+d),c=l===s?(o-a)/p+(ot||v<0)&&(r+=v-n),i+=v,b=i-r,k=b-o,(k>0||T)&&(x=++l.frame,d=b-l.time*1e3,l.time=b=b/1e3,o+=k+(k>=s?4:s-k),m=1),T||(c=u(h)),m)for(p=0;p=v&&p--},_listeners:a},l}(),Oi=function(){return!Ss&&Je.wake()},dt={},qb=/^[\d.\-M][\d.\-,\s]/,Gb=/["']/g,Xb=function(t){for(var n={},r=t.substr(1,t.length-3).split(":"),i=r[0],s=1,o=r.length,a,c,u;s1&&r.config?r.config.apply(null,~t.indexOf("{")?[Xb(n[1])]:Kb(t).split(",").map(fp)):dt._CE&&qb.test(t)?dt._CE("",t):r},Op=function(t){return function(n){return 1-t(1-n)}},Rp=function e(t,n){for(var r=t._first,i;r;)r instanceof Ae?e(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?e(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},Mr=function(t,n){return t&&(Bt(t)?t:dt[t]||Jb(t))||n},Qr=function(t,n,r,i){r===void 0&&(r=function(c){return 1-n(1-c)}),i===void 0&&(i=function(c){return c<.5?n(c*2)/2:1-n((1-c)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},o;return $e(t,function(a){dt[a]=rn[a]=s,dt[o=a.toLowerCase()]=r;for(var c in s)dt[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=dt[a+"."+c]=s[c]}),s},Ip=function(t){return function(n){return n<.5?(1-t(1-n*2))/2:.5+t((n-.5)*2)/2}},ma=function e(t,n,r){var i=n>=1?n:1,s=(r||(t?.3:.45))/(n<1?n:1),o=s/oc*(Math.asin(1/i)||0),a=function(f){return f===1?1:i*Math.pow(2,-10*f)*Eb((f-o)*s)+1},c=t==="out"?a:t==="in"?function(u){return 1-a(1-u)}:Ip(a);return s=oc/s,c.config=function(u,f){return e(t,u,f)},c},ya=function e(t,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},i=t==="out"?r:t==="in"?function(s){return 1-r(1-s)}:Ip(r);return i.config=function(s){return e(t,s)},i};$e("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;Qr(e+",Power"+(n-1),t?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});dt.Linear.easeNone=dt.none=dt.Linear.easeIn;Qr("Elastic",ma("in"),ma("out"),ma());(function(e,t){var n=1/t,r=2*n,i=2.5*n,s=function(a){return a0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},t.totalDuration=function(r){return arguments.length?(this._dirty=0,Ci(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(r,i){if(Oi(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Xo(this,r),!s._dp||s.parent||pp(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r0||!this._tDur&&!r)&&In(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===wt||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),up(this,r,i)),this},t.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Uf(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},t.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Uf(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?ki(this._tTime,s)+1:1},t.timeScale=function(r,i){if(!arguments.length)return this._rts===-wt?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Io(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-wt?0:this._rts,this.totalTime($s(-Math.abs(this._delay),this.totalDuration(),s),i!==!1),Go(this),Ab(this)},t.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Oi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==wt&&(this._tTime-=wt)))),this):this._ps},t.startTime=function(r){if(arguments.length){this._start=Mt(r);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&In(i,this,this._start-this._delay),this}return this._start},t.endTime=function(r){return this._start+(Le(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Io(i.rawTime(r),this):this._tTime:this._tTime},t.revert=function(r){r===void 0&&(r=Ob);var i=he;return he=r,cu(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),he=i,this},t.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},t.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Hf(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,Hf(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},t.seek=function(r,i){return this.totalTime(an(this,r),Le(i))},t.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Le(i)),this._dur||(this._zTime=-wt),this},t.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},t.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-wt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-wt,this},t.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},t.then=function(r){var i=this,s=i._prom;return new Promise(function(o){var a=Bt(r)?r:lp,c=function(){var f=i.then;i.then=null,s&&s(),Bt(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=f),o(a),i.then=f};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?c():i._prom=c})},t.kill=function(){Hi(this)},e}();sn(bs.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-wt,_prom:0,_ps:!1,_rts:1});var Ae=function(e){Zd(t,e);function t(r,i){var s;return r===void 0&&(r={}),s=e.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=Le(r.sortChildren),Nt&&In(r.parent||Nt,zn(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&hp(zn(s),r.scrollTrigger),s}var n=t.prototype;return n.to=function(i,s,o){return ts(0,arguments,this),this},n.from=function(i,s,o){return ts(1,arguments,this),this},n.fromTo=function(i,s,o,a){return ts(2,arguments,this),this},n.set=function(i,s,o){return s.duration=0,s.parent=this,Zi(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new qt(i,s,an(this,o),1),this},n.call=function(i,s,o){return In(this,qt.delayedCall(0,i,s),o)},n.staggerTo=function(i,s,o,a,c,u,f){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=u,o.onCompleteParams=f,o.parent=this,new qt(i,o,an(this,c)),this},n.staggerFrom=function(i,s,o,a,c,u,f){return o.runBackwards=1,Zi(o).immediateRender=Le(o.immediateRender),this.staggerTo(i,s,o,a,c,u,f)},n.staggerFromTo=function(i,s,o,a,c,u,f,l){return a.startAt=o,Zi(a).immediateRender=Le(a.immediateRender),this.staggerTo(i,s,a,c,u,f,l)},n.render=function(i,s,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:Mt(i),l=this._zTime<0!=i<0&&(this._initted||!u),d,p,_,h,g,v,T,k,m,b,x,E;if(this!==Nt&&f>c&&i>=0&&(f=c),f!==this._tTime||o||l){if(a!==this._time&&u&&(f+=this._time-a,i+=this._time-a),d=f,m=this._start,k=this._ts,v=!k,l&&(u||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(x=this._yoyo,g=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(g*100+i,s,o);if(d=Mt(f%g),f===c?(h=this._repeat,d=u):(b=Mt(f/g),h=~~b,h&&h===b&&(d=u,h--),d>u&&(d=u)),b=ki(this._tTime,g),!a&&this._tTime&&b!==h&&this._tTime-b*g-this._dur<=0&&(b=h),x&&h&1&&(d=u-d,E=1),h!==b&&!this._lock){var C=x&&b&1,O=C===(x&&h&1);if(h=a&&i>=0)for(p=this._first;p;){if(_=p._next,(p._act||d>=p._start)&&p._ts&&T!==p){if(p.parent!==this)return this.render(i,s,o);if(p.render(p._ts>0?(d-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(d-p._start)*p._ts,s,o),d!==this._time||!this._ts&&!v){T=0,_&&(f+=this._zTime=-wt);break}}p=_}else{p=this._last;for(var R=i<0?i:d;p;){if(_=p._prev,(p._act||R<=p._end)&&p._ts&&T!==p){if(p.parent!==this)return this.render(i,s,o);if(p.render(p._ts>0?(R-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(R-p._start)*p._ts,s,o||he&&cu(p)),d!==this._time||!this._ts&&!v){T=0,_&&(f+=this._zTime=R?-wt:wt);break}}p=_}}if(T&&!s&&(this.pause(),T.render(d>=a?0:-wt)._zTime=d>=a?1:-1,this._ts))return this._start=m,Go(this),this.render(i,s,o);this._onUpdate&&!s&&tn(this,"onUpdate",!0),(f===c&&this._tTime>=this.totalDuration()||!f&&a)&&(m===this._start||Math.abs(k)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===c&&this._ts>0||!f&&this._ts<0)&&pr(this,1),!s&&!(i<0&&!a)&&(f||a||!c)&&(tn(this,f===c&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f0)&&this._prom())))}return this},n.add=function(i,s){var o=this;if(jn(s)||(s=an(this,s,i)),!(i instanceof bs)){if(we(i))return i.forEach(function(a){return o.add(a,s)}),this;if(ae(i))return this.addLabel(i,s);if(Bt(i))i=qt.delayedCall(0,i);else return this}return this!==i?In(this,i,s):this},n.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-fn);for(var c=[],u=this._first;u;)u._start>=a&&(u instanceof qt?s&&c.push(u):(o&&c.push(u),i&&c.push.apply(c,u.getChildren(!0,s,o)))),u=u._next;return c},n.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},n.remove=function(i){return ae(i)?this.removeLabel(i):Bt(i)?this.killTweensOf(i):(i.parent===this&&qo(this,i),i===this._recent&&(this._recent=this._last),Dr(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Mt(Je.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=an(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,o){var a=qt.delayedCall(0,s||ms,o);return a.data="isPause",this._hasPause=1,In(this,a,an(this,i))},n.removePause=function(i){var s=this._first;for(i=an(this,i);s;)s._start===i&&s.data==="isPause"&&pr(s),s=s._next},n.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),c=a.length;c--;)nr!==a[c]&&a[c].kill(i,s);return this},n.getTweensOf=function(i,s){for(var o=[],a=ln(i),c=this._first,u=jn(s),f;c;)c instanceof qt?Rb(c._targets,a)&&(u?(!nr||c._initted&&c._ts)&&c.globalTime(0)<=s&&c.globalTime(c.totalDuration())>s:!s||c.isActive())&&o.push(c):(f=c.getTweensOf(a,s)).length&&o.push.apply(o,f),c=c._next;return o},n.tweenTo=function(i,s){s=s||{};var o=this,a=an(o,i),c=s,u=c.startAt,f=c.onStart,l=c.onStartParams,d=c.immediateRender,p,_=qt.to(o,sn({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale())||wt,onStart:function(){if(o.pause(),!p){var g=s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale());_._dur!==g&&Ci(_,g,0,1).render(_._time,!0,!0),p=1}f&&f.apply(_,l||[])}},s));return d?_.render(0):_},n.tweenFromTo=function(i,s,o){return this.tweenTo(s,sn({startAt:{time:an(this,i)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),Wf(this,an(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),Wf(this,an(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+wt)},n.shiftChildren=function(i,s,o){o===void 0&&(o=0);var a=this._first,c=this.labels,u;for(i=Mt(i);a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(u in c)c[u]>=o&&(c[u]+=i);return Dr(this)},n.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return e.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Dr(this)},n.totalDuration=function(i){var s=0,o=this,a=o._last,c=fn,u,f,l;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(l=o.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),f=a._start,f>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,In(o,a,f-a._delay,1)._lock=0):c=f,f<0&&a._ts&&(s-=f,(!l&&!o._dp||l&&l.smoothChildTiming)&&(o._start+=Mt(f/o._ts),o._time-=f,o._tTime-=f),o.shiftChildren(-f,!1,-1/0),c=0),a._end>s&&a._ts&&(s=a._end),a=u;Ci(o,o===Nt&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(Nt._ts&&(up(Nt,Io(i,Nt)),ap=Je.frame),Je.frame>=Bf){Bf+=nn.autoSleep||120;var s=Nt._first;if((!s||!s._ts)&&nn.autoSleep&&Je._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Je.sleep()}}},t}(bs);sn(Ae.prototype,{_lock:0,_hasPause:0,_forcing:0});var Qb=function(t,n,r,i,s,o,a){var c=new Fe(this._pt,t,n,0,1,$p,null,s),u=0,f=0,l,d,p,_,h,g,v,T;for(c.b=r,c.e=i,r+="",i+="",(v=~i.indexOf("random("))&&(i=ys(i)),o&&(T=[r,i],o(T,t,n),r=T[0],i=T[1]),d=r.match(ha)||[];l=ha.exec(i);)_=l[0],h=i.substring(u,l.index),p?p=(p+1)%5:h.substr(-5)==="rgba("&&(p=1),_!==d[f++]&&(g=parseFloat(d[f-1])||0,c._pt={_next:c._pt,p:h||f===1?h:",",s:g,c:_.charAt(1)==="="?fi(g,_)-g:parseFloat(_)-g,m:p&&p<4?Math.round:0},u=ha.lastIndex);return c.c=u")}),m.duration();else{x={};for(C in _)C==="ease"||C==="easeEach"||nv(C,_[C],x,_.easeEach);for(C in x)for(H=x[C].sort(function(q,z){return q.t-z.t}),I=0,b=0;bc-wt&&!f?c:iu&&(d=u)),v=this._yoyo&&_&1,v&&(m=this._yEase,d=u-d),g=ki(this._tTime,h),d===a&&!o&&this._initted&&_===g)return this._tTime=l,this;_!==g&&(k&&this._yEase&&Rp(k,v),this.vars.repeatRefresh&&!v&&!this._lock&&d!==h&&this._initted&&(this._lock=o=1,this.render(Mt(h*_),!0).invalidate()._lock=0))}if(!this._initted){if(_p(this,f?i:d,o,s,l))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==g))return this;if(u!==this._dur)return this.render(i,s,o)}if(this._tTime=l,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=T=(m||this._ease)(d/u),this._from&&(this.ratio=T=1-T),!a&&l&&!s&&!g&&(tn(this,"onStart"),this._tTime!==l))return this;for(p=this._pt;p;)p.r(T,p.d),p=p._next;k&&k.render(i<0?i:k._dur*k._ease(d/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(f&&uc(this,i,s,o),tn(this,"onUpdate")),this._repeat&&_!==g&&this.vars.onRepeat&&!s&&this.parent&&tn(this,"onRepeat"),(l===this._tDur||!l)&&this._tTime===l&&(f&&!this._onUpdate&&uc(this,i,!0,!0),(i||!u)&&(l===this._tDur&&this._ts>0||!l&&this._ts<0)&&pr(this,1),!s&&!(f&&!a)&&(l||a||v)&&(tn(this,l===c?"onComplete":"onReverseComplete",!0),this._prom&&!(l0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},n.resetTo=function(i,s,o,a,c){Ss||Je.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||fu(this,u),f=this._ease(u/this._dur),tv(this,i,s,o,a,f,u,c)?this.resetTo(i,s,o,a,1):(Xo(this,0),this.parent||dp(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Hi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!he),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,nr&&nr.vars.overwrite!==!0)._first||Hi(this),this.parent&&o!==this.timeline.totalDuration()&&Ci(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=i?ln(i):a,u=this._ptLookup,f=this._pt,l,d,p,_,h,g,v;if((!s||s==="all")&&Pb(a,c))return s==="all"&&(this._pt=0),Hi(this);for(l=this._op=this._op||[],s!=="all"&&(ae(s)&&(h={},$e(s,function(T){return h[T]=1}),s=h),s=ev(a,s)),v=a.length;v--;)if(~c.indexOf(a[v])){d=u[v],s==="all"?(l[v]=s,_=d,p={}):(p=l[v]=l[v]||{},_=s);for(h in _)g=d&&d[h],g&&((!("kill"in g.d)||g.d.kill(h)===!0)&&qo(this,g,"_pt"),delete d[h]),p!=="all"&&(p[h]=1)}return this._initted&&!this._pt&&f&&Hi(this),this},t.to=function(i,s){return new t(i,s,arguments[2])},t.from=function(i,s){return ts(1,arguments)},t.delayedCall=function(i,s,o,a){return new t(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(i,s,o){return ts(2,arguments)},t.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new t(i,s)},t.killTweensOf=function(i,s,o){return Nt.killTweensOf(i,s,o)},t}(bs);sn(qt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});$e("staggerTo,staggerFrom,staggerFromTo",function(e){qt[e]=function(){var t=new Ae,n=lc.call(arguments,0);return n.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,n)}});var lu=function(t,n,r){return t[n]=r},Np=function(t,n,r){return t[n](r)},rv=function(t,n,r,i){return t[n](i.fp,r)},iv=function(t,n,r){return t.setAttribute(n,r)},du=function(t,n){return Bt(t[n])?Np:eu(t[n])&&t.setAttribute?iv:lu},Lp=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e6)/1e6,n)},sv=function(t,n){return n.set(n.t,n.p,!!(n.s+n.c*t),n)},$p=function(t,n){var r=n._pt,i="";if(!t&&n.b)i=n.b;else if(t===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round((r.s+r.c*t)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},pu=function(t,n){for(var r=n._pt;r;)r.r(t,r.d),r=r._next},ov=function(t,n,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(t,n,r),s=o},av=function(t){for(var n=this._pt,r,i;n;)i=n._next,n.p===t&&!n.op||n.op===t?qo(this,n,"_pt"):n.dep||(r=1),n=i;return!r},cv=function(t,n,r,i){i.mSet(t,n,i.m.call(i.tween,r,i.mt),i)},Fp=function(t){for(var n=t._pt,r,i,s,o;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=r}t._pt=s},Fe=function(){function e(n,r,i,s,o,a,c,u,f){this.t=r,this.s=s,this.c=o,this.p=i,this.r=a||Lp,this.d=c||this,this.set=u||lu,this.pr=f||0,this._next=n,n&&(n._prev=this)}var t=e.prototype;return t.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=cv,this.m=r,this.mt=s,this.tween=i},e}();$e(ou+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return su[e]=1});rn.TweenMax=rn.TweenLite=qt;rn.TimelineLite=rn.TimelineMax=Ae;Nt=new Ae({sortChildren:!1,defaults:wi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});nn.stringFilter=Cp;var Nr=[],lo={},uv=[],Vf=0,fv=0,Sa=function(t){return(lo[t]||uv).map(function(n){return n()})},_c=function(){var t=Date.now(),n=[];t-Vf>2&&(Sa("matchMediaInit"),Nr.forEach(function(r){var i=r.queries,s=r.conditions,o,a,c,u;for(a in i)o=Cn.matchMedia(i[a]).matches,o&&(c=1),o!==s[a]&&(s[a]=o,u=1);u&&(r.revert(),c&&n.push(r))}),Sa("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Vf=t,Sa("matchMedia"))},Bp=function(){function e(n,r){this.selector=r&&dc(r),this.data=[],this._r=[],this.isReverted=!1,this.id=fv++,n&&this.add(n)}var t=e.prototype;return t.add=function(r,i,s){Bt(r)&&(s=i,i=r,r=Bt);var o=this,a=function(){var u=It,f=o.selector,l;return u&&u!==o&&u.data.push(o),s&&(o.selector=dc(s)),It=o,l=i.apply(o,arguments),Bt(l)&&o._r.push(l),It=u,o.selector=f,o.isReverted=!1,l};return o.last=a,r===Bt?a(o,function(c){return o.add(null,c)}):r?o[r]=a:a},t.ignore=function(r){var i=It;It=null,r(this),It=i},t.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof e?r.push.apply(r,i.getTweens()):i instanceof qt&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(r,i){var s=this;if(r?function(){for(var a=s.getTweens(),c=s.data.length,u;c--;)u=s.data[c],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return a.splice(a.indexOf(f),1)}));for(a.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,l){return l.g-f.g||-1/0}).forEach(function(f){return f.t.revert(r)}),c=s.data.length;c--;)u=s.data[c],u instanceof Ae?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof qt)&&u.revert&&u.revert(r);s._r.forEach(function(f){return f(r,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=Nr.length;o--;)Nr[o].id===this.id&&Nr.splice(o,1)},t.revert=function(r){this.kill(r||{})},e}(),lv=function(){function e(n){this.contexts=[],this.scope=n,It&&It.data.push(this)}var t=e.prototype;return t.add=function(r,i,s){Nn(r)||(r={matches:r});var o=new Bp(0,s||this.scope),a=o.conditions={},c,u,f;It&&!o.selector&&(o.selector=It.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(u in r)u==="all"?f=1:(c=Cn.matchMedia(r[u]),c&&(Nr.indexOf(o)<0&&Nr.push(o),(a[u]=c.matches)&&(f=1),c.addListener?c.addListener(_c):c.addEventListener("change",_c)));return f&&i(o,function(l){return o.add(null,l)}),this},t.revert=function(r){this.kill(r||{})},t.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},e}(),Po={registerPlugin:function(){for(var t=arguments.length,n=new Array(t),r=0;r1){var i=t.map(function(f){return He.quickSetter(f,n,r)}),s=i.length;return function(f){for(var l=s;l--;)i[l](f)}}t=t[0]||{};var o=Xe[n],a=Ar(t),c=a.harness&&(a.harness.aliases||{})[n]||n,u=o?function(f){var l=new o;oi._pt=0,l.init(t,r?f+r:f,oi,0,[t]),l.render(1,l),oi._pt&&pu(1,oi)}:a.set(t,c);return o?u:function(f){return u(t,c,r?f+r:f,a,1)}},quickTo:function(t,n,r){var i,s=He.to(t,sn((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),o=function(c,u,f){return s.resetTo(n,c,u,f)};return o.tween=s,o},isTweening:function(t){return Nt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Mr(t.ease,wi.ease)),zf(wi,t||{})},config:function(t){return zf(nn,t||{})},registerEffect:function(t){var n=t.name,r=t.effect,i=t.plugins,s=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Xe[a]&&!rn[a]&&gs(n+" effect requires "+a+" plugin.")}),_a[n]=function(a,c,u){return r(ln(a),sn(c||{},s),u)},o&&(Ae.prototype[n]=function(a,c,u){return this.add(_a[n](a,Nn(c)?c:(u=c)&&{},this),u)})},registerEase:function(t,n){dt[t]=Mr(n)},parseEase:function(t,n){return arguments.length?Mr(t,n):dt},getById:function(t){return Nt.getById(t)},exportRoot:function(t,n){t===void 0&&(t={});var r=new Ae(t),i,s;for(r.smoothChildTiming=Le(t.smoothChildTiming),Nt.remove(r),r._dp=0,r._time=r._tTime=Nt._time,i=Nt._first;i;)s=i._next,(n||!(!i._dur&&i instanceof qt&&i.vars.onComplete===i._targets[0]))&&In(r,i,i._start-i._delay),i=s;return In(Nt,r,0),r},context:function(t,n){return t?new Bp(t,n):It},matchMedia:function(t){return new lv(t)},matchMediaRefresh:function(){return Nr.forEach(function(t){var n=t.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&t.revert()})||_c()},addEventListener:function(t,n){var r=lo[t]||(lo[t]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(t,n){var r=lo[t],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:Wb,wrapYoyo:Yb,distribute:yp,random:bp,snap:Sp,normalize:Hb,getUnit:Ee,clamp:Fb,splitColor:xp,toArray:ln,selector:dc,mapRange:Ep,pipe:zb,unitize:Ub,interpolate:Vb,shuffle:mp},install:sp,effects:_a,ticker:Je,updateRoot:Ae.updateRoot,plugins:Xe,globalTimeline:Nt,core:{PropTween:Fe,globals:op,Tween:qt,Timeline:Ae,Animation:bs,getCache:Ar,_removeLinkedListItem:qo,reverting:function(){return he},context:function(t){return t&&It&&(It.data.push(t),t._ctx=It),It},suppressOverwrites:function(t){return tu=t}}};$e("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Po[e]=qt[e]});Je.add(Ae.updateRoot);oi=Po.to({},{duration:0});var dv=function(t,n){for(var r=t._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},pv=function(t,n){var r=t._targets,i,s,o;for(i in n)for(s=r.length;s--;)o=t._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=dv(o,i)),o&&o.modifier&&o.modifier(n[i],t,r[s],i))},ba=function(t,n){return{name:t,headless:1,rawVars:1,init:function(i,s,o){o._onInit=function(a){var c,u;if(ae(s)&&(c={},$e(s,function(f){return c[f]=1}),s=c),n){c={};for(u in s)c[u]=n(s[u]);s=c}pv(a,s)}}}},He=Po.registerPlugin({name:"attr",init:function(t,n,r,i,s){var o,a,c;this.tween=r;for(o in n)c=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(c||0)+"",n[o],i,s,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(t,n){for(var r=n._pt;r;)he?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,n){for(var r=n.length;r--;)this.add(t,r,t[r]||0,n[r],0,0,0,0,0,1)}},ba("roundProps",pc),ba("modifiers"),ba("snap",Sp))||Po;qt.version=Ae.version=He.version="3.14.1";ip=1;nu()&&Oi();dt.Power0;dt.Power1;dt.Power2;dt.Power3;dt.Power4;dt.Linear;dt.Quad;dt.Cubic;dt.Quart;dt.Quint;dt.Strong;dt.Elastic;dt.Back;dt.SteppedEase;dt.Bounce;dt.Sine;dt.Expo;dt.Circ;/*! * CSSPlugin 3.14.1 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var jf,rr,li,hu,Ir,qf,_u,hv=function(){return typeof window<"u"},qn={},xr=180/Math.PI,di=Math.PI/180,ti=Math.atan2,Gf=1e8,gu=/([A-Z])/g,_v=/(left|right|width|margin|padding|x)/i,gv=/[\s,\(]\S/,Pn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},gc=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},mv=function(t,n){return n.set(n.t,n.p,t===1?n.e:Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},yv=function(t,n){return n.set(n.t,n.p,t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},Sv=function(t,n){return n.set(n.t,n.p,t===1?n.e:t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},bv=function(t,n){var r=n.s+n.c*t;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},zp=function(t,n){return n.set(n.t,n.p,t?n.e:n.b,n)},Up=function(t,n){return n.set(n.t,n.p,t!==1?n.b:n.e,n)},vv=function(t,n,r){return t.style[n]=r},Ev=function(t,n,r){return t.style.setProperty(n,r)},Tv=function(t,n,r){return t._gsap[n]=r},wv=function(t,n,r){return t._gsap.scaleX=t._gsap.scaleY=r},xv=function(t,n,r,i,s){var o=t._gsap;o.scaleX=o.scaleY=r,o.renderTransform(s,o)},kv=function(t,n,r,i,s){var o=t._gsap;o[n]=r,o.renderTransform(s,o)},Lt="transform",Be=Lt+"Origin",Cv=function e(t,n){var r=this,i=this.target,s=i.style,o=i._gsap;if(t in qn&&s){if(this.tfm=this.tfm||{},t!=="transform")t=Pn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return r.tfm[a]=Un(i,a)}):this.tfm[t]=o.x?o[t]:Un(i,t),t===Be&&(this.tfm.zOrigin=o.zOrigin);else return Pn.transform.split(",").forEach(function(a){return e.call(r,a,n)});if(this.props.indexOf(Lt)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Be,n,"")),t=Lt}(s||n)&&this.props.push(t,n,s[t])},Hp=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Ov=function(){var t=this.props,n=this.target,r=n.style,i=n._gsap,s,o;for(s=0;s=0?Xf[o]:"")+t},yc=function(){hv()&&window.document&&(jf=window,rr=jf.document,li=rr.documentElement,Ir=mc("div")||{style:{}},mc("div"),Lt=Ri(Lt),Be=Lt+"Origin",Ir.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Yp=!!Ri("perspective"),_u=He.core.reverting,hu=1)},Kf=function(t){var n=t.ownerSVGElement,r=mc("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),s;i.style.display="block",r.appendChild(i),li.appendChild(r);try{s=i.getBBox()}catch{}return r.removeChild(i),li.removeChild(r),s},Jf=function(t,n){for(var r=n.length;r--;)if(t.hasAttribute(n[r]))return t.getAttribute(n[r])},Vp=function(t){var n,r;try{n=t.getBBox()}catch{n=Kf(t),r=1}return n&&(n.width||n.height)||r||(n=Kf(t)),n&&!n.width&&!n.x&&!n.y?{x:+Jf(t,["x","cx","x1"])||0,y:+Jf(t,["y","cy","y1"])||0,width:0,height:0}:n},jp=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Vp(t))},hr=function(t,n){if(n){var r=t.style,i;n in qn&&n!==Be&&(n=Lt),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(gu,"-$1").toLowerCase())):r.removeAttribute(n)}},ir=function(t,n,r,i,s,o){var a=new Fe(t._pt,n,r,0,1,o?Up:zp);return t._pt=a,a.b=i,a.e=s,t._props.push(r),a},Qf={deg:1,rad:1,turn:1},Rv={grid:1,flex:1},_r=function e(t,n,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=Ir.style,c=_v.test(n),u=t.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(c?"Width":"Height"),l=100,d=i==="px",p=i==="%",_,h,g,v;if(i===o||!s||Qf[i]||Qf[o])return s;if(o!=="px"&&!d&&(s=e(t,n,r,"px")),v=t.getCTM&&jp(t),(p||o==="%")&&(qn[n]||~n.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[f],Ht(p?s/_*l:s/100*_);if(a[c?"width":"height"]=l+(d?o:i),h=i!=="rem"&&~n.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,v&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===rr||!h.appendChild)&&(h=rr.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Je.time&&!g.uncache)return Ht(s/g.width*l);if(p&&(n==="height"||n==="width")){var T=t.style[n];t.style[n]=l+i,_=t[f],T?t.style[n]=T:hr(t,n)}else(p||o==="%")&&!Rv[en(h,"display")]&&(a.position=en(t,"position")),h===t&&(a.position="static"),h.appendChild(Ir),_=Ir[f],h.removeChild(Ir),a.position="absolute";return c&&p&&(g=Ar(h),g.time=Je.time,g.width=h[f]),Ht(d?_*s/l:_&&s?l/_*s:0)},Un=function(t,n,r,i){var s;return hu||yc(),n in Pn&&n!=="transform"&&(n=Pn[n],~n.indexOf(",")&&(n=n.split(",")[0])),qn[n]&&n!=="transform"?(s=Es(t,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:Do(en(t,Be))+" "+s.zOrigin+"px"):(s=t.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=Ao[n]&&Ao[n](t,n,r)||en(t,n)||cp(t,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?_r(t,n,s,r)+r:s},Iv=function(t,n,r,i){if(!r||r==="none"){var s=Ri(n,t,1),o=s&&en(t,s,1);o&&o!==r?(n=s,r=o):n==="borderColor"&&(r=en(t,"borderTopColor"))}var a=new Fe(this._pt,t.style,n,0,1,$p),c=0,u=0,f,l,d,p,_,h,g,v,T,k,m,b;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=en(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=t.style[n],t.style[n]=i,i=en(t,n)||i,h?t.style[n]=h:hr(t,n)),f=[r,i],Cp(f),r=f[0],i=f[1],d=r.match(si)||[],b=i.match(si)||[],b.length){for(;l=si.exec(i);)g=l[0],T=i.substring(c,l.index),_?_=(_+1)%5:(T.substr(-5)==="rgba("||T.substr(-5)==="hsla(")&&(_=1),g!==(h=d[u++]||"")&&(p=parseFloat(h)||0,m=h.substr((p+"").length),g.charAt(1)==="="&&(g=fi(p,g)+m),v=parseFloat(g),k=g.substr((v+"").length),c=si.lastIndex-k.length,k||(k=k||nn.units[n]||m,c===i.length&&(i+=k,a.e+=k)),m!==k&&(p=_r(t,n,h,k)||0),a._pt={_next:a._pt,p:T||u===1?T:",",s:p,c:v-p,m:_&&_<4||n==="zIndex"?Math.round:0});a.c=c-1;)a=s[u],qn[a]&&(c=1,a=a==="transformOrigin"?Be:Lt),hr(r,a);c&&(hr(r,Lt),o&&(o.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Es(r,1),o.uncache=1,Hp(i)))}},Ao={clearProps:function(t,n,r,i,s){if(s.data!=="isFromStart"){var o=t._pt=new Fe(t._pt,n,r,0,0,Av);return o.u=i,o.pr=-10,o.tween=s,t._props.push(r),1}}},vs=[1,0,0,1,0,0],qp={},Gp=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},tl=function(t){var n=en(t,Lt);return Gp(n)?vs:n.substr(7).match(np).map(Ht)},mu=function(t,n){var r=t._gsap||Ar(t),i=t.style,s=tl(t),o,a,c,u;return r.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,s=[c.a,c.b,c.c,c.d,c.e,c.f],s.join(",")==="1,0,0,1,0,0"?vs:s):(s===vs&&!t.offsetParent&&t!==li&&!r.svg&&(c=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,a=t.nextElementSibling,li.appendChild(t)),s=tl(t),c?i.display=c:hr(t,"display"),u&&(a?o.insertBefore(t,a):o?o.appendChild(t):li.removeChild(t))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Sc=function(t,n,r,i,s,o){var a=t._gsap,c=s||mu(t,!0),u=a.xOrigin||0,f=a.yOrigin||0,l=a.xOffset||0,d=a.yOffset||0,p=c[0],_=c[1],h=c[2],g=c[3],v=c[4],T=c[5],k=n.split(" "),m=parseFloat(k[0])||0,b=parseFloat(k[1])||0,x,E,C,O;r?c!==vs&&(E=p*g-_*h)&&(C=m*(g/E)+b*(-h/E)+(h*T-g*v)/E,O=m*(-_/E)+b*(p/E)-(p*T-_*v)/E,m=C,b=O):(x=Vp(t),m=x.x+(~k[0].indexOf("%")?m/100*x.width:m),b=x.y+(~(k[1]||k[0]).indexOf("%")?b/100*x.height:b)),i||i!==!1&&a.smooth?(v=m-u,T=b-f,a.xOffset=l+(v*p+T*h)-v,a.yOffset=d+(v*_+T*g)-T):a.xOffset=a.yOffset=0,a.xOrigin=m,a.yOrigin=b,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,t.style[Be]="0px 0px",o&&(ir(o,a,"xOrigin",u,m),ir(o,a,"yOrigin",f,b),ir(o,a,"xOffset",l,a.xOffset),ir(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",m+" "+b)},Es=function(t,n){var r=t._gsap||new Pp(t);if("x"in r&&!n&&!r.uncache)return r;var i=t.style,s=r.scaleX<0,o="px",a="deg",c=getComputedStyle(t),u=en(t,Be)||"0",f,l,d,p,_,h,g,v,T,k,m,b,x,E,C,O,R,F,I,H,B,Z,q,z,rt,Q,y,mt,Yt,_e,vt,$t;return f=l=d=h=g=v=T=k=m=0,p=_=1,r.svg=!!(t.getCTM&&jp(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[Lt]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Lt]!=="none"?c[Lt]:"")),i.scale=i.rotate=i.translate="none"),E=mu(t,r.svg),r.svg&&(r.uncache?(rt=t.getBBox(),u=r.xOrigin-rt.x+"px "+(r.yOrigin-rt.y)+"px",z=""):z=!n&&t.getAttribute("data-svg-origin"),Sc(t,z||u,!!z||r.originIsAbsolute,r.smooth!==!1,E)),b=r.xOrigin||0,x=r.yOrigin||0,E!==vs&&(F=E[0],I=E[1],H=E[2],B=E[3],f=Z=E[4],l=q=E[5],E.length===6?(p=Math.sqrt(F*F+I*I),_=Math.sqrt(B*B+H*H),h=F||I?ti(I,F)*xr:0,T=H||B?ti(H,B)*xr+h:0,T&&(_*=Math.abs(Math.cos(T*di))),r.svg&&(f-=b-(b*F+x*H),l-=x-(b*I+x*B))):($t=E[6],_e=E[7],y=E[8],mt=E[9],Yt=E[10],vt=E[11],f=E[12],l=E[13],d=E[14],C=ti($t,Yt),g=C*xr,C&&(O=Math.cos(-C),R=Math.sin(-C),z=Z*O+y*R,rt=q*O+mt*R,Q=$t*O+Yt*R,y=Z*-R+y*O,mt=q*-R+mt*O,Yt=$t*-R+Yt*O,vt=_e*-R+vt*O,Z=z,q=rt,$t=Q),C=ti(-H,Yt),v=C*xr,C&&(O=Math.cos(-C),R=Math.sin(-C),z=F*O-y*R,rt=I*O-mt*R,Q=H*O-Yt*R,vt=B*R+vt*O,F=z,I=rt,H=Q),C=ti(I,F),h=C*xr,C&&(O=Math.cos(C),R=Math.sin(C),z=F*O+I*R,rt=Z*O+q*R,I=I*O-F*R,q=q*O-Z*R,F=z,Z=rt),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,v=180-v),p=Ht(Math.sqrt(F*F+I*I+H*H)),_=Ht(Math.sqrt(q*q+$t*$t)),C=ti(Z,q),T=Math.abs(C)>2e-4?C*xr:0,m=vt?1/(vt<0?-vt:vt):0),r.svg&&(z=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Gp(en(t,Lt)),z&&t.setAttribute("transform",z))),Math.abs(T)>90&&Math.abs(T)<270&&(s?(p*=-1,T+=h<=0?180:-180,h+=h<=0?180:-180):(_*=-1,T+=T<=0?180:-180)),n=n||r.uncache,r.x=f-((r.xPercent=f&&(!n&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+o,r.y=l-((r.yPercent=l&&(!n&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-l)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+o,r.z=d+o,r.scaleX=Ht(p),r.scaleY=Ht(_),r.rotation=Ht(h)+a,r.rotationX=Ht(g)+a,r.rotationY=Ht(v)+a,r.skewX=T+a,r.skewY=k+a,r.transformPerspective=m+o,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Be]=Do(u)),r.xOffset=r.yOffset=0,r.force3D=nn.force3D,r.renderTransform=r.svg?Mv:Yp?Xp:Dv,r.uncache=0,r},Do=function(t){return(t=t.split(" "))[0]+" "+t[1]},va=function(t,n,r){var i=Ee(n);return Ht(parseFloat(n)+parseFloat(_r(t,"x",r+"px",i)))+i},Dv=function(t,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Xp(t,n)},vr="0deg",$i="0px",Er=") ",Xp=function(t,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,c=r.z,u=r.rotation,f=r.rotationY,l=r.rotationX,d=r.skewX,p=r.skewY,_=r.scaleX,h=r.scaleY,g=r.transformPerspective,v=r.force3D,T=r.target,k=r.zOrigin,m="",b=v==="auto"&&t&&t!==1||v===!0;if(k&&(l!==vr||f!==vr)){var x=parseFloat(f)*di,E=Math.sin(x),C=Math.cos(x),O;x=parseFloat(l)*di,O=Math.cos(x),o=va(T,o,E*O*-k),a=va(T,a,-Math.sin(x)*-k),c=va(T,c,C*O*-k+k)}g!==$i&&(m+="perspective("+g+Er),(i||s)&&(m+="translate("+i+"%, "+s+"%) "),(b||o!==$i||a!==$i||c!==$i)&&(m+=c!==$i||b?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Er),u!==vr&&(m+="rotate("+u+Er),f!==vr&&(m+="rotateY("+f+Er),l!==vr&&(m+="rotateX("+l+Er),(d!==vr||p!==vr)&&(m+="skew("+d+", "+p+Er),(_!==1||h!==1)&&(m+="scale("+_+", "+h+Er),T.style[Lt]=m||"translate(0, 0)"},Mv=function(t,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,c=r.rotation,u=r.skewX,f=r.skewY,l=r.scaleX,d=r.scaleY,p=r.target,_=r.xOrigin,h=r.yOrigin,g=r.xOffset,v=r.yOffset,T=r.forceCSS,k=parseFloat(o),m=parseFloat(a),b,x,E,C,O;c=parseFloat(c),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,c+=f),c||u?(c*=di,u*=di,b=Math.cos(c)*l,x=Math.sin(c)*l,E=Math.sin(c-u)*-d,C=Math.cos(c-u)*d,u&&(f*=di,O=Math.tan(u-f),O=Math.sqrt(1+O*O),E*=O,C*=O,f&&(O=Math.tan(f),O=Math.sqrt(1+O*O),b*=O,x*=O)),b=Ht(b),x=Ht(x),E=Ht(E),C=Ht(C)):(b=l,C=d,x=E=0),(k&&!~(o+"").indexOf("px")||m&&!~(a+"").indexOf("px"))&&(k=_r(p,"x",o,"px"),m=_r(p,"y",a,"px")),(_||h||g||v)&&(k=Ht(k+_-(_*b+h*E)+g),m=Ht(m+h-(_*x+h*C)+v)),(i||s)&&(O=p.getBBox(),k=Ht(k+i/100*O.width),m=Ht(m+s/100*O.height)),O="matrix("+b+","+x+","+E+","+C+","+k+","+m+")",p.setAttribute("transform",O),T&&(p.style[Lt]=O)},Nv=function(t,n,r,i,s){var o=360,a=ae(s),c=parseFloat(s)*(a&&~s.indexOf("rad")?xr:1),u=c-i,f=i+u+"deg",l,d;return a&&(l=s.split("_")[1],l==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),l==="cw"&&u<0?u=(u+o*Gf)%o-~~(u/o)*o:l==="ccw"&&u>0&&(u=(u-o*Gf)%o-~~(u/o)*o)),t._pt=d=new Fe(t._pt,n,r,i,u,mv),d.e=f,d.u="deg",t._props.push(r),d},el=function(t,n){for(var r in n)t[r]=n[r];return t},Lv=function(t,n,r){var i=el({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,c,u,f,l,d,p,_;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),o[Lt]=n,a=Es(r,1),hr(r,Lt),r.setAttribute("transform",u)):(u=getComputedStyle(r)[Lt],o[Lt]=n,a=Es(r,1),o[Lt]=u);for(c in qn)u=i[c],f=a[c],u!==f&&s.indexOf(c)<0&&(p=Ee(u),_=Ee(f),l=p!==_?_r(r,c,u,_):parseFloat(u),d=parseFloat(f),t._pt=new Fe(t._pt,a,c,l,d-l,gc),t._pt.u=_||0,t._props.push(c));el(a,i)};$e("padding,margin,Width,Radius",function(e,t){var n="Top",r="Right",i="Bottom",s="Left",o=(t<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return t<2?e+a:"border"+a+e});Ao[t>1?"border"+e:e]=function(a,c,u,f,l){var d,p;if(arguments.length<4)return d=o.map(function(_){return Un(a,_,u)}),p=d.join(" "),p.split(d[0]).length===5?d[0]:p;d=(f+"").split(" "),p={},o.forEach(function(_,h){return p[_]=d[h]=d[h]||d[(h-1)/2|0]}),a.init(c,p,l)}});var Kp={name:"css",register:yc,targetTest:function(t){return t.style&&t.nodeType},init:function(t,n,r,i,s){var o=this._props,a=t.style,c=r.vars.startAt,u,f,l,d,p,_,h,g,v,T,k,m,b,x,E,C,O;hu||yc(),this.styles=this.styles||Wp(t),C=this.styles.props,this.tween=r;for(h in n)if(h!=="autoRound"&&(f=n[h],!(Xe[h]&&Ap(h,n,r,i,t,s)))){if(p=typeof f,_=Ao[h],p==="function"&&(f=f.call(r,i,t,s),p=typeof f),p==="string"&&~f.indexOf("random(")&&(f=ys(f)),_)_(this,t,h,f,r)&&(E=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(h)+"").trim(),f+="",ur.lastIndex=0,ur.test(u)||(g=Ee(u),v=Ee(f),v?g!==v&&(u=_r(t,h,u,v)+v):g&&(f+=g)),this.add(a,"setProperty",u,f,i,s,0,0,h),o.push(h),C.push(h,0,a[h]);else if(p!=="undefined"){if(c&&h in c?(u=typeof c[h]=="function"?c[h].call(r,i,t,s):c[h],ae(u)&&~u.indexOf("random(")&&(u=ys(u)),Ee(u+"")||u==="auto"||(u+=nn.units[h]||Ee(Un(t,h))||""),(u+"").charAt(1)==="="&&(u=Un(t,h))):u=Un(t,h),d=parseFloat(u),T=p==="string"&&f.charAt(1)==="="&&f.substr(0,2),T&&(f=f.substr(2)),l=parseFloat(f),h in Pn&&(h==="autoAlpha"&&(d===1&&Un(t,"visibility")==="hidden"&&l&&(d=0),C.push("visibility",0,a.visibility),ir(this,a,"visibility",d?"inherit":"hidden",l?"inherit":"hidden",!l)),h!=="scale"&&h!=="transform"&&(h=Pn[h],~h.indexOf(",")&&(h=h.split(",")[0]))),k=h in qn,k){if(this.styles.save(h),O=f,p==="string"&&f.substring(0,6)==="var(--"){if(f=en(t,f.substring(4,f.indexOf(")"))),f.substring(0,5)==="calc("){var R=t.style.perspective;t.style.perspective=f,f=en(t,"perspective"),R?t.style.perspective=R:hr(t,"perspective")}l=parseFloat(f)}if(m||(b=t._gsap,b.renderTransform&&!n.parseTransform||Es(t,n.parseTransform),x=n.smoothOrigin!==!1&&b.smooth,m=this._pt=new Fe(this._pt,a,Lt,0,1,b.renderTransform,b,0,-1),m.dep=1),h==="scale")this._pt=new Fe(this._pt,b,"scaleY",b.scaleY,(T?fi(b.scaleY,T+l):l)-b.scaleY||0,gc),this._pt.u=0,o.push("scaleY",h),h+="X";else if(h==="transformOrigin"){C.push(Be,0,a[Be]),f=Pv(f),b.svg?Sc(t,f,0,x,0,this):(v=parseFloat(f.split(" ")[2])||0,v!==b.zOrigin&&ir(this,b,"zOrigin",b.zOrigin,v),ir(this,a,h,Do(u),Do(f)));continue}else if(h==="svgOrigin"){Sc(t,f,1,x,0,this);continue}else if(h in qp){Nv(this,b,h,d,T?fi(d,T+f):f);continue}else if(h==="smoothOrigin"){ir(this,b,"smooth",b.smooth,f);continue}else if(h==="force3D"){b[h]=f;continue}else if(h==="transform"){Lv(this,f,t);continue}}else h in a||(h=Ri(h)||h);if(k||(l||l===0)&&(d||d===0)&&!gv.test(f)&&h in a)g=(u+"").substr((d+"").length),l||(l=0),v=Ee(f)||(h in nn.units?nn.units[h]:g),g!==v&&(d=_r(t,h,u,v)),this._pt=new Fe(this._pt,k?b:a,h,d,(T?fi(d,T+l):l)-d,!k&&(v==="px"||h==="zIndex")&&n.autoRound!==!1?bv:gc),this._pt.u=v||0,k&&O!==f?(this._pt.b=u,this._pt.e=O,this._pt.r=Sv):g!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=yv);else if(h in a)Iv.call(this,t,h,u,T?T+f:f);else if(h in t)this.add(t,h,u||t[h],T?T+f:f,i,s);else if(h!=="parseTransform"){iu(h,f);continue}k||(h in a?C.push(h,0,a[h]):typeof t[h]=="function"?C.push(h,2,t[h]()):C.push(h,1,u||t[h])),o.push(h)}}E&&Fp(this)},render:function(t,n){if(n.tween._time||!_u())for(var r=n._pt;r;)r.r(t,r.d),r=r._next;else n.styles.revert()},get:Un,aliases:Pn,getSetter:function(t,n,r){var i=Pn[n];return i&&i.indexOf(",")<0&&(n=i),n in qn&&n!==Be&&(t._gsap.x||Un(t,"x"))?r&&qf===r?n==="scale"?wv:Tv:(qf=r||{})&&(n==="scale"?xv:kv):t.style&&!eu(t.style[n])?vv:~n.indexOf("-")?Ev:du(t,n)},core:{_removeProperty:hr,_getMatrix:mu}};He.utils.checkPrefix=Ri;He.core.getStyleSaver=Wp;(function(e,t,n,r){var i=$e(e+","+t+","+n,function(s){qn[s]=1});$e(t,function(s){nn.units[s]="deg",qp[s]=1}),Pn[i[13]]=e+","+t,$e(r,function(s){var o=s.split(":");Pn[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");$e("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){nn.units[e]="px"});He.registerPlugin(Kp);var ai=He.registerPlugin(Kp)||He;ai.core.Tween;function $v(e,t){for(var n=0;nc?(s=i,i=_,a=o,o=g):r?i+=_:i=s+(_-s)/(g-a)*(o-a)},l=function(){s=i=r?0:i,a=o=0},d=function(_){var h=a,g=s,v=rs();return(_||_===0)&&_!==i&&f(_),o===a||v-a>u?0:(i+(r?g:-g))/((r?v:o)-h)*1e3};return{update:f,reset:l,getVelocity:d}},Fi=function(t,n){return n&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},nl=function(t){var n=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(n)>=Math.abs(r)?n:r},nh=function(){ns=de.core.globals().ScrollTrigger,ns&&ns.core&&Bv()},rh=function(t){return de=t||th(),!po&&de&&typeof document<"u"&&document.body&&(Qe=window,sr=document,or=sr.documentElement,pi=sr.body,Qp=[Qe,sr,or,pi],de.utils.clamp,Zp=de.core.context||function(){},kr="onpointerenter"in pi?"pointer":"mouse",Jp=Wt.isTouch=Qe.matchMedia&&Qe.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Qe||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Sn=Wt.eventTypes=("ontouchstart"in or?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in or?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return eh=0},500),nh(),po=1),po};De.op=Zt;at.cache=0;var Wt=function(){function e(n){this.init(n)}var t=e.prototype;return t.init=function(r){po||rh(de)||console.warn("Please gsap.registerPlugin(Observer)"),ns||nh();var i=r.tolerance,s=r.dragMinimum,o=r.type,a=r.target,c=r.lineHeight,u=r.debounce,f=r.preventDefault,l=r.onStop,d=r.onStopDelay,p=r.ignore,_=r.wheelSpeed,h=r.event,g=r.onDragStart,v=r.onDragEnd,T=r.onDrag,k=r.onPress,m=r.onRelease,b=r.onRight,x=r.onLeft,E=r.onUp,C=r.onDown,O=r.onChangeX,R=r.onChangeY,F=r.onChange,I=r.onToggleX,H=r.onToggleY,B=r.onHover,Z=r.onHoverEnd,q=r.onMove,z=r.ignoreCheck,rt=r.isNormalizer,Q=r.onGestureStart,y=r.onGestureEnd,mt=r.onWheel,Yt=r.onEnable,_e=r.onDisable,vt=r.onClick,$t=r.scrollSpeed,Gt=r.capture,Pt=r.allowClicks,te=r.lockAxis,ee=r.onLockAxis;this.target=a=Ne(a)||or,this.vars=r,p&&(p=de.utils.toArray(p)),i=i||1e-9,s=s||0,_=_||1,$t=$t||1,o=o||"wheel,touch,pointer",u=u!==!1,c||(c=parseFloat(Qe.getComputedStyle(pi).lineHeight)||22);var hn,ne,Xt,ft,At,ce,xe,w=this,ge=0,A=0,S=r.passive||!f&&r.passive!==!1,P=gr(a,De),U=gr(a,Zt),V=P(),X=U(),st=~o.indexOf("touch")&&!~o.indexOf("pointer")&&Sn[0]==="pointerdown",zt=is(a),tt=a.ownerDocument||sr,xt=[0,0,0],_t=[0,0,0],ut=0,Kt=function(){return ut=rs()},$=function(Y,gt){return(w.event=Y)&&p&&zv(Y.target,p)||gt&&st&&Y.pointerType!=="touch"||z&&z(Y,gt)},Xn=function(){w._vx.reset(),w._vy.reset(),ne.pause(),l&&l(w)},Me=function(){var Y=w.deltaX=nl(xt),gt=w.deltaY=nl(_t),D=Math.abs(Y)>=i,K=Math.abs(gt)>=i;F&&(D||K)&&F(w,Y,gt,xt,_t),D&&(b&&w.deltaX>0&&b(w),x&&w.deltaX<0&&x(w),O&&O(w),I&&w.deltaX<0!=ge<0&&I(w),ge=w.deltaX,xt[0]=xt[1]=xt[2]=0),K&&(C&&w.deltaY>0&&C(w),E&&w.deltaY<0&&E(w),R&&R(w),H&&w.deltaY<0!=A<0&&H(w),A=w.deltaY,_t[0]=_t[1]=_t[2]=0),(ft||Xt)&&(q&&q(w),Xt&&(g&&Xt===1&&g(w),T&&T(w),Xt=0),ft=!1),ce&&!(ce=!1)&&ee&&ee(w),At&&(mt(w),At=!1),hn=0},Ye=function(Y,gt,D){xt[D]+=Y,_t[D]+=gt,w._vx.update(Y),w._vy.update(gt),u?hn||(hn=requestAnimationFrame(Me)):Me()},Ln=function(Y,gt){te&&!xe&&(w.axis=xe=Math.abs(Y)>Math.abs(gt)?"x":"y",ce=!0),xe!=="y"&&(xt[2]+=Y,w._vx.update(Y,!0)),xe!=="x"&&(_t[2]+=gt,w._vy.update(gt,!0)),u?hn||(hn=requestAnimationFrame(Me)):Me()},on=function(Y){if(!$(Y,1)){Y=Fi(Y,f);var gt=Y.clientX,D=Y.clientY,K=gt-w.x,W=D-w.y,J=w.isDragging;w.x=gt,w.y=D,(J||(K||W)&&(Math.abs(w.startX-gt)>=s||Math.abs(w.startY-D)>=s))&&(Xt||(Xt=J?2:1),J||(w.isDragging=!0),Ln(K,W))}},_n=w.onPress=function(j){$(j,1)||j&&j.button||(w.axis=xe=null,ne.pause(),w.isPressed=!0,j=Fi(j),ge=A=0,w.startX=w.x=j.clientX,w.startY=w.y=j.clientY,w._vx.reset(),w._vy.reset(),Ce(rt?a:tt,Sn[1],on,S,!0),w.deltaX=w.deltaY=0,k&&k(w))},G=w.onRelease=function(j){if(!$(j,1)){ke(rt?a:tt,Sn[1],on,!0);var Y=!isNaN(w.y-w.startY),gt=w.isDragging,D=gt&&(Math.abs(w.x-w.startX)>3||Math.abs(w.y-w.startY)>3),K=Fi(j);!D&&Y&&(w._vx.reset(),w._vy.reset(),f&&Pt&&de.delayedCall(.08,function(){if(rs()-ut>300&&!j.defaultPrevented){if(j.target.click)j.target.click();else if(tt.createEvent){var W=tt.createEvent("MouseEvents");W.initMouseEvent("click",!0,!0,Qe,1,K.screenX,K.screenY,K.clientX,K.clientY,!1,!1,!1,!1,0,null),j.target.dispatchEvent(W)}}})),w.isDragging=w.isGesturing=w.isPressed=!1,l&>&&!rt&&ne.restart(!0),Xt&&Me(),v&>&&v(w),m&&m(w,D)}},Tn=function(Y){return Y.touches&&Y.touches.length>1&&(w.isGesturing=!0)&&Q(Y,w.isDragging)},re=function(){return(w.isGesturing=!1)||y(w)},yt=function(Y){if(!$(Y)){var gt=P(),D=U();Ye((gt-V)*$t,(D-X)*$t,1),V=gt,X=D,l&&ne.restart(!0)}},Ot=function(Y){if(!$(Y)){Y=Fi(Y,f),mt&&(At=!0);var gt=(Y.deltaMode===1?c:Y.deltaMode===2?Qe.innerHeight:1)*_;Ye(Y.deltaX*gt,Y.deltaY*gt,0),l&&!rt&&ne.restart(!0)}},Ve=function(Y){if(!$(Y)){var gt=Y.clientX,D=Y.clientY,K=gt-w.x,W=D-w.y;w.x=gt,w.y=D,ft=!0,l&&ne.restart(!0),(K||W)&&Ln(K,W)}},gn=function(Y){w.event=Y,B(w)},Vt=function(Y){w.event=Y,Z(w)},mn=function(Y){return $(Y)||Fi(Y,f)&&vt(w)};ne=w._dc=de.delayedCall(d||.25,Xn).pause(),w.deltaX=w.deltaY=0,w._vx=Ec(0,50,!0),w._vy=Ec(0,50,!0),w.scrollX=P,w.scrollY=U,w.isDragging=w.isGesturing=w.isPressed=!1,Zp(this),w.enable=function(j){return w.isEnabled||(Ce(zt?tt:a,"scroll",vc),o.indexOf("scroll")>=0&&Ce(zt?tt:a,"scroll",yt,S,Gt),o.indexOf("wheel")>=0&&Ce(a,"wheel",Ot,S,Gt),(o.indexOf("touch")>=0&&Jp||o.indexOf("pointer")>=0)&&(Ce(a,Sn[0],_n,S,Gt),Ce(tt,Sn[2],G),Ce(tt,Sn[3],G),Pt&&Ce(a,"click",Kt,!0,!0),vt&&Ce(a,"click",mn),Q&&Ce(tt,"gesturestart",Tn),y&&Ce(tt,"gestureend",re),B&&Ce(a,kr+"enter",gn),Z&&Ce(a,kr+"leave",Vt),q&&Ce(a,kr+"move",Ve)),w.isEnabled=!0,w.isDragging=w.isGesturing=w.isPressed=ft=Xt=!1,w._vx.reset(),w._vy.reset(),V=P(),X=U(),j&&j.type&&_n(j),Yt&&Yt(w)),w},w.disable=function(){w.isEnabled&&(ci.filter(function(j){return j!==w&&is(j.target)}).length||ke(zt?tt:a,"scroll",vc),w.isPressed&&(w._vx.reset(),w._vy.reset(),ke(rt?a:tt,Sn[1],on,!0)),ke(zt?tt:a,"scroll",yt,Gt),ke(a,"wheel",Ot,Gt),ke(a,Sn[0],_n,Gt),ke(tt,Sn[2],G),ke(tt,Sn[3],G),ke(a,"click",Kt,!0),ke(a,"click",mn),ke(tt,"gesturestart",Tn),ke(tt,"gestureend",re),ke(a,kr+"enter",gn),ke(a,kr+"leave",Vt),ke(a,kr+"move",Ve),w.isEnabled=w.isPressed=w.isDragging=!1,_e&&_e(w))},w.kill=w.revert=function(){w.disable();var j=ci.indexOf(w);j>=0&&ci.splice(j,1),Wn===w&&(Wn=0)},ci.push(w),rt&&is(a)&&(Wn=w),w.enable(h)},Fv(e,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),e}();Wt.version="3.14.1";Wt.create=function(e){return new Wt(e)};Wt.register=rh;Wt.getAll=function(){return ci.slice()};Wt.getById=function(e){return ci.filter(function(t){return t.vars.id===e})[0]};th()&&de.registerPlugin(Wt);/*! * ScrollTrigger 3.14.1 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var L,ri,ot,kt,Ke,bt,yu,No,Ts,ss,Yi,qs,be,Ko,Tc,Ie,rl,il,ii,ih,Ea,sh,Re,wc,oh,ah,tr,xc,Su,hi,bu,os,kc,Ta,Gs=1,ve=Date.now,wa=ve(),pn=0,Vi=0,sl=function(t,n,r){var i=Ge(t)&&(t.substr(0,6)==="clamp("||t.indexOf("max")>-1);return r["_"+n+"Clamp"]=i,i?t.substr(6,t.length-7):t},ol=function(t,n){return n&&(!Ge(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},Uv=function e(){return Vi&&requestAnimationFrame(e)},al=function(){return Ko=1},cl=function(){return Ko=0},On=function(t){return t},ji=function(t){return Math.round(t*1e5)/1e5||0},ch=function(){return typeof window<"u"},uh=function(){return L||ch()&&(L=window.gsap)&&L.registerPlugin&&L},Wr=function(t){return!!~yu.indexOf(t)},fh=function(t){return(t==="Height"?bu:ot["inner"+t])||Ke["client"+t]||bt["client"+t]},lh=function(t){return fr(t,"getBoundingClientRect")||(Wr(t)?function(){return yo.width=ot.innerWidth,yo.height=bu,yo}:function(){return Hn(t)})},Hv=function(t,n,r){var i=r.d,s=r.d2,o=r.a;return(o=fr(t,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(n?fh(s):t["client"+s])||0}},Wv=function(t,n){return!n||~Mn.indexOf(t)?lh(t):function(){return yo}},An=function(t,n){var r=n.s,i=n.d2,s=n.d,o=n.a;return Math.max(0,(r="scroll"+i)&&(o=fr(t,r))?o()-lh(t)()[s]:Wr(t)?(Ke[r]||bt[r])-fh(i):t[r]-t["offset"+i])},Xs=function(t,n){for(var r=0;r0){for(i-=o,a=0;a=i)return r[a];return r[a-1]}else for(a=r.length,i+=o;a--;)if(r[a]<=i)return r[a];return r[0]}:function(i,s,o){o===void 0&&(o=.001);var a=n(i);return!s||Math.abs(a-i)r&&(i*=n/100),t=t.substr(0,r-1)),t=i+(t in $o?$o[t]*n:~t.indexOf("%")?parseFloat(t)*n/100:parseFloat(t)||0)}return t},Zs=function(t,n,r,i,s,o,a,c){var u=s.startColor,f=s.endColor,l=s.fontSize,d=s.indent,p=s.fontWeight,_=kt.createElement("div"),h=Wr(r)||fr(r,"pinType")==="fixed",g=t.indexOf("scroller")!==-1,v=h?bt:r,T=t.indexOf("start")!==-1,k=T?u:f,m="border-color:"+k+";font-size:"+l+";color:"+k+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return m+="position:"+((g||c)&&h?"fixed;":"absolute;"),(g||c||!h)&&(m+=(i===Zt?vu:Eu)+":"+(o+parseFloat(d))+"px;"),a&&(m+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),_._isStart=T,_.setAttribute("class","gsap-marker-"+t+(n?" marker-"+n:"")),_.style.cssText=m,_.innerText=n||n===0?t+"-"+n:t,v.children[0]?v.insertBefore(_,v.children[0]):v.appendChild(_),_._offset=_["offset"+i.op.d2],_o(_,0,i,T),_},_o=function(t,n,r,i){var s={display:"block"},o=r[i?"os2":"p2"],a=r[i?"p2":"os2"];t._isFlipped=i,s[r.a+"Percent"]=i?-100:0,s[r.a]=i?"1px":0,s["border"+o+Ii]=1,s["border"+a+Ii]=0,s[r.p]=n+"px",L.set(t,s)},it=[],Cc={},ws,ll=function(){return ve()-pn>34&&(ws||(ws=requestAnimationFrame(Vn)))},ni=function(){(!Re||!Re.isPressed||Re.startX>bt.clientWidth)&&(at.cache++,Re?ws||(ws=requestAnimationFrame(Vn)):Vn(),pn||Vr("scrollStart"),pn=ve())},ka=function(){ah=ot.innerWidth,oh=ot.innerHeight},Gi=function(t){at.cache++,(t===!0||!be&&!sh&&!kt.fullscreenElement&&!kt.webkitFullscreenElement&&(!wc||ah!==ot.innerWidth||Math.abs(ot.innerHeight-oh)>ot.innerHeight*.25))&&No.restart(!0)},Yr={},qv=[],_h=function e(){return se(ct,"scrollEnd",e)||Pr(!0)},Vr=function(t){return Yr[t]&&Yr[t].map(function(n){return n()})||qv},qe=[],gh=function(t){for(var n=0;ns,a=i._startClamp&&i.start>=s;(o||a)&&i.setPositions(a?s-1:i.start,o?Math.max(a?s:i.start+1,s):i.end,!0)}),pl(!1),kc=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),at.forEach(function(i){Te(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),yh(Su,1),No.pause(),Fr++,Pe=2,Vn(2),it.forEach(function(i){return Te(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Pe=ct.isRefreshing=!1,Vr("refresh")},Oc=0,go=1,ls,Vn=function(t){if(t===2||!Pe&&!os){ct.isUpdating=!0,ls&&ls.update(0);var n=it.length,r=ve(),i=r-wa>=50,s=n&&it[0].scroll();if(go=Oc>s?-1:1,Pe||(Oc=s),i&&(pn&&!Ko&&r-pn>200&&(pn=0,Vr("scrollEnd")),Yi=wa,wa=r),go<0){for(Ie=n;Ie-- >0;)it[Ie]&&it[Ie].update(0,i);go=1}else for(Ie=0;Ie20),r-=r-x}if(_&&(c[_]=t||-.001,t<0&&(t=0)),o){var C=t+r,O=o._isStart;g="scroll"+i.d2,_o(o,C,i,O&&C>20||!O&&(l?Math.max(bt[g],Ke[g]):o.parentNode[g])<=C+1),l&&(u=Hn(a),l&&(o.style[i.op.p]=u[i.op.p]-i.op.m-o._offset+Qt))}return p&&T&&(g=Hn(T),p.seek(d),v=Hn(T),p._caScrollDist=g[i.p]-v[i.p],t=t/p._caScrollDist*d),p&&p.seek(h),p?t:Math.round(t)},Qv=/(webkit|moz|length|cssText|inset)/i,_l=function(t,n,r,i){if(t.parentNode!==n){var s=t.style,o,a;if(n===bt){t._stOrig=s.cssText,a=un(t);for(o in a)!+o&&!Qv.test(o)&&a[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=a[o]);s.top=r,s.left=i}else s.cssText=t._stOrig;L.core.getCache(t).uncache=1,n.appendChild(t)}},bh=function(t,n,r){var i=n,s=i;return function(o){var a=Math.round(t());return a!==i&&a!==s&&Math.abs(a-i)>3&&Math.abs(a-s)>3&&(o=a,r&&r()),s=i,i=Math.round(o),i}},eo=function(t,n,r){var i={};i[n.p]="+="+r,L.set(t,i)},gl=function(t,n){var r=gr(t,n),i="_scroll"+n.p2,s=function o(a,c,u,f,l){var d=o.tween,p=c.onComplete,_={};u=u||r();var h=bh(r,u,function(){d.kill(),o.tween=0});return l=f&&l||0,f=f||a-u,d&&d.kill(),c[i]=a,c.inherit=!1,c.modifiers=_,_[i]=function(){return h(u+f*d.ratio+l*d.ratio*d.ratio)},c.onUpdate=function(){at.cache++,o.tween&&Vn()},c.onComplete=function(){o.tween=0,p&&p.call(d)},d=o.tween=L.to(t,c),d};return t[i]=r,r.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},oe(t,"wheel",r.wheelHandler),ct.isTouch&&oe(t,"touchmove",r.wheelHandler),s},ct=function(){function e(n,r){ri||e.register(L)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),xc(this),this.init(n,r)}var t=e.prototype;return t.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Vi){this.update=this.refresh=this.kill=On;return}r=ul(Ge(r)||qi(r)||r.nodeType?{trigger:r}:r,Qs);var s=r,o=s.onUpdate,a=s.toggleClass,c=s.id,u=s.onToggle,f=s.onRefresh,l=s.scrub,d=s.trigger,p=s.pin,_=s.pinSpacing,h=s.invalidateOnRefresh,g=s.anticipatePin,v=s.onScrubComplete,T=s.onSnapComplete,k=s.once,m=s.snap,b=s.pinReparent,x=s.pinSpacer,E=s.containerAnimation,C=s.fastScrollEnd,O=s.preventOverlaps,R=r.horizontal||r.containerAnimation&&r.horizontal!==!1?De:Zt,F=!l&&l!==0,I=Ne(r.scroller||ot),H=L.core.getCache(I),B=Wr(I),Z=("pinType"in r?r.pinType:fr(I,"pinType")||B&&"fixed")==="fixed",q=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],z=F&&r.toggleActions.split(" "),rt="markers"in r?r.markers:Qs.markers,Q=B?0:parseFloat(un(I)["border"+R.p2+Ii])||0,y=this,mt=r.onRefreshInit&&function(){return r.onRefreshInit(y)},Yt=Hv(I,B,R),_e=Wv(I,B),vt=0,$t=0,Gt=0,Pt=gr(I,R),te,ee,hn,ne,Xt,ft,At,ce,xe,w,ge,A,S,P,U,V,X,st,zt,tt,xt,_t,ut,Kt,$,Xn,Me,Ye,Ln,on,_n,G,Tn,re,yt,Ot,Ve,gn,Vt;if(y._startClamp=y._endClamp=!1,y._dir=R,g*=45,y.scroller=I,y.scroll=E?E.time.bind(E):Pt,ne=Pt(),y.vars=r,i=i||r.animation,"refreshPriority"in r&&(ih=1,r.refreshPriority===-9999&&(ls=y)),H.tweenScroll=H.tweenScroll||{top:gl(I,Zt),left:gl(I,De)},y.tweenTo=te=H.tweenScroll[R.p],y.scrubDuration=function(D){Tn=qi(D)&&D,Tn?G?G.duration(D):G=L.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Tn,paused:!0,onComplete:function(){return v&&v(y)}}):(G&&G.progress(1).kill(),G=0)},i&&(i.vars.lazy=!1,i._initted&&!y.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),y.animation=i.pause(),i.scrollTrigger=y,y.scrubDuration(l),on=0,c||(c=i.vars.id)),m&&((!Cr(m)||m.push)&&(m={snapTo:m}),"scrollBehavior"in bt.style&&L.set(B?[bt,Ke]:I,{scrollBehavior:"auto"}),at.forEach(function(D){return Te(D)&&D.target===(B?kt.scrollingElement||Ke:I)&&(D.smooth=!1)}),hn=Te(m.snapTo)?m.snapTo:m.snapTo==="labels"?Vv(i):m.snapTo==="labelsDirectional"?jv(i):m.directional!==!1?function(D,K){return wu(m.snapTo)(D,ve()-$t<500?0:K.direction)}:L.utils.snap(m.snapTo),re=m.duration||{min:.1,max:2},re=Cr(re)?ss(re.min,re.max):ss(re,re),yt=L.delayedCall(m.delay||Tn/2||.1,function(){var D=Pt(),K=ve()-$t<500,W=te.tween;if((K||Math.abs(y.getVelocity())<10)&&!W&&!Ko&&vt!==D){var J=(D-ft)/P,ie=i&&!F?i.totalProgress():J,lt=K?0:(ie-_n)/(ve()-Yi)*1e3||0,Ut=L.utils.clamp(-J,1-J,ei(lt/2)*lt/.185),me=J+(m.inertia===!1?0:Ut),Ft,Rt,Et=m,yn=Et.onStart,Dt=Et.onInterrupt,je=Et.onComplete;if(Ft=hn(me,y),qi(Ft)||(Ft=me),Rt=Math.max(0,Math.round(ft+Ft*P)),D<=At&&D>=ft&&Rt!==D){if(W&&!W._initted&&W.data<=ei(Rt-D))return;m.inertia===!1&&(Ut=Ft-J),te(Rt,{duration:re(ei(Math.max(ei(me-ie),ei(Ft-ie))*.185/lt/.05||0)),ease:m.ease||"power3",data:ei(Rt-D),onInterrupt:function(){return yt.restart(!0)&&Dt&&Dt(y)},onComplete:function(){y.update(),vt=Pt(),i&&!F&&(G?G.resetTo("totalProgress",Ft,i._tTime/i._tDur):i.progress(Ft)),on=_n=i&&!F?i.totalProgress():y.progress,T&&T(y),je&&je(y)}},D,Ut*P,Rt-D-Ut*P),yn&&yn(y,te.tween)}}else y.isActive&&vt!==D&&yt.restart(!0)}).pause()),c&&(Cc[c]=y),d=y.trigger=Ne(d||p!==!0&&p),Vt=d&&d._gsap&&d._gsap.stRevert,Vt&&(Vt=Vt(y)),p=p===!0?d:Ne(p),Ge(a)&&(a={targets:d,className:a}),p&&(_===!1||_===cn||(_=!_&&p.parentNode&&p.parentNode.style&&un(p.parentNode).display==="flex"?!1:jt),y.pin=p,ee=L.core.getCache(p),ee.spacer?U=ee.pinState:(x&&(x=Ne(x),x&&!x.nodeType&&(x=x.current||x.nativeElement),ee.spacerIsNative=!!x,x&&(ee.spacerState=to(x))),ee.spacer=st=x||kt.createElement("div"),st.classList.add("pin-spacer"),c&&st.classList.add("pin-spacer-"+c),ee.pinState=U=to(p)),r.force3D!==!1&&L.set(p,{force3D:!0}),y.spacer=st=ee.spacer,Ln=un(p),Kt=Ln[_+R.os2],tt=L.getProperty(p),xt=L.quickSetter(p,R.a,Qt),Ca(p,st,Ln),X=to(p)),rt){A=Cr(rt)?ul(rt,fl):fl,w=Zs("scroller-start",c,I,R,A,0),ge=Zs("scroller-end",c,I,R,A,0,w),zt=w["offset"+R.op.d2];var mn=Ne(fr(I,"content")||I);ce=this.markerStart=Zs("start",c,mn,R,A,zt,0,E),xe=this.markerEnd=Zs("end",c,mn,R,A,zt,0,E),E&&(gn=L.quickSetter([ce,xe],R.a,Qt)),!Z&&!(Mn.length&&fr(I,"fixedMarkers")===!0)&&(Yv(B?bt:I),L.set([w,ge],{force3D:!0}),Xn=L.quickSetter(w,R.a,Qt),Ye=L.quickSetter(ge,R.a,Qt))}if(E){var j=E.vars.onUpdate,Y=E.vars.onUpdateParams;E.eventCallback("onUpdate",function(){y.update(0,0,1),j&&j.apply(E,Y||[])})}if(y.previous=function(){return it[it.indexOf(y)-1]},y.next=function(){return it[it.indexOf(y)+1]},y.revert=function(D,K){if(!K)return y.kill(!0);var W=D!==!1||!y.enabled,J=be;W!==y.isReverted&&(W&&(Ot=Math.max(Pt(),y.scroll.rec||0),Gt=y.progress,Ve=i&&i.progress()),ce&&[ce,xe,w,ge].forEach(function(ie){return ie.style.display=W?"none":"block"}),W&&(be=y,y.update(W)),p&&(!b||!y.isActive)&&(W?Xv(p,st,U):Ca(p,st,un(p),$)),W||y.update(W),be=J,y.isReverted=W)},y.refresh=function(D,K,W,J){if(!((be||!y.enabled)&&!K)){if(p&&D&&pn){oe(e,"scrollEnd",_h);return}!Pe&&mt&&mt(y),be=y,te.tween&&!W&&(te.tween.kill(),te.tween=0),G&&G.pause(),h&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(Kn){return Kn.vars.immediateRender&&Kn.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),y.isReverted||y.revert(!0,!0),y._subPinOffset=!1;var ie=Yt(),lt=_e(),Ut=E?E.duration():An(I,R),me=P<=.01||!P,Ft=0,Rt=J||0,Et=Cr(W)?W.end:r.end,yn=r.endTrigger||d,Dt=Cr(W)?W.start:r.start||(r.start===0||!d?0:p?"0 0":"0 100%"),je=y.pinnedContainer=r.pinnedContainer&&Ne(r.pinnedContainer,y),wn=d&&Math.max(0,it.indexOf(y))||0,ue=wn,fe,ye,br,Fs,Se,Jt,xn,Jo,ku,Mi,kn,Ni,Bs;for(rt&&Cr(W)&&(Ni=L.getProperty(w,R.p),Bs=L.getProperty(ge,R.p));ue-- >0;)Jt=it[ue],Jt.end||Jt.refresh(0,1)||(be=y),xn=Jt.pin,xn&&(xn===d||xn===p||xn===je)&&!Jt.isReverted&&(Mi||(Mi=[]),Mi.unshift(Jt),Jt.revert(!0,!0)),Jt!==it[ue]&&(wn--,ue--);for(Te(Dt)&&(Dt=Dt(y)),Dt=sl(Dt,"start",y),ft=hl(Dt,d,ie,R,Pt(),ce,w,y,lt,Q,Z,Ut,E,y._startClamp&&"_startClamp")||(p?-.001:0),Te(Et)&&(Et=Et(y)),Ge(Et)&&!Et.indexOf("+=")&&(~Et.indexOf(" ")?Et=(Ge(Dt)?Dt.split(" ")[0]:"")+Et:(Ft=ho(Et.substr(2),ie),Et=Ge(Dt)?Dt:(E?L.utils.mapRange(0,E.duration(),E.scrollTrigger.start,E.scrollTrigger.end,ft):ft)+Ft,yn=d)),Et=sl(Et,"end",y),At=Math.max(ft,hl(Et||(yn?"100% 0":Ut),yn,ie,R,Pt()+Ft,xe,ge,y,lt,Q,Z,Ut,E,y._endClamp&&"_endClamp"))||-.001,Ft=0,ue=wn;ue--;)Jt=it[ue]||{},xn=Jt.pin,xn&&Jt.start-Jt._pinPush<=ft&&!E&&Jt.end>0&&(fe=Jt.end-(y._startClamp?Math.max(0,Jt.start):Jt.start),(xn===d&&Jt.start-Jt._pinPush=An(I,R)))fe=un(p),Fs=R===Zt,br=Pt(),_t=parseFloat(tt(R.a))+Rt,!Ut&&At>1&&(kn=(B?kt.scrollingElement||Ke:I).style,kn={style:kn,value:kn["overflow"+R.a.toUpperCase()]},B&&un(bt)["overflow"+R.a.toUpperCase()]!=="scroll"&&(kn.style["overflow"+R.a.toUpperCase()]="scroll")),Ca(p,st,fe),X=to(p),ye=Hn(p,!0),Jo=Z&&gr(I,Fs?De:Zt)(),_?($=[_+R.os2,P+Rt+Qt],$.t=st,ue=_===jt?Lo(p,R)+P+Rt:0,ue&&($.push(R.d,ue+Qt),st.style.flexBasis!=="auto"&&(st.style.flexBasis=ue+Qt)),_i($),je&&it.forEach(function(Kn){Kn.pin===je&&Kn.vars.pinSpacing!==!1&&(Kn._subPinOffset=!0)}),Z&&Pt(Ot)):(ue=Lo(p,R),ue&&st.style.flexBasis!=="auto"&&(st.style.flexBasis=ue+Qt)),Z&&(Se={top:ye.top+(Fs?br-ft:Jo)+Qt,left:ye.left+(Fs?Jo:br-ft)+Qt,boxSizing:"border-box",position:"fixed"},Se[Lr]=Se["max"+Ii]=Math.ceil(ye.width)+Qt,Se[$r]=Se["max"+Tu]=Math.ceil(ye.height)+Qt,Se[cn]=Se[cn+us]=Se[cn+as]=Se[cn+fs]=Se[cn+cs]="0",Se[jt]=fe[jt],Se[jt+us]=fe[jt+us],Se[jt+as]=fe[jt+as],Se[jt+fs]=fe[jt+fs],Se[jt+cs]=fe[jt+cs],V=Jv(U,Se,b),Pe&&Pt(0)),i?(ku=i._initted,Ea(1),i.render(i.duration(),!0,!0),ut=tt(R.a)-_t+P+Rt,Me=Math.abs(P-ut)>1,Z&&Me&&V.splice(V.length-2,2),i.render(0,!0,!0),ku||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),Ea(0)):ut=P,kn&&(kn.value?kn.style["overflow"+R.a.toUpperCase()]=kn.value:kn.style.removeProperty("overflow-"+R.a));else if(d&&Pt()&&!E)for(ye=d.parentNode;ye&&ye!==bt;)ye._pinOffset&&(ft-=ye._pinOffset,At-=ye._pinOffset),ye=ye.parentNode;Mi&&Mi.forEach(function(Kn){return Kn.revert(!1,!0)}),y.start=ft,y.end=At,ne=Xt=Pe?Ot:Pt(),!E&&!Pe&&(ne0?it.slice(0,K).reverse():it.slice(K+1);return(Ge(D)?W.filter(function(J){return J.vars.preventOverlaps===D}):W).filter(function(J){return y.direction>0?J.end<=ft:J.start>=At})},y.update=function(D,K,W){if(!(E&&!W&&!D)){var J=Pe===!0?Ot:y.scroll(),ie=D?0:(J-ft)/P,lt=ie<0?0:ie>1?1:ie||0,Ut=y.progress,me,Ft,Rt,Et,yn,Dt,je,wn;if(K&&(Xt=ne,ne=E?Pt():J,m&&(_n=on,on=i&&!F?i.totalProgress():lt)),g&&p&&!be&&!Gs&&pn&&(!lt&&ftJ+(J-Xt)/(ve()-Yi)*g&&(lt=.9999)),lt!==Ut&&y.enabled){if(me=y.isActive=!!lt&<<1,Ft=!!Ut&&Ut<1,Dt=me!==Ft,yn=Dt||!!lt!=!!Ut,y.direction=lt>Ut?1:-1,y.progress=lt,yn&&!be&&(Rt=lt&&!Ut?0:lt===1?1:Ut===1?2:3,F&&(Et=!Dt&&z[Rt+1]!=="none"&&z[Rt+1]||z[Rt],wn=i&&(Et==="complete"||Et==="reset"||Et in i))),O&&(Dt||wn)&&(wn||l||!i)&&(Te(O)?O(y):y.getTrailing(O).forEach(function(br){return br.endAnimation()})),F||(G&&!be&&!Gs?(G._dp._time-G._start!==G._time&&G.render(G._dp._time-G._start),G.resetTo?G.resetTo("totalProgress",lt,i._tTime/i._tDur):(G.vars.totalProgress=lt,G.invalidate().restart())):i&&i.totalProgress(lt,!!(be&&($t||D)))),p){if(D&&_&&(st.style[_+R.os2]=Kt),!Z)xt(ji(_t+ut*lt));else if(yn){if(je=!D&<>Ut&&At+1>J&&J+1>=An(I,R),b)if(!D&&(me||je)){var ue=Hn(p,!0),fe=J-ft;_l(p,bt,ue.top+(R===Zt?fe:0)+Qt,ue.left+(R===Zt?0:fe)+Qt)}else _l(p,st);_i(me||je?V:X),Me&<<1&&me||xt(_t+(lt===1&&!je?ut:0))}}m&&!te.tween&&!be&&!Gs&&yt.restart(!0),a&&(Dt||k&<&&(lt<1||!Ta))&&Ts(a.targets).forEach(function(br){return br.classList[me||k?"add":"remove"](a.className)}),o&&!F&&!D&&o(y),yn&&!be?(F&&(wn&&(Et==="complete"?i.pause().totalProgress(1):Et==="reset"?i.restart(!0).pause():Et==="restart"?i.restart(!0):i[Et]()),o&&o(y)),(Dt||!Ta)&&(u&&Dt&&xa(y,u),q[Rt]&&xa(y,q[Rt]),k&&(lt===1?y.kill(!1,1):q[Rt]=0),Dt||(Rt=lt===1?1:3,q[Rt]&&xa(y,q[Rt]))),C&&!me&&Math.abs(y.getVelocity())>(qi(C)?C:2500)&&(Bi(y.callbackAnimation),G?G.progress(1):Bi(i,Et==="reverse"?1:!lt,1))):F&&o&&!be&&o(y)}if(Ye){var ye=E?J/E.duration()*(E._caScrollDist||0):J;Xn(ye+(w._isFlipped?1:0)),Ye(ye)}gn&&gn(-J/E.duration()*(E._caScrollDist||0))}},y.enable=function(D,K){y.enabled||(y.enabled=!0,oe(I,"resize",Gi),B||oe(I,"scroll",ni),mt&&oe(e,"refreshInit",mt),D!==!1&&(y.progress=Gt=0,ne=Xt=vt=Pt()),K!==!1&&y.refresh())},y.getTween=function(D){return D&&te?te.tween:G},y.setPositions=function(D,K,W,J){if(E){var ie=E.scrollTrigger,lt=E.duration(),Ut=ie.end-ie.start;D=ie.start+Ut*D/lt,K=ie.start+Ut*K/lt}y.refresh(!1,!1,{start:ol(D,W&&!!y._startClamp),end:ol(K,W&&!!y._endClamp)},J),y.update()},y.adjustPinSpacing=function(D){if($&&D){var K=$.indexOf(R.d)+1;$[K]=parseFloat($[K])+D+Qt,$[1]=parseFloat($[1])+D+Qt,_i($)}},y.disable=function(D,K){if(D!==!1&&y.revert(!0,!0),y.enabled&&(y.enabled=y.isActive=!1,K||G&&G.pause(),Ot=0,ee&&(ee.uncache=1),mt&&se(e,"refreshInit",mt),yt&&(yt.pause(),te.tween&&te.tween.kill()&&(te.tween=0)),!B)){for(var W=it.length;W--;)if(it[W].scroller===I&&it[W]!==y)return;se(I,"resize",Gi),B||se(I,"scroll",ni)}},y.kill=function(D,K){y.disable(D,K),G&&!K&&G.kill(),c&&delete Cc[c];var W=it.indexOf(y);W>=0&&it.splice(W,1),W===Ie&&go>0&&Ie--,W=0,it.forEach(function(J){return J.scroller===y.scroller&&(W=1)}),W||Pe||(y.scroll.rec=0),i&&(i.scrollTrigger=null,D&&i.revert({kill:!1}),K||i.kill()),ce&&[ce,xe,w,ge].forEach(function(J){return J.parentNode&&J.parentNode.removeChild(J)}),ls===y&&(ls=0),p&&(ee&&(ee.uncache=1),W=0,it.forEach(function(J){return J.pin===p&&W++}),W||(ee.spacer=0)),r.onKill&&r.onKill(y)},it.push(y),y.enable(!1,!1),Vt&&Vt(y),i&&i.add&&!P){var gt=y.update;y.update=function(){y.update=gt,at.cache++,ft||At||y.refresh()},L.delayedCall(.01,y.update),P=.01,ft=At=0}else y.refresh();p&&Gv()},e.register=function(r){return ri||(L=r||uh(),ch()&&window.document&&e.enable(),ri=Vi),ri},e.defaults=function(r){if(r)for(var i in r)Qs[i]=r[i];return Qs},e.disable=function(r,i){Vi=0,it.forEach(function(o){return o[i?"kill":"disable"](r)}),se(ot,"wheel",ni),se(kt,"scroll",ni),clearInterval(qs),se(kt,"touchcancel",On),se(bt,"touchstart",On),Ks(se,kt,"pointerdown,touchstart,mousedown",al),Ks(se,kt,"pointerup,touchend,mouseup",cl),No.kill(),Xs(se);for(var s=0;s0&&o.left+a0&&o.top+a=0&&qe.splice(n,5),qe.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),L.core.getCache(t),xc())}}):qe};ct.revert=function(e,t){return xu(!e,t)};ct.create=function(e,t){return new ct(e,t)};ct.refresh=function(e){return e?Gi(!0):(ri||ct.register())&&Pr(!0)};ct.update=function(e){return++at.cache&&Vn(e===!0?2:0)};ct.clearScrollMemory=yh;ct.maxScroll=function(e,t){return An(e,t?De:Zt)};ct.getScrollFunc=function(e,t){return gr(Ne(e),t?De:Zt)};ct.getById=function(e){return Cc[e]};ct.getAll=function(){return it.filter(function(e){return e.vars.id!=="ScrollSmoother"})};ct.isScrolling=function(){return!!pn};ct.snapDirectional=wu;ct.addEventListener=function(e,t){var n=Yr[e]||(Yr[e]=[]);~n.indexOf(t)||n.push(t)};ct.removeEventListener=function(e,t){var n=Yr[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)};ct.batch=function(e,t){var n=[],r={},i=t.interval||.016,s=t.batchMax||1e9,o=function(u,f){var l=[],d=[],p=L.delayedCall(i,function(){f(l,d),l=[],d=[]}).pause();return function(_){l.length||p.restart(!0),l.push(_.trigger),d.push(_),s<=l.length&&p.progress(1)}},a;for(a in t)r[a]=a.substr(0,2)==="on"&&Te(t[a])&&a!=="onRefreshInit"?o(a,t[a]):t[a];return Te(s)&&(s=s(),oe(ct,"refresh",function(){return s=t.batchMax()})),Ts(e).forEach(function(c){var u={};for(a in r)u[a]=r[a];u.trigger=c,n.push(ct.create(u))}),n};var ml=function(t,n,r,i){return n>i?t(i):n<0&&t(0),r>i?(i-n)/(r-n):r<0?n/(n-r):1},Oa=function e(t,n){n===!0?t.style.removeProperty("touch-action"):t.style.touchAction=n===!0?"auto":n?"pan-"+n+(Wt.isTouch?" pinch-zoom":""):"none",t===Ke&&e(bt,n)},no={auto:1,scroll:1},Zv=function(t){var n=t.event,r=t.target,i=t.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,o=s._gsap||L.core.getCache(s),a=ve(),c;if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==bt&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(no[(c=un(s)).overflowY]||no[c.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==r&&!Wr(s)&&(no[(c=un(s)).overflowY]||no[c.overflowX]),o._isScrollT=a}(o._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},vh=function(t,n,r,i){return Wt.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:i=i&&Zv,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&oe(kt,Wt.eventTypes[0],Sl,!1,!0)},onDisable:function(){return se(kt,Wt.eventTypes[0],Sl,!0)}})},tE=/(input|label|select|textarea)/i,yl,Sl=function(t){var n=tE.test(t.target.tagName);(n||yl)&&(t._gsapAllow=!0,yl=n)},eE=function(t){Cr(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var n=t,r=n.normalizeScrollX,i=n.momentum,s=n.allowNestedScroll,o=n.onRelease,a,c,u=Ne(t.target)||Ke,f=L.core.globals().ScrollSmoother,l=f&&f.get(),d=tr&&(t.content&&Ne(t.content)||l&&t.content!==!1&&!l.smooth()&&l.content()),p=gr(u,Zt),_=gr(u,De),h=1,g=(Wt.isTouch&&ot.visualViewport?ot.visualViewport.scale*ot.visualViewport.width:ot.outerWidth)/ot.innerWidth,v=0,T=Te(i)?function(){return i(a)}:function(){return i||2.8},k,m,b=vh(u,t.type,!0,s),x=function(){return m=!1},E=On,C=On,O=function(){c=An(u,Zt),C=ss(tr?1:0,c),r&&(E=ss(0,An(u,De))),k=Fr},R=function(){d._gsap.y=ji(parseFloat(d._gsap.y)+p.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",p.offset=p.cacheID=0},F=function(){if(m){requestAnimationFrame(x);var rt=ji(a.deltaY/2),Q=C(p.v-rt);if(d&&Q!==p.v+p.offset){p.offset=Q-p.v;var y=ji((parseFloat(d&&d._gsap.y)||0)-p.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+y+", 0, 1)",d._gsap.y=y+"px",p.cacheID=at.cache,Vn()}return!0}p.offset&&R(),m=!0},I,H,B,Z,q=function(){O(),I.isActive()&&I.vars.scrollY>c&&(p()>c?I.progress(1)&&p(c):I.resetTo("scrollY",c))};return d&&L.set(d,{y:"+=0"}),t.ignoreCheck=function(z){return tr&&z.type==="touchmove"&&F()||h>1.05&&z.type!=="touchstart"||a.isGesturing||z.touches&&z.touches.length>1},t.onPress=function(){m=!1;var z=h;h=ji((ot.visualViewport&&ot.visualViewport.scale||1)/g),I.pause(),z!==h&&Oa(u,h>1.01?!0:r?!1:"x"),H=_(),B=p(),O(),k=Fr},t.onRelease=t.onGestureStart=function(z,rt){if(p.offset&&R(),!rt)Z.restart(!0);else{at.cache++;var Q=T(),y,mt;r&&(y=_(),mt=y+Q*.05*-z.velocityX/.227,Q*=ml(_,y,mt,An(u,De)),I.vars.scrollX=E(mt)),y=p(),mt=y+Q*.05*-z.velocityY/.227,Q*=ml(p,y,mt,An(u,Zt)),I.vars.scrollY=C(mt),I.invalidate().duration(Q).play(.01),(tr&&I.vars.scrollY>=c||y>=c-1)&&L.to({},{onUpdate:q,duration:Q})}o&&o(z)},t.onWheel=function(){I._ts&&I.pause(),ve()-v>1e3&&(k=0,v=ve())},t.onChange=function(z,rt,Q,y,mt){if(Fr!==k&&O(),rt&&r&&_(E(y[2]===rt?H+(z.startX-z.x):_()+rt-y[1])),Q){p.offset&&R();var Yt=mt[2]===Q,_e=Yt?B+z.startY-z.y:p()+Q-mt[1],vt=C(_e);Yt&&_e!==vt&&(B+=vt-_e),p(vt)}(Q||rt)&&Vn()},t.onEnable=function(){Oa(u,r?!1:"x"),ct.addEventListener("refresh",q),oe(ot,"resize",q),p.smooth&&(p.target.style.scrollBehavior="auto",p.smooth=_.smooth=!1),b.enable()},t.onDisable=function(){Oa(u,!0),se(ot,"resize",q),ct.removeEventListener("refresh",q),b.kill()},t.lockAxis=t.lockAxis!==!1,a=new Wt(t),a.iOS=tr,tr&&!p()&&p(1),tr&&L.ticker.add(On),Z=a._dc,I=L.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:bh(p,p(),function(){return I.pause()})},onUpdate:Vn,onComplete:Z.vars.onComplete}),a};ct.sort=function(e){if(Te(e))return it.sort(e);var t=ot.pageYOffset||0;return ct.getAll().forEach(function(n){return n._sortY=n.trigger?t+n.trigger.getBoundingClientRect().top:n.start+ot.innerHeight}),it.sort(e||function(n,r){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})};ct.observe=function(e){return new Wt(e)};ct.normalizeScroll=function(e){if(typeof e>"u")return Re;if(e===!0&&Re)return Re.enable();if(e===!1){Re&&Re.kill(),Re=e;return}var t=e instanceof Wt?e:eE(e);return Re&&Re.target===t.target&&Re.kill(),Wr(t.target)&&(Re=t),t};ct.core={_getVelocityProp:Ec,_inputObserver:vh,_scrollers:at,_proxies:Mn,bridge:{ss:function(){pn||Vr("scrollStart"),pn=ve()},ref:function(){return be}}};uh()&&L.registerPlugin(ct);function nE(e,t){for(var n=0;nMath.abs(a)?o:a)/(1-n),u=-c*n,f,l;return c>0&&(f=s.height/(Oe.innerHeight+s.height),l=f===.5?s.height*2:Math.min(s.height,Math.abs(-c*f/(2*f-1)))*2*(n||1),u+=n?-l*n:-l/2,c+=l),{change:c,offset:u}},oE=function(t){var n=er.querySelector(".ScrollSmoother-wrapper");return n||(n=er.createElement("div"),n.classList.add("ScrollSmoother-wrapper"),t.parentNode.insertBefore(n,t),n.appendChild(t)),n},jr=function(){function e(t){var n=this;ro||e.register(St)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),t=this.vars=t||{},Rn&&Rn.kill(),Rn=this,Tl(this);var r=t,i=r.smoothTouch,s=r.onUpdate,o=r.onStop,a=r.smooth,c=r.onFocusIn,u=r.normalizeScroll,f=r.wholePixels,l,d,p,_,h,g,v,T,k,m,b,x,E,C,O=this,R=t.effectsPrefix||"",F=et.getScrollFunc(Oe),I=et.isTouch===1?i===!0?.8:parseFloat(i)||0:a===0||a===!1?0:parseFloat(a)||.8,H=I&&+t.speed||1,B=0,Z=0,q=1,z=vl(0),rt=function(){return z.update(-B)},Q={y:0},y=function(){return l.style.overflow="visible"},mt,Yt=function(S){S.update();var P=S.getTween();P&&(P.pause(),P._time=P._dur,P._tTime=P._tDur),mt=!1,S.animation.progress(S.progress,!0)},_e=function(S,P){(S!==B&&!m||P)&&(f&&(S=Math.round(S)),I&&(l.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+S+", 0, 1)",l._gsap.y=S+"px"),Z=S-B,B=S,et.isUpdating||e.isRefreshing||et.update())},vt=function(S){return arguments.length?(S<0&&(S=0),Q.y=-S,mt=!0,m?B=-S:_e(-S),et.isRefreshing?_.update():F(S/H),this):-B},$t=typeof ResizeObserver<"u"&&t.autoResize!==!1&&new ResizeObserver(function(){if(!et.isRefreshing){var A=Qn(d)*H;A<-B&&vt(A),wl.restart(!0)}}),Gt,Pt=function(S){d.scrollTop=0,!(S.target.contains&&S.target.contains(d)||c&&c(n,S)===!1)&&(et.isInViewport(S.target)||S.target===Gt||n.scrollTo(S.target,!1,"center center"),Gt=S.target)},te=function(S,P){if(S0?tt+(ut-_t):te(ut,S),$.setPositions(tt,xt,!0,($._startClamp?Math.max(0,tt):tt)-_t),$.markerStart&&X.push(St.quickSetter([$.markerStart,$.markerEnd],"y","px")),$.pin&&$.end>0&&!U)){if(st=$.end-$.start,zt=S._startClamp&&$.start<0,zt){if(S.start>0){S.setPositions(0,S.end+(S._startNative-S.start),!0),A(S,P);return}st+=$.start,V.offset=-$.start}V.push({start:$.start,nativeStart:_t,end:$.end,distance:st,trig:$}),S.setPositions(S.start,S.end+(zt?-$.start:st),!0)}},hn=function(S,P){h.forEach(function(U){return ee(U,S,P)})},ne=function(){Xi=er.documentElement,Fn=er.body,y(),requestAnimationFrame(y),h&&(et.getAll().forEach(function(S){S._startNative=S.start,S._endNative=S.end}),h.forEach(function(S){var P=S._startClamp||S.start,U=S.autoSpeed?Math.min(Qn(),S.end):P+Math.abs((S.end-P)/S.ratio),V=U-S.end;if(P-=V/2,U-=V/2,P>U){var X=P;P=U,U=X}S._startClamp&&P<0?(U=S.ratio<0?Qn():S.end/S.ratio,V=U-S.end,P=0):(S.ratio<0||S._endClamp&&U>=Qn())&&(U=Qn(),P=S.ratio<0||S.ratio>1?0:U-(U-S.start)/S.ratio,V=(U-P)*S.ratio-(S.end-S.start)),S.offset=V||1e-4,S.pins.length=S.pins.offset=0,S.setPositions(P,U,!0)}),hn(et.sort())),z.reset()},Xt=function(){return et.addEventListener("refresh",ne)},ft=function(){return h&&h.forEach(function(S){return S.vars.onRefresh(S)})},At=function(){return h&&h.forEach(function(S){return S.vars.onRefreshInit(S)}),ft},ce=function(S,P,U,V){return function(){var X=typeof P=="function"?P(U,V):P;X||X===0||(X=V.getAttribute("data-"+R+S)||(S==="speed"?1:0)),V.setAttribute("data-"+R+S,X);var st=(X+"").substr(0,6)==="clamp(";return{clamp:st,value:st?X.substr(6,X.length-7):X}}},xe=function(S,P,U,V,X){X=(typeof X=="function"?X(V,S):X)||0;var st=ce("speed",P,V,S),zt=ce("lag",U,V,S),tt=St.getProperty(S,"y"),xt=S._gsap,_t,ut,Kt,$,Xn,Me,Ye=[],Ln=function(){P=st(),U=parseFloat(zt().value),_t=parseFloat(P.value)||1,Kt=P.value==="auto",Xn=Kt||ut&&ut._startClamp&&ut.start<=0||Ye.offset?0:ut&&ut._endClamp&&ut.end===Qn()?1:.5,$&&$.kill(),$=U&&St.to(S,{ease:io,overwrite:!1,y:"+=0",duration:U}),ut&&(ut.ratio=_t,ut.autoSpeed=Kt)},on=function(){xt.y=tt+"px",xt.renderTransform(1),Ln()},_n=[],G=0,Tn=function(yt){if(Kt){on();var Ot=sE(S,bl(0,1,-yt.start/(yt.end-yt.start)));G=Ot.change,Me=Ot.offset}else Me=Ye.offset||0,G=(yt.end-yt.start-Me)*(1-_t);Ye.forEach(function(Ve){return G-=Ve.distance*(1-_t)}),yt.offset=G||.001,yt.vars.onUpdate(yt),$&&$.progress(1)};return Ln(),(_t!==1||Kt||$)&&(ut=et.create({trigger:Kt?S.parentNode:S,start:function(){return P.clamp?"clamp(top bottom+="+X+")":"top bottom+="+X},end:function(){return P.value<0?"max":P.clamp?"clamp(bottom top-="+X+")":"bottom top-="+X},scroller:d,scrub:!0,refreshPriority:-999,onRefreshInit:on,onRefresh:Tn,onKill:function(yt){var Ot=h.indexOf(yt);Ot>=0&&h.splice(Ot,1),on()},onUpdate:function(yt){var Ot=tt+G*(yt.progress-Xn),Ve=Ye.length,gn=0,Vt,mn,j;if(yt.offset){if(Ve){for(mn=-B,j=yt.end;Ve--;){if(Vt=Ye[Ve],Vt.trig.isActive||mn>=Vt.start&&mn<=Vt.end){$&&(Vt.trig.progress+=Vt.trig.direction<0?.001:-.001,Vt.trig.update(0,0,1),$.resetTo("y",parseFloat(xt.y),-Z,!0),q&&$.progress(1));return}mn>Vt.end&&(gn+=Vt.distance),j-=Vt.distance}Ot=tt+gn+G*((St.utils.clamp(yt.start,yt.end,mn)-yt.start-gn)/(j-yt.start)-Xn)}_n.length&&!Kt&&_n.forEach(function(Y){return Y(Ot-gn)}),Ot=iE(Ot+Me),$?($.resetTo("y",Ot,-Z,!0),q&&$.progress(1)):(xt.y=Ot+"px",xt.renderTransform(1))}}}),Tn(ut),St.core.getCache(ut.trigger).stRevert=At,ut.startY=tt,ut.pins=Ye,ut.markers=_n,ut.ratio=_t,ut.autoSpeed=Kt,S.style.willChange="transform"),ut};Xt(),et.addEventListener("killAll",Xt),St.delayedCall(.5,function(){return q=0}),this.scrollTop=vt,this.scrollTo=function(A,S,P){var U=St.utils.clamp(0,Qn(),isNaN(A)?n.offset(A,P,!!S&&!m):+A);S?m?St.to(n,{duration:I,scrollTop:U,overwrite:"auto",ease:io}):F(U):vt(U)},this.offset=function(A,S,P){A=Or(A)[0];var U=A.style.cssText,V=et.create({trigger:A,start:S||"top top"}),X;return h&&(q?et.refresh():hn([V],!0)),X=V.start/(P?H:1),V.kill(!1),A.style.cssText=U,St.core.getCache(A).uncache=1,X};function w(){return p=l.clientHeight,l.style.overflow="visible",Fn.style.height=Oe.innerHeight+(p-Oe.innerHeight)/H+"px",p-Oe.innerHeight}this.content=function(A){if(arguments.length){var S=Or(A||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||Fn.children[0];return S!==l&&(l=S,k=l.getAttribute("style")||"",$t&&$t.observe(l),St.set(l,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),I||St.set(l,{clearProps:"transform"})),this}return l},this.wrapper=function(A){return arguments.length?(d=Or(A||"#smooth-wrapper")[0]||oE(l),T=d.getAttribute("style")||"",w(),St.set(d,I?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):d},this.effects=function(A,S){var P;if(h||(h=[]),!A)return h.slice(0);A=Or(A),A.forEach(function(_t){for(var ut=h.length;ut--;)h[ut].trigger===_t&&h[ut].kill()}),S=S||{};var U=S,V=U.speed,X=U.lag,st=U.effectsPadding,zt=[],tt,xt;for(tt=0;ttU._dp._time,x=B,Q.y=0,I&&(et.isTouch===1&&(d.style.position="absolute"),d.scrollTop=0,et.isTouch===1&&(d.style.position="fixed"))}},onRefresh:function(S){S.animation.invalidate(),Q.y=0,S.setPositions(S.start,w()/H),E||Yt(S),Q.y=-F()*H,_e(Q.y),q||(E&&(mt=!1),S.animation.progress(St.utils.clamp(0,1,x/H/-S.end))),E&&(S.progress-=.001,S.update()),e.isRefreshing=!1},id:"ScrollSmoother",scroller:Oe,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return w()/H},onScrubComplete:function(){z.reset(),o&&o(n)},scrub:I||!0}),this.smooth=function(A){return arguments.length&&(I=A||0,H=I&&+t.speed||1,_.scrubDuration(A)),_.getTween()?_.getTween().duration():0},_.getTween()&&(_.getTween().vars.ease=t.ease||io),this.scrollTrigger=_,t.effects&&this.effects(t.effects===!0?"[data-"+R+"speed], [data-"+R+"lag]":t.effects,{effectsPadding:t.effectsPadding,refresh:!1}),t.sections&&this.sections(t.sections===!0?"[data-section]":t.sections),ge.forEach(function(A){A.vars.scroller=d,A.revert(!1,!0),A.init(A.vars,A.animation)}),this.paused=function(A,S){return arguments.length?(!!m!==A&&(A?(_.getTween()&&_.getTween().pause(),F(-B/H),z.reset(),b=et.normalizeScroll(),b&&b.disable(),m=et.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return vt(-B)}}),m.nested=El(Xi,"wheel,touch,scroll",!0,S!==!1)):(m.nested.kill(),m.kill(),m=0,b&&b.enable(),_.progress=(-B/H-_.start)/(_.end-_.start),Yt(_))),this):!!m},this.kill=this.revert=function(){n.paused(!1),Yt(_),_.kill();for(var A=(h||[]).concat(g||[]),S=A.length;S--;)A[S].kill();et.scrollerProxy(d),et.removeEventListener("killAll",Xt),et.removeEventListener("refresh",ne),d.style.cssText=T,l.style.cssText=k;var P=et.defaults({});P&&P.scroller===d&&et.defaults({scroller:Oe}),n.normalizer&&et.normalizeScroll(!1),clearInterval(v),Rn=null,$t&&$t.disconnect(),Fn.style.removeProperty("height"),Oe.removeEventListener("focusin",Pt)},this.refresh=function(A,S){return _.refresh(A,S)},u&&(this.normalizer=et.normalizeScroll(u===!0?{debounce:!0,content:!I&&l}:u)),et.config(t),"scrollBehavior"in Oe.getComputedStyle(Fn)&&St.set([Fn,Xi],{scrollBehavior:"auto"}),Oe.addEventListener("focusin",Pt),v=setInterval(rt,250),er.readyState==="loading"||requestAnimationFrame(function(){return et.refresh()})}return e.register=function(n){return ro||(St=n||Th(),Eh()&&window.document&&(Oe=window,er=document,Xi=er.documentElement,Fn=er.body),St&&(Or=St.utils.toArray,bl=St.utils.clamp,io=St.parseEase("expo"),Tl=St.core.context||function(){},et=St.core.globals().ScrollTrigger,St.core.globals("ScrollSmoother",e),Fn&&et&&(wl=St.delayedCall(.2,function(){return et.isRefreshing||Rn&&Rn.refresh()}).pause(),vl=et.core._getVelocityProp,El=et.core._inputObserver,e.refresh=et.refresh,ro=1))),ro},rE(e,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),e}();jr.version="3.14.1";jr.create=function(e){return Rn&&e&&Rn.content()===Or(e.content)[0]?Rn:new jr(e)};jr.get=function(){return Rn};Th()&&St.registerPlugin(jr);const aE="https://98577840dda94253bdbb8f2812974a09@glitchtip.figli.io/2";yb({dsn:aE,environment:/^(dev\.|.*\.localhost$|localhost$)/.test(window.location.hostname)?"development":"production",sendDefaultPii:!1});ai.registerPlugin(ct,jr);(function(e,t){(function(){t.path.isFront,console.log("drupalSettings",t);const r=["pyramide","prct","infinite","pi","supeg","cone","croissant","cube","diamant","cylindre"];let i=[],s=null;function o(){console.log("MathalloTheme init()"),a(),c(),f(),l(),_(),g()}function a(){document.getElementById("burger-btn").parentElement.addEventListener("click",function(b){this.firstElementChild.toggleAttribute("opened"),this.firstElementChild.nextElementSibling.toggleAttribute("opened")})}function c(){let m=document.getElementById("partie-principes-pratique");if(m){let b=m.getElementsByClassName("field-card");for(const x of b)x.addEventListener("mousemove",function(E){for(const C of this.parentElement.children)C.classList.add("back-card"),C.classList.remove("front-card");this.classList.add("front-card"),this.classList.remove("back-card")})}}function u(){i.forEach(({card:m,forme:b,formepos:x})=>{b.style.top=`${m.offsetTop+x.top}px`,b.style.left=`${m.offsetLeft+x.left}px`})}function f(){let m=document.querySelectorAll('article[role="home-presentation"] p'),b=[];for(const x of m){let E=Math.round(Math.random()*(r.length-1));for(;b.includes(E);)E=Math.round(Math.random()*(r.length-1));b.push(E),x.classList.add(`forme-${r[E]}`)}}async function l(){const m=document.querySelector('main[role="main"] > .layout-content > .wrapper');let b=document.querySelectorAll('article[role="home-presentation"], .field-card, .node-type-chapitre, .node-type-partie'),x=[],E=1;for(const C of b){let O={card:C},R=Math.round(Math.random()*(r.length-1));for(;x.includes(R);)R=Math.round(Math.random()*(r.length-1));x.push(R);let F=await p(C,R);m.prepend(F),O.forme=F,O.formepos={left:F.offsetLeft-C.offsetLeft,top:F.offsetTop-C.offsetTop},i.push(O),d(C,F,E),E*=-1}window.addEventListener("resize",u)}function d(m,b,x){ai.timeline({scrollTrigger:{trigger:m,start:"top bottom",end:"bottom top",scrub:!0,ease:"power4.out",snap:!1}}).from(m.children,{opacity:.4},0).to(m.children,{opacity:1},.5).to(m.children,{opacity:.4},.7).from(m,{translateX:`${200*x}px`,translateY:`${100*x}px`},0).to(m,{translateX:"0",translateY:"0"},.5),ai.to(b.querySelector("svg"),{scrollTrigger:{trigger:b,start:"top bottom",end:"bottom top",scrub:!0,ease:"power4.out"},rotation:Math.random()>.5?45:-45,skewX:Math.random()>.5?10:-10}),ai.timeline({scrollTrigger:{trigger:m,start:"top center",end:"bottom center",scrub:!0,markers:!1}}).to(b.querySelector("svg"),{stroke:"#f661e2",duration:.1},.3).to(b.querySelector("svg"),{stroke:"#1642bc",duration:.1},.7)}async function p(m,b){let x=document.createElement("div");x.classList.add("bg-forme");const C=await(await fetch(`/themes/custom/mathallo/assets/img/formes/bordure/${r[b]}.svg`)).text();x.innerHTML=C;const O=x.querySelector("svg");let R=200+Math.random()*300;O.getAttribute("width"),x.style.width=x.style.height=`${R}px`,O.setAttribute("width",R),O.setAttribute("height",R);let F=m.offsetTop+m.clientHeight/2-R/2;m.clientHeight<300&&(F=Math.random()>.5?m.offsetTop-R/2:m.offsetTop+m.clientHeight-R/2),x.style.top=`${F}px`;let I=20+Math.random()*20;return m.classList.contains("field-principes-reflexion")||m.classList.contains("field-ressources")?x.style.left=`${m.offsetLeft-R+I}px`:m.classList.contains("field-en-pratique")||m.classList.contains("field-plus-loin")?x.style.left=`${m.offsetLeft+m.clientWidth-I}px`:x.style.left=Math.random()>.5?`${m.offsetLeft-R+I}px`:`${m.offsetLeft+m.clientWidth-I}px`,x}function _(){s=jr.create({smooth:3,effects:!0,smoothTouch:.1,wrapper:'main[role="main"]',content:'main[role="main"]>.layout-content',onUpdate:h}),console.log("smoother",s),ai.to("#parallax-bg",{y:(m,b)=>-(ct.maxScroll(window)*1.2),ease:"none",scrollTrigger:{trigger:'main[role="main"] > .layout-content > .wrapper',start:"top bottom",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}})}function h(m){}function g(){let m=document.querySelectorAll(".footnote__citation"),b=[];for(const x of m){console.log("fn",x);let E=Math.round(Math.random()*(r.length-1));for(;b.includes(E);)E=Math.round(Math.random()*(r.length-1));b.push(E),x.querySelector("span.footnote-link").classList.add(`forme-${r[E]}`),x.addEventListener("click",v)}}function v(m){m.preventDefault(),m.stopPropagation(),console.log("onClickFN, event:",m);let b=m.currentTarget,x=b.offsetParent;k();let E=document.createElement("div");E.classList.add("fn-modale"),x.append(E),E.innerHTML=b.querySelector(".footnote-content").innerHTML;let C=20,O=x.clientWidth*2/3,R=window.innerHeight*.3;E.style.maxWidth=`${O}px`,E.style.maxHeight=`${R}px`,E.style.overflowY="auto";let F=E.offsetWidth,I=E.offsetHeight,H=b.offsetLeft,B=b.offsetTop,Z=b.offsetWidth,q=b.offsetHeight,z=x.clientWidth,rt=x.clientHeight,Q,y;H+Z/2>z/2?(Q=H-F-C,Qz-C&&(Q=z-F-C)),B+q/2>rt/2?(y=B-I-C,yrt-C&&(y=rt-I-C)),E.style.left=`${Q}px`,E.style.top=`${y}px`,E.classList.add("visible"),x.addEventListener("click",T)}function T(m){console.log("onClickFNParent, event:",m),k(),m.target.removeEventListener("click",T)}function k(){let m=document.querySelectorAll("div.fn-modale");for(const b of m)b.remove()}o()})()})(Drupal,drupalSettings);