const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProjectsPage-DOU0W5yf.js","assets/StartingPointPicker-DW8GYCWz.js","assets/index-VSg62aIN.js","assets/store-R2-ikiH9.js","assets/ProjectPage-CQ7gfF1S.js","assets/FromCcPage-CyebABRS.js","assets/index-4ImraHMq.js","assets/browser-CXh1ITwj.js","assets/client-vNbi9KGS.js"])))=>i.map(i=>d[i]); function hD(e,t){for(var n=0;nr[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var gd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $m={exports:{}},Nl={},Ym={exports:{}},Fe={};var JS;function mD(){if(JS)return Fe;JS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function g(L){return L===null||typeof L!="object"?null:(L=p&&L[p]||L["@@iterator"],typeof L=="function"?L:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function _(L,G,$){this.props=L,this.context=G,this.refs=S,this.updater=$||b}_.prototype.isReactComponent={},_.prototype.setState=function(L,G){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,G,"setState")},_.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function E(){}E.prototype=_.prototype;function A(L,G,$){this.props=L,this.context=G,this.refs=S,this.updater=$||b}var x=A.prototype=new E;x.constructor=A,w(x,_.prototype),x.isPureReactComponent=!0;var C=Array.isArray,O=Object.prototype.hasOwnProperty,T={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function W(L,G,$){var q,ue={},be=null,fe=null;if(G!=null)for(q in G.ref!==void 0&&(fe=G.ref),G.key!==void 0&&(be=""+G.key),G)O.call(G,q)&&!I.hasOwnProperty(q)&&(ue[q]=G[q]);var ie=arguments.length-2;if(ie===1)ue.children=$;else if(1{Fi[e]=Pr[e]});const Ll="Datadog Browser SDK:",Ie={debug:Fi.debug.bind(Pr,Ll),log:Fi.log.bind(Pr,Ll),info:Fi.info.bind(Pr,Ll),warn:Fi.warn.bind(Pr,Ll),error:Fi.error.bind(Pr,Ll)},qf="https://docs.datadoghq.com",bD=`${qf}/real_user_monitoring/browser/troubleshooting`,nv="More details:";function D1(e,t){return(...n)=>{try{return e(...n)}catch(r){Ie.error(t,r)}}}function wo(e){return e!==0&&Math.random()*100<=e}function Bi(e,t){return+e.toFixed(t)}function vD(e){return jc(e)&&e>=0&&e<=100}function jc(e){return typeof e=="number"}function eh(e){try{return JSON.parse(e)}catch{}}function Lo(e){return{...e}}function df(e,t){return Object.keys(e).some(n=>e[n]===t)}function js(e){return Object.keys(e).length===0}function M1(e,t){const n={};for(const r of Object.keys(e))n[r]=t(e[r]);return n}function Ht(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}const ir=Ht(),$c="WorkerGlobalScope"in ir;function Jr(e,t){const n=Ht();let r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}let dy,B1=!1;function wD(e){dy=e}function _D(e){B1=e}function Le(e){return function(...t){return Mn(e,this,t)}}function Mn(e,t,n){try{return e.apply(t,n)}catch(r){Uo(r)}}function Uo(e){if(fy(e),dy)try{dy(e)}catch(t){fy(t)}}function fy(...e){B1&&Ie.error("[MONITOR]",...e)}function Zt(e,t){return Jr(Ht(),"setTimeout")(Le(e),t)}function Gn(e){Jr(Ht(),"clearTimeout")(e)}function ka(e,t){return Jr(Ht(),"setInterval")(Le(e),t)}function th(e){Jr(Ht(),"clearInterval")(e)}function tE(e){const t=ir.queueMicrotask;typeof t=="function"?t(Le(e)):Promise.resolve().then(Le(e))}class Ue{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(n=>n(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(n=>t!==n),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function G1(...e){return new Ue(t=>{const n=e.map(r=>r.subscribe(s=>t.notify(s)));return()=>n.forEach(r=>r.unsubscribe())})}class V1 extends Ue{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}subscribe(t){let n=!1;const r={unsubscribe:()=>{n=!0,this.removeObserver(t)}};return tE(()=>{for(const s of this.buffer){if(n)return;t(s)}n||this.addObserver(t)}),r}unbuffer(){tE(()=>{this.maxBufferSize=this.buffer.length=0})}}const Kt=1e3,an=60*Kt,U1=60*an,SD=24*U1,W1=365*SD;function Yc(e){return{relative:e,timeStamp:ED(e)}}function P1(e){return{relative:$1(e),timeStamp:e}}function ED(e){const t=sn()-performance.now();return t>Zc()?Math.round(Wo(t,e)):AD(e)}function kD(){return Math.round(sn()-Wo(Zc(),performance.now()))}function xe(e){return jc(e)?Bi(e*1e6,0):e}function sn(){return new Date().getTime()}function bt(){return sn()}function xn(){return performance.now()}function qe(){return{relative:xn(),timeStamp:bt()}}function j1(){return{relative:0,timeStamp:Zc()}}function He(e,t){return t-e}function Wo(e,t){return e+t}function $1(e){return e-Zc()}function AD(e){return Math.round(Wo(Zc(),e))}function xD(e){return e{if(o){l=u;return}r?e(...u):l=u,o=!0,c=Zt(()=>{s&&l&&e(...l),o=!1,l=void 0},t)},cancel:()=>{Gn(c),o=!1,l=void 0}}}function Ze(){}function It(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,It)}const na=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function yc(e,t){for(na.lastIndex=0;;){const n=na.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function RD(e){const t=new Map;for(na.lastIndex=0;;){const n=na.exec(e);if(n){const r=n[1],s=n[2];t.has(r)?t.get(r).push(s):t.set(r,[s])}else break}return t}function TD(e){const t=new Map;for(na.lastIndex=0;;){const n=na.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function rh(e,t,n=""){const r=e.charCodeAt(t-1),o=r>=55296&&r<=56319?t+1:t;return e.length<=o?e:`${e.slice(0,o)}${n}`}function ID(){return Y1()===0}function Yne(){return Y1()===1}let yd;function Y1(){return yd??(yd=CD())}function CD(e=window){var t;const n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}function rv(e){return Aa(e,location.href).href}function ND(e){try{return!!Aa(e)}catch{return!1}}function LD(e){const t=Aa(e).pathname;return t[0]==="/"?t:`/${t}`}function Aa(e,t){const{URL:n}=FD();try{return t!==void 0?new n(e,t):new n(e)}catch(r){throw new Error(`Failed to construct URL: ${String(r)}`)}}let Xm;function FD(){var e;if(!Xm){let t,n;try{t=document.createElement("iframe"),t.style.display="none",document.body.appendChild(t),n=(e=t.contentWindow)!==null&&e!==void 0?e:ir}catch{n=ir}Xm={URL:n.URL},t?.remove()}return Xm}function sh(e,t,n=0,r){const s=new Date;s.setTime(s.getTime()+n);const o=`expires=${s.toUTCString()}`,l=r&&r.crossSite?"none":"strict",c=r&&r.domain?`;domain=${r.domain}`:"",u=r&&r.secure?";secure":"",f=r&&r.partitioned?";partitioned":"";document.cookie=`${e}=${t};${o};path=/;samesite=${l}${c}${u}${f}`}function oh(e){return yc(document.cookie,e)}function OD(e){return RD(document.cookie).get(e)||[]}let zm;function $r(e){return zm||(zm=TD(document.cookie)),zm.get(e)}function Z1(e,t){sh(e,"",0,t)}function DD(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${It()}`,n="test";sh(t,n,an,e);const r=oh(t)===n;return Z1(t,e),r}catch(t){return Ie.error(t),!1}}let Hm;function X1(e=location.hostname,t=document.referrer){if(Hm===void 0){const n=MD(e,t);if(n){const r=`dd_site_test_${It()}`,s="test",o=n.split(".");let l=o.pop();for(;o.length&&!oh(r);)l=`${o.pop()}.${l}`,sh(r,s,Kt,{domain:l});Z1(r,{domain:l}),Hm=l}}return Hm}function MD(e,t){try{return e||Aa(t).hostname}catch{}}const Qr="_dd_s";function sv(e,t){for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(t(r,n,e))return r}}function z1(e){return Object.values(e)}function ih(e){return Object.entries(e)}const Po=4*U1,H1=15*an,BD=W1,K1="0",Pn={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"},J1=/^([a-zA-Z]+)=([a-z0-9-]+)$/,ov="&";function GD(e){return!!e&&(e.indexOf(ov)!==-1||J1.test(e))}const VD="1";function Cs(e,t){const n={isExpired:VD};return t.trackAnonymousUser&&e?.anonymousId&&(n.anonymousId=e?.anonymousId),n}function Bd(e){return js(e)}function Q1(e){return!Bd(e)}function Ql(e){return e.isExpired!==void 0||!UD(e)}function UD(e){return(e.created===void 0||sn()-Number(e.created)t==="anonymousId"?`aid=${n}`:`${t}=${n}`).join(ov)}function ah(e){const t={};return GD(e)&&e.split(ov).forEach(n=>{const r=J1.exec(n);if(r!==null){const[,s,o]=r;s==="aid"?t.anonymousId=o:t[s]=o}}),t}const WD="_dd",PD="_dd_r",jD="_dd_l",$D="rum",YD="logs";function ZD(e){if(!$r(Qr)){const n=$r(WD),r=$r(PD),s=$r(jD),o={};n&&(o.id=n),s&&/^[01]$/.test(s)&&(o[YD]=s),r&&/^[012]$/.test(r)&&(o[$D]=r),Q1(o)&&(q1(o),e.persistSession(o))}}const XD=0;function zD(e){const t=KD(e);return t&&DD(t)?{type:Pn.COOKIE,cookieOptions:t}:void 0}function HD(e,t){const n={isLockEnabled:ID(),persistSession:r=>nE(t,e,r,H1),retrieveSession:()=>eR(t,e),expireSession:r=>nE(t,e,Cs(r,e),Po)};return ZD(n),n}function nE(e,t,n,r){let s=hy(n);t.betaEncodeCookieOptions&&(s=hy({...n,...js(n)?{}:{c:tR(e)}})),sh(Qr,s,t.trackAnonymousUser?BD:r,e)}function eR(e,t){if(t.betaEncodeCookieOptions)return JD(e);const n=oh(Qr);return ah(n)}function KD(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const n=X1();if(!n)return;t.domain=n}return t}function tR(e){const t=e.domain?e.domain.split(".").length-1:0;let n=0;return n|=XD<<5,n|=t<<1,n|=e.crossSite?1:0,n.toString(16)}function JD(e){const t=OD(Qr),n=tR(e);let r;for(const s of t.reverse())if(r=ah(s),r.c===n)break;return r==null||delete r.c,r??{}}const QD="_dd_test_";function qD(){try{const e=It(),t=`${QD}${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:Pn.LOCAL_STORAGE}:void 0}catch{return}}function e5(e){return{isLockEnabled:!1,persistSession:nR,retrieveSession:rR,expireSession:t=>t5(t,e)}}function nR(e){localStorage.setItem(Qr,hy(e))}function rR(){const e=localStorage.getItem(Qr);return ah(e)}function t5(e,t){nR(Cs(e,t))}const n5=10,r5=100,s5=Kt,sR="--",oR=[];let Gd;function mo(e,t,n=0){var r;const{isLockEnabled:s,persistSession:o,expireSession:l}=t,c=g=>o({...g,lock:f}),u=()=>{const{lock:g,...b}=t.retrieveSession();return{session:b,lock:g&&!i5(g)?g:void 0}};if(Gd||(Gd=e),e!==Gd){oR.push(e);return}if(s&&n>=r5){rE(t);return}let f,h=u();if(s){if(h.lock){bd(e,t,n);return}if(f=o5(),c(h.session),h=u(),h.lock!==f){bd(e,t,n);return}}let p=e.process(h.session);if(s&&(h=u(),h.lock!==f)){bd(e,t,n);return}if(p&&(Ql(p)?l(p):(q1(p),s?c(p):o(p))),s&&!(p&&Ql(p))){if(h=u(),h.lock!==f){bd(e,t,n);return}o(h.session),p=h.session}(r=e.after)===null||r===void 0||r.call(e,p||h.session),rE(t)}function bd(e,t,n){Zt(()=>{mo(e,t,n+1)},n5)}function rE(e){Gd=void 0;const t=oR.shift();t&&mo(t,e)}function o5(){return It()+sR+bt()}function i5(e){const[,t]=e.split(sR);return!t||He(Number(t),bt())>s5}const Vd="_DD_SESSION";function a5(){return{type:Pn.MEMORY}}function l5(e){return{expireSession:t=>u5(t,e),isLockEnabled:!1,persistSession:iR,retrieveSession:c5}}function c5(){const e=Ht();return e[Vd]||(e[Vd]={}),Lo(e[Vd])}function iR(e){const t=Ht();t[Vd]=Lo(e)}function u5(e,t){iR(Cs(e,t))}const sE=Kt;function d5(e){const{sessionPersistence:t}=e,n=f5(t,e);for(const r of n){const s=h5(r,e);if(s!==void 0)return s}}function f5(e,t){return Array.isArray(e)?e:e!==void 0?[e]:t.allowFallbackToLocalStorage?[Pn.COOKIE,Pn.LOCAL_STORAGE]:[Pn.COOKIE]}function h5(e,t){switch(e){case Pn.COOKIE:return zD(t);case Pn.LOCAL_STORAGE:return qD();case Pn.MEMORY:return a5();default:Ie.error(`Invalid session persistence '${String(e)}'`);return}}function p5(e,t){return e.type===Pn.COOKIE?HD(t,e.cookieOptions):e.type===Pn.LOCAL_STORAGE?e5(t):l5(t)}function m5(e,t,n,r,s=p5(e,t)){const o=new Ue,l=new Ue,c=new Ue,u=ka(b,sE);let f;S();const{throttled:h,cancel:p}=nh(()=>{mo({process:T=>{if(Bd(T))return;const I=w(T);return _(I),I},after:T=>{Q1(T)&&!E()&&C(T),f=T}},s)},sE);function g(){mo({process:T=>E()?w(T):void 0},s)}function b(){const T=s.retrieveSession();Ql(T)?mo({process:I=>Ql(I)?Cs(I,t):void 0,after:w},s):w(T)}function w(T){return Ql(T)&&(T=Cs(T,t)),E()&&(A(T)?x():(c.notify({previousState:f,newState:T}),f=T)),T}function S(){mo({process:T=>{if(Bd(T))return T.anonymousId=It(),Cs(T,t)},after:T=>{f=T}},s)}function _(T){if(Bd(T))return!1;const I=r(T[n]);T[n]=I,delete T.isExpired,I!==K1&&!T.id&&(T.id=It(),T.created=String(sn())),t.trackAnonymousUser&&!T.anonymousId&&(T.anonymousId=It())}function E(){return f?.[n]!==void 0}function A(T){return f.id!==T.id||f[n]!==T[n]}function x(){f=Cs(f,t),l.notify()}function C(T){f=T,o.notify()}function O(T){mo({process:I=>({...I,...T}),after:w},s)}return{expandOrRenewSession:h,expandSession:g,getSession:()=>f,renewObservable:o,expireObservable:l,sessionStateUpdateObservable:c,restartSession:S,expire:T=>{p(),T===!1&&f&&delete f.anonymousId,s.expireSession(f),w(Cs(f,t))},stop:()=>{th(u)},updateSessionState:O}}const py={GRANTED:"granted",NOT_GRANTED:"not-granted"};function g5(e){const t=new Ue;return{tryToInit(n){e||(e=n)},update(n){e=n,t.notify()},isGranted(){return e===py.GRANTED},observable:t}}function xa(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function jo(e){return xa(e)==="object"}function ff(e){const t=xa(e);return t==="string"||t==="function"||e instanceof RegExp}function lh(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(s){Ie.error(s)}return!1})}function Zne(e){return e}const y5=["chrome-extension://","moz-extension://"];function oE(e){return y5.some(t=>e.includes(t))}function b5(e,t=""){if(oE(e))return!1;const r=t.split(` `).filter(s=>{const o=s.trim();return o.length&&/^at\s+|@/.test(o)})[1]||"";return oE(r)}const v5="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",w5="SDK initialized on a non-allowed domain.";function _5(e,t){const n=Ht().location,r=n?n.origin:"",s=e.allowedTrackingOrigins;if(!s)return b5(r,t)?(Ie.error(v5),!1):!0;const o=lh(s,r);return o||Ie.error(w5),o}const aR="datad0g.com",S5="dd0g-gov.com",_o="datadoghq.com",E5="datadoghq.eu",k5="ddog-gov.com",A5="pci.browser-intake-datadoghq.com",x5=["ddsource","dd-api-key","dd-request-id"];function Ts(e,t,n){const r=R5(e,t);return{build(s,o){const l=T5(e,t,s,o,n);return r(l)},trackType:t}}function R5(e,t){const n=`/api/v2/${t}`,r=e.proxy;if(typeof r=="string"){const o=rv(r);return l=>`${o}?ddforward=${encodeURIComponent(`${n}?${l}`)}`}if(typeof r=="function")return o=>r({path:n,parameters:o});const s=lR(t,e);return o=>`https://${s}${n}?${o}`}function lR(e,t){const{site:n=_o,internalAnalyticsSubdomain:r}=t;if(e==="logs"&&t.usePciIntake&&n===_o)return A5;if(r&&n===_o)return`${r}.${_o}`;if(n===S5)return`http-intake.logs.${n}`;const s=n.split("."),o=s.pop();return`browser-intake-${s.join("-")}.${o}`}function T5({clientToken:e,internalAnalyticsSubdomain:t,source:n="browser"},r,s,{retry:o,encoding:l},c=[]){const u=[`ddsource=${n}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.32.0")}`,"dd-evp-origin=browser",`dd-request-id=${It()}`].concat(c);return l&&u.push(`dd-evp-encoding=${l}`),r==="rum"&&(u.push(`batch_time=${bt()}`,`_dd.api=${s}`),o&&u.push(`_dd.retry_count=${o.count}`,`_dd.retry_after=${o.lastFailureStatus}`)),t&&u.reverse(),u.join("&")}function I5(e){const t=e.site||_o,n=C5(e.source),r=N5({...e,site:t,source:n});return{replica:L5({...e,site:t,source:n}),site:t,source:n,...r}}function C5(e){return e==="flutter"||e==="unity"?e:"browser"}function N5(e){return{logsEndpointBuilder:Ts(e,"logs"),rumEndpointBuilder:Ts(e,"rum"),profilingEndpointBuilder:Ts(e,"profile"),sessionReplayEndpointBuilder:Ts(e,"replay"),exposuresEndpointBuilder:Ts(e,"exposures"),flagEvaluationEndpointBuilder:Ts(e,"flagevaluation")}}function L5(e){if(!e.replica)return;const t={...e,site:_o,clientToken:e.replica.clientToken};return{logsEndpointBuilder:Ts(t,"logs"),rumEndpointBuilder:Ts(t,"rum",[`application.id=${e.replica.applicationId}`])}}function F5(e){return x5.every(t=>e.includes(t))}const Gi={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},my={ALL:"all",SAMPLED:"sampled"};function Km(e,t){return e!=null&&typeof e!="string"?(Ie.error(`${t} must be defined as a string`),!1):!0}function O5(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(Ie.error(`Site should be a valid Datadog site. ${nv} ${qf}/getting_started/site/.`),!1):!0}function Vi(e,t){return e!==void 0&&!vD(e)?(Ie.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function D5(e,t){var n,r,s,o,l,c,u,f,h,p;if(!e||!e.clientToken){Ie.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){Ie.error("Allowed Tracking Origins must be an array");return}if(!(!O5(e.site)||!Vi(e.sessionSampleRate,"Session")||!Vi(e.telemetrySampleRate,"Telemetry")||!Vi(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!Vi(e.telemetryUsageSampleRate,"Telemetry Usage")||!Km(e.version,"Version")||!Km(e.env,"Env")||!Km(e.service,"Service")||!_5(e,t??""))){if(e.trackingConsent!==void 0&&!df(py,e.trackingConsent)){Ie.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&D1(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:$c?void 0:d5(e),sessionSampleRate:(n=e.sessionSampleRate)!==null&&n!==void 0?n:100,telemetrySampleRate:(r=e.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(s=e.telemetryConfigurationSampleRate)!==null&&s!==void 0?s:5,telemetryUsageSampleRate:(o=e.telemetryUsageSampleRate)!==null&&o!==void 0?o:5,service:(l=e.service)!==null&&l!==void 0?l:void 0,env:(c=e.env)!==null&&c!==void 0?c:void 0,version:(u=e.version)!==null&&u!==void 0?u:void 0,datacenter:(f=e.datacenter)!==null&&f!==void 0?f:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(h=e.trackingConsent)!==null&&h!==void 0?h:py.GRANTED,trackAnonymousUser:(p=e.trackAnonymousUser)!==null&&p!==void 0?p:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,betaEncodeCookieOptions:!!e.betaEncodeCookieOptions,variant:e.variant,sdkVersion:e.sdkVersion,...I5(e)}}}function M5(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackAnonymousUser,session_persistence:Array.isArray(e.sessionPersistence)?e.sessionPersistence[0]:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),beta_encode_cookie_options:e.betaEncodeCookieOptions,source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}var pn;(function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.SHORT_SESSION_INVESTIGATION="short_session_investigation",e.START_STOP_ACTION="start_stop_action",e.START_STOP_RESOURCE="start_stop_resource",e.USE_CHANGE_RECORDS="use_change_records",e.USE_INCREMENTAL_CHANGE_RECORDS="use_incremental_change_records",e.INP_SUBPARTS="inp_subparts",e.TOO_MANY_REQUESTS_INVESTIGATION="too_many_requests_investigation",e.COMPOSED_PATH_SELECTOR="composed_path_selector"})(pn||(pn={}));const iv=new Set;function B5(e){Array.isArray(e)&&G5(e.filter(t=>df(pn,t)))}function G5(e){e.forEach(t=>{iv.add(t)})}function sr(e){return iv.has(e)}function V5(){return iv}const ra="?";function Ra(e){var t,n;const r=[];let s=Jm(e,"stack");const o=String(e);if(s&&s.startsWith(o)&&(s=s.slice(o.length)),s&&s.split(` `).forEach(l=>{const c=P5(l)||Y5(l)||X5(l)||K5(l);c&&(!c.func&&c.line&&(c.func=ra),r.push(c))}),r.length>0&&eM()&&e instanceof Error){const l=[];let c=e;for(;(c=Object.getPrototypeOf(c))&&uR(c);){const u=((t=c.constructor)===null||t===void 0?void 0:t.name)||ra;l.push(u)}for(let u=l.length-1;u>=0&&((n=r[0])===null||n===void 0?void 0:n.func)===l[u];u--)r.shift()}return{message:Jm(e,"message"),name:Jm(e,"name"),stack:r}}const cR="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",sa="(?::(\\d+))",U5=new RegExp(`^\\s*at (.*?) ?\\(${cR}${sa}?${sa}?\\)?\\s*$`,"i"),W5=new RegExp(`\\((\\S*)${sa}${sa}\\)`);function P5(e){const t=U5.exec(e);if(!t)return;const n=t[2]&&t[2].indexOf("native")===0,r=t[2]&&t[2].indexOf("eval")===0,s=W5.exec(t[2]);return r&&s&&(t[2]=s[1],t[3]=s[2],t[4]=s[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||ra,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}const j5="(?:(.*)?(?: @))",$5=new RegExp(`^\\s*at\\s*${j5}?\\s*${cR}${sa}?${sa}??\\s*$`,"i");function Y5(e){const t=$5.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ra,line:t[3]?+t[3]:void 0,url:t[2]}}const Z5=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function X5(e){const t=Z5.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||ra,line:+t[3],url:t[2]}}const z5=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,H5=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function K5(e){const t=z5.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,r=H5.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||ra,line:t[4]?+t[4]:void 0,url:t[3]}}function Jm(e,t){return jo(e)&&typeof e[t]=="string"?e[t]:void 0}function J5(e,t,n,r){if(t===void 0)return;const{name:s,message:o}=q5(e);return{name:s,message:o,stack:[{url:t,column:r,line:n}]}}const Q5=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function q5(e){let t,n;return{}.toString.call(e)==="[object String]"&&([,t,n]=Q5.exec(e)),{name:t,message:n}}function uR(e){return String(e.constructor).startsWith("class ")}let vd;function eM(){if(vd!==void 0)return vd;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(r=>new r);return vd=uR(Object.getPrototypeOf(t))&&n.stack!==t.stack,vd}function Is(e){const n=new Error(e);n.name="HandlingStack";let r;return Mn(()=>{const s=Ra(n);s.stack=s.stack.slice(2),r=ch(s)}),r}function ch(e){let t=dR(e);return e.stack.forEach(n=>{const r=n.func==="?"?"":n.func,s=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",o=n.line?`:${n.line}`:"",l=n.line&&n.column?`:${n.column}`:"";t+=` at ${r}${s} @ ${n.url}${o}${l}`}),t}function dR(e){return`${e.name||"Error"}: ${e.message}`}function _r(e,t,n,{computeHandlingStack:r}={}){let s=e[t];if(typeof s!="function")if(t in e&&typeof t=="string"&&t.startsWith("on"))s=Ze;else return{stop:Ze};let o=!1;const l=function(){if(o)return s.apply(this,arguments);const c=Array.from(arguments);let u;Mn(n,null,[{target:this,parameters:c,onPostCall:h=>{u=h},handlingStack:r?Is("instrumented method"):void 0}]);const f=s.apply(this,c);return u&&Mn(u,null,[f]),f};return e[t]=l,{stop:()=>{o=!0,e[t]===l&&(e[t]=s)}}}function Xne(e,t,n){const r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r.set||!r.configurable)return{stop:Ze};const s=Ze;let o=(c,u)=>{Zt(()=>{o!==s&&n(c,u)},0)};const l=function(c){r.set.call(this,c),o(this,c)};return Object.defineProperty(e,t,{set:l}),{stop:()=>{var c;((c=Object.getOwnPropertyDescriptor(e,t))===null||c===void 0?void 0:c.set)===l&&Object.defineProperty(e,t,r),o=s}}}const $s=1024,fR=1024*$s,tM=/[^\u0000-\u007F]/;function hR(e){return tM.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function pR(e){if(e.length===1)return e[0];const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function oa(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);const r=Ui(Object.prototype),s=Ui(Array.prototype),o=Ui(Object.getPrototypeOf(e)),l=Ui(e);try{return JSON.stringify(e,t,n)}catch{return""}finally{r(),s(),o(),l()}}function Ui(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):Ze}const nM=220*$s,rM="$",sM=3;function Ne(e,t=nM){const n=Ui(Object.prototype),r=Ui(Array.prototype),s=[],o=new WeakMap,l=Qm(e,rM,void 0,s,o),c=JSON.stringify(l);let u=c?c.length:0;if(u>t){qm(t,"discarded",e);return}for(;s.length>0&&ut){qm(t,"truncated",e);break}f.target[p]=g}else for(const p in f.source)if(Object.prototype.hasOwnProperty.call(f.source,p)){const g=Qm(f.source[p],f.path,p,s,o);if(g!==void 0&&(u+=JSON.stringify(g).length+h+p.length+sM,h=1),u>t){qm(t,"truncated",e);break}f.target[p]=g}}return n(),r(),l}function Qm(e,t,n,r,s){const o=aM(e);if(!o||typeof o!="object")return oM(o);const l=gy(o);if(l!=="[Object]"&&l!=="[Array]"&&l!=="[Error]")return l;const c=e;if(s.has(c))return`[Reference seen at ${s.get(c)}]`;const u=n!==void 0?`${t}.${n}`:t,f=Array.isArray(o)?[]:{};return s.set(c,u),r.push({source:o,target:f,path:u}),f}function oM(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function gy(e){try{if(e instanceof Event)return iM(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}function iM(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?gy(e.currentTarget):null,target:e.target?gy(e.target):null}}function aM(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function qm(e,t,n){Ie.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}const mR="No stack, consider using an instance of Error";function gR({originalError:e,stackTrace:t,source:n,useFallbackStack:r=!0,nonErrorPrefix:s}){const o=Ys(e);return!t&&o&&(t=Ra(e)),{source:n,type:t?t.name:void 0,message:lM(t,o,s,e),stack:t?ch(t):r?mR:void 0}}function av({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:s,nonErrorPrefix:o,useFallbackStack:l=!0,source:c,handling:u}){const f=gR({originalError:t,stackTrace:e,source:c,useFallbackStack:l,nonErrorPrefix:o});return{startClocks:s,handling:u,handlingStack:n,componentStack:r,originalError:t,...f,causes:Ys(t)?dM(t,c):void 0,fingerprint:cM(t),context:uM(t)}}function lM(e,t,n,r){return e?.message&&e?.name?e.message:t?"Empty message":n?`${n} ${oa(Ne(r))}`:oa(Ne(r))}function cM(e){return Ys(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function uM(e){if(jo(e))return e.dd_context}function Ys(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function dM(e,t){const n=[];let r=e.cause;for(;r!=null&&n.length<10;){const s=gR({originalError:r,source:t,useFallbackStack:!1});n.push(s),r=Ys(r)?r.cause:void 0}return n.length?n:void 0}const Ta={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function fM(){return new Ue(e=>{const t=(s,o)=>{const l=av({stackTrace:o,originalError:s,startClocks:qe(),nonErrorPrefix:"Uncaught",source:Ta.SOURCE,handling:"unhandled"});e.notify(l)},{stop:n}=hM(t),{stop:r}=pM(t);return()=>{n(),r()}})}function hM(e){return _r(Ht(),"onerror",({parameters:[t,n,r,s,o]})=>{let l;Ys(o)||(l=J5(t,n,r,s)),e(o??t,l)})}function pM(e){return _r(Ht(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function mM(e){const t={version:"6.32.0",onReady(n){n()},...e};return Object.defineProperty(t,"_setDebug",{get(){return _D},enumerable:!1}),t}function gM(e,t,n){const r=e[t];r&&!r.q&&r.version&&Ie.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=n,r&&r.q&&r.q.forEach(s=>D1(s,"onReady callback threw an error:")())}function yR(e,t){t.silentMultipleInit||Ie.error(`${e} is already initialized.`)}function lt(e,t,n,r,s){return Vs(e,t,[n],r,s)}function Vs(e,t,n,r,{once:s,capture:o,passive:l}={}){const c=Le(g=>{!g.isTrusted&&!g.__ddIsTrusted&&!e.allowUntrustedEvents||(s&&p(),r(g))}),u=l?{capture:o,passive:l}:o,f=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,h=Jr(f,"addEventListener");n.forEach(g=>h.call(t,g,c,u));function p(){const g=Jr(f,"removeEventListener");n.forEach(b=>g.call(t,b,c,u))}return{stop:p}}const bc={intervention:"intervention",cspViolation:"csp_violation"};function yM(e,t){const n=[];t.includes(bc.cspViolation)&&n.push(vM(e));const r=t.filter(s=>s!==bc.cspViolation);return r.length&&n.push(bM(r)),G1(...n)}function bM(e){return new Ue(t=>{if(!window.ReportingObserver)return;const n=Le((s,o)=>s.forEach(l=>t.notify(wM(l)))),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),()=>{r.disconnect()}})}function vM(e){return new Ue(t=>{const{stop:n}=lt(e,document,"securitypolicyviolation",r=>{t.notify(_M(r))});return n})}function wM(e){const{type:t,body:n}=e;return bR({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:vR(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function _M(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return bR({type:e.effectiveDirective,message:`${bc.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:vR(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${rh(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function bR(e){return{startClocks:qe(),source:Ta.REPORT,handling:"unhandled",...e}}function vR(e,t,n,r,s){return n?ch({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:s??void 0}]}):void 0}const SM=200;function wR(e){const{env:t,service:n,version:r,datacenter:s,sdkVersion:o,variant:l}=e,c=[_i("sdk_version",o??"6.32.0")];return t&&c.push(_i("env",t)),n&&c.push(_i("service",n)),r&&c.push(_i("version",r)),s&&c.push(_i("datacenter",s)),l&&c.push(_i("variant",l)),c}function _i(e,t){const n=t?`${e}:${t}`:e;return(n.length>SM||kM(n))&&Ie.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${nv} ${qf}/getting_started/tagging/#defining-tags`),EM(n)}function EM(e){return e.replace(/,/g,"_")}function kM(e){return AM()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function AM(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function _R(e,t){const n=ir.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function hf(e,t,n=xM()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const s=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,s)}if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const s=Array.isArray(e)?e:[];for(let o=0;o=0;return n||e.push(t),n}}}function SR(){var e;const t=ir.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function ER(e,t){return Jr(Ht(),"fetch")(e,t)}function RM(e){return e>=500}function TM(e){try{return e.clone()}catch{return}}const IM=80*$s,CM=32,kR=20*fR,NM=an,AR=Kt;function xR(e,t,n,r,s,o){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?TR(e,t,n,o,{onSuccess:()=>IR(0,t,n,r,s,o),onFailure:()=>{t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),RR(t,n,r,s,o)}}):t.queuedPayloads.enqueue(e)||o.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function RR(e,t,n,r,s){e.transportStatus===2&&Zt(()=>{const o=e.queuedPayloads.first();TR(o,e,t,s,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=AR,IR(1,e,t,n,r,s)},onFailure:()=>{e.currentBackoffTime=Math.min(NM,e.currentBackoffTime*2),RR(e,t,n,r,s)}})},e.currentBackoffTime)}function TR(e,t,n,r,{onSuccess:s,onFailure:o}){t.bandwidthMonitor.add(e),n(e,l=>{t.bandwidthMonitor.remove(e),LM(l)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:l.status},r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s())})}function IR(e,t,n,r,s,o){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(s({message:`Reached max ${r} events size queued for upload: ${kR/fR}MiB`,source:Ta.AGENT,startClocks:qe()}),t.queueFullReported=!0);const l=t.queuedPayloads;for(t.queuedPayloads=CR();l.size()>0;)xR(l.dequeue(),t,n,r,s,o)}function LM(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||RM(e.status))}function FM(){return{transportStatus:0,currentBackoffTime:AR,bandwidthMonitor:OM(),queuedPayloads:CR(),queueFullReported:!1}}function CR(){const e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=kR}}}function OM(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=IM&&this.ongoingRequestCount{for(const l of e)xR(o,s,(c,u)=>{LR(l,c,u)},l.trackType,t,r)},sendOnExit:o=>{for(const l of e)DM(l,n,o)}}}function DM(e,t,n){if(!!navigator.sendBeacon&&n.bytesCountn?.({status:s.status,type:s.type}))).catch(Le(()=>n?.({status:0})))}function Xc(){const e=BM();if(e)return{getCapabilities(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,n,r){const s=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:s}))}}}function FR(e){const t=Xc();return!!t&&t.getCapabilities().includes(e)}function ia(e){var t;e===void 0&&(e=(t=Ht().location)===null||t===void 0?void 0:t.hostname);const n=Xc();return!!n&&n.getAllowedWebViewHosts().some(r=>e===r||e.endsWith(`.${r}`))}function BM(){return Ht().DatadogEventBridge}const ql={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function OR(e){return new Ue(t=>{if($c)return;const{stop:n}=Vs(e,window,["visibilitychange","freeze"],s=>{s.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:ql.HIDDEN}):s.type==="freeze"&&t.notify({reason:ql.FROZEN})},{capture:!0}),r=lt(e,window,"beforeunload",()=>{t.notify({reason:ql.UNLOADING})}).stop;return()=>{n(),r()}})}function GM(e){return z1(ql).includes(e)}const aE=256*$s;function DR({encoder:e,request:t,flushController:n}){let r={};const s=n.flushObservable.subscribe(h=>f(h));function o(h,p,g){n.notifyBeforeAddMessage(p),g!==void 0?(r[g]=h,n.notifyAfterAddMessage()):e.write(e.isEmpty?h:` ${h}`,b=>{n.notifyAfterAddMessage(b-p)})}function l(h){return h!==void 0&&r[h]!==void 0}function c(h){const p=r[h];delete r[h];const g=e.estimateEncodedBytesCount(p);n.notifyAfterRemoveMessage(g)}function u(h,p){const g=oa(h),b=e.estimateEncodedBytesCount(g);if(b>=aE){Ie.warn(`Discarded a message whose size was bigger than the maximum allowed size ${aE/$s}KiB. ${nv} ${bD}/#technical-limitations`);return}l(p)&&c(p),o(g,b,p)}function f(h){const p=z1(r).join(` `);r={};const g=GM(h.reason),b=g?t.sendOnExit:t.send;if(g&&e.isAsync){const w=e.finishSync();w.outputBytesCount&&b(lE(w));const S=[w.pendingData,p].filter(Boolean).join(` `);S&&b({data:S,bytesCount:hR(S)})}else p&&e.write(e.isEmpty?p:` ${p}`),e.finish(w=>{b(lE(w))})}return{flushController:n,add:u,upsert:u,stop:s.unsubscribe}}function lE(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}const VM=30*Kt,UM=$c?1:50;function MR({pageMayExitObservable:e,sessionExpireObservable:t}){const n=e.subscribe(p=>c(p.reason)),r=t.subscribe(()=>c("session_expire")),s=new Ue(()=>()=>{n.unsubscribe(),r.unsubscribe()});let o=0,l=0;function c(p){if(l===0)return;const g=l,b=o;l=0,o=0,h(),s.notify({reason:p,messagesCount:g,bytesCount:b})}let u;function f(){u===void 0&&(u=Zt(()=>{c("duration_limit")},VM))}function h(){Gn(u),u=void 0}return{flushObservable:s,get messagesCount(){return l},notifyBeforeAddMessage(p){o+p>=yy&&c("bytes_limit"),l+=1,o+=p,f()},notifyAfterAddMessage(p=0){o+=p,l>=UM?c("messages_limit"):o>=yy&&c("bytes_limit")},notifyAfterRemoveMessage(p){o-=p,l-=1,l===0&&h()}}}function BR(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const s=hR(n);t+=s,e+=n,r&&r(s)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}const Us="DISCARDED",on="SKIPPED";function WM(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(r=>r!==n)}}},triggerHook(t,n){const r=e[t]||[],s=[];for(const o of r){const l=o(n);if(l===Us)return Us;l!==on&&s.push(l)}return qr(...s)}}}const Ms={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},PM=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],jM=1,$M=[k5],YM=15;let eg;function Ia(){return eg||(eg=new V1(100)),eg}function ZM(e,t,n){const r=new Ue,{enabled:s,metricsEnabled:o}=XM(e,t,n,r),{stop:l}=zM(t,r);return{stop:l,enabled:s,metricsEnabled:o}}function XM(e,t,n,r,s=jM,o=YM){const l={},c=!$M.includes(t.site)&&wo(t.telemetrySampleRate),u={[Ms.LOG]:c,[Ms.CONFIGURATION]:c&&wo(t.telemetryConfigurationSampleRate),[Ms.USAGE]:c&&wo(t.telemetryUsageSampleRate),metric:c&&wo(s)},f=HM(),h=Ia();return h.subscribe(({rawEvent:g,metricName:b})=>{if(b&&!u.metric||!u[g.type])return;const w=b||g.status||g.type;let S=l[w];if(S||(S=l[w]=new Set),S.size>=o)return;const _=oa(g);if(S.has(_))return;const E=n.triggerHook(1,{startTime:qe().relative});if(E===Us)return;const A=p(E,e,g,f);r.notify(A),_R("telemetry",A),S.add(_)}),h.unbuffer(),wD(dh),{enabled:c,metricsEnabled:u.metric};function p(g,b,w,S){const E={type:"telemetry",date:qe().timeStamp,service:b,version:"6.32.0",source:"browser",_dd:{format_version:2},telemetry:qr(w,{runtime_env:S,connectivity:SR(),sdk_setup:"npm"}),ddtags:wR(t).join(","),experimental_features:Array.from(V5())};return qr(E,g)}}function zM(e,t){const n=[];if(ia()){const r=Xc(),s=t.subscribe(o=>r.send("internal_telemetry",o));n.push(s.unsubscribe)}else{const r=[e.rumEndpointBuilder];e.replica&&KM(e)&&r.push(e.replica.rumEndpointBuilder);const s=DR({encoder:BR(),request:NR(r,Ze),flushController:MR({pageMayExitObservable:OR(e),sessionExpireObservable:new Ue})});n.push(s.stop);const o=t.subscribe(s.add);n.push(o.unsubscribe)}return{stop:()=>n.forEach(r=>r())}}function HM(){var e;return{is_local_file:((e=ir.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:$c}}function KM(e){return e.site===aR}function uh(e,t){fy(Qf.debug,e,t),Ia().notify({rawEvent:{type:Ms.LOG,message:e,status:"debug",...t}})}function dh(e,t){Ia().notify({rawEvent:{type:Ms.LOG,status:"error",...QM(e),...t}})}function JM(e){Ia().notify({rawEvent:{type:Ms.CONFIGURATION,configuration:e}})}function fh(e,t){Ia().notify({rawEvent:{type:Ms.LOG,message:e,status:"debug",...t},metricName:e})}function At(e){Ia().notify({rawEvent:{type:Ms.USAGE,usage:e}})}function QM(e){if(Ys(e)){const t=Ra(e);return{error:{kind:t.name,stack:ch(qM(t))},message:t.message}}return{error:{stack:mR},message:`Uncaught ${oa(e)}`}}function qM(e){return e.stack=e.stack.filter(t=>!t.url||PM.some(n=>t.url.startsWith(n))),e}function GR(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function Ao(e){return Array.isArray(e)&&e.length>0}const wd=1/0,eB=an;let Fl;const Ud=new Set;function tB(){Ud.forEach(e=>e())}function Ca({expireDelay:e,maxEntries:t}){let n=[];Fl||(Fl=ka(()=>tB(),eB));const r=()=>{const p=xn()-e;for(;n.length>0&&n[n.length-1].endTime{GR(n,b)},close:w=>{b.endTime=w}};return t&&n.length>=t&&n.pop(),n.unshift(b),b}function o(p=wd,g={returnInactive:!1}){for(const b of n)if(b.startTime<=p){if(g.returnInactive||p<=b.endTime)return b.value;break}}function l(p){const g=n[0];g&&g.endTime===wd&&g.close(p)}function c(p=wd,g=0){const b=Wo(p,g);return n.filter(w=>w.startTime<=b&&p<=w.endTime).map(w=>w.value)}function u(p){return n.filter(g=>g.startTime===p)}function f(){n=[]}function h(){Ud.delete(r),Ud.size===0&&Fl&&(th(Fl),Fl=void 0)}return{add:s,find:o,closeActive:l,findAll:c,getEntries:u,reset:f,stop:h}}const hh="datadog-synthetics-",nB=`${hh}public-id`,rB=`${hh}result-id`,sB=`${hh}injects-rum`,oB=`${hh}rum-context`;function VR(){return $c?!1:!!(ir._DATADOG_SYNTHETICS_INJECTS_RUM||$r(sB))}function UR(){const e=iB();return aB(e)?e:void 0}function WR(){return!!UR()}function iB(){const e=ir._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;const t=$r(oB);return t?eh(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||$r(nB),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||$r(rB)}}function aB(e){return typeof e=="object"&&e!==null&&typeof e.test_id=="string"&&typeof e.result_id=="string"}const lB=an,cB=Po;function uB(e,t,n,r){const s=new Ue,o=new Ue,l=m5(e.sessionStoreStrategyType,e,t,n),c=Ca({expireDelay:cB});if(l.renewObservable.subscribe(()=>{c.add(u(),xn()),s.notify()}),l.expireObservable.subscribe(()=>{o.notify(),c.closeActive(xn())}),l.expandOrRenewSession(),c.add(u(),j1().relative),sr(pn.SHORT_SESSION_INVESTIGATION)){const f=l.getSession();f&&mB(e,f)}r.observable.subscribe(()=>{r.isGranted()?l.expandOrRenewSession():l.expire(!1)}),dB(e,()=>{r.isGranted()&&l.expandOrRenewSession()}),fB(e,()=>l.expandSession()),hB(e,()=>l.restartSession());function u(){const f=l.getSession();return f?{id:f.id,trackingType:f[t],isReplayForced:!!f.forcedReplay,anonymousId:f.anonymousId}:(pB(e).catch(()=>{}),{id:"invalid",trackingType:K1,isReplayForced:!1,anonymousId:void 0})}return{findSession:(f,h)=>c.find(f,h),renewObservable:s,expireObservable:o,sessionStateUpdateObservable:l.sessionStateUpdateObservable,expire:l.expire,updateSessionState:l.updateSessionState}}function dB(e,t){const{stop:n}=Vs(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function fB(e,t){const n=()=>{document.visibilityState==="visible"&&t()},{stop:r}=lt(e,document,"visibilitychange",n);ka(n,lB)}function hB(e,t){const{stop:n}=lt(e,window,"resume",t,{capture:!0})}async function pB(e){const t=e.sessionStoreStrategyType;if(!t)return;let n,r;t.type===Pn.COOKIE?(n=eR(t.cookieOptions,e),r={cookie:await PR(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):n=rR(),uh("Unexpected session state",{sessionStoreStrategyType:t.type,session:n,isSyntheticsTest:WR(),createdTimestamp:n?.created,expireTimestamp:n?.expire,...r})}function mB(e,t){if(!window.cookieStore||!t.created)return;const n=Number(t.created),r=sn(),{stop:s}=lt(e,cookieStore,"change",o);function o(l){const c=sv(l.changed,f=>f.name===Qr);if(!c)return;const u=sn()-n;if(u>14*an)s();else{const f=ah(c.value);if(f.id&&f.id!==t.id){s();const h=sn()-r;PR().then(p=>{uh("Session cookie changed",{time:h,session_age:u,old:t,new:f,cookie:p})}).catch(Uo)}}}}async function PR(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(Qr):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(Qr)),{count:e.length,domain:X1()||"undefined",...e}}class gB{constructor(){this.callbacks={}}notify(t,n){const r=this.callbacks[t];r&&r.forEach(s=>s(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(r=>n!==r)}}}}const yB=3e3;function tg(e,t,n=yB){let r=0,s=!1;return{isLimitReached(){if(r===0&&Zt(()=>{r=0},an),r+=1,r<=n||s)return s=!1,!1;if(r===n+1){s=!0;try{t({message:`Reached max number of ${e}s by minute: ${n}`,source:Ta.AGENT,startClocks:qe()})}finally{s=!1}}return!0}}}function cv(e,t,n){return document.readyState===t||document.readyState==="complete"?(n(),{stop:Ze}):lt(e,window,t==="complete"?"load":"DOMContentLoaded",n,{once:!0})}function bB(e,t){return new Promise(n=>{cv(e,t,n)})}let ng;const uv=new WeakMap;function vB(e){return ng||(ng=wB(e)),ng}function wB(e){return new Ue(t=>{const{stop:n}=_r(XMLHttpRequest.prototype,"open",_B),{stop:r}=_r(XMLHttpRequest.prototype,"send",o=>{SB(o,e,t)},{computeHandlingStack:!0}),{stop:s}=_r(XMLHttpRequest.prototype,"abort",EB);return()=>{n(),r(),s()}})}function _B({target:e,parameters:[t,n]}){uv.set(e,{state:"open",method:String(t).toUpperCase(),url:rv(String(n))})}function SB({target:e,parameters:[t],handlingStack:n},r,s){const o=uv.get(e);if(!o)return;const l=o;l.state="start",l.startClocks=qe(),l.isAborted=!1,l.xhr=e,l.handlingStack=n,l.requestBody=t;let c=!1;const{stop:u}=_r(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&f()}),f=()=>{if(h(),u(),c)return;c=!0;const p=o;p.state="complete",p.duration=He(l.startClocks.timeStamp,bt()),p.status=e.status,typeof e.response=="string"&&(p.responseBody=e.response),s.notify(Lo(p))},{stop:h}=lt(r,e,"loadend",f);s.notify(l)}function EB({target:e}){const t=uv.get(e);t&&(t.isAborted=!0)}async function kB(e,t){const n=e.getReader(),r=[];for(;;){const s=await n.read();if(s.done)break;t.collectStreamBody&&r.push(s.value)}return n.cancel().catch(Ze),t.collectStreamBody?pR(r):void 0}let rg;const jR=[];function $R({responseBodyAction:e}={}){return e&&jR.push(e),rg||(rg=AB()),rg}function AB(){return new Ue(e=>{if(!ir.fetch)return;const{stop:t}=_r(ir,"fetch",n=>xB(n,e),{computeHandlingStack:!0});return t})}function xB({parameters:e,onPostCall:t,handlingStack:n},r){var s,o;const[l,c]=e;let u=c&&c.method;u===void 0&&l instanceof Request&&(u=l.method);const f=u!==void 0?String(u).toUpperCase():"GET",h=l instanceof Request?l.url:rv(String(l)),p=qe(),g={state:"start",init:c,input:l,method:f,startClocks:p,url:h,handlingStack:n,isAbortedOnStart:l instanceof Request&&((s=l.signal)===null||s===void 0?void 0:s.aborted)||((o=c?.signal)===null||o===void 0?void 0:o.aborted)||!1};r.notify(g),e[0]=g.input,e[1]=g.init,t(b=>{RB(r,b,g).catch(Uo)})}async function RB(e,t,n){var r,s;const o=n;o.state="resolve";let l;try{l=await t}catch(u){o.status=0,o.isAborted=((s=(r=o.init)===null||r===void 0?void 0:r.signal)===null||s===void 0?void 0:s.aborted)||u instanceof DOMException&&u.code===DOMException.ABORT_ERR,o.error=u,e.notify(o);return}o.response=l,o.status=l.status,o.responseType=l.type,o.isAborted=!1;const c=jR.reduce((u,f)=>Math.max(u,f(o)),0);if(c!==0){const u=TM(l);if(u&&u.body)try{const f=await kB(u.body,{collectStreamBody:c===2});o.responseBody=f&&new TextDecoder().decode(f)}catch{}}e.notify(o)}function TB(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback(Le(e),t);return()=>window.cancelIdleCallback(n)}return CB(e)}const IB=50;function CB(e){const t=sn(),n=Zt(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,IB-(sn()-t))})},0);return()=>Gn(n)}const NB=Kt,LB=30;function FB(){const e=[];function t(r){let s;if(r.didTimeout){const o=performance.now();s=()=>LB-(performance.now()-o)}else s=r.timeRemaining.bind(r);for(;s()>0&&e.length;)e.shift()();e.length&&n()}function n(){TB(t,{timeout:NB})}return{push(r){e.push(r)===1&&n()},stop(){e.length=0}}}let sg={};function OB(e){const t=e.map(n=>(sg[n]||(sg[n]=DB(n)),sg[n]));return G1(...t)}function DB(e){return new Ue(t=>{const n=Pr[e];return Pr[e]=(...r)=>{n.apply(console,r);const s=Is("console error");Mn(()=>{t.notify(MB(r,e,s))})},()=>{Pr[e]=n}})}function MB(e,t,n){const r=e.map(s=>BB(s)).join(" ");if(t===Qf.error){const s=e.find(Ys),o=av({originalError:s,handlingStack:n,startClocks:qe(),source:Ta.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return o.message=r,{api:t,message:r,handlingStack:n,error:o}}return{api:t,message:r,error:void 0,handlingStack:n}}function BB(e){return typeof e=="string"?Ne(e):Ys(e)?dR(Ra(e)):oa(Ne(e),void 0,2)}const GB=500;function VB(){const e=[];return{add:s=>{e.push(s)>GB&&e.splice(0,1)},remove:s=>{GR(e,s)},drain:s=>{e.forEach(o=>o(s)),e.length=0}}}function UB(e){const t=xa(e)==="object";return t||Ie.error("Unsupported context:",e),t}function og(e,t,n){const r={...e};for(const[s,{required:o,type:l}]of Object.entries(t))l==="string"&&!cE(r[s])&&(r[s]=String(r[s])),o&&cE(r[s])&&Ie.warn(`The property ${s} of ${n} is required; context will not be sent to the intake.`);return r}function cE(e){return e==null||e===""}function ph(e="",{propertiesConfig:t={}}={}){let n={};const r=new Ue,s={getContext:()=>lv(n),setContext:o=>{UB(o)?n=Ne(og(o,t,e)):s.clearContext(),r.notify()},setContextProperty:(o,l)=>{n=Ne(og({...n,[o]:l},t,e)),r.notify()},removeContextProperty:o=>{delete n[o],og(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return s}function tn(e,t,n,r){return Le((...s)=>(r&&At({feature:r}),e()[t][n](...s)))}const WB="_dd_c",PB=[];function dv(e,t,n,r){const s=jB(n,r);PB.push(lt(e,window,"storage",({key:f})=>{s===f&&l()})),t.changeObservable.subscribe(c);const o=qr(u(),t.getContext());js(o)||t.setContext(o);function l(){t.setContext(u())}function c(){localStorage.setItem(s,JSON.stringify(t.getContext()))}function u(){const f=localStorage.getItem(s);return f?JSON.parse(f):{}}}function jB(e,t){return`${WB}_${e}_${t}`}function $B(e,t,n){const r=YR();return t.storeContextsAcrossPages&&dv(t,r,n,4),e.register(0,()=>{const s=r.getContext();return js(s)||!s.id?on:{account:s}}),r}function YR(){return ph("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function YB(e,t,n,r){const s=ZR();return t.storeContextsAcrossPages&&dv(t,s,n,2),e.register(0,()=>({context:s.getContext()})),s}function ZR(){return ph("global context")}function ZB(e,t,n,r){const s=XR();return t.storeContextsAcrossPages&&dv(t,s,r,1),e.register(0,({eventType:o,startTime:l})=>{const c=s.getContext(),u=n.findTrackedSession(l);return u&&u.anonymousId&&!c.anonymous_id&&t.trackAnonymousUser&&(c.anonymous_id=u.anonymousId),js(c)?on:{type:o,usr:c}}),e.register(1,({startTime:o})=>{var l;return{anonymous_id:(l=n.findTrackedSession(o))===null||l===void 0?void 0:l.anonymousId}}),s}function XR(){return ph("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const Ft={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},nn={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"},$t={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},zc={FETCH:$t.FETCH,XHR:$t.XHR},XB=500;function zB(){const e=new V1(XB),t=fM().subscribe(n=>{e.notify({type:0,error:n})});return{observable:e,stop:()=>{t.unsubscribe()}}}function HB(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}const Te={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},uE={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},jr={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},fv={CLICK:"click",CUSTOM:"custom"},Oi={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},Xi={DURATION:"duration",OPERATION_STEP:"operation_step"};function KB(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function JB(e,t,n){function r(l){return!t.wasInPageStateDuringPeriod("frozen",l.startClocks.relative,l.duration)}function s(l){r(l)&&e.notify(12,dE(l))}function o(l,c,u,f){if(!sr(pn.FEATURE_OPERATION_VITAL))return;const{operationKey:h,context:p,description:g,handlingStack:b}=u||{},w={name:l,type:Xi.OPERATION_STEP,operationKey:h,failureReason:f,stepType:c,startClocks:qe(),context:Ne(p),description:g,handlingStack:b};e.notify(12,dE(w))}return{addOperationStepVital:o,addDurationVital:s,startDurationVital:(l,c={})=>{const u=zR(n,l,c),f=n.vitalsByReference.get(u);return f&&e.notify(16,f),u},stopDurationVital:(l,c={})=>{HR(s,n,l,c)}}}function zR({vitalsByName:e,vitalsByReference:t},n,r={}){const s={id:It(),name:n,startClocks:qe(),...r},o={__dd_vital_reference:!0};return e.set(n,s),t.set(o,s),o}function HR(e,{vitalsByName:t,vitalsByReference:n},r,s={}){const o=typeof r=="string"?t.get(r):n.get(r);o&&(e(QB(o,o.startClocks,s,qe())),typeof r=="string"?t.delete(r):n.delete(r))}function QB(e,t,n,r){var s;return{id:e.id,name:e.name,type:Xi.DURATION,startClocks:t,duration:He(t.timeStamp,r.timeStamp),context:qr(e.context,n.context),description:(s=n.description)!==null&&s!==void 0?s:e.description,handlingStack:e.handlingStack}}function dE(e){const{startClocks:t,type:n,name:r,description:s,context:o,handlingStack:l}=e,c=e.type===Xi.DURATION?e.id:void 0,u={id:c??It(),type:n,name:r,description:s,...n===Xi.DURATION?{duration:xe(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:u,type:Te.VITAL,context:o},startClocks:t,duration:n===Xi.DURATION?e.duration:void 0,domainContext:l?{handlingStack:l}:{}}}function KR(e,t,n){if(e)for(const r of e){const s=r[t];s&&s(n)}}const qB=WM,fE=["tracecontext","datadog"];function eG(e,t){var n,r,s,o,l,c,u;if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&Ie.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){Ie.error("Application ID is not configured, no RUM data will be collected.");return}if(!Vi(e.sessionReplaySampleRate,"Session Replay")||!Vi(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){Ie.error("Excluded Activity Urls should be an array");return}const f=tG(e);if(!f)return;const h=D5(e,t),p=rG(e);if(!h)return;const g=(n=e.sessionReplaySampleRate)!==null&&n!==void 0?n:0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,betaTrackActionsInShadowDom:!!e.betaTrackActionsInShadowDom,sessionReplaySampleRate:g,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:g===0,traceSampleRate:(r=e.traceSampleRate)!==null&&r!==void 0?r:100,rulePsr:jc(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:f,excludedActivityUrls:(s=e.excludedActivityUrls)!==null&&s!==void 0?s:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(!((o=e.trackUserInteractions)!==null&&o!==void 0)||o),trackViewsManually:!!e.trackViewsManually,trackResources:!!(!((l=e.trackResources)!==null&&l!==void 0)||l),trackLongTasks:!!(!((c=e.trackLongTasks)!==null&&c!==void 0)||c),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:df(Gi,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:Gi.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,traceContextInjection:df(my,e.traceContextInjection)?e.traceContextInjection:my.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:(u=e.profilingSampleRate)!==null&&u!==void 0?u:0,propagateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:p,...h}}function tG(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){Ie.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){Ie.error("Service needs to be configured when tracing is enabled");return}const t=[];return e.allowedTracingUrls.forEach(n=>{const r=JR(n);r?t.push(r):Ie.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function nG(e){const t=new Set;return Ao(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(n=>{var r;(r=JR(n))===null||r===void 0||r.propagatorTypes.forEach(s=>t.add(s))}),Array.from(t)}function JR(e){if(ff(e))return{match:e,propagatorTypes:fE};if(jo(e)&&ff(e.match)&&(e.propagatorTypes===null||e.propagatorTypes===void 0||Array.isArray(e.propagatorTypes)))return{match:e.match,propagatorTypes:e.propagatorTypes||fE}}function rG(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return Ie.warn("allowedGraphQlUrls should be an array"),[];const t=[];return e.allowedGraphQlUrls.forEach(n=>{ff(n)?t.push({match:n,trackPayload:!1,trackResponseErrors:!1}):jo(n)&&ff(n.match)&&t.push({match:n.match,trackPayload:!!n.trackPayload,trackResponseErrors:!!n.trackResponseErrors})}),t}function sG(e){return Ao(e)&&e.some(t=>jo(t)&&t.trackPayload)}function oG(e){return Ao(e)&&e.some(t=>jo(t)&&t.trackResponseErrors)}function iG(e){var t;const n=M5(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Ao(e.allowedTracingUrls),use_allowed_graph_ql_urls:Ao(e.allowedGraphQlUrls),use_track_graph_ql_payload:sG(e.allowedGraphQlUrls),use_track_graph_ql_response_errors:oG(e.allowedGraphQlUrls),selected_tracing_propagators:nG(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Ao(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,track_bfcache_views:e.trackBfcacheViews,track_early_requests:e.trackEarlyRequests,plugins:(t=e.plugins)===null||t===void 0?void 0:t.map(r=>{var s;return{name:r.name,...(s=r.getConfigurationTelemetry)===null||s===void 0?void 0:s.call(r)}}),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:e.remoteConfigurationId,profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,...n}}function aG(e){const t=[];let n=0,r;const s={quote:void 0,escapeSequence:void 0};let o="";for(const l of e){if(r=hE[n].find(c=>hG[c](l,s)),!r)return[];if(s.escapeSequence!==void 0&&r!==12){if(!gG(s.escapeSequence))return[];o+=bG(s.escapeSequence),s.escapeSequence=void 0}pG.includes(r)?o+=l:mG.includes(r)&&o!==""?(t.push(o),o=""):r===12?s.escapeSequence=s.escapeSequence?`${s.escapeSequence}${l}`:l:r===8?s.quote=l:r===9&&(s.quote=void 0),n=r}return hE[n].includes(1)?(o!==""&&t.push(o),t):[]}const lG=/[a-zA-Z_$]/,cG=/[a-zA-Z0-9_$]/,uG=/[0-9]/,dG=/[a-fA-F0-9]/,fG=`'"`,hG={0:()=>!1,1:()=>!1,2:e=>lG.test(e),3:e=>cG.test(e),4:e=>e===".",5:e=>e==="[",6:e=>e==="]",7:e=>uG.test(e),8:e=>fG.includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>e==="\\",12:(e,t)=>t.escapeSequence===void 0?`${t.quote}/\\bfnrtu`.includes(e):t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5?dG.test(e):!1},hE={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},pG=[2,3,7,10],mG=[4,5,6];function gG(e){return`"'/\\bfnrt`.includes(e)||e.startsWith("u")&&e.length===5}const yG={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:` `,r:"\r",t:" "};function bG(e){return e.startsWith("u")?String.fromCharCode(parseInt(e.slice(1),16)):yG[e]}const vG="v1",wG=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function _G(e,t){let n;const r=EG(),s=await xG(e);return s.ok?(r.increment("fetch","success"),n=SG(e,s.value,t,r)):(r.increment("fetch","failure"),Ie.error(s.error)),fh("remote configuration metrics",{metrics:r.get()}),n}function SG(e,t,n,r){const s={...e};return wG.forEach(b=>{b in t&&(s[b]=o(t[b]))}),Object.keys(n).forEach(b=>{t[b]!==void 0&&l(n[b],t[b])}),s;function o(b){if(Array.isArray(b))return b.map(o);if(jo(b)){if(kG(b)){const w=b.rcSerializedType;switch(w){case"string":return b.value;case"regex":return QR(b.value);case"dynamic":return c(b);default:Ie.error(`Unsupported remote configuration: "rcSerializedType": "${w}"`);return}}return M1(b,o)}return b}function l(b,w){w.forEach(({key:S,value:_})=>{b.setContextProperty(S,o(_))})}function c(b){const w=b.strategy;let S;switch(w){case"cookie":S=u(b);break;case"dom":S=h(b);break;case"js":S=g(b);break;case"localStorage":S=f(b);break;default:Ie.error(`Unsupported remote configuration: "strategy": "${w}"`);return}const _=b.extractor;return _!==void 0&&typeof S=="string"?AG(_,S):S}function u({name:b}){const w=oh(b);return r.increment("cookie",w!==void 0?"success":"missing"),w}function f({key:b}){let w;try{w=localStorage.getItem(b)}catch{r.increment("localStorage","failure");return}return r.increment("localStorage",w!==null?"success":"missing"),w??void 0}function h({selector:b,attribute:w}){let S;try{S=document.querySelector(b)}catch{Ie.error(`Invalid selector in the remote configuration: '${b}'`),r.increment("dom","failure");return}if(!S){r.increment("dom","missing");return}if(p(S,w)){Ie.error(`Forbidden element selected by the remote configuration: '${b}'`),r.increment("dom","failure");return}const _=w!==void 0?S.getAttribute(w):S.textContent;if(_===null){r.increment("dom","missing");return}return r.increment("dom","success"),_}function p(b,w){return b.getAttribute("type")==="password"&&w==="value"}function g({path:b}){let w=window;const S=aG(b);if(S.length===0){Ie.error(`Invalid JSON path in the remote configuration: '${b}'`),r.increment("js","failure");return}for(const _ of S){if(!(_ in w)){r.increment("js","missing");return}try{w=w[_]}catch(E){Ie.error(`Error accessing: '${b}'`,E),r.increment("js","failure");return}}return r.increment("js","success"),w}}function EG(){const e={fetch:{}};return{get:()=>e,increment:(t,n)=>{e[t]||(e[t]={}),e[t][n]||(e[t][n]=0),e[t][n]=e[t][n]+1}}}function kG(e){return"rcSerializedType"in e}function QR(e){try{return new RegExp(e)}catch{Ie.error(`Invalid regex in the remote configuration: '${e}'`)}}function AG(e,t){const n=QR(e.value);if(n===void 0)return;const r=n.exec(t);if(r===null)return;const[s,o]=r;return o||s}async function xG(e){let t;try{t=await ER(RG(e))}catch{t=void 0}if(!t||!t.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};const n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:new Error("No remote configuration for RUM.")}}function RG(e){return e.remoteConfigurationProxy?e.remoteConfigurationProxy:`https://sdk-configuration.${lR("rum",e)}/${vG}/${encodeURIComponent(e.remoteConfigurationId)}.json`}function TG({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},n,r,s){const o=VB(),l=ZR();ig(l,Ft.globalContext,o);const c=XR();ig(c,Ft.userContext,o);const u=YR();ig(u,Ft.accountContext,o);let f,h,p,g,b;const w=qB(),S=n.observable.subscribe(E),_={};function E(){if(!p||!g||!n.isGranted())return;b||(b=ZM("browser-rum-sdk",g,w)),S.unsubscribe();let T;if(g.trackViewsManually){if(!f)return;o.remove(f.callback),T=f.options}const I=s(g,h,T,b,w);o.drain(I)}function A(T,I){const W=ia();if(W&&(T=IG(T)),p=T,JM(iG(T)),g){yR("DD_RUM",T);return}const D=eG(T,I);if(D){if(!W&&!D.sessionStoreStrategyType){Ie.warn("No storage available for session. We will not send any data.");return}D.compressIntakeRequests&&!W&&t&&(h=t(D,"Datadog RUM",Ze),!h)||(g=D,$R().subscribe(Ze),n.tryToInit(D.trackingConsent),E())}}const x=T=>{o.add(I=>I.addDurationVital(T))};return{init(T,I,W){if(!T){Ie.error("Missing configuration");return}B5(T.enableExperimentalFeatures),p=T,!(e&&VR())&&(KR(T.plugins,"onInit",{initConfiguration:T,publicApi:I}),T.remoteConfigurationId?_G(T,{user:c,context:l}).then(D=>{D&&A(D,W)}).catch(Uo):A(T,W))},get initConfiguration(){return p},getInternalContext:Ze,stopSession:Ze,addTiming(T,I=bt()){o.add(W=>W.addTiming(T,I))},setLoadingTime:(T=>{o.add(I=>I.setLoadingTime(T))}),startView(T,I=qe()){const W=D=>{D.startView(T,I)};o.add(W),f||(f={options:T,callback:W},E())},setViewName(T){o.add(I=>I.setViewName(T))},setViewContext(T){o.add(I=>I.setViewContext(T))},setViewContextProperty(T,I){o.add(W=>W.setViewContextProperty(T,I))},getViewContext:()=>_,globalContext:l,userContext:c,accountContext:u,addAction(T){o.add(I=>I.addAction(T))},startAction(T,I){const W=qe();o.add(D=>D.startAction(T,I,W))},stopAction(T,I){const W=qe();o.add(D=>D.stopAction(T,I,W))},startResource(T,I){const W=qe();o.add(D=>D.startResource(T,I,W))},stopResource(T,I){const W=qe();o.add(D=>D.stopResource(T,I,W))},addError(T){o.add(I=>I.addError(T))},addFeatureFlagEvaluation(T,I){o.add(W=>W.addFeatureFlagEvaluation(T,I))},startDurationVital(T,I){return zR(r,T,I)},stopDurationVital(T,I){HR(x,r,T,I)},addDurationVital:x,addOperationStepVital:(T,I,W,D)=>{o.add(J=>J.addOperationStepVital(Ne(T),I,Ne(W),Ne(D)))}}}function IG(e){var t,n;return{...e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(n=Xc())===null||n===void 0?void 0:n.getPrivacyLevel()}}function ig(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.add(s=>s[t].setContext(r))})}function CG(){const e=NG();return new Ue(t=>{if(!e)return;const n=new e(Le(r=>t.notify(r)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function NG(){let e;const t=window;if(t.Zone&&(e=Jr(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){const n=new t.MutationObserver(Ze),r=Jr(n,"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}function LG(){const e=new Ue,{stop:t}=_r(window,"open",()=>e.notify());return{observable:e,stop:t}}function FG(e,t,n,r,s){return{get:o=>{const l=n.findView(o),c=s.findUrl(o),u=t.findTrackedSession(o);if(u&&l&&c){const f=r.findActionId(o);return{application_id:e,session_id:u.id,user_action:f?{id:f}:void 0,view:{id:l.id,name:l.name,referrer:c.referrer,url:c.url}}}}}}const OG=gB,DG=Po;function MG(e){const t=Ca({expireDelay:DG});e.subscribe(1,r=>{t.add(n(r),r.startClocks.relative)}),e.subscribe(6,({endClocks:r})=>{t.closeActive(r.relative)}),e.subscribe(3,r=>{const s=t.find(r.startClocks.relative);s&&(r.name&&(s.name=r.name),r.context&&(s.context=r.context),s.sessionIsActive=r.sessionIsActive)}),e.subscribe(10,()=>{t.reset()});function n(r){return{service:r.service,version:r.version,context:r.context,id:r.id,name:r.name,startClocks:r.startClocks}}return{findView:r=>t.find(r),stop:()=>{t.stop()}}}const qR="initial_document",BG=[[$t.DOCUMENT,e=>qR===e],[$t.XHR,e=>e==="xmlhttprequest"],[$t.FETCH,e=>e==="fetch"],[$t.BEACON,e=>e==="beacon"],[$t.CSS,(e,t)=>/\.css$/i.test(t)],[$t.JS,(e,t)=>/\.js$/i.test(t)],[$t.IMAGE,(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],[$t.FONT,(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],[$t.MEDIA,(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function GG(e){const t=e.name;if(!ND(t))return $t.OTHER;const n=LD(t);for(const[r,s]of BG)if(s(e.initiatorType,n))return r;return $t.OTHER}function pE(...e){for(let t=1;te[t])return!1;return!0}function eT(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function VG(e){const{duration:t,startTime:n,responseEnd:r}=e;return t===0&&n=0}function nT(e){const t=pE(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=WG(e)?pE(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function WG(e){return e.redirectEnd>e.startTime}function uo(e,t,n){if(e<=t&&t<=n)return{duration:xe(He(t,n)),start:xe(He(e,t))}}function PG(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function jG(e){return e.deliveryType===""?"other":e.deliveryType}function $G(e){if(e.startTime>>=1),{toString(n=10){let r=t[1],s=t[0],o="";do{const l=r%n*4294967296+s;r=Math.floor(r/n),s=Math.floor(l/n),o=(l%n).toString(n)+o}while(r||s);return o}}}function Si(e){return e.toString(16).padStart(16,"0")}function HG(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function KG(e,t,n,r){return{clearTracingIfNeeded:HG,traceFetch:s=>gE(e,s,t,n,r,o=>{var l;if(s.input instanceof Request&&!(!((l=s.init)===null||l===void 0)&&l.headers))s.input=new Request(s.input),Object.keys(o).forEach(c=>{s.input.headers.append(c,o[c])});else{s.init=Lo(s.init);const c=[];s.init.headers instanceof Headers?s.init.headers.forEach((u,f)=>{c.push([f,u])}):Array.isArray(s.init.headers)?s.init.headers.forEach(u=>{c.push(u)}):s.init.headers&&Object.keys(s.init.headers).forEach(u=>{c.push([u,s.init.headers[u]])}),s.init.headers=c.concat(ih(o))}}),traceXhr:(s,o)=>gE(e,s,t,n,r,l=>{Object.keys(l).forEach(c=>{o.setRequestHeader(c,l[c])})})}}function gE(e,t,n,r,s,o){const l=n.findTrackedSession();if(!l)return;const c=e.allowedTracingUrls.find(h=>lh([h.match],t.url,!0));if(!c)return;const u=sT(l.id,e.traceSampleRate);(u||e.traceContextInjection===my.ALL)&&(t.traceSampled=u,t.traceId=zG(),t.spanId=oT(),o(JG(t.traceId,t.spanId,t.traceSampled,l.id,c.propagatorTypes,r,s,e)))}function JG(e,t,n,r,s,o,l,c){const u={};if(s.forEach(f=>{switch(f){case"datadog":{Object.assign(u,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break}case"tracecontext":{Object.assign(u,{traceparent:`00-0000000000000000${Si(e)}-${Si(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break}case"b3":{Object.assign(u,{b3:`${Si(e)}-${Si(t)}-${n?"1":"0"}`});break}case"b3multi":{Object.assign(u,{"X-B3-TraceId":Si(e),"X-B3-SpanId":Si(t),"X-B3-Sampled":n?"1":"0"});break}}}),c.propagateTraceBaggage){const f={"session.id":r},h=o.getContext().id;typeof h=="string"&&(f["user.id"]=h);const p=l.getContext().id;typeof p=="string"&&(f["account.id"]=p);const g=Object.entries(f).map(([b,w])=>`${b}=${encodeURIComponent(w)}`).join(",");g&&(u.baggage=g)}return u}const QG=32*$s;function qG(e,t){const n=tV(e,t.trackPayload);if(n){if(t.trackResponseErrors&&e.responseBody){const r=eV(e.responseBody);r&&(n.error_count=r.length,n.errors=r)}return n}}function eV(e){const t=eh(e);if(!t||typeof t!="object")return;const n=t;return Ao(n.errors)?n.errors.map(s=>{var o;return{message:s.message,path:s.path,locations:s.locations,code:(o=s.extensions)===null||o===void 0?void 0:o.code}}):void 0}function aT(e,t){return t.allowedGraphQlUrls.find(n=>lh([n.match],e))}function tV(e,t=!1){let n;if(e.method==="POST"?n=nV(e.requestBody):e.method==="GET"&&(n=rV(e.url)),!!n)return sV(n,t)}function nV(e){if(!e||typeof e!="string")return;const t=eh(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0}}function rV(e){const t=Aa(e).searchParams,n=t.get("variables"),r=n&&eh(n)!==void 0?n:void 0;return{query:t.get("query")||void 0,operationName:t.get("operationName")||void 0,variables:r}}function sV(e,t){let n,r,s;if(e.query){const o=e.query.trim();n=oV(o),t&&(r=rh(o,QG,"..."))}return e.variables&&(s=e.variables),{operationType:n,operationName:e.operationName,variables:s,payload:r}}function oV(e){var t;return(t=e.match(/^\s*(query|mutation|subscription)\b/i))===null||t===void 0?void 0:t[1]}let yE=1;function iV(e,t,n,r,s){const o=KG(t,n,r,s);aV(e,t,o),lV(e,t,o)}function aV(e,t,n){const r=vB(t).subscribe(s=>{const o=s;if(hv(o.url))switch(o.state){case"start":n.traceXhr(o,o.xhr),o.requestIndex=lT(),e.notify(7,{requestIndex:o.requestIndex,url:o.url});break;case"complete":n.clearTracingIfNeeded(o),e.notify(8,{...o,type:zc.XHR,isAbortedOnStart:!1});break}});return{stop:()=>r.unsubscribe()}}function lV(e,t,n){const r=$R({responseBodyAction:s=>{var o;return!((o=aT(s.url,t))===null||o===void 0)&&o.trackResponseErrors?2:1}}).subscribe(s=>{var o;const l=s;if(hv(l.url))switch(l.state){case"start":n.traceFetch(l),l.requestIndex=lT(),e.notify(7,{requestIndex:l.requestIndex,url:l.url});break;case"resolve":n.clearTracingIfNeeded(l),e.notify(8,{...l,duration:He(l.startClocks.timeStamp,bt()),type:zc.FETCH,requestBody:(o=l.init)===null||o===void 0?void 0:o.body});break}});return{stop:()=>r.unsubscribe()}}function lT(){const e=yE;return yE+=1,e}function cT(e){return jc(e)&&e<0?void 0:e}function by(e){return e.nodeType===Node.TEXT_NODE}function cV(e){return e.nodeType===Node.COMMENT_NODE}function es(e){return e.nodeType===Node.ELEMENT_NODE}function pv(e){return es(e)&&!!e.shadowRoot}function mv(e){const t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&es(t.host)}function zne(e){return e.childNodes.length>0||pv(e)}function Hne(e,t){let n=e.firstChild;for(;n;)t(n),n=n.nextSibling;pv(e)&&t(e.shadowRoot)}function uV(e){return mv(e)?e.host:e.parentNode}function uT(e){if(e.parentElement)return e.parentElement;const t=e.parentNode;return t&&mv(t)?t.host:null}function dV(e,t){const n=sn();let r=!1;const{stop:s}=Vs(e,window,["click","mousedown","keydown","touchstart","pointerdown"],c=>{if(!c.cancelable)return;const u={entryType:"first-input",processingStart:xn(),processingEnd:xn(),startTime:c.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};c.type==="pointerdown"?o(e,u):l(u)},{passive:!0,capture:!0});return{stop:s};function o(c,u){Vs(c,window,["pointerup","pointercancel"],f=>{f.type==="pointerup"&&l(u)},{once:!0})}function l(c){if(!r){r=!0,s();const u=c.processingStart-c.startTime;u>=0&&u{if(!window.PerformanceObserver)return;const r=u=>{const f=pV(u);f.length>0&&n.notify(f)};let s,o=!0;const l=new PerformanceObserver(Le(u=>{o?s=Zt(()=>r(u.getEntries())):r(u.getEntries())}));try{l.observe(t)}catch{if([Ge.RESOURCE,Ge.NAVIGATION,Ge.LONG_TASK,Ge.PAINT].includes(t.type)){t.buffered&&(s=Zt(()=>r(performance.getEntriesByType(t.type))));try{l.observe({entryTypes:[t.type]})}catch{return}}}o=!1,fV(e);let c;return!Zs(Ge.FIRST_INPUT)&&t.type===Ge.FIRST_INPUT&&({stop:c}=dV(e,u=>{r([u])})),()=>{l.disconnect(),c&&c(),Gn(s)}})}let Ol;function fV(e){return!Ol&&hV()&&"addEventListener"in performance&&(Ol=lt(e,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{Ol?.stop()}}function hV(){return window.performance!==void 0&&"getEntries"in performance}function Zs(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function pV(e){return e.filter(t=>!mV(t))}function mV(e){return e.entryType===Ge.RESOURCE&&(!hv(e.name)||!tT(e))}const dT=100,gV=100,bE="data-dd-excluded-activity-mutations";function gv(e,t,n,r,s,o){const l=yV(e,t,n,r);let c,u=!1;const f=Zt(Le(()=>b({hadActivity:!1})),dT),h=o!==void 0?Zt(Le(()=>b({hadActivity:!0,end:bt()})),o):void 0,p=l.subscribe(({isBusy:w})=>{Gn(f),Gn(c);const S=bt();w||(c=Zt(Le(()=>b({hadActivity:!0,end:S})),gV))}),g=()=>{u=!0,Gn(f),Gn(c),Gn(h),p.unsubscribe()};function b(w){u||(g(),s(w))}return{stop:g}}function yV(e,t,n,r){return new Ue(s=>{const o=[];let l,c=0;return o.push(t.subscribe(f=>{f.every(bV)||u()}),n.subscribe(u),ts(r,{type:Ge.RESOURCE}).subscribe(f=>{f.some(h=>!ag(r,h.name))&&u()}),e.subscribe(7,f=>{ag(r,f.url)||(l===void 0&&(l=f.requestIndex),c+=1,u())}),e.subscribe(8,f=>{ag(r,f.url)||l===void 0||f.requestIndex{o.forEach(f=>f.unsubscribe())};function u(){s.notify({isBusy:c>0})}})}function ag(e,t){return lh(e.excludedActivityUrls,t)}function bV(e){const t=e.type==="characterData"?e.target.parentElement:e.target;return!!(t&&es(t)&&t.matches(`[${bE}], [${bE}] *`))}const mh="data-dd-action-name",fT="Masked Element",vV="::shadow ",yv=[mh,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],wV=[mT,hT],_V=[mT,kV,pT];function Hc(e,t){if(!e.isConnected)return;const n=SV(e),r=[];for(const{rootNode:s,target:o}of n){const l=EV(o,s,t);if(!l)return;r.push(l)}return r.join(vV)}function SV(e){const t=[];let n=e;for(;n;){const r=n.getRootNode();if(t.push({rootNode:r,target:n}),mv(r))n=r.host;else break}return t.reverse()}function EV(e,t,n){let r,s=e;for(;s&&s.nodeName!=="HTML";){const o=vE(s,t,wV,xV,n,r);if(o)return pf(o,r);const c=vE(s,t,_V,RV,n,r)||AV(s);r=pf(c,r),s=s.parentElement}return r}function bv(e){return/[0-9]/.test(e)}function hT(e){if(e.id&&!bv(e.id))return`#${CSS.escape(e.id)}`}function kV(e){if(e.tagName==="BODY")return;const t=e.classList;for(let n=0;nl.matches(n);else{const l=pf(`${n}:scope`,r);s=c=>c.querySelector(l)!==null}let o=e.previousElementSibling;for(;o;){if(s(o))return!1;o=o.previousElementSibling}for(o=e.nextElementSibling;o;){if(s(o))return!1;o=o.nextElementSibling}return!0}function pf(e,t){return t?`${e}>${t}`:e}const Oe={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Gi.ALLOW,MASK:Gi.MASK,MASK_USER_INPUT:Gi.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:Gi.MASK_UNLESS_ALLOWLISTED},bT="data-dd-privacy",Kne="hidden",TV="dd-privacy-",lg="***",Jne="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",IV={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},CV="x";function go(e){return`[${bT}="${e}"], .${TV}${e}`}function gh(e,t,n){if(n&&n.has(e))return n.get(e);const r=uV(e),s=r?gh(r,t,n):t,o=LV(e),l=NV(o,s);return n&&n.set(e,l),l}function NV(e,t){switch(t){case Oe.HIDDEN:case Oe.IGNORE:return t}switch(e){case Oe.ALLOW:case Oe.MASK:case Oe.MASK_USER_INPUT:case Oe.MASK_UNLESS_ALLOWLISTED:case Oe.HIDDEN:case Oe.IGNORE:return e;default:return t}}function LV(e){if(es(e)){if(e.tagName==="BASE")return Oe.ALLOW;if(e.tagName==="INPUT"){const t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return Oe.MASK;const n=t.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return Oe.MASK}if(e.matches(go(Oe.HIDDEN)))return Oe.HIDDEN;if(e.matches(go(Oe.MASK)))return Oe.MASK;if(e.matches(go(Oe.MASK_UNLESS_ALLOWLISTED)))return Oe.MASK_UNLESS_ALLOWLISTED;if(e.matches(go(Oe.MASK_USER_INPUT)))return Oe.MASK_USER_INPUT;if(e.matches(go(Oe.ALLOW)))return Oe.ALLOW;if(OV(e))return Oe.IGNORE}}function vT(e,t){switch(t){case Oe.MASK:case Oe.HIDDEN:case Oe.IGNORE:return!0;case Oe.MASK_UNLESS_ALLOWLISTED:return by(e)?_d(e.parentNode)?!0:!_T(e.textContent||""):_d(e);case Oe.MASK_USER_INPUT:return by(e)?_d(e.parentNode):_d(e);default:return!1}}function FV(e,t,n,r,s){if(r!==Oe.MASK&&r!==Oe.MASK_UNLESS_ALLOWLISTED||t===bT||yv.includes(t)||t===s.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!(e==="A"&&t==="href"||e==="IFRAME"&&t==="srcdoc"||n&&t.startsWith("data-")||(e==="IMG"||e==="SOURCE")&&(t==="src"||t==="srcset"))}function _d(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!IV[t.tagName]}const wT=e=>e.replace(/\S/g,CV);function Qne(e,t){var n;const r=(n=e.parentElement)===null||n===void 0?void 0:n.tagName;let s=e.textContent||"";if(r==="HEAD"&&!s.trim())return;const l=t;if(r==="SCRIPT")s=lg;else if(l===Oe.HIDDEN)s=lg;else if(vT(e,l))if(r==="DATALIST"||r==="SELECT"||r==="OPTGROUP"){if(!s.trim())return}else r==="OPTION"?s=lg:l===Oe.MASK_UNLESS_ALLOWLISTED?s=ST(s):s=wT(s);return s}function OV(e){if(e.nodeName==="SCRIPT")return!0;if(e.nodeName==="LINK"){const n=t("rel");return/preload|prefetch/i.test(n)&&t("as")==="script"||n==="shortcut icon"||n==="icon"}if(e.nodeName==="META"){const n=t("name"),r=t("rel"),s=t("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||r==="icon"||r==="apple-touch-icon"||r==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(s)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(s)||/^product:/.test(s)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function t(n){return(e.getAttribute(n)||"").toLowerCase()}return!1}function _T(e){var t;return!e||!e.trim()?!0:((t=window.$DD_ALLOW)===null||t===void 0?void 0:t.has(e.toLocaleLowerCase()))||!1}function ST(e,t){return _T(e)?e:t||wT(e)}function ET({lifeCycle:e,isChildEvent:t,onChange:n=Ze}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},s=e.subscribe(13,o=>{var l;if(!(o.type==="view"||o.type==="vital"||!t(o)))switch(o.type){case Te.ERROR:r.errorCount+=1,n();break;case Te.ACTION:r.actionCount+=1,o.action.frustration&&(r.frustrationCount+=o.action.frustration.type.length),n();break;case Te.LONG_TASK:r.longTaskCount+=1,n();break;case Te.RESOURCE:!((l=o._dd)===null||l===void 0)&&l.discarded||(r.resourceCount+=1,n());break}});return{stop:()=>{s.unsubscribe()},eventCounts:r}}const DV=5*an;function vv(e){const t=Ca({expireDelay:DV}),n=new Map;function r(g){var b;n.delete(g.key),(b=g.eventCounts)===null||b===void 0||b.stop()}function s(){n.forEach(g=>{r(g)}),t.reset()}const o=e.subscribe(10,s);function l(g,b,w,S){const _=It(),E=t.add(_,b.relative),A=n.get(g);A&&r(A);const x=S?.isChildEvent?ET({lifeCycle:e,isChildEvent:S.isChildEvent(_)}):void 0,C={id:_,key:g,startClocks:b,data:w,historyEntry:E,eventCounts:x};return n.set(g,C),C}function c(g,b,w){var S;const _=n.get(g);if(!_)return;const E=w?qr(_.data,w):_.data;_.historyEntry.close(b.relative);const A=He(_.startClocks.timeStamp,b.timeStamp),x=(S=_.eventCounts)===null||S===void 0?void 0:S.eventCounts;return r(_),{...E,id:_.id,startClocks:_.startClocks,duration:A,counts:x}}function u(g){var b;const w=n.get(g);if(!w)return;const S=(b=w.eventCounts)===null||b===void 0?void 0:b.eventCounts;return r(w),w.historyEntry.remove(),{...w.data,id:w.id,startClocks:w.startClocks,counts:S}}function f(g){return t.findAll(g)}function h(g){var b,w;return(w=(b=n.get(g))===null||b===void 0?void 0:b.eventCounts)===null||w===void 0?void 0:w.eventCounts}function p(){o.unsubscribe(),s(),t.stop()}return{start:l,stop:c,discard:u,getCounts:h,findId:f,stopAll:p}}const MV=["HTML","BODY"],wE=2*$s,_E=yv.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]);function BV(e,t){const n=e.filter(o=>o instanceof Element&&!MV.includes(o.tagName));if(n.length===0)return"";const r=t?[t].concat(_E):_E;let s="";for(const o of n){const l=GV(o,r);if(s+=l,s.length>=wE)return rh(s,wE)}return s}function GV(e,t){const n=pT(e),r=hT(e),s=VV(e),o=WV(e,t),l=UV(e);return`${n}${r||""}${o}${s}${l};`}function VV(e){return Array.from(e.classList).filter(t=>!bv(t)).sort().map(t=>`.${CSS.escape(t)}`).join("")}function UV(e){const t=Array.from(e.parentNode.children);if(t.length<=1)return"";const n=t.filter(o=>o.tagName===e.tagName),r=t.indexOf(e),s=yT(e);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${s})`:""}`}function WV(e,t){const n=[],r=Array.from(e.attributes);for(const s of r)t.includes(s.name)&&n.push(gT(s.name,s.value));return n.sort().join("")}const kT=Kt,PV=100;function jV(e,t){const n=[];let r=0,s;o(e);function o(u){u.stopObservable.subscribe(l),n.push(u),Gn(s),s=Zt(c,kT)}function l(){r===1&&n.every(u=>u.isStopped())&&(r=2,t(n))}function c(){Gn(s),r===0&&(r=1,l())}return{tryAppend:u=>r!==0?!1:n.length>0&&!$V(n[n.length-1].event,u.event)?(c(),!1):(o(u),!0),stop:()=>{c()}}}function $V(e,t){return e.target===t.target&&YV(e,t)<=PV&&e.timeStamp-t.timeStamp<=kT}function YV(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function ZV(e,t,n=Oe.ALLOW){const r=new Map,{actionNameAttribute:s}=t,o=SE(e,mh)||s&&SE(e,s);return o?{name:o,nameSource:"custom_attribute"}:n===Oe.MASK?{name:fT,nameSource:"mask_placeholder"}:EE(e,zV,t,r)||EE(e,HV,t,r)||{name:"",nameSource:"blank"}}function SE(e,t){const n=XV(e,`[${t}]`);if(!n)return;const r=n.getAttribute(t);return xT(AT(r.trim()))}function XV(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=uT(n)}return null}const zV=[(e,t,n)=>{if("labels"in e&&e.labels&&e.labels.length>0)return Wd(e.labels[0],t,n)},e=>{if(e.nodeName==="INPUT"){const t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t,n)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return Wd(e,t,n)},(e,t,n)=>Dl(e,"aria-label",t,n),(e,t,n)=>{const r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(s=>JV(e,s)).filter(s=>!!s).map(s=>RT(s,t,n)).join(" "),nameSource:"text_content"}},(e,t,n)=>Dl(e,"alt",t,n),(e,t,n)=>Dl(e,"name",t,n),(e,t,n)=>Dl(e,"title",t,n),(e,t,n)=>Dl(e,"placeholder",t,n),(e,t,n)=>{if("options"in e&&e.options.length>0)return Wd(e.options[0],t,n)}],HV=[(e,t,n)=>Wd(e,t,n)],KV=10;function EE(e,t,n,r){let s=e,o=0;for(;o<=KV&&s&&s.nodeName!=="BODY"&&s.nodeName!=="HTML"&&s.nodeName!=="HEAD";){for(const l of t){const c=l(s,n,r);if(c){const{name:u,nameSource:f}=c,h=u&&u.trim();if(h)return{name:xT(AT(h)),nameSource:f}}}if(s.nodeName==="FORM")break;s=uT(s),o+=1}}function AT(e){return e.replace(/\s+/g," ")}function xT(e){return e.length>100?`${rh(e,100)} [...]`:e}function JV(e,t){const n=e.getRootNode();if(n instanceof ShadowRoot){const r=n.getElementById(t);if(r)return r}return e.ownerDocument?e.ownerDocument.getElementById(t):null}function Dl(e,t,n,r){const{enablePrivacyForActionName:s,defaultPrivacyLevel:o}=n;let l=e.getAttribute(t);if(l&&s){const c=gh(e,o,r);FV(e.tagName,t,l,c,n)&&(l=ST(l,fT))}else l||(l="");return{name:l,nameSource:"standard_attribute"}}function Wd(e,t,n){return{name:RT(e,t,n)||"",nameSource:"text_content"}}function RT(e,t,n){if(e.isContentEditable)return;const{enablePrivacyForActionName:r,actionNameAttribute:s,defaultPrivacyLevel:o}=t;if(sr(pn.USE_TREE_WALKER_FOR_ACTION_NAME))return QV(e,s,r,o,n);if("innerText"in e){let l=e.innerText;const c=u=>{const f=e.querySelectorAll(u);for(let h=0;h0&&(l=l.replace(g,""))}}};return c(`[${mh}]`),s&&c(`[${s}]`),r&&c(`${go(Oe.HIDDEN)}, ${go(Oe.MASK)}`),l}return e.textContent}function QV(e,t,n,r,s){const o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,c);let l="";for(;o.nextNode();){const u=o.currentNode;if(es(u)){(u.nodeName==="BR"||u.nodeName==="P"||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(u).display))&&(l+=" ");continue}l+=u.textContent||""}return l.replace(/\s+/g," ").trim();function c(u){const f=gh(u,r,s);if(n&&f&&vT(u,f))return NodeFilter.FILTER_REJECT;if(es(u)){if(u.hasAttribute(mh)||t&&u.hasAttribute(t))return NodeFilter.FILTER_REJECT;const h=getComputedStyle(u);if(h.visibility!=="visible"||h.display==="none"||h.contentVisibility&&h.contentVisibility!=="visible")return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}}function qV(e,{onPointerDown:t,onPointerUp:n}){let r,s={selection:!1,input:!1,scroll:!1},o;const l=[lt(e,window,"pointerdown",c=>{AE(c)&&(r=kE(),s={selection:!1,input:!1,scroll:!1},o=t(c))},{capture:!0}),lt(e,window,"selectionchange",()=>{(!r||!kE())&&(s.selection=!0)},{capture:!0}),lt(e,window,"scroll",()=>{s.scroll=!0},{capture:!0,passive:!0}),lt(e,window,"pointerup",c=>{if(AE(c)&&o){const u=s;n(o,c,()=>u),o=void 0}},{capture:!0}),lt(e,window,"input",()=>{s.input=!0},{capture:!0})];return{stop:()=>{l.forEach(c=>c.stop())}}}function kE(){const e=window.getSelection();return!e||e.isCollapsed}function AE(e){return e.target instanceof Element&&e.isPrimary!==!1}const xE=3;function eU(e,t){if(tU(e))return t.addFrustration(Oi.RAGE_CLICK),e.some(RE)&&t.addFrustration(Oi.DEAD_CLICK),t.hasError&&t.addFrustration(Oi.ERROR_CLICK),{isRage:!0};const n=e.some(r=>r.getUserActivity().selection);return e.forEach(r=>{r.hasError&&r.addFrustration(Oi.ERROR_CLICK),RE(r)&&!n&&r.addFrustration(Oi.DEAD_CLICK)}),{isRage:!1}}function tU(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t{He(r,xn())>TT&&ec.delete(r)})}function CT(e){return t=>t.action!==void 0&&t.action.id!==void 0&&t.action.id.includes(e)}function sU(e,t,n,r){const s=vv(e),o=new Ue;let l;e.subscribe(5,f),e.subscribe(11,f);const{stop:c}=qV(r,{onPointerDown:h=>oU(r,e,t,h,n),onPointerUp:({clickActionBase:h,hadActivityOnPointerDown:p},g,b)=>{iU(r,e,t,n,s,o,u,h,g,b,p)}});return{stop:()=>{f(),o.notify(),c(),s.stopAll()},findActionId:s.findId};function u(h){if(!l||!l.tryAppend(h)){const p=h.clone();l=jV(h,g=>{lU(g,p),l=void 0})}}function f(){l&&l.stop()}}function oU(e,t,n,r,s){const o=e.betaTrackActionsInShadowDom?NT(r):r.target;let l;if(e.enablePrivacyForActionName?l=gh(o,e.defaultPrivacyLevel):l=Oe.ALLOW,l===Oe.HIDDEN)return;const c=aU(r,l,e);let u=!1;return gv(t,n,s,e,f=>{u=f.hadActivity},dT),{clickActionBase:c,hadActivityOnPointerDown:()=>u}}function iU(e,t,n,r,s,o,l,c,u,f,h){var p;const g=LT(t,s,f,c,u);l(g);const b=(p=c?.target)===null||p===void 0?void 0:p.selector;b&&IT(u.timeStamp,b);const{stop:w}=gv(t,n,r,e,A=>{A.hadActivity&&A.end{g.stop(A.timeStamp)}),_=t.subscribe(11,()=>{g.stop(bt())}),E=o.subscribe(()=>{g.stop()});g.stopObservable.subscribe(()=>{_.unsubscribe(),S.unsubscribe(),w(),E.unsubscribe()})}function aU(e,t,n){const r=n.betaTrackActionsInShadowDom?NT(e):e.target,s=r.getBoundingClientRect(),o=Hc(r,n.actionNameAttribute),l=sr(pn.COMPOSED_PATH_SELECTOR)&&typeof e.composedPath=="function"?BV(e.composedPath(),n.actionNameAttribute):void 0;o&&IT(e.timeStamp,o);const{name:c,nameSource:u}=ZV(r,n,t);return{type:fv.CLICK,target:{width:Math.round(s.width),height:Math.round(s.height),selector:o,composedPathSelector:l||void 0},position:{x:Math.round(e.clientX-s.left),y:Math.round(e.clientY-s.top)},name:c,nameSource:u}}function NT(e){if(e.composed&&pv(e.target)&&typeof e.composedPath=="function"){const t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}function LT(e,t,n,r,s){const o=It(),l=Yc(s.timeStamp),c=t.start(o,l,r,{isChildEvent:CT});e.notify(15,c);let u=0,f;const h=[],p=new Ue;function g(b){u===0&&(u=1,f=b?t.stop(o,P1(b)):t.discard(o),p.notify())}return{event:s,stop:g,stopObservable:p,get hasError(){var b;const w=(b=f?.counts)!==null&&b!==void 0?b:t.getCounts(o);return w?w.errorCount>0:!1},get hasPageActivity(){return f&&"duration"in f},getUserActivity:n,addFrustration:b=>{h.push(b)},get startClocks(){return l},isStopped:()=>u===1||u===2,clone:()=>LT(e,t,n,r,s),validate:b=>{if(g(),u!==1||!f)return;const w={frustrationTypes:h,events:b??[s],event:s,...f,counts:f.counts};e.notify(0,w),u=2},discard:()=>{g(),u=2}}}function lU(e,t){const{isRage:n}=eU(e,t);n?(e.forEach(r=>r.discard()),t.stop(bt()),t.validate(e.map(r=>r.event))):(t.discard(),e.forEach(r=>r.validate()))}function cU(e,t){const n=vv(e);function r(l,c={},u=qe()){var f;const h=(f=c.actionKey)!==null&&f!==void 0?f:l,p=n.start(h,u,{name:l,...c},{isChildEvent:CT});e.notify(15,p)}function s(l,c={},u=qe()){var f;const h=(f=c.actionKey)!==null&&f!==void 0?f:l,p=n.stop(h,u,c);if(!p)return;const g=[];p.counts&&p.counts.errorCount>0&&g.push(Oi.ERROR_CLICK);const b={...p,type:p.type||fv.CUSTOM,frustrationTypes:g};t(b)}function o(l){t({id:It(),frustrationTypes:[],...l})}return{addAction:o,startAction:r,stopAction:s,findActionId:n.findId,stop:n.stopAll}}const uU=1;function dU(e,t,n,r,s){const{unsubscribe:o}=e.subscribe(0,f=>{e.notify(12,TE(f))});let l;s.trackUserInteractions&&(l=sU(e,n,r,s));const c=cU(e,f=>{e.notify(12,TE(f))}),u={findActionId:f=>{var h;const p=c.findActionId(f),g=(h=l?.findActionId(f))!==null&&h!==void 0?h:[];return p.concat(g)}};return t.register(0,({startTime:f,eventType:h})=>{if(h!==Te.ERROR&&h!==Te.RESOURCE&&h!==Te.LONG_TASK)return on;const p=h===Te.LONG_TASK?Wo(f,uU):f,g=u.findActionId(p);return g.length?{type:h,action:{id:g}}:on}),t.register(1,({startTime:f})=>({action:{id:u.findActionId(f)}})),{addAction:c.addAction,startAction:c.startAction,stopAction:c.stopAction,actionContexts:u,stop:()=>{o(),c.stop(),l?.stop()}}}function TE(e){var t,n,r,s;const o=fU(e),l=cT(xe(e.duration));return{rawRumEvent:{type:Te.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...l!==void 0&&{loading_time:l},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...o?{_dd:{action:{target:{selector:((t=e.target)===null||t===void 0?void 0:t.selector)||void 0,width:((n=e.target)===null||n===void 0?void 0:n.width)||void 0,height:((r=e.target)===null||r===void 0?void 0:r.height)||void 0,composed_path_selector:(s=e.target)===null||s===void 0?void 0:s.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:o?{events:e.events}:{handlingStack:e.handlingStack}}}function fU(e){return"events"in e}function hU(e){const t=OB([Qf.error]).subscribe(n=>e.notify(n.error));return{stop:()=>{t.unsubscribe()}}}function pU(e,t){const n=yM(e,[bc.cspViolation,bc.intervention]).subscribe(r=>t.notify(r));return{stop:()=>{n.unsubscribe()}}}function mU(e,t,n){const r=new Ue;return n.subscribe(s=>{s.type===0&&r.notify(s.error)}),hU(r),pU(t,r),r.subscribe(s=>e.notify(14,{error:s})),gU(e)}function gU(e){return e.subscribe(14,({error:t})=>{e.notify(12,yU(t))}),{addError:({error:t,handlingStack:n,componentStack:r,startClocks:s,context:o})=>{const l=av({originalError:t,handlingStack:n,componentStack:r,startClocks:s,nonErrorPrefix:"Provided",source:Ta.CUSTOM,handling:"handled"});l.context=qr(l.context,o),e.notify(14,{error:l})}}}function yU(e){const t={date:e.startClocks.timeStamp,error:{id:It(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:Te.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startClocks:e.startClocks,domainContext:n}}const IE=new WeakSet;function bU(e){if(!performance||!("getEntriesByName"in performance))return;const t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;const n=t.filter(r=>!IE.has(r)).filter(r=>tT(r)&&nT(r)).filter(r=>vU(r,e.startClocks.relative,FT({startTime:e.startClocks.relative,duration:e.duration})));if(n.length===1)return IE.add(n[0]),n[0].toJSON()}function FT(e){return Wo(e.startTime,e.duration)}function vU(e,t,n){return e.startTime>=t-1&&FT(e)<=Wo(n,1)}const wU=2*an;function _U(e){const t=SU(e)||EU(e);if(!(!t||t.traceTime<=sn()-wU))return t.traceId}function SU(e){const t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return OT(t&&t.content,n&&n.content)}function EU(e){const t=kU(e);if(t)return OT(yc(t,"trace-id"),yc(t,"trace-time"))}function OT(e,t){const n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function kU(e){for(let t=0;t=0;t-=1){const n=e.body.childNodes[t],r=CE(n);if(r)return r;if(!by(n))break}}function CE(e){if(e&&cV(e)){const t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function wv(){if(Zs(Ge.NAVIGATION)){const n=performance.getEntriesByType(Ge.NAVIGATION)[0];if(n)return n}const e=AU(),t={entryType:Ge.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function AU(){const e={},t=performance.timing;for(const n in t)if(jc(t[n])){const r=n,s=t[r];e[r]=s===0?0:$1(s)}return e}function DT(e){return e.responseStart>=0&&e.responseStart<=xn()?e.responseStart:void 0}function xU(){if(Zs(Ge.RESOURCE))return performance.getEntriesByType(Ge.RESOURCE)}function RU(e,t){const n=xU();if(n)return sv(n,r=>r.name===e&&r.startTime<=t)}function TU(e,t){cv(e,"interactive",()=>{const n=wv(),r=Object.assign(n.toJSON(),{entryType:Ge.RESOURCE,initiatorType:qR,duration:n.responseEnd,traceId:_U(document),toJSON:()=>({...r,toJSON:void 0})});t(r)})}const IU=1e3;function CU(e){const t=new Set;let n=!1;const r=e.subscribe(8,s=>{if(t.add(s),t.size>IU){const o=t.values().next().value;if(!n){n=!0;let l;if(sr(pn.TOO_MANY_REQUESTS_INVESTIGATION)){let c=0,u=0,f=0,h=0;for(const g of t)g.isAborted&&c++,g.isAbortedOnStart&&u++,g.type===zc.XHR&&f++,performance.getEntriesByName(g.url,"resource").some(S=>S.startTime>=g.startClocks.relative)||h++;const p=bt()-o.startClocks.timeStamp;l={abortedCount:c,abortedOnStartCount:u,xhrCount:f,fetchCount:t.size-f,oldestRequestAge:p,oldestRequestEndAge:p-o.duration,withoutMatchingEntryCount:h}}uh("Too many requests",l)}t.delete(o)}});return{getMatchingRequest(s){let o=1/0,l;for(const c of t){const u=s.startTime-c.startClocks.relative;0<=u&&u{c(()=>FU(h,t,n))});const l=ts(t,{type:Ge.RESOURCE,buffered:!0}).subscribe(h=>{for(const p of h)(o||!eT(p))&&c(()=>NE(p,t,n,s))});TU(t,h=>{c(()=>NE(h,t,n,s))});function c(h){r.push(()=>{const p=h();p&&e.notify(12,p)})}const u=vv(e),f=NU(e,u);return{startResource:f.startResource,stopResource:f.stopResource,stop:()=>{r.stop(),l.unsubscribe(),u.stopAll()}}}function FU(e,t,n){const r=bU(e);return MT(r,e,n,t)}function NE(e,t,n,r){const s=eT(e)&&r?r.getMatchingRequest(e):void 0;return MT(e,s,n,t)}function MT(e,t,n,r){if(!e&&!t)return;const s=t?GU(t,r):VU(e,r);if(!r.trackResources&&!s)return;const o=e?Yc(e.startTime):t.startClocks,l=e?VG(e):UU(n,o,t.duration),c=t&&OU(t,r),u=e&&DU(e),f=qr({date:o.timeStamp,resource:{id:It(),duration:xe(l),type:t?t.type===zc.XHR?$t.XHR:$t.FETCH:GG(e),method:t?t.method:void 0,status_code:t?t.status:WU(e.responseStatus),url:t?rT(t.url):e.name,protocol:e&&PG(e),delivery_type:e&&jG(e),graphql:c,response:u},type:Te.RESOURCE,_dd:{discarded:!r.trackResources}},s,e&&BU(e));return{startClocks:o,duration:l,rawRumEvent:f,domainContext:MU(e,t)}}function OU(e,t){const n=aT(e.url,t);if(n)return qG(e,n)}function DU(e){const t=e.contentType;if(t)return{headers:{"content-type":t}}}function MU(e,t){if(t){const n={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return t.type===zc.XHR?{xhr:t.xhr,...n}:{requestInput:t.input,requestInit:t.init,response:t.response,error:t.error,...n}}return{performanceEntry:e}}function BU(e){const{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...$G(e),...UG(e)}}}function GU(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function VU(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:oT().toString(),rule_psr:t.rulePsr}}}function UU(e,t,n){return e.wasInPageStateDuringPeriod("frozen",t.relative,n)?void 0:n}function WU(e){return e===0?void 0:e}function PU(e,t,n){const{stop:r,eventCounts:s}=ET({lifeCycle:e,isChildEvent:o=>o.view.id===t,onChange:n});return{stop:r,eventCounts:s}}const jU=10*an;function $U(e,t,n){return{stop:ts(e,{type:Ge.PAINT,buffered:!0}).subscribe(s=>{const o=s.find(l=>l.name==="first-contentful-paint"&&l.startTime{requestAnimationFrame(()=>{t(He(e,xn()))})})}function ZU(e,t,n){const r=ts(e,{type:Ge.FIRST_INPUT,buffered:!0}).subscribe(s=>{const o=s.find(l=>l.startTime=0?l:0,time:o.startTime,targetSelector:c})}});return{stop:()=>{r.unsubscribe()}}}function XU(e,t){return KU(e,()=>{const n=wv();HU(n)||t(zU(n))})}function zU(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:DT(e)}}function HU(e){return e.loadEventEnd<=0}function KU(e,t){let n;const{stop:r}=cv(e,"complete",()=>{n=Zt(()=>t())});return{stop:()=>{r(),Gn(n)}}}const JU=10*an;function QU(e,t,n,r){let s=1/0;const{stop:o}=Vs(e,n,["pointerdown","keydown"],u=>{s=u.timeStamp},{capture:!0,once:!0});let l=0;const c=ts(e,{type:Ge.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(u=>{const f=sv(u,h=>h.entryType===Ge.LARGEST_CONTENTFUL_PAINT&&h.startTimel);if(f){let h;f.element&&(h=Hc(f.element,e.actionNameAttribute));const p=qU(f),g=f.startTime,b=e3(p,g);r({value:g,targetSelector:h,resourceUrl:p,subParts:b}),l=f.size}});return{stop:()=>{o(),c.unsubscribe()}}}function qU(e){return e.url===""?void 0:e.url}function e3(e,t){const n=DT(wv());if(n===void 0)return;const r=e?RU(e,t):void 0,s=r?Math.max(n,r.requestStart||r.startTime):n,o=Math.min(t,Math.max(s,r?.responseEnd||0));return{loadDelay:s-n,loadTime:o-s,renderDelay:t-o}}function BT(e,t,n=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:Ze};if(Zs(Ge.VISIBILITY_STATE)){const o=performance.getEntriesByType(Ge.VISIBILITY_STATE).filter(l=>l.name==="hidden").find(l=>l.startTime>=t.relative);if(o)return{timeStamp:o.startTime,stop:Ze}}let r=1/0;const{stop:s}=Vs(e,n,["pagehide","visibilitychange"],o=>{(o.type==="pagehide"||document.visibilityState==="hidden")&&(r=o.timeStamp,s())},{capture:!0});return{get timeStamp(){return r},stop:s}}function t3(e,t,n,r){const s={},{stop:o}=XU(e,p=>{n(p.loadEvent),s.navigationTimings=p,r()}),l=BT(e,t),{stop:c}=$U(e,l,p=>{s.firstContentfulPaint=p,r()}),{stop:u}=QU(e,l,window,p=>{s.largestContentfulPaint=p,r()}),{stop:f}=ZU(e,l,p=>{s.firstInput=p,r()});function h(){o(),c(),u(),f(),l.stop()}return{stop:h,initialViewMetrics:s}}const vy=(e,t)=>e*t,n3=(e,t)=>{const n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),s=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom);return n>=s||r>=o?0:vy(s-n,o-r)},LE=e=>{const t=vy(e.previousRect.width,e.previousRect.height),n=vy(e.currentRect.width,e.currentRect.height),r=n3(e.previousRect,e.currentRect);return t+n-r};function r3(e,t,n){if(!l3())return{stop:Ze};let r=0,s;n({value:0});const o=a3(),l=ts(e,{type:Ge.LAYOUT_SHIFT,buffered:!0}).subscribe(c=>{var u;for(const f of c){if(f.hadRecentInput||f.startTimer){r=h;const g=(u=s?.target)===null||u===void 0?void 0:u.deref();n({value:Bi(r,4),targetSelector:g&&Hc(g,e.actionNameAttribute),time:s?.time,previousRect:s?.previousRect?FE(s.previousRect):void 0,currentRect:s?.currentRect?FE(s.currentRect):void 0,devicePixelRatio:s?.devicePixelRatio})}}});return{stop:()=>{l.unsubscribe()}}}function s3(e){let t;for(const n of e)if(n.node&&es(n.node)){const r=LE(n);(!t||LE(t){const o=t===void 0||s.startTime-n>=i3||s.startTime-t>=o3;let l;return o?(t=n=s.startTime,r=e=s.value,l=!0):(e+=s.value,n=s.startTime,l=s.value>r,l&&(r=s.value)),{cumulatedValue:e,isMaxValue:l}}}}function l3(){return Zs(Ge.LAYOUT_SHIFT)&&"WeakRef"in window}let Pd,GT=0,cg=1/0,ug=0;function c3(){"interactionCount"in performance||Pd||(Pd=new window.PerformanceObserver(Le(e=>{e.getEntries().forEach(t=>{const n=t;n.interactionId&&(cg=Math.min(cg,n.interactionId),ug=Math.max(ug,n.interactionId),GT=(ug-cg)/7+1)})})),Pd.observe({type:"event",buffered:!0,durationThreshold:0}))}const OE=()=>Pd?GT:window.performance.interactionCount||0,DE=10,u3=1*an,d3=8;function f3(e,t,n){if(!g3())return{getInteractionToNextPaint:()=>{},setViewEnd:Ze,stop:Ze};let r=1/0,s;const{getViewInteractionCount:o,stopViewInteractionCount:l}=p3(n),c=h3(o),u=sr(pn.INP_SUBPARTS)?m3(c):null,f=ts(e,{type:Ge.FIRST_INPUT,buffered:!0}).subscribe(p),h=ts(e,{type:Ge.EVENT,durationThreshold:40,buffered:!0}).subscribe(p);function p(b){for(const S of b)S.interactionId&&S.startTime>=t&&S.startTime<=r&&(c.process(S),u?.process(S));u?.pruneUntracked();const w=c.estimateP98Interaction();w&&g(w)}function g(b){const w=He(t,b.startTime);if(!s||b.duration!==s.duration||w!==s.startTime){let S=rU(b.startTime);!S&&b.target&&es(b.target)&&(S=Hc(b.target,e.actionNameAttribute)),s={duration:b.duration,startTime:w,targetSelector:S}}u&&(s.subParts=u.computeSubParts(b,ME(s.duration)))}return{getInteractionToNextPaint:()=>{if(s)return{value:ME(s.duration),targetSelector:s.targetSelector,time:s.startTime,subParts:s.subParts};if(o())return{value:0}},setViewEnd:b=>{r=b,l()},stop:()=>{h.unsubscribe(),f.unsubscribe(),u?.stop()}}}function h3(e){const t=[];function n(){t.sort((r,s)=>s.duration-r.duration).splice(DE)}return{process(r){const s=t.findIndex(l=>r.interactionId===l.interactionId),o=t[t.length-1];s!==-1?r.duration>t[s].duration&&(t[s]=r,n()):(t.lengtho.duration)&&(t.push(r),n())},estimateP98Interaction(){const r=Math.min(t.length-1,Math.floor(e()/50));return t[r]},isTracked(r){return t.some(s=>s.interactionId===r)}}}function p3(e){c3();const t=e===jr.INITIAL_LOAD?0:OE();let n={stopped:!1};function r(){return OE()-t}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}function m3(e){const t=new Map;function n(r,s){r.startTime=Math.min(s.startTime,r.startTime),r.processingStart=Math.min(s.processingStart,r.processingStart),r.processingEnd=Math.max(s.processingEnd,r.processingEnd)}return{process(r){if(r.interactionId===void 0||!r.processingStart||!r.processingEnd)return;const s=r.startTime+r.duration,o=t.get(r.interactionId);if(o){n(o,r);return}for(const[,l]of t.entries())if(Math.abs(s-l.referenceRenderTime)<=d3){n(l,r),t.set(r.interactionId,l);return}t.set(r.interactionId,{startTime:r.startTime,processingStart:r.processingStart,processingEnd:r.processingEnd,referenceRenderTime:s})},pruneUntracked(){for(const[r]of t)e.isTracked(r)||t.delete(r)},computeSubParts(r,s){if(!r.processingStart||!r.processingEnd||r.interactionId===void 0)return;const o=t.get(r.interactionId);if(!o)return;const l=Math.max(o.startTime+s,o.processingStart),c=Math.min(o.processingEnd,l);return{inputDelay:He(o.startTime,o.processingStart),processingDuration:He(o.processingStart,c),presentationDelay:He(c,l)}},stop(){t.clear()}}}function g3(){return Zs(Ge.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function ME(e){return Math.min(e,u3)}function y3(e,t,n,r,s,o,l){let c=s===jr.INITIAL_LOAD,u=!0;const f=[],h=BT(r,o);function p(){if(!u&&!c&&f.length>0){const b=Math.max(...f);b{u&&(u=!1,b.hadActivity&&f.push(He(o.timeStamp,b.end)),p())});return{stop:()=>{g(),h.stop()},setLoadEvent:b=>{c&&(c=!1,f.push(b),p())}}}function qne(){let e;const t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function b3(){let e;const t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}let dg;function v3(e){return dg||(dg=w3(e)),dg}function w3(e){return new Ue(t=>{const{throttled:n}=nh(()=>{t.notify(_v())},200);return lt(e,window,"resize",n,{capture:!0,passive:!0}).stop})}function _v(){const e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}const _3=Kt;function S3(e,t,n,r=k3(e)){let s=0,o=0,l=0;const c=r.subscribe(({scrollDepth:u,scrollTop:f,scrollHeight:h})=>{let p=!1;if(u>s&&(s=u,p=!0),h>o){o=h;const g=xn();l=He(t.relative,g),p=!0}p&&n({maxDepth:Math.min(s,o),maxDepthScrollTop:f,maxScrollHeight:o,maxScrollHeightTime:l})});return{stop:()=>c.unsubscribe()}}function E3(){const e=b3(),{height:t}=_v(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(t+e);return{scrollHeight:n,scrollDepth:r,scrollTop:e}}function k3(e,t=_3){return new Ue(n=>{function r(){n.notify(E3())}if(window.ResizeObserver){const s=nh(r,t,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,l=new ResizeObserver(Le(s.throttled));o&&l.observe(o);const c=lt(e,window,"scroll",s.throttled,{passive:!0});return()=>{s.cancel(),l.disconnect(),c.stop()}}})}function A3(e,t,n,r,s,o,l){const c={};let u=!1,f=!1;const{stop:h,setLoadEvent:p}=y3(e,t,n,r,o,l,E=>{u||(c.loadingTime=E,s())}),{stop:g}=S3(r,l,E=>{c.scroll=E}),{stop:b}=r3(r,l.relative,E=>{c.cumulativeLayoutShift=E,s()}),{stop:w,getInteractionToNextPaint:S,setViewEnd:_}=f3(r,l.relative,o);return{stop:()=>{h(),b(),g()},stopINPTracking:w,setLoadEvent:p,setViewEnd:E=>{f=!0,_(E)},getCommonViewMetrics:()=>(c.interactionToNextPaint=S(),c),setLoadingTime:E=>{if(f)return;const A=He(l.timeStamp,E??bt());u||h(),u=!0,c.loadingTime=A,s()}}}function x3(e,t){const{stop:n}=lt(e,window,"pageshow",r=>{r.persisted&&t(r)},{capture:!0});return n}function R3(e,t,n){YU(e.relative,r=>{t.firstContentfulPaint=r,t.largestContentfulPaint={value:r},n()})}const T3=3e3,I3=5*an,C3=5*an;function N3(e,t,n,r,s,o,l){const c=new Set;let u=p(jr.INITIAL_LOAD,j1(),l),f;g();let h;o&&(h=b(s),r.trackBfcacheViews&&(f=x3(r,w=>{u.end();const S=Yc(w.timeStamp);u=p(jr.BF_CACHE,S,void 0)})));function p(w,S,_){const E=L3(e,t,n,r,w,S,_);return c.add(E),E.stopObservable.subscribe(()=>{c.delete(E)}),E}function g(){e.subscribe(10,()=>{u=p(jr.ROUTE_CHANGE,void 0,{name:u.name,service:u.service,version:u.version,context:u.contextManager.getContext()})}),e.subscribe(9,()=>{u.end({sessionIsActive:!1})})}function b(w){return w.subscribe(({oldLocation:S,newLocation:_})=>{O3(S,_)&&(u.end(),u=p(jr.ROUTE_CHANGE))})}return{addTiming:(w,S=bt())=>{u.addTiming(w,S)},setLoadingTime:w=>u.setLoadingTime(w),startView:(w,S)=>{u.end({endClocks:S}),u=p(jr.ROUTE_CHANGE,S,w)},setViewContext:w=>{u.contextManager.setContext(w)},setViewContextProperty:(w,S)=>{u.contextManager.setContextProperty(w,S)},setViewName:w=>{u.setViewName(w)},getViewContext:()=>u.contextManager.getContext(),stop:()=>{h&&h.unsubscribe(),f&&f(),u.end(),c.forEach(w=>w.stop())}}}function L3(e,t,n,r,s,o=qe(),l){const c=It(),u=new Ue,f={};let h=0,p;const g=Lo(window.location),b=ph();let w=!0,S=l?.name;const _=l?.service||r.service,E=l?.version||r.version,A=l?.context,x=l?.handlingStack;A&&b.setContext(A);const C={id:c,name:S,startClocks:o,service:_,version:E,context:A,url:l?.url};e.notify(1,C),e.notify(2,C);const{throttled:O,cancel:T}=nh(L,T3,{leading:!1}),{setLoadEvent:I,setViewEnd:W,stop:D,stopINPTracking:J,getCommonViewMetrics:oe,setLoadingTime:j}=A3(e,t,n,r,z,s,o),{stop:Q,initialViewMetrics:ae}=s===jr.INITIAL_LOAD?t3(r,o,I,z):{stop:Ze,initialViewMetrics:{}};s===jr.BF_CACHE&&R3(o,ae,z);const{stop:Re,eventCounts:ye}=PU(e,c,z),Ee=ka(L,I3),Y=e.subscribe(11,G=>{G.reason===ql.UNLOADING&&L()});L(),b.changeObservable.subscribe(z);function re(){e.notify(3,{id:c,name:S,context:b.getContext(),startClocks:o,sessionIsActive:w})}function z(){re(),O()}function L(){T(),re(),h+=1;const G=p===void 0?bt():p.timeStamp;e.notify(4,{customTimings:f,documentVersion:h,id:c,name:S,service:_,version:E,context:b.getContext(),loadingType:s,location:g,handlingStack:x,startClocks:o,commonViewMetrics:oe(),initialViewMetrics:ae,duration:He(o.timeStamp,G),isActive:p===void 0,sessionIsActive:w,eventCounts:ye})}return{get name(){return S},service:_,version:E,contextManager:b,stopObservable:u,end(G={}){var $,q;p||(p=($=G.endClocks)!==null&&$!==void 0?$:qe(),w=(q=G.sessionIsActive)!==null&&q!==void 0?q:!0,e.notify(5,{endClocks:p}),e.notify(6,{endClocks:p}),th(Ee),W(p.relative),D(),Y.unsubscribe(),L(),Zt(()=>{this.stop()},C3))},stop(){Q(),Re(),J(),u.notify()},addTiming(G,$){if(p)return;const q=xD($)?$:He(o.timeStamp,$);f[F3(G)]=q,z()},setLoadingTime:j,setViewName(G){S=G,L()}}}function F3(e){const t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&Ie.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function O3(e,t){return e.pathname!==t.pathname||!D3(t.hash)&&BE(t.hash)!==BE(e.hash)}function D3(e){const t=e.substring(1);return t!==""&&!!document.getElementById(t)}function BE(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}function M3(e,t,n,r,s,o,l,c,u){return e.subscribe(4,f=>e.notify(12,B3(f,n,l))),t.register(0,({startTime:f,eventType:h})=>{const p=c.findView(f);return p?{type:h,service:p.service,version:p.version,context:p.context,view:{id:p.id,name:p.name}}:Us}),t.register(1,({startTime:f})=>{var h;return{view:{id:(h=c.findView(f))===null||h===void 0?void 0:h.id}}}),N3(e,r,s,n,o,!n.trackViewsManually,u)}function B3(e,t,n){var r,s,o,l,c,u,f,h,p,g,b,w,S,_,E,A,x,C;const O=n.getReplayStats(e.id),T=(s=(r=e.commonViewMetrics)===null||r===void 0?void 0:r.cumulativeLayoutShift)===null||s===void 0?void 0:s.devicePixelRatio,I={_dd:{document_version:e.documentVersion,replay_stats:O,cls:T?{device_pixel_ratio:T}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:Te.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(o=e.commonViewMetrics.cumulativeLayoutShift)===null||o===void 0?void 0:o.value,cumulative_layout_shift_time:xe((l=e.commonViewMetrics.cumulativeLayoutShift)===null||l===void 0?void 0:l.time),cumulative_layout_shift_target_selector:(c=e.commonViewMetrics.cumulativeLayoutShift)===null||c===void 0?void 0:c.targetSelector,first_byte:xe((u=e.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.firstByte),dom_complete:xe((f=e.initialViewMetrics.navigationTimings)===null||f===void 0?void 0:f.domComplete),dom_content_loaded:xe((h=e.initialViewMetrics.navigationTimings)===null||h===void 0?void 0:h.domContentLoaded),dom_interactive:xe((p=e.initialViewMetrics.navigationTimings)===null||p===void 0?void 0:p.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:xe(e.initialViewMetrics.firstContentfulPaint),first_input_delay:xe((g=e.initialViewMetrics.firstInput)===null||g===void 0?void 0:g.delay),first_input_time:xe((b=e.initialViewMetrics.firstInput)===null||b===void 0?void 0:b.time),first_input_target_selector:(w=e.initialViewMetrics.firstInput)===null||w===void 0?void 0:w.targetSelector,interaction_to_next_paint:xe((S=e.commonViewMetrics.interactionToNextPaint)===null||S===void 0?void 0:S.value),interaction_to_next_paint_time:xe((_=e.commonViewMetrics.interactionToNextPaint)===null||_===void 0?void 0:_.time),interaction_to_next_paint_target_selector:(E=e.commonViewMetrics.interactionToNextPaint)===null||E===void 0?void 0:E.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:xe((A=e.initialViewMetrics.largestContentfulPaint)===null||A===void 0?void 0:A.value),largest_contentful_paint_target_selector:(x=e.initialViewMetrics.largestContentfulPaint)===null||x===void 0?void 0:x.targetSelector,load_event:xe((C=e.initialViewMetrics.navigationTimings)===null||C===void 0?void 0:C.loadEvent),loading_time:cT(xe(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:G3(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:xe(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:xe(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:HB()}};return js(e.customTimings)||(I.view.custom_timings=M1(e.customTimings,xe)),{rawRumEvent:I,startClocks:e.startClocks,duration:e.duration,domainContext:{location:e.location,handlingStack:e.handlingStack}}}function G3({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,firstInput:r,largestContentfulPaint:s}){return{cls:e&&{score:e.value,timestamp:xe(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:xe(n)},fid:r&&{duration:xe(r.delay),timestamp:xe(r.time),target_selector:r.targetSelector},inp:t&&{duration:xe(t.value),timestamp:xe(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:xe(t.subParts.inputDelay),processing_duration:xe(t.subParts.processingDuration),presentation_delay:xe(t.subParts.presentationDelay)}:void 0},lcp:s&&{timestamp:xe(s.value),target_selector:s.targetSelector,resource_url:s.resourceUrl,sub_parts:s.subParts?{load_delay:xe(s.subParts.loadDelay),load_time:xe(s.subParts.loadTime),render_delay:xe(s.subParts.renderDelay)}:void 0}}}const V3="rum";function U3(e,t,n){const r=uB(e,V3,s=>P3(e,s),n);return r.expireObservable.subscribe(()=>{t.notify(9)}),r.renewObservable.subscribe(()=>{t.notify(10)}),r.sessionStateUpdateObservable.subscribe(({previousState:s,newState:o})=>{if(!s.forcedReplay&&o.forcedReplay){const l=r.findSession();l&&(l.isReplayForced=!0)}}),{findTrackedSession:s=>{const o=r.findSession(s);if(!(!o||o.trackingType==="0"))return{id:o.id,sessionReplay:o.trackingType==="1"?1:o.isReplayForced?2:0,anonymousId:o.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:()=>r.updateSessionState({forcedReplay:"1"})}}function W3(){const e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:FR("records")?1:0};return{findTrackedSession:()=>e,expire:Ze,expireObservable:new Ue,setForcedReplay:Ze}}function P3(e,t){return j3(t)?t:wo(e.sessionSampleRate)?wo(e.sessionReplaySampleRate)?"1":"2":"0"}function j3(e){return e==="0"||e==="1"||e==="2"}function $3(e,t,n,r,s,o){const l=[e.rumEndpointBuilder];e.replica&&l.push(e.replica.rumEndpointBuilder);const c=DR({encoder:o(2),request:NR(l,n),flushController:MR({pageMayExitObservable:r,sessionExpireObservable:s})});return t.subscribe(13,u=>{u.type===Te.VIEW?c.upsert(u,u.view.id):c.add(u)}),c}function Y3(e){const t=Xc();e.subscribe(13,n=>{t.send("rum",n)})}const Z3=Po;function X3(e,t,n){const r=Ca({expireDelay:Z3});let s;e.subscribe(1,({startClocks:c,url:u})=>{const f=location.href,h=u!==void 0?Aa(u,f).href:f;r.add(l({url:h,referrer:s||document.referrer}),c.relative),s=h}),e.subscribe(6,({endClocks:c})=>{r.closeActive(c.relative)});const o=n.subscribe(({newLocation:c})=>{const u=r.find();if(u){const f=xn();r.closeActive(f),r.add(l({url:c.href,referrer:u.referrer}),f)}});function l({url:c,referrer:u}){return{url:c,referrer:u}}return t.register(0,({startTime:c,eventType:u})=>{const f=r.find(c);return f?{type:u,view:{url:f.url,referrer:f.referrer}}:Us}),{findUrl:c=>r.find(c),stop:()=>{o.unsubscribe(),r.stop()}}}function z3(e){let t=Lo(location);return new Ue(n=>{const{stop:r}=H3(e,o),{stop:s}=K3(e,o);function o(){if(t.href===location.href)return;const l=Lo(location);n.notify({newLocation:l,oldLocation:t}),t=l}return()=>{r(),s()}})}function H3(e,t){const{stop:n}=_r(GE("pushState"),"pushState",({onPostCall:o})=>{o(t)}),{stop:r}=_r(GE("replaceState"),"replaceState",({onPostCall:o})=>{o(t)}),{stop:s}=lt(e,window,"popstate",t);return{stop:()=>{n(),r(),s()}}}function K3(e,t){return lt(e,window,"hashchange",t)}function GE(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}const J3=Po;function Q3(e,t,n){const r=Ca({expireDelay:J3});return e.subscribe(1,({startClocks:s})=>{r.add({},s.relative)}),e.subscribe(6,({endClocks:s})=>{r.closeActive(s.relative)}),t.register(0,({startTime:s,eventType:o})=>{if(!n.trackFeatureFlagsForEvents.concat([Te.VIEW,Te.ERROR]).includes(o))return on;const c=r.find(s);return!c||js(c)?on:{type:o,feature_flags:c}}),{addFeatureFlagEvaluation:(s,o)=>{const l=r.find();l&&(l[s]=o)}}}const q3=10*Kt;let zi,Sd;function eW(e,t,n){e.metricsEnabled&&(VT(),Sd=!1,t.subscribe(13,()=>{Sd=!0}),n.subscribe(({bytesCount:r,messagesCount:s})=>{Sd&&(Sd=!1,zi.batchCount+=1,UE(zi.batchBytesCount,r),UE(zi.batchMessagesCount,s))}),ka(tW,q3))}function tW(){zi.batchCount!==0&&(fh("Customer data measures",zi),VT())}function VE(){return{min:1/0,max:0,sum:0}}function UE(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function VT(){zi={batchCount:0,batchBytesCount:VE(),batchMessagesCount:VE()}}const nW=4e3,rW=500,sW=Po;function oW(e,t,n=rW){const r=Ca({expireDelay:sW,maxEntries:nW});let s;Zs(Ge.VISIBILITY_STATE)&&performance.getEntriesByType(Ge.VISIBILITY_STATE).forEach(f=>{const h=f.name==="hidden"?"hidden":"active";l(h,f.startTime)}),l(UT(),xn());const{stop:o}=Vs(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],u=>{l(aW(u),u.timeStamp)},{capture:!0});function l(u,f=xn()){u!==s&&(s=u,r.closeActive(f),r.add({state:s,startTime:f},f))}function c(u,f,h){return r.findAll(f,h).some(p=>p.state===u)}return e.register(0,({startTime:u,duration:f=0,eventType:h})=>{if(h===Te.VIEW){const p=r.findAll(u,f);return{type:h,_dd:{page_states:iW(p,u,n)}}}return h===Te.ACTION||h===Te.ERROR?{type:h,view:{in_foreground:c("active",u,0)}}:on}),{wasInPageStateDuringPeriod:c,addPageState:l,stop:()=>{o(),r.stop()}}}function iW(e,t,n){if(e.length!==0)return e.slice(-n).reverse().map(({state:r,startTime:s})=>({state:r,start:xe(He(t,s))}))}function aW(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":UT()}function UT(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function lW(e,t){let n;const r=requestAnimationFrame(Le(()=>{n=_v()})),s=v3(t).subscribe(o=>{n=o}).unsubscribe;return e.register(0,({eventType:o})=>({type:o,display:n?{viewport:n}:void 0})),{stop:()=>{s(),r&&cancelAnimationFrame(r)}}}function cW(e,t){const n=window.cookieStore?uW(e):fW;return new Ue(r=>n(t,s=>r.notify(s)))}function uW(e){return(t,n)=>lt(e,window.cookieStore,"change",s=>{const o=s.changed.find(l=>l.name===t)||s.deleted.find(l=>l.name===t);o&&n(o.value)}).stop}const dW=Kt;function fW(e,t){let n=yc(document.cookie,e);const r=ka(()=>{const s=yc(document.cookie,e);s!==n&&(n=s,t(s))},dW);return()=>{th(r)}}const WE="datadog-ci-visibility-test-execution-id";function hW(e,t,n=cW(e,WE)){var r;let s=$r(WE)||((r=window.Cypress)===null||r===void 0?void 0:r.env("traceId"));const o=n.subscribe(l=>{s=l});return t.register(0,({eventType:l})=>typeof s!="string"?on:{type:l,session:{type:"ci_test"},ci_test:{test_execution_id:s}}),{stop:()=>{o.unsubscribe()}}}function pW(e,t){const n=Zs(Ge.LONG_ANIMATION_FRAME)?Ge.LONG_ANIMATION_FRAME:Ge.LONG_TASK,r=ts(t,{type:n,buffered:!0}).subscribe(s=>{for(const o of s){if(!t.trackLongTasks)break;const l=Yc(o.startTime),c=mW(o,l);e.notify(12,{rawRumEvent:c,startClocks:l,duration:o.duration,domainContext:{performanceEntry:o}})}});return{stop:()=>r.unsubscribe()}}function mW(e,t){const n=It(),r=xe(e.duration),s={date:t.timeStamp,type:Te.LONG_TASK,_dd:{discarded:!1}};return e.entryType===Ge.LONG_TASK?{...s,long_task:{id:n,entry_type:uE.LONG_TASK,duration:r}}:{...s,long_task:{id:n,entry_type:uE.LONG_ANIMATION_FRAME,duration:r,blocking_duration:xe(e.blockingDuration),first_ui_event_timestamp:xe(e.firstUIEventTimestamp),render_start:xe(e.renderStart),style_and_layout_start:xe(e.styleAndLayoutStart),start_time:xe(e.startTime),scripts:e.scripts.map(o=>({duration:xe(o.duration),pause_duration:xe(o.pauseDuration),forced_style_and_layout_duration:xe(o.forcedStyleAndLayoutDuration),start_time:xe(o.startTime),execution_start:xe(o.executionStart),source_url:o.sourceURL,source_function_name:o.sourceFunctionName,source_char_position:o.sourceCharPosition,invoker:o.invoker,invoker_type:o.invokerType,window_attribution:o.windowAttribution}))}}}function gW(e){e.register(0,({eventType:t})=>WR()?{type:t,session:{type:"synthetics"},synthetics:{...UR(),injected:VR()}}:on)}function yW(e,t,n){const r=lv(e),s=n(r);return ih(t).forEach(([o,l])=>wy(e,r,o.split(/\.|(?=\[\])/),l)),s}function wy(e,t,n,r){const[s,...o]=n;if(s==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((l,c)=>wy(l,t[c],o,r));return}if(!(!PE(e)||!PE(t))){if(o.length>0)return wy(e[s],t[s],o,r);bW(e,s,t[s],r)}}function bW(e,t,n,r){if(e[t]===n)return;const s=xa(n);s===r?e[t]=Ne(n):r==="object"&&(s==="undefined"||s==="null")&&(e[t]={})}function PE(e){return xa(e)==="object"}const Ei={"view.name":"string","view.url":"string","view.referrer":"string"},ki={context:"object"},Ai={service:"string",version:"string"};let WT;function vW(e,t,n,r,s){WT={[Te.VIEW]:{"view.performance.lcp.resource_url":"string",...ki,...Ei,...Ai},[Te.ERROR]:{"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string",...ki,...Ei,...Ai},[Te.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string",...ki,...Ei,...Ai},[Te.ACTION]:{"action.target.name":"string",...ki,...Ei,...Ai},[Te.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...ki,...Ei,...Ai},[Te.VITAL]:{...ki,...Ei,...Ai}};const o={[Te.ERROR]:tg(Te.ERROR,r,s),[Te.ACTION]:tg(Te.ACTION,r,s),[Te.VITAL]:tg(Te.VITAL,r,s)};t.subscribe(12,({startClocks:l,duration:c,rawRumEvent:u,domainContext:f})=>{const h=n.triggerHook(0,{eventType:u.type,rawRumEvent:u,domainContext:f,startTime:l.relative,duration:c});if(h===Us)return;const p=qr(h,u,{ddtags:wR(e).join(",")});wW(p,e.beforeSend,f,o)&&(js(p.context)&&delete p.context,t.notify(13,p))})}function wW(e,t,n,r){var s;if(t){const l=yW(e,WT[e.type],c=>t(c,n));if(l===!1&&e.type!==Te.VIEW)return!1;l===!1&&Ie.warn("Can't dismiss view events using beforeSend!")}return!((s=r[e.type])===null||s===void 0?void 0:s.isLimitReached())}function _W(e,t,n,r){e.register(0,({eventType:s,startTime:o})=>{const l=t.findTrackedSession(o),c=r.findView(o);if(!l||!c)return Us;let u,f,h;return s===Te.VIEW?(u=n.getReplayStats(c.id)?!0:void 0,f=l.sessionReplay===1,h=c.sessionIsActive?void 0:!1):u=n.isRecording()?!0:void 0,{type:s,session:{id:l.id,type:"user",has_replay:u,sampled_for_replay:f,is_active:h}}}),e.register(1,({startTime:s})=>{const o=t.findTrackedSession(s);return o?{session:{id:o.id}}:on})}function SW(e){e.register(0,({eventType:t})=>({type:t,connectivity:SR()}))}function EW(e,t,n){e.register(0,({eventType:r})=>{const s=t.source;return{type:r,_dd:{format_version:2,drift:kD(),configuration:{session_sample_rate:Bi(t.sessionSampleRate,3),session_replay_sample_rate:Bi(t.sessionReplaySampleRate,3),profiling_sample_rate:Bi(t.profilingSampleRate,3),trace_sample_rate:Bi(t.traceSampleRate,3),beta_encode_cookie_options:t.betaEncodeCookieOptions},browser_sdk_version:ia()?"6.32.0":void 0,sdk_name:n},application:{id:t.applicationId},date:bt(),source:s}}),e.register(1,()=>({application:{id:t.applicationId}}))}function kW(e,t){e.register(1,()=>t.isGranted()?on:Us)}const AW=[Te.ACTION,Te.ERROR,Te.LONG_TASK,Te.RESOURCE,Te.VITAL];function xW(e){return{addEvent:(t,n,r,s)=>{AW.includes(n.type)&&e.notify(12,{startClocks:Yc(t),rawRumEvent:n,domainContext:r,duration:s})}}}function RW(e,t){if(!t.metricsEnabled)return{stop:Ze};const{unsubscribe:n}=e.subscribe(4,({initialViewMetrics:r})=>{!r.largestContentfulPaint||!r.navigationTimings||(fh("Initial view metrics",{metrics:TW(r.largestContentfulPaint,r.navigationTimings)}),n())});return{stop:n}}function TW(e,t){return{lcp:{value:e.value},navigation:{domComplete:t.domComplete,domContentLoaded:t.domContentLoaded,domInteractive:t.domInteractive,firstByte:t.firstByte,loadEvent:t.loadEvent}}}function IW(e){const t=window,n=new Map;function r(){t.DD_SOURCE_CODE_CONTEXT&&(ih(t.DD_SOURCE_CODE_CONTEXT).forEach(([s,o])=>{const c=Ra({stack:s}).stack[0];if(!c.url){dh("Source code context: missing frame url",{stack:s});return}n.has(c.url)||n.set(c.url,o)}),t.DD_SOURCE_CODE_CONTEXT={})}r(),e.register(0,({domainContext:s,rawRumEvent:o})=>{if(r(),n.size===0)return on;const l=CW(s,o),c=l&&n.get(l);return c?{type:o.type,service:c.service,version:c.version}:on})}function CW(e,t){var n,r;if(t.type==="long_task"&&t.long_task.entry_type==="long-animation-frame")return(n=t.long_task.scripts[0])===null||n===void 0?void 0:n.source_url;let s;return"handlingStack"in e&&(s=e.handlingStack),t.type==="error"&&t.error.stack&&(s=t.error.stack),(r=Ra({stack:s}).stack[0])===null||r===void 0?void 0:r.url}function NW(e,t,n,r,s,o,l,c,u,f,h){const p=[],g=new OG;g.subscribe(13,C=>_R("rum",C));const b=C=>{g.notify(14,{error:C}),uh("Error reported to customer",{"error.message":C.message})},w=OR(e),S=w.subscribe(C=>{g.notify(11,C)});p.push(()=>S.unsubscribe());const _=ia()?W3():U3(e,g,o);if(ia())Y3(g);else{const C=$3(e,g,b,w,_.expireObservable,s);p.push(()=>C.stop()),eW(u,g,C.flushController.flushObservable)}kW(f,o);const{stop:E}=RW(g,u);p.push(E);const{stop:A,...x}=LW(g,f,e,_,t,r,l,c,h,b);return p.push(A),c.unbuffer(),p.push(()=>n.stop()),{...x,lifeCycle:g,session:_,stopSession:()=>_.expire(),telemetry:u,stop:()=>{p.forEach(C=>C())},hooks:f}}function LW(e,t,n,r,s,o,l,c,u,f){const h=[],p=CG(),g=z3(n),{observable:b,stop:w}=LG();h.push(w),EW(t,n,u);const S=oW(t,n);h.push(()=>S.stop());const _=MG(e);h.push(()=>_.stop());const E=X3(e,t,g);h.push(()=>E.stop());const A=Q3(e,t,n);_W(t,r,s,_),SW(t);const x=YB(t,n,"rum"),C=ZB(t,n,r,"rum"),O=$B(t,n,"rum"),T=dU(e,t,p,b,n);h.push(T.stop);const I=xW(e),W=lW(t,n);h.push(W.stop);const D=hW(n,t);h.push(D.stop),gW(t),vW(n,e,t,f);const{addTiming:J,setLoadingTime:oe,startView:j,setViewName:Q,setViewContext:ae,setViewContextProperty:Re,getViewContext:ye,stop:Ee}=M3(e,t,n,p,b,g,s,_,o);IW(t),h.push(Ee);const Y=LU(e,n,S);h.push(Y.stop);const{stop:re}=pW(e,n);h.push(re);const{addError:z}=mU(e,n,c);iV(e,n,r,C,O);const L=JB(e,S,l),G=FG(n.applicationId,r,_,T.actionContexts,E);return{addAction:T.addAction,startAction:T.startAction,stopAction:T.stopAction,startResource:Y.startResource,stopResource:Y.stopResource,addEvent:I.addEvent,addError:z,addTiming:J,setLoadingTime:oe,addFeatureFlagEvaluation:A.addFeatureFlagEvaluation,startView:j,setViewContext:ae,setViewContextProperty:Re,getViewContext:ye,setViewName:Q,viewHistory:_,getInternalContext:G.get,startDurationVital:L.startDurationVital,stopDurationVital:L.stopDurationVital,addDurationVital:L.addDurationVital,addOperationStepVital:L.addOperationStepVital,globalContext:x,userContext:C,accountContext:O,stop:()=>h.forEach($=>$())}}function FW(e,t,n={}){const r=g5(),s=KB(),o=zB().observable;let l=TG(n,r,s,(h,p,g,b,w)=>{const S=p&&n.createDeflateEncoder?E=>n.createDeflateEncoder(h,p,E):BR,_=NW(h,e,t,g,S,r,s,o,b,w,n.sdkName);return e.onRumStart(_.lifeCycle,h,_.session,_.viewHistory,p,_.telemetry),t.onRumStart(_.lifeCycle,_.hooks,h,_.session,_.viewHistory,S),l=OW(l,_),KR(h.plugins,"onRumStart",{strategy:l,addEvent:_.addEvent,addError:_.addError}),_});const c=()=>l,u=h=>{const p=Is("view");Mn(()=>{const g=typeof h=="object"?h:{name:h};l.startView({...g,handlingStack:p}),At({feature:"start-view"})})},f=mM({init:h=>{const p=new Error().stack;Mn(()=>l.init(h,f,p))},setTrackingConsent:Le(h=>{r.update(h),At({feature:"set-tracking-consent",tracking_consent:h})}),setViewName:Le(h=>{l.setViewName(h),At({feature:"set-view-name"})}),setViewContext:Le(h=>{l.setViewContext(h),At({feature:"set-view-context"})}),setViewContextProperty:Le((h,p)=>{l.setViewContextProperty(h,p),At({feature:"set-view-context-property"})}),getViewContext:Le(()=>(At({feature:"set-view-context-property"}),l.getViewContext())),getInternalContext:Le(h=>l.getInternalContext(h)),getInitConfiguration:Le(()=>lv(l.initConfiguration)),addAction:(h,p)=>{const g=Is("action");Mn(()=>{l.addAction({name:Ne(h),context:Ne(p),startClocks:qe(),type:fv.CUSTOM,handlingStack:g}),At({feature:"add-action"})})},startAction:Le((h,p)=>{l.initConfiguration&&!sr(pn.START_STOP_ACTION)||l.startAction(Ne(h),{type:Ne(p&&p.type),context:Ne(p&&p.context),actionKey:p&&p.actionKey})}),stopAction:Le((h,p)=>{l.initConfiguration&&!sr(pn.START_STOP_ACTION)||l.stopAction(Ne(h),{type:Ne(p&&p.type),context:Ne(p&&p.context),actionKey:p&&p.actionKey})}),startResource:Le((h,p)=>{l.initConfiguration&&!sr(pn.START_STOP_RESOURCE)||l.startResource(Ne(h),{type:Ne(p&&p.type),method:Ne(p&&p.method),context:Ne(p&&p.context),resourceKey:p&&p.resourceKey})}),stopResource:Le((h,p)=>{l.initConfiguration&&!sr(pn.START_STOP_RESOURCE)||l.stopResource(Ne(h),{type:Ne(p&&p.type),statusCode:p&&p.statusCode,size:p&&p.size,context:Ne(p&&p.context),resourceKey:p&&p.resourceKey})}),addError:(h,p)=>{const g=Is("error");Mn(()=>{l.addError({error:h,handlingStack:g,context:Ne(p),startClocks:qe()}),At({feature:"add-error"})})},addTiming:Le((h,p)=>{l.addTiming(Ne(h),p)}),setViewLoadingTime:Le(()=>{const h=bt();l.setLoadingTime(h),At({feature:"addViewLoadingTime"})}),setGlobalContext:tn(c,Ft.globalContext,nn.setContext,"set-global-context"),getGlobalContext:tn(c,Ft.globalContext,nn.getContext,"get-global-context"),setGlobalContextProperty:tn(c,Ft.globalContext,nn.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:tn(c,Ft.globalContext,nn.removeContextProperty,"remove-global-context-property"),clearGlobalContext:tn(c,Ft.globalContext,nn.clearContext,"clear-global-context"),setUser:tn(c,Ft.userContext,nn.setContext,"set-user"),getUser:tn(c,Ft.userContext,nn.getContext,"get-user"),setUserProperty:tn(c,Ft.userContext,nn.setContextProperty,"set-user-property"),removeUserProperty:tn(c,Ft.userContext,nn.removeContextProperty,"remove-user-property"),clearUser:tn(c,Ft.userContext,nn.clearContext,"clear-user"),setAccount:tn(c,Ft.accountContext,nn.setContext,"set-account"),getAccount:tn(c,Ft.accountContext,nn.getContext,"get-account"),setAccountProperty:tn(c,Ft.accountContext,nn.setContextProperty,"set-account-property"),removeAccountProperty:tn(c,Ft.accountContext,nn.removeContextProperty,"remove-account-property"),clearAccount:tn(c,Ft.accountContext,nn.clearContext,"clear-account"),startView:u,stopSession:Le(()=>{l.stopSession(),At({feature:"stop-session"})}),addFeatureFlagEvaluation:Le((h,p)=>{l.addFeatureFlagEvaluation(Ne(h),Ne(p)),At({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:Le(()=>e.getSessionReplayLink()),startSessionReplayRecording:Le(h=>{e.start(h),At({feature:"start-session-replay-recording",force:h&&h.force})}),stopSessionReplayRecording:Le(()=>e.stop()),addDurationVital:(h,p)=>{const g=Is("vital");Mn(()=>{At({feature:"add-duration-vital"}),l.addDurationVital({id:It(),name:Ne(h),type:Xi.DURATION,startClocks:P1(p.startTime),duration:p.duration,context:Ne(p&&p.context),description:Ne(p&&p.description),handlingStack:g})})},startDurationVital:(h,p)=>{const g=Is("vital");return Mn(()=>(At({feature:"start-duration-vital"}),l.startDurationVital(Ne(h),{context:Ne(p&&p.context),description:Ne(p&&p.description),handlingStack:g})))},stopDurationVital:Le((h,p)=>{At({feature:"stop-duration-vital"}),l.stopDurationVital(typeof h=="string"?Ne(h):h,{context:Ne(p&&p.context),description:Ne(p&&p.description)})}),startFeatureOperation:(h,p)=>{const g=Is("vital");Mn(()=>{At({feature:"add-operation-step-vital",action_type:"start"}),l.addOperationStepVital(h,"start",{...p,handlingStack:g})})},succeedFeatureOperation:Le((h,p)=>{At({feature:"add-operation-step-vital",action_type:"succeed"}),l.addOperationStepVital(h,"end",p)}),failFeatureOperation:Le((h,p,g)=>{At({feature:"add-operation-step-vital",action_type:"fail"}),l.addOperationStepVital(h,"end",g,p)})});return f}function OW(e,t){return{init:n=>{yR("DD_RUM",n)},initConfiguration:e.initConfiguration,...t}}function DW(e,{session:t,viewContext:n,errorType:r}){const s=t?t.id:"no-session-id",o=[];r!==void 0&&o.push(`error-type=${r}`),n&&(o.push(`seed=${n.id}`),o.push(`from=${n.startClocks.timeStamp}`));const l=MW(e),c=`/rum/replay/sessions/${s}`;return`${l}${c}?${o.join("&")}`}function MW(e){const t=e.site,n=e.subdomain||BW(e);return`https://${n?`${n}.`:""}${t}`}function BW(e){switch(e.site){case _o:case E5:return"app";case aR:return"dd";default:return}}const GW=1e3;let Bn;function ere(e){return yh(e).segments_count}function tre(e){yh(e).segments_count+=1}function nre(e){yh(e).records_count+=1}function rre(e,t){yh(e).segments_total_raw_size+=t}function VW(e){return Bn?.get(e)}function yh(e){Bn||(Bn=new Map);let t;return Bn.has(e)?t=Bn.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},Bn.set(e,t),Bn.size>GW&&UW()),t}function UW(){if(!Bn)return;const e=Bn.keys().next().value;e&&Bn.delete(e)}function PT(e,t,n){let r=0,s=[],o,l=!0,c=0;const u=[],{stop:f}=lt(e,t,"message",({data:g})=>{if(g.type!=="wrote"||g.streamId!==n)return;const b=u[0];b&&(b.id===g.id?(u.shift(),r+=g.additionalBytesCount,s.push(g.result),o=g.trailer,b.writeCallback?b.writeCallback(g.result.byteLength):b.finishCallback&&b.finishCallback()):b.id{delete b.writeCallback}),u[u.length-1].finishCallback=()=>g(h())):g(h())},finishSync(){p();const g=u.map(b=>b.data).join("");return u.length=0,{...h(),pendingData:g}},estimateEncodedBytesCount(g){return g.length/8},stop(){f()}}}function Sv({configuredUrl:e,error:t,source:n,scriptType:r}){if(Ie.error(`${n} failed to start: an error occurred while initializing the ${r}:`,t),t instanceof Event||t instanceof Error&&WW(t.message)){let s;e?s=`Please make sure the ${r} URL ${e} is correct and CSP is correctly configured.`:s="Please make sure CSP is correctly configured.",Ie.error(`${s} See documentation at ${qf}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else r==="worker"&&dh(t)}function WW(e){return e.includes("Content Security Policy")||e.includes("requires 'TrustedScriptURL'")}const PW=30*Kt;function jW(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),T=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s>>8^r[255&(t^e[s])];return-1^t},O={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=j,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=O[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?M(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=T(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&is){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t||!t.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){D||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=T(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindexa&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&rt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t||!t.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(O[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"6.32.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,h=0;for(r=0;r>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let gt={status:0};function jT(e,t,n){switch(gt.status===0&&$W(e,t),gt.status){case 1:return gt.initializationFailureCallbacks.push(n),gt.worker;case 3:return gt.worker}}function jE(){return gt.status}function $W(e,t){try{const n=jW(e),{stop:r}=lt(e,n,"error",l=>{fg(e,t,l)}),{stop:s}=lt(e,n,"message",({data:l})=>{l.type==="errored"?fg(e,t,l.error,l.streamId):l.type==="initialized"&&ZW(l.version)});n.postMessage({action:"init"}),Zt(()=>YW(t),PW),gt={status:1,worker:n,stop:()=>{r(),s()},initializationFailureCallbacks:[]}}catch(n){fg(e,t,n)}}function YW(e){gt.status===1&&(Ie.error(`${e} failed to start: a timeout occurred while initializing the Worker`),gt.initializationFailureCallbacks.forEach(t=>t()),gt={status:2})}function ZW(e){gt.status===1&&(gt={status:3,worker:gt.worker,stop:gt.stop,version:e})}function fg(e,t,n,r){gt.status===1||gt.status===0?(Sv({configuredUrl:e.workerUrl,error:n,source:t,scriptType:"worker"}),gt.status===1&>.initializationFailureCallbacks.forEach(s=>s()),gt={status:2}):dh(n,{worker_version:gt.status===3&>.version,stream_id:r})}function $T(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function XW(e,t,n,r){const s=t.findTrackedSession(),o=zW(s,r),l=n.findView();return DW(e,{viewContext:l,errorType:o,session:s})}function zW(e,t){if(!$T())return"browser-not-supported";if(!e)return"rum-not-tracked";if(e.sessionReplay===0)return"incorrect-session-plan";if(!t)return"replay-not-started"}function HW(e,t){if(!e.metricsEnabled)return{stop:Ze};let n,r,s;const{unsubscribe:o}=t.subscribe(l=>{switch(l.type){case"start":n={forced:l.forced,timestamp:bt()},r=void 0,s=void 0;break;case"document-ready":n&&(r=He(n.timestamp,bt()));break;case"recorder-settled":n&&(s=He(n.timestamp,bt()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":o(),n&&fh("Recorder init metrics",{metrics:KW(n.forced,s,He(n.timestamp,bt()),l.type,r)});break}});return{stop:o}}function KW(e,t,n,r,s){return{forced:e,loadRecorderModuleDuration:t,recorderInitDuration:n,result:r,waitForDocReadyDuration:s}}const JW="modulepreload",QW=function(e){return"/design/"+e},$E={},Dt=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(f){return Promise.all(f.map(h=>Promise.resolve(h).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");s=u(n.map(f=>{if(f=QW(f),f in $E)return;$E[f]=!0;const h=f.endsWith(".css"),p=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":JW,h||(g.as="script"),g.crossOrigin="",g.href=f,c&&g.setAttribute("nonce",c),document.head.appendChild(g),h)return new Promise((b,w)=>{g.addEventListener("load",b),g.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return s.then(l=>{for(const c of l||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})};async function qW(){try{return await eP()}catch(e){Sv({error:e,source:"Recorder",scriptType:"module"})}}async function eP(){return(await Dt(()=>import("./startRecording-Dn7zHoZ5.js"),[])).startRecording}function tP(e,t,n,r,s,o){let l=0,c;t.subscribe(9,()=>{(l===2||l===3)&&(p(),l=1)}),t.subscribe(10,()=>{l===1&&h()});const u=new Ue;HW(o,u);const f=async g=>{u.notify({type:"start",forced:g});const[b]=await Promise.all([YE(u,{type:"recorder-settled"},qW()),YE(u,{type:"document-ready"},bB(e,"interactive"))]);if(l!==2){u.notify({type:"aborted"});return}if(!b){l=0,u.notify({type:"recorder-load-failed"});return}const w=s();if(!w){l=0,u.notify({type:"deflate-encoder-load-failed"});return}({stop:c}=b(t,e,n,r,w,o)),l=3,u.notify({type:"succeeded"})};function h(g){const b=n.findTrackedSession();if(nP(b,g)){l=1;return}if(rP(l))return;l=2;const w=sP(b,g)||!1;f(w).catch(Uo),w&&n.setForcedReplay()}function p(){l===3&&c?.(),l=0}return{start:h,stop:p,getSessionReplayLink(){return XW(e,n,r,l!==0)},isRecording:()=>l===3}}function nP(e,t){return!e||e.sessionReplay===0&&(!t||!t.force)}function rP(e){return e===2||e===3}function sP(e,t){return t&&t.force&&e.sessionReplay===0}async function YE(e,t,n){try{return await n}finally{e.notify(t)}}function oP(){let e=0;return{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:Ze},shouldStartImmediately(t){return e===1||e===0&&!t.startSessionReplayRecordingManually}}}function iP(){if(ia()&&!FR("records")||!$T())return{start:Ze,stop:Ze,getReplayStats:()=>{},onRumStart:Ze,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:e,shouldStartImmediately:t}=oP();return{start:r=>e.start(r),stop:()=>e.stop(),getSessionReplayLink:()=>e.getSessionReplayLink(),onRumStart:n,isRecording:()=>jE()===3&&e.isRecording(),getReplayStats:r=>jE()===3?VW(r):void 0};function n(r,s,o,l,c,u){let f;function h(){return f||(c??(c=jT(s,"Datadog Session Replay",()=>e.stop())),c&&(f=PT(s,c,1))),f}e=tP(s,r,o,l,h,u),t(s)&&e.start()}}function aP(){return Ht().Profiler!==void 0}function lP(e){let t={status:"starting"};return e.register(0,({eventType:n})=>n!==Te.VIEW&&n!==Te.LONG_TASK&&n!==Te.ACTION&&n!==Te.VITAL?on:{type:n,_dd:{profiling:t}}),{get:()=>t,set:n=>{t=n}}}async function cP(){try{return await uP()}catch(e){Sv({error:e,source:"Profiler",scriptType:"module"})}}async function uP(){return(await Dt(()=>import("./profiler-mlJ0VZkv.js"),[])).createRumProfiler}function dP(){let e;function t(n,r,s,o,l,c){const u=o.findTrackedSession();if(!u||!sT(u.id,s.profilingSampleRate))return;const f=lP(r);if(!aP()){f.set({status:"error",error_reason:"not-supported-by-browser"});return}cP().then(h=>{if(!h){f.set({status:"error",error_reason:"failed-to-lazy-load"});return}e=h(s,n,o,f,c,l,void 0),e.start()}).catch(Uo)}return{onRumStart:t,stop:()=>{e?.stop()}}}const fP=iP(),hP=dP(),kr=FW(fP,hP,{startDeflateWorker:jT,createDeflateEncoder:PT,sdkName:"rum"});gM(Ht(),"DD_RUM",kr);const pP=new Set(["limit","offset","page","sort","tab","mode","step"]);function Ed(e){try{const t=new URL(e),n=new URLSearchParams;for(const[r,s]of t.searchParams)pP.has(r)&&n.append(r,s);return t.search=n.toString(),t.hash="",t.toString()}catch{const t=e.search(/[?#]/);return t===-1?e:e.slice(0,t)}}const mP=["ResizeObserver loop completed with undelivered notifications.","ResizeObserver loop limit exceeded","Invalid call to runtime.sendMessage(). Tab not found.","lastActiveOrg changed mid-session; reloading","auth proxy redirected; reloading"],gP=/(?:chrome|moz|safari-web|ms-browser)-extension:/;function yP(e){return e?!!(e.message&&mP.some(t=>e.message.includes(t))||e.stack&&gP.test(e.stack)||e.source==="report"):!1}const ZE=200;function bP(e){return e&&e.length>ZE?e.slice(0,ZE)+"…[truncated]":e}const XE=20,zE=2e3;function vP(e){if(!e)return e;const t=e.split(` `);let n=t.length>XE?t.slice(0,XE).join(` `)+` …[truncated]`:e;return n.length>zE&&(n=n.slice(0,zE)+"…[truncated]"),n}const wP="anthropic-consent-preferences";function hg(){if(typeof document>"u")return!1;for(const e of document.cookie.split(";")){const[t,n]=e.split("=");if(t.trim()===wP)try{return JSON.parse(decodeURIComponent(n??"")).analytics===!0}catch{return!1}}return!1}function _P(e){if(e.type==="error"&&e.error){if(yP(e.error))return!1;e.error.message=bP(e.error.message),e.error.stack=vP(e.error.stack)}return e.view&&(e.view.url=Ed(e.view.url),e.view.referrer&&(e.view.referrer=Ed(e.view.referrer))),e.resource&&(e.resource.url=Ed(e.resource.url)),e.error?.resource&&(e.error.resource.url=Ed(e.error.resource.url)),!0}{kr.init({applicationId:"0bd60fc3-f3d9-4cba-a7aa-ffa882939bc7",clientToken:"pub2a0ae4ec45498df9b080f0680384403f",site:"us5.datadoghq.com",service:"omelette-spa",env:"production",version:"12c63a7efedc5557504ed9f9f5d8d7f6e49263d7",sessionSampleRate:100,sessionReplaySampleRate:0,defaultPrivacyLevel:"mask",trackUserInteractions:!1,enablePrivacyForActionName:!0,trackResources:!0,trackLongTasks:!0,trackingConsent:hg()?"granted":"not-granted",allowedTracingUrls:[t=>t.startsWith(window.location.origin+"/design/")],beforeSend:_P});let e=hg();document.addEventListener("visibilitychange",()=>{if(document.visibilityState!=="visible")return;const t=hg();t!==e&&(e=t,t?SP():EP())})}function SP(){kr.setTrackingConsent("granted")}function EP(){kr.setTrackingConsent("not-granted")}var U=tv();const Sr=pD(U),kP=hD({__proto__:null,default:Sr},[U]);var kd={},pg={exports:{}},hn={},mg={exports:{}},gg={};var HE;function AP(){return HE||(HE=1,(function(e){function t(Y,re){var z=Y.length;Y.push(re);e:for(;0>>1,G=Y[L];if(0>>1;L<$;){var q=2*(L+1)-1,ue=Y[q],be=q+1,fe=Y[be];if(0>s(ue,z))bes(fe,ue)?(Y[L]=fe,Y[be]=z,L=be):(Y[L]=ue,Y[q]=z,L=q);else if(bes(fe,z))Y[L]=fe,Y[be]=z,L=be;else break e}}return re}function s(Y,re){var z=Y.sortIndex-re.sortIndex;return z!==0?z:Y.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var u=[],f=[],h=1,p=null,g=3,b=!1,w=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(Y){for(var re=n(f);re!==null;){if(re.callback===null)r(f);else if(re.startTime<=Y)r(f),re.sortIndex=re.expirationTime,t(u,re);else break;re=n(f)}}function C(Y){if(S=!1,x(Y),!w)if(n(u)!==null)w=!0,ye(O);else{var re=n(f);re!==null&&Ee(C,re.startTime-Y)}}function O(Y,re){w=!1,S&&(S=!1,E(W),W=-1),b=!0;var z=g;try{for(x(re),p=n(u);p!==null&&(!(p.expirationTime>re)||Y&&!oe());){var L=p.callback;if(typeof L=="function"){p.callback=null,g=p.priorityLevel;var G=L(p.expirationTime<=re);re=e.unstable_now(),typeof G=="function"?p.callback=G:p===n(u)&&r(u),x(re)}else r(u);p=n(u)}if(p!==null)var $=!0;else{var q=n(f);q!==null&&Ee(C,q.startTime-re),$=!1}return $}finally{p=null,g=z,b=!1}}var T=!1,I=null,W=-1,D=5,J=-1;function oe(){return!(e.unstable_now()-JY||125L?(Y.sortIndex=z,t(f,Y),n(u)===null&&Y===n(f)&&(S?(E(W),W=-1):S=!0,Ee(C,z-L))):(Y.sortIndex=G,t(u,Y),w||b||(w=!0,ye(O))),Y},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(Y){var re=g;return function(){var z=g;g=re;try{return Y.apply(this,arguments)}finally{g=z}}}})(gg)),gg}var KE;function xP(){return KE||(KE=1,mg.exports=AP()),mg.exports}var JE;function RP(){if(JE)return hn;JE=1;var e=tv(),t=xP();function n(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,d=1;d"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(i){return u.call(p,i)?!0:u.call(h,i)?!1:f.test(i)?p[i]=!0:(h[i]=!0,!1)}function b(i,a,d,m){if(d!==null&&d.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return m?!1:d!==null?!d.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function w(i,a,d,m){if(a===null||typeof a>"u"||b(i,a,d,m))return!0;if(m)return!1;if(d!==null)switch(d.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function S(i,a,d,m,y,v,k){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=m,this.attributeNamespace=y,this.mustUseProperty=d,this.propertyName=i,this.type=a,this.sanitizeURL=v,this.removeEmptyString=k}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){_[i]=new S(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0];_[a]=new S(a,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){_[i]=new S(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){_[i]=new S(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){_[i]=new S(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){_[i]=new S(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){_[i]=new S(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){_[i]=new S(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){_[i]=new S(i,5,!1,i.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function A(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var a=i.replace(E,A);_[a]=new S(a,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var a=i.replace(E,A);_[a]=new S(a,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace(E,A);_[a]=new S(a,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){_[i]=new S(i,1,!1,i.toLowerCase(),null,!1,!1)}),_.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){_[i]=new S(i,1,!1,i.toLowerCase(),null,!0,!0)});function x(i,a,d,m){var y=_.hasOwnProperty(a)?_[a]:null;(y!==null?y.type!==0:m||!(2R||y[k]!==v[R]){var N=` `+y[k].replace(" at new "," at ");return i.displayName&&N.includes("")&&(N=N.replace("",i.displayName)),N}while(1<=k&&0<=R);break}}}finally{$=!1,Error.prepareStackTrace=d}return(i=i?i.displayName||i.name:"")?G(i):""}function ue(i){switch(i.tag){case 5:return G(i.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return i=q(i.type,!1),i;case 11:return i=q(i.type.render,!1),i;case 1:return i=q(i.type,!0),i;default:return""}}function be(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case I:return"Fragment";case T:return"Portal";case D:return"Profiler";case W:return"StrictMode";case Q:return"Suspense";case ae:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case oe:return(i.displayName||"Context")+".Consumer";case J:return(i._context.displayName||"Context")+".Provider";case j:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Re:return a=i.displayName||null,a!==null?a:be(i.type)||"Memo";case ye:a=i._payload,i=i._init;try{return be(i(a))}catch{}}return null}function fe(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return be(a);case 8:return a===W?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function ie(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ke(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function De(i){var a=ke(i)?"checked":"value",d=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),m=""+i[a];if(!i.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var y=d.get,v=d.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return y.call(this)},set:function(k){m=""+k,v.call(this,k)}}),Object.defineProperty(i,a,{enumerable:d.enumerable}),{getValue:function(){return m},setValue:function(k){m=""+k},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function st(i){i._valueTracker||(i._valueTracker=De(i))}function ct(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var d=a.getValue(),m="";return i&&(m=ke(i)?i.checked?"true":"false":i.value),i=m,i!==d?(a.setValue(i),!0):!1}function Xe(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Rn(i,a){var d=a.checked;return z({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:d??i._wrapperState.initialChecked})}function Jt(i,a){var d=a.defaultValue==null?"":a.defaultValue,m=a.checked!=null?a.checked:a.defaultChecked;d=ie(a.value!=null?a.value:d),i._wrapperState={initialChecked:m,initialValue:d,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function ou(i,a){a=a.checked,a!=null&&x(i,"checked",a,!1)}function Hs(i,a){ou(i,a);var d=ie(a.value),m=a.type;if(d!=null)m==="number"?(d===0&&i.value===""||i.value!=d)&&(i.value=""+d):i.value!==""+d&&(i.value=""+d);else if(m==="submit"||m==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?Tn(i,a.type,d):a.hasOwnProperty("defaultValue")&&Tn(i,a.type,ie(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function Xo(i,a,d){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var m=a.type;if(!(m!=="submit"&&m!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,d||a===i.value||(i.value=a),i.defaultValue=a}d=i.name,d!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,d!==""&&(i.name=d)}function Tn(i,a,d){(a!=="number"||Xe(i.ownerDocument)!==i)&&(d==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+d&&(i.defaultValue=""+d))}var Yn=Array.isArray;function xr(i,a,d,m){if(i=i.options,a){a={};for(var y=0;y"+a.valueOf().toString()+"",a=Qt.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function Rr(i,a){if(a){var d=i.firstChild;if(d&&d===i.lastChild&&d.nodeType===3){d.nodeValue=a;return}}i.textContent=a}var Tr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iu=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(i){iu.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),Tr[a]=Tr[i]})});function Ho(i,a,d){return a==null||typeof a=="boolean"||a===""?"":d||typeof a!="number"||a===0||Tr.hasOwnProperty(i)&&Tr[i]?(""+a).trim():a+"px"}function za(i,a){i=i.style;for(var d in a)if(a.hasOwnProperty(d)){var m=d.indexOf("--")===0,y=Ho(d,a[d],m);d==="float"&&(d="cssFloat"),m?i.setProperty(d,y):i[d]=y}}var au=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ko(i,a){if(a){if(au[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function Ks(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jo=null;function ve(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Me=null,Be=null,tt=null;function Mt(i){if(i=gl(i)){if(typeof Me!="function")throw Error(n(280));var a=i.stateNode;a&&(a=Nu(a),Me(i.stateNode,i.type,a))}}function Zn(i){Be?tt?tt.push(i):tt=[i]:Be=i}function Qo(){if(Be){var i=Be,a=tt;if(tt=Be=null,Mt(i),a)for(i=0;i>>=0,i===0?32:31-(IF(i)/CF|0)|0}var hu=64,pu=4194304;function Qa(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function mu(i,a){var d=i.pendingLanes;if(d===0)return 0;var m=0,y=i.suspendedLanes,v=i.pingedLanes,k=d&268435455;if(k!==0){var R=k&~y;R!==0?m=Qa(R):(v&=k,v!==0&&(m=Qa(v)))}else k=d&~y,k!==0?m=Qa(k):v!==0&&(m=Qa(v));if(m===0)return 0;if(a!==0&&a!==m&&(a&y)===0&&(y=m&-m,v=a&-a,y>=v||y===16&&(v&4194240)!==0))return a;if((m&4)!==0&&(m|=d&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=m;0d;d++)a.push(i);return a}function qa(i,a,d){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-Xn(a),i[a]=d}function OF(i,a){var d=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var m=i.eventTimes;for(i=i.expirationTimes;0=al),$0=" ",Y0=!1;function Z0(i,a){switch(i){case"keyup":return lO.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function X0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ti=!1;function uO(i,a){switch(i){case"compositionend":return X0(a);case"keypress":return a.which!==32?null:(Y0=!0,$0);case"textInput":return i=a.data,i===$0&&Y0?null:i;default:return null}}function dO(i,a){if(ti)return i==="compositionend"||!Ap&&Z0(i,a)?(i=G0(),wu=vp=ds=null,ti=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:d,offset:a-i};i=m}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=e_(d)}}function n_(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?n_(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function r_(){for(var i=window,a=Xe();a instanceof i.HTMLIFrameElement;){try{var d=typeof a.contentWindow.location.href=="string"}catch{d=!1}if(d)i=a.contentWindow;else break;a=Xe(i.document)}return a}function Tp(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function wO(i){var a=r_(),d=i.focusedElem,m=i.selectionRange;if(a!==d&&d&&d.ownerDocument&&n_(d.ownerDocument.documentElement,d)){if(m!==null&&Tp(d)){if(a=m.start,i=m.end,i===void 0&&(i=a),"selectionStart"in d)d.selectionStart=a,d.selectionEnd=Math.min(i,d.value.length);else if(i=(a=d.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var y=d.textContent.length,v=Math.min(m.start,y);m=m.end===void 0?v:Math.min(m.end,y),!i.extend&&v>m&&(y=m,m=v,v=y),y=t_(d,v);var k=t_(d,m);y&&k&&(i.rangeCount!==1||i.anchorNode!==y.node||i.anchorOffset!==y.offset||i.focusNode!==k.node||i.focusOffset!==k.offset)&&(a=a.createRange(),a.setStart(y.node,y.offset),i.removeAllRanges(),v>m?(i.addRange(a),i.extend(k.node,k.offset)):(a.setEnd(k.node,k.offset),i.addRange(a)))}}for(a=[],i=d;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d=document.documentMode,ni=null,Ip=null,dl=null,Cp=!1;function s_(i,a,d){var m=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Cp||ni==null||ni!==Xe(m)||(m=ni,"selectionStart"in m&&Tp(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),dl&&ul(dl,m)||(dl=m,m=Tu(Ip,"onSelect"),0ai||(i.current=Pp[ai],Pp[ai]=null,ai--)}function ze(i,a){ai++,Pp[ai]=i.current,i.current=a}var ms={},Ut=ps(ms),ln=ps(!1),qs=ms;function li(i,a){var d=i.type.contextTypes;if(!d)return ms;var m=i.stateNode;if(m&&m.__reactInternalMemoizedUnmaskedChildContext===a)return m.__reactInternalMemoizedMaskedChildContext;var y={},v;for(v in d)y[v]=a[v];return m&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=y),y}function cn(i){return i=i.childContextTypes,i!=null}function Lu(){Je(ln),Je(Ut)}function v_(i,a,d){if(Ut.current!==ms)throw Error(n(168));ze(Ut,a),ze(ln,d)}function w_(i,a,d){var m=i.stateNode;if(a=a.childContextTypes,typeof m.getChildContext!="function")return d;m=m.getChildContext();for(var y in m)if(!(y in a))throw Error(n(108,fe(i)||"Unknown",y));return z({},d,m)}function Fu(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ms,qs=Ut.current,ze(Ut,i),ze(ln,ln.current),!0}function __(i,a,d){var m=i.stateNode;if(!m)throw Error(n(169));d?(i=w_(i,a,qs),m.__reactInternalMemoizedMergedChildContext=i,Je(ln),Je(Ut),ze(Ut,i)):Je(ln),ze(ln,d)}var Cr=null,Ou=!1,jp=!1;function S_(i){Cr===null?Cr=[i]:Cr.push(i)}function LO(i){Ou=!0,S_(i)}function gs(){if(!jp&&Cr!==null){jp=!0;var i=0,a=Ye;try{var d=Cr;for(Ye=1;i>=k,y-=k,Nr=1<<32-Xn(a)+y|d<Ae?(Lt=_e,_e=null):Lt=_e.sibling;var je=Z(B,_e,V[Ae],ne);if(je===null){_e===null&&(_e=Lt);break}i&&_e&&je.alternate===null&&a(B,_e),F=v(je,F,Ae),we===null?pe=je:we.sibling=je,we=je,_e=Lt}if(Ae===V.length)return d(B,_e),nt&&to(B,Ae),pe;if(_e===null){for(;AeAe?(Lt=_e,_e=null):Lt=_e.sibling;var As=Z(B,_e,je.value,ne);if(As===null){_e===null&&(_e=Lt);break}i&&_e&&As.alternate===null&&a(B,_e),F=v(As,F,Ae),we===null?pe=As:we.sibling=As,we=As,_e=Lt}if(je.done)return d(B,_e),nt&&to(B,Ae),pe;if(_e===null){for(;!je.done;Ae++,je=V.next())je=H(B,je.value,ne),je!==null&&(F=v(je,F,Ae),we===null?pe=je:we.sibling=je,we=je);return nt&&to(B,Ae),pe}for(_e=m(B,_e);!je.done;Ae++,je=V.next())je=le(_e,B,Ae,je.value,ne),je!==null&&(i&&je.alternate!==null&&_e.delete(je.key===null?Ae:je.key),F=v(je,F,Ae),we===null?pe=je:we.sibling=je,we=je);return i&&_e.forEach(function(fD){return a(B,fD)}),nt&&to(B,Ae),pe}function pt(B,F,V,ne){if(typeof V=="object"&&V!==null&&V.type===I&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case O:e:{for(var pe=V.key,we=F;we!==null;){if(we.key===pe){if(pe=V.type,pe===I){if(we.tag===7){d(B,we.sibling),F=y(we,V.props.children),F.return=B,B=F;break e}}else if(we.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===ye&&T_(pe)===we.type){d(B,we.sibling),F=y(we,V.props),F.ref=yl(B,we,V),F.return=B,B=F;break e}d(B,we);break}else a(B,we);we=we.sibling}V.type===I?(F=co(V.props.children,B.mode,ne,V.key),F.return=B,B=F):(ne=ld(V.type,V.key,V.props,null,B.mode,ne),ne.ref=yl(B,F,V),ne.return=B,B=ne)}return k(B);case T:e:{for(we=V.key;F!==null;){if(F.key===we)if(F.tag===4&&F.stateNode.containerInfo===V.containerInfo&&F.stateNode.implementation===V.implementation){d(B,F.sibling),F=y(F,V.children||[]),F.return=B,B=F;break e}else{d(B,F);break}else a(B,F);F=F.sibling}F=Vm(V,B.mode,ne),F.return=B,B=F}return k(B);case ye:return we=V._init,pt(B,F,we(V._payload),ne)}if(Yn(V))return de(B,F,V,ne);if(re(V))return he(B,F,V,ne);Gu(B,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,F!==null&&F.tag===6?(d(B,F.sibling),F=y(F,V),F.return=B,B=F):(d(B,F),F=Gm(V,B.mode,ne),F.return=B,B=F),k(B)):d(B,F)}return pt}var fi=I_(!0),C_=I_(!1),Vu=ps(null),Uu=null,hi=null,Hp=null;function Kp(){Hp=hi=Uu=null}function Jp(i){var a=Vu.current;Je(Vu),i._currentValue=a}function Qp(i,a,d){for(;i!==null;){var m=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,m!==null&&(m.childLanes|=a)):m!==null&&(m.childLanes&a)!==a&&(m.childLanes|=a),i===d)break;i=i.return}}function pi(i,a){Uu=i,Hp=hi=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(un=!0),i.firstContext=null)}function Nn(i){var a=i._currentValue;if(Hp!==i)if(i={context:i,memoizedValue:a,next:null},hi===null){if(Uu===null)throw Error(n(308));hi=i,Uu.dependencies={lanes:0,firstContext:i}}else hi=hi.next=i;return a}var no=null;function qp(i){no===null?no=[i]:no.push(i)}function N_(i,a,d,m){var y=a.interleaved;return y===null?(d.next=d,qp(a)):(d.next=y.next,y.next=d),a.interleaved=d,Fr(i,m)}function Fr(i,a){i.lanes|=a;var d=i.alternate;for(d!==null&&(d.lanes|=a),d=i,i=i.return;i!==null;)i.childLanes|=a,d=i.alternate,d!==null&&(d.childLanes|=a),d=i,i=i.return;return d.tag===3?d.stateNode:null}var ys=!1;function em(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function L_(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Or(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function bs(i,a,d){var m=i.updateQueue;if(m===null)return null;if(m=m.shared,(We&2)!==0){var y=m.pending;return y===null?a.next=a:(a.next=y.next,y.next=a),m.pending=a,Fr(i,d)}return y=m.interleaved,y===null?(a.next=a,qp(m)):(a.next=y.next,y.next=a),m.interleaved=a,Fr(i,d)}function Wu(i,a,d){if(a=a.updateQueue,a!==null&&(a=a.shared,(d&4194240)!==0)){var m=a.lanes;m&=i.pendingLanes,d|=m,a.lanes=d,pp(i,d)}}function F_(i,a){var d=i.updateQueue,m=i.alternate;if(m!==null&&(m=m.updateQueue,d===m)){var y=null,v=null;if(d=d.firstBaseUpdate,d!==null){do{var k={eventTime:d.eventTime,lane:d.lane,tag:d.tag,payload:d.payload,callback:d.callback,next:null};v===null?y=v=k:v=v.next=k,d=d.next}while(d!==null);v===null?y=v=a:v=v.next=a}else y=v=a;d={baseState:m.baseState,firstBaseUpdate:y,lastBaseUpdate:v,shared:m.shared,effects:m.effects},i.updateQueue=d;return}i=d.lastBaseUpdate,i===null?d.firstBaseUpdate=a:i.next=a,d.lastBaseUpdate=a}function Pu(i,a,d,m){var y=i.updateQueue;ys=!1;var v=y.firstBaseUpdate,k=y.lastBaseUpdate,R=y.shared.pending;if(R!==null){y.shared.pending=null;var N=R,P=N.next;N.next=null,k===null?v=P:k.next=P,k=N;var X=i.alternate;X!==null&&(X=X.updateQueue,R=X.lastBaseUpdate,R!==k&&(R===null?X.firstBaseUpdate=P:R.next=P,X.lastBaseUpdate=N))}if(v!==null){var H=y.baseState;k=0,X=P=N=null,R=v;do{var Z=R.lane,le=R.eventTime;if((m&Z)===Z){X!==null&&(X=X.next={eventTime:le,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var de=i,he=R;switch(Z=a,le=d,he.tag){case 1:if(de=he.payload,typeof de=="function"){H=de.call(le,H,Z);break e}H=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=he.payload,Z=typeof de=="function"?de.call(le,H,Z):de,Z==null)break e;H=z({},H,Z);break e;case 2:ys=!0}}R.callback!==null&&R.lane!==0&&(i.flags|=64,Z=y.effects,Z===null?y.effects=[R]:Z.push(R))}else le={eventTime:le,lane:Z,tag:R.tag,payload:R.payload,callback:R.callback,next:null},X===null?(P=X=le,N=H):X=X.next=le,k|=Z;if(R=R.next,R===null){if(R=y.shared.pending,R===null)break;Z=R,R=Z.next,Z.next=null,y.lastBaseUpdate=Z,y.shared.pending=null}}while(!0);if(X===null&&(N=H),y.baseState=N,y.firstBaseUpdate=P,y.lastBaseUpdate=X,a=y.shared.interleaved,a!==null){y=a;do k|=y.lane,y=y.next;while(y!==a)}else v===null&&(y.shared.lanes=0);oo|=k,i.lanes=k,i.memoizedState=H}}function O_(i,a,d){if(i=a.effects,a.effects=null,i!==null)for(a=0;ad?d:4,i(!0);var m=om.transition;om.transition={};try{i(!1),a()}finally{Ye=d,om.transition=m}}function q_(){return Ln().memoizedState}function MO(i,a,d){var m=Ss(i);if(d={lane:m,action:d,hasEagerState:!1,eagerState:null,next:null},eS(i))tS(a,d);else if(d=N_(i,a,d,m),d!==null){var y=en();qn(d,i,m,y),nS(d,a,m)}}function BO(i,a,d){var m=Ss(i),y={lane:m,action:d,hasEagerState:!1,eagerState:null,next:null};if(eS(i))tS(a,y);else{var v=i.alternate;if(i.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var k=a.lastRenderedState,R=v(k,d);if(y.hasEagerState=!0,y.eagerState=R,zn(R,k)){var N=a.interleaved;N===null?(y.next=y,qp(a)):(y.next=N.next,N.next=y),a.interleaved=y;return}}catch{}d=N_(i,a,y,m),d!==null&&(y=en(),qn(d,i,m,y),nS(d,a,m))}}function eS(i){var a=i.alternate;return i===it||a!==null&&a===it}function tS(i,a){_l=Yu=!0;var d=i.pending;d===null?a.next=a:(a.next=d.next,d.next=a),i.pending=a}function nS(i,a,d){if((d&4194240)!==0){var m=a.lanes;m&=i.pendingLanes,d|=m,a.lanes=d,pp(i,d)}}var zu={readContext:Nn,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useInsertionEffect:Wt,useLayoutEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useMutableSource:Wt,useSyncExternalStore:Wt,useId:Wt,unstable_isNewReconciler:!1},GO={readContext:Nn,useCallback:function(i,a){return pr().memoizedState=[i,a===void 0?null:a],i},useContext:Nn,useEffect:Y_,useImperativeHandle:function(i,a,d){return d=d!=null?d.concat([i]):null,Zu(4194308,4,z_.bind(null,a,i),d)},useLayoutEffect:function(i,a){return Zu(4194308,4,i,a)},useInsertionEffect:function(i,a){return Zu(4,2,i,a)},useMemo:function(i,a){var d=pr();return a=a===void 0?null:a,i=i(),d.memoizedState=[i,a],i},useReducer:function(i,a,d){var m=pr();return a=d!==void 0?d(a):a,m.memoizedState=m.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},m.queue=i,i=i.dispatch=MO.bind(null,it,i),[m.memoizedState,i]},useRef:function(i){var a=pr();return i={current:i},a.memoizedState=i},useState:j_,useDebugValue:fm,useDeferredValue:function(i){return pr().memoizedState=i},useTransition:function(){var i=j_(!1),a=i[0];return i=DO.bind(null,i[1]),pr().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,d){var m=it,y=pr();if(nt){if(d===void 0)throw Error(n(407));d=d()}else{if(d=a(),Nt===null)throw Error(n(349));(so&30)!==0||G_(m,a,d)}y.memoizedState=d;var v={value:d,getSnapshot:a};return y.queue=v,Y_(U_.bind(null,m,v,i),[i]),m.flags|=2048,kl(9,V_.bind(null,m,v,d,a),void 0,null),d},useId:function(){var i=pr(),a=Nt.identifierPrefix;if(nt){var d=Lr,m=Nr;d=(m&~(1<<32-Xn(m)-1)).toString(32)+d,a=":"+a+"R"+d,d=Sl++,0<\/script>",i=i.removeChild(i.firstChild)):typeof m.is=="string"?i=k.createElement(d,{is:m.is}):(i=k.createElement(d),d==="select"&&(k=i,m.multiple?k.multiple=!0:m.size&&(k.size=m.size))):i=k.createElementNS(i,d),i[fr]=a,i[ml]=m,SS(i,a,!1,!1),a.stateNode=i;e:{switch(k=Ks(d,m),d){case"dialog":Ke("cancel",i),Ke("close",i),y=m;break;case"iframe":case"object":case"embed":Ke("load",i),y=m;break;case"video":case"audio":for(y=0;yvi&&(a.flags|=128,m=!0,Al(v,!1),a.lanes=4194304)}else{if(!m)if(i=ju(k),i!==null){if(a.flags|=128,m=!0,d=i.updateQueue,d!==null&&(a.updateQueue=d,a.flags|=4),Al(v,!0),v.tail===null&&v.tailMode==="hidden"&&!k.alternate&&!nt)return Pt(a),null}else 2*ht()-v.renderingStartTime>vi&&d!==1073741824&&(a.flags|=128,m=!0,Al(v,!1),a.lanes=4194304);v.isBackwards?(k.sibling=a.child,a.child=k):(d=v.last,d!==null?d.sibling=k:a.child=k,v.last=k)}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=ht(),a.sibling=null,d=ot.current,ze(ot,m?d&1|2:d&1),a):(Pt(a),null);case 22:case 23:return Dm(),m=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==m&&(a.flags|=8192),m&&(a.mode&1)!==0?(_n&1073741824)!==0&&(Pt(a),a.subtreeFlags&6&&(a.flags|=8192)):Pt(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function ZO(i,a){switch(Yp(a),a.tag){case 1:return cn(a.type)&&Lu(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return mi(),Je(ln),Je(Ut),sm(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return nm(a),null;case 13:if(Je(ot),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));di()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return Je(ot),null;case 4:return mi(),null;case 10:return Jp(a.type._context),null;case 22:case 23:return Dm(),null;case 24:return null;default:return null}}var Qu=!1,jt=!1,XO=typeof WeakSet=="function"?WeakSet:Set,ce=null;function yi(i,a){var d=i.ref;if(d!==null)if(typeof d=="function")try{d(null)}catch(m){ut(i,a,m)}else d.current=null}function Em(i,a,d){try{d()}catch(m){ut(i,a,m)}}var AS=!1;function zO(i,a){if(Mp=bu,i=r_(),Tp(i)){if("selectionStart"in i)var d={start:i.selectionStart,end:i.selectionEnd};else e:{d=(d=i.ownerDocument)&&d.defaultView||window;var m=d.getSelection&&d.getSelection();if(m&&m.rangeCount!==0){d=m.anchorNode;var y=m.anchorOffset,v=m.focusNode;m=m.focusOffset;try{d.nodeType,v.nodeType}catch{d=null;break e}var k=0,R=-1,N=-1,P=0,X=0,H=i,Z=null;t:for(;;){for(var le;H!==d||y!==0&&H.nodeType!==3||(R=k+y),H!==v||m!==0&&H.nodeType!==3||(N=k+m),H.nodeType===3&&(k+=H.nodeValue.length),(le=H.firstChild)!==null;)Z=H,H=le;for(;;){if(H===i)break t;if(Z===d&&++P===y&&(R=k),Z===v&&++X===m&&(N=k),(le=H.nextSibling)!==null)break;H=Z,Z=H.parentNode}H=le}d=R===-1||N===-1?null:{start:R,end:N}}else d=null}d=d||{start:0,end:0}}else d=null;for(Bp={focusedElem:i,selectionRange:d},bu=!1,ce=a;ce!==null;)if(a=ce,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,ce=i;else for(;ce!==null;){a=ce;try{var de=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(de!==null){var he=de.memoizedProps,pt=de.memoizedState,B=a.stateNode,F=B.getSnapshotBeforeUpdate(a.elementType===a.type?he:Kn(a.type,he),pt);B.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var V=a.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ne){ut(a,a.return,ne)}if(i=a.sibling,i!==null){i.return=a.return,ce=i;break}ce=a.return}return de=AS,AS=!1,de}function xl(i,a,d){var m=a.updateQueue;if(m=m!==null?m.lastEffect:null,m!==null){var y=m=m.next;do{if((y.tag&i)===i){var v=y.destroy;y.destroy=void 0,v!==void 0&&Em(a,d,v)}y=y.next}while(y!==m)}}function qu(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var d=a=a.next;do{if((d.tag&i)===i){var m=d.create;d.destroy=m()}d=d.next}while(d!==a)}}function km(i){var a=i.ref;if(a!==null){var d=i.stateNode;i.tag,i=d,typeof a=="function"?a(i):a.current=i}}function xS(i){var a=i.alternate;a!==null&&(i.alternate=null,xS(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[fr],delete a[ml],delete a[Wp],delete a[CO],delete a[NO])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function RS(i){return i.tag===5||i.tag===3||i.tag===4}function TS(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||RS(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Am(i,a,d){var m=i.tag;if(m===5||m===6)i=i.stateNode,a?d.nodeType===8?d.parentNode.insertBefore(i,a):d.insertBefore(i,a):(d.nodeType===8?(a=d.parentNode,a.insertBefore(i,d)):(a=d,a.appendChild(i)),d=d._reactRootContainer,d!=null||a.onclick!==null||(a.onclick=Cu));else if(m!==4&&(i=i.child,i!==null))for(Am(i,a,d),i=i.sibling;i!==null;)Am(i,a,d),i=i.sibling}function xm(i,a,d){var m=i.tag;if(m===5||m===6)i=i.stateNode,a?d.insertBefore(i,a):d.appendChild(i);else if(m!==4&&(i=i.child,i!==null))for(xm(i,a,d),i=i.sibling;i!==null;)xm(i,a,d),i=i.sibling}var Bt=null,Jn=!1;function vs(i,a,d){for(d=d.child;d!==null;)IS(i,a,d),d=d.sibling}function IS(i,a,d){if(dr&&typeof dr.onCommitFiberUnmount=="function")try{dr.onCommitFiberUnmount(fu,d)}catch{}switch(d.tag){case 5:jt||yi(d,a);case 6:var m=Bt,y=Jn;Bt=null,vs(i,a,d),Bt=m,Jn=y,Bt!==null&&(Jn?(i=Bt,d=d.stateNode,i.nodeType===8?i.parentNode.removeChild(d):i.removeChild(d)):Bt.removeChild(d.stateNode));break;case 18:Bt!==null&&(Jn?(i=Bt,d=d.stateNode,i.nodeType===8?Up(i.parentNode,d):i.nodeType===1&&Up(i,d),sl(i)):Up(Bt,d.stateNode));break;case 4:m=Bt,y=Jn,Bt=d.stateNode.containerInfo,Jn=!0,vs(i,a,d),Bt=m,Jn=y;break;case 0:case 11:case 14:case 15:if(!jt&&(m=d.updateQueue,m!==null&&(m=m.lastEffect,m!==null))){y=m=m.next;do{var v=y,k=v.destroy;v=v.tag,k!==void 0&&((v&2)!==0||(v&4)!==0)&&Em(d,a,k),y=y.next}while(y!==m)}vs(i,a,d);break;case 1:if(!jt&&(yi(d,a),m=d.stateNode,typeof m.componentWillUnmount=="function"))try{m.props=d.memoizedProps,m.state=d.memoizedState,m.componentWillUnmount()}catch(R){ut(d,a,R)}vs(i,a,d);break;case 21:vs(i,a,d);break;case 22:d.mode&1?(jt=(m=jt)||d.memoizedState!==null,vs(i,a,d),jt=m):vs(i,a,d);break;default:vs(i,a,d)}}function CS(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var d=i.stateNode;d===null&&(d=i.stateNode=new XO),a.forEach(function(m){var y=rD.bind(null,i,m);d.has(m)||(d.add(m),m.then(y,y))})}}function Qn(i,a){var d=a.deletions;if(d!==null)for(var m=0;my&&(y=k),m&=~v}if(m=y,m=ht()-m,m=(120>m?120:480>m?480:1080>m?1080:1920>m?1920:3e3>m?3e3:4320>m?4320:1960*KO(m/1960))-m,10i?16:i,_s===null)var m=!1;else{if(i=_s,_s=null,sd=0,(We&6)!==0)throw Error(n(331));var y=We;for(We|=4,ce=i.current;ce!==null;){var v=ce,k=v.child;if((ce.flags&16)!==0){var R=v.deletions;if(R!==null){for(var N=0;Nht()-Im?ao(i,0):Tm|=d),fn(i,a)}function jS(i,a){a===0&&((i.mode&1)===0?a=1:(a=pu,pu<<=1,(pu&130023424)===0&&(pu=4194304)));var d=en();i=Fr(i,a),i!==null&&(qa(i,a,d),fn(i,d))}function nD(i){var a=i.memoizedState,d=0;a!==null&&(d=a.retryLane),jS(i,d)}function rD(i,a){var d=0;switch(i.tag){case 13:var m=i.stateNode,y=i.memoizedState;y!==null&&(d=y.retryLane);break;case 19:m=i.stateNode;break;default:throw Error(n(314))}m!==null&&m.delete(a),jS(i,d)}var $S;$S=function(i,a,d){if(i!==null)if(i.memoizedProps!==a.pendingProps||ln.current)un=!0;else{if((i.lanes&d)===0&&(a.flags&128)===0)return un=!1,$O(i,a,d);un=(i.flags&131072)!==0}else un=!1,nt&&(a.flags&1048576)!==0&&E_(a,Mu,a.index);switch(a.lanes=0,a.tag){case 2:var m=a.type;Ju(i,a),i=a.pendingProps;var y=li(a,Ut.current);pi(a,d),y=am(null,a,m,i,y,d);var v=lm();return a.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,cn(m)?(v=!0,Fu(a)):v=!1,a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,em(a),y.updater=Hu,a.stateNode=y,y._reactInternals=a,pm(a,m,i,d),a=ym(null,a,m,!0,v,d)):(a.tag=0,nt&&v&&$p(a),qt(null,a,y,d),a=a.child),a;case 16:m=a.elementType;e:{switch(Ju(i,a),i=a.pendingProps,y=m._init,m=y(m._payload),a.type=m,y=a.tag=oD(m),i=Kn(m,i),y){case 0:a=gm(null,a,m,i,d);break e;case 1:a=gS(null,a,m,i,d);break e;case 11:a=dS(null,a,m,i,d);break e;case 14:a=fS(null,a,m,Kn(m.type,i),d);break e}throw Error(n(306,m,""))}return a;case 0:return m=a.type,y=a.pendingProps,y=a.elementType===m?y:Kn(m,y),gm(i,a,m,y,d);case 1:return m=a.type,y=a.pendingProps,y=a.elementType===m?y:Kn(m,y),gS(i,a,m,y,d);case 3:e:{if(yS(a),i===null)throw Error(n(387));m=a.pendingProps,v=a.memoizedState,y=v.element,L_(i,a),Pu(a,m,null,d);var k=a.memoizedState;if(m=k.element,v.isDehydrated)if(v={element:m,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){y=gi(Error(n(423)),a),a=bS(i,a,m,d,y);break e}else if(m!==y){y=gi(Error(n(424)),a),a=bS(i,a,m,d,y);break e}else for(wn=hs(a.stateNode.containerInfo.firstChild),vn=a,nt=!0,Hn=null,d=C_(a,null,m,d),a.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(di(),m===y){a=Dr(i,a,d);break e}qt(i,a,m,d)}a=a.child}return a;case 5:return D_(a),i===null&&Xp(a),m=a.type,y=a.pendingProps,v=i!==null?i.memoizedProps:null,k=y.children,Gp(m,y)?k=null:v!==null&&Gp(m,v)&&(a.flags|=32),mS(i,a),qt(i,a,k,d),a.child;case 6:return i===null&&Xp(a),null;case 13:return vS(i,a,d);case 4:return tm(a,a.stateNode.containerInfo),m=a.pendingProps,i===null?a.child=fi(a,null,m,d):qt(i,a,m,d),a.child;case 11:return m=a.type,y=a.pendingProps,y=a.elementType===m?y:Kn(m,y),dS(i,a,m,y,d);case 7:return qt(i,a,a.pendingProps,d),a.child;case 8:return qt(i,a,a.pendingProps.children,d),a.child;case 12:return qt(i,a,a.pendingProps.children,d),a.child;case 10:e:{if(m=a.type._context,y=a.pendingProps,v=a.memoizedProps,k=y.value,ze(Vu,m._currentValue),m._currentValue=k,v!==null)if(zn(v.value,k)){if(v.children===y.children&&!ln.current){a=Dr(i,a,d);break e}}else for(v=a.child,v!==null&&(v.return=a);v!==null;){var R=v.dependencies;if(R!==null){k=v.child;for(var N=R.firstContext;N!==null;){if(N.context===m){if(v.tag===1){N=Or(-1,d&-d),N.tag=2;var P=v.updateQueue;if(P!==null){P=P.shared;var X=P.pending;X===null?N.next=N:(N.next=X.next,X.next=N),P.pending=N}}v.lanes|=d,N=v.alternate,N!==null&&(N.lanes|=d),Qp(v.return,d,a),R.lanes|=d;break}N=N.next}}else if(v.tag===10)k=v.type===a.type?null:v.child;else if(v.tag===18){if(k=v.return,k===null)throw Error(n(341));k.lanes|=d,R=k.alternate,R!==null&&(R.lanes|=d),Qp(k,d,a),k=v.sibling}else k=v.child;if(k!==null)k.return=v;else for(k=v;k!==null;){if(k===a){k=null;break}if(v=k.sibling,v!==null){v.return=k.return,k=v;break}k=k.return}v=k}qt(i,a,y.children,d),a=a.child}return a;case 9:return y=a.type,m=a.pendingProps.children,pi(a,d),y=Nn(y),m=m(y),a.flags|=1,qt(i,a,m,d),a.child;case 14:return m=a.type,y=Kn(m,a.pendingProps),y=Kn(m.type,y),fS(i,a,m,y,d);case 15:return hS(i,a,a.type,a.pendingProps,d);case 17:return m=a.type,y=a.pendingProps,y=a.elementType===m?y:Kn(m,y),Ju(i,a),a.tag=1,cn(m)?(i=!0,Fu(a)):i=!1,pi(a,d),sS(a,m,y),pm(a,m,y,d),ym(null,a,m,!0,i,d);case 19:return _S(i,a,d);case 22:return pS(i,a,d)}throw Error(n(156,a.tag))};function YS(i,a){return k0(i,a)}function sD(i,a,d,m){this.tag=i,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(i,a,d,m){return new sD(i,a,d,m)}function Bm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function oD(i){if(typeof i=="function")return Bm(i)?1:0;if(i!=null){if(i=i.$$typeof,i===j)return 11;if(i===Re)return 14}return 2}function ks(i,a){var d=i.alternate;return d===null?(d=On(i.tag,a,i.key,i.mode),d.elementType=i.elementType,d.type=i.type,d.stateNode=i.stateNode,d.alternate=i,i.alternate=d):(d.pendingProps=a,d.type=i.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=i.flags&14680064,d.childLanes=i.childLanes,d.lanes=i.lanes,d.child=i.child,d.memoizedProps=i.memoizedProps,d.memoizedState=i.memoizedState,d.updateQueue=i.updateQueue,a=i.dependencies,d.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},d.sibling=i.sibling,d.index=i.index,d.ref=i.ref,d}function ld(i,a,d,m,y,v){var k=2;if(m=i,typeof i=="function")Bm(i)&&(k=1);else if(typeof i=="string")k=5;else e:switch(i){case I:return co(d.children,y,v,a);case W:k=8,y|=8;break;case D:return i=On(12,d,a,y|2),i.elementType=D,i.lanes=v,i;case Q:return i=On(13,d,a,y),i.elementType=Q,i.lanes=v,i;case ae:return i=On(19,d,a,y),i.elementType=ae,i.lanes=v,i;case Ee:return cd(d,y,v,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case J:k=10;break e;case oe:k=9;break e;case j:k=11;break e;case Re:k=14;break e;case ye:k=16,m=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=On(k,d,a,y),a.elementType=i,a.type=m,a.lanes=v,a}function co(i,a,d,m){return i=On(7,i,m,a),i.lanes=d,i}function cd(i,a,d,m){return i=On(22,i,m,a),i.elementType=Ee,i.lanes=d,i.stateNode={isHidden:!1},i}function Gm(i,a,d){return i=On(6,i,null,a),i.lanes=d,i}function Vm(i,a,d){return a=On(4,i.children!==null?i.children:[],i.key,a),a.lanes=d,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function iD(i,a,d,m,y){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hp(0),this.expirationTimes=hp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hp(0),this.identifierPrefix=m,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function Um(i,a,d,m,y,v,k,R,N){return i=new iD(i,a,d,R,N),a===1?(a=1,v===!0&&(a|=8)):a=0,v=On(3,null,null,a),i.current=v,v.stateNode=i,v.memoizedState={element:m,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null},em(v),i}function aD(i,a,d){var m=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch{}}return e(),pg.exports=RP(),pg.exports}var qE;function TP(){if(qE)return kd;qE=1;var e=YT();return kd.createRoot=e.createRoot,kd.hydrateRoot=e.hydrateRoot,kd}var IP=TP(),CP=YT();function vc(){return vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ev(e,t){if(!e)try{throw new Error(t)}catch{}}function LP(){return Math.random().toString(36).substr(2,8)}function tk(e,t){return{usr:e.state,key:e.key,idx:t}}function _y(e,t,n,r){return n===void 0&&(n=null),vc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Na(t):t,{state:n,key:t&&t.key||r||LP()})}function ZT(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Na(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function FP(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,l=s.history,c=Ls.Pop,u=null,f=h();f==null&&(f=0,l.replaceState(vc({},l.state,{idx:f}),""));function h(){return(l.state||{idx:null}).idx}function p(){c=Ls.Pop;let _=h(),E=_==null?null:_-f;f=_,u&&u({action:c,location:S.location,delta:E})}function g(_,E){c=Ls.Push;let A=_y(S.location,_,E);f=h()+1;let x=tk(A,f),C=S.createHref(A);try{l.pushState(x,"",C)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;s.location.assign(C)}o&&u&&u({action:c,location:S.location,delta:1})}function b(_,E){c=Ls.Replace;let A=_y(S.location,_,E);f=h();let x=tk(A,f),C=S.createHref(A);l.replaceState(x,"",C),o&&u&&u({action:c,location:S.location,delta:0})}function w(_){let E=s.location.origin!=="null"?s.location.origin:s.location.href,A=typeof _=="string"?_:ZT(_);return A=A.replace(/ $/,"%20"),St(E,"No window.location.(origin|href) available to create URL for href: "+A),new URL(A,E)}let S={get action(){return c},get location(){return e(s,l)},listen(_){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(ek,p),u=_,()=>{s.removeEventListener(ek,p),u=null}},createHref(_){return t(s,_)},createURL:w,encodeLocation(_){let E=w(_);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:g,replace:b,go(_){return l.go(_)}};return S}var nk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(nk||(nk={}));function OP(e,t,n){return n===void 0&&(n="/"),DP(e,t,n)}function DP(e,t,n,r){let s=typeof t=="string"?Na(t):t,o=HT(s.pathname||"/",n);if(o==null)return null;let l=XT(e);MP(l);let c=null;for(let u=0;c==null&&u{let u={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};u.relativePath.startsWith("/")&&(St(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let f=xo([r,u.relativePath]),h=n.concat(u);o.children&&o.children.length>0&&(St(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),XT(o.children,t,h,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:jP(f,o.index),routesMeta:h})};return e.forEach((o,l)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))s(o,l);else for(let u of zT(o.path))s(o,l,u)}),t}function zT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return s?[o,""]:[o];let l=zT(r.join("/")),c=[];return c.push(...l.map(u=>u===""?o:[o,u].join("/"))),s&&c.push(...l),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function MP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$P(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const BP=/^:[\w-]+$/,GP=3,VP=2,UP=1,WP=10,PP=-2,rk=e=>e==="*";function jP(e,t){let n=e.split("/"),r=n.length;return n.some(rk)&&(r+=PP),t&&(r+=VP),n.filter(s=>!rk(s)).reduce((s,o)=>s+(BP.test(o)?GP:o===""?UP:WP),r)}function $P(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function YP(e,t,n){let{routesMeta:r}=e,s={},o="/",l=[];for(let c=0;c{let{paramName:g,isOptional:b}=h;if(g==="*"){let S=c[p]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const w=c[p];return b&&!w?f[g]=void 0:f[g]=(w||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function XP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ev(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,u)=>(r.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function zP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ev(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function HT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const HP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,KP=e=>HP.test(e);function JP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Na(e):e,o;if(n)if(KP(n))o=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),Ev(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?o=sk(n.substring(1),"/"):o=sk(n,t)}else o=t;return{pathname:o,search:ej(r),hash:tj(s)}}function sk(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function yg(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function QP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function KT(e,t){let n=QP(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function JT(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=Na(e):(s=vc({},e),St(!s.pathname||!s.pathname.includes("?"),yg("?","pathname","search",s)),St(!s.pathname||!s.pathname.includes("#"),yg("#","pathname","hash",s)),St(!s.search||!s.search.includes("#"),yg("#","search","hash",s)));let o=e===""||s.pathname==="",l=o?"/":s.pathname,c;if(l==null)c=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),p-=1;s.pathname=g.join("/")}c=p>=0?t[p]:"/"}let u=JP(s,c),f=l&&l!=="/"&&l.endsWith("/"),h=(o||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(f||h)&&(u.pathname+="/"),u}const xo=e=>e.join("/").replace(/\/\/+/g,"/"),qP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ej=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const QT=["post","put","patch","delete"];new Set(QT);const rj=["get",...QT];new Set(rj);function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c.current=!0}),U.useCallback(function(f,h){if(h===void 0&&(h={}),!c.current)return;if(typeof f=="number"){r.go(f);return}let p=JT(f,JSON.parse(l),o,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:xo([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,l,o,e])}function ij(){let{matches:e}=U.useContext(Xs),t=e[e.length-1];return t?t.params:{}}function aj(e,t){return lj(e,t)}function lj(e,t,n,r){Jc()||St(!1);let{navigator:s}=U.useContext(Kc),{matches:o}=U.useContext(Xs),l=o[o.length-1],c=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let f=Qc(),h;if(t){var p;let _=typeof t=="string"?Na(t):t;u==="/"||(p=_.pathname)!=null&&p.startsWith(u)||St(!1),h=_}else h=f;let g=h.pathname||"/",b=g;if(u!=="/"){let _=u.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(_.length).join("/")}let w=OP(e,{pathname:b}),S=hj(w&&w.map(_=>Object.assign({},_,{params:Object.assign({},c,_.params),pathname:xo([u,s.encodeLocation?s.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:xo([u,s.encodeLocation?s.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,n,r);return t&&S?U.createElement(bh.Provider,{value:{location:wc({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Ls.Pop}},S):S}function cj(){let e=yj(),t=nj(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return U.createElement(U.Fragment,null,U.createElement("h2",null,"Unexpected Application Error!"),U.createElement("h3",{style:{fontStyle:"italic"}},t),n?U.createElement("pre",{style:s},n):null,null)}const uj=U.createElement(cj,null);let dj=class extends U.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){}render(){return this.state.error!==void 0?U.createElement(Xs.Provider,{value:this.props.routeContext},U.createElement(qT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function fj(e){let{routeContext:t,match:n,children:r}=e,s=U.useContext(kv);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),U.createElement(Xs.Provider,{value:t},r)}function hj(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,c=(s=n)==null?void 0:s.errors;if(c!=null){let h=l.findIndex(p=>p.route.id&&c?.[p.route.id]!==void 0);h>=0||St(!1),l=l.slice(0,Math.min(l.length,h+1))}let u=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((h,p,g)=>{let b,w=!1,S=null,_=null;n&&(b=c&&p.route.id?c[p.route.id]:void 0,S=p.route.errorElement||uj,u&&(f<0&&g===0?(vj("route-fallback"),w=!0,_=null):f===g&&(w=!0,_=p.route.hydrateFallbackElement||null)));let E=t.concat(l.slice(0,g+1)),A=()=>{let x;return b?x=S:w?x=_:p.route.Component?x=U.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=h,U.createElement(fj,{match:p,routeContext:{outlet:h,matches:E,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?U.createElement(dj,{location:n.location,revalidation:n.revalidation,component:S,error:b,children:A(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):A()},null)}var nI=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(nI||{}),rI=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(rI||{});function pj(e){let t=U.useContext(kv);return t||St(!1),t}function mj(e){let t=U.useContext(sj);return t||St(!1),t}function gj(e){let t=U.useContext(Xs);return t||St(!1),t}function sI(e){let t=gj(),n=t.matches[t.matches.length-1];return n.route.id||St(!1),n.route.id}function yj(){var e;let t=U.useContext(qT),n=mj(),r=sI();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function bj(){let{router:e}=pj(nI.UseNavigateStable),t=sI(rI.UseNavigateStable),n=U.useRef(!1);return eI(()=>{n.current=!0}),U.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,wc({fromRouteId:t},o)))},[e,t])}const ok={};function vj(e,t,n){ok[e]||(ok[e]=!0)}function wj(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function oI(e){let{to:t,replace:n,state:r,relative:s}=e;Jc()||St(!1);let{future:o,static:l}=U.useContext(Kc),{matches:c}=U.useContext(Xs),{pathname:u}=Qc(),f=tI(),h=JT(t,KT(c,o.v7_relativeSplatPath),u,s==="path"),p=JSON.stringify(h);return U.useEffect(()=>f(JSON.parse(p),{replace:n,state:r,relative:s}),[f,p,s,n,r]),null}function $l(e){St(!1)}function _j(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Ls.Pop,navigator:o,static:l=!1,future:c}=e;Jc()&&St(!1);let u=t.replace(/^\/*/,"/"),f=U.useMemo(()=>({basename:u,navigator:o,static:l,future:wc({v7_relativeSplatPath:!1},c)}),[u,c,o,l]);typeof r=="string"&&(r=Na(r));let{pathname:h="/",search:p="",hash:g="",state:b=null,key:w="default"}=r,S=U.useMemo(()=>{let _=HT(h,u);return _==null?null:{location:{pathname:_,search:p,hash:g,state:b,key:w},navigationType:s}},[u,h,p,g,b,w,s]);return S==null?null:U.createElement(Kc.Provider,{value:f},U.createElement(bh.Provider,{children:n,value:S}))}function Sj(e){let{children:t,location:n}=e;return aj(Sy(t),n)}new Promise(()=>{});function Sy(e,t){t===void 0&&(t=[]);let n=[];return U.Children.forEach(e,(r,s)=>{if(!U.isValidElement(r))return;let o=[...t,s];if(r.type===U.Fragment){n.push.apply(n,Sy(r.props.children,o));return}r.type!==$l&&St(!1),!r.props.index||!r.props.children||St(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Sy(r.props.children,o)),n.push(l)}),n}function Ey(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function Ej(e,t){let n=Ey(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(o=>{n.append(s,o)})}),n}const kj="6";try{window.__reactRouterVersion=kj}catch{}const Aj="startTransition",ik=kP[Aj];function xj(e){let{basename:t,children:n,future:r,window:s}=e,o=U.useRef();o.current==null&&(o.current=NP({window:s,v5Compat:!0}));let l=o.current,[c,u]=U.useState({action:l.action,location:l.location}),{v7_startTransition:f}=r||{},h=U.useCallback(p=>{f&&ik?ik(()=>u(p)):u(p)},[u,f]);return U.useLayoutEffect(()=>l.listen(h),[l,h]),U.useEffect(()=>wj(r),[r]),U.createElement(_j,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:r})}var ak;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ak||(ak={}));var lk;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lk||(lk={}));function ore(e){let t=U.useRef(Ey(e)),n=U.useRef(!1),r=Qc(),s=U.useMemo(()=>Ej(r.search,n.current?null:t.current),[r.search]),o=tI(),l=U.useCallback((c,u)=>{const f=Ey(typeof c=="function"?c(s):c);n.current=!0,o("?"+f,u)},[o,s]);return[s,l]}var vh=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rj=class extends vh{#e;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},iI=new Rj,Tj={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ij=class{#e=Tj;#n=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},ky=new Ij;function Cj(e){setTimeout(e,0)}var Nj=typeof window>"u"||"Deno"in globalThis;function tr(){}function Lj(e,t){return typeof e=="function"?e(t):e}function Fj(e){return typeof e=="number"&&e>=0&&e!==1/0}function Oj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ay(e,t){return typeof e=="function"?e(t):e}function Dj(e,t){return typeof e=="function"?e(t):e}function ck(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==Av(l,t.options))return!1}else if(!Sc(t.queryKey,l))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||s&&s!==t.state.fetchStatus||o&&!o(t))}function uk(e,t){const{exact:n,status:r,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(_c(t.options.mutationKey)!==_c(o))return!1}else if(!Sc(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Av(e,t){return(t?.queryKeyHashFn||_c)(e)}function _c(e){return JSON.stringify(e,(t,n)=>xy(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Sc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Sc(e[n],t[n])):!1}var Mj=Object.prototype.hasOwnProperty;function aI(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=dk(e)&&dk(t);if(!r&&!(xy(e)&&xy(t)))return t;const o=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),c=l.length,u=r?new Array(c):{};let f=0;for(let h=0;h{ky.setTimeout(t,e)})}function Gj(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?aI(e,t):t}function are(e){return e}function Vj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Uj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var xv=Symbol();function lI(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===xv?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function lre(e,t){return typeof e=="function"?e(...t):!!e}function Wj(e,t,n){let r=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),r||(r=!0,s.aborted?n():s.addEventListener("abort",n,{once:!0})),s)}),e}var cI=(()=>{let e=()=>Nj;return{isServer(){return e()},setIsServer(t){e=t}}})();function Pj(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var jj=Cj;function $j(){let e=[],t=0,n=c=>{c()},r=c=>{c()},s=jj;const o=c=>{t?e.push(c):s(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&s(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;t++;try{u=c()}finally{t--,t||l()}return u},batchCalls:c=>(...u)=>{o(()=>{c(...u)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{s=c}}}var rn=$j(),Yj=class extends vh{#e=!0;#n;#t;constructor(){super(),this.#t=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#t=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},mf=new Yj;function Zj(e){return Math.min(1e3*2**e,3e4)}function uI(e){return(e??"online")==="online"?mf.isOnline():!0}var Ry=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function dI(e){let t=!1,n=0,r;const s=Pj(),o=()=>s.status!=="pending",l=S=>{if(!o()){const _=new Ry(S);g(_),e.onCancel?.(_)}},c=()=>{t=!0},u=()=>{t=!1},f=()=>iI.isFocused()&&(e.networkMode==="always"||mf.isOnline())&&e.canRun(),h=()=>uI(e.networkMode)&&e.canRun(),p=S=>{o()||(r?.(),s.resolve(S))},g=S=>{o()||(r?.(),s.reject(S))},b=()=>new Promise(S=>{r=_=>{(o()||f())&&S(_)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),w=()=>{if(o())return;let S;const _=n===0?e.initialPromise:void 0;try{S=_??e.fn()}catch(E){S=Promise.reject(E)}Promise.resolve(S).then(p).catch(E=>{if(o())return;const A=e.retry??(cI.isServer()?0:3),x=e.retryDelay??Zj,C=typeof x=="function"?x(n,E):x,O=A===!0||typeof A=="number"&&nf()?void 0:b()).then(()=>{t?g(E):w()})})};return{promise:s,status:()=>s.status,cancel:l,continue:()=>(r?.(),s),cancelRetry:c,continueRetry:u,canStart:h,start:()=>(h()?w():b().then(w),s)}}var fI=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fj(this.gcTime)&&(this.#e=ky.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cI.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ky.clearTimeout(this.#e),this.#e=void 0)}},Xj=class extends fI{#e;#n;#t;#s;#r;#o;#i;constructor(e){super(),this.#i=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#t=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=pk(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=pk(this.options);t.data!==void 0&&(this.setState(hk(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(e,t){const n=Gj(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(tr).catch(tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Dj(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xv||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ay(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Oj(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#i||this.#l()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(u=>u.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#i=!0,n.signal)})},s=()=>{const c=lI(this.options,t),f=(()=>{const h={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(h),h})();return this.#i=!1,this.options.persister?this.options.persister(c,f,this):c(f)},l=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return r(c),c})();this.options.behavior?.onFetch(l,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#a({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=dI({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:c=>{c instanceof Ry&&c.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(c,u)=>{this.#a({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const c=await this.#r.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#t.config.onSuccess?.(c,this),this.#t.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof Ry){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#a({type:"error",error:c}),this.#t.config.onError?.(c,this),this.#t.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...zj(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...hk(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":const s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),rn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:e})})}};function zj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:uI(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function hk(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function pk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function mk(e){return{onFetch:(t,n)=>{const r=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},u=0;const f=async()=>{let h=!1;const p=w=>{Wj(w,()=>t.signal,()=>h=!0)},g=lI(t.options,t.fetchOptions),b=async(w,S,_)=>{if(h)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const A=(()=>{const T={client:t.client,queryKey:t.queryKey,pageParam:S,direction:_?"backward":"forward",meta:t.options.meta};return p(T),T})(),x=await g(A),{maxPages:C}=t.options,O=_?Uj:Vj;return{pages:O(w.pages,x,C),pageParams:O(w.pageParams,S,C)}};if(s&&o.length){const w=s==="backward",S=w?Hj:gk,_={pages:o,pageParams:l},E=S(r,_);c=await b(_,E,w)}else{const w=e??o.length;do{const S=u===0?l[0]??r.initialPageParam:gk(r,c);if(u>0&&S==null)break;c=await b(c,S),u++}while(ut.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function gk(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Hj(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Kj=class extends fI{#e;#n;#t;#s;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#n=[],this.state=e.state||Jj(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=dI({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,l)=>{this.#r({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",s=!this.#s.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:s}),this.#t.config.onMutate&&await this.#t.config.onMutate(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:s})}const o=await this.#s.start();return await this.#t.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#r({type:"success",data:o}),o}catch(o){try{await this.#t.config.onError?.(o,e,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onError?.(o,e,this.state.context,n)}catch(l){Promise.reject(l)}try{await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,n)}catch(l){Promise.reject(l)}throw this.#r({type:"error",error:o}),o}finally{this.#t.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),rn.batch(()=>{this.#n.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function Jj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Qj=class extends vh{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(e,t,n){const r=new Kj({client:e,mutationCache:this,mutationId:++this.#t,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Ad(e);if(typeof t=="string"){const n=this.#n.get(t);n?n.push(e):this.#n.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Ad(e);if(typeof t=="string"){const n=this.#n.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#n.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ad(e);if(typeof t=="string"){const r=this.#n.get(t)?.find(s=>s.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Ad(e);return typeof t=="string"?this.#n.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){rn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>uk(t,n))}findAll(e={}){return this.getAll().filter(t=>uk(e,t))}notify(e){rn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return rn.batch(()=>Promise.all(e.map(t=>t.continue().catch(tr))))}};function Ad(e){return e.options.scope?.id}var qj=class extends vh{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,s=t.queryHash??Av(r,t);let o=this.get(s);return o||(o=new Xj({client:e,queryKey:r,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){rn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ck(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>ck(e,n)):t}notify(e){rn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){rn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){rn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},e9=class{#e;#n;#t;#s;#r;#o;#i;#l;constructor(e={}){this.#e=e.queryCache||new qj,this.#n=e.mutationCache||new Qj,this.#t=e.defaultOptions||{},this.#s=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#i=iI.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=mf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#i?.(),this.#i=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ay(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(r.queryHash)?.state.data,l=Lj(t,o);if(l!==void 0)return this.#e.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return rn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;rn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return rn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=rn.batch(()=>this.#e.findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(tr).catch(tr)}invalidateQueries(e,t={}){return rn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=rn.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(tr)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(tr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Ay(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tr).catch(tr)}fetchInfiniteQuery(e){return e.behavior=mk(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tr).catch(tr)}ensureInfiniteQueryData(e){return e.behavior=mk(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return mf.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#s.set(_c(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{Sc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(_c(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Sc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#t.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Av(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xv&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},hI=U.createContext(void 0),cre=e=>{const t=U.useContext(hI);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},t9=({client:e,children:t})=>(U.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),te.jsx(hI.Provider,{value:e,children:t})),Qe="-ms-",tc="-moz-",$e="-webkit-",pI="comm",wh="rule",Rv="decl",n9="@import",r9="@namespace",mI="@keyframes",s9="@layer",gI=Math.abs,Tv=String.fromCharCode,Ty=Object.assign;function o9(e,t){return xt(e,0)^45?(((t<<2^xt(e,0))<<2^xt(e,1))<<2^xt(e,2))<<2^xt(e,3):0}function yI(e){return e.trim()}function Vr(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,n){return e.replace(t,n)}function jd(e,t,n){return e.indexOf(t,n)}function xt(e,t){return e.charCodeAt(t)|0}function Fo(e,t,n){return e.slice(t,n)}function nr(e){return e.length}function bI(e){return e.length}function Yl(e,t){return t.push(e),e}function i9(e,t){return e.map(t).join("")}function yk(e,t){return e.filter(function(n){return!Vr(n,t)})}var _h=1,aa=1,vI=0,$n=0,_t=0,La="";function Sh(e,t,n,r,s,o,l,c){return{value:e,root:t,parent:n,type:r,props:s,children:o,line:_h,column:aa,length:l,return:"",siblings:c}}function Rs(e,t){return Ty(Sh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xi(e){for(;e.root;)e=Rs(e.root,{children:[e]});Yl(e,e.siblings)}function a9(){return _t}function l9(){return _t=$n>0?xt(La,--$n):0,aa--,_t===10&&(aa=1,_h--),_t}function or(){return _t=$n2||Ec(_t)>3?"":" "}function f9(e,t){for(;--t&&or()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return Eh(e,$d()+(t<6&&Fs()==32&&or()==32))}function Iy(e){for(;or();)switch(_t){case e:return $n;case 34:case 39:e!==34&&e!==39&&Iy(_t);break;case 40:e===41&&Iy(e);break;case 92:or();break}return $n}function h9(e,t){for(;or()&&e+_t!==57;)if(e+_t===84&&Fs()===47)break;return"/*"+Eh(t,$n-1)+"*"+Tv(e===47?e:or())}function p9(e){for(;!Ec(Fs());)or();return Eh(e,$n)}function m9(e){return u9(Yd("",null,null,null,[""],e=c9(e),0,[0],e))}function Yd(e,t,n,r,s,o,l,c,u){for(var f=0,h=0,p=l,g=0,b=0,w=0,S=1,_=1,E=1,A=0,x="",C=s,O=o,T=r,I=x;_;)switch(w=A,A=or()){case 40:if(w!=108&&xt(I,p-1)==58){jd(I+=Ce(bg(A),"&","&\f"),"&\f",gI(f?c[f-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:I+=bg(A);break;case 9:case 10:case 13:case 32:I+=d9(w);break;case 92:I+=f9($d()-1,7);continue;case 47:switch(Fs()){case 42:case 47:Yl(g9(h9(or(),$d()),t,n,u),u),(Ec(w||1)==5||Ec(Fs()||1)==5)&&nr(I)&&Fo(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*S:c[f++]=nr(I)*E;case 125*S:case 59:case 0:switch(A){case 0:case 125:_=0;case 59+h:E==-1&&(I=Ce(I,/\f/g,"")),b>0&&(nr(I)-p||S===0&&w===47)&&Yl(b>32?vk(I+";",r,n,p-1,u):vk(Ce(I," ","")+";",r,n,p-2,u),u);break;case 59:I+=";";default:if(Yl(T=bk(I,t,n,f,h,s,c,x,C=[],O=[],p,o),o),A===123)if(h===0)Yd(I,t,T,T,C,o,p,c,O);else{switch(g){case 99:if(xt(I,3)===110)break;case 108:if(xt(I,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Yd(e,T,T,r&&Yl(bk(e,T,T,0,0,s,c,x,s,C=[],p,O),O),s,O,p,c,r?C:O):Yd(I,T,T,T,[""],O,0,c,O)}}f=h=b=0,S=E=1,x=I="",p=l;break;case 58:p=1+nr(I),b=w;default:if(S<1){if(A==123)--S;else if(A==125&&S++==0&&l9()==125)continue}switch(I+=Tv(A),A*S){case 38:E=h>0?1:(I+="\f",-1);break;case 44:c[f++]=(nr(I)-1)*E,E=1;break;case 64:Fs()===45&&(I+=bg(or())),g=Fs(),h=p=nr(x=I+=p9($d())),A++;break;case 45:w===45&&nr(I)==2&&(S=0)}}return o}function bk(e,t,n,r,s,o,l,c,u,f,h,p){for(var g=s-1,b=s===0?o:[""],w=bI(b),S=0,_=0,E=0;S0?b[A]+" "+x:Ce(x,/&\f/g,b[A])))&&(u[E++]=C);return Sh(e,t,n,s===0?wh:c,u,f,h,p)}function g9(e,t,n,r){return Sh(e,t,n,pI,Tv(a9()),Fo(e,2,-2),0,r)}function vk(e,t,n,r,s){return Sh(e,t,n,Rv,Fo(e,0,r),Fo(e,r+1,-1),r,s)}function wI(e,t,n){switch(o9(e,t)){case 5103:return $e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return $e+e+e;case 4855:return $e+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return tc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+tc+e+Qe+e+e;case 5936:switch(xt(e,t+11)){case 114:return $e+e+Qe+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+Qe+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+Qe+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $e+e+Qe+e+e;case 6165:return $e+e+Qe+"flex-"+e+e;case 5187:return $e+e+Ce(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return $e+e+Qe+"flex-item-"+Ce(e,/flex-|-self/g,"")+(Vr(e,/flex-|baseline/)?"":Qe+"grid-row-"+Ce(e,/flex-|-self/g,""))+e;case 4675:return $e+e+Qe+"flex-line-pack"+Ce(e,/align-content|flex-|-self/g,"")+e;case 5548:return $e+e+Qe+Ce(e,"shrink","negative")+e;case 5292:return $e+e+Qe+Ce(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+Ce(e,"-grow","")+$e+e+Qe+Ce(e,"grow","positive")+e;case 4554:return $e+Ce(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+Qe+"flex-pack:$3"),/space-between/,"justify")+$e+e+e;case 4200:if(!Vr(e,/flex-|baseline/))return Qe+"grid-column-align"+Fo(e,t)+e;break;case 2592:case 3360:return Qe+Ce(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,s){return t=s,Vr(r.props,/grid-\w+-end/)})?~jd(e+(n=n[t].value),"span",0)?e:Qe+Ce(e,"-start","")+e+Qe+"grid-row-span:"+(~jd(n,"span",0)?Vr(n,/\d+/):+Vr(n,/\d+/)-+Vr(e,/\d+/))+";":Qe+Ce(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Vr(r.props,/grid-\w+-start/)})?e:Qe+Ce(Ce(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,$e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(nr(e)-1-t>6)switch(xt(e,t+1)){case 109:if(xt(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+tc+(xt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~jd(e,"stretch",0)?wI(Ce(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ce(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,s,o,l,c,u,f){return Qe+s+":"+o+f+(l?Qe+s+"-span:"+(c?u:+u-+o)+f:"")+e});case 4949:if(xt(e,t+6)===121)return Ce(e,":",":"+$e)+e;break;case 6444:switch(xt(e,xt(e,14)===45?18:11)){case 120:return Ce(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$e+(xt(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+Qe+"$2box$3")+e;case 100:return Ce(e,":",":"+Qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ce(e,"scroll-","scroll-snap-")+e}return e}function gf(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case Rv:e.return=wI(e.value,e.length,n);return;case mI:return gf([Rs(e,{value:Ce(e.value,"@","@"+$e)})],r);case wh:if(e.length)return i9(n=e.props,function(s){switch(Vr(s,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xi(Rs(e,{props:[Ce(s,/:(read-\w+)/,":"+tc+"$1")]})),xi(Rs(e,{props:[s]})),Ty(e,{props:yk(n,r)});break;case"::placeholder":xi(Rs(e,{props:[Ce(s,/:(plac\w+)/,":"+$e+"input-$1")]})),xi(Rs(e,{props:[Ce(s,/:(plac\w+)/,":"+tc+"$1")]})),xi(Rs(e,{props:[Ce(s,/:(plac\w+)/,Qe+"input-$1")]})),xi(Rs(e,{props:[s]})),Ty(e,{props:yk(n,r)});break}return""})}}var Hi={},vg,wg;const la=typeof process<"u"&&Hi!==void 0&&(Hi.REACT_APP_SC_ATTR||Hi.SC_ATTR)||"data-styled",_I="active",SI="data-styled-version",kh="6.4.0",Iv=`/*!sc*/ `,nc=typeof window<"u"&&typeof document<"u";function wk(e){if(typeof process<"u"&&Hi!==void 0){const t=Hi[e];if(t!==void 0&&t!=="")return t!=="false"}}const _9=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(wg=(vg=wk("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&vg!==void 0?vg:wk("SC_DISABLE_SPEEDY"))!==null&&wg!==void 0?wg:typeof process>"u"||Hi===void 0),EI="sc-keyframes-";function qc(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let Zd=new Map,yf=new Map,Xd=1;const Zl=e=>{if(Zd.has(e))return Zd.get(e);for(;yf.has(Xd);)Xd++;const t=Xd++;return Zd.set(e,t),yf.set(t,e),t},S9=e=>yf.get(e),E9=(e,t)=>{Xd=t+1,Zd.set(e,t),yf.set(t,e)},Cv=Object.freeze([]),ca=Object.freeze({});function k9(e,t,n=ca){return e.theme!==n.theme&&e.theme||t||n.theme}const A9=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,x9=/(^-|-$)/g;function kI(e){return e.replace(A9,"-").replace(x9,"")}const R9=/(a)(d)/gi,_k=e=>String.fromCharCode(e+(e>25?39:97));function Nv(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=_k(t%52)+n;return(_k(t%52)+n).replace(R9,"$1-$2")}const Cy=5381,Ro=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},AI=e=>Ro(Cy,e);function xI(e){return Nv(AI(e)>>>0)}function T9(e){return e.displayName||e.name||"Component"}function Ny(e){return typeof e=="string"&&!0}function I9(e){return Ny(e)?`styled.${e}`:`Styled(${T9(e)})`}const RI=Symbol.for("react.memo"),C9=Symbol.for("react.forward_ref"),N9={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},L9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},TI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F9={[C9]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[RI]:TI};function Sk(e){return("type"in(t=e)&&t.type.$$typeof)===RI?TI:"$$typeof"in e?F9[e.$$typeof]:N9;var t}const O9=Object.defineProperty,D9=Object.getOwnPropertyNames,M9=Object.getOwnPropertySymbols,B9=Object.getOwnPropertyDescriptor,G9=Object.getPrototypeOf,V9=Object.prototype;function II(e,t,n){if(typeof t!="string"){const r=G9(t);r&&r!==V9&&II(e,r,n);const s=D9(t).concat(M9(t)),o=Sk(e),l=Sk(t);for(let c=0;cthis._cGroup)for(let n=this._cGroup;n=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const s=this.groupSizes,o=s.length;let l=o;for(;e>=l;)if(l<<=1,l<0)throw qc(16,`${e}`);this.groupSizes=new Uint32Array(l),this.groupSizes.set(s),this.length=l;for(let c=o;c0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||this.groupSizes[e]===0)return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),s=r+n;for(let o=r;otypeof ShadowRoot<"u"&&e instanceof ShadowRoot||"host"in e&&e.nodeType===11,Oy=e=>{if(!e)return document;if(Ek(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Ek(t))return t}return document},j9=(e,t,n)=>{const r=n.split(",");let s;for(let o=0,l=r.length;o{var n;const r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Iv),s=[];for(let o=0,l=r.length;o{const t=Oy(e.options.target).querySelectorAll(W9);for(let n=0,r=t.length;n{const n=document.head,r=e||n,s=document.createElement("style"),o=(u=>{const f=Array.from(u.querySelectorAll(`style[${la}]`));return f[f.length-1]})(r),l=o!==void 0?o.nextSibling:null;s.setAttribute(la,_I),s.setAttribute(SI,kh);const c=t||Y9();return c&&s.setAttribute("nonce",c),r.insertBefore(s,l),s},Z9=class{constructor(e,t){this.element=NI(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(n=>{var r;if(n.sheet)return n.sheet;const s=(r=n.getRootNode().styleSheets)!==null&&r!==void 0?r:document.styleSheets;for(let o=0,l=s.length;o=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e(s=>{const o=s.getTag(),{length:l}=o;let c="";for(let u=0;u0&&(b+=w+",");c+=p+g+'{content:"'+b+'"}'+Iv}return c})(this))}rehydrate(){!this.server&&nc&&_g(this)}reconstructWithOptions(t,n=!0){const r=new xh(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&nc&&t.target!==this.options.target&&Oy(this.options.target)!==Oy(t.target)&&_g(r),r}allocateGSInstance(t){return this.gs[t]=(this.gs[t]||0)+1}getTag(){return this.tag||(this.tag=(t=(({useCSSOMInjection:n,target:r,nonce:s})=>n?new Z9(r,s):new X9(r,s))(this.options),new U9(t)));var t}hasNameForId(t,n){var r,s;return(s=(r=this.names.get(t))===null||r===void 0?void 0:r.has(n))!==null&&s!==void 0&&s}registerName(t,n){Zl(t),t.startsWith(EI)&&this.keyframeIds.add(t);const r=this.names.get(t);r?r.add(n):this.names.set(t,new Set([n]))}insertRules(t,n,r){this.registerName(t,n),this.getTag().insertRules(Zl(t),r)}clearNames(t){this.names.has(t)&&this.names.get(t).clear()}clearRules(t){this.getTag().clearGroup(Zl(t)),this.clearNames(t)}clearTag(){this.tag=void 0}}const LI=new WeakSet,H9={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function K9(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in H9||e.startsWith("--")?String(t).trim():t+"px"}const J9=e=>e>="A"&&e<="Z";function Ak(e){let t="";for(let n=0;ne==null||e===!1||e==="",q9=Symbol.for("react.client.reference");function xk(e){return e.$$typeof===q9}const MI=e=>{const t=[];for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!DI(r)&&(Array.isArray(r)&&LI.has(r)||Ah(r)?t.push(Ak(n)+":",r,";"):kc(r)?t.push(n+" {",...MI(r),"}"):t.push(Ak(n)+": "+K9(n,r)+";"))}return t};function To(e,t,n,r,s=[]){if(DI(e))return s;const o=typeof e;if(o==="string")return s.push(e),s;if(o==="function"){if(xk(e))return s;if(OI(e)&&t){const l=e(t);return To(l,t,n,r,s)}return s.push(e),s}if(Array.isArray(e)){for(let l=0;l>>0),this.dynamicNameCache.size>=200){const u=this.dynamicNameCache.keys().next().value;u!==void 0&&this.dynamicNameCache.delete(u)}this.dynamicNameCache.set(l,c)}if(!n.hasNameForId(this.componentId,c)){const u=r(o,"."+c,void 0,this.componentId);n.insertRules(this.componentId,c,u)}s=Xl(s,c)}}return s}}const n$=/&/g,yo=47;function BI(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function Sg(e){const t=e.length;let n="",r=0,s=0,o=0,l=!1,c=!1;for(let u=0;uw.startsWith(r)&&w.endsWith(r)&&w.replaceAll(r,"").length>0?`.${n}`:g,l=t.slice();l.push(g=>{g.type===wh&&g.value.includes("&")&&(s||(s=new RegExp(`\\${r}\\b`,"g")),g.props[0]=g.props[0].replace(n$,r).replace(s,o))}),e.prefix&&l.push(w9),l.push(y9);let c=[];const u=b9(l.concat(v9(g=>c.push(g)))),f=(g,b="",w="",S="&")=>{n=S,r=b,s=void 0;const _=(function(A){const x=A.indexOf("//")!==-1,C=A.indexOf("}")!==-1;if(!x&&!C)return A;if(!x)return Sg(A);const O=A.length;let T="",I=0,W=0,D=0,J=0,oe=0,j=!1;for(;W0)W++;else if(Q===42&&W+10&&J--,W++;else J++,W++;else W++;else D===0?D=Q:D===Q&&(D=0),W++}return j?(IS(E,A)&&_(E,A)}else p=S}const g=new t$(n,f,r?s.componentStyle:void 0);function b(S,_){return(function(E,A,x){const{attrs:C,componentStyle:O,defaultProps:T,foldedComponentIds:I,styledComponentId:W,target:D}=E,J=Sr.useContext(UI),oe=o$(),j=E.shouldForwardProp||oe.shouldForwardProp,Q=k9(A,J,T)||ca;let ae,Re;{const re=Sr.useRef(null),z=re.current;if(z!==null&&z[1]===Q&&z[2]===oe.styleSheet&&z[3]===oe.stylis&&z[7]===O&&(function(L,G,$){const q=L,ue=G;let be=0;for(const fe in ue)if(Rk.call(ue,fe)&&(be++,q[fe]!==ue[fe]))return!1;return be===$})(z[0],A,z[4]))ae=z[5],Re=z[6];else{ae=(function(G,$,q){const ue=Object.assign(Object.assign({},$),{className:void 0,theme:q}),be=G.length>1;for(let fe=0;fe`.${w.styledComponentId}`),o&&II(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}var l$=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function Tk(e,t){const n=[e[0]];for(let r=0,s=t.length;r(LI.add(e),e);function Tt(e,...t){if(Ah(e)||kc(e))return Ik(To(Tk(Cv,[e,...t])));const n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?To(n):Ik(To(Tk(n,t)))}function My(e,t,n=ca){if(!t)throw qc(1,t);const r=(s,...o)=>e(t,n,Tt(s,...o));return r.attrs=s=>My(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,s).filter(Boolean)})),r.withConfig=s=>My(e,t,Object.assign(Object.assign({},n),s)),r}const WI=e=>My(a$,e),Pe=WI;l$.forEach(e=>{Pe[e]=WI(e)});var PI;class c${constructor(t,n){this[PI]=!0,this.inject=(r,s=Dy)=>{const o=this.getName(s);if(!r.hasNameForId(this.id,o)){const l=s(this.rules,o,"@keyframes");r.insertRules(this.id,o,l)}},this.name=t,this.id=EI+t,this.rules=n,Zl(this.id),Lv(this,()=>{throw qc(12,String(this.name))})}getName(t=Dy){return t.hash?this.name+Nv(+t.hash>>>0):this.name}}function Fa(e,...t){const n=Ly(Tt(e,...t)),r=xI(n);return new c$(r,n)}PI=FI;const ee={bg:{app:"#FAF9F5",panel:"#F8F7F3",surface:"#FFFFFF",elevated:"#FFFFFF",hover:"rgba(15, 12, 8, 0.04)",active:"#E8E6DC",selected:"#E3DACC",muted:"#F0EEE6",tintDesignSystem:"#F6E3E3",tintTemplate:"#E4E2F1",secondaryTabBar:"#f6f5f0af"},border:{subtle:"rgba(15, 12, 8, 0.08)",default:"rgba(15, 12, 8, 0.1)",strong:"rgba(15, 12, 8, 0.22)",focus:"rgba(15, 12, 8, 0.36)",modal:"rgba(0, 0, 0, 0.10)"},text:{primary:"rgba(15, 12, 8, 0.92)",secondary:"rgba(15, 12, 8, 0.64)",tertiary:"rgba(15, 12, 8, 0.60)",disabled:"rgba(15, 12, 8, 0.32)",designSystemBadge:"#C67878",inverse:"#FAF9F5",link:"#6A9BCC"},accent:{primary:"#D97757",primaryBg:"rgba(217, 119, 87, 0.12)",primaryHover:"#C46A4D",primaryActive:"#B05E43",secondary:"#6A9BCC",secondaryHover:"#5A8BBB",secondaryActive:"#4E7CAA",success:"#558A42",warning:"#C9A82D",error:"#A63244",blue:"#2A78D6",blueHover:"#2569BF",black:"#191915",blackHover:"#2B2B26",blackActive:"#0F0C08"},shadow:{xs:"0 1px 2px rgba(20, 20, 19, 0.04)",sm:"0 1px 3px rgba(20, 20, 19, 0.06)",lg:"0 10px 15px rgba(20, 20, 19, 0.08)",inset:"inset 0 1px 2px rgba(20, 20, 19, 0.06)",modal:"0 24px 48px rgba(15, 12, 8, 0.16), 0 8px 16px rgba(15, 12, 8, 0.08)"}},u$=Pe.i` font-size: ${e=>e.$size}px; line-height: 1; /* Glyph renders ~2px left of center inside IconButton on macOS Chrome. The inherits font-style:italic and the system -apple-system font while ::before is anthropicons/normal; something in that combination skews the shrink-wrap on macOS. Normalize font-style and pin a 1em square so flex parents center a predictable box on every OS. */ font-style: normal; width: 1em; height: 1em; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; /* anthropicons is a single-weight icon font and anthropicons.css sets font-weight:normal !important on the :before glyph, so font-weight is a no-op. Faux-bold via stroke instead — -webkit-text-stroke is supported in all engines (Firefox included). */ ${e=>e.$bold&&"-webkit-text-stroke: 0.04em currentColor;"} `;function Oo({name:e,size:t=14,style:n,className:r,onClick:s,bold:o=!1}){return te.jsx(u$,{className:`ai-${e} ${r||""}`,$size:t,$bold:o,style:n,onClick:s})}const Wi={xs:{padding:"4px 8px",fontSize:11,gap:4,iconSize:11,radius:6},sm:{padding:"6px 12px",fontSize:12,gap:5,iconSize:12,radius:8},md:{padding:"8px 16px",fontSize:13,gap:6,iconSize:14,radius:8}},d$=Pe.button` padding: ${e=>Wi[e.$size].padding}; font-size: ${e=>Wi[e.$size].fontSize}px; font-family: inherit; font-weight: 500; border-radius: ${e=>Wi[e.$size].radius}px; cursor: default; user-select: none; display: inline-flex; align-items: center; justify-content: center; gap: ${e=>Wi[e.$size].gap}px; outline: none; border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; ${e=>e.$variant==="default"&&Tt` background: ${e.$isPressed?ee.bg.active:e.$isHovered?ee.bg.hover:ee.bg.surface}; border-color: ${ee.border.default}; color: ${ee.text.primary}; box-shadow: ${ee.shadow.xs}; `} ${e=>e.$variant==="primary"&&Tt` background: ${e.$isPressed?ee.accent.primaryActive:e.$isHovered?ee.accent.primaryHover:ee.accent.primary}; color: ${ee.text.inverse}; border-color: rgba(0, 0, 0, 0.15); box-shadow: 0 1px 3px rgba(180, 90, 30, 0.35), 0 2px 6px rgba(180, 90, 30, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15); `} ${e=>e.$variant==="black"&&Tt` background: ${e.$isPressed?ee.accent.blackActive:e.$isHovered?ee.accent.blackHover:ee.accent.black}; color: ${ee.text.inverse}; border-color: rgba(0, 0, 0, 0.2); box-shadow: 0 1px 3px rgba(15, 12, 8, 0.25), 0 2px 6px rgba(15, 12, 8, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08); `} ${e=>e.$variant==="blue"&&Tt` background: ${e.$isPressed?ee.accent.secondaryActive:e.$isHovered?ee.accent.secondaryHover:ee.accent.secondary}; color: ${ee.text.inverse}; border-color: rgba(0, 0, 0, 0.12); box-shadow: 0 1px 2px rgba(90, 139, 187, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15); `} ${e=>e.$variant==="ghost"&&Tt` background: ${e.$isPressed?ee.bg.active:e.$isHovered?ee.bg.hover:"transparent"}; color: ${ee.text.secondary}; `} &:disabled { opacity: 0.5; cursor: not-allowed; } position: relative; `,f$=Fa` 0%, 80%, 100% { opacity: 0.25; transform: scale(0.75); } 40% { opacity: 1; transform: scale(1); } `,h$=Pe.div` position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: ${e=>e.$dotSize*.75}px; & > span { width: ${e=>e.$dotSize}px; height: ${e=>e.$dotSize}px; border-radius: 50%; background: currentColor; animation: ${f$} 1.2s ease-in-out infinite; } & > span:nth-child(2) { animation-delay: 0.15s; } & > span:nth-child(3) { animation-delay: 0.3s; } `,p$={xs:3,sm:4,md:5},zd=Sr.forwardRef(function({children:t,variant:n="default",size:r="sm",icon:s,iconStyle:o,iconRight:l,disabled:c=!1,loading:u=!1,active:f=!1,onClick:h,style:p,title:g,"data-testid":b,"data-autofocus":w},S){const[_,E]=U.useState(!1),[A,x]=U.useState(!1);return te.jsxs(d$,{ref:S,$variant:n,$size:r,$isHovered:_,$isPressed:A||f,disabled:c||u,onClick:h,onMouseEnter:()=>E(!0),onMouseLeave:()=>{E(!1),x(!1)},onMouseDown:()=>x(!0),onMouseUp:()=>x(!1),style:p,title:g,"data-testid":b,"data-autofocus":w||void 0,children:[te.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"inherit",opacity:u?0:1},children:[s&&te.jsx(Oo,{name:s,size:Wi[r].iconSize,style:o}),t,l&&te.jsx(Oo,{name:l,size:Wi[r].iconSize})]}),u&&te.jsxs(h$,{$dotSize:p$[r],children:[te.jsx("span",{}),te.jsx("span",{}),te.jsx("span",{})]})]})}),m$=Pe.button` width: ${e=>e.$size}px; height: ${e=>e.$size}px; padding: 0; border-radius: 6px; cursor: default; user-select: none; display: flex; align-items: center; justify-content: center; outline: none; color: ${ee.text.secondary}; ${e=>e.$variant==="default"&&Tt` background: ${e.$isPressed?ee.bg.active:e.$isHovered?ee.bg.hover:ee.bg.surface}; border: 1px solid ${ee.border.default}; box-shadow: ${ee.shadow.xs}; `} ${e=>e.$variant==="primary"&&Tt` background: ${e.$isPressed?ee.accent.primaryActive:e.$isHovered?ee.accent.primaryHover:ee.accent.primary}; color: ${ee.text.inverse}; border: 1px solid rgba(0, 0, 0, 0.15); box-shadow: 0 1px 3px rgba(180, 90, 30, 0.35), 0 2px 6px rgba(180, 90, 30, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15); `} ${e=>e.$variant==="ghost"&&Tt` background: ${e.$isPressed?ee.bg.active:e.$isHovered?ee.bg.hover:"transparent"}; border: 1px solid transparent; `} ${e=>e.$active&&Tt` background: ${e.$isPressed?"#1d55d8":e.$isHovered?"#2968f0":"#2f75ff"}; color: #fff; border: 1px solid rgba(0, 0, 0, 0.15); box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.22), 0 1px 3px rgba(30, 90, 220, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2); `} &:disabled { opacity: 0.3; cursor: not-allowed; } `;function ure({icon:e,size:t=28,iconSize:n,iconBold:r=!1,iconStyle:s,variant:o="ghost",active:l=!1,disabled:c=!1,onClick:u,onMouseDown:f,style:h,title:p,"data-testid":g}){const[b,w]=U.useState(!1),[S,_]=U.useState(!1);return te.jsx(m$,{$size:t,$variant:o,$active:l,$isHovered:b,$isPressed:S,disabled:c,onClick:u,onMouseEnter:()=>w(!0),onMouseLeave:()=>{w(!1),_(!1)},onMouseDown:E=>{_(!0),f?.(E)},onMouseUp:()=>_(!1),style:h,title:p,"data-testid":g,children:te.jsx(Oo,{name:e,size:n??t*.5,bold:r,style:s})})}const g$=Pe.button` width: ${e=>e.$size}px; height: ${e=>e.$size}px; padding: 0; border: none; border-radius: 4px; cursor: default; user-select: none; display: flex; align-items: center; justify-content: center; background: ${e=>e.$isHovered?ee.bg.hover:"transparent"}; color: ${ee.text.tertiary}; text-decoration: none; outline: none; &:hover { color: ${ee.text.secondary}; } &:active { filter: brightness(0.8); } &:disabled { opacity: 0.3; cursor: not-allowed; } `,jI=Sr.forwardRef(function({icon:t,size:n=20,iconSize:r,disabled:s=!1,onClick:o,style:l,title:c,href:u},f){const[h,p]=U.useState(!1),g=u?{as:"a",href:u}:{disabled:s};return te.jsx(g$,{ref:f,...g,$size:n,$isHovered:h,onClick:o,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:l,title:c,children:te.jsx(Oo,{name:t,size:r||n*.6,bold:!0})})});var kg,Ck;function y$(){if(Ck)return kg;Ck=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u=typeof gd=="object"&&gd&&gd.Object===Object&&gd,f=typeof self=="object"&&self&&self.Object===Object&&self,h=u||f||Function("return this")(),p=Object.prototype,g=p.toString,b=Math.max,w=Math.min,S=function(){return h.Date.now()};function _(O,T,I){var W,D,J,oe,j,Q,ae=0,Re=!1,ye=!1,Ee=!0;if(typeof O!="function")throw new TypeError(e);T=C(T)||0,E(I)&&(Re=!!I.leading,ye="maxWait"in I,J=ye?b(C(I.maxWait)||0,T):J,Ee="trailing"in I?!!I.trailing:Ee);function Y(fe){var ie=W,ke=D;return W=D=void 0,ae=fe,oe=O.apply(ke,ie),oe}function re(fe){return ae=fe,j=setTimeout(G,T),Re?Y(fe):oe}function z(fe){var ie=fe-Q,ke=fe-ae,De=T-ie;return ye?w(De,J-ke):De}function L(fe){var ie=fe-Q,ke=fe-ae;return Q===void 0||ie>=T||ie<0||ye&&ke>=J}function G(){var fe=S();if(L(fe))return $(fe);j=setTimeout(G,z(fe))}function $(fe){return j=void 0,Ee&&W?Y(fe):(W=D=void 0,oe)}function q(){j!==void 0&&clearTimeout(j),ae=0,W=Q=D=j=void 0}function ue(){return j===void 0?oe:$(S())}function be(){var fe=S(),ie=L(fe);if(W=arguments,D=this,Q=fe,ie){if(j===void 0)return re(Q);if(ye)return j=setTimeout(G,T),Y(Q)}return j===void 0&&(j=setTimeout(G,T)),oe}return be.cancel=q,be.flush=ue,be}function E(O){var T=typeof O;return!!O&&(T=="object"||T=="function")}function A(O){return!!O&&typeof O=="object"}function x(O){return typeof O=="symbol"||A(O)&&g.call(O)==n}function C(O){if(typeof O=="number")return O;if(x(O))return t;if(E(O)){var T=typeof O.valueOf=="function"?O.valueOf():O;O=E(T)?T+"":T}if(typeof O!="string")return O===0?O:+O;O=O.replace(r,"");var I=o.test(O);return I||l.test(O)?c(O.slice(2),I?2:8):s.test(O)?t:+O}return kg=_,kg}y$();var Rh=typeof window<"u"?U.useLayoutEffect:U.useEffect;function Hr(e,t,n,r){const s=U.useRef(t);Rh(()=>{s.current=t},[t]),U.useEffect(()=>{const o=n?.current??window;if(!(o&&o.addEventListener))return;const l=c=>{s.current(c)};return o.addEventListener(e,l,r),()=>{o.removeEventListener(e,l,r)}},[e,n,r])}function $I(e,t){const n=U.useRef(e);Rh(()=>{n.current=e},[e]),U.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function bf(e){const t=U.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return Rh(()=>{t.current=e},[e]),U.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[t])}var Ag=typeof window>"u";function dre(e,t,n={}){const{initializeWithValue:r=!0}=n,s=U.useCallback(g=>n.serializer?n.serializer(g):JSON.stringify(g),[n]),o=U.useCallback(g=>{if(n.deserializer)return n.deserializer(g);if(g==="undefined")return;const b=t instanceof Function?t():t;let w;try{w=JSON.parse(g)}catch{return b}return w},[n,t]),l=U.useCallback(()=>{const g=t instanceof Function?t():t;if(Ag)return g;try{const b=window.localStorage.getItem(e);return b?o(b):g}catch{return g}},[t,e,o]),[c,u]=U.useState(()=>r?l():t instanceof Function?t():t),f=bf(g=>{try{const b=g instanceof Function?g(l()):g;window.localStorage.setItem(e,s(b)),u(b),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch{}}),h=bf(()=>{const g=t instanceof Function?t():t;window.localStorage.removeItem(e),u(g),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))});U.useEffect(()=>{u(l())},[e]);const p=U.useCallback(g=>{g.key&&g.key!==e||u(l())},[e,l]);return Hr("storage",p),Hr("local-storage",p),[c,f,h]}var b$=typeof window>"u";function fre(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const r=c=>b$?t:window.matchMedia(c).matches,[s,o]=U.useState(()=>n?r(e):t);function l(){o(r(e))}return Rh(()=>{const c=window.matchMedia(e);return l(),c.addListener?c.addListener(l):c.addEventListener("change",l),()=>{c.removeListener?c.removeListener(l):c.removeEventListener("change",l)}},[e]),s}function v$(){const e=U.useRef(!1);return U.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),U.useCallback(()=>e.current,[])}function hre(e,t,n="mousedown",r={}){Hr(n,s=>{const o=s.target;if(!o||!o.isConnected)return;(Array.isArray(e)?e.filter(c=>!!c.current).every(c=>c.current&&!c.current.contains(o)):e.current&&!e.current.contains(o))&&t(s)},void 0,r)}var Nk={width:void 0,height:void 0};function pre(e){const{ref:t,box:n="content-box"}=e,[{width:r,height:s},o]=U.useState(Nk),l=v$(),c=U.useRef({...Nk}),u=U.useRef(void 0);return u.current=e.onResize,U.useEffect(()=>{if(!t.current||typeof window>"u"||!("ResizeObserver"in window))return;const f=new ResizeObserver(([h])=>{const p=n==="border-box"?"borderBoxSize":n==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=Lk(h,p,"inlineSize"),b=Lk(h,p,"blockSize");if(c.current.width!==g||c.current.height!==b){const S={width:g,height:b};c.current.width=g,c.current.height=b,u.current?u.current(S):l()&&o(S)}});return f.observe(t.current,{box:n}),()=>{f.disconnect()}},[n,t,l]),{width:r,height:s}}function Lk(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}var xg=typeof window>"u";function w$(e,t,n={}){const{initializeWithValue:r=!0}=n,s=U.useCallback(g=>n.serializer?n.serializer(g):JSON.stringify(g),[n]),o=U.useCallback(g=>{if(n.deserializer)return n.deserializer(g);if(g==="undefined")return;const b=t instanceof Function?t():t;let w;try{w=JSON.parse(g)}catch{return b}return w},[n,t]),l=U.useCallback(()=>{const g=t instanceof Function?t():t;if(xg)return g;try{const b=window.sessionStorage.getItem(e);return b?o(b):g}catch{return g}},[t,e,o]),[c,u]=U.useState(()=>r?l():t instanceof Function?t():t),f=bf(g=>{try{const b=g instanceof Function?g(l()):g;window.sessionStorage.setItem(e,s(b)),u(b),window.dispatchEvent(new StorageEvent("session-storage",{key:e}))}catch{}}),h=bf(()=>{const g=t instanceof Function?t():t;window.sessionStorage.removeItem(e),u(g),window.dispatchEvent(new StorageEvent("session-storage",{key:e}))});U.useEffect(()=>{u(l())},[e]);const p=U.useCallback(g=>{g.key&&g.key!==e||u(l())},[e,l]);return Hr("storage",p),Hr("session-storage",p),[c,f,h]}const YI={modal:2e3,modalTop:3e3,popover:3500,toast:1e4},_$=Fa` from { opacity: 0 } to { opacity: 1 } `,S$=Fa` from { opacity: 0; transform: scale(0.96) } to { opacity: 1; transform: scale(1) } `,E$=Pe.div` position: fixed; inset: 0; z-index: ${e=>e.$z}; background: rgba(15, 12, 8, 0.4); display: grid; place-items: center; animation: ${_$} 0.15s ease; `,Fk='button:not(:disabled), a[href], input:not(:disabled), textarea:not(:disabled), select:not(:disabled), [tabindex]:not([tabindex="-1"])',Bl=[];function k$({isOpen:e,onClose:t,zLayer:n="modal",children:r}){const s=U.useRef(null),o=U.useRef(null),l=U.useRef(Symbol());return U.useEffect(()=>{if(!e)return;const c=l.current;return Bl.push(c),()=>{const u=Bl.lastIndexOf(c);u>=0&&Bl.splice(u,1)}},[e]),Hr("keydown",c=>{if(e&&Bl[Bl.length-1]===l.current){if(c.key==="Escape")c.preventDefault(),c.stopImmediatePropagation(),t();else if(c.key==="Tab"){const u=s.current;if(!u)return;const f=u.querySelectorAll(Fk);if(f.length===0){c.preventDefault(),u.focus();return}const h=f[0],p=f[f.length-1],g=document.activeElement;if(!u.contains(g)){c.preventDefault(),(c.shiftKey?p:h).focus();return}c.shiftKey&&g===h?(c.preventDefault(),p.focus()):!c.shiftKey&&g===p&&(c.preventDefault(),h.focus())}}}),U.useEffect(()=>{if(!e)return;o.current=document.activeElement;const c=requestAnimationFrame(()=>{const u=s.current,f=u?.querySelector("[data-autofocus]"),h=u?.querySelector(Fk);(f??h??u)?.focus()});return()=>{cancelAnimationFrame(c);const u=o.current;u instanceof HTMLElement&&u.focus()}},[e]),e?CP.createPortal(te.jsx(E$,{$z:YI[n],onMouseDown:c=>c.target===c.currentTarget&&t(),children:te.jsx("div",{ref:s,role:"dialog","aria-modal":"true","data-modal-primitive":!0,tabIndex:-1,style:{outline:"none"},children:r})}),document.body):null}const ZI=U.createContext(null);function mre(){const e=U.useContext(ZI);if(!e)throw new Error("useConfirm must be used within a ConfirmDialogProvider");return e}let vf=null;async function Ok(e){if(vf)return vf(e);const t=typeof e.message=="string"?e.message:e.title??"Are you sure?";return window.confirm(t)}const A$=Pe.div` width: 360px; max-width: calc(100vw - 32px); background: ${ee.bg.surface}; border: 1px solid ${ee.border.default}; border-radius: 12px; box-shadow: ${ee.shadow.lg}; overflow: hidden; /* clip Body top corners + Footer bottom corners to radius */ animation: ${S$} 0.18s ease; font-family: inherit; `,x$=Pe.div` padding: 20px 20px 16px; `,R$=Pe.div` font-size: 14px; font-weight: 600; color: ${ee.text.primary}; margin-bottom: 4px; `,T$=Pe.div` font-size: 13px; line-height: 1.5; color: ${ee.text.secondary}; `,I$=Pe.div` padding: 14px 20px; background: ${ee.bg.app}; border-top: 1px solid ${ee.border.subtle}; display: flex; justify-content: flex-end; gap: 8px; `,C$=Pe.button` padding: 8px 16px; font-size: 13px; font-family: inherit; font-weight: 500; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.15); background: ${ee.accent.error}; color: ${ee.text.inverse}; cursor: pointer; box-shadow: 0 1px 3px rgba(166, 50, 68, 0.3), 0 2px 6px rgba(166, 50, 68, 0.18); &:hover { background: color-mix(in srgb, ${ee.accent.error} 90%, black); } `;function N$({children:e}){const[t,n]=U.useState(null),r=U.useRef(null),s=U.useCallback(f=>(r.current?.resolve(!1),new Promise(h=>{const p={opts:f,resolve:h};r.current=p,n(p)})),[]);U.useEffect(()=>(vf=s,()=>{vf=null}),[s]);const o=Qc();U.useEffect(()=>{r.current&&(r.current.resolve(!1),r.current=null,n(null))},[o]);const l=f=>{r.current?.resolve(f),r.current=null,n(null)},c=t?.opts,u=c?.danger??!1;return te.jsxs(ZI.Provider,{value:s,children:[e,te.jsx(k$,{isOpen:t!==null,onClose:()=>l(!1),zLayer:"modalTop",children:c&&te.jsxs(A$,{"data-testid":"confirm-dialog",children:[te.jsxs(x$,{children:[c.title&&te.jsx(R$,{children:c.title}),te.jsx(T$,{children:c.message})]}),te.jsxs(I$,{children:[!c.hideCancel&&te.jsx(zd,{variant:"ghost",size:"md",onClick:()=>l(!1),children:c.cancelLabel??"Cancel"}),c.secondaryAction&&te.jsx(zd,{variant:"default",size:"md",onClick:()=>{c.secondaryAction?.onClick(),l(!1)},children:c.secondaryAction.label}),u?te.jsx(C$,{onClick:()=>l(!0),"data-testid":"confirm-dialog-confirm","data-autofocus":!0,children:c.confirmLabel??"Delete"}):te.jsx(zd,{variant:"black",size:"md",onClick:()=>l(!0),"data-testid":"confirm-dialog-confirm","data-autofocus":!0,children:c.confirmLabel??"Confirm"})]})]})})]})}const L$=Fa` 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } `,F$=Pe.div` width: 120px; height: 3px; background: rgba(20, 20, 20, 0.15); border-radius: 2px; overflow: hidden; &::after { content: ''; display: block; width: 30%; height: 100%; background: #222; border-radius: 2px; animation: ${L$} 1.2s ease-in-out infinite; } `,O$=Pe.div` ${e=>e.$fixed?` position: fixed; inset: 0; `:` position: absolute; inset: 0; `} display: flex; align-items: center; justify-content: center; pointer-events: none; `;function D$({fixed:e=!1,label:t="Loading"}){return te.jsx(O$,{$fixed:e,role:"status","aria-live":"polite","aria-label":t,children:te.jsx(F$,{})})}const Rg={info:{bg:`${ee.accent.secondary}14`,border:`${ee.accent.secondary}2e`,fg:ee.text.secondary,weight:500},hint:{bg:ee.bg.muted,border:ee.border.default,fg:ee.text.secondary,weight:500},warning:{bg:"#ffebe4",border:ee.accent.primaryActive,fg:ee.accent.primaryActive,weight:600},error:{bg:ee.bg.muted,border:`${ee.accent.error}33`,fg:ee.text.primary,weight:500}},gre=Pe.div` position: relative; display: flex; align-items: center; gap: 8px; line-height: 1.4; font-family: inherit; ${e=>{const t=Rg[e.$variant??"hint"];return Tt` background: ${t.bg}; color: ${t.fg}; font-weight: ${t.weight}; `}} ${e=>(e.$placement??"standalone")==="docked"?Tt` font-size: 11px; padding: 6px 12px 14px; margin: 0 1px -8px; border: 0.5px solid ${Rg[e.$variant??"hint"].border}; border-bottom: none; border-radius: 10px 10px 0 0; `:Tt` font-size: 12px; padding: 10px 12px; border: 1px solid ${Rg[e.$variant??"hint"].border}; border-radius: 8px; user-select: text; `} `;function XI({name:e,size:t=14}){return U.useEffect(()=>{},[e]),te.jsx(Oo,{name:e,size:t,style:{flexShrink:0}})}const zI={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function M$(){return zI}function Tg(e){let t=2166136261;const n=e.length;for(let r=0;r>>0}function Th(e,t,n){return n===2?Tg(Tg(e+t)+"")%1e4/1e4:n===1?Tg(t+e)%1e3/1e3:null}function B$(e){return e<=0?[]:new Array(e).fill(1/e)}function Fv(e,t){return e>=t[0]&&e=t[1]&&n{r.push([e.searchParams.get(o)||"",s,!1])}),!r.some(s=>!U$(s[0],s[1],s[2]))}catch{return!1}}function P$(e,t,n){try{const r=new URL(e,"https://_");if(t==="regex"){const s=HI(n);return s?s.test(r.href)||s.test(r.href.substring(r.origin.length)):!1}else if(t==="simple")return W$(r,n);return!1}catch{return!1}}function j$(e,t,n){t=t===void 0?1:t,t<0?t=0:t>1&&(t=1);const r=B$(e);n=n||r,n.length!==e&&(n=r);const s=n.reduce((l,c)=>c+l,0);(s<.99||s>1.01)&&(n=r);let o=0;return n.map(l=>{const c=o;return o+=l,[c,c+t*l]})}function $$(e,t,n){if(!t)return null;const r=t.split("?")[1];if(!r)return null;const s=r.replace(/#.*/,"").split("&").map(o=>o.split("=",2)).filter(([o])=>o===e).map(([,o])=>parseInt(o));return s.length>0&&s[0]>=0&&s[0]Uint8Array.from(atob(e),t=>t.charCodeAt(0));async function rc(e,t,n){if(t=t||"",n=n||globalThis.crypto&&globalThis.crypto.subtle||zI.SubtleCrypto,!n)throw new Error("No SubtleCrypto implementation found");try{const r=await n.importKey("raw",Ig(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[s,o]=e.split("."),l=await n.decrypt({name:"AES-CBC",iv:Ig(s)},r,Ig(o));return new TextDecoder().decode(l)}catch{throw new Error("Failed to decrypt")}}function wf(e){return typeof e=="string"?e:JSON.stringify(e)}function Dn(e){typeof e=="number"&&(e=e+""),(!e||typeof e!="string")&&(e="0");const t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return t.length===3&&t.push("~"),t.map(n=>n.match(/^[0-9]+$/)?n.padStart(5," "):n).join("-")}function Z$(){let e;try{e="1.6.5"}catch{e=""}return e}function X$(e,t){let n,r;try{n=new URL(e),r=new URL(t)}catch{return t}return n.searchParams.forEach((s,o)=>{r.searchParams.has(o)||r.searchParams.set(o,s)}),r.toString()}function Dk(e){return typeof e=="object"&&e!==null}function Cg(e){return e.urlPatterns&&e.variations.some(t=>Dk(t)&&"urlRedirect"in t)?"redirect":e.variations.some(t=>Dk(t)&&(t.domMutations||"js"in t||"css"in t))?"visual":"unknown"}async function JI(e,t){return new Promise(n=>{let r=!1,s;const o=l=>{r||(r=!0,s&&clearTimeout(s),n(l||null))};t&&(s=setTimeout(()=>o(),t)),e.then(l=>o(l)).catch(()=>o())})}const Xt={staleTTL:1e3*60,maxAge:1e3*60*60*4,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},vr=M$(),ua={fetchFeaturesCall:({host:e,clientKey:t,headers:n})=>vr.fetch(`${e}/api/features/${t}`,{headers:n}),fetchRemoteEvalCall:({host:e,clientKey:t,payload:n,headers:r})=>{const s={method:"POST",headers:{"Content-Type":"application/json",...r},body:JSON.stringify(n)};return vr.fetch(`${e}/api/eval/${t}`,s)},eventSourceCall:({host:e,clientKey:t,headers:n})=>n?new vr.EventSource(`${e}/sub/${t}`,{headers:n}):new vr.EventSource(`${e}/sub/${t}`),startIdleListener:()=>{let e;if(!(typeof window<"u"&&typeof document<"u"))return;const n=()=>{document.visibilityState==="visible"?(window.clearTimeout(e),q$()):document.visibilityState==="hidden"&&(e=window.setTimeout(Q$,Xt.idleStreamInterval))};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(vr.localStorage=globalThis.localStorage)}catch{}const da=new Map;let Mk=!1;const Yr=new Map,xd=new Map,fa=new Map,ha=new Set;function z$(e){Object.assign(Xt,e),Xt.backgroundSync||tC()}async function H$({instance:e,timeout:t,skipCache:n,allowStale:r,backgroundSync:s}){return s||(Xt.backgroundSync=!1),eY({instance:e,allowStale:r,timeout:t,skipCache:n})}function K$(e){const t=eu(e),n=da.get(t)||new Set;n.add(e),da.set(t,n)}function J$(e){da.forEach(t=>t.delete(e))}function Q$(){fa.forEach(e=>{e&&(e.state="idle",Mv(e))})}function q$(){fa.forEach(e=>{e&&e.state==="idle"&&Bv(e)})}async function Bk(){try{if(!vr.localStorage)return;await vr.localStorage.setItem(Xt.cacheKey,JSON.stringify(Array.from(Yr.entries())))}catch{}}async function eY({instance:e,allowStale:t,timeout:n,skipCache:r}){const s=eu(e),o=Ov(e),l=new Date,c=new Date(l.getTime()-Xt.maxAge+Xt.staleTTL);await tY();const u=!Xt.disableCache&&!r?Yr.get(o):void 0;return u&&(t||u.staleAt>l)&&u.staleAt>c?(u.sse&&ha.add(s),u.staleAt{s[c]=n[c]});const o=e.getForcedVariations(),l=e.getUrl();return`${t}||${JSON.stringify({ca:s,fv:o,url:l})}`}async function tY(){if(!Mk){Mk=!0;try{if(vr.localStorage){const e=await vr.localStorage.getItem(Xt.cacheKey);if(!Xt.disableCache&&e){const t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach(([n,r])=>{Yr.set(n,{...r,staleAt:new Date(r.staleAt)})}),QI()}}}catch{}if(!Xt.disableIdleStreams){const e=ua.startIdleListener();e&&(ua.stopIdleListener=e)}}}function QI(){const e=Array.from(Yr.entries()).map(([n,r])=>({key:n,staleAt:r.staleAt.getTime()})).sort((n,r)=>n.staleAt-r.staleAt),t=Math.min(Math.max(0,Yr.size-Xt.maxEntries),Yr.size);for(let n=0;nnY(c,n))}async function nY(e,t){await e.setPayload(t||e.getPayload())}async function By(e){const{apiHost:t,apiRequestHeaders:n}=e.getApiHosts(),r=e.getClientKey(),s="isRemoteEval"in e&&e.isRemoteEval(),o=eu(e),l=Ov(e);let c=xd.get(l);return c||(c=(s?ua.fetchRemoteEvalCall({host:t,clientKey:r,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:n}):ua.fetchFeaturesCall({host:t,clientKey:r,headers:n})).then(f=>{if(!f.ok)throw new Error(`HTTP error: ${f.status}`);return f.headers.get("x-sse-support")==="enabled"&&ha.add(o),f.json()}).then(f=>(qI(o,l,f),Dv(e),xd.delete(l),{data:f,success:!0,source:"network"})).catch(f=>(xd.delete(l),{data:null,source:"error",success:!1,error:f})),xd.set(l,c)),c}function Dv(e,t=!1){const n=eu(e),r=Ov(e),{streamingHost:s,streamingHostRequestHeaders:o}=e.getApiHosts(),l=e.getClientKey();if(t&&ha.add(n),Xt.backgroundSync&&ha.has(n)&&vr.EventSource){if(fa.has(n))return;const c={src:null,host:s,clientKey:l,headers:o,cb:u=>{try{if(u.type==="features-updated"){const f=da.get(n);f&&f.forEach(h=>{By(h)})}else if(u.type==="features"){const f=JSON.parse(u.data);qI(n,r,f)}c.errors=0}catch{eC(c)}},errors:0,state:"active"};fa.set(n,c),Bv(c)}}function eC(e){if(e.state!=="idle"&&(e.errors++,e.errors>3||e.src&&e.src.readyState===2)){const t=Math.pow(3,e.errors-3)*(1e3+Math.random()*1e3);Mv(e),setTimeout(()=>{["idle","active"].includes(e.state)||Bv(e)},Math.min(t,3e5))}}function Mv(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,e.state==="active"&&(e.state="disabled"))}function Bv(e){e.src=ua.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>eC(e),e.src.onopen=()=>{e.errors=0}}function rY(e,t){Mv(e),fa.delete(t)}function tC(){ha.clear(),fa.forEach(rY),da.clear(),ua.stopIdleListener()}function Ng(e,t){if(t.streaming){if(!e.getClientKey())throw new Error("Must specify clientKey to enable streaming");t.payload&&Dv(e,!0),K$(e)}}var sY=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,Gv={revert:function(){}},_f=new Map,Vv=new Set;function oY(e){return e==="html"?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[e]}}function Ih(e){var t=_f.get(e);return t||(t={element:e,attributes:{}},_f.set(e,t)),t}function Ch(e,t,n,r,s){var o=n(e),l={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver(function(){if(!(t==="position"&&l._positionTimeout)){t==="position"&&(l._positionTimeout=setTimeout(function(){l._positionTimeout=null},1e3));var c=n(e);t==="position"&&c.parentNode===l.virtualValue.parentNode&&c.insertBeforeNode===l.virtualValue.insertBeforeNode||c!==l.virtualValue&&(l.originalValue=c,s(l))}}),mutationRunner:s,setValue:r,getCurrentValue:n};return t==="position"&&e.parentNode?l.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):l.observer.observe(e,oY(t)),l}function Nh(e,t){var n=t.getCurrentValue(t.el);t.virtualValue=e,e&&typeof e!="string"?(!n||e.parentNode!==n.parentNode||e.insertBeforeNode!==n.insertBeforeNode)&&(t.isDirty=!0,Gk()):e!==n&&(t.isDirty=!0,Gk())}function iY(e){var t=e.originalValue;e.mutations.forEach(function(n){return t=n.mutate(t)}),Nh(wY(t),e)}function aY(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach(function(n){return n.mutate(t)}),Nh(Array.from(t).filter(Boolean).join(" "),e)}function lY(e){var t=e.originalValue;e.mutations.forEach(function(n){return t=n.mutate(t)}),Nh(t,e)}function cY(e){var t=e.parentSelector,n=e.insertBeforeSelector,r=document.querySelector(t);if(!r)return null;var s=n?document.querySelector(n):null;return n&&!s?null:{parentNode:r,insertBeforeNode:s}}function uY(e){var t=e.originalValue;e.mutations.forEach(function(n){var r=n.mutate(),s=cY(r);t=s||t}),Nh(t,e)}var dY=function(t){return t.innerHTML},fY=function(t,n){return t.innerHTML=n};function nC(e){var t=Ih(e);return t.html||(t.html=Ch(e,"html",dY,fY,iY)),t.html}var hY=function(t){return{parentNode:t.parentElement,insertBeforeNode:t.nextElementSibling}},pY=function(t,n){n.insertBeforeNode&&!n.parentNode.contains(n.insertBeforeNode)||n.parentNode.insertBefore(t,n.insertBeforeNode)};function rC(e){var t=Ih(e);return t.position||(t.position=Ch(e,"position",hY,pY,uY)),t.position}var mY=function(t,n){return n?t.className=n:t.removeAttribute("class")},gY=function(t){return t.className};function sC(e){var t=Ih(e);return t.classes||(t.classes=Ch(e,"class",gY,mY,aY)),t.classes}var yY=function(t){return function(n){var r;return(r=n.getAttribute(t))!=null?r:null}},bY=function(t){return function(n,r){return r!==null?n.setAttribute(t,r):n.removeAttribute(t)}};function oC(e,t){var n=Ih(e);return n.attributes[t]||(n.attributes[t]=Ch(e,t,yY(t),bY(t),lY)),n.attributes[t]}function vY(e,t){var n=_f.get(e);if(n)if(t==="html"){var r,s;(r=n.html)==null||(s=r.observer)==null||s.disconnect(),delete n.html}else if(t==="class"){var o,l;(o=n.classes)==null||(l=o.observer)==null||l.disconnect(),delete n.classes}else if(t==="position"){var c,u;(c=n.position)==null||(u=c.observer)==null||u.disconnect(),delete n.position}else{var f,h,p;(f=n.attributes)==null||(h=f[t])==null||(p=h.observer)==null||p.disconnect(),delete n.attributes[t]}}var Rd;function wY(e){return Rd||(Rd=document.createElement("div")),Rd.innerHTML=e,Rd.innerHTML}function Td(e,t,n){if(n.isDirty){n.isDirty=!1;var r=n.virtualValue;n.mutations.length||vY(e,t),n.setValue(e,r)}}function _Y(e,t){e.html&&Td(t,"html",e.html),e.classes&&Td(t,"class",e.classes),e.position&&Td(t,"position",e.position),Object.keys(e.attributes).forEach(function(n){Td(t,n,e.attributes[n])})}function Gk(){_f.forEach(_Y)}function SY(e,t){var n=null;e.kind==="html"?n=nC(t):e.kind==="class"?n=sC(t):e.kind==="attribute"?n=oC(t,e.attribute):e.kind==="position"&&(n=rC(t)),n&&(n.mutations.push(e),n.mutationRunner(n))}function EY(e,t){var n=null;if(e.kind==="html"?n=nC(t):e.kind==="class"?n=sC(t):e.kind==="attribute"?n=oC(t,e.attribute):e.kind==="position"&&(n=rC(t)),!!n){var r=n.mutations.indexOf(e);r!==-1&&n.mutations.splice(r,1),n.mutationRunner(n)}}function iC(e){if(!(e.kind==="position"&&e.elements.size===1)){var t=new Set(e.elements),n=document.querySelectorAll(e.selector);n.forEach(function(r){t.has(r)||(e.elements.add(r),SY(e,r))})}}function kY(e){e.elements.forEach(function(t){return EY(e,t)}),e.elements.clear(),Vv.delete(e)}function Vk(){Vv.forEach(iC)}var Lg;function AY(){typeof document>"u"||(Lg||(Lg=new MutationObserver(function(){Vk()})),Vk(),Lg.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}))}AY();function Lh(e){return typeof document>"u"?Gv:(Vv.add(e),iC(e),{revert:function(){kY(e)}})}function Gy(e,t){return Lh({kind:"html",elements:new Set,mutate:t,selector:e})}function aC(e,t){return Lh({kind:"position",elements:new Set,mutate:t,selector:e})}function sc(e,t){return Lh({kind:"class",elements:new Set,mutate:t,selector:e})}function Hd(e,t,n){return sY.test(t)?t==="class"||t==="className"?sc(e,function(r){var s=n(Array.from(r).join(" "));r.clear(),s&&s.split(/\s+/g).filter(Boolean).forEach(function(o){return r.add(o)})}):Lh({kind:"attribute",attribute:t,elements:new Set,mutate:n,selector:e}):Gv}function xY(e){var t=e.selector,n=e.action,r=e.value,s=e.attribute,o=e.parentSelector,l=e.insertBeforeSelector;if(s==="html"){if(n==="append")return Gy(t,function(c){return c+(r??"")});if(n==="set")return Gy(t,function(){return r??""})}else if(s==="class"){if(n==="append")return sc(t,function(c){r&&c.add(r)});if(n==="remove")return sc(t,function(c){r&&c.delete(r)});if(n==="set")return sc(t,function(c){c.clear(),r&&c.add(r)})}else if(s==="position"){if(n==="set"&&o)return aC(t,function(){return{insertBeforeSelector:l,parentSelector:o}})}else{if(n==="append")return Hd(t,s,function(c){return c!==null?c+(r??""):r??""});if(n==="set")return Hd(t,s,function(){return r??""});if(n==="remove")return Hd(t,s,function(){return null})}return Gv}var RY={html:Gy,classes:sc,attribute:Hd,position:aC,declarative:xY};const Fg={};function $o(e,t,n){n=n||{};for(const[r,s]of Object.entries(t))switch(r){case"$or":if(!Pk(e,s,n))return!1;break;case"$nor":if(Pk(e,s,n))return!1;break;case"$and":if(!LY(e,s,n))return!1;break;case"$not":if($o(e,s,n))return!1;break;default:if(!Ac(s,TY(e,r),n))return!1}return!0}function TY(e,t){const n=t.split(".");let r=e;for(let s=0;s0&&t.filter(n=>n[0]==="$").length===t.length}function IY(e){if(e===null)return"null";if(Array.isArray(e))return"array";const t=typeof e;return["string","number","boolean","object","undefined"].includes(t)?t:"unknown"}function CY(e,t,n){if(!Array.isArray(e))return!1;const r=lC(t)?s=>Ac(t,s,n):s=>$o(s,t,n);for(let s=0;stypeof s=="string"?s.toLowerCase():s;return Array.isArray(e)?e.some(s=>t.some(o=>r(s)===r(o))):t.some(s=>r(e)===r(s))}return Array.isArray(e)?e.some(r=>t.includes(r)):t.includes(e)}function Wk(e,t,n,r=!1){if(!Array.isArray(e))return!1;for(let s=0;sDn(n);case"$vgte":return Dn(t)>=Dn(n);case"$vlt":return Dn(t)n;case"$gte":return t>=n;case"$exists":return n?t!=null:t==null;case"$in":return Array.isArray(n)?Ri(t,n):!1;case"$ini":return Array.isArray(n)?Ri(t,n,!0):!1;case"$inGroup":return Ri(t,r[n]||[]);case"$notInGroup":return!Ri(t,r[n]||[]);case"$nin":return Array.isArray(n)?!Ri(t,n):!1;case"$nini":return Array.isArray(n)?!Ri(t,n,!0):!1;case"$not":return!Ac(n,t,r);case"$size":return Array.isArray(t)?Ac(n,t.length,r):!1;case"$elemMatch":return CY(t,n,r);case"$all":return Array.isArray(n)?Wk(t,n,r):!1;case"$alli":return Array.isArray(n)?Wk(t,n,r,!0):!1;case"$regex":try{return Uk(n).test(t)}catch{return!1}case"$regexi":try{return Uk(n,!0).test(t)}catch{return!1}case"$type":return IY(t)===n;default:return!1}}function Pk(e,t,n){if(!t.length)return!0;for(let r=0;rt.set(r,n)),e.user.forcedFeatureValues&&e.user.forcedFeatureValues.forEach((n,r)=>t.set(r,n)),t}function MY(e){return e.global.forcedVariations&&e.user.forcedVariations?{...e.global.forcedVariations,...e.user.forcedVariations}:e.global.forcedVariations?e.global.forcedVariations:e.user.forcedVariations?e.user.forcedVariations:{}}async function Ki(e){try{await e()}catch{}}function cC(e,t,n){if(e.user.trackedExperiments){const s=Py(t,n);if(e.user.trackedExperiments.has(s))return[];e.user.trackedExperiments.add(s)}e.user.enableDevMode&&e.user.devLogs&&e.user.devLogs.push({experiment:t,result:n,timestamp:Date.now().toString(),logType:"experiment"});const r=[];if(e.global.trackingCallback){const s=e.global.trackingCallback;r.push(Ki(()=>s(t,n,e.user)))}if(e.user.trackingCallback){const s=e.user.trackingCallback;r.push(Ki(()=>s(t,n)))}if(e.global.eventLogger){const s=e.global.eventLogger;r.push(Ki(()=>s(OY,{experimentId:t.key,variationId:n.key,hashAttribute:n.hashAttribute,hashValue:n.hashValue},e.user)))}return r}function BY(e,t,n){if(e.user.trackedFeatureUsage){const r=JSON.stringify(n.value);if(e.user.trackedFeatureUsage[t]===r)return;e.user.trackedFeatureUsage[t]=r,e.user.enableDevMode&&e.user.devLogs&&e.user.devLogs.push({featureKey:t,result:n,timestamp:Date.now().toString(),logType:"feature"})}if(e.global.onFeatureUsage){const r=e.global.onFeatureUsage;Ki(()=>r(t,n,e.user))}if(e.user.onFeatureUsage){const r=e.user.onFeatureUsage;Ki(()=>r(t,n))}if(e.global.eventLogger){const r=e.global.eventLogger;Ki(()=>r(FY,{feature:t,source:n.source,value:n.value,ruleId:n.source==="defaultValue"?"$default":n.ruleId||"",variationId:n.experimentResult?n.experimentResult.key:""},e.user))}}function Uv(e,t){if(t.stack.evaluatedFeatures.has(e))return xs(t,e,null,"cyclicPrerequisite");t.stack.evaluatedFeatures.add(e),t.stack.id=e;const n=DY(t);if(n.has(e))return xs(t,e,n.get(e),"override");if(!t.global.features||!t.global.features[e])return xs(t,e,null,"unknownFeature");const r=t.global.features[e];if(r.rules){const s=new Set(t.stack.evaluatedFeatures);e:for(const o of r.rules){if(o.parentConditions)for(const u of o.parentConditions){t.stack.evaluatedFeatures=new Set(s);const f=Uv(u.id,t);if(f.source==="cyclicPrerequisite")return xs(t,e,null,"cyclicPrerequisite");const h={value:f.value};if(!$o(h,u.condition||{})){if(u.gate)return xs(t,e,null,"prerequisite");continue e}}if(o.filters&&fC(o.filters,t))continue;if("force"in o){if(o.condition&&!dC(o.condition,t)||!GY(t,o.seed||e,o.hashAttribute,t.user.saveStickyBucketAssignmentDoc&&!o.disableStickyBucketing?o.fallbackAttribute:void 0,o.range,o.coverage,o.hashVersion))continue;return o.tracks&&o.tracks.forEach(u=>{!cC(t,u.experiment,u.result).length&&t.global.saveDeferredTrack&&t.global.saveDeferredTrack({experiment:u.experiment,result:u.result})}),xs(t,e,o.force,"force",o.id)}if(!o.variations)continue;const l={variations:o.variations,key:o.key||e};"coverage"in o&&(l.coverage=o.coverage),o.weights&&(l.weights=o.weights),o.hashAttribute&&(l.hashAttribute=o.hashAttribute),o.fallbackAttribute&&(l.fallbackAttribute=o.fallbackAttribute),o.disableStickyBucketing&&(l.disableStickyBucketing=o.disableStickyBucketing),o.bucketVersion!==void 0&&(l.bucketVersion=o.bucketVersion),o.minBucketVersion!==void 0&&(l.minBucketVersion=o.minBucketVersion),o.namespace&&(l.namespace=o.namespace),o.meta&&(l.meta=o.meta),o.ranges&&(l.ranges=o.ranges),o.name&&(l.name=o.name),o.phase&&(l.phase=o.phase),o.seed&&(l.seed=o.seed),o.hashVersion&&(l.hashVersion=o.hashVersion),o.filters&&(l.filters=o.filters),o.condition&&(l.condition=o.condition);const{result:c}=Vy(l,e,t);if(t.global.onExperimentEval&&t.global.onExperimentEval(l,c),c.inExperiment&&!c.passthrough)return xs(t,e,c.value,"experiment",o.id,l,c)}}return xs(t,e,r.defaultValue===void 0?null:r.defaultValue,"defaultValue")}function Vy(e,t,n){const r=e.key,s=e.variations.length;if(s<2)return{result:at(n,e,-1,!1,t)};if(n.global.enabled===!1||n.user.enabled===!1)return{result:at(n,e,-1,!1,t)};if(e=VY(e,n),e.urlPatterns&&!KI(n.user.url||"",e.urlPatterns))return{result:at(n,e,-1,!1,t)};const o=$$(r,n.user.url||"",s);if(o!==null)return{result:at(n,e,o,!1,t)};const l=MY(n);if(r in l){const _=l[r];return{result:at(n,e,_,!1,t)}}if(e.status==="draft"||e.active===!1)return{result:at(n,e,-1,!1,t)};const{hashAttribute:c,hashValue:u}=Do(n,e.hashAttribute,n.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing?e.fallbackAttribute:void 0);if(!u)return{result:at(n,e,-1,!1,t)};let f=-1,h=!1,p=!1;if(n.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing){const{variation:_,versionIsBlocked:E}=PY({ctx:n,expKey:e.key,expBucketVersion:e.bucketVersion,expHashAttribute:e.hashAttribute,expFallbackAttribute:e.fallbackAttribute,expMinBucketVersion:e.minBucketVersion,expMeta:e.meta});h=_>=0,f=_,p=!!E}if(!h){if(e.filters){if(fC(e.filters,n))return{result:at(n,e,-1,!1,t)}}else if(e.namespace&&!G$(u,e.namespace))return{result:at(n,e,-1,!1,t)};if(e.include&&!Y$(e.include))return{result:at(n,e,-1,!1,t)};if(e.condition&&!dC(e.condition,n))return{result:at(n,e,-1,!1,t)};if(e.parentConditions){const _=new Set(n.stack.evaluatedFeatures);for(const E of e.parentConditions){n.stack.evaluatedFeatures=new Set(_);const A=Uv(E.id,n);if(A.source==="cyclicPrerequisite")return{result:at(n,e,-1,!1,t)};const x={value:A.value};if(!$o(x,E.condition||{}))return{result:at(n,e,-1,!1,t)}}}if(e.groups&&!WY(e.groups,n))return{result:at(n,e,-1,!1,t)}}if(e.url&&!UY(e.url,n))return{result:at(n,e,-1,!1,t)};const g=Th(e.seed||r,u,e.hashVersion||1);if(g===null)return{result:at(n,e,-1,!1,t)};if(!h){const _=e.ranges||j$(s,e.coverage===void 0?1:e.coverage,e.weights);f=V$(g,_)}if(p)return{result:at(n,e,-1,!1,t,void 0,!0)};if(f<0)return{result:at(n,e,-1,!1,t)};if("force"in e)return{result:at(n,e,e.force===void 0?-1:e.force,!1,t)};if(n.global.qaMode||n.user.qaMode)return{result:at(n,e,-1,!1,t)};if(e.status==="stopped")return{result:at(n,e,-1,!1,t)};const b=at(n,e,f,!0,t,g,h);if(n.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing){const{changed:_,key:E,doc:A}=$Y(n,c,wf(u),{[Uy(e.key,e.bucketVersion)]:b.key});_&&(n.user.stickyBucketAssignmentDocs=n.user.stickyBucketAssignmentDocs||{},n.user.stickyBucketAssignmentDocs[E]=A,n.user.saveStickyBucketAssignmentDoc(A))}const w=cC(n,e,b);w.length===0&&n.global.saveDeferredTrack&&n.global.saveDeferredTrack({experiment:e,result:b});const S=w.length?w.length===1?w[0]:Promise.all(w).then(()=>{}):void 0;return"changeId"in e&&e.changeId&&n.global.recordChangeId&&n.global.recordChangeId(e.changeId),{result:b,trackingCall:S}}function xs(e,t,n,r,s,o,l){const c={value:n,on:!!n,off:!n,source:r,ruleId:s||""};return o&&(c.experiment=o),l&&(c.experimentResult=l),r!=="override"&&BY(e,t,c),c}function uC(e){return{...e.user.attributes,...e.user.attributeOverrides}}function dC(e,t){return $o(uC(t),e,t.global.savedGroups||{})}function fC(e,t){return e.some(n=>{const{hashValue:r}=Do(t,n.attribute);if(!r)return!0;const s=Th(n.seed,r,n.hashVersion||2);return s===null?!0:!n.ranges.some(o=>Fv(s,o))})}function GY(e,t,n,r,s,o,l){if(!s&&o===void 0)return!0;if(!s&&o===0)return!1;const{hashValue:c}=Do(e,n,r);if(!c)return!1;const u=Th(t,c,l||1);return u===null?!1:s?Fv(u,s):o!==void 0?u<=o:!0}function at(e,t,n,r,s,o,l){let c=!0;(n<0||n>=t.variations.length)&&(n=0,c=!1);const{hashAttribute:u,hashValue:f}=Do(e,t.hashAttribute,e.user.saveStickyBucketAssignmentDoc&&!t.disableStickyBucketing?t.fallbackAttribute:void 0),h=t.meta?t.meta[n]:{},p={key:h.key||""+n,featureId:s,inExperiment:c,hashUsed:r,variationId:n,value:t.variations[n],hashAttribute:u,hashValue:f,stickyBucketUsed:!!l};return h.name&&(p.name=h.name),o!==void 0&&(p.bucket=o),h.passthrough&&(p.passthrough=h.passthrough),p}function VY(e,t){const n=e.key,r=t.global.overrides;return r&&r[n]&&(e=Object.assign({},e,r[n]),typeof e.url=="string"&&(e.url=HI(e.url))),e}function Do(e,t,n){let r=t||"id",s="";const o=uC(e);return o[r]&&(s=o[r]),!s&&n&&(o[n]&&(s=o[n]),s&&(r=n)),{hashAttribute:r,hashValue:s}}function UY(e,t){const n=t.user.url;if(!n)return!1;const r=n.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!(e.test(n)||e.test(r))}function WY(e,t){const n=t.global.groups||{};for(let r=0;r0)for(let p=0;pp.key===f);return h<0?{variation:-1}:{variation:h}}function Uy(e,t){return t=t||0,`${e}__${t}`}function Wy(e,t){return`${e}||${t}`}function jY(e,t,n){if(!e.user.stickyBucketAssignmentDocs)return{};const{hashAttribute:r,hashValue:s}=Do(e,t),o=Wy(r,wf(s)),{hashAttribute:l,hashValue:c}=Do(e,n),u=c?Wy(l,wf(c)):null,f={};return u&&e.user.stickyBucketAssignmentDocs[u]&&Object.assign(f,e.user.stickyBucketAssignmentDocs[u].assignments||{}),e.user.stickyBucketAssignmentDocs[o]&&Object.assign(f,e.user.stickyBucketAssignmentDocs[o].assignments||{}),f}function $Y(e,t,n,r){const s=Wy(t,n),o=e.user.stickyBucketAssignmentDocs&&e.user.stickyBucketAssignmentDocs[s]?e.user.stickyBucketAssignmentDocs[s].assignments||{}:{},l={...o,...r},c=JSON.stringify(o)!==JSON.stringify(l);return{key:s,doc:{attributeName:t,attributeValue:n,assignments:l},changed:c}}function YY(e,t){const n=new Set,r=t&&t.features?t.features:e.global.features||{},s=t&&t.experiments?t.experiments:e.global.experiments||[];return Object.keys(r).forEach(o=>{const l=r[o];if(l.rules)for(const c of l.rules)c.variations&&(n.add(c.hashAttribute||"id"),c.fallbackAttribute&&n.add(c.fallbackAttribute))}),s.map(o=>{n.add(o.hashAttribute||"id"),o.fallbackAttribute&&n.add(o.fallbackAttribute)}),Array.from(n)}async function ZY(e,t,n){const r=hC(e,n);return t.getAllAssignments(r)}function hC(e,t){const n={};return YY(e,t).forEach(s=>{const{hashValue:o}=Do(e,s);n[s]=wf(o)}),n}async function XY(e,t,n){if(e={...e},e.encryptedFeatures){try{e.features=JSON.parse(await rc(e.encryptedFeatures,t,n))}catch{}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await rc(e.encryptedExperiments,t,n))}catch{}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await rc(e.encryptedSavedGroups,t,n))}catch{}delete e.encryptedSavedGroups}return e}function zY(e){const t=e.apiHost||"https://cdn.growthbook.io";return{apiHost:t.replace(/\/*$/,""),streamingHost:(e.streamingHost||t).replace(/\/*$/,""),apiRequestHeaders:e.apiHostRequestHeaders,streamingHostRequestHeaders:e.streamingHostRequestHeaders}}function Py(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}const Ti=typeof window<"u"&&typeof document<"u",HY=Z$();class KY{constructor(t){if(t=t||{},this.version=HY,this._options=this.context=t,this._renderer=t.renderer||null,this._trackedExperiments=new Set,this._completedChangeIds=new Set,this._trackedFeatures={},this.debug=!!t.debug,this._subscriptions=new Set,this.ready=!1,this._assigned=new Map,this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._initialized=!1,this._redirectedUrl="",this._deferredTrackingCalls=new Map,this._autoExperimentsAllowed=!t.disableExperimentsOnLoad,this._destroyCallbacks=[],this.logs=[],this.log=this.log.bind(this),this._saveDeferredTrack=this._saveDeferredTrack.bind(this),this._onExperimentEval=this._onExperimentEval.bind(this),this._fireSubscriptions=this._fireSubscriptions.bind(this),this._recordChangedId=this._recordChangedId.bind(this),t.remoteEval){if(t.decryptionKey)throw new Error("Encryption is not available for remoteEval");if(!t.clientKey)throw new Error("Missing clientKey");let n=!1;try{n=!!new URL(t.apiHost||"").hostname.match(/growthbook\.io$/i)}catch{}if(n)throw new Error("Cannot use remoteEval on GrowthBook Cloud")}else if(t.cacheKeyAttributes)throw new Error("cacheKeyAttributes are only used for remoteEval");if(t.stickyBucketService){const n=t.stickyBucketService;this._saveStickyBucketAssignmentDoc=r=>n.saveAssignments(r)}if(t.plugins)for(const n of t.plugins)n(this);if(t.features&&(this.ready=!0),Ti&&t.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),t.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),this._options.stickyBucketService&&this._options.stickyBucketAssignmentDocs)for(const n in this._options.stickyBucketAssignmentDocs){const r=this._options.stickyBucketAssignmentDocs[n];r&&this._options.stickyBucketService.saveAssignments(r).catch(()=>{})}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(t){this._payload=t;const n=await XY(t,this._options.decryptionKey);this._decryptedPayload=n,await this.refreshStickyBuckets(n),n.features&&(this._options.features=n.features),n.savedGroups&&(this._options.savedGroups=n.savedGroups),n.experiments&&(this._options.experiments=n.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(t){this._initialized=!0;const n=t.payload;if(n.encryptedExperiments||n.encryptedFeatures)throw new Error("initSync does not support encrypted payloads");return this._options.stickyBucketService&&!this._options.stickyBucketAssignmentDocs&&(this._options.stickyBucketAssignmentDocs=this.generateStickyBucketAssignmentDocsSync(this._options.stickyBucketService,n)),this._payload=n,this._decryptedPayload=n,n.features&&(this._options.features=n.features),n.experiments&&(this._options.experiments=n.experiments,this._updateAllAutoExperiments()),this.ready=!0,Ng(this,t),this}async init(t){if(this._initialized=!0,t=t||{},t.cacheSettings&&z$(t.cacheSettings),t.payload)return await this.setPayload(t.payload),Ng(this,t),{success:!0,source:"init"};{const{data:n,...r}=await this._refresh({...t,allowStale:!0});return Ng(this,t),await this.setPayload(n||{}),r}}async loadFeatures(t){t=t||{},await this.init({skipCache:t.skipCache,timeout:t.timeout,streaming:(this._options.backgroundSync??!0)&&(t.autoRefresh||this._options.subscribeToChanges)})}async refreshFeatures(t){const n=await this._refresh({...t||{},allowStale:!1});n.data&&await this.setPayload(n.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){return zY(this._options)}getClientKey(){return this._options.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._options.remoteEval||!1}getCacheKeyAttributes(){return this._options.cacheKeyAttributes}async _refresh({timeout:t,skipCache:n,allowStale:r,streaming:s}){if(!this._options.clientKey)throw new Error("Missing clientKey");return H$({instance:this,timeout:t,skipCache:n||this._options.disableCache,allowStale:r,backgroundSync:s??this._options.backgroundSync??!0})}_render(){if(this._renderer)try{this._renderer()}catch{}}setFeatures(t){this._options.features=t,this.ready=!0,this._render()}async setEncryptedFeatures(t,n,r){const s=await rc(t,n||this._options.decryptionKey,r);this.setFeatures(JSON.parse(s))}setExperiments(t){this._options.experiments=t,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(t,n,r){const s=await rc(t,n||this._options.decryptionKey,r);this.setExperiments(JSON.parse(s))}async setAttributes(t){if(this._options.attributes=t,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async updateAttributes(t){return this.setAttributes({...this._options.attributes,...t})}async setAttributeOverrides(t){if(this._options.attributeOverrides=t,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async setForcedVariations(t){if(this._options.forcedVariations=t||{},this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}setForcedFeatures(t){this._options.forcedFeatureValues=t,this._render()}async setURL(t){if(t!==this._options.url){if(this._options.url=t,this._redirectedUrl="",this._options.remoteEval){await this._refreshForRemoteEval(),this._updateAllAutoExperiments(!0);return}this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._options.attributes,...this._options.attributeOverrides}}getForcedVariations(){return this._options.forcedVariations||{}}getForcedFeatures(){return this._options.forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._options.stickyBucketAssignmentDocs||{}}getUrl(){return this._options.url||""}getFeatures(){return this._options.features||{}}getExperiments(){return this._options.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(t){return this._subscriptions.add(t),()=>{this._subscriptions.delete(t)}}async _refreshForRemoteEval(){if(!this._options.remoteEval||!this._initialized)return;const t=await this._refresh({allowStale:!1});t.data&&await this.setPayload(t.data)}getAllResults(){return new Map(this._assigned)}onDestroy(t){this._destroyCallbacks.push(t)}isDestroyed(){return!!this._destroyed}destroy(t){t=t||{},this._destroyed=!0,this._destroyCallbacks.forEach(n=>{try{n()}catch{}}),this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._destroyCallbacks=[],this._payload=void 0,this._saveStickyBucketAssignmentDoc=void 0,J$(this),t.destroyAllStreams&&tC(),this.logs=[],Ti&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach(n=>{n.undo()}),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(t){this._renderer=t}forceVariation(t,n){if(this._options.forcedVariations=this._options.forcedVariations||{},this._options.forcedVariations[t]=n,this._options.remoteEval){this._refreshForRemoteEval();return}this._updateAllAutoExperiments(),this._render()}run(t){const{result:n}=Vy(t,null,this._getEvalContext());return this._onExperimentEval(t,n),n}triggerExperiment(t){return this._triggeredExpKeys.add(t),this._options.experiments?this._options.experiments.filter(r=>r.key===t).map(r=>this._runAutoExperiment(r)).filter(r=>r!==null):null}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_getEvalContext(){return{user:this._getUserContext(),global:this._getGlobalContext(),stack:{evaluatedFeatures:new Set}}}_getUserContext(){return{attributes:this._options.user?{...this._options.user,...this._options.attributes}:this._options.attributes,enableDevMode:this._options.enableDevMode,blockedChangeIds:this._options.blockedChangeIds,stickyBucketAssignmentDocs:this._options.stickyBucketAssignmentDocs,url:this._getContextUrl(),forcedVariations:this._options.forcedVariations,forcedFeatureValues:this._options.forcedFeatureValues,attributeOverrides:this._options.attributeOverrides,saveStickyBucketAssignmentDoc:this._saveStickyBucketAssignmentDoc,trackingCallback:this._options.trackingCallback,onFeatureUsage:this._options.onFeatureUsage,devLogs:this.logs,trackedExperiments:this._trackedExperiments,trackedFeatureUsage:this._trackedFeatures}}_getGlobalContext(){return{features:this._options.features,experiments:this._options.experiments,log:this.log,enabled:this._options.enabled,qaMode:this._options.qaMode,savedGroups:this._options.savedGroups,groups:this._options.groups,overrides:this._options.overrides,onExperimentEval:this._onExperimentEval,recordChangeId:this._recordChangedId,saveDeferredTrack:this._saveDeferredTrack,eventLogger:this._options.eventLogger}}_runAutoExperiment(t,n){const r=this._activeAutoExperiments.get(t);if(t.manual&&!this._triggeredExpKeys.has(t.key)&&!r)return null;const s=this._isAutoExperimentBlockedByContext(t);let o,l;s?o=at(this._getEvalContext(),t,-1,!1,""):({result:o,trackingCall:l}=Vy(t,null,this._getEvalContext()),this._onExperimentEval(t,o));const c=JSON.stringify(o.value);if(!n&&o.inExperiment&&r&&r.valueHash===c)return o;if(r&&this._undoActiveAutoExperiment(t),o.inExperiment){const u=Cg(t);if(u==="redirect"&&o.value.urlRedirect&&t.urlPatterns){const f=t.persistQueryString?X$(this._getContextUrl(),o.value.urlRedirect):o.value.urlRedirect;if(KI(f,t.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:t.key}),o;this._redirectedUrl=f;const{navigate:h,delay:p}=this._getNavigateFunction();if(h)if(Ti)Promise.all([...l?[JI(l,this._options.maxNavigateDelay??1e3)]:[],new Promise(g=>window.setTimeout(g,this._options.navigateDelay??p))]).then(()=>{try{h(f)}catch{}});else try{h(f)}catch{}}else if(u==="visual"){const f=this._options.applyDomChangesCallback?this._options.applyDomChangesCallback(o.value):this._applyDOMChanges(o.value);f&&this._activeAutoExperiments.set(t,{undo:f,valueHash:c})}}return o}_undoActiveAutoExperiment(t){const n=this._activeAutoExperiments.get(t);n&&(n.undo(),this._activeAutoExperiments.delete(t))}_updateAllAutoExperiments(t){if(!this._autoExperimentsAllowed)return;const n=this._options.experiments||[],r=new Set(n);this._activeAutoExperiments.forEach((s,o)=>{r.has(o)||(s.undo(),this._activeAutoExperiments.delete(o))});for(const s of n){const o=this._runAutoExperiment(s,t);if(o&&o.inExperiment&&Cg(s)==="redirect")break}}_onExperimentEval(t,n){const r=this._assigned.get(t.key);this._assigned.set(t.key,{experiment:t,result:n}),this._subscriptions.size>0&&this._fireSubscriptions(t,n,r)}_fireSubscriptions(t,n,r){(!r||r.result.inExperiment!==n.inExperiment||r.result.variationId!==n.variationId)&&this._subscriptions.forEach(s=>{try{s(t,n)}catch{}})}_recordChangedId(t){this._completedChangeIds.add(t)}isOn(t){return this.evalFeature(t).on}isOff(t){return this.evalFeature(t).off}getFeatureValue(t,n){const r=this.evalFeature(t).value;return r===null?n:r}feature(t){return this.evalFeature(t)}evalFeature(t){return Uv(t,this._getEvalContext())}log(t,n){this.debug&&this._options.log&&this._options.log(t,n)}getDeferredTrackingCalls(){return Array.from(this._deferredTrackingCalls.values())}setDeferredTrackingCalls(t){this._deferredTrackingCalls=new Map(t.filter(n=>n&&n.experiment&&n.result).map(n=>[Py(n.experiment,n.result),n]))}async fireDeferredTrackingCalls(){if(!this._options.trackingCallback)return;const t=[];this._deferredTrackingCalls.forEach(n=>{!n||!n.experiment||!n.result||t.push(this._options.trackingCallback(n.experiment,n.result))}),this._deferredTrackingCalls.clear(),await Promise.all(t)}setTrackingCallback(t){this._options.trackingCallback=t,this.fireDeferredTrackingCalls()}setFeatureUsageCallback(t){this._options.onFeatureUsage=t}setEventLogger(t){this._options.eventLogger=t}async logEvent(t,n){if(!this._destroyed&&(this._options.enableDevMode&&this.logs.push({eventName:t,properties:n,timestamp:Date.now().toString(),logType:"event"}),this._options.eventLogger))try{await this._options.eventLogger(t,n||{},this._getUserContext())}catch{}}_saveDeferredTrack(t){this._deferredTrackingCalls.set(Py(t.experiment,t.result),t)}_getContextUrl(){return this._options.url||(Ti?window.location.href:"")}_isAutoExperimentBlockedByContext(t){const n=Cg(t);if(n==="visual"){if(this._options.disableVisualExperiments||this._options.disableJsInjection&&t.variations.some(r=>r.js))return!0}else if(n==="redirect"){if(this._options.disableUrlRedirectExperiments)return!0;try{const r=new URL(this._getContextUrl());for(const s of t.variations){if(!s||!s.urlRedirect)continue;const o=new URL(s.urlRedirect);if(this._options.disableCrossOriginUrlRedirectExperiments&&(o.protocol!==r.protocol||o.host!==r.host))return!0}}catch(r){return this.log("Error parsing current or redirect URL",{id:t.key,error:r}),!0}}else return!0;return!!(t.changeId&&(this._options.blockedChangeIds||[]).includes(t.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._options.navigate?{navigate:this._options.navigate,delay:0}:Ti?{navigate:t=>{window.location.replace(t)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(t){if(!Ti)return;const n=[];if(t.css){const r=document.createElement("style");r.innerHTML=t.css,document.head.appendChild(r),n.push(()=>r.remove())}if(t.js){const r=document.createElement("script");r.innerHTML=t.js,this._options.jsInjectionNonce&&(r.nonce=this._options.jsInjectionNonce),document.head.appendChild(r),n.push(()=>r.remove())}return t.domMutations&&t.domMutations.forEach(r=>{n.push(RY.declarative(r).revert)}),()=>{n.forEach(r=>r())}}async refreshStickyBuckets(t){if(this._options.stickyBucketService){const n=this._getEvalContext(),r=await ZY(n,this._options.stickyBucketService,t);this._options.stickyBucketAssignmentDocs=r}}generateStickyBucketAssignmentDocsSync(t,n){if(!("getAllAssignmentsSync"in t))return;const r=this._getEvalContext(),s=hC(r,n);return t.getAllAssignmentsSync(s)}inDevMode(){return!!this._options.enableDevMode}}const pC=U.createContext({});function JY(e){return QY().evalFeature(e)}function QY(){const{growthbook:e}=U.useContext(pC);if(!e)throw new Error("Missing or invalid GrowthBookProvider");return e}const qY=({children:e,growthbook:t})=>{const[n,r]=U.useState(0);return U.useEffect(()=>{if(!(!t||!t.setRenderer))return t.setRenderer(()=>{r(s=>s+1)}),()=>{t.setRenderer(()=>{})}},[t]),U.createElement(pC.Provider,{value:{growthbook:t}},e)};var Se;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(Se||(Se={}));function Wv(e,t){return e!==null&&typeof e=="object"&&"$typeName"in e&&typeof e.$typeName=="string"?t===void 0?!0:t.typeName===e.$typeName:!1}var M;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(M||(M={}));function eZ(){let e=0,t=0;for(let r=0;r<28;r+=7){let s=this.buf[this.pos++];if(e|=(s&127)<>4,(n&128)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let s=this.buf[this.pos++];if(t|=(s&127)<>>o,c=!(!(l>>>7)&&t==0),u=(c?l|128:l)&255;if(n.push(u),!c)return}const r=e>>>28&15|(t&7)<<4,s=t>>3!=0;if(n.push((s?r|128:r)&255),!!s){for(let o=3;o<31;o=o+7){const l=t>>>o,c=!!(l>>>7),u=(c?l|128:l)&255;if(n.push(u),!c)return}n.push(t>>>31&1)}}const Kd=4294967296;function jk(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,s=0;function o(l,c){const u=Number(e.slice(l,c));s*=n,r=r*n+u,r>=Kd&&(s=s+(r/Kd|0),r=r%Kd)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?gC(r,s):Pv(r,s)}function tZ(e,t){let n=Pv(e,t);const r=n.hi&2147483648;r&&(n=gC(n.lo,n.hi));const s=mC(n.lo,n.hi);return r?"-"+s:s}function mC(e,t){if({lo:e,hi:t}=nZ(e,t),t<=2097151)return String(Kd*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,s=t>>16&65535;let o=n+r*6777216+s*6710656,l=r+s*8147497,c=s*2;const u=1e7;return o>=u&&(l+=Math.floor(o/u),o%=u),l>=u&&(c+=Math.floor(l/u),l%=u),c.toString()+$k(l)+$k(o)}function nZ(e,t){return{lo:e>>>0,hi:t>>>0}}function Pv(e,t){return{lo:e|0,hi:t|0}}function gC(e,t){return t=~t,e?e=~e+1:t+=1,Pv(e,t)}const $k=e=>{const t=String(e);return"0000000".slice(t.length)+t};function jy(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function rZ(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;(e&128)!==0&&n<10;n++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}var Yk={};const rt=sZ();function sZ(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(!!globalThis.Deno||typeof process!="object"||typeof Yk!="object"||Yk.BUF_BIGINT_DISABLE!=="1")){const n=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),s=BigInt("0"),o=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){const c=typeof l=="bigint"?l:BigInt(l);if(c>r||co||cr.localName===n)}function iZ(e,t){const n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(t.presence!=yC)return e[n]!==void 0&&Object.prototype.hasOwnProperty.call(e,n);switch(t.fieldKind){case"list":return e[n].length>0;case"map":return Object.keys(e[n]).length>0;case"scalar":return!oZ(t.scalar,e[n]);case"enum":return e[n]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function xc(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0}function vC(e,t){if(t.oneof){const n=e[t.oneof.localName];return n.case===t.localName?n.value:void 0}return e[t.localName]}function wC(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function aZ(e,t){const n=t.localName;if(t.oneof){const r=t.oneof.localName;e[r].case===n&&(e[r]={case:void 0})}else if(t.presence!=yC)delete e[n];else switch(t.fieldKind){case"map":e[n]={};break;case"list":e[n]=[];break;case"enum":e[n]=t.enum.values[0].number;break;case"scalar":e[n]=pa(t.scalar,t.longAsString);break}}function Ws(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function jv(e,t){var n,r,s,o;if(Ws(e)&&Zr in e&&"add"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const l=t,c=e.field();return l.listKind==c.listKind&&l.scalar===c.scalar&&((n=l.message)===null||n===void 0?void 0:n.typeName)===((r=c.message)===null||r===void 0?void 0:r.typeName)&&((s=l.enum)===null||s===void 0?void 0:s.typeName)===((o=c.enum)===null||o===void 0?void 0:o.typeName)}return!0}return!1}function $v(e,t){var n,r,s,o;if(Ws(e)&&Zr in e&&"has"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const l=t,c=e.field();return l.mapKey===c.mapKey&&l.mapKind==c.mapKind&&l.scalar===c.scalar&&((n=l.message)===null||n===void 0?void 0:n.typeName)===((r=c.message)===null||r===void 0?void 0:r.typeName)&&((s=l.enum)===null||s===void 0?void 0:s.typeName)===((o=c.enum)===null||o===void 0?void 0:o.typeName)}return!0}return!1}function Yv(e,t){return Ws(e)&&Zr in e&&"desc"in e&&Ws(e.desc)&&e.desc.kind==="message"&&(t===void 0||e.desc.typeName==t.typeName)}function lZ(e){return _C(e.$typeName)}function tu(e){const t=e.fields[0];return _C(e.typeName)&&t!==void 0&&t.fieldKind=="scalar"&&t.name=="value"&&t.number==1}function _C(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}const cZ=999,uZ=998,Jd=2;function ar(e,t){if(Wv(t,e))return t;const n=mZ(e);return t!==void 0&&dZ(e,n,t),n}function dZ(e,t,n){for(const r of e.members){let s=n[r.localName];if(s==null)continue;let o;if(r.kind=="oneof"){const l=bC(n,r);if(!l)continue;o=l,s=vC(n,l)}else o=r;switch(o.fieldKind){case"message":s=Zv(o,s);break;case"scalar":s=SC(o,s);break;case"list":s=hZ(o,s);break;case"map":s=fZ(o,s);break}wC(t,o,s)}return t}function SC(e,t){return e.scalar==M.BYTES?Xv(t):t}function fZ(e,t){if(Ws(t)){if(e.scalar==M.BYTES)return zk(t,Xv);if(e.mapKind=="message")return zk(t,n=>Zv(e,n))}return t}function hZ(e,t){if(Array.isArray(t)){if(e.scalar==M.BYTES)return t.map(Xv);if(e.listKind=="message")return t.map(n=>Zv(e,n))}return t}function Zv(e,t){if(e.fieldKind=="message"&&!e.oneof&&tu(e.message))return SC(e.message.fields[0],t);if(Ws(t)){if(e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!=="google.protobuf.Value")return t;if(!Wv(t,e.message))return ar(e.message,t)}return t}function Xv(e){return Array.isArray(e)?new Uint8Array(e):e}function zk(e,t){const n={};for(const r of Object.entries(e))n[r[0]]=t(r[1]);return n}const pZ=Symbol(),Hk=new WeakMap;function mZ(e){let t;if(gZ(e)){const n=Hk.get(e);let r,s;if(n)({prototype:r,members:s}=n);else{r={},s=new Set;for(const o of e.members)o.kind!="oneof"&&(o.fieldKind!="scalar"&&o.fieldKind!="enum"||o.presence!=Jd&&(s.add(o),r[o.localName]=Dg(o)));Hk.set(e,{prototype:r,members:s})}t=Object.create(r),t.$typeName=e.typeName;for(const o of e.members)s.has(o)||o.kind=="field"&&(o.fieldKind=="message"||(o.fieldKind=="scalar"||o.fieldKind=="enum")&&o.presence!=Jd)||(t[o.localName]=Dg(o))}else{t={$typeName:e.typeName};for(const n of e.members)(n.kind=="oneof"||n.presence==Jd)&&(t[n.localName]=Dg(n))}return t}function gZ(e){switch(e.file.edition){case cZ:return!1;case uZ:return!0;default:return e.fields.some(t=>t.presence!=Jd&&t.fieldKind!="message"&&!t.oneof)}}function Dg(e){if(e.kind=="oneof")return{case:void 0};if(e.fieldKind=="list")return[];if(e.fieldKind=="map")return{};if(e.fieldKind=="message")return pZ;const t=e.getDefaultValue();return t!==void 0?e.fieldKind=="scalar"&&e.longAsString?t.toString():t:e.fieldKind=="scalar"?pa(e.scalar,e.longAsString):e.enum.values[0].number}const yZ=["FieldValueInvalidError","FieldListRangeError","ForeignFieldError"];class kn extends Error{constructor(t,n,r="FieldValueInvalidError"){super(n),this.name=r,this.field=()=>t}}function bZ(e){return e instanceof Error&&yZ.includes(e.name)&&"field"in e&&typeof e.field=="function"}const Mg=Symbol.for("@bufbuild/protobuf/text-encoding");function zv(){if(globalThis[Mg]==null){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[Mg]={encodeUtf8(n){return e.encode(n)},decodeUtf8(n){return t.decode(n)},checkUtf8(n){try{return encodeURIComponent(n),!0}catch{return!1}}}}return globalThis[Mg]}var yt;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(yt||(yt={}));const EC=34028234663852886e22,kC=-34028234663852886e22,AC=4294967295,xC=2147483647,RC=-2147483648;class TC{constructor(t=zv().encodeUtf8){this.encodeUtf8=t,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let t=0;for(let s=0;s>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Kk(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Bg(t),jy(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.encodeUtf8(t);return this.uint32(n.byteLength),this.raw(n)}float(t){vZ(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){Kk(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Bg(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Bg(t),t=(t<<1^t>>31)>>>0,jy(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),s=rt.enc(t);return r.setInt32(0,s.lo,!0),r.setInt32(4,s.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),s=rt.uEnc(t);return r.setInt32(0,s.lo,!0),r.setInt32(4,s.hi,!0),this.raw(n)}int64(t){let n=rt.enc(t);return Og(n.lo,n.hi,this.buf),this}sint64(t){const n=rt.enc(t),r=n.hi>>31,s=n.lo<<1^r,o=(n.hi<<1|n.lo>>>31)^r;return Og(s,o,this.buf),this}uint64(t){const n=rt.uEnc(t);return Og(n.lo,n.hi,this.buf),this}}class Hv{constructor(t,n=zv().decodeUtf8){this.decodeUtf8=n,this.varint64=eZ,this.uint32=rZ,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength)}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t,n){let r=this.pos;switch(t){case yt.Varint:for(;this.buf[this.pos++]&128;);break;case yt.Bit64:this.pos+=4;case yt.Bit32:this.pos+=4;break;case yt.LengthDelimited:let s=this.uint32();this.pos+=s;break;case yt.StartGroup:for(;;){const[o,l]=this.tag();if(l===yt.EndGroup){if(n!==void 0&&o!==n)throw new Error("invalid end group tag");break}this.skip(l,o)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return rt.dec(...this.varint64())}uint64(){return rt.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,rt.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return rt.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return rt.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.decodeUtf8(this.bytes())}}function Bg(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>xC||eAC||e<0)throw new Error("invalid uint32: "+e)}function vZ(e){if(typeof e=="string"){const t=e;if(e=Number(e),Number.isNaN(e)&&t!=="NaN")throw new Error("invalid float32: "+t)}else if(typeof e!="number")throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>EC||en.number===t):Yv(t,e.message)}function IC(e,t){switch(t){case M.DOUBLE:return typeof e=="number";case M.FLOAT:return typeof e!="number"?!1:Number.isNaN(e)||!Number.isFinite(e)?!0:e>EC||exC||eAC||e<0?`${e.toFixed()} out of range`:!0;case M.BOOL:return typeof e=="boolean";case M.STRING:return typeof e!="string"?!1:zv().checkUtf8(e)||"invalid UTF8";case M.BYTES:return e instanceof Uint8Array;case M.INT64:case M.SFIXED64:case M.SINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return rt.parse(e),!0}catch{return`${e} out of range`}return!1;case M.FIXED64:case M.UINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return rt.uParse(e),!0}catch{return`${e} out of range`}return!1}}function Sf(e,t,n){return n=typeof n=="string"?`: ${n}`:`, got ${Ot(t)}`,e.scalar!==void 0?`expected ${_Z(e.scalar)}`+n:e.enum!==void 0?`expected ${e.enum.toString()}`+n:`expected ${CC(e.message)}`+n}function Ot(e){switch(typeof e){case"object":return e===null?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:jv(e)?NC(e.field()):$v(e)?LC(e.field()):Yv(e)?CC(e.desc):Wv(e)?`message ${e.$typeName}`:"object";case"string":return e.length>30?"string":`"${e.split('"').join('\\"')}"`;case"boolean":return String(e);case"number":return String(e);case"bigint":return String(e)+"n";default:return typeof e}}function CC(e){return`ReflectMessage (${e.typeName})`}function NC(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${M[e.scalar]})`}}function LC(e){switch(e.mapKind){case"message":return`ReflectMap (${M[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${M[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${M[e.mapKey]}, ${M[e.scalar]})`}}function _Z(e){switch(e){case M.STRING:return"string";case M.BOOL:return"boolean";case M.INT64:case M.SINT64:case M.SFIXED64:return"bigint (int64)";case M.UINT64:case M.FIXED64:return"bigint (uint64)";case M.BYTES:return"Uint8Array";case M.DOUBLE:return"number (float64)";case M.FLOAT:return"number (float32)";case M.FIXED32:case M.UINT32:return"number (uint32)";case M.INT32:case M.SFIXED32:case M.SINT32:return"number (int32)"}}function ur(e,t,n=!0){return new FC(e,t,n)}const Qk=new WeakMap;class FC{get sortedFields(){const t=Qk.get(this.desc);if(t)return t;const n=this.desc.fields.concat().sort((r,s)=>r.number-s.number);return Qk.set(this.desc,n),n}constructor(t,n,r=!0){this.lists=new Map,this.maps=new Map,this.check=r,this.desc=t,this.message=this[Zr]=n??ar(t),this.fields=t.fields,this.oneofs=t.oneofs,this.members=t.members}findNumber(t){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map(n=>[n.number,n]))),this._fieldsByNumber.get(t)}oneofCase(t){return Gl(this.message,t),bC(this.message,t)}isSet(t){return Gl(this.message,t),iZ(this.message,t)}clear(t){Gl(this.message,t),aZ(this.message,t)}get(t){Gl(this.message,t);const n=vC(this.message,t);switch(t.fieldKind){case"list":let r=this.lists.get(t);return(!r||r[Zr]!==n)&&this.lists.set(t,r=new SZ(t,n,this.check)),r;case"map":let s=this.maps.get(t);return(!s||s[Zr]!==n)&&this.maps.set(t,s=new EZ(t,n,this.check)),s;case"message":return Qv(t,n,this.check);case"scalar":return n===void 0?pa(t.scalar,!1):qv(t,n);case"enum":return n??t.enum.values[0].number}}set(t,n){if(Gl(this.message,t),this.check){const s=ho(t,n);if(s)throw s}let r;t.fieldKind=="message"?r=Jv(t,n):$v(n)||jv(n)?r=n[Zr]:r=ew(t,n),wC(this.message,t,r)}getUnknown(){return this.message.$unknown}setUnknown(t){this.message.$unknown=t}}function Gl(e,t){if(t.parent.typeName!==e.$typeName)throw new kn(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class SZ{field(){return this._field}get size(){return this._arr.length}constructor(t,n,r){this._field=t,this._arr=this[Zr]=n,this.check=r}get(t){const n=this._arr[t];return n===void 0?void 0:Gg(this._field,n,this.check)}set(t,n){if(t<0||t>=this._arr.length)throw new kn(this._field,`list item #${t+1}: out of range`);if(this.check){const r=Jk(this._field,t,n);if(r)throw r}this._arr[t]=qk(this._field,n)}add(t){if(this.check){const n=Jk(this._field,this._arr.length,t);if(n)throw n}this._arr.push(qk(this._field,t))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const t of this._arr)yield Gg(this._field,t,this.check)}*entries(){for(let t=0;t>4,c=l,o=2;break;case 2:r[s++]=(c&15)<<4|(l&60)>>2,c=l,o=3;break;case 3:r[s++]=(c&3)<<6|l,o=0;break}}if(o==1)throw Error("invalid base64 string");return r.subarray(0,s)}function GC(e,t="std"){const n=VC(t),r=t=="std";let s="",o=0,l,c=0;for(let u=0;u>2],c=(l&3)<<4,o=1;break;case 1:s+=n[c|l>>4],c=(l&15)<<2,o=2;break;case 2:s+=n[c|l>>6],s+=n[l&63],o=0;break}return o&&(s+=n[c],r&&(s+="=",o==1&&(s+="="))),s}let Cd,tA,Ii;function VC(e){return Cd||(Cd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),tA=Cd.slice(0,-2).concat("-","_")),e=="url"?tA:Cd}function AZ(){if(!Ii){Ii=[];const e=VC("std");for(let t=0;t"_"+t.toLowerCase())}const xZ=new Set(["constructor","toString","toJSON","valueOf"]);function Rc(e){return xZ.has(e)?e+"$":e}function nw(e){for(const t of e.field)xc(t,"jsonName")||(t.jsonName=ma(t.name));e.nestedType.forEach(nw)}function RZ(e,t){const n=e.values.find(r=>r.name===t);if(!n)throw new Error(`cannot parse ${e} default value: ${t}`);return n.number}function TZ(e,t){switch(e){case M.STRING:return t;case M.BYTES:{const n=IZ(t);if(n===!1)throw new Error(`cannot parse ${M[e]} default value: ${t}`);return n}case M.INT64:case M.SFIXED64:case M.SINT64:return rt.parse(t);case M.UINT64:case M.FIXED64:return rt.uParse(t);case M.DOUBLE:case M.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case M.BOOL:return t==="true";case M.INT32:case M.UINT32:case M.SINT32:case M.FIXED32:case M.SFIXED32:return parseInt(t,10)}}function IZ(e){const t=[],n={tail:e,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(r){if(this.tail.length>=r){const s=this.tail.substring(0,r);return this.tail=this.tail.substring(r),s}return!1}};for(;n.next();)switch(n.c){case"\\":if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const r=n.c,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,8);if(Number.isNaN(o))return!1;t.push(o);break}case"x":{const r=n.c,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;t.push(o);break}case"u":{const r=n.c,s=n.take(4);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;const l=new Uint8Array(4);new DataView(l.buffer).setInt32(0,o,!0),t.push(l[0],l[1],l[2],l[3]);break}case"U":{const r=n.c,s=n.take(8);if(s===!1)return!1;const o=rt.uEnc(r+s),l=new Uint8Array(8),c=new DataView(l.buffer);c.setInt32(0,o.lo,!0),c.setInt32(4,o.hi,!0),t.push(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7]);break}}break;default:t.push(n.c.charCodeAt(0))}return new Uint8Array(t)}function*$y(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*$y(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*$y(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function WC(...e){const t=CZ();if(!e.length)return t;if("$typeName"in e[0]&&e[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const n of e[0].file)oA(n,t);return t}if("$typeName"in e[0]){let o=function(l){const c=[];for(const u of l.dependency){if(t.getFile(u)!=null||s.has(u))continue;const f=r(u);if(!f)throw new Error(`Unable to resolve ${u}, imported by ${l.name}`);"kind"in f?t.addFile(f,!1,!0):(s.add(f.name),c.push(f))}return c.concat(...c.map(o))};const n=e[0],r=e[1],s=new Set;for(const l of[n,...o(n)].reverse())oA(l,t)}else for(const n of e)for(const r of n.files)t.addFile(r);return t}function CZ(){const e=new Map,t=new Map,n=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator](){return e.values()},get files(){return n.values()},addFile(r,s,o){if(n.set(r.proto.name,r),!s)for(const l of $y(r))this.add(l);if(o)for(const l of r.dependencies)this.addFile(l,s,o)},add(r){if(r.kind=="extension"){let s=t.get(r.extendee.typeName);s||t.set(r.extendee.typeName,s=new Map),s.set(r.number,r)}e.set(r.typeName,r)},get(r){return e.get(r)},getFile(r){return n.get(r)},getMessage(r){const s=e.get(r);return s?.kind=="message"?s:void 0},getEnum(r){const s=e.get(r);return s?.kind=="enum"?s:void 0},getExtension(r){const s=e.get(r);return s?.kind=="extension"?s:void 0},getExtensionFor(r,s){var o;return(o=t.get(r.typeName))===null||o===void 0?void 0:o.get(s)},getService(r){const s=e.get(r);return s?.kind=="service"?s:void 0}}}const NZ=998,LZ=999,FZ=9,Tc=10,oc=11,OZ=12,nA=14,rw=3,DZ=2,rA=1,MZ=0,Ug=1,sA=2,BZ=3,GZ=1,VZ=2,UZ=1,PC={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2,defaultSymbolVisibility:1},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1001:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:1,defaultSymbolVisibility:2}};function oA(e,t){var n,r;const s={kind:"file",proto:e,deprecated:(r=(n=e.options)===null||n===void 0?void 0:n.deprecated)!==null&&r!==void 0?r:!1,edition:$Z(e),name:e.name.replace(/\.proto$/,""),dependencies:YZ(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},o=new Map,l={get(c){return o.get(c)},add(c){var u;rr(((u=c.proto.options)===null||u===void 0?void 0:u.mapEntry)===!0),o.set(c.typeName,c)}};for(const c of e.enumType)jC(c,s,void 0,t);for(const c of e.messageType)$C(c,s,void 0,t,l);for(const c of e.service)WZ(c,s,t);Yy(s,t);for(const c of o.values())Zy(c,t,l);for(const c of s.messages)Zy(c,t,l),Yy(c,t);t.addFile(s,!0)}function Yy(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const r=Xy(n,e,t);e.extensions.push(r),t.add(r)}break;case"message":for(const n of e.proto.extension){const r=Xy(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(const n of e.nestedMessages)Yy(n,t);break}}function Zy(e,t,n){const r=e.proto.oneofDecl.map(o=>jZ(o,e)),s=new Set;for(const o of e.proto.field){const l=zZ(o,r),c=Xy(o,e,t,l,n);e.fields.push(c),e.field[c.localName]=c,l===void 0?e.members.push(c):(l.fields.push(c),s.has(l)||(s.add(l),e.members.push(l)))}for(const o of r.filter(l=>s.has(l)))e.oneofs.push(o);for(const o of e.nestedMessages)Zy(o,t,n)}function jC(e,t,n,r){var s,o,l,c,u;const f=ZZ(e.name,e.value),h={kind:"enum",proto:e,deprecated:(o=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&o!==void 0?o:!1,file:t,parent:n,open:!0,name:e.name,typeName:Fh(e,n,t),value:{},values:[],sharedPrefix:f,toString(){return`enum ${this.typeName}`}};h.open=QZ(h),r.add(h);for(const p of e.value){const g=p.name;h.values.push(h.value[p.number]={kind:"enum_value",proto:p,deprecated:(c=(l=p.options)===null||l===void 0?void 0:l.deprecated)!==null&&c!==void 0?c:!1,parent:h,name:g,localName:Rc(f==null?g:g.substring(f.length)),number:p.number,toString(){return`enum value ${h.typeName}.${g}`}})}((u=n?.nestedEnums)!==null&&u!==void 0?u:t.enums).push(h)}function $C(e,t,n,r,s){var o,l,c,u;const f={kind:"message",proto:e,deprecated:(l=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&l!==void 0?l:!1,file:t,parent:n,name:e.name,typeName:Fh(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};((c=e.options)===null||c===void 0?void 0:c.mapEntry)===!0?s.add(f):(((u=n?.nestedMessages)!==null&&u!==void 0?u:t.messages).push(f),r.add(f));for(const h of e.enumType)jC(h,t,f,r);for(const h of e.nestedType)$C(h,t,f,r,s)}function WZ(e,t,n){var r,s;const o={kind:"service",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,file:t,name:e.name,typeName:Fh(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(o),n.add(o);for(const l of e.method){const c=PZ(l,o,n);o.methods.push(c),o.method[c.localName]=c}}function PZ(e,t,n){var r,s,o,l;let c;e.clientStreaming&&e.serverStreaming?c="bidi_streaming":e.clientStreaming?c="client_streaming":e.serverStreaming?c="server_streaming":c="unary";const u=n.getMessage(Ur(e.inputType)),f=n.getMessage(Ur(e.outputType));rr(u,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),rr(f,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const h=e.name;return{kind:"rpc",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,parent:t,name:h,localName:Rc(h.length?Rc(h[0].toLowerCase()+h.substring(1)):h),methodKind:c,input:u,output:f,idempotency:(l=(o=e.options)===null||o===void 0?void 0:o.idempotencyLevel)!==null&&l!==void 0?l:MZ,toString(){return`rpc ${t.typeName}.${h}`}}}function jZ(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:Rc(ma(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function Xy(e,t,n,r,s){var o,l,c;const u=s===void 0,f={kind:"field",proto:e,deprecated:(l=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&l!==void 0?l:!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:HZ(e,r,u,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(u){const b=t.kind=="file"?t:t.file,w=t.kind=="file"?void 0:t,S=Fh(e,w,b);f.kind="extension",f.file=b,f.parent=w,f.oneof=void 0,f.typeName=S,f.jsonName=`[${S}]`,f.toString=()=>`extension ${S}`;const _=n.getMessage(Ur(e.extendee));rr(_,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),f.extendee=_}else{const b=t;rr(b.kind=="message"),f.parent=b,f.oneof=r,f.localName=r?ma(e.name):Rc(ma(e.name)),f.jsonName=e.jsonName,f.toString=()=>`field ${b.typeName}.${e.name}`}const h=e.label,p=e.type,g=(c=e.options)===null||c===void 0?void 0:c.jstype;if(h===rw){const b=p==oc?s?.get(Ur(e.typeName)):void 0;if(b){f.fieldKind="map";const{key:w,value:S}=JZ(b);return f.mapKey=w.scalar,f.mapKind=S.fieldKind,f.message=S.message,f.delimitedEncoding=!1,f.enum=S.enum,f.scalar=S.scalar,f}switch(f.fieldKind="list",p){case oc:case Tc:f.listKind="message",f.message=n.getMessage(Ur(e.typeName)),rr(f.message),f.delimitedEncoding=iA(e,t);break;case nA:f.listKind="enum",f.enum=n.getEnum(Ur(e.typeName)),rr(f.enum);break;default:f.listKind="scalar",f.scalar=p,f.longAsString=g==rA;break}return f.packed=KZ(e,t),f}switch(p){case oc:case Tc:f.fieldKind="message",f.message=n.getMessage(Ur(e.typeName)),rr(f.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),f.delimitedEncoding=iA(e,t),f.getDefaultValue=()=>{};break;case nA:{const b=n.getEnum(Ur(e.typeName));rr(b!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),f.fieldKind="enum",f.enum=n.getEnum(Ur(e.typeName)),f.getDefaultValue=()=>xc(e,"defaultValue")?RZ(b,e.defaultValue):void 0;break}default:{f.fieldKind="scalar",f.scalar=p,f.longAsString=g==rA,f.getDefaultValue=()=>xc(e,"defaultValue")?TZ(p,e.defaultValue):void 0;break}}return f}function $Z(e){switch(e.syntax){case"":case"proto2":return NZ;case"proto3":return LZ;case"editions":if(e.edition in PC)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function YZ(e,t){return e.dependency.map(n=>{const r=t.getFile(n);if(!r)throw new Error(`Cannot find ${n}, imported by ${e.name}`);return r})}function ZZ(e,t){const n=XZ(e)+"_";for(const r of t){if(!r.name.toLowerCase().startsWith(n))return;const s=r.name.substring(n.length);if(s.length==0||/^\d/.test(s))return}return n}function XZ(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,t=>"_"+t)).toLowerCase()}function Fh(e,t,n){let r;return t?r=`${t.typeName}.${e.name}`:n.proto.package.length>0?r=`${n.proto.package}.${e.name}`:r=`${e.name}`,r}function Ur(e){return e.startsWith(".")?e.substring(1):e}function zZ(e,t){if(!xc(e,"oneofIndex")||e.proto3Optional)return;const n=t[e.oneofIndex];return rr(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function HZ(e,t,n,r){if(e.label==DZ)return BZ;if(e.label==rw)return sA;if(t||e.proto3Optional||n)return Ug;const s=ga("fieldPresence",{proto:e,parent:r});return s==sA&&(e.type==oc||e.type==Tc)?Ug:s}function KZ(e,t){if(e.label!=rw)return!1;switch(e.type){case FZ:case OZ:case Tc:case oc:return!1}const n=e.options;return n&&xc(n,"packed")?n.packed:GZ==ga("repeatedFieldEncoding",{proto:e,parent:t})}function JZ(e){const t=e.fields.find(r=>r.number===1),n=e.fields.find(r=>r.number===2);return rr(t&&t.fieldKind=="scalar"&&t.scalar!=M.BYTES&&t.scalar!=M.FLOAT&&t.scalar!=M.DOUBLE&&n&&n.fieldKind!="list"&&n.fieldKind!="map"),{key:t,value:n}}function QZ(e){var t;return UZ==ga("enumType",{proto:e.proto,parent:(t=e.parent)!==null&&t!==void 0?t:e.file})}function iA(e,t){return e.type==Tc?!0:VZ==ga("messageEncoding",{proto:e,parent:t})}function ga(e,t){var n,r;const s=(n=t.proto.options)===null||n===void 0?void 0:n.features;if(s){const o=s[e];if(o!=0)return o}if("kind"in t){if(t.kind=="message")return ga(e,(r=t.parent)!==null&&r!==void 0?r:t.file);const o=PC[t.edition];if(!o)throw new Error(`feature default for edition ${t.edition} not found`);return o[e]}return ga(e,t.parent)}function rr(e,t){if(!e)throw new Error(t)}function qZ(e){const t=eX(e);return t.messageType.forEach(nw),WC(t,()=>{}).getFile(t.name)}function eX(e){return Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],optionDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(YC),enumType:e.enumType.map(ZC)}))}function YC(e){var t,n,r,s,o,l,c,u;return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:(n=(t=e.field)===null||t===void 0?void 0:t.map(tX))!==null&&n!==void 0?n:[],extension:[],nestedType:(s=(r=e.nestedType)===null||r===void 0?void 0:r.map(YC))!==null&&s!==void 0?s:[],enumType:(l=(o=e.enumType)===null||o===void 0?void 0:o.map(ZC))!==null&&l!==void 0?l:[],extensionRange:(u=(c=e.extensionRange)===null||c===void 0?void 0:c.map(h=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},h)))!==null&&u!==void 0?u:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function tX(e){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?nX(e.options):void 0}))}function nX(e){var t,n,r;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:(t=e.targets)!==null&&t!==void 0?t:[],editionDefaults:(r=(n=e.editionDefaults)===null||n===void 0?void 0:n.map(o=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},o)))!==null&&r!==void 0?r:[],uninterpretedOption:[]}))}function ZC(e){return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map(n=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},n))})}function Oa(e,t,...n){return n.reduce((r,s)=>r.nestedMessages[s],e.messages[t])}const sw=qZ({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}],extensionRange:[{start:536e6,end:536000001}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"option_dependency",number:15,type:9,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3},{name:"visibility",number:11,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3},{name:"visibility",number:6,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false"},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false",options:{deprecated:!0}},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}},{name:"enforce_naming_style",number:7,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnforceNamingStyle",options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:"STYLE_LEGACY",edition:900},{value:"STYLE2024",edition:1001}]}},{name:"default_symbol_visibility",number:8,type:14,label:1,typeName:".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",options:{retention:2,targets:[1],editionDefaults:[{value:"EXPORT_ALL",edition:900},{value:"EXPORT_TOP_LEVEL",edition:1001}]}}],nestedType:[{name:"VisibilityFeature",enumType:[{name:"DefaultSymbolVisibility",value:[{name:"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",number:0},{name:"EXPORT_ALL",number:1},{name:"EXPORT_TOP_LEVEL",number:2},{name:"LOCAL_ALL",number:3},{name:"STRICT",number:4}]}]}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]},{name:"EnforceNamingStyle",value:[{name:"ENFORCE_NAMING_STYLE_UNKNOWN",number:0},{name:"STYLE2024",number:1},{name:"STYLE_LEGACY",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_UNSTABLE",number:9999},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]},{name:"SymbolVisibility",value:[{name:"VISIBILITY_UNSET",number:0},{name:"VISIBILITY_LOCAL",number:1},{name:"VISIBILITY_EXPORT",number:2}]}]}),rX=Oa(sw,1);var aA;(function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"})(aA||(aA={}));var lA;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(lA||(lA={}));var cA;(function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"})(cA||(cA={}));var uA;(function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"})(uA||(uA={}));var dA;(function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"})(dA||(dA={}));var fA;(function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"})(fA||(fA={}));var hA;(function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(hA||(hA={}));var pA;(function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(pA||(pA={}));var zy;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"})(zy||(zy={}));var mA;(function(e){e[e.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",e[e.EXPORT_ALL=1]="EXPORT_ALL",e[e.EXPORT_TOP_LEVEL=2]="EXPORT_TOP_LEVEL",e[e.LOCAL_ALL=3]="LOCAL_ALL",e[e.STRICT=4]="STRICT"})(mA||(mA={}));var gA;(function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(gA||(gA={}));var yA;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"})(yA||(yA={}));var bA;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"})(bA||(bA={}));var vA;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"})(vA||(vA={}));var wA;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"})(wA||(wA={}));var _A;(function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(_A||(_A={}));var SA;(function(e){e[e.ENFORCE_NAMING_STYLE_UNKNOWN=0]="ENFORCE_NAMING_STYLE_UNKNOWN",e[e.STYLE2024=1]="STYLE2024",e[e.STYLE_LEGACY=2]="STYLE_LEGACY"})(SA||(SA={}));var EA;(function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"})(EA||(EA={}));var kA;(function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_UNSTABLE=9999]="EDITION_UNSTABLE",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"})(kA||(kA={}));var AA;(function(e){e[e.VISIBILITY_UNSET=0]="VISIBILITY_UNSET",e[e.VISIBILITY_LOCAL=1]="VISIBILITY_LOCAL",e[e.VISIBILITY_EXPORT=2]="VISIBILITY_EXPORT"})(AA||(AA={}));const xA={readUnknownFields:!0};function sX(e){return e?Object.assign(Object.assign({},xA),e):xA}function Oh(e,t,n){const r=ur(e,void 0,!1);return XC(r,new Hv(t),sX(n),!1,t.byteLength),r.message}function XC(e,t,n,r,s){var o;const l=r?t.len:t.pos+s;let c,u;const f=(o=e.getUnknown())!==null&&o!==void 0?o:[];for(;t.pos0&&e.setUnknown(f)}function zC(e,t,n,r,s){var o;switch(n.fieldKind){case"scalar":e.set(n,ya(t,n.scalar));break;case"enum":const l=ya(t,M.INT32);if(n.enum.open)e.set(n,l);else if(n.enum.values.some(u=>u.number===l))e.set(n,l);else if(s.readUnknownFields){const u=[];jy(l,u);const f=(o=e.getUnknown())!==null&&o!==void 0?o:[];f.push({no:n.number,wireType:r,data:new Uint8Array(u)}),e.setUnknown(f)}break;case"message":e.set(n,ow(t,s,n,e.get(n)));break;case"list":iX(t,r,e.get(n),s);break;case"map":oX(t,e.get(n),s);break}}function oX(e,t,n){const r=t.field();let s,o;const l=e.uint32(),c=e.pos+l;for(;e.poso.proto.name))!==null&&n!==void 0?n:[],WC(r,o=>t?.find(l=>l.proto.name===o)).getFile(r.name)}const aX=zs("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");function Wg(e){return new Date(lX(e))}function lX(e){return Number(e.seconds)*1e3+Math.round(e.nanos/1e6)}const cX=zs("Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYiJgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnYKE2NvbS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaLGdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2FueXBiogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),uX=Oa(cX,0),dX=3,RA={writeUnknownFields:!0};function fX(e){return e?Object.assign(Object.assign({},RA),e):RA}function HC(e,t,n){return Ef(new TC,fX(n),ur(e,t)).finish()}function Ef(e,t,n){var r;for(const s of n.sortedFields){if(!n.isSet(s)){if(s.presence==dX)throw new Error(`cannot encode ${s} to binary: required field not set`);continue}KC(e,t,n,s)}if(t.writeUnknownFields)for(const{no:s,wireType:o,data:l}of(r=n.getUnknown())!==null&&r!==void 0?r:[])e.tag(s,o).raw(l);return e}function KC(e,t,n,r){var s;switch(r.fieldKind){case"scalar":case"enum":kf(e,n.desc.typeName,r.name,(s=r.scalar)!==null&&s!==void 0?s:M.INT32,r.number,n.get(r));break;case"list":hX(e,t,r,n.get(r));break;case"message":JC(e,t,r,n.get(r));break;case"map":for(const[o,l]of n.get(r))pX(e,t,r,o,l);break}}function kf(e,t,n,r,s,o){QC(e.tag(s,mX(r)),t,n,r,o)}function JC(e,t,n,r){n.delimitedEncoding?Ef(e.tag(n.number,yt.StartGroup),t,r).tag(n.number,yt.EndGroup):Ef(e.tag(n.number,yt.LengthDelimited).fork(),t,r).join()}function hX(e,t,n,r){var s;if(n.listKind=="message"){for(const l of r)JC(e,t,n,l);return}const o=(s=n.scalar)!==null&&s!==void 0?s:M.INT32;if(n.packed){if(!r.size)return;e.tag(n.number,yt.LengthDelimited).fork();for(const l of r)QC(e,n.parent.typeName,n.name,o,l);e.join();return}for(const l of r)kf(e,n.parent.typeName,n.name,o,n.number,l)}function pX(e,t,n,r,s){var o;switch(e.tag(n.number,yt.LengthDelimited).fork(),kf(e,n.parent.typeName,n.name,n.mapKey,1,r),n.mapKind){case"scalar":case"enum":kf(e,n.parent.typeName,n.name,(o=n.scalar)!==null&&o!==void 0?o:M.INT32,2,s);break;case"message":Ef(e.tag(2,yt.LengthDelimited).fork(),t,s).join();break}e.join()}function QC(e,t,n,r,s){try{switch(r){case M.STRING:e.string(s);break;case M.BOOL:e.bool(s);break;case M.DOUBLE:e.double(s);break;case M.FLOAT:e.float(s);break;case M.INT32:e.int32(s);break;case M.INT64:e.int64(s);break;case M.UINT64:e.uint64(s);break;case M.FIXED64:e.fixed64(s);break;case M.BYTES:e.bytes(s);break;case M.FIXED32:e.fixed32(s);break;case M.SFIXED32:e.sfixed32(s);break;case M.SFIXED64:e.sfixed64(s);break;case M.SINT64:e.sint64(s);break;case M.UINT32:e.uint32(s);break;case M.SINT32:e.sint32(s);break}}catch(o){throw o instanceof Error?new Error(`cannot encode field ${t}.${n} to binary: ${o.message}`):o}}function mX(e){switch(e){case M.BYTES:case M.STRING:return yt.LengthDelimited;case M.DOUBLE:case M.FIXED64:case M.SFIXED64:return yt.Bit64;case M.FIXED32:case M.SFIXED32:case M.FLOAT:return yt.Bit32;default:return yt.Varint}}function gX(e,t,n){let r=!1;return n||(n=ar(uX),r=!0),n.value=HC(e,t),n.typeUrl=vX(t.$typeName),r?n:void 0}function yX(e,t){if(e.typeUrl==="")return!1;const n=typeof t=="string"?t:t.typeName,r=qC(e.typeUrl);return n===r}function bX(e,t){if(e.typeUrl==="")return;const n=t.kind=="message"?t:t.getMessage(qC(e.typeUrl));if(!(!n||!yX(e,n)))return Oh(n,e.value)}function vX(e){return`type.googleapis.com/${e}`}function qC(e){const t=e.lastIndexOf("/"),n=t>=0?e.substring(t+1):e;if(!n.length)throw new Error(`invalid type url: ${e}`);return n}const iw=zs("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),wX=Oa(iw,0),e2=Oa(iw,1),_X=Oa(iw,2);var Hy;(function(e){e[e.NULL_VALUE=0]="NULL_VALUE"})(Hy||(Hy={}));function SX(e,t){t2(t,e);const n=kX(e.$unknown,t),[r,s,o]=Dh(t);for(const l of n)zC(r,new Hv(l.data),s,l.wireType,{readUnknownFields:!0});return o()}function EX(e,t,n){var r;t2(t,e);const s=((r=e.$unknown)!==null&&r!==void 0?r:[]).filter(f=>f.no!==t.number),[o,l]=Dh(t,n),c=new TC;KC(c,{writeUnknownFields:!0},o,l);const u=new Hv(c.finish());for(;u.pos=0;--n)if(e[n].no==t.number)return[e[n]];return[]}return e.filter(n=>n.no===t.number)}function Dh(e,t){const n=e.typeName,r=Object.assign(Object.assign({},e),{kind:"field",parent:e.extendee,localName:n}),s=Object.assign(Object.assign({},e.extendee),{fields:[r],members:[r],oneofs:[]}),o=ar(s,t!==void 0?{[n]:t}:void 0);return[ur(s,o),r,()=>{const l=o[n];if(l===void 0){const c=e.message;return tu(c)?pa(c.fields[0].scalar,c.fields[0].longAsString):ar(c)}return l}]}function t2(e,t){if(e.extendee.typeName!=t.$typeName)throw new Error(`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}const AX=3,xX=2,TA={alwaysEmitImplicit:!1,enumAsInteger:!1,useProtoFieldName:!1};function RX(e){return e?Object.assign(Object.assign({},TA),e):TA}function TX(e,t,n){return nu(ur(e,t),RX(n))}function IX(e,t,n){var r;const s=TX(e,t,n);return JSON.stringify(s,null,(r=n?.prettySpaces)!==null&&r!==void 0?r:0)}function nu(e,t){var n;const r=FX(e,t);if(r!==void 0)return r;const s={};for(const o of e.sortedFields){if(!e.isSet(o)){if(o.presence==AX)throw new Error(`cannot encode ${o} to JSON: required field not set`);if(!t.alwaysEmitImplicit||o.presence!==xX)continue}const l=IA(o,e.get(o),t);l!==void 0&&(s[LX(o,t)]=l)}if(t.registry){const o=new Set;for(const{no:l}of(n=e.getUnknown())!==null&&n!==void 0?n:[])if(!o.has(l)){o.add(l);const c=t.registry.getExtensionFor(e.desc,l);if(!c)continue;const u=SX(e.message,c),[f,h]=Dh(c,u),p=IA(h,f.get(h),t);p!==void 0&&(s[c.jsonName]=p)}}return s}function IA(e,t,n){switch(e.fieldKind){case"scalar":return Mh(e,t);case"message":return nu(t,n);case"enum":return aw(e.enum,t,n.enumAsInteger);case"list":return NX(t,n);case"map":return CX(t,n)}}function CX(e,t){const n=e.field(),r={};switch(n.mapKind){case"scalar":for(const[s,o]of e)r[s]=Mh(n,o);break;case"message":for(const[s,o]of e)r[s]=nu(o,t);break;case"enum":for(const[s,o]of e)r[s]=aw(n.enum,o,t.enumAsInteger);break}return t.alwaysEmitImplicit||e.size>0?r:void 0}function NX(e,t){const n=e.field(),r=[];switch(n.listKind){case"scalar":for(const s of e)r.push(Mh(n,s));break;case"enum":for(const s of e)r.push(aw(n.enum,s,t.enumAsInteger));break;case"message":for(const s of e)r.push(nu(s,t));break}return t.alwaysEmitImplicit||r.length>0?r:void 0}function aw(e,t,n){var r;if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: expected number, got ${Ot(t)}`);if(e.typeName=="google.protobuf.NullValue")return null;if(n)return t;const s=e.value[t];return(r=s?.name)!==null&&r!==void 0?r:t}function Mh(e,t){var n,r,s,o,l,c;switch(e.scalar){case M.INT32:case M.SFIXED32:case M.SINT32:case M.FIXED32:case M.UINT32:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(n=ho(e,t))===null||n===void 0?void 0:n.message}`);return t;case M.FLOAT:case M.DOUBLE:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(r=ho(e,t))===null||r===void 0?void 0:r.message}`);return Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case M.STRING:if(typeof t!="string")throw new Error(`cannot encode ${e} to JSON: ${(s=ho(e,t))===null||s===void 0?void 0:s.message}`);return t;case M.BOOL:if(typeof t!="boolean")throw new Error(`cannot encode ${e} to JSON: ${(o=ho(e,t))===null||o===void 0?void 0:o.message}`);return t;case M.UINT64:case M.FIXED64:case M.INT64:case M.SFIXED64:case M.SINT64:if(typeof t!="bigint"&&typeof t!="string")throw new Error(`cannot encode ${e} to JSON: ${(l=ho(e,t))===null||l===void 0?void 0:l.message}`);return t.toString();case M.BYTES:if(t instanceof Uint8Array)return GC(t);throw new Error(`cannot encode ${e} to JSON: ${(c=ho(e,t))===null||c===void 0?void 0:c.message}`)}}function LX(e,t){return t.useProtoFieldName?e.name:e.jsonName}function FX(e,t){if(e.desc.typeName.startsWith("google.protobuf."))switch(e.desc.typeName){case"google.protobuf.Any":return OX(e.message,t);case"google.protobuf.Timestamp":return BX(e.message);case"google.protobuf.Duration":return DX(e.message);case"google.protobuf.FieldMask":return MX(e.message);case"google.protobuf.Struct":return n2(e.message);case"google.protobuf.Value":return lw(e.message);case"google.protobuf.ListValue":return r2(e.message);default:if(tu(e.desc)){const n=e.desc.fields[0];return Mh(n,e.get(n))}return}}function OX(e,t){if(e.typeUrl==="")return{};const{registry:n}=t;let r,s;if(n&&(r=bX(e,n),r&&(s=n.getMessage(r.$typeName))),!s||!r)throw new Error(`cannot encode message ${e.$typeName} to JSON: "${e.typeUrl}" is not in the type registry`);let o=nu(ur(s,r),t);return(s.typeName.startsWith("google.protobuf.")||o===null||Array.isArray(o)||typeof o!="object")&&(o={value:o}),o["@type"]=e.typeUrl,o}function DX(e){const t=Number(e.seconds),n=e.nanos;if(t>315576e6||t<-315576e6)throw new Error(`cannot encode message ${e.$typeName} to JSON: value out of range`);if(t>0&&n<0||t<0&&n>0)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos sign must match seconds sign`);let r=e.seconds.toString();if(n!==0){let s=Math.abs(n).toString();s="0".repeat(9-s.length)+s,s.substring(3)==="000000"?s=s.substring(0,3):s.substring(6)==="000"&&(s=s.substring(0,6)),r+="."+s,n<0&&t==0&&(r="-"+r)}return r+"s"}function MX(e){return e.paths.map(t=>{if(UC(ma(t))!==t)throw new Error(`cannot encode message ${e.$typeName} to JSON: lowerCamelCase of path name "${t}" is irreversible`);return ma(t)}).join(",")}function n2(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=lw(r);return t}function lw(e){switch(e.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(e.kind.value))throw new Error(`${e.$typeName} cannot be NaN or Infinity`);return e.kind.value;case"boolValue":return e.kind.value;case"stringValue":return e.kind.value;case"structValue":return n2(e.kind.value);case"listValue":return r2(e.kind.value);default:throw new Error(`${e.$typeName} must have a value`)}}function r2(e){return e.values.map(lw)}function BX(e){const t=Number(e.seconds)*1e3;if(tDate.parse("9999-12-31T23:59:59Z"))throw new Error(`cannot encode message ${e.$typeName} to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);if(e.nanos<0)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos must not be negative`);if(e.nanos>999999999)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos must not be greater than 99999999`);let n="Z";if(e.nanos>0){const r=(e.nanos+1e9).toString().substring(1);r.substring(3)==="000000"?n="."+r.substring(0,3)+"Z":r.substring(6)==="000"?n="."+r.substring(0,6)+"Z":n="."+r+"Z"}return new Date(t).toISOString().replace(".000Z",n)}const CA={ignoreUnknownFields:!1};function GX(e){return e?Object.assign(Object.assign({},CA),e):CA}function VX(e,t,n){return s2(e,XX(t,e.typeName),n)}function s2(e,t,n){const r=ur(e);try{Ic(r,t,GX(n))}catch(s){throw bZ(s)?new Error(`cannot decode ${s.field()} from JSON: ${s.message}`,{cause:s}):s}return r.message}const Pg=new WeakMap;function UX(e,t){var n;if(!Pg.has(e)){const r=new Map;for(const s of e.fields)r.set(s.name,s).set(s.jsonName,s);Pg.set(e,r)}return(n=Pg.get(e))===null||n===void 0?void 0:n.get(t)}function Ic(e,t,n){var r;if(zX(e,t,n))return;if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode ${e.desc} from JSON: ${Ot(t)}`);const s=new Map;for(const[o,l]of Object.entries(t)){const c=UX(e.desc,o);if(c){if(c.oneof){if(l===null&&c.fieldKind=="scalar")continue;const u=s.get(c.oneof);if(u!==void 0)throw new kn(c.oneof,`oneof set multiple times by ${u.name} and ${c.name}`);s.set(c.oneof,c)}NA(e,c,l,n)}else{let u;if(o.startsWith("[")&&o.endsWith("]")&&(u=(r=n.registry)===null||r===void 0?void 0:r.getExtension(o.substring(1,o.length-1)))&&u.extendee.typeName===e.desc.typeName){const[f,h,p]=Dh(u);NA(f,h,l,n),EX(e.message,u,p())}if(!u&&!n.ignoreUnknownFields)throw new Error(`cannot decode ${e.desc} from JSON: key "${o}" is unknown`)}}}function NA(e,t,n,r){switch(t.fieldKind){case"scalar":YX(e,t,n);break;case"enum":$X(e,t,n,r);break;case"message":jX(e,t,n,r);break;case"list":PX(e.get(t),n,r);break;case"map":WX(e.get(t),n,r);break}}function o2(e,t,n){if(e.scalar&&t!==null)return cw(e,t);if(e.message&&!Af(e,t)){const r=ur(e.message);return Ic(r,t,n),r}if(e.enum&&!Af(e,t))return i2(e.enum,t,n.ignoreUnknownFields);throw new kn(e,`${e.fieldKind==="list"?"list item":"map value"} must not be null`)}function WX(e,t,n){if(t===null)return;const r=e.field();if(typeof t!="object"||Array.isArray(t))throw new kn(r,"expected object, got "+Ot(t));for(const[s,o]of Object.entries(t)){const l=ZX(r.mapKey,s),c=o2(r,o,n);c!==Bh&&e.set(l,c)}}function PX(e,t,n){if(t===null)return;const r=e.field();if(!Array.isArray(t))throw new kn(r,"expected Array, got "+Ot(t));for(const s of t){const o=o2(r,s,n);o!==Bh&&e.add(o)}}function jX(e,t,n,r){if(Af(t,n)){e.clear(t);return}const s=e.isSet(t)?e.get(t):ur(t.message);Ic(s,n,r),e.set(t,s)}function $X(e,t,n,r){if(Af(t,n)){e.clear(t);return}const s=i2(t.enum,n,r.ignoreUnknownFields);s!==Bh&&e.set(t,s)}function YX(e,t,n){n===null?e.clear(t):e.set(t,cw(t,n))}function Af(e,t){var n,r;return t===null&&((n=e.message)===null||n===void 0?void 0:n.typeName)!="google.protobuf.Value"&&((r=e.enum)===null||r===void 0?void 0:r.typeName)!="google.protobuf.NullValue"}const Bh=Symbol();function i2(e,t,n){if(t===null)return e.values[0].number;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const r=e.values.find(s=>s.name===t);if(r!==void 0)return r.number;if(n)return Bh;break}throw new Error(`cannot decode ${e} from JSON: ${Ot(t)}`)}function cw(e,t){switch(e.scalar){case M.DOUBLE:case M.FLOAT:if(t==="NaN")return NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(typeof t=="number"){if(Number.isNaN(t))throw new kn(e,"unexpected NaN number");if(!Number.isFinite(t))throw new kn(e,"unexpected infinite number");break}if(typeof t=="string"){if(t===""||t.trim().length!==t.length)break;const n=Number(t);if(!Number.isFinite(n))break;return n}break;case M.INT32:case M.FIXED32:case M.SFIXED32:case M.SINT32:case M.UINT32:return a2(t);case M.BYTES:if(typeof t=="string"){if(t==="")return new Uint8Array(0);try{return tw(t)}catch(n){const r=n instanceof Error?n.message:String(n);throw new kn(e,r)}}break}return t}function ZX(e,t){switch(e){case M.BOOL:switch(t){case"true":return!0;case"false":return!1}return t;case M.INT32:case M.FIXED32:case M.UINT32:case M.SFIXED32:case M.SINT32:return a2(t);default:return t}}function a2(e){if(typeof e=="string"){if(e===""||e.trim().length!==e.length)return e;const t=Number(e);return Number.isNaN(t)?e:t}return e}function XX(e,t){try{return JSON.parse(e)}catch(n){const r=n instanceof Error?n.message:String(n);throw new Error(`cannot decode message ${t} from JSON: ${r}`,{cause:n})}}function zX(e,t,n){if(!e.desc.typeName.startsWith("google.protobuf."))return!1;switch(e.desc.typeName){case"google.protobuf.Any":return HX(e.message,t,n),!0;case"google.protobuf.Timestamp":return KX(e.message,t),!0;case"google.protobuf.Duration":return JX(e.message,t),!0;case"google.protobuf.FieldMask":return QX(e.message,t),!0;case"google.protobuf.Struct":return l2(e.message,t),!0;case"google.protobuf.Value":return uw(e.message,t),!0;case"google.protobuf.ListValue":return c2(e.message,t),!0;default:if(tu(e.desc)){const r=e.desc.fields[0];return t===null?e.clear(r):e.set(r,cw(r,t)),!0}return!1}}function HX(e,t,n){var r;if(t===null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.$typeName} from JSON: expected object but got ${Ot(t)}`);if(Object.keys(t).length==0)return;const s=t["@type"];if(typeof s!="string"||s=="")throw new Error(`cannot decode message ${e.$typeName} from JSON: "@type" is empty`);const o=s.includes("/")?s.substring(s.lastIndexOf("/")+1):s;if(!o.length)throw new Error(`cannot decode message ${e.$typeName} from JSON: "@type" is invalid`);const l=(r=n.registry)===null||r===void 0?void 0:r.getMessage(o);if(!l)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${s} is not in the type registry`);const c=ur(l);if(o.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(t,"value")){const u=t.value;Ic(c,u,n)}else{const u=Object.assign({},t);delete u["@type"],Ic(c,u,n)}gX(c.desc,c.message,e)}function KX(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${Ot(t)}`);const n=t.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.([0-9]{1,9}))?(?:Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!n)throw new Error(`cannot decode message ${e.$typeName} from JSON: invalid RFC 3339 string`);const r=Date.parse(n[1]+"-"+n[2]+"-"+n[3]+"T"+n[4]+":"+n[5]+":"+n[6]+(n[8]?n[8]:"Z"));if(Number.isNaN(r))throw new Error(`cannot decode message ${e.$typeName} from JSON: invalid RFC 3339 string`);if(rDate.parse("9999-12-31T23:59:59Z"))throw new Error(`cannot decode message ${e.$typeName} from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);e.seconds=rt.parse(r/1e3),e.nanos=0,n[7]&&(e.nanos=parseInt("1"+n[7]+"0".repeat(9-n[7].length))-1e9)}function JX(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${Ot(t)}`);const n=t.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(n===null)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${Ot(t)}`);const r=Number(n[1]);if(r>315576e6||r<-315576e6)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${Ot(t)}`);if(e.seconds=rt.parse(r),typeof n[2]!="string")return;const s=n[2]+"0".repeat(9-n[2].length);e.nanos=parseInt(s),(r<0||Object.is(r,-0))&&(e.nanos=-e.nanos)}function QX(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${Ot(t)}`);t!==""&&(e.paths=t.split(",").map(n=>{if(n.includes("_"))throw new Error(`cannot decode message ${e.$typeName} from JSON: path names must be lowerCamelCase`);return UC(n)}))}function l2(e,t){if(typeof t!="object"||t==null||Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${Ot(t)}`);for(const[n,r]of Object.entries(t)){const s=ar(e2);uw(s,r),e.fields[n]=s}}function uw(e,t){switch(typeof t){case"number":e.kind={case:"numberValue",value:t};break;case"string":e.kind={case:"stringValue",value:t};break;case"boolean":e.kind={case:"boolValue",value:t};break;case"object":if(t===null)e.kind={case:"nullValue",value:Hy.NULL_VALUE};else if(Array.isArray(t)){const n=ar(_X);c2(n,t),e.kind={case:"listValue",value:n}}else{const n=ar(wX);l2(n,t),e.kind={case:"structValue",value:n}}break;default:throw new Error(`cannot decode message ${e.$typeName} from JSON ${Ot(t)}`)}return e}function c2(e,t){if(!Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${Ot(t)}`);for(const n of t){const r=ar(e2);uw(r,n),e.values.push(r)}}function Ky(e){const t=Se[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,n=>"_"+n.toLowerCase())}let Nd;function qX(e){if(!Nd){Nd={};for(const t of Object.values(Se))typeof t!="string"&&(Nd[Ky(t)]=t)}return Nd[e]}class Ve extends Error{constructor(t,n=Se.Unknown,r,s,o){super(e4(t,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=n,this.metadata=new Headers(r??{}),this.details=s??[],this.cause=o}static from(t,n=Se.Unknown){return t instanceof Ve?t:t instanceof Error?t.name=="AbortError"||t.name=="TimeoutError"?new Ve(t.message,Se.Canceled):new Ve(t.message,n,void 0,void 0,t):new Ve(String(t),n,void 0,void 0,t)}static[Symbol.hasInstance](t){return t instanceof Error?Object.getPrototypeOf(t)===Ve.prototype?!0:t.name==="ConnectError"&&"code"in t&&typeof t.code=="number"&&"metadata"in t&&"details"in t&&Array.isArray(t.details)&&"rawMessage"in t&&typeof t.rawMessage=="string"&&"cause"in t:!1}findDetails(t){const n=t.kind==="message"?{getMessage:s=>s===t.typeName?t:void 0}:t,r=[];for(const s of this.details){if("desc"in s){n.getMessage(s.desc.typeName)&&r.push(ar(s.desc,s.value));continue}const o=n.getMessage(s.type);if(o)try{r.push(Oh(o,s.value))}catch{}}return r}}function e4(e,t){return e.length?`[${Ky(t)}] ${e}`:`[${Ky(t)}]`}function t4(...e){const t=new Headers;for(const n of e)n.forEach((r,s)=>{t.append(s,r)});return t}function n4(e,t){const n={};for(const r of e.methods){const s=t(r);s!=null&&(n[r.localName]=s)}return n}const LA=1;function r4(e,t,n=!1){if(t>e){let r=`message size is larger than configured readMaxBytes ${e}`;throw n&&(r=`message size ${t} is larger than configured readMaxBytes ${e}`),new Ve(r,Se.ResourceExhausted)}}function s4(e){return new o4(e)}class o4{constructor(t){this.readMaxBytes=t,this.header=new Uint8Array(5),this.headerView=new DataView(this.header.buffer),this.buf=[]}get byteLength(){return this.buf.reduce((t,n)=>t+n.byteLength,0)}decode(t){this.buf.push(t);const n=[];for(;;){let r=this.pop();if(!r)break;n.push(r)}return n}pop(){if(!(!this.env&&(this.env=this.head(),!this.env))&&this.cons(this.env.data)){const t=this.env;return this.env=void 0,t}}head(){if(!this.cons(this.header))return;const t=this.headerView.getUint8(0),n=this.headerView.getUint32(1);return r4(this.readMaxBytes,n,!0),{flags:t,data:new Uint8Array(n)}}cons(t){const n=t.byteLength;if(this.byteLengthn-r?(t.set(s.subarray(0,n-r),r),this.buf.unshift(s.subarray(n-r)),r+=n-r):(t.set(s,r),r+=s.byteLength)}return!0}}function i4(e){let t;const n=s4(4294967295);return new ReadableStream({start(){t=e.getReader()},async pull(r){let s=!1;for(;!s;){const o=await t.read();if(o.done)n.byteLength>0&&r.error(new Ve("protocol error: incomplete envelope",Se.InvalidArgument)),r.close();else for(const l of n.decode(o.value))r.enqueue(l),s=!0}}})}function a4(e,t){const n=new Uint8Array(t.length+5);n.set(t,5);const r=new DataView(n.buffer,n.byteOffset,n.byteLength);return r.setUint8(0,e),r.setUint32(1,t.length),n}var l4=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(l){return new Promise(function(c,u){l=e[o](l),s(c,u,l.done,l.value)})}}function s(o,l,c,u){Promise.resolve(u).then(function(f){o({value:f,done:c})},l)}},Cc=function(e){return this instanceof Cc?(this.v=e,this):new Cc(e)},c4=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",l),s[Symbol.asyncIterator]=function(){return this},s;function l(b){return function(w){return Promise.resolve(w).then(b,p)}}function c(b,w){r[b]&&(s[b]=function(S){return new Promise(function(_,E){o.push([b,S,_,E])>1||u(b,S)})},w&&(s[b]=w(s[b])))}function u(b,w){try{f(r[b](w))}catch(S){g(o[0][3],S)}}function f(b){b.value instanceof Cc?Promise.resolve(b.value.v).then(h,p):g(o[0][2],b)}function h(b){u("next",b)}function p(b){u("throw",b)}function g(b,w){b(w),o.shift(),o.length&&u(o[0][0],o[0][1])}},u4=function(e){var t,n;return t={},r("next"),r("throw",function(s){throw s}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(s,o){t[s]=e[s]?function(l){return(n=!n)?{value:Cc(e[s](l)),done:!1}:o?o(l):l}:o}};function d4(e){return c4(this,arguments,function*(){yield Cc(yield*u4(l4(e)))})}var u2=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(l){return new Promise(function(c,u){l=e[o](l),s(c,u,l.done,l.value)})}}function s(o,l,c,u){Promise.resolve(u).then(function(f){o({value:f,done:c})},l)}},ba=function(e){return this instanceof ba?(this.v=e,this):new ba(e)},f4=function(e){var t,n;return t={},r("next"),r("throw",function(s){throw s}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(s,o){t[s]=e[s]?function(l){return(n=!n)?{value:ba(e[s](l)),done:!1}:o?o(l):l}:o}},h4=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",l),s[Symbol.asyncIterator]=function(){return this},s;function l(b){return function(w){return Promise.resolve(w).then(b,p)}}function c(b,w){r[b]&&(s[b]=function(S){return new Promise(function(_,E){o.push([b,S,_,E])>1||u(b,S)})},w&&(s[b]=w(s[b])))}function u(b,w){try{f(r[b](w))}catch(S){g(o[0][3],S)}}function f(b){b.value instanceof ba?Promise.resolve(b.value.v).then(h,p):g(o[0][2],b)}function h(b){u("next",b)}function p(b){u("throw",b)}function g(b,w){b(w),o.shift(),o.length&&u(o[0][0],o[0][1])}};function p4(e,t){return n4(e,n=>{switch(n.methodKind){case"unary":return m4(t,n);case"server_streaming":return g4(t,n);case"client_streaming":return y4(t,n);case"bidi_streaming":return b4(t,n);default:return null}})}function m4(e,t){return async(n,r)=>{var s,o;const l=await e.unary(t,r?.signal,r?.timeoutMs,r?.headers,n,r?.contextValues);return(s=r?.onHeader)===null||s===void 0||s.call(r,l.header),(o=r?.onTrailer)===null||o===void 0||o.call(r,l.trailer),l.message}}function g4(e,t){return(n,r)=>d2(e.stream(t,r?.signal,r?.timeoutMs,r?.headers,d4([n]),r?.contextValues),r)}function y4(e,t){return async(n,r)=>{var s,o,l,c,u,f;const h=await e.stream(t,r?.signal,r?.timeoutMs,r?.headers,n,r?.contextValues);(u=r?.onHeader)===null||u===void 0||u.call(r,h.header);let p,g=0;try{for(var b=!0,w=u2(h.message),S;S=await w.next(),s=S.done,!s;b=!0)c=S.value,b=!1,p=c,g++}catch(_){o={error:_}}finally{try{!b&&!s&&(l=w.return)&&await l.call(w)}finally{if(o)throw o.error}}if(!p)throw new Ve("protocol error: missing response message",Se.Unimplemented);if(g>1)throw new Ve("protocol error: received extra messages for client streaming method",Se.Unimplemented);return(f=r?.onTrailer)===null||f===void 0||f.call(r,h.trailer),p}}function b4(e,t){return(n,r)=>d2(e.stream(t,r?.signal,r?.timeoutMs,r?.headers,n,r?.contextValues),r)}function d2(e,t){const n=(function(){return h4(this,arguments,function*(){var r,s;const o=yield ba(e);(r=t?.onHeader)===null||r===void 0||r.call(t,o.header),yield ba(yield*f4(u2(o.message))),(s=t?.onTrailer)===null||s===void 0||s.call(t,o.trailer)})})()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>n.next()})}}function v4(...e){const t=new AbortController,n=e.filter(s=>s!==void 0).concat(t.signal);for(const s of n){if(s.aborted){r.apply(s);break}s.addEventListener("abort",r)}function r(){t.signal.aborted||t.abort(f2(this));for(const s of n)s.removeEventListener("abort",r)}return t}function w4(e){const t=new AbortController,n=()=>{t.abort(new Ve("the operation timed out",Se.DeadlineExceeded))};let r;return e!==void 0&&(e<=0?n():r=setTimeout(n,e)),{signal:t.signal,cleanup:()=>clearTimeout(r)}}function f2(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function FA(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}function _4(e,t,...n){if(n.length>0)throw new Error;return e.services[t]}function OA(e,t){return e.toString().replace(/\/?$/,`/${t.parent.typeName}/${t.name}`)}function h2(e,t){return ar(e,t)}function S4(e,t){function n(r){return r.done===!0?r:{done:r.done,value:h2(e,r.value)}}return{[Symbol.asyncIterator](){const r=t[Symbol.asyncIterator](),s={next:()=>r.next().then(n)};return r.throw!==void 0&&(s.throw=o=>r.throw(o).then(n)),r.return!==void 0&&(s.return=o=>r.return(o).then(n)),s}}}function p2(e,t){if(!t)return e;for(const n of t.concat().reverse())e=n(e);return e}function m2(e){var t;const n=Object.assign({},e);return(t=n.ignoreUnknownFields)!==null&&t!==void 0||(n.ignoreUnknownFields=!0),n}function DA(e,t,n,r){const s=t?MA(e.input,r):BA(e.input,n);return{parse:(t?MA(e.output,r):BA(e.output,n)).parse,serialize:s.serialize}}function MA(e,t){return{parse(n){try{return Oh(e,n,t)}catch(r){const s=r instanceof Error?r.message:String(r);throw new Ve(`parse binary: ${s}`,Se.Internal)}},serialize(n){try{return HC(e,n,t)}catch(r){const s=r instanceof Error?r.message:String(r);throw new Ve(`serialize binary: ${s}`,Se.Internal)}}}}function BA(e,t){var n,r;const s=(n=t?.textEncoder)!==null&&n!==void 0?n:new TextEncoder,o=(r=t?.textDecoder)!==null&&r!==void 0?r:new TextDecoder,l=m2(t);return{parse(c){try{const u=o.decode(c);return VX(e,u,l)}catch(u){throw Ve.from(u,Se.InvalidArgument)}},serialize(c){try{const u=IX(e,c,l);return s.encode(u)}catch(u){throw Ve.from(u,Se.Internal)}}}}const E4=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i,k4="application/proto",A4="application/json",x4="application/connect+proto",R4="application/connect+json";function T4(e){const t=e?.match(E4);if(!t)return;const n=!!t[1],r=!!t[3];return{stream:n,binary:r}}function g2(e,t,n){var r;if(t&&new Headers(t).forEach((c,u)=>n.metadata.append(u,c)),typeof e!="object"||e==null||Array.isArray(e))throw n;let s=n.code;"code"in e&&typeof e.code=="string"&&(s=(r=qX(e.code))!==null&&r!==void 0?r:s);const o=e.message;if(o!=null&&typeof o!="string")throw n;const l=new Ve(o??"",s,t);if("details"in e&&Array.isArray(e.details))for(const c of e.details){if(c===null||typeof c!="object"||Array.isArray(c)||typeof c.type!="string"||typeof c.value!="string")throw n;try{l.details.push({type:c.type,value:tw(c.value),debug:c.debug})}catch{throw n}}return l}const GA=2;function I4(e){const t=new Ve("invalid end stream",Se.Unknown);let n;try{n=JSON.parse(typeof e=="string"?e:new TextDecoder().decode(e))}catch{throw t}if(typeof n!="object"||n==null||Array.isArray(n))throw t;const r=new Headers;if("metadata"in n){if(typeof n.metadata!="object"||n.metadata==null||Array.isArray(n.metadata))throw t;for(const[o,l]of Object.entries(n.metadata)){if(!Array.isArray(l)||l.some(c=>typeof c!="string"))throw t;for(const c of l)r.append(o,c)}}const s="error"in n&&n.error!=null?g2(n.error,r,t):void 0;return{metadata:r,error:s}}const xf="Content-Type",C4="Content-Length",VA="Content-Encoding",N4="Accept-Encoding",L4="Connect-Timeout-Ms",y2="Connect-Protocol-Version",F4="User-Agent";function O4(e){switch(e){case 400:return Se.Internal;case 401:return Se.Unauthenticated;case 403:return Se.PermissionDenied;case 404:return Se.Unimplemented;case 429:return Se.Unavailable;case 502:return Se.Unavailable;case 503:return Se.Unavailable;case 504:return Se.Unavailable;default:return Se.Unknown}}function UA(e){const t=new Headers,n=new Headers;return e.forEach((r,s)=>{s.toLowerCase().startsWith("trailer-")?n.append(s.substring(8),r):t.append(s,r)}),[t,n]}const b2="1";function WA(e,t,n,r,s){const o=new Headers(r??{});return n!==void 0&&o.set(L4,`${n}`),o.set(xf,e=="unary"?t?k4:A4:t?x4:R4),o.set(y2,b2),o.has(F4),o}function PA(e,t,n,r){const s=r.get(xf),o=T4(s);if(n!==200){const c=new Ve(`HTTP ${n}`,O4(n),r);if(e=="unary"&&o&&!o.binary)return{isUnaryError:!0,unaryError:c};throw c}const l={binary:t,stream:e!=="unary"};if(o?.binary!==l.binary||o.stream!==l.stream)throw new Ve(`unsupported content type ${s}`,o===void 0?Se.Unknown:Se.Internal,r);return{isUnaryError:!1}}const jA="application/";function D4(e,t){return t?GC(e,"url"):encodeURIComponent(new TextDecoder().decode(e))}function M4(e,t,n){let r=`?connect=v${b2}`;const s=e.header.get(xf);s?.indexOf(jA)===0&&(r+="&encoding="+encodeURIComponent(s.slice(jA.length)));const o=e.header.get(VA);o!==null&&o!=="identity"&&(r+="&compression="+encodeURIComponent(o),n=!0),n&&(r+="&base64=1"),r+="&message="+D4(t,n);const l=e.url+r,c=new Headers(e.header);for(const u of[y2,xf,C4,VA,N4])c.delete(u);return Object.assign(Object.assign({},e),{requestMethod:"GET",url:l,header:c})}function B4(e){const t=p2(e.next,e.interceptors),[n,r,s]=v2(e),o=Object.assign(Object.assign({},e.req),{message:h2(e.req.method.input,e.req.message),signal:n});return t(o).then(l=>(s(),l),r)}function G4(e){const t=p2(e.next,e.interceptors),[n,r,s]=v2(e),o=Object.assign(Object.assign({},e.req),{message:S4(e.req.method.input,e.req.message),signal:n});let l=!1;return n.addEventListener("abort",function(){var c,u;const f=e.req.message[Symbol.asyncIterator]();l||(c=f.throw)===null||c===void 0||c.call(f,this.reason).catch(()=>{}),(u=f.return)===null||u===void 0||u.call(f).catch(()=>{})}),t(o).then(c=>Object.assign(Object.assign({},c),{message:{[Symbol.asyncIterator](){const u=c.message[Symbol.asyncIterator]();return{next(){return u.next().then(f=>(f.done==!0&&(l=!0,s()),f),r)}}}}}),r)}function v2(e){const{signal:t,cleanup:n}=w4(e.timeoutMs),r=v4(e.signal,t);return[r.signal,function(o){const l=Ve.from(t.aborted?f2(t):o);return r.abort(l),n(),Promise.reject(l)},function(){n(),r.abort()}]}const V4=zs("CiBhbnRocm9waWMvYW5ub3RhdGlvbnMvYmV0YS5wcm90bxIVYW50aHJvcGljLmFubm90YXRpb25zIpYBChBHYXRpbmdBbm5vdGF0aW9uEjEKCGFueV9iZXRhGAEgAygOMh8uYW50aHJvcGljLmFubm90YXRpb25zLkJldGFHYXRlEj0KDmFueV9jYXBhYmlsaXR5GAIgAygOMiUuYW50aHJvcGljLmFubm90YXRpb25zLkNhcGFiaWxpdHlHYXRlEhAKCGludGVybmFsGAMgASgIKoEJCghCZXRhR2F0ZRIZChVCRVRBX0dBVEVfVU5TUEVDSUZJRUQQABIXChNTRVNTSU9OU19QVUJMSUNfQVBJEAISGAoUV09SS0ZMT1dTX1BVQkxJQ19BUEkQAxIdChlTRVNTSU9OU19QVUJMSUNfQVBJX1ZORVhUEAUSDgoKQUdFTlRfVEFTSxAGEggKBFNBTFQQBxIQCgxDQ1JfVFJJR0dFUlMQCBITCg9PVVRDT01FU19QUk9NUFQQCRIVChFPVVRDT01FU19TVUJBR0VOVBAKEhQKEEFHRU5UX01FTU9SWV9FQVAQDBIaChZDVVNUT01fQUdFTlRTX1BMQVRGT1JNEA0SFwoTV0VCSE9PS1NfUFVCTElDX0FQSRAOEhEKDVVTRVJfUFJPRklMRVMQDxIRCg1TRVNTSU9OX0hPT0tTEBASFwoTU0VTU0lPTl9UT09MX0VWRU5UUxAREhgKFE1PREVMX1JFUVVFU1R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gIqACohChFwcml2YWN5X29wZXJhdGlvbhIMb3JnX2RlbGV0aW9uOAESuAEKEkxpc3RDaGF0c0ZvckV4cG9ydBI5LmFudGhyb3BpYy5vbWVsZXR0ZS5hcGkudjFhbHBoYS5MaXN0Q2hhdHNGb3JFeHBvcnRSZXF1ZXN0GjouYW50aHJvcGljLm9tZWxldHRlLmFwaS52MWFscGhhLkxpc3RDaGF0c0ZvckV4cG9ydFJlc3BvbnNlIivCtRgnCgIqACofChFwcml2YWN5X29wZXJhdGlvbhIKb3JnX2V4cG9ydDgBErgBChJFeHBvcnRDaGF0TWVzc2FnZXMSOS5hbnRocm9waWMub21lbGV0dGUuYXBpLnYxYWxwaGEuRXhwb3J0Q2hhdE1lc3NhZ2VzUmVxdWVzdBo6LmFudGhyb3BpYy5vbWVsZXR0ZS5hcGkudjFhbHBoYS5FeHBvcnRDaGF0TWVzc2FnZXNSZXNwb25zZSIrwrUYJwoCKgAqHwoRcHJpdmFjeV9vcGVyYXRpb24SCm9yZ19leHBvcnQ4ARodorYYGQoCCAMaEXVzZXI6ZGVzaWduOndyaXRlOAFiBnByb3RvMw",[W4,P4,aX]),yre=Oa(w2,70);var _2=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FULL=1]="FULL",e[e.VIEWER=2]="VIEWER",e))(_2||{}),Os=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.PROJECT=1]="PROJECT",e[e.TEMPLATE=2]="TEMPLATE",e[e.DESIGN_SYSTEM=3]="DESIGN_SYSTEM",e))(Os||{}),Io=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NEEDS_REVIEW=1]="NEEDS_REVIEW",e[e.APPROVED=2]="APPROVED",e[e.CHANGES_REQUESTED=3]="CHANGES_REQUESTED",e))(Io||{});const j4=_4(w2,0);function $4(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var Nc=function(e){return this instanceof Nc?(this.v=e,this):new Nc(e)},Y4=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",l),s[Symbol.asyncIterator]=function(){return this},s;function l(b){return function(w){return Promise.resolve(w).then(b,p)}}function c(b,w){r[b]&&(s[b]=function(S){return new Promise(function(_,E){o.push([b,S,_,E])>1||u(b,S)})},w&&(s[b]=w(s[b])))}function u(b,w){try{f(r[b](w))}catch(S){g(o[0][3],S)}}function f(b){b.value instanceof Nc?Promise.resolve(b.value.v).then(h,p):g(o[0][2],b)}function h(b){u("next",b)}function p(b){u("throw",b)}function g(b,w){b(w),o.shift(),o.length&&u(o[0][0],o[0][1])}};const $A={redirect:"error"};function Z4(e){var t;$4();const n=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!1;return{async unary(r,s,o,l,c,u){const{serialize:f,parse:h}=DA(r,n,e.jsonOptions,e.binaryOptions);return o=o===void 0?e.defaultTimeoutMs:o<=0?void 0:o,await B4({interceptors:e.interceptors,signal:s,timeoutMs:o,req:{stream:!1,service:r.parent,method:r,requestMethod:"POST",url:OA(e.baseUrl,r),header:WA(r.methodKind,n,o,l,!1),contextValues:u??FA(),message:c},next:async p=>{var g;const b=e.useHttpGet===!0&&r.idempotency===zy.NO_SIDE_EFFECTS;let w=null;b?p=M4(p,f(p.message),n):w=f(p.message);const _=await((g=e.fetch)!==null&&g!==void 0?g:globalThis.fetch)(p.url,Object.assign(Object.assign({},$A),{method:p.requestMethod,headers:p.header,signal:p.signal,body:w})),{isUnaryError:E,unaryError:A}=PA(r.methodKind,n,_.status,_.headers);if(E)throw g2(await _.json(),t4(...UA(_.headers)),A);const[x,C]=UA(_.headers);return{stream:!1,service:r.parent,method:r,header:x,message:n?h(new Uint8Array(await _.arrayBuffer())):s2(r.output,await _.json(),m2(e.jsonOptions)),trailer:C}}})},async stream(r,s,o,l,c,u){const{serialize:f,parse:h}=DA(r,n,e.jsonOptions,e.binaryOptions);function p(b,w,S,_){return Y4(this,arguments,function*(){const A=i4(b).getReader();let x=!1;for(;;){const C=yield Nc(A.read());if(C.done)break;const{flags:O,data:T}=C.value;if((O&LA)===LA)throw new Ve("protocol error: received unsupported compressed output",Se.Internal);if((O&GA)===GA){x=!0;const I=I4(T);if(I.error){const W=I.error;throw S.forEach((D,J)=>{W.metadata.append(J,D)}),W}I.metadata.forEach((W,D)=>w.set(D,W));continue}yield yield Nc(h(T))}if("throwIfAborted"in _&&_.throwIfAborted(),!x)throw"missing EndStreamResponse"})}async function g(b){if(r.methodKind!="server_streaming")throw"The fetch API does not support streaming request bodies";const w=await b[Symbol.asyncIterator]().next();if(w.done==!0)throw"missing request message";return a4(0,f(w.value))}return o=o===void 0?e.defaultTimeoutMs:o<=0?void 0:o,await G4({interceptors:e.interceptors,timeoutMs:o,signal:s,req:{stream:!0,service:r.parent,method:r,requestMethod:"POST",url:OA(e.baseUrl,r),header:WA(r.methodKind,n,o,l,!1),contextValues:u??FA(),message:c},next:async b=>{var w;const _=await((w=e.fetch)!==null&&w!==void 0?w:globalThis.fetch)(b.url,Object.assign(Object.assign({},$A),{method:b.requestMethod,headers:b.header,signal:b.signal,body:await g(b.message)}));if(PA(r.methodKind,n,_.status,_.headers),_.body===null)throw"missing response body";const E=new Headers;return Object.assign(Object.assign({},b),{header:_.headers,trailer:E,message:p(_.body,E,_.headers,b.signal)})}})}}}var er={},YA;function X4(){if(YA)return er;YA=1,Object.defineProperty(er,"__esModule",{value:!0}),er.parseCookie=c,er.parse=c,er.stringifyCookie=u,er.stringifySetCookie=f,er.serialize=f,er.parseSetCookie=h,er.stringifySetCookie=f,er.serialize=f;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,s=/^-?\d+$/,o=Object.prototype.toString,l=(()=>{const _=function(){};return _.prototype=Object.create(null),_})();function c(_,E){const A=new l,x=_.length;if(x<2)return A;const C=E?.decode||w;let O=0;do{const T=g(_,O,x);if(T===-1)break;const I=p(_,O,x);if(T>I){O=_.lastIndexOf(";",T-1)+1;continue}const W=b(_,O,T);A[W]===void 0&&(A[W]=C(b(_,T+1,I))),O=I+1}while(Ox;){const O=_.charCodeAt(C-1);if(O!==32&&O!==9)break;C--}return _.slice(x,C)}function w(_){if(_.indexOf("%")===-1)return _;try{return decodeURIComponent(_)}catch{return _}}function S(_){return o.call(_)==="[object Date]"}return er}var z4=X4();const H4=e=>async t=>{if(t.stream)return e(t);const n=performance.now(),r=t.method.name;try{const s=await e(t);return kr.addAction("rpc",{method:r,ms:performance.now()-n,ok:!0}),s}catch(s){const o=s instanceof Ve?Se[s.code]:"unknown";throw kr.addAction("rpc",{method:r,ms:performance.now()-n,ok:!1,code:o}),s}};function zt(e,t={}){if(typeof window>"u")return;const n={...t.attrs,duration_ms:t.duration};kr.addAction(e,n),t.duration!==void 0&&kr.addTiming(e,t.duration)}const K4="auth proxy redirected; reloading",ZA="omelette_auth_redirect_reload_at",J4=3e4;let XA=!1;function Q4(){if(XA)return;XA=!0;let e=0;try{e=Number(sessionStorage.getItem(ZA)??0)}catch{}if(Date.now()-e{const n=await fetch(e,{...t,redirect:"manual"});if(n.type==="opaqueredirect")throw Q4(),new TypeError(K4);return n},S2="lastActiveOrg",ez="lastActiveOrg changed mid-session; reloading";function E2(){if(!(typeof document>"u"))return z4.parse(document.cookie)[S2]||void 0}let Rf,jg=!1,zA=!1;function k2(e){zA||(zA=!0,zt("design.org_guard_fired",{attrs:{trigger:e}}),typeof window<"u"&&window.location.reload())}function A2(){if(Rf===void 0)return!1;const e=E2();return e!==void 0&&e!==Rf}function x2(){if(jg)return;if(Rf=E2(),Rf===void 0){jg=!0;return}const e=t=>{document.visibilityState==="visible"&&A2()&&k2(t)};window.cookieStore?.addEventListener("change",t=>{t.changed.some(n=>n.name===S2)&&e("cookiestore")}),document.addEventListener("visibilitychange",()=>e("visibility")),window.addEventListener("focus",()=>e("focus")),jg=!0}const tz=e=>t=>{if(A2())throw k2("interceptor"),new Error(ez);return e(t)},Gh="x-organization-uuid";let Tf;function dw(e){Tf=e}function Vh(){return Tf}const nz=e=>t=>(Tf&&t.header.set(Gh,Tf),e(t)),fw="x-omelette-tab-id",Uh=crypto.randomUUID(),rz=e=>t=>(t.header.set(fw,Uh),e(t)),sz=e=>t=>(t.header.set("X-Client-Version","12c63a7efedc5557504ed9f9f5d8d7f6e49263d7"),e(t));let $g=null;function K(){if(!$g){const e=Z4({baseUrl:new URL("/design/",self.location.origin).href,useBinaryFormat:!0,fetch:q4,interceptors:[tz,nz,rz,sz,H4]});$g=p4(j4,e)}return $g}const oz={[Os.UNSPECIFIED]:"project",[Os.PROJECT]:"project",[Os.TEMPLATE]:"template",[Os.DESIGN_SYSTEM]:"design_system"},iz={project:Os.PROJECT,template:Os.TEMPLATE,design_system:Os.DESIGN_SYSTEM};function If(e){return oz[e]??"project"}function R2(e){return iz[e]}function Yg(e){return e?new Date(Number(e.seconds)*1e3).toISOString():null}function az(e){return{projectId:e.projectId,name:e.name,type:If(e.type),publishedAt:Yg(e.publishedAt),templateTitle:e.templateTitle||e.name,description:e.description||null,introText:e.introText||null,ownerUuid:e.ownerUuid,ownerEmail:e.ownerEmail,ownerDisplayName:e.ownerDisplayName,teamCanEdit:e.sharing?.teamCanEdit??!1,viewedAt:Yg(e.viewedAt),updatedAt:Yg(e.updatedAt)}}const lz=Object.freeze(Object.defineProperty({__proto__:null,ORG_UUID_HEADER:Gh,TAB_ID_HEADER:fw,armOrgGuard:x2,getOmeletteClient:K,getOrgUuid:Vh,projectTypeFromString:R2,projectTypeToString:If,protoToOrgProject:az,setOrgUuid:dw,tabID:Uh},Symbol.toStringTag,{value:"Module"})),cz="fake_",HA="anthropic";function T2(e){return{user_id:e.accountUuid,email:e.email??"",display_name:e.displayName||null,org_id:e.organizationUuid,org_name:e.orgName??"",growthbook_payload:e.growthbookPayload??"",can_impersonate:!Da(),is_eap:!1,is_anthropic:e.isAnthropic??!1,is_personal_org:e.isPersonalOrg??!1,is_admin:!1,access_level:e.accessLevel==="ACCESS_LEVEL_VIEWER"||e.accessLevel===_2.VIEWER?"viewer":"full",model_presets:(e.modelPresets??[]).map(t=>({id:t.id??"",label:t.label??"",description:t.description??"",overflow:t.overflow??!1,maxTokens:t.maxTokens??2e5,supportsAdaptiveThinking:t.supportsAdaptiveThinking??!1})),default_model_id:e.defaultModelId??"",override_sticky_model:e.overrideStickyModel??!1}}let Kr=typeof window<"u"&&window.__OMELETTE_ME__?T2(window.__OMELETTE_ME__):null;Kr&&dw(Kr.org_id);let Jy=null,Vl=null;const Qy=new Set;function hw(){return Kr?Promise.resolve(Kr):Vl||(Jy=null,Vl=K().getMe({}).then(T2).catch(e=>{if(e instanceof Ve&&e.code===Se.Unauthenticated){const t=window.location.pathname+window.location.search+window.location.hash;return window.location.href=`/login?returnTo=${encodeURIComponent(t)}`,null}return Jy=e instanceof Error?e:new Error(String(e)),null}).then(e=>{Kr=e,e&&dw(e.org_id);for(const t of Qy)t();return e}).finally(()=>{Vl=null}),Vl)}function uz(e){return Qy.add(e),hw(),()=>{Qy.delete(e)}}function dz(){return Jy??Kr}function Yo(){const e=U.useSyncExternalStore(uz,dz);if(e instanceof Error)throw e;return e}function Da(){return!0}async function fz(){return Da()?(await hw())?.is_anthropic??!1:!0}async function hz(){const t=(await hw())?.email??"",n=t.lastIndexOf("@");return n>=0?t.slice(n+1):""}function bre(){return Da()?Kr?.is_anthropic??!1:!0}function pz(){return Da()?{id:"",orgId:"",name:"",canImpersonate:!1,isImpersonating:!1,isAnthropic:!1,isPersonal:!1,isAdmin:!1,ready:!1}:{id:HA,orgId:HA,name:"Anthropic",canImpersonate:!1,isImpersonating:!1,isAnthropic:!1,isPersonal:!1,isAdmin:!1,ready:!1}}function vre(e){const t=Yo();if(!t)return pz();const r=((typeof window<"u"?new URLSearchParams(window.location.search).get("org"):null)||e||"").trim().toLowerCase()||null;return t.can_impersonate&&r&&r!==t.org_id?{id:r,orgId:`${cz}${r}`,name:r,canImpersonate:!0,isImpersonating:!0,isAnthropic:!1,isPersonal:!1,isAdmin:t.is_admin,ready:!0}:{id:t.org_id,orgId:t.org_id,name:t.org_name,canImpersonate:t.can_impersonate,isImpersonating:!1,isAnthropic:t.is_anthropic,isPersonal:t.is_personal_org,isAdmin:t.is_admin,ready:!0}}function mz(){const e=Yo();return e?{userId:e.user_id,displayName:e.display_name||e.email,email:e.email}:null}function I2(){return Yo()?.access_level??"full"}function wre(){window.location.href="/logout"}function gz(){return Yo()?.growthbook_payload??null}function _re(){return Yo()?.model_presets??null}function Cf(){return Kr?.model_presets??[]}function Sre(e){return Cf().find(t=>t.id===e)?.label||e}function Ere(){return Yo()?.default_model_id||null}function KA(){return Kr?.default_model_id||null}function kre(){return Yo()?.override_sticky_model??!1}function Are(e){const t=e?.trim();return t?Da()?(Cf().some(s=>s.id===t)?t:KA())||void 0:t:KA()||void 0}function qy(e){let t=0;for(let n=0;n>>0).toString()}const JA={omelette_au_jambon:!1,omelette_aux_champignons:!0};function Ma(e){const t=JY(qy(e));if(t.source==="unknownFeature"&&e in JA){const n=JA[e];return{...t,value:n,on:!!n,off:!n,source:"defaultValue"}}return t}function xre(){const e=I2()==="viewer",t=Ma("omelette_disable_create_project").on;return e||t}const Rre="Temporarily unavailable";function Tre(){return Ma("omelette_disable_file_upload").on}const Ire="File upload is temporarily unavailable",yz={"claude.ai":"rwppv331jlwc","Claude Code":"yyzkbfz2thpt",Cowork:"bpp5gb3hpjcl"},bz="https://status.claude.com/api/v2/summary.json",vz=6e4,wz={severity:"warning",message:"Anthropic services may be degraded. Check",linkText:"status.claude.com",linkHref:"https://status.claude.com/",linkTrailing:"for updates."};function _z(e){const t=new Map((e.components??[]).map(n=>[n.id,n.status]));return Object.values(yz).every(n=>{const r=t.get(n);return typeof r=="string"&&r!=="operational"})}let eb=0;const tb=new Set;function Cre(e){eb=Math.max(0,eb+(e?1:-1));for(const t of tb)t()}function Sz(e){return tb.add(e),()=>{tb.delete(e)}}const Ez=()=>eb>0;function kz(){const e=Ma("omelette_auto_incident_banner").on,t=U.useSyncExternalStore(Sz,Ez,()=>!1),[n,r]=U.useState(!1),s=e&&t&&!0,o=()=>{fetch(bz,{cache:"no-store"}).then(l=>l.ok?l.json():Promise.reject(new Error(String(l.status)))).then(l=>r(_z(l))).catch(()=>{})};return U.useEffect(()=>{s&&o()},[s]),$I(o,s?vz:null),s&&n?wz:null}const ic={info:{bg:`${ee.accent.secondary}1f`,fg:ee.accent.secondaryActive,icon:"Info"},warning:{bg:"#ffebe4",fg:ee.accent.primaryActive,icon:"Warning"},critical:{bg:`${ee.accent.error}1f`,fg:ee.accent.error,icon:"Warning"}},Az=Pe.div` display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 40px; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; background: ${e=>ic[e.$sev].bg}; color: ${e=>ic[e.$sev].fg}; border-bottom: 1px solid ${e=>ic[e.$sev].fg}33; position: relative; `,xz=Pe.span` min-width: 0; `,Rz=Pe.a` color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; white-space: nowrap; `,Tz=Pe.div` position: absolute; right: 8px; top: 50%; transform: translateY(-50%); `;function Iz(){const e=Ma("omelette_incident_banner").value,t=kz(),[n,r]=w$("omelette-incident-banner-dismissed",""),s=e&&typeof e=="object"&&typeof e.message=="string"&&e.message.trim()?e:t;if(!s||typeof s!="object")return null;const{message:o,severity:l,linkText:c,linkHref:u,linkTrailing:f}=s;if(typeof o!="string"||!o.trim()||n===o)return null;const h=typeof l=="string"&&l in ic?l:"warning",p=typeof u=="string"&&/^https?:\/\//i.test(u)?u:void 0,g=typeof c=="string"?c:void 0,b=typeof f=="string"?f:void 0;return te.jsxs(Az,{$sev:h,role:"status","data-testid":"incident-banner",children:[te.jsx(XI,{name:ic[h].icon,size:15}),te.jsxs(xz,{children:[o,p&&te.jsxs(te.Fragment,{children:[" ",te.jsx(Rz,{href:p,target:"_blank",rel:"noopener noreferrer",children:g||"Learn more"})]}),b&&te.jsxs(te.Fragment,{children:[" ",b]})]}),te.jsx(Tz,{children:te.jsx(jI,{icon:"X",size:22,title:"Dismiss",style:{color:"inherit"},onClick:()=>r(o)})})]})}const Cz="Claude Design",Nz="omelette_product_name";function Lz(){return Ma(Nz).value||Cz}const Fz=Pe.div` display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; background: ${ee.accent.secondary}1f; color: ${ee.accent.secondaryActive}; border-bottom: 1px solid ${ee.accent.secondaryActive}33; `,Oz=Pe.span` min-width: 0; `,Dz=Pe.a` color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; white-space: nowrap; `,Mz="/upgrade";function Bz(){const e=I2(),t=Lz();return e!=="viewer"?null:te.jsxs(Fz,{role:"status","data-testid":"viewer-mode-banner",children:[te.jsx(XI,{name:"Info",size:15}),te.jsxs(Oz,{children:["Your subscription has ended, so ",t," is in view-only mode. You can still open and download your existing projects."]}),te.jsx(Dz,{href:Mz,children:"Resubscribe"})]})}function Gz(e=2e3){const[t,n]=U.useState(!1),r=U.useRef();U.useEffect(()=>()=>clearTimeout(r.current),[]);const s=U.useCallback(async l=>{try{await navigator.clipboard.writeText(l)}catch{return!1}return clearTimeout(r.current),n(!0),r.current=setTimeout(()=>n(!1),e),!0},[e]),o=U.useCallback(()=>{clearTimeout(r.current),n(!1)},[]);return{copied:t,copy:s,reset:o}}const C2=U.createContext(null);function Nre(){const e=U.useContext(C2);if(!e)throw new Error("useToast must be used within a ToastProvider");return e}const Vz=Fa` from { transform: translateY(16px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } `,Uz=Fa` from { transform: translateY(0); opacity: 1; } to { transform: translateY(12px); opacity: 0; } `,Wz="cubic-bezier(0.34, 1.56, 0.64, 1)",Pz=Pe.div` position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: ${YI.toast}; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; `,jz=Pe.div` display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; background: ${ee.bg.surface}; border: 1px solid ${ee.border.default}; border-radius: 8px; box-shadow: ${ee.shadow.lg}; max-width: 360px; pointer-events: auto; animation: ${e=>e.$exiting?Tt`${Uz} 0.18s ease-in forwards`:Tt`${Vz} 0.32s ${Wz}`}; ${e=>e.$type==="error"&&Tt` border-color: color-mix(in srgb, ${ee.accent.error} 40%, ${ee.border.default}); background: color-mix(in srgb, ${ee.accent.error} 8%, ${ee.bg.surface}); `} ${e=>e.$type==="success"&&Tt` border-color: color-mix(in srgb, ${ee.accent.success} 40%, ${ee.border.default}); background: color-mix(in srgb, ${ee.accent.success} 8%, ${ee.bg.surface}); `} ${e=>e.$type==="warning"&&Tt` border-color: color-mix(in srgb, ${ee.accent.warning} 40%, ${ee.border.default}); background: color-mix(in srgb, ${ee.accent.warning} 8%, ${ee.bg.surface}); `} `,$z=Pe.div` flex-shrink: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; opacity: 0.7; color: ${e=>{switch(e.$type){case"error":return ee.accent.error;case"success":return ee.accent.success;case"warning":return ee.accent.warning;default:return ee.accent.blue}}}; `,Yz=Pe.div` flex: 1; min-width: 0; font-family: inherit; `,Zz=Pe.div` font-size: 13px; font-weight: 600; line-height: 1.3; color: ${ee.text.primary}; margin-bottom: 2px; `,Xz=Pe.div` font-size: ${e=>e.$hasTitle?12:13}px; line-height: 1.4; color: ${e=>e.$hasTitle?ee.text.secondary:ee.text.primary}; user-select: text; cursor: text; a { color: ${ee.accent.blue}; text-decoration: underline; cursor: pointer; &:hover { opacity: 0.8; } } `,zz=Pe.div` display: flex; gap: 6px; margin-top: 8px; `,Hz=Pe.button` flex-shrink: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; cursor: pointer; color: ${ee.text.tertiary}; border-radius: 4px; &:hover { background: ${ee.bg.hover}; color: ${ee.text.secondary}; } `;function Kz(e){switch(e){case"error":return"Prohibit";case"success":return"CheckCircle";case"warning":return"Warning";default:return"Info"}}function Jz({toast:e,onClose:t}){const[n,r]=U.useState(!1),{copied:s,copy:o}=Gz(1500),l=U.useRef(),c=U.useRef(t);c.current=t;const u=U.useCallback(()=>{r(!0),clearTimeout(l.current),l.current=setTimeout(()=>c.current(),200)},[]);U.useEffect(()=>{if(e.duration&&e.duration>0){const h=setTimeout(u,e.duration);return()=>clearTimeout(h)}},[e.duration,u]),U.useEffect(()=>()=>clearTimeout(l.current),[]);const f=()=>{o(typeof e.message=="string"?e.message:"")};return te.jsxs(jz,{$type:e.type,$exiting:n,children:[te.jsx($z,{$type:e.type,children:te.jsx(Oo,{name:Kz(e.type),size:16,bold:!0})}),te.jsxs(Yz,{children:[e.title&&te.jsx(Zz,{children:e.title}),te.jsx(Xz,{$hasTitle:!!e.title,children:e.message}),e.action&&te.jsx(zz,{children:te.jsx(zd,{size:"xs",onClick:e.action.onClick,children:e.action.label})})]}),e.type==="error"&&te.jsx(Hz,{onClick:f,title:"Copy error message",children:te.jsx(Oo,{name:s?"Check":"Copy",size:12})}),te.jsx(jI,{icon:"X",size:20,iconSize:11,onClick:u,title:"Dismiss"})]})}function Qz({children:e}){const[t,n]=U.useState([]),r=U.useRef(new Map),s=U.useCallback((u,f="info",h=5e3,p)=>{const g=crypto.randomUUID(),{onDismiss:b,...w}=p??{};return b&&r.current.set(g,b),n(S=>[...S,{id:g,message:u,type:f,duration:h,...w}]),g},[]),o=U.useCallback((u,f)=>{n(h=>h.map(p=>p.id===u?{...p,message:f}:p))},[]),l=U.useCallback(u=>{n(h=>h.filter(p=>p.id!==u));const f=r.current.get(u);f&&(r.current.delete(u),f())},[]),c=U.useMemo(()=>({showToast:s,updateToast:o,hideToast:l}),[s,o,l]);return te.jsxs(C2.Provider,{value:c,children:[e,te.jsx(Pz,{children:t.map(u=>te.jsx(Jz,{toast:u,onClose:()=>l(u.id)},u.id))})]})}class nb extends U.Component{hasCaptured=!1;constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){this.hasCaptured||(this.hasCaptured=!0,this.props.onCatch?.(t),kr.addError(t,{source:"render_error_boundary",component:this.props.componentName,...this.props.tags,url:typeof window<"u"?window.location.pathname:"",componentStack:n.componentStack}))}reset=()=>{this.setState({error:null})};render(){if(this.state.error){const{fallback:t}=this.props;return typeof t=="function"?t(this.state.error,this.reset):t}return this.props.children}}const Rt=new Map,rb=new Set,qz=()=>Rt.size===0;function pw(e,t=.2){return e*(1+(Math.random()*2-1)*t)}function eH(e,t){const{base:n,cap:r}=t,s=Math.min(r,n*2**e);return n+Math.random()*(s-n)}const N2=720*60*1e3,tH=30/720,nH=3600*1e3,rH=300*1e3,QA="omelette_stale_reload_at",sH=60*1e3;function oH(e,t,n,r,s,o=N2){if(e-tnH;return r||l}function iH(){const e=U.useRef(Date.now()),t=U.useRef(Date.now()),n=U.useRef(document),r=U.useRef(pw(N2,tH)).current,s=()=>{t.current=Date.now()},o=()=>{const l=Date.now();if(!oH(l,e.current,t.current,document.hidden,qz(),r))return;try{const u=Number(sessionStorage.getItem(QA)??0);if(l-u"u"||window.dispatchEvent(new CustomEvent("telemetry:span",{detail:{name:"design.chat.abort",opts:{attrs:{reason:e}},projectId:t}}))}let ex=!1;function F2(e,t={}){ex||(ex=!0,zt("design.page_load",{attrs:{...t,outcome:e}}))}const mw=new Promise(()=>{}),aH=U.lazy(()=>Dt(()=>import("./ProjectsPage-DOU0W5yf.js"),__vite__mapDeps([0,1,2,3])).then(e=>e?{default:e.ProjectsPage}:mw)),lH=U.lazy(()=>Dt(()=>import("./ProjectPage-CQ7gfF1S.js").then(e=>e.P),__vite__mapDeps([4,1,2,3])).then(e=>e?{default:e.ProjectPage}:mw)),cH=U.lazy(()=>Dt(()=>import("./FromCcPage-CyebABRS.js"),__vite__mapDeps([5,2])).then(e=>e?{default:e.FromCcPage}:mw)),O2=te.jsx(D$,{fixed:!0}),uH=Pe.div` height: 100dvh; display: flex; flex-direction: column; `,dH=Pe.div` flex: 1; min-height: 0; `;function fH(){const{projectId:e}=ij(),t=mz();return e?t?te.jsx(lH,{id:e,userId:t.userId,userEmail:t.email}):O2:te.jsx(oI,{to:"/",replace:!0})}function hH(){const e=Ma("omelette_ds_v2_layout").on;return qA(e),U.useEffect(()=>qA(e),[e]),null}function pH(){return iH(),U.useEffect(()=>{F2("success")},[]),te.jsx(Qz,{children:te.jsxs(N$,{children:[te.jsx(hH,{}),te.jsxs(uH,{children:[te.jsx(nb,{componentName:"IncidentBanner",fallback:null,children:te.jsx(Iz,{})}),te.jsx(nb,{componentName:"ViewerModeBanner",fallback:null,children:te.jsx(Bz,{})}),te.jsx(dH,{children:te.jsx(U.Suspense,{fallback:O2,children:te.jsxs(Sj,{children:[te.jsx($l,{path:"/",element:te.jsx(aH,{})}),te.jsx($l,{path:"/p/:projectId",element:te.jsx(fH,{})}),te.jsx($l,{path:"/fromcc",element:te.jsx(cH,{})}),te.jsx($l,{path:"*",element:te.jsx(oI,{to:"/",replace:!0})})]})})})]})]})})}const mH=new Set(["upgrade_plan","overage"]),gH={five_hour:"session limit",seven_day:"Claude Design weekly limit",seven_day_omelette:"Claude Design weekly limit",seven_day_opus:"Opus limit",seven_day_sonnet:"Sonnet limit",omelette_promotional:"included Claude Design usage",overage:"extra usage limit"};function yH(e){return e&&gH[e]||"usage limit"}function tx(e){return e==="omelette_promotional"}function bH(e){return e==="org_level_disabled_until"||e==="org_spend_cap_reached"}const vH={"5h":"five_hour","7d_opus":"seven_day_opus","7d_sonnet":"seven_day_sonnet","7d_om":"seven_day_omelette",omelette_promotional:"omelette_promotional","7d":"seven_day",overage:"overage"};let Co={quotaStatus:"allowed",unifiedRateLimitFallbackAvailable:!1,isUsingOverage:!1};const sb=new Set;function Fre(e){return sb.add(e),()=>sb.delete(e)}function gw(e){Co=e,sb.forEach(t=>t(e))}function wH(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}function D2(e){const t=e["anthropic-ratelimit-unified-overage-status"],n=e["anthropic-ratelimit-unified-overage-disabled-reason"],r=e["anthropic-ratelimit-unified-overage-reset"],o=e["anthropic-ratelimit-unified-upgrade-paths"]?.split(",").filter(l=>mH.has(l));return{...t&&{overageHeaderStatus:t},...n&&{overageDisabledReason:n},...r&&{overageResetsAt:Number(r)},...o&&o.length>0&&{upgradePaths:o}}}function _H(e,t){for(const[n,r]of Object.entries(vH)){const s=e[`anthropic-ratelimit-unified-${n}-surpassed-threshold`];if(s!==void 0){const o=e[`anthropic-ratelimit-unified-${n}-utilization`],l=e[`anthropic-ratelimit-unified-${n}-reset`];return{quotaStatus:"allowed_warning",rateLimitType:r,resetsAt:l!==void 0?Number(l):void 0,utilization:o!==void 0?Number(o):void 0,surpassedThreshold:Number(s),unifiedRateLimitFallbackAvailable:t,isUsingOverage:!1,...D2(e)}}}return null}function M2(e){const t=wH(e),n=t["anthropic-ratelimit-unified-status"]||"allowed",r=t["anthropic-ratelimit-unified-reset"],s=r!==void 0?Number(r):void 0,o=t["anthropic-ratelimit-unified-fallback"]==="available",l=t["anthropic-ratelimit-unified-representative-claim"],c=D2(t),u=n==="rejected"&&(c.overageHeaderStatus==="allowed"||c.overageHeaderStatus==="allowed_warning");if(n!=="rejected"){const f=_H(t,o);if(f)return f}return{quotaStatus:n==="rejected"?"rejected":"allowed",resetsAt:s,unifiedRateLimitFallbackAvailable:o,...l&&{rateLimitType:l},...c,isUsingOverage:u}}function yw(e,t){return JSON.stringify(e)===JSON.stringify(t)}function SH(e){const t=M2(e);yw(Co,t)||gw(t)}function EH(e){const t=M2(e);t.quotaStatus="rejected",t.isUsingOverage=t.overageHeaderStatus==="allowed"||t.overageHeaderStatus==="allowed_warning",yw(Co,t)||gw(t)}function kH(e){const t=e.sevenDayOmelette??e.omelettePromotional;if(!t||t.utilization===void 0)return;const n=t.utilization>=100?"rejected":"allowed",r=t.resetsAt!==void 0?Number(t.resetsAt):void 0;let s,o;if(e.extraUsage){const f=e.extraUsage.disabledReason;e.extraUsage.isEnabled?(e.extraUsage.utilization??0)>=100?(s="rejected",o=f??"org_spend_cap_reached"):s="allowed":(s="rejected",o=f??"overage_not_provisioned")}const l=n==="rejected"&&s==="allowed",c=e.sevenDayOmelette?"seven_day_omelette":"omelette_promotional",u={quotaStatus:n,rateLimitType:c,unifiedRateLimitFallbackAvailable:!1,isUsingOverage:l,...r!==void 0&&{resetsAt:r},...s&&{overageHeaderStatus:s},...o&&{overageDisabledReason:o}};yw(Co,u)||gw(u)}let ob=null;function AH(e){ob=e}const xH=new Set(["seven_day_omelette","omelette_promotional","seven_day",void 0]);async function RH(){if(!(Co.quotaStatus!=="rejected"||Co.isUsingOverage)&&xH.has(Co.rateLimitType)&&ob)try{kH(await ob())}catch{}}typeof document<"u"&&document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&RH()});const TH=new Intl.DateTimeFormat(void 0,{hour:"numeric",minute:"2-digit"}),IH=new Intl.DateTimeFormat(void 0,{weekday:"short"}),CH=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric"});function nx(e){if(!e)return"";const t=new Date(e*1e3),n=t.getTime()-Date.now();if(n<=0)return"resets soon";const r=new Date().toDateString()===t.toDateString(),s=TH.format(t);return r?`resets at ${s}`:n>2880*60*1e3?`resets ${CH.format(t)}`:`resets ${IH.format(t)} ${s}`}function Ore(e){const t=yH(e.rateLimitType),n=tx(e.rateLimitType),r=n?"":nx(e.resetsAt),s=r?` · It ${r}`:"",o=e.rateLimitType==="overage"?"":". Claude Design has its own usage limit, separate from your regular Claude usage.";if(e.isUsingOverage)return e.overageHeaderStatus==="allowed_warning"?{text:"You're close to your extra usage spending limit",severity:"warning"}:n?null:{text:`You're now using extra usage · Your ${t} ${r||"will reset"}`,severity:"info"};if(e.quotaStatus==="rejected"){const l=nx(e.overageResetsAt),c=l?` · It ${l}`:"";if(e.overageDisabledReason==="out_of_credits")return{text:"You're out of extra usage credits"+c,severity:"error"};if(bH(e.overageDisabledReason))return{text:"You've reached your monthly extra usage spend limit"+c,severity:"error"};if(e.overageDisabledReason==="fetch_error")return{text:"We couldn't check your extra usage right now. Try again in a moment.",severity:"error"};if(n){const f=e.overageHeaderStatus!=="rejected"?"You can keep going with extra usage.":"Contact your administrator to enable extra usage.";return{text:`You've used all of your ${t}. ${f}`,severity:"error"}}return{text:`You've hit your ${t}${s}${o}`,severity:"error"}}if(e.quotaStatus==="allowed_warning"){if(tx(e.rateLimitType)&&e.overageHeaderStatus==="allowed")return null;const l=e.utilization!==void 0?Math.round(e.utilization*100):void 0;return{text:`You've used ${l!==void 0?`${l}% of `:""}your ${t}${s}${o}`,severity:"warning"}}return null}const Dre="Chat";function Mre(e){return e.type.startsWith("SHARED_")}const NH=new Set(["SHARED_START_STREAMING","SHARED_APPEND_STREAMING_TEXT","SHARED_APPEND_STREAMING_THINKING","SHARED_ADD_STREAMING_TOOL_CALL","SHARED_ADD_STREAMING_INTERJECTION","SHARED_SET_STREAMING_ERROR","SHARED_UPDATE_STREAMING_TOOL_RESULT","SHARED_UPDATE_STREAMING_TOKENS"]),LH="claude-opus-4-7",Nf=5e4,Bre=5,FH=!1,OH=!0,So=["*"];function dt(e,t,n){let s=t;if(s>=e.length)return e.slice(0);if(s<=0)return"";const o=e.charCodeAt(s-1);return o>=55296&&o<=56319&&s--,e.slice(0,s)}const DH=e=>e==="react-dom"?"ReactDOM":"React",MH=/^[A-Za-z_$][\w$]*$/,BH=new Set(["__proto__","prototype","constructor","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","yield","let","static","implements","interface","package","private","protected","public","arguments","eval"]),Sn=e=>MH.test(e)&&!BH.has(e);function Pi(e,t=[]){if(!e||typeof e!="object")return t;const n=e;switch(n.type){case"Identifier":typeof n.name=="string"&&t.push(n.name);break;case"ObjectPattern":for(const r of n.properties??[]){const s=r;Pi(s.type==="RestElement"?s.argument:s.value,t)}break;case"ArrayPattern":for(const r of n.elements??[])Pi(r,t);break;case"RestElement":Pi(n.argument,t);break;case"AssignmentPattern":Pi(n.left,t);break}return t}const rx=e=>e?e.type==="Identifier"?e.name??"":e.value??"":"",GH=new Set(["TSInterfaceDeclaration","TSTypeAliasDeclaration","TSModuleDeclaration"]),VH=new Set(["TSTypeReference","TSTypeQuery","TSQualifiedName","TSExpressionWithTypeArguments","TSTypePredicate","TSTypeParameter","TSInterfaceDeclaration","TSTypeAliasDeclaration"]);async function UH(e,t){const n=await Dt(()=>import("./babel-BKwAm-ws.js").then(_=>_.b),[]),r=!/\.[mc]?ts$/.test(t??""),s=new Map,o=new Map,l=new Set,c=[],u=new Set,f=(_,E)=>{Sn(_)&&Sn(E)&&s.set(_,E)},h=(_,E)=>{Sn(_)&&Sn(E)&&(o.set(E,_),l.add(E))},p=/\.(d\.[mc]?ts|css|scss|sass|less|styl|json|svg|png|jpe?g|gif|webp|avif|ico|woff2?|ttf|otf|mp[34]|webm|md|mdx|html|txt|ya?ml)$/i,g=_=>(_.startsWith("./")||_.startsWith("../"))&&!p.test(_),b=(_,E,A,x)=>{if(!Sn(A))return;const C=_.scope.getBinding(E);for(const O of C?.referencePaths??[])if(!(O.parentPath?.isExportSpecifier?.()&&O.key==="local")&&!O.parentPath?.isExportDefaultDeclaration?.()&&!VH.has(O.parentPath?.type))if(O.isJSXIdentifier()){const T=()=>x.jsxMemberExpression(x.jsxIdentifier("__ds_scope"),x.jsxIdentifier(A)),I=O.findParent(D=>D.isJSXElement());O.replaceWith(T());const W=I?.node?.closingElement;if(W){let D=W.name;for(;D.type==="JSXMemberExpression";)D=D.object;if(D.type==="JSXIdentifier"&&D.name===E){if(W.name.type==="JSXIdentifier")W.name=T();else if(W.name.type==="JSXMemberExpression"){let J=W.name;for(;J.object.type==="JSXMemberExpression";)J=J.object;J.object=T()}}}}else O.replaceWith(x.memberExpression(x.identifier("__ds_scope"),x.identifier(A)))},w=({types:_})=>({visitor:{Program(E){for(const A of E.node.body){const x=A.type==="ExportNamedDeclaration"?A.declaration:A;if(!(!x||x.declare)){if((x.type==="FunctionDeclaration"||x.type==="ClassDeclaration"||x.type==="TSEnumDeclaration")&&x.id?.type==="Identifier")l.add(x.id.name);else if(x.type==="VariableDeclaration")for(const C of x.declarations)for(const O of Pi(C.id))l.add(O)}}},ImportDeclaration(E){const A=E.node;if(A.importKind==="type")return E.remove();const x=A.source.value,C=x==="react"||x==="react-dom",O=g(x);O&&c.push(x),!C&&!x.startsWith(".")&&!x.startsWith("/")&&u.add(x);const T=[];for(const I of A.specifiers){if(I.importKind==="type")continue;const W=I.local.name;if(I.type==="ImportSpecifier"){const D=rx(I.imported)||W;C?Sn(W)&&(D===W||Sn(D))&&(l.add(W),T.push(_.objectProperty(_.identifier(D),_.identifier(W),!1,D===W))):O&&(h(D,W),b(E,W,D,_))}else I.type==="ImportDefaultSpecifier"&&!C&&O&&(h(W,W),b(E,W,W,_))}T.length>0?E.replaceWith(_.variableDeclaration("const",[_.variableDeclarator(_.objectPattern(T),_.identifier(DH(x)))])):E.remove()},ExportNamedDeclaration(E){const A=E.node;if(A.exportKind==="type")return E.remove();const x=A.declaration;if(x){if(GH.has(x.type)||x.declare)return E.remove();x.id&&f(x.id.name,x.id.name);for(const C of x.declarations??[])for(const O of Pi(C.id))f(O,O);E.replaceWith(x);return}for(const C of A.specifiers??[]){if(C.exportKind==="type"||C.type!=="ExportSpecifier")continue;const O=rx(C.exported),T=C.local.name;if(A.source){const I=A.source.value;g(I)&&Sn(T)&&Sn(O)?(c.push(I),o.set(T,T),s.set(O,`__ds_scope.${T}`)):I!=="react"&&I!=="react-dom"&&!I.startsWith(".")&&!I.startsWith("/")&&u.add(I)}else if(o.has(T)){const I=o.get(T)??T;Sn(O)&&s.set(O,`__ds_scope.${I}`)}else l.has(T)&&f(O,T)}E.remove()},ExportDefaultDeclaration(E){const A=E.node.declaration;if((A.type==="FunctionDeclaration"||A.type==="ClassDeclaration")&&A.id)l.add(A.id.name),f(A.id.name,A.id.name),E.replaceWith(A);else if(A.type==="Identifier"){const x=A.name;if(o.has(x)){const C=o.get(x)??x;Sn(x)&&s.set(x,`__ds_scope.${C}`)}else l.has(x)&&f(x,x);E.remove()}else{const x=A.type==="FunctionDeclaration"||A.type==="ClassDeclaration"?_.toExpression(A):A;E.replaceWith(_.tryStatement(_.blockStatement([_.expressionStatement(_.unaryExpression("void",x,!0))]),_.catchClause(null,_.blockStatement([]))))}},ExportAllDeclaration(E){const A=E.node.source?.value;typeof A=="string"&&(g(A)?c.push(A):A!=="react"&&A!=="react-dom"&&!A.startsWith(".")&&!A.startsWith("/")&&u.add(A)),E.remove()},TSExportAssignment(E){E.remove()},TSImportEqualsDeclaration(E){E.remove()}}});let S;try{S=n.transform(e,{plugins:[w],presets:[["typescript",{allExtensions:!0,isTSX:r,onlyRemoveTypeImports:!0}],["react",{runtime:"classic"}]],filename:r?"ds.tsx":"ds.ts",sourceType:"module",parserOpts:{errorRecovery:!0},ast:!1,cloneInputAst:!1,babelrc:!1,configFile:!1})?.code??""}catch{return{code:"",exports:s,imports:o,siblingPaths:c,packageImports:u,parseFailed:!0}}return{code:S,exports:s,imports:o,siblingPaths:c,packageImports:u}}const WH=e=>[...e].map(([t,n])=>t===n?t:`${t}: ${n}`).join(", "),B2=2;function PH(e,t){const n=e.split(/[^A-Za-z0-9]+/).filter(Boolean).map(s=>s[0].toUpperCase()+s.slice(1)).join(""),r=n?/^[0-9]/.test(n)?"Ds"+n:n:"Ds";if(t){const s=t.replace(/[^A-Za-z0-9]/g,"").slice(0,6);if(s)return`${r}_${s}`}return r}async function G2(e){const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return[...new Uint8Array(t)].slice(0,6).map(n=>n.toString(16).padStart(2,"0")).join("")}function V2(e,t,n){const r=e.slice(0,e.lastIndexOf("/")+1);let s;try{s=decodeURIComponent(new URL(t,"file:///"+r).pathname.slice(1))}catch{return}if(n.has(s))return s;for(const o of[".tsx",".ts",".jsx",".js",".mjs",".cjs"])if(n.has(s+o))return s+o;for(const o of[".tsx",".ts",".jsx",".js"])if(n.has(s+"/index"+o))return s+"/index"+o}function jH(e){const t=new Set(e.map(u=>u.path)),n=new Map(e.map((u,f)=>[u.path,f])),r=e.map(u=>[...new Set(u.siblingPaths.map(f=>V2(u.path,f,t)).filter(f=>f!==void 0).map(f=>n.get(f)))].filter(f=>f!==n.get(u.path))),s=e.map((u,f)=>r[f].length),o=e.map(()=>[]);r.forEach((u,f)=>u.forEach(h=>o[h].push(f)));const l=[],c=new Set;for(;;){let u=-1;for(let f=0;fS.path)),u=[];for(const S of s)for(const _ of[...new Set(S.siblingPaths)])V2(S.path,_,c)===void 0&&u.push({from:S.path,spec:_});const f=new Map;for(const S of s)for(const[_,E]of S.exports)(!f.has(_)||!E.startsWith("__ds_scope."))&&f.set(_,S.path);const p=(t.entries!==void 0?[...t.entries]:[...f.keys()].filter(S=>/^[A-Z]/.test(S))).filter(S=>Sn(S)&&f.has(S)).map(S=>({name:S,sourcePath:f.get(S)})),g={format:B2,namespace:r,components:p,sourceHashes:o,inlinedExternals:[]},w=[`/* @ds-bundle: ${JSON.stringify(g).replace(/\*\//g,"*\\/")} */`,"(() => {",`const __ds_ns = (window.${r} = window.${r} || {});`,"const __ds_scope = {};","(__ds_ns.__errors = __ds_ns.__errors || []);"];for(const S of jH(s)){const _=S.code.trim();if(!_&&S.exports.size===0)continue;const E=JSON.stringify(S.path),A=E.slice(1,-1),x=S.exports.size>0?` Object.assign(__ds_scope, { ${WH(S.exports)} });`:"";w.push(`// ${A} try { (() => { ${_}${x} })(); } catch (e) { __ds_ns.__errors.push({ path: ${E}, error: String((e && e.message) || e) }); }`)}for(const S of p)w.push(`__ds_ns.${S.name} = __ds_scope.${S.name};`);return w.push("})();"),{bundle:w.join(` `)+` `,meta:g,components:p,droppedPackages:[...l].sort(),unresolvedSiblings:u,parseFailedPaths:n}}function U2(e){const t=/^\/\* @ds-bundle: (.*) \*\//.exec(e.split(` `,1)[0]);if(t)try{return JSON.parse(t[1].replace(/\*\\\//g,"*/"))}catch{return}}async function $H(e,t){if(!e)return{decision:"build",drifted:[]};const n=U2(e);if(!n?.sourceHashes)return{decision:"rebuild",meta:n,drifted:[]};if(!(n.builtBy!==void 0||(n.inlinedExternals??[]).length>0)&&(n.format??1)o[c]!==s[c]),...Object.keys(o).filter(c=>!(c in s))];return l.length===0?{decision:"skip-current",meta:n,drifted:l}:(n.inlinedExternals??[]).length>0?{decision:"skip-has-externals",meta:n,drifted:l}:{decision:"rebuild",meta:n,drifted:l}}async function YH(e){const t=await Dt(()=>import("./babel-BKwAm-ws.js").then(n=>n.b),[]);try{return t.transform(e,{presets:["react"],filename:"bundle.jsx",sourceType:"script"}),{}}catch(n){return{transformError:String(n)}}}const ru="_ds_bundle.js",Wh=" (design system)",ZH=" (starting point)";function ox(e){return e.type==="skill"&&e.name.endsWith(Wh)}function XH(e){return e.type==="skill"&&(e.name.endsWith(Wh)||e.name.endsWith(ZH))}const Lf=32e3,W2=2e3;async function P2(e){const t=async n=>{try{const r=await K().getFile({projectId:e,path:n,raw:!0});return new TextDecoder().decode(r.content)}catch{return null}};return await t("README.md")??await t("readme.md")??await t("base.md")??""}function ix(e){return typeof e=="string"&&/^[A-Za-z_$][\w$]*$/.test(e)?e:null}async function zH(e){const t=K();try{const n=await t.getFile({projectId:e,path:"_spp_index.json",raw:!0}),r=JSON.parse(new TextDecoder().decode(n.content)),s=ix(r.namespace);if(s)return{namespace:s,globalCssPaths:Array.isArray(r.globalCssPaths)?r.globalCssPaths:[]}}catch{}try{const n=await t.getFile({projectId:e,path:ru,raw:!0}),r=U2(new TextDecoder().decode(n.content)),s=ix(r?.namespace);if(s)return{namespace:s,globalCssPaths:[]}}catch{}return null}const HH=5,ax=8e3;async function KH(e){const t=K(),n=[];try{let o=0;for(;;){const l=await t.listFiles({projectId:e,path:"",depth:-1,offset:o});for(const c of l.entries)c.type==="file"&&c.path.endsWith(".prompt.md")&&n.push(c.path);if(!l.truncated||l.entries.length===0)break;o+=l.entries.length}}catch{return""}n.sort();let s=(await Promise.all(n.map(async o=>{try{const l=await t.getFile({projectId:e,path:o,raw:!0}),c=new TextDecoder().decode(l.content).split(` `).slice(0,HH).join(` `).trim();return c?`### ${o} ${c}`:""}catch{return""}}))).filter(Boolean).join(` `);return s.length>ax&&(s=s.slice(0,ax)+` …[truncated]`),s}async function JH(e){performance.now();const t=o=>new Promise(l=>setTimeout(()=>l(o),W2)),[n,r,s]=await Promise.all([Promise.race([zH(e),t(null)]),Promise.race([P2(e),t("")]),Promise.race([KH(e),t("")])]);return{v2:n,guide:r,promptExcerpts:s}}const lx=12e3;async function QH(e){const t=K(),n=[];try{let s=0;for(;;){const o=await t.listFiles({projectId:e,path:"",depth:-1,offset:s});for(const l of o.entries)l.type==="file"&&l.path.endsWith(".css")&&!/(^|\/)fonts?[./]/i.test(l.path)&&n.push(l.path);if(!o.truncated||o.entries.length===0)break;s+=o.entries.length}}catch{return{cssFiles:[],tokens:[]}}const r=new Set;return await Promise.all(n.map(async s=>{try{const o=await t.getFile({projectId:e,path:s,raw:!0}),l=new TextDecoder().decode(o.content).replace(/\/\*[\s\S]*?\*\//g,"");for(const c of l.matchAll(new RegExp("(?setTimeout(()=>w(null),W2)),[r,s]=await Promise.all([Promise.race([P2(e),n]),Promise.race([QH(e),n])]),{cssFiles:o,tokens:l}=s??{cssFiles:[],tokens:[]};let c=r??"";c.length>Lf&&(c=c.slice(0,Lf)+` …[truncated — read the full file]`);const u=c?`Its guide is reproduced below so you don't need to fetch it: ${c} `:`Before producing any visuals, explore it: call \`list_files("/projects/${e}/")\` to see the structure, then \`read_file\` the README/base.md or whatever index file it has. Don't guess at the design system's contents.`;let f=l.join(", ");f.length>lx&&(f=f.slice(0,lx)+", …[truncated — read the full stylesheet]");const h=8,p=o.slice(0,h).map(w=>`\`/projects/${e}/${w}\``);o.length>h&&p.push(`and ${o.length-h} more`);const g=p.join(", "),b=l.length>0?`The ${l.length} custom properties it defines are: ${f} Only use \`var(--*)\` names from that list.`:o.length>0?`Before writing any \`var(--*)\`, \`read_file\` ${g} to find the exact custom-property name.`:`Before writing any \`var(--*)\`, look up the real name in the design system's \`.css\` files (\`list_files\` + \`read_file\` under \`/projects/${e}/\`).`;return{name:`${t}${Wh}`,prompt:`[Design System] This project uses the **${t}** design system. This is a binding choice for visual style — every visual must follow it. Don't invent colors, type, spacing, or components not grounded here. Scope: the design system is a visual style reference only. Its guide may describe example products, brands, or people that are unrelated to the user and unrelated to the subject of this conversation. Never treat anything in the design system as a fact about the user, their work, or the topic they asked about. Explore it to find what you need: - Always copy out the fonts and colors you need - For prototypes and designs, always copy out any relevant components - If the design system contains existing mocks of products, and you were asked to design or prototype something similar, copy and fork those mocks to start your design. This helps you make high-quality designs. Explore it quickly to find relevant UI kits (e.g. mocks of existing products you can copy and fork) Full system at \`/projects/${e}/\`. ${u} CSS tokens: the guide may describe tokens in prose, but the exact \`--*\` names are defined in the design system's stylesheet(s)${o.length?` (${g})`:""}. ${b} Never guess a token name — an unresolved \`var()\` silently falls back to the browser default. For assets and UI kits beyond the guide: \`read_file("/projects/${e}/")\` and \`copy_files\` to bring them into the current project.`}}function qH(e,t,n){const{namespace:r,globalCssPaths:s}=n.v2,{promptExcerpts:o}=n;let{guide:l}=n;l.length>Lf&&(l=l.slice(0,Lf)+` …[truncated — read the full file]`);const c=`The full design system tree (readme, guidelines/, assets/, ui_kits/, fonts/) lives at \`/projects/${e}/\` — \`read_file\` from there for anything not under \`_ds/\`.`,u=l?` ${c} Its guide is reproduced below so you don't need to fetch it: ${l} `:` ${c} Before producing any visuals, \`list_files("/projects/${e}/")\` and \`read_file\` the readme and any relevant guidelines.`,f=o?` Per-component usage notes follow — the first lines of each component's \`*.prompt.md\`. These are NOT bound into \`_ds/\`, so they're reproduced here: ${o}`:"",p=(s.length>0?s:["styles.css"]).map(g=>``).join(` `);return{name:`${t}${Wh}`,prompt:`[Design System] This project uses the **${t}** design system. This is a binding choice for visual style — every visual must follow it. Don't invent colors, type, spacing, or components not grounded here. Scope: the design system is a visual style reference only. Its guide may describe example products, brands, or people that are unrelated to the user and unrelated to the subject of this conversation. Never treat anything in the design system as a fact about the user, their work, or the topic they asked about. This project has the **${r}** design system bound under \`_ds/\`. Run \`list_files\` on \`_ds/\` to find the bound folder (one folder per design system), e.g. \`_ds//\`. The bundle calls \`React.createElement\`, so \`window.React\` and \`window.ReactDOM\` must be loaded first. Then add these once: \`\`\`html ${p}