PageSourceSearch

https://www.expondo.hu/_nuxt/XV_cHsLr.js

js expondo.hu collected 2026-10-08 09:36:17 UTC 237,991 bytes, 14 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CTks9FMu.js","./BmND6XgJ.js","./entry.D60DK4-5.css","./DBknguV_.js","./DcgAVr9z.js","./CBArmXHc.js","./N5GsdxC6.js","./BabSeBHK.js","./CRIZ_oGE.js","./SkeletonLoader.CAiVAGRV.css","./qHUvEBu8.js","./CaTIIpAY.js","./CYP17oW2.js","./jx-Mf4VF.js","./BQjE_gPp.js","./CMu_vnXo.js","./CB1SzTLh.js","./Bjw66Cdn.js","./CwqDe1w7.js","./CgILQjKu.js","./DLOzXzRy.js","./SimpleLink.C4KDaNCq.css","./SxI74O3b.js","./CXUjOu3f.js","./CustomLink.DwbB6jmh.css","./9xvmcCpn.js","./dqVnIsSq.js","./IEDOrHhg.js","./BRb0Ffre.js","./CrNBFeZt.js","./BCcCC0NP.js","./Ct0RLJ0C.js","./M0B_lUjC.js","./BCS8JY8C.js","./Byy5j2xg.js","./Bz2NewPs.js","./BPPRXahP.js","./B2A_oQfD.js","./C2gJpSB_.js","./CmJkhgod.js","./BeCCMiun.js","./BaR6M3Pd.js","./BIPXTFVU.js","./DlsXKp6M.js","./BJHb9Vwb.js","./De7VUoOL.js","./CtI2eEa2.js","./BnPAZIdX.js","./rD4Dn0Lw.js","./CX_ukUkg.js","./BtiE6TSJ.js","./q5MZ-8Vi.js","./DS6c1Y0j.js","./g10Ap532.js","./C-k367s4.js","./DirbGRho.js","./CP0Yttpc.js","./DMPaTDZa.js","./BYBb2vtx.js","./DtjZNOWF.js","./5Nz8ge_-.js","./DMtnE59b.js","./DXkvkQyl.js","./D6OLxdmT.js","./DN0TplNf.js","./BiTlvJtH.js","./C4-Hkz3X.js","./BPpLAZl_.js","./50in4uEH.js","./BuDUKfwT.js","./CMViRVF7.js","./ZeXKPTAB.js","./CLkwegkD.js","./B7hnz86X.js","./DuqPf4WV.js","./8pMzU-QY.js","./BNfOA8RM.js","./BYwx8CFA.js","./DcDxOftL.js","./BSen3lUn.js","./SfIcon.C4iYD1XT.css","./SfInput.oHgZInvG.css","./PrimaryInput.DWbNUOcP.css","./Cyb3hZ_b.js","./CCHEaVu7.js","./usVJnKBc.js","./DCt6i_-3.js","./C6wTYlAr.js","./NewsletterForm.DSVaMX8B.css","./n6ZfJAj-.js","./S2cqu5tw.js","./j5ALJ3Wz.js","./HfCQwM24.js","./C6COpNdG.js","./DGXmns_C.js","./pAsFHmdW.js","./o84-nvXz.js","./Bw8nKulX.js","./JS9IfzPT.js","./D5NboY9P.js","./YdfN2-0d.js","./6AgHmiJ9.js","./BdR1J_Vx.js","./C9cttv1w.js","./B_xdeFzW.js","./DhRPDMCk.js","./CgDF3iqV.js","./B2NwFivI.js","./BYySsSkb.js","./lu_zgbEI.js","./CustomSelect.DkYMYcpI.css","./Bw-qyvvU.js","./BIaxa_8N.js","./CeoXpdcW.js","./focus-trap-directive.06_8MM0D.css","./Dwudv9jX.js","./SfModal.DUBq-FB8.css","./BbsPcWHd.js","./VatIdInput.QO5D9jGP.css","./DxT8csf1.js","./CtS2239v.js","./DGpWKQY3.js","./QuantitySelector.C01Li33Z.css","./C-CjnR7U.js","./DrsI1SWj.js","./SalesforceWebform.D5Of4Rsj.css","./L9MXUVu6.js","./jyBCFsAA.js","./CEXT5m9b.js","./1SOwa6zR.js","./GSe1nOjz.js","./C_b--wgQ.js","./xEIK0Fe9.js","./NavigationWrapper.ChssQZdS.css","./DCVW66uB.js","./BqWITebp.js","./y_tHI4GD.js","./DaQOburC.js","./BBLO3eSv.js","./Cm2RbZHX.js","./BkOyiHPM.js","./BlRgQ0Cb.js","./DWhWcwFA.js","./C55sMhdD.js","./CypsUGwm.js","./D92pSRWi.js","./bcIvcCsd.js","./B5WIT-fk.js","./DUobPCP-.js","./CcdrHoZC.js","./B7ArsIRZ.js","./CartCoupon.Bc3ZJWJK.css","./C8t3_6d7.js","./Djm5AFly.js","./CVT7BxJV.js","./BOUtrLYL.js","./FcG0ch9I.js","./ProductCardBadge.DltTywB0.css","./CYpcu4fg.js","./CHc_xkJn.js","./BgK63f30.js","./YsVW6NZk.js","./DPgH2hbs.js","./C7l3t19b.js","./ProductCard.DxuXBoBX.css","./DJOTA7sm.js","./CHbiKfBh.js","./d_RFkBTB.js","./ProductSliderContainer.yj4PSoWg.css","./B0XhYnMi.js","./BfQ9nm99.js","./CPxdBho6.js","./CvUUa47Q.js","./SideBar.BLjnpOpO.css","./C8WUhyc4.js","./BwcZ_lmo.js","./oIKZvu4-.js","./C6PNnAvz.js","./SfCheckbox.m8uk5vUS.css","./CheckBox.CZWgED5J.css","./DvjrFRWW.js","./NotificationToastWrapper.Bp2qbjiq.css","./BeQK5mXt.js"])))=>i.map(i=>d[i]);
2import{W as ae,F as pc,R as ne,bs as mc,d as Q,c as N,e as rt,f as v,g as T,h as Z,w as W,k as C,a$ as $n,x as ot,i as y,q as tt,j as S,t as B,a2 as gc,a3 as _c,r as ut,o as Xe,H as ws,J as Se,K as Ee,u as hc,E as bc,ao as Cs,s as Gr,aR as yc,ax as Os,a1 as q,dU as vc,O as Nr,ay as cr,bK as Sc,bL as Ec,ct as Tc,_ as Un,P as wc,b6 as Cc,b as As,B as Oc,v as Is,Z as Ft,ai as Ac,ah as wo,dV as Ic,b5 as Rc,b0 as kc,cK as xc,a as Nc,a4 as Lc,N as Pc,A as Dc,aI as Mc,aE as pe,Q as Rs,S as $c,T as Co,U as Oo,dT as Uc,at as Bc}from"./BmND6XgJ.js";import{_ as ks}from"./DBknguV_.js";import{e as Lr,f as Ao,_ as Vc,g as xs,h as Ns,u as Fc}from"./N5GsdxC6.js";import{_ as Hc}from"./BabSeBHK.js";import{_ as Gc}from"./DcgAVr9z.js";import{T as zc}from"./CaTIIpAY.js";import{f as Ls,g as Ps}from"./CYP17oW2.js";import{u as Bn}from"./jx-Mf4VF.js";import{_ as Wc}from"./DLOzXzRy.js";import{_ as Ds}from"./SxI74O3b.js";import{L as Ms}from"./CXUjOu3f.js";import{D as Xc,E as Kc,o as jc,B as qc,l as Yc,F as Jc,k as Qc,u as Zc}from"./9xvmcCpn.js";import{u as zr}from"./CwqDe1w7.js";import{a as tu}from"./M0B_lUjC.js";import{g as eu,u as nu}from"./BCS8JY8C.js";import{_ as ru}from"./BPPRXahP.js";import{D as ou}from"./B2A_oQfD.js";import{u as su}from"./C2gJpSB_.js";import{u as ur}from"./De7VUoOL.js";import{u as iu}from"./BtiE6TSJ.js";import{u as au}from"./BIPXTFVU.js";import{c as $s}from"./q5MZ-8Vi.js";import{u as Us}from"./BJHb9Vwb.js";import{u as Bs}from"./qHUvEBu8.js";import{b as cu}from"./DS6c1Y0j.js";import{a as uu}from"./g10Ap532.js";import{_ as lu}
2from"./C-k367s4.js";import{S as Vs}from"./DirbGRho.js";import{u as Vn}from"./Bjw66Cdn.js";import{r as du}from"./BCcCC0NP.js";import{s as fu}from"./CP0Yttpc.js";import{g as pu}from"./DMPaTDZa.js";import{g as mu}from"./DlsXKp6M.js";import{S as gu}from"./CB1SzTLh.js";import{D as Io}from"./BYBb2vtx.js";import{b as _u}from"./DtjZNOWF.js";import{E as hu,a as bu}from"./5Nz8ge_-.js";import{a as yu,b as vu}from"./DMtnE59b.js";import{u as Su,k as Eu}from"./50in4uEH.js";import{u as Tu}from"./ZeXKPTAB.js";import{H as wu}from"./CLkwegkD.js";import{u as Cu}from"./B7hnz86X.js";import{u as Ou}from"./DuqPf4WV.js";import{_ as Au}from"./8pMzU-QY.js";import{a as Iu}from"./BNfOA8RM.js";import{u as Ru}from"./Cyb3hZ_b.js";import{_ as ku}from"./n6ZfJAj-.js";const xu={...Kc,render:Xc};function Nu(){const{countryLocalization:t}=ae();return{changeLanguage:n=>{const r=pc(ne.HOME),o=t.value.isDefaultLanguageAndCountry(n),s=t.value.getLanguageFromExistingLanguageAndCountry(n),i=o?r:mc(r,s);window.location.replace(i)}}}function Lu(){return"/search?refinementList%5Btags%5D%5B0%5D=on-sale"}function $E(){return"/search?refinementList%5Btags%5D%5B0%5D=bestseller"}const Fs=({categorySlug:t,tag:e,countryCode:n})=>`${cu({category:t,countryCode:n})}?refinementList%5Btags%5D%5B0%5D=${e}`;function UE(t,e){return Fs({categorySlug:t,tag:"on-sale",countryCode:e})}function BE(t,e){return Fs({categorySlug:t,tag:"bestseller",countryCode:e})}const Pu=Q({name:"TrustpilotWrapper",props:{widgetId:{type:String,required:!0},showWidget:{type:Boolean,default:!0},theme:{type:String,default:Lr.LIGHT},trustpilotHeight:{type:String,required:!0}},setup(t){const{languageAndCountry:e}=ae(),n=N(()=>`/logos/trustpilot-logo-${t.theme===Lr.DARK?Ao.WHITE:Ao.BLACK}.svg`);return{languageAndCountry:e,TRUSTPILOT:zc,logoUrl:n}}});function Du(t,e,n,r,o,s){const i=Vc,a=Hc,c=$n,u=Gc;return v(),T("div",null,[t.showWidget?(v(),Z(a,{key:0,"has-content":"","reserve-height":t.trustpilotHeight,"client-only":""},{default:W(()=>[C(i,{"template-id":t.widgetId,locale:t.languageAndCountry,"style-height":t.trustpilotHeight,theme:t.theme,class:"w-full"},null,8,["template-id","locale","style-height","theme"])]),_:1},8,["reserve-height"])):(v(),Z(u,{key:1,url:t.TRUSTPILOT,blank:!0,class:"h-full"},{default:W(()=>[C(c,{src:t.logoUrl,alt:"Trustpilot",class:"h-full"},null,8,["src"])]),_:1},8,["url"]))])}const Hs=Object.assign(rt(Pu,[["render",Du]]),{__name:"TrustpilotWrapper"}),Mu=Q({name:"TrustpilotMicroCombo",props:{showWidget:{type:Boolean,default:!0},theme:{type:String,default:Lr.LIGHT}},setup(){return{TRUSTPILOT_MICRO_COMBO_WIDGET_ID:xs,TRUSTPILOT_MICRO_COMBO_WIDGET_HEIGHT:Ls}}});function $u(t,e,n,r,o,s){const i=Hs;return v(),Z(i,{"widget-id":t.TRUSTPILOT_MICRO_COMBO_WIDGET_ID,"show-widget":t.showWidget,theme:t.theme,"trustpilot-height":t.TRUSTPILOT_MICRO_COMBO_WIDGET_HEIGHT},null,8,["widget-id","show-widget","theme","trustpilot-height"])}const Uu=Object.assign(rt(Mu,[["render",$u]]),{__name:"TrustpilotMicroCombo"}),Bu=Q({name:"TrustpilotMicroButton",props:{showWidget:{type:Boolean,default:!0}},setup(){return{TRUSTPILOT_MICRO_BUTTON_ID:Ns,TRUSTPILOT_MICRO_BUTTON_WIDGET_HEIGHT:Ps}}});function Vu(t,e,n,r,o,s){const i=Hs;return v(),Z(i,{"widget-id":t.TRUSTPILOT_MICRO_BUTTON_ID,"show-widget":t.showWidget,"trustpilot-height":t.TRUSTPILOT_MICRO_BUTTON_WIDGET_HEIGHT},null,8,["widget-id","show-widget","trustpilot-height"])}const Fu=Object.assign(rt(Bu,[["render",Vu]]),{__name:"TrustpilotMicroButton"}),Hu=Q({name:"TrustpilotMicroComboOrButton",setup(){const{showTrustpilotScoreInHeader:t,isLoaded:e}=Bn(),{showTrustPilotWidget:n}=Fc(),r=N(()=>t.value?xs:Ns),o=N(()=>t.value?Ls:Ps);return{showWidget:N(()=>n.value&&e.value),isLoaded:e,trustpilotWidgetId:r,trustpilotWidgetHeight:o,showTrustPilotWidget:n,showTrustpilotScoreInHeader:t}}});function Gu(t,e,n,r,o,s){const i=Uu,a=Fu;return v(),T("div",{class:ot(["w-full flex items-center lg:ml-auto py-1",t.showTrustpilotScoreInHeader?"lg:w-[33rem]":"lg:w-52"])},[t.showTrustpilotScoreInHeader?(v(),Z(i,{key:0,"show-widget":t.showWidget,class:"h-full w-full flex justify-center lg:justify-end items-center shrink-0"},null,8,["show-widget"])):(v(),Z(a,{key:1,"show-widget":t.showWidget,class:"h-full w-full flex justify-center lg:justify-end items-center shrink-0"},null,8,["show-widget"]))],2)}const zu=Object.assign(rt(Hu,[["render",Gu]]),{__name:"TrustpilotDynamic"}),Wu=Q({name:"TrustpilotHeader",props:{enableContactInfoInHeader:{type:Boolean,default:!1}},setup(t){const{contactInformation:e}=Bn(),n=N(()=>!!e.value.phoneNumber),r=N(()=>e.value.openingHours&&n.value),o=N(()=>t.enableContactInfoInHeader&&(n.value||r.value));return{showPhoneNumber:n,showWorkingHours:r,showContactInfo:o,sliderHeight:"h-8",contactInformation:e}}}),Xu={key:1};function Ku(t,e,n,r,o,s){const i=ks,a=zu;return v(),T("div",{class:ot(["bg-EXPONDO-secondary-light w-full px-5 lg:px-16",t.sliderHeight])},[y("div",{class:ot(["w-full flex flex-col items-center lg:flex-row lg:gap-10",{slider:t.showContactInfo}])},[t.showContactInfo?(v(),T("div",{key:0,class:ot(["flex justify-center lg:justify-start items-center flex-wrap gap-x-4 text-EXPONDO-primary text-sm",t.sliderHeight])},[t.showPhoneNumber?(v(),Z(i,{key:0,"phone-number":t.contactInformation.phoneNumber,class:"font-bold leading-4"},null,8,["phone-number"])):tt("",!0),e[0]||(e[0]=S()),t.showWorkingHours?(v(),T("div",Xu,[y("span",null,B(t.contactInformation.openingHours),1)])):tt("",!0)],2)):tt("",!0),e[1]||(e[1]=S()),C(a,{class:ot(["lg:ml-auto",t.sliderHeight])},null,8,["class"])],2)],2)}const ju=Object.assign(rt(Wu,[["render",Ku],["__scopeId","data-v-f6d49a64"]]),{__name:"TrustpilotHeader"}),qu=gc("navigation",{state:()=>({isNavigationOpen:!1,currentFirstLevelCategorySlug:""}),actions:{toggleNavigation(t){this.isNavigationOpen=t},setCurrentFirstLevelCategorySlug(t){this.currentFirstLevelCategorySlug=t}}});function Yu(){const t=qu(),{isNavigationOpen:e,currentFirstLevelCategorySlug:n}=_c(t);return{toggleNavigation:t.toggleNavigation,setCurrentFirstLevelCategorySlug:t.setCurrentFirstLevelCategorySlug,isNavigationOpen:e,currentFirstLevelCategorySlug:n}}const Wr=()=>{const t=Yu(),e=t.isNavigationOpen,n=()=>{r(),t.toggleNavigation(!e.value)},r=(a="")=>{t.setCurrentFirstLevelCategorySlug(a)},o=t.currentFirstLevelCategorySlug,s=ut(""),i=ut("");return{isNavigationOpen:e,toggleNavigation:n,currentFirstLevelCategorySlug:o,setFirstLevelCategory:r,currentSecondLevelCategoryName:s,currentSecondLevelCategorySlug:i}},Ju=Q({name:"NavMainBarAllCategoriesButton",props:{categoriesContainer:{type:Array,default:()=>[]}},setup(){const{toggleNavigation:t,isNavigationOpen:e}=Wr();return{toggleNavigation:t,isNavigationOpen:e}}}),Qu=["aria-label"];function Zu(t,e,n,r,o,s){return v(),T("button",{class:"w-4","data-testid":"mainMenuButton","aria-label":t.$t("Open main menu"),onClick:e[0]||(e[0]=(...i)=>t.toggleNavigation&&t.toggleNavigation(...i))},[y("span",{class:ot(["text-sm",t.isNavigationOpen?"iconify svg--menu-close text-EXPONDO-orange":"iconify svg--burger-menu text-EXPONDO-primary"])},null,2)],8,Qu)}const Gs=Object.assign(rt(Ju,[["render",Zu]]),{__name:"NavMainBarAllCategoriesButton"}),tl=Q({name:"SearchBarResults",components:{AisHits:jc},props:{activeIndex:{type:Number,required:!0},skuHits:{type:Array,default:()=>[]}},emits:["product-clicked","search-results-shown"],setup(t,{emit:e}){const n=s=>
2{e("product-clicked",s)},r=s=>t.skuHits.length?t.skuHits:s,o=(s,i)=>s.objectID??i;return Xe(()=>{e("search-results-shown")}),{onClickHandler:n,getDisplayItems:r,getHitKey:o,LINK_TYPE:Ms}}}),el={"data-testid":"searchResultsList"},nl={class:"flex items-center text-EXPONDO-black"},rl={class:"px-5 text-sm line-clamp-3"},ol={class:"ml-auto font-bold"};function sl(t,e,n,r,o,s){const i=$n,a=Ds,c=ws("ais-hits");return v(),Z(c,null,{default:W(({items:u})=>[y("ul",el,[(v(!0),T(Se,null,Ee(t.getDisplayItems(u),(l,d)=>(v(),T("li",{key:t.getHitKey(l,d),class:ot(["py-4 list-none",{"bg-EXPONDO-grey-20":t.activeIndex===d}]),"data-testid":"searchResultsItem"},[C(a,{text:l.name,url:l.url,type:t.LINK_TYPE.NoStyle,onLinkClick:f=>t.onClickHandler(l)},{default:W(()=>[y("div",nl,[C(i,{src:l.image??"",alt:l.imageAlt,"img-classes":"min-w-[2.5rem] w-10 h-10 object-contain lg:w-12 lg:h-12 lg:min-w-[3rem]"},null,8,["src","alt"]),e[0]||(e[0]=S()),y("span",rl,B(l.name),1),e[1]||(e[1]=S()),y("span",ol,B(t.$n(l.price,"currency")),1)])]),_:2},1032,["text","url","type","onLinkClick"])],2))),128))])]),_:1})}const il=Object.assign(rt(tl,[["render",sl]]),{__name:"SearchBarResults"}),zs=/^(?:EX)?(\d{8})$/i,Ws=t=>zs.test(t.trim()),al=t=>{const e=t.trim().match(zs);return e?`EX${e[1]}`:t.trim()},cl=()=>{const{makeCommercetoolsRequest:t}=hc(),{countryCode:e}=ae(),n=ut(null),r=ut(!1),o=async i=>{if(!Ws(i)){n.value=null;return}const a=al(i);r.value=!0;try{const u=(await t({endpoint:bc.CT.GET_PRODUCT_BY_SKU,data:{sku:a}}))?.data??null;if(!u?.name||!u?.slug){n.value=null;return}n.value={name:u.name,url:tu(u.slug,e.value),image:u.image,imageAlt:u.imageAlt,price:u.finalPrice,sku:u.sku}}catch{n.value=null}finally{r.value=!1}},s=()=>{n.value=null};return{skuResult:N(()=>n.value),isLoading:N(()=>r.value),search:o,clear:s}},ul={class:"flex items-start"},ll={class:"h-11 w-full rounded-md flex justify-center relative"},dl={for:"search-input",class:"sr-only"},fl=["value","maxlength","placeholder","onInput","onKeyup"],pl=["onClick"],ml=["aria-label","onClick"],gl={key:0,class:"rounded shadow-lg bg-EXPONDO-white relative z-40"},_l={key:0,class:"p-6 py-4 text-EXPONDO-black"},hl={key:1,"data-testid":"search-bar__sku-no-result"},bl={key:0},yl=["onClick"],vl={key:1},Sl=-1,El=Q({__name:"SearchBar",props:{languageAndCountry:{},mainSearchIndex:{}},emits:["product-clicked","search","search-bar-clicked","search-results-shown"],async setup(t,{emit:e}){let n,r;const o=t,{languageAndCountry:s,mainSearchIndex:i}=Cs(o),a=e,{getAdjustedSlug:c}=zr(),u=Gr(),l=ut(null),{skuResult:d,search:f,clear:p}=cl(),m=ut(!1),g=ut(Sl),h=ut({name:"",url:""}),b=ut(!1),I=(U,V)=>{if(!U){h.value={name:"",url:""},V(""),L(),p(),m.value=!1,l.value instanceof HTMLElement&&l.value.focus();return}if(Ws(U)){h.value={name:U,url:""},m.value=!0,E(),f(U);return}m.value=!1,p(),!(U.length<Ec)&&(V(U),E(),h.value={name:U,url:""})},H=(U,V)=>{if(m.value){if(L(),d.value){u.push(d.value.url);return}const fc={query:h.value.name?.trim()||""};u.push({path:c(ne.SEARCH),query:fc});return}const mt=U?.trim?.()||"",Ot=h.value.name?.trim?.()||"",dt=Ot||mt;if(!dt&&typeof V=="function"&&V(""),a("search",dt),L(),h.value.url&&Ot&&Ot===mt){u.push(h.value.url);return}const it=u.currentRoute.value.query?.hitsPerPage,nt=Array.isArray(it)?it[0]:it??"",G={};typeof nt=="string"&&nt.length&&(G.hitsPerPage=nt),G.query=dt||"",u.push({path:c(ne.SEARCH),query:G})},D=U=>{h.value={name:U.name||"",url:U.url||""}},yt=U=>{g.value<1?g.value=U.length-1:(g.value--,D(U[g.value]))},_=U=>{g.value+1<U.length?(g.value++,D(U[g.value])):g.value=0},E=()=>{b.value=!0},L=()=>{b.value=!1},X=(U,V)=>{L(),a("product-clicked",{product:U,searchTerm:V})},Bt=()=>{L()},Vt=U=>{a("search-results-shown",U)};D({name:"",url:""});const Jt=([n,r]=yc(()=>qc(s.value)),n=await n,r(),n),Qt=ut(Yc({searchClient:Jt,indexName:i.value})),{instantsearch:Zt}=Qt.value.data();Tc("$_ais_InstantSearchInstance",Zt);const de=()=>{a("search-bar-clicked")};return(U,V)=>{const mt=il,Ot=Os("click-outside");return v(),T("div",{class:"search-bar flex-1",onClick:de},[y("div",ul,[C(q(Jc),{"search-client":q(Jt),"index-name":q(i),class:"w-full"},{default:W(()=>[C(q(Qc),{hitsPerPage:q(vc),clickAnalytics:!0},null,8,["hitsPerPage"]),V[9]||(V[9]=S()),C(q(xu),{class:"w-full"},{default:W(({currentRefinement:dt,indices:it,refine:nt})=>[Nr((v(),T("div",null,[y("div",ll,[y("label",dl,B(U.$t("Site search")),1),V[3]||(V[3]=S()),y("input",{id:"search-input",ref_key:"searchInput",ref:l,type:"text",value:q(h).name,maxlength:q(Sc),placeholder:U.$t("search-bar.input-placeholder"),"data-testid":"search-bar__input-placeholder",class:"bg-EXPONDO-white h-full rounded pl-3 pr-20 text-EXPONDO-black w-full relative border border-solid border-EXPONDO-primary-20 placeholder:text-EXPONDO-grey-60",onFocus:V[0]||(V[0]=G=>E()),onInput:G=>I(G.currentTarget.value,nt),onKeyup:[cr(G=>H(dt,nt),["enter"]),cr(G=>_(it[0].hits),["down"]),cr(G=>yt(it[0].hits),["up"])]},null,40,fl),V[4]||(V[4]=S()),q(h).name&&q(b)?(v(),T("button",{key:0,"data-testid":"searchBarClearInput",class:"right-14 top-3 absolute",onClick:G=>I("",nt)}
2,[...V[1]||(V[1]=[y("span",{class:"iconify svg--close text-EXPONDO-primary-60 pr-0.5"},null,-1)])],8,pl)):tt("",!0),V[5]||(V[5]=S()),y("button",{class:"absolute top-0 right-0 w-12 rounded-r h-full flex justify-center items-center","data-testid":"search-bar__show-results","aria-label":U.$t("Submit search"),onClick:G=>H(dt,nt)},[...V[2]||(V[2]=[y("span",{class:"iconify svg--search text-lg text-EXPONDO-primary"},null,-1)])],8,ml)]),V[8]||(V[8]=S()),q(h).name&&q(b)?(v(),T("div",gl,[q(m)?(v(),T("div",_l,[q(d)?(v(),Z(mt,{key:0,"data-testid":"search-bar__sku-result","sku-hits":[q(d)],"active-index":q(g),onProductClicked:Bt},null,8,["sku-hits","active-index"])):(v(),T("span",hl,B(U.$t("No results")),1))])):(v(!0),T(Se,{key:1},Ee(it,G=>(v(),T("div",{key:G.indexId,class:"p-6 py-4 text-EXPONDO-black"},[G.hits.length>0?(v(),T("div",bl,[C(mt,{"active-index":q(g),onProductClicked:At=>X(At,dt),onSearchResultsShown:At=>Vt(G.hits)},null,8,["active-index","onProductClicked","onSearchResultsShown"]),V[7]||(V[7]=S()),G.hits.length>=5?(v(),T("button",{key:0,class:"text-EXPONDO-primary mt-2 flex items-center mx-auto",onClick:At=>H(dt,nt)},[S(B(U.$t("See all results"))+" ",1),V[6]||(V[6]=y("span",{class:"iconify svg--chevron-right text-EXPONDO-primary text-xs ml-4"},null,-1))],8,yl)):tt("",!0)])):(v(),T("span",vl,B(U.$t("No results")),1))]))),128))])):tt("",!0)])),[[Ot,L]])]),_:1})]),_:1},8,["search-client","index-name"])])])}}}),Tl=Object.assign(El,{__name:"SearchBar"}),wl=Q({name:"TopMenuLanguageSelector",emits:["language-switcher-clicked"],setup(t,{emit:e}){const{countryLocalization:n,language:r}=ae(),{changeLanguage:o}=Nu(),s=N(()=>n.value.getLanguageAndCountries().filter(f=>!f.includes(r.value)).map(f=>({languageCode:f,languageName:f.split("-")[0].toUpperCase()}))),i=N(()=>r.value.toUpperCase()),a=ut(!1);return{countryLocalization:n,changeLanguage:o,languageName:i,languagesList:s,isSwitcherOpen:a,toggleSwitcher:()=>{a.value=!a.value},closeSwitcher:()=>{a.value&&(a.value=!1)},clickedOnSwitcher:()=>{e("language-switcher-clicked")}}}}),Cl={class:"text-left whitespace-nowrap"},Ol={class:"flex items-center font-normal lg:font-bold text-sm lg:text-base"},Al={class:"max-lg:hidden text-xs font-normal"},Il={class:"list-none absolute top-6 lg:top-12 left-0 bg-EXPONDO-white z-10 w-full rounded-b-lg shadow"},Rl=["onClick"];function kl(t,e,n,r,o,s){const i=Un,a=Os("click-outside");return Nr((v(),T("div",{class:"flex items-center relative",onClick:e[0]||(e[0]=(...c)=>t.clickedOnSwitcher&&t.clickedOnSwitcher(...c))},[C(i,{class:"flex flex-nowrap items-center justify-center w-10 lg:w-auto text-EXPONDO-primary",type:"raw",onClick:t.toggleSwitcher},{default:W(()=>[e[2]||(e[2]=y("span",{class:"max-lg:hidden iconify fa-pro-light--globe text-xl lg:mr-3"},null,-1)),e[3]||(e[3]=S()),y("div",Cl,[y("p",Ol,[S(B(t.languageName)+" ",1),y("span",{class:ot(["iconify svg--chevron-right text-sm transform ml-1",[t.isSwitcherOpen?"-rotate-90":"rotate-90"]])},null,2)]),e[1]||(e[1]=S()),y("p",Al,B(t.$t("language")),1)])]),_:1},8,["onClick"]),e[4]||(e[4]=S()),Nr(y("ul",Il,[(v(!0),T(Se,null,Ee(t.languagesList,(c,u)=>(v(),T("li",{key:u,class:"text-EXPONDO-grey-60 text-sm p-4 cursor-pointer",onClick:l=>t.changeLanguage(c.languageCode)},B(c.languageName),9,Rl))),128))],512),[[wc,t.isSwitcherOpen]])])),[[a,t.closeSwitcher]])}const xl=Object.assign(rt(wl,[["render",kl]]),{__name:"TopMenuLanguageSelector"}),Nl=Q({name:"WebformDropdown",emits:["openContactForm"],setup(t,{emit:e}){const{contactInformation:n}=Bn(),{countryCode:r}=ae(),o=N(()=>!!n.value.phoneNumber),s=N(()=>n.value.openingHours&&o.value),i=N(()=>o.value||s.value),a=N(()=>eu(r.value));return{openContactForm:u=>{e("openContactForm",u)},showContactInfo:i,showPhoneNumber:o,showWorkingHours:s,webformSpecificReasons:a,contactInformation:n}}}),Ll={class:"group relative flex flex-nowrap items-center justify-center"},Pl={class:"text-left hidden whitespace-nowrap text-EXPONDO-primary lg:block"},Dl={class:"font-bold"},Ml={class:"text-xs font-normal"},$l={class:"max-lg:hidden invisible opacity-0 min-w-[200px] lg:group-hover:visible lg:group-hover:opacity-100 transition-all [transition-behavior:allow-discrete] duration-[400ms] absolute top-full left-0 z-40"},Ul={class:"relative bg-EXPONDO-white text-EXPONDO-black font-normal text-left mt-3 shadow-2xl text-sm border"},Bl=["data-testid","onClick"],Vl={key:0,class:"flex justify-center items-center gap-x-2 px-4 py-7 bg-EXPONDO-grey-10"},Fl={key:1,class:"whitespace-nowrap"};function Hl(t,e,n,r,o,s){const i=Un,a=ks;return v(),T("div",Ll,[C(i,{class:"flex flex-nowrap items-center justify-center w-10 lg:w-auto",type:"raw","data-testid":"contact-button","aria-label":t.$t("Contact"),onClick:e[0]||(e[0]=()=>t.openContactForm())},{default:W(()=>[e[2]||(e[2]=y("span",{class:"iconify svg--contact text-base text-EXPONDO-primary lg:mr-3"},null,-1)),e[3]||(e[3]=S()),y("div",Pl,[y("p",Dl,B(t.$t("Contact")),1),e[1]||(e[1]=S()),y("p",Ml,B(t.$t("salesforce-form-submit-an-issue")),1)])]),_:1},8,["aria-label"]),e[8]||(e[8]=S()),y("div",$l,[e[6]||(e[6]=y("div",{class:"fixed top-0 left-0 bg-EXPONDO-black/25 w-full h-full pointer-events-none"},null,-1)),e[7]||(e[7]=S()),y("div",Ul,[(v(!0),T(Se,null,Ee(t.webformSpecificReasons,(c,u)=>(v(),T("button",{key:c.indicator,class:"block w-full text-left px-4 py-2 border-b cursor-pointer hover:bg-EXPONDO-grey-5","data-testid":`preselected-reason-${u}`,onClick:()=>t.openContactForm(c.indicator)},B(c.indicator?t.$t(`${c.indicator}-label`):""),9,Bl))),128)),e[5]||(e[5]=S()),t.showContactInfo?(v(),T("div",Vl,[t.showPhoneNumber?(v(),Z(a,{key:0,"phone-number":t.contactInformation.phoneNumber,class:"font-bold leading-4"},null,8,["phone-number"])):tt("",!0),e[4]||(e[4]=S()),t.showWorkingHours?(v(),T("div",Fl,[y("span",null,B(t.contactInformation.openingHours),1)])):tt("",!0)])):tt("",!0)])])])}const Gl=Object.assign(rt(Nl,[["render",Hl]]),{__name:"WebformDropdown"}),zl=Q({name:"MyAccountLoyaltyLevelLabel",setup(){const{currentLoyaltyLevel:t,loadLoyaltyLevels:e}=su();return Xe(async()=>{await e()}),{DISCOUNT_CATEGORY:ou,currentLoyaltyLevel:t}}}),Wl={key:0,class:"leading-none"};function Xl(t,e,n,r,o,s){const i=ru;return t.currentLoyaltyLevel?(v(),T("div",Wl,[C(i,{category:t.DISCOUNT_CATEGORY.LOYALTY,"loyalty-level":t.currentLoyaltyLevel,"is-my-account-button":""},null,8,["category","loyalty-level"])])):tt("",!0)}const Kl=Object.assign(rt(zl,[["render",Xl]]),{__name:"MyAccountLoyaltyLevelLabel"}),jl=Q({name:"MyAccountDropdownItem",props:{url:{type:Object,required:!0}},emits:["click"],setup(t){return{dataTestId:N(()=>t.url.key.value==="billing-details"?"dropdownBillingDetails":"")}}}),ql=["data-testid"];function Yl(t,e,n,r,o,s){return v(),T("button",{class:"block w-full text-left px-4 py-2 border-b cursor-pointer hover:bg-EXPONDO-grey-5","data-testid":t.dataTestId,onClick:e[0]||(e[0]=i=>t.$emit("click",t.url))},B(t.url.label),9,ql)}const Jl=Object.assign(rt(jl,[["render",Yl]]),{__name:"MyAccountDropdownItem"}),Ql=Q({name:"MyAccountDropdown",emits:["handleAccountClick","hideNavigation"],setup(t,{emit:e}){const n=ut(!1),r=()=>{n.value=!0},o=()=>{n.value=!1},{urlList:s}=iu(),{user:i}=au(),{isLoyaltyDiscountEnabled:a}=Bn(),c=N(()=>ur.getFirstName(i.value)),u=N(()=>ur.getLastName(i.value)),l=N(()=>ur.getEmailAddress(i.value)),d=N(()=>a.value&&!!l.value);return{open:r,close:o,isOpen:n,handleAccountClick:()=>{n.value=!1,e("handleAccountClick")},changePage:m=>{n.value=!1,e("hideNavigation"),m.goToThatPage()},urlList:s,firstName:c,lastName:u,emailAddress:l,canShowLoyaltyLevelLabel:d}}}),Zl={class:"text-left hidden whitespace-nowrap text-EXPONDO-primary lg:block"},td={class:"font-bold"},ed={key:1,class:"text-xs font-normal"},nd={class:"relative bg-EXPONDO-white text-EXPONDO-black font-normal text-left mt-3 shadow-2xl text-sm border"},rd={class:"flex flex-col gap-y-0.5 w-full text-left px-4 py-2 border-b bg-EXPONDO-secondary-light select-none"},od={class:"text-base text-EXPONDO-black font-bold truncate"},sd={class:"text-sm text-EXPONDO-grey-80 italic font-normal truncate"};function id(t,e,n,r,o,s){const i=Kl,a=Un,c=Jl;return v(),T("div",{class:"group relative flex flex-nowrap items-center justify-center",onMouseenter:e[1]||(e[1]=(...u)=>t.open&&t.open(...u)),onMouseleave:e[2]||(e[2]=(...u)=>t.close&&t.close(...u))},[C(a,{class:"flex flex-nowrap items-center justify-center w-10 lg:w-auto",type:"raw","data-testid":"login-account","aria-label":t.$t("My Account"),onClick:e[0]||(e[0]=()=>t.handleAccountClick())},{default:W(()=>[e[4]||(e[4]=y("span",{class:"iconify svg--account text-base text-EXPONDO-primary text-xl lg:mr-3"},null,-1)),e[5]||(e[5]=S()),y("div",Zl,[y("p",td,B(t.$t("My Account")),1),e[3]||(e[3]=S()),t.canShowLoyaltyLevelLabel?(v(),Z(i,{key:0})):(v(),T("p",ed,B(t.$t("Login/Register")),1))])]),_:1},8,["aria-label"]),e[10]||(e[10]=S()),t.emailAddress?(v(),T("div",{key:0,class:ot(["max-lg:hidden min-w-[200px] lg:max-w-[360px] transition-all duration-[400ms] absolute","top-full right-0 left-auto z-40",t.isOpen?"visible opacity-100":"invisible opacity-0 pointer-events-none"]),"data-testid":"myAccountDropdown"},[e[8]||(e[8]=y("div",{class:"fixed top-0 left-0 bg-EXPONDO-black/25 w-full h-full pointer-events-none"},null,-1)),e[9]||(e[9]=S()),y("div",nd,[y("div",rd,[y("div",od,B(t.firstName)+" "+B(t.lastName),1),e[6]||(e[6]=S()),y("div",sd,B(t.emailAddress),1)]),e[7]||(e[7]=S()),(v(!0),T(Se,null,Ee(t.urlList,u=>(v(),T("div",{key:u.key.value},[C(c,{url:u,onClick:t.changePage},null,8,["url","onClick"])]))),128))])],2)):tt("",!0)],32)}const ad=Object.assign(rt(Ql,[["render",id]]),{__name:"MyAccountDropdown"}),cd=Q({name:"CartIcon",props:{isCartWithDot:{type:Boolean,default:!1}},emits:["click"],setup(){const{cart:t}=Us(),{isMounted:e}=Bs();return{cartTotalItems:N(()=>{const o=$s.getTotalItems(t.value);return o?o.toString():null}),iconWithDotClasses:`cart-badge--with-dot text-EXPONDO-white w-4 h-4 rounded-full
3    bg-EXPONDO-red text-sm flex items-center justify-center`,isMounted:e}}}),ud={class:"text-xl relative text-EXPONDO-primary lg:mr-3 flex items-center"},ld={class:"text-left hidden text-EXPONDO-primary lg:block"},dd={class:"font-bold"},fd={class:"text-xs font-normal"};function pd(t,e,n,r,o,s){const i=Un;return v(),Z(i,{disabled:!t.isMounted,type:"raw","aria-label":t.$t("Cart"),"data-testid":"cartIcon",onClick:e[0]||(e[0]=a=>t.$emit("click"))},{default:W(()=>[y("span",ud,[e[1]||(e[1]=y("span",{class:"iconify svg--shopping-cart"},null,-1)),e[2]||(e[2]=S()),t.cartTotalItems?(v(),T("span",{key:0,class:ot([{[t.iconWithDotClasses]:t.isCartWithDot},"cart-badge absolute -top-1.5 -right-1"]),"data-testid":"cartBadge"},B(t.cartTotalItems),3)):tt("",!0)]),e[4]||(e[4]=S()),y("div",ld,[y("p",dd,B(t.$t("Cart")),1),e[3]||(e[3]=S()),y("p",fd,B(t.$t("Checkout")),1)])]),_:1},8,["disabled","aria-label"])}const md=Object.assign(rt(cd,[["render",pd],["__scopeId","data-v-f67ee7b8"]]),{__name:"CartIcon"}),gd=Q({name:"CustomHint",props:{text:{type:String,default:""},isVisible:{type:Boolean,default:!1}}}),_d={key:0,class:"absolute shadow-lg rounded-sm border bg-EXPONDO-primary-5 text-EXPONDO-black z-10"},hd={class:"text-sm whitespace-nowrap p-2"};function bd(t,e,n,r,o,s){return t.isVisible?(v(),T("div",_d,[y("span",hd,B(t.text),1)])):tt("",!0)}const yd=Object.assign(rt(gd,[["render",bd]]),{__name:"CustomHint"}
3),Ro={ma_exde_6:"gastronomy",ma_exde_8401:"hospitality",ma_exde_39:"diy",ma_exde_15358:"cleaning",ma_exde_14153:"agriculture",ma_exde_14074:"office",ma_newer_measurement:"measurement",ma_exde_10165:"recreation",ma_exde_10833:"beauty",ma_exde_10890:"wellness",ma_exde_38:"professional-tools",ma_exde_9833:"home-and-garden"},vd="ma_exde_36",Sd=t=>Ro[t]?`/icons/categories/${Ro[t]}.svg`:null,Ed=Q({name:"NavMainBarCategory",props:{currentItem:{type:Object,default:()=>({})},bold:{type:Boolean,default:!1},color:{type:String,default:"text-EXPONDO-primary"}},setup(t){const{toggleNavigation:e,isNavigationOpen:n,setFirstLevelCategory:r,currentFirstLevelCategorySlug:o}=Wr(),s=Gr(),{addPrefixToSlugIfNecessary:i}=Cc(),a=()=>{if(t.currentItem.link){s.push(i(t.currentItem.link)),n.value&&e();return}const l=t.currentItem.slug;(!n.value||l===o.value)&&e(),r(l)},c=N(()=>Sd(t.currentItem.key)),u=N(()=>t.bold||t.currentItem.key===vd);return{itemClick:a,iconUrl:c,isBold:u}}}),Td={key:0,class:"inline-block w-7 h-7"},wd={key:1,class:"ml-2 iconify svg--chevron-right text-sm transform rotate-90 text-EXPONDO-primary"};function Cd(t,e,n,r,o,s){const i=$n;return v(),T("div",{class:ot(["flex items-center gap-2 p-0.5 text-base cursor-pointer text-EXPONDO-primary bg-EXPONDO-white rounded border border-EXPONDO-primary-20 min-w-max",{"pl-1":!t.iconUrl,"pr-1":t.currentItem.hideChevron}]),"data-testid":"mainCategoryCarouselItem",onClick:e[0]||(e[0]=(...a)=>t.itemClick&&t.itemClick(...a))},[t.iconUrl?(v(),T("div",Td,[C(i,{src:t.iconUrl,"default-src":"/icons/categories/category.svg",class:"pointer-events-none"},null,8,["src"])])):tt("",!0),e[1]||(e[1]=S()),y("span",{class:ot([[t.color,t.isBold?"font-bold":"font-normal"],"text-sm h-7 flex items-center"])},B(t.currentItem.name),3),e[2]||(e[2]=S()),t.currentItem.hideChevron?tt("",!0):(v(),T("span",wd))],2)}const Xr=Object.assign(rt(Ed,[["render",Cd]]),{__name:"NavMainBarCategory"}),Od=Q({name:"NavMainBarOnSale",setup(){const t=As(),e=Lu();return{onSaleCategory:{name:t.t("on-sale"),link:e}}}});function Ad(t,e,n,r,o,s){const i=Xr;return v(),Z(i,{"current-item":t.onSaleCategory,bold:!0,color:"text-EXPONDO-red"},null,8,["current-item"])}const Xs=Object.assign(rt(Od,[["render",Ad]]),{__name:"NavMainBarOnSale"}),Id=Q({name:"ScrollIndicator",props:{viewportWidth:{type:Number,required:!0},totalWidth:{type:Number,required:!0},position:{type:Number,required:!0}},setup(t){const e=(o,s)=>!o||!s?"0%":`${Math.min(o/s,1)*100}%`,n=N(()=>e(t.viewportWidth,t.totalWidth)),r=N(()=>e(t.position,t.totalWidth));return{indicatorWidth:n,indicatorPosition:r}}}),Rd={class:"bg-EXPONDO-white rounded-full border border-EXPONDO-primary-20"};function kd(t,e,n,r,o,s){return v(),T("div",Rd,[y("div",{style:Oc({width:t.indicatorWidth,left:t.indicatorPosition}),class:"relative bg-EXPONDO-primary-20 rounded-full border border-EXPONDO-primary-40 w-1/3 h-full"},null,4)])}const xd=Object.assign(rt(Id,[["render",kd]]),{__name:"ScrollIndicator"}),Nd=Q({name:"SliderWithIndicator",setup(){const t=ut(null),e=l=>l instanceof Element,n=(l,d)=>{e(l.target)&&(d?l.target.setPointerCapture(l.pointerId):l.target.releasePointerCapture(l.pointerId))},r=l=>n(l,!0),o=l=>n(l,!1),s=l=>{l.pointerType!=="mouse"||!e(l.target)||l.target.hasPointerCapture(l.pointerId)&&(t.value.scrollLeft-=l.movementX)},i=ut(0),a=ut(0),c=ut(0),u=()=>{i.value=t.value?.scrollLeft||0,a.value=t.value?.scrollWidth||0,c.value=t.value?.clientWidth||0};return Xe(()=>{u()}),uu(t,u),{scrollContainer:t,scrollPosition:i,scrollTotalWidth:a,scrollViewportWidth:c,onScroll:u,dragStart:r,dragEnd:o,dragMove:s}}}),Ld={class:"flex flex-col gap-2"},Pd={class:"flex justify-center"};function Dd(t,e,n,r,o,s){const i=xd;return v(),T("div",Ld,[y("div",{ref:"scrollContainer",class:"flex overflow-scroll select-none [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",onScrollPassive:e[0]||(e[0]=(...a)=>t.onScroll&&t.onScroll(...a)),onPointerdown:e[1]||(e[1]=(...a)=>t.dragStart&&t.dragStart(...a)),onPointerup:e[2]||(e[2]=(...a)=>t.dragEnd&&t.dragEnd(...a)),onPointermove:e[3]||(e[3]=(...a)=>t.dragMove&&t.dragMove(...a))},[Is(t.$slots,"default")],544),e[4]||(e[4]=S()),y("div",Pd,[C(i,{"viewport-width":t.scrollViewportWidth,"total-width":t.scrollTotalWidth,position:t.scrollPosition,class:"h-2 w-1/3"},null,8,["viewport-width","total-width","position"])])])}const Md=Object.assign(rt(Nd,[["render",Dd]]),{__name:"SliderWithIndicator"}),$d=Q({name:"NavMainBarMobile",props:{categories:{type:Array,default:()=>[]},hideOnSaleLink:{type:Boolean,default:!1}},setup(t){const e=N(()=>Math.ceil(t.categories.length/2)),n=N(()=>t.categories.slice(0,e.value)),r=N(()=>t.categories.slice(e.value));return{firstHalf:n,secondHalf:r}}}),Ud={class:"px-5 flex flex-col gap-1"},Bd={class:"flex gap-2"},Vd={class:"flex gap-2"};function Fd(t,e,n,r,o,s){const i=Xr,a=Xs,c=Md;return v(),Z(c,null,{default:W(()=>[y("div",Ud,[y("div",Bd,[(v(!0),T(Se,null,Ee(t.firstHalf,u=>(v(),Z(i,{key:u.id,"current-item":u},null,8,["current-item"]))),128))]),e[1]||(e[1]=S()),y("div",Vd,[(v(!0),T(Se,null,Ee(t.secondHalf,u=>(v(),Z(i,{key:u.id,"current-item":u},null,8,["current-item"]))),128)),e[0]||(e[0]=S()),C(a,{class:ot({hidden:t.hideOnSaleLink})},null,8,["class"])])])]),_:1})}const Hd=Object.assign(rt($d,[["render",Fd]]),{__name:"NavMainBarMobile"}),Gd=Q({name:"NavMainBarDesktop",props:{categories:{type:Array,default:()=>[]},hideOnSaleLink:{type:Boolean,default:!1}},setup(){const t={container:`absolute bg-EXPONDO-primary-10 h-full w-10 z-1 top-0
4      flex items-center justify-center cursor-pointer`,arrow:"text-EXPONDO-primary text-xl"},{isLoginPage:e}=Vn();return{SIMPLE_CAROUSEL_ARROW:Vs,arrowClass:t,isLoginPage:e}}}),zd={class:"flex items-center gap-6"},Wd=["onClick"],Xd=["onClick"];function Kd(t,e,n,r,o,s){const i=Gs,a=Xr,c=Xs,u=lu;return v(),T("div",zd,[t.isLoginPage?tt("",!0):(v(),Z(i,{key:0})),e[3]||(e[3]=S()),C(u,{"slider-items":t.categories,"slide-class":"py-2","has-custom-last-item":!0,arrows:!0,"hide-arrows-on-boundaries":!0,"slides-auto-width":!0,gap:8,height:48,class:"w-full overflow-auto"},{default:W(({currentItem:l})=>[C(a,{"current-item":l},null,8,["current-item"])]),prev:W(({prevArrowClicked:l})=>[y("div",{class:ot(["left-0",t.arrowClass.container]),"data-testid":"mainNavCarouselPrevButton",onClick:d=>l(t.SIMPLE_CAROUSEL_ARROW.prev)},[y("span",{class:ot([t.arrowClass.arrow,"iconify svg--chevron-left"])},null,2)],10,Wd)]),next:W(({nextArrowClicked:l})=>[y("div",{class:ot(["right-0",t.arrowClass.container]),"data-testid":"mainNavCarouselNextButton",onClick:d=>l(t.SIMPLE_CAROUSEL_ARROW.next)},[y("span",{class:ot([t.arrowClass.arrow,"iconify svg--chevron-right"])},null,2)],10,Xd)]),"custom-last-item":W(()=>[C(c,{class:ot({hidden:t.hideOnSaleLink})},null,8,["class"])]),_:1},8,["slider-items"])])}const jd=Object.assign(rt(Gd,[["render",Kd]]),{__name:"NavMainBarDesktop"});function qd(){const{languageAndCountry:t}=ae();return{getProductFirstLevelCategoryChildren:(n,r)=>N(()=>
4{if(!r||!r._breadcrumbs)return[];const i=pu(r)?.at(1)?.slug;if(!i)return[];const a=n.find(d=>d.slug===i);if(!a)return[];const c=a.children||[];if(!c.length)return[];const l=c.filter(d=>du([d],t.value).length>0).map(d=>({...d,link:`/${d.slug}`,hideChevron:!0}));return fu(l),l}).value}}const Yd=Q({name:"NavMainBar",props:{categories:{type:Array,default:()=>[]},product:{type:Object,default:()=>null}},setup(t){const{isOnProductPage:e}=Vn(),{categories:n,product:r}=Cs(t),o={container:`absolute bg-EXPONDO-primary-10 h-full w-10 z-1 top-0
5      flex items-center justify-center cursor-pointer`,arrow:"text-EXPONDO-primary text-xl"},{getProductFirstLevelCategoryChildren:s}=qd(),i=N(()=>e.value&&r.value?s(n.value,r.value):[]),a=N(()=>i.value?.length?i.value:n.value),c=N(()=>i.value?.length>0);return{SIMPLE_CAROUSEL_ARROW:Vs,arrowClass:o,productFirstLevelCategoryChildren:i,navCategories:a,isPdpCategory:c}}}),Jd={class:"lg:px-16 bg-EXPONDO-grey-5 py-2 lg:py-0"};function Qd(t,e,n,r,o,s){const i=Hd,a=jd;return v(),T("div",Jd,[C(i,{categories:t.navCategories,"hide-on-sale-link":t.isPdpCategory,class:"lg:hidden"},null,8,["categories","hide-on-sale-link"]),e[0]||(e[0]=S()),C(a,{categories:t.navCategories,"hide-on-sale-link":t.isPdpCategory,class:"max-lg:hidden","data-testid":"desktopNavBar"},null,8,["categories","hide-on-sale-link"])])}const Zd=Object.assign(rt(Yd,[["render",Qd]]),{__name:"NavMainBar"}),at={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"}
5,$t=console,_e={};Object.keys(at).forEach(t=>{_e[t]=$t[t]});const Ze="Datadog Browser SDK:",A={debug:_e.debug.bind($t,Ze),log:_e.log.bind($t,Ze),info:_e.info.bind($t,Ze),warn:_e.warn.bind($t,Ze),error:_e.error.bind($t,Ze)},Fn="https://docs.datadoghq.com",tf=`${Fn}/real_user_monitoring/browser/troubleshooting`,Kr="More details:";function Ks(t,e){return(...n)=>{try{return t(...n)}catch(r){A.error(e,r)}}}function re(t){return t!==0&&Math.random()*100<=t}function De(t,e){return+t.toFixed(e)}function ef(t){return un(t)&&t>=0&&t<=100}function un(t){return typeof t=="number"}function Hn(t){try{return JSON.parse(t)}catch{}}function Te(t){return{...t}}function kn(t,e){return Object.keys(t).some(n=>t[n]===e)}function ce(t){return Object.keys(t).length===0}function js(t,e){const n={};for(const r of Object.keys(t))n[r]=e(t[r]);return n}function gt(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let t=_dd_temp_;return delete Object.prototype._dd_temp_,typeof t!="object"&&(typeof self=="object"?t=self:typeof window=="object"?t=window:t={}),t}const xt=gt(),we="WorkerGlobalScope"in xt;function zt(t,e){const n=gt();let r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=t[n.Zone.__symbol__(e)]),r||(r=t[e]),r}let xn,qs=!1;function nf(t){xn=t}function rf(t){qs=t}function of(t,e,n){const r=n.value;n.value=function(...o){return(xn?O(r):r).apply(this,o)}}function O(t){return function(...e){return wt(t,this,e)}}function wt(t,e,n){try{return t.apply(e,n)}catch(r){Ce(r)}}function Ce(t){if(Pr(t),xn)try{xn(t)}catch(e){Pr(e)}}function Pr(...t){qs&&A.error("[MONITOR]",...t)}function ht(t,e){return zt(gt(),"setTimeout")(O(t),e)}function Rt(t){zt(gt(),"clearTimeout")(t)}function Ke(t,e){return zt(gt(),"setInterval")(O(t),e)}function Gn(t){zt(gt(),"clearInterval")(t)}function ko(t){const e=xt.queueMicrotask;typeof e=="function"?e(O(t)):Promise.resolve().then(O(t))}class ${constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}notify(e){this.observers.forEach(n=>n(e))}addObserver(e){this.observers.push(e),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(n=>e!==n),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function Ys(...t){return new $(e=>{const n=t.map(r=>r.subscribe(o=>e.notify(o)));return()=>n.forEach(r=>r.unsubscribe())})}class Js extends ${constructor(e){super(),this.maxBufferSize=e,this.buffer=[]}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(e)}subscribe(e){let n=!1;const r={unsubscribe:()=>{n=!0,this.removeObserver(e)}};return ko(()=>{for(const o of this.buffer){if(n)return;e(o)}n||this.addObserver(e)}),r}unbuffer(){ko(()=>{this.maxBufferSize=this.buffer.length=0})}}const bt=1e3,St=60*bt,Qs=60*St,sf=24*Qs,Zs=365*sf;function ln(t){return{relative:t,timeStamp:af(t)}}function ti(t){return{relative:jr(t),timeStamp:t}}function af(t){const e=vt()-performance.now();return e>dn()?Math.round(Oe(e,t)):uf(t)}function cf(){return Math.round(vt()-Oe(dn(),performance.now()))}function w(t){return un(t)?De(t*1e6,0):t}function vt(){return new Date().getTime()}function et(){return vt()}function Ct(){return performance.now()}function Y(){return{relative:Ct(),timeStamp:et()}}function ei(){return{relative:0,timeStamp:dn()}}function J(t,e){return e-t}function Oe(t,e){return t+e}function jr(t){return t-dn()}function uf(t){return Math.round(Oe(dn(),t))}function lf(t){return t<Zs}let lr;function dn(){var t,e;return lr===void 0&&(lr=(e=(t=performance.timing)===null||t===void 0?void 0:t.navigationStart)!==null&&e!==void 0?e:performance.timeOrigin),lr}function zn(t,e,n){const r=n&&n.leading!==void 0?n.leading:!0,o=n&&n.trailing!==void 0?n.trailing:!0;let s=!1,i,a;return{throttled:(...c)=>{if(s){i=c;return}r?t(...c):i=c,s=!0,a=ht(()=>{o&&i&&t(...i),s=!1,i=void 0},e)},cancel:()=>{Rt(a),s=!1,i=void 0}}}function z(){}function ft(t){return t?(parseInt(t,10)^Math.random()*16>>parseInt(t,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,ft)}const Fe=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function an(t,e){for(Fe.lastIndex=0;;){const n=Fe.exec(t);if(n){if(n[1]===e)return n[2]}else break}}function df(t){const e=new Map;for(Fe.lastIndex=0;;){const n=Fe.exec(t);if(n){const r=n[1],o=n[2];e.has(r)?e.get(r).push(o):e.set(r,[o])}else break}return e}function ff(t){const e=new Map;for(Fe.lastIndex=0;;){const n=Fe.exec(t);if(n)e.set(n[1],n[2]);else break}return e}function fn(t,e,n=""){const r=t.charCodeAt(e-1),s=r>=55296&&r<=56319?e+1:e;return t.length<=s?t:`${t.slice(0,s)}${n}`}function pf(){return ni()===0}function VE(){return ni()===1}let hn;function ni(){return hn??(hn=mf())}function mf(t=window){var e;const n=t.navigator.userAgent;return t.chrome||/HeadlessChrome/.test(n)?0:((e=t.navigator.vendor)===null||e===void 0?void 0:e.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}function qr(t){return je(t,location.href).href}function gf(t){try{return!!je(t)}catch{return!1}}function _f(t){const e=je(t).pathname;return e[0]==="/"?e:`/${e}`}function je(t,e){const{URL:n}=hf();try{return e!==void 0?new n(t,e):new n(t)}catch(r){throw new Error(`Failed to construct URL: ${String(r)}`)}}let dr;function hf(){var t;if(!dr){let e,n;try{e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e),n=(t=e.contentWindow)!==null&&t!==void 0?t:xt}catch{n=xt}dr={URL:n.URL},e?.remove()}return dr}function Wn(t,e,n=0,r){const o=new Date;o.setTime(o.getTime()+n);const s=`expires=${o.toUTCString()}`,i=r&&r.crossSite?"none":"strict",a=r&&r.domain?`;domain=${r.domain}`:"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie=`${t}=${e};${s};path=/;samesite=${i}${a}${c}${u}`}function Xn(t){return an(document.cookie,t)}function bf(t){return df(document.cookie).get(t)||[]}let fr;function Gt(t){return fr||(fr=ff(document.cookie)),fr.get(t)}function ri(t,e){Wn(t,"",0,e)}function yf(t){if(document.cookie===void 0||document.cookie===null)return!1;try{const e=`dd_cookie_test_${ft()}`,n="test";Wn(e,n,St,t);const r=Xn(e)===n;return ri(e,t),r}catch(e){return A.error(e),!1}}let pr;function oi(t=location.hostname,e=document.referrer){if(pr===void 0){const n=vf(t,e);if(n){const r=`dd_site_test_${ft()}`,o="test",s=n.split(".");let i=s.pop();for(;s.length&&!Xn(r);)i=`${s.pop()}.${i}`,Wn(r,o,bt,{domain:i});ri(r,{domain:i}),pr=i}}return pr}function vf(t,e){try{return t||je(e).hostname}catch{}}const Wt="_dd_s";function Yr(t,e){for(let n=t.length-1;n>=0;n-=1){const r=t[n];if(e(r,n,t))return r}}function Nn(t){return Object.values(t)}function Kn(t){return Object.entries(t)}const Ae=4*Qs,si=15*St,Sf=Zs,ii="0",kt={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"},ai=/^([a-zA-Z]+)=([a-z0-9-]+)$/,Jr="&";function Ef(t){return!!t&&(t.indexOf(Jr)!==-1||ai.test(t))}const Tf="1";function ee(t,e){const n={isExpired:Tf};return e.trackAnonymousUser&&t?.anonymousId&&(n.anonymousId=t?.anonymousId),n}function Tn(t){return ce(t)}function ci(t){return!Tn(t)}function rn(t){return t.isExpired!==void 0||!wf(t)}function wf(t){return(t.created===void 0||vt()-Number(t.created)<Ae)&&(t.expire===void 0||vt()<Number(t.expire))}function ui(t){t.expire=String(vt()+si)}function Dr(t){return Kn(t).map(([e,n])=>e==="anonymousId"?`aid=${n}`:`${e}=${n}`).join(Jr)}function jn(t){const e={};return Ef(t)&&t.split(Jr).forEach(n=>{const r=ai.exec(n);if(r!==null){const[,o,s]=r;o==="aid"?e.anonymousId=s:e[o]=s}}),e}const Cf="_dd",Of="_dd_r",Af="_dd_l",If="rum",Rf="logs";function kf(t){if(!Gt(Wt)){const n=Gt(Cf),r=Gt(Of),o=Gt(Af),s={};n&&(s.id=n),o&&/^[01]$/.test(o)&&(s[Rf]=o),r&&/^[012]$/.test(r)&&(s[If]=r),ci(s)&&(ui(s),t.persistSession(s))}}const xf=0;function Nf(t){const e=Pf(t);return e&&yf(e)?{type:kt.COOKIE,cookieOptions:e}:void 0}function Lf(t,e){const n={isLockEnabled:pf(),persistSession:r=>xo(e,t,r,si),retrieveSession:()=>li(e,t),expireSession:r=>xo(e,t,ee(r,t),Ae)};return kf(n),n}function xo(t,e,n,r){let o=Dr(n);e.betaEncodeCookieOptions&&(o=Dr({...n,...ce(n)?{}:{c:di(t)}})),Wn(Wt,o,e.trackAnonymousUser?Sf:r,t)}function li(t,e){if(e.betaEncodeCookieOptions)return Df(t);const n=Xn(Wt);return jn(n)}function Pf(t){const e={};if(e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains){const n=oi();if(!n)return;e.domain=n}return e}function di(t){const e=t.domain?t.domain.split(".").length-1:0;let n=0;return n|=xf<<5,n|=e<<1,n|=t.crossSite?1:0,n.toString(16)}function Df(t){const e=bf(Wt),n=di(t);let r;for(const o of e.reverse())if(r=jn(o),r.c===n)break;return r==null||delete r.c,r??{}}const Mf="_dd_test_";function $f(){try{const t=ft(),e=`${Mf}${t}`;localStorage.setItem(e,t);const n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:kt.LOCAL_STORAGE}:void 0}catch{return}}function Uf(t){return{isLockEnabled:!1,persistSession:fi,retrieveSession:pi,expireSession:e=>Bf(e,t)}}function fi(t){localStorage.setItem(Wt,Dr(t))}function pi(){const t=localStorage.getItem(Wt);return jn(t)}function Bf(t,e){fi(ee(t,e))}const Vf=10,Ff=100,Hf=bt,mi="--",gi=[];let wn;function he(t,e,n=0){var r;const{isLockEnabled:o,persistSession:s,expireSession:i}=e,a=f=>s({...f,lock:u}),c=()=>{const{lock:f,...p}=e.retrieveSession();return{session:p,lock:f&&!zf(f)?f:void 0}};if(wn||(wn=t),t!==wn){gi.push(t);return}if(o&&n>=Ff){No(e);return}let u,l=c();if(o){if(l.lock){bn(t,e,n);return}if(u=Gf(),a(l.session),l=c(),l.lock!==u){bn(t,e,n);return}}let d=t.process(l.session);if(o&&(l=c(),l.lock!==u)){bn(t,e,n);return}
5if(d&&(rn(d)?i(d):(ui(d),o?a(d):s(d))),o&&!(d&&rn(d))){if(l=c(),l.lock!==u){bn(t,e,n);return}s(l.session),d=l.session}(r=t.after)===null||r===void 0||r.call(t,d||l.session),No(e)}function bn(t,e,n){ht(()=>{he(t,e,n+1)},Vf)}function No(t){wn=void 0;const e=gi.shift();e&&he(e,t)}function Gf(){return ft()+mi+et()}function zf(t){const[,e]=t.split(mi);return!e||J(Number(e),et())>Hf}const Cn="_DD_SESSION";function Wf(){return{type:kt.MEMORY}}function Xf(t){return{expireSession:e=>jf(e,t),isLockEnabled:!1,persistSession:_i,retrieveSession:Kf}}function Kf(){const t=gt();return t[Cn]||(t[Cn]={}),Te(t[Cn])}function _i(t){const e=gt();e[Cn]=Te(t)}function jf(t,e){_i(ee(t,e))}const Lo=bt;function qf(t){const{sessionPersistence:e}=t,n=Yf(e,t);for(const r of n){const o=Jf(r,t);if(o!==void 0)return o}}function Yf(t,e){return Array.isArray(t)?t:t!==void 0?[t]:e.allowFallbackToLocalStorage?[kt.COOKIE,kt.LOCAL_STORAGE]:[kt.COOKIE]}function Jf(t,e){switch(t){case kt.COOKIE:return Nf(e);case kt.LOCAL_STORAGE:return $f();case kt.MEMORY:return Wf();default:A.error(`Invalid session persistence '${String(t)}'`);return}}function Qf(t,e){return t.type===kt.COOKIE?Lf(e,t.cookieOptions):t.type===kt.LOCAL_STORAGE?Uf(e):Xf(e)}function Zf(t,e,n,r,o=Qf(t,e)){const s=new $,i=new $,a=new $,c=Ke(p,Lo);let u;g();const{throttled:l,cancel:d}=zn(()=>{he({process:_=>{if(Tn(_))return;const E=m(_);return h(E),E},after:_=>{ci(_)&&!b()&&D(_),u=_}},o)},Lo);function f(){he({process:_=>b()?m(_):void 0},o)}function p(){const _=o.retrieveSession();rn(_)?he({process:E=>rn(E)?ee(E,e):void 0,after:m},o):m(_)}function m(_){return rn(_)&&(_=ee(_,e)),b()&&(I(_)?H():(a.notify({previousState:u,newState:_}),u=_)),_}function g(){he({process:_=>{if(Tn(_))return _.anonymousId=ft(),ee(_,e)},after:_=>{u=_}},o)}function h(_){if(Tn(_))return!1;const E=r(_[n]);_[n]=E,delete _.isExpired,E!==ii&&!_.id&&(_.id=ft(),_.created=String(vt())),e.trackAnonymousUser&&!_.anonymousId&&(_.anonymousId=ft())}function b(){return u?.[n]!==void 0}function I(_){return u.id!==_.id||u[n]!==_[n]}function H(){u=ee(u,e),i.notify()}function D(_){u=_,s.notify()}function yt(_){he({process:E=>({...E,..._}),after:m},o)}return{expandOrRenewSession:l,expandSession:f,getSession:()=>u,renewObservable:s,expireObservable:i,sessionStateUpdateObservable:a,restartSession:g,expire:_=>{d(),_===!1&&u&&delete u.anonymousId,o.expireSession(u),m(ee(u,e))},stop:()=>{Gn(c)},updateSessionState:yt}}const Mr={GRANTED:"granted",NOT_GRANTED:"not-granted"};function hi(t){const e=new $;return{tryToInit(n){t||(t=n)},update(n){t=n,e.notify()},isGranted(){return t===Mr.GRANTED},observable:e}}function qe(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function Ie(t){return qe(t)==="object"}function Ln(t){const e=qe(t);return e==="string"||e==="function"||t instanceof RegExp}function qn(t,e,n=!1){return t.some(r=>{try{if(typeof r=="function")return r(e);if(r instanceof RegExp)return r.test(e);if(typeof r=="string")return n?e.startsWith(r):r===e}catch(o){A.error(o)}return!1})}function FE(t){return t}const tp=["chrome-extension://","moz-extension://"];function Po(t){return tp.some(e=>t.includes(e))}function ep(t,e=""){if(Po(t))return!1;const r=e.split(`
6`).filter(o=>{const s=o.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return Po(r)}const np="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",rp="SDK initialized on a non-allowed domain.";function op(t,e){const n=gt().location,r=n?n.origin:"",o=t.allowedTrackingOrigins;if(!o)return ep(r,e)?(A.error(np),!1):!0;const s=qn(o,r);return s||A.error(rp),s}const bi="datad0g.com",sp="dd0g-gov.com",ye="datadoghq.com",ip="datadoghq.eu",ap="ddog-gov.com",cp="pci.browser-intake-datadoghq.com",up=["ddsource","dd-api-key","dd-request-id"];function te(t,e,n){const r=lp(t,e);return{build(o,s){const i=dp(t,e,o,s,n);return r(i)},trackType:e}}function lp(t,e){const n=`/api/v2/${e}`,r=t.proxy;if(typeof r=="string"){const s=qr(r);return i=>`${s}?ddforward=${encodeURIComponent(`${n}?${i}`)}`}if(typeof r=="function")return s=>r({path:n,parameters:s});const o=yi(e,t);return s=>`https://${o}${n}?${s}`}function yi(t,e){const{site:n=ye,internalAnalyticsSubdomain:r}=e;if(t==="logs"&&e.usePciIntake&&n===ye)return cp;if(r&&n===ye)return`${r}.${ye}`;if(n===sp)return`http-intake.logs.${n}`;const o=n.split("."),s=o.pop();return`browser-intake-${o.join("-")}.${s}`}function dp({clientToken:t,internalAnalyticsSubdomain:e,source:n="browser"},r,o,{retry:s,encoding:i},a=[]){const c=[`ddsource=${n}`,`dd-api-key=${t}`,`dd-evp-origin-version=${encodeURIComponent("6.32.0")}`,"dd-evp-origin=browser",`dd-request-id=${ft()}`].concat(a);return i&&c.push(`dd-evp-encoding=${i}`),r==="rum"&&(c.push(`batch_time=${et()}`,`_dd.api=${o}
6`),s&&c.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),e&&c.reverse(),c.join("&")}function fp(t){const e=t.site||ye,n=pp(t.source),r=mp({...t,site:e,source:n});return{replica:gp({...t,site:e,source:n}),site:e,source:n,...r}}function pp(t){return t==="flutter"||t==="unity"?t:"browser"}function mp(t){return{logsEndpointBuilder:te(t,"logs"),rumEndpointBuilder:te(t,"rum"),profilingEndpointBuilder:te(t,"profile"),sessionReplayEndpointBuilder:te(t,"replay"),exposuresEndpointBuilder:te(t,"exposures"),flagEvaluationEndpointBuilder:te(t,"flagevaluation")}}function gp(t){if(!t.replica)return;const e={...t,site:ye,clientToken:t.replica.clientToken};return{logsEndpointBuilder:te(e,"logs"),rumEndpointBuilder:te(e,"rum",[`application.id=${t.replica.applicationId}`])}}function vi(t){return up.every(e=>t.includes(e))}const Me={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},$r={ALL:"all",SAMPLED:"sampled"};function mr(t,e){return t!=null&&typeof t!="string"?(A.error(`${e} must be defined as a string`),!1):!0}function _p(t){return t&&typeof t=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(t)?(A.error(`Site should be a valid Datadog site. ${Kr} ${Fn}/getting_started/site/.`),!1):!0}function $e(t,e){return t!==void 0&&!ef(t)?(A.error(`${e} Sample Rate should be a number between 0 and 100`),!1):!0}function Si(t,e){var n,r,o,s,i,a,c,u,l,d;if(!t||!t.clientToken){A.error("Client Token is not configured, we will not send any data.");return}if(t.allowedTrackingOrigins!==void 0&&!Array.isArray(t.allowedTrackingOrigins)){A.error("Allowed Tracking Origins must be an array");return}if(!(!_p(t.site)||!$e(t.sessionSampleRate,"Session")||!$e(t.telemetrySampleRate,"Telemetry")||!$e(t.telemetryConfigurationSampleRate,"Telemetry Configuration")||!$e(t.telemetryUsageSampleRate,"Telemetry Usage")||!mr(t.version,"Version")||!mr(t.env,"Env")||!mr(t.service,"Service")||!op(t,e??""))){if(t.trackingConsent!==void 0&&!kn(Mr,t.trackingConsent)){A.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:t.beforeSend&&Ks(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:we?void 0:qf(t),sessionSampleRate:(n=t.sessionSampleRate)!==null&&n!==void 0?n:100,telemetrySampleRate:(r=t.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(o=t.telemetryConfigurationSampleRate)!==null&&o!==void 0?o:5,telemetryUsageSampleRate:(s=t.telemetryUsageSampleRate)!==null&&s!==void 0?s:5,service:(i=t.service)!==null&&i!==void 0?i:void 0,env:(a=t.env)!==null&&a!==void 0?a:void 0,version:(c=t.version)!==null&&c!==void 0?c:void 0,datacenter:(u=t.datacenter)!==null&&u!==void 0?u:void 0,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:(l=t.trackingConsent)!==null&&l!==void 0?l:Mr.GRANTED,trackAnonymousUser:(d=t.trackAnonymousUser)!==null&&d!==void 0?d:!0,storeContextsAcrossPages:!!t.storeContextsAcrossPages,betaEncodeCookieOptions:!!t.betaEncodeCookieOptions,variant:t.variant,sdkVersion:t.sdkVersion,...fp(t)}}}function Ei(t){return{session_sample_rate:t.sessionSampleRate,telemetry_sample_rate:t.telemetrySampleRate,telemetry_configuration_sample_rate:t.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:t.telemetryUsageSampleRate,use_before_send:!!t.beforeSend,use_partitioned_cross_site_session_cookie:t.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:t.useSecureSessionCookie,use_proxy:!!t.proxy,silent_multiple_init:t.silentMultipleInit,track_session_across_subdomains:t.trackSessionAcrossSubdomains,track_anonymous_user:t.trackAnonymousUser,session_persistence:Array.isArray(t.sessionPersistence)?t.sessionPersistence[0]:t.sessionPersistence,allow_fallback_to_local_storage:!!t.allowFallbackToLocalStorage,store_contexts_across_pages:!!t.storeContextsAcrossPages,allow_untrusted_events:!!t.allowUntrustedEvents,tracking_consent:t.trackingConsent,use_allowed_tracking_origins:Array.isArray(t.allowedTrackingOrigins),beta_encode_cookie_options:t.betaEncodeCookieOptions,source:t.source,sdk_version:t.sdkVersion,variant:t.variant}}var Et;(function(t){t.TRACK_INTAKE_REQUESTS="track_intake_requests",t.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",t.FEATURE_OPERATION_VITAL="feature_operation_vital",t.SHORT_SESSION_INVESTIGATION="short_session_investigation",t.START_STOP_ACTION="start_stop_action",t.START_STOP_RESOURCE="start_stop_resource",t.USE_CHANGE_RECORDS="use_change_records",t.USE_INCREMENTAL_CHANGE_RECORDS="use_incremental_change_records",t.INP_SUBPARTS="inp_subparts",t.TOO_MANY_REQUESTS_INVESTIGATION="too_many_requests_investigation",t.COMPOSED_PATH_SELECTOR="composed_path_selector"})(Et||(Et={}));const Qr=new Set;function Ti(t){Array.isArray(t)&&hp(t.filter(e=>kn(Et,e)))}
6function hp(t){t.forEach(e=>{Qr.add(e)})}function Pt(t){return Qr.has(t)}function bp(){return Qr}const He="?";function Re(t){var e,n;const r=[];let o=gr(t,"stack");const s=String(t);if(o&&o.startsWith(s)&&(o=o.slice(s.length)),o&&o.split(`
7`).forEach(i=>{const a=Sp(i)||wp(i)||Op(i)||Rp(i);a&&(!a.func&&a.line&&(a.func=He),r.push(a))}),r.length>0&&Lp()&&t instanceof Error){const i=[];let a=t;for(;(a=Object.getPrototypeOf(a))&&Ci(a);){const c=((e=a.constructor)===null||e===void 0?void 0:e.name)||He;i.push(c)}for(let c=i.length-1;c>=0&&((n=r[0])===null||n===void 0?void 0:n.func)===i[c];c--)r.shift()}return{message:gr(t,"message"),name:gr(t,"name"),stack:r}}const wi="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",Ge="(?::(\\d+))",yp=new RegExp(`^\\s*at (.*?) ?\\(${wi}${Ge}?${Ge}?\\)?\\s*$`,"i"),vp=new RegExp(`\\((\\S*)${Ge}${Ge}\\)`);function Sp(t){const e=yp.exec(t);if(!e)return;const n=e[2]&&e[2].indexOf("native")===0,r=e[2]&&e[2].indexOf("eval")===0,o=vp.exec(e[2]);return r&&o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3]),{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||He,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}const Ep="(?:(.*)?(?: @))",Tp=new RegExp(`^\\s*at\\s*${Ep}?\\s*${wi}${Ge}?${Ge}??\\s*$`,"i");function wp(t){const e=Tp.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||He,line:e[3]?+e[3]:void 0,url:e[2]}}const Cp=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function Op(t){const e=Cp.exec(t);if(e)return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||He,line:+e[3],url:e[2]}}const Ap=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,Ip=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Rp(t){const e=Ap.exec(t);if(!e)return;const n=e[3]&&e[3].indexOf(" > eval")>-1,r=Ip.exec(e[3]);return n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0),{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||He,line:e[4]?+e[4]:void 0,url:e[3]}}function gr(t,e){return Ie(t)&&typeof t[e]=="string"?t[e]:void 0}function kp(t,e,n,r){if(e===void 0)return;const{name:o,message:s}=Np(t);return{name:o,message:s,stack:[{url:e,column:r,line:n}]}}const xp=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function Np(t){let e,n;return{}.toString.call(t)==="[object String]"&&([,e,n]=xp.exec(t)),{name:e,message:n}}function Ci(t){return String(t.constructor).startsWith("class ")}let yn;function Lp(){if(yn!==void 0)return yn;class t extends Error{constructor(){super(),this.name="Error"}}const[e,n]=[t,Error].map(r=>new r);return yn=Ci(Object.getPrototypeOf(e))&&n.stack!==e.stack,yn}function Mt(t){const n=new Error(t);n.name="HandlingStack";let r;return wt(()=>{const o=Re(n);o.stack=o.stack.slice(2),r=pn(o)}),r}function pn(t){let e=Oi(t);return t.stack.forEach(n=>{const r=n.func==="?"?"<anonymous>":n.func,o=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",s=n.line?`:${n.line}`:"",i=n.line&&n.column?`:${n.column}`:"";e+=`
8  at ${r}${o} @ ${n.url}${s}${i}`}),e}function Oi(t){return`${t.name||"Error"}: ${t.message}`}function Ut(t,e,n,{computeHandlingStack:r}={}){let o=t[e];if(typeof o!="function")if(e in t&&typeof e=="string"&&e.startsWith("on"))o=z;else return{stop:z};let s=!1;const i=function(){if(s)return o.apply(this,arguments);const a=Array.from(arguments);let c;wt(n,null,[{target:this,parameters:a,onPostCall:l=>{c=l},handlingStack:r?Mt("instrumented method"):void 0}]);const u=o.apply(this,a);return c&&wt(c,null,[u]),u};return t[e]=i,{stop:()=>{s=!0,t[e]===i&&(t[e]=o)}}}function HE(t,e,n){const r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:z};const o=z;let s=(a,c)=>{ht(()=>{s!==o&&n(a,c)},0)};const i=function(a){r.set.call(this,a),s(this,a)};return Object.defineProperty(t,e,{set:i}),{stop:()=>{var a;((a=Object.getOwnPropertyDescriptor(t,e))===null||a===void 0?void 0:a.set)===i&&Object.defineProperty(t,e,r),s=o}}}const qt=1024,Ai=1024*qt,Pp=/[^\u0000-\u007F]/;function Ii(t){return Pp.test(t)?window.TextEncoder!==void 0?new TextEncoder().encode(t).length:new Blob([t]).size:t.length}function Ri(t){if(t.length===1)return t[0];const e=t.reduce((o,s)=>o+s.length,0),n=new Uint8Array(e);let r=0;for(const o of t)n.set(o,r),r+=o.length;return n}function ze(t,e,n){if(typeof t!="object"||t===null)return JSON.stringify(t);const r=Ue(Object.prototype),o=Ue(Array.prototype),s=Ue(Object.getPrototypeOf(t)),i=Ue(t);try{return JSON.stringify(t,e,n)}catch{return"<error: unable to serialize object>"}finally{r(),o(),s(),i()}}function Ue(t){const e=t,n=e.toJSON;return n?(delete e.toJSON,()=>{e.toJSON=n}):z}
8const Dp=220*qt,Mp="$",$p=3;function k(t,e=Dp){const n=Ue(Object.prototype),r=Ue(Array.prototype),o=[],s=new WeakMap,i=_r(t,Mp,void 0,o,s),a=JSON.stringify(i);let c=a?a.length:0;if(c>e){hr(e,"discarded",t);return}for(;o.length>0&&c<e;){const u=o.shift();let l=0;if(Array.isArray(u.source))for(let d=0;d<u.source.length;d++){const f=_r(u.source[d],u.path,d,o,s);if(f!==void 0?c+=JSON.stringify(f).length:c+=4,c+=l,l=1,c>e){hr(e,"truncated",t);break}u.target[d]=f}else for(const d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){const f=_r(u.source[d],u.path,d,o,s);if(f!==void 0&&(c+=JSON.stringify(f).length+l+d.length+$p,l=1),c>e){hr(e,"truncated",t);break}u.target[d]=f}}return n(),r(),i}function _r(t,e,n,r,o){const s=Vp(t);if(!s||typeof s!="object")return Up(s);const i=Ur(s);if(i!=="[Object]"&&i!=="[Array]"&&i!=="[Error]")return i;const a=t;if(o.has(a))return`[Reference seen at ${o.get(a)}]`;const c=n!==void 0?`${e}.${n}`:e,u=Array.isArray(s)?[]:{};return o.set(a,c),r.push({source:s,target:u,path:c}),u}function Up(t){return typeof t=="bigint"?`[BigInt] ${t.toString()}`:typeof t=="function"?`[Function] ${t.name||"unknown"}`:typeof t=="symbol"?`[Symbol] ${t.description||t.toString()}`:t}function Ur(t){try{if(t instanceof Event)return Bp(t);if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;const n=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}function Bp(t){return{type:t.type,isTrusted:t.isTrusted,currentTarget:t.currentTarget?Ur(t.currentTarget):null,target:t.target?Ur(t.target):null}}function Vp(t){const e=t;if(e&&typeof e.toJSON=="function")try{return e.toJSON()}catch{}return t}function hr(t,e,n){A.warn(`The data provided has been ${e} as it is over the limit of ${t} characters:`,n)}const ki="No stack, consider using an instance of Error";function xi({originalError:t,stackTrace:e,source:n,useFallbackStack:r=!0,nonErrorPrefix:o}){const s=ue(t);return!e&&s&&(e=Re(t)),{source:n,type:e?e.name:void 0,message:Fp(e,s,o,t),stack:e?pn(e):r?ki:void 0}}function Yn({stackTrace:t,originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:s,useFallbackStack:i=!0,source:a,handling:c}){const u=xi({originalError:e,stackTrace:t,source:a,useFallbackStack:i,nonErrorPrefix:s});return{startClocks:o,handling:c,handlingStack:n,componentStack:r,originalError:e,...u,causes:ue(e)?Wp(e,a):void 0,fingerprint:Hp(e),context:Gp(e)}}function Fp(t,e,n,r){return t?.message&&t?.name?t.message:e?"Empty message":n?`${n} ${ze(k(r))}`:ze(k(r))}function Hp(t){return ue(t)&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function Gp(t){if(Ie(t))return t.dd_context}function zp(t){var e;return(e=/@ (.+)/.exec(t))===null||e===void 0?void 0:e[1]}function ue(t){return t instanceof Error||Object.prototype.toString.call(t)==="[object Error]"}function Wp(t,e){const n=[];let r=t.cause;for(;r!=null&&n.length<10;){const o=xi({originalError:r,source:e,useFallbackStack:!1});n.push(o),r=ue(r)?r.cause:void 0}return n.length?n:void 0}const Tt={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function Xp(){return new $(t=>{const e=(o,s)=>{const i=Yn({stackTrace:s,originalError:o,startClocks:Y(),nonErrorPrefix:"Uncaught",source:Tt.SOURCE,handling:"unhandled"});t.notify(i)},{stop:n}=Kp(e),{stop:r}=jp(e);return()=>{n(),r()}})}function Kp(t){return Ut(gt(),"onerror",({parameters:[e,n,r,o,s]})=>{let i;ue(s)||(i=kp(e,n,r,o)),t(s??e,i)})}function jp(t){return Ut(gt(),"onunhandledrejection",({parameters:[e]})=>{t(e.reason||"Empty reason")})}function Ni(t){const e={version:"6.32.0",onReady(n){n()},...t};return Object.defineProperty(e,"_setDebug",{get(){return rf},enumerable:!1}),e}function Li(t,e,n){const r=t[e];r&&!r.q&&r.version&&A.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),t[e]=n,r&&r.q&&r.q.forEach(o=>Ks(o,"onReady callback threw an error:")())}function Jn(t,e){e.silentMultipleInit||A.error(`${t} is already initialized.`)}function st(t,e,n,r,o){return se(t,e,[n],r,o)}function se(t,e,n,r,{once:o,capture:s,passive:i}={}){const a=O(f=>{!f.isTrusted&&!f.__ddIsTrusted&&!t.allowUntrustedEvents||(o&&d(),r(f))}
8),c=i?{capture:s,passive:i}:s,u=window.EventTarget&&e instanceof EventTarget?window.EventTarget.prototype:e,l=zt(u,"addEventListener");n.forEach(f=>l.call(e,f,a,c));function d(){const f=zt(u,"removeEventListener");n.forEach(p=>f.call(e,p,a,c))}return{stop:d}}const We={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function Pi(t,e){const n=[];e.includes(We.cspViolation)&&n.push(Yp(t));const r=e.filter(o=>o!==We.cspViolation);return r.length&&n.push(qp(r)),Ys(...n)}function qp(t){return new $(e=>{if(!window.ReportingObserver)return;const n=O((o,s)=>o.forEach(i=>e.notify(Jp(i)))),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),()=>{r.disconnect()}})}function Yp(t){return new $(e=>{const{stop:n}=st(t,document,"securitypolicyviolation",r=>{e.notify(Qp(r))});return n})}function Jp(t){const{type:e,body:n}=t;return Di({type:n.id,message:`${e}: ${n.message}`,originalError:t,stack:Mi(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function Qp(t){const e=`'${t.blockedURI}' blocked by '${t.effectiveDirective}' directive`;return Di({type:t.effectiveDirective,message:`${We.cspViolation}: ${e}`,originalError:t,csp:{disposition:t.disposition},stack:Mi(t.effectiveDirective,t.originalPolicy?`${e} of the policy "${fn(t.originalPolicy,100,"...")}"`:"no policy",t.sourceFile,t.lineNumber,t.columnNumber)})}function Di(t){return{startClocks:Y(),source:Tt.REPORT,handling:"unhandled",...t}}function Mi(t,e,n,r,o){return n?pn({name:t,message:e,stack:[{func:"?",url:n,line:r??void 0,column:o??void 0}]}):void 0}const Zp=200;function Zr(t){const{env:e,service:n,version:r,datacenter:o,sdkVersion:s,variant:i}=t,a=[me("sdk_version",s??"6.32.0")];return e&&a.push(me("env",e)),n&&a.push(me("service",n)),r&&a.push(me("version",r)),o&&a.push(me("datacenter",o)),i&&a.push(me("variant",i)),a}function me(t,e){const n=e?`${t}:${e}`:t;return(n.length>Zp||tm(n))&&A.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${Kr} ${Fn}/getting_started/tagging/#defining-tags`),$i(n)}function $i(t){return t.replace(/,/g,"_")}function tm(t){return em()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(t):!1}function em(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function to(t,e){const n=xt.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function Pn(t,e,n=nm()){if(e===void 0)return t;if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const o=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,o)}if(n.hasAlreadyBeenSeen(e))return;if(Array.isArray(e)){const o=Array.isArray(t)?t:[];for(let s=0;s<e.length;++s)o[s]=Pn(o[s],e[s],n);return o}const r=qe(t)==="object"?t:{};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Pn(r[o],e[o],n));return r}function Qn(t){return Pn(void 0,t)}function Nt(...t){let e;for(const n of t)n!=null&&(e=Pn(e,n));return e}function nm(){if(typeof WeakSet<"u"){const e=new WeakSet;return{hasAlreadyBeenSeen(n){const r=e.has(n);return r||e.add(n),r}}}const t=[];return{hasAlreadyBeenSeen(e){const n=t.indexOf(e)>=0;return n||t.push(e),n}}}function Ui(){var t;const e=xt.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:(t=e.connection)===null||t===void 0?void 0:t.effectiveType}}function Bi(t,e){return zt(gt(),"fetch")(t,e)}function Vi(t){return t>=500}function rm(t){try{return t.clone()}catch{return}}const om=80*qt,sm=32,Fi=20*Ai,im=St,Hi=bt;function Gi(t,e,n,r,o,s){e.transportStatus===0&&e.queuedPayloads.size()===0&&e.bandwidthMonitor.canHandle(t)?Wi(t,e,n,s,{onSuccess:()=>Xi(0,e,n,r,o,s),onFailure:()=>{e.queuedPayloads.enqueue(t)||s.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t}),zi(e,n,r,o,s)}}):e.queuedPayloads.enqueue(t)||s.notify({type:"queue-full",bandwidth:e.bandwidthMonitor.stats(),payload:t})}function zi(t,e,n,r,o){t.transportStatus===2&&ht(()=>{const s=t.queuedPayloads.first();Wi(s,t,e,o,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=Hi,Xi(1,t,e,n,r,o)},onFailure:()=>{t.currentBackoffTime=Math.min(im,t.currentBackoffTime*2),zi(t,e,n,r,o)}})},t.currentBackoffTime)}function Wi(t,e,n,r,{onSuccess:o,onFailure:s}){e.bandwidthMonitor.add(t),n(t,i=>{e.bandwidthMonitor.remove(t),am(i)?(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:i.status}
8,r.notify({type:"failure",bandwidth:e.bandwidthMonitor.stats(),payload:t}),s()):(e.transportStatus=0,r.notify({type:"success",bandwidth:e.bandwidthMonitor.stats(),payload:t}),o())})}function Xi(t,e,n,r,o,s){t===0&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(o({message:`Reached max ${r} events size queued for upload: ${Fi/Ai}MiB`,source:Tt.AGENT,startClocks:Y()}),e.queueFullReported=!0);const i=e.queuedPayloads;for(e.queuedPayloads=Ki();i.size()>0;)Gi(i.dequeue(),e,n,r,o,s)}function am(t){return t.type!=="opaque"&&(t.status===0&&!navigator.onLine||t.status===408||t.status===429||Vi(t.status))}function cm(){return{transportStatus:0,currentBackoffTime:Hi,bandwidthMonitor:um(),queuedPayloads:Ki(),queueFullReported:!1}}function Ki(){const t=[];return{bytesCount:0,enqueue(e){return this.isFull()?!1:(t.push(e),this.bytesCount+=e.bytesCount,!0)},first(){return t[0]},dequeue(){const e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size(){return t.length},isFull(){return this.bytesCount>=Fi}}}function um(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(t){return this.ongoingRequestCount===0||this.ongoingByteCount+t.bytesCount<=om&&this.ongoingRequestCount<sm},add(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}}}const Br=16*qt;function eo(t,e,n=Br){const r=new $,o=cm();return{observable:r,send:s=>{for(const i of t)Gi(s,o,(a,c)=>{ji(i,a,c)},i.trackType,e,r)},sendOnExit:s=>{for(const i of t)lm(i,n,s)}}}function lm(t,e,n){if(!!navigator.sendBeacon&&n.bytesCount<e)try{const o=t.build("beacon",n);if(navigator.sendBeacon(o,n.data))return}catch(o){dm(o)}ji(t,n)}let Do=!1;function dm(t){Do||(Do=!0,Ce(t))}function ji(t,e,n){const r=t.build("fetch",e);Bi(r,{method:"POST",body:e.data,mode:"cors"}).then(O(o=>n?.({status:o.status,type:o.type}))).catch(O(()=>n?.({status:0})))}function Ye(){const t=fm();if(t)return{getCapabilities(){var e;return JSON.parse(((e=t.getCapabilities)===null||e===void 0?void 0:e.call(t))||"[]")},getPrivacyLevel(){var e;return(e=t.getPrivacyLevel)===null||e===void 0?void 0:e.call(t)},getAllowedWebViewHosts(){return JSON.parse(t.getAllowedWebViewHosts())},send(e,n,r){const o=r?{id:r}:void 0;t.send(JSON.stringify({eventType:e,event:n,view:o}))}}}function qi(t){const e=Ye();return!!e&&e.getCapabilities().includes(t)}function Xt(t){var e;t===void 0&&(t=(e=gt().location)===null||e===void 0?void 0:e.hostname);const n=Ye();return!!n&&n.getAllowedWebViewHosts().some(r=>t===r||t.endsWith(`.${r}`))}function fm(){return gt().DatadogEventBridge}const on={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function no(t){return new $(e=>{if(we)return;const{stop:n}=se(t,window,["visibilitychange","freeze"],o=>{o.type==="visibilitychange"&&document.visibilityState==="hidden"?e.notify({reason:on.HIDDEN}):o.type==="freeze"&&e.notify({reason:on.FROZEN})},{capture:!0}),r=st(t,window,"beforeunload",()=>{e.notify({reason:on.UNLOADING})}).stop;return()=>{n(),r()}})}function pm(t){return Nn(on).includes(t)}const Mo=256*qt;function ro({encoder:t,request:e,flushController:n}){let r={};const o=n.flushObservable.subscribe(l=>u(l));function s(l,d,f){n.notifyBeforeAddMessage(d),f!==void 0?(r[f]=l,n.notifyAfterAddMessage()):t.write(t.isEmpty?l:`
9${l}`,p=>{n.notifyAfterAddMessage(p-d)})}function i(l){return l!==void 0&&r[l]!==void 0}function a(l){const d=r[l];delete r[l];const f=t.estimateEncodedBytesCount(d);n.notifyAfterRemoveMessage(f)}function c(l,d){const f=ze(l),p=t.estimateEncodedBytesCount(f);if(p>=Mo){A.warn(`Discarded a message whose size was bigger than the maximum allowed size ${Mo/qt}KiB. ${Kr} ${tf}/#technical-limitations`);return}i(d)&&a(d),s(f,p,d)}function u(l){const d=Nn(r).join(`
10`);r={};const f=pm(l.reason),p=f?e.sendOnExit:e.send;if(f&&t.isAsync){const m=t.finishSync();m.outputBytesCount&&p($o(m));const g=[m.pendingData,d].filter(Boolean).join(`
11`);g&&p({data:g,bytesCount:Ii(g)})}else d&&t.write(t.isEmpty?d:`
12${d}`),t.finish(m=>{p($o(m))})}return{flushController:n,add:c,upsert:c,stop:o.unsubscribe}}function $o(t){let e;return typeof t.output=="string"?e=t.output:e=new Blob([t.output],{type:"text/plain"}),{data:e,bytesCount:t.outputBytesCount,encoding:t.encoding}}const mm=30*bt,gm=we?1:50;
12function oo({pageMayExitObservable:t,sessionExpireObservable:e}){const n=t.subscribe(d=>a(d.reason)),r=e.subscribe(()=>a("session_expire")),o=new $(()=>()=>{n.unsubscribe(),r.unsubscribe()});let s=0,i=0;function a(d){if(i===0)return;const f=i,p=s;i=0,s=0,l(),o.notify({reason:d,messagesCount:f,bytesCount:p})}let c;function u(){c===void 0&&(c=ht(()=>{a("duration_limit")},mm))}function l(){Rt(c),c=void 0}return{flushObservable:o,get messagesCount(){return i},notifyBeforeAddMessage(d){s+d>=Br&&a("bytes_limit"),i+=1,s+=d,u()},notifyAfterAddMessage(d=0){s+=d,i>=gm?a("messages_limit"):s>=Br&&a("bytes_limit")},notifyAfterRemoveMessage(d){s-=d,i-=1,i===0&&l()}}}function so(){let t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write(n,r){const o=Ii(n);e+=o,t+=n,r&&r(o)},finish(n){n(this.finishSync())},finishSync(){const n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount(n){return n.length}}}const Dt="DISCARDED",pt="SKIPPED";function Yi(){const t={};return{register(e,n){return t[e]||(t[e]=[]),t[e].push(n),{unregister:()=>{t[e]=t[e].filter(r=>r!==n)}}},triggerHook(e,n){const r=t[e]||[],o=[];for(const s of r){const i=s(n);if(i===Dt)return Dt;i!==pt&&o.push(i)}return Nt(...o)}}}const oe={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},_m=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],hm=1,bm=[ap],ym=15;let br;function Je(){return br||(br=new Js(100)),br}function Ji(t,e,n){const r=new $,{enabled:o,metricsEnabled:s}=vm(t,e,n,r),{stop:i}=Sm(e,r);return{stop:i,enabled:o,metricsEnabled:s}}function vm(t,e,n,r,o=hm,s=ym){const i={},a=!bm.includes(e.site)&&re(e.telemetrySampleRate),c={[oe.LOG]:a,[oe.CONFIGURATION]:a&&re(e.telemetryConfigurationSampleRate),[oe.USAGE]:a&&re(e.telemetryUsageSampleRate),metric:a&&re(o)},u=Em(),l=Je();return l.subscribe(({rawEvent:f,metricName:p})=>{if(p&&!c.metric||!c[f.type])return;const m=p||f.status||f.type;let g=i[m];if(g||(g=i[m]=new Set),g.size>=s)return;const h=ze(f);if(g.has(h))return;const b=n.triggerHook(1,{startTime:Y().relative});if(b===Dt)return;const I=d(b,t,f,u);r.notify(I),to("telemetry",I),g.add(h)}),l.unbuffer(),nf(Zn),{enabled:a,metricsEnabled:c.metric};function d(f,p,m,g){const b={type:"telemetry",date:Y().timeStamp,service:p,version:"6.32.0",source:"browser",_dd:{format_version:2},telemetry:Nt(m,{runtime_env:g,connectivity:Ui(),sdk_setup:"npm"}),ddtags:Zr(e).join(","),experimental_features:Array.from(bp())};return Nt(b,f)}}function Sm(t,e){const n=[];if(Xt()){const r=Ye(),o=e.subscribe(s=>r.send("internal_telemetry",s));n.push(o.unsubscribe)}else{const r=[t.rumEndpointBuilder];t.replica&&Tm(t)&&r.push(t.replica.rumEndpointBuilder);const o=ro({encoder:so(),request:eo(r,z),flushController:oo({pageMayExitObservable:no(t),sessionExpireObservable:new $})});n.push(o.stop);const s=e.subscribe(o.add);n.push(s.unsubscribe)}return{stop:()=>n.forEach(r=>r())}}function Em(){var t;return{is_local_file:((t=xt.location)===null||t===void 0?void 0:t.protocol)==="file:",is_worker:we}}function Tm(t){return t.site===bi}function mn(t,e){Pr(at.debug,t,e),Je().notify({rawEvent:{type:oe.LOG,message:t,status:"debug",...e}})}function Zn(t,e){Je().notify({rawEvent:{type:oe.LOG,status:"error",...wm(t),...e}})}function Qi(t){Je().notify({rawEvent:{type:oe.CONFIGURATION,configuration:t}})}function tr(t,e){Je().notify({rawEvent:{type:oe.LOG,message:t,status:"debug",...e},metricName:t})}function lt(t){Je().notify({rawEvent:{type:oe.USAGE,usage:t}})}function wm(t){if(ue(t)){const e=Re(t);return{error:{kind:e.name,stack:pn(Cm(e))},message:e.message}}return{error:{stack:ki},message:`Uncaught ${ze(t)}`}}function Cm(t){return t.stack=t.stack.filter(e=>!e.url||_m.some(n=>e.url.startsWith(n))),t}function Om(t){const e=new Set;return t.forEach(n=>e.add(n)),Array.from(e)}function Zi(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1)}function ve(t){return Array.isArray(t)&&t.length>0}const vn=1/0,Am=St;let tn;const On=new Set;
12function Im(){On.forEach(t=>t())}function Qe({expireDelay:t,maxEntries:e}){let n=[];tn||(tn=Ke(()=>Im(),Am));const r=()=>{const d=Ct()-t;for(;n.length>0&&n[n.length-1].endTime<d;)n.pop()};On.add(r);function o(d,f){const p={value:d,startTime:f,endTime:vn,remove:()=>{Zi(n,p)},close:m=>{p.endTime=m}};return e&&n.length>=e&&n.pop(),n.unshift(p),p}function s(d=vn,f={returnInactive:!1}){for(const p of n)if(p.startTime<=d){if(f.returnInactive||d<=p.endTime)return p.value;break}}function i(d){const f=n[0];f&&f.endTime===vn&&f.close(d)}function a(d=vn,f=0){const p=Oe(d,f);return n.filter(m=>m.startTime<=p&&d<=m.endTime).map(m=>m.value)}function c(d){return n.filter(f=>f.startTime===d)}function u(){n=[]}function l(){On.delete(r),On.size===0&&tn&&(Gn(tn),tn=void 0)}return{add:o,find:s,closeActive:i,findAll:a,getEntries:c,reset:u,stop:l}}const er="datadog-synthetics-",Rm=`${er}public-id`,km=`${er}result-id`,xm=`${er}injects-rum`,Nm=`${er}rum-context`;function nr(){return we?!1:!!(xt._DATADOG_SYNTHETICS_INJECTS_RUM||Gt(xm))}function ta(){const t=Lm();return Pm(t)?t:void 0}function ea(){return!!ta()}function Lm(){const t=xt._DATADOG_SYNTHETICS_RUM_CONTEXT;if(t)return t;const e=Gt(Nm);return e?Hn(decodeURIComponent(e)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||Gt(Rm),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||Gt(km)}}function Pm(t){return typeof t=="object"&&t!==null&&typeof t.test_id=="string"&&typeof t.result_id=="string"}const Dm=St,Mm=Ae;function na(t,e,n,r){const o=new $,s=new $,i=Zf(t.sessionStoreStrategyType,t,e,n),a=Qe({expireDelay:Mm});if(i.renewObservable.subscribe(()=>{a.add(c(),Ct()),o.notify()}),i.expireObservable.subscribe(()=>{s.notify(),a.closeActive(Ct())}),i.expandOrRenewSession(),a.add(c(),ei().relative),Pt(Et.SHORT_SESSION_INVESTIGATION)){const u=i.getSession();u&&Fm(t,u)}r.observable.subscribe(()=>{r.isGranted()?i.expandOrRenewSession():i.expire(!1)}),$m(t,()=>{r.isGranted()&&i.expandOrRenewSession()}),Um(t,()=>i.expandSession()),Bm(t,()=>i.restartSession());function c(){const u=i.getSession();return u?{id:u.id,trackingType:u[e],isReplayForced:!!u.forcedReplay,anonymousId:u.anonymousId}:(Vm(t).catch(()=>{}),{id:"invalid",trackingType:ii,isReplayForced:!1,anonymousId:void 0})}return{findSession:(u,l)=>a.find(u,l),renewObservable:o,expireObservable:s,sessionStateUpdateObservable:i.sessionStateUpdateObservable,expire:i.expire,updateSessionState:i.updateSessionState}}function $m(t,e){const{stop:n}=se(t,window,["click","touchstart","keydown","scroll"],e,{capture:!0,passive:!0})}function Um(t,e){const n=()=>{document.visibilityState==="visible"&&e()},{stop:r}=st(t,document,"visibilitychange",n);Ke(n,Dm)}function Bm(t,e){const{stop:n}=st(t,window,"resume",e,{capture:!0})}async function Vm(t){const e=t.sessionStoreStrategyType;if(!e)return;let n,r;e.type===kt.COOKIE?(n=li(e.cookieOptions,t),r={cookie:await ra(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):n=pi(),mn("Unexpected session state",{sessionStoreStrategyType:e.type,session:n,isSyntheticsTest:ea(),createdTimestamp:n?.created,expireTimestamp:n?.expire,...r})}function Fm(t,e){if(!window.cookieStore||!e.created)return;const n=Number(e.created),r=vt(),{stop:o}=st(t,cookieStore,"change",s);function s(i){const a=Yr(i.changed,u=>u.name===Wt);if(!a)return;const c=vt()-n;if(c>14*St)o();else{const u=jn(a.value);if(u.id&&u.id!==e.id){o();const l=vt()-r;ra().then(d=>{mn("Session cookie changed",{time:l,session_age:c,old:e,new:u,cookie:d})}).catch(Ce)}}}}async function ra(){let t;return"cookieStore"in window?t=await window.cookieStore.getAll(Wt):t=document.cookie.split(/\s*;\s*/).filter(e=>e.startsWith(Wt)),{count:t.length,domain:oi()||"undefined",...t}}class oa{constructor(){this.callbacks={}}notify(e,n){const r=this.callbacks[e];r&&r.forEach(o=>o(n))}subscribe(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(r=>n!==r)}}}}const Hm=3e3;function An(t,e,n=Hm){let r=0,o=!1;return{isLimitReached(){if(r===0&&ht(()=>{r=0},St),r+=1,r<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{e({message:`Reached max number of ${t}s by minute: ${n}`,source:Tt.AGENT,startClocks:Y()})}finally{o=!1}}return!0}}}function io(t,e,n){return document.readyState===e||document.readyState==="complete"?(n(),{stop:z}):st(t,window,e==="complete"?"load":"DOMContentLoaded",n,{once:!0})}function Gm(t,e){return new Promise(n=>{io(t,e,n)})}let yr;const ao=new WeakMap;function sa(t){return yr||(yr=zm(t)),yr}function zm(t){return new $(e=>{const{stop:n}=Ut(XMLHttpRequest.prototype,"open",Wm),{stop:r}=Ut(XMLHttpRequest.prototype,"send",s=>{Xm(s,t,e)},{computeHandlingStack:!0}),{stop:o}=Ut(XMLHttpRequest.prototype,"abort",Km);return()=>{n(),r(),o()}})}function Wm({target:t,parameters:[e,n]}){ao.set(t,{state:"open",method:String(e).toUpperCase(),url:qr(String(n))})}function Xm({target:t,parameters:[e],handlingStack:n},r,o){const s=ao.get(t);if(!s)return;const i=s;
12i.state="start",i.startClocks=Y(),i.isAborted=!1,i.xhr=t,i.handlingStack=n,i.requestBody=e;let a=!1;const{stop:c}=Ut(t,"onreadystatechange",()=>{t.readyState===XMLHttpRequest.DONE&&u()}),u=()=>{if(l(),c(),a)return;a=!0;const d=s;d.state="complete",d.duration=J(i.startClocks.timeStamp,et()),d.status=t.status,typeof t.response=="string"&&(d.responseBody=t.response),o.notify(Te(d))},{stop:l}=st(r,t,"loadend",u);o.notify(i)}function Km({target:t}){const e=ao.get(t);e&&(e.isAborted=!0)}async function jm(t,e){const n=t.getReader(),r=[];for(;;){const o=await n.read();if(o.done)break;e.collectStreamBody&&r.push(o.value)}return n.cancel().catch(z),e.collectStreamBody?Ri(r):void 0}let vr;const ia=[];function rr({responseBodyAction:t}={}){return t&&ia.push(t),vr||(vr=qm()),vr}function qm(){return new $(t=>{if(!xt.fetch)return;const{stop:e}=Ut(xt,"fetch",n=>Ym(n,t),{computeHandlingStack:!0});return e})}function Ym({parameters:t,onPostCall:e,handlingStack:n},r){var o,s;const[i,a]=t;let c=a&&a.method;c===void 0&&i instanceof Request&&(c=i.method);const u=c!==void 0?String(c).toUpperCase():"GET",l=i instanceof Request?i.url:qr(String(i)),d=Y(),f={state:"start",init:a,input:i,method:u,startClocks:d,url:l,handlingStack:n,isAbortedOnStart:i instanceof Request&&((o=i.signal)===null||o===void 0?void 0:o.aborted)||((s=a?.signal)===null||s===void 0?void 0:s.aborted)||!1};r.notify(f),t[0]=f.input,t[1]=f.init,e(p=>{Jm(r,p,f).catch(Ce)})}async function Jm(t,e,n){var r,o;const s=n;s.state="resolve";let i;try{i=await e}catch(c){s.status=0,s.isAborted=((o=(r=s.init)===null||r===void 0?void 0:r.signal)===null||o===void 0?void 0:o.aborted)||c instanceof DOMException&&c.code===DOMException.ABORT_ERR,s.error=c,t.notify(s);return}s.response=i,s.status=i.status,s.responseType=i.type,s.isAborted=!1;const a=ia.reduce((c,u)=>Math.max(c,u(s)),0);if(a!==0){const c=rm(i);if(c&&c.body)try{const u=await jm(c.body,{collectStreamBody:a===2});s.responseBody=u&&new TextDecoder().decode(u)}catch{}}t.notify(s)}function Qm(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback(O(t),e);return()=>window.cancelIdleCallback(n)}return tg(t)}const Zm=50;function tg(t){const e=vt(),n=ht(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,Zm-(vt()-e))})},0);return()=>Rt(n)}const eg=bt,ng=30;function rg(){const t=[];function e(r){let o;if(r.didTimeout){const s=performance.now();o=()=>ng-(performance.now()-s)}else o=r.timeRemaining.bind(r);for(;o()>0&&t.length;)t.shift()();t.length&&n()}function n(){Qm(e,{timeout:eg})}return{push(r){t.push(r)===1&&n()},stop(){t.length=0}}}let Sr={};function aa(t){const e=t.map(n=>(Sr[n]||(Sr[n]=og(n)),Sr[n]));return Ys(...e)}function og(t){return new $(e=>{const n=$t[t];return $t[t]=(...r)=>{n.apply(console,r);const o=Mt("console error");wt(()=>{e.notify(sg(r,t,o))})},()=>{$t[t]=n}})}function sg(t,e,n){const r=t.map(o=>ig(o)).join(" ");if(e===at.error){const o=t.find(ue),s=Yn({originalError:o,handlingStack:n,startClocks:Y(),source:Tt.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=r,{api:e,message:r,handlingStack:n,error:s}}return{api:e,message:r,error:void 0,handlingStack:n}}function ig(t){return typeof t=="string"?k(t):ue(t)?Oi(Re(t)):ze(k(t),void 0,2)}const ag=500;function ca(){const t=[];return{add:o=>{t.push(o)>ag&&t.splice(0,1)},remove:o=>{Zi(t,o)},drain:o=>{t.forEach(s=>s(o)),t.length=0}}}function cg(t){const e=qe(t)==="object";return e||A.error("Unsupported context:",t),e}function Er(t,e,n){const r={...t};for(const[o,{required:s,type:i}]of Object.entries(e))i==="string"&&!Uo(r[o])&&(r[o]=String(r[o])),s&&Uo(r[o])&&A.warn(`The property ${o} of ${n} is required; context will not be sent to the intake.`);return r}function Uo(t){return t==null||t===""}function gn(t="",{propertiesConfig:e={}}={}){let n={};const r=new $,o={getContext:()=>Qn(n),setContext:s=>{cg(s)?n=k(Er(s,e,t)):o.clearContext(),r.notify()},setContextProperty:(s,i)=>{n=k(Er({...n,[s]:i},e,t)),r.notify()},removeContextProperty:s=>{delete n[s],Er(n,e,t),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return o}function K(t,e,n,r){return O((...o)=>(r&&lt({feature:r}),t()[e][n](...o)))}function Tr(t,e,n){t.changeObservable.subscribe(()=>{const r=t.getContext();n.add(o=>o[e].setContext(r))})}const ug="_dd_c",lg=[];function co(t,e,n,r){const o=dg(n,r);lg.push(st(t,window,"storage",({key:u})=>{o===u&&i()})),e.changeObservable.subscribe(a);const s=Nt(c(),e.getContext());ce(s)||e.setContext(s);function i(){e.setContext(c())}function a(){localStorage.setItem(o,JSON.stringify(e.getContext()))}function c(){const u=localStorage.getItem(o);return u?JSON.parse(u):{}}}function dg(t,e){return`${ug}_${t}_${e}`}function ua(t,e,n){const r=uo();return e.storeContextsAcrossPages&&co(e,r,n,4),t.register(0,()=>{const o=r.getContext();return ce(o)||!o.id?pt:{account:o}}),r}function uo(){return gn("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}function la(t,e,n,r){const o=lo();return e.storeContextsAcrossPages&&co(e,o,n,2),t.register(0,()=>{const s=o.getContext();return r?{context:s}:s}),o}function lo(){return gn("global context")}function da(t,e,n,r){const o=fo();return e.storeContextsAcrossPages&&co(e,o,r,1),t.register(0,({eventType:s,startTime:i})=>{const a=o.getContext(),c=n.findTrackedSession(i);return c&&c.anonymousId&&!a.anonymous_id&&e.trackAnonymousUser&&(a.anonymous_id=c.anonymousId),ce(a)?pt:{type:s,usr:a}}),t.register(1,({startTime:s})=>{var i;return{anonymous_id:(i=n.findTrackedSession(s))===null||i===void 0?void 0:i.anonymousId}}),o}function fo(){return gn("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const M={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},j={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"},ie={FETCH:_t.FETCH,XHR:_t.XHR},fg=500;function fa(){const t=new Js(fg),e=Xp().subscribe(n=>{t.notify({type:0,error:n})});return{observable:t,stop:()=>{e.unsubscribe()}}}function pg(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}const R={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},Bo={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},Ht={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},po={CLICK:"click",CUSTOM:"custom"},Pe={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"}
12,Be={DURATION:"duration",OPERATION_STEP:"operation_step"};function mg(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function gg(t,e,n){function r(i){return!e.wasInPageStateDuringPeriod("frozen",i.startClocks.relative,i.duration)}function o(i){r(i)&&t.notify(12,Vo(i))}function s(i,a,c,u){if(!Pt(Et.FEATURE_OPERATION_VITAL))return;const{operationKey:l,context:d,description:f,handlingStack:p}=c||{},m={name:i,type:Be.OPERATION_STEP,operationKey:l,failureReason:u,stepType:a,startClocks:Y(),context:k(d),description:f,handlingStack:p};t.notify(12,Vo(m))}return{addOperationStepVital:s,addDurationVital:o,startDurationVital:(i,a={})=>{const c=pa(n,i,a),u=n.vitalsByReference.get(c);return u&&t.notify(16,u),c},stopDurationVital:(i,a={})=>{ma(o,n,i,a)}}}function pa({vitalsByName:t,vitalsByReference:e},n,r={}){const o={id:ft(),name:n,startClocks:Y(),...r},s={__dd_vital_reference:!0};return t.set(n,o),e.set(s,o),s}function ma(t,{vitalsByName:e,vitalsByReference:n},r,o={}){const s=typeof r=="string"?e.get(r):n.get(r);s&&(t(_g(s,s.startClocks,o,Y())),typeof r=="string"?e.delete(r):n.delete(r))}function _g(t,e,n,r){var o;return{id:t.id,name:t.name,type:Be.DURATION,startClocks:e,duration:J(e.timeStamp,r.timeStamp),context:Nt(t.context,n.context),description:(o=n.description)!==null&&o!==void 0?o:t.description,handlingStack:t.handlingStack}}function Vo(t){const{startClocks:e,type:n,name:r,description:o,context:s,handlingStack:i}=t,a=t.type===Be.DURATION?t.id:void 0,c={id:a??ft(),type:n,name:r,description:o,...n===Be.DURATION?{duration:w(t.duration)}:{step_type:t.stepType,operation_key:t.operationKey,failure_reason:t.failureReason}};return{rawRumEvent:{date:e.timeStamp,vital:c,type:R.VITAL,context:s},startClocks:e,duration:n===Be.DURATION?t.duration:void 0,domainContext:i?{handlingStack:i}:{}}}function ga(t,e,n){if(t)for(const r of t){const o=r[e];o&&o(n)}}const hg=Yi,Fo=["tracecontext","datadog"];function bg(t,e){var n,r,o,s,i,a,c;if(t.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(t.trackFeatureFlagsForEvents)&&A.warn("trackFeatureFlagsForEvents should be an array"),!t.applicationId){A.error("Application ID is not configured, no RUM data will be collected.");return}if(!$e(t.sessionReplaySampleRate,"Session Replay")||!$e(t.traceSampleRate,"Trace"))return;if(t.excludedActivityUrls!==void 0&&!Array.isArray(t.excludedActivityUrls)){A.error("Excluded Activity Urls should be an array");return}const u=yg(t);if(!u)return;const l=Si(t,e),d=Sg(t);if(!l)return;const f=(n=t.sessionReplaySampleRate)!==null&&n!==void 0?n:0;return{applicationId:t.applicationId,actionNameAttribute:t.actionNameAttribute,betaTrackActionsInShadowDom:!!t.betaTrackActionsInShadowDom,sessionReplaySampleRate:f,startSessionReplayRecordingManually:t.startSessionReplayRecordingManually!==void 0?!!t.startSessionReplayRecordingManually:f===0,traceSampleRate:(r=t.traceSampleRate)!==null&&r!==void 0?r:100,rulePsr:un(t.traceSampleRate)?t.traceSampleRate/100:void 0,allowedTracingUrls:u,excludedActivityUrls:(o=t.excludedActivityUrls)!==null&&o!==void 0?o:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!(!((s=t.trackUserInteractions)!==null&&s!==void 0)||s),trackViewsManually:!!t.trackViewsManually,trackResources:!!(!((i=t.trackResources)!==null&&i!==void 0)||i),trackLongTasks:!!(!((a=t.trackLongTasks)!==null&&a!==void 0)||a),trackBfcacheViews:!!t.trackBfcacheViews,trackEarlyRequests:!!t.trackEarlyRequests,subdomain:t.subdomain,defaultPrivacyLevel:kn(Me,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:Me.MASK,enablePrivacyForActionName:!!t.enablePrivacyForActionName,traceContextInjection:kn($r,t.traceContextInjection)?t.traceContextInjection:$r.SAMPLED,plugins:t.plugins||[],trackFeatureFlagsForEvents:t.trackFeatureFlagsForEvents||[],profilingSampleRate:(c=t.profilingSampleRate)!==null&&c!==void 0?c:0,prop
12agateTraceBaggage:!!t.propagateTraceBaggage,allowedGraphQlUrls:d,...l}}function yg(t){if(t.allowedTracingUrls===void 0)return[];if(!Array.isArray(t.allowedTracingUrls)){A.error("Allowed Tracing URLs should be an array");return}if(t.allowedTracingUrls.length!==0&&t.service===void 0){A.error("Service needs to be configured when tracing is enabled");return}const e=[];return t.allowedTracingUrls.forEach(n=>{const r=_a(n);r?e.push(r):A.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),e}function vg(t){const e=new Set;return ve(t.allowedTracingUrls)&&t.allowedTracingUrls.forEach(n=>{var r;(r=_a(n))===null||r===void 0||r.propagatorTypes.forEach(o=>e.add(o))}),Array.from(e)}function _a(t){if(Ln(t))return{match:t,propagatorTypes:Fo};if(Ie(t)&&Ln(t.match)&&(t.propagatorTypes===null||t.propagatorTypes===void 0||Array.isArray(t.propagatorTypes)))return{match:t.match,propagatorTypes:t.propagatorTypes||Fo}}function Sg(t){if(!t.allowedGraphQlUrls)return[];if(!Array.isArray(t.allowedGraphQlUrls))return A.warn("allowedGraphQlUrls should be an array"),[];const e=[];
12return t.allowedGraphQlUrls.forEach(n=>{Ln(n)?e.push({match:n,trackPayload:!1,trackResponseErrors:!1}):Ie(n)&&Ln(n.match)&&e.push({match:n.match,trackPayload:!!n.trackPayload,trackResponseErrors:!!n.trackResponseErrors})}),e}function Eg(t){return ve(t)&&t.some(e=>Ie(e)&&e.trackPayload)}function Tg(t){return ve(t)&&t.some(e=>Ie(e)&&e.trackResponseErrors)}function wg(t){var e;const n=Ei(t);return{session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,trace_context_injection:t.traceContextInjection,propagate_trace_baggage:t.propagateTraceBaggage,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:ve(t.allowedTracingUrls),use_allowed_graph_ql_urls:ve(t.allowedGraphQlUrls),use_track_graph_ql_payload:Eg(t.allowedGraphQlUrls),use_track_graph_ql_response_errors:Tg(t.allowedGraphQlUrls),selected_tracing_propagators:vg(t),default_privacy_level:t.defaultPrivacyLevel,enable_privacy_for_action_name:t.enablePrivacyForActionName,use_excluded_activity_urls:ve(t.excludedActivityUrls),use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks,track_bfcache_views:t.trackBfcacheViews,track_early_requests:t.trackEarlyRequests,plugins:(e=t.plugins)===null||e===void 0?void 0:e.map(r=>{var o;return{name:r.name,...(o=r.getConfigurationTelemetry)===null||o===void 0?void 0:o.call(r)}}),track_feature_flags_for_events:t.trackFeatureFlagsForEvents,remote_configuration_id:t.remoteConfigurationId,profiling_sample_rate:t.profilingSampleRate,use_remote_configuration_proxy:!!t.remoteConfigurationProxy,...n}}function Cg(t){const e=[];let n=0,r;const o={quote:void 0,escapeSequence:void 0};let s="";for(const i of t){if(r=Ho[n].find(a=>xg[a](i,o)),!r)return[];if(o.escapeSequence!==void 0&&r!==12){if(!Pg(o.escapeSequence))return[];s+=Mg(o.escapeSequence),o.escapeSequence=void 0}Ng.includes(r)?s+=i:Lg.includes(r)&&s!==""?(e.push(s),s=""):r===12?o.escapeSequence=o.escapeSequence?`${o.escapeSequence}${i}`:i:r===8?o.quote=i:r===9&&(o.quote=void 0),n=r}return Ho[n].includes(1)?(s!==""&&e.push(s),e):[]}const Og=/[a-zA-Z_$]/,Ag=/[a-zA-Z0-9_$]/,Ig=/[0-9]/,Rg=/[a-fA-F0-9]/,kg=`'"`,xg={0:()=>!1,1:()=>!1,2:t=>Og.test(t),3:t=>Ag.test(t),4:t=>t===".",5:t=>t==="[",6:t=>t==="]",7:t=>Ig.test(t),8:t=>kg.includes(t),9:(t,e)=>t===e.quote,10:()=>!0,11:t=>t==="\\",12:(t,e)=>e.escapeSequence===void 0?`${e.quote}/\\bfnrtu`.includes(t):e.escapeSequence.startsWith("u")&&e.escapeSequence.length<5?Rg.test(t):!1},Ho={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]},Ng=[2,3,7,10],Lg=[4,5,6];function Pg(t){return`"'/\\bfnrt`.includes(t)||t.startsWith("u")&&t.length===5}const Dg={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:`
13`,r:"\r",t:"	"};function Mg(t){return t.startsWith("u")?String.fromCharCode(parseInt(t.slice(1),16)):Dg[t]}const $g="v1",Ug=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function Bg(t,e){let n;const r=Fg(),o=await zg(t);return o.ok?(r.increment("fetch","success"),n=Vg(t,o.value,e,r)):(r.increment("fetch","failure"),A.error(o.error)),tr("remote configuration metrics",{metrics:r.get()}),n}function Vg(t,e,n,r){const o={...t};return Ug.forEach(p=>{p in e&&(o[p]=s(e[p]))}),Object.keys(n).forEach(p=>{e[p]!==void 0&&i(n[p],e[p])}),o;function s(p){if(Array.isArray(p))return p.map(s);if(Ie(p)){if(Hg(p)){const m=p.rcSerializedType;switch(m){case"string":return p.value;case"regex":return ha(p.value);case"dynamic":return a(p);default:A.error(`Unsupported remote configuration: "rcSerializedType": "${m}"`);return}}return js(p,s)}return p}function i(p,m){m.forEach(({key:g,value:h})=>{p.setContextProperty(g,s(h))})}function a(p){const m=p.strategy;let g;switch(m){case"cookie":g=c(p);break;case"dom":g=l(p);break;case"js":g=f(p);break;case"localStorage":g=u(p);break;default:A.error(`Unsupported remote configuration: "strategy": "${m}"`);return}
13const h=p.extractor;return h!==void 0&&typeof g=="string"?Gg(h,g):g}function c({name:p}){const m=Xn(p);return r.increment("cookie",m!==void 0?"success":"missing"),m}function u({key:p}){let m;try{m=localStorage.getItem(p)}catch{r.increment("localStorage","failure");return}return r.increment("localStorage",m!==null?"success":"missing"),m??void 0}function l({selector:p,attribute:m}){let g;try{g=document.querySelector(p)}catch{A.error(`Invalid selector in the remote configuration: '${p}'`),r.increment("dom","failure");return}if(!g){r.increment("dom","missing");return}if(d(g,m)){A.error(`Forbidden element selected by the remote configuration: '${p}'`),r.increment("dom","failure");return}const h=m!==void 0?g.getAttribute(m):g.textContent;if(h===null){r.increment("dom","missing");return}return r.increment("dom","success"),h}function d(p,m){return p.getAttribute("type")==="password"&&m==="value"}function f({path:p}){let m=window;const g=Cg(p);if(g.length===0){A.error(`Invalid JSON path in the remote configuration: '${p}'`),r.increment("js","failure");return}for(const h of g){if(!(h in m)){r.increment("js","missing");return}try{m=m[h]}catch(b){A.error(`Error accessing: '${p}'`,b),r.increment("js","failure");return}}return r.increment("js","success"),m}}function Fg(){const t={fetch:{}};return{get:()=>t,increment:(e,n)=>{t[e]||(t[e]={}),t[e][n]||(t[e][n]=0),t[e][n]=t[e][n]+1}}}function Hg(t){return"rcSerializedType"in t}function ha(t){try{return new RegExp(t)}catch{A.error(`Invalid regex in the remote configuration: '${t}'`)}}function Gg(t,e){const n=ha(t.value);if(n===void 0)return;const r=n.exec(e);if(r===null)return;const[o,s]=r;return s||o}async function zg(t){let e;try{e=await Bi(Wg(t))}catch{e=void 0}if(!e||!e.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};const n=await e.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:new Error("No remote configuration for RUM.")}}function Wg(t){return t.remoteConfigurationProxy?t.remoteConfigurationProxy:`https://sdk-configuration.${yi("rum",t)}/${$g}/${encodeURIComponent(t.remoteConfigurationId)}.json`}function Xg({ignoreInitIfSyntheticsWillInjectRum:t=!0,startDeflateWorker:e},n,r,o){const s=ca(),i=lo();wr(i,M.globalContext,s);const a=fo();wr(a,M.userContext,s);const c=uo();wr(c,M.accountContext,s);let u,l,d,f,p;const m=hg(),g=n.observable.subscribe(b),h={};function b(){if(!d||!f||!n.isGranted())return;p||(p=Ji("browser-rum-sdk",f,m)),g.unsubscribe();let _;if(f.trackViewsManually){if(!u)return;s.remove(u.callback),_=u.options}const E=o(f,l,_,p,m);s.drain(E)}function I(_,E){const L=Xt();if(L&&(_=Kg(_)),d=_,Qi(wg(_)),f){Jn("DD_RUM",_);return}const X=bg(_,E);if(X){if(!L&&!X.sessionStoreStrategyType){A.warn("No storage available for session. We will not send any data.");return}X.compressIntakeRequests&&!L&&e&&(l=e(X,"Datadog RUM",z),!l)||(f=X,rr().subscribe(z),n.tryToInit(X.trackingConsent),b())}}const H=_=>{s.add(E=>E.addDurationVital(_))};return{init(_,E,L){if(!_){A.error("Missing configuration");return}Ti(_.enableExperimentalFeatures),d=_,!(t&&nr())&&(ga(_.plugins,"onInit",{initConfiguration:_,publicApi:E}),_.remoteConfigurationId?Bg(_,{user:a,context:i}).then(X=>{X&&I(X,L)}).catch(Ce):I(_,L))},get initConfiguration(){return d},getInternalContext:z,stopSession:z,addTiming(_,E=et()){s.add(L=>L.addTiming(_,E))},setLoadingTime:(_=>{s.add(E=>E.setLoadingTime(_))}),startView(_,E=Y()){const L=X=>{X.startView(_,E)};s.add(L),u||(u={options:_,callback:L},b())},setViewName(_){s.add(E=>E.setViewName(_))},setViewContext(_){s.add(E=>E.setViewContext(_))},setViewContextProperty(_,E){s.add(L=>L.setViewContextProperty(_,E))},getViewContext:()=>h,globalContext:i,userContext:a,accountContext:c,addAction(_){s.add(E=>E.addAction(_))},startAction(_,E){const L=Y();s.add(X=>X.startAction(_,E,L))},stopAction(_,E){const L=Y();s.add(X=>X.stopAction(_,E,L))},startResource(_,E){const L=Y();s.add(X=>X.startResource(_,E,L))},stopResource(_,E){const L=Y();s.add(X=>X.stopResource(_,E,L))},addError(_){s.add(E=>E.addError(_))},addFeatureFlagEvaluation(_,E){s.add(L=>L.addFeatureFlagEvaluation(_,E))},startDurationVital(_,E){return pa(r,_,E)},stopDurationVital(_,E){ma(H,r,_,E)}
13,addDurationVital:H,addOperationStepVital:(_,E,L,X)=>{s.add(Bt=>Bt.addOperationStepVital(k(_),E,k(L),k(X)))}}}function Kg(t){var e,n;return{...t,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(e=t.defaultPrivacyLevel)!==null&&e!==void 0?e:(n=Ye())===null||n===void 0?void 0:n.getPrivacyLevel()}}function wr(t,e,n){t.changeObservable.subscribe(()=>{const r=t.getContext();n.add(o=>o[e].setContext(r))})}function jg(){const t=qg();return new $(e=>{if(!t)return;const n=new t(O(r=>e.notify(r)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function qg(){let t;const e=window;if(e.Zone&&(t=zt(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){const n=new e.MutationObserver(z),r=zt(n,"originalInstance");t=r&&r.constructor}return t||(t=e.MutationObserver),t}function Yg(){const t=new $,{stop:e}=Ut(window,"open",()=>t.notify());return{observable:t,stop:e}}function Jg(t,e,n,r,o){return{get:s=>{const i=n.findView(s),a=o.findUrl(s),c=e.findTrackedSession(s);if(c&&i&&a){const u=r.findActionId(s);return{application_id:t,session_id:c.id,user_action:u?{id:u}:void 0,view:{id:i.id,name:i.name,referrer:a.referrer,url:a.url}}}}}}const Qg=oa,Zg=Ae;function t_(t){const e=Qe({expireDelay:Zg});t.subscribe(1,r=>{e.add(n(r),r.startClocks.relative)}),t.subscribe(6,({endClocks:r})=>{e.closeActive(r.relative)}),t.subscribe(3,r=>{const o=e.find(r.startClocks.relative);o&&(r.name&&(o.name=r.name),r.context&&(o.context=r.context),o.sessionIsActive=r.sessionIsActive)}),t.subscribe(10,()=>{e.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=>e.find(r),stop:()=>{e.stop()}}}const ba="initial_document",e_=[[_t.DOCUMENT,t=>ba===t],[_t.XHR,t=>t==="xmlhttprequest"],[_t.FETCH,t=>t==="fetch"],[_t.BEACON,t=>t==="beacon"],[_t.CSS,(t,e)=>/\.css$/i.test(e)],[_t.JS,(t,e)=>/\.js$/i.test(e)],[_t.IMAGE,(t,e)=>["image","img","icon"].includes(t)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)!==null],[_t.FONT,(t,e)=>/\.(woff|eot|woff2|ttf)$/i.exec(e)!==null],[_t.MEDIA,(t,e)=>["audio","video"].includes(t)||/\.(mp3|mp4)$/i.exec(e)!==null]];function n_(t){const e=t.name;if(!gf(e))return _t.OTHER;const n=_f(e);for(const[r,o]of e_)if(o(t.initiatorType,n))return r;return _t.OTHER}function Go(...t){for(let e=1;e<t.length;e+=1)if(t[e-1]>t[e])return!1;return!0}function ya(t){return t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch"}function r_(t){const{duration:e,startTime:n,responseEnd:r}=t;return e===0&&n<r?J(n,r):e}function o_(t){if(!Sa(t))return;const{startTime:e,fetchStart:n,workerStart:r,redirectStart:o,redirectEnd:s,domainLookupStart:i,domainLookupEnd:a,connectStart:c,secureConnectionStart:u,connectEnd:l,requestStart:d,responseStart:f,responseEnd:p}=t,m={download:fe(e,f,p),first_byte:fe(e,d,f)};return 0<r&&r<n&&(m.worker=fe(e,r,n)),n<l&&(m.connect=fe(e,c,l),c<=u&&u<=l&&(m.ssl=fe(e,u,l))),n<a&&(m.dns=fe(e,i,a)),e<s&&(m.redirect=fe(e,o,s)),m}function va(t){return t.duration>=0}function Sa(t){const e=Go(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd),n=s_(t)?Go(t.startTime,t.redirectStart,t.redirectEnd,t.fetchStart):!0;return e&&n}function s_(t){return t.redirectEnd>t.startTime}function fe(t,e,n){if(t<=e&&e<=n)return{duration:w(J(e,n)),start:w(J(t,e))}}function i_(t){return t.nextHopProtocol===""?void 0:t.nextHopProtocol}function a_(t){return t.deliveryType===""?"other":t.deliveryType}function c_(t){if(t.startTime<t.responseStart){const{encodedBodySize:e,decodedBodySize:n,transferSize:r}=t;return{size:n,encoded_body_size:e,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function mo(t){return t&&(!vi(t)||Pt(Et.TRACK_INTAKE_REQUESTS))}const u_=/data:(.+)?(;base64)?,/g,l_=24e3;function Ea(t,e=l_){if(t.length<=e||!t.startsWith("data:"))return t;const n=t.substring(0,100).match(u_);return n?`${n[0]}[...]`:t}const zo=new Map;function Ta(t,e){if(e===100)return!0;
13if(e===0)return!1;const n=zo.get(e);if(n&&t===n.sessionId)return n.decision;let r;return window.BigInt?r=d_(BigInt(`0x${t.split("-")[4]}`),e):r=re(e),zo.set(e,{sessionId:t,decision:r}),r}function d_(t,e){const n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000"),o=t*n%r;return Number(o)<=e/100*Number(r)}function f_(){return Ca(64)}function wa(){return Ca(63)}function Ca(t){const e=crypto.getRandomValues(new Uint32Array(2));return t===63&&(e[e.length-1]>>>=1),{toString(n=10){let r=e[1],o=e[0],s="";do{const i=r%n*4294967296+o;r=Math.floor(r/n),o=Math.floor(i/n),s=(i%n).toString(n)+s}while(r||o);return s}}}function ke(t){return t.toString(16).padStart(16,"0")}function p_(t){t.status===0&&!t.isAborted&&(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function m_(t,e,n,r){return{clearTracingIfNeeded:p_,traceFetch:o=>Wo(t,o,e,n,r,s=>{var i;if(o.input instanceof Request&&!(!((i=o.init)===null||i===void 0)&&i.headers))o.input=new Request(o.input),Object.keys(s).forEach(a=>{o.input.headers.append(a,s[a])});else{o.init=Te(o.init);const a=[];o.init.headers instanceof Headers?o.init.headers.forEach((c,u)=>{a.push([u,c])}):Array.isArray(o.init.headers)?o.init.headers.forEach(c=>{a.push(c)}):o.init.headers&&Object.keys(o.init.headers).forEach(c=>{a.push([c,o.init.headers[c]])}),o.init.headers=a.concat(Kn(s))}}),traceXhr:(o,s)=>Wo(t,o,e,n,r,i=>
13{Object.keys(i).forEach(a=>{s.setRequestHeader(a,i[a])})})}}function Wo(t,e,n,r,o,s){const i=n.findTrackedSession();if(!i)return;const a=t.allowedTracingUrls.find(l=>qn([l.match],e.url,!0));if(!a)return;const c=Ta(i.id,t.traceSampleRate);(c||t.traceContextInjection===$r.ALL)&&(e.traceSampled=c,e.traceId=f_(),e.spanId=wa(),s(g_(e.traceId,e.spanId,e.traceSampled,i.id,a.propagatorTypes,r,o,t)))}function g_(t,e,n,r,o,s,i,a){const c={};if(o.forEach(u=>{switch(u){case"datadog":{Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":e.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":t.toString()});break}case"tracecontext":{Object.assign(c,{traceparent:`00-0000000000000000${ke(t)}-${ke(e)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break}case"b3":{Object.assign(c,{b3:`${ke(t)}-${ke(e)}-${n?"1":"0"}`});break}case"b3multi":{Object.assign(c,{"X-B3-TraceId":ke(t),"X-B3-SpanId":ke(e),"X-B3-Sampled":n?"1":"0"});break}}}),a.propagateTraceBaggage){const u={"session.id":r},l=s.getContext().id;typeof l=="string"&&(u["user.id"]=l);const d=i.getContext().id;typeof d=="string"&&(u["account.id"]=d);const f=Object.entries(u).map(([p,m])=>`${p}=${encodeURIComponent(m)}`).join(",");f&&(c.baggage=f)}return c}const __=32*qt;function h_(t,e){const n=y_(t,e.trackPayload);if(n){if(e.trackResponseErrors&&t.responseBody){const r=b_(t.responseBody);r&&(n.error_count=r.length,n.errors=r)}return n}}function b_(t){const e=Hn(t);if(!e||typeof e!="object")return;const n=e;return ve(n.errors)?n.errors.map(o=>{var s;return{message:o.message,path:o.path,locations:o.locations,code:(s=o.extensions)===null||s===void 0?void 0:s.code}}):void 0}function Oa(t,e){return e.allowedGraphQlUrls.find(n=>qn([n.match],t))}function y_(t,e=!1){let n;if(t.method==="POST"?n=v_(t.requestBody):t.method==="GET"&&(n=S_(t.url)),!!n)return E_(n,e)}function v_(t){if(!t||typeof t!="string")return;const e=Hn(t);if(e)return{query:e.query,operationName:e.operationName,variables:e.variables?JSON.stringify(e.variables):void 0}}function S_(t){const e=je(t).searchParams,n=e.get("variables"),r=n&&Hn(n)!==void 0?n:void 0;return{query:e.get("query")||void 0,operationName:e.get("operationName")||void 0,variables:r}}function E_(t,e){let n,r,o;if(t.query){const s=t.query.trim();n=T_(s),e&&(r=fn(s,__,"..."))}return t.variables&&(o=t.variables),{operationType:n,operationName:t.operationName,variables:o,payload:r}}function T_(t){var e;return(e=t.match(/^\s*(query|mutation|subscription)\b/i))===null||e===void 0?void 0:e[1]}let Xo=1;function w_(t,e,n,r,o){const s=m_(e,n,r,o);C_(t,e,s),O_(t,e,s)}function C_(t,e,n){const r=sa(e).subscribe(o=>{const s=o;if(mo(s.url))switch(s.state){case"start":n.traceXhr(s,s.xhr),s.requestIndex=Aa(),t.notify(7,{requestIndex:s.requestIndex,url:s.url});break;case"complete":n.clearTracingIfNeeded(s),t.notify(8,{...s,type:ie.XHR,isAbortedOnStart:!1});break}});return{stop:()=>r.unsubscribe()}}function O_(t,e,n){const r=rr({responseBodyAction:o=>{var s;return!((s=Oa(o.url,e))===null||s===void 0)&&s.trackResponseErrors?2:1}}).subscribe(o=>{var s;const i=o;if(mo(i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=Aa(),t.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":n.clearTracingIfNeeded(i),t.notify(8,{...i,duration:J(i.startClocks.timeStamp,et()),type:ie.FETCH,requestBody:(s=i.init)===null||s===void 0?void 0:s.body});break}});return{stop:()=>r.unsubscribe()}}function Aa(){const t=Xo;return Xo+=1,t}function Ia(t){return un(t)&&t<0?void 0:t}function Vr(t){return t.nodeType===Node.TEXT_NODE}function A_(t){return t.nodeType===Node.COMMENT_NODE}function Kt(t){return t.nodeType===Node.ELEMENT_NODE}function go(t){return Kt(t)&&!!t.shadowRoot}function _o(t){const e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Kt(e.host)}function GE(t){return t.childNodes.length>0||go(t)}function zE(t,e){let n=t.firstChild;for(;n;)e(n),n=n.nextSibling;go(t)&&e(t.shadowRoot)}function I_(t){return _o(t)?t.host:t.parentNode}function Ra(t){if(t.parentElement)return t.parentElement;const e=t.parentNode;return e&&_o(e)?e.host:null}function R_(t,e){const n=vt();let r=!1;const{stop:o}=se(t,window,["click","mousedown","keydown","touchstart","pointerdown"],a=>{if(!a.cancelable)return;const c={entryType:"first-input",processingStart:Ct(),processingEnd:Ct(),startTime:a.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};a.type==="pointerdown"?s(t,c):i(c)},{passive:!0,capture:!0});return{stop:o};function s(a,c){se(a,window,["pointerup","pointercancel"],u=>{u.type==="pointerup"&&i(c)},{once:!0})}function i(a){if(!r){r=!0,o();const c=a.processingStart-a.startTime;c>=0&&c<vt()-n&&e(a)}}}var F;(function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.LONG_ANIMATION_FRAME="long-animation-frame",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource",t.VISIBILITY_STATE="visibility-state"})(F||(F={}));function jt(t,e){return new $(n=>{if(!window.PerformanceObserver)return;const r=c=>{const u=N_(c);u.length>0&&n.notify(u)};let o,s=!0;const i=new PerformanceObserver(O(c=>{s?o=ht(()=>r(c.getEntries())):r(c.getEntries())}));try{i.observe(e)}catch{if([F.RESOURCE,F.NAVIGATION,F.LONG_TASK,F.PAINT].includes(e.type)){e.buffered&&(o=ht(()=>r(performance.getEntriesByType(e.type))));try{i.observe({entryTypes:[e.type]})}catch{return}}}s=!1,k_(t);let a;
13return!le(F.FIRST_INPUT)&&e.type===F.FIRST_INPUT&&({stop:a}=R_(t,c=>{r([c])})),()=>{i.disconnect(),a&&a(),Rt(o)}})}let en;function k_(t){return!en&&x_()&&"addEventListener"in performance&&(en=st(t,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),()=>{en?.stop()}}function x_(){return window.performance!==void 0&&"getEntries"in performance}function le(t){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(t)}function N_(t){return t.filter(e=>!L_(e))}function L_(t){return t.entryType===F.RESOURCE&&(!mo(t.name)||!va(t))}const ka=100,P_=100,Ko="data-dd-excluded-activity-mutations";function ho(t,e,n,r,o,s){const i=D_(t,e,n,r);let a,c=!1;const u=ht(O(()=>p({hadActivity:!1})),ka),l=s!==void 0?ht(O(()=>p({hadActivity:!0,end:et()})),s):void 0,d=i.subscribe(({isBusy:m})=>{Rt(u),Rt(a);const g=et();m||(a=ht(O(()=>p({hadActivity:!0,end:g})),P_))}),f=()=>{c=!0,Rt(u),Rt(a),Rt(l),d.unsubscribe()};function p(m){c||(f(),o(m))}return{stop:f}}function D_(t,e,n,r){return new $(o=>{const s=[];let i,a=0;return s.push(e.subscribe(u=>{u.every(M_)||c()}),n.subscribe(c),jt(r,{type:F.RESOURCE}).subscribe(u=>{u.some(l=>!Cr(r,l.name))&&c()}),t.subscribe(7,u=>{Cr(r,u.url)||(i===void 0&&(i=u.requestIndex),a+=1,c())}),t.subscribe(8,u=>{Cr(r,u.url)||i===void 0||u.requestIndex<i||(a-=1,c())})),()=>{s.forEach(u=>u.unsubscribe())};function c(){o.notify({isBusy:a>0})}})}function Cr(t,e){return qn(t.excludedActivityUrls,e)}function M_(t){const e=t.type==="characterData"?t.target.parentElement:t.target;return!!(e&&Kt(e)&&e.matches(`[${Ko}], [${Ko}] *`))}const or="data-dd-action-name",xa="Masked Element",$_="::shadow ",bo=[or,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],U_=[Pa,Na],B_=[Pa,H_,La];function _n(t,e){if(!t.isConnected)return;const n=V_(t),r=[];for(const{rootNode:o,target:s}of n){const i=F_(s,o,e);if(!i)return;r.push(i)}return r.join($_)}function V_(t){const e=[];let n=t;for(;n;){const r=n.getRootNode();if(e.push({rootNode:r,target:n}),_o(r))n=r.host;else break}return e.reverse()}function F_(t,e,n){let r,o=t;for(;o&&o.nodeName!=="HTML";){const s=jo(o,e,U_,z_,n,r);if(s)return Dn(s,r);const a=jo(o,e,B_,W_,n,r)||G_(o);r=Dn(a,r),o=o.parentElement}return r}function yo(t){return/[0-9]/.test(t)}function Na(t){if(t.id&&!yo(t.id))return`#${CSS.escape(t.id)}`}function H_(t){if(t.tagName==="BODY")return;const e=t.classList;for(let n=0;n<e.length;n+=1){const r=e[n];if(!yo(r))return`${CSS.escape(t.tagName)}.${CSS.escape(r)}`}}function La(t){return CSS.escape(t.tagName)}function Pa(t,e){if(e){const r=n(e);if(r)return r}for(const r of bo){const o=n(r);if(o)return o}function n(r){if(t.hasAttribute(r))return`${CSS.escape(t.tagName)}${Da(r,t.getAttribute(r))}`}}function Da(t,e){return`[${t}="${CSS.escape(e)}"]`}function G_(t){const e=Ma(t);return`${CSS.escape(t.tagName)}:nth-of-type(${e})`}function Ma(t){let n=t.parentNode.firstElementChild,r=1;for(;n&&n!==t;)n.tagName===t.tagName&&(r+=1),n=n.nextElementSibling;return r}function jo(t,e,n,r,o,s){for(const i of n){const a=i(t,o);if(a&&r(t,e,a,s))return a}}function z_(t,e,n,r){return e.querySelectorAll(Dn(n,r)).length===1}function W_(t,e,n,r){let o;if(r===void 0)o=i=>i.matches(n);else{const i=Dn(`${n}:scope`,r);o=a=>a.querySelector(i)!==null}let s=t.previousElementSibling;for(;s;){if(o(s))return!1;s=s.previousElementSibling}for(s=t.nextElementSibling;s;){if(o(s))return!1;s=s.nextElementSibling}return!0}function Dn(t,e){return e?`${t}>${e}`:t}const P={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Me.ALLOW,MASK:Me.MASK,MASK_USER_INPUT:Me.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:Me.MASK_UNLESS_ALLOWLISTED},$a="data-dd-privacy",WE="hidden",X_="dd-privacy-",Or="***",XE="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",K_={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},j_="x";function be(t){return`[${$a}="${t}"], .${X_}${t}`}function sr(t,e,n){if(n&&n.has(t))return n.get(t);const r=I_(t),o=r?sr(r,e,n):e,s=Y_(t),i=q_(s,o);return n&&n.set(t,i),i}function q_(t,e){switch(e){case P.HIDDEN:case P.IGNORE:return e}switch(t){case P.ALLOW:case P.MASK:case P.MASK_USER_INPUT:case P.MASK_UNLESS_ALLOWLISTED:case P.HIDDEN:case P.IGNORE:return t;default:return e}}function Y_(t){if(Kt(t)){if(t.tagName==="BASE")return P.ALLOW;if(t.tagName==="INPUT"){const e=t;if(e.type==="password"||e.type==="email"||e.type==="tel"||e.type==="hidden")return P.MASK;const n=e.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return P.MASK}if(t.matches(be(P.HIDDEN)))return P.HIDDEN;if(t.matches(be(P.MASK)))return P.MASK;if(t.matches(be(P.MASK_UNLESS_ALLOWLISTED)))return P.MASK_UNLESS_ALLOWLISTED;if(t.matches(be(P.MASK_USER_INPUT)))return P.MASK_USER_INPUT;if(t.matches(be(P.ALLOW)))return P.ALLOW;if(Q_(t))return P.IGNORE}}function Ua(t,e){switch(e){case P.MASK:case P.HIDDEN:case P.IGNORE:return!0;case P.MASK_UNLESS_ALLOWLISTED:return Vr(t)?Sn(t.parentNode)?!0:!Va(t.textContent||""):Sn(t);case P.MASK_USER_INPUT:return Vr(t)?Sn(t.parentNode):Sn(t);default:return!1}}function J_(t,e,n,r,o){if(r!==P.MASK&&r!==P.MASK_UNLESS_ALLOWLISTED||e===$a||bo.includes(e)||e===o.actionNameAttribute)return!1;switch(e){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!(t==="A"&&e==="href"||t==="IFRAME"&&e==="srcdoc"||n&&e.startsWith("data-")||(t==="IMG"||t==="SOURCE")&&(e==="src"||e==="srcset"))}
13function Sn(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;const e=t;if(e.tagName==="INPUT")switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!K_[e.tagName]}const Ba=t=>t.replace(/\S/g,j_);function KE(t,e){var n;const r=(n=t.parentElement)===null||n===void 0?void 0:n.tagName;let o=t.textContent||"";if(r==="HEAD"&&!o.trim())return;const i=e;if(r==="SCRIPT")o=Or;else if(i===P.HIDDEN)o=Or;else if(Ua(t,i))if(r==="DATALIST"||r==="SELECT"||r==="OPTGROUP"){if(!o.trim())return}else r==="OPTION"?o=Or:i===P.MASK_UNLESS_ALLOWLISTED?o=Fa(o):o=Ba(o);return o}function Q_(t){if(t.nodeName==="SCRIPT")return!0;if(t.nodeName==="LINK"){const n=e("rel");return/preload|prefetch/i.test(n)&&e("as")==="script"||n==="shortcut icon"||n==="icon"}if(t.nodeName==="META"){const n=e("name"),r=e("rel"),o=e("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(o)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||t.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(o)||/^product:/.test(o)||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 e(n){return(t.getAttribute(n)||"").toLowerCase()}return!1}function Va(t){var e;return!t||!t.trim()?!0:((e=window.$DD_ALLOW)===null||e===void 0?void 0:e.has(t.toLocaleLowerCase()))||!1}function Fa(t,e){return Va(t)?t:e||Ba(t)}function Ha({lifeCycle:t,isChildEvent:e,onChange:n=z}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=t.subscribe(13,s=>{var i;if(!(s.type==="view"||s.type==="vital"||!e(s)))switch(s.type){case R.ERROR:r.errorCount+=1,n();break;case R.ACTION:r.actionCount+=1,s.action.frustration&&(r.frustrationCount+=s.action.frustration.type.length),n();break;case R.LONG_TASK:r.longTaskCount+=1,n();break;case R.RESOURCE:!((i=s._dd)===null||i===void 0)&&i.discarded||(r.resourceCount+=1,n());break}});return{stop:()=>{o.unsubscribe()},eventCounts:r}}const Z_=5*St;function vo(t){const e=Qe({expireDelay:Z_}),n=new Map;function r(f){var p;n.delete(f.key),(p=f.eventCounts)===null||p===void 0||p.stop()}function o(){n.forEach(f=>{r(f)}),e.reset()}const s=t.subscribe(10,o);function i(f,p,m,g){const h=ft(),b=e.add(h,p.relative),I=n.get(f);I&&r(I);const H=g?.isChildEvent?Ha({lifeCycle:t,isChildEvent:g.isChildEvent(h)}):void 0,D={id:h,key:f,startClocks:p,data:m,historyEntry:b,eventCounts:H};return n.set(f,D),D}function a(f,p,m){var g;const h=n.get(f);if(!h)return;const b=m?Nt(h.data,m):h.data;h.historyEntry.close(p.relative);const I=J(h.startClocks.timeStamp,p.timeStamp),H=(g=h.eventCounts)===null||g===void 0?void 0:g.eventCounts;return r(h),{...b,id:h.id,startClocks:h.startClocks,duration:I,counts:H}}function c(f){var p;const m=n.get(f);if(!m)return;const g=(p=m.eventCounts)===null||p===void 0?void 0:p.eventCounts;return r(m),m.historyEntry.remove(),{...m.data,id:m.id,startClocks:m.startClocks,counts:g}}function u(f){return e.findAll(f)}function l(f){var p,m;return(m=(p=n.get(f))===null||p===void 0?void 0:p.eventCounts)===null||m===void 0?void 0:m.eventCounts}function d(){s.unsubscribe(),o(),e.stop()}return{start:i,stop:a,discard:c,getCounts:l,findId:u,stopAll:d}}const th=["HTML","BODY"],qo=2*qt,Yo=bo.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]);function eh(t,e){const n=t.filter(s=>s instanceof Element&&!th.includes(s.tagName));if(n.length===0)return"";const r=e?[e].concat(Yo):Yo;let o="";for(const s of n){const i=nh(s,r);if(o+=i,o.length>=qo)return fn(o,qo)}return o}function nh(t,e){const n=La(t),r=Na(t),o=rh(t),s=sh(t,e),i=oh(t);return`${n}${r||""}${s}${o}${i};`}function rh(t){return Array.from(t.classList).filter(e=>!yo(e)).sort().map(e=>`.${CSS.escape(e)}`).join("")}function oh(t){const e=Array.from(t.parentNode.children);if(e.length<=1)return"";const n=e.filter(s=>s.tagName===t.tagName),r=e.indexOf(t),o=Ma(t);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${o})`:""}`}function sh(t,e){const n=[],r=Array.from(t.attributes);for(const o of r)e.includes(o.name)&&n.push(Da(o.name,o.value));return n.sort().join("")}const Ga=bt,ih=100;function ah(t,e){const n=[];let r=0,o;s(t);function s(c){c.stopObservable.subscribe(i),n.push(c),Rt(o),o=ht(a,Ga)}function i(){r===1&&n.every(c=>c.isStopped())&&(r=2,e(n))}function a(){Rt(o),r===0&&(r=1,i())}return{tryAppend:c=>r!==0?!1:n.length>0&&!ch(n[n.length-1].event,c.event)?(a(),!1):(s(c),!0),stop:()=>{a()}}}function ch(t,e){return t.target===e.target&&uh(t,e)<=ih&&t.timeStamp-e.timeStamp<=Ga}function uh(t,e){return Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2))}function lh(t,e,n=P.ALLOW){const r=new Map,{actionNameAttribute:o}=e,s=Jo(t,or)||o&&Jo(t,o);return s?{name:s,nameSource:"custom_attribute"}:n===P.MASK?{name:xa,nameSource:"mask_placeholder"}:Qo(t,fh,e,r)||Qo(t,ph,e,r)||{name:"",nameSource:"blank"}}function Jo(t,e){const n=dh(t,`[${e}]`);if(!n)return;const r=n.getAttribute(e);return Wa(za(r.trim()))}function dh(t,e){let n=t;for(;n;){if(n.matches(e))return n;n=Ra(n)}return null}const fh=[(t,e,n)=>{if("labels"in t&&t.labels&&t.labels.length>0)return In(t.labels[0],e,n)},t=>
13{if(t.nodeName==="INPUT"){const e=t,n=e.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:e.value,nameSource:"text_content"}}},(t,e,n)=>{if(t.nodeName==="BUTTON"||t.nodeName==="LABEL"||t.getAttribute("role")==="button")return In(t,e,n)},(t,e,n)=>nn(t,"aria-label",e,n),(t,e,n)=>{const r=t.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(o=>gh(t,o)).filter(o=>!!o).map(o=>Xa(o,e,n)).join(" "),nameSource:"text_content"}},(t,e,n)=>nn(t,"alt",e,n),(t,e,n)=>nn(t,"name",e,n),(t,e,n)=>nn(t,"title",e,n),(t,e,n)=>nn(t,"placeholder",e,n),(t,e,n)=>{if("options"in t&&t.options.length>0)return In(t.options[0],e,n)}],ph=[(t,e,n)=>In(t,e,n)],mh=10;function Qo(t,e,n,r){let o=t,s=0;for(;s<=mh&&o&&o.nodeName!=="BODY"&&o.nodeName!=="HTML"&&o.nodeName!=="HEAD";){for(const i of e){const a=i(o,n,r);if(a){const{name:c,nameSource:u}=a,l=c&&c.trim();if(l)return{name:Wa(za(l)),nameSource:u}}}if(o.nodeName==="FORM")break;o=Ra(o),s+=1}}function za(t){return t.replace(/\s+/g," ")}function Wa(t){return t.length>100?`${fn(t,100)} [...]`:t}function gh(t,e){const n=t.getRootNode();if(n instanceof ShadowRoot){const r=n.getElementById(e);if(r)return r}return t.ownerDocument?t.ownerDocument.getElementById(e):null}function nn(t,e,n,r){const{enablePrivacyForActionName:o,defaultPrivacyLevel:s}=n;let i=t.getAttribute(e);if(i&&o){const a=sr(t,s,r);J_(t.tagName,e,i,a,n)&&(i=Fa(i,xa))}else i||(i="");return{name:i,nameSource:"standard_attribute"}}function In(t,e,n){return{name:Xa(t,e,n)||"",nameSource:"text_content"}}function Xa(t,e,n){if(t.isContentEditable)return;const{enablePrivacyForActionName:r,actionNameAttribute:o,defaultPrivacyLevel:s}=e;if(Pt(Et.USE_TREE_WALKER_FOR_ACTION_NAME))return _h(t,o,r,s,n);if("innerText"in t){let i=t.innerText;const a=c=>{const u=t.querySelectorAll(c);for(let l=0;l<u.length;l+=1){const d=u[l];if("innerText"in d){const f=d.innerText;f&&f.trim().length>0&&(i=i.replace(f,""))}}};return a(`[${or}]`),o&&a(`[${o}]`),r&&a(`${be(P.HIDDEN)}, ${be(P.MASK)}`),i}return t.textContent}function _h(t,e,n,r,o){const s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,a);let i="";for(;s.nextNode();){const c=s.currentNode;if(Kt(c)){(c.nodeName==="BR"||c.nodeName==="P"||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(c).display))&&(i+=" ");continue}i+=c.textContent||""}return i.replace(/\s+/g," ").trim();function a(c){const u=sr(c,r,o);if(n&&u&&Ua(c,u))return NodeFilter.FILTER_REJECT;if(Kt(c)){if(c.hasAttribute(or)||e&&c.hasAttribute(e))return NodeFilter.FILTER_REJECT;const l=getComputedStyle(c);if(l.visibility!=="visible"||l.display==="none"||l.contentVisibility&&l.contentVisibility!=="visible")return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}}function hh(t,{onPointerDown:e,onPointerUp:n}){let r,o={selection:!1,input:!1,scroll:!1},s;const i=[st(t,window,"pointerdown",a=>{ts(a)&&(r=Zo(),o={selection:!1,input:!1,scroll:!1},s=e(a))},{capture:!0}),st(t,window,"selectionchange",()=>{(!r||!Zo())&&(o.selection=!0)},{capture:!0}),st(t,window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),st(t,window,"pointerup",a=>{if(ts(a)&&s){const c=o;n(s,a,()=>c),s=void 0}},{capture:!0}),st(t,window,"input",()=>{o.input=!0},{capture:!0})];return{stop:()=>{i.forEach(a=>a.stop())}}}function Zo(){const t=window.getSelection();return!t||t.isCollapsed}function ts(t){return t.target instanceof Element&&t.isPrimary!==!1}const es=3;function bh(t,e){if(yh(t))return e.addFrustration(Pe.RAGE_CLICK),t.some(ns)&&e.addFrustration(Pe.DEAD_CLICK),e.hasError&&e.addFrustration(Pe.ERROR_CLICK),{isRage:!0};const n=t.some(r=>r.getUserActivity().selection);return t.forEach(r=>{r.hasError&&r.addFrustration(Pe.ERROR_CLICK),ns(r)&&!n&&r.addFrustration(Pe.DEAD_CLICK)}),{isRage:!1}}function yh(t){if(t.some(e=>e.getUserActivity().selection||e.getUserActivity().scroll))return!1;for(let e=0;e<t.length-(es-1);e+=1)if(t[e+es-1].event.timeStamp-t[e].event.timeStamp<=bt)return!0;return!1}const vh='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function ns(t){if(t.hasPageActivity||t.getUserActivity().input||t.getUserActivity().scroll)return!1;let e=t.event.target;return e.tagName==="LABEL"&&e.hasAttribute("for")&&(e=document.getElementById(e.getAttribute("for"))),!e||!e.matches(vh)}const Ka=10*bt,sn=new Map;function Sh(t){const e=sn.get(t);return sn.delete(t),e}function ja(t,e){sn.set(t,e),sn.forEach((n,r)=>{J(r,Ct())>Ka&&sn.delete(r)})}function qa(t){return e=>e.action!==void 0&&e.action.id!==void 0&&e.action.id.includes(t)}function Eh(t,e,n,r){const o=vo(t),s=new $;let i;t.subscribe(5,u),t.subscribe(11,u);const{stop:a}=hh(r,{onPointerDown:l=>Th(r,t,e,l,n),onPointerUp:({clickActionBase:l,hadActivityOnPointerDown:d},f,p)=>{wh(r,t,e,n,o,s,c,l,f,p,d)}});return{stop:()=>{u(),s.notify(),a(),o.stopAll()},findActionId:o.findId};function c(l){if(!i||!i.tryAppend(l)){const d=l.clone();i=ah(l,f=>{Oh(f,d),i=void 0})}}function u(){i&&i.stop()}}function Th(t,e,n,r,o){const s=t.betaTrackActionsInShadowDom?Ya(r):r.target;let i;
13if(t.enablePrivacyForActionName?i=sr(s,t.defaultPrivacyLevel):i=P.ALLOW,i===P.HIDDEN)return;const a=Ch(r,i,t);let c=!1;return ho(e,n,o,t,u=>{c=u.hadActivity},ka),{clickActionBase:a,hadActivityOnPointerDown:()=>c}}function wh(t,e,n,r,o,s,i,a,c,u,l){var d;const f=Ja(e,o,u,a,c);i(f);const p=(d=a?.target)===null||d===void 0?void 0:d.selector;p&&ja(c.timeStamp,p);const{stop:m}=ho(e,n,r,t,I=>{I.hadActivity&&I.end<f.startClocks.timeStamp?f.discard():I.hadActivity?f.stop(I.end):l()?f.stop(f.startClocks.timeStamp):f.stop()},Ka),g=e.subscribe(5,({endClocks:I})=>{f.stop(I.timeStamp)}),h=e.subscribe(11,()=>{f.stop(et())}),b=s.subscribe(()=>{f.stop()});f.stopObservable.subscribe(()=>{h.unsubscribe(),g.unsubscribe(),m(),b.unsubscribe()})}function Ch(t,e,n){const r=n.betaTrackActionsInShadowDom?Ya(t):t.target,o=r.getBoundingClientRect(),s=_n(r,n.actionNameAttribute),i=Pt(Et.COMPOSED_PATH_SELECTOR)&&typeof t.composedPath=="function"?eh(t.composedPath(),n.actionNameAttribute):void 0;s&&ja(t.timeStamp,s);const{name:a,nameSource:c}=lh(r,n,e);return{type:po.CLICK,target:{width:Math.round(o.width),height:Math.round(o.height),selector:s,composedPathSelector:i||void 0},position:{x:Math.round(t.clientX-o.left),y:Math.round(t.clientY-o.top)},name:a,nameSource:c}}function Ya(t){if(t.composed&&go(t.target)&&typeof t.composedPath=="function"){const e=t.composedPath();if(e.length>0&&e[0]instanceof Element)return e[0]}return t.target}function Ja(t,e,n,r,o){const s=ft(),i=ln(o.timeStamp),a=e.start(s,i,r,{isChildEvent:qa});t.notify(15,a);let c=0,u;const l=[],d=new $;function f(p){c===0&&(c=1,u=p?e.stop(s,ti(p)):e.discard(s),d.notify())}return{event:o,stop:f,stopObservable:d,get hasError(){var p;const m=(p=u?.counts)!==null&&p!==void 0?p:e.getCounts(s);return m?m.errorCount>0:!1},get hasPageActivity(){return u&&"duration"in u},getUserActivity:n,addFrustration:p=>{l.push(p)},get startClocks(){return i},isStopped:()=>c===1||c===2,clone:()=>Ja(t,e,n,r,o),validate:p=>{if(f(),c!==1||!u)return;const m={frustrationTypes:l,events:p??[o],event:o,...u,counts:u.counts};t.notify(0,m),c=2},discard:()=>{f(),c=2}}}function Oh(t,e){const{isRage:n}=bh(t,e);n?(t.forEach(r=>r.discard()),e.stop(et()),e.validate(t.map(r=>r.event))):(e.discard(),t.forEach(r=>r.validate()))}function Ah(t,e){const n=vo(t);function r(i,a={},c=Y()){var u;const l=(u=a.actionKey)!==null&&u!==void 0?u:i,d=n.start(l,c,{name:i,...a},{isChildEvent:qa});t.notify(15,d)}function o(i,a={},c=Y()){var u;const l=(u=a.actionKey)!==null&&u!==void 0?u:i,d=n.stop(l,c,a);if(!d)return;const f=[];d.counts&&d.counts.errorCount>0&&f.push(Pe.ERROR_CLICK);const p={...d,type:d.type||po.CUSTOM,frustrationTypes:f};e(p)}function s(i){e({id:ft(),frustrationTypes:[],...i})}return{addAction:s,startAction:r,stopAction:o,findActionId:n.findId,stop:n.stopAll}}const Ih=1;function Rh(t,e,n,r,o){const{unsubscribe:s}=t.subscribe(0,u=>{t.notify(12,rs(u))});let i;o.trackUserInteractions&&(i=Eh(t,n,r,o));const a=Ah(t,u=>{t.notify(12,rs(u))}),c={findActionId:u=>{var l;const d=a.findActionId(u),f=(l=i?.findActionId(u))!==null&&l!==void 0?l:[];return d.concat(f)}};return e.register(0,({startTime:u,eventType:l})=>{if(l!==R.ERROR&&l!==R.RESOURCE&&l!==R.LONG_TASK)return pt;const d=l===R.LONG_TASK?Oe(u,Ih):u,f=c.findActionId(d);return f.length?{type:l,action:{id:f}}:pt}),e.register(1,({startTime:u})=>({action:{id:c.findActionId(u)}})),{addAction:a.addAction,startAction:a.startAction,stopAction:a.stopAction,actionContexts:c,stop:()=>{s(),a.stop(),i?.stop()}}}function rs(t){var e,n,r,o;const s=kh(t),i=Ia(w(t.duration));return{rawRumEvent:{type:R.ACTION,date:t.startClocks.timeStamp,action:{id:t.id,target:{name:t.name},type:t.type,...i!==void 0&&{loading_time:i},...t.counts&&{error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},frustration:{type:t.frustrationTypes}},...s?{_dd:{action:{target:{selector:((e=t.target)===null||e===void 0?void 0:e.selector)||void 0,width:((n=t.target)===null||n===void 0?void 0:n.width)||void 0,height:((r=t.target)===null||r===void 0?void 0:r.height)||void 0,composed_path_selector:(o=t.target)===null||o===void 0?void 0:o.composedPathSelector},position:t.position,name_source:t.nameSource}}}:{context:t.context}},duration:t.duration,startClocks:t.startClocks,domainContext:s?{events:t.events}:{handlingStack:t.handlingStack}}}function kh(t){return"events"in t}
13function xh(t){const e=aa([at.error]).subscribe(n=>t.notify(n.error));return{stop:()=>{e.unsubscribe()}}}function Nh(t,e){const n=Pi(t,[We.cspViolation,We.intervention]).subscribe(r=>e.notify(r));return{stop:()=>{n.unsubscribe()}}}function Lh(t,e,n){const r=new $;return n.subscribe(o=>{o.type===0&&r.notify(o.error)}),xh(r),Nh(e,r),r.subscribe(o=>t.notify(14,{error:o})),Ph(t)}function Ph(t){return t.subscribe(14,({error:e})=>{t.notify(12,Dh(e))}),{addError:({error:e,handlingStack:n,componentStack:r,startClocks:o,context:s})=>{const i=Yn({originalError:e,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:"Provided",source:Tt.CUSTOM,handling:"handled"});i.context=Nt(i.context,s),t.notify(14,{error:i})}}}function Dh(t){const e={date:t.startClocks.timeStamp,error:{id:ft(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:R.ERROR,context:t.context},n={error:t.originalError,handlingStack:t.handlingStack};return{rawRumEvent:e,startClocks:t.startClocks,domainContext:n}}const os=new WeakSet;function Mh(t){if(!performance||!("getEntriesByName"in performance))return;const e=performance.getEntriesByName(t.url,"resource");if(!e.length||!("toJSON"in e[0]))return;const n=e.filter(r=>!os.has(r)).filter(r=>va(r)&&Sa(r)).filter(r=>$h(r,t.startClocks.relative,Qa({startTime:t.startClocks.relative,duration:t.duration})));if(n.length===1)return os.add(n[0]),n[0].toJSON()}function Qa(t){return Oe(t.startTime,t.duration)}function $h(t,e,n){return t.startTime>=e-1&&Qa(t)<=Oe(n,1)}const Uh=2*St;function Bh(t){const e=Vh(t)||Fh(t);if(!(!e||e.traceTime<=vt()-Uh))return e.traceId}function Vh(t){const e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return Za(e&&e.content,n&&n.content)}function Fh(t){const e=Hh(t);if(e)return Za(an(e,"trace-id"),an(e,"trace-time"))}function Za(t,e){const n=e&&Number(e);if(!(!t||!n))return{traceId:t,traceTime:n}}function Hh(t){for(let e=0;e<t.childNodes.length;e+=1){const n=ss(t.childNodes[e]);if(n)return n}if(t.body)for(let e=t.body.childNodes.length-1;e>=0;e-=1){const n=t.body.childNodes[e],r=ss(n);if(r)return r;if(!Vr(n))break}}function ss(t){if(t&&A_(t)){const e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function So(){if(le(F.NAVIGATION)){const n=performance.getEntriesByType(F.NAVIGATION)[0];if(n)return n}const t=Gh(),e={entryType:F.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:t.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...e,toJSON:void 0}),...t};return e}function Gh(){const t={},e=performance.timing;for(const n in e)if(un(e[n])){const r=n,o=e[r];t[r]=o===0?0:jr(o)}return t}function tc(t){return t.responseStart>=0&&t.responseStart<=Ct()?t.responseStart:void 0}function zh(){if(le(F.RESOURCE))return performance.getEntriesByType(F.RESOURCE)}function Wh(t,e){const n=zh();if(n)return Yr(n,r=>r.name===t&&r.startTime<=e)}function Xh(t,e){io(t,"interactive",()=>{const n=So(),r=Object.assign(n.toJSON(),{entryType:F.RESOURCE,initiatorType:ba,duration:n.responseEnd,traceId:Bh(document),toJSON:()=>({...r,toJSON:void 0})});e(r)})}const Kh=1e3;function jh(t){const e=new Set;let n=!1;const r=t.subscribe(8,o=>{if(e.add(o),e.size>Kh){const s=e.values().next().value;if(!n){n=!0;let i;if(Pt(Et.TOO_MANY_REQUESTS_INVESTIGATION)){let a=0,c=0,u=0,l=0;for(const f of e)f.isAborted&&a++,f.isAbortedOnStart&&c++,f.type===ie.XHR&&u++,performance.getEntriesByName(f.url,"resource").some(g=>g.startTime>=f.startClocks.relative)||l++;const d=et()-s.startClocks.timeStamp;i={abortedCount:a,abortedOnStartCount:c,xhrCount:u,fetchCount:e.size-u,oldestRequestAge:d,oldestRequestEndAge:d-s.duration,withoutMatchingEntryCount:l}}mn("Too many requests",i)}e.delete(s)}});return{getMatchingRequest(o){let s=1/0,i;for(const a of e){const c=o.startTime-a.startClocks.relative;0<=c&&c<s&&a.url===o.name&&(s=Math.abs(c),i=a)}return i&&e.delete(i),i},stop(){r.unsubscribe()}}}function qh(t,e){function n(o,s={},i=Y()){var a;const c=(a=s.resourceKey)!==null&&a!==void 0?a:o;e.start(c,i,{url:o,...s})}function r(o,s={},i=Y()){var a;const c=(a=s.resourceKey)!==null&&a!==void 0?a:o,u=e.stop(c,i,{context:s.context,type:s.type});if(!u)return;const l=J(u.startClocks.relative,i.relative),d={date:u.startClocks.timeStamp,type:R.RESOURCE,resource:{id:u.id,type:u.type||_t.OTHER,url:Ea(u.url),duration:w(l),method:u.method,status_code:s.statusCode,size:s.size},_dd:{},context:u.context};t.notify(12,{rawRumEvent:d,startClocks:u.startClocks,duration:l,domainContext:{isManual:!0}})}return{startResource:n,stopResource:r}}function Yh(t,e,n){const r=rg();let o;const s=e.trackEarlyRequests;s?o=jh(t):t.subscribe(8,l=>{a(()=>Jh(l,e,n))});const i=jt(e,{type:F.RESOURCE,buffered:!0}).subscribe(l=>{for(const d of l)(s||!ya(d))&&a(()=>is(d,e,n,o))});Xh(e,l=>{a(()=>is(l,e,n,o))});function a(l){r.push(()=>{const d=l();d&&t.notify(12,d)})}const c=vo(t),u=qh(t,c);return{startResource:u.startResource,stopResource:u.stopResource,stop:()=>{r.stop(),i.unsubscribe(),c.stopAll()}}}function Jh(t,e,n){const r=Mh(t);return ec(r,t,n,e)}function is(t,e,n,r){const o=ya(t)&&r?r.getMatchingRequest(t):void 0;return ec(t,o,n,e)}function ec(t,e,n,r){if(!t&&!e)return;const o=e?nb(e,r):rb(t,r);
13if(!r.trackResources&&!o)return;const s=t?ln(t.startTime):e.startClocks,i=t?r_(t):ob(n,s,e.duration),a=e&&Qh(e,r),c=t&&Zh(t),u=Nt({date:s.timeStamp,resource:{id:ft(),duration:w(i),type:e?e.type===ie.XHR?_t.XHR:_t.FETCH:n_(t),method:e?e.method:void 0,status_code:e?e.status:sb(t.responseStatus),url:e?Ea(e.url):t.name,protocol:t&&i_(t),delivery_type:t&&a_(t),graphql:a,response:c},type:R.RESOURCE,_dd:{discarded:!r.trackResources}},o,t&&eb(t));return{startClocks:s,duration:i,rawRumEvent:u,domainContext:tb(t,e)}}function Qh(t,e){const n=Oa(t.url,e);if(n)return h_(t,n)}function Zh(t){const e=t.contentType;if(e)return{headers:{"content-type":e}}}function tb(t,e){if(e){const n={performanceEntry:t,isAborted:e.isAborted,handlingStack:e.handlingStack};return e.type===ie.XHR?{xhr:e.xhr,...n}:{requestInput:e.input,requestInit:e.init,response:e.response,error:e.error,...n}}return{performanceEntry:t}}function eb(t){const{renderBlockingStatus:e}=t;return{resource:{render_blocking_status:e,...c_(t),...o_(t)}}}function nb(t,e){if(t.traceSampled&&t.traceId&&t.spanId)return{_dd:{span_id:t.spanId.toString(),trace_id:t.traceId.toString(),rule_psr:e.rulePsr}}}function rb(t,e){if(t.traceId)return{_dd:{trace_id:t.traceId,span_id:wa().toString(),rule_psr:e.rulePsr}}}function ob(t,e,n){return t.wasInPageStateDuringPeriod("frozen",e.relative,n)?void 0:n}function sb(t){return t===0?void 0:t}function ib(t,e,n){const{stop:r,eventCounts:o}=Ha({lifeCycle:t,isChildEvent:s=>s.view.id===e,onChange:n});return{stop:r,eventCounts:o}}const ab=10*St;function cb(t,e,n){return{stop:jt(t,{type:F.PAINT,buffered:!0}).subscribe(o=>{const s=o.find(i=>i.name==="first-contentful-paint"&&i.startTime<e.timeStamp&&i.startTime<ab);s&&n(s.startTime)}).unsubscribe}}function ub(t,e){requestAnimationFrame(()=>{requestAnimationFrame(()=>{e(J(t,Ct()))})})}function lb(t,e,n){const r=jt(t,{type:F.FIRST_INPUT,buffered:!0}).subscribe(o=>{const s=o.find(i=>i.startTime<e.timeStamp);if(s){const i=J(s.startTime,s.processingStart);let a;s.target&&Kt(s.target)&&(a=_n(s.target,t.actionNameAttribute)),n({delay:i>=0?i:0,time:s.startTime,targetSelector:a})}});return{stop:()=>{r.unsubscribe()}}}function db(t,e){return mb(t,()=>{const n=So();pb(n)||e(fb(n))})}function fb(t){return{domComplete:t.domComplete,domContentLoaded:t.domContentLoadedEventEnd,domInteractive:t.domInteractive,loadEvent:t.loadEventEnd,firstByte:tc(t)}}function pb(t){return t.loadEventEnd<=0}function mb(t,e){let n;const{stop:r}=io(t,"complete",()=>{n=ht(()=>e())});return{stop:()=>{r(),Rt(n)}}}const gb=10*St;function _b(t,e,n,r){let o=1/0;const{stop:s}=se(t,n,["pointerdown","keydown"],c=>{o=c.timeStamp},{capture:!0,once:!0});let i=0;const a=jt(t,{type:F.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(c=>{const u=Yr(c,l=>l.entryType===F.LARGEST_CONTENTFUL_PAINT&&l.startTime<o&&l.startTime<e.timeStamp&&l.startTime<gb&&l.size>i);if(u){let l;u.element&&(l=_n(u.element,t.actionNameAttribute));const d=hb(u),f=u.startTime,p=bb(d,f);r({value:f,targetSelector:l,resourceUrl:d,subParts:p}),i=u.size}});return{stop:()=>{s(),a.unsubscribe()}}}function hb(t){return t.url===""?void 0:t.url}function bb(t,e){const n=tc(So());if(n===void 0)return;const r=t?Wh(t,e):void 0,o=r?Math.max(n,r.requestStart||r.startTime):n,s=Math.min(e,Math.max(o,r?.responseEnd||0));return{loadDelay:o-n,loadTime:s-o,renderDelay:e-s}}function nc(t,e,n=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:z};if(le(F.VISIBILITY_STATE)){const s=performance.getEntriesByType(F.VISIBILITY_STATE).filter(i=>i.name==="hidden").find(i=>i.startTime>=e.relative);if(s)return{timeStamp:s.startTime,stop:z}}let r=1/0;const{stop:o}=se(t,n,["pagehide","visibilitychange"],s=>{(s.type==="pagehide"||document.visibilityState==="hidden")&&(r=s.timeStamp,o())},{capture:!0});return{get timeStamp(){return r},stop:o}}function yb(t,e,n,r){const o={},{stop:s}=db(t,d=>{n(d.loadEvent),o.navigationTimings=d,r()}),i=nc(t,e),{stop:a}=cb(t,i,d=>{o.firstContentfulPaint=d,r()}),{stop:c}=_b(t,i,window,d=>{o.largestContentfulPaint=d,r()}),{stop:u}=lb(t,i,d=>{o.firstInput=d,r()});function l(){s(),a(),c(),u(),i.stop()}return{stop:l,initialViewMetrics:o}}const Fr=(t,e)=>t*e,vb=(t,e)=>{const n=Math.max(t.left,e.left),r=Math.max(t.top,e.top),o=Math.min(t.right,e.right),s=Math.min(t.bottom,e.bottom);return n>=o||r>=s?0:Fr(o-n,s-r)},as=t=>{const e=Fr(t.previousRect.width,t.previousRect.height),n=Fr(t.currentRect.width,t.currentRect.height),r=vb(t.previousRect,t.currentRect);return e+n-r};function Sb(t,e,n){if(!Ob())return{stop:z};let r=0,o;n({value:0});const s=Cb(),i=jt(t,{type:F.LAYOUT_SHIFT,buffered:!0}).subscribe(a=>{var c;for(const u of a){if(u.hadRecentInput||u.startTime<e)continue;const{cumulatedValue:l,isMaxValue:d}=s.update(u);if(d){const f=Eb(u.sources);o={target:f?.node?new WeakRef(f.node):void 0,time:J(e,u.startTime),previousRect:f?.previousRect,currentRect:f?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(l>r){r=l;const f=(c=o?.target)===null||c===void 0?void 0:c.deref();n({value:De(r,4),targetSelector:f&&_n(f,t.actionNameAttribute),time:o?.time,previousRect:o?.previousRect?cs(o.previousRect):void 0,currentRect:o?.currentRect?cs(o.currentRect):void 0,devicePixelRatio:o?.devicePixelRatio})}}});return{stop:()=>{i.unsubscribe()}}}function Eb(t){let e;for(const n of t)if(n.node&&Kt(n.node)){const r=as(n);(!e||as(e)<r)&&(e=n)}return e}function cs({x:t,y:e,width:n,height:r}){return{x:t,y:e,width:n,height:r}}const Tb=5*bt,wb=bt;function Cb(){let t=0,e,n,r=0;return{update:o=>{const s=e===void 0||o.startTime-n>=wb||o.startTime-e>=Tb;let i;return s?(e=n=o.startTime,r=t=o.value,i=!0):(t+=o.value,n=o.startTime,i=o.value>
13r,i&&(r=o.value)),{cumulatedValue:t,isMaxValue:i}}}}function Ob(){return le(F.LAYOUT_SHIFT)&&"WeakRef"in window}let Rn,rc=0,Ar=1/0,Ir=0;function Ab(){"interactionCount"in performance||Rn||(Rn=new window.PerformanceObserver(O(t=>{t.getEntries().forEach(e=>{const n=e;n.interactionId&&(Ar=Math.min(Ar,n.interactionId),Ir=Math.max(Ir,n.interactionId),rc=(Ir-Ar)/7+1)})})),Rn.observe({type:"event",buffered:!0,durationThreshold:0}))}const us=()=>Rn?rc:window.performance.interactionCount||0,ls=10,Ib=1*St,Rb=8;function kb(t,e,n){if(!Pb())return{getInteractionToNextPaint:()=>{},setViewEnd:z,stop:z};let r=1/0,o;const{getViewInteractionCount:s,stopViewInteractionCount:i}=Nb(n),a=xb(s),c=Pt(Et.INP_SUBPARTS)?Lb(a):null,u=jt(t,{type:F.FIRST_INPUT,buffered:!0}).subscribe(d),l=jt(t,{type:F.EVENT,durationThreshold:40,buffered:!0}).subscribe(d);function d(p){for(const g of p)g.interactionId&&g.startTime>=e&&g.startTime<=r&&(a.process(g),c?.process(g));c?.pruneUntracked();const m=a.estimateP98Interaction();m&&f(m)}function f(p){const m=J(e,p.startTime);if(!o||p.duration!==o.duration||m!==o.startTime){let g=Sh(p.startTime);!g&&p.target&&Kt(p.target)&&(g=_n(p.target,t.actionNameAttribute)),o={duration:p.duration,startTime:m,targetSelector:g}}c&&(o.subParts=c.computeSubParts(p,ds(o.duration)))}return{getInteractionToNextPaint:()=>{if(o)return{value:ds(o.duration),targetSelector:o.targetSelector,time:o.startTime,subParts:o.subParts};if(s())return{value:0}}
13,setViewEnd:p=>{r=p,i()},stop:()=>{l.unsubscribe(),u.unsubscribe(),c?.stop()}}}function xb(t){const e=[];function n(){e.sort((r,o)=>o.duration-r.duration).splice(ls)}return{process(r){const o=e.findIndex(i=>r.interactionId===i.interactionId),s=e[e.length-1];o!==-1?r.duration>e[o].duration&&(e[o]=r,n()):(e.length<ls||r.duration>s.duration)&&(e.push(r),n())},estimateP98Interaction(){const r=Math.min(e.length-1,Math.floor(t()/50));return e[r]},isTracked(r){return e.some(o=>o.interactionId===r)}}}function Nb(t){Ab();const e=t===Ht.INITIAL_LOAD?0:us();let n={stopped:!1};function r(){return us()-e}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}function Lb(t){const e=new Map;function n(r,o){r.startTime=Math.min(o.startTime,r.startTime),r.processingStart=Math.min(o.processingStart,r.processingStart),r.processingEnd=Math.max(o.processingEnd,r.processingEnd)}return{process(r){if(r.interactionId===void 0||!r.processingStart||!r.processingEnd)return;const o=r.startTime+r.duration,s=e.get(r.interactionId);if(s){n(s,r);return}for(const[,i]of e.entries())if(Math.abs(o-i.referenceRenderTime)<=Rb){n(i,r),e.set(r.interactionId,i);return}e.set(r.interactionId,{startTime:r.startTime,processingStart:r.processingStart,processingEnd:r.processingEnd,referenceRenderTime:o})},pruneUntracked(){for(const[r]of e)t.isTracked(r)||e.delete(r)},computeSubParts(r,o){if(!r.processingStart||!r.processingEnd||r.interactionId===void 0)return;const s=e.get(r.interactionId);if(!s)return;const i=Math.max(s.startTime+o,s.processingStart),a=Math.min(s.processingEnd,i);return{inputDelay:J(s.startTime,s.processingStart),processingDuration:J(s.processingStart,a),presentationDelay:J(a,i)}},stop(){e.clear()}}}function Pb(){return le(F.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function ds(t){return Math.min(t,Ib)}function Db(t,e,n,r,o,s,i){let a=o===Ht.INITIAL_LOAD,c=!0;const u=[],l=nc(r,s);function d(){if(!c&&!a&&u.length>0){const p=Math.max(...u);p<l.timeStamp-s.relative&&i(p)}}const{stop:f}=ho(t,e,n,r,p=>{c&&(c=!1,p.hadActivity&&u.push(J(s.timeStamp,p.end)),d())});return{stop:()=>{f(),l.stop()},setLoadEvent:p=>{a&&(a=!1,u.push(p),d())}}}function jE(){let t;const e=window.visualViewport;return e?t=e.pageLeft-e.offsetLeft:window.scrollX!==void 0?t=window.scrollX:t=window.pageXOffset||0,Math.round(t)}function Mb(){let t;const e=window.visualViewport;return e?t=e.pageTop-e.offsetTop:window.scrollY!==void 0?t=window.scrollY:t=window.pageYOffset||0,Math.round(t)}let Rr;function $b(t){return Rr||(Rr=Ub(t)),Rr}function Ub(t){return new $(e=>{const{throttled:n}=zn(()=>{e.notify(Eo())},200);return st(t,window,"resize",n,{capture:!0,passive:!0}).stop})}function Eo(){const t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}const Bb=bt;function Vb(t,e,n,r=Hb(t)){let o=0,s=0,i=0;const a=r.subscribe(({scrollDepth:c,scrollTop:u,scrollHeight:l})=>{let d=!1;if(c>o&&(o=c,d=!0),l>s){s=l;const f=Ct();i=J(e.relative,f),d=!0}d&&n({maxDepth:Math.min(o,s),maxDepthScrollTop:u,maxScrollHeight:s,maxScrollHeightTime:i})});return{stop:()=>a.unsubscribe()}}function Fb(){const t=Mb(),{height:e}=Eo(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(e+t);return{scrollHeight:n,scrollDepth:r,scrollTop:t}}function Hb(t,e=Bb){return new $(n=>{function r(){n.notify(Fb())}if(window.ResizeObserver){const o=zn(r,e,{leading:!1,trailing:!0}),s=document.scrollingElement||document.documentElement,i=new ResizeObserver(O(o.throttled));s&&i.observe(s);const a=st(t,window,"scroll",o.throttled,{passive:!0});return()=>{o.cancel(),i.disconnect(),a.stop()}}})}function Gb(t,e,n,r,o,s,i){const a={};let c=!1,u=!1;const{stop:l,setLoadEvent:d}=Db(t,e,n,r,s,i,b=>{c||(a.loadingTime=b,o())}),{stop:f}=Vb(r,i,b=>{a.scroll=b}),{stop:p}=Sb(r,i.relative,b=>{a.cumulativeLayoutShift=b,o()}),{stop:m,getInteractionToNextPaint:g,setViewEnd:h}=kb(r,i.relative,s);return{stop:()=>
13{l(),p(),f()},stopINPTracking:m,setLoadEvent:d,setViewEnd:b=>{u=!0,h(b)},getCommonViewMetrics:()=>(a.interactionToNextPaint=g(),a),setLoadingTime:b=>{if(u)return;const I=J(i.timeStamp,b??et());c||l(),c=!0,a.loadingTime=I,o()}}}function zb(t,e){const{stop:n}=st(t,window,"pageshow",r=>{r.persisted&&e(r)},{capture:!0});return n}function Wb(t,e,n){ub(t.relative,r=>{e.firstContentfulPaint=r,e.largestContentfulPaint={value:r},n()})}const Xb=3e3,Kb=5*St,jb=5*St;function qb(t,e,n,r,o,s,i){const a=new Set;let c=d(Ht.INITIAL_LOAD,ei(),i),u;f();let l;s&&(l=p(o),r.trackBfcacheViews&&(u=zb(r,m=>{c.end();const g=ln(m.timeStamp);c=d(Ht.BF_CACHE,g,void 0)})));function d(m,g,h){const b=Yb(t,e,n,r,m,g,h);return a.add(b),b.stopObservable.subscribe(()=>{a.delete(b)}),b}function f(){t.subscribe(10,()=>{c=d(Ht.ROUTE_CHANGE,void 0,{name:c.name,service:c.service,version:c.version,context:c.contextManager.getContext()})}),t.subscribe(9,()=>{c.end({sessionIsActive:!1})})}function p(m){return m.subscribe(({oldLocation:g,newLocation:h})=>{Qb(g,h)&&(c.end(),c=d(Ht.ROUTE_CHANGE))})}return{addTiming:(m,g=et())=>{c.addTiming(m,g)},setLoadingTime:m=>c.setLoadingTime(m),startView:(m,g)=>{c.end({endClocks:g}),c=d(Ht.ROUTE_CHANGE,g,m)},setViewContext:m=>{c.contextManager.setContext(m)},setViewContextProperty:(m,g)=>{c.contextManager.setContextProperty(m,g)},setViewName:m=>{c.setViewName(m)},getViewContext:()=>c.contextManager.getContext(),stop:()=>{l&&l.unsubscribe(),u&&u(),c.end(),a.forEach(m=>m.stop())}}}function Yb(t,e,n,r,o,s=Y(),i){const a=ft(),c=new $,u={};let l=0,d;const f=Te(window.location),p=gn();let m=!0,g=i?.name;const h=i?.service||r.service,b=i?.version||r.version,I=i?.context,H=i?.handlingStack;I&&p.setContext(I);const D={id:a,name:g,startClocks:s,service:h,version:b,context:I,url:i?.url};t.notify(1,D),t.notify(2,D);const{throttled:yt,cancel:_}=zn(it,Xb,{leading:!1}),{setLoadEvent:E,setViewEnd:L,stop:X,stopINPTracking:Bt,getCommonViewMetrics:Vt,setLoadingTime:Jt}=Gb(t,e,n,r,dt,o,s),{stop:Qt,initialViewMetrics:Zt}=o===Ht.INITIAL_LOAD?yb(r,s,E,dt):{stop:z,initialViewMetrics:{}};o===Ht.BF_CACHE&&Wb(s,Zt,dt);const{stop:de,eventCounts:U}=ib(t,a,dt),V=Ke(it,Kb),mt=t.subscribe(11,nt=>{nt.reason===on.UNLOADING&&it()});it(),p.changeObservable.subscribe(dt);function Ot(){t.notify(3,{id:a,name:g,context:p.getContext(),startClocks:s,sessionIsActive:m})}function dt(){Ot(),yt()}function it(){_(),Ot(),l+=1;const nt=d===void 0?et():d.timeStamp;t.notify(4,{customTimings:u,documentVersion:l,id:a,name:g,service:h,version:b,context:p.getContext(),loadingType:o,location:f,handlingStack:H,startClocks:s,commonViewMetrics:Vt(),initialViewMetrics:Zt,duration:J(s.timeStamp,nt),isActive:d===void 0,sessionIsActive:m,eventCounts:U})}return{get name(){return g},service:h,version:b,contextManager:p,stopObservable:c,end(nt={}){var G,At;d||(d=(G=nt.endClocks)!==null&&G!==void 0?G:Y(),m=(At=nt.sessionIsActive)!==null&&At!==void 0?At:!0,t.notify(5,{endClocks:d}),t.notify(6,{endClocks:d}),Gn(V),L(d.relative),X(),mt.unsubscribe(),it(),ht(()=>{this.stop()},jb))},stop(){Qt(),de(),Bt(),c.notify()},addTiming(nt,G){if(d)return;const At=lf(G)?G:J(s.timeStamp,G);u[Jb(nt)]=At,dt()},setLoadingTime:Jt,setViewName(nt){g=nt,it()}}}function Jb(t){const e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return e!==t&&A.warn(`Invalid timing name: ${t}, sanitized to: ${e}`),e}function Qb(t,e){return t.pathname!==e.pathname||!Zb(e.hash)&&fs(e.hash)!==fs(t.hash)}function Zb(t){const e=t.substring(1);return e!==""&&!!document.getElementById(e)}function fs(t){const e=t.indexOf("?");return e<0?t:t.slice(0,e)}function ty(t,e,n,r,o,s,i,a,c){return t.subscribe(4,u=>t.notify(12,ey(u,n,i))),e.register(0,({startTime:u,eventType:l})=>{const d=a.findView(u);return d?{type:l,service:d.service,version:d.version,context:d.context,view:{id:d.id,name:d.name}}:Dt}),e.register(1,({startTime:u})=>{var l;return{view:{id:(l=a.findView(u))===null||l===void 0?void 0:l.id}}}),qb(t,r,o,n,s,!n.trackViewsManually,c)}function ey(t,e,n){var r,o,s,i,a,c,u,l,d,f,p,m,g,h,b,I,H,D;const yt=n.getReplayStats(t.id),_=(o=(r=t.commonViewMetrics)===null||r===void 0?void 0:r.cumulativeLayoutShift)===null||o===void 0?void 0:o.devicePixelRatio,E={_dd:{document_version:t.documentVersion,replay_stats:yt,cls:_?{device_pixel_ratio:_}:void 0,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually}},date:t.startClocks.timeStamp,type:R.VIEW,view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:(s=t.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.value,cumulative_layout_shift_time:w((i=t.commonViewMetrics.cumulativeLayoutShift)===null||i===void 0?void 0:i.time),cumulative_layout_shift_target_selector:(a=t.commonViewMetrics.cumulativeLayoutShift)===null||a===void 0?void 0:a.targetSelector,first_byte:w((c=t.initialViewMetrics.navigationTimings)===null||c===void 0?void 0:c.firstByte),dom_complete:w((u=t.initialViewMetrics.navigationTimings)===null||u===void 0?void 0:u.domComplete),dom_content_loaded:w((l=t.initialViewMetrics.navigationTimings)===null||l===void 0?void 0:l.domContentLoaded),dom_interactive:w((d=t.initialViewMetrics.navigationTimings)===null||d===void 0?void 0:d.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:w(t.initialViewMetrics.firstContentfulPaint),first_input_delay:w((f=t.initialViewMetrics.firstInput)===null||f===void 0?void 0:f.delay),first_input_time:w((p=t.initialViewMetrics.firstInput)===null||p===void 0?void 0:p.time),first_input_target_selector:(m=t.initialViewMetrics.firstInput)===null||m===void 0?void 0:m.targetSelector,interaction_to_next_paint:w((g=t.commonViewMetrics.interactionToNextPaint)===null||g===void 0?void 0:g.value),interaction_to_next_paint_time:w((h=t.commonViewMetrics.interactionToNextPaint)===null||h===void 0?void 0:h.time),interaction_to_next_paint_target_selector:(b=t.commonViewMetrics.interactionToNextPaint)===null||b===void 0?void 0:b.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:w((I=t.initialViewMetrics.largestContentfulPaint)===null||I===void 0?void 0:I.value),largest_contentful_paint_target_selector:(
13H=t.initialViewMetrics.largestContentfulPaint)===null||H===void 0?void 0:H.targetSelector,load_event:w((D=t.initialViewMetrics.navigationTimings)===null||D===void 0?void 0:D.loadEvent),loading_time:Ia(w(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},performance:ny(t.commonViewMetrics,t.initialViewMetrics),resource:{count:t.eventCounts.resourceCount},time_spent:w(t.duration)},display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:w(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:e.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:pg()}};return ce(t.customTimings)||(E.view.custom_timings=js(t.customTimings,w)),{rawRumEvent:E,startClocks:t.startClocks,duration:t.duration,domainContext:{location:t.location,handlingStack:t.handlingStack}}}function ny({cumulativeLayoutShift:t,interactionToNextPaint:e},{firstContentfulPaint:n,firstInput:r,largestContentfulPaint:o}){return{cls:t&&{score:t.value,timestamp:w(t.time),target_selector:t.targetSelector,previous_rect:t.previousRect,current_rect:t.currentRect},fcp:n&&{timestamp:w(n)},fid:r&&{duration:w(r.delay),timestamp:w(r.time),target_selector:r.targetSelector},inp:e&&{duration:w(e.value),timestamp:w(e.time),target_selector:e.targetSelector,sub_parts:e.subParts?{input_delay:w(e.subParts.inputDelay),processing_duration:w(e.subParts.processingDuration),presentation_delay:w(e.subParts.presentationDelay)}:void 0},lcp:o&&{timestamp:w(o.value),target_selector:o.targetSelector,resource_url:o.resourceUrl,sub_parts:o.subParts?{load_delay:w(o.subParts.loadDelay),load_time:w(o.subParts.loadTime),render_delay:w(o.subParts.renderDelay)}:void 0}}}const ry="rum";function oy(t,e,n){const r=na(t,ry,o=>iy(t,o),n);return r.expireObservable.subscribe(()=>{e.notify(9)}
13),r.renewObservable.subscribe(()=>{e.notify(10)}),r.sessionStateUpdateObservable.subscribe(({previousState:o,newState:s})=>{if(!o.forcedReplay&&s.forcedReplay){const i=r.findSession();i&&(i.isReplayForced=!0)}}),{findTrackedSession:o=>{const s=r.findSession(o);if(!(!s||s.trackingType==="0"))return{id:s.id,sessionReplay:s.trackingType==="1"?1:s.isReplayForced?2:0,anonymousId:s.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:()=>r.updateSessionState({forcedReplay:"1"})}}function sy(){const t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:qi("records")?1:0};return{findTrackedSession:()=>t,expire:z,expireObservable:new $,setForcedReplay:z}}function iy(t,e){return ay(e)?e:re(t.sessionSampleRate)?re(t.sessionReplaySampleRate)?"1":"2":"0"}function ay(t){return t==="0"||t==="1"||t==="2"}function cy(t,e,n,r,o,s){const i=[t.rumEndpointBuilder];t.replica&&i.push(t.replica.rumEndpointBuilder);const a=ro({encoder:s(2),request:eo(i,n),flushController:oo({pageMayExitObservable:r,sessionExpireObservable:o})});return e.subscribe(13,c=>{c.type===R.VIEW?a.upsert(c,c.view.id):a.add(c)}),a}function uy(t){const e=Ye();t.subscribe(13,n=>{e.send("rum",n)})}const ly=Ae;function dy(t,e,n){const r=Qe({expireDelay:ly});let o;t.subscribe(1,({startClocks:a,url:c})=>{const u=location.href,l=c!==void 0?je(c,u).href:u;r.add(i({url:l,referrer:o||document.referrer}),a.relative),o=l}),t.subscribe(6,({endClocks:a})=>{r.closeActive(a.relative)});const s=n.subscribe(({newLocation:a})=>{const c=r.find();if(c){const u=Ct();r.closeActive(u),r.add(i({url:a.href,referrer:c.referrer}),u)}});function i({url:a,referrer:c}){return{url:a,referrer:c}}return e.register(0,({startTime:a,eventType:c})=>{const u=r.find(a);return u?{type:c,view:{url:u.url,referrer:u.referrer}}:Dt}),{findUrl:a=>r.find(a),stop:()=>{s.unsubscribe(),r.stop()}}}function fy(t){let e=Te(location);return new $(n=>{const{stop:r}=py(t,s),{stop:o}=my(t,s);function s(){if(e.href===location.href)return;const i=Te(location);n.notify({newLocation:i,oldLocation:e}),e=i}return()=>{r(),o()}})}function py(t,e){const{stop:n}=Ut(ps("pushState"),"pushState",({onPostCall:s})=>{s(e)}),{stop:r}=Ut(ps("replaceState"),"replaceState",({onPostCall:s})=>{s(e)}),{stop:o}=st(t,window,"popstate",e);return{stop:()=>{n(),r(),o()}}}function my(t,e){return st(t,window,"hashchange",e)}function ps(t){return Object.prototype.hasOwnProperty.call(history,t)?history:History.prototype}const gy=Ae;function _y(t,e,n){const r=Qe({expireDelay:gy});return t.subscribe(1,({startClocks:o})=>{r.add({},o.relative)}),t.subscribe(6,({endClocks:o})=>{r.closeActive(o.relative)}),e.register(0,({startTime:o,eventType:s})=>{if(!n.trackFeatureFlagsForEvents.concat([R.VIEW,R.ERROR]).includes(s))return pt;const a=r.find(o);return!a||ce(a)?pt:{type:s,feature_flags:a}}),{addFeatureFlagEvaluation:(o,s)=>{const i=r.find();i&&(i[o]=s)}}}const hy=10*bt;let Ve,En;function by(t,e,n){t.metricsEnabled&&(oc(),En=!1,e.subscribe(13,()=>{En=!0}),n.subscribe(({bytesCount:r,messagesCount:o})=>{En&&(En=!1,Ve.batchCount+=1,gs(Ve.batchBytesCount,r),gs(Ve.batchMessagesCount,o))}),Ke(yy,hy))}function yy(){Ve.batchCount!==0&&(tr("Customer data measures",Ve),oc())}function ms(){return{min:1/0,max:0,sum:0}}function gs(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function oc(){Ve={batchCount:0,batchBytesCount:ms(),batchMessagesCount:ms()}}const vy=4e3,Sy=500,Ey=Ae;function Ty(t,e,n=Sy){const r=Qe({expireDelay:Ey,maxEntries:vy});let o;le(F.VISIBILITY_STATE)&&performance.getEntriesByType(F.VISIBILITY_STATE).forEach(u=>{const l=u.name==="hidden"?"hidden":"active";i(l,u.startTime)}),i(sc(),Ct());const{stop:s}=se(e,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],c=>{i(Cy(c),c.timeStamp)},{capture:!0});function i(c,u=Ct()){c!==o&&(o=c,r.closeActive(u),r.add({state:o,startTime:u},u))}function a(c,u,l){return r.findAll(u,l).some(d=>d.state===c)}return t.register(0,({startTime:c,duration:u=0,eventType:l})=>{if(l===R.VIEW){const d=r.findAll(c,u);return{type:l,_dd:{page_states:wy(d,c,n)}}}return l===R.ACTION||l===R.ERROR?{type:l,view:{in_foreground:a("active",c,0)}}:pt}),{wasInPageStateDuringPeriod:a,addPageState:i,stop:()=>{s(),r.stop()}}}function wy(t,e,n){if(t.length!==0)return t.slice(-n).reverse().map(({state:r,startTime:o})=>({state:r,start:w(J(e,o))}))}function Cy(t){return t.type==="freeze"?"frozen":t.type==="pagehide"?t.persisted?"frozen":"terminated":sc()}function sc(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function Oy(t,e){let n;const r=requestAnimationFrame(O(()=>{n=Eo()})),o=$b(e).subscribe(s=>{n=s}).unsubscribe;return t.register(0,({eventType:s})=>({type:s,display:n?{viewport:n}:void 0})),{stop:()=>{o(),r&&cancelAnimationFrame(r)}}}function Ay(t,e){const n=window.cookieStore?Iy(t):ky;return new $(r=>n(e,o=>r.notify(o)))}function Iy(t){return(e,n)=>st(t,window.cookieStore,"change",o=>{const s=o.changed.find(i=>i.name===e)||o.deleted.find(i=>i.name===e);s&&n(s.value)}).stop}const Ry=bt;function ky(t,e){let n=an(document.cookie,t);const r=Ke(()=>{const o=an(document.cookie,t);o!==n&&(n=o,e(o))},Ry);return()=>{Gn(r)}}const _s="datadog-ci-visibility-test-execution-id";function xy(t,e,n=Ay(t,_s)){var r;let o=Gt(_s)||((r=window.Cypress)===null||r===void 0?void 0:r.env("traceId"));const s=n.subscribe(i=>{o=i});return e.register(0,({eventType:i})=>typeof o!="string"?pt:{type:i,session:{type:"ci_test"},ci_test:{test_execution_id:o}}),{stop:()=>{s.unsubscribe()}}}function Ny(t,e){const n=le(F.LONG_ANIMATION_FRAME)?F.LONG_ANIMATION_FRAME:F.LONG_TASK,r=jt(e,{type:n,buffered:!0}).subscribe(o=>{for(const s of o){if(!e.trackLongTasks)break;const i=ln(s.startTime),a=Ly(s,i);t.notify(12,{rawRumEvent:a,startClocks:i,duration:s.duration,domainContext:{performanceEntry:s}})}});return{stop:()=>r.unsubscribe()}}function Ly(t,e){const n=ft(),r=w(t.duration),o={date:e.timeStamp,type:R.LONG_TASK,_dd:{discarded:!1}};return t.entryType===F.LONG_TASK?{...o,long_task:{id:n,entry_type:Bo.LONG_TASK,duration:r}}:{...o,long_task:{id:n,entry_type:Bo.LONG_ANIMATION_FRAME,duration:r,blocking_duration:w(t.blockingDuration),first_ui_event_timestamp:w(t.firstUIEventTimestamp),render_start:w(t.render
13Start),style_and_layout_start:w(t.styleAndLayoutStart),start_time:w(t.startTime),scripts:t.scripts.map(s=>({duration:w(s.duration),pause_duration:w(s.pauseDuration),forced_style_and_layout_duration:w(s.forcedStyleAndLayoutDuration),start_time:w(s.startTime),execution_start:w(s.executionStart),source_url:s.sourceURL,source_function_name:s.sourceFunctionName,source_char_position:s.sourceCharPosition,invoker:s.invoker,invoker_type:s.invokerType,window_attribution:s.windowAttribution}))}}}function Py(t){t.register(0,({eventType:e})=>ea()?{type:e,session:{type:"synthetics"},synthetics:{...ta(),injected:nr()}}:pt)}function Dy(t,e,n){const r=Qn(t),o=n(r);return Kn(e).forEach(([s,i])=>Hr(t,r,s.split(/\.|(?=\[\])/),i)),o}function Hr(t,e,n,r){const[o,...s]=n;if(o==="[]"){Array.isArray(t)&&Array.isArray(e)&&t.forEach((i,a)=>Hr(i,e[a],s,r));return}if(!(!hs(t)||!hs(e))){if(s.length>0)return Hr(t[o],e[o],s,r);My(t,o,e[o],r)}}function My(t,e,n,r){if(t[e]===n)return;const o=qe(n);o===r?t[e]=k(n):r==="object"&&(o==="undefined"||o==="null")&&(t[e]={})}function hs(t){return qe(t)==="object"}const xe={"view.name":"string","view.url":"string","view.referrer":"string"},Ne={context:"object"},Le={service:"string",version:"string"};let ic;function $y(t,e,n,r,o){ic={[R.VIEW]:{"view.performance.lcp.resource_url":"string",...Ne,...xe,...Le},[R.ERROR]:{"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string",...Ne,...xe,...Le},[R.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string",...Ne,...xe,...Le},[R.ACTION]:{"action.target.name":"string",...Ne,...xe,...Le},[R.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...Ne,...xe,...Le},[R.VITAL]:{...Ne,...xe,...Le}};const s={[R.ERROR]:An(R.ERROR,r,o),[R.ACTION]:An(R.ACTION,r,o),[R.VITAL]:An(R.VITAL,r,o)};e.subscribe(12,({startClocks:i,duration:a,rawRumEvent:c,domainContext:u})=>{const l=n.triggerHook(0,{eventType:c.type,rawRumEvent:c,domainContext:u,startTime:i.relative,duration:a});if(l===Dt)return;const d=Nt(l,c,{ddtags:Zr(t).join(",")});
13Uy(d,t.beforeSend,u,s)&&(ce(d.context)&&delete d.context,e.notify(13,d))})}function Uy(t,e,n,r){var o;if(e){const i=Dy(t,ic[t.type],a=>e(a,n));if(i===!1&&t.type!==R.VIEW)return!1;i===!1&&A.warn("Can't dismiss view events using beforeSend!")}return!((o=r[t.type])===null||o===void 0?void 0:o.isLimitReached())}function By(t,e,n,r){t.register(0,({eventType:o,startTime:s})=>{const i=e.findTrackedSession(s),a=r.findView(s);if(!i||!a)return Dt;let c,u,l;return o===R.VIEW?(c=n.getReplayStats(a.id)?!0:void 0,u=i.sessionReplay===1,l=a.sessionIsActive?void 0:!1):c=n.isRecording()?!0:void 0,{type:o,session:{id:i.id,type:"user",has_replay:c,sampled_for_replay:u,is_active:l}}}),t.register(1,({startTime:o})=>{const s=e.findTrackedSession(o);return s?{session:{id:s.id}}:pt})}function Vy(t){t.register(0,({eventType:e})=>({type:e,connectivity:Ui()}))}function Fy(t,e,n){t.register(0,({eventType:r})=>{const o=e.source;return{type:r,_dd:{format_version:2,drift:cf(),configuration:{session_sample_rate:De(e.sessionSampleRate,3),session_replay_sample_rate:De(e.sessionReplaySampleRate,3),profiling_sample_rate:De(e.profilingSampleRate,3),trace_sample_rate:De(e.traceSampleRate,3),beta_encode_cookie_options:e.betaEncodeCookieOptions},browser_sdk_version:Xt()?"6.32.0":void 0,sdk_name:n},application:{id:e.applicationId},date:et(),source:o}}),t.register(1,()=>({application:{id:e.applicationId}}))}function Hy(t,e){t.register(1,()=>e.isGranted()?pt:Dt)}const Gy=[R.ACTION,R.ERROR,R.LONG_TASK,R.RESOURCE,R.VITAL];function zy(t){return{addEvent:(e,n,r,o)=>{Gy.includes(n.type)&&t.notify(12,{startClocks:ln(e),rawRumEvent:n,domainContext:r,duration:o})}}}function Wy(t,e){if(!e.metricsEnabled)return{stop:z};const{unsubscribe:n}=t.subscribe(4,({initialViewMetrics:r})=>{!r.largestContentfulPaint||!r.navigationTimings||(tr("Initial view metrics",{metrics:Xy(r.largestContentfulPaint,r.navigationTimings)}),n())});return{stop:n}}function Xy(t,e){return{lcp:{value:t.value},navigation:{domComplete:e.domComplete,domContentLoaded:e.domContentLoaded,domInteractive:e.domInteractive,firstByte:e.firstByte,loadEvent:e.loadEvent}}}function Ky(t){const e=window,n=new Map;function r(){e.DD_SOURCE_CODE_CONTEXT&&(Kn(e.DD_SOURCE_CODE_CONTEXT).forEach(([o,s])=>{const a=Re({stack:o}).stack[0];if(!a.url){Zn("Source code context: missing frame url",{stack:o});return}n.has(a.url)||n.set(a.url,s)}),e.DD_SOURCE_CODE_CONTEXT={})}r(),t.register(0,({domainContext:o,rawRumEvent:s})=>{if(r(),n.size===0)return pt;const i=jy(o,s),a=i&&n.get(i);return a?{type:s.type,service:a.service,version:a.version}:pt})}function jy(t,e){var n,r;if(e.type==="long_task"&&e.long_task.entry_type==="long-animation-frame")return(n=e.long_task.scripts[0])===null||n===void 0?void 0:n.source_url;let o;return"handlingStack"in t&&(o=t.handlingStack),e.type==="error"&&e.error.stack&&(o=e.error.stack),(r=Re({stack:o}).stack[0])===null||r===void 0?void 0:r.url}function qy(t,e,n,r,o,s,i,a,c,u,l){const d=[],f=new Qg;f.subscribe(13,D=>to("rum",D));const p=D=>{f.notify(14,{error:D}),mn("Error reported to customer",{"error.message":D.message})},m=no(t),g=m.subscribe(D=>{f.notify(11,D)});d.push(()=>g.unsubscribe());const h=Xt()?sy():oy(t,f,s);if(Xt())uy(f);else{const D=cy(t,f,p,m,h.expireObservable,o);d.push(()=>D.stop()),by(c,f,D.flushController.flushObservable)}Hy(u,s);const{stop:b}=Wy(f,c);d.push(b);const{stop:I,...H}=Yy(f,u,t,h,e,r,i,a,l,p);return d.push(I),a.unbuffer(),d.push(()=>n.stop()),{...H,lifeCycle:f,session:h,stopSession:()=>h.expire(),telemetry:c,stop:()=>{d.forEach(D=>D())},hooks:u}}function Yy(t,e,n,r,o,s,i,a,c,u){const l=[],d=jg(),f=fy(n),{observable:p,stop:m}=Yg();l.push(m),Fy(e,n,c);const g=Ty(e,n);l.push(()=>g.stop());const h=t_(t);l.push(()=>h.stop());const b=dy(t,e,f);l.push(()=>b.stop());const I=_y(t,e,n);By(e,r,o,h),Vy(e);const H=la(e,n,"rum",!0),D=da(e,n,r,"rum"),yt=ua(e,n,"rum"),_=Rh(t,e,d,p,n);l.push(_.stop);const E=zy(t),L=Oy(e,n);l.push(L.stop);const X=xy(n,e);l.push(X.stop),Py(e),$y(n,t,e,u);const{addTiming:Bt,setLoadingTime:Vt,startView:Jt,setViewName:Qt,setViewContext:Zt,setViewContextProperty:de,getViewContext:U,stop:V}=ty(t,e,n,d,p,f,o,h,s);Ky(e),l.push(V);const mt=Yh(t,n,g);l.push(mt.stop);const{stop:Ot}=Ny(t,n);l.push(Ot);const{addError:dt}=Lh(t,n,a);w_(t,n,r,D,yt);const it=gg(t,g,i),nt=Jg(n.applicationId,r,h,_.actionContexts,b);return{addAction:_.addAction,startAction:_.startAction,stopAction:_.stopAction,startResource:mt.startResource,stopResource:mt.stopResource,addEvent:E.addEvent,addError:dt,addTiming:Bt,setLoadingTime:Vt,addFeatureFlagEvaluation:I.addFeatureFlagEvaluation,startView:Jt,setViewContext:Zt,setViewContextProperty:de,getViewContext:U,setViewName:Qt,viewHistory:h,getInternalContext:nt.get,startDurationVital:it.startDurationVital,stopDurationVital:it.stopDurationVital,addDurationVital:it.addDurationVital,addOperationStepVital:it.addOperationStepVital,globalContext:H,userContext:D,accountContext:yt,stop:()=>l.forEach(G=>G())}}function Jy(t,e,n={}){const r=hi(),o=mg(),s=fa().observable;let i=Xg(n,r,o,(l,d,f,p,m)=>{const g=d&&n.createDeflateEncoder?b=>n.createDeflateEncoder(l,d,b):so,h=qy(l,t,e,f,g,r,o,s,p,m,n.sdkName);return t.onRumStart(h.lifeCycle,l,h.session,h.viewHistory,d,h.telemetry),e.onRumStart(h.lifeCycle,h.hooks,l,h.session,h.viewHistory,g),i=Qy(i,h),ga(l.plugins,"onRumStart",{strategy:i,addEvent:h.addEvent,addError:h.addError}),h});const a=()=>i,c=l=>{const d=Mt("view");wt(()=>{const f=typeof l=="object"?l:{name:l};i.startView({...f,handlingStack:d}),lt({feature:"start-view"})})},u=Ni({init:l=>{const d=new Error().stack;wt(()=>i.init(l,u,d))},setTrackingConsent:O(l=>{r.update(l),lt({feature:"set-tracking-consent",tracking_consent:l})}
13),setViewName:O(l=>{i.setViewName(l),lt({feature:"set-view-name"})}),setViewContext:O(l=>{i.setViewContext(l),lt({feature:"set-view-context"})}),setViewContextProperty:O((l,d)=>{i.setViewContextProperty(l,d),lt({feature:"set-view-context-property"})}),getViewContext:O(()=>(lt({feature:"set-view-context-property"}),i.getViewContext())),getInternalContext:O(l=>i.getInternalContext(l)),getInitConfiguration:O(()=>Qn(i.initConfiguration)),addAction:(l,d)=>{const f=Mt("action");wt(()=>{i.addAction({name:k(l),context:k(d),startClocks:Y(),type:po.CUSTOM,handlingStack:f}),lt({feature:"add-action"})})},startAction:O((l,d)=>{i.initConfiguration&&!Pt(Et.START_STOP_ACTION)||i.startAction(k(l),{type:k(d&&d.type),context:k(d&&d.context),actionKey:d&&d.actionKey})}),stopAction:O((l,d)=>{i.initConfiguration&&!Pt(Et.START_STOP_ACTION)||i.stopAction(k(l),{type:k(d&&d.type),context:k(d&&d.context),actionKey:d&&d.actionKey})}),startResource:O((l,d)=>{i.initConfiguration&&!Pt(Et.START_STOP_RESOURCE)||i.startResource(k(l),{type:k(d&&d.type),method:k(d&&d.method),context:k(d&&d.context),resourceKey:d&&d.resourceKey})}),stopResource:O((l,d)=>{i.initConfiguration&&!Pt(Et.START_STOP_RESOURCE)||i.stopResource(k(l),{type:k(d&&d.type),statusCode:d&&d.statusCode,size:d&&d.size,context:k(d&&d.context),resourceKey:d&&d.resourceKey})}),addError:(l,d)=>{const f=Mt("error");wt(()=>{i.addError({error:l,handlingStack:f,context:k(d),startClocks:Y()}),lt({feature:"add-error"})})},addTiming:O((l,d)=>{i.addTiming(k(l),d)}),setViewLoadingTime:O(()=>{const l=et();i.setLoadingTime(l),lt({feature:"addViewLoadingTime"})}),setGlobalContext:K(a,M.globalContext,j.setContext,"set-global-context"),getGlobalContext:K(a,M.globalContext,j.getContext,"get-global-context"),setGlobalContextProperty:K(a,M.globalContext,j.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:K(a,M.globalContext,j.removeContextProperty,"remove-global-context-property"),clearGlobalContext:K(a,M.globalContext,j.clearContext,"clear-global-context"),setUser:K(a,M.userContext,j.setContext,"set-user"),getUser:K(a,M.userContext,j.getContext,"get-user"),setUserProperty:K(a,M.userContext,j.setContextProperty,"set-user-property"),removeUserProperty:K(a,M.userContext,j.removeContextProperty,"remove-user-property"),clearUser:K(a,M.userContext,j.clearContext,"clear-user"),setAccount:K(a,M.accountContext,j.setContext,"set-account"),getAccount:K(a,M.accountContext,j.getContext,"get-account"),setAccountProperty:K(a,M.accountContext,j.setContextProperty,"set-account-property"),removeAccountProperty:K(a,M.accountContext,j.removeContextProperty,"remove-account-property"),clearAccount:K(a,M.accountContext,j.clearContext,"clear-account"),startView:c,stopSession:O(()=>{i.stopSession(),lt({feature:"stop-session"})}),addFeatureFlagEvaluation:O((l,d)=>{i.addFeatureFlagEvaluation(k(l),k(d)),lt({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:O(()=>t.getSessionReplayLink()),startSessionReplayRecording:O(l=>{t.start(l),lt({feature:"start-session-replay-recording",force:l&&l.force})}),stopSessionReplayRecording:O(()=>t.stop()),addDurationVital:(l,d)=>{const f=Mt("vital");wt(()=>{lt({feature:"add-duration-vital"}),i.addDurationVital({id:ft(),name:k(l),type:Be.DURATION,startClocks:ti(d.startTime),duration:d.duration,context:k(d&&d.context),description:k(d&&d.description),handlingStack:f})})},startDurationVital:(l,d)=>{const f=Mt("vital");return wt(()=>(lt({feature:"start-duration-vital"}),i.startDurationVital(k(l),{context:k(d&&d.context),description:k(d&&d.description),handlingStack:f})))},stopDurationVital:O((l,d)=>{lt({feature:"stop-duration-vital"}),i.stopDurationVital(typeof l=="string"?k(l):l,{context:k(d&&d.context),description:k(d&&d.description)})}),startFeatureOperation:(l,d)=>{const f=Mt("vital");wt(()=>{lt({feature:"add-operation-step-vital",action_type:"start"}),i.addOperationStepVital(l,"start",{...d,handlingStack:f})})},succeedFeatureOperation:O((l,d)=>{lt({feature:"add-operation-step-vital",action_type:"succeed"}),i.addOperationStepVital(l,"end",d)}),failFeatureOperation:O((l,d,f)=>{lt({feature:"add-operation-step-vital",action_type:"fail"}),i.addOperationStepVital(l,"end",f,d)})});return u}function Qy(t,e){return{init:n=>{Jn("DD_RUM",n)}
13,initConfiguration:t.initConfiguration,...e}}function Zy(t,{session:e,viewContext:n,errorType:r}){const o=e?e.id:"no-session-id",s=[];r!==void 0&&s.push(`error-type=${r}`),n&&(s.push(`seed=${n.id}`),s.push(`from=${n.startClocks.timeStamp}`));const i=tv(t),a=`/rum/replay/sessions/${o}`;return`${i}${a}?${s.join("&")}`}function tv(t){const e=t.site,n=t.subdomain||ev(t);return`https://${n?`${n}.`:""}${e}`}function ev(t){switch(t.site){case ye:case ip:return"app";case bi:return"dd";default:return}}const nv=1e3;let It;function qE(t){return ir(t).segments_count}function YE(t){ir(t).segments_count+=1}function JE(t){ir(t).records_count+=1}function QE(t,e){ir(t).segments_total_raw_size+=e}function rv(t){return It?.get(t)}function ir(t){It||(It=new Map);let e;return It.has(t)?e=It.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},It.set(t,e),It.size>nv&&ov()),e}function ov(){if(!It)return;const t=It.keys().next().value;t&&It.delete(t)}function ac(t,e,n){let r=0,o=[],s,i=!0,a=0;const c=[],{stop:u}=st(t,e,"message",({data:f})=>{if(f.type!=="wrote"||f.streamId!==n)return;const p=c[0];p&&(p.id===f.id?(c.shift(),r+=f.additionalBytesCount,o.push(f.result),s=f.trailer,p.writeCallback?p.writeCallback(f.result.byteLength):p.finishCallback&&p.finishCallback()):p.id<f.id&&u())});function l(){const f=o.length===0?new Uint8Array(0):Ri(o.concat(s)),p={rawBytesCount:r,output:f,outputBytesCount:f.byteLength,encoding:"deflate"};return r=0,o=[],p}function d(){i||(e.postMessage({action:"reset",streamId:n}),i=!0)}return{isAsync:!0,get isEmpty(){return i},write(f,p){e.postMessage({action:"write",id:a,data:f,streamId:n}),c.push({id:a,writeCallback:p,data:f}),i=!1,a+=1},finish(f){d(),c.length?(c.forEach(p=>{delete p.writeCallback}),c[c.length-1].finishCallback=()=>f(l())):f(l())},finishSync(){d();const f=c.map(p=>p.data).join("");return c.length=0,{...l(),pendingData:f}},estimateEncodedBytesCount(f){return f.length/8},stop(){u()}}}function To({configuredUrl:t,error:e,source:n,scriptType:r}){if(A.error(`${n} failed to start: an error occurred while initializing the ${r}:`,e),e instanceof Event||e instanceof Error&&sv(e.message)){let o;t?o=`Please make sure the ${r} URL ${t} is correct and CSP is correctly configured.`:o="Please make sure CSP is correctly configured.",A.error(`${o} See documentation at ${Fn}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else r==="worker"&&Zn(e)}function sv(t){return t.includes("Content Security Policy")||t.includes("requires 'TrustedScriptURL'")}const iv=30*bt;function av(t){return new Worker(t.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<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=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]<t[i]||t[r]===t[i]&&n[e]<=n[a]}
vendor: 4,411 bytes, line 13
13,U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>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<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},C=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},D=!1,M=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},j=M,L=function(t,e,a,n){for(var r=65535&t,i=t>>>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<i;s++)t=t>>>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.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>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;
vendor: 14,903 bytes, line 13
13for(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<n;r++)m(t,t.bl_tree[2*i[r]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=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]&&i<u);if(n=H-(u-i),i=u-H,n>s){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<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,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<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,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_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(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<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),D=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t||!t.state||e>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.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(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.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(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]&&r<i);t.match_length=H-(i-r),t.match_length>t.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<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(O[n]);if(t.header&&(e=this.strm,a=t.header,e&&e.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t||!t.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=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);
13i.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<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{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<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>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 ct={status:0};function cc(t,e,n){switch(ct.status===0&&cv(t,e),ct.status){case 1:return ct.initializationFailureCallbacks.push(n),ct.worker;case 3:return ct.worker}}function bs(){return ct.status}function cv(t,e){try{const n=av(t),{stop:r}=st(t,n,"error",i=>{kr(t,e,i)}),{stop:o}=st(t,n,"message",({data:i})=>{i.type==="errored"?kr(t,e,i.error,i.streamId):i.type==="initialized"&&lv(i.version)});n.postMessage({action:"init"}),ht(()=>uv(e),iv),ct={status:1,worker:n,stop:()=>{r(),o()},initializationFailureCallbacks:[]}}catch(n){kr(t,e,n)}}function uv(t){ct.status===1&&(A.error(`${t} failed to start: a timeout occurred while initializing the Worker`),ct.initializationFailureCallbacks.forEach(e=>e()),ct={status:2})}function lv(t){ct.status===1&&(ct={status:3,worker:ct.worker,stop:ct.stop,version:t})}function kr(t,e,n,r){ct.status===1||ct.status===0?(To({configuredUrl:t.workerUrl,error:n,source:e,scriptType:"worker"}),ct.status===1&&ct.initializationFailureCallbacks.forEach(o=>o()),ct={status:2}):Zn(n,{worker_version:ct.status===3&&ct.version,stream_id:r})}function uc(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function dv(t,e,n,r){const o=e.findTrackedSession(),s=fv(o,r),i=n.findView();return Zy(t,{viewContext:i,errorType:s,session:o})}function fv(t,e){if(!uc())return"browser-not-supported";if(!t)return"rum-not-tracked";if(t.sessionReplay===0)return"incorrect-session-plan";if(!e)return"replay-not-started"}function pv(t,e){if(!t.metricsEnabled)return{stop:z};let n,r,o;const{unsubscribe:s}=e.subscribe(i=>
13{switch(i.type){case"start":n={forced:i.forced,timestamp:et()},r=void 0,o=void 0;break;case"document-ready":n&&(r=J(n.timestamp,et()));break;case"recorder-settled":n&&(o=J(n.timestamp,et()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":s(),n&&tr("Recorder init metrics",{metrics:mv(n.forced,o,J(n.timestamp,et()),i.type,r)});break}});return{stop:s}}function mv(t,e,n,r,o){return{forced:t,loadRecorderModuleDuration:e,recorderInitDuration:n,result:r,waitForDocReadyDuration:o}}async function gv(){try{return await _v()}catch(t){To({error:t,source:"Recorder",scriptType:"module"})}}async function _v(){return(await Ft(()=>import("./CTks9FMu.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]),import.meta.url)).startRecording}function hv(t,e,n,r,o,s){let i=0,a;e.subscribe(9,()=>{(i===2||i===3)&&(d(),i=1)}),e.subscribe(10,()=>{i===1&&l()});const c=new $;pv(s,c);const u=async f=>{c.notify({type:"start",forced:f});const[p]=await Promise.all([ys(c,{type:"recorder-settled"},gv()),ys(c,{type:"document-ready"},Gm(t,"interactive"))]);if(i!==2){c.notify({type:"aborted"});return}if(!p){i=0,c.notify({type:"recorder-load-failed"});return}const m=o();if(!m){i=0,c.notify({type:"deflate-encoder-load-failed"});return}({stop:a}=p(e,t,n,r,m,s)),i=3,c.notify({type:"succeeded"})};function l(f){const p=n.findTrackedSession();if(bv(p,f)){i=1;return}if(yv(i))return;i=2;const m=vv(p,f)||!1;u(m).catch(Ce),m&&n.setForcedReplay()}function d(){i===3&&a?.(),i=0}return{start:l,stop:d,getSessionReplayLink(){return dv(t,n,r,i!==0)},isRecording:()=>i===3}}function bv(t,e){return!t||t.sessionReplay===0&&(!e||!e.force)}function yv(t){return t===2||t===3}function vv(t,e){return e&&e.force&&t.sessionReplay===0}async function ys(t,e,n){try{return await n}finally{t.notify(e)}}function Sv(){let t=0;return{strategy:{start(){t=1},stop(){t=2},isRecording:()=>!1,getSessionReplayLink:z},shouldStartImmediately(e){return t===1||t===0&&!e.startSessionReplayRecordingManually}}}function Ev(){if(Xt()&&!qi("records")||!uc())return{start:z,stop:z,getReplayStats:()=>{},onRumStart:z,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:t,shouldStartImmediately:e}=Sv();return{start:r=>t.start(r),stop:()=>t.stop(),getSessionReplayLink:()=>t.getSessionReplayLink(),onRumStart:n,isRecording:()=>bs()===3&&t.isRecording(),getReplayStats:r=>bs()===3?rv(r):void 0};function n(r,o,s,i,a,c){let u;function l(){return u||(a??(a=cc(o,"Datadog Session Replay",()=>t.stop())),a&&(u=ac(o,a,1))),u}t=hv(o,r,s,i,l,c),e(o)&&t.start()}}function Tv(){return gt().Profiler!==void 0}function wv(t){let e={status:"starting"};return t.register(0,({eventType:n})=>n!==R.VIEW&&n!==R.LONG_TASK&&n!==R.ACTION&&n!==R.VITAL?pt:{type:n,_dd:{profiling:e}}),{get:()=>e,set:n=>{e=n}}}async function Cv(){try{return await Ov()}catch(t){To({error:t,source:"Profiler",scriptType:"module"})}}async function Ov(){return(await Ft(()=>import("./C9cttv1w.js"),__vite__mapDeps([103,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102]),import.meta.url)).createRumProfiler}function Av(){let t;function e(n,r,o,s,i,a){const c=s.findTrackedSession();if(!c||!Ta(c.id,o.profilingSampleRate))return;const u=wv(r);if(!Tv()){u.set({status:"error",error_reason:"not-supported-by-browser"});return}Cv().then(l=>{if(!l){u.set({status:"error",error_reason:"failed-to-lazy-load"});return}t=l(o,n,s,u,a,i,void 0),t.start()}).catch(Ce)}return{onRumStart:e,stop:()=>{t?.stop()}}}const Iv=Ev(),Rv=Av(),lc=Jy(Iv,Rv,{startDeflateWorker:cc,createDeflateEncoder:ac,sdkName:"rum"});Li(gt(),"DD_RUM",lc);function Mn(t,e,n){const r=n.getHandler(),o=Array.isArray(r)?r:[r];return vs[t]>=vs[n.getLevel()]&&o.includes(e)}const x={ok:"ok",debug:"debug",info:"info",notice:"notice",warn:"warn",error:"error",critical:"critical",alert:"alert",emerg:"emerg"},vs={[x.ok]:0,[x.debug]:1,[x.info]:2,[x.notice]:4,[x.warn]:5,[x.error]:6,[x.critical]:7,[x.alert]:8,[x.emerg]:9};function ar(t,{includeMessage:e=!1}={}){return{stack:t.stack,kind:t.type,message:e?t.message:void 0,causes:t.causes,fingerprint:t.fingerprint,handling:t.handling}}var kv=function(t,e,n,r){var o=arguments.length,s=o<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;
13a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};const cn={console:"console",http:"http"},xv=Object.keys(x);class Lt{constructor(e,n,r=cn.http,o=x.debug,s={}){this.handleLogStrategy=e,this.handlerType=r,this.level=o,this.contextManager=gn("logger"),this.tags=[],this.contextManager.setContext(s),n&&this.contextManager.setContextProperty("logger",{name:n})}logImplementation(e,n,r=x.info,o,s){const i=k(n);let a;if(o!=null){const c=Yn({originalError:o,nonErrorPrefix:"Provided",source:Tt.LOGGER,handling:"handled",startClocks:Y()});a=Nt({error:ar(c,{includeMessage:!0})},c.context,i)}else a=i;this.handleLogStrategy({message:k(e),context:a,status:r},this,s)}log(e,n,r=x.info,o){let s;Mn(r,cn.http,this)&&(s=Mt("log")),this.logImplementation(e,n,r,o,s)}setContext(e){this.contextManager.setContext(e)}getContext(){return this.contextManager.getContext()}setContextProperty(e,n){this.contextManager.setContextProperty(e,n)}removeContextProperty(e){this.contextManager.removeContextProperty(e)}clearContext(){this.contextManager.clearContext()}addTag(e,n){this.tags.push(me(e,n))}removeTagsWithKey(e){const n=$i(e);this.tags=this.tags.filter(r=>r!==n&&!r.startsWith(`${n}:`))}getTags(){return this.tags.slice()}setHandler(e){this.handlerType=e}getHandler(){return this.handlerType}setLevel(e){this.level=e}getLevel(){return this.level}}kv([of],Lt.prototype,"logImplementation",null);Lt.prototype.ok=Yt(x.ok);Lt.prototype.debug=Yt(x.debug);Lt.prototype.info=Yt(x.info);Lt.prototype.notice=Yt(x.notice);Lt.prototype.warn=Yt(x.warn);Lt.prototype.error=Yt(x.error);Lt.prototype.critical=Yt(x.critical);Lt.prototype.alert=Yt(x.alert);Lt.prototype.emerg=Yt(x.emerg);function Yt(t){return function(e,n,r){let o;Mn(t,cn.http,this)&&(o=Mt("log")),this.logImplementation(e,n,t,r,o)}}function Ss(){return we?{}:{view:{referrer:document.referrer,url:window.location.href}}}const Nv="logs";function Lv(t,e){const n=na(t,Nv,r=>dc(t,r),e);return{findTrackedSession:(r,o={returnInactive:!1})=>{const s=n.findSession(r,o);return s&&s.trackingType==="1"?{id:s.id,anonymousId:s.anonymousId}:void 0},expireObservable:n.expireObservable}}function Pv(t){const n=dc(t)==="1"?{}:void 0;return{findTrackedSession:()=>n,expireObservable:new $}}function dc(t,e){return Dv(e)?e:re(t.sessionSampleRate)?"1":"0"}function Dv(t){return t==="0"||t==="1"}function Mv(t,e,n,r,o,s){const i=xv.concat(["custom"]),a={};i.forEach(c=>{a[c]=An(c,o,s)}),e.subscribe(0,({rawLogsEvent:c,messageContext:u=void 0,savedCommonContext:l=void 0,domainContext:d,ddtags:f=[]})=>{var p,m;const g=jr(c.date),h=l||r(),b=n.triggerHook(0,{startTime:g});if(b===Dt)return;const I=Zr(t),H=Nt({view:h.view},b,c,u,{ddtags:I.concat(f).join(",")});((p=t.beforeSend)===null||p===void 0?void 0:p.call(t,H,d))===!1||H.origin!==Tt.AGENT&&((m=a[H.status])!==null&&m!==void 0?m:a.custom).isLimitReached()||e.notify(1,H)})}const $v={[at.log]:x.info,[at.debug]:x.debug,[at.info]:x.info,[at.warn]:x.warn,[at.error]:x.error};function Uv(t,e){const n=aa(t.forwardConsoleLogs).subscribe(r=>{var o;const s={rawLogsEvent:{date:et(),message:r.message,origin:Tt.CONSOLE,error:r.error&&ar(r.error),status:$v[r.api]},messageContext:(o=r.error)===null||o===void 0?void 0:o.context,domainContext:{handlingStack:r.handlingStack}};e.notify(0,s)});return{stop:()=>{n.unsubscribe()}}}function Bv(t,e){const n=Pi(t,t.forwardReports).subscribe(r=>{let o=r.message,s;const i=r.originalError.type==="deprecation"?x.warn:x.error;i===x.error?s=ar(r):r.stack&&(o+=` Found in ${zp(r.stack)}`),e.notify(0,{rawLogsEvent:{date:et(),message:o,origin:Tt.REPORT,error:s,status:i}})});return{stop:()=>{n.unsubscribe()}}}function Vv(t,e){if(!t.forwardErrorsToLogs)return{stop:z};const n=(we?new $:sa(t)).subscribe(i=>{i.state==="complete"&&s(ie.XHR,i)}),r=rr({responseBodyAction:i=>o(i)?2:0}).subscribe(i=>{i.state==="resolve"&&s(ie.FETCH,i)});function o(i){return!vi(i.url)&&(Fv(i)||Vi(i.status))}function s(i,a){if(!o(a))return;const c="error"in a&&a.error?pn(Re(a.error)):a.responseBody||"Failed to load",u={isAborted:a.isAborted,handlingStack:a.handlingStack};e.notify(0,{rawLogsEvent:{message:`${Hv(i)} error ${a.method} ${a.url}`,date:a.startClocks.timeStamp,error:{stack:fn(c,t.requestErrorResponseLengthLimit,"..."),handling:void 0},http:{method:a.method,status_code:a.status,url:a.url},status:x.error,origin:Tt.NETWORK},domainContext:u})}return{stop:()=>{n.unsubscribe(),r.unsubscribe()}}}function Fv(t){return t.status===0&&t.responseType!=="opaque"}function Hv(t){return ie.XHR===t?"XHR":"Fetch"}function Gv(t,e,n){if(!t.forwardErrorsToLogs)return{stop:z};const r=n.subscribe(o=>{if(o.type===0){const s=o.error;e.notify(0,{rawLogsEvent:{message:s.message,date:s.startClocks.timeStamp,error:ar(s),origin:Tt.SOURCE,status:x.error},messageContext:s.context})}});return{stop:()=>{r.unsubscribe()}}}const zv=oa;function Wv(t){function e(n,r,o,s,i){const a=Nt(r.getContext(),n.context);if(Mn(n.status,cn.console,r)&&Kv(n,a),Mn(n.status,cn.http,r)){const c={rawLogsEvent:{date:i||et(),message:n.message,status:n.status,origin:Tt.LOGGER},messageContext:a,savedCommonContext:s,ddtags:r.getTags()};o&&(c.domainContext={handlingStack:o}),t.notify(0,c)}}return{handleLog:e}}const Xv={[x.ok]:at.debug,[x.debug]:at.debug,[x.info]:at.info,[x.notice]:at.info,[x.warn]:at.warn,[x.error]:at.error,[x.critical]:at.error,[x.alert]:at.error,[x.emerg]:at.error};function Kv({status:t,message:e},n){_e[Xv[t]].call($t,e,n)}function jv(t,e,n,r,o){const s=[t.logsEndpointBuilder];t.replica&&s.push(t.replica.logsEndpointBuilder);const i=ro({encoder:so(),request:eo(s,n),flushController:oo({pageMayExitObservable:r,sessionExpireOb
13servable:o.expireObservable})});return e.subscribe(1,a=>{i.add(a)}),i}function qv(t){const e=Ye();t.subscribe(1,n=>{e.send("log",n)})}function Yv(t){return{get:e=>{const n=t.findTrackedSession(e);if(n)return{session_id:n.id}}}}function Jv(t){return e=>{t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,origin:Tt.AGENT,status:x.error}}),mn("Error reported to customer",{"error.message":e.message})}}function Qv(t){const e=xt;t.register(0,({startTime:o})=>{const s=n(o);return s||pt}),t.register(1,({startTime:o})=>{var s,i;const a=n(o);return a?{application:{id:a.application_id},view:{id:(s=a.view)===null||s===void 0?void 0:s.id},action:{id:(i=a.user_action)===null||i===void 0?void 0:i.id}}:pt});function n(o){const i=nr()?e.DD_RUM_SYNTHETICS:e.DD_RUM,a=r(o,i);if(a)return a}function r(o,s){if(s&&s.getInternalContext)return s.getInternalContext(o)}}function Zv(t,e,n){t.register(0,({startTime:r})=>{const o=n.findTrackedSession(r);return n.findTrackedSession(r,{returnInactive:!0})?{service:e.service,session_id:o?o.id:void 0,session:o?{id:o.id}:void 0}:Dt}),t.register(1,({startTime:r})=>{const o=n.findTrackedSession(r);return!o||!o.id?pt:{session:{id:o.id}}})}function tS(t,e){function n(){return e.isGranted()?pt:Dt}t.register(0,n),t.register(1,n)}const xr="logs";function eS(t,e,n,r,o){const s=new zv,i=[];s.subscribe(1,g=>to("logs",g));const a=Jv(s),c=no(t),u=t.sessionStoreStrategyType&&!Xt()&&!nr()?Lv(t,n):Pv(t);tS(o,n),Zv(o,t,u);const l=ua(o,t,xr),d=da(o,t,u,xr),f=la(o,t,xr,!1);Qv(o),Vv(t,s),Gv(t,s,r),r.unbuffer(),Uv(t,s),Bv(t,s);const{handleLog:p}=Wv(s);if(Mv(t,s,o,e,a),Xt())qv(s);else{const{stop:g}=jv(t,s,a,c,u);i.push(()=>g())}const m=Yv(u);return{handleLog:p,getInternalContext:m.get,accountContext:l,globalContext:f,userContext:d,stop:()=>{i.forEach(g=>g())}}}const nS=Yi,rS=32*qt;function oS(t,e){t.usePciIntake===!0&&t.site&&t.site!=="datadoghq.com"&&A.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");const n=Si(t,e),r=Es(t.forwardConsoleLogs,Nn(at),"Forward Console Logs"),o=Es(t.forwardReports,Nn(We),"Forward Reports");if(!(!n||!r||!o))return t.forwardErrorsToLogs&&!r.includes(at.error)&&r.push(at.error),{forwardErrorsToLogs:t.forwardErrorsToLogs!==!1,forwardConsoleLogs:r,forwardReports:o,requestErrorResponseLengthLimit:rS,...n}}function Es(t,e,n){if(t===void 0)return[];if(!(t==="all"||Array.isArray(t)&&t.every(r=>e.includes(r)))){A.error(`${n} should be "all" or an array with allowed values "${e.join('", "')}"`);return}return t==="all"?e:Om(t)}function sS(t){const e=Ei(t);return{forward_errors_to_logs:t.forwardErrorsToLogs,forward_console_logs:t.forwardConsoleLogs,forward_reports:t.forwardReports,use_pci_intake:t.usePciIntake,...e}}function iS(t,e,n){const r=ca(),o=lo();Tr(o,M.globalContext,r);const s=uo();Tr(s,M.accountContext,r);const i=fo();Tr(i,M.userContext,r);let a,c;const u=nS(),l=e.observable.subscribe(d);function d(){if(!c||!a||!e.isGranted())return;Ji("browser-logs-sdk",c,u),l.unsubscribe();const f=n(a,c,u);r.drain(f)}return{init(f,p){if(!f){A.error("Missing configuration");return}if(Ti(f.enableExperimentalFeatures),Xt()&&(f=aS(f)),a=f,Qi(sS(f)),c){Jn("DD_LOGS",f);return}const m=oS(f,p);m&&(c=m,rr().subscribe(z),e.tryToInit(m.trackingConsent),d())},get initConfiguration(){return a},globalContext:o,accountContext:s,userContext:i,getInternalContext:z,handleLog(f,p,m,g=t(),h=et()){r.add(b=>b.handleLog(f,p,m,g,h))}}}function aS(t){return{...t,clientToken:"empty"}}function cS(){const t=hi(),e=fa().observable;let n=iS(Ss,t,(i,a,c)=>{const u=eS(a,Ss,t,e,c);return n=uS(i,u),u});const r=()=>n,o={},s=new Lt((...i)=>n.handleLog(...i));return Ni({logger:s,init:i=>{const a=new Error().stack;wt(()=>n.init(i,a))},setTrackingConsent:O(i=>{t.update(i),lt({feature:"set-tracking-consent",tracking_consent:i})}),getGlobalContext:K(r,M.globalContext,j.getContext),setGlobalContext:K(r,M.globalContext,j.setContext),setGlobalContextProperty:K(r,M.globalContext,j.setContextProperty),removeGlobalContextProperty:K(r,M.globalContext,j.removeContextProperty),clearGlobalContext:K(r,M.globalContext,j.clearContext),createLogger:O((i,a={})=>(o[i]=new Lt((...c)=>n.handleLog(...c),k(i),a.handler,a.level,k(a.context)),o[i])),getLogger:O(i=>o[i]),getInitConfiguration:O(()=>Qn(n.initConfiguration)),getInternalContext:O(i=>n.getInternalContext(i)),setUser:K(r,M.userContext,j.setContext),getUser:K(r,M.userContext,j.getContext),setUserProperty:K(r,M.userContext,j.setContextProperty),removeUserProperty:K(r,M.userContext,j.removeContextProperty),clearUser:K(r,M.userContext,j.clearContext),setAccount:K(r,M.accountContext,j.setContext),getAccount:K(r,M.accountContext,j.getContext),setAccountProperty:K(r,M.accountContext,j.setContextProperty),removeAccountProperty:K(r,M.accountContext,j.removeContextProperty),clearAccount:K(r,M.accountContext,j.clearContext)})}function uS(t,e){return{init:n=>{Jn("DD_LOGS",n)}
13,initConfiguration:t,...e}}const ge=cS();Li(gt(),"DD_LOGS",ge);const lS=/^(?:uncaught\s+)?"?script error\.?"?$/i,Ts=t=>typeof t=="string"&&lS.test(t.trim()),dS=()=>{if(!Ac()){const t=wo("TAG"),n=wo("DISABLE_DATADOG")===gu.true,r=n?0:5,o=0,s=n?0:100;lc.init({applicationId:"8283985b-90ce-4af3-8ffa-b0e14d303e7d",clientToken:Io,site:"datadoghq.eu",service:"vsf-client",env:window?.location?.host??"nuxt",version:t,sessionSampleRate:r,sessionReplaySampleRate:o,trackUserInteractions:!0,defaultPrivacyLevel:"mask-user-input",silentMultipleInit:!0,beforeSend:u=>!(u.type==="error"&&Ts(u.error?.message))}),ge.init({clientToken:Io,site:"datadoghq.eu",service:"vsf-browser-logs",env:window?.location?.host??"default-env",version:t,forwardConsoleLogs:["warn","error"],forwardErrorsToLogs:!0,sessionSampleRate:s,beforeSend:u=>!Ts(u.message)}),ge.logger.info("Datadog resolved sample rates",{disableDatadog:n,rumSessionSampleRate:r,rumSessionReplaySampleRate:o,logsSessionSampleRate:s});const i=u=>typeof u=="object"&&u!==null?u:{value:u};Ic({debug:(...u)=>ge.logger.debug(String(u[0]),i(u[1])),info:(...u)=>ge.logger.info(String(u[0]),i(u[1])),warn:(...u)=>ge.logger.warn(String(u[0]),i(u[1])),error:(...u)=>ge.logger.error(String(u[0]),i(u[1]))},"info")}};function fS(){let t=null;const e=n=>{n.value=!n.value,n.value&&(t=setTimeout(()=>{n.value=!1},wu))};return Rc(()=>{t&&clearTimeout(t)}),{toggleHintVisibilityComputed:e}}const pS=Q({props:{categories:{type:Array,default:()=>[]},componentCaching:{type:String,default:""},product:{type:Object,default:()=>null}},setup(){const{languageAndCountry:t,countryLocalization:e}=ae(),n=As();kc(()=>({htmlAttrs:{lang:xc(n),itemscope:"itemscope",itemtype:_u.WEB_PAGE}}));const{toggleCartSidebarWithDelay:r}=yu(),{closeCartSidebar:o}=vu(),{mainSearchIndex:s}=Zc(),i=Gr(),a=Nc(),{util:c}=Lc(),{trackSearchResults:u}=Su(),{getAdjustedSlug:l}=zr(),{isThankYouPage:d,isLoginPage:f}=Vn(),{toggleNavigation:p,isNavigationOpen:m}=Wr(),{callViewHitsEvent:g,callClickHitEvent:h}=Tu(),{isMounted:b}=Bs(),{toggleHintVisibilityComputed:I}=fS(),{isWebformModalOpen:H,webformState:D,openWebformModal:yt,closeWebformModal:_}=Cu(),E=ut(!1),L=()=>{I(E)},{cart:X}=Us(),Bt=l(ne.SEARCH),Vt=ut(!1),Jt=N(()=>mu(X.value)),Qt=N(()=>$s.getTotalItems(X.value)),Zt=N(()=>e.value?.isMultiLanguage),de=()=>{Vt.value=!Vt.value},U=G=>{mt(),yt({preselectedReason:G})},V=()=>{mt(),i.push(l(ne.LOGIN))};Pc(()=>a?.path,()=>{o()});const mt=()=>{m.value&&p()},Ot=function(){b.value&&(Qt.value>0?(mt(),r()):L())},dt=()=>{mt(),i.push(l(ne.HOME))},it=({product:G,searchTerm:At})=>{h(G,At)};Xe(()=>{c.initTracker(),dS()});const nt=G=>{G!==""&&u(G)};return{totalItems:Qt,cartTotalPrice:Jt,handleAccountClick:V,searchPageUrl:Bt,toggleNavigation:p,isNavigationOpen:m,homePath:l(ne.HOME),EXPONDO_LOGO_DARK_PATH:bu,EXPONDO_LOGO_DARK_SIMPLE_PATH:hu,isSearchBarOpen:Vt,toggleSearchBar:de,handleCartIconClick:Ot,languageAndCountry:t,mainSearchIndex:s,callViewHitsEvent:g,callClickHitEvent:h,hideNavigation:mt,handleLogoClick:dt,isMultiLanguage:Zt,isThankYouPage:d,onProductClicked:it,searchExecuted:nt,isWebformModalOpen:H,webformState:D,closeWebformModal:_,openContactForm:U,toggleHintVisibility:L,isBoxVisible:E,isLoginPage:f}}}),mS=pe(()=>Ft(()=>import("./B_xdeFzW.js"),__vite__mapDeps([104,105,1,2,106,33,34,35,16,107,108,109,110,22,20,21,4,23,24,18,77,78,79,80,81,82,111,112,113,114,75,115,116,117,97,94,14,15,44,45,46,40,47,48,13,17,19,118,119,120,121,68,26,27,51,43,69,37,41,39,122,123,3,5,124,125]),import.meta.url).then(t=>t.default||t)),gS={class:"header bg-EXPONDO-white flex flex-col lg:z-50"},_S={class:"px-5 lg:px-16 py-2 lg:py-2.5 text-EXPONDO-primary flex w-full justify-between items-center flex-wrap lg:flex-nowrap gap-x-1 gap-y-2"},hS={class:"left-block flex gap-4 order-0 min-w-fit items-center"},bS=["src","aria-label"],yS={class:"right-block flex justify-end order-5 lg:gap-2"},vS={class:"relative flex"};function SS(t,e,n,r,o,s){const i=Gs,a=Wc,c=Tl,u=xl,l=Dc,d=Gl,f=ad,p=md,m=yd,g=Zd,h=mS;return v(),T("header",gS,[y("div",_S,[y("div",hS,[t.isLoginPage?tt("",!0):(v(),Z(i,{key:0,class:"lg:hidden"})),e[0]||(e[0]=S()),C(a,{class:"flex flex-shrink-0","data-testid":"app-header-url_logo",to:t.homePath,onLinkClick:t.handleLogoClick},{default:W(()=>[y("img",{class:"w-20 lg:w-28 h-auto mt-1 lg:mt-0",src:t.EXPONDO_LOGO_DARK_SIMPLE_PATH,alt:"Expondo Logo","aria-label":t.$t("expondo Home Page")},null,8,bS)]),_:1},8,["to","onLinkClick"])]),e[7]||(e[7]=S()),y("div",{class:ot(["lg:flex middle-block header__content lg:px-6 lg:items-center justify-center order-6 lg:order-3 w-full",[t.isSearchBarOpen?"flex":"flex xs:
13hidden"]])},[C(c,{"data-testid":"searchBar",class:"header__search-bar","language-and-country":t.languageAndCountry,"main-search-index":t.mainSearchIndex,onProductClicked:t.onProductClicked,onSearchResultsShown:t.callViewHitsEvent,onSearchBarClicked:t.hideNavigation,onSearch:t.searchExecuted},null,8,["language-and-country","main-search-index","onProductClicked","onSearchResultsShown","onSearchBarClicked","onSearch"])],2),e[8]||(e[8]=S()),y("div",yS,[t.isMultiLanguage?(v(),Z(u,{key:0,onLanguageSwitcherClicked:t.hideNavigation},null,8,["onLanguageSwitcherClicked"])):tt("",!0),e[3]||(e[3]=S()),C(l,{class:ot(["ex-button--pure w-10 max-xs:hidden lg:hidden",{hidden:t.isSearchBarOpen}]),"aria-label":t.$t("Open search bar"),onClick:t.toggleSearchBar},{default:W(()=>[...e[1]||(e[1]=[y("span",{class:"iconify svg--search text-lg relative text-EXPONDO-primary flex items-center"},null,-1)])]),_:1},8,["class","aria-label","onClick"]),e[4]||(e[4]=S()),C(d,{onOpenContactForm:t.openContactForm},null,8,["onOpenContactForm"]),e[5]||(e[5]=S()),C(f,{onHandleAccountClick:t.handleAccountClick,onHideNavigation:t.hideNavigation},null,8,["onHandleAccountClick","onHideNavigation"]),e[6]||(e[6]=S()),y("div",vS,[t.isThankYouPage?tt("",!0):(v(),Z(p,{key:0,class:"w-10 lg:w-auto","is-cart-with-dot":!0,onClick:t.handleCartIconClick},null,8,["onClick"])),e[2]||(e[2]=S()),C(m,{class:"top-[120%] right-0",text:t.$t("Your cart is empty"),"is-visible":t.isBoxVisible},null,8,["text","is-visible"])])])]),e[9]||(e[9]=S()),t.categories.length?(v(),Z(g,{key:0,categories:t.categories,product:t.product,"component-caching":t.componentCaching},null,8,["categories","product","component-caching"])):tt("",!0),e[10]||(e[10]=S()),t.isWebformModalOpen?(v(),Z(h,Mc({key:1},t.webformState,{onClose:t.closeWebformModal}),null,16,["onClose"])):tt("",!0)])}const ES=Object.assign(rt(pS,[["render",SS],["__scopeId","data-v-b0f55f73"]]),{__name:"AppHeader"}),TS=Q({name:"PromoBannerContainer",components:{RenderContent:Rs},setup(){const{load:t}=Ou(),{loadComponent:e,internalCmsContent:n,canShowContent:r}=$c(Co.PROMO_BANNERS.SLUG);return Oo("promo-banner-distinct-products-discount",async()=>(await t([Eu.DISTINCT_PRODUCTS]),"")),Oo(`promo-banner-${Co.PROMO_BANNERS.SLUG}`,async()=>(await e(),"")),{promoBannersContent:n,canShowPromoBanners:r}}}),wS={key:0};function CS(t,e,n,r,o,s){const i=Rs;return v(),T("div",null,[t.canShowPromoBanners?(v(),T("div",wS,[C(i,{content:t.promoBannersContent},null,8,["content"])])):tt("",!0)])}const OS=Object.assign(rt(TS,[["render",CS]]),{__name:"PromoBannerContainer"}),AS=Q({name:"NewsletterSubscriptionWidget",props:{inputId:{type:String,default:"newsletter-widget-input"}},setup(){const t=ut(null),e=ut(!1),n=ut(!1),{voucherValue:r,minimumPurchaseValue:o,canRenderSubscriptionWidget:s,postponeWidgetDisplay:i}=Ru(),{getAdjustedSlug:a}=zr(),{isCheckoutPage:c,isOnNewsletterConfirmationPage:u,isLoginPage:l}=Vn(),d=N(()=>a(ne.PRIVACY)),f=()=>{n.value===!1&&(t.value=null),n.value=!n.value},p=()=>{i(),e.value=!1},m=()=>{n.value?n.value=!1:p()},g=N(()=>!c.value&&!u.value&&!l.value),h=async()=>{e.value=await s()},b=D=>{t.value=D},I=N(()=>e.value&&g.value),H=N(()=>t.value===null&&n.value);return Xe(async()=>{await h()}),{canShowWidget:I,showRight:n,toggleRight:f,rightSideLoading:H,handleCloseClick:m,NEWSLETTER_ACTION_WITH_VOUCHER:Uc,voucherValue:r,minimumPurchaseValue:o,LINK_TYPE:Ms,privacySlug:d,subscriptionProgressData:t,onSubscriptionProgressUpdated:b}}}),IS={key:0,class:ot(["newsletter-subscription-widget max-w-2xl flex flex-row items-stretch rounded-l-md overflow-hidden shadow-lg","fixed top-1/2 right-0 -translate-y-1/2 z-50"])},RS={class:"flex self-center items-center text-EXPONDO-white text-xl leading-5"},kS={key:0,class:"iconify fa-pro-solid--circle-notch animate-spin"},xS={class:"flex items-end justify-center flex-auto"},NS={class:ot(["inline-block text-EXPONDO-white whitespace-nowrap p-0 text-sm font-bold select-none","rotate-180 [writing-mode:vertical-lr] [text-orientation:sideways]"])},LS={key:0,class:"bg-EXPONDO-grey-5"},PS={class:"text-EXPONDO-secondary"},DS={class:"text-xs text-EXPONDO-grey mt-0.5 mb-2.5"},MS={class:"text-base text-EXPONDO-grey mb-5"},$S={class:"text-EXPONDO-red"},US={class:"text-EXPONDO-red text-sm"},BS={class:"text-2xl leading-7 mb-2 text-EXPONDO-grey text-center break-all max-w-max mx-auto"},VS={class:"text-sm text-EXPONDO-grey mb-2 text-center"},FS={class:"text-sm text-EXPONDO-grey mb-2 text-center"};function HS(t,e,n,r,o,s){const i=Au,a=ws("i18n-t"),c=$n,u=Ds,l=Iu;return t.canShowWidget?(v(),T("div",IS,[y("div",{class:ot(["flex flex-col gap-y-5 py-5 w-10 min-w-[40px] cursor-pointer shadow-lg","bg-EXPONDO-secondary text-EXPONDO-white"]),onClick:e[0]||(e[0]=(...d)=>t.toggleRight&&t.toggleRight(...d))},[y("div",RS,[t.rightSideLoading?(v(),T("span",kS)):(v(),Z(i,{key:1,"icon-color-class":"text-EXPONDO-white",onClick:Bc(t.handleCloseClick,["stop"])}
13,null,8,["onClick"]))]),e[2]||(e[2]=S()),y("div",xS,[y("span",NS,[C(a,{keypath:"XX for YOU"},{voucherValue:W(()=>[y("span",null,B(t.voucherValue),1)]),_:1})])])]),e[13]||(e[13]=S()),t.showRight?(v(),T("div",LS,[C(l,{"signup-button-text":t.$t("SIGN ME UP"),"newsletter-action-type":t.NEWSLETTER_ACTION_WITH_VOUCHER,"input-id":t.inputId,"is-subscription-widget":!0,source:"discount-codes-page",onSubscriptionProgressUpdate:t.onSubscriptionProgressUpdated},{header:W(()=>[C(a,{keypath:"DO YOU WANT A XX DISCOUNT?",tag:"h3",class:"text-2xl leading-7 text-EXPONDO-grey"},{voucherValue:W(()=>[y("span",PS,B(t.voucherValue),1)]),_:1}),e[3]||(e[3]=S()),y("p",DS,[C(a,{keypath:"*suitable for a minimum basket value of XX"},{minimumPurchaseValue:W(()=>[y("span",null,B(t.minimumPurchaseValue),1)]),_:1})]),e[4]||(e[4]=S()),y("p",MS,B(t.$t("Sign up to our newsletter and receive the discount code!")),1)]),"error-details":W(({error:d})=>[y("p",$S,B(d),1)]),"newsletter-error":W(()=>[y("p",US,B(t.$t("newsletterError")),1)]),"thank-you":W(()=>[y("h3",BS,[C(a,{keypath:"Hey customer,"},{customerMaskedEmail:W(()=>[y("span",null,B(t.subscriptionProgressData.emailMasked),1)]),_:1})]),e[5]||(e[5]=S()),C(c,{src:"/newsletter/newsletter-mobile.png",width:"160",alt:t.$t("It’s time to GET IT DONE with expondo.").toString(),"img-classes":"mx-auto w-auto my-4 text-center"},null,8,["alt"]),e[6]||(e[6]=S()),y("p",VS,[C(a,{keypath:"Confirm your newsletter subscription via the email we sent to receive your XX voucher."},{voucherValue:W(()=>[y("span",null,B(t.voucherValue),1)]),_:1})]),e[7]||(e[7]=S()),y("p",FS,B(t.$t("It’s time to GET IT DONE with expondo.")),1)]),privacy:W(()=>[y("button",{class:"my-2 text-base underline text-EXPONDO-secondary cursor-pointer text-left",onClick:e[1]||(e[1]=(...d)=>t.toggleRight&&t.toggleRight(...d))},B(t.$t("I don’t want discounts or exclusive content")),1),e[8]||(e[8]=S()),C(a,{keypath:"Newsletter floating widget privacy policy",tag:"p",class:"text-xs"},{privacyPolicy:W(()=>[C(u,{text:t.$t("Newsletter Privacy Policy"),url:t.privacySlug,type:t.LINK_TYPE.NoStyle,class:"underline"},null,8,["text","url","type"])]),_:1})]),_:1},8,["signup-button-text","newsletter-action-type","input-id","onSubscriptionProgressUpdate"])])):tt("",!0)])):tt("",!0)}const GS=Object.assign(rt(AS,[["render",HS]]),{__name:"NewsletterSubscriptionWidget"}),ZE=Q({__name:"no-footer-layout",props:{fullWidth:{type:Boolean},categoriesContainer:{},product:{}},setup(t){const e=pe(()=>Ft(()=>import("./L9MXUVu6.js"),__vite__mapDeps([126,1,2,127,128,12,22,20,21,4,23,24,129,18,13,14,15,16,17,19,106,7,8,9,10,59,52,31,47,56,30,130,131,132,35,3,5,6,11,25,26,27,28,29,32,33,34,36,37,38,39,40,41,42,43,44,45,46,48,49,50,51,53,54,55,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,133]),import.meta.url)),n=pe(()=>Ft(()=>import("./DCVW66uB.js"),__vite__mapDeps([134,135,16,1,2]),import.meta.url)),r=pe(()=>Ft(()=>import("./y_tHI4GD.js"),__vite__mapDeps([136,137,68,1,2,26,27,51,43,14,69,37,41,39,40,138,49,15,16,42,34,44,45,46,47,48,75,139,140,59,20,21,32,141,53,128,12,142,121,78,79,80,81,122,23,17,18,143,64,65,62,31,63,13,19,66,61,35,67,70,144,145,146,147,148,149,150,77,82,151,36,22,4,24,74,152,153,154,155,156,157,158,98,159,160,161,162,163,29,30,56,164,57,165,166,167,99,54,55,10,168,7,8,9,169,170,171,172,113,114,115,173,129,111,112,116,117,97,94,118,101,72,102,174]),import.meta.url)),o=pe(()=>Ft(()=>import("./BwcZ_lmo.js"),__vite__mapDeps([175,140,1,2,59,22,20,21,4,23,24,155,156,157,40,158,98,53,141,128,12,142,176,177,79,80,178,179,51,43,143,64,44,34,45,14,46,47,48,65,62,31,63,16,13,15,17,18,19,66,67,165,68,26,27,69,37,41,39,61,35,70,145,172,113,114,75,115,173]),import.meta.url)),s=pe(()=>Ft(()=>import("./DvjrFRWW.js"),__vite__mapDeps([180,20,1,2,21,148,149,150,162,181]),import.meta.url)),i=pe(()=>Ft(()=>import("./BeQK5mXt.js"),__vite__mapDeps([182,124,5,1,2,112,113,114,75,115,116,33,34,35,16,13,14,15,17,18,19]),import.meta.url)),a=t,c=N(()=>a.categoriesContainer??[]),u=N(()=>a.product??null),{isConfirmationPopupOpen:l,checkIfShouldShowConfirmationPopup:d}=nu(),{countryLocalization:f,languageAndCountry:p}=ae(),m=N(()=>c.value?.[0]?.children||[]),g=f.value.topLevelDomain;return Xe(()=>{d()}),(h,b)=>{const I=ju,H=ES,D=OS,yt=GS;return v(),Z(ku,null,{header:W(()=>[C(q(n)),b[0]||(b[0]=S()),C(I),b[1]||(b[1]=S()),C(H,{categories:q(m),product:q(u)},null,8,["categories","product"]),b[2]||(b[2]=S()),C(D),b[3]||(b[3]=S()),C(q(e),{"categories-container":q(c),"top-level-domain":q(g),"language-and-country":q(p)},null,8,["categories-container","top-level-domain","language-and-country"])]),content:W(()=>[C(q(o)),b[4]||(b[4]=S()),C(q(r)),b[5]||(b[5]=S()),C(q(s)),b[6]||(b[6]=S()),q(l)?(v(),Z(q(i),{key:0})):tt("",!0)]),default:W(()=>
13[b[7]||(b[7]=S()),C(yt),b[8]||(b[8]=S()),Is(h.$slots,"default"),b[9]||(b[9]=S())]),_:3})}}});export{go as $,Pt as A,Ua as B,Or as C,je as D,Et as E,J_ as F,XE as G,Ea as H,VE as I,KE as J,q_ as K,Y_ as L,$a as M,P as N,GE as O,WE as P,_o as Q,F as R,Ae as S,zE as T,et as U,Mb as V,jE as W,Kt as X,sr as Y,I_ as Z,ZE as _,Wr as a,Eo as a0,$ as a1,zn as a2,se as a3,$b as a4,z as a5,Ut as a6,HE as a7,Qm as a8,qg as a9,O as aa,to as ab,JE as ac,qE as ad,YE as ae,QE as af,pm as ag,bt as ah,tr as ai,Ye as aj,Xt as ak,$E as b,Lu as c,UE as d,BE as e,eo as f,Sd as g,mn as h,Zr as i,ze as j,cf as k,Qe as l,Bo as m,Oe as n,Kn as o,FE as p,st as q,gt as r,A as s,ht as t,Nu as u,Y as v,Rt as w,J as x,ei as y,Ce as z};
14//# sourceMappingURL=XV_cHsLr.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.