PageSourceSearch

https://mutigers.com/_nuxt/B44e1KoL.js

js mutigers.com collected 2026-09-24 07:57:49 UTC 1,204,093 bytes, 282 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C6y83HDY.js","./8ptZSwJs.js","./B7ix9xIb.js","./DKgyLr-x.js","./DijQhZHw.js","./BL2ITyfb.js","./DmP5lFlL.js","./BrxWcZ-r.js","./CVGoBl_5.js","./Cpgn-24q.js","./CY9Y7Gg0.js","./BnDGJzJP.js","./xV5kdmqy.js","./D7l1aVSe.js","./CSFhOlwB.js","./DJ9c12f6.js","./C78u7Ted.js","./D7UzhVcj.js","./tljiGYUa.js","./CkPpyg_g.js","./h6tQKUwG.js","./DWYjQ-4C.js","./Dkxg1h7A.js","./ClIlAxyk.js","./DcLWULOw.js","./D2kPpuG2.js","./VgHhlDx3.js","./DiR8dr7a.js","./DQnSTZJK.js","./VFiqQ9CF.js","./DHWUqggL.js","./BK2eJEws.js","./cGFlT-z1.js","./Cuo92Xhk.js","./DGh7LRYj.js","./DngfkvDl.js","./Bjj_GxmK.js","./BZOcwvWy.js","./Bz9JpkJ6.js","./CiAvTTJX.js","./Placement.D4K79jTW.css","./Bw_upqSJ.js","./BDzP9L6q.js","./DnqZ_IXz.js","./BX234Zjx.js","./BLqOWLcI.js","./Bytsb4-g.js","./BaBn8hku.js","./Dr9Mj7YC.js","./DRce9MO7.js","./SujrGkHa.js","./anB43idy.js","./Dho57Rmj.js","./RP7R78tH.js","./Cj_5uyCE.js","./D80aP6z2.js","./Ctz0v2jQ.js","./Index.BIqofKZd.css","./DbOp5f_k.js","./DzOmDeJy.js","./D_rmT2XV.js","./C2AXw3Fm.js","./YF9-kThw.js","./CjQKk_c3.js","./CYmu8vOv.js","./CVk14qqA.js","./hPyd9p1U.js","./D6hZiorI.js","./CXPfTggs.js","./D0lccCD2.js","./BdNduUUd.js","./B5DS_zrK.js","./Index.DsxGBIcv.css","./DDeRLhaq.js","./BgXa62Eb.js","./BbqemU6d.js","./Image.BepuqyHC.css","./D6AqV_PM.js","./CiXkt2fg.js","./Container.CnkaQmYr.css","./DJbc9sk7.js","./Index.-uBQ46mc.css","./aQymQtfH.js","./CiuFdNCx.js","./BHsv68HE.js","./D3rT-J2b.js","./Skeleton.DfSR3FLV.css","./6acYnt9h.js","./CZ1OiPZP.js","./GMv2tIWi.js","./BuipuH-p.js","./39jBMuGs.js","./DH-kLfQS.js","./GRuIgg8P.js","./B1RSOVbU.js","./RhPeIKR_.js","./Links.DGrjvZcd.css","./Bc7-RdoK.js","./DbX55ww7.js","./Link.BFLKg-bG.css","./CVOvJocu.js","./p_gMq5bN.js","./Location.BH22SkdQ.css","./Cfst0nnj.js","./CjyEiQCZ.js","./EmbedHtml.B0Qtpe77.css","./Bxm1xgvi.js","./PresentedBy.BGP75ef8.css","./UU1Nj45T.js","./SportLinks.C3N9PDfM.css","./Item.DIgYsW1G.css","./B3_Frvta.js","./EventsList.CJ8o9k1F.css","./BYs2pAz2.js","./CeXhADyv.js","./CiKXRBwM.js","./Dm3zWfBY.js","./Ad.M-DblZ__.css","./ZjuPk9cC.js","./DcON6yCy.js","./Index.DjEvJOiB.css","./CTvbrdCC.js","./all-sports-schedule.U1AglunF.css","./MVeXQW1a.js","./DkzADmRK.js","./ZP0ykXum.js","./D5bdEdst.js","./Index.MZ-VwpkK.css","./BNZKUCKe.js","./DE_MZ652.js","./Preloader.B8tL3fT8.css","./CJ0IIc-Z.js","./broadcast-guide.HVnM3Etw.css","./CM-va1lO.js","./CokSDYVY.js","./Cn7DvEpH.js","./DlqEVSh0.js","./CNM6VeKj.js","./CIEAJGZ9.js","./CVjJD47k.js","./DKKJZBQN.js","./ConsentPlaceholder.6tHSP0t5.css","./WmtVideoEmbed.CImVUWhg.css","./9BcgmP88.js","./cSgGruz0.js","./YoutubeVideoEmbed.F7dnbHYN.css","./Dz2BY-5j.js","./Dj3HSzuc.js","./FacebookVideoEmbed.DUh061pH.css","./BKXZvbiU.js","./DH4Q3RLg.js","./StreamVideoEmbed.Cw6TdHCy.css","./D1UuqSK2.js","./FanIdGatedIndicator.mGCpHxoI.css","./Btk8n3ej.js","./OMi2G7T-.js","./DzdOTTFk.js","./DAnhCXiu.js","./_E2l9Gaz.js","./m28XZRDz.js","./EmbedIframe.BcoSAxgC.css","./CfFfpK1R.js","./Index.BmpIvvJ2.css","./D_eWOXCP.js","./Inspector.C_lq3u3C.css","./CYanrEsb.js","./BMEOzdDY.js","./BjD8Pcq4.js","./CtPNfCUU.js","./CzOj3GLo.js","./9ut5WLDl.js","./BYIe65Ny.js","./OKqmmrNh.js","./D5fJLM6J.js","./Dwcw0oQV.js","./CCCW5L-P.js","./StickyWrapper.Bf2fwNrd.css","./useSafeFetch.DFLWqZ7L.css","./BheZAt7f.js","./D1QfCPL_.js","./Barxed8q.js","./COgfXbk8.js","./Dw8cvGyQ.js","./COdAPI2U.js","./BVMY8_uD.js","./DownloadPdfButton.CNxc47Tq.css","./Boxscore.CwjVcDZ0.css","./_id_.BOuJpCqb.css","./Bc2Hfuvh.js","./sQGHGOVa.js","./BPgOLFq9.js","./BYYyBSDW.js","./gTxoDQ7s.js","./SectionHeader.Ap5moWyX.css","./CDAoleX-.js","./DnXbOpfo.js","./C-3WtvV-.js","./CIVizx7Q.js","./Pagination.B-zfE_EB.css","./Page.COE8BPQx.css","./BJT4Xp50.js","./Dz0_fINI.js","./DYp7KIF1.js","./D-_LvZN9.js","./useRouteOwnership.BSdEXGAu.css","./_Z4mjKo2.js","./D9dL6KvP.js","./Cp0ppfN2.js","./6J4l6EOM.js","./DMrAFGVk.js","./DipRBmwD.js","./mb34Fv1T.js","./D7moYRfN.js","./9g1V5_0e.js","./search.DIOCZf__.css","./DpFJIEKj.js","./D71mxzAH.js","./Bh1pl1dj.js","./BHBdpxtX.js","./D78pWT9_.js","./CSFSMNtU.js","./CSYtpL_B.js","./WvH8R2OD.js","./e2eY9vDC.js","./DS_-S5Dx.js","./DDRJtbhc.js","./DS24t1pA.js","./CZe9BD8b.js","./CdDgA5z0.js","./CwF30Fkf.js","./Index.Da_8wnfm.css","./DcOCpmF8.js","./DEkFuF_n.js","./CIgQzURL.js","./BgKKnkNv.js","./DjUBqUPB.js","./CwmLghuv.js","./Cpng7NUi.js","./Scrubber.CfwikmJW.css","./useSort.ICgG-Sze.css","./Table.B_P371LD.css","./CqOThCyg.js","./gA1HFAaR.js","./DkJTeZHH.js","./BMelv0-U.js","./DwMYYZ9G.js","./DEt_t1e3.js","./useRosterPlayers.CijDOzwj.css","./Index.De5DsxEm.css","./Da_8hj9S.js","./D7CxfgKY.js","./all.DCs3Stgo.css","./C9LI_vBi.js","./2ZGMaQQW.js","./B_f1GOhk.js","./BxuSoFiw.js","./B_AIVWIX.js","./Crhv3xaQ.js","./Tabs.C-zQF1cq.css","./CGzxbOLf.js","./dist.7jFT3cUL.css","./Page.Cc2Zs5zf.css","./Bh01Lqjy.js","./Ds9krt3h.js","./COuDVzDM.js","./BFOl78TU.js","./iTbTDJyL.js","./i_XVQ7hz.js","./CzLviAfC.js","./M935n0gh.js","./Dn74mJmw.js","./G3Yz9V42.js","./B1ayn3Ye.js","./StaffBio.Izw6LY0p.css","./CfSCG-BH.js","./BsjkM2LH.js","./D_Lc8o3O.js","./_YSdjm-7.js","./dhex9U3g.js","./Schedule.BaKox69I.css","./BVNnZc9R.js","./W2v7W3Lo.js","./CXQNGxtA.js","./BFag_7Tk.js","./CFniKt31.js","./CZHqs6Bb.js","./Page.Cp6ahI4C.css","./ChJid82v.js","./DfQe7BE1.js","./DuhgcvMk.js","./Q5GbLmuL.js","./Ehzzq6Rw.js","./Modal.B784ey4n.css","./DRQVfIzP.js","./CpWXJbY0.js","./useVideoModal.DygKJISq.css","./Page.B6_NrsQu.css","./BGTWYXNA.js","./DLiyRob2.js","./Page.c5bCu76U.css","./D17i3Pxv.js","./6IkQOyYP.js","./DfoVcfd4.js","./Jkaqh4bR.js","./DEX6Ub-v.js","./Page.XI7OHFku.css","./Q4ADjXUu.js","./CXTBPIW3.js","./DdBtFXGf.js","./BlseEZ5I.js","./_Q1sFsRz.js","./BupJl7rK.js","./iB6SzZnN.js","./CdNjveDY.js","./B5YcF8AT.js","./audio.aov-pVF7.css","./C9nS7R-G.js","./C9klmiUk.js","./TVa2B2Eu.js","./Theme.CclwmwaA.css","./B8v0k0ab.js","./usePodcastPlaylist.CuCQLY7p.css","./_id_.B4rM4TtH.css","./DFJLeTT3.js","./3OjtGmJo.js","./GalleryImageGrid.DvclZvWG.css","./HbHE2F6F.js","./B4Mtyamw.js","./useGalleryViewer.AY3pyS07.css","./_slug_.BKOoHKkY.css","./BIZjhnSB.js","./Bq2PmqPE.js","./gtLHc4dl.js","./Hs_xXXTr.js","./_id_.C8bVEeMW.css","./BUdOjesx.js","./Dk3QbcCt.js","./Dx5EJjXg.js","./5I0i0aL1.js","./BuOIraKb.js","./CfKbCZE0.js","./CWg4kJtY.js","./_id_.CoFIbD_P.css","./D-QU_Ppy.js","./Bod_CZ-w.js","./CfaFHC_j.js","./CaMK7KvL.js","./D24TOm5d.js","./CYJ_Mmq6.js","./Scrubber.-kFiOpXb.css","./MainLayout.BbK6enrc.css","./default.DPX_4mls.css","./DLEolefg.js","./BYld6Qv-.js","./Header.Dwr6Tbjj.css","./5P-PB-vP.js","./xhdzfjPJ.js","./Co5A4-cT.js","./Index.D_3g0qRB.css"])))=>i.map(i=>d[i]);
2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:astra-oas-frontend":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9c034da4-b37a-4063-b6a2-42bc3a1957bd`,e._sentryDebugIdIdentifier=`sentry-dbid-9c034da4-b37a-4063-b6a2-42bc3a1957bd`)}catch{}})();import{r as e,t}from"./CVGoBl_5.js";import{_ as n,a as r,b as i,d as a,g as o,h as s,i as c,l,m as u,n as d,o as f,p,r as m,s as h,t as g,u as _,v,y}from"./B7ix9xIb.js";import{$ as b,A as x,C as S,D as C,E as w,Ft as T,G as E,H as D,I as O,J as k,L as A,M as j,N as M,O as N,P,R as F,S as I,St as L,T as R,U as z,V as B,_t as V,b as H,ct as U,dt as W,et as ee,f as G,ft as te,gt as ne,ht as re,i as ie,j as K,l as ae,lt as q,m as oe,mt as se,nt as ce,o as le,ot as ue,p as de,pt as fe,r as pe,tt as me,u as J,vt as he,x as ge,xt as _e,yt as ve,z as Y}from"./DKgyLr-x.js";import{n as ye,r as be}from"./DmP5lFlL.js";import{t as xe}from"./DijQhZHw.js";import{A as Se,D as Ce,M as we,N as X,O as Te,_ as Ee,a as De,c as Oe,f as ke,g as Ae,h as je,i as Me,j as Ne,l as Pe,m as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be,u as Ve,v as He,w as Ue,x as We,y as Ge}from"./8ptZSwJs.js";import{A as Ke,B as qe,C as Je,D as Ye,E as Xe,F as Ze,G as Qe,H as $e,I as et,K as tt,L as nt,M as rt,N as it,O as at,P as ot,R as st,S as ct,U as lt,V as ut,W as dt,Y as ft,_ as pt,b as mt,c as ht,d as gt,f as _t,g as vt,h as yt,j as bt,k as xt,l as St,m as Ct,n as wt,o as Tt,p as Et,q as Dt,s as Ot,t as kt,u as At,v as jt,w as Mt,x as Nt,y as Pt,z as Ft}from"./BL2ITyfb.js";import{t as It}from"./BnDGJzJP.js";import{n as Lt,t as Rt}from"./CY9Y7Gg0.js";import{n as zt,t as Bt}from"./xV5kdmqy.js";import{a as Vt,c as Ht,d as Ut,f as Wt,i as Gt,l as Kt,o as qt,s as Jt,t as Yt,u as Xt}from"./Cpgn-24q.js";import{t as Zt}from"./CSFhOlwB.js";import{a as Qt,b as $t,c as en,d as tn,f as nn,h as rn,i as an,l as on,m as sn,n as cn,p as ln,r as un,s as dn,t as fn,v as pn}from"./DJ9c12f6.js";import{_ as mn,a as hn,b as gn,c as _n,f as vn,i as yn,n as bn,p as xn,s as Sn,t as Cn,u as wn,v as Tn,y as En}from"./C78u7Ted.js";import{t as Dn}from"./D7l1aVSe.js";import{t as Z}
2from"./D7UzhVcj.js";import{a as On,i as kn,n as An,r as jn,t as Mn}from"./DcLWULOw.js";import{t as Nn}from"./tljiGYUa.js";import{n as Pn,t as Fn}from"./CkPpyg_g.js";import{t as In}from"./h6tQKUwG.js";import{n as Ln}from"./DWYjQ-4C.js";import{i as Rn}from"./ClIlAxyk.js";import{r as zn,t as Bn}from"./D2kPpuG2.js";import"./VgHhlDx3.js";import{c as Vn,r as Hn,t as Un}from"./BrxWcZ-r.js";import{$ as Wn,$t as Gn,A as Kn,At as qn,B as Jn,Bt as Yn,C as Xn,Ct as Zn,D as Qn,Dt as $n,E as er,Et as tr,F as nr,Ft as rr,G as ir,Gt as ar,H as or,Ht as sr,I as cr,It as lr,J as ur,Jt as dr,K as fr,Kt as pr,L as mr,Lt as hr,M as gr,Mt as _r,N as vr,Nt as yr,O as br,Ot as xr,P as Sr,Pt as Cr,Q as wr,Qt as Tr,R as Er,Rt as Dr,S as Or,St as kr,T as Ar,Tt as jr,U as Mr,Ut as Nr,V as Pr,Vt as Fr,W as Ir,Wt as Lr,X as Rr,Xt as zr,Y as Br,Yt as Vr,Z as Hr,Zt as Ur,_ as Wr,_t as Gr,a as Kr,an as qr,at as Jr,b as Yr,bt as Xr,c as Zr,cn as Qr,ct as $r,d as ei,dt as ti,en as ni,et as ri,f as ii,ft as ai,g as oi,gt as si,h as ci,ht as li,i as ui,in as di,it as fi,j as pi,jt as mi,k as hi,kt as gi,l as _i,ln as vi,lt as yi,m as bi,mt as xi,n as Si,nn as Ci,nt as wi,o as Ti,on as Ei,ot as Di,p as Oi,pt as ki,q as Ai,qt as ji,r as Mi,rn as Q,rt as Ni,s as Pi,sn as Fi,st as Ii,t as Li,tn as Ri,tt as zi,u as Bi,un as Vi,ut as Hi,v as Ui,vt as Wi,w as Gi,wt as Ki,x as qi,xt as Ji,y as Yi,yt as Xi,z as Zi,zt as Qi}from"./DQnSTZJK.js";import{i as $i,l as ea,o as ta,s as na,t as ra,u as ia}from"./VFiqQ9CF.js";import{O as aa,p as oa,v as sa,y as ca}from"./DHWUqggL.js";import{E as la,m as ua,w as da}from"./BK2eJEws.js";import{t as fa}from"./DiR8dr7a.js";import{a as pa,c as ma,i as ha,n as ga,r as _a,s as va,t as ya}from"./BDzP9L6q.js";import{n as ba}from"./DGh7LRYj.js";import{c as xa,o as Sa,s as Ca}from"./DngfkvDl.js";import{n as wa,t as Ta}from"./D_rmT2XV.js";import{t as Ea}from"./Cn7DvEpH.js";import"./Barxed8q.js";import{n as Da,t as Oa}from"./D80aP6z2.js";import{t as ka}from"./hPyd9p1U.js";import{t as Aa}from"./RP7R78tH.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),`global`in globalThis||(globalThis.global=globalThis);var ja=i({docsBase:v,reporters:y});function Ma(e,t){return t&&typeof e==`function`&&(e.key=t),e}var Na=/\\/g,Pa=/</g,Fa=/"/g,Ia=/%\w+(?:\.\w+)?/g,La=`%separator`;function Ra(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0)return n?(r||``).replace(Na,`\\\\`).replace(Pa,`\\u003C`).replace(Fa,`\\"`):r||``}function za(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(Ia);if(!a)return e;let o=e.includes(La);return e=e.replace(Ia,e=>{if(e===La||!a.includes(e))return e;let n=Ra(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(La).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var Ba=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Va=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),Ha=Ma({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=Va(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=Va(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Ba))}}}),Ua=Ma({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),`body`
2in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function Wa(e){return typeof e?.then==`function`}var Ga=256;function Ka(e,t){if(t===e.length)return;if(t===Ga){let n=Array(e.length),r=!1;for(;t<e.length;t++){let i=Ja(e[t]);n[t]=i,r||=Wa(i)}return r?n:void 0}let n=Ja(e[t]);if(Wa(n)){let r=Array(e.length);r[t]=n;for(let n=t+1;n<e.length;n++)r[n]=Ja(e[n]);return r}let r=Ka(e,t+1);return r&&(r[t]=n),r}function qa(e,t,n){if(n===t.length)return;if(n===Ga){let r=Array(t.length),i=!1;for(;n<t.length;n++){let a=Ja(e[t[n]]);r[n]=a,i||=Wa(a)}return i?r:void 0}let r=Ja(e[t[n]]);if(Wa(r)){let i=Array(t.length);i[n]=r;for(let r=n+1;r<t.length;r++)i[r]=Ja(e[t[r]]);return i}let i=qa(e,t,n+1);return i&&(i[n]=r),i}function Ja(e){if(typeof e==`function`)return e;if(Wa(e))return Promise.resolve(e).then(Ja);if(Array.isArray(e)){let t=Ka(e,0);return t?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=qa(e,t,0);if(n)return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var Ya=Ma(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=Ja(a);if(!Wa(o)){t.delete(i);continue}t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})}}}}},`promises`),Xa={meta:`content`,link:`href`,htmlAttrs:`lang`},Za=[`innerHTML`,`textContent`];function Qa(e,t,n,r=!1){return typeof e==`string`&&e.includes(`%`)?za(e,t,n,r):e}var $a=Ma(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=Qa(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=Xa[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=Qa(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of Za)typeof e[t]==`string`&&(e[t]=Qa(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Qa(n.textContent,e._templateParams,e._separator))}}}),`template-params`),eo=new Set([`link`,`style`,`script`,`noscript`]),to=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),no=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),ro=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),io=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),ao=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),oo=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),so=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),co={critical:-8,high:-1,low:2},lo=e=>typeof e==`number`?Number.isFinite(e):e;function uo(e){return e===`__proto__`||e===`constructor`||e===`prototype`}var fo=[`twitter`,`fediverse`],po=[`og`,`book`,`article`,`profile`,`fb`,`payment`],mo=[`ogImage`,`ogVideo`,`ogAudio`,`twitterImage`],ho=[`contentType`,`defaultStyle`,`xUaCompatible`],go={articleExpirationTime:`article:expiration_time`,articleModifiedTime:`article:modified_time`,articlePublishedTime:`article:published_time`,bookReleaseDate:`book:release_date`,fbAppId:`fb:app_id`,ogAudioSecureUrl:`og:audio:secure_url`,ogAudioUrl:`og:audio`,ogImageSecureUrl:`og:image:secure_url`,ogImageUrl:`og:image`,ogSiteName:`og:site_name`,ogVideoSecureUrl:`og:video:secure_url`,ogVideoUrl:`og:video`,paymentExpiresAt:`payment:expires_at`,paymentSuccessUrl:`payment:success_url`,profileFirstName:`profile:first_name`,profileLastName:`profile:last_name`,profileUsername:`profile:username`,msapplicationConfig:`msapplication-Config`,msapplicationTileColor:`msapplication-TileColor`,msapplicationTileImage:`msapplication-TileImage`},_o=/([A-Z])/g,vo=/^(?:og|twitter)/,yo={appleItunesApp:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>`${bo(e)}=${t}`}},refresh:{metaKey:`http-equiv`,unpack:{entrySeparator:`;`,resolve:({key:e,value:t})=>e===`seconds`?`${t}`:void 0}},robots:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>typeof t==`boolean`?bo(e):`${bo(e)}:${t}`}},contentSecurityPolicy:{metaKey:`http-equiv`,unpack:{entrySeparator:`; `,resolve:({key:e,value:t})=>`${bo(e)} ${t}`}},charset:{}};function bo(e){let t=e.replace(_o,`-$1`).toLowerCase(),n=t.indexOf(`-`);return n===-1?t:fo.includes(t.slice(0,n))||po.includes(t.slice(0,n))?e.replace(_o,`:$1`).toLowerCase():t}function xo(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>String(t)!==`false`&&e))}function So(e){return Array.isArray(e)?e.map(So):!e||typeof e!=`object`?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[bo(e),So(t)]))}function Co(e,t={}){let{entrySeparator:n=``,keyValueSeparator:r=``,wrapValue:i,resolve:a}=t;return Object.entries(e).map(([e,n])=>{if(a){let t=a({key:e,value:n});if(t!==void 0)return t}
2let o=typeof n==`object`?Co(n,t):typeof n==`number`?n.toString():typeof n==`string`&&i?`${i}${n.replace(new RegExp(i,`g`),`\\${i}`)}${i}`:n;return`${e}${r}${o}`}).join(n)}function wo(e,t){let n=xo(t),r=bo(e),i=To(r);return so.has(r)?Oo(Object.fromEntries(Object.entries(n).map(([t,n])=>[`${e}${t===`url`?``:`${t[0].toUpperCase()}${t.slice(1)}`}`,n]))||{}).sort((e,t)=>(e[i]?.length||0)-(t[i]?.length||0)):[{[i]:r,...n}]}function To(e){if(yo[e]?.metaKey===`http-equiv`||ho.includes(e))return`http-equiv`;let t=bo(e),n=t.indexOf(`:`);return n===-1?`name`:po.includes(t.slice(0,n))?`property`:`name`}function Eo(e){return go[e]||bo(e)}function Do(e,t){return t===`refresh`?`${e.seconds};url=${e.url}`:Co(So(e),{keyValueSeparator:`=`,entrySeparator:`, `,resolve:({value:e,key:t})=>e===null?``:typeof e==`boolean`?t:void 0,...yo[t]?.unpack})}function Oo(e){let t=[],n={};for(let[r,i]of Object.entries(e)){if(Array.isArray(i)){if(r===`themeColor`){i.forEach(e=>{typeof e==`object`&&e&&t.push({name:`theme-color`,...e})});continue}for(let e of i)if(typeof e==`object`&&e){let n=[],i=[];for(let[t,a]of Object.entries(e)){let e=Oo({[`${r}${t===`url`?``:`:${t}`}`]:a});(t===`url`?n:i).push(...e)}t.push(...n,...i)}else t.push(...typeof e==`string`?Oo({[r]:e}):wo(r,e));continue}if(typeof i==`object`&&i){if(mo.includes(r)){let e=r.startsWith(`twitter`)?`twitter`:`og`,n=r.replace(vo,``).toLowerCase(),a=e===`twitter`?`name`:`property`;i.url&&t.push({[a]:`${e}:${n}`,content:i.url}),i.secureUrl&&t.push({[a]:`${e}:${n}:secure_url`,content:i.secureUrl});for(let[r,o]of Object.entries(i))r!==`url`&&r!==`secureUrl`&&t.push({[a]:`${e}:${n}:${r}`,content:o})}else so.has(bo(r))?t.push(...wo(r,i)):n[r]=xo(i)}else n[r]=i}let r=Object.entries(n).map(([e,t])=>{if(e===`charset`)return{charset:t===null?`_null`:t};let n=To(e),r=Eo(e),i=t===null?`_null`:typeof t==`object`?Do(t,e):typeof t==`number`?t.toString():t;return n===`http-equiv`?{"http-equiv":r,content:i}:{[n]:r,content:i}});return[...t,...r].map(e=>`content`in e&&e.content===`_null`?{...e,content:null}:e)}var ko=Ma({key:`flatMeta`,hooks:{"entries:normalize":e=>{let t=!1,n=[],r=[];for(let i of e.tags){if(i.tag!==`_flatMeta`){n.push(i);continue}t=!0;for(let e of Oo(i.props))r.push({...i,tag:`meta`,props:e})}if(t){for(let e of r)n.push(e);e.tags=n}}}});function Ao(e){let t=new o;for(let n in e||{})t.hook(n,e[n]);return t}function jo(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}var Mo=/^(?:viewport|description|keywords|robots)$/,No=[`name`,`property`,`http-equiv`];function Po(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return so.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function Fo(e){let{props:t,tag:n,key:r}=e;if(io.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of No){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!Mo.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:to.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function Io(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return t;let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function Lo(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=Lo(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=uo(n),a=i?void 0:Lo(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var Ro=/[\s"'<>/=\x00-\x1F\x7F]/;function zo(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}
2else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function Bo(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=no.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(uo(r))continue;let i=r.startsWith(`data-`),a=n&&!ao.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||Ro.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=zo(r,s);else if(ao.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function Vo(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),Lo(e,n)}function Ho(e,t){let n=Bo({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&eo.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function Uo(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function Wo(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=Vo(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0){if(Array.isArray(r))for(let e of r)Uo(n,Ho(t,e));else Uo(n,Ho(t,r))}}return n}var Go=/</g,Ko=/<\/script/g,qo=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Jo=()=>100;function Yo(e){for(let t in e)return!1;return!0}var Xo=/^tags:|:render/;function Zo(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function Qo(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function $o(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(qo)}function es(e){let t=!1;for(let n of e.tags.sort(qo)){let r=n._d||Io(n);if(!r)continue;let i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(oo.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&Po(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function ts(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function ns(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(!(!ro.has(i)||Yo(a)&&!lo(r)&&!lo(n.textContent))&&!(i===`meta`&&!lo(a.content)&&!a[`http-equiv`]&&!a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(Go,`\\u003C`):typeof e==`string`?e.replace(Ko,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=Fo(n)}e[t++]=n}}return e.length=t,e}function rs(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??Jo,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};Zo(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&jo(e,`entries:resolve`,{entr
2ies:a,...r})),Zo(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||Yo(t.options)))a=t._precomputedTags;else{if(a=Wo(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!Yo(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};jo(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=Fo(r),r._d||(r._h=Io(r))}t._tags=a}}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&Xo.test(e)){Qo(r.tags);break}let o=es(r);return ts(r,e),$o(r,o),jo(e,`tags:beforeResolve`,r),jo(e,`tags:resolve`,r),jo(e,`tags:afterResolve`,r),ns(r.tags)}var is=Object.prototype.hasOwnProperty;function as(e,t){return is.call(e,t)}var os=`usehead`;function ss(){if(w()){let e=C(os);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function cs(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(os,e)}}.install}var ls=Object.assign((e,t)=>q(t)?_e(t):t,{_static:!0});function us(e,t={}){let n=t.head||ss();return n.ssr?n.push(e||{},t):ds(n,e,t)}function ds(e,t,n={}){let r=ue();if(r&&!r.active)return{patch(){},dispose(){},_i:-1};let i=se(!1);if(n.onRendered&&r){let e=n.onRendered;n={...n,onRendered:t=>r.run(()=>e(t))}}let a;return ee(()=>{let r=i.value?{}:Lo(t,ls);a?a.patch(r):a=e.push(r,n)}),S()&&(P(()=>{a.dispose()}),O(()=>{i.value=!0}),j(()=>{i.value=!1})),a}function fs(e){if(e._flatMeta)return e;let t={};for(let n in e)!as(e,n)||n===`title`||n===`titleTemplate`||(t[n]=e[n]);return{title:e.title,titleTemplate:e.titleTemplate,_flatMeta:t}}function ps(e={},t={}){(t.head||ss()).use(ko);let n=us(fs(e),t),r=n.patch;return n.__patched||=(n.patch=e=>r(fs(e)),!0),n}function ms(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function hs(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>ms(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}function gs(e){let t=e||r();return t.ssrContext?.head||t.runWithContext(()=>{if(w()){let e=C(`usehead`);if(!e)throw ja.NUXT_E6001();return e}})}function _s(e,t={}){return us(e,{head:t.head||gs(t.nuxt),...t})}function vs(e,t={}){return ps(e,{head:t.head||gs(t.nuxt),...t})}var ys=()=>location.protocol+`//`+location.host;function bs(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),rt(n,``)}return rt(n,e)+r+i}function xs(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=bs(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Ot.pop,direction:u?u>0?Tt.forward:Tt.back:Tt.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(et({},e.state,{scroll:St()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Ss(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?St():null}}function Cs(e){let{history:t,location:n}=window,r={value:bs(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:ys()+e+r;
2try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,et({},t.state,Ss(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=et({},i.value,t.state,{forward:e,scroll:St()});a(o.current,o,!0),a(e,et({},Ss(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ws(e){e=Je(e);let t=Cs(e),n=xs(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=et({location:``,base:e,go:r,createHref:At.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Ts(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ws(e)}var Es=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Ds=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Ds||{}),Os={type:Es.Static,value:``},ks=/[a-zA-Z0-9_]/;function As(e){if(!e)return[[]];if(e===`/`)return[[Os]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Ds.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Ds.Static?a.push({type:Es.Static,value:l}):n===Ds.Param||n===Ds.ParamRegExp||n===Ds.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Es.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case Ds.Static:c===`\\`?(r=n,n=Ds.EscapeNext):c===`/`?(l&&d(),o()):c===`:`?(d(),n=Ds.Param):f();break;case Ds.EscapeNext:f(),n=r;break;case Ds.Param:c===`(`?n=Ds.ParamRegExp:ks.test(c)?f():(d(),n=Ds.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Ds.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Ds.ParamRegExpEnd:u+=c;break;case Ds.ParamRegExpEnd:d(),n=Ds.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===Ds.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var js=`[^/]+?`,Ms={sensitive:!1,strict:!1,start:!0,end:!0},Ns=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(Ns||{}),Ps=/[.+*?^${}()[\]/\\]/g;function Fs(e,t){let n=et({},Ms,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[Ns.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=Ns.Segment+(n.sensitive?Ns.BonusCaseSensitive:0);if(o.type===Es.Static)r||(i+=`/`),i+=o.value.replace(Ps,`\\$&`),s+=Ns.Static;else if(o.type===Es.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||js;if(u!==js){s+=Ns.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=Ns.Dynamic,c&&(s+=Ns.BonusOptional),n&&(s+=Ns.BonusRepeatable),u===`.*`&&(s+=Ns.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=Ns.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Es.Static)n+=e.value;else if(e.type===Es.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(st(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=st(c)?c.join(`/`):c;
vendor: 5,518 bytes, line 2
2if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Is(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Ns.Static+Ns.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ns.Static+Ns.Segment?1:-1:0}function Ls(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Is(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Rs(r))return 1;if(Rs(i))return-1}return i.length-r.length}function Rs(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var zs={strict:!1,end:!0,sensitive:!1};function Bs(e,t,n){let r=Fs(As(e.path),n),i=et(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Vs(e,t){let n=[],r=new Map;t=$e(zs,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Us(e);s.aliasOf=r&&r.record;let l=$e(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Us(et({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Bs(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Gs(d)&&o(e.name)),Ys(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:lt}function o(e){if(Pt(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=qs(e,n);n.splice(t,0,e),e.record.name&&!Gs(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw nt(ot.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=et(Hs(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Hs(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw nt(ot.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=et({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Ks(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Hs(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Us(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ws(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ws(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Gs(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ks(e){return e.reduce((e,t)=>et(e,t.meta),{})}function qs(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ls(e,t[i])<0?r=i:n=i+1}let i=Js(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Js(e){let t=e;for(;t=t.parent;)if(Ys(t)&&Ls(e,t)===0)return t}function Ys({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Xs(e){let t=C(Qe),n=C(dt),r=J(()=>{let n=L(e.to);return t.resolve(n)}),i=J(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(ct.bind(null,i));if(o>-1)return o;let s=tc(e[t-2]);return t>1&&tc(i)===s&&a[a.length-1].path!==s?a.findIndex(ct.bind(null,e[t-2])):o}),a=J(()=>i.value>-1&&ec(n.params,r.value.params)),o=J(()=>i.value>-1&&i.value===n.matched.length-1&&Nt(n.params,r.value.params));function s(n={}){if($s(n)){let n=t[L(e.replace)?`replace`:`push`](L(e.to)).catch(lt);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:J(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Zs(e){return e.length===1?e[0]:e}var Qs=I({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Xs,setup(e,{slots:t}){let n=te(Xs(e)),{options:r}=C(Qe),i=J(()=>({[nc(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[nc(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Zs(t.default(n));return e.custom?r:R(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function $s(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);
2if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ec(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!st(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function tc(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var nc=(e,t,n)=>e??t??n,rc=I({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=C(tt),i=J(()=>e.route||r.value),a=C(ft,0),o=J(()=>{let e=L(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=J(()=>i.value.matched[o.value]);D(ft,J(()=>o.value+1)),D(ut,s),D(tt,i);let c=se();return b(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!ct(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return ic(n.default,{Component:l,route:r});let u=o.props[a],d=u?u===!0?r.params:typeof u==`function`?u(r):u:null,f=R(l,et({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return ic(n.default,{Component:f,route:r})||f}}});function ic(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var ac=rc;function oc(e){let t=Vs(e.routes,e),n=e.parseQuery||Xe,r=e.stringifyQuery||Ke,i=e.history,a=it(),o=it(),s=it(),c=V(ht),l=ht;Ft&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Ze.bind(null,e=>``+e),d=Ze.bind(null,Et),f=Ze.bind(null,gt);function p(e,n){let r,i;return Pt(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=et({},a||c.value),typeof e==`string`){let r=Ye(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return et(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=et({},e,{path:Ye(n,e.path,a.path).path});else{let t=et({},e.params);for(let e in t)t[e]??delete t[e];o=et({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=bt(r,et({},e,{hash:_t(l),path:s.path})),m=i.createHref(p);return et({fullPath:p,hash:l,query:r===Ke?Mt(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?Ye(n,e,c.value.path):et({},e)}function y(e,t){if(l!==e)return nt(ot.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(et(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),et({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(et(v(u),{state:typeof u==`object`?et({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&mt(r,i,n)&&(f=nt(ot.NAVIGATION_DUPLICATED,{to:d,from:i}),R(i,i,!0,!1)),(f?Promise.resolve(f):E(d,i)).catch(e=>qe(e)?qe(e,ot.NAVIGATION_GUARD_REDIRECT)?e:I(e):P(e,d,i)).then(e=>{if(e){if(qe(e,ot.NAVIGATION_GUARD_REDIRECT))return C(et({replace:s},v(e.to),{state:typeof e.to==`object`?et({},a,e.to.state):a,force:o}),t||d)}else e=O(d,i,!0,s,a);return D(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=H.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function E(e,t){let n,[r,i,s]=Ct(e,t);n=yt(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(jt(r,e,t))});let c=w.bind(null,e,t);return n.push(c),W(n).then(()=>{n=[];for(let r of a.list())n.push(jt(r,e,t));return n.push(c),W(n)}).then(()=>{n=yt(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(jt(r,e,t))});return n.push(c),W(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(st(r.beforeEnter))for(let i of r.beforeEnter)n.push(jt(i,e,t));else n.push(jt(r.beforeEnter,e,t))}return n.push(c),W(n)}).then(()=>
2(e.matched.forEach(e=>e.enterCallbacks={}),n=yt(s,`beforeRouteEnter`,e,t,T),n.push(c),W(n))).then(()=>{n=[];for(let r of o.list())n.push(jt(r,e,t));return n.push(c),W(n)}).catch(e=>qe(e,ot.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function D(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function O(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===ht,l=Ft?history.state:{};n&&(r||s?i.replace(e.fullPath,et({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,R(e,t,n,s),I()}let k;function A(){k||=i.listen((e,t,n)=>{if(!U.listening)return;let r=_(e),a=S(r,U.currentRoute.value);if(a){C(et(a,{replace:!0,force:!0}),r).catch(lt);return}l=r;let o=c.value;Ft&&at(pt(o.fullPath,n.delta),St()),E(r,o).catch(e=>qe(e,ot.NAVIGATION_ABORTED|ot.NAVIGATION_CANCELLED)?e:qe(e,ot.NAVIGATION_GUARD_REDIRECT)?(C(et(v(e.to),{force:!0}),r).then(e=>{qe(e,ot.NAVIGATION_ABORTED|ot.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Ot.pop&&i.go(-1,!1)}).catch(lt),Promise.reject()):(n.delta&&i.go(-n.delta,!1),P(e,r,o))).then(e=>{e||=O(r,o,!1),e&&(n.delta&&!qe(e,ot.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Ot.pop&&qe(e,ot.NAVIGATION_ABORTED|ot.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),D(r,o,e)}).catch(lt)})}let j=it(),M=it(),N;function P(e,t,n){I(e);let r=M.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function F(){return N&&c.value!==ht?Promise.resolve():new Promise((e,t)=>{j.add([e,t])})}function I(e){return N||(N=!e,A(),j.list().forEach(([t,n])=>e?n(e):t()),j.reset()),e}function R(t,n,r,i){let{scrollBehavior:a}=e;if(!Ft||!a)return Promise.resolve();let o=!r&&vt(pt(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return K().then(()=>a(t,n,o)).then(e=>e&&xt(e)).catch(e=>P(e,t,n))}let z=e=>i.go(e),B,H=new Set,U={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:z,back:()=>z(-1),forward:()=>z(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:M.add,isReady:F,install(e){e.component(`RouterLink`,Qs),e.component(`RouterView`,ac),e.config.globalProperties.$router=U,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>L(c)}),Ft&&!B&&c.value===ht&&(B=!0,b(i.location).catch(e=>{}));let t={};for(let e in ht)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Qe,U),e.provide(dt,re(t)),e.provide(tt,c);let n=e.unmount;H.add(e),e.unmount=function(){H.delete(e),H.size<1&&(l=ht,k&&k(),k=null,c.value=ht,B=!1,N=!1),n()}}};function W(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return U}var sc=c(()=>{qt(`skipHydrate`,e=>!kn(e)&&1),Jt(`skipHydrate`,e=>void 0)});function cc(e){try{return JSON.parse(e)}catch{return e}}var lc=[[`NuxtError`,e=>Me(e)],[`EmptyShallowRef`,e=>V(e===`_`?void 0:e===`0n`?BigInt(0):cc(e))],[`EmptyRef`,e=>se(e===`_`?void 0:e===`0n`?BigInt(0):cc(e))],[`ShallowRef`,e=>V(e)],[`ShallowReactive`,e=>re(e)],[`Ref`,e=>se(e)],[`Reactive`,e=>te(e)]],uc=m({name:`nuxt:revive-payload:client`,order:-30,async setup(e){let t,n;for(let[e,t]of lc)Jt(e,t);Object.assign(e.payload,([t,n]=s(()=>e.runWithContext(Ht)),t=await t,n(),t)),delete window.__NUXT__}},1);function dc(e){return typeof e==`function`?e():e&&e.__v_isRef===!0?e.value:e}function fc(e){e.indexable!==void 0&&(e.indexable=String(e.indexable)!==`false`),e.trailingSlash!==void 0&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!==`false`),e.url&&!Ee(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=Ue(String(e.url)));let t=Object.keys(e).sort((e,t)=>e.localeCompare(t)),n={};for(let r of t)n[r]=e[r];return n}function pc(e){let t=e?.debug||!1,n=[];function r(e){if(!e||typeof e!=`object`||Object.keys(e).length===0)return()=>{};if(!e._context&&t){let t=Error(`tmp`).stack?.split(`
3`)[2]?.split(` `)[5];t?.includes(`/`)&&(t=`anonymous`),e._context=t}let r={};for(let t in e){let n=e[t];n!==void 0&&n!==``&&(r[t]=n)}return Object.keys(r).some(e=>!e.startsWith(`_`))?(n.push(r),()=>{let e=n.indexOf(r);e!==-1&&n.splice(e,1)}):()=>{}}function i(e){let t={};e?.debug&&(t._context={}),t._priority={};for(let r in n.sort((e,t)=>
3(e._priority||0)-(t._priority||0)))for(let i in n[r]){let a=i,o=e?.resolveRefs?dc(n[r][i]):n[r][i];!i.startsWith(`_`)&&o!==void 0&&o!==``&&(t[i]=o,n[r]._priority!==void 0&&n[r]._priority!==-1&&(t._priority[a]=n[r]._priority),e?.debug&&(t._context[a]=n[r]._context?.[a]||n[r]._context||`anonymous`))}return e?.skipNormalize?t:fc(t)}return{stack:n,push:r,get:i}}var mc=e(xn());function hc(e={}){let t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw Se.NUXT_E2010({path:t});if(n.protocol&&Ge(n.protocol))throw Se.NUXT_E2002({toPath:t,protocol:n.protocol});let i={};try{i=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||i?.path!==t||i?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:r().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}var gc=m({name:`nuxt-site-config:init`,enforce:`pre`,async setup(e){let t=pc(),n=Bt(`site-config`);{let e=n.value||window.__NUXT_SITE_CONFIG__||{};for(let n in e)n[0]!==`_`&&t.push({[n]:e[n],_priority:e._priority?.[n]||-1})}return{provide:{nuxtSiteConfig:t}}}});function _c(e,t){t.push(h),e.vueApp.use(t);let n=!0,r=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||r()}),e.hooks.hook(`app:error`,r),e.hooks.hook(`app:suspense:resolve`,r);let i=t.push.bind(t);t.push=((t,n)=>{let r=i(t,n),a=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(a):a()},r})}function vc(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>ms(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var yc=/\s+/;function bc(e={}){return t=>Cc(t,e)}function xc(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Sc(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(yc))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function Cc(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!xc(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(jo(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Sc(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=rs(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};if(e.tag===`meta`&&e._d&&Po(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`){n.title=e.textContent,o(`title:`,()=>n.title=d._t);continue}i.$el=d._e.get(r),i.$el?c(i):no.has(e.tag)&&p.push(i)}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!no.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=Bo({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=Fo(i)||Io(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}
3`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,jo(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||xc(e))&&Cc(e,t),a}var wc=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(co[e.tagPriority]||0);function Tc(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||bc({document:e.document}),n=vc(hs(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:wc,init:[]}),Ao(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}function Ec(e={}){let t=bc(),n,r=0;return n=Tc({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=cs(n),n}var Dc={disableDefaults:!0,plugins:[Ua,Ya,$a,Ha]},Oc=m({name:`nuxt:head`,enforce:`pre`,setup(e){_c(e,Ec(Dc))}}),kc=/(:\w+)\([^)]+\)/g,Ac=/(:\w+)[?+*]/g,jc=/:\w+/g,Mc=(e,t)=>t.path.replace(kc,`$1`).replace(Ac,`$1`).replace(jc,t=>e.params[t.slice(1)]?.toString()||``),Nc=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&Mc(e.route,n));return typeof r==`function`?r(e.route):r},Pc=(e,t)=>({default:()=>e?R(ie,e===!0?{}:e,t):t});function Fc(e){return Array.isArray(e)?e:[e]}var Ic=()=>f().public.oasFrontend.redirectBaseUrl,Lc=()=>{let e=Ic();if(!e)throw Error(`Redirect base url is not set.`);return{view:t=>Gt(e,`/check`,{method:`GET`,query:{url:t}})}},Rc=(e,t)=>new URL(`${t}${e}`),zc=e=>{let t=new URL(e.toString());return t.hash=``,t.toString().toLowerCase()},Bc=e=>e.replace(/\/+/g,`/`).replace(/^(\/.*)\/$/,`$1`),Vc=(e,t)=>new URL(e,t).toString().toLowerCase(),Hc=e=>Number(e)||307,Uc=e=>e.toLowerCase().endsWith(`.aspx`),Wc=e=>e.substring(0,e.length-5),Gc=e=>e.toLowerCase()===`/searchresults.aspx`,Kc=Ve(async(e,t)=>{let n,r;if(!e?.name||!e?.path||zn.includes(e.path)||e.hash&&e.path===t.path)return;let i=Rc(e.fullPath,window.location.origin),a=zc(i),o=Bc(i.pathname);if(i.pathname!==`/`&&o!==i.pathname)return ke(`${o}${i.search}${i.hash}`,{redirectCode:301});try{let{view:e}=Lc(),{data:t}=([n,r]=s(()=>e(a)),n=await n,r(),n);if(t?.target_url&&a!==Vc(t.target_url,i.origin)){let e=Hc(t.redirect_type);return t.query_parameters===`ignore_pass`?ke(`${t.target_url}${i.search}`,{redirectCode:e,external:!0}):ke(t.target_url,{redirectCode:e,external:!0})}}catch{}if(Gc(i.pathname))return ke({name:`search`},{redirectCode:301});if(Uc(i.pathname))return ke(Wc(e.path),{redirectCode:301})},1),qc=Ve(async e=>{let t,n;if(!e.meta?.validate)return;let r=([t,n]=s(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(r!==!0)return Me({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})},1),Jc={Input:1e3,ScheduleEventsCountDownTicker:5e3,CacheTime:12e5,RosterHeroSlideTime:5e3,ScheduleHeroSlideTime:5e3,N
3avigationThrottle:200,SitemapTtl:120,Revoke:4e4,SlideDisplayTime:7,SliderControlsAutoHide:4e3},Yc=`wmt-mobile`,Xc={},Zc={};function Qc(e,t){Xc[e]=Xc[e]||[],Xc[e].push(t)}function $c(e,t){if(!Zc[e]){Zc[e]=!0;try{t()}catch(t){Vi&&Q.error(`Error while instrumenting ${e}`,t)}}}function el(e,t){let n=e&&Xc[e];if(n)for(let r of n)try{r(t)}catch(t){Vi&&Q.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Gn(r)}\nError:`,t)}}var tl=null;function nl(e){let t=`error`;Qc(t,e),$c(t,rl)}function rl(){tl=vi.onerror,vi.onerror=function(e,t,n,r,i){return el(`error`,{column:r,error:i,line:n,msg:e,url:t}),tl?tl.apply(this,arguments):!1},vi.onerror.__SENTRY_INSTRUMENTED__=!0}var il=null;function al(e){let t=`unhandledrejection`;Qc(t,e),$c(t,ol)}function ol(){il=vi.onunhandledrejection,vi.onunhandledrejection=function(e){return el(`unhandledrejection`,e),!il||il.apply(this,arguments)},vi.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var sl=!1;function cl(){if(sl)return;function e(){let e=Or(),t=e&&Xn(e);if(t){let e=`internal_error`;Vi&&Q.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}e.tag=`sentry_tracingErrorCallback`,sl=!0,nl(e),al(e)}function ll(e){Q.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function ul(e,t){if(!t?.length||!e.description)return!1;for(let n of t){if(fl(n)){if(tr(e.description,n))return Vi&&ll(e),!0;continue}if(!n.name&&!n.op)continue;let t=!n.name||tr(e.description,n.name),r=!n.op||e.op&&tr(e.op,n.op);if(t&&r)return Vi&&ll(e),!0}return!1}function dl(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function fl(e){return typeof e==`string`||e instanceof RegExp}var pl=class{constructor(e={}){this._traceId=e.traceId||li(),this._spanId=e.spanId||xi()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function ml(e,t=[]){return[e,t]}function hl(e,t){let[n,r]=e;return[n,[...r,t]]}function gl(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function _l(e,t){return gl(e,(e,n)=>t.includes(n))}function vl(e){let t=Fi(vi);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function yl(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[vl(r),e]:r.push(typeof e==`string`?vl(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Oi(n))}i(e)}}return typeof r==`string`?r:bl(r)}function bl(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function xl(e){return[{type:`span`},e]}function Sl(e){let t=typeof e.data==`string`?vl(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Cl={session:`session`,sessions:`session`,attachment:`attachment`,transaction:`transaction`,event:`error`,client_report:`internal`,user_report:`default`,profile:`profile`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,feedback:`feedback`,span:`span`,raw_security:`security`,log:`log_item`,metric:`metric`,trace_metric:`metric`};function wl(e){return Cl[e]}function Tl(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function El(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Zi(r)},...i&&{trace:i}}}function Dl(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Ol(e,t,n,r){let i=Tl(n);return ml({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Zi(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function kl(e,t,n,r){let i=Tl(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Dl(e,n?.sdk);let o=El(e,i,r,t);return delete e.sdkProcessingMetadata,ml(o,[[{type:a},e]])}function Al(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=Wr(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:Zi(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>!ul(Kn(e),c)):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=Kn(e);return s(t)||(Qn(),t)}:Kn,f=[];for(let e of l){let t=d(e);t&&f.push(xl(t))}return ml(o,f)}function jl(e){if(!Vi)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:r}=Kn(e),{spanId:i}=e.spanContext(),a=br(e),o=Xn(e),s=o===e,c=`[Tracing] Starting ${a?`sampled`:`unsampled`} ${s?`root `:``}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];
3if(r&&l.push(`parent ID: ${r}`),!s){let{op:e,description:t}=Kn(o);l.push(`root ID: ${o.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}Q.log(`${c}
4  ${l.join(`
5  `)}`)}function Ml(e){if(!Vi)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=Kn(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${Xn(e)===e?`root `:``}span "${t}" with ID ${r}`;Q.log(i)}function Nl(e,t,n,r=Or()){let i=r&&Xn(r);i&&(Vi&&Q.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[wr]:t,[Hr]:n}))}function Pl(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[Hr],i=n[wr];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}var Fl=1e3,Il=class{constructor(e={}){this._traceId=e.traceId||li(),this._spanId=e.spanId||xi(),this._startTime=e.startTimestamp||Xr(),this._links=e.links,this._attributes={},this.setAttributes({[ri]:`manual`,[Wn]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=hi(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Ni,`custom`),this}end(e){this._endTime||(this._endTime=hi(e),Ml(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Wn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Ar(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ri],profile_id:this._attributes[ur],exclusive_time:this._attributes[Ai],measurements:Pl(this._events),is_segment:this._isStandaloneSpan&&Xn(this)===this||void 0,segment_id:this._isStandaloneSpan?Xn(this).spanContext().spanId:void 0,links:qi(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){Vi&&Q.log(`[Tracing] Adding an event to span:`,e);let r=Ll(t)?t:n||Xr(),i=Ll(t)?{}:t||{},a={name:e,time:hi(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=Jr();if(e&&e.emit(`spanEnd`,this),!(this._isStandaloneSpan||this===Xn(this)))return;if(this._isStandaloneSpan){this._sampled?Bl(Al([this],e)):(Vi&&Q.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}let t=this._convertSpanToTransaction();t&&(Mr(this).scope||Di()).captureEvent(t)}_convertSpanToTransaction(){if(!Rl(Kn(this)))return;this._name||=(Vi&&Q.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=Mr(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let r=Gi(this).filter(e=>e!==this&&!zl(e)).map(e=>Kn(e)).filter(Rl),i=this._attributes[Ni];delete this._attributes[Br],r.forEach(e=>{delete e.data[Br]});let a={contexts:{trace:vr(this)},spans:r.length>Fl?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Fl):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:Wr(this)},request:n,...i&&{transaction_info:{source:i}}},o=Pl(this._events);return o&&Object.keys(o).length&&(Vi&&Q.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(o,void 0,2)),a.measurements=o),a}};function Ll(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function Rl(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function zl(e){return e instanceof Il&&e.isStandaloneSpan()}function Bl(e){let t=Jr();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Vl(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return Hl(i,t,n,r)}function Hl(e,t,n,r){return zr(e)?e.then(e=>(n(),r(e),e),e=>{throw t(e),n(),e}):(n(),r(e),e)}function Ul(e,t,n){if(!Yi(e))return[!1];let r,i;typeof e.tracesSampler==`function`?(i=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),r=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(i=e.tracesSampleRate,r=!0):i=t.parentSampled;let a=Er(i);if(a===void 0)return Vi&&Q.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!a)return Vi&&Q.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,a,r];let o=n<a;return o||Vi&&Q.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[o,a,r]}var Wl=`__SENTRY_SUPPRESS_TRACING__`;function Gl(e,t){let n=Xl();if(n.startSpan)return n.startSpan(e,t);let r=Yl(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return Hi(s,()=>eu(a)(()=>{let n=Di(),o=$l(n,a),s=e.onlyIfParent&&!o?new pl:Jl({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return ki(n,s),Vl(()=>t(s),()=>{let{status:e}=Kn(s);s.isRecording()&&(!e||e===`ok`)&&s.setStatus({code:2,message:`internal_error`})},()=>{s.end()})}))}function Kl(e){let t=Xl();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Yl(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>Hi(e.scope,t):i===void 0?e=>e():e=>ql(i,e))(()=>{let t=Di(),a=$l(t,i);return e.onlyIfParent&&!a?new pl:Jl({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function ql(e,t){let n=Xl();return n.withActiveSpan?n.withActiveSpan(e,t):Hi(n=>(ki(n,e||void 0),t(n)))}function Jl({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Yi()){let r=new pl;if(n||!e){let e={sampled:`false`,sample_rate:`0`,transaction:t.name,...Wr(r)};ci(r,e)}return r}let i=$r(),a;if(e&&!n)a=Ql(e,r,t),Yr(e,a);else if(e){let n=Wr(e),{traceId:i,spanId:o}=e.spanContext(),s=br(e);a=Zl({traceId:i,parentSpanId:o,...t},r,s),ci(a,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Zl({traceId:e,parentSpanId:o,...t},r,s),n&&ci(a,n)}return jl(a),Ir(a,r,i),a}function Yl(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=hi(e.startTime),delete n.startTime,n}return t}function Xl(){let e=Ei();return ti(e)}function Zl(e,t,n){let r=Jr(),i=r?.getOptions()||{},{name:a=``}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};r?.emit(`beforeSampling`,o,{decision:!1});let s=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),[u,d,f]=t.getScopeData().sdkProcessingMetadata[Wl]?[!1]:Ul(i,{name:a,parentSampled:s,attributes:c,parentSampleRate:Er(l.dsc?.sample_rate)},l.sampleRand),p=new Il({...e,attributes:{[Ni]:`custom`,[wi]:d!==void 0&&f?d:void 0,...c},sampled:u});return!u&&r&&(Vi&&Q.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),r.recordDroppedEvent(`sample_rate`,`transaction`)),r&&r.emit(`spanStart`,p),p}function Ql(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[Wl]&&br(e),o=a?new Il({...n,parentSpanId:r,traceId:i,sampled:a}):new pl({traceId:i});Yr(e,o);let s=Jr();return s&&(s.emit(`spanStart`,o),n.endTimestamp&&s.emit(`spanEnd`,o)),o}function $l(e,t){if(t)return t;if(t===null)return;let n=ai(e);if(!n)return;let r=Jr();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Xn(n):n}function eu(e){return e===void 0?e=>e():t=>ql(e,t)}var tu={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},nu=`heartbeatFailed`,ru=`idleTimeout`,iu=`finalTimeout`,au=`externalFinish`;function ou(e,t={}){let n=new Map,r=!1,i,a=au,o=!t.disableAutoFinish,s=[],{idleTimeout:c=tu.idleTimeout,finalTimeout:l=tu.finalTimeout,childSpanTimeout:u=tu.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:f=!0}=t,p=Jr();if(!p||!Yi()){let e=new pl,t={sample_rate:`0`,sampled:`false`,...Wr(e)};return ci(e,t),e}let m=Di(),h=Or(),g=su(e);g.end=new Proxy(g.end,{apply(e,t,n){if(d&&d(g),t instanceof pl)return;let[r,...i]=n,a=r||Xr(),o=hi(a),s=Gi(g).filter(e=>e!==g),c=Kn(g);if(!s.length||!f)return S(o),Reflect.apply(e,t,[o,...i]);let u=p.getOptions().ignoreSpans,m=s?.reduce((e,t)=>
5{let n=Kn(t);return!n.timestamp||u&&ul(n,u)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),h=c.start_timestamp,_=Math.min(h?h+l/1e3:1/0,Math.max(h||-1/0,Math.min(o,m||1/0)));return S(_),Reflect.apply(e,t,[_,...i])}});function _(){i&&=(clearTimeout(i),void 0)}function v(e){_(),i=setTimeout(()=>{!r&&n.size===0&&o&&(a=ru,g.end(e))},c)}function y(e){i=setTimeout(()=>{!r&&o&&(a=nu,g.end(e))},u)}function b(e){_(),n.set(e,!0),y(Xr()+u/1e3)}function x(e){n.has(e)&&n.delete(e),n.size===0&&v(Xr()+c/1e3)}function S(e){r=!0,n.clear(),s.forEach(e=>e()),ki(m,h);let t=Kn(g),{start_timestamp:i}=t;if(!i)return;t.data[`sentry.idle_span_finish_reason`]||g.setAttribute(Rr,a);let o=t.status;(!o||o===`unknown`)&&g.setStatus({code:1}),Q.log(`[Tracing] Idle span "${t.op}" finished`);let u=Gi(g).filter(e=>e!==g),d=0;u.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),Vi&&Q.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=Kn(t),i=r<=e,a=(l+c)/1e3,o=n-r<=a;if(Vi){let e=JSON.stringify(t,void 0,2);i?o||Q.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):Q.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!o||!i)&&(er(g,t),d++)}),d>0&&g.setAttribute(`sentry.idle_span_discarded_spans`,d)}return s.push(p.on(`spanStart`,e=>{r||e===g||Kn(e).timestamp||e instanceof Il&&e.isStandaloneSpan()||Gi(g).includes(e)&&b(e.spanContext().spanId)})),s.push(p.on(`spanEnd`,e=>{r||x(e.spanContext().spanId)})),s.push(p.on(`idleSpanEnableAutoFinish`,e=>{e===g&&(o=!0,v(),n.size&&y())})),t.disableAutoFinish||v(),setTimeout(()=>{r||(g.setStatus({code:2,message:`deadline_exceeded`}),a=iu,g.end())},l),g}function su(e){let t=Kl(e);return ki(Di(),t),Vi&&Q.log(`[Tracing] Started span is an idle span`),t}var cu=`7`;function lu(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function uu(e){return`${lu(e)}${e.projectId}/envelope/`}function du(e,t){let n={sentry_version:cu};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function fu(e,t,n){return t||`${uu(e)}?${du(e,n)}`}var pu=[];function mu(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function hu(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return mu(r)}function gu(e,t){let n={};return t.forEach(t=>{t&&vu(e,t,n)}),n}function _u(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function vu(e,t,n){if(n[t.name]){Vi&&Q.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!pu.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),pu.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}Vi&&Q.log(`Integration installed: ${t.name}`)}function yu(e){return e}function bu(e){return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{items:e}]}function xu(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Zi(r)),ml(i,[bu(e)])}function Su(e,t){let n=t??Cu(e)??[];if(n.length===0)return;let r=e.getOptions(),i=xu(n,r._metadata,r.tunnel,e.getDsn());wu().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Cu(e){return wu().get(e)}function wu(){return qr(`clientToLogBufferMap`,()=>new WeakMap)}function Tu(e){return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{items:e}]}function Eu(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Zi(r)),ml(i,[Tu(e)])}function Du(e,t){let n=t??Ou(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Eu(n,r._metadata,r.tunnel,e.getDsn());ku().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Ou(e){return ku().get(e)}function ku(){return qr(`clientToMetricBufferMap`,()=>new WeakMap)}var Au=Symbol.for(`SentryBufferFullError`);function ju(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return ei(Au);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return ii(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>setTimeout(()=>t(!1),e))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Mu=6e4;function Nu(e,t=gi()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Mu:r-t}function Pu(e,t){return e[t]||e.all||0}function Fu(e,t,n=gi()){return Pu(e,t)>n}function Iu(e,{statusCode:t,headers:n},r=gi()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Nu(o,r):t===429&&(i.all=r+6e4);return i}function Lu(e,t,n=ju(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(gl(i,(t,n)=>{let i=wl(n);Fu(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=ml(i[0],a),s=t=>{if(_l(o,[`client_report`])){Vi&&Q.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}gl(o,(n,r)=>{e.recordDroppedEvent(t,wl(r))})};return n.add(()=>t({body:yl(o)}).then(e=>(e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&Vi&&Q.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Iu(r,e),e),e=>{throw s(`network_error`),Vi&&Q.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>
5{if(e===Au)return Vi&&Q.error(`Skipped sending event because buffer is full.`),s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function Ru(e,t,n){let r=[{type:`client_report`},{timestamp:n||Xi(),discarded_events:e}];return ml(t?{dsn:t}:{},[r])}function zu(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Bu(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[ur],exclusive_time:o?.[Ai],measurements:e.measurements,is_segment:!0}}function Vu(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var Hu=`Not capturing exception because it's already been captured.`,Uu=`Discarded session because of missing or non-string release`,Wu=Symbol.for(`SentryInternalError`),Gu=Symbol.for(`SentryDoNotSendEventError`),Ku=5e3;function qu(e){return{message:e,[Wu]:!0}}function Ju(e){return{message:e,[Gu]:!0}}function Yu(e){return!!e&&typeof e==`object`&&Wu in e}function Xu(e){return!!e&&typeof e==`object`&&Gu in e}function Zu(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=setTimeout(()=>{i(e)},Ku))}),e.on(`flush`,()=>{i(e)})}var Qu=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ju(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=Jn(e.dsn):Vi&&Q.warn(`No DSN provided, client will not send events.`),this._dsn){let t=fu(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Zu(this,`afterCaptureLog`,`flushLogs`,ad,Su),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Zu(this,`afterCaptureMetric`,`flushMetrics`,id,Du)}captureException(e,t,n){let r=jr();if(Zn(e))return Vi&&Q.log(Hu),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:jr(),...n},a=ar(e)?e:String(e),o=ji(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=jr();if(t?.originalException&&Zn(t.originalException))return Vi&&Q.log(Hu),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=$u(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),Gr(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit(`flush`);let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];vu(this,e,this._integrations),t||_u(this,[e])}sendEvent(e,t={}
5){this.emit(`beforeSendEvent`,e,t);let n=kl(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=hl(n,Sl(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=Ui}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){Vi&&Q.warn(Uu);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){Vi&&Q.warn(Uu);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Ol(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;Vi&&Q.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return Vi&&Q.error(`Error while sending envelope:`,e),{}}return Vi&&Q.error(`Transport disabled`),{}}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=gu(this,e),_u(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(Gr(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),_i(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:yi(n),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:oi(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=Di(),r=$r()){return Vi&&nd(e)&&Q.log(`Captured error event \`${zu(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{Vi&&(Xu(e)?Q.log(e.message):Yu(e)?Q.warn(e.message):Q.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=rd(e),s=nd(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:Er(a);if(s&&typeof l==`number`&&qn()>l)return this.recordDroppedEvent(`sample_rate`,`error`),ei(Ju(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=$u(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Ju("An event processor returned `null`, will not send event.");return t.data&&t.data.__sentry__===!0?e:ed(td(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Ju(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw Xu(e)||Yu(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),qu(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Au&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){Vi&&Q.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){Vi&&Q.log(`No outcomes to send`);return}if(!this._dsn){Vi&&Q.log(`No dsn provided, will not send outcomes`);return}Vi&&Q.log(`Sending outcomes:`,e);let t=Ru(e,this._options.tunnel&&Zi(this._dsn));this.sendEnvelope(t)}};
5function $u(e){return e===`replay_event`?`replay`:e||`error`}function ed(e,t){let n=`${t} must return \`null\` or a valid event.`;if(zr(e))return e.then(e=>{if(!pr(e)&&e!==null)throw qu(n);return e},e=>{throw qu(`${t} rejected with ${e}`)});if(!pr(e)&&e!==null)throw qu(n);return e}function td(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o,ignoreSpans:s}=t,c=n;if(nd(c)&&i)return i(c,r);if(rd(c)){if(o||s){let t=Bu(c);if(s?.length&&ul(t,s))return null;if(o){let e=o(t);e?c=si(n,Vu(e)):Qn()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(s?.length&&ul(e,s)){dl(n,e);continue}if(o){let n=o(e);n?t.push(n):(Qn(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function nd(e){return e.type===void 0}function rd(e){return e.type===`transaction`}function id(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+od(e.attributes)}function ad(e){let t=0;return e.message&&(t+=e.message.length*2),t+od(e.attributes)}function od(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*sd(e[0]):ji(e)?t+=sd(e):t+=100}),t}function sd(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function cd(e){return Fr(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function ld(e){return cd(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function ud(e,t){t.debug===!0&&(Vi?Q.enable():Ci(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Di().update(t.initialScope);let n=new e(t);return dd(n),n.init(),n}function dd(e){Di().setClient(e)}var fd=`thismessage:/`;function pd(e){return`isRelative`in e}function md(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?fd:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function hd(e){if(pd(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function gd(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function _d(e){return e.split(/[?#]/,1)[0]}function vd(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function yd(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return xd(e,n)||bd(e,r)}function bd(e,t){return t?Sd(e)===Sd(t):!1}function xd(e,t){let n=md(e);return!n||pd(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Sd(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function Cd(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function wd(e,t,n=[t],r=`npm`){let i=e._metadata||{};i.sdk||={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:Qr})),version:Qr},e._metadata=i}function Td(e={}){let t=e.client||Jr();if(!Ti()||!t)return{};let n=Ei(),r=ti(n);if(r.getTraceData)return r.getTraceData(e);let i=e.scope||Di(),a=e.span||Or(),o=a?pi(a):Ed(i),s=a?Wr(a):oi(t,i),c=or(s);if(!Sr.test(o))return Q.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let l={"sentry-trace":o,baggage:c};return e.propagateTraceparent&&(l.traceparent=a?gr(a):Dd(i)),l}function Ed(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return nr(t,r,n)}function Dd(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return cr(t,r,n)}function Od(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function u(){return i!==void 0||a!==void 0?c():r}function d(){return i&&clearTimeout(i),i=s(c,t),o&&a===void 0&&(a=s(c,o)),r}return d.cancel=l,d.flush=u,d}var kd=100;function Ad(e,t){let n=Jr(),r=$r();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=kd}=n.getOptions();if(a<=0)return;let o={timestamp:Xi(),...e},s=i?Ci(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var jd,Md=`FunctionToString`,Nd=new WeakMap,Pd=yu((()=>({name:Md,setupOnce(){jd=Function.prototype.toString;
5try{Function.prototype.toString=function(...e){let t=Cr(this),n=Nd.has(Jr())&&t!==void 0?t:this;return jd.apply(n,e)}}catch{}},setup(e){Nd.set(e,!0)}}))),Fd=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,`vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)`,`Can't find variable: _AutofillCallbackHandler`,/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Id=`EventFilters`,Ld=yu((e={})=>{let t;return{name:Id,setup(n){t=zd(e,n.getOptions())},processEvent(n,r,i){return t||=zd(e,i.getOptions()),Bd(n,t)?null:n}}}),Rd=yu(((e={})=>({...Ld(e),name:`InboundFilters`})));function zd(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Fd],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Bd(e,t){if(!e.type){if(Vd(e,t.ignoreErrors))return Vi&&Q.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Ki(e)}`),!0;if(qd(e))return Vi&&Q.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Ki(e)}`),!0;if(Ud(e,t.denyUrls))return Vi&&Q.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Ki(e)}.\nUrl: ${Kd(e)}`),!0;if(!Wd(e,t.allowUrls))return Vi&&Q.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Ki(e)}.\nUrl: ${Kd(e)}`),!0}else if(e.type===`transaction`&&Hd(e,t.ignoreTransactions))return Vi&&Q.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Ki(e)}`),!0;return!1}function Vd(e,t){return t?.length?zu(e).some(e=>xr(e,t)):!1}function Hd(e,t){if(!t?.length)return!1;let n=e.transaction;return n?xr(n,t):!1}function Ud(e,t){if(!t?.length)return!1;let n=Kd(e);return n?xr(n,t):!1}function Wd(e,t){if(!t?.length)return!0;let n=Kd(e);return!n||xr(n,t)}function Gd(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Kd(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Gd(t):null}catch{return Vi&&Q.error(`Cannot extract url for event ${Ki(e)}`),null}}function qd(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Jd(e,t,n,r,i,a){if(!i.exception?.values||!a||!Lr(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Yd(e,t,r,a.originalException,n,i.exception.values,o,0))}function Yd(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Lr(r[i],Error)){Zd(o,s,r);let a=e(t,r[i]),l=c.length;Qd(a,i,l,s),c=Yd(e,t,n,r[i],i,[a,...c],a,l)}return Xd(r)&&r.errors.forEach((a,l)=>{if(Lr(a,Error)){Zd(o,s,r);let u=e(t,a),d=c.length;Qd(u,`errors[${l}]`,d,s),c=Yd(e,t,n,a,i,[u,...c],u,d)}}),c}function Xd(e){return Array.isArray(e.errors)}function Zd(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Xd(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Qd(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var $d=new Map,ef=new Set;function tf(e){if(vi._sentryModuleMetadata)for(let t of Object.keys(vi._sentryModuleMetadata)){let n=vi._sentryModuleMetadata[t];if(ef.has(t))continue;ef.add(t);let r=e(t);for(let e of r.reverse())if(e.filename){$d.set(e.filename,n);break}}}function nf(e,t){return tf(e),$d.get(t)}function rf(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=nf(e,t.filename);n&&(t.module_metadata=n)})})}
5function af(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}function of(e){let t=`console`;Qc(t,e),$c(t,sf)}function sf(){`console`in vi&&Ri.forEach(function(e){e in vi.console&&yr(vi.console,e,function(t){return di[e]=t,function(...t){el(`console`,{args:t,level:e}),di[e]?.apply(vi.console,t)}})})}function cf(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var lf=`Dedupe`,uf=yu((()=>{let e;return{name:lf,processEvent(t){if(t.type)return t;try{if(df(t,e))return Vi&&Q.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function df(e,t){return t?!!(ff(e,t)||pf(e,t)):!1}function ff(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!hf(e,t)||!mf(e,t))}function pf(e,t){let n=gf(t),r=gf(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!hf(e,t)||!mf(e,t))}function mf(e,t){let n=Tr(e),r=Tr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function hf(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function gf(e){return e.exception?.values?.[0]}var _f=yu(e=>({name:`ThirdPartyErrorsFilter`,setup(e){e.on(`beforeEnvelope`,e=>{gl(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(af(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;rf(n,t)})},processEvent(t){let n=yf(t,e.ignoreSentryInternalFrames);if(n&&n[e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`apply-tag-if-contains-third-party-frames`?`some`:`every`](t=>!t.some(t=>e.filterKeys.includes(t)))){if(e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`drop-error-if-exclusively-contains-third-party-frames`)return null;t.tags={...t.tags,third_party_code:!0}}return t}}));function vf(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes(`sentry`)||!e.filename.includes(`helpers`)||!e.context_line.includes(Sf))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(xf))return!0}return!1}function yf(e,t){let n=Tr(e);if(n)return n.filter((e,n)=>!e.filename||e.lineno==null&&e.colno==null&&e.instruction_addr==null?!1:!t||!vf(e,n)).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(bf)).map(e=>e.slice(bf.length)):[])}var bf=`_sentryBundlerPluginAppKey:`,xf=`Attempt to invoke user-land function`,Sf=`fn.apply(this, wrappedArguments)`,Cf=`ConversationId`,wf=yu((()=>({name:Cf,setup(e){e.on(`spanStart`,e=>{let t=Di().getScopeData(),n=$r().getScopeData(),r=t.conversationId||n.conversationId;r&&e.setAttribute(fr,r)})}})));function Tf(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=Yi()&&t(o);if(e.endTimestamp&&s){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(Of(n,e),Ef(n,e,i),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=!!Or(),d=s&&u?Kl(jf(o,a,c)):new pl;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=Df(t,n,Yi()&&u?d:void 0,l);r&&(e.args[1]=n,n.headers=r)}let f=Jr();if(f){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit(`beforeOutgoingRequestSpan`,d,t)}return d}function Ef(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function Df(e,t,n,r){let i=Td({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(dr(e)?e.headers:void 0);if(!c)return{...i};if(Af(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?kf(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}if(Array.isArray(c)){let e=[...c];c.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!c.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&kf(e[1]));return o&&!t&&e.push([`baggage`,o]),e}{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>kf(e)):kf(n));o&&!l&&i.push(o);let u={...c,"sentry-trace":e??a,baggage:i.length>0?i.join(`,`):void 0};return r&&s&&!t&&(u.traceparent=s),u}}function Of(e,t){if(t.response){ir(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function kf(e){return e.split(`,`).some(e=>e.trim().startsWith(Pr))}function Af(e){return typeof Headers<`u`&&Lr(e,Headers)}function jf(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${vd(e)}`,attributes:Mf(e,void 0,t,n)};let r=md(e);return{name:`${t} ${r?hd(r):e}`,attributes:Mf(e,r,t,n)}}function Mf(e,t,n,r){let i={url:vd(e),type:`fetch`,"http.method":n,[ri]:r,[Wn]:`http.client`};return t&&(pd(t)||(i[`http.url`]=vd(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function Nf(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var Pf=vi;function Ff(){return`history`in Pf&&!!Pf.history}function If(){if(!(`fetch`in Pf))return!1;
5try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function Lf(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Rf(){if(typeof EdgeRuntime==`string`)return!0;if(!If())return!1;if(Lf(Pf.fetch))return!0;let e=!1,t=Pf.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Lf(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){Vi&&Q.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function zf(e,t){let n=`fetch`;Qc(n,e),$c(n,()=>Vf(void 0,t))}function Bf(e){let t=`fetch-body-resolved`;Qc(t,e),$c(t,()=>Vf(Uf))}function Vf(e,t=!1){t&&!Rf()||yr(vi,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=Kf(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:Xr()*1e3,virtualError:r,headers:qf(n)};return e||el(`fetch`,{...o}),t.apply(vi,n).then(async t=>(e?e(t):el(`fetch`,{...o,endTimestamp:Xr()*1e3,response:t}),t),e=>{el(`fetch`,{...o,endTimestamp:Xr()*1e3,error:e}),Fr(e)&&e.stack===void 0&&(e.stack=r.stack,mi(e,`framesToPop`,1));let t=Jr()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:mi(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function Hf(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function Uf(e){let t;try{t=e.clone()}catch{return}Hf(t,()=>{el(`fetch-body-resolved`,{endTimestamp:Xr()*1e3,response:e})})}function Wf(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Gf(e){return typeof e==`string`?e:e?Wf(e,`url`)?e.url:e.toString?e.toString():``:``}function Kf(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Gf(t),method:Wf(n,`method`)?String(n.method).toUpperCase():dr(t)&&Wf(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Gf(t),method:Wf(t,`method`)?String(t.method).toUpperCase():`GET`}}function qf(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(dr(t))return new Headers(t.headers)}catch{}}function Jf(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Yf(){return`npm`}function Xf(){return!Jf()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Zf(){return typeof window<`u`&&(!Xf()||Qf())}function Qf(){return vi.process?.type===`renderer`}var $f=vi,ep=0;function tp(){return ep>0}function np(){ep++,setTimeout(()=>{ep--})}function rp(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(Cr(e))return e}catch{return e}let r=function(...n){try{let r=n.map(e=>rp(e,t));return e.apply(this,r)}catch(e){throw np(),Hi(r=>{r.addEventProcessor(e=>(t.mechanism&&(kr(e,void 0,void 0),Ji(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),ui(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}rr(r,e),mi(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function ip(){let e=hr(),{referrer:t}=$f.document||{},{userAgent:n}=$f.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function ap(e,t){let n=cp(e,t),r={type:pp(t),value:mp(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function op(e,t,n,r){let i=Jr()?.getOptions().normalizeDepth,a=xp(t),o={__serialized__:bi(t,i)};if(a)return{exception:{values:[ap(e,a)]},extra:o};let s={exception:{values:[{type:Nr(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:yp(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=cp(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function sp(e,t){return{exception:{values:[ap(e,t)]}}}function cp(e,t){let n=t.stacktrace||t.stack||``,r=up(t),i=dp(t);try{return e(n,r,i)}catch{}return[]}var lp=/Minified React error #\d+;/i;function up(e){return e&&lp.test(e.message)?1:0}function dp(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function fp(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function pp(e){let t=e?.name;return!t&&fp(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function mp(e){let t=e?.message;return fp(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?ld(t.error):ld(e):`No error message`}function hp(e,t,n,r){let i=_p(e,t,n?.syntheticException||void 0,r);
5return Ji(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),ii(i)}function gp(e,t,n=`info`,r,i){let a=vp(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),ii(a)}function _p(e,t,n,r,i){let a;if(sr(t)&&t.error)return sp(e,t.error);if(Qi(t)||Yn(t)){let i=t;if(`stack`in t)a=sp(e,t);else{let t=i.name||(Qi(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=vp(e,o,n,r),kr(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Fr(t)?sp(e,t):pr(t)||Nr(t)?(a=op(e,t,n,i),Ji(a,{synthetic:!0}),a):(a=vp(e,t,n,r),kr(a,`${t}`,void 0),Ji(a,{synthetic:!0}),a)}function vp(e,t,n,r){let i={};if(r&&n){let r=cp(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),Ji(i,{synthetic:!0})}if(ar(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function yp(e,{isUnhandledRejection:t}){let n=_r(e),r=t?`promise rejection`:`exception`;return sr(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Nr(e)?`Event \`${bp(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function bp(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function xp(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}var Sp=class extends Qu{constructor(e){let t=Cp(e);wd(t,`browser`,[`browser`],$f.SENTRY_SDK_SOURCE||Yf()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;$f.document&&(r||i||s)&&$f.document.addEventListener(`visibilitychange`,()=>{$f.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&Su(this),s&&Du(this))}),n&&this.on(`beforeSendSession`,Cd)}eventFromException(e,t){return hp(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return gp(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function Cp(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:$f.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var wp=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Tp=vi,Ep=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,Dp=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=Ep(t.value,n),e(t)))}},Op=(e=!0)=>{let t=Tp.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},kp=()=>Op()?.activationStart??0;function Ap(e,t,n){Tp.document&&Tp.addEventListener(e,t,n)}
5function jp(e,t,n){Tp.document&&Tp.removeEventListener(e,t,n)}var Mp=-1,Np=new Set,Pp=()=>Tp.document?.visibilityState===`hidden`&&!Tp.document?.prerendering?0:1/0,Fp=e=>{if(Lp(e)&&Mp>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of Np)e();isFinite(Mp)||(Mp=e.type===`visibilitychange`?e.timeStamp:0,jp(`prerenderingchange`,Fp,!0))}},Ip=()=>{if(Tp.document&&Mp<0){let e=kp();Mp=(Tp.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??Pp(),Ap(`visibilitychange`,Fp,!0),Ap(`pagehide`,Fp,!0),Ap(`prerenderingchange`,Fp,!0)}return{get firstHiddenTime(){return Mp},onHidden(e){Np.add(e)}}};function Lp(e){return e.type===`pagehide`||Tp.document?.visibilityState===`hidden`}var Rp=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+0xe8d4a51000}`,zp=(e,t=-1)=>{let n=Op(),r=`navigate`;return n&&(Tp.document?.prerendering||kp()>0?r=`prerender`:Tp.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:Rp(),navigationType:r}},Bp=new WeakMap;function Vp(e,t){try{return Bp.get(e)||Bp.set(e,new t),Bp.get(e)}catch{return new t}}var Hp=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},Up=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Wp=e=>{let t=!1;return()=>{t||=(e(),!0)}},Gp=e=>{Tp.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},Kp=[1800,3e3],qp=(e,t={})=>{Gp(()=>{let n=Ip(),r=zp(`FCP`),i,a=Up(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-kp(),0),r.entries.push(t),i(!0)))});a&&(i=Dp(e,r,Kp,t.reportAllChanges))})},Jp=[.1,.25],Yp=(e,t={})=>{qp(Wp(()=>{let n=zp(`CLS`,0),r,i=Ip(),a=Vp(t,Hp),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=Up(`layout-shift`,o);s&&(r=Dp(e,n,Jp,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),Tp?.setTimeout?.(r))}))},Xp=0,Zp=1/0,Qp=0,$p=e=>{e.forEach(e=>{e.interactionId&&(Zp=Math.min(Zp,e.interactionId),Qp=Math.max(Qp,e.interactionId),Xp=Qp?(Qp-Zp)/7+1:0)})},em,tm=()=>em?Xp:performance.interactionCount||0,nm=()=>{`interactionCount`in performance||em||(em=Up(`event`,$p,{type:`event`,buffered:!0,durationThreshold:0}))},rm=10,im=0,am=()=>tm()-im,om=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){im=tm(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(am()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<rm||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>rm){let e=this._longestInteractionList.splice(rm);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},sm=e=>{let t=Tp.requestIdleCallback||Tp.setTimeout;Tp.document?.visibilityState===`hidden`?e():(e=Wp(e),Ap(`visibilitychange`,e,{once:!0,capture:!0}),Ap(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),jp(`visibilitychange`,e,{capture:!0}),jp(`pagehide`,e,{capture:!0})}
5))},cm=[200,500],lm=40,um=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=Ip();Gp(()=>{nm();let r=zp(`INP`),i,a=Vp(t,om),o=e=>{sm(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=Up(`event`,o,{durationThreshold:t.durationThreshold??lm});i=Dp(e,r,cm,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},dm=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},fm=[2500,4e3],pm=(e,t={})=>{Gp(()=>{let n=Ip(),r=zp(`LCP`),i,a=Vp(t,dm),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-kp(),0),r.entries=[t],i())},s=Up(`largest-contentful-paint`,o);if(s){i=Dp(e,r,fm,t.reportAllChanges);let n=Wp(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(sm(n),jp(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])Ap(e,a,{capture:!0})}})},mm=[800,1800],hm=e=>{Tp.document?.prerendering?Gp(()=>hm(e)):Tp.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>hm(e),!0)},gm=(e,t={})=>{let n=zp(`TTFB`),r=Dp(e,n,mm,t.reportAllChanges);hm(()=>{let e=Op();e&&(n.value=Math.max(e.responseStart-kp(),0),n.entries=[e],r(!0))})},_m={},vm={},ym,bm,xm,Sm;function Cm(e,t=!1){return Nm(`cls`,e,km,ym,t)}function wm(e,t=!1){return Nm(`lcp`,e,Am,bm,t)}function Tm(e){return Nm(`ttfb`,e,jm,xm)}function Em(e){return Nm(`inp`,e,Mm,Sm)}function Dm(e,t){return Fm(e,t),vm[e]||(Pm(e),vm[e]=!0),Im(e,t)}function Om(e,t){let n=_m[e];if(n?.length)for(let r of n)try{r(t)}catch(t){wp&&Q.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Gn(r)}\nError:`,t)}}function km(){return Yp(e=>{Om(`cls`,{metric:e}),ym=e},{reportAllChanges:!0})}function Am(){return pm(e=>{Om(`lcp`,{metric:e}),bm=e},{reportAllChanges:!0})}function jm(){return gm(e=>{Om(`ttfb`,{metric:e}),xm=e})}function Mm(){return um(e=>{Om(`inp`,{metric:e}),Sm=e})}function Nm(e,t,n,r,i=!1){Fm(e,t);let a;return vm[e]||(a=n(),vm[e]=!0),r&&t({metric:r}),Im(e,t,i?a:void 0)}function Pm(e){let t={};e===`event`&&(t.durationThreshold=0),Up(e,t=>{Om(e,{entries:t})},t)}function Fm(e,t){_m[e]=_m[e]||[],_m[e].push(t)}function Im(e,t,n){return()=>{n&&n();let r=_m[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Lm(e){return`duration`in e}var Rm=e=>{let t=t=>{(t.type===`pagehide`||Tp.document?.visibilityState===`hidden`)&&e(t)};Ap(`visibilitychange`,t,{capture:!0,once:!0}),Ap(`pagehide`,t,{capture:!0,once:!0})};function zm(e){return typeof e==`number`&&isFinite(e)}function Bm(e,t,n,{...r}){let i=Kn(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),ql(e,()=>{let e=Kl({startTime:t,...r});return e&&e.end(n),e})}function Vm(e){let t=Jr();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=Di(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return Kl({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Tp.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function Hm(){return Tp.addEventListener&&Tp.performance}function Um(e){return e/1e3}function Wm(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function Gm(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Km(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n),r=!0}Rm(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e.spanContext().spanId,o()})}function qm(e){let t=0,n;if(!Gm(`layout-shift`))return;let r=Cm(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Km(e,(e,i)=>{Jm(t,n,i,e),r()})}function Jm(e,t,n,r){wp&&Q.log(`Sending CLS span (${e})`);let i=t?Um((Wi()||0)+t.startTime):Xr(),a=Di().getScopeData().transactionName,o=t?Dr(t.sources[0]?.node):`Layout shift`,s={[ri]:`auto.http.browser.cls`,[Wn]:`ui.webvital.cls`,[Ai]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};
5t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=Dr(e.node)});let c=Vm({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[Hr]:``,[wr]:e}),c.end(i))}function Ym(e){let t=0,n;if(!Gm(`largest-contentful-paint`))return;let r=wm(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Km(e,(e,i)=>{Xm(t,n,i,e),r()})}function Xm(e,t,n,r){wp&&Q.log(`Sending LCP span (${e})`);let i=Um((Wi()||0)+(t?.startTime||0)),a=Di().getScopeData().transactionName,o=t?Dr(t.element):`Largest contentful paint`,s={[ri]:`auto.http.browser.lcp`,[Wn]:`ui.webvital.lcp`,[Ai]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=Dr(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=Vm({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[Hr]:`millisecond`,[wr]:e}),c.end(i))}function Zm(e){return e&&((Wi()||performance.timeOrigin)+e)/1e3}function Qm(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=Wm(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return Wi()||Hm()?.timeOrigin?$m({...t,"http.request.redirect_start":Zm(e.redirectStart),"http.request.redirect_end":Zm(e.redirectEnd),"http.request.worker_start":Zm(e.workerStart),"http.request.fetch_start":Zm(e.fetchStart),"http.request.domain_lookup_start":Zm(e.domainLookupStart),"http.request.domain_lookup_end":Zm(e.domainLookupEnd),"http.request.connect_start":Zm(e.connectStart),"http.request.secure_connection_start":Zm(e.secureConnectionStart),"http.request.connection_end":Zm(e.connectEnd),"http.request.request_start":Zm(e.requestStart),"http.request.response_start":Zm(e.responseStart),"http.request.response_end":Zm(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function $m(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var eh=2147483647,th=0,nh={},rh,ih;function ah({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=Hm();if(r&&Wi()){r.mark&&Tp.performance.mark(`sentry-tracing-init`);let i=t?Ym(n):uh(),a=dh(),o=e?qm(n):lh();return()=>{i?.(),a(),o?.()}}return()=>void 0}function oh(){Dm(`longtask`,({entries:e})=>{let t=Or();if(!t)return;let{op:n,start_timestamp:r}=Kn(t);for(let i of e){let e=Um(Wi()+i.startTime),a=Um(i.duration);n===`navigation`&&r&&e<r||Bm(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[ri]:`auto.ui.browser.metrics`}})}})}function sh(){new PerformanceObserver(e=>{let t=Or();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=Um(Wi()+n.startTime),{start_timestamp:r,op:i}=Kn(t);if(i===`navigation`&&r&&e<r)continue;let a=Um(n.duration),o={[ri]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),Bm(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function ch(){Dm(`event`,({entries:e})=>{let t=Or();if(t){for(let n of e)if(n.name===`click`){let e=Um(Wi()+n.startTime),r=Um(n.duration),i={name:Dr(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[ri]:`auto.ui.browser.metrics`}},a=lr(n.target);a&&(i.attributes[`ui.component_name`]=a),Bm(t,e,e+r,i)}}})}function lh(){return Cm(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(nh.cls={value:e.value,unit:``},ih=t)},!0)}function uh(){return wm(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(nh.lcp={value:e.value,unit:`millisecond`},rh=t)},!0)}function dh(){return Tm(({metric:e})=>{e.entries[e.entries.length-1]&&(nh.ttfb={value:e.value,unit:`millisecond`})})}function fh(e,t){let n=Hm(),r=Wi();if(!n?.getEntries||!r)return;let i=Um(r),a=n.getEntries(),{op:o,start_timestamp:s}=Kn(e);
5a.slice(th).forEach(n=>{let r=Um(n.startTime),a=Um(Math.max(0,n.duration));if(!(o===`navigation`&&s&&i+r<s))switch(n.entryType){case`navigation`:gh(e,n,i);break;case`mark`:case`paint`:case`measure`:{mh(e,n,r,a,i,t.ignorePerformanceApiSpans);let o=Ip(),s=n.startTime<o.firstHiddenTime;n.name===`first-paint`&&s&&(nh.fp={value:n.startTime,unit:`millisecond`}),n.name===`first-contentful-paint`&&s&&(nh.fcp={value:n.startTime,unit:`millisecond`});break}case`resource`:bh(e,n,n.name,r,a,i,t.ignoreResourceSpans)}}),th=Math.max(a.length-1,0),xh(e),o===`pageload`&&(wh(nh),t.recordClsOnPageloadSpan||delete nh.cls,t.recordLcpOnPageloadSpan||delete nh.lcp,Object.entries(nh).forEach(([e,t])=>{Nl(e,t.value,t.unit)}),e.setAttribute(`performance.timeOrigin`,i),e.setAttribute(`performance.activationStart`,kp()),Sh(e,t)),rh=void 0,ih=void 0,nh={}}function ph(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components ⚛`}catch{return}}function mh(e,t,n,r,i,a){if(ph(t)||[`mark`,`measure`].includes(t.entryType)&&xr(t.name,a))return;let o=Op(!1),s=Um(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[ri]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),hh(d,t),c<=u&&Bm(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function hh(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&ji(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(ji(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function gh(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{_h(e,t,r,n)}),_h(e,t,`secureConnection`,n,`TLS/SSL`),_h(e,t,`fetch`,n,`cache`),_h(e,t,`domainLookup`,n,`DNS`),yh(e,t,n)}function _h(e,t,n,r,i=n){let a=t[vh(n)],o=t[`${n}Start`];!o||!a||Bm(e,r+Um(o),r+Um(a),{op:`browser.${i}`,name:t.name,attributes:{[ri]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function vh(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function yh(e,t,n){let r=n+Um(t.requestStart),i=n+Um(t.responseEnd),a=n+Um(t.responseStart);t.responseEnd&&(Bm(e,r,i,{op:`browser.request`,name:t.name,attributes:{[ri]:`auto.ui.browser.metrics`}}),Bm(e,a,i,{op:`browser.response`,name:t.name,attributes:{[ri]:`auto.ui.browser.metrics`}}))}function bh(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[ri]:`auto.resource.browser.metrics`},l=gd(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(Tp.location.origin),Ch(t,c,[[`responseStatus`,`http.response.status_code`],[`transferSize`,`http.response_transfer_size`],[`encodedBodySize`,`http.response_content_length`],[`decodedBodySize`,`http.decoded_response_content_length`],[`renderBlockingStatus`,`resource.render_blocking_status`],[`deliveryType`,`http.response_delivery_type`]]);let u={...c,...Qm(t)},d=a+r;Bm(e,d,d+i,{name:n.replace(Tp.location.origin,``),op:s,attributes:u})}function xh(e){let t=Tp.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute(`effectiveConnectionType`,n.effectiveType),n.type&&e.setAttribute(`connectionType`,n.type),zm(n.rtt)&&(nh[`connection.rtt`]={value:n.rtt,unit:`millisecond`})),zm(t.deviceMemory)&&e.setAttribute(`deviceMemory`,`${t.deviceMemory} GB`),zm(t.hardwareConcurrency)&&e.setAttribute(`hardwareConcurrency`,String(t.hardwareConcurrency))}function Sh(e,t){rh&&t.recordLcpOnPageloadSpan&&(rh.element&&e.setAttribute(`lcp.element`,Dr(rh.element)),rh.id&&e.setAttribute(`lcp.id`,rh.id),rh.url&&e.setAttribute(`lcp.url`,rh.url.trim().slice(0,200)),rh.loadTime!=null&&e.setAttribute(`lcp.loadTime`,rh.loadTime),rh.renderTime!=null&&e.setAttribute(`lcp.renderTime`,rh.renderTime),e.setAttribute(`lcp.size`,rh.size)),ih?.sources&&t.recordClsOnPageloadSpan&&ih.sources.forEac
5h((t,n)=>e.setAttribute(`cls.source.${n+1}`,Dr(t.node)))}function Ch(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<eh||typeof i==`string`)&&(t[r]=i)})}function wh(e){let t=Op(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}function Th(){return Hm()&&Wi()?Dm(`element`,Eh):()=>void 0}var Eh=({entries:e})=>{let t=Or(),n=t?Xn(t):void 0,r=n?Kn(n).description:Di().getScopeData().transactionName;e.forEach(e=>{let t=e;if(!t.identifier)return;let n=t.name,i=t.renderTime,a=t.loadTime,[o,s]=a?[Um(a),`load-time`]:i?[Um(i),`render-time`]:[Xr(),`entry-emission`],c=n===`image-paint`?Um(Math.max(0,(i??0)-(a??0))):0,l={[ri]:`auto.ui.browser.elementtiming`,[Wn]:`ui.elementtiming`,[Ni]:`component`,"sentry.span_start_time_source":s,"sentry.transaction_name":r,"element.id":t.id,"element.type":t.element?.tagName?.toLowerCase()||`unknown`,"element.size":t.naturalWidth&&t.naturalHeight?`${t.naturalWidth}x${t.naturalHeight}`:void 0,"element.render_time":i,"element.load_time":a,"element.url":t.url||void 0,"element.identifier":t.identifier,"element.paint_type":n};Gl({name:`element[${t.identifier}]`,attributes:l,startTime:o,onlyIfParent:!0},e=>{e.end(o+c)})})},Dh=1e3,Oh,kh,Ah;function jh(e){Qc(`dom`,e),$c(`dom`,Mh)}function Mh(){if(!Tp.document)return;let e=el.bind(null,`dom`),t=Fh(e,!0);Tp.document.addEventListener(`click`,t,!1),Tp.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=Tp[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(yr(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=Fh(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),yr(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Nh(e){if(e.type!==kh)return!1;try{if(!e.target||e.target._sentryId!==Ah)return!1}catch{}return!0}function Ph(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function Fh(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Ih(n);if(Ph(n.type,r))return;mi(n,`_sentryCaptured`,!0),r&&!r._sentryId&&mi(r,`_sentryId`,jr());let i=n.type===`keypress`?`input`:n.type;Nh(n)||(e({event:n,name:i,global:t}),kh=n.type,Ah=r?r._sentryId:void 0),clearTimeout(Oh),Oh=Tp.setTimeout(()=>{Ah=void 0,kh=void 0},Dh)}}function Ih(e){try{return e.target}catch{return null}}var Lh;function Rh(e){let t=`history`;Qc(t,e),$c(t,zh)}function zh(){if(Tp.addEventListener(`popstate`,()=>{let e=Tp.location.href,t=Lh;Lh=e,t!==e&&el(`history`,{from:t,to:e})}),!Ff())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Lh,i=Bh(String(n));if(Lh=i,r===i)return e.apply(this,t);el(`history`,{from:r,to:i})}return e.apply(this,t)}}yr(Tp.history,`pushState`,e),yr(Tp.history,`replaceState`,e)}function Bh(e){try{return new URL(e,Tp.location.origin).toString()}catch{return e}}var Vh={};function Hh(e){let t=Vh[e];if(t)return t;let n=Tp[e];if(Lf(n))return Vh[e]=n.bind(Tp);let r=Tp.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){wp&&Q.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Vh[e]=n.bind(Tp))}function Uh(e){Vh[e]=void 0}function Wh(...e){return Hh(`setTimeout`)(...e)}var Gh=`__sentry_xhr_v3__`;function Kh(e){Qc(`xhr`,e),$c(`xhr`,qh)}function qh(){if(!Tp.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=Xr()*1e3,a=Vr(n[0])?n[0].toUpperCase():void 0,o=Jh(n[1]);if(!a||!o)return e.apply(t,n);t[Gh]={method:a,url:o,request_headers:{}}
5,a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[Gh];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}el(`xhr`,{endTimestamp:Xr()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[Gh];return a&&Vr(r)&&Vr(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[Gh];return r?(n[0]!==void 0&&(r.body=n[0]),el(`xhr`,{startTimestamp:Xr()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function Jh(e){if(Vr(e))return e;try{return e.toString()}catch{}}var Yh=Symbol.for(`sentry__originalRequestBody`);function Xh(e){return new URLSearchParams(e).toString()}function Zh(e,t=Q){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Xh(e)];if(!e)return[void 0]}catch(n){return wp&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return wp&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function Qh(e=[]){if(e.length>=2&&e[1]&&typeof e[1]==`object`&&`body`in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][Yh];return t===void 0?void 0:t}}function $h(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return wp&&Q.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r
6`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}var eg=[],tg=new Map,ng=new Map,rg=60;function ig(){if(Hm()&&Wi()){let e=og();return()=>{e()}}return()=>void 0}var ag={click:`click`,pointerdown:`click`,pointerup:`click`,mousedown:`click`,mouseup:`click`,touchstart:`click`,touchend:`click`,mouseover:`hover`,mouseout:`hover`,mouseenter:`hover`,mouseleave:`hover`,pointerover:`hover`,pointerout:`hover`,pointerenter:`hover`,pointerleave:`hover`,dragstart:`drag`,dragend:`drag`,drag:`drag`,dragenter:`drag`,dragleave:`drag`,dragover:`drag`,drop:`drag`,keydown:`press`,keyup:`press`,keypress:`press`,input:`press`};function og(){return Em(sg)}var sg=({metric:e})=>{if(e.value==null)return;let t=Um(e.value);if(t>rg)return;let n=e.entries.find(t=>t.duration===e.value&&ag[t.name]);if(!n)return;let{interactionId:r}=n,i=ag[n.name],a=Um(Wi()+n.startTime),o=Or(),s=o?Xn(o):void 0,c=r==null?void 0:tg.get(r),l=c?.span||s,u=l?Kn(l).description:Di().getScopeData().transactionName,d=Vm({name:c?.elementName||Dr(n.target),transaction:u,attributes:{[ri]:`auto.http.browser.inp`,[Wn]:`ui.interaction.${i}`,[Ai]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[Hr]:`millisecond`,[wr]:e.value}),d.end(a+t))};function cg(){let e=Object.keys(ag);Zf()&&e.forEach(e=>{Tp.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=Dr(t),r=Math.round(e.timeStamp);if(ng.set(r,n),ng.size>50){let e=ng.keys().next().value;e!==void 0&&ng.delete(e)}}function n(e){let t=Math.round(e.startTime),n=ng.get(t);if(!n)for(let e=-5;e<=5;e++){let r=ng.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=Or(),r=t&&Xn(t);e.forEach(e=>{if(!Lm(e))return;let t=e.interactionId;if(t==null||tg.has(t))return;let i=e.target?Dr(e.target):n(e);if(eg.length>10){let e=eg.shift();tg.delete(e)}eg.push(t),tg.set(t,{span:r,elementName:i})})};Dm(`event`,r),Dm(`first-input`,r)}var lg=40;function ug(e,t=Hh(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw Uh(`fetch`),e}finally{n-=a,r--}}return Lu(e,i,ju(e.bufferSize||lg))}var $=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,dg=30,fg=50;function pg(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var mg=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,hg=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gg=/\((\S*)(?::(\d+))(?::(\d+))\)/,_g=/at (.+?) ?\(data:(.+?),/,vg=[dg,e=>{let t=e.match(_g);
6if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=mg.exec(e);if(n){let[,e,t,r]=n;return pg(e,`?`,+t,+r)}let r=hg.exec(e);if(r){if(r[2]&&r[2].indexOf(`eval`)===0){let e=gg.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Sg(r[1]||`?`,r[2]);return pg(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],yg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,bg=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,xg=Ur(vg,[fg,e=>{let t=yg.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=bg.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Sg(n,e),pg(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Sg=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Cg=1024,wg=`Breadcrumbs`,Tg=yu(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:wg,setup(e){t.console&&of(Og(e)),t.dom&&jh(Dg(e,t.dom)),t.xhr&&Kh(kg(e)),t.fetch&&zf(Ag(e)),t.history&&Rh(jg(e)),t.sentry&&e.on(`beforeSendEvent`,Eg(e))}}}));function Eg(e){return function(t){Jr()===e&&Ad({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:Ki(t)},{event:t})}}function Dg(e,t){return function(n){if(Jr()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>Cg&&($&&Q.warn(`\`dom.maxStringLength\` cannot exceed ${Cg}, but a value of ${o} was configured. Sentry will use ${Cg} instead.`),o=Cg),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Mg(e)?e.target:e;r=Dr(t,{keyAttrs:a,maxStringLength:o}),i=lr(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),Ad(s,{event:n.event,name:n.name,global:n.global})}}function Og(e){return function(t){if(Jr()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:cf(t.level),message:$n(t.args,` `)};if(t.level===`assert`){if(t.args[0]===!1)n.message=`Assertion failed: ${$n(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return}Ad(n,{input:t.args,level:t.level})}}function kg(e){return function(t){if(Jr()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[Gh];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Nf(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),Ad(d,u)}}function Ag(e){return function(t){if(Jr()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.fetchData.method,t.fetchData.url,t.error){let i=t.fetchData,a={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},o={category:`fetch`,data:i,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,o,a),Ad(o,a)}else{let i=t.response,a={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size,i?.status;let o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Nf(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),Ad(s,o)}}}}function jg(e){return function(t){if(Jr()!==e)return;let n=t.from,r=t.to,i=gd($f.location.href),a=n?gd(n):void 0,o=gd(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Ad({category:`navigation`,data:{from:n,to:r}})}}function Mg(e){return!!e&&!!e.target}var Ng=`EventTarget.Window.Node.ApplicationCache.AudioTrackList.BroadcastChannel.ChannelMergerNode.CryptoOperation.EventSource.FileReader.HTMLUnknownElement.IDBDatabase.IDBRequest.IDBTransaction.KeyOperation.MediaController.MessagePort.ModalWindow.Notification.SVGElementInstance.Screen.SharedWorker.TextTrack.TextTrackCue.TextTrackList.WebSocket.WebSocketWorker.Worker.XMLHttpRequest.XMLHttpRequestEventTarget.XMLHttpRequestUpload`.split(`.`),Pg=`BrowserApiErrors`,Fg=yu(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Pg,setupOnce(){t.setTimeout&&yr($f,`setTimeout`,Ig),t.setInterval&&yr($f,`setInterval`,Ig),t.requestAnimationFrame&&yr($f,`requestAnimationFrame`,Lg),t.XMLHttpRequest&&`XMLHttpRequest`in $f&&yr(XMLHttpRequest.prototype,`send`,Rg);let e=t.eventTarget;
6e&&(Array.isArray(e)?e:Ng).forEach(e=>zg(e,t))}}}));function Ig(e){return function(...t){let n=t[0];return t[0]=rp(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Gn(e)}`}}),e.apply(this,t)}}function Lg(e){return function(t){return e.apply(this,[rp(t,{mechanism:{data:{handler:Gn(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Rg(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&yr(n,e,function(t){let n={mechanism:{data:{handler:Gn(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Cr(t);return r&&(n.mechanism.data.handler=Gn(r)),rp(t,n)})}),e.apply(this,t)}}function zg(e,t){let n=$f[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(yr(n,`addEventListener`,function(n){return function(r,i,a){try{Bg(i)&&(i.handleEvent=rp(i.handleEvent,{mechanism:{data:{handler:Gn(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Vg(this,r,i),n.apply(this,[r,rp(i,{mechanism:{data:{handler:Gn(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),yr(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function Bg(e){return typeof e.handleEvent==`function`}function Vg(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Hg=yu(()=>({name:`BrowserSession`,setupOnce(){if($f.document===void 0){$&&Q.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Zr({ignoreDuration:!0}),Kr(),Rh(({from:e,to:t})=>{e!==void 0&&e!==t&&(Zr({ignoreDuration:!0}),Kr())})}})),Ug=`GlobalHandlers`,Wg=yu(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Ug,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(Gg(e),Xg(`onerror`)),t.onunhandledrejection&&(Kg(e),Xg(`onunhandledrejection`))}}}));function Gg(e){nl(t=>{let{stackParser:n,attachStacktrace:r}=Zg();if(Jr()!==e||tp())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Yg(_p(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Mi(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Kg(e){al(t=>{let{stackParser:n,attachStacktrace:r}=Zg();if(Jr()!==e||tp())return;let i=qg(t),a=ji(i)?Jg(i):_p(n,i,void 0,r,!0);a.level=`error`,Mi(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function qg(e){if(ji(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Jg(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Yg(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[],l=r,u=n,d=Qg(t)??hr();return c.length===0&&c.push({colno:l,filename:d,function:`?`,in_app:!0,lineno:u}),e}function Xg(e){$&&Q.log(`Global Handler attached: ${e}`)}function Zg(){return Jr()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Qg(e){if(!(!Vr(e)||e.length===0))return e.startsWith(`data:`)?`<${vd(e,!1)}>`:e}var $g=yu(()=>({name:`HttpContext`,preprocessEvent(e){if(!$f.navigator&&!$f.location&&!$f.document)return;let t=ip(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}})),e_=`cause`,t_=5,n_=`LinkedErrors`,r_=yu(((e={})=>{let t=e.limit||t_,n=e.key||e_;return{name:n_,preprocessEvent(e,r,i){Jd(ap,i.getOptions().stackParser,n,t,e,r)}}}));function i_(){return a_()?($&&Ci(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function a_(){if($f.window===void 0)return!1;let e=$f;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=hr();return!($f===$f.top&&[`chrome-extension`,`moz-extension`,`ms-browser-extension`,`safari-web-extension`].some(e=>
6t.startsWith(`${e}://`)))}function o_(e){return[Rd(),Pd(),wf(),Fg(),Tg(),Wg(),r_(),uf(),$g(),Hg()]}function s_(e={}){let t=!e.skipBrowserExtensionCheck&&i_(),n=e.defaultIntegrations==null?o_():e.defaultIntegrations;return ud(Sp,{...e,enabled:!t&&e.enabled,stackParser:ni(e.stackParser||xg),integrations:hu({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||ug})}var c_=vi,l_=`sentryReplaySession`,u_=`replay_event`,d_=`Unable to send Replay`,f_=3e5,p_=9e5,m_=5e3,h_=5500,g_=6e4,__=5e3,v_=3,y_=15e4,b_=5e3,x_=3e3,S_=300,C_=2e7,w_=4999,T_=5e4,E_=36e5,D_=Object.defineProperty,O_=(e,t,n)=>t in e?D_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k_=(e,t,n)=>O_(e,typeof t==`symbol`?t:t+``,n),A_=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(A_||{});function j_(e){return e.nodeType===e.ELEMENT_NODE}function M_(e){return e?.host?.shadowRoot===e}function N_(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function P_(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function F_(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let n=[`@import`,`url(${JSON.stringify(e.href)})`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function I_(e){try{let t=e.rules||e.cssRules;return t?P_(Array.from(t,R_).join(``)):null}catch{return null}}function L_(e){let t=``;for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?` !important`:``};`}return`${e.selectorText} { ${t} }`}function R_(e){let t;if(B_(e))try{t=I_(e.styleSheet)||F_(e)}catch{}else if(V_(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=L_(e)),n&&(t=z_(t)),n||r)return t}return t||e.cssText}function z_(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function B_(e){return`styleSheet`in e}function V_(e){return`selectorText`in e}var H_=class{constructor(){k_(this,`idNodeMap`,new Map),k_(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function U_(){return new H_}function W_({maskInputOptions:e,tagName:t,type:n}){return t===`OPTION`&&(t=`SELECT`),!!(e[t.toLowerCase()]||n&&e[n]||n===`password`||t===`INPUT`&&!n&&e.text)}function G_({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function K_(e){return e.toLowerCase()}function q_(e){return e.toUpperCase()}var J_=`__rrweb_original__`;function Y_(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=J_ in i?i[J_]:i;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function X_(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?K_(t):null}function Z_(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function Q_(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var $_={};function ev(e){let t=$_[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return $_[e]=r.bind(window)}function tv(...e){return ev(`setTimeout`)(...e)}function nv(...e){return ev(`clearTimeout`)(...e)}function rv(e){try{return e.contentDocument}catch{}}var iv=1,av=RegExp(`[^a-z0-9-_:]`),ov=-2;function sv(){return iv++}function cv(e){if(e instanceof HTMLFormElement)return`form`;let t=K_(e.tagName);return av.test(t)?`div`:t}function lv(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var uv,dv,fv=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pv=/^(?:[a-z+]+:)?\/\//i,mv=/^www\..*/i,hv=/^(data:)([^,]*),(.*)/i;
6function gv(e,t){if(!e||t.size===0)return e;try{let n=e.split(`;`),r=[];for(let e of n){if(e=e.trim(),!e)continue;let n=e.indexOf(`:`);if(n===-1){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join(`; `)+(r.length>0&&e.endsWith(`;`)?`;`:``)}catch(t){return console.warn(`Error filtering CSS properties:`,t),e}}function _v(e,t){return(e||``).replace(fv,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(pv.test(s)||mv.test(s)||hv.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${lv(t)+s}${c})`;let l=t.split(`/`),u=s.split(`/`);l.pop();for(let e of u)if(e===`.`)continue;else e===`..`?l.pop():l.push(e);return`url(${c}${l.join(`/`)}${c})`})}var vv=/^[^ \t\n\r\u000c]+/,yv=/^[, \t\n\r\u000c]+/;function bv(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(yv),!(n>=t.length);){let a=r(vv);if(a.slice(-1)===`,`)a=Sv(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=Sv(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}if(o)e===`)`&&(o=!1);else{if(e===`,`){n+=1,i.push((a+r).trim());break}e===`(`&&(o=!0)}r+=e,n+=1}}}return i.join(`, `)}var xv=new WeakMap;function Sv(e,t){return!t||t.trim()===``?t:wv(e,t)}function Cv(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function wv(e,t){let n=xv.get(e);if(n||(n=e.createElement(`a`),xv.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function Tv(e,t,n,r,i,a,o){if(!r)return r;if(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`))return Sv(e,r);if(n===`srcset`)return bv(e,r);if(n===`style`){let t=_v(r,wv(e));return o&&o.size>0&&(t=gv(t,o)),t}return t===`object`&&n===`data`?Sv(e,r):typeof a==`function`?a(n,r,i):r}function Ev(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function Dv(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function Ov(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function kv(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:kv(e.parentNode,t,n,r+1)}function Av(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(Ov(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function jv(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName===`INPUT`){let e=o.getAttribute(`autocomplete`);if([`current-password`,`new-password`,`cc-number`,`cc-exp`,`cc-exp-month`,`cc-exp-year`,`cc-csc`].includes(e))return!0}let s=-1,c=-1;if(a){if(c=kv(o,Av(r,i)),c<0)return!0;s=kv(o,Av(t,n),c>=0?c:1/0)}else{if(s=kv(o,Av(t,n)),s<0)return!1;c=kv(o,Av(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function Mv(e,t,n){let r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=tv(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{nv(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return tv(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function Nv(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;let a=tv(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{nv(a),r=!0,t()})}function Pv(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1,ignoreCSSAttributes:S}=t,C=Fv(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:A_.Document,childNodes:[]}:{type:A_.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:A_.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return Lv(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:g,dataURLOptions:_,inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x,rootId:C,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return Iv(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:
6h,maskInputOptions:m,maskInputFn:g,rootId:C});case e.CDATA_SECTION_NODE:return{type:A_.CDATA,textContent:``,rootId:C};case e.COMMENT_NODE:return{type:A_.Comment,textContent:e.textContent||``,rootId:C};default:return!1}}function Fv(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function Iv(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p=d===`STYLE`||void 0,m=d===`SCRIPT`||void 0,h=d===`TEXTAREA`||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=I_(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=_v(f,wv(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=jv(e,r,a,i,o,n);return!p&&!m&&!h&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,`*`)),h&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,`*`)),d===`OPTION`&&f&&(f=G_({isMasked:jv(e,r,a,i,o,W_({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:A_.Text,textContent:f||``,isStyle:p,rootId:u}}function Lv(e,t){let{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:h,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:y,ignoreCSSAttributes:b}=t,x=Dv(e,r,i,a),S=cv(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!Ev(S,r.name,r.value)&&(C[r.name]=Tv(n,S,K_(r.name),r.value,e,c,b))}if(S===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=I_(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=_v(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=I_(e.sheet);t&&(C._cssText=_v(t,wv(n)))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=X_(t),r=Z_(t,q_(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=jv(t,g,v,_,y,W_({type:n,tagName:q_(S),maskInputOptions:s}));C.value=G_({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(C.checked=i)}if(S===`option`&&(e.selected&&!s.select?C.selected=!0:delete C.selected),S===`canvas`&&f){if(e.__context===`2d`)Y_(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}}if(S===`img`&&d){uv||(uv=n.createElement(`canvas`),dv=uv.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{uv.width=t.naturalWidth,uv.height=t.naturalHeight,dv.drawImage(t,0,0),C.rr_dataURL=uv.toDataURL(u.type,u.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?C.crossOrigin=i:t.removeAttribute(`crossorigin`))};t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if((S===`audio`||S===`video`)&&(C.rr_mediaState=e.paused?`paused`:`played`,C.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}S===`iframe`&&!p(C.src)&&(!x&&!rv(e)&&(C.rr_src=C.src),delete C.src);let T;try{customElements.get(S)&&(T=!0)}catch{}return{type:A_.Element,tagName:S,attributes:C,childNodes:[],isSVG:Cv(e)||void 0,needBlock:x,rootId:h,isCustom:T}}function Rv(e){return e==null?``:e.toLowerCase()}function zv(e,t){return!!(t.comment&&e.type===A_.Comment||e.type===A_.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&Q_(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(Rv(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Rv(e.attributes.name)===`application-name`||Rv(e.attributes.rel)===`icon`||Rv(e.attributes.rel)===`apple-touch-icon`||Rv(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&Rv(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(Rv(e.attributes.property).match(/^(og|twitter|fb):/)||Rv(e.attributes.name).match(/^(og|twitter):/)||Rv(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(Rv(e.attributes.name)===`robots`||Rv(e.attributes.name)===`googlebot`||Rv(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(Rv(e.attributes.name)===`author`||Rv(e.attributes.name)===`generator`||Rv(e.attributes.name)===`framework`||Rv(e.attributes.name)===`publisher`||Rv(e.attributes.name)===`progid`||Rv(e.attributes.property).match(/^article:/)||Rv(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(Rv(e.attributes.name)===`google-site-verification`||Rv(e.attributes.name)===`yandex-verification`||Rv(e.attributes.name)===`csrf-token`||Rv(e.attributes.name)===`p:domain_verify`||Rv(e.attributes.name)===`verify-v1`||Rv(e.attributes.name)===`verification`||Rv(e.attributes.name)===`shopify-checkout-api-token`)))
6)}function Bv(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y={},inlineImages:b=!1,recordCanvas:x=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w=5e3,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:D=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:k=!1,ignoreCSSAttributes:A}=t,{preserveWhiteSpace:j=!0}=t,M=Pv(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:x,keepIframeSrcFn:O,newlyAddedElement:k,ignoreCSSAttributes:A});if(!M)return console.warn(e,`not serialized`),null;let N;N=r.hasNode(e)?r.getId(e):zv(M,v)||!j&&M.type===A_.Text&&!M.isStyle&&!M.textContent.replace(/^\s+|\s+$/gm,``).length?ov:sv();let P=Object.assign(M,{id:N});if(r.add(e,P),N===ov)return null;S&&S(e);let F=!f;if(P.type===A_.Element){F&&=!P.needBlock;let t=e.shadowRoot;t&&N_(t)&&(P.isShadowHost=!0)}if((P.type===A_.Document||P.type===A_.Element)&&F){v.headWhitespace&&P.type===A_.Element&&P.tagName===`head`&&(j=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:O,ignoreCSSAttributes:A},k=e.childNodes?Array.from(e.childNodes):[];for(let e of k){let n=Bv(e,t);n&&P.childNodes.push(n)}if(j_(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=Bv(n,t);r&&(N_(e.shadowRoot)&&(r.isShadow=!0),P.childNodes.push(r))}}if(e.parentNode&&M_(e.parentNode)&&N_(e.parentNode)&&(P.isShadow=!0),P.type===A_.Element&&P.tagName===`iframe`&&!P.needBlock&&Mv(e,()=>{let t=rv(e);if(t&&C){let n=Bv(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:O,ignoreCSSAttributes:A});n&&C(e,n)}},w),P.type===A_.Element&&P.tagName===`img`&&!e.complete&&P.needBlock){let t=e,n=()=>{if(t.isConnected&&!t.complete&&T)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,P,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return P.type===A_.Element&&P.tagName===`link`&&typeof P.attributes.rel==`string`&&(P.attributes.rel===`stylesheet`||P.attributes.rel===`preload`&&typeof P.attributes.href==`string`&&Q_(P.attributes.href)===`css`)&&Nv(e,()=>{if(E){let t=Bv(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:j,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:E,stylesheetLoadTimeout:D,keepIframeSrcFn:O,ignoreCSSAttributes:A});t&&E(e,t)}},D),P.type===A_.Element&&delete P.needBlock,P}function Vv(e,t){let{mirror:n=new H_,blockClass:r=`rr-block`,blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s=`rr-mask`,unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:v=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:O=new Set([])}=t||{};return Bv(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v===!0||v===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
6:v===!1?{}:v,dataURLOptions:y,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:E,keepIframeSrcFn:D,newlyAddedElement:!1,ignoreCSSAttributes:O})}function Hv(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var Uv=`Please stop import mirror directly. Instead of that,\r
7now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
8or you can use record.mirror to access the mirror instance during recording.`,Wv={map:{},getId(){return console.error(Uv),-1},getNode(){return console.error(Uv),null},removeNodeFromMap(){console.error(Uv)},has(){return console.error(Uv),!1},reset(){console.error(Uv)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(Wv=new Proxy(Wv,{get(e,t,n){return t===`map`&&console.error(Uv),Reflect.get(e,t,n)}}));function Gv(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(_y(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=gy(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function Kv(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){gy(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>Kv(e,t,a||{},!0)}function qv(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var Jv=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Jv=()=>new Date().getTime());function Yv(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function Xv(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Zv(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Qv(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function $v(e,t,n,r,i){if(!e)return!1;let a=Qv(e);if(!a)return!1;let o=Av(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=kv(a,o),c=-1;return s<0?!1:(r&&(c=kv(a,Av(null,r))),s>-1&&c<0||s<c)}function ey(e,t){return t.getId(e)!==-1}function ty(e,t){return t.getId(e)===ov}function ny(e,t){if(M_(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:!e.parentNode||ny(e.parentNode,t):!0}function ry(e){return!!e.changedTouches}function iy(e=window){`NodeList`in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),`DOMTokenList`in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t&&=t.parentNode);return!1})}function ay(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function oy(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function sy(e){return!!e?.shadowRoot}var cy=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function ly(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function uy(e){let t=e,n;for(;n=ly(t);)t=n;return t}function dy(e){let t=e.ownerDocument;if(!t)return!1;let n=uy(e);return t.contains(n)}function fy(e){let t=e.ownerDocument;return t?t.contains(e)||dy(e):!1}
8var py={};function my(e){let t=py[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return py[e]=r.bind(window)}function hy(...e){return my(`requestAnimationFrame`)(...e)}function gy(...e){return my(`setTimeout`)(...e)}function _y(...e){return my(`clearTimeout`)(...e)}var vy=(e=>(e[e.DomContentLoaded=0]=`DomContentLoaded`,e[e.Load=1]=`Load`,e[e.FullSnapshot=2]=`FullSnapshot`,e[e.IncrementalSnapshot=3]=`IncrementalSnapshot`,e[e.Meta=4]=`Meta`,e[e.Custom=5]=`Custom`,e[e.Plugin=6]=`Plugin`,e))(vy||{}),yy=(e=>(e[e.Mutation=0]=`Mutation`,e[e.MouseMove=1]=`MouseMove`,e[e.MouseInteraction=2]=`MouseInteraction`,e[e.Scroll=3]=`Scroll`,e[e.ViewportResize=4]=`ViewportResize`,e[e.Input=5]=`Input`,e[e.TouchMove=6]=`TouchMove`,e[e.MediaInteraction=7]=`MediaInteraction`,e[e.StyleSheetRule=8]=`StyleSheetRule`,e[e.CanvasMutation=9]=`CanvasMutation`,e[e.Font=10]=`Font`,e[e.Log=11]=`Log`,e[e.Drag=12]=`Drag`,e[e.StyleDeclaration=13]=`StyleDeclaration`,e[e.Selection=14]=`Selection`,e[e.AdoptedStyleSheet=15]=`AdoptedStyleSheet`,e[e.CustomElement=16]=`CustomElement`,e))(yy||{}),by=(e=>(e[e.MouseUp=0]=`MouseUp`,e[e.MouseDown=1]=`MouseDown`,e[e.Click=2]=`Click`,e[e.ContextMenu=3]=`ContextMenu`,e[e.DblClick=4]=`DblClick`,e[e.Focus=5]=`Focus`,e[e.Blur=6]=`Blur`,e[e.TouchStart=7]=`TouchStart`,e[e.TouchMove_Departed=8]=`TouchMove_Departed`,e[e.TouchEnd=9]=`TouchEnd`,e[e.TouchCancel=10]=`TouchCancel`,e))(by||{}),xy=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(xy||{}),Sy=(e=>(e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e))(Sy||{});function Cy(e){try{return e.contentDocument}catch{}}function wy(e){try{return e.contentWindow}catch{}}function Ty(e){return`__ln`in e}var Ey=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error(`Position outside of list range`);let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Ty(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Ty(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},Dy=(e,t)=>`${e}@${t}`,Oy=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new Ey,r=e=>{let t=e,n=ov;for(;n===ov;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!fy(i))return;let a=M_(i.parentNode)?this.mirror.getId(ly(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=Bv(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inl
8ineImages,onSerialize:e=>{ay(e,this.mirror)&&!$v(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),oy(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),sy(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{$v(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)Ay(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(let e of this.addedSet)!My(this.droppedSet,e)&&!Ay(this.removes,e,this.mirror)||My(this.movedSet,e)?i(e):this.droppedSet.add(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);t!==-1&&n!==-1&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(r(n.value)===-1)continue;if(t!==-1){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(this.mirror.getId(r)!==-1){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!ty(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!$v(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:jv(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Qv(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if(n===`value`){let n=X_(t),i=t.tagName;r=Z_(t,i,n);let a=W_({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=G_({isMasked:jv(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if($v(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if(t.tagName===`IFRAME`&&n===`src`&&!this.keepIframeSrcFn(r)){if(!Cy(t))n=`rr_src`;else return}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
8,this.attributes.push(i),this.attributeMap.set(e.target,i)),n===`type`&&t.tagName===`INPUT`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!Ev(t.tagName,n)&&(i.attributes[n]=Tv(this.doc,K_(t.tagName),K_(n),r,t,this.maskAttributeFn),n===`style`)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement(`span`);e.oldValue&&n.setAttribute(`style`,e.oldValue);for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||a!==n.style.getPropertyPriority(e)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}for(let e of Array.from(n.style))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if($v(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=M_(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);$v(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ty(t,this.mirror)||!ey(t,this.mirror)||(this.addedSet.has(t)?(ky(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||ny(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Dy(n,r)]?ky(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:M_(e.target)&&N_(e.target)?!0:void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(ty(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[Dy(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);$v(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),sy(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){`mutationCb.blockClass.blockSelector.unblockSelector.maskAllText.maskTextClass.unmaskTextClass.maskTextSelector.unmaskTextSelector.inlineStylesheet.maskInputOptions.maskAttributeFn.maskTextFn.maskInputFn.keepIframeSrcFn.recordCanvas.inlineImages.slimDOMOptions.dataURLOptions.doc.mirror.iframeManager.stylesheetManager.shadowDomManager.canvasManager.processedNodeManager.ignoreCSSAttributes`.split(`.`).forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function ky(e,t){e.delete(t),t.childNodes?.forEach(t=>ky(e,t))}function Ay(e,t,n){return e.length!==0&&jy(e,t,n)}function jy(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function My(e,t){return e.size!==0&&Ny(e,t)}function Ny(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Ny(e,n):!1}var Py;function Fy(e){Py=e}function Iy(){Py=void 0}var Ly=e=>Py?(...t)=>{try{return e(...t)}catch(e){if(Py&&Py(e)===!0)return()=>{};throw e}}:e,Ry=[];function zy(e){try{if(`composedPath`in e){let t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function By(e,t){let n=new Oy;Ry.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.(`MutationObserver`);i&&window[i]&&(r=window[i]);let a=new r(Ly(t=>{e.onMutation&&e.onMutation(t)===!1||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Vy({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=Gv(Ly(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=Ly(Gv(Ly(e=>{let t=zy(e),{clientX:n,clientY:i}=ry(e)?e.changedTouches[0]:e;s||=Jv(),o.push({x:n,y:i,id:r.getId(t),timeOffset:Jv()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?yy.Drag:e instanceof MouseEvent?yy.MouseMove:yy.TouchMove)}),i,{trailing:!1})),u=[Hv(`mousemove`,l,n),Hv(`touchmove`,l,n),Hv(`drag`,l,n)];return Ly(()=>
8{u.forEach(e=>e())})}function Hy({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=t=>o=>{let s=zy(o);if($v(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=xy.Mouse;break;case`touch`:c=xy.Touch;break;case`pen`:c=xy.Pen}c===xy.Touch?by[t]===by.MouseDown?u=`TouchStart`:by[t]===by.MouseUp&&(u=`TouchEnd`):xy.Pen}else ry(o)&&(c=xy.Touch);c===null?by[t]===by.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===xy.Touch||u.startsWith(`Mouse`)&&c===xy.Mouse)&&(c=null));let d=ry(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;Ly(e)({type:by[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(by).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=K_(e),r=u(e);if(window.PointerEvent)switch(by[e]){case by.MouseDown:case by.MouseUp:n=n.replace(`mouse`,`pointer`);break;case by.TouchStart:case by.TouchEnd:return}c.push(Hv(n,r,t))}),Ly(()=>{c.forEach(e=>e())})}function Uy({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return Hv(`scroll`,Ly(Gv(Ly(o=>{let s=zy(o);if(!s||$v(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=Yv(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function Wy({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Hv(`resize`,Ly(Gv(Ly(()=>{let t=Xv(),i=Zv();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var Gy=[`INPUT`,`TEXTAREA`,`SELECT`],Ky=new WeakMap;function qy({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:h}){function g(e){let n=zy(e),u=e.isTrusted,g=n&&q_(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||Gy.indexOf(g)<0||$v(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=X_(n),b=Z_(v,g,y),x=!1,S=W_({maskInputOptions:c,tagName:g,type:y}),C=jv(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=G_({isMasked:C,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:x,userTriggered:u}:{text:b,isChecked:x});let w=n.name;y===`radio`&&w&&x&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=G_({isMasked:C,element:e,value:Z_(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=Ky.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Ky.set(t,r);let i=n.getId(t);Ly(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>Hv(e,Ly(g),t)),y=t.defaultView;if(!y)return()=>{v.forEach(e=>e())};let b=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,`value`),x=[[y.HTMLInputElement.prototype,`value`],[y.HTMLInputElement.prototype,`checked`],[y.HTMLSelectElement.prototype,`value`],[y.HTMLTextAreaElement.prototype,`value`],[y.HTMLSelectElement.prototype,`selectedIndex`],[y.HTMLOptionElement.prototype,`selected`]];return b&&b.set&&v.push(...x.map(e=>Kv(e[0],e[1],{set(){Ly(g)({target:this,isTrusted:!1})}},!1,y))),Ly(()=>{v.forEach(e=>e())})}function Jy(e){let t=[];function n(e,t){if(ib(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||ib(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||ib(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||ib(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function Yy(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function Xy({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Ly((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Yy(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Ly((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Yy(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})});let o;
8r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Ly((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Yy(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:Ly((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Yy(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};ab(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(ab(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),ab(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),ab(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:Ly((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Yy(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...Jy(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Ly((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Yy(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...Jy(i),o]}]}),r.apply(i,a)})})}),Ly(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function Zy({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),Ly(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Qy({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Ly((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=Yy(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:Jy(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Ly((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=Yy(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:Jy(a.parentRule)}),i.apply(a,s)})}),Ly(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function $y({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=Ly(o=>Gv(Ly(a=>{let s=zy(a);if(!s||$v(s,t,n,r,!0))return;let{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),a.media||500)),c=[Hv(`play`,s(Sy.Play),o),Hv(`pause`,s(Sy.Pause),o),Hv(`seeked`,s(Sy.Seeked),o),Hv(`volumechange`,s(Sy.VolumeChange),o),Hv(`ratechange`,s(Sy.RateChange),o)];return Ly(()=>{c.forEach(e=>e())})}function eb({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=qv(t.fonts,`add`,function(t){return function(n){return gy(Ly(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),Ly(()=>
8{r.forEach(e=>e())})}function tb(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=Ly(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);$v(o,r,i,a,!0)||$v(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),Hv(`selectionchange`,c)}function nb({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:qv(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function rb(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=By(e,e.doc));let i=Vy(e),a=Hy(e),o=Uy(e),s=Wy(e,{win:n}),c=qy(e),l=$y(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=Xy(e,{win:n}),d=Zy(e,e.doc),f=Qy(e,{win:n}),e.collectFonts&&(p=eb(e)));let m=tb(e),h=nb(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Ly(()=>{Ry.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function ib(e){return window[e]!==void 0}function ab(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}for(var ob=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
8getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},sb=class{constructor(){this.crossOriginIframeMirror=new ob(sv),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},cb=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ob(sv),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ob(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=Cy(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case vy.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:vy.IncrementalSnapshot,data:{source:yy.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case vy.Meta:case vy.Load:case vy.DomContentLoaded:return!1;case vy.Plugin:return t;case vy.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case vy.IncrementalSnapshot:switch(t.data.source){case yy.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case yy.Drag:case yy.TouchMove:case yy.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case yy.ViewportResize:return!1;case yy.MediaInteraction:case yy.MouseInteraction:case yy.Scroll:case yy.CanvasMutation:case yy.Input:return this.replaceIds(t.data,e,[`id`]),t;case yy.StyleSheetRule:case yy.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case yy.Font:return t;case yy.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case yy.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,[`styleId`])}),t}}return!1}replace(e,t,n,r){for(let i of r)!Array.isArray(t[i])&&typeof t[i]!=`number`||(t[i]=Array.isArray(t[i])?e.getIds(n,t[i]):e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEac
8h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==A_.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},lb=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},ub=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!N_(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=By({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Uy({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),gy(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Zy({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=Cy(e),n=wy(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(qv(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&fy(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},db=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,fb=typeof Uint8Array>`u`?[]:new Uint8Array(256),pb=0;pb<db.length;pb++)fb[db.charCodeAt(pb)]=pb;var mb=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}},hb=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new cy,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:R_(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},gb=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,hy(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},_b,vb;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var yb=U_();function bb(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,unblockSelector:o=null,ignoreClass:s=`rr-ignore`,ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u=`rr-mask`,unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,maxCanvasSize:x=null,packFn:S,sampling:C={},dataURLOptions:w={},mousemoveWait:T,recordDOM:E=!0,recordCanvas:D=!1,recordCrossOriginIframes:O=!1,recordAfter:k=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:A=!1,collectFonts:j=!1,inlineImages:M=!1,plugins:N,keepIframeSrcFn:P=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:I,onMutation:L,getCanvasManager:R}=e;Fy(I);let z=!O||window.parent===window,B=!1;if(!z)try{window.parent.document&&(B=!1)}catch{B=!0}if(z&&!t)throw Error(`emit function is required`);if(!z&&!B)return()=>{};
8T!==void 0&&C.mousemove===void 0&&(C.mousemove=T),yb.reset();let V=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g===void 0?{}:g,H=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};iy();let U,W=0,ee=e=>{for(let t of N||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!B&&(e=S(e)),e};_b=(e,i)=>{let a=e;if(a.timestamp=Jv(),Ry[0]?.isFrozen()&&a.type!==vy.FullSnapshot&&(a.type!==vy.IncrementalSnapshot||a.data.source!==yy.Mutation)&&Ry.forEach(e=>e.unfreeze()),z)t?.(ee(a),i);else if(B){let e={type:`rrweb`,event:ee(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===vy.FullSnapshot)U=a,W=0;else if(a.type===vy.IncrementalSnapshot){if(a.data.source===yy.Mutation&&a.data.isAttachIframe)return;W++;let e=r&&W>=r,t=n&&U&&a.timestamp-U.timestamp>n;(e||t)&&oe(!0)}};let G=e=>{_b({type:vy.IncrementalSnapshot,data:{source:yy.Mutation,...e}})},te=e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.Scroll,...e}}),ne=e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.CanvasMutation,...e}}),re=new hb({mutationCb:G,adoptedStyleSheetCb:e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.AdoptedStyleSheet,...e}})}),ie=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new sb:new cb({mirror:yb,mutationCb:G,stylesheetManager:re,recordCrossOriginIframes:O,wrappedEmit:_b});for(let e of N||[])e.getMirror&&e.getMirror({nodeMirror:yb,crossOriginIframeMirror:ie.crossOriginIframeMirror,crossOriginIframeStyleMirror:ie.crossOriginIframeStyleMirror});let K=new gb,ae=Sb(R,{mirror:yb,win:window,mutationCb:e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.CanvasMutation,...e}}),recordCanvas:D,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:I}),q=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new lb:new ub({mutationCb:G,scrollCb:te,bypassOptions:{onMutation:L,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:V,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:D,inlineImages:M,sampling:C,slimDOMOptions:H,iframeManager:ie,stylesheetManager:re,canvasManager:ae,keepIframeSrcFn:P,processedNodeManager:K,ignoreCSSAttributes:F},mirror:yb}),oe=(e=!1)=>{if(!E)return;_b({type:vy.Meta,data:{href:window.location.href,width:Zv(),height:Xv()}},e),re.reset(),q.init(),Ry.forEach(e=>e.lock());let t=Vv(document,{mirror:yb,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:V,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:H,dataURLOptions:w,recordCanvas:D,inlineImages:M,onSerialize:e=>{ay(e,yb)&&ie.addIframe(e),oy(e,yb)&&re.trackLinkElement(e),sy(e)&&q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ie.attachIframe(e,t),e.contentWindow&&ae.addWindow(e.contentWindow),q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{re.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{G({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:P,ignoreCSSAttributes:F});if(!t)return console.warn(`Failed to snapshot the document`);_b({type:vy.FullSnapshot,data:{node:t,initialOffset:Yv(window)}}),Ry.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&re.adoptStyleSheets(document.adoptedStyleSheets,yb.getId(document))};vb=oe;try{let e=[],t=e=>Ly(rb)({onMutation:L,mutationCb:G,mousemoveCb:(e,t)=>_b({type:vy.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.MouseInteraction,...e}}),scrollCb:te,viewportResizeCb:e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.ViewportResize,...e}}),inputCb:e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.Input,...e}}),mediaInteractionCb:e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.MediaInteraction,...e}}),styleSheetRuleCb:e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.StyleSheetRule,...e}}),styleDeclarationCb:e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.StyleDeclaration,...e}}),canvasMutationCb:ne,fontCb:e=>_b({type:vy.IncrementalSnapshot,data:{source:yy.Font,...e}}),selectionCb:e=>{_b({type:vy.IncrementalSnapshot,data:{source:yy.Selection,...e}})},customElementCb:e=>{_b({type:vy.IncrementalSnapshot,data:{source:yy.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:V,inlineStylesheet:m,sampling:C,recordDOM:E,recordCanvas:D,inlineImages:M,userTr
8iggeredOnInput:A,collectFonts:j,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:P,blockSelector:a,unblockSelector:o,slimDOMOptions:H,dataURLOptions:w,mirror:yb,iframeManager:ie,stylesheetManager:re,shadowDomManager:q,processedNodeManager:K,canvasManager:ae,ignoreCSSAttributes:F,plugins:N?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>_b({type:vy.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});ie.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{oe(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(Hv(`DOMContentLoaded`,()=>{_b({type:vy.DomContentLoaded,data:{}}),k===`DOMContentLoaded`&&n()})),e.push(Hv(`load`,()=>{_b({type:vy.Load,data:{}}),k===`load`&&n()},window))),()=>{e.forEach(e=>e()),K.destroy(),vb=void 0,Iy()}}catch(e){console.warn(e)}}function xb(e){if(!vb)throw Error(`please take full snapshot after start recording`);vb(e)}bb.mirror=yb,bb.takeFullSnapshot=xb;function Sb(e,t){try{return e?e(t):new mb}catch{return console.warn(`Unable to initialize CanvasManager`),new mb}}var Cb;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(Cb||={});var wb=3,Tb=5;function Eb(e){return e>9999999999?e:e*1e3}function Db(e){return e>9999999999?e/1e3:e}function Ob(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:vy.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Oi(t,10,1e3)}}),t.category===`console`)))}var kb=`button,a`;function Ab(e){return e.closest(kb)||e}function jb(e){let t=Mb(e);return!t||!(t instanceof Element)?t:Ab(t)}function Mb(e){return Nb(e)?e.target:e}function Nb(e){return typeof e==`object`&&!!e&&`target`in e}var Pb;function Fb(e){return Pb||(Pb=[],Ib()),Pb.push(e),()=>{let t=Pb?Pb.indexOf(e):-1;t>-1&&Pb.splice(t,1)}}function Ib(){yr(c_,`open`,function(e){return function(...t){if(Pb)try{Pb.forEach(e=>e())}catch{}return e.apply(c_,t)}})}var Lb=new Set([yy.Mutation,yy.StyleSheetRule,yy.StyleDeclaration,yy.AdoptedStyleSheet,yy.CanvasMutation,yy.Selection,yy.MediaInteraction]);function Rb(e,t,n){e.handleClick(t,n)}var zb=class{constructor(e,t,n=Ob){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=Fb(()=>{this._lastMutation=Ub()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(Vb(t,this._ignoreSelector)||!Hb(e))return;let n={timestamp:Db(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Db(e)}registerScroll(e=Date.now()){this._lastScroll=Db(e)}registerClick(e){let t=Ab(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=Ub();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(let t of e){let e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:a,clickBreadcrumb:o}=e;if(i){let n=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,r=n<this._timeout*1e3?`mutation`:`timeout`,i={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.slowClickDetected`,data:{...o.data,url:c_.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.multiClick`,data:{...o.data,url:c_.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Wh(()=>this._checkClicks(),1e3)}},Bb=[`A`,`BUTTON`,`INPUT`];function Vb(e,t){return!!(!Bb.includes(e.tagName)||e.tagName===`INPUT`&&![`submit`,`button`].includes(e.getAttribute(`type`)||``)||e.tagName===`A`&&(e.hasAttribute(`download`)||e.hasAttribute(`target`)&&e.getAttribute(`target`)!==`_self`)||t&&e.matches(t))}
8function Hb(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function Ub(){return Date.now()/1e3}function Wb(e,t){try{if(!Gb(t))return;let{source:n}=t.data;if(Lb.has(n)&&e.registerMutation(t.timestamp),n===yy.Scroll&&e.registerScroll(t.timestamp),Kb(t)){let{type:n,id:r}=t.data,i=bb.mirror.getNode(r);i instanceof HTMLElement&&n===by.Click&&e.registerClick(i)}}catch{}}function Gb(e){return e.type===wb}function Kb(e){return e.data.source===yy.MouseInteraction}function qb(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var Jb=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(Jb||{}),Yb=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]);function Xb(e){let t={};!e[`data-sentry-component`]&&e[`data-sentry-element`]&&(e[`data-sentry-component`]=e[`data-sentry-element`]);for(let n in e)if(Yb.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return t}var Zb=e=>t=>{if(!e.isEnabled())return;let n=$b(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Rb(e.clickDetector,n,jb(t.event)),Ob(e,n)};function Qb(e,t){let n=bb.mirror.getId(e),r=n&&bb.mirror.getNode(n),i=r&&bb.mirror.getMeta(r),a=i&&tx(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===Jb.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:Xb(a.attributes)}}:{}}}function $b(e){let{target:t,message:n}=ex(e);return qb({category:`ui.${e.name}`,...Qb(t,n)})}function ex(e){let t=e.name===`click`,n,r=null;try{r=t?jb(e.event):Mb(e.event),n=Dr(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function tx(e){return e.type===Jb.Element}function nx(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=rx(t);n&&Ob(e,n)}function rx(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||ix(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=Dr(o,{maxStringLength:200})||`<unknown>`;return qb({category:`ui.keyDown`,message:l,data:{...Qb(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function ix(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var ax={resource:fx,paint:ux,navigation:dx};function ox(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function sx(e){return e.map(cx).filter(Boolean)}function cx(e){let t=ax[e.entryType];return t?t(e):null}function lx(e){return((Wi()||c_.performance.timeOrigin)+e)/1e3}function ux(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=lx(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function dx(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:lx(p),end:lx(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function fx(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return[`fetch`,`xmlhttprequest`].includes(n)?null:{type:`${t}.${n}`,start:lx(a),end:lx(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function px(e){let t=e.entries[e.entries.length-1];return _x(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function mx(e){return e.sources!==void 0}function hx(e){let t=[],n=[];for(let r of e.entries)if(mx(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=bb.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return _x(e,`cumulative-layout-shift`,n,t)}function gx(e){let t=e.entries[e.entries.length-1];return _x(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function _x(e,t,n,r){let i=e.value,a=e.rating,o=lx(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>bb.mirror.getId(e)):void 0,attributions:r}}}function vx(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];
8return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(Dm(e,n))}),r.push(wm(ox(px,e)),Cm(ox(hx,e)),Em(ox(gx,e))),()=>{r.forEach(e=>e())}}var yx=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,bx=
vendor: 10,332 bytes, line 8
8`var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;
8function xx(){let e=new Blob([bx]);return URL.createObjectURL(e)}var Sx=[`log`,`warn`,`error`],Cx=`[Replay] `;function wx(e,t=`info`){Ad({category:`console`,data:{logger:`replay`},level:t,message:`${Cx}${e}`},{level:t})}function Tx(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return yx?(Sx.forEach(e=>{n[e]=(...n)=>{Q[e](Cx,...n),t&&wx(n.join(``),cf(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),Q.error(Cx,r),e?ui(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&wx(r,`error`)},n.infoTick=(...e)=>{Q.log(Cx,...e),t&&setTimeout(()=>wx(e[0]),0)}):Sx.forEach(e=>{n[e]=()=>void 0}),n}var Ex=Tx(),Dx=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${C_}.`)}},Ox=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return`sync`}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>C_)throw new Dx;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?Eb(e):null}},kx=class{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener(`error`,e=>{t(e)},{once:!0})}),this._ensureReadyPromise}destroy(){yx&&Ex.log(`Destroying compression worker`),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let a=({data:t})=>{let o=t;if(o.method===e&&o.id===n){if(this._worker.removeEventListener(`message`,a),!o.success){yx&&Ex.error(`Error in compression worker: `,o.response),i(Error(`Error in compression worker`));return}r(o.response)}};this._worker.addEventListener(`message`,a),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}},Ax=class{constructor(e){this._worker=new kx(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return`worker`}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=Eb(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>C_?Promise.reject(new Dx):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{yx&&Ex.exception(e,`Sending "clear" message to worker failed`,e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage(`addEvent`,e)}async _finishRequest(){let e=await this._worker.postMessage(`finish`);return this._earliestTimestamp=null,this._totalSize=0,e}},jx=class{constructor(e){this._fallback=new Ox,this._compression=new Ax(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){yx&&Ex.exception(e,`Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){yx&&Ex.exception(e,`Failed to add events when switching buffers.`)}}};function Mx({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=Nx(t);if(e)return e}return yx&&Ex.log(`Using simple buffer`),new Ox}function Nx(e){try{let t=e||Px();return t?(yx&&Ex.log(`Using compression worker${e?` from ${e}`:``}`),new jx(new Worker(t))):void 0}catch(e){yx&&Ex.exception(e,`Failed to create compression worker`)}}function Px(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?xx():``}function Fx(){try{return`sessionStorage`in c_&&!!c_.sessionStorage}catch{return!1}}function Ix(e){Lx(),e.session=void 0}function Lx(){if(Fx())try{c_.sessionStorage.removeItem(l_)}catch{}}function Rx(e){return e!==void 0&&Math.random()<e}function zx(e){if(Fx())try{c_.sessionStorage.setItem(l_,JSON.stringify(e))}catch{}}function Bx(e){let t=Date.now();return{id:e.id||jr(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function Vx(e,t){return Rx(e)?`session`:t?`buffer`:!1}function Hx({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=Bx({sampled:Vx(e,t),previousSessionId:r});return n&&zx(i),i}function Ux(){if(!Fx())return null;try{let e=c_.sessionStorage.getItem(l_);if(!e)return null;let t=JSON.parse(e);return yx&&Ex.infoTick(`Loading existing session`),Bx(t)}catch{return null}}function Wx(e,t,n=+new Date){return e===null||t===void 0||t<0||t!==0&&e+t<=n}function Gx(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Wx(e.started,t,r)||Wx(e.lastActivity,n,r)}function Kx(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Gx(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function qx({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&Ux();return i?Kx(i,{sessionIdleExpire:e,maxReplayDuration:t})?(yx&&Ex.infoTick(`Session in sessionStorage is expired, creating new one...`),Hx(r,{previousSessionId:i.id})):i:(yx&&Ex.infoTick(`Creating new session`),Hx(r,{previousSessionId:n}))}function Jx(e){return e.type===vy.Custom}function Yx(e,t,n){return Qx(e,t)?(Zx(e,t,n),!0):!1}
8function Xx(e,t,n){return Qx(e,t)?Zx(e,t,n):Promise.resolve(null)}async function Zx(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i=e.recordingMode===`buffer`;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=$x(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){let n=t&&t instanceof Dx,a=n?`addEventSizeExceeded`:`addEvent`,o=Jr();if(o){let e=n?`buffer_overflow`:`internal_sdk_error`;o.recordDroppedEvent(e,`replay`)}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a})}}function Qx(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=Eb(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(yx&&Ex.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function $x(e,t){try{if(typeof t==`function`&&Jx(e))return t(e)}catch(e){return yx&&Ex.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function eS(e){return!e.type}function tS(e){return e.type===`transaction`}function nS(e){return e.type===`replay_event`}function rS(e){return e.type===`feedback`}function iS(e){return(t,n)=>{if(!e.isEnabled()||!eS(t)&&!tS(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(tS(t)){aS(e,t);return}oS(e,t)}}}function aS(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function oS(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!==`buffer`||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r==`function`&&!r(t)||Wh(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function sS(e){return t=>{!e.isEnabled()||!eS(t)||cS(e,t)}}function cS(e,t){let n=t.exception?.values?.[0]?.value;typeof n==`string`&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&Ob(e,qb({category:`replay.hydrate-error`,data:{url:hr()}}))}function lS(e){let t=Jr();t&&t.on(`beforeAddBreadcrumb`,t=>uS(e,t))}function uS(e,t){if(!e.isEnabled()||!pS(t))return;let n=dS(t);n&&Ob(e,n)}function dS(e){return!pS(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?fS(e):qb(e)}function fS(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return qb(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>b_?(n=!0,`${e.slice(0,b_)}…`):e;if(typeof e==`object`)try{let t=Oi(e,7);return JSON.stringify(t).length>b_?(n=!0,`${JSON.stringify(t,null,2).slice(0,b_)}…`):t}catch{}return e});return qb({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function pS(e){return!!e.category}function mS(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function hS(){let e=Di().getPropagationContext().dsc;e&&delete e.replay_id;let t=Or();if(t){let e=Wr(t);delete e.replay_id}}function gS(e,t){e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:vy.Custom,timestamp:t.timestamp*1e3,data:{tag:`breadcrumb`,payload:{timestamp:t.timestamp,type:`default`,category:`sentry.feedback`,data:{feedbackId:t.event_id}}}}),!1))}function _S(e,t){return e.recordingMode!==`buffer`||t.message===d_||!t.exception||t.type?!1:Rx(e.getOptions().errorSampleRate)}function vS(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(nS(t))return delete t.breadcrumbs,t;if(!eS(t)&&!tS(t)&&!rS(t))return t;if(!e.checkAndHandleExpiredSession())return hS(),t;if(rS(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),gS(e,t),t;if(mS(t,n)&&!e.getOptions()._experiments.captureExceptions)return yx&&Ex.log(`Ignoring error from rrweb internals`,t),null;let r=_S(e,t);if((r||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode===`buffer`&&e.session?.sampled===`buffer`){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&zx(t)}return t},{id:`Replay`})}function yS(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:vy.Custom,timestamp:n,data:{tag:`performanceSpan`,payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return typeof o==`string`?Promise.resolve(null):o})}function bS(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:`navigation.push`,start:r,end:r,name:n,data:{previous:t}}}function xS(e){return t=>{if(!e.isEnabled())return;let n=bS(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(yS(e,[n]),!1)))}}function SS(e,t){return yx&&e.getOptions()._experiments.traceInternals?!1:yd(t,Jr())}function CS(e,t){e.isEnabled()&&t!==null&&(SS(e,t.name)||e.addUpdate(()=>(yS(e,[t]),!0)))}function wS(e){if(!e)return;let t=new TextEncoder;try{if(typeof e==`string`)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=Xh(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function TS(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function ES(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function DS(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o,request:s,response:c}}}function OS(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function kS(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=jS(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function AS(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function jS(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>y_,n=MS(e);if(t){let t=e.slice(0,y_);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}…`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function MS(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function NS(e,t){let n=PS(e);return xr(n,t)}function PS(e,t=c_.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(c_.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith(`/`)&&r.endsWith(`/`)?r.slice(0,-1):r}async function FS(e,t,n){try{let r=DS(`resource.fetch`,await LS(e,t,n));CS(n.replay,r)}catch(e){yx&&Ex.exception(e,`Failed to capture fetch breadcrumb`)}}
8function IS(e,t){let{input:n,response:r}=t,i=wS(n?Qh(n):void 0),a=r?TS(r.headers.get(`content-length`)):void 0;i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}async function LS(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=NS(o,n.networkDetailAllowUrls)&&!NS(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?RS(n,t.input,l):OS(l),response:await zS(d,n,t.response,u)}}function RS({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?US(n,t):{};if(!e)return kS(i,r,void 0);let[a,o]=Zh(Qh(n),Ex),s=kS(i,r,a);return o?ES(s,o):s}async function zS(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return OS(i);let a=r?HS(r.headers,n):{};if(!r||!t&&i!==void 0)return kS(a,i,void 0);let[o,s]=await VS(r),c=BS(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?ES(c,s):c}function BS(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?wS(e):n;return r?t?kS(i,a,e):kS(i,a,void 0):OS(a)}catch(e){return yx&&Ex.exception(e,`Failed to serialize response body`),kS(i,n,void 0)}}async function VS(e){let t=GS(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await KS(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?(yx&&Ex.warn(`Parsing text body from response timed out`),[void 0,`BODY_PARSE_TIMEOUT`]):(yx&&Ex.exception(e,`Failed to get text body from response`),[void 0,`BODY_PARSE_ERROR`])}}function HS(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function US(e,t){return e.length===1&&typeof e[0]!=`string`?WS(e[0],t):e.length===2?WS(e[1],t):{}}function WS(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?HS(n,t):Array.isArray(n)?{}:AS(n,t):{}}function GS(e){try{return e.clone()}catch(e){yx&&Ex.exception(e,`Failed to clone response body`)}}function KS(e){return new Promise((t,n)=>{let r=Wh(()=>n(Error(`Timeout while trying to read response body`)),500);qS(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function qS(e){return await e.text()}async function JS(e,t,n){try{let r=DS(`resource.xhr`,XS(e,t,n));CS(n.replay,r)}catch(e){yx&&Ex.exception(e,`Failed to capture xhr breadcrumb`)}}function YS(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=wS(r),a=n.getResponseHeader(`content-length`)?TS(n.getResponseHeader(`content-length`)):$S(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function XS(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!NS(c,n.networkDetailAllowUrls)||NS(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:OS(d),response:OS(f)};let p=s[Gh],m=p?AS(p.request_headers,n.networkRequestHeaders):{},h=AS($h(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?Zh(o,Ex):[void 0],[v,y]=n.networkCaptureBodies?ZS(s):[void 0],b=kS(m,d,g),x=kS(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?ES(b,_):b,response:y?ES(x,y):x}}function ZS(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return QS(e.response,e.responseType)}catch(e){t.push(e)}return yx&&Ex.warn(`Failed to get xhr response body`,...t),[void 0]}function QS(e,t){try{if(typeof e==`string`)return[e];if(e instanceof Document)return[e.body.outerHTML];if(t===`json`&&e&&typeof e==`object`)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return yx&&Ex.exception(t,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return yx&&Ex.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function $S(e,t){try{return wS(t===`json`&&e&&typeof e==`object`?JSON.stringify(e):e)}catch{return}}function eC(e){let t=Jr();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on(`beforeAddBreadcrumb`,(e,t)=>tC(s,e,t))}catch{}}
8function tC(e,t,n){if(t.data)try{nC(t)&&iC(n)&&(YS(t,n),JS(t,n,e)),rC(t)&&aC(n)&&(IS(t,n),FS(t,n,e))}catch(e){yx&&Ex.exception(e,`Error when enriching network breadcrumb`)}}function nC(e){return e.category===`xhr`}function rC(e){return e.category===`fetch`}function iC(e){return e?.xhr}function aC(e){return e?.response}function oC(e){let t=Jr();jh(Zb(e)),Rh(xS(e)),lS(e),eC(e);let n=vS(e);Si(n),t&&(t.on(`beforeSendEvent`,sS(e)),t.on(`afterSendEvent`,iS(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t}),t.on(`beforeSendFeedback`,async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&(t.contexts.feedback.source===`api`&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on(`openFeedbackWidget`,async()=>{await e.sendBufferedReplayOrFlush()}))}async function sC(e){try{return Promise.all(yS(e,[cC(c_.performance.memory)]))}catch{return[]}}function cC(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:`memory`,name:`memory`,start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function lC(e,t,n){return Od(e,t,{...n,setTimeoutImpl:Wh})}var uC=vi.navigator;function dC(){return/iPhone|iPad|iPod/i.test(uC?.userAgent??``)||/Macintosh/i.test(uC?.userAgent??``)&&uC?.maxTouchPoints&&uC?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function fC(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){yx&&Ex.warn(`Received replay event after session expired.`);return}let i=r||!t;t=!0,e.clickDetector&&Wb(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!Yx(e,n,i))return!0;if(!i)return!1;let t=e.session;if(mC(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(yx&&Ex.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&zx(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}}function pC(e){let t=e.getOptions();return{type:vy.Custom,timestamp:Date.now(),data:{tag:`options`,payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type===`worker`:!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function mC(e,t){!t||!e.session||e.session.segmentId!==0||Yx(e,pC(e),!1)}function hC(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function gC(e,t,n,r){return ml(El(e,Tl(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function _C({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
9`;if(typeof e==`string`)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function vC({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:typeof e._integrations==`object`&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0};e.emit(`preprocessEvent`,r,i);let a=await _i(e.getOptions(),r,i,t,e,$r());if(!a)return null;e.emit(`postprocessEvent`,a,i),a.platform=a.platform||`javascript`;let{name:o,version:s,settings:c}=e.getSdkMetadata()?.sdk||{};return a.sdk={...a.sdk,name:o||`sentry.javascript.unknown`,version:s||`0.0.0`,settings:c},a}async function yC({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=_C({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=Jr(),f=Di(),p=d?.getTransport(),m=d?.getDsn();if(!d||!p||!m||!a.sampled)return Promise.resolve({});let h=await vC({scope:f,client:d,replayId:t,event:{type:u_,replay_start_timestamp:u/1e3,t
9imestamp:i/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!h)return d.recordDroppedEvent(`event_processor`,`replay`),yx&&Ex.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete h.sdkProcessingMetadata;let g=gC(h,o,m,d.getOptions().tunnel),_;try{_=await p.send(g)}catch(e){let t=Error(d_);try{t.cause=e}catch{}throw t}let v=Iu({},_);if(Fu(v,`replay`))throw new xC(v);if(typeof _.statusCode==`number`&&(_.statusCode<200||_.statusCode>=300))throw new bC(_.statusCode);return _}var bC=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},xC=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},SC=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function CC(e,t={count:0,interval:__}){let{recordingData:n,onError:r}=e;if(n.length)try{return await yC(e),!0}catch(n){if(n instanceof bC||n instanceof xC)throw n;if(Pi(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=v_){let e=Error(`${d_} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{Wh(async()=>{try{await CC(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var wC=`__THROTTLED`,TC=`__SKIPPED`;function EC(e,t,n){let r=new Map,i=e=>{let t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...n)=>{let s=Math.floor(Date.now()/1e3);if(i(s),a()>=t){let e=o;return o=!0,e?TC:wC}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var DC=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:f_,sessionIdleExpire:p_},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:``},this._recordingOptions=t,this._options=e,this._debouncedFlush=lC(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=EC((e,t)=>Xx(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(x_,n),timeout:n,scrollTimeout:S_,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new zb(this,i)),yx){let t=e._experiments;Ex.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{c_.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=qb({category:`ui.blur`});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=qb({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{nx(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){yx&&Ex.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){yx&&Ex.exception(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,yx&&Ex.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode===`session`){yx&&Ex.log(`Recording is already in progress`);return}if(this._isEnabled&&this.recordingMode===`buffer`){yx&&Ex.log("Buffering is in progress, call `flush()` to save the replay");return}yx&&Ex.infoTick(`Starting replay in session mode`),this._updateUserActivity();let e=qx({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode=`session`,this._initializeRecording()}
9startBuffering(){if(this._isEnabled){yx&&Ex.log("Buffering is in progress, call `flush()` to save the replay");return}yx&&Ex.infoTick(`Starting replay in buffer mode`);let e=qx({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=bb({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:g_}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:fC(this),...dC(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&=(this._stopRecording(),void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode=`buffer`;try{yx&&Ex.log(`Stopping Replay${t?` triggered by ${t}`:``}`),hS(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Ix(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),yx&&Ex.log(`Pausing replay`))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),yx&&Ex.log(`Resuming replay`))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();yx&&Ex.log(`Converting buffer to session`),await this.flushImmediate();let n=this.stopRecording();!e||!n||this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();this.recordingMode===`buffer`||!this._isEnabled||t!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode===`buffer`?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!(e&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Wx(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${c_.location.pathname}${c_.location.hash}${c_.location.search}`,t=`${c_.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===wC){let e=qb({category:`replay.throttled`});this.addUpdate(()=>!Yx(this,{type:Tb,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||Or(),t=e&&Xn(e),n=(t&&Kn(t).data||{})[Ni];if(!(!t||!n||![`route`,`custom`].includes(n)))return Kn(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Mx({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=qx({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!Kx(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`refresh session`}),this.initializeSampling(e.id))}_addListeners(){try{c_.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),c_.addEventListener(`blur`,this._handleWindowBlur),c_.addEventListener(`focus`,this._handleWindowFocus),c_.addEventListener(`ke
9ydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(oC(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=vx(this)}_removeListeners(){try{c_.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),c_.removeEventListener(`blur`,this._handleWindowBlur),c_.removeEventListener(`focus`,this._handleWindowFocus),c_.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(Gx(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){yx&&Ex.log(`Document has become active, but session has expired`);return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:vy.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=sx(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(yS(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}
9_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){yx&&Ex.error(`No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await sC(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new SC;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await CC({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:`sendReplay`});let t=Jr();if(t){let n;n=e instanceof xC?`ratelimit_backoff`:e instanceof SC?`invalid`:`send_error`,t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){yx&&Ex.error(`Attempting to finish replay event after session expired.`);return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){yx&&Ex.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&yx&&Ex.log(`Flushing initial segment without checkout.`);let o=!!this._flushLock;this._flushLock||=this._runFlush();try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&zx(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=hC(e.target),r=t.join(`,`);return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){let e=qb({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1)}};function OC(e,t){return[...e,...t].join(`,`)}function kC({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:OC(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:OC(t,[]),blockSelector:OC(n,[`.sentry-block`,`[data-sentry-block]`,`base`,`iframe[srcdoc]:not([src])`]),unblockSelector:OC(r,[]),ignoreSelector:OC(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function AC({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``)?a.replace(/[\S]/g,`*`):a}var jC=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,MC=[`content-length`,`content-type`,`accept`],NC=Symbol.for(`sentry__originalRequestBody`),PC=!1,FC=!1;function IC(){if(typeof Request>`u`||FC)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[NC]=n.body),r};t.prototype=e.prototype,vi.Request=t,FC=!0}catch{}}var LC=(e=>new RC(e)),RC=class{constructor({flushMinDelay:e=m_,flushMaxDelay:t=h_,minReplayDuration:n=w_,maxReplayDuration:r=E_,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:y=[],mask:b=[],maskAttributes:x=[`title`,`placeholder`,`aria-label`],unmask:S=[],block:C=[],unblock:w=[],ignore:T=[],maskFn:E,beforeAddRecordingEvent:D,beforeErrorSampling:O,onError:k,attachRawBodyFromRequest:A=!1}={}){this.name=`Replay`;let j=kC({mask:b,unmask:S,block:C,unblock:w,ignore:T});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(e,t,n)=>AC({maskAttributes:x,maskAllText:c,privacyOptions:j,key:e,value:t,el:n}),...j,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,T_),maxReplayDuration:Math.min(r,E_),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:BC(v),networkResponseHeaders:BC(y),beforeAddRecordingEvent:D,beforeErrorSampling:O,onError:k,attachRawBodyFromRequest:A,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${jC}`:jC,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&Zf())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return PC}set _isInitialized(e){PC=e}afterAllSetup(e){!Zf()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&IC(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
9startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode===`session`}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=zC(this._initialOptions,e);this._replay=new DC({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function zC(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=Er(n.replaysSessionSampleRate),a=Er(n.replaysOnErrorSampleRate);return i==null&&a==null&&Ci(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function BC(e){return[...MC,...e.map(e=>e.toLowerCase())]}function VC(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function HC(e){try{return new URL(e,$f.location.origin).href}catch{return}}function UC(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function WC(e){try{return new Headers(e)}catch{return}}var GC=new WeakMap,KC=new Map,qC={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function JC(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:c,onRequestSpanEnd:l}={...qC,...t},u=typeof a==`function`?a:e=>!0,d=e=>XC(e,s),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>(e.type===`transaction`&&e.spans&&e.spans.forEach(e=>{if(e.op===`http.client`){let t=KC.get(e.span_id);t&&(e.timestamp=t/1e3,KC.delete(e.span_id))}}),e)),i&&Bf(e=>{if(e.response){let t=GC.get(e.response);t&&e.endTimestamp&&KC.set(t,e.endTimestamp)}}),zf(e=>{let t=Tf(e,u,d,f,{propagateTraceparent:p,onRequestSpanEnd:l});if(e.response&&e.fetchData.__span&&GC.set(e.response,e.fetchData.__span),t){let n=HC(e.fetchData.url),r=n?gd(n).host:void 0;t.setAttributes({"http.url":n?vd(n):void 0,"server.address":r}),o&&YC(t),c?.(t,{headers:e.headers})}})),r&&Kh(e=>{let t=ZC(e,u,d,f,p,l);t&&(o&&YC(t),c?.(t,{headers:WC(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}function YC(e){let{url:t}=Kn(e).data;if(!t||typeof t!=`string`)return;let n=Dm(`resource`,({entries:r})=>{r.forEach(r=>{UC(r)&&r.name.endsWith(t)&&(e.setAttributes(Qm(r)),setTimeout(n))})})}function XC(e,t){let n=hr();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?xr(r.toString(),t)||a&&xr(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?xr(e,t):n}}function ZC(e,t,n,r,i,a){let o=e.xhr,s=o?.[Gh];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=Yi()&&t(c);if(e.endTimestamp&&u){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&s.status_code!==void 0&&(ir(n,s.status_code),n.end(),a?.(n,{headers:WC($h(o)),error:e.error}),delete r[t]);return}let d=HC(c),f=gd(d||c),p=vd(_d(c)),m=!!Or(),h=u&&m?Kl({name:`${l} ${p}`,attributes:{url:vd(c),type:`xhr`,"http.method":l,"http.url":d?vd(d):void 0,"server.address":f?.host,[ri]:`auto.http.browser`,[Wn]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new pl;o.__sentry_xhr_span_id__=h.spanContext().spanId,r[o.__sentry_xhr_span_id__]=h,n(c)&&QC(o,Yi()&&m?h:void 0,i);let g=Jr();return g&&g.emit(`beforeOutgoingRequestSpan`,h,e),h}function QC(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=Td({span:t,propagateTraceparent:n});r&&$C(e,r,i,a)}function $C(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.[`sentry-trace`]||!e.setRequestHeader))try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!VC(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}function ew(){$f.document?$f.document.addEventListener(`visibilitychange`,()=>{let e=Or();if(!e)return;let t=Xn(e);if($f.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=Kn(t);$&&Q.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):$&&Q.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var tw=`sentry_previous_trace`,nw=`sentry.previous_trace`;function rw(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?ow():void 0;e.on(`spanStart`,e=>{if(Xn(e)!==e)return;let t=Di().getPropagationContext();i=iw(i,e,t),r&&aw(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=Di(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(sw(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=sw(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[zi]:i.sampleRate}})}function iw(e,t,n){let r=Kn(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[`sentry.sample_rate`])}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&($&&Q.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[fi]:`previous_trace`}}),t.setAttribute(nw,`${o.traceId}-${o.spanId}-${+!!sw(o)}`)),a)}function aw(e){try{$f.sessionStorage.setItem(tw,JSON.stringify(e))}catch(e){$&&Q.warn(`Could not store previous trace in sessionStorage`,e)}}function ow(){try{let e=$f.sessionStorage?.getItem(tw);return JSON.parse(e)}catch{return}}function sw(e){return e.traceFlags===1}var cw=`BrowserTracing`,lw={...tu,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
9dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...qC},uw=((e={})=>{let t={name:void 0,source:void 0},n=$f.document,{enableInp:r,enableElementTiming:i,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:s,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:l},beforeStartSpan:u,idleTimeout:d,finalTimeout:f,childSpanTimeout:p,markBackgroundSpan:m,traceFetch:h,traceXHR:g,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:v,enableHTTPTimings:y,ignoreResourceSpans:b,ignorePerformanceApiSpans:x,instrumentPageLoad:S,instrumentNavigation:C,detectRedirects:w,linkPreviousTrace:T,consistentTraceSampling:E,enableReportPageLoaded:D,onRequestSpanStart:O,onRequestSpanEnd:k}={...lw,...e},A,j,M;function N(e,r,i=!0){let a=r.op===`pageload`,o=r.name,s=u?u(r):r,m=s.attributes||{};if(o!==s.name&&(m[Ni]=`custom`,s.attributes=m),!i){let e=Xi();Kl({...s,startTime:e}).end(e);return}t.name=s.name,t.source=m[Ni];let h=ou(s,{idleTimeout:d,finalTimeout:f,childSpanTimeout:p,disableAutoFinish:a,beforeSpanEnd:t=>{A?.(),fh(t,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!l,ignoreResourceSpans:b,ignorePerformanceApiSpans:x}),_w(e,void 0);let n=Di(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:h.spanContext().traceId,sampled:br(h),dsc:Wr(t)}),a&&(M=void 0)},trimIdleSpanEndTimestamp:!D});a&&D&&(M=h),_w(e,h);function g(){n&&[`interactive`,`complete`].includes(n.readyState)&&e.emit(`idleSpanEnableAutoFinish`,h)}a&&!D&&n&&(n.addEventListener(`readystatechange`,()=>{g()}),g())}return{name:cw,setup(e){if(cl(),A=ah({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:l||!1,client:e}),r&&ig(),i&&Th(),o&&vi.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(`long-animation-frame`)?sh():a&&oh(),s&&ch(),w&&n){let e=()=>{j=Xr()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function t(){let t=gw(e);t&&!Kn(t).timestamp&&($&&Q.log(`[Tracing] Finishing current active span with op: ${Kn(t).op}`),t.setAttribute(Rr,`cancelled`),t.end())}e.on(`startNavigationSpan`,(n,r)=>{if(Jr()!==e)return;if(r?.isRedirect){$&&Q.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),N(e,{op:`navigation.redirect`,...n},!1);return}j=void 0,t(),$r().setPropagationContext({traceId:li(),sampleRand:Math.random(),propagationSpanId:Yi()?void 0:xi()});let i=Di();i.setPropagationContext({traceId:li(),sampleRand:Math.random(),propagationSpanId:Yi()?void 0:xi()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),N(e,{op:`navigation`,...n,parentSpan:null,forceTransaction:!0})}),e.on(`startPageLoadSpan`,(n,r={})=>{if(Jr()!==e)return;t();let i=r.sentryTrace||pw(`sentry-trace`),a=r.baggage||pw(`baggage`),o=mr(i,a),s=Di();s.setPropagationContext(o),Yi()||(s.getPropagationContext().propagationSpanId=xi()),s.setSDKProcessingMetadata({normalizedRequest:ip()}),N(e,{op:`pageload`,...n})}),e.on(`endPageloadSpan`,()=>{D&&M&&(M.setAttribute(Rr,`reportPageLoaded`),M.end())})},afterAllSetup(e){let n=hr();if(T!==`off`&&rw(e,{linkPreviousTrace:T,consistentTraceSampling:E}),$f.location){if(S){let t=Wi();dw(e,{name:$f.location.pathname,startTime:t?t/1e3:void 0,attributes:{[Ni]:`url`,[ri]:`auto.pageload.browser`}})}C&&Rh(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=md(t),a=gw(e),o=a&&w&&yw(a,j);fw(e,{name:i?.pathname||$f.location.pathname,attributes:{[Ni]:`url`,[ri]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}m&&ew(),s&&mw(e,d,f,p,t),r&&cg(),JC(e,{traceFetch:h,traceXHR:g,trackFetchStreamPerformance:_,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:y,onRequestSpanStart:O,onRequestSpanEnd:k})}}});function dw(e,t,n){e.emit(`startPageLoadSpan`,t,n),Di().setTransactionName(t.name);let r=gw(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function fw(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i}),e.emit(`startNavigationSpan`,t,{isRedirect:i});let a=Di();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...ip(),url:r}}),gw(e)}function pw(e){return($f.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function mw(e,t,n,r,i){let a=$f.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=gw(e);if(s){let e=Kn(s).op;if([`navigation`,`pageload`].includes(e)){$&&Q.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(Rr,`interactionInterrupted`),o.end(),void 0),!i.name){$&&Q.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=ou({name:i.name,op:a,attributes:{[Ni]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var hw=`_sentry_idleSpan`;function gw(e){return e[hw]}function _w(e,t){mi(e,hw,t)}var vw=1.5;function yw(e,t){let n=Kn(e),r=Xi();return!(r-n.start_timestamp>vw||t&&r-t<=vw)}var bw=1e6,xw=`window`in vi&&vi.window===vi&&typeof importScripts>`u`,Sw=`0`,Cw=xw?`main`:`worker`,ww=$f.navigator,Tw=``,Ew=``,Dw=``,Ow=ww?.userAgent||``,kw=``,Aw=ww?.language||ww?.languages?.[0]||``;function jw(e){return typeof e==`object`&&!!e&&`getHighEntropyValues`in e}var Mw=ww?.userAgentData;jw(Mw)&&Mw.getHighEntropyValues([`architecture`,`model`,`platform`,`platformVersion`,`fullVersionList`]).then(e=>{if(Tw=e.platform||``,Dw=e.architecture||``,kw=e.model||``,Ew=e.platformVersion||``,e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];Ow=`${t.brand} ${t.version}`}}).catch(e=>void 0);function Nw(e){return!(`thread_metadata`in e)}function Pw(e){return Nw(e)?Vw(e):e}function Fw(e){let t=e.contexts?.trace?.trace_id;return typeof t==`string`&&t.length!==32&&$&&Q.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t==`string`?t:``}function Iw(e,t,n,r){if(r.type!==`transaction`)throw TypeError(`Profiling events may only be attached to transactions, this should never occur.`);if(n==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let i=Fw(r),a=Pw(n),o=t||(typeof r.start_timestamp==`number`?r.start_timestamp*1e3:Xr()*1e3),s=typeof r.timestamp==`number`?r.timestamp*1e3:Xr()*1e3;return{event_id:e,timestamp:new Date(o).toISOString(),platform:`javascript`,version:`1`,release:r.release||``,environment:r.environment||`production`,runtime:{name:`javascript`,version:$f.navigator.userAgent},os:{name:Tw,version:Ew,build_number:Ow},device:{locale:Aw,model:kw,manufacturer:Ow,architecture:Dw,is_emulator:!1},debug_meta:{images:Ww(n.resources)},profile:a,transactions:[{name:r.transaction||``,id:r.event_id||jr(),trace_id:i,active_thread_id:Sw,relative_start_ns:`0`,relative_end_ns:((s-o)*1e6).toFixed(0)}]}}function Lw(e,t,n){if(e==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=zw(e),i=t.getOptions(),a=t.getSdkMetadata?.()?.sdk;
9return{chunk_id:jr(),client_sdk:{name:a?.name??`sentry.javascript.browser`,version:a?.version??`0.0.0`},profiler_id:n||jr(),platform:`javascript`,version:`2`,release:i.release??``,environment:i.environment??`production`,debug_meta:{images:Ww(e.resources)},profile:r}}function Rw(e){try{if(!e||typeof e!=`object`)return{reason:`chunk is not an object`};let t=e=>typeof e==`string`&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:`missing or invalid profiler_id`};if(!t(e.chunk_id))return{reason:`missing or invalid chunk_id`};if(!e.client_sdk)return{reason:`missing client_sdk metadata`};let n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:`profile has no frames`}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:`profile has no stacks`}:!Array.isArray(n.samples)||!n.samples.length?{reason:`profile has no samples`}:{valid:!0}:{reason:`missing profile data`}}catch(e){return{reason:`unknown validation error: ${e}`}}}function zw(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:typeof r.resourceId==`number`?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let i=[],a=r;for(;a;)i.push(a.frameId),a=a.parentId===void 0?void 0:e.stacks[a.parentId];n[t]=i}let r=Wi(),i=typeof performance.timeOrigin==`number`?performance.timeOrigin:r||0,a=i-(r||i),o=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(i+(n.timestamp-a))/1e3;o[t]={stack_id:n.stackId??0,thread_id:Sw,timestamp:r}}return{frames:t,stacks:n,samples:o,thread_metadata:{[Sw]:{name:Cw}}}}function Bw(e){return Kn(e).op===`pageload`}function Vw(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[Sw]:{name:Cw}}},i=e.samples[0];if(!i)return r;let a=i.timestamp,o=Wi(),s=typeof performance.timeOrigin==`number`?performance.timeOrigin:o||0,c=s-(o||s);return e.samples.forEach((i,o)=>{if(i.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[o]={elapsed_since_start_ns:((i.timestamp+c-a)*bw).toFixed(0),stack_id:t,thread_id:Sw};return}let s=e.stacks[i.stackId],l=[];for(;s;){l.push(s.frameId);let t=e.frames[s.frameId];t&&r.frames[s.frameId]===void 0&&(r.frames[s.frameId]={function:t.name,abs_path:typeof t.resourceId==`number`?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=s.parentId===void 0?void 0:e.stacks[s.parentId]}let u={elapsed_since_start_ns:((i.timestamp+c-a)*bw).toFixed(0),stack_id:n,thread_id:Sw};r.stacks[n]=l,r.samples[o]=u,n++}),r}function Hw(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:`profile`},n]);return e}function Uw(e){let t=[];return gl(e,(e,n)=>{if(n===`transaction`)for(let n=1;n<e.length;n++)e[n]?.contexts?.profile?.profile_id&&t.push(e[n])}),t}function Ww(e){let t=Jr()?.getOptions()?.stackParser;return t?Bi(t,e):[]}function Gw(e){return typeof e!=`number`&&typeof e!=`boolean`||typeof e==`number`&&isNaN(e)?($&&Q.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?($&&Q.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Kw(e){return e.samples.length<2?($&&Q.log(`[Profiling] Discarding profile because it contains less than 2 samples`),!1):e.frames.length?!0:($&&Q.log(`[Profiling] Discarding profile because it contains no frames`),!1)}var qw=!1,Jw=3e4;function Yw(e){return typeof e==`function`}function Xw(){let e=$f.Profiler;if(!Yw(e)){$&&Q.log(`[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.`);return}let t=Math.floor(Jw/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch{$&&(Q.log(`[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header.`),Q.log(`[Profiling] Disabling profiling for current user session.`)),qw=!0}}function Zw(e){if(qw)return $&&Q.log(`[Profiling] Profiling has been disabled for the duration of the current user session.`),!1;if(!e.isRecording())return $&&Q.log(`[Profiling] Discarding profile because root span was not sampled.`),!1;let t=Jr()?.getOptions();if(!t)return $&&Q.log(`[Profiling] Profiling disabled, no options foun
9d.`),!1;let n=t.profilesSampleRate;return Gw(n)?n?n===!0||Math.random()<n||($&&Q.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(n)})`),!1):($&&Q.log(`[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0`),!1):($&&Q.warn(`[Profiling] Discarding profile because of invalid sample rate.`),!1)}function Qw(e){if(qw)return $&&Q.log(`[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started.`),!1;if(e.profileLifecycle!==`trace`&&e.profileLifecycle!==`manual`)return $&&Q.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return Gw(t)?t?Math.random()<=t:($&&Q.log(`[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0`),!1):($&&Q.warn(`[Profiling] Discarding profile because of invalid profileSessionSampleRate.`),!1)}function $w(e){return e.profilesSampleRate!==void 0}function eT(e,t,n,r){return Kw(n)?Iw(e,t,n,r):null}var tT=new Map;function nT(){return tT.size}function rT(e){let t=tT.get(e);return t&&tT.delete(e),t}function iT(e,t){if(tT.set(e,t),tT.size>30){let e=tT.keys().next().value;e!==void 0&&tT.delete(e)}}function aT(e){return!e?.contexts?.profile||!e.contexts?e:(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":Sw,"thread.name":Cw}},e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":Sw,"thread.name":Cw}}),e)}function oT(e){let t;Bw(e)&&(t=Xr()*1e3);let n=Xw();if(!n)return;$&&Q.log(`[Profiling] started profiling span: ${Kn(e).description}`);let r=jr(),i=null;Di().setContext(`profile`,{profile_id:r,start_timestamp:t});async function a(){if(e&&n){if(i){$&&Q.log(`[Profiling] profile for:`,Kn(e).description,`already exists, returning early`);return}return n.stop().then(t=>{if(o&&=($f.clearTimeout(o),void 0),$&&Q.log(`[Profiling] stopped profiling of span: ${Kn(e).description}`),!t){$&&Q.log(`[Profiling] profiler returned null profile for: ${Kn(e).description}`,`this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started`);return}i=t,iT(r,t)}).catch(e=>{$&&Q.log(`[Profiling] error while stopping profiler:`,e)})}}let o=$f.setTimeout(()=>{$&&Q.log(`[Profiling] max profile duration elapsed, stopping profiling for:`,Kn(e).description),a()},Jw),s=e.end.bind(e);function c(){return e?(a().then(()=>{s()},()=>{s()}),e):s()}e.end=c}var sT=6e4,cT=3e5,lT=class{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,n=Qw(e.getOptions());$&&Q.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||$&&Q.log(`[Profiling] Session not sampled. Skipping lifecycle profiler initialization.`),this._profilerId=jr(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,t===`trace`&&this._setupTraceLifecycleListeners(e)}start(){if(this._lifecycleMode===`trace`){$&&Q.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){$&&Q.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){$&&Q.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode===`trace`){$&&Q.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){$&&Q.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if(this._lifecycleMode!==`trace`||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&($&&Q.log(`[Profiling] Detected already active root span during setup. Active root spans now:`,n),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,$&&Q.log(`[Profiling] Started profiling with profiler ID:`,this._profilerId),Ii().setContext(`profile`,{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){$&&Q.log(`[Profiling] Failed to start JS Profiler; stopping.`),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&=(clearTimeout(this._chunkTimer),void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{$&&Q.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),this._lifecycleMode===`manual`&&Ii().setContext(`profile`,{}))}_setupTraceLifecycleListeners(e){e.on(`spanStart`,e=>{if(!this._sessionSampled){$&&Q.log(`[Profiling] Span not profiled because of negative sampling decision for user session.`);return}if(e!==Xn(e))return;if(!e.isRecording()){$&&Q.log(`[Profiling] Discarding profile because root span was not sampled.`);return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&($&&Q.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on(`spanEnd`,e=>
9{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;$&&Q.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),n===0&&(this._collectCurrentChunk().catch(e=>{$&&Q.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,Ii().setContext(`profile`,{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),cT);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=Xw();if(!e){$&&Q.log(`[Profiling] Failed to start JS Profiler.`);return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{$&&Q.error(`[Profiling] Failed to collect current profile chunk during periodic chunking:`,e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},sT))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&($&&Q.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=Lw(await e.stop(),this._client,this._profilerId),n=Rw(t);if(`reason`in n){$&&Q.log(`[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):`,n.reason);return}this._sendProfileChunk(t),$&&Q.log(`[Profiling] Collected browser profile chunk.`)}catch(e){$&&Q.log(`[Profiling] Error while stopping JS Profiler for chunk:`,e)}}_sendProfileChunk(e){let t=this._client,n=Tl(t.getSdkMetadata?.()),r=t.getDsn(),i=t.getOptions().tunnel,a=ml({event_id:jr(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!i&&r&&{dsn:Zi(r)}},[[{type:`profile_chunk`,platform:`javascript`},e]]);t.sendEnvelope(a).then(null,e=>{$&&Q.error(`Error while sending profile chunk envelope:`,e)})}},uT=`BrowserProfiling`,dT=yu((()=>({name:uT,setup(e){let t=e.getOptions(),n=new lT;if(!$w(t)&&!t.profileLifecycle&&(t.profileLifecycle=`manual`),$w(t)&&!t.profilesSampleRate){$&&Q.log(`[Profiling] Profiling disabled, no profiling options found.`);return}let r=Or(),i=r&&Xn(r);if($w(t)&&t.profileSessionSampleRate!==void 0&&$&&Q.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),$w(t))i&&Bw(i)&&Zw(i)&&oT(i),e.on(`spanStart`,e=>{e===Xn(e)&&Zw(e)&&oT(e)}),e.on(`beforeEnvelope`,e=>{if(!nT())return;let t=Uw(e);if(!t.length)return;let n=[];for(let e of t){let t=e?.contexts,r=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if(typeof r!=`string`){$&&Q.log(`[Profiling] cannot find profile for a span without a profile context`);continue}if(!r){$&&Q.log(`[Profiling] cannot find profile for a span without a profile context`);continue}t?.profile&&delete t.profile;let a=rT(r);if(!a){$&&Q.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}let o=eT(r,i,a,e);o&&n.push(o)}Hw(e,n)});else{let r=t.profileLifecycle;if(e.on(`startUIProfiler`,()=>n.start()),e.on(`stopUIProfiler`,()=>n.stop()),r===`manual`)n.initialize(e);else if(r===`trace`){if(!Yi(t)){$&&Q.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),$f.setTimeout(()=>{let e=Or(),t=e&&Xn(e);t&&n.notifyRootSpanActive(t)},0)}}},processEvent(e){return aT(e)}}))),fT=[`activate`,`mount`],pT=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,mT=/(?:^|[-_])(\w)/g,hT=e=>e.replace(mT,e=>e.toUpperCase()).replace(/[-_]/g,``),gT=`<Root>`,_T=`<Anonymous>`,vT=(e,t)=>
9e.repeat(t),yT=(e,t)=>{if(!e)return _T;if(e.$root===e)return gT;if(!e.$options)return _T;let n=e.$options,r=n.name||n._componentTag||n.__name,i=n.__file;if(!r&&i){let e=i.match(/([^/\\]+)\.vue$/);e&&(r=e[1])}return(r?`<${hT(r)}>`:_T)+(i&&t!==!1?` at ${i}`:``)},bT=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){let t=[],n=0;for(;e;){if(t.length>0){let r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return`\n\nfound in\n\n${t.map((e,t)=>`${(t===0?`---> `:vT(` `,5+t*2))+(Array.isArray(e)?`${yT(e[0])}... (${e[1]} recursive calls)`:yT(e))}`).join(`
10`)}`}return`\n\n(found in ${yT(e)})`},xT=(e,t)=>{let{errorHandler:n}=e.config;e.config.errorHandler=(r,i,a)=>{let o={componentName:yT(i,!1),lifecycleHook:a,trace:i?bT(i):``};if(t?.attachProps!==!1&&i&&(i.$options?.propsData?o.propsData=i.$options.propsData:i.$props&&(o.propsData=i.$props)),setTimeout(()=>{ui(r,{captureContext:{contexts:{vue:o}},mechanism:{handled:!!n,type:`auto.function.vue.error_handler`}})}),typeof n==`function`&&e.config.errorHandler)n.call(e,r,i,a);else throw r}},ST=`ui.vue`,CT={activate:[`activated`,`deactivated`],create:[`beforeCreate`,`created`],unmount:[`beforeUnmount`,`unmounted`],destroy:[`beforeDestroy`,`destroyed`],mount:[`beforeMount`,`mounted`],update:[`beforeUpdate`,`updated`]};function wT(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function TT(e,t){function n(e){return e.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,`$1`)}return e.some(e=>n(t)===n(e))}var ET=(e={})=>{let t=(e.hooks||[]).concat(fT).filter((e,t,n)=>n.indexOf(e)===t),n={},r=e.timeout||2e3;for(let i of t){let t=CT[i];if(!t){pT&&Q.warn(`Unknown hook: ${i}`);continue}for(let a of t)n[a]=function(){let n=this.$root===this;n&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Kl({name:`Application Render`,op:`${ST}.render`,attributes:{"sentry.origin":`auto.ui.vue`},onlyIfParent:!0}),wT(this,Xr(),r));let o=yT(this,!1);if(!(n||(Array.isArray(e.trackComponents)?TT(e.trackComponents,o):e.trackComponents))){wT(this,Xr(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};let s=a===t[0],c=this.$root?.$_sentryRootComponentSpan||Or();if(s){if(c){let e=this.$_sentryComponentSpans[i];e&&e.end(),this.$_sentryComponentSpans[i]=Kl({name:`Vue ${o}`,op:`${ST}.${i}`,attributes:{[ri]:`auto.ui.vue`},onlyIfParent:!0})}}else{let e=this.$_sentryComponentSpans[i];if(!e)return;e.end(),wT(this,Xr(),r)}}}return n},DT={Vue:vi.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:fT,timeout:2e3,trackComponents:!1}},OT=`Vue`,kT=yu((e={})=>({name:OT,setup(t){let n={...DT,...t.getOptions(),...e};if(!n.Vue&&!n.app){Ci(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(e=>AT(e,n)):n.Vue&&AT(n.Vue,n)}})),AT=(e,t)=>{pT&&e._instance?.isMounted===!0&&Ci(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&xT(e,t),Yi(t)&&e.mixin(ET(t.tracingOptions))};function jT(e,t,n){let r=!1;e.onError(e=>ui(e,{mechanism:{handled:!1}})),e.beforeEach((e,i,a)=>{let o=r?void 0:MT(),s={};for(let t of Object.keys(e.params))s[`url.path.parameter.${t}`]=e.params[t],s[`params.${t}`]=e.params[t];for(let t of Object.keys(e.query)){let n=e.query[t];n&&(s[`query.${t}`]=n)}let c=e.path,l=`url`;if(e.name&&t.routeLabel!==`path`)c=e.name.toString(),l=`custom`;else if(e.matched.length>0){let t=e.matched.length-1;c=e.matched[t].path,l=`route`}Di().setTransactionName(c),t.instrumentPageLoad&&o&&(Kn(o).data[`sentry.source`]!==`custom`&&(o.updateName(c),o.setAttribute(Ni,l)),o.setAttributes({...s,[ri]:`auto.pageload.vue`}),r=!0),t.instrumentNavigation&&!o&&n({name:c,op:`navigation`,attributes:{...s,[ri]:`auto.navigation.vue`,[Ni]:l}}),a&&a()})}function MT(){let e=Or(),t=e&&Xn(e);if(t)return Kn(t).op===`pageload`?t:void 0}function NT(e={}){if(!e.router)return uw(e);let t=uw({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:a=`name`}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),jT(n,{routeLabel:a,instrumentNavigation:r,instrumentPageLoad:i},t=>{fw(e,t)})}}}var PT={attachPiniaState:!0,addBreadcrumbs:!0,actionTransformer:e=>e,stateTransformer:e=>e},FT=(e,t)=>{let n={};try{return Object.keys(e.state.value).forEach(t=>{n[t]=e.state.value[t]}),t?t(n):n}catch{return n}},IT=e=>{let t={...PT,...e};return({store:e,pinia:n})=>{t.attachPiniaState!==!1&&Ii().addEventProcessor((e,r)=>
10{try{let e=`pinia_state_all_stores_${new Date().toTimeString().split(` `)[0]}.json`;r.attachments?.some(e=>e.filename.startsWith(`pinia_state_all_stores_`))||(r.attachments=[...r.attachments||[],{filename:e,data:JSON.stringify(FT(n,t.stateTransformer))}])}catch{}return e}),e.$onAction(r=>{r.after(()=>{let i=t.actionTransformer(r.name);i!=null&&t.addBreadcrumbs!==!1&&Ad({category:`pinia.action`,message:`Store: ${e.$id} | Action: ${i}`,level:`info`});let a=FT(n,t.stateTransformer),o=Di(),s=o.getScopeData().contexts.state;if(a!=null){let e=Jr()?.getOptions()?.normalizeDepth||3,t={type:`pinia`,value:a},n={...s||{},state:t};mi(n,`__sentry_override_normalization_depth__`,3+e),o.setContext(`state`,n)}else o.setContext(`state`,{...s||{},state:{type:`pinia`,value:`undefined`}})})})}},LT={AiAssistant:`ai-assistant`,FanIdWidget:`fan-id`,ForzaAiAssistant:`forza-ai-assistant`,MenuItemContentBlocks:`menu-item-content-blocks`,MobileLogoLink:`mobile-logo-link`,MobileSportCustomLink:`mobile-sport-custom-link`,OktaSingleSignOn:`okta-single-sign-on`,RoverExperience:`rover-experience`,ScheduleAttachments:`schedule-attachments`,ScheduleContentBlocks:`schedule-content-blocks`,ScheduleEventDropdown:`schedule-event-dropdown`,ScheduleEventLinkPlacement:`schedule-event-link-placement`,ScheduleEventPage:`schedule-event-page`,ScheduleEventTag:`schedule-event-tag`,SideRail:`side-rail`,TheSixArticle:`thesix-article`,WmtVideo:`wmt-video`,MultipleMobileGameMode:`multiple-mobile-game-mode`,WscStoriesWebContentBlock:`wsc-stories-web-content-block`},RT={Left:`left`,Right:`right`},zT={Article:`article`,Homepage:`homepage`,Page:`page`,Sport:`sport`},BT=Ve(async()=>{let e,t,{fetch:n}=Bn();[e,t]=s(()=>n()),await e,t()},1),VT=()=>r().$pinia;String.fromCharCode;var HT=/#/g,UT=/&/g,WT=/\//g,GT=/=/g,KT=/\+/g,qT=/%5e/gi,JT=/%60/gi,YT=/%7c/gi,XT=/%20/gi;function ZT(e){return encodeURI(``+e).replace(YT,`|`)}function QT(e){return ZT(typeof e==`string`?e:JSON.stringify(e)).replace(KT,`%2B`).replace(XT,`+`).replace(HT,`%23`).replace(UT,`%26`).replace(JT,"`").replace(qT,`^`).replace(WT,`%2F`)}function $T(e){return QT(e).replace(GT,`%3D`)}function eE(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function tE(e){return eE(e.replace(KT,` `))}function nE(e){return eE(e.replace(KT,` `))}function rE(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=tE(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=nE(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function iE(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${$T(e)}=${QT(t)}`).join(`&`):`${$T(e)}=${QT(t)}`:$T(e)}function aE(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>iE(t,e[t])).filter(Boolean).join(`&`)}var oE=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,sE=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,cE=/^([/\\]\s*){2,}[^/\\]/;function lE(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?oE.test(e):sE.test(e)||(t.acceptRelative?cE.test(e):!1)}function uE(e,t){let n=fE(e);return n.search=aE({...rE(n.search),...t}),mE(n)}var dE=Symbol.for(`ufo:protocolRelative`);function fE(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!lE(e,{acceptRelative:!0}))return t?fE(t+e):pE(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=pE(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[dE]:!r}}function pE(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function mE(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[dE]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function hE(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}var gE=Object.prototype.hasOwnProperty;function _E(e,t){return gE.call(e,t)}var vE=`usehead`;function yE(){if(w()){let e=C(vE);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function bE(){}function xE(e,t){t.forEach(t=>{let n=e,r=e;t.forEach(({type:e,key:t,args:i})=>{e===`get`?(r=n,n=n[t]):e===`apply`&&(n=n.call(r,...i))})})}function SE(e,t){let n,r=e;for(let e of t){if(r==null)return{owner:void 0,value:void 0};n=r,r=r[e]}return{owner:n,value:r}}function CE(e={}){let t=[],n,r=-1;function i(a){let o=new Map;return new Proxy(bE,{get(s,c){if(n){let{value:e}=SE(n,a),t=e==null?void 0:Reflect.get(e,c,e);if(typeof t!=`function`)return t}else if(a.length)t[r].push({type:`get`,key:c});else{let n=Reflect.get(e,c);if(n!==void 0)return n;r++,t[r]=[],t[r].push({type:`get`,key:c})}let l=o.get(c);return l||(l=i([...a,c]),o.set(c,l)),l},apply(e,i,o){if(n){let{owner:e,value:t}=SE(n,a);typeof t==`function`&&Reflect.apply(t,e,o)}else t[r].push({type:`apply`,key:``,args:o})}})}return{proxy:i([]),stack:t,resolve(e){n=e,xE(e,t),t.length=0}}}function wE(e){let t=new AbortController,n=new Set,r=!1,i=e=>{let t=()=>{n.delete(t)&&e()};return r?e():n.add(t),t},a=()=>
10{if(r)return;r=!0,t.abort();let e;for(let t of[...n].reverse())try{t()}catch(t){e||=t}e&&queueMicrotask(()=>{throw e})},o=()=>{t.abort(e.signal.reason),queueMicrotask(()=>queueMicrotask(a))};return e.signal.aborted?o():(e.signal.addEventListener(`abort`,o,{once:!0}),i(()=>e.signal.removeEventListener(`abort`,o))),Object.assign(Object.create(e),{script:e,signal:t.signal,dispose:a,setupTriggerHandler(t){if(r)return()=>{};try{return i(e._setupTriggerHandler(t,!1))}catch(e){throw a(),e}},onLoaded(t,n){return r?()=>{}:i(e.onLoaded(t,n))},onError(t,n){return r?()=>{}:i(e.onError(t,n))}})}function TE(e){return(t=>new Promise((n,r)=>{let i=!1,a=!1,o,s,c,l=(t,n)=>{if(i)return;i=!0,e.removeEventListener(`abort`,c);let a=s;s=void 0;try{a?.()}catch(e){r(e);return}t(n)},u=e=>queueMicrotask(()=>l(r,e)),d=e=>(o=e,!i&&!a&&(a=!0,Promise.resolve(e).then(e=>l(n,e),u)),e);if(c=()=>{let t=Error(`Script lifecycle aborted`);t.name=`AbortError`,u(e.reason===void 0?t:e.reason)},e.aborted){c();return}e.addEventListener(`abort`,c,{once:!0});try{let e=t(d,u);s=e!==o&&typeof e==`function`?e:void 0}catch(e){u(e)}}))}function EE(){}function DE(e,t,n){return OE(e,t,n,!!n?.scope)}function OE(e,t,n,r){let i=typeof t==`object`&&`loader`in t?t:void 0,a=i?.loader,o=typeof t==`string`?{src:t}:i?{key:i.key}:{...t},{beforeInit:s,eventContext:c,resolve:l,scope:u,trigger:d,use:f,warmupStrategy:p,...m}=n||{},h=a||l,g=o.key||o.src||(typeof o.innerHTML==`string`?o.innerHTML:``),_=e._scripts||=Object.create(null),v=_E(_,g)?_[g]:void 0;if(v){let e=r?wE(v):v;return r?e.setupTriggerHandler(d):v._setupTriggerHandler(d,!1),e}let y=new AbortController,b={signal:y.signal,waitFor:TE(y.signal)},x=()=>h?h(b):f?.();s?.();let S,C,w=!1;try{S=!e.ssr&&!a&&(h||f)?x():void 0}catch(e){w=!0,C=e}let T=!!S&&typeof S.then==`function`,E=T?null:S||null,D=w?Promise.resolve([!1,C]):T?Promise.resolve(S).then(e=>[!0,e],e=>[!1,e]):void 0,O=[],k,A=EE,j=new Promise(t=>{e.ssr||(A=t)}),M=t=>{W.status=t,O.push({type:t,timestamp:Date.now()}),hE(e,`script:updated`,ee)},N=e=>{k=e instanceof Error?e:Error(String(e)),y.abort(k),M(`error`),A(!1)},P=e=>queueMicrotask(()=>{A(y.signal.aborted||W.status===`removed`?!1:e)}),F=!1,I=()=>{if(!F){if(F=!0,!h&&!f){P({});return}(D||(()=>{try{return Promise.resolve(x()).then(e=>[!0,e],e=>[!1,e])}catch(e){return Promise.resolve([!1,e])}})()).then(e=>{y.signal.aborted||W.status===`removed`||(e[0]?e[1]?(a&&M(`loaded`),P(e[1])):N(Error(`${a?`loader`:`use`}() resolved without a script API`)):N(e[1]))})}},L=typeof o.onload==`function`?o.onload.bind(c):null,R=typeof o.onerror==`function`?o.onerror.bind(c):null,z=()=>{L=null,R=null};o.onload=e=>{if(!y.signal.aborted)try{M(`loaded`),I(),L?.(e)}finally{z()}},o.onerror=e=>{if(!y.signal.aborted)try{y.abort(),M(`error`),A(!1),R?.(e)}finally{z()}};let B={loaded:[],error:[]},V=new Set,H=(e,t)=>e?.forEach(e=>{try{Promise.resolve(e(t)).catch(e=>console.error(e))}catch(e){console.error(e)}}),U=(t,n,r)=>{if(e.ssr)return EE;let i;if(r?.key){if(i=`${t}:${r.key}`,V.has(i))return EE;V.add(i)}return B[t]?(B[t].push(n),()=>{let e=B[t]?.indexOf(n)??-1;e!==-1&&B[t]?.splice(e,1),i&&V.delete(i)}):(t===`loaded`&&W.status===`loaded`?n(W.instance):t===`error`&&W.status===`error`&&n(k),()=>{i&&V.delete(i)})},W={_loadPromise:j,_events:O,_warmupStrategy:void 0,instance:E,proxy:null,id:g,signal:y.signal,src:o.src,input:o,status:`awaitingLoad`,remove(){let e=!!W.entry;return y.abort(),z(),W._triggerAbortControllers?.forEach(e=>e.abort()),W._triggerAbortControllers?.clear(),W._triggerPromises=[],W._warmupEl?.dispose(),W._warmupEl=void 0,W.entry&&=(W.entry.dispose(),void 0),_[g]===W&&delete _[g],W.status!==`removed`&&M(`removed`),A(!1),e},warmup(t){let{src:n}=o;if(!n)return;let r=!n.startsWith(`/`)||n.startsWith(`//`),i=t===`preconnect`||t===`dns-prefetch`,a=n;if(!t||i&&!r)return;if(i){let e=new URL(n);a=`${e.protocol}//${e.host}`}let s={href:a,rel:t,crossorigin:o.crossorigin===void 0?r?`anonymous`:void 0:o.crossorigin,referrerpolicy:o.referrerpolicy===void 0?r?`no-referrer`:void 0:o.referrerpolicy,fetchpriority:o.fetchpriority===void 0?`low`:o.fetchpriority,integrity:o.integrity,as:t===`preload`?`script`:void 0};return W._warmupEl=e.push({link:[s]},{head:e,tagPriority:`high`}),W._warmupEl},load(t){if(W.status===`removed`)return j;
10if(W._triggerAbortControllers?.forEach(e=>e.abort()),W._triggerAbortControllers?.clear(),W._triggerPromises=[],a&&!e.ssr&&W.status===`awaitingLoad`)M(`loading`),I();else if(!a&&!W.entry){M(`loading`);let t={defer:!0,fetchpriority:`low`};o.src&&(o.src.startsWith(`http`)||o.src.startsWith(`//`))&&(t.crossorigin=`anonymous`,t.referrerpolicy=`no-referrer`),W.entry=e.push({script:[{...t,...o}]},m)}return t&&U(`loaded`,t),j},onLoaded(e,t){return U(`loaded`,e,t)},onError(e,t){return U(`error`,e,t)},setupTriggerHandler(e){return W._setupTriggerHandler(e)},_setupTriggerHandler(t,n=!0){if(W.status!==`awaitingLoad`)return EE;if((t===void 0||t===`client`)&&!e.ssr||t===`server`)return W.load(),EE;if(t instanceof Promise){if(e.ssr)return EE;let n=new AbortController;W._triggerAbortControllers=W._triggerAbortControllers||new Set,W._triggerAbortControllers.add(n);let r=new Promise(e=>{n.signal.addEventListener(`abort`,()=>{W._triggerAbortControllers?.delete(n),e()})});W._triggerAbortController=n,W._triggerPromises=W._triggerPromises||[];let i=Promise.race([t.then(e=>e===void 0||e?W.load:void 0),r]).catch(e=>{}).then(e=>{e?.()}).finally(()=>{W._triggerAbortControllers?.delete(n);let e=W._triggerPromises?.indexOf(i)??-1;e!==-1&&W._triggerPromises?.splice(e,1)});return W._triggerPromises.push(i),()=>n.abort()}if(typeof t==`function`){if(e.ssr)return EE;let r=new AbortController;W._triggerAbortControllers=W._triggerAbortControllers||new Set,W._triggerAbortControllers.add(r),W._triggerAbortController=r;let i;r.signal.addEventListener(`abort`,()=>{W._triggerAbortControllers?.delete(r),typeof i==`function`&&i(),i=void 0},{once:!0});try{i=t(W.load),r.signal.aborted&&(typeof i==`function`&&i(),i=void 0)}catch(e){throw r.abort(),n&&W.remove(),e}return()=>r.abort()}return EE},_cbs:B};j.then(e=>{if(e!==!1){W.instance=e;let t=B.loaded;B.loaded=null,B.error=null,H(t,e)}else{let e=W.status===`error`?B.error:null;B.loaded=null,B.error=null,H(e,k)}});let ee={script:W},G=r?wE(W):W;try{G.setupTriggerHandler(d)}catch(e){throw W.remove(),e}if(h||f){let{proxy:t,resolve:n}=CE(e.ssr?{}:E||{});W.proxy=t,W.onLoaded(n)}let te=!a&&(p||(d===void 0||d===`client`?`preload`:!1));return te&&(W._warmupStrategy=te,W.warmup(te)),_[g]=W,G}function kE(e,t){let n=typeof e==`string`?{src:e}:e,r={...t},i=r?.head||yE();r.head=i;let a=S();if(r.eventContext=a,a&&r.trigger===void 0)r.trigger=F;else if(q(r.trigger)||typeof r.trigger==`function`&&r.trigger.length===0){let e=r.trigger,t;r.trigger=new Promise(n=>{t=b(e,e=>{e&&n(!0)},{immediate:!0}),W(()=>n(!1),!0)}).then(e=>(t?.(),e))}i._scriptStatusWatcher=i._scriptStatusWatcher||i.hooks.hook(`script:updated`,({script:e})=>{e._statusRef&&(e._statusRef.value=e.status)});let o=DE(i,n,r),s=r.scope===!0,c=s?o.script:o;c._statusRef=c._statusRef||se(c.status);let l=o.onLoaded,u=o.onError;if(a){if(s)W(o.dispose);else{let e=e=>(...t)=>{let n=e(...t);return W(n),n};l=e(o.onLoaded),u=e(o.onError);let t=o._triggerAbortController;W(()=>t?.abort())}}return new Proxy(o,{get(e,t,n){return t===`status`?c._statusRef:t===`onLoaded`?l:t===`onError`?u:Reflect.get(e,t,n)}})}function AE(){return f().public[`nuxt-scripts`]}function jE(e){return e.key||e.src||(typeof e.innerHTML==`string`?e.innerHTML:``)}function ME(e,t){e=typeof e==`string`?{src:e}:e,t=Zt(t,AE()?.defaultScriptOptions);let n=String(jE(e)),i=r();if(t.head=t.head||gs(),!t.head)throw Error(`useScript() has been called without Nuxt context.`);i.$scripts=i.$scripts||te({}),i.$scripts?.[n],(t.trigger===`onNuxtReady`||t.trigger===`client`)&&(t.warmupStrategy||(t.warmupStrategy=`preload`),t.trigger===`onNuxtReady`&&(t.trigger=In));let a=kE(e,t),o=a.remove;return a.remove=()=>(i.$scripts[n]=void 0,o()),i.$scripts[n]=a,a}var NE=Object.freeze(Object.assign(()=>{},{__mock__:!0})),PE=NE,FE=NE,IE=NE,LE=NE,RE=NE,zE=NE;function BE(e){return(va().public.scripts||{})[e]}function VE(e,t,n){let r=BE(e),i=Object.assign(n||{},typeof r==`object`?r:{}),a=t(i),o=Zt(i.scriptInput,a.scriptInput,{key:e}),s=Object.assign(i?.scriptOptions||{},a.scriptOptions||{}),c=s.beforeInit;return s.beforeInit=()=>{c?.(),a.clientInit?.()},ME(o,s)}PE({id:FE(),l:LE(FE()),auth:LE(FE()),preview:LE(FE()),cookiesWin:LE(zE([IE(),RE(`x`)])),debug:LE(zE([IE(),RE(`x`)])),npa:LE(zE([IE(),RE(`1`)])),dataLayer:LE(FE()),envName:LE(FE()),authReferrerPolicy:LE(FE())});function HE(e){return VE(e?.key||`googleTagManager`,t=>{let n=t?.l??t?.dataLayer??`dataLayer`;return{scriptInput:{src:uE(`https://www.googletagmanager.com/gtm.js`,{id:t.id,l:t.l,gtm_auth:t.auth,gtm_preview:t.preview,gtm_cookies_win:t.cookiesWin?`x`:void 0,gtm_debug:t.debug?`x`:void 0,gtm_npa:t.npa?`1`:void 0,gtm_data_layer:t.dataLayer,gtm_env:t.envName,gtm_auth_referrer_policy:t.authReferrerPolicy})},schema:void 0,scriptOptions:{use:()=>({dataLayer:window[n],google_tag_manager:window.google_tag_manager}),performanceMarkFeature:`nuxt-third-parties-gtm`,tagPriority:1},clientInit:()=>{window[n]=window[n]||[];function t(...e){window[n].push(e)}e?.onBeforeGtmStart?.(t),window[n].push({"gtm.start":new Date().getTime(),event:`gtm.js`})}}},e)}var UE=An(`oas-gtm-store`,()=>{let e=se(new Set);return{hasTag:t=>e.value.has(t),addTag:t=>{e.value.has(t)||e.value.add(t)},removeTag:t=>{e.value.has(t)&&e.value.delete(t)},tags:e}});function WE(e){let t=se(!1),n=pa(),r=new Promise(r=>{b(t,t=>{if(t){let t=n?.runWithContext||(e=>e());if(e?.postConsentTrigger instanceof Promise){e.postConsentTrigger.then(()=>t(r));return}if(typeof e?.postConsentTrigger==`function`){if(e?.postConsentTrigger.length===1){e.postConsentTrigger(r);return}let n=e.postConsentTrigger();return n instanceof Promise?n.then(()=>t(r)):void 0}if(e?.postConsentTrigger===`onNuxtReady`){let i=e?.postConsentTrigger?n?ya:ga:e=>e();t(()=>i(r));return}t(r)}}),e?.consent&&(q(e?.consent)?b(e.consent,e=>{let n=_e(e);t.value=!!n},{immediate:!0}):typeof e?.consent==`boolean`?t.value=e?.consent:e?.consent instanceof Promise&&e?.consent.then(e=>{t.value=typeof e!=`boolean`||e}))});return r.accept=()=>{t.value=!0},r}var GE=`_iub_cs-`,KE=`oas-consent-reload-guard`,qE=`5`,JE=[`2`,`3`,`4`],YE=e=>{if(!e)return null;try{return JSON.parse(decodeURIComponent(e))}catch{return null}},XE=e=>{if(!e)return null;if(e.consent===!0)return na.Granted;if(e.consent===!1)return na.Declined;let{purposes:t}=e;return t?typeof t!=`object`||Array.isArray(t)?na.Declined:Object.prototype.hasOwnProperty.call(t,qE)?t[qE]===!0?na.Granted:na.Declined:JE.some(e=>Object.prototype.hasOwnProperty.call(t,e)&&t[e]===!0)?na.Granted:na.Declined:null},ZE=e=>e?[`${GE}${e}`,`${GE}s${e}`]:[],QE=e=>{let t=ZE(e);return document.cookie.split(`;`).map(e=>e.trim()).filter(e=>e.startsWith(GE)).map(e=>({value:e.slice(e.indexOf(`=`)+1),keyed:t.some(t=>e.startsWith(`${t}=`))}))},$E=e=>{let t=ZE(e),n=[];for(let e=0;e<localStorage.length;e+=1){let r=localStorage.key(e),i=r?.startsWith(GE)?localStorage.getItem(r):null;r&&i&&n.push({value:i,keyed:t.includes(r)})}return n},eD=(e,t)=>{let n=typeof e==`string`&&Date.parse(e)||0;return n>Date.now()&&t===na.Granted?0:n},tD=({value:e,keyed:t})=>{let n=YE(e),r=XE(n);return r?{state:r,storedAt:eD(n?.timestamp,r),keyed:t}:null},nD=(e,t)=>t.storedAt>e.storedAt||t.storedAt===e.storedAt&&t.state===na.Declined?t:e,rD=e=>{try{let t=[...QE(e),...$E(e)].map(tD).filter(e=>e!==null),n=t.filter(e=>e.keyed),r=n.length?n:t;return r.length?r.reduce(nD).state:null}catch{return null}},iD=()=>{try{return!sessionStorage.getItem(KE)&&(sessionStorage.setItem(KE,`1`),!0)}catch{return!1}},aD=()=>{try{sessionStorage.removeItem(KE)}catch{return}},oD=null,sD=()=>
10{if(oD)return oD;let{config:e,iubendaSiteId:t,iubendaWidgetId:n}=On(Bn()),r=t.value,i=n.value,a=!!e.value,o=!!r||!!i,s=WE();oD=s;let c=()=>{ta(),s.accept()};if(a&&!o)return c(),s;let l=e=>{if(e===na.Granted){c();return}if(e===na.Declined){if(ia()===na.Granted){iD()&&window.location.reload();return}aD(),ea()}},u=e=>{ia()===na.Pending&&l(e)};l(rD(r)),window._iub=window._iub||[];let d=window._iub.csConfiguration?.callback?.onPreferenceExpressed,f=window._iub.csConfiguration?.callback?.onConsentGiven,p=window._iub.csConfiguration?.callback?.onConsentRejected;return window._iub.csConfiguration={...window._iub.csConfiguration,callback:{...window._iub.csConfiguration?.callback,onPreferenceExpressed:e=>{d?.(e),l(XE(e))},onConsentGiven:()=>{f?.(),u(na.Granted)},onConsentRejected:()=>{p?.(),u(na.Declined)}}},s},cD=()=>{let e=Bn(),{addTag:t,hasTag:n}=UE(),{gtagIds:r}=On(e);if(r.value.length===0)return;let i=sD();for(let e of r.value){if(n(e))continue;let{onLoaded:r}=HE({key:e,id:e,scriptOptions:{trigger:i}});r(()=>{t(e)})}},lD=An(`oas-google-analytics-store`,()=>{let e=se(new Set);return{hasTag:t=>e.value.has(t),addTag:t=>{e.value.has(t)||e.value.add(t)},removeTag:t=>{e.value.has(t)&&e.value.delete(t)},tags:e}});PE({id:FE(),l:LE(FE())});function uD(e){return VE(e?.key||`googleAnalytics`,t=>{let n=t?.l??`dataLayer`,r=window;return{scriptInput:{src:uE(`https://www.googletagmanager.com/gtag/js`,{id:t?.id,l:t?.l})},schema:void 0,scriptOptions:{use:()=>({dataLayer:r[n],gtag:r.gtag}),performanceMarkFeature:`nuxt-third-parties-ga`,tagPriority:1},clientInit:()=>{r[n]=r[n]||[],r.gtag=function(){r[n].push(arguments)},e?.onBeforeGtagStart?.(r.gtag),r.gtag(`js`,new Date),r.gtag(`config`,t?.id)}}},e)}var dD=()=>{let{info:e,warn:t}=ra(`integrations/google-analytics`),n=Bn(),{addTag:r,hasTag:i}=lD(),{googleAnalyticsIds:a}=On(n);if(a.value.length===0){t(`No Google Analytics IDs configured`);return}let o=sD();for(let t of a.value){if(i(t)){e(`${t} already loaded`);continue}e(`Loading Google Analytics ID ${t}`);let{onLoaded:n}=uD({key:t,id:t,scriptOptions:{trigger:o}});n(()=>{e(`Loaded Google Analytics ID ${t}`),r(t)})}},fD=Ve(()=>{dD(),cD()}),pD=Ve(async()=>{let e,t,{load:n}=Hn();[e,t]=s(()=>n()),await e,t()},1),mD=(e,t={})=>{let{viewBySlug:n}=Vn(),r=Un(),{sportSlug:i}=On(r),a=se(),o=se(!0);return{sport:a,loading:o,fetch:async()=>{if(i.value===e.value)return;o.value=!0,a.value=void 0;let{data:r,error:s}=await Ln(`sport-view-${e.value}`,()=>n(e.value,t),{transform:({data:e})=>e});if(s.value||!r.value)throw wa(`Sport not found`);return o.value=!1,a.value=r.value,r.value}}},hD=e=>{let{name:t,id:n}=e;switch(t){case zT.Homepage:return[{show_on_homepage:!0}];case zT.Sport:return n?[{sport_id:n}]:[];case zT.Article:return n?[{article_id:n},{article_id_with_sport:n}]:[];case zT.Page:return n?[{page_id:n},{page_id_with_sport:n}]:[];default:return[]}},gD=(e,t)=>{let{name:n,id:r}=t;switch(n){case zT.Homepage:return e.show_on_homepage===!0;case zT.Sport:return r?e.sports?.some(e=>e.id===r)??!1:!1;case zT.Article:return r?e.articles?.some(e=>e.id===r)??!1:!1;case zT.Page:return r?e.pages?.some(e=>e.id===r)??!1:!1;default:return!1}},_D=e=>e===zT.Article||e===zT.Page,vD=(e,t)=>!!t&&(e.sports?.some(e=>e.id===t)??!1),yD=(e,t,n=null)=>e.find(e=>gD(e,t))||(_D(t.name)?e.find(e=>vD(e,n))??null:null),bD=An(`oas-side-rail`,()=>{let e=Un(),{sportId:t}=On(e),n=se([]),r=se(null),i=se(RT.Right),a=J(()=>r.value?hD(r.value):[]),o=J(()=>a.value.map(e=>({sort:[`-updated_at`],include:[`contentBlocks`,`articles`,`pages`,`sports`],filter:e}))),s=J(()=>`side-rails-${i.value}-${r.value?.name??`none`}-${r.value?.id??``}`),c=J(()=>{let e=r.value;if(!e||!a.value.length)return null;let o=n.value.filter(e=>e.position===i.value);return o.length?yD(o,e,t.value):null}),l=J(()=>c.value?.content_blocks??[]),u=J(()=>l.value.length>0);return{contentBlocks:l,entity:r,filters:a,hasContentBlocks:u,hasSideRail:J(()=>!!c.value&&u.value),position:i,requestKey:s,requestParameters:o,sideRail:c,sideRails:n,clearEntity:()=>{r.value=null},setEntity:e=>{r.value={...e}},setPosition:e=>{i.value=e},setSideRails:e=>{n.value=[...e]}}}),xD=Ve(async(e,t)=>{let n,r,i=Un(),{clearEntity:a}=bD(),{sportSlug:o}=On(i),{setSport:c,clearSport:l}=i;if(`sport`in e.params&&Ta(e.params.sport.toString())){let t=e.params.sport.toString();if(o.value!==t){let{fetch:e}=mD(oa(t),{include:[`defaultRoster`,`defaultSeason`,`heroPresentedByLogo`,`icon`,`metaImage`,`rosterPageImage`,`rosterPlayersTemplateFields`,`rosterStaffMembersTemplateFields`,`schedulePageImage`,`socialLinks.socialNetwork.icon`]}),i=([n,r]=s(()=>e()),n=await n,r(),n);i&&c(i)}}else t.matched[0]?.path!==e.matched[0]?.path&&(l(),a())},1),SD=()=>{let{get:e}=Ea();return{getCurrentUser:()=>e(`/user`)}},CD=An(`oas-user`,()=>{let{getCurrentUser:e}=SD(),t=se(null),n=J(()=>!!t.value),r=()=>{t.value=null},i=e=>{e&&(t.value=e)},a=null,o=async()=>{r();try{let{data:t}=await e();i(t)}catch(e){if(e instanceof It&&e.statusCode===401)return;fa(e)}};return{user:t,hasUser:n,setUser:i,clearUser:r,fetch:async()=>a||(a=o().finally(()=>{a=null}),a)}}),wD=[Kc,qc,BT,fD,pD,xD,Ve(()=>{let e=ra(),t=f(),{fetch:n,clearUser:r}=CD(),i=t.public?.oasFrontend?.bypassCookieName;if(!(i&&Vt(i)?.value!==void 0)){r();return}n().catch(()=>e.warn(`Failed to load current authenticated user`))}),Ve(async e=>{let t,n;if(!(e.meta.protected??!1))return;let i=r(),a=CD(),{hasUser:o}=On(a);if(o.value||([t,n]=s(()=>a.fetch()),await t,n()),!o.value)return i.runWithContext(()=>Oe(Me({status:401,statusText:`Unauthorized`,fatal:!0})))},1),Ve(e=>{let t=Wt({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return Ee(n,{acceptRelative:!0})?(window.location.href=n,!1):n}})],TD={"clear-sport-context":()=>Z(()=>import(`./C6y83HDY.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]),import.meta.url)},ED={layout:!1},DD={layout:!1,breadcrumb:`All Sports Schedule`},OD={layout:!1,breadcrumb:`Broadcast Guide`},kD={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),layout:!1,protected:!0},AD={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),layout:!1,protected:!0},jD={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),layout:!1,protected:!0},MD={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),layout:!1,protected:!0},ND=e=>e.name!==`revisions`,PD={validate:async e=>ND(e),layout:!1,protected:!0},FD={breadcrumb:`News`},ID={breadcrumb:`Recap`},LD={breadcrumb:`Stats`},RD={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),scrollToTop:Qt,layout:!1,breadcrumb:{key:e=>`boxscore-${e.params.id}`}},zD={validate:async e=>`uuid`in e.params&&e.params.uuid.toString().length>0,layout:!1},BD={breadcrumb:`News`},VD=e=>`news-article-${e}`,HD=e=>{let t=Array.isArray(e)?e.filter(Boolean).at(-1):e;return String(t??``).replace(/[-_]+/g,` `).trim().replace(/\b\w/g,e=>e.toUpperCase())},UD={validate:async e=>`slug`in e.params&&Ta(e.params.slug.toString()),breadcrumb:{key:e=>VD(String(e.params.slug)),fallback:e=>HD(e.params.slug)}},WD={breadcrumb:{fallback:e=>HD(e.params.year)}},GD={layout:!1,breadcrumb:`News`},KD={layout:!1,breadcrumb:`Search`},qD={breadcrumb:{fallback:e=>HD(e.params.year)}},JD={breadcrumb:`News`},YD=e=>`sport-roster-${e.params.sport}`,XD={breadcrumb:{key:e=>YD(e)}},ZD=e=>`sport-roster-player-staff-${e.params.sport}-${e.params.season}-${e.params.slug}`,QD={validate:async e=>`slug`in e.params&&Ta(e.params.slug.toString()),breadcrumb:{key:e=>ZD(e)}},$D={validate:async e=>`season`in e.params&&Ta(e.params.season.toString())},eO=e=>`sport-roster-season-player-${e.params.sport}-${e.params.season}-${e.params.slug}`,tO={validate:async e=>`slug`in e.params&&Ta(e.params.slug.toString()),breadcrumb:{key:e=>eO(e)}},nO=e=>`sport-roster-season-staff-${e.params.sport}-${e.params.slug}`,rO={validate:async e=>`slug`in e.params&&Ta(e.params.slug.toString()),breadcrumb:{key:e=>nO(e)}},iO=e=>`sport-roster-season-${e.params.sport}-${e.params.season}`,aO={validate:async e=>`season`in e.params&&Ta(e.params.season.toString()),breadcrumb:{key:e=>iO(e)}},oO={breadcrumb:{key:e=>`sport-schedule-${e.params.sport}`}},sO=e=>`sport-schedule-season-${e.params.sport}-${e.params.season}`,cO={validate:async e=>`sport`in e.params&&`season`in e.params,breadcrumb:{key:e=>sO(e)}},lO={validate:async e=>`sport`in e.params},uO={validate:async e=>`season`in e.params&&Ta(e.params.season.toString()),breadcrumb:{fallback:e=>`Season ${HD(e.params.season)}`}},dO={breadcrumb:`Stats`},fO={breadcrumb:`Videos`},pO=e=>`sport-${e.params.sport}`,mO={validate:async e=>`sport`in e.params&&Ta(e.params.sport.toString()),layout:!1,breadcrumb:{key:e=>pO(e)}},hO=e=>`staff-${String(e.params.slug)}`,gO={validate:async e=>`slug`in e.params&&Ta(e.params.slug.toString()),breadcrumb:{key:e=>hO(e),fallback:e=>HD(e.params.slug)}},_O={layout:!1,breadcrumb:`Staff Directory`},vO={layout:!1,breadcrumb:`Videos`},yO={layout:!1,breadcrumb:`Photo Galleries`},bO={breadcrumb:`Podcasts`},xO=e=>`podcast-id-${e.params.id}`,SO={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),layout:!1,breadcrumb:{key:e=>xO(e)}},CO={layout:!1,breadcrumb:`Audio`},wO={validate:async e=>`slug`in e.params&&Ta(e.params.slug.toString()),layout:!1,breadcrumb:{key:e=>`gallery-${e.params.slug}`,fallback:e=>HD(e.params.slug)}},TO={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),layout:!1,protected:!0},EO={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),layout:!1,protected:!0},DO={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),layout:!1,protected:!0},OO={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),layout:!1,protected:!0},kO=e=>(0,mc.default)(e)?e.filter(Boolean):e?[e.toString()]:[],AO=e=>`page-${kO(e.params.slug).join(`/`)}`,jO={validate:async e=>{if(!(`slug`in e.params))return!1;let t=e.params.slug;if(!Array.isArray(t))return Ta(t);let n=t.filter(Boolean);return n.length>0&&n.every(Ta)},layout:!1,breadcrumb:{key:e=>AO(e),fallback:e=>HD(e.params.slug)}},MO={protected:!0},NO={breadcrumb:`Event`,layout:!1},PO={breadcrumb:`News`},FO={validate:async e=>`id`in e.params&&/^\d+$/.test(e.params.id.toString()),scrollToTop:Qt,layout:!1,breadcrumb:{key:e=>`schedule-event-page-${e.params.id}`}},IO=[{name:`index`,path:`/`,meta:ED||{},component:()=>Z(()=>import(`./Bjj_GxmK.js`),__vite__mapDeps([36,3,24,22,2,5,6,25,8,9,4,1,10,11,12,13,14,15,16,17,18,19,20,21,23,26,27,28,29,30,31,32,33,37,7,34,35,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]),import.meta.url)},{name:`all-sports-schedule`,path:`/all-sports-schedule`,meta:DD||{},component:()=>Z(()=>import(`./DDeRLhaq.js`),__vite__mapDeps([73,3,6,1,2,4,5,24,22,25,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,26,27,28,29,30,31,32,33,74,7,34,35,75,76,77,78,79,80,81,82,83,49,84,41,42,85,86,87,88,89,58,90,91,92,93,59,61,94,46,47,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,37,38,39,40,112,113,114,115,43,116,70,71,117,118,119,120,121,44,122]),import.meta.url)},{name:`broadcast-guide`,path:`/broadcast-guide`,meta:OD||{},component:()=>Z(()=>import(`./MVeXQW1a.js`),__vite__mapDeps([123,8,3,1,2,4,5,6,24,21,20,22,23,15,16,25,9,10,11,12,13,14,17,18,19,26,27,28,29,30,31,32,33,74,124,77,125,126,127,128,89,7,34,35,58,82,84,90,91,114,75,76,78,79,80,81,83,49,129,130,41,42,87,88,100,101,59,102,115,43,71,121,44,131,132]),import.meta.url)},{name:`revisions`,path:`/revisions`,meta:PD||{},component:()=>Z(()=>import(`./CM-va1lO.js`),__vite__mapDeps([133,3,43]),import.meta.url),children:[{name:`revisions-article-id`,path:`/revisions/article/:id`,meta:kD||{},component:()=>Z(()=>import(`./CokSDYVY.js`),__vite__mapDeps([134,3,1,2,4,5,6,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,58,29,30,31,135,69,38,43,136,137,24,25,26,27,28,32,33,37,7,34,35,39,40,48,46,47,49,50,51,52,53,54,55,56,57,59,75,76,77,61,78,79,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,94,82,84,154,108,109,41,42,155,156,157,63,158,159,160,161,89,90,91,162,163,164]),import.meta.url)},{name:`revisions-page-id`,path:`/revisions/page/:id`,meta:AD||{},component:()=>Z(()=>import(`./CYanrEsb.js`),__vite__mapDeps([165,3,1,2,4,5,6,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,58,29,30,31,135,69,38,166,24,25,26,27,28,32,33,48,37,7,34,35,39,40,46,47,49,50,51,52,53,54,55,56,57,167,168,84,82,65,66,67,158,43,136,163,77,164]),import.meta.url)},{name:`revisions-static-page-id`,path:`/revisions/static-page/:id`,meta:jD||{},component:()=>Z(()=>import(`./CzOj3GLo.js`),__vite__mapDeps([169,3,5,6,21,2,4,1,20,22,58,29,30,31,60,135,9,8,10,11,12,13,14,15,16,17,18,19,23,69,38,43,170,136,163,24,25,26,27,28,32,33,48,37,7,34,35,39,40,46,47,49,50,51,52,53,54,55,56,57,77,82,84,164]),import.meta.url)},{name:`revisions-schedule-event-page-id`,path:`/revisions/schedule-event-page/:id`,meta:MD||{},component:()=>Z(()=>import(`./BYIe65Ny.js`),__vite__mapDeps([171,3,5,6,21,2,4,1,20,22,58,29,30,31,60,135,9,8,10,11,12,13,14,15,16,17,18,19,23,114,69,38,43,172,24,25,26,27,28,32,33,37,7,34,35,39,40,48,46,47,49,50,51,52,53,54,55,56,57,59,75,76,78,79,106,61,107,173,174,82,89,84,90,91,100,175,95,93,94,176,177,170,136,163,77,164]),import.meta.url)}]},{name:`boxscore-id`,path:`/boxscore/:id`,meta:RD||{},component:()=>Z(()=>import(`./BheZAt7f.js`),__vite__mapDeps([178,3,1,2,4,5,6,15,8,16,21,20,22,179,9,10,11,12,13,14,17,18,19,23,26,29,30,31,58,60,180,78,79,85,86,63,114,69,38,43,172,24,25,27,28,32,33,37,7,34,35,39,40,48,46,47,49,50,51,52,53,54,55,56,57,59,75,76,106,61,107,173,174,82,89,84,90,91,100,175,95,93,94,176,177,181,41,42,119,77,120,182,183,184,185,186,159,160,170,136,187]),import.meta.url),children:[{name:`boxscore-id-index`,path:``,component:()=>Z(()=>import(`./Bc2Hfuvh.js`),__vite__mapDeps([188,8,3,48,16,17,24,22,2,5,6,25,9,4,1,10,11,12,13,14,15,18,19,20,21,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,46,47,49,50,51,52,53,54,55,56,57]),import.meta.url)},{name:`boxscore-id-news`,path:`news`,meta:FD||{},component:()=>Z(()=>import(`./sQGHGOVa.js`),__vite__mapDeps([189,3,43,190,191,1,2,4,5,6,24,22,25,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,75,76,78,79,80,81,192,193,129,77,130,152,51,153,84,82,94,46,47,58,154,108,109,63,194,87,88,118,195,121,196,197,56,198,199]),import.meta.url)},{name:`boxscore-id-recap`,path:`recap`,meta:ID||{},component:()=>Z(()=>import(`./BJT4Xp50.js`),__vite__mapDeps([200,3,89,8,9,2,4,1,5,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,7,34,35,58,82,84,90,91,43,201,63,202,203,78,79,129,77,130,158,204,137,37,38,39,40,48,46,47,49,50,51,52,53,54,55,56,57,59,75,76,61,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,94,154,108,109,41,42,155,156,157,69,159,160,161,162]),import.meta.url)},{name:`boxscore-id-stats`,path:`stats`,meta:LD||{},component:()=>Z(()=>import(`./_Z4mjKo2.js`),__vite__mapDeps([205,3,22,2,5,6,43,181,24,26,7,8,9,4,1,10,11,12,13,14,15,16,17,18,19,20,21,23,25,27,28,29,30,31,32,33,34,35,75,76,78,79,41,42,89,58,82,84,90,91,100,69,38,119,77,120,182,59,183,184,49,185,186,159,160]),import.meta.url)}]},{name:`documents-uuid-pdf`,path:`/documents/:uuid.pdf`,meta:zD||{},component:()=>Z(()=>import(`./D9dL6KvP.js`),__vite__mapDeps([206,3,1,2,4,5,6,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,78,79,207,41,42,43,44]),import.meta.url)},{name:GD?.name,path:`/news`,meta:GD||{},component:()=>Z(()=>import(`./6J4l6EOM.js`),__vite__mapDeps([208,3,43]),import.meta.url),children:[{name:`news`,path:``,meta:{...BD||{},middleware:`clear-sport-context`},component:()=>Z(()=>import(`./DMrAFGVk.js`),__vite__mapDeps([209,3,43,191,1,2,4,5,6,24,22,25,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,75,76,78,79,80,81,192,193,129,77,130,152,51,153,84,82,94,46,47,58,154,108,109,63,194,87,88,118,195,121,196,197,56,198,199]),import.meta.url)},{name:`news-year-month-day-slug`,path:`:year/:month/:day/:slug`,meta:UD||{},component:()=>Z(()=>import(`./DipRBmwD.js`),__vite__mapDeps([210,3,1,2,4,5,6,60,43,201,8,11,21,20,22,7,9,10,12,13,14,15,16,17,18,19,23,24,25,26,27,28,29,30,31,32,33,34,35,63,202,203,78,79,129,77,130,158,204,137,37,38,39,40,48,46,47,49,50,51,52,53,54,55,56,57,59,75,76,61,138,139,140,141,142,143,144,145,146,147,
10148,149,150,151,152,153,94,58,82,84,154,108,109,41,42,155,156,157,69,159,160,161,89,90,91,162]),import.meta.url)},{name:`news-year`,path:`:year`,meta:{...WD||{},middleware:`clear-sport-context`},component:()=>Z(()=>import(`./mb34Fv1T.js`),__vite__mapDeps([211,3,1,2,4,5,6,43,191,24,22,25,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,75,76,78,79,80,81,192,193,129,77,130,152,51,153,84,82,94,46,47,58,154,108,109,63,194,87,88,118,195,121,196,197,56,198,199]),import.meta.url)}]},{name:`search`,path:`/search`,meta:KD||{},component:()=>Z(()=>import(`./D7moYRfN.js`),__vite__mapDeps([212,3,1,2,4,5,6,41,42,10,11,15,8,16,13,14,18,19,43,44,213,29,30,31,214]),import.meta.url)},{name:`sports-sport`,path:`/sports/:sport`,meta:mO||{},component:()=>Z(()=>import(`./DpFJIEKj.js`),__vite__mapDeps([215,3,1,2,4,5,6,24,22,37,8,12,26,7,9,10,11,13,14,15,16,17,18,19,20,21,23,25,27,28,29,30,31,32,33,34,35,38,39,40,60,180,43,216]),import.meta.url),children:[{name:`sports-sport-slug`,path:``,component:()=>Z(()=>import(`./Bh1pl1dj.js`),__vite__mapDeps([217,3,24,25,8,9,2,4,1,5,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,7,34,35,45,46,47,48,37,38,39,40,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72]),import.meta.url)},{name:JD?.name,path:`news`,meta:JD||{},component:()=>Z(()=>import(`./BHBdpxtX.js`),__vite__mapDeps([218,3,43]),import.meta.url),children:[{name:`sports-sport-news`,path:``,component:()=>Z(()=>import(`./D78pWT9_.js`),__vite__mapDeps([219,3,5,6,24,22,2,7,8,9,4,1,10,11,12,13,14,15,16,17,18,19,20,21,23,25,26,27,28,29,30,31,32,33,34,35,129,77,130,116,59,61,70,39,71,117,191,37,38,40,75,76,78,79,80,81,192,193,152,51,153,84,82,94,46,47,58,154,108,109,63,194,87,88,118,195,121,196,197,56,198,199,220,65,66,55,67,54,69]),import.meta.url)},{name:`sports-sport-news-year-year`,path:`year/:year`,meta:qD||{},component:()=>Z(()=>import(`./CSYtpL_B.js`),__vite__mapDeps([221,3,5,6,24,22,2,7,8,9,4,1,10,11,12,13,14,15,16,17,18,19,20,21,23,25,26,27,28,29,30,31,32,33,34,35,129,77,130,43,116,59,61,70,39,71,117,191,37,38,40,75,76,78,79,80,81,192,193,152,51,153,84,82,94,46,47,58,154,108,109,63,194,87,88,118,195,121,196,197,56,198,199,220,65,66,55,67,54,69]),import.meta.url)}]},{name:void 0,path:`roster`,component:()=>Z(()=>import(`./WvH8R2OD.js`),__vite__mapDeps([222,3,1,2,4,5,6,129,77,8,18,14,21,20,22,130,223,24,25,9,10,11,12,13,15,16,17,19,23,26,27,28,29,30,31,32,33,7,34,35,60,224,225]),import.meta.url),children:[{name:`sports-sport-roster`,path:``,meta:XD||{},component:()=>Z(()=>import(`./DS24t1pA.js`),__vite__mapDeps([226,3,1,2,4,5,6,24,22,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,25,26,27,28,29,30,31,32,33,34,35,227,37,38,39,40,228,66,55,75,76,104,105,77,78,79,80,81,229,59,61,230,50,129,130,85,86,173,231,232,118,119,120,195,121,184,49,233,224,234,235,236,237,238,174,82,91,239,240,241,242,202,243,244,157,245,246,52,53,54,56,247,248,58,180,69,43,116,70,71,117,249]),import.meta.url)},{name:`sports-sport-roster-all`,path:`all`,component:()=>Z(()=>import(`./D7CxfgKY.js`),__vite__mapDeps([250,8,3,6,1,2,4,5,24,21,20,22,25,9,10,11,12,13,14,15,16,17,18,19,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,228,75,76,78,79,80,81,41,42,85,86,243,244,157,52,53,54,55,56,119,77,120,121,44,196,197,47,198,131,233,224,234,229,59,61,230,50,173,235,236,237,238,174,82,91,239,240,251]),import.meta.url)},{name:QD?.name,path:`player/:slug`,meta:QD||{},component:()=>Z(()=>import(`./C9LI_vBi.js`),__vite__mapDeps([252,3,1,2,4,5,6,60,180,12,30,69,38,43,253,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,32,33,7,34,35,58,243,244,157,224,245,246,228,52,53,54,55,56]),import.meta.url),children:[{name:`sports-sport-roster-player-slug`,path:``,component:()=>Z(()=>import(`./B_f1GOhk.js`),__vite__mapDeps([254,3,255,1,2,4,5,6,17,24,21,20,22,25,8,9,10,11,12,13,14,15,16,18,19,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,48,46,47,49,50,51,52,53,54,55,56,57,156,256,75,76,77,78,79,80,81,125,126,229,59,61,230,138,139,140,141,142,143,144,145,257,258,147,148,129,130,149,150,151,41,42,157,243,244,159,160,235,236,237,238,174,82,91,239,241,242,202,173,245,246,228,247,259,152,153,94,58,84,154,108,109,260,261]),import.meta.url)}]},{name:aO?.name,path:`season/:season`,meta:aO||{},component:()=>Z(()=>import(`./Bh01Lqjy.js`),__vite__mapDeps([262,3,5,6,24,7,8,9,2,4,1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,34,35,58,60,180,69,38,43,249,263]),import.meta.url),children:[{name:`sports-sport-roster-season-season`,path:``,meta:$D||{},component:()=>Z(()=>import(`./COuDVzDM.js`),__vite__mapDeps([264,3,227,8,1,2,4,5,6,16,24,21,20,22,23,15,37,12,26,7,9,10,11,13,14,17,18,19,25,27,28,29,30,31,32,33,34,35,38,39,40,228,66,55,75,76,104,105,77,78,79,80,81,229,59,61,230,50,129,130,85,86,173,231,232,118,119,120,195,121,184,49,233,224,234,235,236,237,238,174,82,91,239,240,241,242,202,243,244,157,245,246,52,53,54,56,247,248,60,43,249]),import.meta.url)},{name:tO?.name,path:`player/:slug`,meta:tO||{},component:()=>Z(()=>import(`./BFOl78TU.js`),__vite__mapDeps([265,3,1,2,4,5,6,60,180,12,30,69,38,43,253,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,31,32,33,7,34,35,58,243,244,157,224,245,246,228,52,53,54,55,56]),import.meta.url),children:[{name:`sports-sport-roster-season-season-player-slug`,path:``,component:()=>Z(()=>import(`./iTbTDJyL.js`),__vite__mapDeps([266,3,255,1,2,4,5,6,17,24,21,20,22,25,8,9,10,11,12,13,14,15,16,18,19,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,48,46,47,49,50,51,52,53,54,55,56,57,156,256,75,76,77,78,79,80,81,125,126,229,59,61,230,138,139,140,141,142,143,144,145,257,258,147,148,129,130,149,150,151,41,42,157,243,244,159,160,235,236,237,238,174,82,91,239,241,242,202,173,245,246,228,247,259,152,153,94,58,84,154,108,109,260,261]),import.meta.url)}]},{name:rO?.name,path:`staff/:slug`,meta:rO||{},component:()=>Z(()=>import(`./i_XVQ7hz.js`),__vite__mapDeps([267,2,3,1,4,5,6,21,20,22,58,29,30,31,27,28,60,180,12,38,231,9,8,10,11,13,14,15,16,17,18,19,23,232,25,24,26,32,33,69,43,268,269]),import.meta.url),children:[{name:`sports-sport-roster-season-season-staff-slug`,path:``,component:()=>Z(()=>import(`./Dn74mJmw.js`),__vite__mapDeps([270,3,271,24,21,2,4,1,5,6,20,22,25,8,9,10,11,12,13,14,15,16,17,18,19,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,48,46,47,49,50,51,52,53,54,55,56,57,156,75,76,78,79,229,59,61,230,257,258,129,77,130,41,42,173,272,259,152,153,94,58,82,84,154,108,109,260,268,273]),import.meta.url)}]}]}]},{name:lO?.name,path:`schedule`,meta:lO||{},component:()=>Z(()=>import(`./CfSCG-BH.js`),__vite__mapDeps([274,3,24,25,8,9,2,4,1,5,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,26,27,28,29,30,31,32,33,7,34,35,43]),import.meta.url),children:[{name:`sports-sport-schedule`,path:``,meta:oO||{},component:()=>Z(()=>import(`./BsjkM2LH.js`),__vite__mapDeps([275,3,5,6,24,21,2,4,1,20,22,25,8,9,10,11,12,13,14,15,16,17,18,19,23,26,27,28,29,30,31,32,33,7,34,35,60,180,43,116,59,61,70,39,71,117,276,277,37,38,40,48,46,47,49,50,51,52,53,54,55,56,57,74,58,128,89,82,84,90,91,114,75,76,104,105,78,79,80,81,83,77,106,107,129,130,152,153,94,85,86,63,278,92,93,95,96,100,101,102,103,108,109,97,98,99,110,111,112,113,115,69,118,119,120,121,175,176,182,183,184,185,161,156,41,42,279,28
100,216]),import.meta.url)},{name:cO?.name,path:`season/:season`,meta:cO||{},component:()=>Z(()=>import(`./W2v7W3Lo.js`),__vite__mapDeps([281,2,3,1,4,5,6,24,21,20,22,7,8,9,10,11,12,13,14,15,16,17,18,19,23,25,26,27,28,29,30,31,32,33,34,35,60,180,43,225,263,276]),import.meta.url),children:[{name:`sports-sport-schedule-season-season`,path:``,component:()=>Z(()=>import(`./CXQNGxtA.js`),__vite__mapDeps([282,3,277,9,8,2,4,1,5,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,48,46,47,49,50,51,52,53,54,55,56,57,74,58,128,89,82,84,90,91,114,75,76,104,105,78,79,80,81,83,77,106,59,61,107,129,130,152,153,94,85,86,63,278,92,93,95,96,100,101,102,103,108,109,97,98,99,110,111,112,113,115,69,116,70,71,117,118,119,120,121,175,176,182,183,184,185,161,156,41,42,276,279]),import.meta.url)}]}]},{name:dO?.name,path:`stats`,meta:dO||{},component:()=>Z(()=>import(`./BFag_7Tk.js`),__vite__mapDeps([283,3,1,2,4,5,6,24,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,34,35,58,69,38,43,220,65,66,55,67,54,56,223,60,224,225]),import.meta.url),children:[{name:`sports-sport-stats`,path:``,component:()=>Z(()=>import(`./CFniKt31.js`),__vite__mapDeps([284,3,285,8,1,2,4,5,6,22,7,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,78,79,80,81,119,77,120,182,59,183,75,76,184,49,185,159,160,233,224,280,60,216,276,286]),import.meta.url)},{name:uO?.name,path:`season/:season`,meta:uO||{},component:()=>Z(()=>import(`./ChJid82v.js`),__vite__mapDeps([287,3,60,1,2,4,5,6,43]),import.meta.url),children:[{name:`sports-sport-stats-season-season`,path:``,component:()=>Z(()=>import(`./DfQe7BE1.js`),__vite__mapDeps([288,3,285,8,1,2,4,5,6,22,7,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,78,79,80,81,119,77,120,182,59,183,75,76,184,49,185,159,160,233,224,280,60,216,276,286]),import.meta.url)}]}]},{name:`sports-sport-videos`,path:`videos`,meta:fO||{},component:()=>Z(()=>import(`./DuhgcvMk.js`),__vite__mapDeps([289,3,5,6,24,22,2,7,8,9,4,1,10,11,12,13,14,15,16,17,18,19,20,21,23,25,26,27,28,29,30,31,32,33,34,35,129,77,130,43,116,59,61,70,39,71,117,290,75,76,78,79,80,81,291,292,152,51,153,94,46,47,58,82,84,154,108,109,41,42,194,63,87,88,293,256,49,138,139,140,141,142,143,144,145,147,148,149,150,151,294,295,44,196,197,56,198,296]),import.meta.url)},{name:`sports-sport-photo-galleries`,path:`photo-galleries`,component:()=>Z(()=>import(`./BGTWYXNA.js`),__vite__mapDeps([297,3,5,6,24,22,2,7,8,9,4,1,10,11,12,13,14,15,16,17,18,19,20,21,23,25,26,27,28,29,30,31,32,33,34,35,129,77,130,116,59,61,70,39,71,117,298,37,38,40,75,76,78,79,80,81,192,193,152,51,153,94,46,47,58,82,84,154,108,109,194,63,87,88,196,197,56,198,299,220,65,66,55,67,54,69]),import.meta.url)}]},{name:gO?.name,path:`/staff/:slug`,meta:gO||{},component:()=>Z(()=>import(`./D17i3Pxv.js`),__vite__mapDeps([300,3,1,2,4,5,6,24,21,20,22,7,8,9,10,11,12,13,14,15,16,17,18,19,23,25,26,27,28,29,30,31,32,33,34,35,58,60,180,38,232,69,43,268,269]),import.meta.url),children:[{name:`staff-slug`,path:``,component:()=>Z(()=>import(`./6IkQOyYP.js`),__vite__mapDeps([301,3,271,24,21,2,4,1,5,6,20,22,25,8,9,10,11,12,13,14,15,16,17,18,19,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,48,46,47,49,50,51,52,53,54,55,56,57,156,75,76,78,79,229,59,61,230,257,258,129,77,130,41,42,173,272,259,152,153,94,58,82,84,154,108,109,260,268,273]),import.meta.url)}]},{name:_O?.name,path:`/staff-directory`,meta:_O||{},component:()=>Z(()=>import(`./DfoVcfd4.js`),__vite__mapDeps([302,3,43]),import.meta.url),children:[{name:`staff-directory-department-slug`,path:`department/:slug`,component:()=>Z(()=>import(`./Jkaqh4bR.js`),__vite__mapDeps([303,3,304,8,2,6,1,4,5,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,37,7,34,35,38,39,40,58,75,76,78,79,80,81,229,59,61,230,41,42,65,66,55,67,54,56,115,69,119,77,120,44,305]),import.meta.url)},{name:`staff-directory`,path:``,component:()=>Z(()=>import(`./Q4ADjXUu.js`),__vite__mapDeps([306,3,304,8,2,6,1,4,5,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,37,7,34,35,38,39,40,58,75,76,78,79,80,81,229,59,61,230,41,42,65,66,55,67,54,56,115,69,119,77,120,44,305]),import.meta.url)}]},{name:`videos`,path:`/videos`,meta:vO||{},component:()=>Z(()=>import(`./CXTBPIW3.js`),__vite__mapDeps([307,3,43,290,6,1,2,4,5,24,22,25,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,26,27,28,29,30,31,32,33,75,76,77,78,79,80,81,291,292,129,130,152,51,153,94,46,35,34,47,7,58,82,84,154,108,109,41,42,194,63,87,88,293,256,49,138,139,140,141,142,143,144,145,147,148,149,150,151,294,295,116,59,61,70,39,71,117,44,196,197,56,198,296]),import.meta.url)},{name:`photo-galleries`,path:`/photo-galleries`,meta:yO||{},component:()=>Z(()=>import(`./DdBtFXGf.js`),__vite__mapDeps([308,3,43,298,1,2,4,5,6,22,37,8,12,24,26,7,9,10,11,13,14,15,16,17,18,19,20,21,23,25,27,28,29,30,31,32,33,34,35,38,39,40,75,76,78,79,80,81,192,193,129,77,130,152,51,153,94,46,47,58,82,84,154,108,109,194,63,87,88,116,59,61,70,71,117,196,197,56,198,299]),import.meta.url)},{name:CO?.name,path:`/audio`,meta:CO||{},component:()=>Z(()=>import(`./BlseEZ5I.js`),__vite__mapDeps([309,3,43]),import.meta.url),children:[{name:`audio`,path:``,meta:bO||{},component:()=>Z(()=>import(`./_Q1sFsRz.js`),__vite__mapDeps([310,3,1,2,4,5,6,21,20,22,23,15,8,16,37,12,24,26,7,9,10,11,13,14,17,18,19,25,27,28,29,30,31,32,33,34,35,38,39,40,75,76,77,78,79,80,81,129,130,311,82,312,202,242,313,43,195,121,314,183,59,315]),import.meta.url)},{name:`audio-id`,path:`:id`,meta:SO||{},component:()=>Z(()=>import(`./C9nS7R-G.js`),__vite__mapDeps([316,3,1,2,4,5,6,21,20,22,37,8,12,24,26,7,9,10,11,13,14,15,16,17,18,19,23,25,27,28,29,30,31,32,33,34,35,38,39,40,180,75,76,78,79,80,81,129,77,130,311,82,317,318,168,3
1019,320,150,236,237,238,174,313,321,43,195,121,314,202,242,322]),import.meta.url)}]},{name:`galleries-slug`,path:`/galleries/:slug`,meta:wO||{},component:()=>Z(()=>import(`./DFJLeTT3.js`),__vite__mapDeps([323,3,1,2,4,5,6,21,20,22,58,29,30,31,27,28,60,180,12,78,79,85,86,324,75,76,325,326,9,8,10,11,13,14,15,16,17,18,19,23,327,328,69,38,43,329]),import.meta.url)},{name:`preview-static-page-id`,path:`/preview/static-page/:id`,meta:TO||{},component:()=>Z(()=>import(`./BIZjhnSB.js`),__vite__mapDeps([330,3,5,6,21,2,4,1,20,22,58,29,30,31,60,135,9,8,10,11,12,13,14,15,16,17,18,19,23,69,38,43,170,136,163,24,25,26,27,28,32,33,48,37,7,34,35,39,40,46,47,49,50,51,52,53,54,55,56,57,77,82,84,164]),import.meta.url)},{name:`preview-article-id`,path:`/preview/article/:id`,meta:EO||{},component:()=>Z(()=>import(`./Bq2PmqPE.js`),__vite__mapDeps([331,3,1,2,4,5,6,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,58,29,30,31,135,69,38,43,136,137,24,25,26,27,28,32,33,37,7,34,35,39,40,48,46,47,49,50,51,52,53,54,55,56,57,59,75,76,77,61,78,79,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,94,82,84,154,108,109,41,42,155,156,157,63,158,159,160,161,89,90,91,162,163,164]),import.meta.url)},{name:`preview-page-id`,path:`/preview/page/:id`,meta:DO||{},component:()=>Z(()=>import(`./gtLHc4dl.js`),__vite__mapDeps([332,3,1,2,4,5,6,9,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,58,29,30,31,135,69,38,166,24,25,26,27,28,32,33,48,37,7,34,35,39,40,46,47,49,50,51,52,53,54,55,56,57,167,168,84,82,65,66,67,158,43,136,163,77,164]),import.meta.url)},{name:`preview-schedule-event-page-id`,path:`/preview/schedule-event-page/:id`,meta:OO||{},component:()=>Z(()=>import(`./Hs_xXXTr.js`),__vite__mapDeps([333,3,1,2,4,5,6,21,20,22,58,29,30,31,60,135,9,8,10,11,12,13,14,15,16,17,18,19,23,78,79,85,86,114,69,38,43,172,24,25,26,27,28,32,33,37,7,34,35,39,40,48,46,47,49,50,51,52,53,54,55,56,57,59,75,76,106,61,107,173,174,82,89,84,90,91,100,175,95,93,94,176,177,170,136,334]),import.meta.url),children:[{name:`preview-schedule-event-page-id-index`,path:``,component:()=>Z(()=>import(`./BUdOjesx.js`),__vite__mapDeps([335,3,163,12,2,4,24,21,1,5,6,20,22,25,8,9,10,11,13,14,15,16,17,18,19,23,26,27,28,29,30,31,32,33,48,37,7,34,35,38,39,40,46,47,49,50,51,52,53,54,55,56,57,135,77,82,84,164]),import.meta.url)}]}
10,{name:`slug`,path:`/:slug(.*)*`,meta:jO||{},component:()=>Z(()=>import(`./Dk3QbcCt.js`),__vite__mapDeps([336,8,3,1,2,4,5,6,11,16,24,21,20,22,25,9,10,12,13,14,15,17,18,19,23,26,27,28,29,30,31,32,33,7,34,35,60,180,202,65,66,55,67,54,56,167,46,47,168,58,84,82,337,203,78,79,129,77,130,158,204,166,48,37,38,39,40,49,50,51,52,53,57,69,43]),import.meta.url)},{name:`_dev-trigger-error`,path:`/_dev/trigger-error`,meta:MO||{},component:()=>Z(()=>import(`./5I0i0aL1.js`),__vite__mapDeps([338,3,43]),import.meta.url)},{name:`event`,path:`/event`,component:()=>Z(()=>import(`./BuOIraKb.js`),__vite__mapDeps([339,3]),import.meta.url),children:[{name:`event-index`,path:``,meta:NO||{},component:()=>Z(()=>import(`./CfKbCZE0.js`),__vite__mapDeps([340,3,43]),import.meta.url)}]},{name:`event-id`,path:`/event/:id`,meta:FO||{},component:()=>Z(()=>import(`./CWg4kJtY.js`),__vite__mapDeps([341,3,1,2,4,5,6,15,8,16,21,20,22,179,9,10,11,12,13,14,17,18,19,23,26,29,30,31,58,60,180,78,79,85,86,63,114,69,38,43,172,24,25,27,28,32,33,37,7,34,35,39,40,48,46,47,49,50,51,52,53,54,55,56,57,59,75,76,106,61,107,173,174,82,89,84,90,91,100,175,95,93,94,176,177,170,136,342]),import.meta.url),children:[{name:`event-id-index`,path:``,component:()=>Z(()=>import(`./D-QU_Ppy.js`),__vite__mapDeps([343,8,3,48,16,17,24,22,2,5,6,25,9,4,1,10,11,12,13,14,15,18,19,20,21,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,46,47,49,50,51,52,53,54,55,56,57]),import.meta.url)},{name:`event-id-news`,path:`news`,meta:PO||{},component:()=>Z(()=>import(`./Bod_CZ-w.js`),__vite__mapDeps([344,3,43,190,191,1,2,4,5,6,24,22,25,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,26,27,28,29,30,31,32,33,37,7,34,35,38,39,40,75,76,78,79,80,81,192,193,129,77,130,152,51,153,84,82,94,46,47,58,154,108,109,63,194,87,88,118,195,121,196,197,56,198,199]),import.meta.url)}]}];function LO(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),Ce(n,``)}let s=Ce(r,e),c=!n||He(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var RO=m({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,n,r=f().app.baseURL;fn&&!r.includes(`#`)&&(r+=`#`);let i=cn.history?.(r)??(fn?Ts(r):ws(r)),a=cn.routes?([t,n]=s(()=>cn.routes(IO)),t=await t,n(),t??IO):IO,o,c=oc({...cn,scrollBehavior:(e,t,n)=>{if(t===ht){o=n;return}if(cn.scrollBehavior){if(c.options.scrollBehavior=cn.scrollBehavior,`scrollRestoration`in window.history){let e=c.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return cn.scrollBehavior(e,ht,o||n)}},history:i,routes:a});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(c);let l=V(c.currentRoute.value);c.afterEach((e,t)=>{l.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});let u=LO(r,window.location,e.payload.path),d=V(c.currentRoute.value),p=()=>{d.value=c.currentRoute.value};c.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;if(n===r){Nc({route:e,Component:{type:n}})===Nc({route:t,Component:{type:r}})&&p();return}e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&p()});let m={sync:p};for(let e in d.value)Object.defineProperty(m,e,{get:()=>d.value[e],enumerable:!0});e._route=re(m),e._middleware||={global:[],named:{}};let h=ze();c.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(Re),r&&await e.callHook(`page:loading:end`)});try{[t,n]=s(()=>c.isReady()),await t,n()}catch(r){[t,n]=s(()=>Ie(e,r)),await t,n()}let g=u===c.currentRoute.value.fullPath?c.currentRoute.value:c.resolve(u),_=c.currentRoute.value.fullPath,v=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&u!==e.payload.path&&He(c.currentRoute.value.path,e.payload.path);p();function y(t){!e.isHydrating&&t.fullPath!==LO(r,window.location)&&i.push(t.fullPath)}let b=e.payload.state._layout;return c.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=te(t.meta),e.isHydrating&&b&&!U(t.meta.layout)&&(t.meta.layout=b),e._processingMiddleware=!0;{let r=new Set([...wD,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Fc(t))r.add(e)}let i=Wt({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await TD[i]?.().then(e=>e.default||e):i;if(!r)throw Se.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||Me({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>Le(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return De(i)&&i.fatal&&(await e.runWithContext(()=>Le(i)),y(t)),i}catch(n){let r=Me(n);return r.fatal&&(await e.runWithContext(()=>Le(r)),y(t)),r}}}}),c.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)}),c.afterEach(t=>{if(t.matched.length===0&&!h.value)return e.runWithContext(()=>
10Le(Me({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in g&&(g.name=void 0),c.currentRoute.value.fullPath===_){if(v){let t=c.resolve(e.payload.path);`name`in t&&(t.name=void 0),await c.replace({...t,force:!0});let n=()=>{e[`~restoreDeferredRoute`]&&(e[`~restoreDeferredRoute`]=void 0,c.currentRoute.value=c.resolve(u),p(),c.replace({...g,force:!0}).catch(()=>{}))};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await c.replace({...g,force:!0})}c.options.scrollBehavior=cn.scrollBehavior}catch(t){await Ie(e,t)}}),{provide:{router:c}}}},1),zO=m({name:`nuxt:payload`,setup(e){let t=new Set;je().beforeResolve(async(n,r)=>{let i=Kt(n.path),a=i?Te(n.fullPath):n.path;if(a===(i?Te(r.fullPath):r.path))return;let o=await Xt(a);if(o){for(let n of t)delete e.static.data[n];for(let n in o.data)n in e.static.data||t.add(n),e.static.data[n]=o.data[n]}}),In(()=>{e.hooks.hook(`link:prefetch`,async e=>{let{hostname:t,pathname:n}=new URL(e,window.location.href);t===window.location.hostname&&await Xt(e).catch(()=>{zt.NUXT_E7003({url:e})})}),navigator.connection?.effectiveType!==`slow-2g`&&setTimeout(Ut,1e3)})}}),BO=m(()=>{let e=je();In(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),VO=m(e=>{let t;async function n(){let r;try{r=await Ut()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,p);try{let n=await Rt(Lt(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}In(()=>{t=setTimeout(n,p)})}),HO=m({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&xe(navigator.userAgent)&&hc()})}}),UO=m({name:`nuxt:chunk-reload`,setup(e){let t=je(),n=f(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){hc({path:We(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),WO=m({name:`nuxt:island-link-navigation`,setup(e){}}),GO=m({name:`pinia`,setup(e){let t=Mn();return e.vueApp.use(t),jn(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){let e=r();e.payload.pinia=he(e.$pinia).state.value,jn(void 0)}}}),KO=m({name:`sentry-client-config`,async setup(){let e,t;[e,t]=s(()=>Z(()=>import(`./CfaFHC_j.js`),__vite__mapDeps([345,2,3,28,29,30,31]),import.meta.url)),await e,t()}},1),qO=/^[a-z0-9]+(-[a-z0-9]+)*$/,JO=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!YO(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!YO(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!YO(e,n)?null:e}return null},YO=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1;function XO(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}var ZO=Object.freeze({left:0,top:0,width:16,height:16}),QO=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$O=Object.freeze({...ZO,...QO}),ek=Object.freeze({...$O,body:``,hidden:!1});function tk(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function nk(e,t){let n=tk(e,t);for(let r in ek)r in QO?r in e&&!(r in n)&&(n[r]=QO[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function rk(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=nk(r[e]||i[e],a)}
vendor: 11,423 bytes, line 10
10return o(t),n.forEach(o),nk(e,a)}function ik(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=XO(e);for(let i in r){let a=r[i];a&&(t(i,rk(e,i,a)),n.push(i))}return n}var ak={provider:``,aliases:{},not_found:{},...ZO};function ok(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function sk(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!ok(e,ak))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!ok(t,ek))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!ok(t,ek))return null}return t}var ck=Object.create(null);function lk(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function uk(e,t){let n=ck[e]||(ck[e]=Object.create(null));return n[t]||(n[t]=lk(e,t))}function dk(e,t){return sk(t)?ik(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function fk(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}var pk=!1;function mk(e){return typeof e==`boolean`&&(pk=e),pk}function hk(e){let t=typeof e==`string`?JO(e,!0,pk):e;if(t){let e=uk(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function gk(e,t){let n=JO(e,!0,pk);if(!n)return!1;let r=uk(n.provider,n.prefix);return t?fk(r,n.name,t):(r.missing.add(n.name),!0)}function _k(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),pk&&!t&&!e.prefix){let t=!1;return sk(e)&&(e.prefix=``,ik(e,(e,n)=>{gk(e,n)&&(t=!0)})),t}let n=e.prefix;return YO({prefix:n,name:`a`})?!!dk(uk(t,n),e):!1}function vk(e){let t=hk(e);return t&&{...$O,...t}}var yk=Object.freeze({width:null,height:null}),bk=Object.freeze({...yk,...QO}),xk=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Sk=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ck(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(xk);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=Sk.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function wk(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Tk(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Ek(e,t,n){let r=wk(e);return Tk(r.defs,t+r.content+n)}var Dk=e=>e===`unset`||e===`undefined`||e===`none`;function Ok(e,t){let n={...$O,...e},r={...bk,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Ek(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=Ck(d,c/l)):(u=o===`auto`?c:o,d=s===null?Ck(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{Dk(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var kk=/\sid="(\S+)"/g,Ak=new Map;function jk(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=Ak.get(e)||0;return Ak.set(e,t+1),t?`${e}${t}`:e}function Mk(e){let t=[],n;for(;n=kk.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=jk(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var Nk=Object.create(null);function Pk(e,t){Nk[e]=t}function Fk(e){return Nk[e]||Nk[``]}function Ik(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}for(var Lk=Object.create(null),Rk=[`https://api.simplesvg.com`,`https://api.unisvg.com`],zk=[];Rk.length>0;)Rk.length===1||Math.random()>.5?zk.push(Rk.shift()):zk.push(Rk.pop());Lk[``]=Ik({resources:[`https://api.iconify.design`].concat(zk)});function Bk(e,t){let n=Ik(t);return n!==null&&(Lk[e]=n,!0)}function Vk(e){return Lk[e]}function Hk(){return Object.keys(Lk)}var Uk=(()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}})();function Wk(e){Uk=e}function Gk(){return Uk}function Kk(e,t){let n=Vk(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function qk(e){return e===404}var Jk=(e,t,n)=>{let r=[],i=Kk(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r};function Yk(e){if(typeof e==`string`){let t=Vk(e);if(t)return t.path}return`/`}var Xk={prepare:Jk,send:(e,t,n)=>{if(!Uk){n(`abort`,424);return}let r=Yk(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;Uk(e+r).then(e=>{let t=e.status;if(t!==200){setTimeout(()=>{n(qk(t)?`abort`:`next`,t)});return}return i=501,e.json()}).then(e=>{if(typeof e!=`object`||!e){setTimeout(()=>{e===404?n(`abort`,e):n(`next`,i)});return}setTimeout(()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})}};function Zk(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function Qk(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||Zk([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}var $k=0;function eA(e,t,n){let r=$k++,i=Zk.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function tA(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=uk(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function nA(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?JO(e,t,n):e;i&&r.push(i)}),r}var rA={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function iA(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`){u=r,v();return}if(i){u=r,f.length||(o.length?x():v());return}if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function aA(e){let t={...rA,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=iA(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function oA(){}var sA=Object.create(null);function cA(e){if(!sA[e]){let t=Vk(e);if(!t)return;sA[e]={config:t,redundancy:aA(t)}}return sA[e]}function lA(e,t,n){let r,i;if(typeof e==`string`){let t=Fk(e);if(!t)return n(void 0,424),oA;i=t.send;let a=cA(e);a&&(r=a.redundancy)}else{let t=Ik(e);if(t){r=aA(t);let n=Fk(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),oA):r.query(t,i,n)().abort}function uA(){}function dA(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Qk(e)}))}function fA(e){let t=[],n=[];return e.forEach(e=>{(e.match(qO)?t:n).push(e)}),{valid:t,invalid:n}}function pA(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!dk(e,n).length){r();return}}catch(e){console.error(e)}r(),dA(e)}function mA(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function hA(e,t){e.iconsToLoad=e.iconsToLoad?e.iconsToLoad.concat(t).sort():t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){mA(e.loadIcons(r,n,t),t=>{pA(e,r,t)});return}if(i){r.forEach(r=>{mA(i(r,n,t),t=>{pA(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=fA(r);if(o.length&&pA(e,o,null),!a.length)return;let s=n.match(qO)?Fk(t):null;if(!s){pA(e,a,null);return}
10s.prepare(t,n,a).forEach(n=>{lA(t,n,t=>{pA(e,n.icons,t)})})}))}var gA=(e,t)=>{let n=tA(nA(e,!0,mk()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,uA)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(uk(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=uk(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&hA(e,t)}),t?eA(t,n,i):uA},_A=e=>new Promise((t,n)=>{let r=typeof e==`string`?JO(e,!0):e;if(!r){n(e);return}gA([r||e],i=>{if(i.length&&r){let e=hk(r);if(e){t({...$O,...e});return}}n(e)})});function vA(e,t,n){uk(n||``,t).loadIcons=e}function yA(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in yk?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}var bA=/[\s,]+/;function xA(e,t){t.split(bA).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0}})}function SA(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function CA(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function wA(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function TA(e){return`data:image/svg+xml,`+wA(e)}function EA(e){return`url("`+TA(e)+`")`}var DA={...bk,inline:!1},OA={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},kA={display:`inline-block`},AA={backgroundColor:`currentColor`},jA={backgroundColor:`transparent`},MA={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},NA={webkitMask:AA,mask:AA,background:jA};for(let e in NA){let t=NA[e];for(let n in MA)t[e+n]=MA[n]}var PA={};[`horizontal`,`vertical`].forEach(e=>{let t=e.slice(0,1)+`Flip`;PA[e+`-flip`]=t,PA[e.slice(0,1)+`-flip`]=t,PA[e+`Flip`]=t});function FA(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}var IA=(e,t)=>{let n=yA(DA,t),r={...OA},i=t.mode||`svg`,a={},o=t.style,s=typeof o==`object`&&!(o instanceof Array)?o:{};for(let e in t){let i=t[e];if(i!==void 0)switch(e){case`icon`:case`style`:case`onLoad`:case`mode`:case`ssr`:case`customise`:break;case`inline`:case`hFlip`:case`vFlip`:n[e]=i===!0||i===`true`||i===1;break;case`flip`:typeof i==`string`&&xA(n,i);break;case`color`:a.color=i;break;case`rotate`:typeof i==`string`?n[e]=SA(i):typeof i==`number`&&(n[e]=i);break;case`ariaHidden`:case`aria-hidden`:i!==!0&&i!==`true`&&delete r[`aria-hidden`];break;default:{let t=PA[e];t?(i===!0||i===`true`||i===1)&&(n[t]=!0):DA[e]===void 0&&(r[e]=i)}}}let c=Ok(e,n),l=c.attributes;if(n.inline&&(a.verticalAlign=`-0.125em`),i===`svg`)return r.style={...a,...s},Object.assign(r,l),r.innerHTML=Mk(c.body),R(`svg`,r);let{body:u,width:d,height:f}=e,p=i===`mask`||i!==`bg`&&u.indexOf(`currentColor`)!==-1,m=CA(u,{...l,width:d+``,height:f+``});return r.style={...a,"--svg":EA(m),width:FA(l.width),height:FA(l.height),...kA,...p?AA:jA,...s},R(`span`,r)};if(mk(!0),Pk(``,Xk),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!_k(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;Bk(e,r)||console.error(n)}catch{console.error(n)}}}}var LA={...$O,body:``},RA=I((e,{emit:t})=>{let n=se(null);function r(){n.value&&=(n.value.abort?.(),null)}let i=se(!!e.ssr),a=se(``),o=V(null);function s(){let i=e.icon;if(typeof i==`object`&&i&&typeof i.body==`string`)return a.value=``,{data:i};let o;if(typeof i!=`string`||(o=JO(i,!1,!0))===null)return null;let s=hk(o);if(!s){let e=n.value;return(!e||e.name!==i)&&(s===null?n.value={name:i}:n.value={name:i,abort:gA([o],c)}),null}r(),a.value!==i&&(a.value=i,K(()=>{t(`load`,i)}));let l=e.customise;if(l){s=Object.assign({},s);let e=l(s.body,o.name,o.prefix,o.provider);typeof e==`string`&&(s.body=e)}let u=[`iconify`];return o.prefix!==``&&u.push(`iconify--`+o.prefix),o.provider!==``&&u.push(`iconify--`+o.provider),{data:s,classes:u}}function c(){let e=s();e?e.data!==o.value?.data&&(o.value=e):o.value=null}return i.value?c():F(()=>{i.value=!0,c()}),b(()=>e.icon,c),Y(r),()=>
10{let t=o.value;if(!t)return IA(LA,e);let n=e;return t.classes&&(n={...e,class:t.classes.join(` `)}),IA({...$O,...t.data},n)}},{props:[`icon`,`mode`,`ssr`,`width`,`height`,`style`,`color`,`inline`,`rotate`,`hFlip`,`horizontalFlip`,`vFlip`,`verticalFlip`,`flip`,`id`,`ariaHidden`,`customise`,`title`],emits:[`load`]}),zA={getAPIConfig:Vk,setAPIModule:Pk,sendAPIQuery:lA,setFetch:Wk,getFetch:Gk,listAPIProviders:Hk},BA=m({name:`@nuxt/icon`,setup(){let e=f(),t=Nn().icon;zA.setFetch($fetch.native);let n=[];if(t.provider===`server`){let r=e.app?.baseURL?.replace(/\/$/,``)??``;n.push(r+(t.localApiEndpoint||`/api/_nuxt_icon`)),(t.fallbackToApi===!0||t.fallbackToApi===`client-only`)&&n.push(t.iconifyApiEndpoint)}else t.provider===`none`?zA.setFetch(()=>Promise.resolve(new Response)):n.push(t.iconifyApiEndpoint);async function r(e,t){try{let r=await $fetch(n[0]+`/`+t+`.json`,{query:{icons:e.join(`,`)}});if(!r||r.prefix!==t||!r.icons)throw Error(`Invalid data`+JSON.stringify(r));return r}catch(e){return console.error(`Failed to load custom icons`,e),null}}Bk(``,{resources:n});for(let e of t.customCollections||[])e&&vA(r,e)}}),VA=[[`Icon`,ge(()=>Z(()=>import(`./D6AqV_PM.js`).then(e=>e.n).then(e=>e.default||e.default||e),__vite__mapDeps([77,8,2,3,18,14,21,4,1,5,6,20,22]),import.meta.url))]],HA=m({name:`nuxt:global-components`,setup(e){for(let[t,n]of VA)e.vueApp.component(t,n),e.vueApp.component(`Lazy`+t,n)}}),UA={default:ge(()=>Z(()=>import(`./CaMK7KvL.js`).then(e=>e.default||e),__vite__mapDeps([346,8,3,6,9,2,4,1,5,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,46,35,34,47,124,77,125,126,127,7,347,48,37,38,39,40,49,50,51,52,53,54,55,56,57,59,75,76,61,78,79,82,129,130,41,42,294,174,348,237,349,95,90,98,99,71,116,70,117,44,183,350,128,89,58,84,91,114,80,81,85,86,87,88,67,92,93,94,96,97,213,351]),import.meta.url)),gameday:ge(()=>Z(()=>import(`./DLEolefg.js`).then(e=>e.default||e),__vite__mapDeps([352,3,347,8,6,1,2,4,5,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,48,37,7,34,35,38,39,40,46,47,49,50,51,52,53,54,55,56,57,59,75,76,77,61,78,79,82,129,130,41,42,294,174,348,237,349,95,90,98,99,71,116,70,117,44,183,350,353,354]),import.meta.url)),ticketing:ge(()=>Z(()=>import(`./5P-PB-vP.js`).then(e=>e.default||e),__vite__mapDeps([355,3,347,8,6,1,2,4,5,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,48,37,7,34,35,38,39,40,46,47,49,50,51,52,53,54,55,56,57,59,75,76,77,61,78,79,82,129,130,41,42,294,174,348,237,349,95,90,98,99,71,116,70,117,44,183,350,353,354]),import.meta.url))},WA=m({name:`nuxt:prefetch`,setup(e){let t=je();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof UA[t]==`function`&&await UA[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(Ee(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=Fc(n.meta.middleware).filter(e=>typeof e==`string`);for(let e of i){let t=TD[e];typeof t==`function`&&t()}typeof r==`string`&&r in UA&&Rn(UA[r])})}}),GA=()=>{let e=Bt(`is-mobile-app`,()=>!1);return{isMobileApp:fe(e),syncFromUserAgent:t=>{e.value=t.toLowerCase().includes(Yc)}}},KA=m(e=>{let{syncFromUserAgent:t}=GA();e.hooks.hookOnce(`app:suspense:resolve`,()=>{t(navigator.userAgent)})}),qA=e=>{let t=Bn(),{featureFlags:n}=On(t);return{isEnabled:J(()=>!e||n.value.includes(e))}},JA=`wsc-stories-ready`,YA=()=>Bt(JA,()=>!1),XA=`onBlazeSDKConnect`,ZA=3e4,QA=m(()=>{let{warn:t,error:n}=ra(`integrations/wsc`),r=Bn(),{config:i,wscApiKey:a}=On(r),{isEnabled:o}=qA(LT.WscStoriesWebContentBlock),s=sD(),c=YA();(async()=>{if(await sa(i).toBeTruthy(),!o.value)return;let r=a.value;if(!r){t(`WSC Stories: apiKey not configured — skipping init.`);return}await s;let{Initialize:l,isInitialized:u}=await Z(async()=>{let{Initialize:t,isInitialized:n}=await import(`./xhdzfjPJ.js`).then(t=>e(t.default,1));return{Initialize:t,isInitialized:n}},__vite__mapDeps([356,8]),import.meta.url);if(u()){c.value=!0;return}ua(document,XA,()=>{c.value=!0},{once:!0}),await l(r).catch(e=>{n(`WSC Stories initialization error:`,e)}),await sa(c).toBe(!0,{timeout:ZA}),c.value||t(`WSC Stories: SDK did not report a connection — stories stay hidden until it does.`)})()}),$A=t((e=>{(function(){var t={4184:function(e,t){var n;(function(){var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if(a===`string`||a===`number`)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if(a===`object`){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes(`[native code]`)){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(` `)}e.exports?(i.default=i,e.exports=i):(n=function(){return i}.apply(t,[]))===void 0||(e.exports=n)})()},7531:function(e,t,n){n.d(t,{lX:function(){return b},q_:function(){return E},ob:function(){return p},PP:function(){return O},Ep:function(){return f}});var r=n(7462);function i(e){return e.charAt(0)===`/`}function a(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var o=function(e,t){t===void 0&&(t=``);var n,r=e&&e.split(`/`)||[],o=t&&t.split(`/`)||[],s=e&&i(e),c=t&&i(t),l=s||c;if(e&&i(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return`/`;if(o.length){var u=o[o.length-1];n=u===`.`||u===`..`||u===``}else n=!1;for(var d=0,f=o.length;f>=0;f--){var p=o[f];p===`.`?a(o,f):p===`..`?(a(o,f),d++):d&&(a(o,f),d--)}if(!l)for(;d--;)o.unshift(`..`);!l||o[0]===``||o[0]&&i(o[0])||o.unshift(``);var m=o.join(`/`);return n&&m.substr(-1)!==`/`&&(m+=`/`),m},s=n(8776);function c(e){return e.charAt(0)===`/`?e:`/`+e}function l(e){return e.charAt(0)===`/`?e.substr(1):e}function u(e,t){return function(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&`/?#`.indexOf(e.charAt(t.length))!==-1}(e,t)?e.substr(t.length):e}function d(e){return e.charAt(e.length-1)===`/`?e.slice(0,-1):e}function f(e){var t=e.pathname,n=e.search,r=e.hash,i=t||`/`;return n&&n!==`?`&&(i+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(i+=r.charAt(0)===`#`?r:`#`+r),i}function p(e,t,n,i){var a;
10typeof e==`string`?(a=function(e){var t=e||`/`,n=``,r=``,i=t.indexOf(`#`);i!==-1&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf(`?`);return a!==-1&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:n===`?`?``:n,hash:r===`#`?``:r}}(e),a.state=t):((a=(0,r.Z)({},e)).pathname===void 0&&(a.pathname=``),a.search?a.search.charAt(0)!==`?`&&(a.search=`?`+a.search):a.search=``,a.hash?a.hash.charAt(0)!==`#`&&(a.hash=`#`+a.hash):a.hash=``,t!==void 0&&a.state===void 0&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?URIError(`Pathname "`+a.pathname+`" could not be decoded. This is likely caused by an invalid percent-encoding.`):e}return n&&(a.key=n),i?a.pathname?a.pathname.charAt(0)!==`/`&&(a.pathname=o(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname=`/`),a}function m(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(e!=null){var a=typeof e==`function`?e(t,n):e;typeof a==`string`?typeof r==`function`?r(a,i):i(!0):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){var e=[...arguments];t.forEach((function(t){return t.apply(void 0,e)}))}}}var h=!(typeof window>`u`||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}var _=`popstate`,v=`hashchange`;function y(){try{return window.history.state||{}}catch{return{}}}function b(e){e===void 0&&(e={}),h||(0,s.Z)(!1);var t,n=window.history,i=((t=window.navigator.userAgent).indexOf(`Android 2.`)===-1&&t.indexOf(`Android 4.0`)===-1||t.indexOf(`Mobile Safari`)===-1||t.indexOf(`Chrome`)!==-1||t.indexOf(`Windows Phone`)!==-1)&&window.history&&`pushState`in window.history,a=window.navigator.userAgent.indexOf(`Trident`)!==-1,o=e,l=o.forceRefresh,b=l!==void 0&&l,x=o.getUserConfirmation,S=x===void 0?g:x,C=o.keyLength,w=C===void 0?6:C,T=e.basename?d(c(e.basename)):``;function E(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return T&&(a=u(a,T)),p(a,r,n)}function D(){return Math.random().toString(36).substr(2,w)}var O=m();function k(e){(0,r.Z)(V,e),V.length=n.length,O.notifyListeners(V.location,V.action)}function A(e){(function(e){return e.state===void 0&&navigator.userAgent.indexOf(`CriOS`)===-1})(e)||N(E(e.state))}function j(){N(E(y()))}var M=!1;function N(e){M?(M=!1,k()):O.confirmTransitionTo(e,`POP`,S,(function(t){t?k({action:`POP`,location:e}):function(e){var t=V.location,n=F.indexOf(t.key);n===-1&&(n=0);var r=F.indexOf(e.key);r===-1&&(r=0);var i=n-r;i&&(M=!0,L(i))}(e)}))}var P=E(y()),F=[P.key];function I(e){return T+f(e)}function L(e){n.go(e)}var R=0;function z(e){(R+=e)===1&&e===1?(window.addEventListener(_,A),a&&window.addEventListener(v,j)):R===0&&(window.removeEventListener(_,A),a&&window.removeEventListener(v,j))}var B=!1,V={length:n.length,action:`POP`,location:P,createHref:I,push:function(e,t){var r=`PUSH`,a=p(e,t,D(),V.location);O.confirmTransitionTo(a,r,S,(function(e){if(e){var t=I(a),o=a.key,s=a.state;if(i){if(n.pushState({key:o,state:s},null,t),b)window.location.href=t;else{var c=F.indexOf(V.location.key),l=F.slice(0,c+1);l.push(a.key),F=l,k({action:r,location:a})}}else window.location.href=t}}))},replace:function(e,t){var r=`REPLACE`,a=p(e,t,D(),V.location);O.confirmTransitionTo(a,r,S,(function(e){if(e){var t=I(a),o=a.key,s=a.state;if(i){if(n.replaceState({key:o,state:s},null,t),b)window.location.replace(t);else{var c=F.indexOf(V.location.key);c!==-1&&(F[c]=a.key),k({action:r,location:a})}}else window.location.replace(t)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){e===void 0&&(e=!1);var t=O.setPrompt(e);return B||=(z(1),!0),function(){return B&&(B=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return V}var x=`hashchange`,S={hashbang:{encodePath:function(e){return e.charAt(0)===`!`?e:`!/`+l(e)},decodePath:function(e){return e.charAt(0)===`!`?e.substr(1):e}},noslash:{encodePath:l,decodePath:c},slash:{encodePath:c,decodePath:c}};function C(e){var t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}function w(){var e=window.location.href,t=e.indexOf(`#`);return t===-1?``:e.substring(t+1)}function T(e){window.location.replace(C(window.location.href)+`#`+e)}function E(e){e===void 0&&(e={}),h||(0,s.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf(`Firefox`),e),i=n.getUserConfirmation,a=i===void 0?g:i,o=n.hashType,l=o===void 0?`slash`:o,_=e.basename?d(c(e.basename)):``,v=S[l],y=v.encodePath,b=v.decodePath;function E(){var e=b(w());return _&&(e=u(e,_)),p(e)}var D=m();function O(e){(0,r.Z)(B,e),B.length=t.length,D.notifyListeners(B.location,B.action)}var k=!1,A=null;function j(){var e,t,n=w(),r=y(n);if(n!==r)T(r);else{var i=E(),o=B.location;if(!k&&(t=i,(e=o).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash)||A===f(i))return;A=null,function(e){if(k)k=!1,O();else{var t=`POP`;D.confirmTransitionTo(e,t,a,(function(n){n?O({action:t,location:e}):function(e){var t=B.location,n=F.lastIndexOf(f(t));n===-1&&(n=0);var r=F.lastIndexOf(f(e));r===-1&&(r=0);var i=n-r;i&&(k=!0,I(i))}(e)}))}}(i)}}var M=w(),N=y(M);M!==N&&T(N);var P=E(),F=[f(P)];function I(e){t.go(e)}var L=0;function R(e){(L+=e)===1&&e===1?window.addEventListener(x,j):L===0&&window.removeEventListener(x,j)}var z=!1,B={length:t.length,action:`POP`,location:P,createHref:function(e){var t=document.querySelector(`base`),n=``;return t&&t.getAttribute(`href`)&&(n=C(window.location.href)),n+`#`+y(_+f(e))},push:function(e,t){var n=`PUSH`,r=p(e,void 0,void 0,B.location);D.confirmTransitionTo(r,n,a,(function(e){if(e){var t=f(r),i=y(_+t);if(w()!==i){A=t,function(e){window.location.hash=e}(i);var a=F.lastIndexOf(f(B.location)),o=F.slice(0,a+1);o.push(t),F=o,O({action:n,location:r})}else O()}}))},replace:function(e,t){var n=`REPLACE`,r=p(e,void 0,void 0,B.location);D.confirmTransitionTo(r,n,a,(function(e){if(e){var t=f(r),i=y(_+t);w()!==i&&(A=t,T(i));var a=F.indexOf(f(B.location));a!==-1&&(F[a]=t),O({action:n,location:r})}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){e===void 0&&(e=!1);var t=D.setPrompt(e);return z||=(R(1),!0),function(){return z&&(z=!1,R(-1)),t()}},listen:function(e){var t=D.appendListener(e);return R(1),function(){R(-1),t()}}};return B}function D(e,t,n){return Math.min(Math.max(e,t),n)}function O(e){e===void 0&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,a=i===void 0?[`/`]:i,o=t.initialIndex,s=o===void 0?0:o,c=t.keyLength,l=c===void 0?6:c,u=m();function d(e){(0,r.Z)(b,e),b.length=b.entries.length,u.notifyListeners(b.location,b.action)}function h(){return Math.random().toString(36).substr(2,l)}var g=D(s,0,a.length-1),_=a.map((function(e){return p(e,void 0,typeof e==`string`?h():e.key||h())})),v=f;function y(e){var t=D(b.index+e,0,b.entries.length-1),r=b.entries[t];u.confirmTransitionTo(r,`POP`,n,(function(e){e?d({action:`POP`,location:r,index:t}):d()}))}var b={length:_.length,action:`POP`,location:_[g],index:g,entries:_,createHref:v,push:function(e,t){var r=`PUSH`,i=p(e,t,h(),b.location);u.confirmTransitionTo(i,r,n,(function(e){if(e){var t=b.index+1,n=b.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r=`REPLACE`,i=p(e,t,h(),b.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(b.entries[b.index]=i,d({action:r,location:i}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return e===void 0&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return b}},8679:function(e,t,n){var r=n(1296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if(typeof n!=`string`){if(m){var i=p(n);i&&i!==m&&e(t,i,r)}var o=u(n);
10d&&(o=o.concat(d(n)));for(var s=c(t),h=c(n),g=0;g<o.length;++g){var _=o[g];if(!(a[_]||r&&r[_]||h&&h[_]||s&&s[_])){var v=f(n,_);try{l(t,_,v)}catch{}}}}return t}},6103:function(e,t){var n=typeof Symbol==`function`&&Symbol.for,r=n?Symbol.for(`react.element`):60103,i=n?Symbol.for(`react.portal`):60106,a=n?Symbol.for(`react.fragment`):60107,o=n?Symbol.for(`react.strict_mode`):60108,s=n?Symbol.for(`react.profiler`):60114,c=n?Symbol.for(`react.provider`):60109,l=n?Symbol.for(`react.context`):60110,u=n?Symbol.for(`react.async_mode`):60111,d=n?Symbol.for(`react.concurrent_mode`):60111,f=n?Symbol.for(`react.forward_ref`):60112,p=n?Symbol.for(`react.suspense`):60113,m=n?Symbol.for(`react.suspense_list`):60120,h=n?Symbol.for(`react.memo`):60115,g=n?Symbol.for(`react.lazy`):60116,_=n?Symbol.for(`react.block`):60121,v=n?Symbol.for(`react.fundamental`):60117,y=n?Symbol.for(`react.responder`):60118,b=n?Symbol.for(`react.scope`):60119;function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case o:case p:return e;default:switch(e&&=e.$$typeof){case l:case f:case g:case h:case c:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=h,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||x(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===h},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===a||e===d||e===s||e===o||e===p||e===m||typeof e==`object`&&!!e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_)},t.typeOf=x},1296:function(e,t,n){e.exports=n(6103)},5826:function(e){e.exports=Array.isArray||function(e){return Object.prototype.toString.call(e)==`[object Array]`}},8620:function(e,t,n){var r=n(5826);e.exports=p,e.exports.parse=a,e.exports.compile=function(e,t){return s(a(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp([`(\\\\.)`,`([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))`].join(`|`),`g`);function a(e,t){for(var n,r=[],a=0,o=0,s=``,u=t&&t.delimiter||`/`;(n=i.exec(e))!=null;){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(o,p),o=p+d.length,f)s+=f[1];else{var m=e[o],h=n[2],g=n[3],_=n[4],v=n[5],y=n[6],b=n[7];s&&=(r.push(s),``);var x=h!=null&&m!=null&&m!==h,S=y===`+`||y===`*`,C=y===`?`||y===`*`,w=n[2]||u,T=_||v;r.push({name:g||a++,prefix:h||``,delimiter:w,optional:C,repeat:S,partial:x,asterisk:!!b,pattern:T?l(T):b?`.*`:`[^`+c(w)+`]+?`})}}return o<e.length&&(s+=e.substr(o)),s&&r.push(s),r}function o(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=Array(e.length),i=0;i<e.length;i++)typeof e[i]==`object`&&(n[i]=RegExp(`^(?:`+e[i].pattern+`)$`,d(t)));return function(t,i){for(var a=``,s=t||{},c=(i||{}).pretty?o:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if(typeof u!=`string`){var d,f=s[u.name];if(f==null){if(u.optional){u.partial&&(a+=u.prefix);continue}throw TypeError(`Expected "`+u.name+`" to be defined`)}if(r(f)){if(!u.repeat)throw TypeError(`Expected "`+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(f.length===0){if(u.optional)continue;throw TypeError(`Expected "`+u.name+`" to not be empty`)}for(var p=0;p<f.length;p++){if(d=c(f[p]),!n[l].test(d))throw TypeError(`Expected all "`+u.name+`" to match "`+u.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(p===0?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})):c(f),!n[l].test(d))throw TypeError(`Expected "`+u.name+`" to match "`+u.pattern+`", but received "`+d+`"`);a+=u.prefix+d}}else a+=u}return a}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,`\\$1`)}function l(e){return e.replace(/([=!:$\/()])/g,`\\$1`)}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?``:`i`}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n||={}).strict,a=!1!==n.end,o=``,s=0;s<e.length;s++){var l=e[s];if(typeof l==`string`)o+=c(l);else{var f=c(l.prefix),p=`(?:`+l.pattern+`)`;
10t.push(l),l.repeat&&(p+=`(?:`+f+p+`)*`),o+=p=l.optional?l.partial?f+`(`+p+`)?`:`(?:`+f+`(`+p+`))?`:f+`(`+p+`)`}}var m=c(n.delimiter||`/`),h=o.slice(-m.length)===m;return i||(o=(h?o.slice(0,-m.length):o)+`(?:`+m+`(?=$))?`),o+=a?`$`:i&&h?``:`(?=`+m+`|$)`,u(RegExp(`^`+o,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n||={},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return u(RegExp(`(?:`+r.join(`|`)+`)`,d(n)),t)}(e,t,n):function(e,t,n){return f(a(e,n),t,n)}(e,t,n)}},9748:function(e,t,n){n.r(t),n.d(t,{Children:function(){return ee},Component:function(){return s.wA},Fragment:function(){return s.HY},PureComponent:function(){return z},StrictMode:function(){return Pe},Suspense:function(){return ie},SuspenseList:function(){return q},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return X},cloneElement:function(){return ke},createContext:function(){return s.kr},createElement:function(){return s.az},createFactory:function(){return Ee},createPortal:function(){return le},createRef:function(){return s.Vf},default:function(){return Ve},findDOMNode:function(){return je},flushSync:function(){return Ne},forwardRef:function(){return U},hydrate:function(){return ge},isElement:function(){return ze},isFragment:function(){return Oe},isValidElement:function(){return De},lazy:function(){return ae},memo:function(){return B},render:function(){return he},startTransition:function(){return Fe},unmountComponentAtNode:function(){return Ae},unstable_batchedUpdates:function(){return Me},useCallback:function(){return w},useContext:function(){return T},useDebugValue:function(){return E},useDeferredValue:function(){return Ie},useEffect:function(){return y},useErrorBoundary:function(){return D},useId:function(){return O},useImperativeHandle:function(){return S},useInsertionEffect:function(){return Re},useLayoutEffect:function(){return b},useMemo:function(){return C},useReducer:function(){return v},useRef:function(){return x},useState:function(){return _},useSyncExternalStore:function(){return Be},useTransition:function(){return Le},version:function(){return Te}});var r,i,a,o,s=n(6400),c=0,l=[],u=[],d=s.YM.__b,f=s.YM.__r,p=s.YM.diffed,m=s.YM.__c,h=s.YM.unmount;function g(e,t){s.YM.__h&&s.YM.__h(i,e,c||t),c=0;var n=i.__H||(i.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function _(e){return c=1,v(F,e)}function v(e,t,n){var a=g(r++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):F(void 0,t),function(e){var t=a.__N?a.__N[0]:a.__[0],n=a.t(t,e);t!==n&&(a.__N=[n,a.__[1]],a.__c.setState({}))}],a.__c=i,!i.u)){var o=function(e,t,n){if(!a.__c.__H)return!0;var r=a.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var i=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&a.__c.props===e)&&(!s||s.call(this,e,t,n))};i.u=!0;var s=i.shouldComponentUpdate,c=i.componentWillUpdate;i.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,o(e,t,n),s=r}c&&c.call(this,e,t,n)},i.shouldComponentUpdate=o}return a.__N||a.__}function y(e,t){var n=g(r++,3);!s.YM.__s&&P(n.__H,t)&&(n.__=e,n.i=t,i.__H.__h.push(n))}function b(e,t){var n=g(r++,4);!s.YM.__s&&P(n.__H,t)&&(n.__=e,n.i=t,i.__h.push(n))}function x(e){return c=5,C((function(){return{current:e}}),[])}function S(e,t,n){c=6,b((function(){return typeof e==`function`?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),n==null?n:n.concat(e))}function C(e,t){var n=g(r++,7);return P(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function w(e,t){return c=8,C((function(){return e}),t)}function T(e){var t=i.context[e.__c],n=g(r++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(i)),t.props.value):e.__}function E(e,t){s.YM.useDebugValue&&s.YM.useDebugValue(t?t(e):e)}function D(e){var t=g(r++,10),n=_();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function O(){var e=g(r++,11);if(!e.__){for(var t=i.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__=`P`+n[0]+`-`+n[1]++}return e.__}function k(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(M),e.__H.__h.forEach(N),e.__H.__h=[]}catch(t){e.__H.__h=[],s.YM.__e(t,e.__v)}}s.YM.__b=function(e){i=null,d&&d(e)},s.YM.__r=function(e){f&&f(e),r=0;var t=(i=e.__c).__H;t&&(a===i?(t.__h=[],i.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.i=void 0}))):(t.__h.forEach(M),t.__h.forEach(N),t.__h=[],r=0)),a=i},s.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(l.push(t)!==1&&o===s.YM.requestAnimationFrame||((o=s.YM.requestAnimationFrame)||j)(k)),t.__H.__.forEach((function(e){e.i&&
10(e.__H=e.i),e.__V!==u&&(e.__=e.__V),e.i=void 0,e.__V=u}))),a=i=null},s.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(M),e.__h=e.__h.filter((function(e){return!e.__||N(e)}))}catch(n){t.some((function(e){e.__h&&=[]})),t=[],s.YM.__e(n,e.__v)}})),m&&m(e,t)},s.YM.unmount=function(e){h&&h(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{M(e)}catch(e){t=e}})),n.__H=void 0,t&&s.YM.__e(t,n.__v))};var A=typeof requestAnimationFrame==`function`;function j(e){var t,n=function(){clearTimeout(r),A&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);A&&(t=requestAnimationFrame(n))}function M(e){var t=i,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),i=t}function N(e){var t=i;e.__c=e.__(),i=t}function P(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function F(e,t){return typeof t==`function`?t(e):t}function I(e,t){for(var n in t)e[n]=t[n];return e}function L(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var r in t)if(r!==`__source`&&e[r]!==t[r])return!0;return!1}function R(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function z(e){this.props=e}function B(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:L(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,s.az)(e,t)}return r.displayName=`Memo(`+(e.displayName||e.name)+`)`,r.prototype.isReactComponent=!0,r.__f=!0,r}(z.prototype=new s.wA).isPureReactComponent=!0,z.prototype.shouldComponentUpdate=function(e,t){return L(this.props,e)||L(this.state,t)};var V=s.YM.__b;s.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),V&&V(e)};var H=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.forward_ref`)||3911;function U(e){function t(t){var n=I({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=H,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName=`ForwardRef(`+(e.displayName||e.name)+`)`,t}var W=function(e,t){return e==null?null:(0,s.bR)((0,s.bR)(e).map(t))},ee={map:W,forEach:W,count:function(e){return e?(0,s.bR)(e).length:0},only:function(e){var t=(0,s.bR)(e);if(t.length!==1)throw`Children.only`;return t[0]},toArray:s.bR},G=s.YM.__e;s.YM.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}G(e,t,n,r)};var te=s.YM.unmount;function ne(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){typeof e.__c==`function`&&e.__c()})),e.__c.__H=null),(e=I({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ne(e,t,n)}))),e}function re(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return re(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function ie(){this.__u=0,this.t=null,this.__b=null}function K(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ae(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,s.az)(n,i)}return i.displayName=`Lazy`,i.__f=!0,i}function q(){this.u=null,this.o=null}s.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),te&&te(e)},(ie.prototype=new s.wA).__c=function(e,t){var n=t.__c,r=this;r.t??=[],r.t.push(n);var i=K(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=re(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},ie.prototype.componentWillUnmount=function(){this.t=[]},ie.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),r=this.__v.__k[0].__c;this.__v.__k[0]=ne(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&(0,s.az)(s.HY,null,e.fallback);return i&&(i.__h=null),[(0,s.az)(s.HY,null,t.__a?null:e.children),i]};var oe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function se(e){return this.getChildContext=function(){return e.context},e.children}function ce(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,s.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||=(t.i=n,{nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,s.sY)((0,s.az)(se,{context:t.context},e.__v),t.l)}function le(e,t){var n=(0,s.az)(ce,{__v:e,i:t});return n.containerInfo=t,n}(q.prototype=new s.wA).__a=function(e){var t=this,n=K(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),oe(t,e,r)):i()};n?n(a):a()}},q.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,s.bR)(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},q.prototype.componentDidUpdate=q.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){oe(e,n,t)}))};var ue=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,de=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,fe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,pe=
10/[A-Z0-9]/g,me=typeof document<`u`,J=function(e){return(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/:/fil|che|ra/).test(e)};function he(e,t,n){return t.__k??(t.textContent=``),(0,s.sY)(e,t),typeof n==`function`&&n(),e?e.__c:null}function ge(e,t,n){return(0,s.ZB)(e,t),typeof n==`function`&&n(),e?e.__c:null}s.wA.prototype.isReactComponent={},[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach((function(e){Object.defineProperty(s.wA.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var _e=s.YM.event;function ve(){}function Y(){return this.cancelBubble}function ye(){return this.defaultPrevented}s.YM.event=function(e){return _e&&(e=_e(e)),e.persist=ve,e.isPropagationStopped=Y,e.isDefaultPrevented=ye,e.nativeEvent=e};var be,xe={enumerable:!1,configurable:!0,get:function(){return this.class}},Se=s.YM.vnode;s.YM.vnode=function(e){typeof e.type==`string`&&function(e){var t=e.props,n=e.type,r={};for(var i in t){var a=t[i];if(!(i===`value`&&`defaultValue`in t&&a==null||me&&i===`children`&&n===`noscript`||i===`class`||i===`className`)){var o=i.toLowerCase();i===`defaultValue`&&`value`in t&&t.value==null?i=`value`:i===`download`&&!0===a?a=``:o===`ondoubleclick`?i=`ondblclick`:o!==`onchange`||n!==`input`&&n!==`textarea`||J(t.type)?o===`onfocus`?i=`onfocusin`:o===`onblur`?i=`onfocusout`:fe.test(i)?i=o:n.indexOf(`-`)===-1&&de.test(i)?i=i.replace(pe,`-$&`).toLowerCase():a===null&&(a=void 0):o=i=`oninput`,o===`oninput`&&r[i=o]&&(i=`oninputCapture`),r[i]=a}}n==`select`&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,s.bR)(t.children).forEach((function(e){e.props.selected=r.value.indexOf(e.props.value)!=-1}))),n==`select`&&r.defaultValue!=null&&(r.value=(0,s.bR)(t.children).forEach((function(e){e.props.selected=r.multiple?r.defaultValue.indexOf(e.props.value)!=-1:r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",xe)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=ue,Se&&Se(e)};var Ce=s.YM.__r;s.YM.__r=function(e){Ce&&Ce(e),be=e.__c};var we=s.YM.diffed;s.YM.diffed=function(e){we&&we(e);var t=e.props,n=e.__e;n!=null&&e.type===`textarea`&&`value`in t&&t.value!==n.value&&(n.value=t.value==null?``:t.value),be=null};var X={ReactCurrentDispatcher:{current:{readContext:function(e){return be.__n[e.__c].props.value}}}},Te=`17.0.2`;function Ee(e){return s.az.bind(null,e)}function De(e){return!!e&&e.$$typeof===ue}function Oe(e){return De(e)&&e.type===s.HY}function ke(e){return De(e)?s.Tm.apply(null,arguments):e}function Ae(e){return!!e.__k&&((0,s.sY)(null,e),!0)}function je(e){return e&&(e.base||e.nodeType===1&&e)||null}var Me=function(e,t){return e(t)},Ne=function(e,t){return e(t)},Pe=s.HY;function Fe(e){e()}function Ie(e){return e}function Le(){return[!1,Fe]}var Re=b,ze=De;function Be(e,t){var n=t(),r=_({h:{__:n,v:t}}),i=r[0].h,a=r[1];return b((function(){i.__=n,i.v=t,R(i.__,t())||a({h:i})}),[e,n,t]),y((function(){return R(i.__,i.v())||a({h:i}),e((function(){R(i.__,i.v())||a({h:i})}))}),[e]),n}var Ve={useState:_,useId:O,useReducer:v,useEffect:y,useLayoutEffect:b,useInsertionEffect:Re,useTransition:Le,useDeferredValue:Ie,useSyncExternalStore:Be,startTransition:Fe,useRef:x,useImperativeHandle:S,useMemo:C,useCallback:w,useContext:T,useDebugValue:E,version:`17.0.2`,Children:ee,render:he,hydrate:ge,unmountComponentAtNode:Ae,createPortal:le,createElement:s.az,createContext:s.kr,createFactory:Ee,cloneElement:ke,createRef:s.Vf,Fragment:s.HY,isValidElement:De,isElement:ze,isFragment:Oe,findDOMNode:je,Component:s.wA,PureComponent:z,memo:B,forwardRef:U,flushSync:Ne,unstable_batchedUpdates:Me,StrictMode:Pe,Suspense:ie,SuspenseList:q,lazy:ae,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:X}},6400:function(e,t,n){n.d(t,{HY:function(){return b},Tm:function(){return U},Vf:function(){return y},YM:function(){return i},ZB:function(){return H},az:function(){return _},bR:function(){return O},kr:function(){return W},sY:function(){return V},wA:function(){return x}});var r,i,a,o,s,c,l,u,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function h(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var i,a,o,s={};
10for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return v(e,s,i,a,null)}function v(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++a};return o==null&&i.vnode!=null&&i.vnode(s),s}function y(){return{current:null}}function b(e){return e.children}function x(e,t){this.props=e,this.context=t}function S(e,t){if(t==null)return e.__?S(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?S(e):null}function C(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return C(e)}}function w(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!T.__r++||s!==i.debounceRendering)&&((s=i.debounceRendering)||c)(T)}function T(){var e,t,n,r,i,a,s,c,u;for(o.sort(l);e=o.shift();)e.__d&&(t=o.length,r=void 0,i=void 0,a=void 0,c=(s=(n=e).__v).__e,(u=n.__P)&&(r=[],i=[],(a=h({},s)).__v=s.__v+1,F(u,s,a,n.__n,u.ownerSVGElement!==void 0,s.__h==null?null:[c],r,c??S(s),s.__h,i),I(r,s,i),s.__e!=c&&C(s)),o.length>t&&o.sort(l));T.__r=0}function E(e,t,n,r,i,a,o,s,c,l,u){var p,h,g,_,y,x,C,w,T,E=0,O=r&&r.__k||f,j=O.length,M=j,N=t.length;for(n.__k=[],p=0;p<N;p++)(_=n.__k[p]=(_=t[p])==null||typeof _==`boolean`||typeof _==`function`?null:typeof _==`string`||typeof _==`number`||typeof _==`bigint`?v(null,_,null,null,_):m(_)?v(b,{children:_},null,null,null):_.__b>0?v(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)==null?(g=O[p])&&g.key==null&&g.__e&&(g.__e==c&&(c=S(g)),z(g,g,!1),O[p]=null):(_.__=n,_.__b=n.__b+1,(w=A(_,O,C=p+E,M))===-1?g=d:(g=O[w]||d,O[w]=void 0,M--),F(e,_,g,i,a,o,s,c,l,u),y=_.__e,(h=_.ref)&&g.ref!=h&&(g.ref&&R(g.ref,null,_),u.push(h,_.__c||y,_)),y!=null&&(x??=y,(T=g===d||g.__v===null)?w==-1&&E--:w!==C&&(w===C+1?E++:w>C?M>N-C?E+=w-C:E--:E=w<C&&w==C-1?w-C:0),C=p+E,typeof _.type!=`function`||w===C&&g.__k!==_.__k?typeof _.type==`function`||w===C&&!T?_.__d===void 0?c=y.nextSibling:(c=_.__d,_.__d=void 0):c=k(e,y,c):c=D(_,c,e),typeof n.type==`function`&&(n.__d=c)));for(n.__e=x,p=j;p--;)O[p]!=null&&(typeof n.type==`function`&&O[p].__e!=null&&O[p].__e==n.__d&&(n.__d=O[p].__e.nextSibling),z(O[p],O[p]))}function D(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type==`function`?D(r,t,n):k(n,r.__e,t));return t}function O(e,t){return t||=[],e==null||typeof e==`boolean`||(m(e)?e.some((function(e){O(e,t)})):t.push(e)),t}function k(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function A(e,t,n,r){var i=e.key,a=e.type,o=n-1,s=n+1,c=t[n];if(c===null||c&&i==c.key&&a===c.type)return n;if(r>(c==null?0:1))for(;o>=0||s<t.length;){if(o>=0){if((c=t[o])&&i==c.key&&a===c.type)return o;o--}if(s<t.length){if((c=t[s])&&i==c.key&&a===c.type)return s;s++}}return-1}function j(e,t,n){t[0]===`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||p.test(t)?n:n+`px`}function M(e,t,n,r,i){var a;e:if(t===`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||j(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||j(e.style,t,n[t])}}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/(PointerCapture)$|Capture$/,`$1`)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r||e.addEventListener(t,a?P:N,a):e.removeEventListener(t,a?P:N,a);else if(t!==`dangerouslySetInnerHTML`){if(i)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!==`width`&&t!==`height`&&t!==`href`&&t!==`list`&&t!==`form`&&t!==`tabIndex`&&t!==`download`&&t!==`rowSpan`&&t!==`colSpan`&&t in e)try{e[t]=n??``;break e}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!==`-`?e.removeAttribute(t):e.setAttribute(t,n))}}function N(e){return this.l[e.type+!1](i.event?i.event(e):e)}function P(e){return this.l[e.type+!0](i.event?i.event(e):e)}function F(e,t,n,r,a,o,s,c,l,u){var d,f,p,g,_,v,y,S,C,w,T,D,O,k,A,j=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(d=i.__b)&&d(t);e:if(typeof j==`function`)try{if(S=t.props,C=(d=j.contextType)&&r[d.__c],w=d?C?C.props.value:d.__:r,n.__c?y=(f=t.__c=n.__c).__=f.__E:(`prototype`in j&&j.prototype.render?t.__c=f=new j(S,w):(t.__c=f=new x(S,w),f.constructor=j,f.render=B),C&&C.sub(f),f.props=S,f.state||(f.state={}),f.context=w,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),f.__s??(f.__s=f.state),j.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,j.getDerivedStateFromProps(S,f.__s))),g=f.props,_=f.state,f.__v=t,p)j.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(j.getDerivedStateFromProps==null&&S!==g&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(S,w),!f.__e&&(f.
10shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(S,f.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=S,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(S,f.__s,w),f.componentDidUpdate!=null&&f.__h.push((function(){f.componentDidUpdate(g,_,v)}))}if(f.context=w,f.props=S,f.__P=e,f.__e=!1,D=i.__r,O=0,`prototype`in j&&j.prototype.render){for(f.state=f.__s,f.__d=!1,D&&D(t),d=f.render(f.props,f.state,f.context),k=0;k<f._sb.length;k++)f.__h.push(f._sb[k]);f._sb=[]}else do f.__d=!1,D&&D(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++O<25);f.state=f.__s,f.getChildContext!=null&&(r=h(h({},r),f.getChildContext())),p||f.getSnapshotBeforeUpdate==null||(v=f.getSnapshotBeforeUpdate(g,_)),E(e,m(A=d!=null&&d.type===b&&d.key==null?d.props.children:d)?A:[A],t,n,r,a,o,s,c,l,u),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),y&&(f.__E=f.__=null)}catch(e){t.__v=null,(l||o!=null)&&(t.__e=c,t.__h=!!l,o[o.indexOf(c)]=null),i.__e(e,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=L(n.__e,t,n,r,a,o,s,l,u);(d=i.diffed)&&d(t)}function I(e,t,n){for(var r=0;r<n.length;r++)R(n[r],n[++r],n[++r]);i.__c&&i.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){i.__e(e,t.__v)}}))}function L(e,t,n,i,a,o,s,c,l){var u,f,p,h=n.props,_=t.props,v=t.type,y=0;if(v===`svg`&&(a=!0),o!=null){for(;y<o.length;y++)if((u=o[y])&&`setAttribute`in u==!!v&&(v?u.localName===v:u.nodeType===3)){e=u,o[y]=null;break}}if(e==null){if(v===null)return document.createTextNode(_);e=a?document.createElementNS(`http://www.w3.org/2000/svg`,v):document.createElement(v,_.is&&_),o=null,c=!1}if(v===null)h===_||c&&e.data===_||(e.data=_);else{if(o&&=r.call(e.childNodes),f=(h=n.props||d).dangerouslySetInnerHTML,p=_.dangerouslySetInnerHTML,!c){if(o!=null)for(h={},y=0;y<e.attributes.length;y++)h[e.attributes[y].name]=e.attributes[y].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||``))}if(function(e,t,n,r,i){for(var a in n)a===`children`||a===`key`||a in t||M(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!=`function`||a===`children`||a===`key`||a===`value`||a===`checked`||n[a]===t[a]||M(e,a,t[a],n[a],r)}(e,_,h,a,c),p)t.__k=[];else if(E(e,m(y=t.props.children)?y:[y],t,n,i,a&&v!==`foreignObject`,o,s,o?o[0]:n.__k&&S(n,0),c,l),o!=null)for(y=o.length;y--;)o[y]!=null&&g(o[y]);c||(`value`in _&&(y=_.value)!==void 0&&(y!==e.value||v===`progress`&&!y||v===`option`&&y!==h.value)&&M(e,`value`,y,h.value,!1),`checked`in _&&(y=_.checked)!==void 0&&y!==e.checked&&M(e,`checked`,y,h.checked,!1))}return e}function R(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){i.__e(e,n)}}function z(e,t,n){var r,a;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||R(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&z(r[a],t,n||typeof e.type!=`function`);n||e.__e==null||g(e.__e),e.__=e.__e=e.__d=void 0}function B(e,t,n){return this.constructor(e,n)}function V(e,t,n){var a,o,s,c;i.__&&i.__(e,t),o=(a=typeof n==`function`)?null:n&&n.__k||t.__k,s=[],c=[],F(t,e=(!a&&n||t).__k=_(b,null,[e]),o||d,d,t.ownerSVGElement!==void 0,!a&&n?[n]:o?null:t.firstChild?r.call(t.childNodes):null,s,!a&&n?n:o?o.__e:t.firstChild,a,c),I(s,e,c)}function H(e,t){V(e,t,H)}function U(e,t,n){var i,a,o,s,c=h({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o==`key`?i=t[o]:o==`ref`?a=t[o]:c[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),v(e.type,c,i||e.key,a||e.ref,null)}function W(e,t){var n={__c:t=`__cC`+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,w(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,i={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},a=0,x.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=h({},this.state);typeof e==`function`&&(e=e(h({},n),this.props)),e&&h(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),w(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},x.prototype.render=b,o=[],c=typeof Promise==`function`?Promise.prototype.then.bind(Prom
10ise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,u=0},2703:function(e,t,n){var r=n(414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){e.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`},5518:function(e,t,n){var r;(r=n(9748))&&typeof r==`object`&&`default`in r&&r.default;var i=n(3451),a=new i,o=a.getBrowser(),s=a.getCPU(),c=a.getDevice(),l=a.getEngine(),u=a.getOS(),d=a.getUA();Object.freeze({ClientUAInstance:a,browser:o,cpu:s,device:c,engine:l,os:u,ua:d,setUa:function(e){return a.setUA(e)},parseUserAgent:function(e){if(e){var t=new i(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error(`No userAgent string was provided`)}});var f=`mobile`,p=`tablet`,m=`smarttv`,h=`console`,g=`wearable`,_=`embedded`,v=void 0,y={Chrome:`Chrome`,Firefox:`Firefox`,Opera:`Opera`,Yandex:`Yandex`,Safari:`Safari`,InternetExplorer:`Internet Explorer`,Edge:`Edge`,Chromium:`Chromium`,Ie:`IE`,MobileSafari:`Mobile Safari`,EdgeChromium:`Edge Chromium`,MIUI:`MIUI Browser`,SamsungBrowser:`Samsung Browser`},b={IOS:`iOS`,Android:`Android`,WindowsPhone:`Windows Phone`,Windows:`Windows`,MAC_OS:`Mac OS`},x=function(e){return e||(arguments.length>1&&arguments[1]!==void 0?arguments[1]:`none`)},S=function(){return!(typeof window>`u`||!window.navigator&&!navigator)&&(window.navigator||navigator)},C=function(e){var t=S();return t&&t.platform&&(t.platform.indexOf(e)!==-1||t.platform===`MacIntel`&&t.maxTouchPoints>1&&!window.MSStream)},w=function(e){return e.type===f},T=function(e){return e.type===p},E=function(e){var t=e.type;return t===f||t===p},D=function(e){return e.type===m},O=function(e){return e.type===v},k=function(e){return e.type===g},A=function(e){return e.type===h},j=function(e){return e.type===_},M=function(e){var t=e.vendor;return x(t)},N=function(e){var t=e.model;return x(t)},P=function(e){var t=e.type;return x(t,`browser`)},F=function(e){return e.name===b.Android},I=function(e){return e.name===b.Windows},L=function(e){return e.name===b.MAC_OS},R=function(e){return e.name===b.WindowsPhone},z=function(e){return e.name===b.IOS},B=function(e){var t=e.version;return x(t)},V=function(e){var t=e.name;return x(t)},H=function(e){return e.name===y.Chrome},U=function(e){return e.name===y.Firefox},W=function(e){return e.name===y.Chromium},ee=function(e){return e.name===y.Edge},G=function(e){return e.name===y.Yandex},te=function(e){var t=e.name;return t===y.Safari||t===y.MobileSafari},ne=function(e){return e.name===y.MobileSafari},re=function(e){return e.name===y.Opera},ie=function(e){var t=e.name;return t===y.InternetExplorer||t===y.Ie},K=function(e){return e.name===y.MIUI},ae=function(e){return e.name===y.SamsungBrowser},q=function(e){var t=e.version;return x(t)},oe=function(e){var t=e.major;return x(t)},se=function(e){var t=e.name;return x(t)},ce=function(e){var t=e.name;return x(t)},le=function(e){var t=e.version;return x(t)},ue=function(){var e=S(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return typeof t==`string`&&/electron/.test(t)},de=function(e){return typeof e==`string`&&e.indexOf(`Edg/`)!==-1},fe=function(){var e=S();return e&&(/iPad|iPhone|iPod/.test(e.platform)||e.platform===`MacIntel`&&e.maxTouchPoints>1)&&!window.MSStream},pe=function(){return C(`iPad`)},me=function(){return C(`iPhone`)},J=function(){return C(`iPod`)},he=function(e){return x(e)};D(c),A(c),k(c),j(c),ne(o)||pe(),W(o);var ge=E(c)||pe();w(c),T(c)||pe(),O(c),O(c),F(u),R(u);var _e=z(u)||pe();H(o),U(o);var ve=te(o);re(o),ie(o),B(u),V(u),q(o),oe(o),se(o),M(c),N(c),ce(l),le(l),he(d),ee(
10o)||de(d),G(o),P(c),fe(),pe(),me(),J(),ue(),de(d),ee(o)&&de(d),I(u),L(u),K(o),ae(o),t.gn=_e,t.tq=ge,t.G6=ve},3727:function(e,t,n){n.d(t,{UT:function(){return u},rU:function(){return g}});var r=n(6550),i=n(1721),a=n(9748),o=n(7531),s=n(7462),c=n(3366),l=n(8776);a.default.Component;var u=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,o.q_)(t.props),t}return(0,i.Z)(t,e),t.prototype.render=function(){return a.default.createElement(r.F0,{history:this.history,children:this.props.children})},t}(a.default.Component),d=function(e,t){return typeof e==`function`?e(t):e},f=function(e,t){return typeof e==`string`?(0,o.ob)(e,null,null,t):e},p=function(e){return e},m=a.default.forwardRef;m===void 0&&(m=p);var h=m((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=(0,c.Z)(e,[`innerRef`,`navigate`,`onClick`]),l=o.target,u=(0,s.Z)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||e.button!==0||l&&l!==`_self`||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=p!==m&&t||n,a.default.createElement(`a`,u)})),g=m((function(e,t){var n=e.component,i=n===void 0?h:n,u=e.replace,g=e.to,_=e.innerRef,v=(0,c.Z)(e,[`component`,`replace`,`to`,`innerRef`]);return a.default.createElement(r.s6.Consumer,null,(function(e){e||(0,l.Z)(!1);var n=e.history,r=f(d(g,e.location),e.location),c=r?n.createHref(r):``,h=(0,s.Z)({},v,{href:c,navigate:function(){var t=d(g,e.location),r=(0,o.Ep)(e.location)===(0,o.Ep)(f(t));(u||r?n.replace:n.push)(t)}});return p===m?h.innerRef=_:h.ref=t||_,a.default.createElement(i,h)}))})),_=function(e){return e},v=a.default.forwardRef;v===void 0&&(v=_),v((function(e,t){var n=e[`aria-current`],i=n===void 0?`page`:n,o=e.activeClassName,u=o===void 0?`active`:o,p=e.activeStyle,m=e.className,h=e.exact,y=e.isActive,b=e.location,x=e.sensitive,S=e.strict,C=e.style,w=e.to,T=e.innerRef,E=(0,c.Z)(e,[`aria-current`,`activeClassName`,`activeStyle`,`className`,`exact`,`isActive`,`location`,`sensitive`,`strict`,`style`,`to`,`innerRef`]);return a.default.createElement(r.s6.Consumer,null,(function(e){e||(0,l.Z)(!1);var n=b||e.location,o=f(d(w,n),n),c=o.pathname,D=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,`\\$1`),O=D?(0,r.LX)(n.pathname,{path:D,exact:h,sensitive:x,strict:S}):null,k=!!(y?y(O,n):O),A=typeof m==`function`?m(k):m,j=typeof C==`function`?C(k):C;k&&(A=function(){return[...arguments].filter((function(e){return e})).join(` `)}(A,u),j=(0,s.Z)({},j,p));var M=(0,s.Z)({"aria-current":k&&i||null,className:A,style:j,to:o},E);return _===v?M.innerRef=T:M.ref=t||T,a.default.createElement(g,M)}))}))},6550:function(e,t,n){n.d(t,{$B:function(){return M},AW:function(){return O},F0:function(){return v},Gn:function(){return C},LX:function(){return D},TH:function(){return j},VA:function(){return y},k6:function(){return A},s6:function(){return _}});var r=n(1721),i=n(9748),a=n(5697),o=n.n(a),s=n(7531),c=n(8776),l=n(7462),u=n(8620),d=n.n(u);n(663),n(3366);var f=(n(8679),1073741823),p=typeof globalThis<`u`?globalThis:typeof window<`u`?window:n.g===void 0?{}:n.g,m=i.default.createContext||function(e,t){var n,a,s=`__create-react-context-`+function(){var e=`__global_unique_id__`;return p[e]=(p[e]||0)+1}()+`__`,c=function(e){function n(){for(var t,n,r,i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return(t=e.call.apply(e,[this].concat(a))||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}(0,r.Z)(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((a=r)===(o=i)?a!==0||1/a==1/o:a!=a&&o!=o)?n=0:(n=typeof t==`function`?t(r,i):f,(n|=0)!=0&&this.emitter.set(e.value,n))}var a,o},i.render=function(){return this.props.children},n}(i.default.Component);c.childContextTypes=((n={})[s]=o().object.isRequired,n);var l=function(t){function n(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){(0|e.observedBits)&n&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=t??f},i.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=e??f},i.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},i.getValue=function(){return this.context[s]?this.context[s].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.default.Component);return l.contextTypes=((a={})[s]=o().object,a),{Provider:c,Consumer:l}},h=function(e){var t=m();return t.displayName=e,t},g=h(`Router-History`),_=h(`Router`),v=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:`/`,url:`/`,params:{},isExact:e===`/`}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}
10))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i.default.createElement(_.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.default.createElement(g.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.default.Component),y=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,s.PP)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return i.default.createElement(v,{history:this.history,children:this.props.children})},t}(i.default.Component);i.default.Component;var b={},x=1e4,S=0;function C(e,t){return e===void 0&&(e=`/`),t===void 0&&(t={}),e===`/`?e:function(e){if(b[e])return b[e];var t=d().compile(e);return S<x&&(b[e]=t,S++),t}(e)(t,{pretty:!0})}var w={},T=1e4,E=0;function D(e,t){t===void 0&&(t={}),(typeof t==`string`||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,a=i!==void 0&&i,o=n.strict,s=o!==void 0&&o,c=n.sensitive,l=c!==void 0&&c;return[].concat(r).reduce((function(t,n){if(!n&&n!==``)return null;if(t)return t;var r=function(e,t){var n=``+t.end+t.strict+t.sensitive,r=w[n]||(w[n]={});if(r[e])return r[e];var i=[],a={regexp:d()(e,i,t),keys:i};return E<T&&(r[e]=a,E++),a}(n,{end:a,strict:s,sensitive:l}),i=r.regexp,o=r.keys,c=i.exec(e);if(!c)return null;var u=c[0],f=c.slice(1),p=e===u;return a&&!p?null:{path:n,url:n===`/`&&u===``?`/`:u,isExact:p,params:o.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var O=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return i.default.createElement(_.Consumer,null,(function(t){t||(0,c.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?D(n.pathname,e.props):t.match,a=(0,l.Z)({},t,{location:n,match:r}),o=e.props,s=o.children,u=o.component,d=o.render;return Array.isArray(s)&&function(e){return i.default.Children.count(e)===0}(s)&&(s=null),i.default.createElement(_.Provider,{value:a},a.match?s?typeof s==`function`?s(a):s:u?i.default.createElement(u,a):d?d(a):null:typeof s==`function`?s(a):null)}))},t}(i.default.Component);i.default.Component,i.default.Component;var k=i.default.useContext;function A(){return k(g)}function j(){return k(_).location}function M(e){var t=j(),n=k(_).match;return e?D(t.pathname,e):n}},86:function(e,t){typeof Symbol==`function`&&Symbol.for},663:function(e,t,n){n(86)},8660:function(e,t,n){var r;(function(e){(function(t){var r=typeof n.g==`object`?n.g:typeof self==`object`?self:typeof this==`object`?this:Function(`return this;`)(),i=a(e);function a(e,t){return function(n,r){typeof e[n]!=`function`&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}r.Reflect===void 0?r.Reflect=e:i=a(r.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,n=typeof Symbol==`function`,r=n&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,i=n&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,a=typeof Object.create==`function`,o={__proto__:[]}instanceof Array,s=!a&&!o,c={create:a?function(){return le(Object.create(null))}:o?function(){return le({__proto__:null})}:function(){return le({})},has:s?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:s?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),u=typeof process==`object`&&{}.REFLECT_METADATA_USE_MAP_POLYFILL===`true`,d=u||typeof Map!=`function`||typeof Map.prototype.entries!=`function`?oe():Map,f=u||typeof Set!=`function`||typeof Set.prototype.entries!=`function`?se():Set,p=new(u||typeof WeakMap!=`function`?ce():WeakMap);function m(e,t,n,r){if(F(n)){if(!W(e)||!G(t))throw TypeError();return w(e,t)}if(!W(e)||!R(t)||!R(r)&&!F(r)&&!I(r))throw TypeError();return I(r)&&(r=void 0),T(e,t,n=U(n),r)}function h(e,t){function n(n,r){if(!R(n)||!F(r)&&!te(r))throw TypeError();j(e,t,n,r)}return n}function g(e,t,n,r){if(!R(n))throw TypeError();return F(r)||(r=U(r)),j(e,t,n,r)}function _(e,t,n){if(!R(t))throw TypeError();return F(n)||(n=U(n)),D(e,t,n)}function v(e,t,n){if(!R(t))throw TypeError();return F(n)||(n=U(n)),O(e,t,n)}function y(e,t,n){if(!R(t))throw TypeError();return F(n)||(n=U(n)),k(e,t,n)}function b(e,t,n){if(!R(t))throw TypeError();return F(n)||(n=U(n)),A(e,t,n)}function x(e,t){if(!R(e))throw TypeError();return F(t)||(t=U(t)),M(e,t)}function S(e,t){if(!R(e))throw TypeError();return F(t)||(t=U(t)),N(e,t)}
10function C(e,t,n){if(!R(t))throw TypeError();F(n)||(n=U(n));var r=E(t,n,!1);if(F(r)||!r.delete(e))return!1;if(r.size>0)return!0;var i=p.get(t);return i.delete(n),i.size>0||p.delete(t),!0}function w(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!F(r)&&!I(r)){if(!G(r))throw TypeError();t=r}}return t}function T(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!F(a)&&!I(a)){if(!R(a))throw TypeError();r=a}}return r}function E(e,t,n){var r=p.get(e);if(F(r)){if(!n)return;r=new d,p.set(e,r)}var i=r.get(t);if(F(i)){if(!n)return;i=new d,r.set(t,i)}return i}function D(e,t,n){if(O(e,t,n))return!0;var r=q(t);return!I(r)&&D(e,r,n)}function O(e,t,n){var r=E(t,n,!1);return!F(r)&&V(r.has(e))}function k(e,t,n){if(O(e,t,n))return A(e,t,n);var r=q(t);return I(r)?void 0:k(e,r,n)}function A(e,t,n){var r=E(t,n,!1);if(!F(r))return r.get(e)}function j(e,t,n,r){E(n,r,!0).set(e,t)}function M(e,t){var n=N(e,t),r=q(e);if(r===null)return n;var i=M(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s];a.has(l)||(a.add(l),o.push(l))}for(var u=0,d=i;u<d.length;u++)l=d[u],a.has(l)||(a.add(l),o.push(l));return o}function N(e,t){var n=[],r=E(e,t,!1);if(F(r))return n;for(var i=re(r.keys()),a=0;;){var o=K(i);if(!o)return n.length=a,n;var s=ie(o);try{n[a]=s}catch(e){try{ae(i)}finally{throw e}}a++}}function P(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function F(e){return e===void 0}function I(e){return e===null}function L(e){return typeof e==`symbol`}function R(e){return typeof e==`object`?e!==null:typeof e==`function`}function z(e,t){switch(P(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,i=ne(e,r);if(i!==void 0){var a=i.call(e,n);if(R(a))throw TypeError();return a}return B(e,n==="default"?`number`:n)}function B(e,t){if(t===`string`){var n=e.toString;if(ee(n)&&!R(i=n.call(e))||ee(r=e.valueOf)&&!R(i=r.call(e)))return i}else{var r;if(ee(r=e.valueOf)&&!R(i=r.call(e)))return i;var i,a=e.toString;if(ee(a)&&!R(i=a.call(e)))return i}throw TypeError()}function V(e){return!!e}function H(e){return``+e}function U(e){var t=z(e,3);return L(t)?t:H(t)}function W(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function ee(e){return typeof e==`function`}function G(e){return typeof e==`function`}function te(e){switch(P(e)){case 3:case 4:return!0;default:return!1}}function ne(e,t){var n=e[t];if(n!=null){if(!ee(n))throw TypeError();return n}}function re(e){var t=ne(e,i);if(!ee(t))throw TypeError();var n=t.call(e);if(!R(n))throw TypeError();return n}function ie(e){return e.value}function K(e){var t=e.next();return!t.done&&t}function ae(e){var t=e.return;t&&t.call(e)}function q(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===l||t!==l)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function oe(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,a)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function a(e,t){return t}function o(e,t){return[e,t]}}function se(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}()}function ce(){var e=c.create(),n=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return t!==void 0&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return t===void 0?void 0:c.get(t,this._key)},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return t!==void 0&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do t=`@@WeakMap@@`+s();while(c.has(e,t));return e[t]=!0,t}function i(e,r){if(!t.call(e,n)){if(!r)return;Object.defineProperty(e,n,{value:c.create()})}return e[n]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(e){return typeof Uint8Array==`function`?typeof crypto<`u`?crypto.getRandomValues(new Uint8Array(e)):typeof msCrypto<`u`?msCrypto.getRandomValues(new Uint8Array(e)):a(new Uint8Array(e),e):a(Array(e),e)}function s(){var e=o(16);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t=``,n=0;n<16;++n){var r=e[n];n!==4&&n!==6&&n!==8||(t+=`-`),r<16&&(t+=`0`),t+=r.toString(16).toLowerCase()}return t}}function le(e){return e.__=void 0,delete e.__,e}e(`decorate`,m),e(`metadata`,h),e(`defineMetadata`,g),e(`hasMetadata`,_),e(`hasOwnMetadata`,v),e(`getMetadata`,y),e(`getOwnMetadata`,b),e(`getMetadataKeys`,x),e(`getOwnMetadataKeys`,S),e(`deleteMetadata`,C)}(i)})()})(r||={})},8502:function(e,t,n){n.d(t,{w:function(){return a}});var r=n(9748),i=n(6595),a=(0,r.createContext)({clips:null,status:i.G.Idle,dispatch:function(){}})},8949:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(7582),i=n(2385),a=n(956),o=n(3441),s=n(355),c=n(9283),l=function(e){function t(t){var n=e.call(this)||this;return n.shouldPersonalize=!1,n.endpoint=`clips`,n.method=s.w.get,n.clipId=``,n.clipId=t,n}return(0,r.ZT)(t,e),t.prototype.buildEndpoint=function(){return this.clipId?`${this.endpoint}/${this.clipId}`:this.endpoint},t.prototype.buildRequestContent=function(){},t.prototype.transformResponse=function(e){return e?(c.Z.initialiseShareStateForClips([e]),e):null},t}(o.I),u=function(e){function t(t){var n=e.call(this)||this;return n.shouldPersonalize=!1,n.endpoint=`clips/externalId`,n.method=s.w.get,n.clipExternalId=``,n.clipExternalId=t,n}return(0,r.ZT)(t,e),t.prototype.buildEndpoint=function(){return this.clipExternalId?`${this.endpoint}/${this.clipExternalId}`:this.endpoint},t.prototype.buildRequestContent=function(){},t.prototype.transformResponse=function(e){return e?(c.Z.initialiseShareStateForClips([e]),e):null},t}(o.I),d=n(1900),f=function(e){function t(t){var n=e.call(this)||this;return n.shouldPersonalize=!0,n.endpoint=`clips`,n.method=s.w.get,n.collection=t,n}return(0,r.ZT)(t,e),t.prototype.buildEndpoint=function(){return this.collection?`${this.endpoint}/${this.collection}/clips`:this.endpoint},t.prototype.buildRequestContent=function(){},t.prototype.transformResponse=function(e){return e?(c.Z.initialiseShareStateForClips(e.clips),(0,d.R)(e),e):null},t}(o.I),p=n(3871),m=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`ClipsApiService`,t.collectionsCache_={},t.clipsCache_={},t.clipsByExternalIdCache_={},t}return(0,r.ZT)(t,e),t.prototype.loadClips=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n,a,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(!e)throw Error(`Collection is required to load Clips data`);if(t?.retrieve&&this.collectionsCache_[e])return n=this.collectionsCache_[e],delete this.collectionsCache_[e],[2,Promise.resolve(n)];a=new f(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.Z.executeCommand(a)];case 2:if(!(o=r.sent()))throw Error(`Clips null`);if(o.clips.length===0)throw new p.X(`Clips`,e);return t!=null&&t.store&&(this.collectionsCache_[e]=o),[2,o];case 3:throw r.sent();case 4:return[2]}}
10))}))},t.prototype.loadClip=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n,a,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(t?.retrieve&&this.clipsCache_[e])return n=this.clipsCache_[e],delete this.clipsCache_[e],[2,Promise.resolve(n)];a=new l(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.Z.executeCommand(a)];case 2:return(o=r.sent())&&t!=null&&t.store&&(this.clipsCache_[e]=o,o.externalId&&(this.clipsByExternalIdCache_[o.externalId]=o)),[2,o];case 3:throw r.sent();case 4:return[2]}}))}))},t.prototype.loadClipByExternalId=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n,a,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(t?.retrieve&&this.clipsByExternalIdCache_[e])return n=this.clipsByExternalIdCache_[e],delete this.clipsByExternalIdCache_[e],[2,Promise.resolve(n)];a=new u(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.Z.executeCommand(a)];case 2:return(o=r.sent())&&t!=null&&t.store&&(o.id&&(this.clipsCache_[o.id]=o),this.clipsByExternalIdCache_[e]=o),[2,o];case 3:throw r.sent();case 4:return[2]}}
10))}))},t.sharedInstance=new t,t}(a.b).sharedInstance},1900:function(e,t,n){n.d(t,{R:function(){return a}});var r=n(9283),i=n(8936),a=function(e){var t=e.clips,n=e.enableViewedOrdering;t.sort((function(e,t){var a=r.Z.getClipViewedState(e.id)!==i.N.read,o=r.Z.getClipViewedState(t.id)!==i.N.read;n||(a=!1,o=!1);var s=e.isLive,c=t.isLive;return s||c?!s&&c?1:s&&!c?-1:s&&c?a&&!o?-1:!a&&o?1:e.sortOrder-t.sortOrder:0:a===o?e.sortOrder-t.sortOrder:a?-1:1}))}},9420:function(e,t,n){n.d(t,{zn:function(){return m},ZP:function(){return g},A6:function(){return h}});var r=n(7582),i=function(){},a=n(1822),o=n(7753),s=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clipAfterAd=null,i.discarded=!1,i.isLoaded=!1,i.inserted=!1,i.isPausedByUser_=!1,i.handleAdLoaded_=function(e){return i.onAdLoaded(e)},i.loadStartTimestamp_=Date.now(),i.clipBeforeAd=t,i.clipAfterAd=r||null,i.collection=n,i.uniqueId=Math.floor(4503599627370496*Math.random()),i.createAdElement_(),i}return(0,r.ZT)(t,e),t.prototype.discard=function(){var e,t;this.discarded=!0,this.pause(),(t=(e=this.element_).discard)==null||t.call(e),this.element_.remove()},t.prototype.insert=function(e){e.append(this.element_),this.inserted=!0,this.element_.addEventListener(o.k.load,this.handleAdLoaded_)},Object.defineProperty(t.prototype,"clipBeforeAdIndex",{get:function(){return this.clipBeforeAd.indexInCategory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.element_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPausedByUser",{get:function(){return this.isPausedByUser_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeSinceLoadStart",{get:function(){return Date.now()-this.loadStartTimestamp_},enumerable:!1,configurable:!0}),t.prototype.pause=function(e){var t,n,r=(e===void 0?{}:e).userInitiated,i=r!==void 0&&r;(n=(t=this.element_).pause)==null||n.call(t),i&&(this.isPausedByUser_=!0)},t.prototype.play=function(e){var t=e===void 0?{}:e,n=t.ignoreUserPausedState,r=n!==void 0&&n,i=t.userInitiated,a=i!==void 0&&i;return!(this.isPausedByUser_&&!a&&!r)&&!!this.element_.play&&(this.element_.play(),(a||r)&&(this.isPausedByUser_=!1),!0)},t.prototype.restart=function(){var e,t;return!this.isPausedByUser_&&!!this.element_.play&&((t=(e=this.element_).rewind)==null||t.call(e),this.play())},t.prototype.onAdLoaded=function(e){var t=e.detail.ad,n=t.advertiserName,r=t.duration,i=t.id,a=t.pageType,s=t.swipeUpText,c=t.swipeUpUrl;this.isLoaded=!0,this.id=i||`${this.uniqueId}`,this.advertiserName=n,this.duration=r,this.pageType=a,this.swipeUpText=s,this.swipeUpUrl=c,this.element_.removeEventListener(o.k.load,this.handleAdLoaded_)},t.prototype.createAdElement_=function(){var e=(0,a.gv)({clip:this.clipBeforeAd,collection:this.collection,nextClip:this.clipAfterAd});if(e&&(0,a.Ev)(e)){var t=document.createElement(`amp-ad`);t.setAttribute(`layout`,`fill`),t.setAttribute(`clip-ad`,``);var n=(0,a.cV)(e);Object.keys(n).forEach((function(e){var r=n[e];e===`json`?t.setAttribute(`json`,JSON.stringify(r)):t.setAttribute(e,r)})),this.element_=t}},t.prototype.hide=function(){this.pause(),this.element_.style.opacity=`0`},t.prototype.show=function(e,t){var n,r,i=(t===void 0?{}:t).startMuted,a=i!==void 0&&i;if(!e)return this.pause(),void(this.element_.style.opacity=`1`);this.element_.style.opacity=`1`,a&&((r=(n=this.element_).mute)==null||r.call(n)),this.play()},t}(i),c=n(1736),l=n(6661),u=n(7112),d=n(1438),f=n(2727),p=function(e){function t(){var t=e.call(this)||this;return t.logTag=`ClipsNavService`,t.firstNavigationTimestamp_=Date.now(),t.lastNavigationTimestamp_=Date.now(),t.isCategoryAnimating_=!1,t.isTabActive_=!document.hidden,t.isUserScrollingQuickly_=!1,t.onScrollEndCallbacks_=[],t.pausedStateToRestore_=!1,t}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"firstNavigationTimestamp",{set:function(e){this.firstNavigationTimestamp_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnimating",{get:function(){return this.isCategoryAnimating_},set:function(e){this.isCategoryAnimating_=e}
10,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTabActive",{get:function(){return this.isTabActive_},set:function(e){this.isTabActive_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProbablyInitialNavigation",{get:function(){return Date.now()-this.firstNavigationTimestamp_<100},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUserScrollingQuickly",{get:function(){return this.isUserScrollingQuickly_},set:function(e){var t=this;this.isUserScrollingQuickly_=e,e?setTimeout((function(){t.isUserScrollingQuickly_&&Date.now()-t.lastNavigationTimestamp_>=750&&(t.isUserScrollingQuickly_=!1,t.triggerOnScrollEndCallbacks_())}),751):this.triggerOnScrollEndCallbacks_()},enumerable:!1,configurable:!0}),t.prototype.onScrollEnd=function(e){this.isUserScrollingQuickly?this.onScrollEndCallbacks_.push(e):e()},Object.defineProperty(t.prototype,"pausedStateToRestore",{get:function(){return this.pausedStateToRestore_},set:function(e){this.pausedStateToRestore_=e},enumerable:!1,configurable:!0}),t.prototype.isInitialNavigationEvent_=function(e){return`slideIndex`in e},t.prototype.recordNavigationEvent=function(e){var t=Date.now(),n=t-this.lastNavigationTimestamp_;this.isUserScrollingQuickly=!this.isCategoryAnimating_&&n<750,this.lastNavigationTimestamp_=t},t.prototype.triggerOnScrollEndCallbacks_=function(){this.onScrollEndCallbacks_.forEach((function(e){e()}))},t}(n(956).b),m=300;function h(e){return e instanceof s}var g=function(e){function t(t){var n=e.call(this)||this;return n.logTag=`ClipsNavService`,n.activeAppendedSlideIndex_=-1,n.activeSlideIndex_=-1,n.activeClip_=null,n.allSlides_=[],n.appendedSlides_=[],n.hasUserSeenAnAd_=!1,n.isActiveCategory_=!1,n.slidesUntilNextAdWhenMovingBackwards_=n.adFrequency_===0?n.adFrequency_-1:null,n.slidesUntilNextAdWhenMovingForwards_=n.adFrequency_===0?n.adFrequency_-1:null,n.collection_=t,n}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"activeAppendedSlideIndex",{get:function(){return this.activeAppendedSlideIndex_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeClip",{get:function(){return this.activeClip_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeClipIndexInCollection",{get:function(){return h(this.activeSlide_)?null:this.activeSlide_.indexInCollection},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"appendedSlides",{get:function(){return this.appendedSlides_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clipIndicesToLoadOrPreload",{get:function(){var e=[];return this.slidesToLoadOrPreload_.forEach((function(t){h(t)||e.push(t)})),e.map((function(e){return e.indexInCollection}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldShowAds",{get:function(){return this.adFrequency_>0},enumerable:!1,configurable:!0}),t.prototype.closePlayer=function(){this.allSlides_=this.collectionClips_,this.appendedSlides_=[],this.activeClip_&&u.Z.broadcastEvent(f.C.clipSlideHidden,this.activeClip_.id)},t.prototype.getAppendedSlideByIndex=function(e){return this.appendedSlides[e]},Object.defineProperty(t.prototype,"isActiveCategory",{get:function(){return this.isActiveCategory_},set:function(e){if(this.isActiveCategory_=e,!e&&this.activeClip_){var t=this.activeClip_.id;setTimeout((function(){u.Z.broadcastEvent(f.C.clipSlideHidden,t)}),m)}},enumerable:!1,configurable:!0}),t.prototype.isActiveSlide=function(e){return h(this.activeSlide_)&&h(e)?this.activeSlide_.uniqueId===e.uniqueId:!h(this.activeSlide_)&&!h(e)&&this.activeSlide_.indexInCategory===e.indexInCategory},t.prototype.recordNavigationEvent=function(t){var n,r,i;this.isRepeatNavigationEvent_(t)||(e.prototype.recordNavigationEvent.call(this,t),this.isInitialNavigationEvent_(t)?(i=t.slideIndex,n=this.allSlides_[i],r=this.appendedSlides.findIndex((function(e){return h(n)&&h(e)?n.uniqueId===e.uniqueId:!h(n)&&!h(e)&&n.indexInCategory===e.indexInCategory}))):(r=t.appendedSlideIndex,n=this.appendedSlides[r],i=this.allSlides_.findIndex((function(e){return h(n)&&h(e)?n.uniqueId===e.uniqueId:!h(n)&&!h(e)&&n.indexInCategory===e.indexInCategory}))),this.activeSlideIndex_=i,this.activeAppendedSlideIndex_=r,h(n)||(this.activeClip_=n),this.isInitialNavigationEvent_(t)?this.handleInitialNavigation_():this.handleNavigation_(t.direction),this.checkHiddenSlides_())},t.prototype.reopenClipPlayer=function(){this.recordNavigationEvent({slideIndex:this.activeSlideIndex_})},t.prototype.goToClip=function(e,t){var n=this.allSlides_.findIndex((function(t){return t.id===e}));if(n===-1){if((n=t.findIndex((function(t){return t.id===e})))===-1)return;var i=t.map((function(e,t){return(0,r.pi)((0,r.pi)({},e),{indexInCategory:t})}));this.allSlides_=i}for(var a=0;a<this.appendedSlides_.length;a++)if(a===this.activeAppendedSlideIndex_)this.appendedSlides_[a]=this.allSlides_[n];else{var o=a-this.activeAppendedSlideIndex_,s=this.getAdjacentSlideIndex_(n,o,`loadedAds`);s!==null&&(this.appendedSlides_[a]=this.allSlides_[s])}this.activeSlideIndex_=n,this.activeClip_=this.allSlides_[n]},t.prototype.setCollectionClips=function(e,t){var n=e.map((function(e,t){return(0,r.pi)((0,r.pi)({},e),{indexInCategory:t})}));this.allSlides_=n,this.setAppendedSlides_(t),this.recordNavigationEvent({slideIndex:this.activeSlideIndex_})},t.prototype.setHasUserSeenAnAd=function(e){this.hasUserSeenAnAd_=e},t.prototype.updateCollection=function(e){this.collection_=e},Object.defineProperty(t.prototype,"activeSlide_",{get:function(){return this.allSlides_[this.activeSlideIndex_]}
10,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"adInitialIndex_",{get:function(){if(!l.Z.settings||!l.Z.settings.adsFrom)return null;var e=l.Z.settings,t=e.adsFrom,n=e.ads.clips;if(t===d.m.storyteller&&n.initialIndex)return n.initialIndex?Math.max(3,n.initialIndex):null;if(t===d.m.integratingApp&&n.initialIndex&&c.Z.getAdConfig){var r=c.Z.getAdConfig({clip:{id:``,categories:[]},collection:this.collection_});return r&&(0,a.gX)(r)&&r.slot&&n.initialIndex?Math.max(3,n.initialIndex):null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"adFrequency_",{get:function(){if(!l.Z.settings||!l.Z.settings.adsFrom)return 0;var e=l.Z.settings,t=e.adsFrom,n=e.ads.clips;if(t===d.m.storyteller&&n.frequency)return Math.max(3,n.frequency);if(t===d.m.integratingApp&&n.frequency&&c.Z.getAdConfig){var r=c.Z.getAdConfig({clip:{id:``,categories:[]},collection:this.collection_});return r&&(0,a.gX)(r)&&r.slot?Math.max(3,n.frequency):0}return 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"collectionClips_",{get:function(){var e=[];return this.allSlides_.forEach((function(t){h(t)||e.push(t)})),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slidesToLoadOrPreload_",{get:function(){var e=[this.activeSlide_],t=this.getAdjacentSlideIndex_(this.activeSlideIndex_,1);if(t!==null){var n=this.allSlides_[t];e.push(n)}var r=this.getAdjacentSlideIndex_(this.activeSlideIndex_,-1);if(r!==null){var i=this.allSlides_[r];e.push(i)}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldReplaceAppendedSlides_",{get:function(){return!!this.shouldShowAds||this.collectionClips_.length>5},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideBeforeNextAdOffset_",{get:function(){return this.slidesUntilNextAdWhenMovingForwards_===null?0:this.slidesUntilNextAdWhenMovingForwards_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slideBeforePreviousAdOffset_",{get:function(){return this.slidesUntilNextAdWhenMovingBackwards_===null?0:-1*this.slidesUntilNextAdWhenMovingBackwards_-1},enumerable:!1,configurable:!0}),t.prototype.checkHiddenSlides_=function(){for(var e=1;e<this.appendedSlides_.length;e++){var t=this.appendedSlides_[e];h(t)||e!==this.activeAppendedSlideIndex_&&e!==this.activeAppendedSlideIndex_-1&&e!==this.activeAppendedSlideIndex_+1&&(this.activeClip_&&t.id===this.activeClip_.id||u.Z.broadcastEvent(f.C.clipSlideHidden,t.id))}},t.prototype.createAdPage_=function(e){if(!h(e)&&!(this.allSlides_.findIndex((function(t){return h(t)&&t.clipBeforeAdIndex===e.indexInCategory&&!t.discarded}))>=0)){var t=e.indexInCategory,n=this.allSlides_.findIndex((function(e){return!h(e)&&e.indexInCategory===t})),r=this.getAdjacentSlideIndex_(n,1,`noAds`),i=this.allSlides_[r],a=new s(e,this.collection_,i);n<0||(this.allSlides_.splice(n+1,0,a),this.activeSlideIndex_>n&&this.activeSlideIndex_++)}},t.prototype.replaceAdIfTimedOut_=function(e,t){if(!e.isLoaded){this.removeAd_(e,t,!0);var n=this.getAdjacentAppendedSlidesIndices_(this.activeAppendedSlideIndex),r=n.nextSlideIndex,i=n.previousSlideIndex,a=this.getAdjacentSlide_(this.activeSlideIndex_,t===`next`?1:-1);a&&this.replaceAppendedSlide_(t===`next`?r:i,a)}},t.prototype.getAdjacentSlideIndex_=function(e,t,n){var r=this;t===void 0&&(t=0),n===void 0&&(n=`all`);var i=e,a=[],o=[];if(n!==`all`&&this.allSlides_.forEach((function(t,r){if(h(t)&&r!==e){var i=t.isLoaded&&!t.discarded&&t.inserted;n!==`noAds`&&i||o.push(r)}})),t>=0)for(var s=1;s<=t;s++)a.push(1);else for(s=t;s<=-1;s++)a.push(-1);var c=function(e,t){var n=e+t;return t>0&&n>=r.allSlides_.length&&(n=0),t<0&&n<0&&(n=r.allSlides_.length-1),o.includes(n)?c(n,t):n};return a.forEach((function(e){i=c(i,e)})),i},t.prototype.getAdjacentSlide_=function(e,t){t===void 0&&(t=0);var n=this.getAdjacentSlideIndex_(e,t);return n===null?null:this.allSlides_[n]},t.prototype.getAdjacentAppendedSlidesIndices_=function(e){var t=this.appendedSlides.length;return{nextSlideIndex:e+1<t?e+1:0,previousSlideIndex:e-1>=0?e-1:t-1}},t.prototype.getAppendedSlideIndices_=function(e){var t=this,n=Math.min(5,this.allSlides_.length),i=[0];if(n===5&&(i=Array.from(Array(n).keys()).map((function(e){return e-2}))),n<5)for(var a=1;a<this.allSlides_.length;a++)a%2==0?i.push(-1*Math.floor(a/2)):i.push(Math.floor(a/2)+1);var o=i.findIndex((function(e){return e===0}));if(e&&o>=0){var s=i.slice(0,o),c=i.slice(o);i=(0,r.ev)((0,r.ev)([],c,!0),s,!0)}return i.map((function(e){var n=e;return n<1&&(n=t.allSlides_.length+n),n>=t.allSlides_.length&&(n-=t.allSlides_.length),n}))},t.prototype.handleInitialNavigation_=function(){if(this.adFrequency_!==0){this.hasUserSeenAnAd_=!1;var e=this.adInitialIndex_||this.adFrequency_;this.slidesUntilNextAdWhenMovingBackwards_=e-1,this.slidesUntilNextAdWhenMovingForwards_=e-1;var t=this.getAdjacentSlideIndex_(this.activeSlideIndex_,this.slideBeforeNextAdOffset_),n=this.getAdjacentSlideIndex_(this.activeSlideIndex_,this.slideBeforePreviousAdOffset_),r=t===null?null:this.allSlides_[t],i=n!==null&&n!==t?this.allSlides_[n]:null;r&&this.createAdPage_(r),i&&this.createAdPage_(i)}},t.prototype.handleNavigation_=function(e){if(this.shouldReplaceAppendedSlides_){if(this.slidesUntilNextAdWhenMovingForwards_!==null&&this.slidesUntilNextAdWhenMovingBackwards_!==null&&this.adFrequency_!==0){var t=this.shouldActiveSlideHaveAnAd_(e);if(e===`next`){if(t)this.slidesUntilNextAdWhenMovingForwards_=this.adFrequency_,this.slidesUntilNextAdWhenMovingBackwards_=this.adFrequency_;else{var n=!this.hasUserSeenAnAd_&&this.adInitialIndex_?this.adInitialIndex_:this.adFrequency_;this.slidesUntilNextAdWhenMovingForwards_--,this.slidesUntilNextAdWhenMovingBackwards_=n-1-this.slidesUntilNextAdWhenMovingForwards_}}else e===`prev`&&(t?(this.slidesUntilNextAdWhenMovingForwards_=this.adFrequency_,this.slidesUntilNextAdWhenMovingBackwards_=this.adFrequency_):(n=!this.hasUserSeenAnAd_&&this.adInitialIndex_?this.adInitialIndex_:this.adFrequency_,this.slidesUntilNextAdWhenMovingBackwards_--,this.slidesUntilNextAdWhenMovingForwards_=n-1-this.slidesUntilNextAdWhenMovingBackwards_));var r=e===`next`?this.slideBeforeNextAdOffset_:this.slideBeforePreviousAdOffset_,i=this.getAdjacentSlideIndex_(this.activeSlideIndex_,r,`noAds`),a=i===null?null:this.allSlides_[i];(h(this.activeSlide_)||t)&&a&&this.createAdPage_(a);var o=this.getAdjacentSlide_(this.activeSlideIndex_,e===`next`?1:-1);o&&h(o)&&this.replaceAdIfTimedOut_(o,e),this.replaceAdjacentHiddenSlide_(e)}else this.replaceAdjacentHiddenSlide_(e)}},t.prototype.isRepeatNavigationEvent_=function(e){return!this.isInitialNavigationEvent_(e)&&e.appendedSlideIndex===this.activeAppendedSlideIndex},t.prototype.removeAd_=function(e,t,n){var r=this,i=this.allSlides_.findIndex((function(t){return!!h(t)&&t.uniqueId===e.uniqueId}
10)),a=[],o=this.allSlides_.length-1,s=i===(t===`next`?this.allSlides_.length-1:0),c=!1,l=+(i<this.activeSlideIndex_),u=function(o){var u=r.allSlides_[o];if(o!==i){var d=function(){t===`next`?a.push(u):a.unshift(u)};if(t===`next`?o<i:o>i)return s?c?void d():!h(u)||n&&!e.discarded?(d(),void(c=!0)):void(o<r.activeSlideIndex_&&l++):void d();if(t===`next`?o>i:o<i){if(c)return void d();if(!h(u)||n&&!e.discarded)return d(),void(c=!0);o<r.activeSlideIndex_&&l++}}};if(t===`next`)for(var d=0;d<=o;d++)u(d);else for(d=o;d>=0;d--)u(d);this.allSlides_=a,l>0&&(this.activeSlideIndex_-=l)},t.prototype.replaceAdjacentHiddenSlide_=function(e){var t=this.getAdjacentAppendedSlidesIndices_(this.activeAppendedSlideIndex),n=t.nextSlideIndex,r=t.previousSlideIndex;if(e!==`next`){if(e===`prev`){var i=this.getAdjacentSlide_(this.activeSlideIndex_,-2),a=this.getAdjacentAppendedSlidesIndices_(r).previousSlideIndex;if(i){if(l=h(i),u=this.slidesUntilNextAdWhenMovingBackwards_===1,!l||u&&!i.discarded)this.replaceAppendedSlide_(a,i);else{this.removeAd_(i,e,u);var o=this.getAdjacentSlide_(this.activeSlideIndex_,-2);o&&this.replaceAppendedSlide_(a,o)}}}}else{var s=this.getAdjacentSlide_(this.activeSlideIndex_,2),c=this.getAdjacentAppendedSlidesIndices_(n).nextSlideIndex;if(s){var l=h(s),u=this.slidesUntilNextAdWhenMovingForwards_===1;if(!l||u&&!s.discarded)this.replaceAppendedSlide_(c,s);else{this.removeAd_(s,e,u);var d=this.getAdjacentSlide_(this.activeSlideIndex_,2);d&&this.replaceAppendedSlide_(c,d)}}}},t.prototype.replaceAppendedSlide_=function(e,t){var n=this.appendedSlides_[e];h(n)&&n.discard(),this.appendedSlides_[e]=t},t.prototype.setAppendedSlides_=function(e){var t=[];t=this.shouldReplaceAppendedSlides_?this.getAppendedSlideIndices_(!e):Array.from(Array(this.collectionClips_.length).keys());var n=this.allSlides_,i=0;if(e){var a=this.allSlides_.findIndex((function(t){return t.id===e}));a>=0&&(i=a)}if(i>=0&&(this.activeSlideIndex_=i),i>0){var o=this.allSlides_.slice(0,i),s=this.allSlides_.slice(i);n=(0,r.ev)((0,r.ev)([],s,!0),o,!0)}var c=t.map((function(e){return n[e]}));this.appendedSlides_=c;var l=c.findIndex((function(t){return t.id===e}));l<0&&(l=0);var u=c.map((function(e,t){return{clip:e,appendedSlideIndex:t}})).filter((function(t){return t.clip.id===e}));if(l=u.length>1?u.sort((function(e,t){var n=Math.abs(2-e.appendedSlideIndex),r=Math.abs(2-t.appendedSlideIndex);return n>r?1:n<r?-1:0}))[0].appendedSlideIndex:u[0]?.appendedSlideIndex??0,this.activeAppendedSlideIndex_=l,this.adFrequency_!==0){var d=!this.hasUserSeenAnAd_&&this.adInitialIndex_?this.adInitialIndex_:this.adFrequency_;this.slidesUntilNextAdWhenMovingBackwards_=d-1,this.slidesUntilNextAdWhenMovingForwards_=d-1}},t.prototype.shouldActiveSlideHaveAnAd_=function(e){return this.slidesUntilNextAdWhenMovingBackwards_!==null&&this.slidesUntilNextAdWhenMovingForwards_!==null&&(e===`prev`&&this.slidesUntilNextAdWhenMovingBackwards_===0||e===`next`&&this.slidesUntilNextAdWhenMovingForwards_===0)},t}(p)},4096:function(e,t,n){n.d(t,{ZP:function(){return Pa}});var r=n(7582),i=n(9748);typeof window>`u`||!window.document||window.document.createElement;function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function o(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1,r=e.map((e=>{let r=o(e,t);return n||typeof r!=`function`||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():o(e[t],null)}}}}function c(...e){return i.useCallback(s(...e),e)}var l=n(6400),u=0;function d(e,t,n,r,i,a){var o,s,c={};for(s in t)s==`ref`?o=t[s]:c[s]=t[s];var d={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--u,__source:i,__self:a};if(typeof e==`function`&&(o=e.defaultProps))for(s in o)c[s]===void 0&&(c[s]=o[s]);return l.YM.vnode&&l.YM.vnode(d),d}function f(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){let r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return i.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}var p=globalThis?.document?i.useLayoutEffect:()=>{},m=i.useId||(()=>{}),h=0;function g(e){let[t,n]=i.useState(m());return p((()=>{e||n((e=>e??String(h++)))}),[e]),e||(t?`radix-${t}`:``)}var _=i.useInsertionEffect||p;function v({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){let[a,o,s]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),a=i.useRef(n),o=i.useRef(t);return _((()=>{o.current=t}),[t]),i.useEffect((()=>{a.current!==n&&(o.current?.(n),a.current=n)}),[n,a]),[n,r,o]}({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:a;{let t=i.useRef(e!==void 0);i.useEffect((()=>{let e=t.current;e!==c&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${c?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=c}),[c,r])}return[l,i.useCallback((t=>{if(c){let n=function(e){return typeof e==`function`}(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)}),[c,e,o,s])]}function y(e){let t=b(e),n=i.forwardRef(((e,n)=>{let{children:r,...a}=e,o=i.Children.toArray(r),s=o.find(S);if(s){let e=s.props.children,r=o.map((t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t));return d(t,{...a,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return d(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function b(e){let t=i.forwardRef(((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),a=function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}
10:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(a.ref=t?s(t,e):e),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var x=Symbol(`radix.slottable`);function S(e){return i.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===x}var C=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce(((e,t)=>{let n=y(`Primitive.${t}`),r=i.forwardRef(((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),d(o,{...a,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function w(e){let t=i.useRef(e);return i.useEffect((()=>{t.current=e})),i.useMemo((()=>(...e)=>t.current?.(...e)),[])}var T,E=`dismissableLayer.update`,D=`dismissableLayer.pointerDownOutside`,O=`dismissableLayer.focusOutside`,k=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),A=i.forwardRef(((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...f}=e,p=i.useContext(k),[m,h]=i.useState(null),g=m?.ownerDocument??globalThis?.document,[,_]=i.useState({}),v=c(t,(e=>h(e))),y=Array.from(p.layers),[b]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(b),S=m?y.indexOf(m):-1,A=p.layersWithOutsidePointerEventsDisabled.size>0,j=S>=x,P=function(e,t=globalThis?.document){let n=w(e),r=i.useRef(!1),a=i.useRef((()=>{}));return i.useEffect((()=>{let e=e=>{if(e.target&&!r.current){let r=function(){N(D,n,i,{discrete:!0})},i={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,a.current),a.current=r,t.addEventListener(`click`,a.current,{once:!0})):r()}else t.removeEventListener(`click`,a.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener(`pointerdown`,e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,a.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{let t=e.target,n=[...p.branches].some((e=>e.contains(t)));j&&!n&&(o?.(e),l?.(e),e.defaultPrevented||u?.())}),g),F=function(e,t=globalThis?.document){let n=w(e),r=i.useRef(!1);return i.useEffect((()=>{let e=e=>{e.target&&!r.current&&N(O,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{let t=e.target;[...p.branches].some((e=>e.contains(t)))||(s?.(e),l?.(e),e.defaultPrevented||u?.())}),g);return function(e,t=globalThis?.document){let n=w(e);i.useEffect((()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})}),[n,t])}((e=>{S===p.layers.size-1&&(r?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),g),i.useEffect((()=>{if(m)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(T=g.body.style.pointerEvents,g.body.style.pointerEvents=`none`),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),M(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=T)}}),[m,g,n,p]),i.useEffect((()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),M())}),[m,p]),i.useEffect((()=>{let e=()=>_({});return document.addEventListener(E,e),()=>document.removeEventListener(E,e)}),[]),d(C.div,{...f,ref:v,style:{pointerEvents:A?j?`auto`:`none`:void 0,...e.style},onFocusCapture:a(e.onFocusCapture,F.onFocusCapture),onBlurCapture:a(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:a(e.onPointerDownCapture,P.onPointerDownCapture)})}));A.displayName=`DismissableLayer`;var j=i.forwardRef(((e,t)=>{let n=i.useContext(k),r=i.useRef(null),a=c(t,r);return i.useEffect((()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),d(C.div,{...e,ref:a})}));function M(){let e=new CustomEvent(E);document.dispatchEvent(e)}function N(e,t,n,{discrete:r}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?function(e,t){e&&i.flushSync((()=>
10e.dispatchEvent(t)))}(a,o):a.dispatchEvent(o)}j.displayName=`DismissableLayerBranch`;var P=`focusScope.autoFocusOnMount`,F=`focusScope.autoFocusOnUnmount`,I={bubbles:!1,cancelable:!0},L=i.forwardRef(((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[l,u]=i.useState(null),f=w(a),p=w(o),m=i.useRef(null),h=c(t,(e=>u(e))),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect((()=>{if(r){let e=function(e){if(g.paused||!l)return;let t=e.target;l.contains(t)?m.current=t:V(m.current,{select:!0})},t=function(e){if(g.paused||!l)return;let t=e.relatedTarget;t!==null&&(l.contains(t)||V(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&V(l)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}}),[r,l,g.paused]),i.useEffect((()=>{if(l){H.add(g);let t=document.activeElement;if(!l.contains(t)){let n=new CustomEvent(P,I);l.addEventListener(P,f),l.dispatchEvent(n),n.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(V(r,{select:t}),document.activeElement!==n)return}((e=R(l),e.filter((e=>e.tagName!==`A`))),{select:!0}),document.activeElement===t&&V(l))}return()=>{l.removeEventListener(P,f),setTimeout((()=>{let e=new CustomEvent(F,I);l.addEventListener(F,p),l.dispatchEvent(e),e.defaultPrevented||V(t??document.body,{select:!0}),l.removeEventListener(F,p),H.remove(g)}),0)}}var e}),[l,f,p,g]);let _=i.useCallback((e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=function(e){let t=R(e);return[z(t,e),z(t.reverse(),e)]}(t);r&&a?e.shiftKey||i!==a?e.shiftKey&&i===r&&(e.preventDefault(),n&&V(a,{select:!0})):(e.preventDefault(),n&&V(r,{select:!0})):i===t&&e.preventDefault()}}),[n,r,g.paused]);return d(C.div,{tabIndex:-1,...s,ref:h,onKeyDown:_})}));function R(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function z(e,t){for(let n of e)if(!B(n,{upTo:t}))return n}function B(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function V(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&`select`in e}(e)&&t&&e.select()}}L.displayName=`FocusScope`;var H=function(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=U(e,t),e.unshift(t)},remove(t){e=U(e,t),e[0]?.resume()}}}();function U(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var W=i.forwardRef(((e,t)=>{let{container:n,...r}=e,[a,o]=i.useState(!1);p((()=>o(!0)),[]);let s=n||a&&globalThis?.document?.body;return s?i.default.createPortal(d(C.div,{...r,ref:t}),s):null}));W.displayName=`Portal`;var ee=e=>{let{present:t,children:n}=e,r=function(e){let[t,n]=i.useState(),r=i.useRef(null),a=i.useRef(e),o=i.useRef(`none`),[s,c]=function(e,t){return i.useReducer(((e,n)=>t[e][n]??e),e)}(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return i.useEffect((()=>{let e=G(r.current);o.current=s===`mounted`?e:`none`}),[s]),p((()=>{let t=r.current,n=a.current;if(n!==e){let r=o.current,i=G(t);e?c(`MOUNT`):i===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),a.current=e}}),[e,c]),p((()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=i=>{let o=G(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&o&&(c(`ANIMATION_END`),!a.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout((()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)}))}},s=e=>{e.target===t&&(o.current=G(r.current))};return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,i),t.addEventListener(`animationend`,i),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,i),t.removeEventListener(`animationend`,i)}}c(`ANIMATION_END`)}),[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:i.useCallback((e=>{r.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),a=typeof n==`function`?n({present:r.isPresent}):i.Children.only(n),o=c(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(a));return typeof n==`function`||r.isPresent?i.cloneElement(a,{ref:o}):null};function G(e){return e?.animationName||`none`}ee.displayName=`Presence`;var te=0;function ne(){i.useEffect((()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??re()),document.body.insertAdjacentElement(`beforeend`,e[1]??re()),te++,()=>{te===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach((e=>e.remove())),te--}}),[])}function re(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var ie=`right-scroll-bar-position`,K=`width-before-scroll-bar`;function ae(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}var q=typeof window<`u`?i.useLayoutEffect:i.useEffect,oe=new WeakMap;function se(e,t){var n,r,a,o=(n=t||null,r=function(t){return e.forEach((function(e){return ae(e,t)}))},(a=(0,i.useState)((function(){return{value:n,callback:r,facade:{get current(){return a.value},set current(e){var t=a.value;
10t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=r,a.facade);return q((function(){var t=oe.get(o);if(t){var n=new Set(t),r=new Set(e),i=o.current;n.forEach((function(e){r.has(e)||ae(e,null)})),r.forEach((function(e){n.has(e)||ae(e,i)}))}oe.set(o,e)}),[e]),o}function ce(e){return e}function le(e,t){t===void 0&&(t=ce);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter((function(e){return e!==i}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}var ue=function(e){e===void 0&&(e={});var t=le(null);return t.options=(0,r.pi)({async:!0,ssr:!1},e),t}(),de=function(){},fe=i.forwardRef((function(e,t){var n=i.useRef(null),a=i.useState({onScrollCapture:de,onWheelCapture:de,onTouchMoveCapture:de}),o=a[0],s=a[1],c=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,h=e.noRelative,g=e.noIsolation,_=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?`div`:y,x=e.gapMode,S=(0,r._T)(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),C=m,w=se([n,t]),T=(0,r.pi)((0,r.pi)({},S),o);return i.createElement(i.Fragment,null,f&&i.createElement(C,{sideCar:ue,removeScrollBar:d,shards:p,noRelative:h,noIsolation:g,inert:_,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:x}),c?i.cloneElement(i.Children.only(l),(0,r.pi)((0,r.pi)({},T),{ref:w})):i.createElement(b,(0,r.pi)({},T,{className:u,ref:w}),l))}));fe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},fe.classNames={fullWidth:K,zeroRight:ie};var pe,me=function(e){var t=e.sideCar,n=(0,r._T)(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw Error(`Sidecar medium not found`);return i.createElement(a,(0,r.pi)({},n))};me.isSideCarExport=!0;function J(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=pe||n.nc;return t&&e.setAttribute(`nonce`,t),e}var he=function(){var e=0,t=null;return{add:function(n){var r,i;e==0&&(t=J())&&(i=n,(r=t).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ge=function(){var e,t=(e=he(),function(t,n){i.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},_e={left:0,top:0,right:0,gap:0},ve=function(e){return parseInt(e||``,10)||0},Y=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return _e;var t=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[ve(n),ve(r),ve(i)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ye=ge(),be=`data-scroll-locked`,xe=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
11  .with-scroll-bars-hidden {
12   overflow: hidden ${r};
13   padding-right: ${s}px ${r};
14  }
15  body[${be}] {
16    overflow: hidden ${r};
17    overscroll-behavior: contain;
18    ${[t&&`position: relative ${r};`,n===`margin`&&`
19    padding-left: ${i}px;
20    padding-top: ${a}px;
21    padding-right: ${o}px;
22    margin-left:0;
23    margin-top:0;
24    margin-right: ${s}px ${r};
25    `,n===`padding`&&`padding-right: ${s}px ${r};
25`].filter(Boolean).join(``)}
26  }
27  
28  .${ie} {
29    right: ${s}px ${r};
30  }
31  
32  .${K} {
33    margin-right: ${s}px ${r};
34  }
35  
36  .${ie} .${ie} {
37    right: 0 ${r};
38  }
39  
40  .${K} .${K} {
41    margin-right: 0 ${r};
42  }
43  
44  body[${be}] {
45    --removed-body-scroll-bar-size: ${s}px;
46  }
47`},Se=function(){var e=parseInt(document.body.getAttribute(be)||`0`,10);return isFinite(e)?e:0},Ce=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?`margin`:r;i.useEffect((function(){return document.body.setAttribute(be,(Se()+1).toString()),function(){var e=Se()-1;e<=0?document.body.removeAttribute(be):document.body.setAttribute(be,e.toString())}}),[]);var o=i.useMemo((function(){return Y(a)}),[a]);return i.createElement(ye,{styles:xe(o,!t,a,n?``:`!important`)})},we=!1;if(typeof window<`u`)try{var X=Object.defineProperty({},"passive",{get:function(){return we=!0,!0}});window.addEventListener(`test`,X,X),window.removeEventListener(`test`,X,X)}catch{we=!1}var Te=!!we&&{passive:!1},Ee=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!function(e){return e.tagName===`TEXTAREA`}(e)&&n[t]===`visible`)},De=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Oe(e,r)){var i=ke(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Oe=function(e,t){return e===`v`?function(e){return Ee(e,`overflowY`)}(t):function(e){return Ee(e,`overflowX`)}(t)},ke=function(e,t){return e===`v`?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Ae=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},je=function(e){return[e.deltaX,e.deltaY]},Me=function(e){return e&&`current`in e?e.current:e},Ne=function(e){return`
48  .block-interactivity-${e} {pointer-events: none;}
49  .allow-interactivity-${e} {pointer-events: all;}
50`},Pe=0,Fe=[];function Ie(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Le,Re=(Le=function(e){var t=i.useRef([]),n=i.useRef([0,0]),a=i.useRef(),o=i.useState(Pe++)[0],s=i.useState(ge)[0],c=i.useRef(e);i.useEffect((function(){c.current=e}),[e]),i.useEffect((function(){if(e.inert){document.body.classList.add(`block-interactivity-${o}`);var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(Me),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add(`allow-interactivity-${o}`)})),function(){document.body.classList.remove(`block-interactivity-${o}`),t.forEach((function(e){return e.classList.remove(`allow-interactivity-${o}`)}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback((function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!c.current.allowPinchZoom;var r,i=Ae(e),o=n.current,s=`deltaX`in e?e.deltaX:o[0]-i[0],l=`deltaY`in e?e.deltaY:o[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(l)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=De(d,u);if(!f)return!0;if(f?r=d:(r=d===`v`?`h`:`v`,f=De(d,u)),!f)return!1;if(!a.current&&`changedTouches`in e&&(s||l)&&(a.current=r),!r)return!0;var p=a.current||r;return function(e,t,n,r,i){var a=function(e,t){return e===`h`&&t===`rtl`?-1:1}(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ke(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Oe(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l}(p,t,e,p===`h`?s:l,!0)}),[]),u=i.useCallback((function(e){var n=e;if(Fe.length&&Fe[Fe.length-1]===s){var r=`deltaY`in n?je(n):Ae(n),i=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,i=r,t[0]===i[0]&&t[1]===i[1]);var t,i}))[0];if(i&&i.should)n.cancelable&&n.preventDefault();
50else if(!i){var a=(c.current.shards||[]).map(Me).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),d=i.useCallback((function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ie(r)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),f=i.useCallback((function(e){n.current=Ae(e),a.current=void 0}),[]),p=i.useCallback((function(t){d(t.type,je(t),t.target,l(t,e.lockRef.current))}),[]),m=i.useCallback((function(t){d(t.type,Ae(t),t.target,l(t,e.lockRef.current))}),[]);i.useEffect((function(){return Fe.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener(`wheel`,u,Te),document.addEventListener(`touchmove`,u,Te),document.addEventListener(`touchstart`,f,Te),function(){Fe=Fe.filter((function(e){return e!==s})),document.removeEventListener(`wheel`,u,Te),document.removeEventListener(`touchmove`,u,Te),document.removeEventListener(`touchstart`,f,Te)}}),[]);var h=e.removeScrollBar,g=e.inert;return i.createElement(i.Fragment,null,g?i.createElement(s,{styles:Ne(o)}):null,h?i.createElement(Ce,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ue.useMedium(Le),me),ze=i.forwardRef((function(e,t){return i.createElement(fe,(0,r.pi)({},e,{ref:t,sideCar:Re}))}));ze.classNames=fe.classNames;var Be=ze,Ve=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},He=new WeakMap,Ue=new WeakMap,We={},Ge=0,Ke=function(e){return e&&(e.host||Ke(e.parentNode))},qe=function(e,t,n,r){var i=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Ke(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)})).filter((function(e){return!!e}))}(t,Array.isArray(e)?e:[e]);We[n]||(We[n]=new WeakMap);var a=We[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(He.get(e)||0)+1,l=(a.get(e)||0)+1;He.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ue.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}}))};return u(t),s.clear(),Ge++,function(){o.forEach((function(e){var t=He.get(e)-1,i=a.get(e)-1;He.set(e,t),a.set(e,i),t||(Ue.has(e)||e.removeAttribute(r),Ue.delete(e)),i||e.removeAttribute(n)})),--Ge||(He=new WeakMap,He=new WeakMap,Ue=new WeakMap,We={})}},Je=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ve(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),qe(r,i,n,`aria-hidden`)):function(){return null}},Ye=`Dialog`,[Xe,Ze]=function(e,t=[]){let n=[],r=()=>{let t=n.map((e=>i.createContext(e)));return function(n){let r=n?.[e]||t;return i.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){let a=i.createContext(r),o=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,c=n?.[e]?.[o]||a,l=i.useMemo((()=>s),Object.values(s));return d(c.Provider,{value:l,children:r})};return s.displayName=t+`Provider`,[s,function(n,s){let c=s?.[e]?.[o]||a,l=i.useContext(c);if(l)return l;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},f(r,...t)]}(Ye),[Qe,$e]=Xe(Ye),et=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=i.useRef(null),l=i.useRef(null),[u,f]=v({prop:r,defaultProp:a??!1,onChange:o,caller:Ye});return d(Qe,{scope:t,triggerRef:c,contentRef:l,contentId:g(),titleId:g(),descriptionId:g(),open:u,onOpenChange:f,onOpenToggle:i.useCallback((()=>f((e=>!e))),[f]),modal:s,children:n})};et.displayName=Ye;var tt=`DialogTrigger`,nt=i.forwardRef(((e,t)=>{let{__scopeDialog:n,...r}=e,i=$e(tt,n),o=c(t,i.triggerRef);return d(C.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":bt(i.open
50),...r,ref:o,onClick:a(e.onClick,i.onOpenToggle)})}));nt.displayName=tt;var[rt,it]=Xe(`DialogPortal`,{forceMount:void 0}),at=`DialogOverlay`,ot=i.forwardRef(((e,t)=>{let n=it(at,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=$e(at,e.__scopeDialog);return a.modal?d(ee,{present:r||a.open,children:d(ct,{...i,ref:t})}):null}));ot.displayName=at;var st=y(`DialogOverlay.RemoveScroll`),ct=i.forwardRef(((e,t)=>{let{__scopeDialog:n,...r}=e,i=$e(at,n);return d(Be,{as:st,allowPinchZoom:!0,shards:[i.contentRef],children:d(C.div,{"data-state":bt(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})})),lt=`DialogContent`,ut=i.forwardRef(((e,t)=>{let n=it(lt,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=$e(lt,e.__scopeDialog);return d(ee,{present:r||a.open,children:a.modal?d(dt,{...i,ref:t}):d(ft,{...i,ref:t})})}));ut.displayName=lt;var dt=i.forwardRef(((e,t)=>{let n=$e(lt,e.__scopeDialog),r=i.useRef(null),o=c(t,n.contentRef,r);return i.useEffect((()=>{let e=r.current;if(e)return Je(e)}),[]),d(pt,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:a(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:a(e.onPointerDownOutside,(e=>{let t=e.detail.originalEvent,n=t.button===0&&!0===t.ctrlKey;(t.button===2||n)&&e.preventDefault()})),onFocusOutside:a(e.onFocusOutside,(e=>e.preventDefault()))})})),ft=i.forwardRef(((e,t)=>{let n=$e(lt,e.__scopeDialog),r=i.useRef(!1),a=i.useRef(!1);return d(pt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&a.current&&t.preventDefault()}})})),pt=i.forwardRef(((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,u=$e(lt,n),f=i.useRef(null),p=c(t,f);return ne(),d(l.HY,{children:[d(L,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:d(A,{role:`dialog`,id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":bt(u.open),...s,ref:p,onDismiss:()=>u.onOpenChange(!1)})}),d(l.HY,{children:[d(wt,{titleId:u.titleId}),d(Tt,{contentRef:f,descriptionId:u.descriptionId})]})]})})),mt=`DialogTitle`,ht=i.forwardRef(((e,t)=>{let{__scopeDialog:n,...r}=e,i=$e(mt,n);return d(C.h2,{id:i.titleId,...r,ref:t})}));ht.displayName=mt;var gt=`DialogDescription`,_t=i.forwardRef(((e,t)=>{let{__scopeDialog:n,...r}=e,i=$e(gt,n);return d(C.p,{id:i.descriptionId,...r,ref:t})}));_t.displayName=gt;var vt=`DialogClose`,yt=i.forwardRef(((e,t)=>{let{__scopeDialog:n,...r}=e,i=$e(vt,n);return d(C.button,{type:`button`,...r,ref:t,onClick:a(e.onClick,(()=>i.onOpenChange(!1)))})}));function bt(e){return e?`open`:`closed`}yt.displayName=vt;var xt=`DialogTitleWarning`,[St,Ct]=function(e,t){let n=i.createContext(t),r=e=>{let{children:t,...r}=e,a=i.useMemo((()=>r),Object.values(r));return d(n.Provider,{value:a,children:t})};return r.displayName=e+`Provider`,[r,function(r){let a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(xt,{contentName:lt,titleName:mt,docsSlug:`dialog`}),wt=({titleId:e})=>{let t=Ct(xt),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},Tt=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ct(`DialogDescriptionWarning`).contentName}}.`;return i.useEffect((()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},Et=et,Dt=ut,Ot=ht,kt=Symbol.for(`react.lazy`),At=i.use;function jt(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===kt&&`_payload`in e&&typeof(t=e._payload)==`object`&&t!==null&&`then`in t;var t}function Mt(e){let t=Nt(e),n=i.forwardRef(((e,n)=>{let{children:r,...a}=e;jt(r)&&typeof At==`function`&&(r=At(r._payload));let o=i.Children.toArray(r),s=o.find(Ft);if(s){let e=s.props.children,r=o.map((t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t));return d(t,{...a,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,r):null})}return d(t,{...a,ref:n,children:r})}));return n.displayName=`${e}.Slot`,n}function Nt(e){let t=i.forwardRef(((e,t)=>{let{children:n,...r}=e;if(jt(n)&&typeof At==`function`&&(n=At(n._payload)),i.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(n),a=function(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}
50:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(a.ref=t?s(t,e):e),i.cloneElement(n,a)}return i.Children.count(n)>1?i.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var Pt=Symbol(`radix.slottable`);function Ft(e){return i.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Pt}var It=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce(((e,t)=>{let n=Mt(`Primitive.${t}`),r=i.forwardRef(((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),d(o,{...a,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),Lt=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Rt=i.forwardRef(((e,t)=>d(It.span,{...e,ref:t,style:{...Lt,...e.style}})));Rt.displayName=`VisuallyHidden`;var zt=Rt,Bt=n(6550),Vt=n(5518),Ht=n(4184),Ut=n.n(Ht),Wt=n(7112),Gt=n(5259),Kt=n(6940),qt=n(4637),Jt=n(9420),Yt=n(791),Xt=n(4576),Zt={ChevronLeft:function(){return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:`1em`,viewBox:`0 0 320 512`,"aria-hidden":`true`},i.createElement(`path`,{d:`M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z`}))},Heart:function(){return i.createElement(`svg`,{width:`23`,height:`22`,viewBox:`0 0 23 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},i.createElement(`path`,{d:`M1 7.119c0-.9416.1493-1.7755.4331-2.5135.298-.7626.7011-1.4022 1.204-1.9318.5048-.5317 1.093-.9398 1.7718-1.2288l.0073-.0031C5.0877 1.1497 5.816 1 6.6121 1c.9384 0 1.7267.1993 2.3933.57l.0062.0033c.7.3828 1.2437.8793 1.65 1.4904l.8203 1.2335.8373-1.222c.4247-.6198.9773-1.12 1.6726-1.5037l.0027-.0015c.6667-.3707 1.455-.57 2.3934-.57.805 0 1.5318.1502 2.1927.4404h-.0001l.0106.0045c.6789.289 1.267.697 1.7718 1.2288.5017.5284.9004 1.1662 1.1907 1.927l.0038.0097c.29.7366.4426 1.5687.4426 2.5086 0 1.4362-.3784 2.8836-1.1671 4.353-.7996 1.4896-1.9408 2.96-3.4431 4.4076l-.0018.0017c-1.5011 1.4534-3.2875 2.8511-5.3656 4.1903l-.0055.0036a3.3878 3.3878 0 0 1-.4304.2375l-.0068.0032-.0069.0032a.7421.7421 0 0 1-.0709.0302 1.0338 1.0338 0 0 1-.0884-.0366 2.7716 2.7716 0 0 1-.4019-.2261l-.0112-.0076-.0114-.0074c-2.0785-1.3395-3.8736-2.7379-5.391-4.1928-1.5014-1.4468-2.642-2.9164-3.4414-4.4052C1.3752 10.0044 1 8.5564 1 7.1191Z`,stroke:`#fff`,strokeWidth:`2`}))},Pause:function(){return i.createElement(`svg`,{width:`81`,height:`81`,viewBox:`0 0 81 81`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i.createElement(`circle`,{cx:`40.5`,cy:`40.5`,r:`40.5`,fill:`#808080`,"fill-opacity":`0.3`}),i.createElement(`g`,{opacity:`0.9`,filter:`url(#filter0_d_12359_24616)`},i.createElement(`path`,{d:`M29.9104 61C30.4471 61 30.9685 60.9089 31.4746 60.7268C31.996 60.5599 32.5787 60.2943 33.2228 59.9301L60.8257 44.0862C61.8838 43.4791 62.6735 42.8645 63.1949 42.2423C63.7316 41.6201 64 40.8688 64 39.9886C64 39.1084 63.7316 38.3572 63.1949 37.735C62.6735 37.1127 61.8838 36.4981 60.8257 35.8911L33.2228 20.0472C32.5787 19.6829 31.996 19.4173 31.4746 19.2504C30.9685 19.0835 30.4471 19 29.9104 19C28.837 19 27.9169 19.387 27.1501 20.161C26.3834 20.9198 26 21.9821 26 23.348V56.6293C26 57.9951 26.3834 59.065 27.1501 59.839C27.9169 60.613 28.837 61 29.9104 61Z`,fill:`white`})),i.createElement(`defs`,null,i.createElement(`filter`,{id:`filter0_d_12359_24616`,x:`22`,y:`19`,width:`46`,height:`50`,filterUnits:`userSpaceOnUse`,"color-interpolation-filters":`sRGB`},i.createElement(`feFlood`,{"flood-opacity":`0`,result:`BackgroundImageFix`}),i.createElement(`feColorMatrix`,{in:`SourceAlpha`,type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`hardAlpha`}),i.createElement(`feOffset`,{dy:`4`}),i.createElement(`feGaussianBlur`,{stdDeviation:`2`}),i.createElement(`feComposite`,{in2:`hardAlpha`,operator:`out`}),i.createElement(`feColorMatrix`,{type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0`}
50),i.createElement(`feBlend`,{mode:`normal`,in2:`BackgroundImageFix`,result:`effect1_dropShadow_12359_24616`}),i.createElement(`feBlend`,{mode:`normal`,in:`SourceGraphic`,in2:`effect1_dropShadow_12359_24616`,result:`shape`}))))},Refresh:function(){return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`60`,height:`60`,fill:`none`,viewBox:`0 0 60 60`},i.createElement(`path`,{fill:`#fff`,d:`M14 30.879c0 8.8 7.012 15.826 15.797 15.826 8.772 0 15.784-7.026 15.784-15.826 0-.74-.53-1.271-1.285-1.271-.726 0-1.187.53-1.187 1.271 0 7.43-5.909 13.353-13.312 13.353-7.416 0-13.325-5.922-13.325-13.353 0-7.389 5.909-13.283 13.325-13.283 1.55 0 3.031.153 4.19.447L28.08 23.95a1.21 1.21 0 0 0-.363.88c0 .698.531 1.23 1.215 1.23.378 0 .67-.113.894-.35l7.585-7.654c.307-.322.433-.629.433-.978 0-.35-.14-.698-.433-.978l-7.585-7.724c-.21-.251-.502-.377-.894-.377-.698 0-1.215.559-1.215 1.257 0 .321.112.643.35.894l5.363 5.364a17.4 17.4 0 0 0-3.632-.392C21.012 15.124 14 22.122 14 30.88`}))},Share:function(){return i.createElement(`svg`,{width:`20`,height:`24`,viewBox:`0 0 20 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},i.createElement(`path`,{d:`M3.6283 24h12.7434c1.1947 0 2.0981-.2902 2.7102-.8706.6121-.5735.9181-1.4196.9181-2.5385V10.2692c0-1.1189-.306-1.965-.9181-2.5384-.6121-.5804-1.5155-.8707-2.7102-.8707h-3.0089v2.0665h2.8651c.5088 0 .8997.1293 1.1725.388.2803.2518.4204.633.4204 1.1434v9.9546c0 .5105-.1401.8916-.4204 1.1433-.2728.2588-.6637.3882-1.1725.3882H3.7611c-.5163 0-.9108-.1294-1.1837-.3882-.2654-.2517-.3982-.6328-.3982-1.1433V10.458c0-.5105.1328-.8916.3982-1.1433.2729-.2588.6674-.3881 1.1837-.3881h2.8871V6.86H3.6283c-1.1947 0-2.098.2903-2.7102.8707C.3061 8.3042 0 9.1503 0 10.2692v10.3217c0 1.1259.306 1.9755.9181 2.549.6121.5734 1.5155.8601 2.7102.8601ZM10 15.6399c.2802 0 .5199-.0944.719-.2833.2065-.1888.3098-.4125.3098-.6713V4.1223l-.0885-1.5629.6858.7658 1.5487 1.5734c.1843.1888.413.2832.6858.2832.2508 0 .4646-.077.6416-.2307.1844-.1609.2766-.3637.2766-.6084 0-.2238-.0959-.4301-.2876-.619L10.7743.3358c-.1327-.126-.2618-.2133-.3871-.2623a1.0561 1.0561 0 0 0-.7744 0c-.1253.049-.258.1364-.3982.2623l-3.7168 3.388c-.1844.1889-.2766.3952-.2766.619 0 .2447.0849.4475.2545.6084.177.1538.3945.2307.6526.2307.2802 0 .5089-.0944.6859-.2832l1.5486-1.5734.697-.7658-.0886 1.563v10.5629c0 .2588.0996.4825.2987.6713.2065.1889.4499.2833.7301.2833Z`,fill:`#fff`}))},SoundOff:function(){return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`10 10 28 28`,preserveAspectRatio:`xMinYMin`,fill:`none`,"aria-hidden":`true`},i.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M27.53 16.97a.95.95 0 0 1 1.1-.76c.75.13 2.28.7 3.63 1.9a7.709 7.709 0 0 1 2.62 5.95c0 1.86-.55 3.32-1.33 4.45l-1.38-1.37c.48-.8.8-1.81.8-3.08 0-2.16-.92-3.59-1.97-4.53a6.4295 6.4295 0 0 0-2.7-1.45.9499.9499 0 0 1-.77-1.1v-.01Z`,fill:`currentColor`}),i.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M27.54 21.03a.9509.9509 0 0 1 .4201-.5973.952.952 0 0 1 .3477-.1333.952.952 0 0 1 .3722.0106c.7.16 2.5 1.19 2.5 3.71 0 .7-.15 1.28-.36 1.76l-1.56-1.52c.05-.6-.07-1.25-.48-1.71-.23-.26-.47-.36-.51-.38-.01 0 0 0 0 0a.9496.9496 0 0 1-.7394-.7659.9502.9502 0 0 1 .0094-.3741Z`,fill:`currentColor`}),i.createElement(`path`,{d:`M23.4 16.79v1.56l1.9 1.9v-4.27c0-.3-.12-.6-.29-.84a1.5906 1.5906 0 0 0-.7-.57c-.29-.11-.61-.16-.9-.1-.3.06-.61.21-.82.42l-1.31 1.34 1.33 1.34.8-.78h-.01Z`,fill:`currentColor`}),i.createElement(`path`,{d:`m20.12 18.73-1.76 1.81h-2.59c-.94 0-1.7.76-1.7 1.7v3.45c0 .93.75 1.68 1.67 1.7l2.6.04 4.9 4.9a.65.65 0 0 0 1.1-.46v-9.1`,stroke:`currentColor`,strokeWidth:`1.9`,strokeLinecap:`round`}),i.createElement(`path`,{d:`m17.13 15.36 17.2 17.19`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),i.createElement(`path`,{d:`M28.47 30.84A7.2004 7.2004 0 0 0 31 29.67`,stroke:`currentColor`,strokeWidth:`1.9`,strokeLinecap:`round`}))},SoundOn:function(){return i.createElement(`svg`,{width:`24`,height:`24`,viewBox:`10 10 28 28`,preserveAspectRatio:`xMinYMin`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`},i.createElement(`path`,{d:`M28.47 17.14c1.15.2 5.46 1.98 5.46 6.92 0 4.95-4.39 6.63-5.46 6.83`,stroke:`currentColor`,strokeWidth:`1.9`,strokeLinecap:`round`}),i.createElement(`path`,{d:`M28.47 21.24c.37.08 1.75.79 1.75 2.78 0 1.99-1.4 2.67-1.75 2.74`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`}),i.createElement(`path`,{d:`m18.36 27.48 4.88 4.9a.65.65 0 0 0 1.1-.46V16.09c0-.58-.7-.87-1.1-.45l-4.88 4.94h-2.59c-.94 0-1.7.77-1.7 1.7v3.45c0 .93.75 1.69 1.67 1.7l2.62.05Z`,stroke:`currentColor`,strokeWidth:`1.9`,strokeLinecap:`round`}))}},Qt=n(841),$t=function(e){return e>=1e3?(e/1e3).toFixed(1)+`k`:e.toString()},en=`loadingSpinner-JkBvqe`,tn=function(){return i.default.createElement(`div`,{className:en},i.default.createElement(`div`,null),i.default.createElement(`div`,null),i.default.createElement(`div`,null),i.default.createElement(`div`,null))},nn=n(16),rn=`slideWrapper-GfZNTy`,an=`isMobile-epTlWw`,on=`mask-V8u7+U`,sn=`contentWrapper-mS34HD`,cn=`beforeSlideIn-LmZQTB`,ln=`slideInAnimation-BznBJm`,un=`slideOutAnimation-oiiXPl`,dn=`pauseIcon-xMBHxy`,fn=`refreshButton-0z9fC8`,pn=`overlayWrapper-1lxXFt`,mn=`gradientOverlay-0wZcjd`,hn=`backButton-E+CqNA`,gn=`muteButton-zIDTUl`,_n=`backButtonIcon-Pb1MPz`,vn=`callToActionWrapper-AseKLi`,yn=`callToAction-wMENvy`,bn=`callToActionIcon-hbHeQp`,xn=function(e){var t=e.clipsNavService,n=e.isActiveSwiperSlide,r=e.isAnimatingOut,a=e.isAnimatingIn,o=e.wrapperRef,s=function(e,t){for(;e&&e.tagName!==t.toUpperCase();)e=e.parentElement;return e}(o.current,`swiper-container`),c=s?.querySelector(`.swiper-slide-prev`),l=s?.querySelector(`.swiper-slide-next`),u=(0,i.useMemo)((function(){return n}),[n]);(0,i.useEffect)((function(){var e=o.current?.classList;if(e&&n&&t.isActiveCategory&&!r)return a?void(e==null||e.add(ln)):(e?.remove(cn),void(e==null||e.remove(ln)))}),[t,n,a,r,u,o]),(0,i.useEffect)((function(){var e=o.current?.classList;e&&n&&t.isActiveCategory&&(a||(r?(c&&(c.style.opacity=`0`),l&&(l.style.opacity=`0`),setTimeout((function(){e?.add(un)}),Jt.zn)):e?.remove(un)))}),[t,n,a,r,c,l,u,o])},Sn=n(6346),Cn=function(e){var t,n,r=e.backButtonIcon,a=e.children,o=e.clipsNavService,s=e.closeButtonTitle,c=e.hasError,l=c!==void 0&&c,u=e.header,d=e.isActiveSwiperSlide,f=e.isAnimatingIn,p=e.isAnimatingOut,m=e.isLastPlayerInStack,h=e.isMuted,g=e.metadata,_=e.onClose,v=e.onRetry,y=e.onPrimaryAction,b=e.onSecondaryAction,x=e.primaryActionText,S=e.secondaryActionText,C=e.showPlayButton,w=e.toggleMute,T=e.togglePause,E=(0,nn.F)(),D=(0,i.useRef)(null),O=(0,i.useState)(!1),k=O[0],A=O[1],j=(0,i.useRef)(d&&m);xn({clipsNavService:o,isActiveSwiperSlide:d,isAnimatingOut:p,isAnimatingIn:f,wrapperRef:D}),(0,i.useEffect)((function(){m||(j.current=!1)}),[m]);var M=function(){var e=E?.player?.actionButton?.icon;if(e)try{var t=new URL(e);return i.default.createElement(Sn.Ee,{src:t.toString(),width:20,height:20,alt:``,className:bn})}catch{return null}return null};(0,i.useEffect)((function(){A(!1)}),[r]);var N=(0,i.useCallback)((function(e){e.stopPropagation(),w?.(),e.currentTarget.blur()}),[w]),P=(0,i.useCallback)((function(e){e.target===D.current&&[`Enter`,`Space`].includes(e.code)&&T?.()}),[T]);return(0,i.useEffect)((function(){var e,t;d&&((t=(e=D.current)?.focus)==null||t.call(e,{preventScroll:!0}))}),[d]),i.default.createElement(`div`,{className:Ut()(rn,(t={},t[an]=Vt.tq,t))},i.default.createElement(`div`,{className:on},i.default.createElement(`div`,{className:Ut()(sn,(n={},n[cn]=d&&j.current,n)),ref:D,onClick:T,onKeyDown:P,tabIndex:0,role:`button`,"aria-pressed":C,"aria-label":`Pause Clip`},C&&!l&&i.default.createElement(`div`,{className:dn},i.default.createElement(Zt.Pause,null)),l&&v&&i.default.createElement(`button`,{className:fn,onClick:function(e){e.stopPropagation(),v()},title:`Retry loading video`},i.default.createElement(Zt.Refresh,null)),a,i.default.createElement(`div`,{className:pn},i.default.createElement(`div`,{className:mn}),s&&i.default.createElement(`button`,{onClick:function(e){e.stopPropagation(),_?.()},className:hn,title:s},r&&!k?i.default.createElement(Sn.Ee,{src:r,alt:``,className:_n,onError:function(){A(!0)}}):i.default.createElement(Zt.ChevronLeft,null)),u||null,w&&i.default.createElement(`button`,{className:gn,onClick:N,title:h?`Unmute`:`Mute`},h?i.default.createElement(Zt.SoundOff,null):i.default.createElement(Zt.SoundOn,null)),g||null,(x||S)&&i.default.createElement(`div`,{className:vn},x&&i.default.createElement(`button`,{onClick:y,className:yn},M(),x),S&&b&&i.default.createElement(`button`,{onClick:b,className:yn},M(),S))))))},wn=n(4999),Tn=n(9512),En=n(4991),Dn=n(3766),Z=n(3269),On=n(6661),kn=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clip=t,i.clipIndex=n,i.collection=r,i.activityType=Dn.T.pausedClip,i.clipAction=i.clip.primaryAction||i.clip.secondaryAction,i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),An=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clip=t,i.clipIndex=n,i.collection=r,i.activityType=Dn.T.resumedClip,i.clipAction=i.clip.primaryAction||i.clip.secondaryAction,i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),jn=n(8844),Mn=n(647),Nn=n(3914),Pn=n(8585),Fn=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clip=t,i.clipIndex=n,i.collection=r,i.activityType=Dn.T.likedClip,i.alwaysSend=!0,i.isDisabled=function(){return!Nn.Z.isFunctionalFeatureEnabled(Pn.d.clipLikes)},i.clipAction=i.clip.primaryAction||i.clip.secondaryAction,i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),In=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clip=t,i.clipIndex=n,i.collection=r,i.activityType=Dn.T.unlikedClip,i.alwaysSend=!0,i.isDisabled=function(){return!Nn.Z.isFunctionalFeatureEnabled(Pn.d.clipLikes)},i.clipAction=i.clip.primaryAction||i.clip.secondaryAction,i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),Ln=n(2727);function Rn(e){return!!On.Z.clipLikes?.[e]}var zn,Bn=function(e){var t=e.clip,n=e.clipIndex,a=e.collection,o=(0,i.useMemo)((function(){return`storyteller.clipLike ${t.id}`}),[t.id]),s=(0,i.useMemo)((function(){return`storyteller.clipUnlike ${t.id}`}),[t.id]),c=(0,i.useState)(Rn(t.id)),l=c[0],u=c[1],d=(0,i.useCallback)((function(){var e;l?(Wt.Z.broadcastEvent(s),Tn.Z.recordActivity(new In(t,n,a))):(Wt.Z.broadcastEvent(o),Tn.Z.recordActivity(new Fn(t,n,a))),On.Z.clipLikes=(0,r.pi)((0,r.pi)({},On.Z.clipLikes),((e={})[t.id]=!l,e)),u(!l)}),[o,s,t,n,a,l]),f=(0,i.useCallback)((function(e){e.stopPropagation(),d(),e.currentTarget.blur()}),[d]);return(0,i.useEffect)((function(){Wt.Z.on(o,(function(){u(!0)})),Wt.Z.on(s,(function(){u(!1)}))}),[o,s]),(0,i.useEffect)((function(){u(Rn(t.id))}),[t]),(0,i.useEffect)((function(){Wt.Z.on(Ln.C.clipSlideHidden,(function(e){e!==t.id||Nn.Z.isFunctionalFeatureEnabled(Pn.d.clipLikes)||u(!1)}))}),[t.id]),{onLike:f,isLiked:l}},Vn=n(9283),Hn=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clip=t,i.clipIndex=n,i.collection=r,i.activityType=Dn.T.shareButtonTapped,i.isDisabled=function(){return!Nn.Z.isFunctionalFeatureEnabled(Pn.d.clipShares)},i.clipAction=i.clip.primaryAction||i.clip.secondaryAction,i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),Un=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clip=t,i.clipIndex=n,i.collection=r,i.activityType=Dn.T.shareSuccess,i.isDisabled=function(){return!Nn.Z.isFunctionalFeatureEnabled(Pn.d.clipShares)},i.clipAction=i.clip.primaryAction||i.clip.secondaryAction,i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,shareMethod:``,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,shareMethod:``,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),Wn=n(1736),Gn=function(e){var t=
50e.clip,n=e.clipIndex,r=e.clipsNavService,a=e.collection,o=e.handleVideoPause,s=e.handleVideoPlay,c=(0,i.useState)(Vn.Z.getClipShares(t)),l=c[0],u=c[1],d=(0,i.useCallback)((function(e){if(e.stopPropagation(),navigator.share){Vn.Z.setClipShared(t),u((function(e){return e+1})),Tn.Z.recordActivity(new Hn(t,n,a)),o(!1);var i=function(){Tn.Z.recordActivity(new Un(t,n,a)),r.isTabActive&&!r.pausedStateToRestore&&s(!1)},c=function(){r.isTabActive&&!r.pausedStateToRestore&&s(!1)},l=t.deepLink.replace(`[COLLECTIONID]`,a);try{if(!Wn.Z.onShareButtonTapped)throw Error();Wn.Z.onShareButtonTapped(t.description,t.description,l).then((function(){i()})).catch((function(){return c()}))}catch{navigator.share({title:t.description||``,url:l}).then((function(){i()})).catch((function(){return c()}))}}}),[t,n,r.isTabActive,r.pausedStateToRestore,a,o,s]),f=!!navigator.share;return(0,i.useEffect)((function(){Wt.Z.on(Ln.C.clipSlideHidden,(function(e){e!==t.id||Nn.Z.isFunctionalFeatureEnabled(Pn.d.clipShares)||u(t.shareCount)}))}),[t.id,t.shareCount]),(0,i.useEffect)((function(){u(Vn.Z.getClipShares(t))}),[t]),{sharesCount:l,onClipShare:d,isShareActive:f}},Kn=n(8105),qn=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o.clip=t,o.clipIndex=n,o.collection=r,o.buttonActionText=i,o.buttonActionUrl=a,o.activityType=Dn.T.actionButtonTapped,o}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!0,clipActionText:this.buttonActionText,clipActionUrl:this.buttonActionUrl,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!0,clipActionText:this.buttonActionText,clipActionUrl:this.buttonActionUrl,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z);function Jn(e){return!!e&&e.type===zn.store&&`appStoreId`in e&&!!e.appStoreId}function Yn(e){return!!e&&e.type===zn.store&&`playStoreBundleId`in e&&!!e.playStoreBundleId}function Xn(e){return!!e&&(e.type===zn.web||e.type===zn.inApp)&&`url`in e&&!!e.url}function Zn(e){return!!e&&e.type===zn.sheet&&`url`in e&&!!e.url&&`text`in e&&!!e.text}(function(e){e.inApp=`inApp`,e.sheet=`sheet`,e.store=`store`,e.web=`web`})(zn||={});var Qn=n(9980),$n=function(e){var t=e.url,n=e.openInNewTab;n===void 0||n?window.open(t,`_blank`):window.location.href=t},er=function(e){var t=e.clip,n=e.clipIndex,r=e.collection,a=e.onClose,o=e.onOpenForegroundAction,s=e.shouldCloseOnForegroundAction,c=s===void 0||s,l=(0,i.useCallback)((function(e,i){Tn.Z.recordActivity(new qn(t,n,r,e,i))}),[t,n,r]),u=t.primaryAction,d=t.secondaryAction,f=navigator.userAgent,p=/iPad|iPhone/.test(f),m=/Android/.test(f),h=function(e){return!(!p||!Jn(e))||!(!m||!Yn(e))||!!(Xn(e)||Zn(e)||(0,Qn.JB)(e)||(0,Qn.MI)(e)||(0,Qn.H5)(e)||(0,Qn.Yz)(e))},g=(0,i.useCallback)((function(e,n){if(e.stopPropagation(),p&&Jn(n)){var i=(s=n.appStoreId,`https://apps.apple.com/us/app/${s}`);l(n.text,i),$n({url:i,openInNewTab:n.openInNewTab});return}var s;if(m&&Yn(n)){i=function(e){return`https://play.google.com/store/apps/details?id=${e}`}(n.playStoreBundleId),l(n.text,i),$n({url:i,openInNewTab:n.openInNewTab});return}Xn(n)?(l(n.text,n.url),n.type===zn.inApp&&Wn.Z.userNavigatedToApp?(o?.(),Wn.Z.userNavigatedToApp(n.url)):$n({url:n.url,openInNewTab:n.openInNewTab})):Zn(n)?(l(n.text,n.url),$n({url:n.url,openInNewTab:!0})):(0,Qn.JB)(n)?(l(n.text),n.clipCollectionId!==r&&(o?.(),c&&a?.(),Kn.Z.openCollection(n.clipCollectionId))):(0,Qn.MI)(n)?(l(n.text),n.clipId!==t.id&&(o?.(),Kn.Z.openClipById(n.clipId))):(0,Qn.H5)(n)?(l(n.text),o?.(),c&&a?.(),Kn.Z.openCategory(n.storyCategoryId)):(0,Qn.Yz)(n)&&(l(n.text),o?.(),c&&a?.(),Kn.Z.openStory({id:n.storyId}))}),[t.id,r,l,m,p,a,o,c]);return{onPrimaryAction:(0,i.useCallback)((function(e){g(e,u)}),[g,u]),onSecondaryAction:(0,i.useCallback)((function(e){g(e,d)}),[g,d]),primaryActionText:h(u)?u?.text:null,secondaryActionText:h(d)?d?.text:null}},tr=`visibilitychange`,nr=function(e){var t=e.clipsNavService,n=e.isActiveSwiperSlide,r=e.isPausedGlobally,a=e.isPausedBeforePageInactive,o=e.shouldRemainPausedWhenPageBecomesActive,s=o!==void 0&&o,c=e.handlePlay,l=e.handlePause,u=e.handleRestorePausedState,d=(0,i.useRef)(a);d.current=a,(0,i.useEffect)((function(){if(n&&!r){var e=function(e){var n=function(e){return e.type!==`blur`&&e.type!==`pagehide`&&(e.type===`focus`||e.type===`pageshow`?!document.hidden:!document.hidden&&document.hasFocus())}(e);
50if(n!==t.isTabActive){if(t.isTabActive=n,n){if(t.pausedStateToRestore||s)return u?.(),void(function(e){return!!e}(u)&&(t.pausedStateToRestore=!1));t.pausedStateToRestore=!1,c(!1)}else t.pausedStateToRestore=d.current,l(!1)}};return document.addEventListener(tr,e),window.addEventListener(`focus`,e,!1),window.addEventListener(`blur`,e,!1),window.addEventListener(`pageshow`,e,!1),window.addEventListener(`pagehide`,e,!1),function(){document.removeEventListener(tr,e),window.removeEventListener(`focus`,e,!1),window.removeEventListener(`blur`,e,!1),window.removeEventListener(`pageshow`,e,!1),window.removeEventListener(`pagehide`,e,!1)}}}),[t,n,r,a,s,c,l,u])},rr={closed:`closed-haSy4C`,moreButton:`moreButton-TX+aIU`,category:`category-TH49VO`},ir=function(e){var t,n=e.categories,r=e.currentCategory,a=e.handleSelectCategory,o=e.isExpanded,s=e.isTitleExpandable,c=e.setIsExpanded,l=(0,i.useState)(!1),u=l[0],d=l[1],f=(0,i.useRef)(null),p=(0,i.useMemo)((function(){return n.filter((function(e){return e.availableForNavigation}))}),[n]),m=(0,i.useMemo)((function(){var e=p.findIndex((function(e){return e.externalId===r}));if(e>=0&&p.length>0){var t=p.splice(e,1)[0];if(!t)return p;p.push(t)}return p}),[p,r]);return(0,i.useEffect)((function(){var e=f.current||{},t=e.scrollHeight,n=e.offsetHeight;d(!(!t||!n)&&n<t)}),[f.current?.scrollHeight]),i.default.createElement(`div`,{className:rr.categoriesListCollapsable},i.default.createElement(`div`,{ref:f,className:Ut()((t={},t[rr.closed]=!o,t))},m.map((function(e,t){return i.default.createElement(i.default.Fragment,null,i.default.createElement(`a`,{className:rr.category,onClick:function(t){r!==e.externalId&&(t?.stopPropagation(),a(e.externalId))},tabIndex:0},e.displayTitle||e.name),t===m.length-1?` `:`, `)}))),(s||u)&&i.default.createElement(`button`,{className:rr.moreButton,onClick:function(e){e?.stopPropagation(),c(!o)}},o?`less`:`more`))},ar={videoWrapper:`videoWrapper-3vHBrc`,feedTitle:`feedTitle-rTqPkK`,feedTitleImage:`feedTitleImage-QlZ4k+`,video:`video-dPQf5n`,blankVideo:`blankVideo-qlVGnO`,hasError:`hasError-wBZvNo`,actionButton:`actionButton-0u4aZg`,metadataLeft:`metadataLeft-NpmyKz`,clipTitleWithChip:`clipTitleWithChip-OU+0rc`,clipTitleChipWrapper:`clipTitleChipWrapper-Lh3igh`,clipTitle:`clipTitle-VfjqsZ`,closed:`closed-olRltf`,clipDescription:`clipDescription-01Nat9`,metadataRight:`metadataRight-ENfy74`,clipLikes:`clipLikes-QLT+g2`,clipShares:`clipShares-DnifFI`,isLiked:`isLiked-2rFFBz`},or=function(e){var t,n,r,a=e.clip,o=e.clipsNavService,s=e.closeButtonTitle,c=e.collection,l=e.clipIndex,u=e.currentClipNavigationCategory,d=e.feedTitle,f=e.feedTitleImageUrl,p=e.handleSelectCategory,m=e.incrementLoopCount,h=e.isActiveSwiperSlide,g=e.isMuted,_=e.isLastPlayerInStack,v=e.isPausedGlobally,y=e.onClose,b=e.shouldCloseOnForegroundAction,x=b===void 0||b,S=e.shouldPauseOnForegroundAction,C=S!==void 0&&S,w=e.showCategories,T=e.toggleMute,E=e.isAnimatingIn,D=e.isAnimatingOut,O=e.videoRef,k=(0,nn.F)(),A=k.clipPlayer,j=k.player.icons,M=(0,i.useRef)(null),N=(0,i.useState)(h&&!qt.Z.isPlaybackEnabled),P=N[0],F=N[1],I=(0,i.useState)(!1),L=I[0],R=I[1],z=(0,i.useState)(!1),B=z[0],V=z[1],H=(0,i.useState)(!1),U=H[0],W=H[1],ee=(0,i.useState)(!1),G=ee[0],te=ee[1],ne=(0,i.useState)(!1),re=ne[0],ie=ne[1],K=(0,i.useRef)(null),ae=(0,i.useRef)(null),q=Bn({clip:a,clipIndex:a.indexInCollection,collection:c}),oe=q.onLike,se=q.isLiked,ce=A.disableUrls,le=A.showLikeButton,ue=A.showShareButton,de=(0,i.useCallback)((function(){var e;qt.Z.isPlaybackEnabled?(e=M.current)==null||e.play().catch((function(e){console.error(e),e.name===`NotAllowedError`&&F(!0)})):F(!0)}),[]),fe=(0,i.useCallback)((function(e){e===void 0&&(e=!0),de(),F(!1),e&&Tn.Z.recordActivity(new An(a,a.indexInCollection,c))}),[a,de,c]),pe=(0,i.useCallback)((function(e){var t;e===void 0&&(e=!0),(t=M.current)==null||t.pause(),F(!0),e&&Tn.Z.recordActivity(new kn(a,a.indexInCollection,c))}),[M,a,c]),me=er({clip:a,clipIndex:a.indexInCollection,collection:c,onClose:y,onOpenForegroundAction:C?function(){return pe(!1)}:void 0,shouldCloseOnForegroundAction:x}),J=me.onPrimaryAction,he=me.onSecondaryAction,ge=me.primaryActionText,_e=me.secondaryActionText,ve=(0,i.useCallback)((function(){var e=M.current?.paused;if(!e||qt.Z.isPlaybackEnabled)return e?fe():pe()}),[M,fe,pe]),Y=Gn({clip:a,clipIndex:a.indexInCollection,clipsNavService:o,collection:c,handleVideoPlay:fe,handleVideoPause:pe}),ye=Y.onClipShare,be=Y.isShareActive,xe=Y.sharesCount,Se=(0,i.useCallback)((function(){fe(!1),m(a.id,a.indexInCollection)}),[fe,a.id,a.indexInCollection,m]),Ce=h&&P,we=(0,i.useMemo)((function(){var e=a.clipCategories.find((function(e){return e.externalId===u}));return e?.displayTitle||e?.name}),[a.clipCategories,u]);(0,i.useEffect)((function(){var e=ae.current||{},t=e.scrollHeight,n=e.offsetHeight;ie(!(!t||!n)&&n<t)}),[ae.current?.scrollHeight]);var X=(0,i.useCallback)((function(){var e=M.current,t=e?.readyState!==4;if(e&&h&&!t&&!U){var n=e.buffered?.length-1;n>=0&&e.buffered?.end(n)===e.duration&&W(!0)}}),[h,U]),Te=(0,i.useCallback)((function(){K.current&&=(clearTimeout(K.current),null),R(!1),V(!0),F(!1)}),[]),Ee=(0,i.useCallback)((function(){V(!1)}),[]),De=(0,i.useCallback)((function(){K.current&&=(clearTimeout(K.current),null),R(!1),h&&!U&&(de(),V(!0))}),[h,U,de]);(0,i.useEffect)((function(){Wt.Z.on(Mn._.playbackEnabled,(function(){h&&o.isTabActive&&fe(!1)}))}),[o,fe,h]),(0,i.useEffect)((function(){Wt.Z.on(Mn._.playbackDisabled,(function(){pe(!1)}))}),[pe]),nr({clipsNavService:o,isActiveSwiperSlide:h,isPausedGlobally:v,isPausedBeforePageInactive:P,handlePlay:fe,handlePause:pe}),(0,i.useEffect)((function(){h?qt.Z.isPlaybackEnabled||F(!0):(F(!1),R(!1))}),[h]),(0,i.useEffect)((function(){R(!1)}),[a.id]);var Oe=(0,i.useCallback)((function(){K.current&&=(clearTimeout(K.current),null),K.current=setTimeout((function(){M.current?.readyState===HTMLMediaElement.HAVE_NOTHING&&R(!0),K.current=null}),1e4)}),[]),ke=(0,i.useCallback)((function(){var e;F(!1),V(!1),W(!1),R(!1),(e=M.current)==null||e.load(),Oe()}),[Oe]);return(0,i.useEffect)((function(){return h?Oe():K.current&&=(clearTimeout(K.current),null),function(){K.current&&=(clearTimeout(K.current),null)}}),[Oe,h]),i.default.createElement(Cn,{backButtonIcon:j.back,clipsNavService:o,closeButtonTitle:s,hasError:L,header:i.default.createElement(i.default.Fragment,null,we?i.default.createElement(`h2`,{className:ar.feedTitle},we):i.default.createElement(i.default.Fragment,null,f?i.default.createElement(Sn.Ee,{className:ar.feedTitleImage,src:f,alt:d,width:794,height:100}):i.default.createElement(i.default.Fragment,null,d?i.default.createElement(`h2`,{className:ar.feedTitle},d):null))),isActiveSwiperSlide:h,isAnimatingIn:E,isAnimatingOut:D,isLastPlayerInStack:_,isMuted:g,metadata:i.default.createElement(i.default.Fragment,null,i.default.createElement(`div`,{className:ar.metadataLeft},i.default.createElement(`div`,{className:ar.clipTitleWithChip},a.isLive&&i.default.createElement(`div`,{className:ar.clipTitleChipWrapper},i.default.createElement(Qt.A,{cellType:jn.E.square,chipType:wn.x.liveUnread,alignment:`left`})),i.default.createElement(`div`,{className:Ut()(ar.clipTitle,(t={},t[ar.closed]=!G,t)),ref:ae},i.default.createElement(`p`,null,a.description))),w&&i.default.createElement(`p`,{className:ar.clipDescription},i.default.createElement(ir,{categories:a.clipCategories,currentCategory:u,handleSelectCategory:function(e){p(e,l)},isExpanded:G,isTitleExpandable:re,setIsExpanded:te}
50))),i.default.createElement(`div`,{className:ar.metadataRight},le&&i.default.createElement(`div`,{className:Ut()(ar.clipLikes,(n={},n[ar.isLiked]=se,n))},i.default.createElement(`button`,{onClick:oe,className:ar.actionButton,title:`${se?`Unlike`:`Like`} this Clip`},i.default.createElement(Zt.Heart,null)),i.default.createElement(`span`,{className:ar.values},$t(se?a.likeCount+1:a.likeCount))),be&&ue&&!ce&&i.default.createElement(`div`,{className:ar.clipShares},i.default.createElement(`button`,{onClick:ye,className:ar.actionButton,title:`Share this Clip`},i.default.createElement(Zt.Share,null)),i.default.createElement(`span`,{className:ar.values},$t(xe))))),onClose:y,onRetry:ke,onPrimaryAction:J,onSecondaryAction:he,primaryActionText:ge,secondaryActionText:_e,showPlayButton:Ce,toggleMute:T,togglePause:ve},i.default.createElement(`div`,{className:ar.videoWrapper},!B&&!P&&!E&&!D&&!L&&i.default.createElement(`div`,{className:ar.blankVideo},i.default.createElement(tn,null)),i.default.createElement(`video`,{ref:function(e){M.current=e,O(e)},className:Ut()(ar.video,(r={},r[ar.hasError]=L,r)),preload:`auto`,muted:g,onEnded:Se,onWaiting:Ee,onPlaying:Te,onProgress:X,onLoadedData:De,onError:function(e){var t=e.target?.src;t&&(t===a.url||a.isLive)&&R(!0)},"aria-label":a.description,playsInline:!0})))},sr=n(830),cr=n(7753),lr=n(4388),ur=n(1438);function dr(){return On.Z.settings&&On.Z.settings.adsFrom===ur.m.storyteller?i.default.createElement(i.default.Fragment,null,i.default.createElement(`template`,{id:`image-ad`,type:`amp-mustache`},i.default.createElement(`amp-img`,{src:`{{creativeUrl}}`,layout:`fill`,width:`720`,height:`1280`,id:`image-ad-media`})),i.default.createElement(`template`,{id:`video-ad`,type:`amp-mustache`},i.default.createElement(`amp-video`,{autoplay:!0,loop:!0,layout:`fill`,width:`1080`,height:`1920`,id:`video-ad-media`},i.default.createElement(`source`,{type:`video/mp4`,src:`{{creativeUrl}}`})))):null}var fr=n(7409);function pr(e){var t=e===void 0?{}:e,n=t.maxTouchPoints,r=t.platform,i=r===void 0?``:r,a=t.userAgent;return/iPad|iPhone|iPod/.test(a===void 0?``:a)||i===`MacIntel`&&(n||0)>1}function mr(){return typeof navigator<`u`&&(e={maxTouchPoints:navigator.maxTouchPoints,platform:navigator.platform,userAgent:navigator.userAgent},n=(t=e===void 0?{}:e).maxTouchPoints,r=t.platform,i=r===void 0?``:r,a=t.userAgent,s=pr({maxTouchPoints:n,platform:i,userAgent:o=a===void 0?``:a}),c=/Safari/.test(o)&&!/CriOS|FxiOS|EdgiOS|OPiOS|DuckDuckGo/i.test(o),s&&c);var e,t,n,r,i,a,o,s,c}function hr(e){return e!==fr.G.image&&mr()}function gr(e){return e===fr.G.video&&typeof navigator<`u`&&pr({maxTouchPoints:navigator.maxTouchPoints,platform:navigator.platform,userAgent:navigator.userAgent})}var _r=`adSurface-43atRA`,vr=`adLayout-9rnON9`,yr=`pausedPosterFallback-v9WGoJ`,br=`metadata-jt5mEH`,xr=`adChip-usoBg7`,Sr=`advertiserName-YpMqPV`,Cr=function(e){var t=e.ad,n=e.clipsNavService,a=e.isActiveSwiperSlide,o=e.isMuted,s=e.toggleMute,c=e.updateClipPlayerBackground,l=(0,r._T)(e,[`ad`,`clipsNavService`,`isActiveSwiperSlide`,`isMuted`,`toggleMute`,`updateClipPlayerBackground`]),u=hr(t.pageType),d=(0,i.useState)(t.isPausedByUser),f=d[0],p=d[1],m=(0,i.useState)((function(){return u})),h=m[0],g=m[1],_=(0,i.useState)(!1),v=_[0],y=_[1],b=(0,i.useState)(t.element.backgroundImageUrl||null),x=b[0],S=b[1],C=(0,i.useState)(0),w=C[0],T=C[1],E=(0,i.useRef)(null),D=(0,i.useRef)(null),O=t.pageType===fr.G.video,k=o||h,A=(0,i.useRef)(k);A.current=k;var j=a&&f&&!!x&&gr(t.pageType),M=a&&v&&!!x&&t.pageType===fr.G.video,N=j||M||!a&&!!x,P=function(e){var t=e.ad,n=e.clipsNavService,r=e.isActive,a=(0,i.useMemo)((function(){return n.activeClip}),[n.activeClip]);(0,i.useEffect)((function(){r&&Tn.Z.recordActivity(new sr.Aw({ad:t,openedReason:lr.T.swipe}))}),[t,a,r]);var o=(0,i.useCallback)((function(e){var n=e.detail.progressType;n===`firstQuartile`?Tn.Z.recordActivity(new sr.mp({ad:t})):n===`midpoint`?Tn.Z.recordActivity(new sr.ku({ad:t})):n===`thirdQuartile`&&Tn.Z.recordActivity(new sr.C$({ad:t}))}),[t]),s=(0,i.useCallback)((function(){Tn.Z.recordActivity(new sr.r8({ad:t}))}),[t]),c=(0,i.useCallback)((function(){Tn.Z.recordActivity(new sr.V3({ad:t}))}),[t]),l=(0,i.useCallback)((function(){Tn.Z.recordActivity(new sr.YC({ad:t}))}),[t]),u=(0,i.useCallback)((function(){Tn.Z.recordActivity(new sr.Ed({ad:t}))}),[t]);return(0,i.useEffect)((function(){return t.element.addEventListener(cr.k.progress,o),t.element.addEventListener(cr.k.complete,s),function(){t.element.removeEventListener(cr.k.progress,o),t.element.removeEventListener(cr.k.complete,s)}}),[t.element,s,o]),{handleAdActionButtonTapped:u,handlePausedAdEvent:c,handleResumedAdEvent:l}}({ad:t,clipsNavService:n,isActive:a}),F=P.handleAdActionButtonTapped,I=P.handlePausedAdEvent,L=P.handleResumedAdEvent,R=(0,i.useCallback)((function(e){var n,r,i,a;e===void 0&&(e=!1),e&&(A.current=!0,g(!0)),t.pageType===fr.G.video&&(e||A.current?(r=(n=t.element).mute)==null||r.call(n):(a=(i=t.element).unmute)==null||a.call(i))}
50),[t]),z=(0,i.useCallback)((function(e){return(!t.isPausedByUser||e!=null&&e.ignoreUserPausedState||e!=null&&e.userInitiated)&&R(u&&!e?.userInitiated),t.play(e)}),[t,u,R]),B=(0,i.useCallback)((function(){return R(u),t.restart()}),[t,u,R]),V=(0,i.useCallback)((function(){D.current!==null&&(window.clearTimeout(D.current),D.current=null)}),[]),H=(0,i.useCallback)((function(){t.pageType===fr.G.video&&(V(),y(!0),D.current=window.setTimeout((function(){y(!1),D.current=null}),500))}),[t.pageType,V]);(0,i.useEffect)((function(){E.current&&t.insert(E.current)}),[t]),(0,i.useEffect)((function(){var e,n,r,i;return a?(n=(e=t.element).attachPlaybackListeners)==null||n.call(e):(i=(r=t.element).removePlaybackListeners)==null||i.call(r),function(){var e,n;(n=(e=t.element).removePlaybackListeners)==null||n.call(e)}}),[t.element,a]),(0,i.useEffect)((function(){var e,n=!1,r=function(e){e&&!n&&S(e)};return t.element.backgroundImageUrl?r(t.element.backgroundImageUrl):(e=t.element.getBackgroundImageUrl)==null||e.then((function(e){r(e)})).catch((function(e){return console.log(e)})),function(){n=!0}}),[t,w]),(0,i.useEffect)((function(){a&&x&&n.isActiveSlide(t)&&c(1,x)}),[t,n,a,x,c]),(0,i.useEffect)((function(){p(t.isPausedByUser),g(u),S(t.element.backgroundImageUrl||null),y(!1),V()}),[t,V,u]),(0,i.useEffect)((function(){if(!a)return t.pause(),y(!1),void V();O?z({ignoreUserPausedState:t.isPausedByUser})?(p(!1),H()):t.isPausedByUser&&(p(!0),y(!1)):y(!1)}),[t,O,V,a,z,H]),(0,i.useEffect)((function(){var e=function(){T((function(e){return e+1}))};return t.element.addEventListener(cr.k.load,e),function(){t.element.removeEventListener(cr.k.load,e)}}),[t]),(0,i.useEffect)((function(){var e=function(){a&&B()&&(p(!1),H())};return t.element.addEventListener(cr.k.complete,e),function(){t.element.removeEventListener(cr.k.complete,e)}}),[t,a,B,H]);var U=(0,i.useCallback)((function(){t.pageType===fr.G.video&&(z()?(p(!1),H()):t.isPausedByUser&&p(!0))}),[t,z,H]),W=(0,i.useCallback)((function(){t.pause(),y(!1),V()}),[t,V]),ee=(0,i.useCallback)((function(){p(!0)}),[]);nr({clipsNavService:n,isActiveSwiperSlide:a,isPausedBeforePageInactive:t.isPausedByUser,shouldRemainPausedWhenPageBecomesActive:t.isPausedByUser,handlePlay:U,handlePause:W,handleRestorePausedState:ee});var G=(0,i.useCallback)((function(){t.element&&t.element.pause&&t.element.play&&O&&(f?z({userInitiated:!0})&&(n.pausedStateToRestore=!1,p(!1),H(),L()):(t.pause({userInitiated:!0}),p(!0),y(!1),V(),I()))}),[t,O,n,V,I,L,f,z,H]),te=(0,i.useCallback)((function(){var e,n;h?(g(!1),A.current=o,o?s():(n=(e=t.element).unmute)==null||n.call(e)):s()}),[t.element,o,h,s]);return(0,i.useEffect)((function(){a&&O&&R()}),[O,a,o,R]),i.default.createElement(Cn,(0,r.pi)({},l,{clipsNavService:n,isActiveSwiperSlide:a,isMuted:k,metadata:i.default.createElement(`div`,{className:br},i.default.createElement(`p`,{className:xr},`Ad`),t.advertiserName?i.default.createElement(`p`,{className:Sr},t.advertiserName):null),onPrimaryAction:function(e){e.stopPropagation(),t.swipeUpUrl&&(n.pausedStateToRestore=t.isPausedByUser,t.pause(),y(!1),V(),F(),$n({url:t.swipeUpUrl,openInNewTab:!0}))},primaryActionText:t.swipeUpText,showPlayButton:a&&f&&O,toggleMute:O?te:void 0,togglePause:G}),i.default.createElement(`div`,{className:_r},i.default.createElement(`amp-layout`,{ref:E,className:vr,layout:`fill`},i.default.createElement(dr,null)),N&&x&&i.default.createElement(`img`,{alt:``,"aria-hidden":`true`,className:yr,"data-st-ad-poster-fallback":``,"data-st-paused-ad-poster-fallback":``,src:x})))},wr=n(7502),Tr=n(4881),Er,Dr=n(546),Or=function(){return(0,i.useContext)(Dr.Z)},kr=n(4990),Ar=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.clip=t,a.clipIndex=n,a.collection=r,a.openedReason=i,a.activityType=Dn.T.openedClip,a.alwaysSend=!0,a.isDisabled=function(){return!Nn.Z.isFunctionalFeatureEnabled(Pn.d.clipViewedStatus)},a.clipAction=a.clip.primaryAction||a.clip.secondaryAction,a}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,o
50penedReason:this.openedReason,collection:this.collection,categories:this.clip.clipCategories.map((function(e){return e.name})),categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)})),contentLength:this.clip.duration}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,openedReason:this.openedReason,collection:this.collection,categories:this.clip.clipCategories.map((function(e){return e.name})),categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)})),contentLength:this.clip.duration}},t}(En.Z),jr=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clip=t,i.clipIndex=n,i.collection=r,i.activityType=Dn.T.completedLoop,i.clipAction=i.clip.primaryAction||i.clip.secondaryAction,i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),Mr=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.clip=t,a.clipIndex=n,a.collection=r,a.reason=i,a.activityType=Dn.T.dismissedClip,a.clipAction=a.clip.primaryAction||a.clip.secondaryAction,a}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,dismissedReason:this.reason,durationViewed:Tn.Z.clipsPlayerDurationViewed,clipsViewed:Tn.Z.clipsViewed,loopsViewed:Tn.Z.loopsViewed,collection:this.collection,categories:this.clip.clipCategories.map((function(e){return e.name})),categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,dismissedReason:this.reason,durationViewed:Tn.Z.clipsPlayerDurationViewed,clipsViewed:Tn.Z.clipsViewed,loopsViewed:Tn.Z.loopsViewed,collection:this.collection,categories:this.clip.clipCategories.map((function(e){return e.name})),categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),Nr=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.clip=t,a.clipIndex=n,a.collection=r,a.durationViewed=i,a.activityType=Dn.T.finishedClip,a.clipAction=a.clip.primaryAction||a.clip.secondaryAction,a}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,loopsViewed:Tn.Z.getLoopsViewedForClip(this.clip.id),durationViewed:this.durationViewed,contentLength:this.clip.duration,collection:this.collection,categories:this.clip.clipCategories.map((function(e){return e.name})),categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,loopsViewed:Tn.Z.getLoopsViewedForClip(this.clip.id),durationViewed:this.durationViewed,contentLength:this.clip.duration,collection:this.collection,categories:this.clip.clipCategories.map((function(e){return e.name})),categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),Pr=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clip=t,i.clipIndex=n,i.collection=r,i.activityType=Dn.T.previousClip,i.clipAction=i.clip.primaryAction||i.clip.secondaryAction,i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),Fr=function(e){function t(t,n,r){var i=e.call(this)||this;return i.clip=t,i.clipIndex=n,i.collection=r,i.activityType=Dn.T.nextClip,i.clipAction=i.clip.primaryAction||i.clip.secondaryAction,i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map((function(e){return new Z.B(e)}))}},t}(En.Z),Ir=function(e){return e?new Date().getTime()-e.getTime():0},Lr=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.clip=t,a.clipIndex=n,a.collection=r,a.category=i,a.activityType=Dn.T.dismissedCategory,a.clipAction=a.clip.primaryAction||a.clip.secondaryAction,a}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:[new Z.B(this.category)],c
50ategoryId:this.category.id,categoryName:this.category.name}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:[new Z.B(this.category)],categoryId:this.category.id,categoryName:this.category.name}},t}(En.Z),Rr=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.clip=t,a.clipIndex=n,a.collection=r,a.category=i,a.activityType=Dn.T.openedCategory,a.clipAction=a.clip.primaryAction||a.clip.secondaryAction,a}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:On.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:[new Z.B(this.category)],categoryId:this.category.id,categoryName:this.category.name}},t.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:this.clipAction?.text,clipActionUrl:this.clipAction?.url,collection:this.collection,categories:this.clip.categories,categoryDetails:[new Z.B(this.category)],categoryId:this.category.id,categoryName:this.category.name}},t}(En.Z);(function(e){e.slideIndex=`data-swiper-slide-index`,e.slideId=`data-id`,e.slideHash=`data-hash`,e.slideHistory=`data-history`})(Er||={});var zr=function(e){var t=e.clipsNavService,n=e.clips,r=e.collection,a=e.initialClipId,o=e.ignoreDismissPlayerEvents,s=o!==void 0&&o,c=e.isCategoryNavigation,l=e.categoryName,u=e.setIsReady,d=(0,nn.F)().clipPlayer,f=Or(),p=(0,i.useState)(),m=p[0],h=p[1],g=(0,i.useState)(),_=g[0],v=g[1],y=(0,i.useRef)(kr.z.backButtonTapped),b=(0,Bt.k6)(),x=(0,Bt.TH)().search,S=new URLSearchParams(x).get(`openedReason`)===lr.T.clipListTap,C=new URLSearchParams(x).get(`openedReason`)===lr.T.deepLink,w=new Date,T=(0,i.useMemo)((function(){return c?C?lr.T.deepLink:lr.T.categoryListTap:S?lr.T.clipListTap:lr.T.deepLink}),[c,S,C]),E=(0,i.useCallback)((function(e){var t;if(!d.disableUrls){var n=(e.virtual&&e.virtual.slides.length>0?e.virtual.slides:e.slides).find((function(t){return Number(t.getAttribute(Er.slideIndex))===e.realIndex})),r=n?n.getAttribute(Er.slideHash)||n.getAttribute(Er.slideHistory):``;r&&((t=window.history)==null||t.replaceState(null,``,`${location.pathname}${location.search}#${r}`))}}),[d.disableUrls]),D=(0,i.useCallback)((function(e){qt.Z.isVisible=!0,y.current=kr.z.backButtonTapped,Tn.Z.clipsPlayerViewStartTime=new Date,Tn.Z.clipsViewed++;var n=t.getAppendedSlideByIndex(e.realIndex);if(n&&!(0,Jt.A6)(n)){var i=n;Tn.Z.resetLoopsViewedForClip(i.id);var o=i.clipCategories.find((function(e){return e.externalId===l}));c&&o&&Tn.Z.recordActivity(new Rr(i,i.indexInCollection,r,o))}if(e.onClose=function(){var t;qt.Z.isVisible=!1,e.disable(),e.destroy(),(t=f.onPlayerDismissed)==null||t.call(f)},v((function(){return function(){var t;qt.Z.isVisible=!1,e.disable(),e.destroy(),(t=f.onPlayerDismissed)==null||t.call(f)}})),e.slidePrev(0,!1),e.slideNext(0,!1),!c){var s=a;if(!s&&!d.disableUrls){var p=document.location.hash.replace(`#`,``),m=p.indexOf(`?`);s=m===-1?p:p.substring(0,m)}var g=e.virtual&&e.virtual.slides.length>0?e.virtual.slides:e.slides,_=(s?g.find((function(e){return e.getAttribute(d.disableUrls?Er.slideId:Er.slideHash)?.includes(s)})):void 0)?.getAttribute(Er.slideIndex)||0;e.slideToLoop(_,0,!1),n=t.getAppendedSlideByIndex(_)}n&&!(0,Jt.A6)(n)&&(i=n,Vn.Z.setClipViewed(i.id),Tn.Z.recordActivity(new Ar(i,i.indexInCollection,r,T))),u(!0),h(e.realIndex)}),[t,r,f,T,a,c,l,u,d.disableUrls]),O=(0,i.useCallback)((function(e){if(e&&e.initialised){var n=e.realIndexBeforeTransition;h(e.realIndex);var i=t.getAppendedSlideByIndex(n),a=t.getAppendedSlideByIndex(e.realIndex);if(i&&!(0,Jt.A6)(i)){var o=i;Tn.Z.recordActivity(new Nr(o,o.indexInCollection,r,Ir(w))),Tn.Z.recordActivity(new Fr(o,o.indexInCollection,r))}if(i&&(0,Jt.A6)(i)){var s=i;Tn.Z.recordActivity(new sr.yF({ad:s}))}if(a&&!(0,Jt.A6)(a)){var c=a;Vn.Z.setClipViewed(c.id),Tn.Z.recordActivity(new Ar(c,c.indexInCollection,r,lr.T.swipe)),Tn.Z.resetLoopsViewedForClip(c.id),w=new Date,Tn.Z.clipsViewed++}E(e)}}),[t.appendedSlides,n,r,c]),k=(0,i.useCallback)((function(e){if(e&&e.initialised){var n=e.realIndexBeforeTransition,i=t.getAppendedSlideByIndex(n),a=t.getAppendedSlideByIndex(e.realIndex);if(h(e.realIndex),i&&!(0,Jt.A6)(i)){var o=i;Tn.Z.recordActivity(new Nr(o,o.indexInCollection,r,Ir(w))),Tn.Z.recordActivity(new Pr(o,o.indexInCollection,r))}if(i&&(0,Jt.A6)(i)){var s=i;Tn.Z.recordActivity(new sr.yF({ad:s}))}if(a&&!(0,Jt.A6)(a)){var c=a;Vn.Z.setClipViewed(c.id),Tn.Z.recordActivity(new Ar(c,c.indexInCollection,r,lr.T.swipe)),Tn.Z.resetLoopsViewedForClip(c.id),w=new Date,Tn.Z.clipsViewed++}E(e)}}),[t.appendedSlides,n,r]),A=(0,i.useCallback)((function(e){var n=t.getAppendedSlideByIndex(e.realIndex);if(n&&!(0,Jt.A6)(n)){var i=n;Tn.Z.recordActivity(new Nr(i,i.indexInCollection,r,Ir(w))),Tn.Z.resetLoopsViewedForClip(i.id)}if(n&&(0,Jt.A6)(n)){var a=n;Tn.Z.recordActivity(new sr.yF({ad:a}))}if(c){var o=null;n&&!(0,Jt.A6)(n)&&(o=(i=n).clipCategories.find((function(e){return e.externalId===l})))&&Tn.Z.recordActivity(new Lr(i,i.indexInCollection,r,o))}else{if(n&&!(0,Jt.A6)(n)){var i=n;Tn.Z.recordActivity(new Mr(i,i.indexInCollection,r,y.current))}
50n&&(0,Jt.A6)(n)&&(a=n,Tn.Z.recordActivity(new sr.KS({ad:a,dismissedReason:y.current}))),b.push(`/storyteller-home`);var s=new URL(window.location.href);s.hash=``,window.history.replaceState(`{}`,``,s)}}),[t,l,r,y,c,b,w]),j=(0,i.useCallback)((function(e,t){Tn.Z.incrementLoopsViewedForClip(e);var i=n.findIndex((function(t){return t.id===e}));i>-1&&Tn.Z.recordActivity(new jr(n[i],t,r))}),[n,r]),M=(0,i.useCallback)((function(e){if(e!==void 0){var t=n.findIndex((function(t){return t.indexInCollection===e}));t>-1&&Tn.Z.recordActivity(new Nr(n[t],n[t].indexInCollection,r,Ir(w)))}}),[n,r,w]),N=(0,i.useCallback)((function(){if(m!==void 0){var e=t.getAppendedSlideByIndex(m);if(e&&!(0,Jt.A6)(e)){var n=e;Tn.Z.recordActivity(new Ar(n,n.indexInCollection,r,lr.T.categoryBackTap)),w=new Date,Tn.Z.clipsViewed++}}}),[m,t.appendedSlides]);return(0,i.useEffect)((function(){Wt.Z.on(Mn._.dismissPlayer,(function(){s||(y.current=kr.z.instanceMethod,_?.())}))}),[s,_]),{clipDismissedReason:y,onAfterInit:D,onDestroy:A,onSlideNext:O,onSlidePrev:k,onClose:_,onTopLevelBackTap:(0,i.useCallback)((function(){(function(e){var t=e.delegate,n=e.historyBack,r=n===void 0?function(){return window.history.back()}:n;t.onTopLevelBackTapped?t.onTopLevelBackTapped():r()})({delegate:f})}),[f]),incrementLoopCount:j,sendFinishedClipCommandOnClipCategorySelect:M,sendOpenedClipCommandOnClipCategoryReset:N}},Br=function(e,t){(0,i.useEffect)((function(){if(!t){var n=e.current;return function(){t||n!=null&&n.swiper.destroyed||n==null||n.swiper.destroy()}}}),[e,t])},Vr=n(373),Hr=n(7563),Ur=function(e){var t=e.activeClipId,n=e.clips,r=e.clipsNavService,a=e.initialClipId,o=e.isActiveCategory,s=e.isPlayerReady,c=e.onSlidesAppendedOrReappended,l=e.updateClipPlayerBackground,u=(0,Hr.fx)().loadHlsLibrary,d=(0,i.useRef)({}),f=(0,i.useRef)({}),p=(0,i.useState)(!1),m=p[0],h=p[1],g=(0,i.useState)(0),_=g[0],v=g[1],y=(0,i.useCallback)((function(e){return new Promise((function(t){if(f.current[e.id])return t(f.current[e.id]);var n=new Image;n.src=e.thumbnailUrl,n.onload=function(){return f.current[e.id]=n,t(n)}}))}),[]),b=(0,i.useCallback)((function(e){e===void 0&&(e=!1),Object.values(d.current).forEach((function(e){e&&e.pause()})),r.appendedSlides.forEach((function(t,n){if((0,Jt.A6)(t))e?t.hide():t.pause();else if(e){var i=r.clipIndicesToLoadOrPreload.includes(t.indexInCollection),a=d.current[n];a&&!i&&(a.removeAttribute(`poster`),a.removeAttribute(`src`),a.src=``)}}))}),[r]),x=(0,i.useCallback)((function(e,t){return new Promise((function(n,i){var a=e.canPlayType(`application/vnd.apple.mpegurl`);if(!t.isLive||a)return e.src!==t.url&&(e.setAttribute(`src`,t.url),e.load(),e.addEventListener(`loadeddata`,(function(){e.src===t.url&&e.readyState>=2&&e.removeAttribute(`poster`)}))),e.hlsInstance&&(e.hlsInstance.detachMedia(),e.hlsInstance.destroy()),n();u().then((function(){if(!r.clipIndicesToLoadOrPreload.includes(t.indexInCollection))return n();if(!Hls.isSupported())return i(Error(`HLS is not supported`));if(t.liveStreamUrl&&t.liveStreamUrl===e.src)return n();var a=e.hlsInstance||new Hls;a.loadSource(t.url),a.attachMedia(e),a.on(Hls.Events.MEDIA_ATTACHED,(function(){var r=e.src;return e.hlsInstance=a,t.liveStreamUrl=r,e.addEventListener(`loadeddata`,(function(){e.src===r&&e.readyState>=2&&e.removeAttribute(`poster`)})),n()})),a.on(Hls.Events.ERROR,(function(e,t){return i(t&&typeof t==`object`&&`details`in t?Error(t.details):Error(`Unknown HLS error`))}))})).catch((function(e){return i(e)}))}))}),[r,u]),S=(0,i.useCallback)((function(){r.appendedSlides.forEach((function(e,t){if((0,Jt.A6)(e)){var n=r.isActiveSlide(e);r.setHasUserSeenAnAd(!0),e.show(n,{startMuted:n&&hr(e.pageType)});return}var i=e,a=r.clipIndicesToLoadOrPreload.includes(i.indexInCollection),o=d.current[t];a?(y(i).then((function(e){if(r.clipIndicesToLoadOrPreload.includes(i.indexInCollection)){var t=o.readyState>=2,n=!1;o.src&&(n=i.isLive&&i.liveStreamUrl?o.src===i.liveStreamUrl:o.src===i.url);var a=r.activeClipIndexInCollection===i.indexInCollection;n&&t?o.removeAttribute(`poster`):a||o.setAttribute(`poster`,e.src),a&&l(r.activeAppendedSlideIndex,e.src)}})).catch((function(){})),o&&x(o,i).then((function(){var e=r.activeClipIndexInCollection===i.indexInCollection,n=r.activeAppendedSlideIndex===t;e&&n&&r.isActiveCategory&&qt.Z.isPlaybackEnabled?o.play().catch((function(e){var n=r.activeClipIndexInCollection===i.indexInCollection,a=r.activeAppendedSlideIndex===t;e.name===`AbortError`&&n&&a?o.play():console.error(e)})):o.pause()})).catch((function(e){Vr.Z.logError(e.message)}))):o&&o.pause()}))}),[r,y,l,x]);(0,i.useEffect)((function(){if(s&&m)return r.isUserScrollingQuickly&&b(!0),r.onScrollEnd((function(){S()})),void h(!1)}),[r,s,b,S,m]);
50var C=(0,i.useCallback)((function(e){r.setCollectionClips(e,a),v(r.appendedSlides.length),h(!0)}),[r,a]),w=(0,i.useCallback)((function(e,t){h(!1),r.goToClip(e,t),v(r.appendedSlides.length),c()}),[r,c]);(0,i.useEffect)((function(){n.length!==0&&(o?t?w(t,n):r.appendedSlides.length>0?(r.reopenClipPlayer(),h(!0)):C(n):b())}),[t,C,n,r,o,b,w]);var T=(0,i.useCallback)((function(e,t){r.appendedSlides[e]&&(r.recordNavigationEvent({appendedSlideIndex:e,direction:t}),b(),h(!0))}),[r,b]);return(0,i.useEffect)((function(){var e=d.current;return function(){h(!1),r.closePlayer(),Object.values(e).forEach((function(e){var t,n;e&&((t=e.hlsInstance)==null||t.detachMedia(),(n=e.hlsInstance)==null||n.destroy())}))}}),[]),{clipsVideosEls:d,totalAppendedSlides:_,updateActiveIndex:T}};function Wr(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function Gr(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((n=>{e[n]===void 0?e[n]=t[n]:Wr(t[n])&&Wr(e[n])&&Object.keys(t[n]).length>0&&Gr(e[n],t[n])}))}let Kr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:``},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``}};function qr(){let e=typeof document<`u`?document:{};return Gr(e,Kr),e}let Jr={document:Kr,navigator:{userAgent:``},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return``}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout<`u`&&clearTimeout(e)}};function Yr(){let e=typeof window<`u`?window:{};return Gr(e,Jr),e}function Xr(e){return e===void 0&&(e=``),e.trim().split(` `).filter((e=>!!e.trim()))}function Zr(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function Qr(){return Date.now()}function $r(e,t){t===void 0&&(t=`x`);let n=Yr(),r,i,a,o=function(e){let t=Yr(),n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||=e.style,n}(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(`,`).length>6&&(i=i.split(`, `).map((e=>e.replace(`,`,`.`))).join(`, `)),a=new n.WebKitCSSMatrix(i===`none`?``:i)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue(`transform`).replace(`translate(`,`matrix(1, 0, 0, 1,`),r=a.toString().split(`,`)),t===`x`&&(i=n.WebKitCSSMatrix?a.m41:r.length===16?parseFloat(r[12]):parseFloat(r[4])),t===`y`&&(i=n.WebKitCSSMatrix?a.m42:r.length===16?parseFloat(r[13]):parseFloat(r[5])),i||0}function ei(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function ti(){let e=Object(arguments.length<=0?void 0:arguments[0]),t=[`__proto__`,`constructor`,`prototype`];for(let r=1;r<arguments.length;r+=1){let i=r<0||arguments.length<=r?void 0:arguments[r];if(i!=null&&(n=i,!(typeof window<`u`&&window.HTMLElement!==void 0?n instanceof HTMLElement:n&&(n.nodeType===1||n.nodeType===11)))){let n=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,r=n.length;t<r;t+=1){let r=n[t],a=Object.getOwnPropertyDescriptor(i,r);a!==void 0&&a.enumerable&&(ei(e[r])&&ei(i[r])?i[r].__swiper__?e[r]=i[r]:ti(e[r],i[r]):!ei(e[r])&&ei(i[r])?(e[r]={},i[r].__swiper__?e[r]=i[r]:ti(e[r],i[r])):e[r]=i[r])}}}var n;return e}function ni(e,t,n){e.style.setProperty(t,n)}function ri(e){let{swiper:t,targetPosition:n,side:r}=e,i=Yr(),a=-t.translate,o,s=null,c=t.params.speed;t.wrapperEl.style.scrollSnapType=`none`,i.cancelAnimationFrame(t.cssModeFrameID);let l=n>a?`next`:`prev`,u=(e,t)=>
50l===`next`&&e>=t||l===`prev`&&e<=t,d=()=>{o=new Date().getTime(),s===null&&(s=o);let e=Math.max(Math.min((o-s)/c,1),0),l=.5-Math.cos(e*Math.PI)/2,f=a+l*(n-a);if(u(f,n)&&(f=n),t.wrapperEl.scrollTo({[r]:f}),u(f,n))return t.wrapperEl.style.overflow=`hidden`,t.wrapperEl.style.scrollSnapType=``,setTimeout((()=>{t.wrapperEl.style.overflow=``,t.wrapperEl.scrollTo({[r]:f})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function ii(e){return e.querySelector(`.swiper-slide-transform`)||e.shadowRoot&&e.shadowRoot.querySelector(`.swiper-slide-transform`)||e}function ai(e,t){return t===void 0&&(t=``),[...e.children].filter((e=>e.matches(t)))}function oi(e){try{console.warn(e);return}catch{}}function si(e,t){t===void 0&&(t=[]);let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Xr(t)),n}function ci(e){let t=Yr(),n=qr(),r=e.getBoundingClientRect(),i=n.body,a=e.clientTop||i.clientTop||0,o=e.clientLeft||i.clientLeft||0,s=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:r.top+s-a,left:r.left+c-o}}function li(e,t){return Yr().getComputedStyle(e,null).getPropertyValue(t)}function ui(e){let t,n=e;if(n){for(t=0;(n=n.previousSibling)!==null;)n.nodeType===1&&(t+=1);return t}}function di(e,t){let n=[],r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function fi(e,t){t&&e.addEventListener(`transitionend`,(function n(r){r.target===e&&(t.call(e,r),e.removeEventListener(`transitionend`,n))}))}function pi(e,t,n){let r=Yr();return n?e[t===`width`?`offsetWidth`:`offsetHeight`]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-right`:`margin-top`))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-left`:`margin-bottom`)):e.offsetWidth}let mi,hi,gi;function _i(){return mi||=function(){let e=Yr(),t=qr();return{smoothScroll:t.documentElement&&t.documentElement.style&&`scrollBehavior`in t.documentElement.style,touch:!!(`ontouchstart`in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}(),mi}function vi(e){return e===void 0&&(e={}),hi||=function(e){let{userAgent:t}=e===void 0?{}:e,n=_i(),r=Yr(),i=r.navigator.platform,a=t||r.navigator.userAgent,o={ios:!1,android:!1},s=r.screen.width,c=r.screen.height,l=a.match(/(Android);?[\s\/]+([\d.]+)?/),u=a.match(/(iPad).*OS\s([\d_]+)/),d=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=i===`Win32`,m=i===`MacIntel`;return!u&&m&&n.touch&&[`1024x1366`,`1366x1024`,`834x1194`,`1194x834`,`834x1112`,`1112x834`,`768x1024`,`1024x768`,`820x1180`,`1180x820`,`810x1080`,`1080x810`].indexOf(`${s}x${c}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||=[0,1,`13_0_0`],m=!1),l&&!p&&(o.os=`android`,o.android=!0),(u||f||d)&&(o.os=`ios`,o.ios=!0),o}(e),hi}function yi(){return gi||=function(){let e=Yr(),t=!1;function n(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf(`safari`)>=0&&t.indexOf(`chrome`)<0&&t.indexOf(`android`)<0}if(n()){let n=String(e.navigator.userAgent);if(n.includes(`Version/`)){let[e,r]=n.split(`Version/`)[1].split(` `)[0].split(`.`).map((e=>Number(e)));t=e<16||e===16&&r<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}(),gi}var bi={on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=n?`unshift`:`push`;return e.split(` `).forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)})),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;function i(){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;var n=[...arguments];t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!=`function`)return n;let r=t?`unshift`:`push`;return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){let n=this;return!n.eventsListeners||n.destroyed||n.eventsListeners&&e.split(` `).forEach((e=>{t===void 0?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n},emit(){let e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;var i=[...arguments];return typeof i[0]==`string`||Array.isArray(i[0])?(t=i[0],n=i.slice(1,i.length),r=e):(t=i[0].events,n=i[0].data,r=i[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(` `)).forEac
50h((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(r,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(r,n)}))})),e}};let xi=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?`swiper-slide`:`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},Si=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector(`[loading="lazy"]`);n&&n.removeAttribute(`loading`)},Ci=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r=e.params.slidesPerView===`auto`?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let n=i,a=[n-t];a.push(...Array.from({length:t}).map(((e,t)=>n+r+t))),e.slides.forEach(((t,n)=>{a.includes(t.column)&&Si(e,n)}));return}let a=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=a+t;r+=1){let t=(r%n+n)%n;(t<i||t>a)&&Si(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(a+t,n-1);r+=1)r!==i&&(r>a||r<i)&&Si(e,r)};var wi={updateSize:function(){let e=this,t,n,r=e.el;t=e.params.width!==void 0&&e.params.width!==null?e.params.width:r.clientWidth,n=e.params.height!==void 0&&e.params.height!==null?e.params.height:r.clientHeight,t===0&&e.isHorizontal()||n===0&&e.isVertical()||(t=t-parseInt(li(r,`padding-left`)||0,10)-parseInt(li(r,`padding-right`)||0,10),n=n-parseInt(li(r,`padding-top`)||0,10)-parseInt(li(r,`padding-bottom`)||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){let e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}let n=e.params,{wrapperEl:r,slidesEl:i,size:a,rtlTranslate:o,wrongRTL:s}=e,c=e.virtual&&n.virtual.enabled,l=c?e.virtual.slides.length:e.slides.length,u=ai(i,`.${e.params.slideClass}, swiper-slide`),d=c?e.virtual.slides.length:u.length,f=[],p=[],m=[],h=n.slidesOffsetBefore;typeof h==`function`&&(h=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;typeof g==`function`&&(g=n.slidesOffsetAfter.call(e));let _=e.snapGrid.length,v=e.slidesGrid.length,y=n.spaceBetween,b=-h,x=0,S=0;if(a===void 0)return;typeof y==`string`&&y.indexOf(`%`)>=0?y=parseFloat(y.replace(`%`,``))/100*a:typeof y==`string`&&(y=parseFloat(y)),e.virtualSize=-y,u.forEach((e=>{o?e.style.marginLeft=``:e.style.marginRight=``,e.style.marginBottom=``,e.style.marginTop=``})),n.centeredSlides&&n.cssMode&&(ni(r,`--swiper-centered-offset-before`,``),ni(r,`--swiper-centered-offset-after`,``));let C=n.grid&&n.grid.rows>1&&e.grid,w;C?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let T=n.slidesPerView===`auto`&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>n.breakpoints[e].slidesPerView!==void 0)).length>0;for(let r=0;r<d;r+=1){let i;if(w=0,u[r]&&(i=u[r]),C&&e.grid.updateSlide(r,i,u),!u[r]||li(i,`display`)!==`none`){if(n.slidesPerView===`auto`){T&&(u[r].style[e.getDirectionLabel(`width`)]=``);let a=getComputedStyle(i),o=i.style.transform,s=i.style.webkitTransform;if(o&&(i.style.transform=`none`),s&&(i.style.webkitTransform=`none`),n.roundLengths)w=e.isHorizontal()?pi(i,`width`,!0):pi(i,`height`,!0);else{let e=t(a,`width`),n=t(a,`padding-left`),r=t(a,`padding-right`),o=t(a,`margin-left`),s=t(a,`margin-right`),c=a.getPropertyValue(`box-sizing`);if(c&&c===`border-box`)w=e+o+s;else{let{clientWidth:t,offsetWidth:a}=i;w=e+n+r+o+s+(a-t)}}o&&(i.style.transform=o),s&&(i.style.webkitTransform=s),n.roundLengths&&(w=Math.floor(w))}else w=(a-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),u[r]&&(u[r].style[e.getDirectionLabel(`width`)]=`${w}px`);u[r]&&(u[r].swiperSlideSize=w),m.push(w),n.centeredSlides?(b=b+w/2+x/2+y,x===0&&r!==0&&(b=b-a/2-y),r===0&&(b=b-a/2-y),Math.abs(b)<.001&&(b=0),n.roundLengths&&(b=Math.floor(b)),S%n.slidesPerGroup==0&&f.push(b),p.push(b)):(n.roundLengths&&(b=Math.floor(b)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&f.push(b),p.push(b),b=b+w+y),e.virtualSize+=w+y,x=w,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+g,o&&s&&(n.effect===`slide`||n.effect===`coverflow`)&&(r.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel(`width`)]=`${e.virtualSize+y}px`),C&&e.grid.updateWrapperSize(w,f),!n.centeredSlides){let t=[];for(let r=0;r<f.length;r+=1){let i=f[r];
50n.roundLengths&&(i=Math.floor(i)),f[r]<=e.virtualSize-a&&t.push(i)}f=t,Math.floor(e.virtualSize-a)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-a)}if(c&&n.loop){let t=m[0]+y;if(n.slidesPerGroup>1){let r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)f.push(f[f.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)n.slidesPerGroup===1&&f.push(f[f.length-1]+t),p.push(p[p.length-1]+t),e.virtualSize+=t}if(f.length===0&&(f=[0]),y!==0){let t=e.isHorizontal()&&o?`marginLeft`:e.getDirectionLabel(`marginRight`);u.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==u.length-1)).forEach((e=>{e.style[t]=`${y}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;m.forEach((t=>{e+=t+(y||0)})),e-=y;let t=e-a;f=f.map((e=>e<=0?-h:e>t?t+g:e))}if(n.centerInsufficientSlides){let e=0;if(m.forEach((t=>{e+=t+(y||0)})),e-=y,e<a){let t=(a-e)/2;f.forEach(((e,n)=>{f[n]=e-t})),p.forEach(((e,n)=>{p[n]=e+t}))}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:p,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){ni(r,`--swiper-centered-offset-before`,-f[0]+`px`),ni(r,`--swiper-centered-offset-after`,e.size/2-m[m.length-1]/2+`px`);let t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(d!==l&&e.emit(`slidesLengthChange`),f.length!==_&&(e.params.watchOverflow&&e.checkOverflow(),e.emit(`snapGridLengthChange`)),p.length!==v&&e.emit(`slidesGridLengthChange`),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit(`slidesUpdated`),!(c||n.cssMode||n.effect!==`slide`&&n.effect!==`fade`)){let t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);d<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}},updateAutoHeight:function(e){let t=this,n=[],r=t.virtual&&t.params.virtual.enabled,i,a=0;typeof e==`number`?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);let o=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if(t.params.slidesPerView!==`auto`&&t.params.slidesPerView>1){if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){let e=t.activeIndex+i;if(e>t.slides.length&&!r)break;n.push(o(e))}}else n.push(o(t.activeIndex));for(i=0;i<n.length;i+=1)if(n[i]!==void 0){let e=n[i].offsetHeight;a=e>a?e:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){let e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){e===void 0&&(e=this&&this.translate||0);let t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;r[0].swiperSlideOffset===void 0&&t.updateSlidesOffset();let o=-e;i&&(o=e),r.forEach((e=>{e.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s==`string`&&s.indexOf(`%`)>=0?s=parseFloat(s.replace(`%`,``))/100*t.size:typeof s==`string`&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){let c=r[e],l=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset);let u=(o+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),d=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),f=-(o-l),p=f+t.slidesSizesGrid[e],m=f>=0&&f<=t.size-t.slidesSizesGrid[e];(f>=0&&f<t.size-1||p>1&&p<=t.size||f<=0&&p>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(e),r[e].classList.add(n.slideVisibleClass)),m&&r[e].classList.add(n.slideFullyVisibleClass),c.progress=i?-u:u,c.originalProgress=i?-d:d}},updateProgress:function(e){let t=this;if(e===void 0){let n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}let n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:a,isEnd:o,progressLoop:s}=t,c=a,l=o;if(r===0)i=0,a=!0,o=!0;else{i=(e-t.minTranslate())/r;let n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=n||i<=0,o=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){let n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],a=t.slidesGrid[r],o=t.slidesGrid[t.slidesGrid.length-1],c=Math.abs(e);s=c>=i?(c-i)/o:(c+o-a)/o,s>1&&--s}Object.assign(t,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!c&&t.emit(`reachBeginning toEdge`),o&&!l&&t.emit(`reachEnd toEdge`),(c&&!a||l&&!o)&&t.emit(`fromEdge`),t.emit(`progress`,i)},updateSlidesClasses:function(){let e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,a=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,s=e=>ai(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0],c,l,u;if(t.forEach((e=>{e.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)})),a){if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),c=s(`[data-swiper-slide-index="${t}"]`)}else c=s(`[data-swiper-slide-index="${i}"]`)}else o?(c=t.filter((e=>e.column===i))[0],u=t.filter((e=>e.column===i+1))[0],l=t.filter((e=>e.column===i-1))[0]):c=t[i];c&&(c.classList.add(n.slideActiveClass),o?(u&&u.classList.add(n.slideNextClass),l&&l.classList.add(n.slidePrevClass)):(u=function(e,t){let n=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),u&&u.classList.add(n.slideNextClass),l=function(e,t){let n=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}(c,`.${n.slideClass}, swiper-slide`)[0],n.loop,l&&l.classList.add(n.slidePrevClass))),e.emitSlidesClasses()},updateActiveIndex:function(e){let t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:o,snapIndex:s}=t,c,l=e,u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(l===void 0&&(l=function(e){let{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate,i;for(let e=0;e<t.length;e+=1)t[e+1]===void 0?r>=t[e]&&(i=e):r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1);return n.normalizeSlideIndex&&(i<0||i===void 0)&&(i=0),i}(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{let e=Math.min(i.slidesPerGroupSkip,l);c=e+Math.floor((l-e)/i.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===a&&!t.params.loop)return void(c!==s&&(t.snapIndex=c,t.emit(`snapIndexChange`)));if(l===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(l));let d=t.grid&&i.grid&&i.grid.rows>1,f;if(t.virtual&&i.virtual.enabled&&i.loop)f=u(l);else if(d){let e=t.slides.filter((e=>e.column===l))[0],n=parseInt(e.getAttribute(`data-swiper-slide-index`),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[l]){let e=t.slides[l].getAttribute(`data-swiper-slide-index`);f=e?parseInt(e,10):l}else f=l;Object.assign(t,{previousSnapIndex:s,snapIndex:c,previousRealIndex:o,realIndex:f,previousIndex:a,activeIndex:l}),t.initialized&&Ci(t),t.emit(`activeIndexChange`),t.emit(`snapIndexChange`),(t.initialized||t.params.runCallbacksOnInit)&&(o!==f&&t.emit(`realIndexChange`),t.emit(`slideChange`))},updateClickedSlide:function(e,t){let n=this,r=n.params,i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>
501&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)}));let a,o=!1;if(i){for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){o=!0,a=e;break}}if(!i||!o)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=i,n.clickedIndex=n.virtual&&n.params.virtual.enabled?parseInt(i.getAttribute(`data-swiper-slide-index`),10):a,r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},Ti={getTranslate:function(e){e===void 0&&(e=this.isHorizontal()?`x`:`y`);let{params:t,rtlTranslate:n,translate:r,wrapperEl:i}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let a=$r(i,e);return a+=this.cssOverflowAdjustment(),n&&(a=-a),a||0},setTranslate:function(e,t){let n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:o}=n,s,c=0,l=0;n.isHorizontal()?c=r?-e:e:l=e,i.roundLengths&&(c=Math.floor(c),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:l,i.cssMode?a[n.isHorizontal()?`scrollLeft`:`scrollTop`]=n.isHorizontal()?-c:-l:i.virtualTranslate||(n.isHorizontal()?c-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${c}px, ${l}px, 0px)`);let u=n.maxTranslate()-n.minTranslate();s=u===0?0:(e-n.minTranslate())/u,s!==o&&n.updateProgress(e),n.emit(`setTranslate`,n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,r,i){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);let a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),l=a.maxTranslate(),u;if(u=r&&e>c?c:r&&e<l?l:e,a.updateProgress(u),o.cssMode){let e=a.isHorizontal();if(t===0)s[e?`scrollLeft`:`scrollTop`]=-u;else{if(!a.support.smoothScroll)return ri({swiper:a,targetPosition:-u,side:e?`left`:`top`}),!0;s.scrollTo({[e?`left`:`top`]:-u,behavior:`smooth`})}return!0}return t===0?(a.setTransition(0),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionEnd`))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionStart`)),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,n&&a.emit(`transitionEnd`))},a.wrapperEl.addEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd))),!0}};function Ei(e){let{swiper:t,runCallbacks:n,direction:r,step:i}=e,{activeIndex:a,previousIndex:o}=t,s=r;if(s||=a>o?`next`:a<o?`prev`:`reset`,t.emit(`transition${i}`),n&&a!==o){if(s===`reset`)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),s===`next`?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}var Di={setTransition:function(e,t){let n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?`0ms`:``),n.emit(`setTransition`,e,t)},transitionStart:function(e,t){e===void 0&&(e=!0);let n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Ei({swiper:n,runCallbacks:e,direction:t,step:`Start`}))},transitionEnd:function(e,t){e===void 0&&(e=!0);let n=this,{params:r}=n;n.animating=!1,r.cssMode||(n.setTransition(0),Ei({swiper:n,runCallbacks:e,direction:t,step:`End`}))}},Oi={slideTo:function(e,t,n,r,i){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e==`string`&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:s,snapGrid:c,slidesGrid:l,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:m}=a;if(a.animating&&s.preventInteractionOnTransition||!m&&!r&&!i)return!1;let h=Math.min(a.params.slidesPerGroupSkip,o),g=h+Math.floor((o-h)/a.params.slidesPerGroup);g>=c.length&&(g=c.length-1);let _=-c[g];if(s.normalizeSlideIndex)for(let e=0;e<l.length;e+=1){let t=-Math.floor(100*_),n=Math.floor(100*l[e]),r=Math.floor(100*l[e+1]);l[e+1]===void 0?t>=n&&(o=e):t>=n&&t<r-(r-n)/2?o=e:t>=n&&t<r&&(o=e+1)}if(a.initialized&&o!==d&&(!a.allowSlideNext&&(f?_>a.translate&&_>a.minTranslate():_<a.translate&&_<a.minTranslate())||!a.allowSlidePrev&&_>a.translate&&_>a.maxTranslate()&&(d||0)!==o))return!1;let v;if(o!==(u||0)&&n&&a.emit(`beforeSlideChangeStart`),a.updateProgress(_),v=o>d?`next`:o<d?`prev`:`reset`,f&&-_===a.translate||!f&&_===a.translate)return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),s.effect!==`slide`&&a.setTranslate(_),v!==`reset`&&(a.transitionStart(n,v),a.transitionEnd(n,v)),!1;if(s.cssMode){let e=a.isHorizontal(),n=f?_:-_;if(t===0){let t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType=`none`,a._immediateVirtual=!0),t&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{p[e?`scrollLeft`:`scrollTop`]=n}))):p[e?`scrollLeft`:`scrollTop`]=n,t&&requestAnimationFrame((()=>{a.wrapperEl.style.scrollSnapType=``,a._immediateVirtual=!1}))}else{if(!a.support.smoothScroll)return ri({swiper:a,targetPosition:n,side:e?`left`:`top`}),!0;p.scrollTo({[e?`left`:`top`]:n,behavior:`smooth`})}return!0}return a.setTransition(t),a.setTranslate(_),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit(`beforeTransitionStart`,t,r),a.transitionStart(n,v),t===0?a.transitionEnd(n,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,v))},a.wrapperEl.addEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e==`string`&&(e=parseInt(e,10));let i=this,a=i.grid&&i.params.grid&&i.params.grid.rows>1,o=e;if(i.params.loop){if(i.virtual&&i.params.virtual.enabled)o+=i.virtual.slidesBefore;else{let e;
50if(a){let t=o*i.params.grid.rows;e=i.slides.filter((e=>1*e.getAttribute(`data-swiper-slide-index`)===t))[0].column}else e=i.getSlideIndexByData(o);let t=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n}=i.params,r=i.params.slidesPerView;r===`auto`?r=i.slidesPerViewDynamic():(r=Math.ceil(parseFloat(i.params.slidesPerView,10)),n&&r%2==0&&(r+=1));let s=t-e<r;if(n&&(s||=e<Math.ceil(r/2)),s){let r=n?e<i.activeIndex?`prev`:`next`:e-i.activeIndex-1<i.params.slidesPerView?`next`:`prev`;i.loopFix({direction:r,slideTo:!0,activeSlideIndex:r===`next`?e+1:e-t+1,slideRealIndex:r===`next`?i.realIndex:void 0})}if(a){let e=o*i.params.grid.rows;o=i.slides.filter((t=>1*t.getAttribute(`data-swiper-slide-index`)===e))[0].column}else o=i.getSlideIndexByData(o)}}return requestAnimationFrame((()=>{i.slideTo(o,t,n,r)})),i},slideNext:function(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);let r=this,{enabled:i,params:a,animating:o}=r;if(!i)return r;let s=a.slidesPerGroup;a.slidesPerView===`auto`&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic(`current`,!0),1));let c=r.activeIndex<a.slidesPerGroupSkip?1:s,l=r.virtual&&a.virtual.enabled;if(a.loop){if(o&&!l&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:`next`}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame((()=>{r.slideTo(r.activeIndex+c,e,t,n)})),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)},slidePrev:function(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);let r=this,{params:i,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:c,animating:l}=r;if(!c)return r;let u=r.virtual&&i.virtual.enabled;if(i.loop){if(l&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:`prev`}),r._clientLeft=r.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let f=d(s?r.translate:-r.translate),p=a[a.map((e=>d(e))).indexOf(f)-1];if(p===void 0&&i.cssMode){let e;a.forEach(((t,n)=>{f>=t&&(e=n)})),e!==void 0&&(p=a[e>0?e-1:e])}let m=0;if(p!==void 0&&(m=o.indexOf(p),m<0&&(m=r.activeIndex-1),i.slidesPerView===`auto`&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(m=m-r.slidesPerViewDynamic(`previous`,!0)+1,m=Math.max(m,0))),i.rewind&&r.isBeginning){let i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&r.activeIndex===0&&i.cssMode?(requestAnimationFrame((()=>{r.slideTo(m,e,t,n)})),!0):r.slideTo(m,e,t,n)},slideReset:function(e,t,n){return e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=.5);let i=this,a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),c=i.rtlTranslate?i.translate:-i.translate;if(c>=i.snapGrid[s]){let e=i.snapGrid[s];c-e>(i.snapGrid[s+1]-e)*r&&(a+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1];c-e<=(i.snapGrid[s]-e)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)},slideToClickedSlide:function(){let e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView===`auto`?e.slidesPerViewDynamic():t.slidesPerView,i,a=e.clickedIndex,o=e.isElement?`swiper-slide`:`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute(`data-swiper-slide-index`),10),t.centeredSlides?a<e.loopedSlides-r/2||a>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),a=e.getSlideIndex(ai(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),Zr((()=>{e.slideTo(a)}))):e.slideTo(a):a>e.slides.length-r?(e.loopFix(),a=e.getSlideIndex(ai(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),Zr((()=>{e.slideTo(a)}))):e.slideTo(a)}else e.slideTo(a)}},ki={loopCreate:function(e){let t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;let i=()=>{ai(r,`.${n.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute(`data-swiper-slide-index`,t)}))},a=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(a?n.grid.rows:1),s=t.slides.length%o!=0,c=a&&t.slides.length%n.grid.rows!=0,l=e=>{for(let r=0;r<e;r+=1){let e=t.isElement?si(`swiper-slide`,[n.slideBlankClass]):si(`div`,[n.slideClass,n.slideBlankClass]);t.slidesEl.append(e)}};s?(n.loopAddBlankSlides?(l(o-t.slides.length%o),t.recalcSlides(),t.updateSlides()):oi(`Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
50not function properly. You need to add more slides (or make duplicates, or empty slides)`),i()):(c&&(n.loopAddBlankSlides?(l(n.grid.rows-t.slides.length%n.grid.rows),t.recalcSlides(),t.updateSlides()):oi(`Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`)),i()),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:`next`})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:a,byController:o,byMousewheel:s}=e===void 0?{}:e,c=this;if(!c.params.loop)return;c.emit(`beforeLoopFix`);let{slides:l,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=c,{centeredSlides:m}=p;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled)return n&&(p.centeredSlides||c.snapIndex!==0?p.centeredSlides&&c.snapIndex<p.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=d,void c.emit(`loopFix`);let h=p.slidesPerView;h===`auto`?h=c.slidesPerViewDynamic():(h=Math.ceil(parseFloat(p.slidesPerView,10)),m&&h%2==0&&(h+=1));let g=p.slidesPerGroupAuto?h:p.slidesPerGroup,_=g;_%g!=0&&(_+=g-_%g),_+=p.loopAdditionalSlides,c.loopedSlides=_;let v=c.grid&&p.grid&&p.grid.rows>1;l.length<h+_?oi(`Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters`):v&&p.grid.fill===`row`&&oi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let y=[],b=[],x=c.activeIndex;a===void 0?a=c.getSlideIndex(l.filter((e=>e.classList.contains(p.slideActiveClass)))[0]):x=a;let S=r===`next`||!r,C=r===`prev`||!r,w=0,T=0,E=v?Math.ceil(l.length/p.grid.rows):l.length,D=(v?l[a].column:a)+(m&&i===void 0?-h/2+.5:0);if(D<_){w=Math.max(_-D,g);for(let e=0;e<_-D;e+=1){let t=e-Math.floor(e/E)*E;if(v){let e=E-t-1;for(let t=l.length-1;t>=0;--t)l[t].column===e&&y.push(t)}else y.push(E-t-1)}}else if(D+h>E-_){T=Math.max(D-(E-2*_),g);for(let e=0;e<T;e+=1){let t=e-Math.floor(e/E)*E;v?l.forEach(((e,n)=>{e.column===t&&b.push(n)})):b.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame((()=>{c.__preventObserver__=!1})),C&&y.forEach((e=>{l[e].swiperLoopMoveDOM=!0,f.prepend(l[e]),l[e].swiperLoopMoveDOM=!1})),S&&b.forEach((e=>{l[e].swiperLoopMoveDOM=!0,f.append(l[e]),l[e].swiperLoopMoveDOM=!1})),c.recalcSlides(),p.slidesPerView===`auto`?c.updateSlides():v&&(y.length>0&&C||b.length>0&&S)&&c.slides.forEach(((e,t)=>{c.grid.updateSlide(t,e,c.slides)})),p.watchSlidesProgress&&c.updateSlidesOffset(),n){if(y.length>0&&C){if(t===void 0){let e=c.slidesGrid[x],t=c.slidesGrid[x+w]-e;s?c.setTranslate(c.translate-t):(c.slideTo(x+w,0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(i){let e=v?y.length/p.grid.rows:y.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(b.length>0&&S){if(t===void 0){let e=c.slidesGrid[x],t=c.slidesGrid[x-T]-e;s?c.setTranslate(c.translate-t):(c.slideTo(x-T,0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{let e=v?b.length/p.grid.rows:b.length;c.slideTo(c.activeIndex-e,0,!1,!0)}}}if(c.allowSlidePrev=u,c.allowSlideNext=d,c.controller&&c.controller.control&&!o){let e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===p.slidesPerView&&n})})):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===p.slidesPerView&&n})}c.emit(`loopFix`)},loopDestroy:function(){let e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();let r=[];
50e.slides.forEach((e=>{let t=e.swiperSlideIndex===void 0?1*e.getAttribute(`data-swiper-slide-index`):e.swiperSlideIndex;r[t]=e})),e.slides.forEach((e=>{e.removeAttribute(`data-swiper-slide-index`)})),r.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}},Ai={setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n=t.params.touchEventsTarget===`container`?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor=`move`,n.style.cursor=e?`grabbing`:`grab`,t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget===`container`?`el`:`wrapperEl`].style.cursor=``,e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}};function ji(e,t,n){let r=Yr(),{params:i}=e,a=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return!a||!(n<=o||n>=r.innerWidth-o)||a===`prevent`&&(t.preventDefault(),!0)}function Mi(e){let t=this,n=qr(),r=e;r.originalEvent&&(r=r.originalEvent);let i=t.touchEventsData;if(r.type===`pointerdown`){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type===`touchstart`&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type===`touchstart`)return void ji(t,r,r.targetTouches[0].pageX);let{params:a,touches:o,enabled:s}=t;if(!s||!a.simulateTouch&&r.pointerType===`mouse`||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let c=r.target;if(a.touchEventsTarget===`wrapper`&&!t.wrapperEl.contains(c)||`which`in r&&r.which===3||`button`in r&&r.button>0||i.isTouched&&i.isMoved)return;let l=!!a.noSwipingClass&&a.noSwipingClass!==``,u=r.composedPath?r.composedPath():r.path;l&&r.target&&r.target.shadowRoot&&u&&(c=u[0]);let d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,f=!(!r.target||!r.target.shadowRoot);if(a.noSwiping&&(f?function(e,t){return t===void 0&&(t=this),function t(n){if(!n||n===qr()||n===Yr())return null;n.assignedSlot&&(n=n.assignedSlot);let r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(d,c):c.closest(d)))return void(t.allowClick=!0);if(a.swipeHandler&&!c.closest(a.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;let p=o.currentX,m=o.currentY;if(!ji(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,i.touchStartTime=Qr(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1);let h=!0;c.matches(i.focusableElements)&&(h=!1,c.nodeName===`SELECT`&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();let g=h&&t.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!g||c.isContentEditable||r.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit(`touchStart`,r)}function Q(e){let t=qr(),n=this,r=n.touchEventsData,{params:i,touches:a,rtlTranslate:o,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType===`mouse`)return;let c,l=e;if(l.originalEvent&&(l=l.originalEvent),l.type===`pointermove`&&(r.touchId!==null||l.pointerId!==r.pointerId))return;if(l.type===`touchmove`){if(c=[...l.changedTouches].filter((e=>e.identifier===r.touchId))[0],!c||c.identifier!==r.touchId)return}else c=l;if(!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit(`touchMoveOpposite`,l));let u=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper)return a.startX=u,void(a.startY=d);if(!n.allowTouchMove)return l.target.matches(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=Qr()));if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(d<a.startY&&n.translate<=n.maxTranslate()||d>a.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);r.allowTouchCallbacks&&n.emit(`touchMove`,l),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=d;let f=a.currentX-a.startX,p=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)<n.params.threshold)return;if(r.isScrolling===void 0){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:f*f+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(f))/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit(`touchMoveOpposite`,l),r.startMoving===void 0&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let m=n.isHorizontal()?f:p,h=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;i.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),h=Math.abs(h)*(o?1:-1)),a.diff=m,m*=i.touchRatio,o&&(m=-m,h=-h);let g=n.touchesDirection;n.swipeDirection=m>0?`prev`:`next`,n.touchesDirection=h>0?`prev`:`next`;let _=n.params.loop&&!i.cssMode,v=n.touchesDirection===`next`&&n.allowSlideNext||n.touchesDirection===`prev`&&n.allowSlidePrev;if(!r.isMoved){if(_&&v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0});
50n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit(`sliderFirstMove`,l)}if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&_&&v&&Math.abs(m)>=1)return Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,void(r.startTranslate=r.currentTranslate);n.emit(`sliderMove`,l),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let y=!0,b=i.resistanceRatio;if(i.touchReleaseOnEdges&&(b=0),m>0?(_&&v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:`prev`,setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**b))):m<0&&(_&&v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:`next`,setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView===`auto`?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**b))),y&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection===`next`&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection===`prev`&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(m)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);
50if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}i.followFinger&&!i.cssMode&&((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Ni(e){let t=this,n=t.touchEventsData,r,i=e;if(i.originalEvent&&(i=i.originalEvent),i.type===`touchend`||i.type===`touchcancel`){if(r=[...i.changedTouches].filter((e=>e.identifier===n.touchId))[0],!r||r.identifier!==n.touchId)return}else{if(n.touchId!==null||i.pointerId!==n.pointerId)return;r=i}if([`pointercancel`,`pointerout`,`pointerleave`,`contextmenu`].includes(i.type)&&!([`pointercancel`,`contextmenu`].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;let{params:a,touches:o,rtlTranslate:s,slidesGrid:c,enabled:l}=t;if(!l||!a.simulateTouch&&i.pointerType===`mouse`)return;if(n.allowTouchCallbacks&&t.emit(`touchEnd`,i),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);a.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);let u=Qr(),d=u-n.touchStartTime;if(t.allowClick){let e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit(`tap click`,i),d<300&&u-n.lastClickTime<300&&t.emit(`doubleTap doubleClick`,i)}if(n.lastClickTime=Qr(),Zr((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let f;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,f=a.followFinger?s?t.translate:-t.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});let p=f>=-t.maxTranslate()&&!t.params.loop,m=0,h=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;c[e+t]===void 0?(p||f>=c[e])&&(m=e,h=c[c.length-1]-c[c.length-2]):(p||f>=c[e]&&f<c[e+t])&&(m=e,h=c[e+t]-c[e])}let g=null,_=null;a.rewind&&(t.isBeginning?_=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));let v=(f-c[m])/h,y=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);t.swipeDirection===`next`&&(v>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:m+y):t.slideTo(m)),t.swipeDirection===`prev`&&(v>1-a.longSwipesRatio?t.slideTo(m+y):_!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?t.slideTo(_):t.slideTo(m))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(m+y):t.slideTo(m):(t.swipeDirection===`next`&&t.slideTo(g===null?m+y:g),t.swipeDirection===`prev`&&t.slideTo(_===null?m:_))}}function Pi(){let e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=o&&t.loop;!(t.slidesPerView===`auto`||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function Fi(e){let t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ii(){let e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;let i;e.previousTranslate=e.translate,e.translate=e.isHorizontal()?-t.scrollLeft:-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a=e.maxTranslate()-e.minTranslate();i=a===0?0:(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit(`setTranslate`,e.translate,!1)}function Li(e){let t=this;xi(t,e.target),t.params.cssMode||t.params.slidesPerView!==`auto`&&!t.params.autoHeight||t.update(
50)}function Ri(){let e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction=`auto`))}let zi=(e,t)=>{let n=qr(),{params:r,el:i,wrapperEl:a,device:o}=e,s=!!r.nested,c=t===`on`?`addEventListener`:`removeEventListener`,l=t;n[c](`touchstart`,e.onDocumentTouchStart,{passive:!1,capture:s}),i[c](`touchstart`,e.onTouchStart,{passive:!1}),i[c](`pointerdown`,e.onTouchStart,{passive:!1}),n[c](`touchmove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`pointermove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`touchend`,e.onTouchEnd,{passive:!0}),n[c](`pointerup`,e.onTouchEnd,{passive:!0}),n[c](`pointercancel`,e.onTouchEnd,{passive:!0}),n[c](`touchcancel`,e.onTouchEnd,{passive:!0}),n[c](`pointerout`,e.onTouchEnd,{passive:!0}),n[c](`pointerleave`,e.onTouchEnd,{passive:!0}),n[c](`contextmenu`,e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[c](`click`,e.onClick,!0),r.cssMode&&a[c](`scroll`,e.onScroll),r.updateOnWindowResize?e[l](o.ios||o.android?`resize orientationchange observerUpdate`:`resize observerUpdate`,Pi,!0):e[l](`observerUpdate`,Pi,!0),i[c](`load`,e.onLoad,{capture:!0})};var Bi={attachEvents:function(){let e=this,{params:t}=e;e.onTouchStart=Mi.bind(e),e.onTouchMove=Q.bind(e),e.onTouchEnd=Ni.bind(e),e.onDocumentTouchStart=Ri.bind(e),t.cssMode&&(e.onScroll=Ii.bind(e)),e.onClick=Fi.bind(e),e.onLoad=Li.bind(e),zi(e,`on`)},detachEvents:function(){zi(this,`off`)}};let Vi=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Hi={setBreakpoint:function(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;let o=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;let s=(o in a?a[o]:void 0)||e.originalParams,c=Vi(e,r),l=Vi(e,s),u=r.enabled;c&&!l?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&l&&(i.classList.add(`${r.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill===`column`||!s.grid.fill&&r.grid.fill===`column`)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),[`navigation`,`pagination`,`scrollbar`].forEach((t=>{if(s[t]===void 0)return;let n=r[t]&&r[t].enabled,i=s[t]&&s[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()}));let d=s.direction&&s.direction!==r.direction,f=r.loop&&(s.slidesPerView!==r.slidesPerView||d),p=r.loop;d&&n&&e.changeDirection(),ti(e.params,s);let m=e.params.enabled,h=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!m?e.disable():!u&&m&&e.enable(),e.currentBreakpoint=o,e.emit(`_beforeBreakpoint`,s),n&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!p&&h?(e.loopCreate(t),e.updateSlides()):p&&!h&&e.loopDestroy()),e.emit(`breakpoint`,s)},getBreakpoint:function(e,t,n){if(t===void 0&&(t=`window`),!e||t===`container`&&!n)return;let r=!1,i=Yr(),a=t===`window`?i.innerHeight:n.clientHeight,o=Object.keys(e).map((e=>{if(typeof e==`string`&&e.indexOf(`@`)===0){let t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}}));o.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<o.length;e+=1){let{point:a,value:s}=o[e];t===`window`?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=a):s<=n.clientWidth&&(r=a)}return r||`max`}},Ui={addClasses:function(){let e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,o=function(e,t){let n=[];return e.forEach((e=>{typeof e==`object`?Object.keys(e).forEach((r=>{e[r]&&n.push(t+r)})):typeof e==`string`&&n.push(t+e)})),n}([`initialized`,n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill===`column`},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){let{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}},Wi={checkOverflow:function(){let e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){let t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*r;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?`lock`:`unlock`)}},Gi={init:!0,direction:`horizontal`,oneWayMovement:!1,touchEventsTarget:`wrapper`,initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:`swiper`,enabled:!0,focusableElements:`input, select, option, textarea, button, video, label`,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:`slide`,breakpoints:void 0,breakpointsBase:`window`,spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesB
50ounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:`swiper-no-swiping`,noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:`swiper-`,slideClass:`swiper-slide`,slideBlankClass:`swiper-slide-blank`,slideActiveClass:`swiper-slide-active`,slideVisibleClass:`swiper-slide-visible`,slideFullyVisibleClass:`swiper-slide-fully-visible`,slideNextClass:`swiper-slide-next`,slidePrevClass:`swiper-slide-prev`,wrapperClass:`swiper-wrapper`,lazyPreloaderClass:`swiper-lazy-preloader`,lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ki(e,t){return function(n){n===void 0&&(n={});let r=Object.keys(n)[0],i=n[r];typeof i==`object`&&i?(!0===e[r]&&(e[r]={enabled:!0}),r===`navigation`&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),[`pagination`,`scrollbar`].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),r in e&&`enabled`in i?(typeof e[r]!=`object`||`enabled`in e[r]||(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),ti(t,n)):ti(t,n)):ti(t,n)}}let qi={eventsEmitter:bi,update:wi,translate:Ti,transition:Di,slide:Oi,loop:ki,grabCursor:Ai,events:Bi,breakpoints:Hi,checkOverflow:Wi,classes:Ui},Ji={};class Yi{constructor(){let e,t;var n=[...arguments];n.length===1&&n[0].constructor&&Object.prototype.toString.call(n[0]).slice(8,-1)===`Object`?t=n[0]:[e,t]=n,t||={},t=ti({},t),e&&!t.el&&(t.el=e);let r=qr();if(t.el&&typeof t.el==`string`&&r.querySelectorAll(t.el).length>1){let e=[];return r.querySelectorAll(t.el).forEach((n=>{let r=ti({},t,{el:n});e.push(new Yi(r))})),e}let i=this;i.__swiper__=!0,i.support=_i(),i.device=vi({userAgent:t.userAgent}),i.browser=yi(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],t.modules&&Array.isArray(t.modules)&&i.modules.push(...t.modules);let a={};return i.modules.forEach((e=>{e({params:t,swiper:i,extendParams:Ki(t,a),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})})),i.params=ti({},ti({},Gi,a),Ji,t),i.originalParams=ti({},i.params),i.passedParams=ti({}
50,t),i.params&&i.params.on&&Object.keys(i.params.on).forEach((e=>{i.on(e,i.params.on[e])})),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction===`horizontal`},isVertical(){return i.params.direction===`vertical`},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit(`_swiper`),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:`height`,"margin-top":`margin-left`,"margin-bottom ":`margin-right`,"margin-left":`margin-top`,"margin-right":`margin-bottom`,"padding-left":`padding-top`,"padding-right":`padding-bottom`,marginRight:`marginBottom`}[e]}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=ui(ai(t,`.${n.slideClass}, swiper-slide`)[0]);return ui(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute(`data-swiper-slide-index`)===e))[0])}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=ai(e,`.${t.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit(`enable`))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit(`disable`))}setProgress(e,t){let n=this;e=Math.min(Math.max(e,0),1);let r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,t===void 0?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(` `).filter((t=>t.indexOf(`swiper`)===0||t.indexOf(e.params.containerModifierClass)===0));e.emit(`_containerClasses`,t.join(` `))}getSlideClasses(e){let t=this;return t.destroyed?``:e.className.split(` `).filter((e=>e.indexOf(`swiper-slide`)===0||e.indexOf(t.params.slideClass)===0)).join(` `)}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach((n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit(`_slideClass`,n,r)})),e.emit(`_slideClasses`,t)}slidesPerViewDynamic(e,t){e===void 0&&(e=`current`),t===void 0&&(t=!1);let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:a,size:o,activeIndex:s}=this,c=1;if(typeof n.slidesPerView==`number`)return n.slidesPerView;if(n.centeredSlides){let e,t=r[s]?r[s].swiperSlideSize:0;for(let n=s+1;n<r.length;n+=1)r[n]&&!e&&(t+=r[n].swiperSlideSize,c+=1,t>o&&(e=!0));for(let n=s-1;n>=0;--n)r[n]&&!e&&(t+=r[n].swiperSlideSize,c+=1,t>o&&(e=!0))}else if(e===`current`)for(let e=s+1;e<r.length;e+=1)(t?i[e]+a[e]-i[s]<o:i[e]-i[s]<o)&&(c+=1);else for(let e=s-1;e>=0;--e)i[s]-i[e]<o&&(c+=1);return c}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:n}=e;function r(){let t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll(`[loading="lazy"]`)].forEach((t=>{t.complete&&xi(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView===`auto`||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){let t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit(`update`)}changeDirection(e,t){t===void 0&&(t=!0);let n=this,r=n.params.direction;return e||=r===`horizontal`?`vertical`:`horizontal`,e===r||e!==`horizontal`&&e!==`vertical`||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEac
50h((t=>{e===`vertical`?t.style.width=``:t.style.height=``})),n.emit(`changeDirection`),t&&n.update()),n}changeLanguageDirection(e){let t=this;t.rtl&&e===`rtl`||!t.rtl&&e===`ltr`||(t.rtl=e===`rtl`,t.rtlTranslate=t.params.direction===`horizontal`&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir=`rtl`):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir=`ltr`),t.update())}mount(e){let t=this;if(t.mounted)return!0;let n=e||t.params.el;if(typeof n==`string`&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===`SWIPER-CONTAINER`&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||``).trim().split(` `).join(`.`)}`,i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):ai(n,r())[0];return!i&&t.params.createElements&&(i=si(`div`,t.params.wrapperClass),n.append(i),ai(n,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()===`rtl`||li(n,`direction`)===`rtl`,rtlTranslate:t.params.direction===`horizontal`&&(n.dir.toLowerCase()===`rtl`||li(n,`direction`)===`rtl`),wrongRTL:li(i,`display`)===`-webkit-box`}),!0}init(e){let t=this;if(t.initialized||!1===t.mount(e))return t;t.emit(`beforeInit`),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();let n=[...t.el.querySelectorAll(`[loading="lazy"]`)];return t.isElement&&n.push(...t.hostEl.querySelectorAll(`[loading="lazy"]`)),n.forEac
50h((e=>{e.complete?xi(t,e):e.addEventListener(`load`,(e=>{xi(t,e.target)}))})),Ci(t),t.initialized=!0,Ci(t),t.emit(`init`),t.emit(`afterInit`),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);let n=this,{params:r,el:i,wrapperEl:a,slides:o}=n;return n.params===void 0||n.destroyed||(n.emit(`beforeDestroy`),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttribute(`style`),a.removeAttribute(`style`),o&&o.length&&o.forEach((e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute(`style`),e.removeAttribute(`data-swiper-slide-index`)}))),n.emit(`destroy`),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el.swiper=null,function(e){let t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){ti(Ji,e)}static get extendedDefaults(){return Ji}static get defaults(){return Gi}static installModule(e){Yi.prototype.__modules__||(Yi.prototype.__modules__=[]);let t=Yi.prototype.__modules__;typeof e==`function`&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Yi.installModule(e))),Yi):(Yi.installModule(e),Yi)}}function Xi(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach((i=>{if(!n[i]&&!0===n.auto){let a=ai(e.el,`.${r[i]}`)[0];a||(a=si(`div`,r[i]),a.className=r[i],e.el.append(a)),n[i]=a,t[i]=a}})),n}function Zi(e){return e===void 0&&(e=``),`.${e.trim().replace(/([\.:!+\/])/g,`\\$1`).replace(/ /g,`.`)}`}function Qi(e){let t=this,{params:n,slidesEl:r}=t;n.loop&&t.loopDestroy();let i=e=>{if(typeof e==`string`){let t=document.createElement(`div`);t.innerHTML=e,r.append(t.children[0]),t.innerHTML=``}else r.append(e)};if(typeof e==`object`&&`length`in e)for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);else i(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update()}function $i(e){let t=this,{params:n,activeIndex:r,slidesEl:i}=t;n.loop&&t.loopDestroy();let a=r+1,o=e=>{if(typeof e==`string`){let t=document.createElement(`div`);t.innerHTML=e,i.prepend(t.children[0]),t.innerHTML=``}else i.prepend(e)};if(typeof e==`object`&&`length`in e){for(let t=0;t<e.length;t+=1)e[t]&&o(e[t]);a=r+e.length}else o(e);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),t.slideTo(a,0,!1)}function ea(e,t){let n=this,{params:r,activeIndex:i,slidesEl:a}=n,o=i;r.loop&&(o-=n.loopedSlides,n.loopDestroy(),n.recalcSlides());let s=n.slides.length;if(e<=0)return void n.prependSlide(t);if(e>=s)return void n.appendSlide(t);let c=o>e?o+1:o,l=[];for(let t=s-1;t>=e;--t){let e=n.slides[t];e.remove(),l.unshift(e)}if(typeof t==`object`&&`length`in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);c=o>e?o+t.length:o}else a.append(t);for(let e=0;e<l.length;e+=1)a.append(l[e]);n.recalcSlides(),r.loop&&n.loopCreate(),r.observer&&!n.isElement||n.update(),r.loop?n.slideTo(c+n.loopedSlides,0,!1):n.slideTo(c,0,!1)}function ta(e){let t=this,{params:n,activeIndex:r}=t,i=r;n.loop&&(i-=t.loopedSlides,t.loopDestroy());let a,o=i;if(typeof e==`object`&&`length`in e){for(let n=0;n<e.length;n+=1)a=e[n],t.slides[a]&&t.slides[a].remove(),a<o&&--o;o=Math.max(o,0)}else a=e,t.slides[a]&&t.slides[a].remove(),a<o&&--o,o=Math.max(o,0);t.recalcSlides(),n.loop&&t.loopCreate(),n.observer&&!t.isElement||t.update(),n.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function na(){let e=this,t=[];for(let n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}function ra(e){let{effect:t,swiper:n,on:r,setTranslate:i,setTransition:a,overwriteParams:o,perspective:s,recreateShadows:c,getEffectParams:l}=e,u;r(`beforeInit`,(()=>{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),s&&s()&&n.classNames.push(`${n.params.containerModifierClass}3d`);let e=o?o():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)})),r(`setTranslate`,(()=>{n.params.effect===t&&i()})),r(`setTransition`,((e,r)=>{n.params.effect===t&&a(r)})),r(`transitionEnd`,(()=>{if(n.params.effect===t&&c){if(!l||!l().slideShadows)return;
50n.slides.forEach((e=>{e.querySelectorAll(`.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left`).forEach((e=>e.remove()))})),c()}})),r(`virtualUpdate`,(()=>{n.params.effect===t&&(n.slides.length||(u=!0),requestAnimationFrame((()=>{u&&n.slides&&n.slides.length&&(i(),u=!1)})))}))}function ia(e,t){let n=ii(t);return n!==t&&(n.style.backfaceVisibility=`hidden`,n.style[`-webkit-backface-visibility`]=`hidden`),n}function aa(e){let{swiper:t,duration:n,transformElements:r,allSlides:i}=e,{activeIndex:a}=t;if(t.params.virtualTranslate&&n!==0){let e,n=!1;e=i?r:r.filter((e=>{let n=e.classList.contains(`swiper-slide-transform`)?(e=>e.parentElement?e.parentElement:t.slides.filter((t=>t.shadowRoot&&t.shadowRoot===e.parentNode))[0])(e):e;return t.getSlideIndex(n)===a})),e.forEach((e=>{fi(e,(()=>{if(n||!t||t.destroyed)return;n=!0,t.animating=!1;let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function oa(e,t,n){let r=`swiper-slide-shadow${n?`-${n}`:``}${e?` swiper-slide-shadow-${e}`:``}`,i=ii(t),a=i.querySelector(`.${r.split(` `).join(`.`)}`);return a||(a=si(`div`,r.split(` `)),i.append(a)),a}Object.keys(qi).forEach((e=>{Object.keys(qi[e]).forEach((t=>{Yi.prototype[t]=qi[e][t]}))})),Yi.use([function(e){let{swiper:t,on:n,emit:r}=e,i=Yr(),a=null,o=null,s=()=>{t&&!t.destroyed&&t.initialized&&(r(`beforeResize`),r(`resize`))},c=()=>{t&&!t.destroyed&&t.initialized&&r(`orientationchange`)};n(`init`,(()=>{t.params.resizeObserver&&i.ResizeObserver!==void 0?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver((e=>{o=i.requestAnimationFrame((()=>{let{width:n,height:r}=t,i=n,a=r;e.forEach((e=>{let{contentBoxSize:n,contentRect:r,target:o}=e;o&&o!==t.el||(i=r?r.width:(n[0]||n).inlineSize,a=r?r.height:(n[0]||n).blockSize)})),i===n&&a===r||s()}))})),a.observe(t.el)):(i.addEventListener(`resize`,s),i.addEventListener(`orientationchange`,c))})),n(`destroy`,(()=>{o&&i.cancelAnimationFrame(o),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),i.removeEventListener(`resize`,s),i.removeEventListener(`orientationchange`,c)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:i}
50=e,a=[],o=Yr(),s=function(e,n){n===void 0&&(n={});let r=new(o.MutationObserver||o.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(e.length===1)return void i(`observerUpdate`,e[0]);let n=function(){i(`observerUpdate`,e[0])};o.requestAnimationFrame?o.requestAnimationFrame(n):o.setTimeout(n,0)}));r.observe(e,{attributes:n.attributes===void 0||n.attributes,childList:n.childList===void 0||n.childList,characterData:n.characterData===void 0||n.characterData}),a.push(r)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r(`init`,(()=>{if(t.params.observer){if(t.params.observeParents){let e=di(t.hostEl);for(let t=0;t<e.length;t+=1)s(e[t])}s(t.hostEl,{childList:t.params.observeSlideChildren}),s(t.wrapperEl,{attributes:!1})}})),r(`destroy`,(()=>{a.forEach((e=>{e.disconnect()})),a.splice(0,a.length)}))}]),Yi.use([function(e){let t,{swiper:n,extendParams:r,on:i,emit:a}=e;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let o=qr();n.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};let s=o.createElement(`div`);function c(e,t){let r=n.params.virtual;if(r.cache&&n.virtual.cache[t])return n.virtual.cache[t];let i;return r.renderSlide?(i=r.renderSlide.call(n,e,t),typeof i==`string`&&(s.innerHTML=i,i=s.children[0])):i=n.isElement?si(`swiper-slide`):si(`div`,n.params.slideClass),i.setAttribute(`data-swiper-slide-index`,t),r.renderSlide||(i.innerHTML=e),r.cache&&(n.virtual.cache[t]=i),i}function l(e){let{slidesPerView:t,slidesPerGroup:r,centeredSlides:i,loop:o}=n.params,{addSlidesBefore:s,addSlidesAfter:l}=n.params.virtual,{from:u,to:d,slides:f,slidesGrid:p,offset:m}=n.virtual;n.params.cssMode||n.updateActiveIndex();let h=n.activeIndex||0,g,_,v;g=n.rtlTranslate?`right`:n.isHorizontal()?`left`:`top`,i?(_=Math.floor(t/2)+r+l,v=Math.floor(t/2)+r+s):(_=t+(r-1)+l,v=(o?t:r)+s);let y=h-v,b=h+_;o||(y=Math.max(y,0),b=Math.min(b,f.length-1));let x=(n.slidesGrid[y]||0)-(n.slidesGrid[0]||0);function S(){n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),a(`virtualUpdate`)}if(o&&h>=v?(y-=v,i||(x+=n.slidesGrid[0])):o&&h<v&&(y=-v,i&&(x+=n.slidesGrid[0])),Object.assign(n.virtual,{from:y,to:b,offset:x,slidesGrid:n.slidesGrid,slidesBefore:v,slidesAfter:_}),u===y&&d===b&&!e)return n.slidesGrid!==p&&x!==m&&n.slides.forEach((e=>{e.style[g]=x-Math.abs(n.cssOverflowAdjustment())+`px`})),n.updateProgress(),void a(`virtualUpdate`);if(n.params.virtual.renderExternal)return n.params.virtual.renderExternal.call(n,{offset:x,from:y,to:b,slides:function(){let e=[];for(let t=y;t<=b;t+=1)e.push(f[t]);return e}()}),void(n.params.virtual.renderExternalUpdate?S():a(`virtualUpdate`));let C=[],w=[],T=e=>{let t=e;return e<0?t=f.length+e:t>=f.length&&(t-=f.length),t};if(e)n.slides.filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=u;e<=d;e+=1)if(e<y||e>b){let t=T(e);n.slides.filter((e=>e.matches(`.${n.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`))).forEach((e=>{e.remove()}))}let E=o?-f.length:0,D=o?2*f.length:f.length;for(let t=E;t<D;t+=1)if(t>=y&&t<=b){let n=T(t);d===void 0||e?w.push(n):(t>d&&w.push(n),t<u&&C.push(n))}if(w.forEach((e=>{n.slidesEl.append(c(f[e],e))})),o)for(let e=C.length-1;e>=0;--e){let t=C[e];n.slidesEl.prepend(c(f[t],t))}else C.sort(((e,t)=>t-e)),C.forEach((e=>{n.slidesEl.prepend(c(f[e],e))}));ai(n.slidesEl,`.swiper-slide, swiper-slide`).forEach((e=>{e.style[g]=x-Math.abs(n.cssOverflowAdjustment())+`px`})),S()}i(`beforeInit`,(()=>{if(!n.params.virtual.enabled)return;let e;if(n.passedParams.virtual.slides===void 0){let t=[...n.slidesEl.children].filter((e=>e.matches(`.${n.params.slideClass}, swiper-slide`)));t&&t.length&&(n.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute(`data-swiper-slide-index`,t),n.virtual.cache[t]=e,e.remove()})))}e||(n.virtual.slides=n.params.virtual.slides),n.classNames.push(`${n.params.containerModifierClass}virtual`),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0,l()})),i(`setTranslate`,(()=>{n.params.virtual.enabled&&(n.params.cssMode&&!n._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{l()}),100)):l())})),i(`init update resize`,(()=>{n.params.virtual.enabled&&n.params.cssMode&&ni(n.wrapperEl,`--swiper-virtual-size`,`${n.virtualSize}px`)})),Object.assign(n.virtual,{appendSlide:function(e){if(typeof e==`object`&&`length`in e)for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.push(e[t]);else n.virtual.slides.push(e);l(!0)},prependSlide:function(e){let t=n.activeIndex,r=t+1,i=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&n.virtual.slides.unshift(e[t]);r=t+e.length,i=e.length}else n.virtual.slides.unshift(e);
50if(n.params.virtual.cache){let e=n.virtual.cache,t={};Object.keys(e).forEach((n=>{let r=e[n],a=r.getAttribute(`data-swiper-slide-index`);a&&r.setAttribute(`data-swiper-slide-index`,parseInt(a,10)+i),t[parseInt(n,10)+i]=r})),n.virtual.cache=t}l(!0),n.slideTo(r,0)},removeSlide:function(e){if(e==null)return;let t=n.activeIndex;if(Array.isArray(e))for(let r=e.length-1;r>=0;--r)n.params.virtual.cache&&(delete n.virtual.cache[e[r]],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute(`data-swiper-slide-index`,t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e[r],1),e[r]<t&&--t,t=Math.max(t,0);else n.params.virtual.cache&&(delete n.virtual.cache[e],Object.keys(n.virtual.cache).forEach((t=>{t>e&&(n.virtual.cache[t-1]=n.virtual.cache[t],n.virtual.cache[t-1].setAttribute(`data-swiper-slide-index`,t-1),delete n.virtual.cache[t])}))),n.virtual.slides.splice(e,1),e<t&&--t,t=Math.max(t,0);l(!0),n.slideTo(t,0)},removeAllSlides:function(){n.virtual.slides=[],n.params.virtual.cache&&(n.virtual.cache={}),l(!0),n.slideTo(0,0)},update:l})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e,a=qr(),o=Yr();function s(e){if(!t.enabled)return;let{rtlTranslate:n}=t,r=e;r.originalEvent&&(r=r.originalEvent);let s=r.keyCode||r.charCode,c=t.params.keyboard.pageUpDown,l=c&&s===33,u=c&&s===34,d=s===37,f=s===39,p=s===38,m=s===40;if(!t.allowSlideNext&&(t.isHorizontal()&&f||t.isVertical()&&m||u)||!t.allowSlidePrev&&(t.isHorizontal()&&d||t.isVertical()&&p||l))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||a.activeElement&&a.activeElement.nodeName&&(a.activeElement.nodeName.toLowerCase()===`input`||a.activeElement.nodeName.toLowerCase()===`textarea`))){if(t.params.keyboard.onlyInViewport&&(l||u||d||f||p||m)){let e=!1;if(di(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&di(t.el,`.${t.params.slideActiveClass}`).length===0)return;let r=t.el,i=r.clientWidth,a=r.clientHeight,s=o.innerWidth,c=o.innerHeight,l=ci(r);n&&(l.left-=r.scrollLeft);let u=[[l.left,l.top],[l.left+i,l.top],[l.left,l.top+a],[l.left+i,l.top+a]];for(let t=0;t<u.length;t+=1){let n=u[t];if(n[0]>=0&&n[0]<=s&&n[1]>=0&&n[1]<=c){if(n[0]===0&&n[1]===0)continue;e=!0}}if(!e)return}t.isHorizontal()?((l||u||d||f)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((u||f)&&!n||(l||d)&&n)&&t.slideNext(),((l||d)&&!n||(u||f)&&n)&&t.slidePrev()):((l||u||p||m)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(u||m)&&t.slideNext(),(l||p)&&t.slidePrev()),i(`keyPress`,s)}}function c(){t.keyboard.enabled||(a.addEventListener(`keydown`,s),t.keyboard.enabled=!0)}function l(){t.keyboard.enabled&&(a.removeEventListener(`keydown`,s),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),r(`init`,(()=>{t.params.keyboard.enabled&&c()})),r(`destroy`,(()=>{t.keyboard.enabled&&l()})),Object.assign(t.keyboard,{enable:c,disable:l})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e,a=Yr(),o;n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:`container`,thresholdDelta:null,thresholdTime:null,noMousewheelClass:`swiper-no-mousewheel`}}),t.mousewheel={enabled:!1};let s,c=Qr(),l=[];function u(){t.enabled&&(t.mouseEntered=!0)}function d(){t.enabled&&(t.mouseEntered=!1)}function f(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&!(t.params.mousewheel.thresholdTime&&Qr()-c<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&Qr()-c<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i(`scroll`,e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i(`scroll`,e.raw)),c=new a.Date().getTime(),!1))}function p(e){let n=e,r=!0;if(!t.enabled||e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;let a=t.params.mousewheel;t.params.cssMode&&n.preventDefault();let c=t.el;t.params.mousewheel.eventsTarget!==`container`&&(c=document.querySelector(t.params.mousewheel.eventsTarget));let u=c&&c.contains(n.target);if(!t.mouseEntered&&!u&&!a.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let d=0,p=t.rtlTranslate?-1:1,m=function(e){let t=0,n=0,r=0,i=0;return`detail`in e&&(n=e.detail),`wheelDelta`in e&&(n=-e.wheelDelta/120),`wheelDeltaY`in e&&(n=-e.wheelDeltaY/120
50),`wheelDeltaX`in e&&(t=-e.wheelDeltaX/120),`axis`in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,i=10*n,`deltaY`in e&&(i=e.deltaY),`deltaX`in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(e.deltaMode===1?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}(n);if(a.forceToAxis){if(t.isHorizontal()){if(!(Math.abs(m.pixelX)>Math.abs(m.pixelY)))return!0;d=-m.pixelX*p}else{if(!(Math.abs(m.pixelY)>Math.abs(m.pixelX)))return!0;d=-m.pixelY}}else d=Math.abs(m.pixelX)>Math.abs(m.pixelY)?-m.pixelX*p:-m.pixelY;if(d===0)return!0;a.invert&&(d=-d);let h=t.getTranslate()+d*a.sensitivity;if(h>=t.minTranslate()&&(h=t.minTranslate()),h<=t.maxTranslate()&&(h=t.maxTranslate()),r=!!t.params.loop||h!==t.minTranslate()&&h!==t.maxTranslate(),r&&t.params.nested&&n.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){let e={time:Qr(),delta:Math.abs(d),direction:Math.sign(d)},r=s&&e.time<s.time+500&&e.delta<=s.delta&&e.direction===s.direction;if(!r){s=void 0;let c=t.getTranslate()+d*a.sensitivity,u=t.isBeginning,f=t.isEnd;if(c>=t.minTranslate()&&(c=t.minTranslate()),c<=t.maxTranslate()&&(c=t.maxTranslate()),t.setTransition(0),t.setTranslate(c),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!u&&t.isBeginning||!f&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?`next`:`prev`,byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(o),o=void 0,l.length>=15&&l.shift();let n=l.length?l[l.length-1]:void 0,r=l[0];if(l.push(e),n&&(e.delta>n.delta||e.direction!==n.direction))l.splice(0);else if(l.length>=15&&e.time-r.time<500&&r.delta-e.delta>=1&&e.delta<=6){let n=d>0?.8:.2;s=e,l.splice(0),o=Zr((()=>{t.slideToClosest(t.params.speed,!0,void 0,n)}),0)}o||=Zr((()=>{s=e,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500)}if(r||i(`scroll`,n),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),a.releaseOnEdges&&(c===t.minTranslate()||c===t.maxTranslate()))return!0}}else{let n={time:Qr(),delta:Math.abs(d),direction:Math.sign(d),raw:e};l.length>=2&&l.shift();let r=l.length?l[l.length-1]:void 0;if(l.push(n),r?(n.direction!==r.direction||n.delta>r.delta||n.time>r.time+150)&&f(n):f(n),function(e){let n=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&n.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function m(e){let n=t.el;t.params.mousewheel.eventsTarget!==`container`&&(n=document.querySelector(t.params.mousewheel.eventsTarget)),n[e](`mouseenter`,u),n[e](`mouseleave`,d),n[e](`wheel`,p)}function h(){return t.params.cssMode?(t.wrapperEl.removeEventListener(`wheel`,p),!0):!t.mousewheel.enabled&&(m(`addEventListener`),t.mousewheel.enabled=!0,!0)}function g(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,p),!0):!!t.mousewheel.enabled&&(m(`removeEventListener`),t.mousewheel.enabled=!1,!0)}r(`init`,(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&g(),t.params.mousewheel.enabled&&h()})),r(`destroy`,(()=>{t.params.cssMode&&h(),t.mousewheel.enabled&&g()})),Object.assign(t.mousewheel,{enable:h,disable:g})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:`swiper-button-disabled`,hiddenClass:`swiper-button-hidden`,lockClass:`swiper-button-lock`,navigationDisabledClass:`swiper-navigation-disabled`}}),t.navigation={nextEl:null,prevEl:null};let a=e=>(Array.isArray(e)?e:[e]).filter((e=>!!e));function o(e){let n;return e&&typeof e==`string`&&t.isElement&&(n=t.el.querySelector(e),n)?n:(e&&(typeof e==`string`&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&typeof e==`string`&&n.length>1&&t.el.querySelectorAll(e).length===1&&(n=t.el.querySelector(e))),e&&!n?e:n)}function s(e,n){let r=t.params.navigation;(e=a(e)).forEach((e=>{e&&(e.classList[n?`add`:`remove`](...r.disabledClass.split(` `)),e.tagName===`BUTTON`&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?`add`:`remove`](r.lockClass))}))}function c(){let{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return s(n,!1),void s(e,!1);s(n,t.isBeginning&&!t.params.rewind),s(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i(`navigationPrev`))}function u(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i(`navigationNext`))}function d(){let e=t.params.navigation;if(t.params.navigation=Xi(t,t.originalParams.navigation,t.params.navigation,{nextEl:`swiper-button-next`,prevEl:`swiper-button-prev`}),!e.nextEl&&!e.prevEl)return;let n=o(e.nextEl),r=o(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:r}),n=a(n),r=a(r);let i=(n,r)=>{n&&n.addEventListener(`click`,r===`next`?u:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(` `))};
50n.forEach((e=>i(e,`next`))),r.forEach((e=>i(e,`prev`)))}function f(){let{nextEl:e,prevEl:n}=t.navigation;e=a(e),n=a(n);let r=(e,n)=>{e.removeEventListener(`click`,n===`next`?u:l),e.classList.remove(...t.params.navigation.disabledClass.split(` `))};e.forEach((e=>r(e,`next`))),n.forEach((e=>r(e,`prev`)))}r(`init`,(()=>{!1===t.params.navigation.enabled?p():(d(),c())})),r(`toEdge fromEdge lock unlock`,(()=>{c()})),r(`destroy`,(()=>{f()})),r(`enable disable`,(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=a(e),n=a(n),t.enabled?c():[...e,...n].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),r(`click`,((e,n)=>{let{nextEl:r,prevEl:o}=t.navigation;r=a(r),o=a(o);let s=n.target;if(t.params.navigation.hideOnClick&&!o.includes(s)&&!r.includes(s)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;let e;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?`navigationShow`:`navigationHide`),[...r,...o].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));let p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(` `)),f()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(` `)),d(),c()},disable:p,update:c,init:d,destroy:f})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e,a=`swiper-pagination`,o;n({pagination:{el:null,bulletElement:`span`,clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:`bullets`,dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,bullets:[]};let s=0,c=e=>(Array.isArray(e)?e:[e]).filter((e=>!!e));function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function u(e,n){let{bulletActiveClass:r}=t.params.pagination;(e&&=e[(n===`prev`?`previous`:`next`)+`ElementSibling`])&&(e.classList.add(`${r}-${n}`),(e=e[(n===`prev`?`previous`:`next`)+`ElementSibling`])&&e.classList.add(`${r}-${n}-${n}`))}function d(e){let n=e.target.closest(Zi(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();let r=ui(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;t.slideToLoop(r)}else t.slideTo(r)}function f(){let e=t.rtl,n=t.params.pagination;if(l())return;let r,a,d=t.pagination.el;d=c(d);let f=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(f/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(a=t.previousRealIndex||0,r=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):t.snapIndex===void 0?(a=t.previousIndex||0,r=t.activeIndex||0):(r=t.snapIndex,a=t.previousSnapIndex),n.type===`bullets`&&t.pagination.bullets&&t.pagination.bullets.length>0){let i=t.pagination.bullets,c,l,f;if(n.dynamicBullets&&(o=pi(i[0],t.isHorizontal()?`width`:`height`,!0),d.forEach((e=>{e.style[t.isHorizontal()?`width`:`height`]=o*(n.dynamicMainBullets+4)+`px`})),n.dynamicMainBullets>1&&a!==void 0&&(s+=r-(a||0),s>n.dynamicMainBullets-1?s=n.dynamicMainBullets-1:s<0&&(s=0)),c=Math.max(r-s,0),l=c+(Math.min(i.length,n.dynamicMainBullets)-1),f=(l+c)/2),i.forEach((e=>{let t=[...[``,`-next`,`-next-next`,`-prev`,`-prev-prev`,`-main`].map((e=>`${n.bulletActiveClass}${e}`))].map((e=>typeof e==`string`&&e.includes(` `)?e.split(` `):e)).flat();e.classList.remove(...t)})),d.length>1)i.forEach((e=>{let i=ui(e);i===r?e.classList.add(...n.bulletActiveClass.split(` `)):t.isElement&&e.setAttribute(`part`,`bullet`),n.dynamicBullets&&(i>=c&&i<=l&&e.classList.add(...`${n.bulletActiveClass}-main`.split(` `)),i===c&&u(e,`prev`),i===l&&u(e,`next`))}));else{let e=i[r];if(e&&e.classList.add(...n.bulletActiveClass.split(` `)),t.isElement&&i.forEac
50h(((e,t)=>{e.setAttribute(`part`,t===r?`bullet-active`:`bullet`)})),n.dynamicBullets){let e=i[c],t=i[l];for(let e=c;e<=l;e+=1)i[e]&&i[e].classList.add(...`${n.bulletActiveClass}-main`.split(` `));u(e,`prev`),u(t,`next`)}}if(n.dynamicBullets){let r=Math.min(i.length,n.dynamicMainBullets+4),a=(o*r-o)/2-f*o,s=e?`right`:`left`;i.forEach((e=>{e.style[t.isHorizontal()?s:`top`]=`${a}px`}))}}d.forEach(((e,a)=>{if(n.type===`fraction`&&(e.querySelectorAll(Zi(n.currentClass)).forEach((e=>{e.textContent=n.formatFractionCurrent(r+1)})),e.querySelectorAll(Zi(n.totalClass)).forEach((e=>{e.textContent=n.formatFractionTotal(p)}))),n.type===`progressbar`){let i;i=n.progressbarOpposite?t.isHorizontal()?`vertical`:`horizontal`:t.isHorizontal()?`horizontal`:`vertical`;let a=(r+1)/p,o=1,s=1;i===`horizontal`?o=a:s=a,e.querySelectorAll(Zi(n.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${s})`,e.style.transitionDuration=`${t.params.speed}ms`}))}n.type===`custom`&&n.renderCustom?(e.innerHTML=n.renderCustom(t,r+1,p),a===0&&i(`paginationRender`,e)):(a===0&&i(`paginationRender`,e),i(`paginationUpdate`,e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?`add`:`remove`](n.lockClass)}))}function p(){let e=t.params.pagination;if(l())return;let n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length,r=t.pagination.el;r=c(r);let a=``;if(e.type===`bullets`){let r=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)e.renderBullet?a+=e.renderBullet.call(t,n,e.bulletClass):a+=`<${e.bulletElement} ${t.isElement?`part="bullet"`:``} class="${e.bulletClass}"></${e.bulletElement}>`}e.type===`fraction`&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),e.type===`progressbar`&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],r.forEach((n=>{e.type!==`custom`&&(n.innerHTML=a||``),e.type===`bullets`&&t.pagination.bullets.push(...n.querySelectorAll(Zi(e.bulletClass)))})),e.type!==`custom`&&i(`paginationRender`,r[0])}function m(){t.params.pagination=Xi(t,t.originalParams.pagination,t.params.pagination,{el:`swiper-pagination`});let e=t.params.pagination;if(!e.el)return;let n;typeof e.el==`string`&&t.isElement&&(n=t.el.querySelector(e.el)),n||typeof e.el!=`string`||(n=[...document.querySelectorAll(e.el)]),n||=e.el,n&&n.length!==0&&(t.params.uniqueNavElements&&typeof e.el==`string`&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.filter((e=>di(e,`.swiper`)[0]===t.el))[0])),Array.isArray(n)&&n.length===1&&(n=n[0]),Object.assign(t.pagination,{el:n}
50),n=c(n),n.forEach((n=>{e.type===`bullets`&&e.clickable&&n.classList.add(...(e.clickableClass||``).split(` `)),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.type===`bullets`&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),s=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),e.type===`progressbar`&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener(`click`,d),t.enabled||n.classList.add(e.lockClass)})))}function h(){let e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=c(n),n.forEach((n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||``).split(` `)),n.removeEventListener(`click`,d))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(` `))))}r(`changeDirection`,(()=>{if(!t.pagination||!t.pagination.el)return;let e=t.params.pagination,{el:n}=t.pagination;
50n=c(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),r(`init`,(()=>{!1===t.params.pagination.enabled?g():(m(),p(),f())})),r(`activeIndexChange`,(()=>{t.snapIndex===void 0&&f()})),r(`snapIndexChange`,(()=>{f()})),r(`snapGridLengthChange`,(()=>{p(),f()})),r(`destroy`,(()=>{h()})),r(`enable disable`,(()=>{let{el:e}=t.pagination;e&&(e=c(e),e.forEach((e=>e.classList[t.enabled?`remove`:`add`](t.params.pagination.lockClass))))})),r(`lock unlock`,(()=>{f()})),r(`click`,((e,n)=>{let r=n.target,a=c(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&a&&a.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;let e=a[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?`paginationShow`:`paginationHide`),a.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));let g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=c(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),h()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=c(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),m(),p(),f()},disable:g,render:p,update:f,init:m,destroy:h})},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e,a=qr(),o,s,c,l,u=!1,d=null,f=null;function p(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;let{scrollbar:e,rtlTranslate:n}=t,{dragEl:r,el:i}=e,a=t.params.scrollbar,o=t.params.loop?t.progressLoop:t.progress,l=s,u=(c-s)*o;n?(u=-u,u>0?(l=s-u,u=0):-u+s>c&&(l=c+u)):u<0?(l=s+u,u=0):u+s>c&&(l=c-u),t.isHorizontal()?(r.style.transform=`translate3d(${u}px, 0, 0)`,r.style.width=`${l}px`):(r.style.transform=`translate3d(0px, ${u}px, 0)`,r.style.height=`${l}px`),a.hide&&(clearTimeout(d),i.style.opacity=1,d=setTimeout((()=>{i.style.opacity=0,i.style.transitionDuration=`400ms`}),1e3))}function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;let{scrollbar:e}=t,{dragEl:n,el:r}=e;n.style.width=``,n.style.height=``,c=t.isHorizontal()?r.offsetWidth:r.offsetHeight,l=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),s=t.params.scrollbar.dragSize===`auto`?c*l:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n.style.width=`${s}px`:n.style.height=`${s}px`,r.style.display=l>=1?`none`:``,t.params.scrollbar.hide&&(r.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?`add`:`remove`](t.params.scrollbar.lockClass)}function h(e){return t.isHorizontal()?e.clientX:e.clientY}function g(e){let{scrollbar:n,rtlTranslate:r}=t,{el:i}=n,a;a=(h(e)-ci(i)[t.isHorizontal()?`left`:`top`]-(o===null?s/2:o))/(c-s),a=Math.max(Math.min(a,1),0),r&&(a=1-a);let l=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*a;t.updateProgress(l),t.setTranslate(l),t.updateActiveIndex(),t.updateSlidesClasses()}function _(e){let n=t.params.scrollbar,{scrollbar:r,wrapperEl:a}=t,{el:s,dragEl:c}=r;u=!0,o=e.target===c?h(e)-e.target.getBoundingClientRect()[t.isHorizontal()?`left`:`top`]:null,e.preventDefault(),e.stopPropagation(),a.style.transitionDuration=`100ms`,c.style.transitionDuration=`100ms`,g(e),clearTimeout(f),s.style.transitionDuration=`0ms`,n.hide&&(s.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style[`scroll-snap-type`]=`none`),i(`scrollbarDragStart`,e)}function v(e){let{scrollbar:n,wrapperEl:r}=t,{el:a,dragEl:o}=n;u&&(e.preventDefault?e.preventDefault():e.returnValue=!1,g(e),r.style.transitionDuration=`0ms`,a.style.transitionDuration=`0ms`,o.style.transitionDuration=`0ms`,i(`scrollbarDragMove`,e))}function y(e){let n=t.params.scrollbar,{scrollbar:r,wrapperEl:a}=t,{el:o}=r;u&&(u=!1,t.params.cssMode&&(t.wrapperEl.style[`scroll-snap-type`]=``,a.style.transitionDuration=``),n.hide&&(clearTimeout(f),f=Zr((()=>{o.style.opacity=0,o.style.transitionDuration=`400ms`}),1e3)),i(`scrollbarDragEnd`,e),n.snapOnRelease&&t.slideToClosest())}function b(e){let{scrollbar:n,params:r}=t,i=n.el;if(!i)return;let o=i,s=!!r.passiveListeners&&{passive:!1,capture:!1},c=!!r.passiveListeners&&{passive:!0,capture:!1};if(!o)return;let l=e===`on`?`addEventListener`:`removeEventListener`;o[l](`pointerdown`,_,s),a[l](`pointermove`,v,s),a[l](`pointerup`,y,c)}function x(){let{scrollbar:e,el:n}=t;t.params.scrollbar=Xi(t,t.originalParams.scrollbar,t.params.scrollbar,{el:`swiper-scrollbar`});let r=t.params.scrollbar;if(!r.el)return;let i,o;if(typeof r.el==`string`&&t.isElement&&(i=t.el.querySelector(r.el)),i||typeof r.el!=`string`)i||=r.el;else if(i=a.querySelectorAll(r.el),!i.length)return;t.params.uniqueNavElements&&typeof r.el==`string`&&i.length>1&&n.querySelectorAll(r.el).length===1&&(i=n.querySelector(r.el)),i.length>0&&(i=i[0]),i.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass),i&&(o=i.querySelector(Zi(t.params.scrollbar.dragClass)),o||(o=si(`div`,t.params.scrollbar.dragClass),i.append(o))),Object.assign(e,{el:i,dragEl:o}),r.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&b(`on`),i&&i.classList[t.enabled?`remove`:`add`](...Xr(t.params.scrollbar.lockClass))}function S(){let e=t.params.scrollbar,n=t.scrollbar.el;n&&n.classList.remove(...Xr(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&b(`off`)}n({scrollbar:{el:null,dragSize:`auto`,hide:!1,draggable:!1,snapOnRelease:!0,lockClass:`swiper-scrollbar-lock`,dragClass:`swiper-scrollbar-drag`,scrollbarDisabledClass:`swiper-scrollbar-disabled`,horizontalClass:`swiper-scrollbar-horizontal`,verticalClass:`swiper-scrollbar-vertical`}}),t.scrollbar={el:null,dragEl:null},r(`init`,(()=>{!1===t.params.scrollbar.enabled?C():(x(),m(),p())})),r(`update resize observerUpdate lock unlock`,(()=>{m()}
50)),r(`setTranslate`,(()=>{p()})),r(`setTransition`,((e,n)=>{(function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)})(n)})),r(`enable disable`,(()=>{let{el:e}=t.scrollbar;e&&e.classList[t.enabled?`remove`:`add`](...Xr(t.params.scrollbar.lockClass))})),r(`destroy`,(()=>{S()}));let C=()=>{t.el.classList.add(...Xr(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...Xr(t.params.scrollbar.scrollbarDisabledClass)),S()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...Xr(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...Xr(t.params.scrollbar.scrollbarDisabledClass)),x(),m(),p()},disable:C,updateSize:m,setTranslate:p,init:x,destroy:S})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({parallax:{enabled:!1}});let i=`[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]`,a=(e,n)=>{let{rtl:r}=t,i=r?-1:1,a=e.getAttribute(`data-swiper-parallax`)||`0`,o=e.getAttribute(`data-swiper-parallax-x`),s=e.getAttribute(`data-swiper-parallax-y`),c=e.getAttribute(`data-swiper-parallax-scale`),l=e.getAttribute(`data-swiper-parallax-opacity`),u=e.getAttribute(`data-swiper-parallax-rotate`);if(o||s?(o||=`0`,s||=`0`):t.isHorizontal()?(o=a,s=`0`):(s=a,o=`0`),o=o.indexOf(`%`)>=0?parseInt(o,10)*n*i+`%`:o*n*i+`px`,s=s.indexOf(`%`)>=0?parseInt(s,10)*n+`%`:s*n+`px`,l!=null){let t=l-(l-1)*(1-Math.abs(n));e.style.opacity=t}let d=`translate3d(${o}, ${s}, 0px)`;c!=null&&(d+=` scale(${c-(c-1)*(1-Math.abs(n))})`),u&&u!=null&&(d+=` rotate(${u*n*-1}deg)`),e.style.transform=d},o=()=>{let{el:e,slides:n,progress:r,snapGrid:o,isElement:s}=t,c=ai(e,i);t.isElement&&c.push(...ai(t.hostEl,i)),c.forEach((e=>{a(e,r)})),n.forEach(((e,n)=>{let s=e.progress;t.params.slidesPerGroup>1&&t.params.slidesPerView!==`auto`&&(s+=Math.ceil(n/2)-r*(o.length-1)),s=Math.min(Math.max(s,-1),1),e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach((e=>{a(e,s)}))}))};r(`beforeInit`,(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),r(`init`,(()=>{t.params.parallax.enabled&&o()})),r(`setTranslate`,(()=>{t.params.parallax.enabled&&o()})),r(`setTransition`,((e,n)=>{t.params.parallax.enabled&&function(e){e===void 0&&(e=t.params.speed);let{el:n,hostEl:r}=t,a=[...n.querySelectorAll(i)];t.isElement&&a.push(...r.querySelectorAll(i)),a.forEach((t=>{let n=parseInt(t.getAttribute(`data-swiper-parallax-duration`),10)||e;e===0&&(n=0),t.style.transitionDuration=`${n}ms`}))}(n)}))},function(e){let{swiper:t,extendParams:n,on:r,emit:i}=e,a=Yr();n({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:`swiper-zoom-container`,zoomedSlideClass:`swiper-slide-zoomed`}}),t.zoom={enabled:!1};let o,s,c=1,l=!1,u=[],d={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},p={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0},m=1;function h(){if(u.length<2)return 1;let e=u[0].pageX,t=u[0].pageY,n=u[1].pageX,r=u[1].pageY;return Math.sqrt((n-e)**2+(r-t)**2)}function g(e){let n=t.isElement?`swiper-slide`:`.${t.params.slideClass}`;return!!e.target.matches(n)||t.slides.filter((t=>t.contains(e.target))).length>0}function _(e){if(e.pointerType===`mouse`&&u.splice(0,u.length),!g(e))return;let n=t.params.zoom;if(o=!1,s=!1,u.push(e),!(u.length<2)){if(o=!0,d.scaleStart=h(),!d.slideEl){d.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),d.slideEl||=t.slides[t.activeIndex];let r=d.slideEl.querySelector(`.${n.containerClass}`);if(r&&=r.querySelectorAll(`picture, img, svg, canvas, .swiper-zoom-target`)[0],d.imageEl=r,d.imageWrapEl=r?di(d.imageEl,`.${n.containerClass}`)[0]:void 0,!d.imageWrapEl)return void(d.imageEl=void 0);d.maxRatio=d.imageWrapEl.getAttribute(`data-swiper-zoom`)||n.maxRatio}if(d.imageEl){let[e,t]=function(){if(u.length<2)return{x:null,y:null};let e=d.imageEl.getBoundingClientRect();return[(u[0].pageX+(u[1].pageX-u[0].pageX)/2-e.x-a.scrollX)/c,(u[0].pageY+(u[1].pageY-u[0].pageY)/2-e.y-a.scrollY)/c]}();d.originX=e,d.originY=t,d.imageEl.style.transitionDuration=`0ms`}l=!0}}function v(e){if(!g(e))return;let n=t.params.zoom,r=t.zoom,i=u.findIndex((t=>t.pointerId===e.pointerId));i>=0&&(u[i]=e),u.length<2||(s=!0,d.scaleMove=h(),d.imageEl&&(r.scale=d.scaleMove/d.scaleStart*c,r.scale>d.maxRatio&&(r.scale=d.maxRatio-1+(r.scale-d.maxRatio+1)**.5),r.scale<n.minRatio&&(r.scale=n.minRatio+1-(n.minRatio-r.scale+1)**.5),d.imageEl.style.transform=`translate3d(0,
500,0) scale(${r.scale})`))}function y(e){if(!g(e)||e.pointerType===`mouse`&&e.type===`pointerout`)return;let n=t.params.zoom,r=t.zoom,i=u.findIndex((t=>t.pointerId===e.pointerId));i>=0&&u.splice(i,1),o&&s&&(o=!1,s=!1,d.imageEl&&(r.scale=Math.max(Math.min(r.scale,d.maxRatio),n.minRatio),d.imageEl.style.transitionDuration=`${t.params.speed}ms`,d.imageEl.style.transform=`translate3d(0,0,0) scale(${r.scale})`,c=r.scale,l=!1,r.scale>1&&d.slideEl?d.slideEl.classList.add(`${n.zoomedSlideClass}`):r.scale<=1&&d.slideEl&&d.slideEl.classList.remove(`${n.zoomedSlideClass}`),r.scale===1&&(d.originX=0,d.originY=0,d.slideEl=void 0)))}function b(e){if(!g(e)||!function(e){let n=`.${t.params.zoom.containerClass}`;return!!e.target.matches(n)||[...t.hostEl.querySelectorAll(n)].filter((t=>t.contains(e.target))).length>0}(e))return;let n=t.zoom;if(!d.imageEl||!f.isTouched||!d.slideEl)return;f.isMoved||(f.width=d.imageEl.offsetWidth,f.height=d.imageEl.offsetHeight,f.startX=$r(d.imageWrapEl,`x`)||0,f.startY=$r(d.imageWrapEl,`y`)||0,d.slideWidth=d.slideEl.offsetWidth,d.slideHeight=d.slideEl.offsetHeight,d.imageWrapEl.style.transitionDuration=`0ms`);let r=f.width*n.scale,i=f.height*n.scale;if(r<d.slideWidth&&i<d.slideHeight)return;if(f.minX=Math.min(d.slideWidth/2-r/2,0),f.maxX=-f.minX,f.minY=Math.min(d.slideHeight/2-i/2,0),f.maxY=-f.minY,f.touchesCurrent.x=u.length>0?u[0].pageX:e.pageX,f.touchesCurrent.y=u.length>0?u[0].pageY:e.pageY,Math.max(Math.abs(f.touchesCurrent.x-f.touchesStart.x),Math.abs(f.touchesCurrent.y-f.touchesStart.y))>5&&(t.allowClick=!1),!f.isMoved&&!l&&(t.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x)||!t.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y)))return void(f.isTouched=!1);e.cancelable&&e.preventDefault(),e.stopPropagation(),f.isMoved=!0;let a=(n.scale-c)/(d.maxRatio-t.params.zoom.minRatio),{originX:o,originY:s}=d;f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX+a*(f.width-2*o),f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY+a*(f.height-2*s),f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),p.prevPositionX||=f.touchesCurrent.x,p.prevPositionY||=f.touchesCurrent.y,p.prevTime||=Date.now(),p.x=(f.touchesCurrent.x-p.prevPositionX)/(Date.now()-p.prevTime)/2,p.y=(f.touchesCurrent.y-p.prevPositionY)/(Date.now()-p.prevTime)/2,Math.abs(f.touchesCurrent.x-p.prevPositionX)<2&&(p.x=0),Math.abs(f.touchesCurrent.y-p.prevPositionY)<2&&(p.y=0),p.prevPositionX=f.touchesCurrent.x,p.prevPositionY=f.touchesCurrent.y,p.prevTime=Date.now(),d.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}function x(){let e=t.zoom;d.slideEl&&t.activeIndex!==t.slides.indexOf(d.slideEl)&&(d.imageEl&&(d.imageEl.style.transform=`translate3d(0,0,0) scale(1)`),d.imageWrapEl&&(d.imageWrapEl.style.transform=`translate3d(0,0,0)`),d.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,c=1,d.slideEl=void 0,d.imageEl=void 0,d.imageWrapEl=void 0,d.originX=0,d.originY=0)}function S(e){let n=t.zoom,r=t.params.zoom;if(!d.slideEl){e&&e.target&&(d.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),d.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?d.slideEl=ai(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:d.slideEl=t.slides[t.activeIndex]);let n=d.slideEl.querySelector(`.${r.containerClass}`);n&&=n.querySelectorAll(`picture, img, svg, canvas, .swiper-zoom-target`)[0],d.imageEl=n,d.imageWrapEl=n?di(d.imageEl,`.${r.containerClass}`)[0]:void 0}if(!d.imageEl||!d.imageWrapEl)return;let i,o,s,l,u,p,m,h,g,_,v,y,b,x,S,C,w,T;t.params.cssMode&&(t.wrapperEl.style.overflow=`hidden`,t.wrapperEl.style.touchAction=`none`),d.slideEl.classList.add(`${r.zoomedSlideClass}`),f.touchesStart.x===void 0&&e?(i=e.pageX,o=e.pageY):(i=f.touchesStart.x,o=f.touchesStart.y);let E=typeof e==`number`?e:null;c===1&&E&&(i=void 0,o=void 0),n.scale=E||d.imageWrapEl.getAttribute(`data-swiper-zoom`)||r.maxRatio,c=E||d.imageWrapEl.getAttribute(`data-swiper-zoom`)||r.maxRatio,!e||c===1&&E?(m=0,h=0):(w=d.slideEl.offsetWidth,T=d.slideEl.offsetHeight,s=ci(d.slideEl).left+a.scrollX,l=ci(d.slideEl).top+a.scrollY,u=s+w/2-i,p=l+T/2-o,g=d.imageEl.offsetWidth,_=d.imageEl.offsetHeight,v=g*n.scale,y=_*n.scale,b=Math.min(w/2-v/2,0),x=Math.min(T/2-y/2,0),S=-b,C=-x,m=u*n.scale,h=p*n.scale,m
50<b&&(m=b),m>S&&(m=S),h<x&&(h=x),h>C&&(h=C)),E&&n.scale===1&&(d.originX=0,d.originY=0),d.imageWrapEl.style.transitionDuration=`300ms`,d.imageWrapEl.style.transform=`translate3d(${m}px, ${h}px,0)`,d.imageEl.style.transitionDuration=`300ms`,d.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`}function C(){let e=t.zoom,n=t.params.zoom;if(!d.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?d.slideEl=ai(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:d.slideEl=t.slides[t.activeIndex];let e=d.slideEl.querySelector(`.${n.containerClass}`);e&&=e.querySelectorAll(`picture, img, svg, canvas, .swiper-zoom-target`)[0],d.imageEl=e,d.imageWrapEl=e?di(d.imageEl,`.${n.containerClass}`)[0]:void 0}d.imageEl&&d.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow=``,t.wrapperEl.style.touchAction=``),e.scale=1,c=1,d.imageWrapEl.style.transitionDuration=`300ms`,d.imageWrapEl.style.transform=`translate3d(0,0,0)`,d.imageEl.style.transitionDuration=`300ms`,d.imageEl.style.transform=`translate3d(0,0,0) scale(1)`,d.slideEl.classList.remove(`${n.zoomedSlideClass}`),d.slideEl=void 0,d.originX=0,d.originY=0)}function w(e){let n=t.zoom;n.scale&&n.scale!==1?C():S(e)}function T(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function E(){let e=t.zoom;if(e.enabled)return;e.enabled=!0;let{passiveListener:n,activeListenerWithCapture:r}=T();t.wrapperEl.addEventListener(`pointerdown`,_,n),t.wrapperEl.addEventListener(`pointermove`,v,r),[`pointerup`,`pointercancel`,`pointerout`].forEach((e=>{t.wrapperEl.addEventListener(e,y,n)})),t.wrapperEl.addEventListener(`pointermove`,b,r)}function D(){let e=t.zoom;if(!e.enabled)return;e.enabled=!1;let{passiveListener:n,activeListenerWithCapture:r}=T();t.wrapperEl.removeEventListener(`pointerdown`,_,n),t.wrapperEl.removeEventListener(`pointermove`,v,r),[`pointerup`,`pointercancel`,`pointerout`].forEach((e=>{t.wrapperEl.removeEventListener(e,y,n)})),t.wrapperEl.removeEventListener(`pointermove`,b,r)}Object.defineProperty(t.zoom,"scale",{get(){return m},set(e){if(m!==e){let t=d.imageEl,n=d.slideEl;i(`zoomChange`,e,t,n)}m=e}}),r(`init`,(()=>{t.params.zoom.enabled&&E()})),r(`destroy`,(()=>{D()})),r(`touchStart`,((e,n)=>{t.zoom.enabled&&function(e){let n=t.device;if(!d.imageEl||f.isTouched)return;n.android&&e.cancelable&&e.preventDefault(),f.isTouched=!0;let r=u.length>0?u[0]:e;f.touchesStart.x=r.pageX,f.touchesStart.y=r.pageY}(n)})),r(`touchEnd`,((e,n)=>{t.zoom.enabled&&function(){let e=t.zoom;if(!d.imageEl)return;if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let n=300,r=300,i=p.x*n,a=f.currentX+i,o=p.y*r,s=f.currentY+o;p.x!==0&&(n=Math.abs((a-f.currentX)/p.x)),p.y!==0&&(r=Math.abs((s-f.currentY)/p.y));let c=Math.max(n,r);f.currentX=a,f.currentY=s;let l=f.width*e.scale,u=f.height*e.scale;f.minX=Math.min(d.slideWidth/2-l/2,0),f.maxX=-f.minX,f.minY=Math.min(d.slideHeight/2-u/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),d.imageWrapEl.style.transitionDuration=`${c}ms`,d.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}()})),r(`doubleTap`,((e,n)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&w(n)})),r(`transitionEnd`,(()=>{t.zoom.enabled&&t.params.zoom.enabled&&x()})),r(`slideChange`,(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&x()})),Object.assign(t.zoom,{enable:E,disable:D,in:S,out:C,toggle:w})},function(e){let{swiper:t,extendParams:n,on:r}=e;function i(e,t){let n=function(){let e,t,n;return(r,i)=>{for(t=-1,e=r.length;e-t>1;)n=e+t>>1,r[n]<=i?t=n:e=n;return e}}(),r,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=n(this.x,e),r=i-1,(e-this.x[r])*(this.y[i]-this.y[r])/(this.x[i]-this.x[r])+this.y[r]):0},this}function a(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}n({controller:{control:void 0,inverse:!1,by:`slide`}}),t.controller={control:void 0},r(`beforeInit`,(()=>{if(typeof window<`u`&&(typeof t.params.controller.control==`string`||t.params.controller.control instanceof HTMLElement)){let e=document.querySelector(t.params.controller.control);if(e&&e.swiper)t.controller.control=e.swiper;else if(e){let n=r=>
50{t.controller.control=r.detail[0],t.update(),e.removeEventListener(`init`,n)};e.addEventListener(`init`,n)}}else t.controller.control=t.params.controller.control})),r(`update`,(()=>{a()})),r(`resize`,(()=>{a()})),r(`observerUpdate`,(()=>{a()})),r(`setTranslate`,((e,n,r)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(n,r)})),r(`setTransition`,((e,n,r)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(n,r)})),Object.assign(t.controller,{setTranslate:function(e,n){let r=t.controller.control,a,o,s=t.constructor;function c(e){if(e.destroyed)return;let n=t.rtlTranslate?-t.translate:t.translate;t.params.controller.by===`slide`&&(function(e){t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid)}(e),o=-t.controller.spline.interpolate(-n)),o&&t.params.controller.by!==`container`||(a=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(a)&&Number.isFinite(a)||(a=1),o=(n-t.minTranslate())*a+e.minTranslate()),t.params.controller.inverse&&(o=e.maxTranslate()-o),e.updateProgress(o),e.setTranslate(o,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(let e=0;e<r.length;e+=1)r[e]!==n&&r[e]instanceof s&&c(r[e]);else r instanceof s&&n!==r&&c(r)},setTransition:function(e,n){let r=t.constructor,i=t.controller.control,a;function o(n){n.destroyed||(n.setTransition(e,t),e!==0&&(n.transitionStart(),n.params.autoHeight&&Zr((()=>{n.updateAutoHeight()})),fi(n.wrapperEl,(()=>{i&&n.transitionEnd()}))))}if(Array.isArray(i))for(a=0;a<i.length;a+=1)i[a]!==n&&i[a]instanceof r&&o(i[a]);else i instanceof r&&n!==i&&o(i)}})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({a11y:{enabled:!0,notificationClass:`swiper-notification`,prevSlideMessage:`Previous slide`,nextSlideMessage:`Next slide`,firstSlideMessage:`This is the first slide`,lastSlideMessage:`This is the last slide`,paginationBulletMessage:`Go to slide {{index}}`,slideLabelMessage:`{{index}} / {{slidesLength}}`,containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:`group`,id:null}}),t.a11y={clicked:!1};let i=null;function a(e){let t=i;t.length!==0&&(t.innerHTML=``,t.innerHTML=e)}let o=e=>(Array.isArray(e)?e:[e]).filter((e=>!!e));function s(e){(e=o(e)).forEach((e=>{e.setAttribute(`tabIndex`,`0`)}))}function c(e){(e=o(e)).forEach((e=>{e.setAttribute(`tabIndex`,`-1`)}))}function l(e,t){(e=o(e)).forEach((e=>{e.setAttribute(`role`,t)}))}function u(e,t){(e=o(e)).forEach((e=>{e.setAttribute(`aria-roledescription`,t)}))}function d(e,t){(e=o(e)).forEach((e=>{e.setAttribute(`aria-label`,t)}))}function f(e){(e=o(e)).forEach((e=>{e.setAttribute(`aria-disabled`,!0)}))}function p(e){(e=o(e)).forEach((e=>{e.setAttribute(`aria-disabled`,!1)}))}function m(e){if(e.keyCode!==13&&e.keyCode!==32)return;let n=t.params.a11y,r=e.target;t.pagination&&t.pagination.el&&(r===t.pagination.el||t.pagination.el.contains(e.target))&&!e.target.matches(Zi(t.params.pagination.bulletClass))||(t.navigation&&t.navigation.nextEl&&r===t.navigation.nextEl&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?a(n.lastSlideMessage):a(n.nextSlideMessage)),t.navigation&&t.navigation.prevEl&&r===t.navigation.prevEl&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?a(n.firstSlideMessage):a(n.prevSlideMessage)),t.pagination&&r.matches(Zi(t.params.pagination.bulletClass))&&r.click())}function h(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function g(){return h()&&t.params.pagination.clickable}let _=(e,t,n)=>{s(e),e.tagName!==`BUTTON`&&(l(e,`button`),e.addEventListener(`keydown`,m)),d(e,n),function(e,t){(e=o(e)).forEach((e=>{e.setAttribute(`aria-controls`,t)}))}(e,t)},v=()=>{t.a11y.clicked=!0},y=()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},b=e=>{if(t.a11y.clicked)return;let n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;let r=t.slides.indexOf(n)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);r||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(n),0))},x=()=>{let e=t.params.a11y;e.itemRoleDescriptionMessage&&u(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&l(t.slides,e.slideRole);let n=t.slides.length;
50e.slideLabelMessage&&t.slides.forEach(((r,i)=>{let a=t.params.loop?parseInt(r.getAttribute(`data-swiper-slide-index`),10):i;d(r,e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,n))}))},S=()=>{let e=t.params.a11y;t.el.append(i);let n=t.el;e.containerRoleDescriptionMessage&&u(n,e.containerRoleDescriptionMessage),e.containerMessage&&d(n,e.containerMessage);let r=t.wrapperEl,a=e.id||r.getAttribute(`id`)||`swiper-wrapper-${s=16,s===void 0&&(s=16),`x`.repeat(s).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var s;let c=t.params.autoplay&&t.params.autoplay.enabled?`off`:`polite`;var l=a;o(r).forEach((e=>{e.setAttribute(`id`,l)})),function(e,t){(e=o(e)).forEach((e=>{e.setAttribute(`aria-live`,t)}))}(r,c),x();let{nextEl:f,prevEl:p}=t.navigation?t.navigation:{};f=o(f),p=o(p),f&&f.forEach((t=>_(t,a,e.nextSlideMessage))),p&&p.forEach((t=>_(t,a,e.prevSlideMessage))),g()&&o(t.pagination.el).forEach((e=>{e.addEventListener(`keydown`,m)})),t.el.addEventListener(`focus`,b,!0),t.el.addEventListener(`pointerdown`,v,!0),t.el.addEventListener(`pointerup`,y,!0)};r(`beforeInit`,(()=>{i=si(`span`,t.params.a11y.notificationClass),i.setAttribute(`aria-live`,`assertive`),i.setAttribute(`aria-atomic`,`true`)})),r(`afterInit`,(()=>{t.params.a11y.enabled&&S()})),r(`slidesLengthChange snapGridLengthChange slidesGridLengthChange`,(()=>{t.params.a11y.enabled&&x()})),r(`fromEdge toEdge afterInit lock unlock`,(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;let{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(f(n),c(n)):(p(n),s(n))),e&&(t.isEnd?(f(e),c(e)):(p(e),s(e)))}()})),r(`paginationUpdate`,(()=>{t.params.a11y.enabled&&function(){let e=t.params.a11y;h()&&t.pagination.bullets.forEach((n=>{t.params.pagination.clickable&&(s(n),t.params.pagination.renderBullet||(l(n,`button`),d(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,ui(n)+1)))),n.matches(Zi(t.params.pagination.bulletActiveClass))?n.setAttribute(`aria-current`,`true`):n.removeAttribute(`aria-current`)}))}()})),r(`destroy`,(()=>{t.params.a11y.enabled&&function(){i&&i.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=o(e),n=o(n),e&&e.forEach((e=>e.removeEventListener(`keydown`,m))),n&&n.forEach((e=>e.removeEventListener(`keydown`,m))),g()&&o(t.pagination.el).forEach((e=>{e.removeEventListener(`keydown`,m)})),t.el.removeEventListener(`focus`,b,!0),t.el.removeEventListener(`pointerdown`,v,!0),t.el.removeEventListener(`pointerup`,y,!0)}()}))},function(e){let{swiper:t,extendParams:n,on:r}=e;n({history:{enabled:!1,root:``,replaceState:!1,key:`slides`,keepQuery:!1}});let i=!1,a={},o=e=>e.toString().replace(/\s+/g,`-`).replace(/[^\w-]+/g,``).replace(/--+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),s=e=>{let t=Yr(),n;n=e?new URL(e):t.location;let r=n.pathname.slice(1).split(`/`).filter((e=>e!==``)),i=r.length;return{key:r[i-2],value:r[i-1]}},c=(e,n)=>{let r=Yr();if(!i||!t.params.history.enabled)return;let a;a=t.params.url?new URL(t.params.url):r.location;let s=t.slides[n],c=o(s.getAttribute(`data-history`));if(t.params.history.root.length>0){let n=t.params.history.root;n[n.length-1]===`/`&&(n=n.slice(0,n.length-1)),c=`${n}/${e?`${e}/`:``}${c}`}else a.pathname.includes(e)||(c=`${e?`${e}/`:``}${c}`);t.params.history.keepQuery&&(c+=a.search);let l=r.history.state;l&&l.value===c||(t.params.history.replaceState?r.history.replaceState({value:c},null,c):r.history.pushState({value:c},null,c))},l=(e,n,r)=>{if(n)for(let i=0,a=t.slides.length;i<a;i+=1){let a=t.slides[i];if(o(a.getAttribute(`data-history`))===n){let n=t.getSlideIndex(a);t.slideTo(n,e,r)}}else t.slideTo(0,e,r)},u=()=>{a=s(t.params.url),l(t.params.speed,a.value,!1)};r(`init`,(()=>{t.params.history.enabled&&(()=>{let e=Yr();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,a=s(t.params.url),(a.key||a.value)&&l(0,a.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener(`popstate`,u)}})()})),r(`destroy`,(()=>{t.params.history.enabled&&(()=>{let e=Yr();t.params.history.replaceState||e.removeEventListener(`popstate`,u)})()})),r(`transitionEnd _freeModeNoMomentumRelease`,(()=>{i&&c(t.params.history.key,t.activeIndex)})),r(`slideChange`,(()=>{i&&t.params.cssMode&&c(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:n,emit:r,on:i}=e,a=!1,o=qr(),s=Yr();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,n){if(t.virtual&&t.params.virtual.enabled){let e=t.slides.filter((e=>e.getAttribute(`data-hash`)===n))[0];return e?parseInt(e.getAttribute(`data-swiper-slide-index`),10):0}return t.getSlideIndex(ai(t.slidesEl,`.${t.params.slideClass}[data-hash="${n}"], swiper-slide[data-hash="${n}"]`)[0])}}});let c=()=>{r(`hashChange`);let e=o.location.hash.replace(`#`,``),n=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(n?n.getAttribute(`data-hash`):``)){let n=t.params.hashNavigation.getSlideIndex(t,e);if(n===void 0||Number.isNaN(n))return;t.slideTo(n)}},l=()=>{if(!a||!t.params.hashNavigation.enabled)return;let e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],n=e?e.getAttribute(`data-hash`)||e.getAttribute(`data-history`):``;t.params.hashNavigation.replaceState&&s.history&&s.history.replaceState?(s.history.replaceState(null,null,`#${n}`||``),r(`hashSet`)):(o.location.hash=n||``,r(`hashSet`))};i(`init`,(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;a=!0;let e=o.location.hash.replace(`#`,``);if(e){let n=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(n||0,0,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&s.addEventListener(`hashchange`,c)})()})),i(`destroy`,(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&s.removeEventListener(`hashchange`,c)})),i(`transitionEnd _freeModeNoMomentumRelease`,(()=>{a&&l()})),i(`slideChange`,(()=>{a&&t.params.cssMode&&l()}))},function(e){let t,n,{swiper:r,extendParams:i,on:a,emit:o,params:s}=e;r.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let c,l,u,d,f,p,m,h,g=s&&s.autoplay?s.autoplay.delay:3e3,_=s&&s.autoplay?s.autoplay.delay:3e3,v=new Date().getTime();function y(e){r&&!r.destroyed&&r.wrapperEl&&e.target===r.wrapperEl&&(r.wrapperEl.removeEventListener(`transitionend`,y),h||T())}let b=()=>{if(r.destroyed||!r.autoplay.running)return;
50r.autoplay.paused?l=!0:l&&=(_=c,!1);let e=r.autoplay.paused?c:v+_-new Date().getTime();r.autoplay.timeLeft=e,o(`autoplayTimeLeft`,e,e/g),n=requestAnimationFrame((()=>{b()}))},x=e=>{if(r.destroyed||!r.autoplay.running)return;cancelAnimationFrame(n),b();let i=e===void 0?r.params.autoplay.delay:e;g=r.params.autoplay.delay,_=r.params.autoplay.delay;let a=(()=>{let e;if(e=r.virtual&&r.params.virtual.enabled?r.slides.filter((e=>e.classList.contains(`swiper-slide-active`)))[0]:r.slides[r.activeIndex],e)return parseInt(e.getAttribute(`data-swiper-autoplay`),10)})();!Number.isNaN(a)&&a>0&&e===void 0&&(i=a,g=a,_=a),c=i;let s=r.params.speed,l=()=>{r&&!r.destroyed&&(r.params.autoplay.reverseDirection?!r.isBeginning||r.params.loop||r.params.rewind?(r.slidePrev(s,!0,!0),o(`autoplay`)):r.params.autoplay.stopOnLastSlide||(r.slideTo(r.slides.length-1,s,!0,!0),o(`autoplay`)):!r.isEnd||r.params.loop||r.params.rewind?(r.slideNext(s,!0,!0),o(`autoplay`)):r.params.autoplay.stopOnLastSlide||(r.slideTo(0,s,!0,!0),o(`autoplay`)),r.params.cssMode&&(v=new Date().getTime(),requestAnimationFrame((()=>{x()}))))};return i>0?(clearTimeout(t),t=setTimeout((()=>{l()}),i)):requestAnimationFrame((()=>{l()})),i},S=()=>{v=new Date().getTime(),r.autoplay.running=!0,x(),o(`autoplayStart`)},C=()=>{r.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(n),o(`autoplayStop`)},w=(e,n)=>{if(r.destroyed||!r.autoplay.running)return;clearTimeout(t),e||(m=!0);let i=()=>{o(`autoplayPause`),r.params.autoplay.waitForTransition?r.wrapperEl.addEventListener(`transitionend`,y):T()};if(r.autoplay.paused=!0,n)return p&&(c=r.params.autoplay.delay),p=!1,void i();c=(c||r.params.autoplay.delay)-(new Date().getTime()-v),r.isEnd&&c<0&&!r.params.loop||(c<0&&(c=0),i())},T=()=>{r.isEnd&&c<0&&!r.params.loop||r.destroyed||!r.autoplay.running||(v=new Date().getTime(),m?(m=!1,x(c)):x(),r.autoplay.paused=!1,o(`autoplayResume`))},E=()=>{if(r.destroyed||!r.autoplay.running)return;let e=qr();e.visibilityState===`hidden`&&(m=!0,w(!0)),e.visibilityState===`visible`&&T()},D=e=>{e.pointerType===`mouse`&&(m=!0,h=!0,r.animating||r.autoplay.paused||w(!0))},O=e=>{e.pointerType===`mouse`&&(h=!1,r.autoplay.paused&&T())};a(`init`,(()=>{r.params.autoplay.enabled&&(r.params.autoplay.pauseOnMouseEnter&&(r.el.addEventListener(`pointerenter`,D),r.el.addEventListener(`pointerleave`,O)),qr().addEventListener(`visibilitychange`,E),S())})),a(`destroy`,(()=>{r.el.removeEventListener(`pointerenter`,D),r.el.removeEventListener(`pointerleave`,O),qr().removeEventListener(`visibilitychange`,E),r.autoplay.running&&C()})),a(`_freeModeStaticRelease`,(()=>{(d||m)&&T()})),a(`_freeModeNoMomentumRelease`,(()=>{r.params.autoplay.disableOnInteraction?C():w(!0,!0)})),a(`beforeTransitionStart`,((e,t,n)=>{!r.destroyed&&r.autoplay.running&&(n||!r.params.autoplay.disableOnInteraction?w(!0,!0):C())})),a(`sliderFirstMove`,(()=>{!r.destroyed&&r.autoplay.running&&(r.params.autoplay.disableOnInteraction?C():(u=!0,d=!1,m=!1,f=setTimeout((()=>{m=!0,d=!0,w(!0)}),200)))})),a(`touchEnd`,(()=>{if(!r.destroyed&&r.autoplay.running&&u){if(clearTimeout(f),clearTimeout(t),r.params.autoplay.disableOnInteraction)return d=!1,void(u=!1);d&&r.params.cssMode&&T(),d=!1,u=!1}})),a(`slideChange`,(()=>{!r.destroyed&&r.autoplay.running&&(p=!0)})),Object.assign(r.autoplay,{start:S,stop:C,pause:w,resume:T})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:`swiper-slide-thumb-active`,thumbsContainerClass:`swiper-thumbs`}});let i=!1,a=!1;function o(){let e=t.thumbs.swiper;if(!e||e.destroyed)return;let n=e.clickedIndex,r=e.clickedSlide;if(r&&r.classList.contains(t.params.thumbs.slideThumbActiveClass)||n==null)return;let i;i=e.params.loop?parseInt(e.clickedSlide.getAttribute(`data-swiper-slide-index`),10):n,t.params.loop?t.slideToLoop(i):t.slideTo(i)}function s(){let{thumbs:e}=t.params;if(i)return!1;i=!0;let n=t.constructor;if(e.swiper instanceof n)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}
50),t.thumbs.swiper.update();else if(ei(e.swiper)){let r=Object.assign({},e.swiper);Object.assign(r,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new n(r),a=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on(`tap`,o),!0}function c(e){let n=t.thumbs.swiper;if(!n||n.destroyed)return;let r=n.params.slidesPerView===`auto`?n.slidesPerViewDynamic():n.params.slidesPerView,i=1,a=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),n.slides.forEach((e=>e.classList.remove(a))),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<i;e+=1)ai(n.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(a)}));else for(let e=0;e<i;e+=1)n.slides[t.realIndex+e]&&n.slides[t.realIndex+e].classList.add(a);let o=t.params.thumbs.autoScrollOffset,s=o&&!n.params.loop;if(t.realIndex!==n.realIndex||s){let i=n.activeIndex,a,c;if(n.params.loop){let e=n.slides.filter((e=>e.getAttribute(`data-swiper-slide-index`)===`${t.realIndex}`))[0];a=n.slides.indexOf(e),c=t.activeIndex>t.previousIndex?`next`:`prev`}else a=t.realIndex,c=a>t.previousIndex?`next`:`prev`;s&&(a+=c===`next`?o:-1*o),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(a)<0&&(n.params.centeredSlides?a=a>i?a-Math.floor(r/2)+1:a+Math.floor(r/2)-1:a>i&&n.params.slidesPerGroup,n.slideTo(a,e?0:void 0))}}t.thumbs={swiper:null},r(`beforeInit`,(()=>{let{thumbs:e}=t.params;if(e&&e.swiper){if(typeof e.swiper==`string`||e.swiper instanceof HTMLElement){let n=qr(),r=()=>{let r=typeof e.swiper==`string`?n.querySelector(e.swiper):e.swiper;if(r&&r.swiper)e.swiper=r.swiper,s(),c(!0);else if(r){let n=i=>{e.swiper=i.detail[0],r.removeEventListener(`init`,n),s(),c(!0),e.swiper.update(),t.update()};r.addEventListener(`init`,n)}return r},i=()=>{t.destroyed||r()||requestAnimationFrame(i)};requestAnimationFrame(i)}else s(),c(!0)}})),r(`slideChange update resize observerUpdate`,(()=>{c()})),r(`setTransition`,((e,n)=>{let r=t.thumbs.swiper;r&&!r.destroyed&&r.setTransition(n)})),r(`beforeDestroy`,(()=>{let e=t.thumbs.swiper;e&&!e.destroyed&&a&&e.destroy()})),Object.assign(t.thumbs,{init:s,update:c})},function(e){let{swiper:t,extendParams:n,emit:r,once:i}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;let e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;let{touchEventsData:e,touches:n}=t;e.velocities.length===0&&e.velocities.push({position:n[t.isHorizontal()?`startX`:`startY`],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?`currentX`:`currentY`],time:Qr()})},onTouchEnd:function(e){let{currentPos:n}=e;if(t.params.cssMode)return;let{params:a,wrapperEl:o,rtlTranslate:s,snapGrid:c,touchEventsData:l}=t,u=Qr()-l.touchStartTime;if(n<-t.minTranslate())t.slideTo(t.activeIndex);else if(n>-t.maxTranslate())t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1);else{if(a.freeMode.momentum){if(l.velocities.length>1){let e=l.velocities.pop(),n=l.velocities.pop(),r=e.position-n.position,i=e.time-n.time;t.velocity=r/i,t.velocity/=2,Math.abs(t.velocity)<a.freeMode.minimumVelocity&&(t.velocity=0),(i>150||Qr()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeMode.momentumVelocityRatio,l.velocities.length=0;let e=1e3*a.freeMode.momentumRatio,n=t.velocity*e,u=t.translate+n;s&&(u=-u);let d,f=!1,p=20*Math.abs(t.velocity)*a.freeMode.momentumBounceRatio,m;if(u<t.maxTranslate())a.freeMode.momentumBounce?(u+t.maxTranslate()<-p&&(u=t.maxTranslate()-p),d=t.maxTranslate(),f=!0,l.allowMomentumBounce=!0):u=t.maxTranslate(),a.loop&&a.centeredSlides&&(m=!0);else if(u>t.minTranslate())a.freeMode.momentumBounce?(u-t.minTranslate()>p&&(u=t.minTranslate()+p),d=t.minTranslate(),f=!0,l.allowMomentumBounce
50=!0):u=t.minTranslate(),a.loop&&a.centeredSlides&&(m=!0);else if(a.freeMode.sticky){let e;for(let t=0;t<c.length;t+=1)if(c[t]>-u){e=t;break}u=Math.abs(c[e]-u)<Math.abs(c[e-1]-u)||t.swipeDirection===`next`?c[e]:c[e-1],u=-u}if(m&&i(`transitionEnd`,(()=>{t.loopFix()})),t.velocity!==0){if(e=Math.abs(s?(-u-t.translate)/t.velocity:(u-t.translate)/t.velocity),a.freeMode.sticky){let n=Math.abs((s?-u:u)-t.translate),r=t.slidesSizesGrid[t.activeIndex];e=n<r?a.speed:n<2*r?1.5*a.speed:2.5*a.speed}}else if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode.momentumBounce&&f?(t.updateProgress(d),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating=!0,fi(o,(()=>{t&&!t.destroyed&&l.allowMomentumBounce&&(r(`momentumBounce`),t.setTransition(a.speed),setTimeout((()=>{t.setTranslate(d),fi(o,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(r(`_freeModeNoMomentumRelease`),t.updateProgress(u),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,fi(o,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(u),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode&&r(`_freeModeNoMomentumRelease`)}(!a.freeMode.momentum||u>=a.longSwipesMs)&&(r(`_freeModeStaticRelease`),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,n,r,i,{swiper:a,extendParams:o,on:s}=e;o({grid:{rows:1,fill:`column`}});let c=()=>{let e=a.params.spaceBetween;return typeof e==`string`&&e.indexOf(`%`)>=0?e=parseFloat(e.replace(`%`,``))/100*a.size:typeof e==`string`&&(e=parseFloat(e)),e};s(`init`,(()=>{i=a.params.grid&&a.params.grid.rows>1})),s(`update`,(()=>{let{params:e,el:t}=a,n=e.grid&&e.grid.rows>1;i&&!n?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),r=1,a.emitContainerClasses()):!i&&n&&(t.classList.add(`${e.containerModifierClass}grid`),e.grid.fill===`column`&&t.classList.add(`${e.containerModifierClass}grid-column`),a.emitContainerClasses()),i=n})),a.grid={initSlides:e=>{let{slidesPerView:i}=a.params,{rows:o,fill:s}=a.params.grid,c=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:e.length;r=Math.floor(c/o),t=Math.floor(c/o)===c/o?c:Math.ceil(c/o)*o,i!==`auto`&&s===`row`&&(t=Math.max(t,i*o)),n=t/o},unsetSlides:()=>{a.slides&&a.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height=``,e.style[a.getDirectionLabel(`margin-top`)]=``)}))},updateSlide:(e,i,o)=>{let{slidesPerGroup:s}=a.params,l=c(),{rows:u,fill:d}=a.params.grid,f=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:o.length,p,m,h;if(d===`row`&&s>1){let n=Math.floor(e/(s*u)),r=e-u*s*n,a=n===0?s:Math.min(Math.ceil((f-n*u*s)/u),s);h=Math.floor(r/a),m=r-h*a+n*s,p=m+h*t/u,i.style.order=p}else d===`column`?(m=Math.floor(e/u),h=e-m*u,(m>r||m===r&&h===u-1)&&(h+=1,h>=u&&(h=0,m+=1))):(h=Math.floor(e/n),m=e-h*n);i.row=h,i.column=m,i.style.height=`calc((100% - ${(u-1)*l}px) / ${u})`,i.style[a.getDirectionLabel(`margin-top`)]=h===0?``:l&&`${l}px`,i.swiperSlideGridSet=!0},updateWrapperSize:(e,n)=>{let{centeredSlides:r,roundLengths:i}=a.params,o=c(),{rows:s}=a.params.grid;if(a.virtualSize=(e+o)*t,a.virtualSize=Math.ceil(a.virtualSize/s)-o,a.params.cssMode||(a.wrapperEl.style[a.getDirectionLabel(`width`)]=`${a.virtualSize+o}px`),r){let e=[];for(let t=0;t<n.length;t+=1){let r=n[t];i&&(r=Math.floor(r)),n[t]<a.virtualSize+n[0]&&e.push(r)}n.splice(0,n.length),n.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:Qi.bind(t),prependSlide:$i.bind(t),addSlide:ea.bind(t),removeSlide:ta.bind(t),removeAllSlides:na.bind(t)})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({fadeEffect:{crossFade:!1}}),ra({effect:`fade`,swiper:t,on:r,setTranslate:()=>{let{slides:e}=t;t.params.fadeEffect;for(let n=0;n<e.length;n+=1){let e=t.slides[n],r=-e.swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);let i=0;t.isHorizontal()||(i=r,r=0);let a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),o=ia(0,e);o.style.opacity=a,o.style.transform=`translate3d(${r}px, ${i}px, 0px)`}},setTransition:e=>{let n=t.slides.map((e=>ii(e)));
50n.forEach((t=>{t.style.transitionDuration=`${e}ms`})),aa({swiper:t,duration:e,transformElements:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});let i=(e,t,n)=>{let r=n?e.querySelector(`.swiper-slide-shadow-left`):e.querySelector(`.swiper-slide-shadow-top`),i=n?e.querySelector(`.swiper-slide-shadow-right`):e.querySelector(`.swiper-slide-shadow-bottom`);r||(r=si(`div`,(`swiper-slide-shadow-cube swiper-slide-shadow-`+(n?`left`:`top`)).split(` `)),e.append(r)),i||(i=si(`div`,(`swiper-slide-shadow-cube swiper-slide-shadow-`+(n?`right`:`bottom`)).split(` `)),e.append(i)),r&&(r.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};ra({effect:`cube`,swiper:t,on:r,setTranslate:()=>{let{el:e,wrapperEl:n,slides:r,width:a,height:o,rtlTranslate:s,size:c,browser:l}=t,u=t.params.cubeEffect,d=t.isHorizontal(),f=t.virtual&&t.params.virtual.enabled,p,m=0;u.shadow&&(d?(p=t.wrapperEl.querySelector(`.swiper-cube-shadow`),p||(p=si(`div`,`swiper-cube-shadow`),t.wrapperEl.append(p)),p.style.height=`${a}px`):(p=e.querySelector(`.swiper-cube-shadow`),p||(p=si(`div`,`swiper-cube-shadow`),e.append(p))));for(let e=0;e<r.length;e+=1){let n=r[e],a=e;f&&(a=parseInt(n.getAttribute(`data-swiper-slide-index`),10));let o=90*a,l=Math.floor(o/360);s&&(o=-o,l=Math.floor(-o/360));let p=Math.max(Math.min(n.progress,1),-1),h=0,g=0,_=0;a%4==0?(h=4*-l*c,_=0):(a-1)%4==0?(h=0,_=4*-l*c):(a-2)%4==0?(h=c+4*l*c,_=c):(a-3)%4==0&&(h=-c,_=3*c+4*c*l),s&&(h=-h),d||(g=h,h=0);let v=`rotateX(${d?0:-o}deg) rotateY(${d?o:0}deg) translate3d(${h}px, ${g}px, ${_}px)`;p<=1&&p>-1&&(m=90*a+90*p,s&&(m=90*-a-90*p),t.browser&&t.browser.isSafari&&Math.abs(m)/90%2==1&&(m+=.001)),n.style.transform=v,u.slideShadows&&i(n,p,d)}if(n.style.transformOrigin=`50% 50% -${c/2}px`,n.style[`-webkit-transform-origin`]=`50% 50% -${c/2}px`,u.shadow){if(d)p.style.transform=`translate3d(0px, ${a/2+u.shadowOffset}px, ${-a/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${u.shadowScale})`;else{let e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),n=u.shadowScale,r=u.shadowScale/t,i=u.shadowOffset;p.style.transform=`scale3d(${n}, 1, ${r}) translate3d(0px, ${o/2+i}px, ${-o/2/r}px) rotateX(-89.99deg)`}}let h=(l.isSafari||l.isWebView)&&l.needPerspectiveFix?-c/2:0;n.style.transform=`translate3d(0px,0,${h}px) rotateX(${t.isHorizontal()?0:m}deg) rotateY(${t.isHorizontal()?-m:0}deg)`,n.style.setProperty(`--swiper-cube-translate-z`,`${h}px`)},setTransition:e=>{let{el:n,slides:r}=t;if(r.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left`).forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){let t=n.querySelector(`.swiper-cube-shadow`);t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{let e=t.isHorizontal();t.slides.forEach((t=>{let n=Math.max(Math.min(t.progress,1),-1);i(t,n,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({flipEffect:{slideShadows:!0,limitRotation:!0}});let i=(e,n)=>{let r=t.isHorizontal()?e.querySelector(`.swiper-slide-shadow-left`):e.querySelector(`.swiper-slide-shadow-top`),i=t.isHorizontal()?e.querySelector(`.swiper-slide-shadow-right`):e.querySelector(`.swiper-slide-shadow-bottom`);r||=oa(`flip`,e,t.isHorizontal()?`left`:`top`),i||=oa(`flip`,e,t.isHorizontal()?`right`:`bottom`),r&&(r.style.opacity=Math.max(-n,0)),i&&(i.style.opacity=Math.max(n,0))};ra({effect:`flip`,swiper:t,on:r,setTranslate:()=>{let{slides:e,rtlTranslate:n}=t,r=t.params.flipEffect;for(let a=0;a<e.length;a+=1){let o=e[a],s=o.progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(o.progress,
501),-1));let c=o.swiperSlideOffset,l=-180*s,u=0,d=t.params.cssMode?-c-t.translate:-c,f=0;t.isHorizontal()?n&&(l=-l):(f=d,d=0,u=-l,l=0),t.browser&&t.browser.isSafari&&(Math.abs(l)/90%2==1&&(l+=.001),Math.abs(u)/90%2==1&&(u+=.001)),o.style.zIndex=-Math.abs(Math.round(s))+e.length,r.slideShadows&&i(o,s);let p=`translate3d(${d}px, ${f}px, 0px) rotateX(${u}deg) rotateY(${l}deg)`;ia(0,o).style.transform=p}},setTransition:e=>{let n=t.slides.map((e=>ii(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left`).forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),aa({swiper:t,duration:e,transformElements:n})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let n=e.progress;t.params.flipEffect.limitRotation&&(n=Math.max(Math.min(e.progress,1),-1)),i(e,n)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),ra({effect:`coverflow`,swiper:t,on:r,setTranslate:()=>{let{width:e,height:n,slides:r,slidesSizesGrid:i}=t,a=t.params.coverflowEffect,o=t.isHorizontal(),s=t.translate,c=o?e/2-s:n/2-s,l=o?a.rotate:-a.rotate,u=a.depth;for(let e=0,n=r.length;e<n;e+=1){let n=r[e],s=i[e],d=(c-n.swiperSlideOffset-s/2)/s,f=typeof a.modifier==`function`?a.modifier(d):d*a.modifier,p=o?l*f:0,m=o?0:l*f,h=-u*Math.abs(f),g=a.stretch;typeof g==`string`&&g.indexOf(`%`)!==-1&&(g=parseFloat(a.stretch)/100*s);let _=o?0:g*f,v=o?g*f:0,y=1-(1-a.scale)*Math.abs(f);Math.abs(v)<.001&&(v=0),Math.abs(_)<.001&&(_=0),Math.abs(h)<.001&&(h=0),Math.abs(p)<.001&&(p=0),Math.abs(m)<.001&&(m=0),Math.abs(y)<.001&&(y=0),t.browser&&t.browser.isSafari&&(Math.abs(p)/90%2==1&&(p+=.001),Math.abs(m)/90%2==1&&(m+=.001));let b=`translate3d(${v}px,${_}px,${h}px)  rotateX(${m}deg) rotateY(${p}deg) scale(${y})`;if(ia(0,n).style.transform=b,n.style.zIndex=1-Math.abs(Math.round(f)),a.slideShadows){let e=o?n.querySelector(`.swiper-slide-shadow-left`):n.querySelector(`.swiper-slide-shadow-top`),t=o?n.querySelector(`.swiper-slide-shadow-right`):n.querySelector(`.swiper-slide-shadow-bottom`);e||=oa(`coverflow`,n,o?`left`:`top`),t||=oa(`coverflow`,n,o?`right`:`bottom`),e&&(e.style.opacity=f>0?f:0),t&&(t.style.opacity=-f>0?-f:0)}}},setTransition:e=>{t.slides.map((e=>ii(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left`).forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});let i=e=>typeof e==`string`?e:`${e}px`;ra({effect:`creative`,swiper:t,on:r,setTranslate:()=>{let{slides:e,wrapperEl:n,slidesSizesGrid:r}=t,a=t.params.creativeEffect,{progressMultiplier:o}=a,s=t.params.centeredSlides;if(s){let e=r[0]/2-t.params.slidesOffsetBefore||0;n.style.transform=`translateX(calc(50% - ${e}px))`}for(let n=0;n<e.length;n+=1){let r=e[n],c=r.progress,l=Math.min(Math.max(r.progress,-a.limitProgress),a.limitProgress),u=l;s||(u=Math.min(Math.max(r.originalProgress,-a.limitProgress),a.limitProgress));let d=r.swiperSlideOffset,f=[t.params.cssMode?-d-t.translate:-d,0,0],p=[0,0,0],m=!1;t.isHorizontal()||(f[1]=f[0],f[0]=0);let h={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};l<0?(h=a.next,m=!0):l>0&&(h=a.prev,m=!0),f.forEach(((e,t)=>{f[t]=`calc(${e}px + (${i(h.translate[t])} * ${Math.abs(l*o)}))`})),p.forEach(((e,n)=>{let r=h.rotate[n]*Math.abs(l*o);t.browser&&t.browser.isSafari&&Math.abs(r)/90%2==1&&(r+=.001),p[n]=r})),r.style.zIndex=-Math.abs(Math.round(c))+e.length;let g=f.join(`, `),_=`rotateX(${p[0]}deg) rotateY(${p[1]}deg) rotateZ(${p[2]}deg)`,v=u<0?`scale(${1+(1-h.scale)*u*o})`:`scale(${1-(1-h.scale)*u*o})`,y=u<0?1+(1-h.opacity)*u*o:1-(1-h.opacity)*u*o,b=`translate3d(${g}) ${_} ${v}`;if(m&&h.shadow||!m){let e=r.querySelector(`.swiper-slide-shadow`);if(!e&&h.shadow&&(e=oa(`creative`,r)),e){let t=a.shadowPerProgress?l*(1/a.limitProgress):l;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}let x=ia(0,r);x.style.transform=b,x.style.opacity=y,h.origin&&(x.style.transformOrigin=h.origin)}},setTransition:e=>{let n=t.slides.map((e=>ii(e)));
50n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow`).forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),aa({swiper:t,duration:e,transformElements:n,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:r}=e;n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),ra({effect:`cards`,swiper:t,on:r,setTranslate:()=>{let{slides:e,activeIndex:n,rtlTranslate:r}=t,i=t.params.cardsEffect,{startTranslate:a,isTouched:o}=t.touchEventsData,s=r?-t.translate:t.translate;for(let c=0;c<e.length;c+=1){let l=e[c],u=l.progress,d=Math.min(Math.max(u,-4),4),f=l.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(f-=e[0].swiperSlideOffset);let p=t.params.cssMode?-f-t.translate:-f,m=0,h=-100*Math.abs(d),g=1,_=-i.perSlideRotate*d,v=i.perSlideOffset-.75*Math.abs(d),y=t.virtual&&t.params.virtual.enabled?t.virtual.from+c:c,b=(y===n||y===n-1)&&d>0&&d<1&&(o||t.params.cssMode)&&s<a,x=(y===n||y===n+1)&&d<0&&d>-1&&(o||t.params.cssMode)&&s>a;if(b||x){let e=(1-Math.abs((Math.abs(d)-.5)/.5))**.5;_+=-28*d*e,g+=-.5*e,v+=96*e,m=-25*e*Math.abs(d)+`%`}if(p=d<0?`calc(${p}px ${r?`-`:`+`} (${v*Math.abs(d)}%))`:d>0?`calc(${p}px ${r?`-`:`+`} (-${v*Math.abs(d)}%))`:`${p}px`,!t.isHorizontal()){let e=m;m=p,p=e}let S=d<0?``+(1+(1-g)*d):``+(1-(1-g)*d),C=`\n        translate3d(${p}, ${m}, ${h}px)\n        rotateZ(${i.rotate?r?-_:_:0}deg)\n        scale(${S})\n      `;if(i.slideShadows){let e=l.querySelector(`.swiper-slide-shadow`);e||=oa(`cards`,l),e&&(e.style.opacity=Math.min(Math.max((Math.abs(d)-.5)/.5,0),1))}l.style.zIndex=-Math.abs(Math.round(u))+e.length,ia(0,l).style.transform=C}},setTransition:e=>{let n=t.slides.map((e=>ii(e)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(`.swiper-slide-shadow`).forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),aa({swiper:t,duration:e,transformElements:n})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}]);let sa=`eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints.breakpointsBase._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopAdditionalSlides.loopAddBlankSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideFullyVisibleClass.slideNextClass.slidePrevClass.slideBlankClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control`.split(`.`);function ca(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`&&!e.__swiper__}function la(e,t){let n=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter((e=>
50n.indexOf(e)<0)).forEach((n=>{e[n]===void 0?e[n]=t[n]:ca(t[n])&&ca(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:la(e[n],t[n]):e[n]=t[n]}))}function ua(e){return e===void 0&&(e=``),e.replace(/-[a-z]/g,(e=>e.toUpperCase().replace(`-`,``)))}let da=e=>{if(parseFloat(e)===Number(e))return Number(e);if(e===`true`||e===``)return!0;if(e===`false`)return!1;if(e===`null`)return null;if(e!==`undefined`){if(typeof e==`string`&&e.includes(`{`)&&e.includes(`}`)&&e.includes(`"`)){let t;try{t=JSON.parse(e)}catch{t=e}return t}return e}},fa=[`a11y`,`autoplay`,`controller`,`cards-effect`,`coverflow-effect`,`creative-effect`,`cube-effect`,`fade-effect`,`flip-effect`,`free-mode`,`grid`,`hash-navigation`,`history`,`keyboard`,`mousewheel`,`navigation`,`pagination`,`parallax`,`scrollbar`,`thumbs`,`virtual`,`zoom`];function pa(e,t,n){let r={},i={};la(r,Gi);let a=[...sa,`on`],o=a.map((e=>e.replace(/_/,``)));a.forEach((t=>{t=t.replace(`_`,``),e[t]!==void 0&&(i[t]=e[t])}));let s=[...e.attributes];return typeof t==`string`&&n!==void 0&&s.push({name:t,value:ca(n)?{...n}:n}),s.forEach((e=>{let t=fa.filter((t=>e.name.indexOf(`${t}-`)===0))[0];if(t){let n=ua(t),r=ua(e.name.split(`${t}-`)[1]);i[n]===void 0&&(i[n]={}),!0===i[n]&&(i[n]={enabled:!0}),i[n][r]=da(e.value)}else{let t=ua(e.name);if(!o.includes(t))return;let n=da(e.value);i[t]&&fa.includes(e.name)&&!ca(n)?(i[t].constructor!==Object&&(i[t]={}),i[t].enabled=!!n):i[t]=n}})),la(r,i),r.navigation?r.navigation={prevEl:`.swiper-button-prev`,nextEl:`.swiper-button-next`,...!0===r.navigation?{}:r.navigation}:!1===r.navigation&&delete r.navigation,r.scrollbar?r.scrollbar={el:`.swiper-scrollbar`,...!0===r.scrollbar?{}:r.scrollbar}:!1===r.scrollbar&&delete r.scrollbar,r.pagination?r.pagination={el:`.swiper-pagination`,...!0===r.pagination?{}:r.pagination}:!1===r.pagination&&delete r.pagination,{params:r,passedParams:i}}let ma=typeof window>`u`||typeof HTMLElement>`u`?class{}:HTMLElement,ha=`<svg width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>
51    `,ga=(e,t)=>{if(typeof CSSStyleSheet<`u`&&e.adoptedStyleSheets){let n=new CSSStyleSheet;n.replaceSync(t),e.adoptedStyleSheets=[n]}else{let n=document.createElement(`style`);n.rel=`stylesheet`,n.textContent=t,e.appendChild(n)}};class _a extends ma{constructor(){super(),this.attachShadow({mode:`open`})}static get nextButtonSvg(){return ha}static get prevButtonSvg(){return ha.replace(`/></svg>`,` transform-origin="center" transform="rotate(180)"/></svg>`)}cssStyles(){return[`:host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;
51left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}
51.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;
51left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}`,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(`
52`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){let e=this.slideSlots||0,t=[...this.querySelectorAll(`[slot^=slide-]`)].map((e=>parseInt(e.getAttribute(`slot`).split(`slide-`)[1],10)));if(this.slideSlots=t.length?Math.max(...t)+1:0,this.rendered){if(this.slideSlots>e)for(let t=e;t<this.slideSlots;t+=1){let e=document.createElement(`swiper-slide`);e.setAttribute(`part`,`slide slide-${t+1}`);let n=document.createElement(`slot`);n.setAttribute(`name`,`slide-${t+1}`),e.appendChild(n),this.shadowRoot.querySelector(`.swiper-wrapper`).appendChild(e)}else if(this.slideSlots<e){let e=this.swiper.slides;for(let t=e.length-1;t>=0;--t)t>this.slideSlots&&e[t].remove()}}}
52render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,`$1`)),e.length&&ga(this.shadowRoot,e),this.cssLinks().forEach((e=>{if(this.shadowRoot.querySelector(`link[href="${e}"]`))return;let t=document.createElement(`link`);t.rel=`stylesheet`,t.href=e,this.shadowRoot.appendChild(t)}));let t=document.createElement(`div`);var n;t.classList.add(`swiper`),t.part=`container`,t.innerHTML=`\n      <slot name="container-start"></slot>\n      <div class="swiper-wrapper" part="wrapper">\n        <slot></slot>\n        ${Array.from({length:this.slideSlots}).map(((e,t)=>`\n        <swiper-slide part="slide slide-${t}">\n          <slot name="slide-${t}"></slot>\n        </swiper-slide>\n        `)).join(``)}\n      </div>\n      <slot name="container-end"></slot>\n      ${n=this.passedParams,n===void 0&&(n={}),n.navigation&&n.navigation.nextEl===void 0&&n.navigation.prevEl===void 0?`\n        <div part="button-prev" class="swiper-button-prev">${this.constructor.prevButtonSvg}</div>\n        <div part="button-next" class="swiper-button-next">${this.constructor.nextButtonSvg}</div>\n      `:``}\n      ${function(e){return e===void 0&&(e={}),e.pagination&&e.pagination.el===void 0}(this.passedParams)?`
53        <div part="pagination" class="swiper-pagination"></div>
54      `:``}\n      ${function(e){return e===void 0&&(e={}),e.scrollbar&&e.scrollbar.el===void 0}(this.passedParams)?`
55        <div part="scrollbar" class="swiper-scrollbar"></div>
56      `:``}\n    `,this.shadowRoot.appendChild(t),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;let{params:t,passedParams:n}=pa(this);this.swiperParams=t,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new Yi(this.shadowRoot.querySelector(`.swiper`),{...t.virtual?{}:{observer:!0,observeSlideChildren:this.slideSlots>0},...t,touchEventsTarget:`container`,onAny:function(n){n===`observerUpdate`&&e.calcSlideSlots();let r=t.eventsPrefix?`${t.eventsPrefix}${n.toLowerCase()}`:n.toLowerCase();var i=[...arguments].slice(1);let a=new CustomEvent(r,{detail:i,bubbles:n!==`hashChange`,cancelable:!0});e.dispatchEvent(a)}})}connectedCallback(){this.initialized&&this.nested&&this.closest(`swiper-slide`)&&this.closest(`swiper-slide`).swiperLoopMoveDOM||!1!==this.init&&this.getAttribute(`init`)!==`false`&&this.initialize()}disconnectedCallback(){this.nested&&this.closest(`swiper-slide`)&&this.closest(`swiper-slide`).swiperLoopMoveDOM||(this.swiper&&this.swiper.destroy&&this.swiper.destroy(),this.initialized=!1)}updateSwiperOnPropChange(e,t){let{params:n,passedParams:r}=pa(this,e,t);this.passedParams=r,this.swiperParams=n,this.swiper&&this.swiper.params[e]===t||function(e){let{swiper:t,slides:n,passedParams:r,changedParams:i,nextEl:a,prevEl:o,scrollbarEl:s,paginationEl:c}=e,l=i.filter((e=>e!==`children`&&e!==`direction`&&e!==`wrapperClass`)),{params:u,pagination:d,navigation:f,scrollbar:p,virtual:m,thumbs:h}=t,g,_,v,y,b,x,S,C;i.includes(`thumbs`)&&r.thumbs&&r.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(g=!0),i.includes(`controller`)&&r.controller&&r.controller.control&&u.controller&&!u.controller.control&&(_=!0),i.includes(`pagination`)&&r.pagination&&(r.pagination.el||c)&&(u.pagination||!1===u.pagination)&&d&&!d.el&&(v=!0),i.includes(`scrollbar`)&&r.scrollbar&&(r.scrollbar.el||s)&&(u.scrollbar||!1===u.scrollbar)&&p&&!p.el&&(y=!0),i.includes(`navigation`)&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||a)&&(u.navigation||!1===u.navigation)&&f&&!f.prevEl&&!f.nextEl&&(b=!0);let w=e=>{t[e]&&(t[e].destroy(),e===`navigation`?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),u[e].prevEl=void 0,u[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),u[e].el=void 0,t[e].el=void 0))};i.includes(`loop`)&&t.isElement&&(u.loop&&!r.loop?x=!0:!u.loop&&r.loop?S=!0:C=!0),l.forEach((e=>{if(ca(u[e])&&ca(r[e]))Object.assign(u[e],r[e]),e!==`navigation`&&e!==`pagination`&&e!==`scrollbar`||!(`enabled`in r[e])||r[e].enabled||w(e);else{let t=r[e];!0!==t&&!1!==t||e!==`navigation`&&e!==`pagination`&&e!==`scrollbar`?u[e]=r[e]:!1===t&&w(e)}})),l.includes(`controller`)&&!_&&t.controller&&t.controller.control&&u.controller&&u.controller.control&&(t.controller.control=u.controller.control),i.includes(`children`)&&n&&m&&u.virtual.enabled?(m.slides=n,m.update(!0)):i.includes(`virtual`)&&m&&u.virtual.enabled&&(n&&(m.slides=n),m.update(!0)),i.includes(`children`)&&n&&u.loop&&(C=!0),g&&h.init()&&h.update(!0),_&&(t.controller.control=u.controller.control),v&&(!t.isElement||c&&typeof c!=`string`||(c=document.createElement(`div`),c.classList.add(`swiper-pagination`),c.part.add(`pagination`),t.el.a
56ppendChild(c)),c&&(u.pagination.el=c),d.init(),d.render(),d.update()),y&&(!t.isElement||s&&typeof s!=`string`||(s=document.createElement(`div`),s.classList.add(`swiper-scrollbar`),s.part.add(`scrollbar`),t.el.appendChild(s)),s&&(u.scrollbar.el=s),p.init(),p.updateSize(),p.setTranslate()),b&&(t.isElement&&(a&&typeof a!=`string`||(a=document.createElement(`div`),a.classList.add(`swiper-button-next`),a.innerHTML=t.hostEl.constructor.nextButtonSvg,a.part.add(`button-next`),t.el.appendChild(a)),o&&typeof o!=`string`||(o=document.createElement(`div`),o.classList.add(`swiper-button-prev`),o.innerHTML=t.hostEl.constructor.prevButtonSvg,o.part.add(`button-prev`),t.el.appendChild(o))),a&&(u.navigation.nextEl=a),o&&(u.navigation.prevEl=o),f.init(),f.update()),i.includes(`allowSlideNext`)&&(t.allowSlideNext=r.allowSlideNext),i.includes(`allowSlidePrev`)&&(t.allowSlidePrev=r.allowSlidePrev),i.includes(`direction`)&&t.changeDirection(r.direction,!1),(x||C)&&t.loopDestroy(),(S||C)&&t.loopCreate(),t.update()}({swiper:this.swiper,passedParams:this.passedParams,changedParams:[ua(e)],...e===`navigation`&&r[e]?{prevEl:`.swiper-button-prev`,nextEl:`.swiper-button-next`}:{},...e===`pagination`&&r[e]?{paginationEl:`.swiper-pagination`}:{},...e===`scrollbar`&&r[e]?{scrollbarEl:`.swiper-scrollbar`}:{}})}attributeChangedCallback(e,t,n){this.initialized&&(t===`true`&&n===null&&(n=!1),this.updateSwiperOnPropChange(e,n))}static get observedAttributes(){return sa.filter((e=>e.includes(`_`))).map((e=>e.replace(/[A-Z]/g,(e=>`-${e}`)).replace(`_`,``).toLowerCase()))}}sa.forEach((e=>{e!==`init`&&(e=e.replace(`_`,``),Object.defineProperty(_a.prototype,e,{configurable:!0,get(){return(this.passedParams||{})[e]},set(t){this.passedParams||={},this.passedParams[e]=t,this.initialized&&this.updateSwiperOnPropChange(e,t)}}))}));class va extends ma{constructor(){super(),this.attachShadow({mode:`open`})}render(){let e=this.lazy||this.getAttribute(`lazy`)===``||this.getAttribute(`lazy`)===`true`;if(ga(this.shadowRoot,`::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}`),this.shadowRoot.appendChild(document.createElement(`slot`)),e){let e=document.createElement(`div`);e.classList.add(`swiper-lazy-preloader`),e.part.add(`preloader`),this.shadowRoot.appendChild(e)}}initialize(){this.render()}connectedCallback(){this.initialize()}}typeof window<`u`&&(window.SwiperElementRegisterParams=e=>{sa.push(...e)});var ya,ba={lightbox:`lightbox-tXHVbc`,isCategory:`isCategory-pclR-u`,isAnimating:`isAnimating-mSalXm`,blurredBackgroun
56d:`blurredBackground-J4bteS`,isCategoryNavigation:`isCategoryNavigation-w+YDXf`,isMobile:`isMobile-u00uf9`,fadeInAnimation:`fadeInAnimation-GwpQgl`,fadeIn:`fadeIn-geoWsa`,fadeOutAnimation:`fadeOutAnimation-Mn96gp`,fadeOut:`fadeOut-kro3yI`,inlineLightbox:`inlineLightbox-GW7QnJ`,customSwiper:`customSwiper-Gog4at`,swiperSlide:`swiperSlide-OzDvwW`,videoBackground:`videoBackground-WEZqUA`,isEmbedded:`isEmbedded-fDJcpU`,isInactive:`isInactive-aqb6Pv`},xa={capture:!0,passive:!1},Sa=function(e){var t,n=e.children,a=e.capturePageScrollOnWheel,o=e.isVisible,s=e.swiperRef,c=(0,r._T)(e,[`children`,`capturePageScrollOnWheel`,`isVisible`,`swiperRef`]);return(0,i.useEffect)((function(){typeof window<`u`&&(window.customElements.get(`swiper-container`)||window.customElements.define(`swiper-container`,_a),window.customElements.get(`swiper-slide`)||window.customElements.define(`swiper-slide`,va)),s.current&&(Object.assign(s.current,c),s.current.initialize())}),[n]),(0,i.useEffect)((function(){if(a&&s.current){var e=s.current,t=function(e){e.preventDefault()};return e.addEventListener(`wheel`,t,xa),function(){e.removeEventListener(`wheel`,t,xa)}}}),[a,n,s]),i.default.createElement(`swiper-container`,{init:`false`,ref:s,"data-capture-page-scroll-on-wheel":a?`true`:void 0,className:Ut()(ba.customSwiper,(t={},t[ba.isInactive]=!o,t))},n)},Ca=function(e){var t=e.children,n=(0,r._T)(e,[`children`]);return i.default.createElement(`swiper-slide`,(0,r.pi)({className:ba.swiperSlide},n),t)};(function(e){e.mousewheel=`mousewheel`,e.touch=`touch`,e.keyPress=`keyPress`})(ya||={});var wa,Ta,Ea=!Vt.G6;(function(e){e.Up=`ArrowUp`,e.Down=`ArrowDown`})(wa||={}),function(e){e.up=`up`,e.down=`down`}(Ta||={});var Da={capture:!0,passive:!1};function Oa(e){return`deltaY`in e}var ka={direction:`vertical`,keyboard:{enabled:Ea},modules:[function(e){var t,n,r,i=e.on,a=e.emit;i(`slideChange`,(function(e){e.realIndex!==t&&(n=t,t=e.realIndex)})),i(`setTransition`,(function(e,t){(n||n===0)&&r>0&&(e.realIndexBeforeTransition=n,a(`slideTransitionEnd`)),r=t})),i(`afterInit`,(function(e){e.initialised=!0})),i(`destroy`,(function(e){e.initialised=!1}))},function(e){var t=e.swiper,n=e.on,r=!1,i=!r,a=!1,o=null,s=[],c=function(){t.enabled&&(a=!0)},l=function(){t.enabled&&(a=!1)},u=function(e){return e>0?Ta.down:Ta.up},d=function(e){s.unshift(e),s.length>2&&s.pop()},f=function(e,n){t.enabled&&(o=e,t.transitionTrigger=n,e===Ta.down?t.slideNext(600):t.slidePrev(600),r=!0)},p=function(e){if(t.enabled&&a&&(e.key===wa.Up||e.key===wa.Down)){var n=e.key===wa.Up?Ta.up:Ta.down;o!==null&&o!==n&&(r=!1,i=!0),!r&&i&&(f(n,ya.keyPress),d({timestamp:Date.now(),direction:n}))}},m=function(e){if(t.enabled){var n=t.el,s=n&&n.contains(e.target);if(a||s){var c=e.deltaY;if(Math.abs(c)>5){(function(){return t.el?.getAttribute(`data-capture-page-scroll-on-wheel`)===`true`})()&&(e.preventDefault(),e.stopPropagation());var l=u(c);o!==null&&o!==l&&(r=!1,i=!0),!r&&i&&(f(l,ya.mousewheel),d({timestamp:Date.now(),deltaY:c}))}}}};n(`init`,(function(e){var t=e.el;e.transitionTrigger=null,a=!0,t.addEventListener(`mouseenter`,c),t.addEventListener(`mouseleave`,l),t.addEventListener(`wheel`,m,Da),Ea||document.addEventListener(`keydown`,p)})),n(`destroy`,(function(e){var t=e.el;t.removeEventListener(`mouseenter`,c),t.removeEventListener(`mouseleave`,l),t.removeEventListener(`wheel`,m,Da),Ea||document.addEventListener(`keydown`,p)})),n(`touchStart`,(function(){t.transitionTrigger=ya.touch})),n(`keyPress`,(function(){t.transitionTrigger=ya.keyPress})),n(`slideChangeTransitionStart`,(function(){r=!0,i=!1})),n(`slideTransitionEnd`,(function(e){var n=e.realIndex,a=e.realIndexBeforeTransition,o=e.transitionTrigger,c=!1,l=null,d=null,p=s[0];if(p){l=Oa(p)?u(p.deltaY):p.direction,d=Oa(p)?ya.mousewheel:ya.keyPress;var m=t.slides.length-1,h=n>=a?Ta.down:Ta.up;a===m&&n===0&&(h=Ta.down),a===0&&n===m&&(h=Ta.up),c=l!==h}t.enabled&&c&&l&&!r&&o===d?f(l,d):(r=!1,setTimeout((function(){r||(i=!0)}),300))}))}],centeredSlides:!0,slidesPerView:Vt.tq?1:1.25,slidesPerGroup:1,spaceBetween:Vt.tq?0:30},Aa=n(8949),ja=function(e,t,n){return!!e.categories.includes(t)||n&&e.clipCategories.some((function(e){return e.id===t||e.externalId===t}))},Ma=function(e){var t,n,a=e.clips,o=e.clipsNavService,s=e.currentBackgroun
56dContainer,c=e.currentBackgroundImageUrl,l=e.currentClipNavigationCategory,u=e.currentMutedState,d=e.setCurrentMutedState,f=e.feedHeader,p=e.basename,m=e.collection,h=e.initialCategoryId,g=e.initialClipId,_=e.isInline,v=e.isParentInline,y=e.isCategoryNavigation,b=e.onLightboxClick,x=e.resetCategory,S=e.setOnLightboxClick,C=e.isDisabled,w=e.isNavigationAnimatingIn,T=w!==void 0&&w,E=e.isNavigationAnimatingOut,D=E!==void 0&&E,O=e.onPlayerClose,k=e.capturePageScrollOnWheel,A=k!==void 0&&k,j=e.disableGlobalPageScrollLock,M=j!==void 0&&j,N=e.supportsNavigation,P=e.topLevelBackButtonEnabled,F=P!==void 0&&P,I=(0,i.useState)(null),L=I[0],R=I[1],z=function(e){var t=this,n=e.routerClips,a=e.routerInitialClipId,o=e.setClipToLoadId,s=(0,i.useState)([]),c=s[0],l=s[1];return(0,i.useEffect)((function(){n.length!==0&&(a?n.findIndex((function(e){return e.id===a}))>=0?l(n):(0,r.mG)(t,void 0,void 0,(function(){var e;return(0,r.Jh)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,Aa.Z.loadClip(a,{retrieve:!0})];case 1:return(e=t.sent())?(l((0,r.ev)([e],n,!0)),o(e.id)):l(n),[3,3];case 2:return t.sent(),l(n),[3,3];case 3:return[2]}}
56))})):l(n))}),[n,a,o]),{clips:c}}({routerInitialClipId:g,routerClips:a,setClipToLoadId:R}).clips,B=(0,i.useState)(!0),V=B[0],H=B[1],U=(0,nn.F)(),W=(0,Bt.TH)(),ee=W.pathname,G=W.search,te=(0,Bt.k6)(),ne=(0,Xt.Z)(),re=(0,i.useRef)(null),ie=(0,i.useRef)(null),K=(0,i.useRef)(null),ae=(0,i.useState)(f),q=ae[0],oe=ae[1],se=(0,i.useState)(u==null||u),ce=se[0],le=se[1],ue=(0,i.useState)(!1),de=ue[0],fe=ue[1],pe=(0,i.useState)(!1),me=pe[0],J=pe[1],he=(0,i.useState)(!0),ge=he[0],_e=he[1],ve=(0,i.useState)(),Y=ve[0],ye=ve[1],be=(0,i.useState)(!1),xe=be[0],Se=be[1],Ce=(0,i.useState)(!1),we=Ce[0],X=Ce[1],Te=(0,i.useState)((function(){})),Ee=Te[0],De=Te[1],Oe=(0,i.useRef)(!0),ke=(0,i.useRef)(),Ae=(0,i.useRef)(),je=(0,Gt.l)({isLightboxVisible:!0,lightbox:ie}).lightboxHasCorrectHeight,Me=(0,i.useMemo)((function(){return y||_||je}),[y,_,je]);(function(e){var t=e.shouldShowAds,n=On.Z.settings?.adsFrom===`storyteller`,r=(0,wr.Z)((0,Tr.c)(`v0/amp-ad-0.1.js`),t),a=(0,wr.Z)((0,Tr.c)(`v0.js`),t),o=(0,wr.Z)((0,Tr.c)(`v0/amp-mustache-0.2.js`),t&&n,{"custom-template":`amp-mustache`}),s=(0,wr.Z)((0,Tr.c)(`v0/amp-img-0.1.js`),t&&n),c=(0,wr.Z)((0,Tr.c)(`v0/amp-video-0.1.js`),t&&n),l=(0,i.useMemo)((function(){return r===wr.q.ready&&a===wr.q.ready}),[r,a]),u=(0,i.useMemo)((function(){return!n||o===wr.q.ready&&s===wr.q.ready&&c===wr.q.ready}),[o,s,c,n]);(0,i.useMemo)((function(){return!t||l&&u}),[l,u,t])})(o),Br(re,y),(0,i.useEffect)((function(){z.length===0&&a.length>0&&oe(f)}),[a,z.length,f]),(0,i.useEffect)((function(){var e=new URLSearchParams(G).get(`openedReason`),t=new URLSearchParams(G).get(`category`);(e||t)&&te.replace({pathname:ee,search:``})}),[te,ee,G]);var Ne=(0,i.useMemo)((function(){return z.map((function(e,t){return(0,r.pi)((0,r.pi)({},e),{indexInCollection:t})}))}),[z]),Pe=(0,i.useMemo)((function(){return y&&l?Ne.filter((function(e){return ja(e,l,!!v)})):h?Ne.filter((function(e){return ja(e,h,!1)})):Ne}),[Ne,l,h,y,v]),Fe=(0,i.useMemo)((function(){var e=Pe.length;return e>1&&e<4?(0,r.ev)((0,r.ev)([],Pe,!0),Pe,!0):Pe}),[Pe]),Ie=(0,i.useCallback)((function(e,t){var n=s||K.current,r=!Vt.tq&&e>=0;n&&r&&(ke.current=t,n.style.backgroundImage=t?`url(${t})`:``)}),[Y,s]),Le=(0,i.useMemo)((function(){return!Y&&!!l}),[Y,l]),Re=(0,i.useMemo)((function(){return o.appendedSlides.length}),[o.appendedSlides]),ze=(0,i.useCallback)((function(){R(null)}),[]),Be=Ur({activeClipId:L,clips:Fe,clipsNavService:o,initialClipId:g,isActiveCategory:Le||!Y,isPlayerReady:de,onSlidesAppendedOrReappended:ze,updateClipPlayerBackground:Ie}),Ve=Be.clipsVideosEls,He=Be.updateActiveIndex,Ue=zr({clips:Fe,clipsNavService:o,collection:m,categoryName:l,initialClipId:g,ignoreDismissPlayerEvents:A,isCategoryNavigation:y,setIsReady:fe}),We=Ue.clipDismissedReason,Ge=Ue.incrementLoopCount,Ke=Ue.onAfterInit,qe=Ue.onDestroy,Je=Ue.onSlideNext,Ye=Ue.onSlidePrev,Xe=Ue.onClose,Ze=Ue.onTopLevelBackTap,Qe=Ue.sendFinishedClipCommandOnClipCategorySelect,$e=Ue.sendOpenedClipCommandOnClipCategoryReset,et=(0,i.useCallback)((function(e,t){Ae.current=new Jt.ZP(e),Ae.current.isAnimating=!0,Ae.current.isActiveCategory=!0,o.isAnimating=!0,o.isActiveCategory=!1,Se(!0),Qe(t),_e(!1),ye(e),setTimeout((function(){var e;Se(!1),J(!0),(e=re.current)==null||e.swiper.disable(),Oe.current=!1,ke.current=void 0,o.isAnimating=!1,Ae.current&&(Ae.current.isAnimating=!1)}),Jt.zn)}),[o,Qe]),tt=(0,i.useCallback)((function(){Y&&(ke.current=void 0,X(!0),re.current?.swiper.enable(),Oe.current=!0,J(!1),$e(),_e(!0),setTimeout((function(){o.isActiveCategory=!0,Ae.current&&(Ae.current.isActiveCategory=!1),X(!1),ye(void 0),Ae.current=void 0}),2*Jt.zn))}),[Y,o,$e]),nt=(0,i.useCallback)((function(){ie.current&&(ie.current.classList.remove(ba.fadeInAnimation),ie.current.classList.add(ba.fadeOutAnimation)),setTimeout((function(){H(!1),O?.()}),Jt.zn)}),[O]),rt=(0,i.useMemo)((function(){return _&&F?function(){Ze()}:y&&x?function(){x();var e=re.current;e!=null&&e.swiper&&qe(e?.swiper)}:function(){nt(),setTimeout((function(){Xe?.()}),Jt.zn)}}),[nt,_,y,Xe,Ze,x,F,qe]),it=(0,i.useCallback)((function(e){var t,n,r,i=null,a=e instanceof KeyboardEvent&&e.key===`Escape`;a&&_||(a&&v?rt():(e instanceof BeforeUnloadEvent?i=kr.z.windowUnload:a&&(i=kr.z.escapeKeyPressed),i&&(We.current=i,qt.Z.isVisible=!1,(t=re?.current?.swiper)==null||t.disable(),(n=re?.current?.swiper)==null||n.destroy(),(r=ne.onPlayerDismissed)==null||r.call(ne)),O?.()))}),[We,_,v,ne,rt,O]);
56(0,i.useEffect)((function(){return window.addEventListener(`keydown`,it),window.addEventListener(`beforeunload`,it),function(){window.removeEventListener(`keydown`,it),window.removeEventListener(`beforeunload`,it)}}),[it]);var at=(0,i.useMemo)((function(){return function(e){var t=e.isInline,n=e.isCategoryNavigation,r=e.resetCategory,i=e.topLevelBackButtonEnabled;return n&&r?`Back`:t?i!==void 0&&i?`Back`:null:`Close player`}({isInline:_,isCategoryNavigation:y,resetCategory:x,topLevelBackButtonEnabled:F})}),[y,_,x,F]);(0,i.useEffect)((function(){var e=re?.current;if(de&&e&&!y){var t=function(e){var t=e.detail[0];qe(t)},n=`swiperdestroy`;return e.addEventListener(n,t),function(){e.removeEventListener(n,t)}}}),[de,qe,y]);var ot=(0,i.useCallback)((function(){d?d((function(e){return!e})):le((function(e){return!e}))}),[d]),st=(0,i.useMemo)((function(){return!(Oe.current&&!Y)||(u??ce)}),[Y,u,ce]),ct=(0,i.useMemo)((function(){return Array.from(Array(Re).keys())}),[Re]),lt=_||!!v,ut=(0,i.useCallback)((function(e,t){if(t.target&&!_&&!v&&Array.from(t.target.classList).some((function(e){return e.startsWith(`slideWrapper`)}))){var n=b||Ee;n?n():(nt(),setTimeout((function(){var t;We.current=kr.z.backgroundTapped,(t=e.onClose)==null||t.call(e)}),Jt.zn))}}),[nt,We,_,v,Ee,b]),dt=(0,i.useCallback)((function(e){Ke(e),(S||De)((function(t){return function(){t?.(),nt(),setTimeout((function(){var t;We.current=kr.z.backgroundTapped,(t=e.onClose)==null||t.call(e)}),Jt.zn)}}))}),[nt,We,Ke,S]),ft=(0,i.useCallback)((function(e){var t=e.realIndex,n=e.realIndexBeforeTransition;if(!o.isProbablyInitialNavigation&&n!==t){var r=Re-1,i=t>=n;n===r&&t===0&&(i=!0),n===0&&t===r&&(i=!1),He(t,i?`next`:`prev`),C||(i?Je(e):Ye(e))}}),[o,C,Je,Ye,Re,He]),pt=(0,i.useCallback)((function(){o.isActiveCategory=!0,o.firstNavigationTimestamp=Date.now()}),[o]),mt=(0,i.useMemo)((function(){return!((de&&Fe||y)&&Me)}),[y,de,Me,Fe]);return(0,i.useEffect)((function(){ie.current&&Kt.Z.setDocumentStyle({element:ie.current,id:`lightbox-theme-${p||`clips`}`,playerType:Kt.G.Clips,selector:`.${ba.lightbox}`,theme:U})}),[p,U]),(0,i.useEffect)((function(){Wt.Z.on(Mn._.openedPlayer,(function(e){var t;if(!y&&e.clipId&&e.collection===m&&e.basename===p){var n=o.appendedSlides.findIndex((function(t){return t.id===e.clipId})),r=o.activeAppendedSlideIndex;if(n===r)return;if(n>=0){var i=!1;if(Math.abs(n-r)===1&&(i=!0),n===0&&r===Re-1&&(i=!0),n===Re-1&&r===0&&(i=!0),i&&re.current?.swiper)return void((t=re.current?.swiper)==null||t.slideTo(n,600))}R(e.clipId)}}))}),[p,o,m,y,Re,He]),i.default.createElement(Na,{id:l||``,isInline:_,isOpen:V,className:Ut()(ba.lightbox,(t={},t[Yt.dO]=!M&&!v,t[ba.fadeInAnimation]=!y,t[ba.isEmbedded]=A,t[ba.isCategory]=y,t[ba.isAnimating]=D||T,t[ba.isIOS]=Vt.gn,t[ba.isSafari]=Vt.G6,t)),style:{"--lightbox-animation-duration":`${Jt.zn}ms`},ref:ie},i.default.createElement(i.default.Fragment,null,mt&&i.default.createElement(tn,null),Re>0&&i.default.createElement(Sa,(0,r.pi)({swiperRef:re,on:{slideTransitionEnd:ft,beforeInit:pt,afterInit:dt,click:ut}},ka,{centeredSlides:!A,isVisible:Oe.current,loop:Re>1,capturePageScrollOnWheel:A,slidesPerView:A?1:ka.slidesPerView,spaceBetween:A?0:ka.spaceBetween}),ct.map((function(e){var t=o.appendedSlides[e],n={closeButtonTitle:at,isActiveSwiperSlide:o.activeAppendedSlideIndex===e,isAnimatingIn:xe||T,isAnimatingOut:we||D,isMuted:st,isLastPlayerInStack:Le,onClose:rt,toggleMute:ot};return i.default.createElement(Ca,{key:e,"data-hash":function(){return U.clipPlayer.disableUrls?``:(0,Jt.A6)(t)?`${p}/${m}/${o.activeClip?.id||``}`:_?t.id:`${p}/${m}/${t.id}`}(),"data-id":t.id,style:{opacity:+!!Me}},t&&de?i.default.createElement(i.default.Fragment,null,(0,Jt.A6)(t)?i.default.createElement(Cr,(0,r.pi)({key:e,ad:t,clipsNavService:o,updateClipPlayerBackground:Ie},n)):i.default.createElement(or,(0,r.pi)({clipsNavService:o,feedTitle:q.title,feedTitleImageUrl:q.imageUrl,clip:t,clipIndex:t.indexInCollection,collection:m,incrementLoopCount:Ge,handleSelectCategory:et,currentClipNavigationCategory:l,isPausedGlobally:me,shouldCloseOnForegroundAction:!A,shouldPauseOnForegroundAction:A,showCategories:N,videoRef:function(t){return Ve.current[e]=t}},n))):null)}))),!y&&i.default.createElement(`div`,{className:Ut()(ba.blurredBackgroun
56d,(n={},n[ba.isMobile]=Vt.tq,n[ba.isCategoryNavigation]=y,n)),ref:K}),!!Y&&i.default.createElement(Ma,{clips:z,clipsNavService:Ae.current||o,feedHeader:{title:Y},isCategoryNavigation:!0,collection:m,basename:p,resetCategory:tt,currentBackgroundContainer:s||K.current,currentBackgroundImageUrl:c||ke.current,currentClipNavigationCategory:Y,currentMutedState:u??ce,setCurrentMutedState:d||le,initialCategoryId:null,isInline:lt,isParentInline:_||v,isDisabled:ge,isNavigationAnimatingIn:xe,isNavigationAnimatingOut:we,onLightboxClick:b||Ee,setOnLightboxClick:S||De,capturePageScrollOnWheel:A,disableGlobalPageScrollLock:M,supportsNavigation:N})))},Na=(0,i.forwardRef)((function(e,t){var n=e.children,a=e.isInline,o=e.isOpen,s=(0,r._T)(e,[`children`,`isInline`,`isOpen`]);return a?i.default.createElement(`div`,(0,r.pi)({},s,{className:Ut()(s.className,ba.inlineLightbox),ref:t}),n):i.default.createElement(Et,{open:o},i.default.createElement(Dt,(0,r.pi)({},s,{ref:t}),i.default.createElement(zt,null,i.default.createElement(Ot,null,`Clips Player`)),n))})),Pa=Ma},1822:function(e,t,n){n.d(t,{Ev:function(){return _},M:function(){return g},cV:function(){return h},gX:function(){return v},gv:function(){return p},n1:function(){return m}});var r=n(7582),i=n(3269),a=n(1736),o=n(2385),s=n(3914),c=n(6661),l=n(1438),u=n(4366),d=function(e){return!!e},f=function(e){return e?.trim()||void 0},p=function(e){var t=e.clip,n=e.collection,i=e.nextClip,u=null,p=s.Z.eventTrackingOptions.enableAdTracking;if(c.Z.settings?.adsFrom===l.m.storyteller&&(u={type:`custom`,remoteUrl:`${o.Z.buildUrl(`ads/clips`,p)}&${new URLSearchParams(p?{collection:n,clipCategories:t.categories.join(`,`),nextClipCategories:(i?.categories)?.join(`,`)||``}:{}).toString()}`}),c.Z.settings?.adsFrom===l.m.integratingApp&&a.Z.getAdConfig){var m=a.Z.getAdConfig({clip:{id:``,categories:t.clipCategories},nextClip:i?{categories:i.clipCategories}:void 0,collection:n});if(m&&v(m)){var h=m.publisherProvidedId,g=(0,r._T)(m,[`publisherProvidedId`]),_=p?f(h):void 0,y=p?{stCollection:n,stClipCategories:t.clipCategories.map((function(e){return e.externalId})).filter(d),stNextClipCategories:(i?.clipCategories)?.map((function(e){return e.externalId})).filter(d)||[]}:{};u=(0,r.pi)((0,r.pi)((0,r.pi)({},g),_?{publisherProvidedId:_}:{}),{customTargeting:(0,r.pi)((0,r.pi)({},y),m.customTargeting)})}}return u},m=function(e){var t=e.categories,n=e.story,p=null,m=s.Z.eventTrackingOptions.enableAdTracking,h=t?.length?t[0]:void 0,g=n.categories.filter((function(e){return e.externalId===h}))[0]?.placement?.code||``;if(c.Z.settings?.adsFrom===l.m.storyteller&&(p={type:`custom`,remoteUrl:`${o.Z.buildUrl(`ads/stories`,m)}&${new URLSearchParams(m?{placement:g,categories:t?.join(`,`)||``,storyCategories:n.categories.map((function(e){return e.externalId})).join(`,`)}:{}).toString()}`}),c.Z.settings?.adsFrom===l.m.integratingApp&&a.Z.getAdConfig){var _=a.Z.getAdConfig({placement:g,categories:t||[],story:{id:``,categories:n.categories.map((function(e){return new i.B(e)}))}});if(_&&v(_)){var y=_.publisherProvidedId,b=(0,r._T)(_,[`publisherProvidedId`]),x=m?f(y):void 0,S=m?{stCurrentCategory:(0,u.x)(n.categories,t||[])?.externalId||``,stPlacement:g,stCategories:n.categories.map((function(e){return e.externalId})).filter(d)}:{};p=(0,r.pi)((0,r.pi)((0,r.pi)({},b),x?{publisherProvidedId:x}:{}),{customTargeting:(0,r.pi)((0,r.pi)({},S),_.customTargeting)})}}return p},h=function(e){if(v(e)){var t=s.Z.eventTrackingOptions.enableAdTracking?f(e.publisherProvidedId):void 0;return{type:`doubleclick`,"data-slot":e.slot,json:(0,r.pi)({targeting:e.customTargeting||{}},t?{ppid:t}:{})}}return{type:`custom`,"data-url":e.remoteUrl}},g=function(e,t){if(!e)return``;var n={"ad-attributes":h(e),"storyteller-attributes":(0,r.pi)((0,r.pi)({adStrategy:t?.strategy,adFrequency:t?.frequency},t&&`buffer`in t?{adBuffer:t?.buffer}:{}),t&&`initialIndex`in t?{adInitialIndex:t.initialIndex}:{})};return JSON.stringify(n,(function(e,t){if(t!==null)return t}))},_=function(e){return!!e&&!(v(e)&&!e.slot)},v=function(e){return e.type!==`custom`}},1462:function(e,t,n){var r;n.d(t,{q:function(){return r}}),function(e){e[e.local=0]=`local`,e[e.dev=1]=`dev`,e[e.staging=2]=`staging`,e[e.production=3]=`production`}(r||={})},942:function(e,t,n){var r;n.d(t,{v:function(){return r}}),function(e){e.start=`start`,e.center=`center`,e.end=`end`}(r||={})},9628:function(e,t,n){var r;n.d(t,{R:function(){return r}}),function(e){e.left=`left`,e.center=`center`,e.right=`right`}(r||={})},5754:function(e,t,n){n.d(t,{W:function(){return ee}});var r=n(7582),i={primary:`colors-primary`,success:`colors-success`,alert:`colors-alert`,white:{primary:`colors-white-primary`,secondary:`colors-white-secondary`,tertiary:`colors-white-tertiary`},black:{primary:`colors-black-primary`,secondary:`colors-black-secondary`,tertiary:`colors-black-tertiary`},focusIndicator:`colors-focus-indicator`},a=`font`,o={cornerRadius:`primitives-corner-radius`},s={backgroundColor:`lists-background-color`,row:{tileSpacing:`row-tile-spacing`,startInset:`row-start-inset`,endInset:`row-end-inset`,startPadding:`row-start-padding`,endPadding:`row-end-padding`,scrollIndicatorBackgroun
56dColor:`scroll-indicator-background`,scrollIndicatorIcon:`scroll-indicator-icon`,scrollIndicatorColor:`scroll-indicator-color`},grid:{tileSpacing:`grid-tile-spacing`,topInset:`grid-top-inset`,bottomInset:`grid-bottom-inset`,startInset:`grid-start-inset`,endInset:`grid-end-inset`}},c={chip:{textSize:`tile-chip-text-size`},title:{textSize:`tile-title-text-size`,lineHeight:`tile-title-line-height`,alignment:`tile-title-alignment`,fontWeight:`tile-title-font-weight`},circularTile:{liveChip:{readImage:`circular-live-chip-read-image`,unreadImage:`circular-live-chip-unread-image`,readBackgroundColor:`circular-live-chip-read-background-color`,unreadBackgroundColor:`circular-live-chip-unread-background-color`,readTextColor:`circular-live-chip-read-text-color`,unreadTextColor:`circular-live-chip-unread-text-color`},title:{readTextColor:`circular-title-read-text-color`,unreadTextColor:`circular-title-unread-text-color`},unreadIndicatorColor:`circular-unread-indicator-color`,readIndicatorColor:`circular-read-indicator-color`,readStrokeWidth:`circular-tile-read-stroke-width`,unreadStrokeWidth:`circular-tile-unread-stroke-width`},rectangularTile:{chip:{alignment:`rectangular-chip-alignment`},liveChip:{readImage:`rectangular-live-chip-read-image`,unreadImage:`rectangular-live-chip-unread-image`,readBackgroundColor:`rectangular-live-chip-read-background-color`,unreadBackgroundColor:`rectangular-live-chip-unread-background-color`,readTextColor:`rectangular-live-chip-read-text-color`,unreadTextColor:`rectangular-live-chip-unread-text-color`},title:{textColor:`rectangular-title-color`},padding:`rectangular-tile-padding`,unreadIndicator:{image:`rectangular-unread-indicator-image`,backgroundColor:`rectangular-unread-indicator-background-color`,textColor:`rectangular-unread-indicator-text-color`}}},l={backgroundColor:`button-background-color`,textColor:`button-text-color`,textCase:`button-text-case`,cornerRadius:`button-corner-radius`},u={headingColor:`instructions-heading-color`,subHeadingColor:`instructions-subheading-color`,backgroundColor:`instructions-background-color`,button:{textColor:`instructions-button-text-color`,backgroundColor:`instructions-button-background-color`}},d={poll:{answerTextColor:`poll-answer-text-color`,percentBarColor:`poll-percent-bar-color`,selectedAnswerBorderColor:`poll-selected-answer-border-color`,answeredMessageTextColor:`poll-answered-message-text-color`,selectedAnswerBorderImage:`poll-selected-answer-border-image`},triviaQuiz:{correctColor:`quiz-correct-color`,incorrectColor:`quiz-incorrect-color`}},f=n(4883),p=n(9984),m=n(8199),h=n(3089),g=function(){function e(){this.backgroundColor=null,this.textColor=null,this.textCase=h.q.default,this.cornerRadius=null}return(0,r.gn)([(0,p.P)(l.backgroundColor),(0,m.t)((function(e){return{default:e.colors.white.primary}}))],e.prototype,`backgroundColor`,void 0),(0,r.gn)([(0,p.P)(l.textColor),(0,m.t)((function(e){return{default:e.colors.black.primary}}))],e.prototype,`textColor`,void 0),(0,r.gn)([(0,p.P)(l.textCase,f.g.textCase)],e.prototype,`textCase`,void 0),(0,r.gn)([(0,p.P)(l.cornerRadius,f.g.pixel),(0,m.t)((function(e){return{default:e.primitives.cornerRadius}}))],e.prototype,`cornerRadius`,void 0),e}(),_=n(8705),v=function(){function e(){this.primary=`#1a1a1a`,this.secondary=null,this.tertiary=null}return(0,r.gn)([(0,p.P)(i.black.primary)],e.prototype,`primary`,void 0),(0,r.gn)([(0,p.P)(i.black.secondary),(0,m.t)((function(e){return{default:(0,_.Gz)(e.colors.black.primary,.85)}}))],e.prototype,`secondary`,void 0),(0,r.gn)([(0,p.P)(i.black.tertiary),(0,m.t)((function(e){return{default:(0,_.Gz)(e.colors.black.primary,.7)}}))],e.prototype,`tertiary`,void 0),e}(),y=function(){function e(){this.primary=`#ffffff`,this.secondary=null,this.tertiary=null}return(0,r.gn)([(0,p.P)(i.white.primary)],e.prototype,`primary`,void 0),(0,r.gn)([(0,p.P)(i.white.secondary),(0,m.t)((function(e){return{default:(0,_.Gz)(e.colors.white.primary,.85)}}))],e.prototype,`secondary`,void 0),(0,r.gn)([(0,p.P)(i.white.tertiary),(0,m.t)((function(e){return{default:(0,_.Gz)(e.colors.white.primary,.7)}}))],e.prototype,`tertiary`,void 0),e}(),b=function(){function e(){this.primary=`#1C62EB`,this.success=`#3bb327`,this.alert=`#e21219`,this.white=new y,this.black=new v,this.focusIndicator=null}return(0,r.gn)([(0,p.P)(i.primary)],e.prototype,`primary`,void 0),(0,r.gn)([(0,p.P)(i.success)],e.prototype,`success`,void 0),(0,r.gn)([(0,p.P)(i.alert)],e.prototype,`alert`,void 0),(0,r.gn)([(0,p.P)(i.focusIndicator),(0,m.t)((function(e){return{default:e.colors.primary,dark:e.colors.primary}}))],e.prototype,`focusIndicator`,void 0),e}(),x=function(){function e(){this.answerTextColor=null,this.percentBarColor=`#CDD0DC`,this.selectedAnswerBorderColor=null,this.answeredMessageTextColor=null,this.selectedAnswerBorderImage=null,this.showVoteCount=!0,this.showPercentBarBackgroun
56d=!1}return(0,r.gn)([(0,p.P)(d.poll.answerTextColor),(0,m.t)((function(e){return{default:e.colors.black.primary}}))],e.prototype,`answerTextColor`,void 0),(0,r.gn)([(0,p.P)(d.poll.percentBarColor)],e.prototype,`percentBarColor`,void 0),(0,r.gn)([(0,p.P)(d.poll.selectedAnswerBorderColor),(0,m.t)((function(e){return{default:e.colors.white.tertiary}}))],e.prototype,`selectedAnswerBorderColor`,void 0),(0,r.gn)([(0,p.P)(d.poll.answeredMessageTextColor),(0,m.t)((function(e){return{default:e.colors.white.tertiary}}))],e.prototype,`answeredMessageTextColor`,void 0),(0,r.gn)([(0,p.P)(d.poll.selectedAnswerBorderImage)],e.prototype,`selectedAnswerBorderImage`,void 0),e}(),S=function(){function e(){this.correctColor=null,this.incorrectColor=null}return(0,r.gn)([(0,p.P)(d.triviaQuiz.correctColor),(0,m.t)((function(e){return{default:e.colors.success}}))],e.prototype,`correctColor`,void 0),(0,r.gn)([(0,p.P)(d.triviaQuiz.incorrectColor),(0,m.t)((function(e){return{default:e.colors.alert}}))],e.prototype,`incorrectColor`,void 0),e}(),C=function(){this.poll=new x,this.triviaQuiz=new S},w=function(){function e(){this.textColor=null,this.backgroundColor=null}return(0,r.gn)([(0,p.P)(u.button.textColor),(0,m.t)((function(e){return{default:e.colors.white.primary,dark:e.colors.black.primary}}))],e.prototype,`textColor`,void 0),(0,r.gn)([(0,p.P)(u.button.backgroundColor),(0,m.t)((function(e){return{default:e.colors.black.primary,dark:e.colors.white.primary}}))],e.prototype,`backgroundColor`,void 0),e}(),T=function(){function e(){this.show=!0,this.headingColor=null,this.subHeadingColor=null,this.backgroundColor=null,this.button=new w,this.icons={}}return(0,r.gn)([(0,p.P)(u.headingColor),(0,m.t)((function(e){return{default:e.colors.black.primary,dark:e.colors.white.primary}}))],e.prototype,`headingColor`,void 0),(0,r.gn)([(0,p.P)(u.subHeadingColor),(0,m.t)((function(e){return{default:e.colors.black.secondary,dark:e.colors.white.secondary}}))],e.prototype,`subHeadingColor`,void 0),(0,r.gn)([(0,p.P)(u.backgroundColor),(0,m.t)((function(e){return{default:e.colors.white.primary,dark:e.colors.black.primary}}))],e.prototype,`backgroundColor`,void 0),e}(),E=function(){function e(){this.tileSpacing=8,this.topInset=12,this.bottomInset=12,this.startInset=16,this.endInset=16,this.columns=2}return(0,r.gn)([(0,p.P)(s.grid.tileSpacing,f.g.pixel)],e.prototype,`tileSpacing`,void 0),(0,r.gn)([(0,p.P)(s.grid.topInset,f.g.pixel)],e.prototype,`topInset`,void 0),(0,r.gn)([(0,p.P)(s.grid.bottomInset,f.g.pixel)],e.prototype,`bottomInset`,void 0),(0,r.gn)([(0,p.P)(s.grid.startInset,f.g.pixel)],e.prototype,`startInset`,void 0),(0,r.gn)([(0,p.P)(s.grid.endInset,f.g.pixel)],e.prototype,`endInset`,void 0),e}(),D=function(){function e(e){this.tileSpacing=8,this.startInset=12,this.endInset=12,this.startPadding=0,this.endPadding=0,this.showScrollIndicator=!0,this.scrollIndicatorBackgroundColor=`white`,this.scrollIndicatorColor=`rgba(26, 26, 26, 0.7)`,this.scrollIndicatorFade=!0,this.scrollIndicatorInlineAlignment=`inside`,e&&Object.assign(this,e)}return(0,r.gn)([(0,p.P)(s.row.tileSpacing,f.g.pixel)],e.prototype,`tileSpacing`,void 0),(0,r.gn)([(0,p.P)(s.row.startInset,f.g.pixel)],e.prototype,`startInset`,void 0),(0,r.gn)([(0,p.P)(s.row.endInset,f.g.pixel)],e.prototype,`endInset`,void 0),(0,r.gn)([(0,p.P)(s.row.startPadding,f.g.pixel)],e.prototype,`startPadding`,void 0),(0,r.gn)([(0,p.P)(s.row.endPadding,f.g.pixel)],e.prototype,`endPadding`,void 0),(0,r.gn)([(0,p.P)(s.row.scrollIndicatorBackgroundColor)],e.prototype,`scrollIndicatorBackgroundColor`,void 0),(0,r.gn)([(0,p.P)(s.row.scrollIndicatorColor)],e.prototype,`scrollIndicatorColor`,void 0),e}(),O=function(){function e(e){this.row=new D,this.grid=new E,this.backgroundColor=null,e&&Object.assign(this,e)}return(0,r.gn)([(0,p.P)(s.backgroundColor),(0,m.t)((function(e){return{default:e.colors.white.primary,dark:e.colors.black.primary}}))],e.prototype,`backgroundColor`,void 0),e}(),k=n(9628),A=function(){this.actionButton={alignment:k.R.center,icon:null,showOnMobile:!0},this.disableUrls=!1,this.showStoryIcon=!0,this.showShareButton=!0,this.playAllStories=!1,this.icons={}},j=function(){function e(){this.cornerRadius=4}return(0,r.gn)([(0,p.P)(o.cornerRadius,f.g.pixel)],e.prototype,`cornerRadius`,void 0),e}
56(),M=function(){function e(){this.unreadBackgroundColor=null,this.readBackgroundColor=null,this.unreadImage=null,this.readImage=null,this.readTextColor=null,this.unreadTextColor=null}return(0,r.gn)([(0,p.P)(c.circularTile.liveChip.unreadBackgroundColor),(0,m.t)((function(e){return{default:e.colors.alert}}))],e.prototype,`unreadBackgroundColor`,void 0),(0,r.gn)([(0,p.P)(c.circularTile.liveChip.readBackgroundColor),(0,m.t)((function(e){return{default:e.colors.black.tertiary}}))],e.prototype,`readBackgroundColor`,void 0),(0,r.gn)([(0,p.P)(c.circularTile.liveChip.unreadImage)],e.prototype,`unreadImage`,void 0),(0,r.gn)([(0,p.P)(c.circularTile.liveChip.readImage)],e.prototype,`readImage`,void 0),(0,r.gn)([(0,p.P)(c.circularTile.liveChip.readTextColor),(0,m.t)((function(e){return{default:e.colors.white.primary}}))],e.prototype,`readTextColor`,void 0),(0,r.gn)([(0,p.P)(c.circularTile.liveChip.unreadTextColor),(0,m.t)((function(e){return{default:e.colors.white.primary}}))],e.prototype,`unreadTextColor`,void 0),e}(),N=function(){function e(){this.readTextColor=null,this.unreadTextColor=null}return(0,r.gn)([(0,p.P)(c.circularTile.title.readTextColor),(0,m.t)((function(e){return{default:e.colors.black.tertiary,dark:e.colors.white.tertiary}}))],e.prototype,`readTextColor`,void 0),(0,r.gn)([(0,p.P)(c.circularTile.title.unreadTextColor),(0,m.t)((function(e){return{default:e.colors.black.primary,dark:e.colors.white.primary}}))],e.prototype,`unreadTextColor`,void 0),e}(),P=function(){function e(){this.liveChip=new M,this.title=new N,this.unreadIndicatorColor=null,this.readIndicatorColor=`#C5C5C5`,this.unreadStrokeWidth=2,this.readStrokeWidth=1,this.scrollIndicatorBlockAlignment=`cell`}return(0,r.gn)([(0,p.P)(c.circularTile.unreadIndicatorColor),(0,m.t)((function(e){return{default:e.colors.primary}}))],e.prototype,`unreadIndicatorColor`,void 0),(0,r.gn)([(0,p.P)(c.circularTile.readIndicatorColor)],e.prototype,`readIndicatorColor`,void 0),(0,r.gn)([(0,p.P)(c.circularTile.unreadStrokeWidth)],e.prototype,`unreadStrokeWidth`,void 0),(0,r.gn)([(0,p.P)(c.circularTile.readStrokeWidth)],e.prototype,`readStrokeWidth`,void 0),e}(),F=function(){function e(){this.image=null,this.backgroundColor=null,this.textColor=null}return(0,r.gn)([(0,p.P)(c.rectangularTile.unreadIndicator.image)],e.prototype,`image`,void 0),(0,r.gn)([(0,p.P)(c.rectangularTile.unreadIndicator.backgroundColor),(0,m.t)((function(e){return{default:e.colors.primary}}))],e.prototype,`backgroundColor`,void 0),(0,r.gn)([(0,p.P)(c.rectangularTile.unreadIndicator.textColor),(0,m.t)((function(e){return{default:e.colors.white.primary}}))],e.prototype,`textColor`,void 0),e}(),I=function(){function e(){this.textColor=null}return(0,r.gn)([(0,p.P)(c.rectangularTile.title.textColor),(0,m.t)((function(e){return{default:e.colors.white.primary}}))],e.prototype,`textColor`,void 0),e}(),L=n(942),R=function(){function e(){this.alignment=L.v.end}return(0,r.gn)([(0,p.P)(c.rectangularTile.chip.alignment)],e.prototype,`alignment`,void 0),e}(),z=function(){function e(){this.unreadBackgroundColor=null,this.readBackgroundColor=null,this.unreadImage=null,this.readImage=null,this.readTextColor=null,this.unreadTextColor=null}return(0,r.gn)([(0,p.P)(c.rectangularTile.liveChip.unreadBackgroundColor),(0,m.t)((function(e){return{default:e.colors.alert}}))],e.prototype,`unreadBackgroundColor`,void 0),(0,r.gn)([(0,p.P)(c.rectangularTile.liveChip.readBackgroundColor),(0,m.t)((function(e){return{default:e.colors.black.tertiary}}))],e.prototype,`readBackgroundColor`,void 0),(0,r.gn)([(0,p.P)(c.rectangularTile.liveChip.unreadImage)],e.prototype,`unreadImage`,void 0),(0,r.gn)([(0,p.P)(c.rectangularTile.liveChip.readImage)],e.prototype,`readImage`,void 0),(0,r.gn)([(0,p.P)(c.rectangularTile.liveChip.readTextColor),(0,m.t)((function(e){return{default:e.colors.white.primary}}))],e.prototype,`readTextColor`,void 0),(0,r.gn)([(0,p.P)(c.rectangularTile.liveChip.unreadTextColor),(0,m.t)((function(e){return{default:e.colors.white.primary}}))],e.prototype,`unreadTextColor`,void 0),e}(),B=function(){function e(){this.chip=new R,this.liveChip=new z,this.padding=8,this.unreadIndicator=new F,this.title=new I,this.showWebStoriesIcon=!1,this.showGradient=!0}return(0,r.gn)([(0,p.P)(c.rectangularTile.padding,f.g.pixel)],e.prototype,`padding`,void 0),e}(),V=function(){function e(){this.textSize=11,this.show=!0}return(0,r.gn)([(0,p.P)(c.chip.textSize,f.g.pixel)],e.prototype,`textSize`,void 0),e}(),H=function(){function e(){this.textSize=11,this.lineHeight=13,this.alignment=L.v.center,this.fontWeight=700,this.show=!0}return(0,r.gn)([(0,p.P)(c.title.textSize,f.g.pixel)],e.prototype,`textSize`,void 0),(0,r.gn)([(0,p.P)(c.title.lineHeight,f.g.pixel)],e.prototype,`lineHeight`,void 0),(0,r.gn)([(0,p.P)(c.title.alignment,f.g.textAlign)],e.prototype,`alignment`,void 0),(0,r.gn)([(0,p.P)(c.title.fontWeight)],e.prototype,`fontWeight`,void 0),e}(),U=function(){this.chip=new V,this.title=new H,this.circularTile=new P,this.rectangularTile=new B},W=function(){this.disableUrls=!1,this.showShareButton=!0,this.showLikeButton=!0},ee=function(){function e(e){this.colors=new b,this.font=`inherit`,this.primitives=new j,this.lists=new O,this.storyTiles=new U,this.player=new A,this.clipPlayer=new W,this.buttons=new g,this.instructions=new T,this.engagementUnits=new C,this.isDark=!1,e&&this.copyProperties(this,e,[])}return e.prototype.copyProperties=function(e,t,n){var i=this;
56n===void 0&&(n=[]),Object.keys(t).forEach((function(a){typeof t[a]==`object`&&t[a]!==null?i.copyProperties(e,t[a],(0,r.ev)((0,r.ev)([],n,!0),[a],!1)):i.setNestedThemeProperty(e,t[a],(0,r.ev)((0,r.ev)([],n,!0),[a],!1))}))},e.prototype.setNestedThemeProperty=function(e,t,n){var r=n[0],i=n.slice(1);i.length?this.setNestedThemeProperty(e[r],t,i):e[r]=t},e.prototype.toPlainObject=function(){return this},(0,r.gn)([(0,p.P)(a,f.g.any)],e.prototype,`font`,void 0),e}()},3089:function(e,t,n){var r;n.d(t,{q:function(){return r}}),function(e){e.default=`default`,e.upper=`upper`,e.lower=`lower`}(r||={})},7814:function(e,t,n){n.d(t,{V:function(){return i}});var r=n(5754),i=function(e){e===void 0&&(e=null),this.light=new r.W,this.dark=new r.W,e&&(this.light=new r.W(e.light),this.dark=new r.W(e.dark))}},4539:function(e,t,n){var r;n.d(t,{V:function(){return r}}),function(e){e.auto=`auto`,e.light=`light`,e.dark=`dark`}(r||={})},1554:function(e,t,n){n.d(t,{Z0:function(){return a},k9:function(){return o},q4:function(){return r},qS:function(){return i}});var r=`10.13.7`,i=`20260626.1`,a=`https://localhost:8000/dist`,o=`https://stories.usestoryteller.com/amp`;`${o}${i}`},830:function(e,t,n){n.d(t,{Ed:function(){return m},KS:function(){return h},yF:function(){return g},Aw:function(){return _},V3:function(){return v},YC:function(){return y},eF:function(){return b},r8:function(){return w},mp:function(){return x},ku:function(){return S},C$:function(){return C}});var r,i=n(7582),a=n(6661),o=n(4991);(function(e){e.Stories=`stories`,e.Clips=`clips`})(r||={});var s,c,l=n(5784),u=n(4366);(function(e){e.BetweenClips=`betweenClips`,e.BetweenStories=`betweenStories`,e.BetweenStoriesAndPages=`betweenStoriesAndPages`,e.BetweenPages=`betweenPages`})(c||={});var d=((s={})[c.BetweenClips]=`Between Clips`,s[c.BetweenStories]=`Between Stories`,s[c.BetweenPages]=`Between Pages`,s[c.BetweenStoriesAndPages]=`Between Stories and Pages`,s),f=function(e){function t(t){var n=e.call(this)||this;if(n.isAdCommand=!0,n.ad=t.ad,function(e){return`story`in e}(t)){n.adType=r.Stories;var i=t.story,o=t.currentCategories;n.storyOrClipEventData={categories:i.categories.map((function(e){return e.name})),currentCategory:new l.u((0,u.x)(i.categories,o)),pageHasAction:!!n.ad.swipeUpUrl,pageActionText:n.ad.swipeUpText,pageActionUrl:n.ad.swipeUpUrl};var s=a.Z.settings.ads.stories.strategy;n.adPlacement=s,n.adStrategy=d[s]}else n.adType=r.Clips,n.storyOrClipEventData={collection:t.ad.collection,clipHasAction:!!n.ad.swipeUpUrl,clipActionText:n.ad.swipeUpText,clipActionUrl:n.ad.swipeUpUrl},s=a.Z.settings.ads.clips.strategy,n.adPlacement=s,n.adStrategy=d[s];return n}return(0,i.ZT)(t,e),t.prototype.buildRequestContent=function(){return(0,i.pi)((0,i.pi)({activityItemType:this.activityType,externalId:a.Z.userId,adId:this.ad.id,adPlacement:this.adPlacement,adStrategy:this.adStrategy,adType:this.adType,advertiserName:this.ad.advertiserName,pageType:this.ad.pageType},this.storyOrClipEventData),this.buildAdCommandData())},t.prototype.buildEventData=function(){return(0,i.pi)((0,i.pi)({adId:this.ad.id,adPlacement:this.adPlacement,adStrategy:this.adStrategy,adType:this.adType,advertiserName:this.ad.advertiserName,pageType:this.ad.pageType},this.storyOrClipEventData),this.buildAdCommandData())},t}(o.Z),p=n(3766),m=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.adActionButtonTapped,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{}},t}(f),h=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.dismissedAd,n.dismissedReason=t.dismissedReason,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{contentLength:this.ad.duration,dismissedReason:this.dismissedReason}},t}(f),g=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.finishedAd,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{}},t}(f),_=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.openedAd,n.openedReason=t.openedReason,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{contentLength:this.ad.duration,openedReason:this.openedReason}},t}(f),v=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.pausedAdPage,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{}},t}(f),y=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.resumedAdPage,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{}},t}(f),b=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.skippedAd,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{}},t}(f),x=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.viewedAdPageFirstQuartile,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{}},t}(f),S=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.viewedAdPageMidpoint,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{}},t}(f),C=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.viewedAdPageThirdQuartile,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{}},t}(f),w=function(e){function t(t){var n=e.call(this,t)||this;return n.activityType=p.T.viewedAdPageComplete,n}return(0,i.ZT)(t,e),t.prototype.buildAdCommandData=function(){return{}},t}(f)},546:function(e,t,n){var r=n(9748),i=n(3983);t.Z=(0,r.createContext)(new i.d)},4991:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(7582),i=n(3441),a=n(355),o=n(6661),s=function(e){function t(t){var n=e.call(this)||this;return n.shouldPersonalize=!1,n.endpoint=`activity/recordActivity`,n.method=a.w.post,n.requestContent=t,n.requestContent.externalId=o.Z.eventUserId,n}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return this.requestContent},t}(i.I),c=function(){function e(){this.alwaysSend=!1,this.isAdCommand=!1,this.isDisabled=function(){return!1}}return e.prototype.createActivityRequestCommand=function(){return new s(this.buildRequestContent())},e}()},1815:function(e,t,n){var r=n(7582),i=n(6661),a=n(3766),o=n(4991),s=n(3269),c=n(5784),l=n(9283),u=n(4366);t.Z=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.openReason=t,o.story=n,o.page=r,o.currentCategories=i,o.activityType=a.T.openedStory,o.storyReadStatus=l.Z.getStoryReadState(n.id).status,o.storyPlaybackMode=l.Z.getStoryPlaybackMode(n.id),o}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:i.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyReadStatus:this.storyReadStatus,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,openedReason:this.openReason,categories:this.story.categories.map((function(e){return e.name})),categoryDetails:this.story.categories.map((function(e){return new s.B(e)})),currentCategory:new c.u((0,u.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyReadStatus:this.storyReadStatus,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,openedReason:this.openReason,categories:this.story.categories.map((function(e){return e.name})),categoryDetails:this.story.categories.map((function(e){return new s.B(e)})),currentCategory:new c.u((0,u.x)(this.story.categories,this.currentCategories))}},t}(o.Z)},7112:function(e,t,n){var r=n(7582);t.Z=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`EventEmitter`,t}return(0,r.ZT)(t,e),t.prototype.broadcastEvent=function(e,t,n){var r;t===void 0&&(t=null),n===void 0&&(n=document.body),(r=typeof window.CustomEvent==`function`||window.CustomEvent.toString().indexOf(`CustomEventConstructor`)>-1?new CustomEvent(e,{detail:t}):document.createEvent(`CustomEvent`)).initCustomEvent(e,!0,!0,t),n.dispatchEvent(r)},t.prototype.on=function(e,t,n){var r=this;document.addEventListener(e,(function(n){r.logInfo(`Received event ${e}`),t(n.detail)}),n)},t.sharedInstance=new t,t}(n(956).b).sharedInstance},7840:function(e,t,n){var r=n(9748),i=n(3983);t.Z=(0,r.createContext)(new i.c)},3983:function(e,t,n){n.d(t,{c:function(){return i},d:function(){return a}});var r=n(7582),i=function(){this.onDataLoadStarted=function(){},this.onDataLoadComplete=function(){},this.onPlayerDismissed=function(){}},a=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t}(i)},3766:function(e,t,n){var r;n.d(t,{T:function(){return r}}),function(e){e.actionButtonTapped=`actionButtonTapped`,e.shareButtonTapped=`shareButtonTapped`,e.shareSuccess=`
56shareSuccess`,e.openedStory=`openedStory`,e.dismissedStory=`dismissedStory`,e.skippedStory=`skippedStory`,e.completedStory=`completedStory`,e.openedPage=`openedPage`,e.previousPage=`previousPage`,e.previousStory=`previousStory`,e.votedPoll=`votedPoll`,e.triviaQuizQuestionAnswered=`triviaQuizQuestionAnswered`,e.triviaQuizCompleted=`triviaQuizCompleted`,e.openedAd=`openedAd`,e.dismissedAd=`dismissedAd`,e.pausedAdPage=`pausedAdPage`,e.resumedAdPage=`resumedAdPage`,e.finishedAd=`finishedAd`,e.skippedAd=`skippedAd`,e.adActionButtonTapped=`adActionButtonTapped`,e.viewedAdPageFirstQuartile=`viewedAdPageFirstQuartile`,e.viewedAdPageMidpoint=`viewedAdPageMidpoint`,e.viewedAdPageThirdQuartile=`viewedAdPageThirdQuartile`,e.viewedAdPageComplete=`viewedAdPageComplete`,e.pausedClip=`pausedClip`,e.resumedClip=`resumedClip`,e.likedClip=`likedClip`,e.unlikedClip=`unlikedClip`,e.openedClip=`openedClip`,e.openedCategory=`openedCategory`,e.dismissedClip=`dismissedClip`,e.dismissedCategory=`dismissedCategory`,e.finishedClip=`finishedClip`,e.completedLoop=`completedLoop`,e.nextClip=`nextClip`,e.previousClip=`previousClip`,e.completedPage=`completedPage`,e.skippedPage=`skippedPage`,e.swipedUp=`swipedUp`,e.viewedPage=`viewedPage`,e.completedAd=`completedAd`,e.swipedUpOnAd=`swipedUpOnAd`,e.previousAd=`previousAd`,e.impression=`impression`,e.readyToPlay=`readyToPlay`,e.mediaStarted=`mediaStarted`,e.bufferingStarted=`bufferingStarted`,e.bufferingEnded=`bufferingEnded`}(r||={})},3269:function(e,t,n){n.d(t,{B:function(){return r}});var r=function(e){this.name=e.name,this.id=e.id,this.type=e.type,this.placement=typeof e.placement==`string`?e.placement:e.placement?.title,this.externalId=e.externalId}},5784:function(e,t,n){n.d(t,{u:function(){return r}});var r=function(e){this.title=e?.name||``,this.id=e?.externalId||``,this.placement=e?.placement?.title}},4990:function(e,t,n){var r;n.d(t,{z:function(){return r}}),function(e){e.backgroundTapped=`backgroundTapped`,e.instanceMethod=`instanceMethod`,e.windowUnload=`windowUnload`,e.closeButtonTapped=`closeButtonTapped`,e.swipedDown=`swipedDown`,e.swipedFirstStory=`swipedFirstStory`,e.swipedFinalStory=`swipedFinalStory`,e.skippedFinalPage=`skippedFinalPage`,e.completedFinalPage=`completedFinalPage`,e.backTapped=`backTapped`,e.escapeKeyPressed=`escapeKeyPressed`,e.backButtonTapped=`backButtonTapped`}(r||={})},4388:function(e,t,n){var r;n.d(t,{T:function(){return r}}),function(e){e.storyListTap=`storyListTap`,e.deepLink=`deepLink`,e.swipe=`swipe`,e.automaticPlayback=`automaticPlayback`,e.tap=`tap`,e.clipListTap=`clipListTap`,e.categoryListTap=`categoryListTap`,e.categoryBackTap=`categoryBackTap`}(r||={})},8671:function(e,t,n){var r;n.d(t,{e:function(){return r}}),function(e){e.list=`list`,e.singleStory=`singleStory`}(r||={})},647:function(e,t,n){var r;n.d(t,{_:function(){return r}}),function(e){e.openedPlayer=`storyteller.openedPlayer`,e.dismissPlayer=`storyteller.dismissPlayer`,e.eventTrackingOptionsUpdated=`storyteller.eventTrackingOptionsUpdated`,e.getAdConfigUpdated=`storyteller.getAdConfigUpdated`,e.userNavigatedToAppUpdated=`storyteller.userNavigatedToAppUpdated`,e.userActivity=`storyteller.UserActivity`,e.storyStatusUpdate=`storyteller.storyStatusUpdate`,e.readInstructions=`storyteller.ReadInstructions`,e.colorSchemeChanged=`storyteller.colorSchemeChanged`,e.themeUpdated=`storyteller.themeUpdated`,e.playbackDisabled=`storyteller.playbackDisabled`,e.playbackEnabled=`storyteller.playbackEnabled`,e.questionAnsweredCorrectly=`storyteller.questionAnsweredCorrectly`,e.storyPlayerState=`storyteller.storyPlayerState`}(r||={})},1736:function(e,t){t.Z=function(){function e(){this.logTag=`StorytellerDelegate`,this.onUserActivityOccurred=function(){},this.getAdConfig=function(){return null}}return e.prototype.setDelegate=function(e){this.onUserActivityOccurred=e.onUserActivityOccurred,this.onShareButtonTapped=e.onShareButtonTapped,this.getAdConfig=e.getAdConfig,this.userNavigatedToApp=e.userNavigatedToApp},e.prototype.getInstance=function(){return{onUserActivityOccurred:this.onUserActivityOccurred,onShareButtonTapped:this.onShareButtonTapped,getAdConfig:this.getAdConfig,userNavigatedToApp:this.userNavigatedToApp}},e.sharedInstance=new e,e}().sharedInstance},4576:function(e,t,n){var r=n(9748),i=n(7840);t.Z=function(){return(0,r.useContext)(i.Z)}},9512:function(e,t,n){var r=n(7582),i=n(956),a=n(2385),o=n(8585),s=n(3914),c=n(3766),l=n(1736);t.Z=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`UserActivityService`,t._loopsViewed=0,t._loopsViewedForClip={},t._clipsViewed=0,t._pagesViewed=0,t}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"storyDurationViewed",{get:function(){return this.storyViewStartTime?new Date().getTime()-this.storyViewStartTime.getTime():0}
56,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clipsPlayerViewStartTime",{get:function(){return this._clipsPlayerViewStartTime},set:function(e){this._clipsPlayerViewStartTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clipsPlayerDurationViewed",{get:function(){return this._clipsPlayerViewStartTime?new Date().getTime()-this._clipsPlayerViewStartTime.getTime():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loopsViewed",{get:function(){return this._loopsViewed},set:function(e){this._loopsViewed=e},enumerable:!1,configurable:!0}),t.prototype.getLoopsViewedForClip=function(e){return this._loopsViewedForClip[e]||0},t.prototype.setLoopsViewedForClip=function(e){this._loopsViewedForClip[e.clipId]=e.loopsViewed},t.prototype.resetLoopsViewedForClip=function(e){this._loopsViewedForClip[e]=0},t.prototype.incrementLoopsViewedForClip=function(e){this._loopsViewedForClip[e]++},Object.defineProperty(t.prototype,"clipsViewed",{get:function(){return s.Z.isFunctionalFeatureEnabled(o.d.clipViewedStatus)?this._clipsViewed:0},set:function(e){s.Z.isFunctionalFeatureEnabled(o.d.clipViewedStatus)&&(this._clipsViewed=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagesViewed",{get:function(){return this._pagesViewed},enumerable:!1,configurable:!0}),t.prototype.recordActivity=function(e){try{if(l.Z!==null&&l.Z!==void 0&&l.Z.onUserActivityOccurred&&s.Z.eventTrackingOptions.enableUserActivityTracking&&(s.Z.eventTrackingOptions.enableAdTracking||!e.isAdCommand)){var t=e.buildEventData();l.Z.onUserActivityOccurred(e.activityType,this.filterForVppaCompliance_(t))}!e.isDisabled()&&(e.alwaysSend||s.Z.eventTrackingOptions.enableFunctionalCookies&&s.Z.eventTrackingOptions.enableStorytellerTracking&&(s.Z.eventTrackingOptions.enableAdTracking||!e.isAdCommand))&&a.Z.executeCommand(e.createActivityRequestCommand(),!0)}catch(e){throw e}finally{e.activityType===c.T.openedPage?this._pagesViewed++:e.activityType===c.T.dismissedStory?(this._pagesViewed=0,this.storyViewStartTime=null):e.activityType===c.T.completedLoop?this.loopsViewed++:e.activityType===c.T.dismissedClip&&(this.clipsViewed=0,this.loopsViewed=0,this.clipsPlayerViewStartTime=null)}},t.prototype.filterForVppaCompliance_=function(e){if(s.Z.eventTrackingOptions.enableFullVideoAnalytics)return e;for(var t=[`storyId`,`storyTitle`,`storyDisplayTitle`,`clipId`,`clipTitle`,`pageId`,`pageTitle`],n={},r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];n[a]=t.includes(a)?null:e[a]}return n},t.sharedInstance=new t,t}(i.b).sharedInstance},2385:function(e,t,n){n.d(t,{Z:function(){return p}});var r=n(7582),i=n(1462),a=n(1554),o=n(956),s=function(e){function t(){var n=e.call(this,`JsonParseError - Cannot parse response json`)||this;return Object.setPrototypeOf(n,t.prototype),n}return(0,r.ZT)(t,e),t}(Error),c=n(3914),l=n(6661),u=n(1016),d=n(5690),f=n(355),p=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`DataService`,t}return(0,r.ZT)(t,e),t.prototype.executeCommand=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return[4,this.getResponseJson(e,t)];case 1:return n=r.sent(),[2,e.transformResponse(n)]}}))}))},t.prototype.getResponseJson=function(e,t){return t===void 0&&(t=!1),(0,r.mG)(this,void 0,void 0,(function(){var n,i,a,o,l,d,p,m;return(0,r.Jh)(this,(function(h){switch(h.label){case 0:n=this.buildHeaders(),i={method:e.method,headers:n,keepalive:t},a=(0,r.pi)((0,r.pi)({},e.buildRequestContent()),{excludeFromAnalytics:!c.Z.eventTrackingOptions.enableStorytellerTracking}),e.method===f.w.post&&(i.body=JSON.stringify(a)),o=this.buildUrl(e.buildEndpoint(),e.shouldPersonalize),h.label=1;case 1:return h.trys.push([1,3,,4]),[4,fetch(o,i)];case 2:return l=h.sent(),[3,4];case 3:throw d=h.sent(),this.logError(d.toString()),u.G.unknown;case 4:if(!l.ok)return[3,10];h.label=5;case 5:return h.trys.push([5,8,,9]),[4,l.text()];case 6:return(p=h.sent()).length===0?[2,null]:[4,JSON.parse(p)];case 7:return[2,h.sent()];case 8:if(h.sent(),l.status!==204)throw new s;return[2,null];case 9:return[3,12];case 10:return[4,l.text()];case 11:return m=h.sent(),e.handleError(l.status,m),[2,null];case 12:return[2]}}
56))}))},t.prototype.buildHeaders=function(){return{Accept:`application/json`,"Content-Type":`text/plain`,"User-Agent":`Storyteller Javascript SDK - Client [Web] - Version [${a.q4}]`}},t.prototype.buildUrl=function(e,t){var n=l.Z.environment;if(l.Z.customInstanceHost)this.apiBaseUrl=l.Z.customInstanceHost;else switch(n){case i.q.local:this.apiBaseUrl=`https://localhost:44342`;break;case i.q.dev:this.apiBaseUrl=`https://dev.api.usestoryteller.com`;break;case i.q.staging:this.apiBaseUrl=`https://staging.api.usestoryteller.com`;break;case i.q.production:this.apiBaseUrl=`https://api.usestoryteller.com`}var r=`${this.apiBaseUrl}/api/app/${e}`,o=new URL(r),s=`Web`;if(e===`activity/recordActivity`){var u=document.querySelector(`meta[name="platform"]`);if(u){var f=u.getAttribute(`content`)??``;u&&(s=f)}}if(o.searchParams.append(`clientPlatform`,s),o.searchParams.append(`clientVersion`,a.q4),o.searchParams.append(`x-storyteller-api-key`,l.Z.apiKey||``),t&&c.Z.eventTrackingOptions.enablePersonalization)for(var p=0,m=Object.entries(d.Z.getUserAttributes());p<m.length;p++){var h=m[p],g=h[0],_=h[1];o.searchParams.append(`userAttributes[${g}]`,_)}
56return o.searchParams.sort(),o.toString().replace(RegExp(`%5B`,`g`),`[`).replace(RegExp(`%5D`,`g`),`]`).replace(`clientPlatform`,`ClientPlatform`).replace(`clientVersion`,`ClientVersion`)},t.sharedInstance=new t,t}(o.b).sharedInstance},3871:function(e,t,n){n.d(t,{X:function(){return i}});var r=n(7582),i=function(e){function t(n,r){var i,a=r?` for ${n===`Stories`?`category`:`collection`} ${r}`:``;return i=e.call(this,`EmptyResponseError - The API call succeeded but no ${n} were returned${a}.`)||this,Object.setPrototypeOf(i,t.prototype),i}return(0,r.ZT)(t,e),t}(Error)},1016:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(7582),i=function(e){function t(n,r){var i=e.call(this,n?`${n} - ${r}`:r)||this;return i.status=n,Object.setPrototypeOf(i,t.prototype),i}return(0,r.ZT)(t,e),Object.defineProperty(t,"badRequest",{get:function(){return new t(400,`Forbidden`)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"unauthorized",{get:function(){return new t(401,`Invalid API Key`)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"forbidden",{get:function(){return new t(403,`Forbidden`)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"notFound",{get:function(){return new t(404,`Not Found`)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"timeOut",{get:function(){return new t(408,`Request Timeout`)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"locked",{get:function(){return new t(423,`Locked`)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"internalServerError",{get:function(){return new t(500,`Internal Server Error`)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"unknown",{get:function(){return new t(null,`Network Error`)},enumerable:!1,configurable:!0}),t.create=function(e){var n=t.errorMap[e];return n?n():t.unknown},t.errorMap={400:function(){return t.badRequest},401:function(){return t.unauthorized},403:function(){return t.forbidden},404:function(){return t.notFound},408:function(){return t.timeOut},423:function(){return t.locked},500:function(){return t.unauthorized}},t}(Error)},3441:function(e,t,n){n.d(t,{I:function(){return i}});var r=n(1016),i=function(){function e(){}return e.prototype.buildEndpoint=function(){return this.endpoint},e.prototype.buildRequestContent=function(){return{}},e.prototype.transformResponse=function(e){return e||null},e.prototype.handleError=function(e,t){throw r.G.create(e)},e}()},355:function(e,t,n){var r;n.d(t,{w:function(){return r}}),function(e){e.get=`get`,e.post=`post`}(r||={})},6595:function(e,t,n){var r;n.d(t,{G:function(){return r}}),function(e){e.Error=`error`,e.Idle=`idle`,e.Pending=`pending`,e.Success=`success`}(r||={})},3843:function(e,t,n){var r=n(7582),i=n(9748);t.Z=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={hasError:!1},t}return(0,r.ZT)(t,e),t.getDerivedStateFromError=function(e){return{hasError:!0}},t.prototype.componentDidCatch=function(e,t){this.props.onError&&this.props.onError(e,t)},t.prototype.render=function(){return this.state.hasError?i.createElement(i.Fragment,null):this.props.children},t}(i.Component)},2357:function(e,t,n){n.d(t,{i:function(){return r}});var r=function(){function e(){}return e.newGuid=function(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return(e===`x`?t:3&t|8).toString(16)}))},e}()},8080:function(e,t,n){var r=n(9748);t.Z=function(e,t,n,i){var a=(0,r.useRef)();(0,r.useEffect)((function(){var r=n?.current||window;if(r&&r.addEventListener){a.current!==t&&(a.current=t);var i=function(e){a&&a.current&&a.current(e)};return r.addEventListener(e,i),function(){r.removeEventListener(e,i)}}}),[e,n,t,i])}},5259:function(e,t,n){n.d(t,{P:function(){return r},l:function(){return s}});var r,i=n(9748),a=n(5518);(function(e){e.Correct=`correct`,e.Initial=`initial`,e.Incorrect=`incorrect`})(r||={});var o=a.G6&&a.gn,s=function(e){var t=e.isLightboxVisible,n=e.lightbox,a=(0,i.useRef)(),s=(0,i.useState)(r.Initial),c=s[0],l=s[1];(0,i.useEffect)((function(){var e,t,n=`storyteller-size-helper-svh`,r=`storyteller-size-helper-dvh`,i=document.querySelector(`#${n}`),o=document.querySelector(`#${r}`);i?e=i:((e=document.createElement(`div`)).id=n,e.style.height=`100svh`,e.style.position=`absolute`,e.style.display=`block`,e.style.opacity=`0`,document.body.appendChild(e)),o?t=o:((t=document.createElement(`div`)).id=r,t.style.height=`100dvh`,t.style.position=`absolute`,t.style.display=`block`,t.style.opacity=`0`,document.body.appendChild(t)),a.current={svh:e,dvh:t}}),[]);var u=(0,i.useCallback)((function(){return new Promise((function(e,t){var r=function(e,t){return e!==void 0&&t!==void 0&&(e===t||e===t+1||e===t-1)},i=n.current;if(!i)return t(`Lightbox is not available`);if(r(i.clientHeight,window.innerHeight)&&r(a.current?.svh.clientHeight,a.current?.dvh.clientHeight))return e();function o(){if(r(i?.clientHeight,window.innerHeight))return window.removeEventListener(`resize`,o),e()}window.addEventListener(`resize`,o);var s=new ResizeObserver((function(t){for(var n=0,a=t;n<a.length;n++){var o=a[n];if(r(o.contentRect.height,window.innerHeight)&&i)return s.unobserve(i),e()}}));s.observe(i),setTimeout((function(){if(i&&r(i.clientHeight,window.innerHeight))return window.removeEventListener(`resize`,o),s.unobserve(i),e()}),1e3)}))}),[n]);return(0,i.useEffect)((function(){o&&c!==r.Correct&&t&&n.current&&u().then((function(){return l(r.Correct)}
56)).catch((function(){}))}),[t,n,c,u]),{lightboxHasCorrectHeight:!o||c===r.Correct,setLightboxHeightStatus:l}}},7502:function(e,t,n){n.d(t,{q:function(){return r}});var r,i=n(9748),a=n(6346);(function(e){e.loading=`loading`,e.idle=`idle`,e.error=`error`,e.ready=`ready`})(r||={}),t.Z=function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n={});var o=(0,i.useState)(e?r.loading:r.idle),s=o[0],c=o[1];return(0,i.useEffect)((function(){if(t){if(e){var i=document.querySelector(`script[src="${e}"]`);if(i)i.getAttribute(`data-status`)&&c(i.getAttribute(`data-status`));else{(i=(0,a.hT)()).src=e,i.async=!0,i.setAttribute(`data-status`,r.loading),Object.keys(n).forEach((function(e){var t=n[e];i.setAttribute(e,t)}));var o=function(e){var t=e.type===`load`?r.ready:r.error;i?.setAttribute(`data-status`,t)};i.onload=o,i.onerror=o,i.addEventListener(`load`,o),i.addEventListener(`error`,o),document.body.appendChild(i)}var s=function(e){c(e.type===`load`?r.ready:r.error)};return i.onload=s,i.onerror=s,i.addEventListener(`load`,s),i.addEventListener(`error`,s),function(){i&&(i.onload=null,i.onerror=null,i.removeEventListener(`load`,s),i.removeEventListener(`error`,s))}}c(r.idle)}}),[n,t,e]),s}},1114:function(e,t,n){n.d(t,{K:function(){return i},w:function(){return r}});var r=function(){this.isStorytellerMessage=!0};function i(e){return!!(`data`in e&&e.data&&typeof e.data==`object`&&`isStorytellerMessage`in e.data&&typeof e.data.isStorytellerMessage==`boolean`)&&e.data.isStorytellerMessage}},3495:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(7582),i=n(2727),a=function(e){function t(t){var n=t.operation,r=t.openedReason,a=e.call(this)||this;return a.messageType=i.C.playerControl,a.data={operation:n,openedReason:r},a}return(0,r.ZT)(t,e),t}(n(1114).w)},2408:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(7112),i=n(1114),a=n(7582),o=n(2727),s=function(e){function t(){var t=e.call(this)||this;return t.messageType=o.C.messagingInitialized,t.data={src:`${window.location.origin}${window.location.pathname}`},t}return(0,a.ZT)(t,e),t}(i.w),c=function(){function e(){this.childrenWithMessaging_=[],this.initialized_=!1,this.onChildrenReady_={}}return e.prototype.initialize=function(){var e=this;this.initialized_||=(window.addEventListener(`message`,(function(t){return e.handleMessage(t)})),window!==window.parent&&this.sendMessageToParent(new s),!0)},e.prototype.sendMessageToChild=function(e,t){var n=this,r=function(){if(e.src){if(n.childrenWithMessaging_.some((function(t){return e.src.startsWith(t)})))n.sendMessageCore(e.contentWindow,t);else{var r=``;try{var i=new URL(e.src);r=`${i.origin}${i.pathname}`}catch{}r&&(n.onChildrenReady_[r]?n.onChildrenReady_[r].push((function(){return n.sendMessageCore(e.contentWindow,t)})):n.onChildrenReady_[r]=[function(){return n.sendMessageCore(e.contentWindow,t)}])}}};e.src?r():e.onload=r},e.prototype.sendMessageToParent=function(e){this.sendMessageCore(window.parent,e)},e.prototype.sendMessageCore=function(e,t){e?.postMessage(t,`*`)},e.prototype.handleMessage=function(e){if((0,i.K)(e)){if(function(e){return e.data.messageType===o.C.messagingInitialized}(e)){var t=e.data.data?.src;if(!t)return;this.childrenWithMessaging_.push(t),this.onChildrenReady_[t]&&this.onChildrenReady_[t].forEach((function(e){return e()}));return}r.Z.broadcastEvent(e.data.messageType,e.data.data)}},e.sharedInstance=new e,e}().sharedInstance},2727:function(e,t,n){var r;n.d(t,{C:function(){return r}}),function(e){e.answeredQuiz=`answeredQuiz`,e.backButtonClicked=`backButtonClicked`,e.clipSlideHidden=`clipSlideHidden`,e.resetEngagementUnitUI=`resetEngagementUnitUI`,e.eventTrackingOptionsUpdated=`eventTrackingOptionsUpdated`,e.messagingInitialized=`messagingInitialized`,e.pollsReceived=`pollsReceived`,e.shareButtonTapped=`shareButtonTapped`,e.votedPoll=`votedPoll`,e.playerControl=`playerControl`}(r||={})},6661:function(e,t,n){var r=n(7582),i=n(1462),a=n(956),o=n(2357),s=n(3914),c=n(4779),l=n(373),u=n(2434),d=n(8585);t.Z=function(e){function t(){var t=e.call(this)||this;return t.logTag=`DataStorageService`,s.Z.onEventTrackingOptionsUpdated=function(e){e.enableRemoteViewingStore||t.deleteStoredUserId(),s.Z.shouldStoreRecentStoryPlaybackMode()||c.Z.remove(c.d.recentStoryPlaybackMode)},t}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"userId",{get:function(){return!s.Z.eventTrackingOptions.enableFunctionalCookies||!s.Z.eventTrackingOptions.enablePersonalization||!s.Z.eventTrackingOptions.enableRemoteViewingStore?null:u.A?c.Z.get(c.d.userId)||null:c.Z.get(c.d.user)?.userId??null}
56,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eventUserId",{get:function(){return s.Z.eventTrackingOptions.enableFunctionalCookies&&s.Z.eventTrackingOptions.enableRemoteViewingStore?this.storedUserId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storedUserId",{get:function(){var e=c.Z.get(c.d.user);return e?e.userId:c.Z.get(c.d.userId)},enumerable:!1,configurable:!0}),t.prototype.ensureUserIdIsHashed=function(){return(0,r.mG)(this,void 0,void 0,(function(){var e;return(0,r.Jh)(this,(function(t){return u.A||c.Z.get(c.d.user)?[2,Promise.resolve()]:(e=c.Z.get(c.d.userId),[2,this.setUserId(e||o.i.newGuid())])}))}))},t.prototype.deleteStoredUserId=function(){c.Z.remove(c.d.user),c.Z.remove(c.d.userId)},t.prototype.setUserId=function(e){return(0,r.mG)(this,void 0,void 0,(function(){var t,n,i,a,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return t=c.Z.get(c.d.userId),u.A?(t&&t!==e&&this.resetUserData(),c.Z.add(c.d.userId,e),[2,Promise.resolve()]):(n=c.Z.get(c.d.user),e?[4,this.hashUserId_(e)]:[3,2]);case 1:return i=r.sent(),(t&&t!==e||n&&n.userId!==i)&&this.resetUserData(),a={userId:i},c.Z.add(c.d.user,a),c.Z.remove(c.d.userId),[2,Promise.resolve()];case 2:return(t&&t!==e||n&&n.userId!==e)&&this.resetUserData(),o={userId:e},c.Z.add(c.d.user,o),c.Z.remove(c.d.userId),[2,Promise.resolve()]}}))}))},t.prototype.hashUserId_=function(e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return[2,crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(e)).then((function(e){for(var t=[],n=new DataView(e),r=0;r<n.byteLength;r+=4)t.push(`00000000${n.getUint32(r).toString(16)}`.slice(-8));return t.join(``)}))]}))}))},Object.defineProperty(t.prototype,"apiKey",{get:function(){return this.apiKey_||c.Z.get(c.d.apiKey)},set:function(e){this.apiKey_=e,c.Z.add(c.d.apiKey,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"environment",{get:function(){return c.Z.get(c.d.environment)||i.q.production},set:function(e){c.Z.add(c.d.environment,e),l.Z.environment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"customInstanceHost",{get:function(){return c.Z.get(c.d.customInstanceHost)},set:function(e){c.Z.add(c.d.customInstanceHost,e?.replace(/\/$/,``))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"settings",{get:function(){return c.Z.get(c.d.settings)},set:function(e){c.Z.add(c.d.settings,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pollAnswerMap",{get:function(){return s.Z.isFunctionalFeatureEnabled(d.d.pollVotes)&&c.Z.get(c.d.pollAnswerMap)||{}},set:function(e){s.Z.isFunctionalFeatureEnabled(d.d.pollVotes)&&c.Z.add(c.d.pollAnswerMap,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polls",{get:function(){return c.Z.get(c.d.polls)||[]},set:function(e){c.Z.add(c.d.polls,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quizAnswerMap",{get:function(){return s.Z.isFunctionalFeatureEnabled(d.d.triviaQuizAnswers)&&c.Z.get(c.d.quizAnswerMap)||{}},set:function(e){s.Z.isFunctionalFeatureEnabled(d.d.triviaQuizAnswers)&&c.Z.add(c.d.quizAnswerMap,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quizAnsweredCorrectlyMap",{get:function(){return s.Z.isFunctionalFeatureEnabled(d.d.triviaQuizAnswers)&&c.Z.get(c.d.quizAnsweredCorrectlyMap)||{}},set:function(e){s.Z.isFunctionalFeatureEnabled(d.d.triviaQuizAnswers)&&c.Z.add(c.d.quizAnsweredCorrectlyMap,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quizzes",{get:function(){return c.Z.get(c.d.quizzes)||[]},set:function(e){c.Z.add(c.d.quizzes,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storiesReadMap",{get:function(){return s.Z.isFunctionalFeatureEnabled(d.d.pageReadStatus)&&c.Z.get(c.d.storiesReadMap)||{}},set:function(e){s.Z.isFunctionalFeatureEnabled(d.d.pageReadStatus)&&c.Z.add(c.d.storiesReadMap,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recentStoryPlaybackMode",{get:function(){return s.Z.shouldStoreRecentStoryPlaybackMode()&&c.Z.get(c.d.recentStoryPlaybackMode)||{}},set:function(e){s.Z.shouldStoreRecentStoryPlaybackMode()&&c.Z.add(c.d.recentStoryPlaybackMode,e)}
56,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clipsViewed",{get:function(){return s.Z.isFunctionalFeatureEnabled(d.d.clipViewedStatus)&&c.Z.get(c.d.clipsViewed)||[]},set:function(e){s.Z.isFunctionalFeatureEnabled(d.d.clipViewedStatus)&&c.Z.add(c.d.clipsViewed,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"forceShowShareButton",{get:function(){return c.Z.get(c.d.forceShowShareButton)||!1},set:function(e){c.Z.add(c.d.forceShowShareButton,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShownInstructions",{get:function(){return!!c.Z.get(c.d.hasShownInstructions)},set:function(e){c.Z.add(c.d.hasShownInstructions,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clipLikes",{get:function(){return s.Z.isFunctionalFeatureEnabled(d.d.clipLikes)&&c.Z.get(c.d.clipLikes)||{}},set:function(e){s.Z.isFunctionalFeatureEnabled(d.d.clipLikes)&&c.Z.add(c.d.clipLikes,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clipShares",{get:function(){return s.Z.isFunctionalFeatureEnabled(d.d.clipShares)&&c.Z.get(c.d.clipShares)||{}},set:function(e){s.Z.isFunctionalFeatureEnabled(d.d.clipShares)&&c.Z.add(c.d.clipShares,e)},enumerable:!1,configurable:!0}),t.prototype.resetUserData=function(){c.Z.add(c.d.hasShownInstructions,!1),c.Z.add(c.d.polls,[]),c.Z.add(c.d.quizzes,[]),c.Z.add(c.d.forceShowShareButton,!1),s.Z.eventTrackingOptions.enablePersonalization&&c.Z.add(c.d.userAttributes,{}),s.Z.shouldStoreRecentStoryPlaybackMode()&&c.Z.add(c.d.recentStoryPlaybackMode,{}),s.Z.eventTrackingOptions.enableRemoteViewingStore&&(c.Z.add(c.d.clipLikes,{}),c.Z.add(c.d.clipShares,{}),c.Z.add(c.d.clipsViewed,[]),c.Z.add(c.d.pollAnswerMap,{}),c.Z.add(c.d.quizAnswerMap,{}),c.Z.add(c.d.quizAnsweredCorrectlyMap,{}),c.Z.add(c.d.storiesReadMap,{}))},t.sharedInstance=new t,t}(a.b).sharedInstance},4779:function(e,t,n){n.d(t,{d:function(){return r},Z:function(){return u}});var r,i=n(7582),a=n(956),o=n(3914),s=function(e){this.key=e.key,this.value=e.value},c=n(8585);(function(e){e.apiKey=`Storyteller.apiKey`,e.ampEnvironment=`Storyteller.ampEnvironment`,e.ampVersion=`Storyteller.ampVersion`,e.clipLikes=`Storyteller.clipLikes`,e.clipShares=`Storyteller.clipShares`,e.clipsViewed=`Storyteller.clipsViewed`,e.customEnvironment=`Storyteller.customEnvironment`,e.customInstanceHost=`Storyteller.customInstanceHost`,e.environment=`Storyteller.environment`,e.forceShowShareButton=`Storyteller.forceShowShareButton`,e.hasShownInstructions=`Storyteller.hasShownInstructions`,e.pollAnswerMap=`Storyteller.pollAnswerMap`,e.polls=`Storyteller.polls`,e.quizAnswerMap=`Storyteller.quizAnswerMap`,e.quizAnsweredCorrectlyMap=`Storyteller.quizAnsweredCorrectlyMap`,e.quizzes=`Storyteller.quizzes`,e.recentStoryPlaybackMode=`Storyteller.recentStoryPlaybackMode`,e.settings=`Storyteller.settings`,e.storiesReadMap=`Storyteller.storiesReadMap`,e.user=`Storyteller.user`,e.userAttributes=`Storyteller.userAttributesStorage`,e.userId=`Storyteller.userId`,e.webSdkEnvironment=`Storyteller.webSdkEnvironment`,e.webSdkVersion=`Storyteller.webSdkVersion`})(r||={});var l=[r.apiKey,r.customInstanceHost,r.quizAnsweredCorrectlyMap,r.quizzes,r.polls,r.settings],u=function(e){function t(){var t=e.call(this)||this;t.logTag=`LocalStorageService`,t.storage_={};try{t.localStorageSupported=typeof window.localStorage!==void 0&&window.localStorage!==null}catch{t.localStorageSupported=!1}return o.Z.onEventTrackingOptionsUpdated=t.onEventTrackingOptionsUpdated_.bind(t),t}return(0,i.ZT)(t,e),t.prototype.hasItem=function(e){return this.localStorageSupported?!(!this.shouldValueHaveFallback_(e)||!this.isFallbackValueDefined_(e))||this.isLocalStorageValueDefined_(e):!!this.storage_[e]},t.prototype.add=function(e,t){this.canKeyBeStored_(e)&&(this.localStorageSupported?(this.shouldValueHaveFallback_(e)&&(this.storage_[e]=t),localStorage.setItem(e,JSON.stringify(t))):this.storage_[e]=t)},t.prototype.getAllItems=function(){for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);if(n!==null){var r=localStorage.getItem(n);e.push(new s({key:n,value:r}))}}return e},t.prototype.getAllValues=function(){for(var e=[],t=0;t<localStorage.length;t++){var n=localStorage.key(t);if(n!==null){var r=localStorage.getItem(n);e.push(r)}}return e},t.prototype.get=function(e){if(!this.localStorageSupported)return this.storage_[e]||null;if(this.shouldValueHaveFallback_(e)&&this.isFallbackValueDefined_(e))return this.restoreIfUnavailable_(e),this.storage_[e];var t=localStorage.getItem(e);return t===null?t:JSON.parse(t)},t.prototype.remove=function(e){this.localStorageSupported?(this.shouldValueHaveFallback_(e)&&(this.storage_[e]=void 0),localStorage.removeItem(e)):this.storage_[e]=void 0},t.prototype.clear=function(){this.localStorageSupported&&localStorage.clear(),this.storage_={}},t.prototype.canKeyBeStored_=function(e){return o.Z.eventTrackingOptions.enableFunctionalCookies||l.includes(e)},t.prototype.isFallbackValueDefined_=function(e){return this.storage_[e]!==void 0&&this.storage_[e]!==null},t.prototype.isLocalStorageValueDefined_=function(e){return localStorage.getItem(e)!==null},t.prototype.onEventTrackingOptionsUpdated_=function(e,t){if(!e.enableFunctionalCookies)for(var n=Object.values(r).filter((function(e){return!l.includes(e)})),i=0,a=n;i<a.length;i++){var o=a[i];this.remove(o)}e.enablePersonalization||this.remove(r.userAttributes),t(c.d.clipLikes)||this.remove(r.clipLikes),t(c.d.clipShares)||this.remove(r.clipShares),t(c.d.clipViewedStatus)||this.remove(r.clipsViewed),t(c.d.pageReadStatus)||this.remove(r.storiesReadMap),t(c.d.pollVotes)||this.remove(r.pollAnswerMap),t(c.d.triviaQuizAnswers)||(this.remove(r.quizAnswerMap),this.remove(r.quizAnsweredCorrectlyMap))},t.prototype.restoreIfUnavailable_=function(e){this.localStorageSupported&&!this.isLocalStorageValueDefined_(e)&&this.isFallbackValueDefined_(e)&&localStorage.setItem(e,JSON.stringify(this.storage_[e]))},t.prototype.shouldValueHaveFallback_=function(e){return[r.settings,r.storiesReadMap,r.userId].includes(e)},t.sharedInstance=new t,t}(a.b).sharedInstance},8585:function(e,t,n){var r;n.d(t,{d:function(){return r}}),function(e){e.all=`all`,e.clipLikes=`clipLikes`,e.clipShares=`clipShares`,e.clipViewedStatus=`clipViewedStatus`,e.pageReadStatus=`pageReadStatus`,e.pollVotes=`pollVotes`,e.triviaQuizAnswers=`triviaQuizAnswers`}(r||={})},3914:function(e,t,n){var r=n(7582),i=n(956),a=n(7112),o=n(647),s=n(8585);t.Z=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`PrivacyService`,t.disabledFunctionalFeatures_=[],t.enableAdTracking_=!0,t.enableFullVideoAnalytics_=!0,t.enableFunctionalCookies_=!0,t.enablePersonalization_=!0,t.enableRemoteViewingStore_=!0,t.enableStorytellerTracking_=!0,t.enableUserActivityTracking_=!0,t.onEventTrackingOptionsUpdated_=[],t}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"eventTrackingOptions",{get:function(){return{disabledFunctionalFeatures:this.disabledFunctionalFeatures_,enableAdTracking:this.enableAdTracking_,enableFullVideoAnalytics:this.enableFullVideoAnalytics_,enableFunctionalCookies:this.enableFunctionalCookies_,enablePersonalization:!1!==this.enableFunctionalCookies_&&this.enablePersonalization_,enableRemoteViewingStore:this.enableRemoteViewingStore_,enableStorytellerTracking:!1!==this.enableFunctionalCookies_&&this.enableStorytellerTracking_,enableUserActivityTracking:this.enableUserActivityTracking_}}
56,set:function(e){var t,n,r,i,s,c,l;this.disabledFunctionalFeatures_=e.disabledFunctionalFeatures??[],this.enableAdTracking_=(t=e.enableAdTracking)==null||t,this.enableFullVideoAnalytics_=(n=e.enableFullVideoAnalytics)==null||n,this.enableFunctionalCookies_=(r=e.enableFunctionalCookies)==null||r,this.enablePersonalization_=(i=e.enablePersonalization)==null||i,this.enableRemoteViewingStore_=(s=e.enableRemoteViewingStore)==null||s,this.enableStorytellerTracking_=(c=e.enableStorytellerTracking)==null||c,this.enableUserActivityTracking_=(l=e.enableUserActivityTracking)==null||l;for(var u=0,d=this.onEventTrackingOptionsUpdated_;u<d.length;u++)(0,d[u])(this.eventTrackingOptions,this.isFunctionalFeatureEnabled.bind(this));a.Z.broadcastEvent(o._.eventTrackingOptionsUpdated,this.eventTrackingOptions)},enumerable:!1,configurable:!0}),t.prototype.shouldStoreRecentStoryPlaybackMode=function(){var e=this.enableFunctionalCookies_&&this.enableStorytellerTracking_,t=this.isFunctionalFeatureEnabled(s.d.pageReadStatus)||this.isFunctionalFeatureEnabled(s.d.pollVotes)||this.isFunctionalFeatureEnabled(s.d.triviaQuizAnswers);return e||t},Object.defineProperty(t.prototype,"onEventTrackingOptionsUpdated",{set:function(e){this.onEventTrackingOptionsUpdated_.push(e)},enumerable:!1,configurable:!0}),t.prototype.isFunctionalFeatureEnabled=function(e){return!this.disabledFunctionalFeatures_.includes(e)&&!this.disabledFunctionalFeatures_.includes(s.d.all)},t.sharedInstance=new t,t}(i.b).sharedInstance},9283:function(e,t,n){var r=n(7582),i=n(6661),a=n(3914),o=n(7112),s=n(956),c=n(8936),l=n(8671),u=n(647),d=n(8585);t.Z=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`UserDataService`,t._defaultStoryReadState={status:c.N.unread,initialPage:0,pagesRead:[]},t}return(0,r.ZT)(t,e),t.prototype.initialiseReadStateForStories=function(e){var t=this;e.forEach((function(e){t.checkStoryReadStatus(e)}))},t.prototype.initialiseShareStateForClips=function(e){var t=i.Z.clipShares;e.forEach((function(e){t.hasOwnProperty(e.id)||(t[e.id]=e.shareCount)})),i.Z.clipShares=t},t.prototype.setPageViewed=function(e){var t,n=e.page,s=e.story;if(a.Z.isFunctionalFeatureEnabled(d.d.pageReadStatus)){var l=i.Z.storiesReadMap[s.id]||this._defaultStoryReadState,f=l.pagesRead.includes(n.id)?l.pagesRead:(0,r.ev)((0,r.ev)([],l.pagesRead,!0),[n.id],!1),p=this.getStoryReadStatus_(s,f),m=0;if(p===c.N.unread){var h=s.pages.findIndex((function(e){return e.id===n.id})),g=s.pages.findIndex((function(e,t){return!f.includes(e.id)&&t>h}));if(g>-1)m=g;else{var _=s.pages.findIndex((function(e){return!f.includes(e.id)}
56));_>-1&&(m=_)}}var v=(0,r.pi)((0,r.pi)({},l),{status:p,initialPage:m,pagesRead:f});i.Z.storiesReadMap=(0,r.pi)((0,r.pi)({},i.Z.storiesReadMap),((t={})[s.id]=v,t)),o.Z.broadcastEvent(u._.storyStatusUpdate,{storyId:s.id,newStoryReadState:v})}},t.prototype.getStoryReadState=function(e){return e&&i.Z.storiesReadMap[e]?i.Z.storiesReadMap[e]:this._defaultStoryReadState},t.prototype.removeStoryQuizResultPage=function(e,t){var n,a=(0,r.pi)({},this.getStoryReadState(e.id)),s=e.pages.findIndex((function(e){return e.id===t}));a.initialPage===s&&--a.initialPage,i.Z.storiesReadMap=(0,r.pi)((0,r.pi)({},i.Z.storiesReadMap),((n={})[e.id]=a,n)),o.Z.broadcastEvent(u._.storyStatusUpdate,{storyId:e.id,newStoryReadState:a})},t.prototype.setClipViewed=function(e){var t=new Set((0,r.ev)((0,r.ev)([],i.Z.clipsViewed,!0),[e],!1));i.Z.clipsViewed=Array.from(t)},t.prototype.setClipShared=function(e){var t,n=i.Z.clipShares[e.id]??e.shareCount;i.Z.clipShares=(0,r.pi)((0,r.pi)({},i.Z.clipShares),((t={})[e.id]=n+1,t))},t.prototype.getClipShares=function(e){var t;return a.Z.isFunctionalFeatureEnabled(d.d.clipShares)&&(t=i.Z.clipShares[e.id])!=null?t:e.shareCount},t.prototype.getClipViewedState=function(e){return e&&i.Z.clipsViewed.includes(e)?c.N.read:c.N.unread},t.prototype.getStoryPlaybackMode=function(e){return i.Z.recentStoryPlaybackMode[e]?i.Z.recentStoryPlaybackMode[e]:l.e.list},t.prototype.setStoryPlaybackMode=function(e,t){var n;i.Z.recentStoryPlaybackMode=((n={})[e]=t,n)},t.prototype.checkStoryReadStatus=function(e){var t,n=this._defaultStoryReadState;i.Z.storiesReadMap.hasOwnProperty(e.id)&&(n=(0,r.pi)((0,r.pi)((0,r.pi)({},this._defaultStoryReadState),i.Z.storiesReadMap[e.id]),{status:this.getStoryReadStatus_(e,i.Z.storiesReadMap[e.id].pagesRead)})),i.Z.storiesReadMap=(0,r.pi)((0,r.pi)({},i.Z.storiesReadMap),((t={})[e.id]=n,t))},t.prototype.getStoryReadStatus_=function(e,t){t===void 0&&(t=[]);for(var n=!0,r=e.pages,i=0;i<r.length;i++){var o=r[i],s=t.includes(o.id),l=o.type===`triviaQuiz`&&!o.questionId&&!a.Z.isFunctionalFeatureEnabled(d.d.triviaQuizAnswers);if(!s&&!l){n=!1;break}}return n?c.N.read:c.N.unread},t.sharedInstance=new t,t}(s.b).sharedInstance},4883:function(e,t,n){n.d(t,{F:function(){return a},g:function(){return r}});var r,i=n(8705);(function(e){e.any=`any`,e.pixel=`pixel`,e.textAlign=`alignment`,e.textCase=`textCase`})(r||={});var a=function(e,t){switch(t){case r.pixel:return(0,i.B5)(e);case r.textAlign:return(0,i.iD)(e);case r.textCase:return(0,i.I4)(e);default:return e}}},9984:function(e,t,n){n.d(t,{E:function(){return a},P:function(){return i}}),n(8660);var r=n(4883),i=function(e,t){return t===void 0&&(t=r.g.any),function(n,r){Reflect.defineMetadata(`cssVariableName`,e,n,r),Reflect.defineMetadata(`cssVariableType`,t,n,r)}},a=function(e,t){return{name:Reflect.getMetadata(`cssVariableName`,e,t),type:Reflect.getMetadata(`cssVariableType`,e,t)}}},8199:function(e,t,n){n.d(t,{p:function(){return i},t:function(){return r}});var r=function(e){return function(t,n){Reflect.defineMetadata(`fallbackFun`,e,t,n)}},i=function(e,t,n,r){var i=Reflect.getMetadata(`fallbackFun`,e,t)(n);return r&&i.dark||i.default}},6356:function(e,t,n){var r;n.d(t,{Ux:function(){return a},m5:function(){return r},sF:function(){return o}}),function(e){e.ltr=`ltr`,e.rtl=`rtl`}(r||={});var i=function(e){return e===r.ltr||e===r.rtl},a=function(e){if(typeof window>`u`||typeof document>`u`)return r.ltr;for(var t=e;t;){var n=getComputedStyle(t).direction;if(i(n))return n;t=t.parentElement}if(document.body){var a=getComputedStyle(document.body).direction;if(i(a))return a}return r.ltr},o=function(e){return a(e)}},8705:function(e,t,n){n.d(t,{B5:function(){return l},Gz:function(){return f},I4:function(){return d},b1:function(){return p},iD:function(){return u},qK:function(){return c},yG:function(){return s}});var r=n(7582),i=n(942),a=n(3089),o=n(6356),s=function(e){return`--storyteller-${e}`},c=function(e){return Object.keys(e).reduce((function(t,n){var i;return(0,r.pi)((0,r.pi)({},t),((i={})[s(n)]=e[n],i))}),{})},l=function(e){return`${e}px`},u=function(e){switch(e){case i.v.center:return`center`;case i.v.start:return(0,o.Ux)()===o.m5.ltr?`left`:`right`;case i.v.end:return(0,o.Ux)()===o.m5.ltr?`right`:`left`}},d=function(e){switch(e){case a.q.default:return`none`;case a.q.upper:return`uppercase`;case a.q.lower:return`lowercase`}},f=function(e,t){var n=e.replace(`#`,``);return n.length>6&&(n=n.substr(0,6)),`#`+n+Math.round(255*Math.min(Math.max(t||1,0),1)).toString(16).toUpperCase()},p=function(){return(`ontouchstart`in window||navigator.maxTouchPoints>0)&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},642:function(e,t,n){n.d(t,{v:function(){return r}});var r=(0,n(9748).createContext)(null)},1508:function(e,t,n){n.d(t,{V:function(){return a}});var r=n(5754),i=n(8199),a=function(){function e(e,t){t===void 0&&(t=null),this.isDark=e;var n=this.isDark?t?.dark:t?.light;this.theme=new r.W(n)}return e.prototype.build=function(){return this.setFallbacks(this.theme),this.theme.isDark=this.isDark,this.theme},e.prototype.setFallbacks=function(e){var t=this;Object.keys(e).forEach((function(n){typeof e[n]==`object`&&e[n]!==null?t.setFallbacks(e[n]):Reflect.hasMetadata(`fallbackFun`,e,n)&&!e[n]&&(e[n]=(0,i.p)(e,n,t.theme,t.isDark))}))},e}()},6940:function(e,t,n){n.d(t,{G:function(){return a},Z:function(){return g}});var r,i=n(7582);n(8660),(function(e){e.light=`light`,e.dark=`dark`})(r||={});var a,o=n(7814),s=n(4539),c=n(2434),l=n(956),u=n(4883),d=n(9984),f=n(8705),p=n(9705);(function(e){e.Clips=`clips`,e.Stories=`stories`,e.None=`none`})(a||={});var m=[`colors`,`font`,`primitives`,`player`,`buttons`,`instructions`,`engagementUnits`],h=[`storyTiles.circularTile.liveChip.unreadBackgroun
56dColor`,`storyTiles.circularTile.liveChip.unreadTextColor`,`storyTiles.rectangularTile.liveChip.unreadBackgroundColor`,`storyTiles.rectangularTile.liveChip.unreadTextColor`],g=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`ThemeService`,t}return(0,i.ZT)(t,e),Object.defineProperty(t.prototype,"defaultTheme",{get:function(){return t._defaultTheme},enumerable:!1,configurable:!0}),t.prototype.getStyleElContentRecursive_=function(e,t,n,r,o){var s=this;return r===void 0&&(r=[]),o===void 0&&(o=a.None),Object.keys(t).forEach((function(a){if(s.shouldIncludeKey(a,r,o)){if(typeof t[a]==`object`&&t[a]!==null)n=s.getStyleElContentRecursive_(e,t[a],n,(0,i.ev)((0,i.ev)([],r,!0),[a],!1),o);else if(Reflect.hasMetadata(`cssVariableName`,t,a)){var c=t[a];if(c!==null){var l=(0,d.E)(t,a),p=l.name,m=l.type,h=(0,u.F)(c,m),g=`${(0,f.yG)(p)}: ${h};`;n=`${n}
57${g}`}}}})),n},t.prototype.setDocumentStyle=function(e){var t=e.element,n=e.id,r=e.playerType,i=r===void 0?a.None:r,o=e.selector,s=e.theme,c=`storyteller-${n}`,l=t.querySelector(`#${c}`);l||((l=document.createElement(`style`)).id=c);var u=this.getStyleElContentRecursive_(s,s,``,[],i);l.innerHTML=`
58${o} {
59  ${u}
60  ${(0,p.R1)()}
61}
62/*@ sourceURL=${c}.css */`;var d=t;if(t.tagName===`HTML`){var f=t.querySelector(`head`);f&&(d=f)}d.prepend(l)},t.prototype.clone=function(e){var t=new o.V;return this.copyProperties(t,e,[]),t},t.prototype.merge=function(e,t){var n=this.clone(e);return this.mergeProperties(n,t,[]),n},t.prototype.copyProperties=function(e,t,n){var r=this;n===void 0&&(n=[]),t&&Object.keys(t).forEach((function(a){typeof t[a]==`object`&&t[a]!==null?r.copyProperties(e,t[a],(0,i.ev)((0,i.ev)([],n,!0),[a],!1)):t.hasOwnProperty(a)&&r.setNestedThemeProperty(e,t[a],(0,i.ev)((0,i.ev)([],n,!0),[a],!1))}))},t.prototype.mergeProperties=function(e,t,n,r){var o=this;n===void 0&&(n=[]),r===void 0&&(r=a.None),Object.keys(t).forEach((function(a){o.shouldIncludeKey(a,n,r)&&(typeof t[a]==`object`&&t[a]!==null?o.mergeProperties(e,t[a],(0,i.ev)((0,i.ev)([],n,!0),[a],!1),r):t.hasOwnProperty(a)&&t[a]!==o.getNestedThemeProperty(o.defaultTheme,(0,i.ev)((0,i.ev)([],n,!0),[a],!1))&&o.setNestedThemeProperty(e,t[a],(0,i.ev)((0,i.ev)([],n,!0),[a],!1)))}))},t.prototype.toSerializableTheme=function(e,t){t===void 0&&(t=a.None);var n={};return this.getNonDefaultProps(n,e,[],t),n},t.prototype.getNonDefaultProps=function(e,t,n,r){var o=this;n===void 0&&(n=[]),r===void 0&&(r=a.None),Object.keys(t).forEach((function(a){typeof t[a]==`object`&&t[a]!==null?o.mergeProperties(e,t[a],(0,i.ev)((0,i.ev)([],n,!0),[a],!1),r):t.hasOwnProperty(a)&&t[a]!==o.getNestedThemeProperty(o.defaultTheme,(0,i.ev)((0,i.ev)([],n,!0),[a],!1))&&o.setNestedThemeProperty(e,t[a],(0,i.ev)((0,i.ev)([],n,!0),[a],!1))}))},t.prototype.shouldIncludeKey=function(e,t,n){if(n===a.None||t.length===0)return!0;var r=function(e){return m.includes(e)};if(r(e)&&t.length<=1||r(t[0])||t.length>1&&r(t[1]))return!0;var o=(0,i.ev)((0,i.ev)([],t,!0),[e],!1).filter((function(e,t){return t>0||e!==`light`&&e!==`dark`}));return!!h.some((function(e){var t=e.split(`.`);return o.every((function(e,n){return e===t[n]}))}))},t.prototype.setNestedThemeProperty=function(e,t,n){var r=n[0],i=n.slice(1);i.length?(e[r]===void 0&&(e[r]={}),this.setNestedThemeProperty(e[r],t,i)):e[r]=t},t.prototype.getNestedThemeProperty=function(e,t){var n=t[0],r=t.slice(1);return r.length?this.getNestedThemeProperty(e[n],r):e[n]},t.prototype.prefersDarkMode=function(e){switch(e){case s.V.auto:return this.getColorScheme()===r.dark;case s.V.dark:return!0;case s.V.light:return!1}},t.prototype.getColorScheme=function(){var e=r.light;return!c.A&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches&&(e=r.dark),e},t.sharedInstance=new t,t._defaultTheme=new o.V,t}(l.b).sharedInstance},16:function(e,t,n){n.d(t,{F:function(){return o}});var r=n(9748),i=n(5754),a=n(642),o=function(){return(0,r.useContext)(a.v)||new i.W}},3916:function(e,t,n){n.d(t,{i:function(){return i}});var r=n(7068),i=function(e){return new CustomEvent(r.n.engagementUnitAnswered,{detail:e,bubbles:!0,composed:!0})}},109:function(e,t,n){n.d(t,{Z:function(){return U}});var r,i=n(9748),a=n(6661),o=n(7582);(function(e){e[e.text=0]=`text`,e[e.image=1]=`image`})(r||={});var s=n(7409),c=n(2408),l=n(2727),u=n(1114),d=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.messageType=l.C.answeredQuiz,a.data={quiz:t,answerId:n,questionId:r,score:i},a}return(0,o.ZT)(t,e),t}(u.w),f=n(4184),p=n.n(f),m=function(){return i.createElement(`svg`,{width:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i.createElement(`path`,{d:`M12 0C5.37219 0 0 5.37281 0 12C0 18.6272 5.37281 24 12 24C18.6272 24 24 18.6272 24 12C24 5.37281 18.6272 0 12 0ZM17.4253 10.4453L11.5274 16.3432C11.247 16.6235 10.8792 16.764 10.5121 16.764C10.145 16.764 9.77721 16.6235 9.49686 16.3432L6.40929 13.2556C5.84859 12.6949 5.84859 11.7858 6.40929 11.2245C6.96998 10.6638 7.87909 10.6638 8.44041 11.2245L10.5127 13.2968L15.3954 8.41417C15.9561 7.85348 16.8652 7.85348 17.4265 8.41417C17.986 8.97487 17.986 9.88397 17.4253 10.4453Z`,fill:`white`}))},h=function(){return i.createElement(`svg`,{width:`100%`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i.createElement(`path`,{d:`M12 0C5.37281 0 0 5.37281 0 12C0 18.6272 5.37281 24 12 24C18.6272 24 24 18.6272 24 12C24 5.37281 18.6278 0 12 0ZM16.3432 14.3121C16.9039 14.8728 16.9039 15.7819 16.3432 16.3432C16.0629 16.6235 15.6951 16.764 15.328 16.764C14.9608 16.764 14.5931 16.6235 14.3127 16.3432L12.0006 14.0311L9.68854 16.3432C9.40819 16.6235 9.04043 16.764 8.67329 16.764C8.30553 16.764 7.93839 16.6235 7.65805 16.3432C7.09735 15.7825 7.09735 14.8734 7.65805 14.3121L9.97013 12L7.65805 9.68791C7.09735 9.12722 7.09735 8.21812 7.65805 7.6568C8.21874 7.0961 9.12847 7.0961 9.68916 7.6568L12.0012 9.96889L14.3133 7.6568C14.874 7.0961 15.7831 7.0961 16.3444 7.6568C16.9051 8.21749 16.9051 9.12659 16.3444 9.68791L14.0324 12L16.3432 14.3121Z`,fill:`white`}))},g=function(e){var t=e.answer,n=t.answer,r=t.id,a=t.isCorrect,o=e.hasAnswered,s=e.selected,c=e.handleAnswer;return i.createElement(`button`,{className:p()(`textQuizAnswer`,{answeredCorrectly:o&&a,answeredIncorrectly:o&&s&&!a}),onClick:c(r),role:`button`},i.createElement(`span`,{className:p()(`answerText`,{answerTextAnswered:o&&(a||s&&!a)})},n),i.createElement(`span`,{className:`icon`},o&&a?i.createElement(m,null):i.createElement(h,null)))},_=function(e){var t=e.question,n=e.handleQuizAnswer,r=e.answered,a=e.answerId,o=e.totalQuestions,s=t.sortOrder+1;return i.createElement(`div`,{className:p()(`textQuiz`,`quizOverlay`)},t.answers.map((function(e,o){return i.createElement(g,{answer:e,question:t,handleAnswer:n,hasAnswered:r,selected:a===e.id,key:o})})),i.createElement(`span`,{className:`questionNumber`},`Question `,i.createElement(`b`,null,`${s} out of ${o}`)))},v=n(7068),y=n(7112),b=n(647),x=n(8080),S=n(3916),C=n(3495),w=n(4388),T=typeof window<`u`&&window.parent===window,E=n(8585),D=function(){return i.createElement(`div`,null)},O=function(e){return r.text===r.text?i.createElement(_,(0,o.pi)({},e)):i.createElement(D,null)},k=function(e){var t=e.quiz,n=e.question,r=e.totalQuestions,u=e.engagementUnitId,f=e.pageId,p=new URLSearchParams(window.location.search).get(`storyId`)||``,m=(0,i.useState)(a.Z.quizAnswerMap?.[p]?.[n.id]),h=m[0],g=m[1],_=(0,i.useRef)(document.getElementById(f)),D=!!h,k=function(e,r){return r===void 0&&(r=w.T.tap),function(){var i,m,h,v,x;if(D)c.Z.sendMessageToParent(new C.z({operation:`go-to-next-page`,openedReason:r}));else{var w=n.answers.find((function(t){return t.id===e}));if(w){var E=a.Z.quizAnsweredCorrectlyMap?.[p]?.[u]??0;w.isCorrect&&(E+=1,a.Z.quizAnsweredCorrectlyMap=(0,o.pi)((0,o.pi)({},a.Z.quizAnsweredCorrectlyMap),((i={})[p]=((m={})[u]=E,m),i)),y.Z.broadcastEvent(b._.questionAnsweredCorrectly,u)),a.Z.quizAnswerMap=(0,o.pi)((0,o.pi)({},a.Z.quizAnswerMap),((h={})[p]=(0,o.pi)((0,o.pi)({},a.Z.quizAnswerMap[p]),((v={})[n.id]=w.id,v)),h));var O=t.questions.indexOf(n)===t.questions.length-1;c.Z.sendMessageToParent(new d(t,w.id,n.id,O?E:void 0));var k=(0,S.i)({answerId:w.id,quizId:t.id,quizTitle:t.title,questionId:n.id,quizScore:O?E:void 0,pageId:f,pageType:s.G.triviaQuiz});(x=_.current)==null||x.dispatchEvent(k),T&&y.Z.broadcastEvent(l.C.answeredQuiz,{quiz:t,question:n.id,answer:w.id}),g(w.id)}}}};return(0,x.Z)(v.n.storyPageProgress,(function(e){var t=e.detail.progress,r=n.answers.find((function(e){return!e.isCorrect}));r&&t>.85&&t<1&&!D&&k(r?.id,w.T.automaticPlayback)()}),_),(0,x.Z)(v.n.storyPageSwitch,(function(e){if(e.detail.direction===`next`){var t=n.answers.find((function(e){return!e.isCorrect}));t&&k(t?.id,w.T.automaticPlayback)}}),_),(0,i.useEffect)((function(){y.Z.on(l.C.resetEngagementUnitUI,(function(e){var t=e.questionOrEngagementUnitId,r=e.type;(!t||t===n.id)&&r.includes(E.d.triviaQuizAnswers)&&g(null)}))}),[n.id]),i.createElement(`div`,null,i.createElement(`div`,{className:`pageOverlay`},i.createElement(O,{question:n,handleQuizAnswer:k,answered:D,answerId:h,totalQuestions:r})))},A=`pageOverlay-l4wCBF`,j=`resultsOverlay-Xowxan`,M=`quizResult-T1N1qL`,N=`score-9J0DTU`,P=`shareDisabled-nLxpOW`,F=`shareButton-TgTt3E`,I=`shareButtonText-Z713Mn`,L=function(e){var t=e.handleClick;return i.createElement(`button`,{className:F,onClick:function(){return t()},role:`button`},i.createElement(`span`,{className:I},`Share Your Result`))},R=function(e){function t(t,n,r){var i=e.call(this)||this;return i.messageType=l.C.shareButtonTapped,i.data={score:t,quizId:n,title:r},i}return(0,o.ZT)(t,e),t}(u.w),z=function(e){var t,n=e.score,r=e.totalQuestions,o=e.engagementUnitId,s=e.showShareButton,l=e.forceShowShareButton,u=a.Z.quizzes.filter((function(e){return e.engagementUnitId===o}))[0],d=u.id,f=u.title,m=!T&&(s&&!!window.navigator.share||l);return i.createElement(`div`,null,i.createElement(`div`,{className:A},i.createElement(`div`,{className:p()(M,j)},i.createElement(`span`,{className:p()(N,(t={},t[P]=!m,t))},`${n}/${r}`),m&&i.createElement(L,{handleClick:function(){c.Z.sendMessageToParent(new R(n,d,f))}}))))},B=n(1508),V=n(6940),H=n(2173),U=function(){function e(){this.calcTotalQuestions=function(e){return a.Z.quizzes.filter((function(t){return t.engagementUnitId===e})).map((function(e){return e.questions.length}))[0]}}return e.prototype.getGridLayer=function(e){return document.querySelector(`amp-story-grid-layer[id="${e}"]`)},e.prototype.renderQuizPage=function(e,t){var n=this,r=new B.V(V.Z.prefersDarkMode(H.Z.uiStyle),H.Z.theme).build();if(e){var i=e.questions.length;t.forEach((function(t){if(t.questionId){var o=e.questions.find((function(e){return e.id===t.questionId}));return o?n.renderQuestion(e,o,i,t.engagementUnitId,t.pageId):void 0}var s=t.engagementUnitId;if(i)return n.renderResult(s,i,r.player.showShareButton&&!r.player.disableUrls,a.Z.forceShowShareButton)}))}y.Z.on(b._.questionAnsweredCorrectly,(function(e){return n.renderResult(e,n.calcTotalQuestions(e),r.player.showShareButton&&!r.player.disableUrls,a.Z.forceShowShareButton)}))},e.prototype.renderQuestion=function(e,t,n,r,a){var o=this.getGridLayer(t.id);o&&i.render(i.createElement(k,{quiz:e,question:t,totalQuestions:n,engagementUnitId:r,pageId:a}),o)},e.prototype.renderResult=function(e,t,n,r){r===void 0&&(r=!1);var a=this.getGridLayer(e),o=this.getScore(e);a&&i.render(i.createElement(z,{score:o,totalQuestions:t,engagementUnitId:e,showShareButton:n,forceShowShareButton:r}),a)},e.prototype.getScore=function(e){var t=new URLSearchParams(window.location.search).get(`storyId`)||``;return(a.Z.quizAnsweredCorrectlyMap?.[t]?.[e]||0)??0},e.prototype.clearQuizData=function(){a.Z.quizAnsweredCorrectlyMap={},a.Z.quizAnswerMap={}},e.sharedInstance=new e,e}().sharedInstance},5620:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(7582),i=n(2385),a=n(6661),o=n(956),s=n(3441),c=n(355),l=n(5690),u=function(e){function t(t){var n=e.call(this)||this;return n.shouldPersonalize=!1,n.endpoint=`triviaQuizzes`,n.method=c.w.get,n.engagementUnits=t,n}return(0,r.ZT)(t,e),t.prototype.buildEndpoint=function(){var e=new URLSearchParams;
62return this.engagementUnits.forEach((function(t){return e.append(`engagementUnits`,t)})),`${this.endpoint}?${e.toString()}&${l.Z.parseUserAttributesToQueryStringAlphabetically()}`},t}(s.I),d=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`QuizzesApiService`,t}return(0,r.ZT)(t,e),t.prototype.loadQuizzes=function(e){return(0,r.mG)(this,void 0,void 0,(function(){var t,n;return(0,r.Jh)(this,(function(o){switch(o.label){case 0:if(!e.engagementUnits.length)return[2,[]];t=new u(e.engagementUnits),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i.Z.executeCommand(t)];case 2:return(n=o.sent())&&(a.Z.quizzes.some((function(e){return e.engagementUnitId===n[0].engagementUnitId}))||(a.Z.quizzes=(0,r.ev)((0,r.ev)([],a.Z.quizzes,!0),n,!0))),[2,n];case 3:return o.sent(),[2,null];case 4:return[2]}}))}))},t.sharedInstance=new t,t}(o.b).sharedInstance},5230:function(e,t,n){n.d(t,{Bp:function(){return c},Cb:function(){return o},y3:function(){return l}});var r=n(7582),i=n(6595),a=n(956),o=`storyteller-player-`,s=function(e){function t(t){var n=e.call(this)||this;return n.logTag=`ListViewService`,n.isBasenameBasedOnContent_=!1,n.isDisabled_=!1,n.loadingState_=i.G.Idle,n.urlsDisabled_=!1,n.onLoaded_=[],n.onDisabledStateUpdate_=t,n}return(0,r.ZT)(t,e),t.prototype.enable=function(){this.isDisabled_&&(this.isDisabled_=!1,this.onDisabledStateUpdate_())},t.prototype.disable=function(){this.isDisabled_||(this.isDisabled_=!0,this.onDisabledStateUpdate_())},Object.defineProperty(t.prototype,"id",{get:function(){return this.id_},set:function(e){this.id_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"basename",{get:function(){return this.basename_},set:function(e){this.basename_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isBasenameBasedOnContent",{get:function(){return this.isBasenameBasedOnContent_},set:function(e){this.isBasenameBasedOnContent_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.isDisabled_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingState",{get:function(){return this.loadingState_},set:function(e){var t;if(this.loadingState_=e,[i.G.Error,i.G.Success].includes(e))for(;this.onLoaded_.length;)(t=this.onLoaded_.pop())==null||t.call(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playerContainerId",{get:function(){return this.playerContainerId_},set:function(e){this.playerContainerId_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"urlsDisabled",{get:function(){return this.urlsDisabled_},set:function(e){this.urlsDisabled_=e},enumerable:!1,configurable:!0}),t.prototype.whenLoaded=function(e){this.loadingState===i.G.Success?e():this.onLoaded_.push(e)},t}(a.b),c=function(e){function t(t){var n=e.call(this,t)||this;return n.logTag=`StoriesListViewService`,n.categories_=[],n}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"categories",{get:function(){return this.categories_},set:function(e){this.categories_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stories",{get:function(){return this.stories_},set:function(e){this.stories_=e},enumerable:!1,configurable:!0}),t}(s),l=function(e){function t(t){var n=e.call(this,t)||this;return n.logTag=`ClipsListViewService`,n.isUnreachable_=!1,n}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"clips",{get:function(){return this.clips_},set:function(e){this.clips_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"collection",{get:function(){return this.collection_},set:function(e){this.collection_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnreachable",{get:function(){return this.isUnreachable_},set:function(e){this.isUnreachable_=e},enumerable:!1,configurable:!0}),t}(s)},8105:function(e,t,n){var r=n(7582),i=n(8671),a=n(7112),o=n(8949),s=n(6008),c=n(9283),l=n(956),u=n(4338),d=n(791),f=n(5230),p=n(647),m=`storyteller-view-id`,h=`stories-`,g=`clips-`,_="Please set the `disableUrls` theme property to `false` to proceed.",v={store:!0},y=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`ListViewsService`,t._storiesViews=[],t._clipsViews=[],t.hasActiveDefaultClipsView_=!1,t.hasActiveDefaultStoriesView_=!1,t.viewportMimimumScale_=null,t}return(0,r.ZT)(t,e),t.prototype.formatBasename=function(e){return e.replace(/[^a-zA-Z0-9_-]/g,``)},Object.defineProperty(t.prototype,"_storiesOnCurrentPage",{get:function(){for(var e=document.querySelectorAll(`[${m}^="${h}"]`),t=[],n=function(n){var i=e[n].getAttribute(m),a=r._storiesViews.find((function(e){return e.id===i}));a&&t.push(a)},r=this,i=0;i<e.length;i++)n(i);return t}
62,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_clipsOnCurrentPage",{get:function(){for(var e=document.querySelectorAll(`[${m}^="${g}"]`),t=[],n=function(n){var i=e[n].getAttribute(m),a=r._clipsViews.find((function(e){return e.id===i}));a&&t.push(a)},r=this,i=0;i<e.length;i++)n(i);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clipsViewWithDefaultBasename",{get:function(){return this._clipsOnCurrentPage.find((function(e){return e.basename===d.xM}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storiesViewWithDefaultBasename",{get:function(){return this._storiesOnCurrentPage.find((function(e){return e.basename===d.c$}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasActiveDefaultClipsView",{set:function(e){this.hasActiveDefaultClipsView_=e;var t=this.clipsViewWithDefaultBasename;t&&(e?t.disable():t.enable())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasActiveDefaultStoriesView",{set:function(e){this.hasActiveDefaultStoriesView_=e;var t=this.storiesViewWithDefaultBasename;t&&(e?t.disable():t.enable())},enumerable:!1,configurable:!0}),t.prototype.onViewBasenameUpdated=function(e){var t=e instanceof f.Bp;e.basename===(t?d.c$:d.xM)?(t?this.hasActiveDefaultStoriesView_:this.hasActiveDefaultClipsView_)&&e.disable():e.enable()},t.prototype.getListViewUniqueId=function(e){var t=e===u.D.stories?this._storiesViews:this._clipsViews;return`${e===u.D.stories?h:g}${t.length}`},t.prototype.registerStoriesView=function(e){this._storiesViews.push(e)},t.prototype.registerClipsView=function(e){this._clipsViews.push(e)},t.prototype.getViewportMinimumScaleToRestore=function(){if(!this.viewportMimimumScale_){var e=document.querySelector(`meta[name="viewport"]`);if(e){var t=e.getAttribute(`content`)||``,n=t.indexOf(`minimum-scale=`);if(n!==-1){var r=t.indexOf(`,`,n);r===-1&&(r=t.length);var i=t.substring(n+14,r);this.viewportMimimumScale_=i}}}},Object.defineProperty(t.prototype,"viewportMimimumScale",{get:function(){return this.viewportMimimumScale_},enumerable:!1,configurable:!0}),t.prototype.getPlayerContainerId=function(e){return`${f.Cb}${e}`},t.prototype.playerIsUsedByOtherViews=function(e,t,n){var r=e===u.D.stories?this._storiesViews:this._clipsViews,i=!1;return r.forEach((function(e){e.playerContainerId===n&&e.id!==t&&(i=!0)})),i},t.prototype.categoriesAreTheSame=function(e,t){return e.sort().toString()===t.sort().toString()},t.prototype.getStoriesViewBasename=function(e,t,n){var r=this;if(n===void 0&&(n=[]),this._clipsOnCurrentPage.findIndex((function(e){return e.basename===t}))===-1){var i=this._storiesOnCurrentPage.findIndex((function(e){return e.basename===t}));if(i>-1&&this.categoriesAreTheSame(n,this._storiesOnCurrentPage[i].categories))return{basename:this.formatBasename(t),isBasenameBasedOnContent:!0};if(i===-1)return{basename:this.formatBasename(t),isBasenameBasedOnContent:!1}}var a=this._storiesOnCurrentPage.findIndex((function(t){return t.id!==e&&r.categoriesAreTheSame(n,t.categories)}));if(a>-1){var o=this._storiesOnCurrentPage[a].basename;return{basename:this.formatBasename(o),isBasenameBasedOnContent:!0}}var s=n.length?n.join(`-`):`all-stories`;return{basename:this.formatBasename(s),isBasenameBasedOnContent:!0}},t.prototype.getClipsViewBasename=function(e,t,n){if(n===void 0&&(n=``),this._storiesOnCurrentPage.findIndex((function(e){return e.basename===t}))===-1){var r=this._clipsOnCurrentPage.findIndex((function(e){return e.basename===t}));if(r>-1&&this._clipsOnCurrentPage[r].collection===n)return{basename:this.formatBasename(t),isBasenameBasedOnContent:!0};if(r===-1)return{basename:this.formatBasename(t),isBasenameBasedOnContent:!1}}var i=this._clipsOnCurrentPage.findIndex((function(t){return t.id!==e&&t.collection===n}));if(i>-1){var a=this._clipsOnCurrentPage[i].basename;return{basename:this.formatBasename(a),isBasenameBasedOnContent:!0}}return{basename:this.formatBasename(n),isBasenameBasedOnContent:!0}},t.prototype.checkForUnreachableClipPlayers=function(){var e=this,t=this._clipsOnCurrentPage.map((function(e){return e.id}));this._clipsViews.forEach((function(n,r){n.isUnreachable||t.includes(n.id
62)||(e._clipsViews[r].isUnreachable=!0,a.Z.broadcastEvent(`clipPlayerUnreachable`,n.id))}))},t.prototype.openStory=function(e){return(0,r.mG)(this,void 0,void 0,(function(){var t,n,a,o,l,u,f,p,m,h,g,y;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:t=b(e),r.label=1;case 1:for(r.trys.push([1,2,,10]),g=null,n=[],a=0,o=this._storiesOnCurrentPage;a<o.length;a++)l=o[a],u=l.stories||[],f=u.findIndex((function(n){return t?n.id===e.id:n.externalId===e.externalId})),f>-1&&(n.push(l),g=u[f]);if(n.length>=1&&g){if((p=n.filter((function(e){return!e.urlsDisabled}))).length===0)throw Error(`There are no Stories views with URLs enabled on the current page. ${_}`);return m=p[0],location.hash=`${m.basename}/${g.id}`,c.Z.setStoryPlaybackMode(g.id,i.e.singleStory),[2,Promise.resolve()]}throw Error(`There are no Stories views with this Story ${t?`ID`:`External ID`} on the current page, or the Stories view have URLs disabled.`);case 2:h=r.sent(),g=void 0,r.label=3;case 3:return r.trys.push([3,8,,9]),b(e)?[4,s.Z.loadStoryById(e.id,v)]:[3,5];case 4:return g=r.sent(),[3,7];case 5:return[4,s.Z.loadStoryByExternalId(e.externalId,v)];case 6:g=r.sent(),r.label=7;case 7:return[3,9];case 8:return y=r.sent(),[2,Promise.reject(y)];case 9:return g?(h instanceof Error&&this.log(`Created #stories view for ${t?`openStory(${e.id})`:`openStoryByExternalId(${e.externalId})`}: ${h.message}`),location.hash=`${d.c$}/${g.id}`,c.Z.setStoryPlaybackMode(g.id,i.e.singleStory),[2,Promise.resolve()]):[2,Promise.reject(`No Story with the provided ${t?`ID`:`External ID`} was found.`)];case 10:return[2]}}
62))}))},t.prototype.openPage=function(e){return(0,r.mG)(this,void 0,void 0,(function(){var t,n,a,o,l,u;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,1,,6]),(t=this._storiesOnCurrentPage.filter((function(t){return(t.stories||[]).findIndex((function(t){return t.pages.findIndex((function(t){return t.id===e}))>-1}))>-1}))).length===0)throw Error(`No page with this ID could be found on the page.`);if((n=t.filter((function(e){return!e.urlsDisabled}))).length===0)throw Error(`There are no Stories views with URLs enabled on the current page. ${_}`);return a=n[0],l=a.stories.find((function(t){return t.pages.findIndex((function(t){return t.id===e}))>-1})),location.hash=`${a.basename}/${l.id}/${e}`,c.Z.setStoryPlaybackMode(l.id,i.e.singleStory),[2,Promise.resolve()];case 1:o=r.sent(),l=void 0,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,s.Z.loadStoryByPageId(e,v)];case 3:return l=r.sent(),[3,5];case 4:return u=r.sent(),[2,Promise.reject(u)];case 5:return o instanceof Error&&this.log(`Created #stories view for openPage(${e}): ${o.message}`),location.hash=`${d.c$}/${l.id}/${e}`,[2,Promise.resolve()];case 6:return[2]}}
62))}))},t.prototype.openCategory=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n,i,a,o,c,l,u;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,1,,6]),(n=this._storiesOnCurrentPage.filter((function(t){return t.categories.length===1&&t.categories[0]===e}))).length===0)throw Error(`No category with this ID was found on the current page.`);if((i=n.filter((function(e){return!e.urlsDisabled}))).length===0)throw Error(`There are no Stories views with URLs enabled on the current page. ${_}`);if(a=i[0],o=a.stories||[],t){if(o.find((function(e){return e.id===t})))return location.hash=`${a.basename}/${t}`,[2,Promise.resolve()];this.log(`Story ID ${t} couldn't be found in the Category with ID ${e}. Opening the first Story in the Category instead...`)}return location.hash=`${a.basename}/${o[0].id}`,[2,Promise.resolve()];case 1:c=r.sent(),l=void 0,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,s.Z.loadStories([e],v)];case 3:return l=r.sent(),[3,5];case 4:return u=r.sent(),[2,Promise.reject(u)];case 5:if(c instanceof Error&&this.log(`Created #stories view for openCategory(${e}): ${c.message}`),t){if(l.stories.find((function(e){return e.id===t})))return location.hash=`${d.c$}/${t}?categoryId=${e}`,[2,Promise.resolve()];this.log(`Story ID ${t} couldn't be found in the Category with ID ${e}. Opening the first Story in the Category instead...`)}return location.hash=`${d.c$}/${l.stories[0].id}?categoryId=${e}`,[2,Promise.resolve()];case 6:return[2]}}
62))}))},t.prototype.openCollection=function(e,t,n){return(0,r.mG)(this,void 0,void 0,(function(){var i,a,s,c,l,u,f,p,m;return(0,r.Jh)(this,(function(h){switch(h.label){case 0:i=function(e,t){var i=new URLSearchParams((0,r.pi)((0,r.pi)({},t?{category:t}:{}),n?{openedReason:n}:{}));return`${e?`/${e}`:``}${t||n?`?${i.toString()}`:``}`},h.label=1;case 1:if(h.trys.push([1,2,,7]),(a=this._clipsOnCurrentPage.filter((function(t){return t.collection===e}))).length===0)throw Error(`There are no Clips views with this collection on the current page.`);if((s=a.filter((function(e){return!e.urlsDisabled}))).length===0)throw Error(`There are no Clips views with URLs enabled on the current page. ${_}`);if(t?.clipId){if(c=s.find((function(e){return(e.clips||[]).find((function(e){return e.id===t.clipId}))})))return location.hash=`${c.basename}/${e}${i(t.clipId)}`,[2,Promise.resolve()];this.logWarning(`openCollection(${e}): Clip with ID ${t.clipId} was not found in the Collection. Opening the first Clip in the Collection instead...`)}if(t?.categoryId){if(l=s.find((function(e){return(e.clips||[]).find((function(e){return e.categories.includes(t.categoryId)}))})))return location.hash=`${l.basename}/${e}${i(void 0,t.categoryId)}`,[2,Promise.resolve()];this.logWarning(`openCollection(${e}): Category with ID ${t.categoryId} was not found in the Collection. Opening the first Clip in the Collection instead...`)}return location.hash=`${s[0].basename}/${e}${i((s[0].clips||[])[0].id)}`,[2,Promise.resolve()];case 2:u=h.sent(),h.label=3;case 3:return h.trys.push([3,5,,6]),[4,o.Z.loadClips(e,v)];case 4:if(f=h.sent(),u instanceof Error&&this.log(`Created #clips view for openCollection(${e}): ${u.message}`),t?.clipId){if(f.clips.find((function(e){return e.id===t.clipId})))return location.hash=`${d.xM}/${e}${i(t.clipId)}`,[2,Promise.resolve()];this.logWarning(`openCollection(${e}): Clip with ID ${t.clipId} was not found in the Collection. Opening the first Clip in the Collection instead...`)}if(t?.categoryId){if(p=f.clips.find((function(e){return e.categories.includes(t.categoryId)})))return location.hash=`${d.xM}/${e}${i(p.id,t.categoryId)}`,[2,Promise.resolve()];this.logWarning(`openCollection(${e}): Category with ID ${t.categoryId} was not found in the Collection. Opening the first Clip in the Collection instead...`)}return location.hash=`${d.xM}/${e}${i(f.clips[0].id)}`,[2,Promise.resolve()];case 5:return m=h.sent(),[2,Promise.reject(m)];case 6:return[3,7];case 7:return[2]}}
62))}))},t.prototype.getViewWithClip=function(e){var t=this._clipsOnCurrentPage.filter((function(t){return(t.clips||[]).find((function(t){return t.id===e}))}));if(t.length===0)throw Error(`The clip with ID ${e} could not be found.`);var n=t.filter((function(e){return!e.urlsDisabled}));if(n.length===0)throw Error(`The clip with ID ${e} couldn't be opened, because there are no Clips views with URLs enabled on the current page. ${_}`);return n[0]},t.prototype.openClipById=function(e){return(0,r.mG)(this,void 0,void 0,(function(){var t,n,i,s,c,l,u,f,m,h,g,y,b;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:for(r.trys.push([0,1,,6]),t=null,n=[],i=0,s=this._clipsOnCurrentPage;i<s.length;i++)c=s[i],l=c.clips||[],u=l.findIndex((function(t){return t.id===e})),u>-1&&(n.push(c),t=l[u]);if(n.length>=1&&t){if((f=n.filter((function(e){return!e.urlsDisabled}))).length===0)throw Error(`There are no Clips views with URLs enabled on the current page. ${_}`);return m=f[0],location.hash=`${m.basename}/${m.collection}/${e}`,a.Z.broadcastEvent(p._.openedPlayer,{clipId:e,basename:m.basename,collection:m.collection}),[2,Promise.resolve()]}throw Error(`There are no Clips views with this Clip ID on the current page, or the Clips view have URLs disabled.`);case 1:h=r.sent(),g=null,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,o.Z.loadClip(e,v)];case 3:return g=r.sent(),[3,5];case 4:return y=r.sent(),[2,Promise.reject(y)];case 5:return g?(b=this._clipsOnCurrentPage.find((function(e){return e.collection===g?.collectionId})))?(location.hash=`${b.basename}/${g.collectionId}/${e}`,[2,Promise.resolve()]):(h instanceof Error&&this.log(`Created #clips view for openClip(${e}): ${h.message}`),location.hash=`${d.xM}/${g.collectionId}/${e}`,[2,Promise.resolve()]):[2,Promise.reject(`No Clip with the provided ID was found.`)];case 6:return[2]}}
62))}))},t.prototype.openClip=function(e,t){try{var n=this.getViewWithClip(e);location.hash=`${n.basename}/${n.collection}/${e}`}catch(e){e instanceof Error&&(t?t(e.message):this.logError(e.message))}},t.prototype.openClipByExternalId=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n,i,a,s,c,l,u,f,p,m,h,g;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,1,,6]),(n=this._clipsOnCurrentPage.filter((function(t){return t.collection===e}))).length===0)throw Error(`There are no Clips views with this collection on the current page.`);if((i=n.filter((function(e){return!e.urlsDisabled}))).length===0)throw Error(`There are no Clips views with this collection with URLs enabled on the current page. ${_}`);for(a=null,s=null,c=0,l=i;c<l.length;c++)if(u=l[c],f=(u.clips||[]).find((function(e){return e.externalId===t})),f){a=u,s=f;break}if(!a||!s)throw Error(`The existing views for this collection don't include a Clip with the external ID ${t}.`);return location.hash=`${a.basename}/${e}/${s.id}`,[2,Promise.resolve()];case 1:p=r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,o.Z.loadClips(e,v)];case 3:return m=r.sent(),(h=m.clips.find((function(e){return e.externalId===t})))?(p instanceof Error&&this.log(`Created #clips view for openCollection(${e}): ${p.message}`),location.hash=`${d.xM}/${e}/${h.id}`,[2,Promise.resolve()]):[2,Promise.reject(`The Clip with the external ID ${t} couldn't be found in the collection with ID ${e}.`)];case 4:return g=r.sent(),[2,Promise.reject(g)];case 5:return[3,6];case 6:return[2]}}
62))}))},t.sharedInstance=new t,t}(l.b);function b(e){return`id`in e}t.Z=y.sharedInstance},7942:function(e,t,n){var r=n(7582),i=n(9748),a=n(6550),o=n(5546),s=n(3871),c=n(4096),l=n(1092),u=n(4338),d=n(6595),f=n(5230);t.Z=function(e){function t(){var t=e.call(this)||this;return t.logTag=`StorytellerClipsBaseView`,t.mediaType=u.D.clips,t.supportsNavigation=!1,t.listViewService_=new f.y3(t.onDisabledStateUpdate_.bind(t)),t}return(0,r.ZT)(t,e),t.prototype.onDisabledStateUpdate_=function(){this.isDefaultView_||this.renderPlayer()},t.prototype.getClipPropsFromRouteParams=function(e){var t,n,r;return e!=null&&e.params&&(e.params.basename&&(t=e.params.basename),e.params.collection&&(r=e.params.collection,e.params.clipId&&(n=e.params.clipId))),{basename:t,collection:r,clipId:n}},t.prototype.onClipsLoadSuccess=function(e){this.listViewService_.clips=e.clips,this.listViewService_.loadingState=d.G.Success,this.feedTitle=e.feedTitle,this.feedTitleImageUrl=e.feedTitleImageUrl,this.supportsNavigation=e.supportsNavigation,this.isReadUnreadOrderingEnabled_=e.enableViewedOrdering,this.viewTheme_=e.theme},t.prototype.onClipsLoadFailure=function(e){this.listViewService_.clips=[],this.listViewService_.loadingState=d.G.Error,e instanceof s.X?this.logWarning(e.message):e instanceof Error?this.logError(e.message):typeof e==`string`&&this.logError(e)},t.prototype.loadClips=function(){this.listViewService_.collection&&(this.listViewService_.loadingState=d.G.Pending)},t.prototype.renderPlayer=function(){var e=this;this.memoryRouterProps_&&!this.isDefaultView_||i.render(i.createElement(l.Z,{displayLimit:this.listConfiguration.displayLimit,clips:this.listViewService_.clips,clipsStatus:this.listViewService_.loadingState,basename:this.basename,delegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_||null,theme:this.listTheme_},i.createElement(a.AW,{path:[`/:basename?/:collection/:clipId?`],render:function(t){var n=t.location,r=t.match,a=e.getClipPropsFromRouteParams(r),o=a.collection,s=a.basename,l=a.clipId;if(!(o&&o===e.listConfiguration.collection&&s===e.basename&&!e.listViewService_.isUnreachable&&!e.listViewService_.isDisabled))return null;var u=new URLSearchParams(n.search).get(`category`);return i.createElement(c.ZP,{clips:e.listViewService_.clips||[],clipsNavService:e.clipsNavService,feedHeader:u?{title:u}:{title:e.feedTitle,imageUrl:e.feedTitleImageUrl},collection:e.listViewService_.collection,basename:e.basename,isCategoryNavigation:!1,initialCategoryId:u,initialClipId:l,isInline:!1,onPlayerClose:function(){return e.onPlayerClose_?.call(e)},supportsNavigation:e.supportsNavigation})}})),this.playerContainerEl_??null)},t}(o.Z)},841:function(e,t,n){n.d(t,{A:function(){return f}});var r=n(9748),i=n(16),a=n(4184),o=n.n(a),s=n(4999),c=n(8844),l=n(6346),u={chip:`chip-iMw6G6`,inRow:`inRow-2DyRTh`,newChip:`newChip-mzzrHi`,liveReadChip:`liveReadChip-DHjft6`,liveUnreadChip:`liveUnreadChip-G3q7mK`,newChipAlignRight:`newChipAlignRight-IajaQK`,newChipAlignLeft:`newChipAlignLeft-Awj7bB`,newChipAlignCenter:`newChipAlignCenter--8SAz8`},d=function(e){var t=e.cellType,n=e.read,a=(0,i.F)().storyTiles[t===c.E.round?`circularTile`:`rectangularTile`];return n?a.liveChip.readImage?r.createElement(l.Ee,{src:a.liveChip.readImage}):r.createElement(r.Fragment,null,`live`):a.liveChip.unreadImage?r.createElement(l.Ee,{src:a.liveChip.unreadImage}):r.createElement(r.Fragment,null,`live`)},f=function(e){var t,n=e.cellType,i=e.className,a=e.chipType,c=e.alignment,l=e.inRow;return a?r.createElement(`span`,{className:o()(u.chip,u[`${a}Chip`],(t={},t[u.newChipAlignRight]=c===`right`,t[u.newChipAlignLeft]=c===`left`,t[u.newChipAlignCenter]=c===`center`,t[u.inRow]=l,t),i),"data-cell-type":n,role:`presentation`},a===s.x.new?`new`:r.createElement(d,{cellType:n,read:a===s.x.liveRead})):r.createElement(`span`,null)}},4999:function(e,t,n){var r;n.d(t,{x:function(){return r}}),function(e){e.liveRead=`liveRead`,e.liveUnread=`liveUnread`,e.new=`new`}(r||={})},4338:function(e,t,n){var r;n.d(t,{D:function(){return r}}),function(e){e.stories=`stories`,e.clips=`clips`}(r||={})},1092:function(e,t,n){n.d(t,{Z:function(){return v}});var r,i=n(7582),a=n(9748),o=n(6550),s=n(3727),c=n(3843),l=n(546),u=n(7840),d=n(642),f=n(7050),p=n(7563);(function(e){e.setClips=`setClips`})(r||={});var m=function(e,t){if(t.type===r.setClips)return t.payload},h=n(8502),g=function(e){var t=e.children,n=e.rootEl;return n?a.createElement(f.y.Provider,{value:n},t):a.createElement(a.Fragment,null,t)},_=function(e){var t=e.children,n=e.memoryRouterProps;return n?a.createElement(o.VA,(0,i.pi)({},n),t):a.createElement(s.UT,{hashType:`noslash`},t)},v=function(e){var t=(0,a.useReducer)(m,e.clips),n=t[0],i=t[1],o={displayLimit:e.displayLimit,clips:n,status:e.clipsStatus,dispatch:i};return(0,a.useEffect)((function(){i(function(e){return{type:r.setClips,payload:e}}(e.clips))}),[e.clips]),a.createElement(c.Z,{onError:e.onError},a.createElement(g,{rootEl:e.rootEl},a.createElement(u.Z.Provider,{value:e.delegate},a.createElement(l.Z.Provider,{value:e.delegate},a.createElement(d.v.Provider,{value:e.theme},a.createElement(_,{memoryRouterProps:e.memoryRouterProps},a.createElement(p.i,null,a.createElement(h.w.Provider,{value:o},e.children))))))))}},4745:function(e,t,n){var r=n(7582),i=n(9748),a=n(6550),o=n(3727),s=n(9789),c=n(6661),l=n(7112),u=n(647),d=n(3843),f=n(7840),p=n(642),m=n(7050),h=function(e){var t=e.children,n=e.rootEl;return n?i.createElement(m.y.Provider,{value:n},t):i.createElement(i.Fragment,null,t)},g=function(e){var t=e.children,n=e.memoryRouterProps;return n?i.createElement(a.VA,(0,r.pi)({},n),t):i.createElement(o.UT,{hashType:`noslash`},t)};t.Z=function(e){var t=e.children,n=e.displayLimit,a=e.listDelegate,o=e.onError,m=e.rootEl,_=e.stories,v=e.storiesStatus,y=e.theme,b=e.memoryRouterProps,x=(0,i.useState)(c.Z.storiesReadMap),S=x[0],C=x[1],w=(0,i.useCallback)((function(e){var t;C((0,r.pi)((0,r.pi)({},S),((t={})[e.storyId]=e.newStoryReadState,t)))}),[S]),T={displayLimit:n,stories:_,status:v,storiesReadMap:S};return(0,i.useEffect)((function(){l.Z.on(u._.storyStatusUpdate,w)}),[w]),i.createElement(d.Z,{onError:o},i.createElement(h,{rootEl:m},i.createElement(f.Z.Provider,{value:a},i.createElement(p.v.Provider,{value:y},i.createElement(g,{memoryRouterProps:b},i.createElement(s.A.Provider,{value:T},t))))))}},9820:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(9748),i=n(7502),a=n(6346),o=function(e){var t=(0,r.useState)(e?`loading`:`idle`),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(e){var t=document.querySelector(`link[href="${e}"]`);if(t)i(t.getAttribute(`data-status`)||``);else{(t=(0,a.EW)()).href=e,t.rel=`stylesheet`,t.type=`text/css`,t.setAttribute(`data-status`,`loading`);var n=function(e){t?.setAttribute(`data-status`,e.type===`load`?`ready`:`error`)};t.onload=n,t.onerror=n,t.addEventListener(`load`,n),t.addEventListener(`error`,
62n),document.body.appendChild(t)}var r=function(e){i(e.type===`load`?`ready`:`error`)};return t.onload=r,t.onerror=r,t.addEventListener(`load`,r),t.addEventListener(`error`,r),function(){t&&(t.onload=null,t.onerror=null,t.removeEventListener(`load`,r),t.removeEventListener(`error`,r))}}i(`idle`)}),[e]),n},s=n(4881),c=function(e){var t=e.children,n=(0,i.Z)((0,s.c)(`amp-story-player-v0.js`));return o((0,s.c)(`amp-story-player-v0.css`)),n===i.q.ready?r.default.createElement(r.default.Fragment,null,t):r.default.createElement(r.default.Fragment,null)}},791:function(e,t,n){n.d(t,{Hs:function(){return c},ZO:function(){return a},c$:function(){return s},dO:function(){return r},q9:function(){return i},xM:function(){return o}});var r=`storyteller-player-visible`,i=`No element with ID %s was found. The Storyteller view couldn't be initialized.`,a="The provided container ID %s is not valid. Only ASCII letters, numbers, dashes (`-`), and underscores (`_`) should be used. To avoid unexpected behaviour, the view's basename will be formatted to only include allowed characters.",o=`clips`,s=`stories`,c={appearance:{tiles:{title:{show:!0}}},behavior:{reloading:{reloadOnExit:!1,reloadOnForeground:!1}}}},7563:function(e,t,n){n.d(t,{fx:function(){return c},i:function(){return s}});var r=n(9748),i=n(6346),a=`https://cdn.jsdelivr.net/npm/[email protected]`,o=(0,r.createContext)({loadHlsLibrary:function(){return Promise.resolve()}}),s=function(e){var t=e.children;return r.createElement(o.Provider,{value:{loadHlsLibrary:function(){return new Promise((function(e,t){var n=document.querySelector(`script[src="${a}"]`),r=!n;n||((n=(0,i.hT)()).src=a,n.async=!0);var o=function(){return n?.setAttribute(`data-status`,`ready`),e()},s=function(){return n?.setAttribute(`data-status`,`error`),t()};n.getAttribute(`data-status`)===`ready`?o():(n.onload=o,n.onerror=s,n.addEventListener(`load`,o),n.addEventListener(`error`,s)),r&&document.body.appendChild(n)}))}}},t)},c=function(){var e=(0,r.useContext)(o);if(!e)throw Error(`useHlsContext must be used within a HlsContext Provider`);return e}},7050:function(e,t,n){n.d(t,{y:function(){return r}});var r=n(9748).createContext(null)},8844:function(e,t,n){var r;n.d(t,{E:function(){return r}}),function(e){e.round=`round`,e.square=`square`}(r||={})},4637:function(e,t,n){var r=n(7582),i=n(956),a=n(8105),o=n(7112),s=n(647);t.Z=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`PlayerService`,t._isPlayerVisible=!1,t._isPlaybackEnabled=!0,t}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isPlayerVisible},set:function(e){this._isPlayerVisible!==e&&this.updateViewportMinimumScale_(e),this._isPlayerVisible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlaybackEnabled",{get:function(){return this._isPlaybackEnabled},enumerable:!1,configurable:!0}),t.prototype.enablePlayback=function(){this._isPlaybackEnabled=!0,o.Z.broadcastEvent(s._.playbackEnabled)},t.prototype.disablePlayback=function(){this._isPlaybackEnabled=!1,o.Z.broadcastEvent(s._.playbackDisabled)},t.prototype.updateViewportMinimumScale_=function(e){var t=document.querySelector(`meta[name="viewport"]`),n=a.Z.viewportMimimumScale;if(t){var r=t.getAttribute(`content`)||``,i=`minimum-scale=`,o=r.indexOf(i);if(o===-1){if(!e){if(!n)return;t.setAttribute(`content`,`${r}, ${i}${n}`);return}t.setAttribute(`content`,`${r}, ${i}1`);return}var s=r.indexOf(`,`,o);s===-1&&(s=r.length);var c=r.substring(o+14,s);e?t.setAttribute(`content`,r.replace(`${i}${c}`,`${i}1`)):n?t.setAttribute(`content`,r.replace(`${i}${c}`,`${i}${n}`)):t.setAttribute(`content`,r.replace(`, ${i}1`,``).replace(`,${i}1`,``).replace(`${i}1`,``));return}e&&((t=document.createElement(`meta`)).name=`viewport`,t.content=`width=device-width, initial-scale=1, minimum-scale=1`,document.head.appendChild(t))},t.sharedInstance=new t,t}(i.b).sharedInstance},1143:function(e,t,n){n.d(t,{Z:function(){return v}});var r=n(7582),i=n(9748),a=n(6550),o=n(4745),s=n(9820),c=n(3871),l=n(6595),u=n(4637),d=n(8672),f=n(4091),p=n(5546
62),m=n(4338),h=n(9283),g=function(e){function t(t){var n=e.call(this)||this;return n.logTag=`StoriesPlayerSyncService`,n._syncedStoriesIds=[],n._onStorySyncCheckComplete={},n.onStoriesMismatch_=t,n}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"apiStories",{set:function(e){this._apiStories=e,this.checkIfStoriesAreInSync_()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playerStories",{set:function(e){this._playerStories=e,this.checkIfStoriesAreInSync_()},enumerable:!1,configurable:!0}),t.prototype.resetPlayerStories=function(){this._playerStories=null,this.checkIfStoriesAreInSync_()},t.prototype.updatePlayerStory=function(e){if(this._playerStories){var t=this._playerStories.findIndex((function(t){return t.href===e.href}));t>-1?this._playerStories[t]=e:this._playerStories.push(e)}else this._playerStories=[e];this.checkIfStoriesAreInSync_()},t.prototype.ifStoryIsSynced=function(e,t){this._syncedStoriesIds.includes(e)?t():this._onStorySyncCheckComplete[e]?this._onStorySyncCheckComplete[e].push(t):this._onStorySyncCheckComplete[e]=[t]},t.prototype.whenStorySyncCheckComplete_=function(e){this._onStorySyncCheckComplete[e]&&(this._onStorySyncCheckComplete[e].forEach((function(e){return e()})),this._onStorySyncCheckComplete[e]=[])},t.prototype.checkIfStoriesAreInSync_=function(){var e=this;if(this._playerStories&&this._apiStories){for(var t=[],n=``,r=!1,i=[],a=function(e){var a=o._apiStories[e],s=o._playerStories.findIndex((function(e){return e.href.includes(a.id)}));if(!(s>=0))return n=`- Story ${a.id} is not in player ${n}`,`continue`;var c=o._playerStories[s];if(!c.pages)return t.push(a),`continue`;for(var l=[],u=!1,d=0;d<a.pages.length;d++){var f=a.pages[d],p=c.pages.includes(f.id);!(c.pages.length>=1)||p?l.push(f):(u=!0,n=`- Page ${f.id} in story ${a.id} is not in player ${n}`)}a.pages=l,u&&(r=!0,h.Z.checkStoryReadStatus(a)),t.push(a),i.push(a.id)},o=this,s=0;s<this._apiStories.length;s++)a(s);n&&this.logError(`The Stories AMPHTML doesn't match the Stories returned by the API: ${n}`);var c=i.filter((function(t){return!e._syncedStoriesIds.includes(t)}));this.stories=t,this._syncedStoriesIds=i,r?(this._onStorySyncCheckComplete={},this.onStoriesMismatch_()):c.forEach((function(t){return e.whenStorySyncCheckComplete_(t)}))}else this.stories=this._apiStories},t}(n(956).b),_=n(5230),v=function(e){function t(){var t=e.call(this)||this;return t.logTag=`StorytellerStoriesBaseView`,t.mediaType=m.D.stories,t.isPlayerVisible_=!1,t.playerShouldBeAppendedToDOM_=!1,t.storiesShouldPreload_=!1,t.storiesPlayerSyncService_=new g(t.onStoriesMismatch_.bind(t)),t.listViewService_=new _.Bp(t.onDisabledStateUpdate_.bind(t)),t}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"stories",{get:function(){return this.storiesPlayerSyncService_.stories},set:function(e){this.storiesPlayerSyncService_.apiStories=e,this.listViewService_.stories=this.stories},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playAllStories_",{get:function(){return this.listTheme_.player.playAllStories||!this.isReadUnreadOrderingEnabled_},enumerable:!1,configurable:!0}),t.prototype.onDisabledStateUpdate_=function(){this.isDefaultView_||this.renderPlayer()},t.prototype.onStoriesLoadFailure=function(e){e instanceof c.X?this.logWarning(e.message):e instanceof Error?this.logError(e.message):typeof e==`string`&&this.logError(e)},t.prototype.onStoriesMismatch_=function(){this.renderStoryteller()},t.prototype.loadStories=function(){this.listViewService_.loadingState=l.G.Pending},t.prototype.getStoriesWithRowIndex=function(){return this.stories?.map((function(e,t){return(0,r.pi)((0,r.pi)({},e),{rowIndex:t})}))||null},Object.defineProperty(t.prototype,"playerShouldBeAppendedToDOM",{set:function(e){e&&(this.playerShouldBeAppendedToDOM_=!0)},enumerable:!1,configurable:!0}),t.prototype.updatePlayerVisibility=function(e){this.isPlayerVisible_!==e&&(u.Z.isVisible=e,this.playerShouldBeAppendedToDOM=e)},t.prototype.renderPlayer=function(){var e=this;this.memoryRouterProps_&&!this.isDefaultView_||i.render(i.createElement(o.Z,{displayLimit:this.listConfiguration.displayLimit,stories:this.getStoriesWithRowIndex(),storiesStatus:this.listViewService_.loadingState,basename:this.basename,listDelegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_||null,theme:this.listTheme_},i.createElement(a.AW,{path:[`/:basename?/:storyId?/:pageId?`],render:function(t){var n=t.match,r=t.location,a=new URLSearchParams(r.
62search).get(`categoryId`),o=(!a||e.listViewService_.categories.length===1&&e.listViewService_.categories[0]===a)&&!!n.params.storyId&&e.basename===n?.params.basename&&!e.listViewService_.isDisabled;return o||e.playerShouldBeAppendedToDOM_?i.createElement(s.Z,null,i.createElement(f.Z,{storyId:n.params.storyId,pageId:n.params.pageId,basename:e.basename,isVisible:o,playAllStories:e.playAllStories_,setIsPlayerVisible:function(t){return e.updatePlayerVisibility(t)},shouldShowInstructions:e.shouldShowInstructions,currentCategories:e.listViewService_.categories,storiesPlayerSyncService:e.storiesPlayerSyncService_},i.createElement(d.Z,{cellType:e.cellType_,initialStoryId:n.params.storyId,basename:e.basename,categories:e.listViewService_.categories,playAllStories:e.playAllStories_,rootElement:e.rootEl_||null,uiTheme:e.listConfiguration.theme,uiStyle:e.listConfiguration.uiStyle,useGoogleWebStoryUrls:e.useGoogleWebStoryUrls_,viewId:e.id}))):null}})),this.playerContainerEl_??null)},t}(p.Z)},5546:function(e,t,n){var r=n(7582),i=n(3983),a=n(956),o=n(6940),s=n(2173),c=n(1508),l=n(4539),u=n(8105),d=n(2408),f=n(7112),p=n(647),m=n(8844),h=n(5754),g=n(4338),_=n(791);t.Z=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`StorytellerListViewBase`,t.cellType_=m.E.square,t.delegate_=new i.c,t.isDefaultView_=!1,t.listTheme_=new h.W,t.viewTheme_=_.Hs,t}return(0,r.ZT)(t,e),t.prototype.parseAttributes=function(e){return e},t.prototype.parseBaseAttributes=function(){var e=this.rootEl_?.dataset.uiStyle,t=l.V.auto;return e&&(t=l.V[e]),{uiStyle:t}},Object.defineProperty(t.prototype,"delegate",{get:function(){return this.delegate_},set:function(e){this.delegate_=Object.assign(this.createDefaultDelegate(),e)},enumerable:!1,configurable:!0}),t.prototype.createDefaultDelegate=function(){return new i.c},Object.defineProperty(t.prototype,"theme",{get:function(){return this.theme_},set:function(e){this.themeInput=e,this.buildTheme()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uiStyle",{get:function(){return this.attributes_?this.attributes_.uiStyle:l.V.auto},set:function(e){this.attributes_.uiStyle=e,this.buildTheme()},enumerable:!1,configurable:!0}),t.prototype.buildTheme=function(){this.theme_=this.themeInput?o.Z.merge(s.Z.theme,this.themeInput):o.Z.clone(s.Z.theme),this.listTheme_=new c.V(o.Z.prefersDarkMode(this.uiStyle),this.theme_).build(),this.rootEl_&&o.Z.setDocumentStyle({element:this.rootEl_,id:`list-theme-${this.listViewService_.id}`,selector:`#${this.rootEl_.id}`,theme:this.listTheme_}),this.isDefaultView_||(this.mediaType===g.D.stories?this.listViewService_.urlsDisabled=this.listTheme_.player.disableUrls:this.listViewService_.urlsDisabled=this.listTheme_.clipPlayer.disableUrls,this.renderStoryteller())},Object.defineProperty(t.prototype,"displayLimit",{get:function(){return this.displayLimit_},set:function(e){this.displayLimit_=e,this.renderStoryteller()},enumerable:!1,configurable:!0}),t.prototype.onError=function(e){this.logError(e.message)},Object.defineProperty(t.prototype,"basename",{get:function(){return this.listViewService_.basename},set:function(e){if(this.isDefaultView_)throw Error(`Cannot set basename on a default view.`);this.listViewService_.basename=e,u.Z.onViewBasenameUpdated(this.listViewService_)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.listViewService_.id},enumerable:!1,configurable:!0}),t.prototype.initializeListView=function(){var e,t=this;if(!this.isDefaultView_){var n=u.Z.getListViewUniqueId(this.mediaType);this.listViewService_.id=n,(e=this.rootEl_)==null||e.setAttribute(`storyteller-view-id`,n),this.registerListView(),this.assignViewBasename()}this.theme_=o.Z.clone(s.Z.theme),this.buildTheme(),f.Z.on(p._.themeUpdated,(function(){return t.buildTheme()})),d.Z.initialize(),this.initialize()},t.prototype.updateListConfiguration=function(e){e.hasOwnProperty(`displayLimit`)&&(this.displayLimit_=e.displayLimit?parseInt(`${e.displayLimit}`):void 0),(e.theme||e.uiStyle)&&(e.theme&&(this.themeInput=e.theme),e.uiStyle&&(this.uiStyle=e.uiStyle,this.attributes_.uiStyle=e.uiStyle,this.rootEl_&&(this.rootEl_.dataset.uiStyle=e.uiStyle)),this.buildTheme()),e.basename&&this.assignViewBasename(e.basename)},t.prototype.assignViewBasename=function(e){var t,n=(t=this.mediaType===g.D.stories?u.Z.getStoriesViewBasename(this.id,e||this.rootEl_?.dataset.baseUrl||this.mediaType,this.listViewService_.categories):u.Z.getClipsViewBasename(this.id,e||this.rootEl_?.dataset.baseUrl||this.mediaType,this.listViewService_.collection)).basename,r=t.isBasenameBasedOnContent;this.basename!==n&&(this.updatePlayerContainerEl(n),this.basename=n,this.listViewService_.isBasenameBasedOnContent=r)},t.prototype.updatePlayerContainerEl=function(e){var t=u.Z.getPlayerContainerId(e),n=document.querySelector(`#${t}`),r=!1;if(this.playerContainerEl_&&(r=u.Z.playerIsUsedByOtherViews(this.mediaType,this.id,this.playerContainerEl_.id)),n)return this.playerContainerEl_&&!r&&document.body.removeChild(this.playerContainerEl_),this.playerContainerEl_=n,void(this.listViewService_.playerContainerId=t);this.playerContainerEl_&&!r||(this.playerContainerEl_=document.body.appendChild(document.createElement(`div`))),this.playerContainerEl_.id=t,this.listViewService_.playerContainerId=t},t}(a.b)},9705:function(e,t,n){n.d(t,{LF:function(){return l},R1:function(){return u}});var r=n(8705),i=n(8936),a=n(8844),o=n(6818),s=2,c=2,l=function(e){var t=e.cellType,n=e.isReadUnreadOrderingEnabled,r=e.media,l=r===void 0?[]:r,u=e.theme,d=c+s;
62if(t===a.E.square)return{top:d,left:d,bottom:d,right:d};var f=u.storyTiles.circularTile,p=f.unreadStrokeWidth,m=f.readStrokeWidth,h=p,g=p,_=p;if(n){var v=(0,o.R)(l?.[0]),y=(0,o.R)(l?.[l.length-1]);if(v===i.N.read&&(g=m),y===i.N.read&&(_=m),v===i.N.read||y===i.N.read)h=Math.max(p,m);else for(var b=1;b<(l||[]).length-1;b++){var x=l?.[b];if((0,o.R)(x)===i.N.read){h=Math.max(p,m);break}}}return{top:h+d,left:g+d,bottom:h+d,right:_+d}};function u(){return`
63  ${(0,r.yG)(`focus-outline-width`)}: ${(0,r.B5)(s)};
64  ${(0,r.yG)(`focus-outline-offset`)}: ${(0,r.B5)(c)};
65  `}},6818:function(e,t,n){n.d(t,{R:function(){return s}});var r=n(6339),i=n(5792),a=n(9283),o=n(8936),s=function(e){var t=o.N.unread;return(0,r.z)(e)&&(t=a.Z.getStoryReadState(e?.id).status),(0,i.N)(e)&&(t=a.Z.getClipViewedState(e?.id)),t}},5792:function(e,t,n){n.d(t,{N:function(){return r}});var r=function(e){return!(!e||!(`description`in e))}},6339:function(e,t,n){n.d(t,{z:function(){return r}});var r=function(e){return!(!e||!(`titles`in e))}},2434:function(e,t,n){n.d(t,{A:function(){return r}});var r=typeof document>`u`||typeof window>`u`},956:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(7582),i=n(1554),a=n(373),o=function(){function e(){}return e.prototype.logError=function(e){var t=[...arguments].slice(1);a.Z.logError.apply(a.Z,(0,r.ev)([this.formatMessage(e)],t,!1))},e.prototype.logInfo=function(e){a.Z.logInfo(this.formatMessage(e))},e.prototype.log=function(e){a.Z.log(this.formatMessage(e))},e.prototype.logWarning=function(e){var t=[...arguments].slice(1);a.Z.logWarning.apply(a.Z,(0,r.ev)([this.formatMessage(e)],t,!1))},e.prototype.formatMessage=function(e){return`Storyteller Javascript SDK : ${i.q4} : ${this.logTag} : ${e}`},e}()},373:function(e,t,n){var r=n(7582),i=n(1462);t.Z=function(){function e(){this._environment=i.q.production,this._isLoggingEnabled=!1}return Object.defineProperty(e.prototype,"environment",{set:function(e){this._environment=e||i.q.production},enumerable:!1,configurable:!0}),e.prototype.enableLogging=function(){this._isLoggingEnabled=!0,this.logInfo(`Storyteller logging enabled`)},e.prototype.logError=function(e){var t=[...arguments].slice(1);console&&console.error&&console.error.apply(console,(0,r.ev)([e],t,!1))},e.prototype.logInfo=function(e){(this._environment!==i.q.production||this._isLoggingEnabled)&&console&&console.info&&console.info(e)},e.prototype.logWarning=function(e){var t=[...arguments].slice(1);(this._environment!==i.q.production||this._isLoggingEnabled)&&console&&console.warn&&console.warn.apply(console,(0,r.ev)([e],t,!1))},e.prototype.log=function(e){(this._environment!==i.q.production||this._isLoggingEnabled)&&console&&console.log&&console.log(e)},e.sharedInstance=new e,e}().sharedInstance},1438:function(e,t,n){var r;n.d(t,{m:function(){return r}}),function(e){e.noAds=`noAds`,e.storyteller=`storyteller`,e.integratingApp=`integratingApp`}(r||={})},9980:function(e,t,n){var r;function i(e){return!!e&&e.type===r.clipCollection&&`clipCollectionId`in e&&!!e.clipCollectionId}function a(e){return!!e&&e.type===r.clip&&`clipId`in e&&!!e.clipId}function o(e){return!!e&&e.type===r.storyCategory&&`storyCategoryId`in e&&!!e.storyCategoryId}function s(e){return!!e&&e.type===r.story&&`storyId`in e&&!!e.storyId}n.d(t,{MI:function(){return a},JB:function(){return i},Yz:function(){return s},H5:function(){return o}}),function(e){e.clip=`clip`,e.clipCollection=`clipCollection`,e.story=`story`,e.storyCategory=`storyCategory`}(r||={})},6346:function(e,t,n){n.d(t,{Ee:function(){return a},Xf:function(){return s},EW:function(){return o},hT:function(){return c}});var r=n(7582),i=n(9748);function a(e){var t=(0,i.useRef)(null);return(0,i.useEffect)((function(){t.current&&(t.current.onload=function(t){var n;(n=e.onLoad)==null||n.call(e,t)},t.current.onerror=function(t){var n;(n=e.onError)==null||n.call(e,t)})}),[e.onLoad,e.onError]),i.default.createElement(`img`,(0,r.pi)({},e,{alt:e.alt||``,"data-uc-allowed":`true`,ref:t}))}function o(){var e=document.createElement(`link`);return e.dataset.ucAllowed=`true`,e}function s(e){return i.default.createElement(`script`,(0,r.pi)({},e,{"data-uc-allowed":`true`}))}function c(){var e=document.createElement(`script`);return e.dataset.ucAllowed=`true`,e}},4881:function(e,t,n){n.d(t,{c:function(){return c}});var r=n(6661),i=n(4779),a=n(1462),o=n(1554),s=`https://stories.usestoryteller.com/amp`;function c(e){var t=i.Z.get(i.d.customEnvironment)===`production`,n=t?s:o.k9,c=`${n}/${o.qS}`,l=i.Z.get(i.d.ampEnvironment);if(!t&&(l===`local`||r.Z.environment&&r.Z.environment!==a.q.production)){if
65(l===`local`)c=o.Z0;else{var u=i.Z.get(i.d.ampVersion),d=n;l===`dev`&&(d=`https://storytellerdev.azureedge.net/amp`),l===`staging`&&(d=`https://storytellerstaging.azureedge.net/amp`),u&&(c=`${d}/${u}`)}}return`${c}/${e}`}},4366:function(e,t,n){function r(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),e.find((function(e){return t.includes(e.externalId)}))}n.d(t,{x:function(){return r}})},7392:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(9283),i=n(8936),a=function(e){var t=e.enableReadUnreadOrdering;e.stories.sort((function(e,n){var a=!1,o=!1;t&&(a=r.Z.getStoryReadState(e.id).status!==i.N.read,o=r.Z.getStoryReadState(n.id).status!==i.N.read);var s=e.isPinned,c=n.isPinned,l=s||c,u=e.isLive,d=n.isLive;return l?!s&&c?1:s&&!c?-1:s&&c?a&&!o?-1:!a&&o?1:e.sortOrder-n.sortOrder:0:u||d?!u&&d?1:u&&!d?-1:u&&d?a&&!o?-1:!a&&o?1:e.sortOrder-n.sortOrder:0:a===o?e.sortOrder-n.sortOrder:a?-1:1}))}},7753:function(e,t,n){var r;n.d(t,{k:function(){return r}}),function(e){e.complete=`amp-ad-complete`,e.load=`amp-ad-load`,e.progress=`amp-ad-progress`}(r||={})},7068:function(e,t,n){var r;n.d(t,{n:function(){return r}}),function(e){e.playerReady=`ready`,e.playerStoryPagesAppended=`storyPagesAppended`,e.engagementUnitAnswered=`ampstory:engagementunitanswered`,e.storyMutedState=`amp-story-muted-state`,e.storyNavigation=`navigation`,e.storyPageAttachmentOpen=`story-page-attachment-tap`,e.storyPageNavigation=`storyNavigation`,e.storyPageProgress=`ampstory:pageprogress`,e.storyPageShow=`pageshow`,e.storyPageVisible=`story-page-visible`,e.storyPageSwitch=`ampstory:switchpage`,e.playerClose=`amp-story-player-close`,e.playerKeyPress=`amp-story-player-keypress`,e.playerNoNextStory=`noNextStory`,e.playerShareButtonTapped=`amp-story-player-share`,e.playerTouchEnd=`amp-story-player-touchend`,e.playerTouchMove=`amp-story-player-touchmove`,e.playerTouchStart=`amp-story-player-touchstart`,e.storyAdView=`story-ad-view`,e.storyAdClick=`story-ad-click`,e.storyAdComplete=`story-ad-complete`,e.storyAdSkipped=`story-ad-skipped`,e.storyAdPaused=`story-ad-paused`,e.storyAdProgress=`story-ad-progress`,e.storyAdResumed=`story-ad-resumed`}(r||={})},7409:function(e,t,n){var r;n.d(t,{G:function(){return r}}),function(e){e.image=`image`,e.video=`video`,e.poll=`poll`,e.triviaQuiz=`triviaQuiz`}(r||={})},8936:function(e,t,n){var r;n.d(t,{N:function(){return r}}),function(e){e.unread=`unread`,e.read=`read`}(r||={})},6008:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(7582),i=n(2385),a=n(3871),o=n(956),s=n(3441),c=n(355),l=n(9283),u=n(7392),d=function(e){function t(t){var n=e.call(this)||this;return n.shouldPersonalize=!0,n.endpoint=`story/stories/default`,n.method=c.w.get,n.categories=[],n.categories=t,n}return(0,r.ZT)(t,e),t.prototype.buildEndpoint=function(){if(!this.categories)return this.endpoint;var e=new URLSearchParams,t=this.categories.join(`,`);return e.append(`categories`,t),`${this.endpoint}?${e.toString()}`},t.prototype.transformResponse=function(e){return e?(l.Z.initialiseReadStateForStories(e.stories),(0,u.z)(e),e):null},t}(s.I),f=function(e){function t(t){var n=e.call(this)||this;return n.shouldPersonalize=!1,n.endpoint=`story/stories/externalId`,n.method=c.w.get,n.storyExternalId=``,n.storyExternalId=t,n}return(0,r.ZT)(t,e),t.prototype.buildEndpoint=function(){return this.storyExternalId?`${this.endpoint}/${this.storyExternalId}`:this.endpoint},t.prototype.transformResponse=function(e){return e?(l.Z.initialiseReadStateForStories([e]),e):null},t}(s.I),p=function(e){function t(t){var n=e.call(this)||this;return n.shouldPersonalize=!1,n.endpoint=`story/stories`,n.method=c.w.get,n.storyId=``,n.storyId=t,n}return(0,r.ZT)(t,e),t.prototype.buildEndpoint=function(){return this.storyId?`${this.endpoint}/${this.storyId}`:this.endpoint},t.prototype.transformResponse=function(e){return e?(l.Z.initialiseReadStateForStories([e]),e):null},t}(s.I),m=function(e){function t(t){var n=e.call(this)||this;return n.shouldPersonalize=!1,n.endpoint=`story/stories/pages`,n.method=c.w.get,n.pageId=``,n.pageId=t,n}return(0,r.ZT)(t,e),t.prototype.buildEndpoint=function(){return this.pageId?`${this.endpoint}/${this.pageId}/story`:this.endpoint},t.prototype.transformResponse=function(e){return e?(l.Z.initialiseReadStateForStories([e]),e):null},t}(s.I),h=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`StoriesApiService`,t.categoriesCache_={},t.storiesCache_={},t}return(0,r.ZT)(t,e),t.prototype.loadStories=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n,o,s,c;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(n=e?.length===1,t?.retrieve&&n&&this.categoriesCache_[e[0]])return o=this.categoriesCache_[e[0]],delete this.categoriesCache_[e[0]],[2,Promise.resolve(o)];s=new d(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.Z.executeCommand(s)];case 2:if(!(c=r.sent()))throw Error(`Stories null`);if(c.stories.length===0)throw new a.X(`Stories`,e?.join(`,`));return t!=null&&t.store&&n&&(this.categoriesCache_[e[0]]=c),[2,c];case 3:throw r.sent();case 4:return[2]}}
65))}))},t.prototype.loadStoryByExternalId=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n,a;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:n=new f(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.Z.executeCommand(n)];case 2:if(!(a=r.sent()))throw Error(`No Story with the provided External ID was found.`);return a&&t!=null&&t.store&&(this.storiesCache_[a.id]=a),[2,a];case 3:throw r.sent();case 4:return[2]}}))}))},t.prototype.loadStoryById=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n,a,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(t?.retrieve&&this.storiesCache_[e])return n=this.storiesCache_[e],delete this.storiesCache_[e],[2,Promise.resolve(n)];a=new p(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.Z.executeCommand(a)];case 2:return(o=r.sent())&&t!=null&&t.store&&(this.storiesCache_[e]=o),[2,o];case 3:throw r.sent();case 4:return[2]}}))}))},t.prototype.loadStoryByPageId=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){var n,a;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:n=new m(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.Z.executeCommand(n)];case 2:if(!(a=r.sent()))throw Error(`No Story associated with this Page ID was found.`);return a&&t!=null&&t.store&&(this.storiesCache_[a.id]=a),[2,a];case 3:throw r.sent();case 4:return[2]}}
65))}))},t.sharedInstance=new t,t}(o.b).sharedInstance},9789:function(e,t,n){n.d(t,{A:function(){return r}});var r=(0,n(9748).createContext)({stories:null,status:``,storiesReadMap:{}})},1417:function(e,t,n){n.d(t,{r:function(){return r}});var r=200},4091:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(9748),i=n(4576),a=n(16),o=(0,r.createContext)({});t.Z=function(e){var t=e.pageId,n=e.children,s=e.storyId,c=e.basename,l=e.isVisible,u=e.playAllStories,d=e.setIsPlayerVisible,f=e.currentCategories,p=e.shouldShowInstructions,m=e.storiesPlayerSyncService,h=(0,r.useRef)(null),g=(0,i.Z)(),_=(0,r.useRef)(0),v=(0,r.useState)(l),y=v[0],b=v[1],x=(0,r.useRef)(!0),S=(0,a.F)();(0,r.useEffect)((function(){var e,t;y||((e=h.current)==null||e.pause(!0),(t=h.current)==null||t.mute())}),[y,h]);var C=(0,r.useCallback)((function(e){b(e),d(e)}),[d]);return r.createElement(o.Provider,{value:{pageId:t,storyId:s,basename:c,isVisible:l,playAllStories:u,currentCategories:f,player:h,finalStoryIndex:_,muteState:x,setLightboxVisible:C,isLightboxVisible:y,listDelegate:g,shouldShowInstructions:p,storiesPlayerSyncService:m,theme:S}},n)}},3779:function(e,t,n){var r=n(9748),i=n(9789);t.Z=function(){var e=(0,r.useContext)(i.A);if(!e)throw Error(`useStoriesContext must be used within a StoriesContext Provider`);return e}},8672:function(e,t,n){n.d(t,{Z:function(){return Je}});var r=n(7582),i=n(9748),a=n(5518),o=n(4184),s=n.n(o),c=n(4091),l=function(){var e=i.useContext(c.f);if(!e)throw Error(`useStoryViewContext must be used within a StoryViewContextProvider`);return e},u=n(7112),d=n(3914),f=n(647),p=n(1822),m=n(6661),h=n(6940),g=n(6356),_=n(6346),v=n(16),y=function(){var e=(0,v.F)();return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`48`,height:`48`,fill:`none`},i.createElement(`path`,{fill:`#1C62EB`,d:`M31.631 9.293a.883.883 0 0 1-.256-.606l-.008-2.422a.846.846 0 0 1 .851-.851.86.86 0 0 1 .857.856l.008 2.423a.848.848 0 0 1-1.451.6ZM28.609 11.1a.859.859 0 0 1-1.211-.004L24.36 8.058a.859.859 0 0 1-.004-1.21.859.859 0 0 1 1.211.003l3.038 3.038c.334.334.336.88.004 1.211ZM35.876 11.124a.859.859 0 0 1-.004-1.211l3.018-3.018a.859.859 0 0 1 1.216 1.215l-3.019 3.018a.859.859 0 0 1-1.21-.004ZM38.313 15.625a.883.883 0 0 1-.606-.256.883.883 0 0 1-.256-.607.846.846 0 0 1 .85-.85l2.423.007a.86.86 0 0 1 .857.857.846.846 0 0 1-.851.851l-2.417-.002ZM38.942 22.64l-3.038-3.038a.859.859 0 0 1-.004-1.21.859.859 0 0 1 1.211.003l3.038 3.038c.334.334.336.879.004 1.211a.859.859 0 0 1-1.211-.004Z`}),i.createElement(`path`,{fill:e.isDark?`#ffffff`:`#1a1a1a`,fillRule:`evenodd`,d:`M21.1 31.921a.4.4 0 0 1 .645.114l2.123 4.55c.77 1.653 3.17 1.497 3.72-.242l6.716-21.226c.49-1.544-.965-2.999-2.51-2.51l-21.226 6.717c-1.738.55-1.894 2.949-.242 3.72l4.55 2.123a.4.4 0 0 1 .114.645l-4.923 4.923a2 2 0 0 0 0 2.828l3.281 3.281a2 2 0 0 0 2.829 0l4.923-4.923Zm4.84 3.901 6.717-21.226a.272.272 0 0 0-.341-.341l-21.227 6.717c-.084.027-.118.062-.137.087a.294.294 0 0 0-.052.154.294.294 0 0 0 .032.16c.015.028.044.067.124.105l4.551 2.123a2.128 2.128 0 0 1 .605 3.433l-4.923 4.923a.272.272 0 0 0 0 .385l3.281 3.28a.272.272 0 0 0 .385 0l4.923-4.922a2.128 2.128 0 0 1 3.433.605l2.123 4.55c.037.08.076.11.104.125.037.02.093.036.16.032a.293.293 0 0 0 .155-.053c.025-.019.06-.052.087-.137Z`,clipRule:`evenodd`}))},b=function(){var e=(0,v.F)();return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`48`,height:`48`,fill:`none`},i.createElement(`path`,{fill:`#1C62EB`,d:`M14.368 7.293a.883.883 0 0 0 .257-.606l.008-2.422a.846.846 0 0 0-.851-.851.86.86 0 0 0-.857.856l-.008 2.423a.848.848 0 0 0 1.451.6ZM18.391 8.1a.859.859 0 0 0 1.211-.004l3.038-3.038a.859.859 0 0 0 .004-1.21.859.859 0 0 0-1.211.003L18.395 6.89a.859.859 0 0 0-.004 1.211ZM10.124 9.124a.859.859 0 0 0 .004-1.211L7.11 4.895A.859.859 0 0 0 5.894 6.11l3.019 3.018a.859.859 0 0 0 1.21-.004ZM7.687 13.625a.883.883 0 0 0 .606-.256.883.883 0 0 0 .256-.607.846.846 0 0 0-.85-.85l-2.423.007a.86.86 0 0 0-.857.857.846.846 0 0 0 .851.851l2.417-.002ZM6.058 21.64l3.038-3.038a.859.859 0 0 0 .004-1.21.859.859 0 0 0-1.211.003L4.85 20.433a.859.859 0 0 0-.004 1.211.859.859 0 0 0 1.211-.004Z`}),i.createElement(`path`,{fill:e.isDark?`#ffffff`:`#1a1a1a`,fillRule:`evenodd`,d:`M33.5 12.72h-5a.78.78 0 0 0-.78.78v21c0 .43.35.78.78.78h5c.43 0 .78-.35.78-.78v-21a.78.78 0 0 0-.78-.78Zm-5-1.72a2.5 2.5 0 0 0-2.5 2.5v21a2.5 2.5 0 0 0 2.5 2.5h5a2.5 2.5 0 0 0 2.5-2.5v-21a2.5 2.5 0 0 0-2.5-2.5h-5ZM19.5 12.72h-5a.78.78 0 0 0-.78.78v21c0 .43.35.78.78.78h5c.43 0 .78-.35.78-.78v-21a.78.78 0 0 0-.78-.78Zm-5-1.72a2.5 2.5 0 0 0-2.5 2.5v21a2.5 2.5 0 0 0 2.5 2.5h5a2.5 2.5 0 0 0 2.5-2.5v-21a2.5 2.5 0 0 0-2.5-2.5h-5Z`,clipRule:`evenodd`}))},x=function(){var e=(0,v.F)();return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
65width:`48`,height:`48`,fill:`none`},i.createElement(`path`,{fill:`#1C62EB`,d:`M10.293 15.324a.883.883 0 0 1-.606.257l-2.422.008a.846.846 0 0 1-.851-.852.86.86 0 0 1 .856-.856l2.423-.008a.848.848 0 0 1 .6 1.451ZM12.1 18.347a.859.859 0 0 1-.004 1.211l-3.038 3.038a.859.859 0 0 1-1.21.004.859.859 0 0 1 .003-1.211l3.038-3.038a.859.859 0 0 1 1.211-.004ZM12.124 11.08a.859.859 0 0 1-1.211.004L7.895 8.065A.859.859 0 0 1 9.11 6.85l3.018 3.018a.859.859 0 0 1-.004 1.211ZM16.625 8.642a.883.883 0 0 1-.256.607.883.883 0 0 1-.607.256.846.846 0 0 1-.85-.85l.007-2.423a.86.86 0 0 1 .857-.857.846.846 0 0 1 .851.851l-.002 2.416ZM23.64 8.014l-3.038 3.038a.859.859 0 0 1-1.21.004.859.859 0 0 1 .003-1.211l3.038-3.038a.859.859 0 0 1 1.211-.004.859.859 0 0 1-.004 1.211Z`}),i.createElement(`path`,{fill:e.isDark?`#ffffff`:`#1a1a1a`,fillRule:`evenodd`,d:`M32.921 25.856a.4.4 0 0 1 .114-.645l4.55-2.123c1.653-.77 1.497-3.17-.242-3.72l-21.226-6.716c-1.544-.49-2.999.965-2.51 2.51l6.717 21.226c.55 1.738 2.949 1.894 3.72.242l2.123-4.55a.4.4 0 0 1 .645-.114l4.923 4.923a2 2 0 0 0 2.828 0l3.281-3.281a2 2 0 0 0 0-2.829l-4.923-4.923Zm3.901-4.84L15.596 14.3a.272.272 0 0 0-.341.341l6.717 21.226c.027.085.062.119.087.138a.294.294 0 0 0 .154.052.293.293 0 0 0 .16-.032c.028-.015.067-.044.105-.125l2.123-4.55a2.128 2.128 0 0 1 3.433-.605l4.923 4.923a.272.272 0 0 0 .385 0l3.28-3.281a.272.272 0 0 0 0-.385L31.7 27.078a2.128 2.128 0 0 1 .604-3.433l4.551-2.123c.08-.038.11-.077.125-.104a.294.294 0 0 0 .032-.16.293.293 0 0 0-.053-.155c-.019-.025-.052-.06-.
65137-.087Z`,clipRule:`evenodd`}))},S=function(){var e=(0,v.F)();return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`48`,height:`48`,fill:`none`},i.createElement(`path`,{stroke:e.isDark?`#ffffff`:`#1a1a1a`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.72`,d:`m22.997 18.5 7 6.5-7 6.5`}),i.createElement(`path`,{fill:`#1C62EB`,d:`M16.032 9.302a.98.98 0 0 0 .284-.672l.009-2.686A.938.938 0 0 0 15.38 5a.953.953 0 0 0-.95.95l-.009 2.686a.938.938 0 0 0 .944.943.94.94 0 0 0 .666-.277ZM19.383 11.305a.952.952 0 0 0 1.343-.004l3.368-3.369A.952.952 0 0 0 24.1 6.59a.952.952 0 0 0-1.343.004l-3.369 3.368a.952.952 0 0 0-.004 1.343ZM11.325 11.332a.952.952 0 0 0 .005-1.343L7.982 6.642A.952.952 0 0 0 6.636 7.99l3.346 3.347a.952.952 0 0 0 1.343-.005ZM8.623 16.323a.979.979 0 0 0 .672-.285.98.98 0 0 0 .284-.672.938.938 0 0 0-.943-.944l-2.686.009a.953.953 0 0 0-.95.95.938.938 0 0 0 .944.944l2.679-.002ZM7.926 24.1l3.368-3.368a.952.952 0 0 0 .005-1.343.952.952 0 0 0-1.343.005l-3.368 3.368a.952.952 0 0 0-.005 1.343.952.952 0 0 0 1.343-.005Z`}),i.createElement(`path`,{stroke:e.isDark?`#ffffff`:`#1a1a1a`,strokeLinecap:`round`,strokeWidth:`1.72`,d:`M10.927 26.237c.384 7.712 6.759 13.847 14.566 13.847 8.055 0 14.585-6.53 14.585-14.585 0-7.807-6.135-14.182-13.847-14.566`}))},C=function(){var e=(0,v.F)();return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`48`,height:`48`,fill:`none`},i.createElement(`path`,{fill:`#1C62EB`,d:`M26.162 8.533a.889.889 0 0 0 .614-.25l1.73-1.718a.852.852 0 0 0 0-1.211.865.865 0 0 0-1.22 0l-1.73 1.718a.852.852 0 0 0 0 1.212c.165.163.381.249.606.249ZM26.413 15.656a.852.852 0 0 0 0 1.212l.865.86c.173.171.39.257.614.257a.889.889 0 0 0 .614-.25.852.852 0 0 0 0-1.21l-.865-.86a.868.868 0 0 0-1.228-.009ZM27.027 11.97c0 .473.39.86.865.86h4.325a.865.865 0 0 0 .864-.86c0-.472-.389-.86-.864-.86h-4.325a.865.865 0 0 0-.865.86ZM21.838 6.815a.865.865 0 0 0 .865-.86V1.66a.865.865 0 0 0-1.73 0v4.296c0 .473.39.86.865.86ZM16.9 8.284c.172.163.389.249.614.249a.889.889 0 0 0 .614-.25.852.852 0 0 0 0-1.21l-1.73-1.72a.865.865 0 0 0-1.22 0 .852.852 0 0 0 0 1.212L16.9 8.284ZM16.035 15.656l-.865.86a.852.852 0 0 0 0 1.211.86.86 0 0 0 .614.258.889.889 0 0 0 .614-.25l.865-.858a.852.852 0 0 0 0-1.212.868.868 0 0 0-1.228-.009ZM11.46 12.83h4.324a.865.865 0 0 0 .865-.86c0-.472-.39-.86-.865-.86h-4.325a.865.865 0 0 0-.864.86c0 .473.389.86.864.86Z`}),i.createElement(`path`,{fill:e.isDark?`#ffffff`:`#1a1a1a`,d:`M35.676 22.281h-.822c-.527-.48-1.358-.859-2.638-.859h-2.551c-.528-.481-1.358-.86-2.638-.86h-1.73V11.97c0-.85 0-3.437-3.46-3.437-3.459 0-3.459 2.587-3.459 3.437v17.185c0 .43-.069.662-.112.765-.164-.034-.718-.223-1.877-1.366-2.119-2.105-4.462-2.913-6.27-2.174C8.779 26.93 8 28.262 8 30.015c0 .232.095.447.25.61 2.682 2.663 5.147 6.032 6.755 9.228 2.457 4.872 6.798 7.347 12.887 7.347C35.702 47.2 40 42.93 40 35.17v-6.874c0-3.763-1.617-6.015-4.324-6.015Zm-7.784 23.2c-5.388 0-9.194-2.156-11.338-6.401-1.635-3.257-4.109-6.66-6.816-9.409.078-.86.442-1.47 1.047-1.718.839-.344 2.49-.078 4.385 1.804 1.012 1.005 2.508 2.277 3.78 1.753.527-.206 1.158-.79 1.158-2.355V11.97c0-.962 0-1.718 1.73-1.718s1.73.756 1.73 1.718v12.89c0 1.718.864 2.577 1.73 2.577V22.28h1.729c1.591 0 1.721.74 1.73.86V24c0 1.718.865 2.578 1.73 2.578V23.14h1.73c1.59 0 1.72.74 1.729.86 0 1.718.865 2.578 1.73 2.578V24c2.343 0 2.594 3.007 2.594 4.296v6.874c0 6.84-3.494 10.311-10.378 10.311Z`}))},w=function(){var e=(0,v.F)();return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`48`,height:`48`,fill:`none`},i.createElement(`path`,{fill:`#1C62EB`,d:`M27.162 14.111a.856.856 0 0 0 1.116-.49c.32-.797.476-1.63.476-2.471 0-3.785-3.106-6.867-6.92-6.867-3.816 0-6.921 3.082-6.921 6.867 0 .841.164 1.674.475 2.472a.875.875 0 0 0 1.125.49.863.863 0 0 0 .493-1.117 5.105 5.105 0 0 1-.355-1.845c0-2.841 2.328-5.15 5.19-5.15 2.864 0 5.191 2.309 5.191 5.15 0 .626-.12 1.244-.354 1.845a.852.852 0 0 0 .484 1.116Z`}),i.createElement(`path`,{fill:`#1C62EB`,d:`M13.433 17.235a.857.857 0 0 0 .286-1.184 9.365 9.365 0 0 1-1.393-4.901c0-5.21 4.265-9.442 9.516-9.442
65s9.516 4.232 9.516 9.442a9.346 9.346 0 0 1-1.401 4.91.86.86 0 0 0 .285 1.184.853.853 0 0 0 .45.129c.294 0 .58-.146.735-.412a11.065 11.065 0 0 0 1.653-5.803C33.08 5.004 28.036 0 21.833 0c-6.202 0-11.246 5.004-11.246 11.158 0 2.043.571 4.043 1.652 5.803a.881.881 0 0 0 1.194.274Z`}),i.createElement(`path`,{fill:e.isDark?`#ffffff`:`#1a1a1a`,d:`M35.676 22.308h-.822c-.527-.481-1.358-.86-2.638-.86h-2.551c-.528-.48-1.358-.858-2.638-.858h-1.73v-8.593c0-.85 0-3.437-3.46-3.437-3.459 0-3.459 2.586-3.459 3.437v17.185c0 .43-.069.662-.112.765-.164-.034-.718-.223-1.877-1.366-2.119-2.105-4.462-2.913-6.27-2.174C8.779 26.957 8 28.289 8 30.04c0 .232.095.447.25.61 2.682 2.664 5.147 6.033 6.755 9.229 2.457 4.872 6.798 7.347 12.887 7.347 7.81 0 12.108-4.27 12.108-12.03v-6.874c0-3.764-1.617-6.015-4.324-6.015Zm-7.784 23.2c-5.388 0-9.194-2.157-11.338-6.401-1.635-3.257-4.109-6.66-6.816-9.41.078-.858.442-1.468 1.047-1.718.839-.343 2.49-.077 4.385 1.805 1.012 1.005 2.508 2.277 3.78 1.753.527-.207 1.158-.79 1.158-2.355V11.997c0-.962 0-1.718 1.73-1.718s1.73.756 1.73 1.718v12.889c0 1.719.864 2.578 1.73 2.578v-5.156h1.729c1.591 0 1.721.74 1.73.86v.859c0 1.718.865 2.578 1.73 2.578V23.167h1.73c1.59 0 1.72.74 1.729.86 0 1.718.865 2.578 1.73 2.578v-2.578c2.343 0 2.594 3.007 2.594 4.296v6.874c0 6.84-3.494 10.311-10.378 10.311Z`}))},T=function(){var e=(0,v.F)();return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`48`,height:`48`,fill:`none`},i.createElement(`path`,{fill:`#1C62EB`,d:`M16.799 8.857a.875.875 0 0 0 .416-.507l.693-2.317a.853.853 0 0 0-.569-1.063.848.848 0 0 0-1.058.572l-.694 2.317a.853.853 0 0 0 .57 1.063c.218.066.447.04.642-.065ZM20.365 14.986a.853.853 0 0 0 .57 1.063l1.154.348c.23.07.459.043.654-.062a.852.852 0 0 0-.153-1.569l-1.155-.348a.851.851 0 0 0-1.07.568ZM19.165 11.466a.853.853 0 0 0 1.155.348l3.753-2.027a.86.86 0 0 0 .347-1.159.853.853 0 0 0-1.154-.348l-3.754 2.027a.86.86 0 0 0-.347 1.159ZM12.238 9.376a.86.86 0 0 0 .347-1.159l-2.02-3.767a.853.853 0 0 0-1.154-.348.86.86 0 0 0-.347 1.158l2.02 3.768a.853.853 0 0 0 1.154.348ZM8.641 12.98a.87.87 0 0 0 .65-.07.852.852 0 0 0-.154-1.569l-2.308-.696a.853.853 0 0 0-.49 1.634l2.302.7ZM11.356 19.85l-.347 1.16a.853.853 0 0 0 .57 1.062c.23.07.458.044.654-.062a.876.876 0 0 0 .415-.506l.347-1.16a.853.853 0 0 0-.57-1.062.851.851 0 0 0-1.07.569ZM6.056 19.516l3.753-2.027a.86.86 0 0 0 .347-1.159.853.853 0 0 0-1.154-.348l-3.754 2.027a.86.86 0 0 0-.347 1.159.853.853 0 0 0 1.155.348Z`}),i.createElement(`path`,{fill:e.isDark?`#ffffff`:`#1a1a1a`,d:`m31.767 16.467-.724.389c-.692-.175-1.603-.115-2.73.49l-2.249 1.206c-.692-.174-1.602-.115-2.73.49l-1.524.818-4.063-7.57c-.403-.75-1.626-3.03-4.674-1.393-3.048 1.635-1.825 3.914-1.423 4.664l8.126 15.142c.204.379.252.616.263.727-.161.048-.738.143-2.3-.316-2.862-.853-5.31-.456-6.553 1.05-.921 1.118-.977 2.66-.148 4.204.11.204.295.349.51.419 3.621 1.08 7.386 2.882 10.315 4.938 4.468 3.131 9.464 3.258 14.828.38 6.882-3.694 8.65-9.489 4.981-16.326l-3.25-6.057c-1.78-3.316-4.27-4.535-6.655-3.255ZM35.88 40.59c-4.748 2.548-9.12 2.447-13.018-.279-2.98-2.096-6.768-3.925-10.454-5.068-.338-.794-.306-1.503.11-2.009.576-.7 2.158-1.246 4.716-.483 1.367.407 3.287.82 4.16-.243.367-.431.647-1.245-.093-2.623l-8.126-15.142c-.455-.848-.812-1.514.712-2.332 1.524-.818 1.881-.152 2.337.696l6.094 11.357c.813 1.514 1.981 1.862 2.743 1.453l-1.219-2.27-1.219-2.272 1.524-.818c1.403-.753 1.866-.163 1.93-.061l.407.757c.813 1.514 1.981 1.863 2.743 1.453l-1.219-2.27-.406-.758 1.524-.818c1.402-.752 1.866-.163 1.93-.06.813 1.514 1.982 1.862 2.744 1.453l-1.22-2.272c2.066-1.108 3.709 1.423 4.319 2.56l3.25 6.056c3.234 6.027 1.797 10.738-4.27 13.993Z`}))},E=function(){var e=(0,v.F)();return i.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`48`,height:`48`,fill:`none`},i.createElement(`path`,{fill:`#1C62EB`,d:`M43.137 4.008c-.086-.43-.517-.774-.949-.688a.892.892 0 0 0-.69 1.032l.432 2.58C37.79 3.663 30.889 1.6 23.298 1.6c-4.917 0-9.661 1.032-13.801 2.838-.518.258-1.208.516-2.07 1.032a1.805 1.805 0 0 0-.518.344c-.086.086-.518.258-.518.343l-1.035.774.432-2.58a.892.892 0 0 0-.69-1.031.895.895 0 0 0-1.036.688L3.2 9.168c-.086.55.136 1.03.862 1.03h5.176c.517 0 .863-.429.863-.859s-.432-.86-.863-.86H6.046c.432-.344.863-.688 1.294-.946C11.998 4.782 17.432 3.32 23.298 3.32c7.418 0 14.146 1.978 17.855 5.16h-3.105c-.431 0-.863.43-.863.86 0 .429.432.859.863.859h5.175c.665 0 .852-.602.777-1.118l-.863-5.073Z`}),i.createElement(`path`,{fill:e.isDark?`#ffffff`:`#1a1a1a`,d:`m35.369 26-.724-.388c-.237-.673-.79-1.4-1.918-2.004L30.48 22.4c-.237-.673-.79-1.4-1.918-2.004l-1.524-.818 4.063-7.572c.402-.75 1.625-3.028-1.423-4.664-3.048-1.636-4.271.643-4.674 1.393l-8.126 15.142c-.203.379-.374.55-.46.621-.129-.108-.527-.536-1.008-2.091-.872-2.857-2.555-4.677-4.497-4.88-1.441-.15-2.757.655-3.586 2.2a.884.884 0 0 0-.067.656C8.362 24 8.94 28.132 8.847 31.71c-.14 5.454 2.516 9.687 7.88 12.566 6.882 3.693 12.689 1.963 16.358-4.874l3.25-6.057c1.78-3.316 1.42-6.064-.966-7.345ZM17.54 42.763c-4.747-2.547-7.08-6.247-6.964-11.002.1-3.642-.47-7.81-1.556-11.513.475-.72 1.084-1.086 1.735-1.02.902.095 2.231 1.11 3.01 3.664.417 1.364 1.134 3.192 2.502 3.332.562.068 1.395-.149 2.134-1.527l8.127-15.142c.455-.848.812-1.515 2.336-.697 1.524.818 1.167 1.485.712 2.333L23.48 22.547c-.812 1.514-.457 2.68.305 3.089l1.22-2.272 1.218-2.271 1.524.818c1.403.752 1.168 1.465 1.118 1.575l-.406.757c-.813 1.514-.457 2.68.305 3.09l1.219-2.272.406-.757 1.524.818c1.403.752 1.167 1.465 1.118 1.575-.812 1.514-.457 2.68.306 3.09l1.218-2.272c2.066 1.108.864 3.877.255 5.012l-3.25 6.057c-3.235 6.027-7.955 7.434-14.02 4.178Z`}))},D={instructionsContainer:`instructionsContainer-rPD7tt`,instructionsModal:`instructionsModal--5vO8l`,header:`header-+R1WfF`,pointerIcon:`pointerIcon-T6MRAL`,pointerInputInstru
65ction:`pointerInputInstruction-4WGWfv`,touchIcon:`touchIcon-tSPR04`,touchInputInstruction:`touchInputInstruction-UWtSKG`,instruction:`instruction-lh1Am-`,icon:`icon-AnJ1zE`,closeBtn:`closeBtn-otWjKz`},O=function(e){var t=e.header,n=e.pointerInputInstruction,r=e.touchInputInstruction,a=e.pointerIcon,o=e.touchIcon,s=e.customIcon;return i.createElement(`div`,{className:D.instruction},i.createElement(`div`,{className:D.icon},s?i.createElement(_.Ee,{src:s,alt:``,width:`48`,height:`48`}):i.createElement(i.Fragment,null,i.createElement(`div`,{className:D.pointerIcon},a),i.createElement(`div`,{className:D.touchIcon},o))),i.createElement(`div`,{className:D.instructionDetails},i.createElement(`h2`,{className:D.instructionHeader},t),i.createElement(`p`,{className:D.pointerInputInstruction},n),i.createElement(`p`,{className:D.touchInputInstruction},r)))},k=function(e){var t=e.handleInstructionsRead,n=e.hasShownInstructions,r=(0,v.F)(),a=l().shouldShowInstructions,o=i.useRef(null),s=function(){m.Z.hasShownInstructions=!0,t()};return n||!a?(t(),null):i.createElement(`div`,{className:D.instructionsContainer,onClick:function(e){return e.target===o.current&&s()},ref:o},i.createElement(`div`,{className:D.instructionsModal},i.createElement(`div`,{className:D.instructions},i.createElement(`div`,{className:D.header},i.createElement(`h1`,null,`Navigating Stories`),i.createElement(`p`,null,`Use the following gestures to browse story content`)),i.createElement(O,{header:`Go Forward`,pointerInputInstruction:`Click the page`,touchInputInstruction:`Tap the page`,pointerIcon:i.createElement(y,null),touchIcon:i.createElement(C,null),customIcon:r.instructions.icons?.forward}),i.createElement(O,{header:`Pause`,pointerInputInstruction:`Click the icon in the top right`,touchInputInstruction:`Press and hold`,pointerIcon:i.createElement(b,null),touchIcon:i.createElement(w,null),customIcon:r.instructions.icons?.pause}),i.createElement(O,{header:`Go Back`,pointerInputInstruction:`Click the left edge of the page`,touchInputInstruction:`Tap the left edge`,pointerIcon:i.createElement(x,null),touchIcon:i.createElement(T,null),customIcon:r.instructions.icons?.back}),i.createElement(O,{header:`Move Between Stories`,pointerInputInstruction:`Use the arrows`,touchInputInstruction:`Swipe left or right`,pointerIcon:i.createElement(S,null),touchIcon:i.createElement(E,null),customIcon:r.instructions.icons?.swipe}),i.createElement(`button`,{className:D.closeBtn,onClick:s},`Tap to Start`))))},A=n(6550),j=n(1736),M=n(1815),N=n(9283),P=n(3766),F=n(5784),I=n(4991),L=n(4366),R=function(e){function t(t,n,r){var i=e.call(this)||this;return i.story=t,i.page=n,i.currentCategories=r,i.activityType=P.T.actionButtonTapped,i.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),z=n(4990),B=n(4388),V=n(8671),H=n(9512),U=n(8080),W=n(2408),ee=n(2727),G=n(6008),te=n(4637),ne=n(7409),re=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`EngagementUnitsService`,t.formatPollDeepLink=function(e,t){if(!e)return``;var n=decodeURI(e);return n.includes(`[POLLANSWERID]`)?n.replace(`[POLLANSWERID]`,t):n},t.formatQuizDeepLink=function(e,t,n){if(!e)return``;var r=decodeURI(e);return r.includes(`[TRIVIAQUIZID]`)?r.replace(`[TRIVIAQUIZID]`,t).replace(`[TRIVIAQUIZSCORE]`,n.toString()):r},t.getPollSharingText=function(e,t){var n=m.Z.settings?.sharingInstructions;if(!e||!t||!n)return``;if(t.type===ne.G.image||t.type===ne.G.video)return(n?.default)?.replace(`[STORYTITLE]`,e.titles.longDisplay||e.titles.internal).replace(`[LINK]`,t.deepLinkInternal);
65if(t.type===ne.G.poll){var r=m.Z.polls,i=m.Z.pollAnswerMap,a=r.find((function(e){return e.engagementUnitId===t.engagementUnit.id})),o=a&&i[a?.id],s=a?.answers.find((function(e){return e.id===o}))?.title||``;return(o?n?.poll.answered:n?.poll.unanswered)?.replace(`[POLLQUESTION]`,t.engagementUnit.title).replace(`[POLLANSWER]`,s).replace(`[LINK]`,``)}return``},t.getQuizSharingText=function(e,t,n,r){var i=m.Z.settings?.sharingInstructions;return e&&t&&i?t.type===ne.G.image||t.type===ne.G.video?(i?.default)?.replace(`[STORYTITLE]`,e.titles.longDisplay||e.titles.internal).replace(`[LINK]`,t.deepLinkInternal):t.type===ne.G.triviaQuiz?(i?.triviaQuiz)?.replace(`[TRIVIAQUIZTITLE]`,r).replace(`[TRIVIAQUIZSCORE]`,n.toString()).replace(`[LINK]`,``):``:``},t}return(0,r.ZT)(t,e),t.sharedInstance=new t,t}(n(956).b).sharedInstance,ie=n(3779),K=n(8585),ae=function(e){function t(t,n,r,i,a,o){var s=e.call(this)||this;return s.quiz=t,s.answerId=n,s.questionId=r,s.currentCategories=i,s.story=a,s.page=o,s.activityType=P.T.triviaQuizQuestionAnswered,s.alwaysSend=!0,s.storyPlaybackMode=V.e.singleStory,s.isDisabled=function(){return!d.Z.isFunctionalFeatureEnabled(K.d.triviaQuizAnswers)},s.pageIndex=s.story.pages?s.story.pages.findIndex((function(e){return e.id===s.page?.id}))+1:void 0,s.storyPlaybackMode=N.Z.getStoryPlaybackMode(a.id),s}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story?.id,storyTitle:this.story.titles?.internal,storyDisplayTitle:this.story.titles?.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages?.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page?.id,pageIndex:this.pageIndex,pageTitle:this.page?.title,pageType:this.page?.type,pageHasAction:!!this.page?.swipeUpUrl,pageActionText:this.page?.swipeUpText,pageActionUrl:this.page?.swipeUpUrl,triviaQuizId:this.quiz.id,triviaQuizTitle:this.quiz.title,triviaQuizQuestionId:this.questionId,triviaQuizAnswerId:this.answerId,categories:this.story.categories?.map((function(e){return e.name}))||[],currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){return{storyId:this.story?.id,storyTitle:this.story.titles?.internal,storyDisplayTitle:this.story.titles?.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages?.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page?.id,pageIndex:this.pageIndex,pageTitle:this.page?.title,pageType:this.page?.type,pageHasAction:!!this.page?.swipeUpUrl,pageActionText:this.page?.swipeUpText,pageActionUrl:this.page?.swipeUpUrl,triviaQuizId:this.quiz.id,triviaQuizTitle:this.quiz.title,triviaQuizQuestionId:this.questionId,triviaQuizAnswerId:this.answerId,categories:this.story.categories?.map((function(e){return e.name}))||[],currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),q=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o.quiz=t,o.score=n,o.currentCategories=r,o.story=i,o.page=a,o.activityType=P.T.triviaQuizCompleted,o.storyPlaybackMode=V.e.singleStory,o.pageIndex=o.story.pages?o.story.pages.findIndex((function(e){return e.id===o.page?.id}))+1:void 0,o.storyPlaybackMode=N.Z.getStoryPlaybackMode(i.id),o}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles?.internal,storyDisplayTitle:this.story.titles?.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages?.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page?.id,pageIndex:this.pageIndex,pageTitle:this.page?.title,pageType:this.page?.type,pageHasAction:!!this.page?.swipeUpUrl,pageActionText:this.page?.swipeUpText,pageActionUrl:this.page?.swipeUpUrl,triviaQuizId:this.quiz.id,triviaQuizTitle:this.quiz.title,triviaQuizScore:this.score,categories:this.story.categories?.map((function(e){return e.name}))||[],currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){return{storyId:this.story?.id,storyTitle:this.story.titles?.internal,storyDisplayTitle:this.story.titles?.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages?.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page?.id,pageIndex:this.pageIndex,pageTitle:this.page?.title,pageType:this.page?.type,pageHasAction:!!this.page?.swipeUpUrl,pageActionText:this.page?.swipeUpText,pageActionUrl:this.page?.swipeUpUrl,triviaQuizId:this.quiz.id,triviaQuizTitle:this.quiz.title,triviaQuizScore:this.score,categories:this.story.categories?.map((function(e){return e.name}))||[],currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),oe=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.answerId=t,a.story=n,a.page=r,a.currentCategories=i,a.activityType=P.T.votedPoll,a.alwaysSend=!0,a.storyPlaybackMode=V.e.singleStory,a.isDisabled=function(){return!d.Z.isFunctionalFeatureEnabled(K.d.pollVotes)},a.storyPlaybackMode=N.Z.getStoryPlaybackMode(n.id),a}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles?.internal,storyDisplayTitle:this.story.titles?.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,pollAnswerId:this.answerId,categories:this.story.categories?.map((function(e){return e.name}))||[],currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles?.internal,storyDisplayTitle:this.story.titles?.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,pollAnswerId:this.answerId,categories:this.story.categories?.map((function(e){return e.name}))||[],currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),se=function(e){var t=e.currentCategories,n=e.currentStory,a=e.currentPage,o=e.handleShareButtonTapped;return{getPollAnswerId:function(){var e=n.current,t=a.current,r=m.Z.polls,i=m.Z.pollAnswerMap;if(!e||!t)return``;var o=r.find((function(e){return e.engagementUnitId===t.engagementUnit.id}));return o&&i[o?.id]||``},getPollSharingText:function(){return re.getPollSharingText(n.current,a.current)},handleAnsweredQuiz:(0,i.useCallback)((function(e){var i,o,s=e.detail,c=s.quiz,l=s.questionId,u=s.answerId,d=s.score;n.current&&a.current&&(m.Z.quizAnswerMap=(0,r.pi)((0,r.pi)({},m.Z.quizAnswerMap),((i={})[a.current.id]=(0,r.pi)((0,r.pi)({},m.Z.quizAnswerMap[a.current.id]),((o={})[l]=u,o)),i)),H.Z.recordActivity(new ae(c,u,l,t,n.current,a.current)),d&&H.Z.recordActivity(new q(c,d,t,n.current,a.current)))}),[t,a,n]),handlePollVote:(0,i.useCallback)((function(e){var i;if(n.current&&a.current){var o=e.detail.pollId,s=e.detail.answerId;m.Z.pollAnswerMap=(0,r.pi)((0,r.pi)({},m.Z.pollAnswerMap),((i={})[o]=s,i)),H.Z.recordActivity(new oe(s,n.current,a.current,t))}}),[t,a,n]),handlePollsReceived:function(e){var t=e.detail.polls;m.Z.polls=(0,r.ev)([],t,!0)},handleQuizResultsShareButtonTapped:function(e){var t=e.detail.quizId,r=e.detail.score,i=e.detail.title,s=a.current===void 0?``:a.current.deepLinkInternal,c=re.formatQuizDeepLink(s,t,r),l=re.getQuizSharingText(n.current,a.current,r,i);l&&o(c,l)}}},ce,le,ue=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.reason=t,a.story=n,a.page=r,a.currentCategories=i,a.activityType=P.T.dismissedStory,a.storyPlaybackMode=N.Z.getStoryPlaybackMode(n.id),a}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,dismissedReason:this.reason,durationViewed:H.Z.storyDurationViewed,pagesViewed:H.Z.pagesViewed,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,dismissedReason:this.reason,durationViewed:H.Z.storyDurationViewed,pagesViewed:H.Z.pagesViewed,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),de=function(e){function t(t,n,r){var i=e.call(this)||this;return i.story=t,i.page=n,i.currentCategories=r,i.activityType=P.T.skippedStory,i.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),fe=function(e){function t(t,n,r){var i=e.call(this)||this;return i.story=t,i.page=n,i.currentCategories=r,i.activityType=P.T.previousStory,i.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),pe=n(3269),me=function(e){function t(t,n,r){var i=e.call(this)||this;return i.story=t,i.page=n,i.currentCategories=r,i.activityType=P.T.completedStory,i.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories)),categories:this.story.categories.map((function(e){return e.name})),categoryDetails:this.story.categories.map((function(e){return new pe.B(e)}))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories)),categories:this.story.categories.map((function(e){return e.name})),categoryDetails:this.story.categories.map((function(e){return new pe.B(e)}))}},t}(I.Z),J=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.story=t,a.page=n,a.openedReason=r,a.currentCategories=i,a.activityType=P.T.openedPage,a.alwaysSend=!0,a.isDisabled=function(){return!d.Z.isFunctionalFeatureEnabled(K.d.pageReadStatus)},a.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),a}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,openedReason:this.openedReason,
65contentLength:this.page.duration,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,openedReason:this.openedReason,contentLength:this.page.duration,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),he=function(e){function t(t,n,r){var i=e.call(this)||this;return i.story=t,i.page=n,i.currentCategories=r,i.activityType=P.T.previousPage,i.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),ge=function(e){function t(t,n,r){var i=e.call(this)||this;return i.story=t,i.page=n,i.currentCategories=r,i.activityType=P.T.skippedPage,i.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),_e=function(e){function t(t,n,r){var i=e.call(this)||this;return i.story=t,i.page=n,i.currentCategories=r,i.activityType=P.T.completedPage,i.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,contentLength:this.page.duration,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,contentLength:this.page.duration,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z);(function(e){e.manualAdvance=`manualAdvance`,e.autoAdvance=`autoAdvance`})(ce||={}),function(e){e.goToPageAction=`goToPageAction`,e.autoAdvanceTime=`autoAdvanceTime`,e.autoAdvanceMedia=`autoAdvanceMedia`,e.manualAdvance=`manualAdvance`,e.viewerSelectPage=`viewerSelectPage`,e.adAutoAdvanceTime=`adAutoAdvanceTime`,e.adAutoAdvanceMedia=`adAutoAdvanceMedia`,e.adManualAdvance=`adManualAdvance`}(le||={});var ve,Y=`/storyteller-home`,ye=function(e){var t,n,r=e.currentAd,a=e.currentStory,o=e.currentPage,s=e.currentPageId,c=e.handleAdDismissed,p=e.handlePlayerClose,m=e.hasRecentNavigationSwipe,h=e.pageOpenedReasonOverride,g=e.playerStories,_=e.previousStory,v=e.previousPage,y=e.previousPageWasAnAd,b=e.resetCurrentStoryAndPage,x=e.setCurrentStory,S=e.setCurrentPage,C=e.setCurrentPageId,w=e.setLightBoxAnimationIsEnabled,T=e.setPlayerIsLoaded,E=(0,ie.Z)().stories,D=l(),O=D.isVisible,k=D.basename,j=D.currentCategories,P=D.finalStoryIndex,F=D.listDelegate,I=D.pageId,L=D.storyId,R=D.playAllStories,U=(0,i.useRef)([]),W=(0,i.useRef)(B.T.tap),ee=(0,i.useCallback)((function(e){var t=g?.find((function(t){return t.pages.findIndex((function(t){return t.id===e}))>=0})),n=t?.pages.find((function(t){return t.id===e}));t?.id===L&&(s!==e&&C(e),t&&x(t),n&&S(n))}),[s,g,S,C,x,L]),G=(0,A.k6)(),te=(t=O,n=(0,i.useRef)(),(0,i.useEffect)((function(){n.current=t}),[t]),n),ne=(0,i.useCallback)((function(){G.push(Y);var e=new URL(window.location.href);e.hash=``,window.history.replaceState(`{}`,``,e)}),[G]),re=(0,i.useCallback)((function(e){return e&&g?g.findIndex((function(t){return t.id===e.id})):-1}),[g]),ae=(0,i.useCallback)((function(e,t){var n;t===void 0&&(t=!0),w(t),p(!0),ne(),(n=F.onPlayerDismissed)==null||n.call(F),c(e),a.current&&o.current&&H.Z.recordActivity(new ue(e,a.current,o.current,j)),b()}),[j,o,a,c,p,F,ne,b,w]);(0,i.useEffect)((function(){u.Z.on(f._.dismissPlayer,(function(e){O&&(w(e),p(!0),ne(),a.current&&o.current&&H.Z.recordActivity(new ue(z.z.instanceMethod,a.current,o.current,j)),b())}))}),[j,o,a,p,O,ne,b,w]);var q=(0,i.useCallback)((function(e){var t,n,r;if(O){var i=g&&g[e.detail.index];if(i&&g){if(!R&&i.rowIndex>P.current&&P.current>=0)ae(e.detail.playerAdvancementModeExcludingAds===ce.manualAdvance?z.z.ski
65ppedFinalPage:z.z.completedFinalPage);else if(x(i),a.current){N.Z.setStoryPlaybackMode(a.current.id,V.e.list);var s=N.Z.getStoryReadState(a.current.id);m()?(h.current=B.T.swipe,H.Z.recordActivity(new M.Z(B.T.swipe,a.current,a.current.pages[s.initialPage],j))):H.Z.storyDurationViewed>250&&H.Z.recordActivity(new M.Z(e.detail.playerAdvancementModeExcludingAds===ce.manualAdvance?B.T.tap:B.T.automaticPlayback,a.current,a.current.pages[s.initialPage],j));var c=re(_.current),l=re(a.current);!y.current&&(t=_.current)!=null&&t.id&&(n=o.current)!=null&&n.id&&l>c&&e.detail.playerAdvancementModeExcludingAds===ce.manualAdvance&&H.Z.recordActivity(new de(_.current,o.current,j)),a.current&&o.current&&(r=_.current)!=null&&r.id&&l<c&&H.Z.recordActivity(new fe(_.current,o.current,j)),G.replace(`/${k}/${a.current.id}`)}}}}),[k,ae,j,o,a,P,re,m,G,O,h,R,g,v,y,_,x]),oe=(0,i.useCallback)((function(e,t){return e.pages.findIndex((function(e){return e.id===t.id}))}),[]),se=(0,i.useCallback)((function(e){ae(e.detail.trigger===`backgroundTapped`?z.z.backgroundTapped:z.z.closeButtonTapped)}),[ae]),le=(0,i.useCallback)((function(e){e.detail.key===`Escape`&&ae(z.z.escapeKeyPressed)}),[ae]),pe=(0,i.useCallback)((function(e){if(O&&(ee(e.detail.pageId),a.current&&a.current.pages.findIndex((function(t){return t.id===e.detail.pageId}))!==-1)){if(I&&e.detail.pageId!==I)G.replace(`/${k}/${a.current.id}`);else if(T(),!r.current&&o.current){var t=oe(a.current,o.current),n=a.current.pages.length-1;if(!d.Z.isFunctionalFeatureEnabled(K.d.triviaQuizAnswers))for(var i=a.current.pages.length-1;i>=0;i--){var s=a.current.pages[i];if(s.type!==`triviaQuiz`||s.questionId){n=i;break}}t===n&&H.Z.recordActivity(new me(a.current,o.current,j)),N.Z.setPageViewed({story:a.current,page:o.current}),W.current=e.detail.playerAdvancementModeExcludingAds===ce.manualAdvance?B.T.tap:B.T.automaticPlayback,H.Z.recordActivity(new J(a.current,o.current,h.current??W.current,j)),h.current=null}}}),[k,j,o,a,oe,G,O,h,v,T,ee,te]),ve=(0,i.useCallback)((function(e){if(O){var t=e.detail,n=t.playerAdvancementModeExcludingAds,r=t.storyPageId,i=t.storyPageRealIndex,s=t.storyPreviousPageId,c=t.storyPreviousPageRealIndex;if(ee(r),a.current&&a.current.id===L&&o.current&&v.current){var l=a.current.pages.findIndex((function(e){return e.id===s}))>-1,u=l&&i>c,d=re(a.current),f=re(_.current),p=!l&&!!_.current&&f>-1&&d===f+1;l&&i===c-1&&(W.current=B.T.tap,H.Z.recordActivity(new he(a.current,v.current,j))),y.current?y.current=!1:(!u&&!p||(n!==ce.manualAdvance||h.current)&&h.current!==B.T.tap&&h.current!==B.T.swipe||(W.current=B.T.tap,H.Z.recordActivity(new ge(u?a.current:_.current,v.current,j))),(n===ce.autoAdvance&&!h.current||h.current===B.T.automaticPlayback)&&(W.current=B.T.automaticPlayback,H.Z.recordActivity(new _e(u?a.current:_.current,v.current,j))))}}}),[j,o,a,re,O,h,g,v,y,_,L,ee]),ye=(0,i.useCallback)((function(){if(E&&a.current){var e=N.Z.getStoryReadState(a.current.id).status,t=a.current?.rowIndex||-1,n=E.findIndex((function(n,r){return r>t&&N.Z.getStoryReadState(n.id).status!==e}));P.current=n>-1?n-1:t>=E.length?t:E.length-1}}),[a,P,E]);return(0,i.useEffect)((function(){return G.listen((function(e){var t;(U.current.length>=1?U.current[U.current.length-1]:``)===Y?U.current=[]:(U.current.push(e.pathname),G.action===`POP`&&!e.pathname.includes(k)&&a.current&&o.current&&((t=F.onPlayerDismissed)==null||t.call(F),c(z.z.backTapped),H.Z.recordActivity(new ue(z.z.backTapped,a.current,o.current,j))))}))}),[k,j,o,a,c,G,F]),(0,i.useEffect)((function(){var e=function(){var e;if(a.current&&o.current){(e=F.onPlayerDismissed)==null||e.call(F),c(z.z.backTapped),H.Z.recordActivity(new ue(z.z.windowUnload,a.current,o.current,j));var t=a.current.pages[a.current.pages.length-1];o.current.id!==t.id&&H.Z.recordActivity(new de(a.current,o.current,j))}};return window.addEventListener(`beforeunload`,e),function(){window.removeEventListener(`beforeunload`,e)}}),[j,o,a,c,F]),{closeStoryView:ae,handleStoryNavigation:q,handleAmpPlayerClose:se,handlePlayerKeyPressed:le,handlePageNavigation:pe,handleStoryPageVisible:ve,handleNoNextStory:function(e){return ae(e.detail.playerAdvancementModeExcludingAds===ce.manualAdvance?z.z.ski
65ppedFinalPage:z.z.completedFinalPage)},handleSetFinalStoryIndex:ye}},be=n(830),xe=function(e){var t=e.currentAd,n=e.currentPage,a=e.currentStory,o=e.hasRecentNavigationSwipe,s=e.getStoryById,c=e.previousPageWasAnAd,u=l(),f=u.currentCategories,p=u.isVisible,m=(0,i.useCallback)((function(){t.current=void 0}),[t]),h=(0,i.useCallback)((function(e){e&&t.current&&H.Z.recordActivity(new be.yF({ad:t.current,story:e,currentCategories:f}))}),[t,f]);return{handleAdActionButtonTapped:(0,i.useCallback)((function(e){a.current&&(t.current=e.detail.ad,H.Z.recordActivity(new be.Ed({ad:e.detail.ad,story:a.current,currentCategories:f})))}),[t,f,a]),handleAdComplete:(0,i.useCallback)((function(e){var t=s(e.detail.storyId);h(t),m(),t&&H.Z.recordActivity(new be.r8({ad:e.detail.ad,story:t,currentCategories:f}))}),[f,h,s,m]),handleAdDismissed:(0,i.useCallback)((function(e){a.current&&t.current&&(h(a.current),H.Z.recordActivity(new be.KS({ad:t.current,story:a.current,currentCategories:f,dismissedReason:e})),m())}),[t,f,a,h,m]),handleAdOpened:(0,i.useCallback)((function(e){if(a.current){var i=e.detail,s=i.ad,l=i.storyAdvancementMode;t.current=s,c.current=!0;var u=B.T.automaticPlayback;if(e.detail.storyAdvancementMode===le.manualAdvance&&(u=o()?B.T.swipe:B.T.tap),H.Z.recordActivity(new be.Aw({ad:s,story:a.current,currentCategories:f,openedReason:u})),n.current){var p=a.current.pages[a.current.pages.length-1];if(!d.Z.isFunctionalFeatureEnabled(K.d.triviaQuizAnswers))for(var m=0,h=(0,r.ev)([],a.current.pages,!0).reverse();m<h.length;m++){var g=h[m];if(g.type!==`triviaQuiz`||g.questionId){p=g;break}}var _=n.current.id===p.id;l===le.manualAdvance&&(H.Z.recordActivity(new ge(a.current,n.current,f)),_&&H.Z.recordActivity(new de(a.current,n.current,f))),l!==le.autoAdvanceMedia&&l!==le.autoAdvanceTime||H.Z.recordActivity(new _e(a.current,n.current,f))}}}),[t,f,n,a,o,c]),handleAdPaused:(0,i.useCallback)((function(e){a.current&&p&&H.Z.recordActivity(new be.V3({ad:e.detail.ad,story:a.current,currentCategories:f}))}),[f,a,p]),handleAdProgress:(0,i.useCallback)((function(e){if(a.current){t.current=e.detail.ad;var n={ad:e.detail.ad,story:a.current,currentCategories:f};e.detail.progressType===`firstQuartile`&&H.Z.recordActivity(new be.mp(n)),e.detail.progressType===`midpoint`&&H.Z.recordActivity(new be.ku(n)),e.detail.progressType===`thirdQuartile`&&H.Z.recordActivity(new be.C$(n))}}),[t,f,a]),handleAdResumed:(0,i.useCallback)((function(e){a.current&&p&&H.Z.recordActivity(new be.YC({ad:e.detail.ad,story:a.current,currentCategories:f}))}),[f,a,p]),handleAdSkipped:(0,i.useCallback)((function(e){var t=s(e.detail.storyId);h(t),m(),t&&p&&H.Z.recordActivity(new be.eF({ad:e.detail.ad,story:t,currentCategories:f}))}),[f,s,h,p,m])}},Se=function(e){function t(t,n,r){var i=e.call(this)||this;return i.story=t,i.page=n,i.currentCategories=r,i.activityType=P.T.shareButtonTapped,i.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z),Ce=function(e){function t(t,n,r){var i=e.call(this)||this;return i.story=t,i.page=n,i.currentCategories=r,i.activityType=P.T.shareSuccess,i.storyPlaybackMode=N.Z.getStoryPlaybackMode(t.id),i}return(0,r.ZT)(t,e),t.prototype.buildRequestContent=function(){var e=this;return{activityItemType:this.activityType,externalId:m.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,shareMethod:this.page.shareMethod,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t.prototype.buildEventData=function(){var e=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex((function(t){return t.id===e.page.id}))+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,shareMethod:this.page.shareMethod,categories:this.story.categories.map((function(e){return e.name})),currentCategory:new F.u((0,L.x)(this.story.categories,this.currentCategories))}},t}(I.Z);(function(e){e.share=`share`,e.shareMedia=`shareMedia`,e.shareLink=`shareLink`})(ve||={});var we,X=n(6595),Te=n(7068),Ee=n(1417);(function(e){e.web=`web`,e.inApp=`inApp`,e.sheet=`sheet`,e.store=`store`,e.externalApp=`externalApp`,e.none=`none`})(we||={});var De=n(1114),Oe=function(e){function t(){var t=e.call(this)||this;return t.messageType=ee.C.eventTrackingOptionsUpdated,t.data=d.Z.eventTrackingOptions,t}return(0,r.ZT)(t,e),t}(De.w),ke=function(e){function t(t){var n=t.questionOrEngagementUnitId,r=t.type,i=e.call(this)||this;return i.messageType=ee.C.resetEngagementUnitUI,i.data={questionOrEngagementUnitId:n,type:r},i}return(0,r.ZT)(t,e),t}(De.w),Ae=n(8105),je=n(9980),Me=function(e){var t=e.categories,n=e.newAmpStory,a=(0,ie.Z)(),o=a.stories,s=a.status,c=(0,i.useState)(o),p=c[0],h=c[1],g=(0,i.useState)(X.G.Idle),_=g[0],v=g[1],y=(0,i.useState)(m.Z.hasShownInstructions),b=y[0],x=y[1],S=(0,i.useState)(!1),C=S[0],w=S[1],T=(0,i.useState)(!1),E=T[0],D=T[1],O=(0,i.useState)(``),k=O[0],P=O[1],F=(0,i.useState)(!0),I=F[0],L=F[1],ae=(0,i.useState)(void 0),q=ae[0],oe=ae[1],ce=(0,A.k6)(),le=(0,A.TH)(),ue=le.pathname,de=le.search,fe=l(),pe=fe.basename,me=fe.currentCategories,J=fe.isVisible,he=fe.setLightboxVisible,ge=fe.isLightboxVisible,_e=fe.muteState,Y=fe.player,be=fe.shouldShowInstructions,De=fe.storyId,Me=fe.storiesPlayerSyncService,Ne=fe.pageId,Pe=(0,i.useMemo)((function(){return!!p&&!!De&&!p.find((function(e){return e.id===De}))&&_!==X.G.Pending&&_!==X.G.Success}),[p,_,De]),Fe=(0,i.useMemo)((function(){return!!p&&(Pe?_===X.G.Success:s===X.G.Success)}),[s,_,p,Pe]),Ie=(0,i.useRef)(),Le=(0,i.useRef)(),Re=(0,i.useRef)(),ze=(0,i.useRef)(!1),Be=(0,i.useRef)(Object.assign({},Ie.current)),Ve=(0,i.useRef)(Object.assign({},Le.current)),He=(0,i.useRef)(null),Ue=(0,i.useRef)(),We=(0,i.useCallback)((function(e,t){var n=[];if(d.Z.isFunctionalFeatureEnabled(K.d.triviaQuizAnswers)||n.push(K.d.triviaQuizAnswers),d.Z.isFunctionalFeatureEnabled(K.d.pollVotes)||n.push(K.d.pollVotes),n.length!==0){if(e){var r=(Y.current?.getStories())?.find((function(t){return new URL(t.href).pathname.includes(e.id)}
65)),i=t?.questionId||t?.engagementUnit?.id;r&&W.Z.sendMessageToChild(r.iframe,new ke({questionOrEngagementUnitId:i,type:n}))}else for(var a=0,o=Y.current?.getStories()||[];a<o.length;a++){var s=o[a];W.Z.sendMessageToChild(s.iframe,new ke({type:n}))}}}),[Y]),Ge=(0,i.useCallback)((function(e){e?.id!==Le.current?.id&&(Ve.current=Object.assign({},Le.current),Le.current=e,We(Ie.current,Ve.current))}),[We]),Ke=(0,i.useCallback)((function(e){e?.id!==Ie.current?.id&&(Be.current=Object.assign({},Ie.current),Ie.current=e,We(Be.current))}),[We]),qe=(0,i.useCallback)((function(){Ie.current=void 0,Le.current=void 0,Be.current=void 0,Ve.current=void 0}),[]),Je=(0,i.useCallback)((function(e){var t=e??!J;(t||!J)&&(ze.current=!1,ge&&t&&he(!1),v(X.G.Idle),w(!1),D(!1),Y.current&&(Y.current.pause(!0),Y.current.resetCurrentPage(),Y.current.mute()),We())}),[ge,J,Y,he,We]),Ye=(0,i.useCallback)((function(e){return p?.find((function(t){return t.id===e}))}),[p]),Xe=(0,i.useCallback)((function(){return!!Ue.current&&new Date().getTime()-Ue.current.date.getTime()<250}),[Ue]),Ze=xe({currentAd:Re,currentPage:Le,currentPageId:k,currentStory:Ie,hasRecentNavigationSwipe:Xe,getStoryById:Ye,previousPageWasAnAd:ze}),Qe=Ze.handleAdActionButtonTapped,$e=Ze.handleAdComplete,et=Ze.handleAdDismissed,tt=Ze.handleAdOpened,nt=Ze.handleAdPaused,rt=Ze.handleAdProgress,it=Ze.handleAdResumed,at=Ze.handleAdSkipped,ot=ye({currentAd:Re,currentStory:Ie,currentPage:Le,currentPageId:k,handleAdDismissed:et,handlePlayerClose:Je,hasRecentNavigationSwipe:Xe,pageOpenedReasonOverride:He,playerStories:p,previousStory:Be,previousPage:Ve,previousPageWasAnAd:ze,resetCurrentStoryAndPage:qe,setCurrentStory:Ke,setCurrentPage:Ge,setCurrentPageId:P,setLightBoxAnimationIsEnabled:L,setPlayerIsLoaded:function(){return w(!0)}}),st=ot.closeStoryView,ct=ot.handleAmpPlayerClose,lt=ot.handleStoryNavigation,ut=ot.handlePageNavigation,dt=ot.handleStoryPageVisible,ft=ot.handleNoNextStory,pt=ot.handlePlayerKeyPressed,mt=ot.handleSetFinalStoryIndex,ht=function(e){var t=e.currentStory,n=e.currentPage,r=e.setIsSharing,a=l(),o=a.currentCategories,s=a.player,c=(0,i.useCallback)((function(){var e;t.current&&n.current&&(r(!0),H.Z.recordActivity(new Se(t.current,n.current,o)),(e=s.current)==null||e.pause())}),[o,n,t,s,r]),u=(0,i.useCallback)((function(){var e;r(!1),(e=s.current)==null||e.play(),t.current&&n.current&&H.Z.recordActivity(new Ce(t.current,n.current,o))}),[o,n,t,s,r]),d=(0,i.useCallback)((function(){var e;r(!1),(e=s.current)==null||e.play()}),[s,r]),f=(0,i.useCallback)((function(e,r){if(t.current&&n.current){c();try{if(!j.Z.onShareButtonTapped)throw Error();j.Z.onShareButtonTapped(r,t.current.titles.longDisplay||t.current.titles.internal,e).then((function(){u()})).catch(d)}catch{navigator.share({text:r,title:t.current.titles.longDisplay||t.current.titles.internal,url:e}).then((function(){u()})).catch(d)}}}),[n,t,d,c,u]),p=(0,i.useCallback)((function(){if(t.current&&n.current){c();var e=t.current.titles.longDisplay||t.current.titles.internal||`Story`;fetch(n.current.background.url).then((function(e){return e.blob()})).then((function(t){var n=window.URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=e,document.body.appendChild(r),r.click(),r.remove()})).then((function(){return u()})).catch((function(e){console.error(e),d()}))}}),[n,t,d,c,u]);return{handleShare:(0,i.useCallback)((function(e,t){n.current&&(n.current.shareMethod===ve.shareMedia||n.current.shareMethod===ve.share?p():f(e,t))}),[n,f,p])}}({currentStory:Ie,currentPage:Le,setIsSharing:D}).handleShare,gt=(0,i.useCallback)((function(e){var t=e||Ie.current?.id||``,n=Y&&Y.current&&Y.current?.getStories?Y.current.getStories():[];return n?.filter((function(e){return e.href.indexOf(t)!==-1})).length?n?.filter((function(e){return e.href.indexOf(t)!==-1}))[0]:null}),[Y]),_t=(0,i.useMemo)((function(){return J&&q!==void 0&&(!q||b||!be)}),[q,b,J,be]),vt=(0,i.useCallback)((function(){var e;J&&he(!0),(e=Y.current)==null||e.removeEventListener(Te.n.storyPageNavigation,vt)}
65),[J,Y,he]),yt=(0,i.useCallback)((function(){if(Y.current){var e=(Y.current.querySelector(`.i-amphtml-story-player-shadow-root-intermediary`)?.shadowRoot)?.querySelector(`button:not([disabled])`);e&&e.focus()}}),[Y]),bt=(0,i.useCallback)((function(){Y.current&&_t&&!E&&(Y.current.play(),te.Z.isPlaybackEnabled?!1===_e.current&&Y.current.unmute():Y.current.disablePlayback())}),[E,_t,_e,Y]),xt=(0,i.useCallback)((function(){b||(u.Z.broadcastEvent(f._.readInstructions),x(!0)),bt()}),[b,bt]),St=(0,i.useCallback)((function(){return new Promise((function(e){var t=Y.current,n=function(){return e(t)};return t?.isReady?n():t?.addEventListener(Te.n.playerReady,n),function(){t?.removeEventListener(Te.n.playerReady,n)}}))}),[Y]),Ct=(0,i.useCallback)((function(){St().then((function(){var e=gt();if(e&&Y.current&&Ie.current){H.Z.storyViewStartTime=new Date;var t=N.Z.getStoryReadState(Ie.current.id);mt();var n=Ne||Ie.current.pages[t.initialPage].id;Y.current.show(e.href,n,{animate:!1});var r=`i-amphtml-iframe-position`,i=`0`,a=[];if(Y.current.getStories().forEach((function(t){var n=t.href===e.href,o=t.iframe.attributes.getNamedItem(r)?.value;n&&o!==i&&a.push(t),!n&&t.distance<=1&&o===i&&a.push(t)})),_t?bt():J||(Je(),qe()),a.length>=1){var o=new MutationObserver((function(t){t.forEach((function(){var t=a.find((function(t){return t.href===e.href})),n=!t||t.iframe.attributes.getNamedItem(r)?.value===i,s=!a.filter((function(t){return t.href!==e.href&&t.distance<=1})).map((function(e){return e.iframe.attributes.getNamedItem(r)?.value})).includes(i);n&&s&&(o.disconnect(),setTimeout((function(){w(!0)}),Ee.r))}))}));a.forEach((function(e){o.observe(e.iframe,{attributes:!0,attributeFilter:[r]})}))}else w(!0)}})).catch((function(){}))}),[St,Ne,Y,gt,mt,J,_t,bt,Je,qe]);(0,i.useEffect)((function(){var e;J?((e=Y.current)==null||e.addEventListener(Te.n.storyPageNavigation,vt),vt()):he(!1)}),[vt,ge,J,Y,he]),(0,i.useEffect)((function(){h(o)}),[o]),(0,i.useEffect)((function(){var e=function(e){Y.current&&(Y.current.contains(e.target)||yt())};return _t?(yt(),document.addEventListener(`focusin`,e)):document.removeEventListener(`focusin`,e),function(){document.removeEventListener(`focusin`,e)}}),[yt,_t,Y]),(0,i.useEffect)((function(){if(window.AmpStoryPlayer&&!Y.current?.isReady&&p){new window.AmpStoryPlayer(window,Y.current);var e=Y.current;e?.load(),St().then((function(e){Me.playerStories=e.getStories()})).catch((function(){}));var t=function(e){Me.updatePlayerStory(e.detail.story)};return e?.addEventListener(Te.n.playerStoryPagesAppended,t),function(){e?.removeEventListener(Te.n.playerStoryPagesAppended,t)}}}),[St,Y,p,Me]),(0,i.useEffect)((function(){u.Z.on(f._.playbackEnabled,(function(){_t&&Y.current&&Y.current.enablePlayback()}))}),[_t,Y]),(0,i.useEffect)((function(){u.Z.on(f._.playbackDisabled,(function(){Y.current&&Y.current.disablePlayback()}))}),[Y]);var wt=(0,i.useCallback)((function(e,t){for(var n,r,i=0,a=e;i<a.length;i++){var o=a[i],s=o.pages.filter((function(e){return e.type===`triviaQuiz`})).find((function(e){return!e.questionId}));s&&(t?(n=Y.current)==null||n.enablePage(o.id,s.id):((r=Y.current)==null||r.disablePage(o.id,s.id),N.Z.removeStoryQuizResultPage(o,s.id)))}}),[Y]);(0,i.useEffect)((function(){u.Z.on(f._.eventTrackingOptionsUpdated,(function(){var e;(e=Y.current)==null||e.getStories().forEach((function(e){return W.Z.sendMessageToChild(e.iframe,new Oe)}))}))}),[Y]),(0,i.useEffect)((function(){p&&wt(p,d.Z.isFunctionalFeatureEnabled(K.d.triviaQuizAnswers)),u.Z.on(f._.eventTrackingOptionsUpdated,(function(){p&&wt(p,d.Z.isFunctionalFeatureEnabled(K.d.triviaQuizAnswers))}))}),[wt,Y,p]),(0,i.useEffect)((function(){u.Z.on(f._.readInstructions,(function(){x(!0)}))}),[]),(0,i.useEffect)((function(){_t&&bt()}),[bt,_t]),(0,i.useEffect)((function(){u.Z.on(f._.storyStatusUpdate,(function(e){var t,n=Ye(e.storyId)?.pages[e.newStoryReadState.initialPage].id;n&&((t=Y.current)==null||t.updateStoryInitialPageId(e.storyId,n))}))}),[Ye,Y]),(0,i.useEffect)((function(){if(De&&J&&Fe){var e=new URLSearchParams(de).get(`openedReason`)===B.T.storyListTap;oe(e),Me.ifStoryIsSynced(De,(function(){var t=Ye(De);if(t){H.Z.storyViewStartTime=new Date;var n=N.Z.getStoryReadState(t.id);if(e)He.current=B.T.storyListTap,ce.replace({pathname:ue,search:``});else if(N.Z.setStoryPlaybackMode(t.id,V.e.singleStory),H.Z.storyDurationViewed<250){var r=n.initialPage,i=t.pages.findIndex((function(e){return e.id===Ne}));i>-1&&(r=i),He.current=B.T.deepLink,H.Z.recordActivity(new M.Z(B.T.deepLink,t,t.pages[r],me))}}}))}}),[me,Ye,J,p,Fe,Me]),(0,i.useEffect)((function(){J&&Fe&&(Ke(Ye(De||``)),Y&&Y.current&&Ie.current&&Ct())}),[Ye,J,Y,Fe,Ke]),(0,i.useEffect)((function(){if(J&&Pe){if(De&&o?.find((function(e){return e.id===De})))return h(o),void v(X.G.Success);v(X.G.Pending),(0,r.mG)(void 0,void 0,void 0,(function(){var e,t,i,a,o,s,c,l;return(0,r.Jh)(this,(function(u){switch(u.label){case 0:e=function(){v(X.G.Idle),ce.push(`/`)},u.label=1;case 1:return u.trys.push([1,3,,4]),[4,G.Z.loadStoryById(De)];case 2:return(t=u.sent())?(i=(0,r.pi)((0,r.pi)({},t),{rowIndex:p?p.length:0}),N.Z.setStoryPlaybackMode(i.id,V.e.singleStory),h((function(e){return e?(0,r.ev)((0,r.ev)([],e,!0),[i],!1):[i]})),a=n(i),(l=Y.current)==null||l.add([a]),o=N.Z.getStoryReadState(i.id),Ke(i),Ge(i.pages[o.initialPage]),v(X.G.Success),s=(0,A.Gn)(`/:basename/:storyId`,{basename:pe,storyId:i.id}),ce.replace(s)):e(),[3,4];case 3:return c=u.sent(),console.error(c),e(),[3,4];case 4:return[2]}}
65))}))}}),[pe,o,ce,Y,p,h,Pe,De,n,J,Ke,Ge]);var Tt=(0,i.useCallback)((function(){var e;if(Ie.current&&Le.current){var n=Le.current,r=n.action,i=n.swipeUpType,a=n.swipeUpUrl;H.Z.recordActivity(new R(Ie.current,Le.current,me)),i===we.inApp&&a&&((e=j.Z.userNavigatedToApp)==null||e.call(j.Z,a)),r&&function(e){var t=e.action,n=e.categories,r=e.closeStoryView,i=e.currentStoryId,a=e.goToStory,o=e.playerStories;if((0,je.Yz)(t)){if(i===t.storyId)return;(o||[]).findIndex((function(e){return e.id===t.storyId}))>=0?a?.(t.storyId,0,{animate:!0}):Ae.Z.openStory({id:t.storyId});return}if((0,je.H5)(t)){if(n.length===1&&n[0]===t.storyCategoryId||n.length===0&&!t.storyCategoryId)return;r(),Ae.Z.openCategory(t.storyCategoryId);return}if((0,je.MI)(t))return r(),void Ae.Z.openClipById(t.clipId);(0,je.JB)(t)&&(r(),Ae.Z.openCollection(t.clipCollectionId))}({action:r,categories:t,closeStoryView:function(){return st(z.z.windowUnload)},currentStoryId:Ie.current?.id,goToStory:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=Y.current)?.go.apply(e,t)},playerStories:p})}}),[t,st,me,Y,p]),Et=(0,i.useRef)([]),Dt=(0,i.useCallback)((function(e){if(e.detail.isNavigationalSwipe){var t=Et.current[0]-Et.current[Et.current.length-1];if(Math.abs(t)<50)return;Ue.current={direction:t<0?`right`:`left`,date:new Date},p&&Ie.current&&Le.current&&Ue.current.direction===`left`&&Ie.current.rowIndex===p.length-1?st(z.z.swipedFinalStory):Ie.current&&Le.current&&Ue.current.direction===`right`&&Ie.current.rowIndex===0&&st(z.z.swipedFirstStory)}Et.current=[]}),[st,Ue,p]),Ot=(0,i.useCallback)((function(e){e.persisted&&J&&window.location.reload()}),[J]),kt=se({currentCategories:me,currentStory:Ie,currentPage:Le,handleShareButtonTapped:ht}),At=kt.getPollAnswerId,jt=kt.getPollSharingText,Mt=kt.handleAnsweredQuiz,Nt=kt.handlePollVote,Pt=kt.handlePollsReceived,Ft=kt.handleQuizResultsShareButtonTapped,It=(0,i.useCallback)((function(){if(Le.current){var e=``,t=``;Le.current.type===ne.G.poll?(e=re.formatPollDeepLink(Le.current.deepLinkInternal,At()),t=jt()):e=Le.current.deepLinkInternal,ht(e,t)}}),[Le,At,jt,ht]);return(0,U.Z)(Te.n.storyNavigation,lt,Y),(0,U.Z)(Te.n.playerKeyPress,pt,Y,C),(0,U.Z)(Te.n.storyPageNavigation,ut,Y),(0,U.Z)(Te.n.storyPageVisible,dt,Y,k),(0,U.Z)(Te.n.playerNoNextStory,ft,Y),(0,U.Z)(Te.n.storyPageAttachmentOpen,Tt,Y,k),(0,U.Z)(Te.n.playerClose,ct,Y,k),(0,U.Z)(Te.n.playerShareButtonTapped,It,Y),(0,U.Z)(Te.n.playerTouchEnd,Dt,Y),(0,U.Z)(Te.n.playerTouchMove,(function(e){Et.current=(0,r.ev)((0,r.ev)([],Et.current,!0),e.detail.touches.map((function(e){return e.screenX})),!0)}),Y),(0,U.Z)(Te.n.storyMutedState,(function(e){_e.current=e.detail.muted}),Y),(0,U.Z)(Te.n.storyPageShow,Ot),(0,U.Z)(ee.C.votedPoll,Nt),(0,U.Z)(ee.C.shareButtonTapped,Ft),(0,U.Z)(ee.C.answeredQuiz,Mt),(0,U.Z)(ee.C.pollsReceived,Pt),(0,U.Z)(ee.C.playerControl,(function(e){var t=e.detail,n=t.operation,r=t.openedReason;if(Y.current){if(r&&(He.current=r),n===`play`)Y.current.play();else if(n===`pause`)Y.current.pause();else if(n===`go-to-next-page`)Y.current.go(0,1);else if(n===`go-to-next-page-or-story`){var i=Ie.current?.pages||[];i.findIndex((function(e){return e.id===Le.current?.id}))===i.length-1?Y.current.go(1,0):Y.current.go(0,1)}}else console.error(`!!! No player.current set in handlePlayerControls`)})),(0,U.Z)(Te.n.storyAdView,tt,Y,k),(0,U.Z)(Te.n.storyAdClick,Qe,Y,k),(0,U.Z)(Te.n.storyAdComplete,$e,Y,k),(0,U.Z)(Te.n.storyAdSkipped,at,Y,k),(0,U.Z)(Te.n.storyAdPaused,nt,Y,k),(0,U.Z)(Te.n.storyAdProgress,rt,Y,k),(0,U.Z)(Te.n.storyAdResumed,it,Y,k),{canShowInstructions:q,closeStoryView:st,isLightboxVisible:ge,handleInstructionsRead:xt,hasShownInstructions:b,lightBoxAnimationIsEnabled:I,player:Y,playerIsLoaded:C,playerStories:p,playerStoriesAreReady:Fe}},Ne=n(5259),Pe=n(791),Fe=`lightbox-TzQVTy`,Ie=`isIOS-Pni0Hn`,Le=`animated-j21IR0`,Re=`closed-JZRi-p`,ze=`storytellerPlayer-19WHsz`,Be=`loadingSpinner-lI89Zg`,Ve=n(5690),He=n(1554),Ue=n(4779),We=n(1462),Ge=function(e){var t=e.categories,n=e.cellType,r=e.initialPageId,i=e.story,a=e.textDirection,o=a===void 0?g.m5.ltr:a,s=e.uiTheme,c=e.uiStyle,l=e.useGoogleWebStoryUrls;if(this.title=i.titles.longDisplay||i.titles.internal,this.posterImage=i.thumbnailUrl,l&&i.googleWebStoryUrl)this.href=i.googleWebStoryUrl;else{var u=h.Z.toSerializableTheme(s,h.G.Stories),f=(0,p.n1)({categories:t,story:i}),_=new URLSearchParams({autoplay:`1`,cellType:n,textDirection:o,eventTrackingOptions:JSON.stringify(d.Z.eventTrackingOptions),userId:m.Z.userId||``,inAppActionsHaveCustomBehaviour:(!!j.Z.userNavigatedToApp).toString(),storyId:i.id,sortIndex:i.rowIndex.toString(),"x-storyteller-api-key":m.Z.apiKey||``,adConfig:(0,p.Ev)(f)?(0,p.M)(f,m.Z.settings?.ads.stories):``,theme:JSON.stringify(u),uiStyle:c});if(d.Z.eventTrackingOptions.enablePersonalization)for(var v=0,y=Object.entries(Ve.Z.getUserAttributes());v<y.length;v++){var b=y[v],x=b[0],S=b[1];_.append(`userAttributes[${x}]`,S)}if(t){var C=t.join(`,`);_.append(`categories`,C)}var w=N.Z.getStoryReadState(i.id),T=r||i.pages[w.initialPage]?.id||i.pages[0]?.id,E=Ue.Z.get(Ue.d.ampEnvironment),D=Ue.Z.get(Ue.d.webSdkEnvironment);if(E===`local`||D===`local`||m.Z.environment&&m.Z.environment!==We.q.production){var O=function(){var e=Ue.Z.get(Ue.d.webSdkEnvironment)||`staging`,t=Ue.Z.get(Ue.d.ampEnvironment)||`staging`,n=new URLSearchParams({webSdkEnvironment:e,ampSdkEnvironment:t});if(e!==`local`){var r=Ue.Z.get(Ue.d.webSdkVersion)||He.q4;n.append(`webSdkVersion`,r)}if(t!==`local`){var i=Ue.Z.get(Ue.d.ampVersion)||He.qS;n.append(`ampVersion`,i)}return n}();this.href=`${i.webStoryUrl}?${O.toString()}&${_.toString()}${T?`#page=${T}`:``}`}else _.append(`webSdkVersion`,He.q4),_.append(`ampVersion`,He.qS),this.href=`${i.webStoryUrl}?${_.toString()}${T?`#page=${T}`:``}`}},Ke=n(9628),qe=i.createElement(`div`,{className:Be},i.createElement(`div`,null),i.createElement(`div`,null),i.createElement(`div`,null),i.createElement(`div`,null)),Je=function(e){var t,n=e.cellType,o=e.uiStyle,c=e.useGoogleWebStoryUrls,y=e.viewId,b=(0,r._T)(e,[`cellType`,`uiStyle`,`useGoogleWebStoryUrls`,`viewId`]),x=l().pageId,S=(0,v.F)(),C=(0,i.useRef)(null),w=(0,i.useCallback)((function(){return(0,g.Ux)(b.rootElement)}),[b.rootElement]),T=JSON.stringify({behavior:{autoplay:!1,pageScroll:!1,playAllStories:!d.Z.eventTrackingOptions.enableFunctionalCookies||b.playAllStories},controls:[{name:`share`,position:`end`,visibility:window.navigator.share&&S.player.showShareButton&&!S.player.disableUrls?`visible`:`hidden`},{name:`close`,position:`end`}],display:{icon:!!S.player.showStoryIcon&&`visible`,actionButtonVisibility:S.player.actionButton.showOnMobile?`visible`:`desktop`,actionButtonPosition:S.player.actionButton.alignment??Ke.R.right}}),E=function(e){return new Ge({categories:b.categories,cellType:n,initialPageId:x,story:e,textDirection:w(),uiTheme:b.uiTheme,uiStyle:o,useGoogleWebStoryUrls:c})},D=Me({categories:b.categories,newAmpStory:E}),O=D.canShowInstructions,A=D.closeStoryView,j=D.handleInstructionsRead,M=D.hasShownInstructions,N=D.isLightboxVisible,P=D.lightBoxAnimationIsEnabled,F=D.player,I=D.playerIsLoaded,L=D.playerStories,R=D.playerStoriesAreReady;(0,i.useEffect)((function(){C.current&&h.Z.setDocumentStyle({element:C.current,id:`lightbox-theme-${y||`stories`}`,playerType:h.G.Stories,selector:`.${Fe}`,theme:S}
65)}),[L,S,y]);var B=(0,i.useMemo)((function(){return P&&!a.tq}),[P]),V=function(e){var t=e.isLightboxVisible,n=e.lightbox,r=e.lightboxShouldAnimate,a=e.playerStories,o=(0,i.useRef)(null),s=(0,i.useRef)(!1),c=(0,Ne.l)({isLightboxVisible:t,lightbox:n}),l=c.lightboxHasCorrectHeight,u=c.setLightboxHeightStatus;return(0,i.useEffect)((function(){var e=o.current,i=n.current;if(i)return e&&clearTimeout(e),t?(i.style.display=`block`,s.current||u(Ne.P.Incorrect),s.current=!0,setTimeout((function(){i.classList.remove(Re),i.classList.add(Pe.dO)}),25)):(s.current=!1,i.classList.add(Re),i.classList.remove(Pe.dO),r?o.current=setTimeout((function(){i.style.display=`none`,o.current=null}),Ee.r):i.style.display=`none`),function(){e&&clearTimeout(e)}}),[t,n,r,a,u]),{lightboxHasCorrectHeight:l}}({isLightboxVisible:N,lightbox:C,lightboxShouldAnimate:B,playerStories:L}).lightboxHasCorrectHeight;(function(e,t,n){var r=(0,i.useRef)({scaleVal:1,scalingDown:!1,toggleThresholdPx:60,deltaY:0,isSwipeY:null,touchStartX:0,touchStartY:0});if((0,U.Z)(Te.n.playerTouchStart,(function(t){var n;(n=e.current)==null||n.classList.add(`dragging`),r.current.touchStartX=t.detail.touches[0].screenX,r.current.touchStartY=t.detail.touches[0].screenY}),t),(0,U.Z)(Te.n.playerTouchMove,(function(t){if(e.current){var n=t.detail.touches[0],i=n.screenX,o=n.screenY;r.current.isSwipeY===null&&(r.current.isSwipeY=Math.abs(r.current.touchStartY-o)>Math.abs(r.current.touchStartX-i)),!1!==r.current.isSwipeY&&(r.current.deltaY=r.current.touchStartY-o,r.current.deltaY>0||(r.current.scalingDown||(r.current.scalingDown=!0,a(0)),r.current.isSwipeY=!0,e.current.style.transform=`translate3d(0, ${(-r.current.deltaY)**.6}px, 0) scale3d(${r.current.scaleVal}, ${r.current.scaleVal}, 1)`))}}),t),(0,U.Z)(Te.n.playerTouchEnd,(function(){var t;o(),(t=e.current)==null||t.classList.remove(`dragging`),!0===r.current.isSwipeY&&r.current.deltaY<0&&Math.abs(r.current.deltaY)>r.current.toggleThresholdPx?c():!0===r.current.isSwipeY&&s(),r.current.isSwipeY=null}),t),e)var a=function(t){var n,i;e.current&&t<1&&r.current.scalingDown&&(r.current.scaleVal=(i=t,1*(1-(n=--i*i*i+1))+.95*n),e.current.style.transform=`translate3d(0px, ${(-r.current.deltaY)**.6}px, 0) scale3d(${r.current.scaleVal}, ${r.current.scaleVal}, 1)`,requestAnimationFrame((function(){return a(t+=.05)})))},o=function(){r.current.scalingDown=!1,r.current.scaleVal=1},s=function(){e.current&&(e.current.style.transform=`translate3d(0, 0, 0) scale3d(1, 1, 1)`)},c=function(){n(z.z.swipedDown,!1),s()}})(C,F,A);var H=(0,i.useMemo)((function(){return V&&I&&R}),[V,I,R]);if((0,i.useEffect)((function(){u.Z.on(f._.getAdConfigUpdated,(function(){L?.forEach((function(e){var t,n=(0,p.n1)({categories:b.categories,story:e}),r=(0,p.Ev)(n)?(0,p.M)(n,m.Z.settings?.ads.stories):``;(t=F.current)==null||t.updateStoryAdConfig(e.id,r)}))}))}),[F,L,b.categories]),(0,i.useEffect)((function(){u.Z.on(f._.userNavigatedToAppUpdated,(function(e){var t;(t=F.current)==null||t.setInAppActionsHaveCustomBehaviour(e)}))}),[F]),!L)return null;var W=w();return i.createElement(`div`,{className:s()(Fe,(t={},t[Le]=B,t[Ie]=a.gn,t)),dir:W,ref:C,style:{"--lightbox-animation-duration":`${Ee.r}ms`}},qe,i.createElement(`amp-story-player`,{class:ze,dir:W,ref:F,key:L.map((function(e){return`${e.id}`})).join(),style:{opacity:+!!H,visibility:H?`visible`:`hidden`}},i.createElement(_.Xf,{type:`application/json`},T),L&&L.map((function(e){var t=E(e);return i.createElement(`a`,{href:t.href,key:e.id,"data-story-title":t.title},i.createElement(_.Ee,{src:t.posterImage,loading:`lazy`,width:`320`,height:`480`,"data-amp-story-player-poster-img":!0}))}))),O&&i.createElement(k,{hasShownInstructions:M,handleInstructionsRead:j}))}},6916:function(e,t,n){n.d(t,{Z:function(){return ee}});var r=n(7582),i=n(9748),a=n(1462),o=n(7814),s=n(1554),c=n(2434),l=n(7112),u=n(647),d=n(2357),f=n(2173),p=n(8105),m=n(3914),h=n(6661),g=n(4779),_=n(2385),v=n(1016),y=function(e){function t(){var n=e.call(this,`InitializationError - Unable to load settings.`)||this;return Object.setPrototypeOf(n,t.prototype),n}return(0,r.ZT)(t,e),t}(Error),b=function(e){function t(){var n=e.call(this,`InvalidApiKeyError - The API Key provided was invali
65d`)||this;return Object.setPrototypeOf(n,t.prototype),n}return(0,r.ZT)(t,e),t}(Error),x=function(e){function t(){var n=e.call(this,`NetworkError - Problem with getting the data from network.`)||this;return Object.setPrototypeOf(n,t.prototype),n}return(0,r.ZT)(t,e),t}(Error),S=function(e){function t(){var n=e.call(this,`NetworkTimeoutError - Ensure the device has access to network.`)||this;return Object.setPrototypeOf(n,t.prototype),n}return(0,r.ZT)(t,e),t}(Error),C=n(956),w=n(3441),T=n(355),E=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.shouldPersonalize=!1,t.endpoint=`settings/settings/default`,t.method=T.w.get,t}return(0,r.ZT)(t,e),t}(w.I),D=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`SettingsApiService`,t}return(0,r.ZT)(t,e),t.prototype.requestSettings=function(){return(0,r.mG)(this,void 0,void 0,(function(){var e,t,n;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:e=new E,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,_.Z.executeCommand(e)];case 2:if(t=r.sent(),h.Z.settings=t,!t)throw new y;return[3,4];case 3:throw n=r.sent(),this.logError(n.toString()),n instanceof v.G?n.status===401||n.status===404?new b:n.status===408?new S:new x:new x;case 4:return[2]}}
65))}))},t.sharedInstance=new t,t}(C.b).sharedInstance,O=n(4637),k=n(373),A=n(791),j=n(6008),M=n(1143),N=n(1417),P=n(6595),F=function(e){function t(t,n){var r=e.call(this)||this;r.logTag=`StorytellerStoriesDefaultView`,r.isDefaultView_=!0,r.playerShouldBeAppendedToDOM_=!0,r.storiesShouldPreload_=!0,r.useGoogleWebStoryUrls_=!1;var i=document.getElementById(A.c$);return i||(i=document.createElement(`div`),document.body.appendChild(i)),p.Z.hasActiveDefaultStoriesView=!0,r.listViewService_.basename=A.c$,r.playerContainerEl_=i,r.storyId_=t,n&&(r.listViewService_.categories=[n]),r.initializeListView(),r}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"listConfiguration",{get:function(){return{basename:this.basename,categories:[],displayLimit:1,preload:!0,theme:this.theme_,uiStyle:f.Z.uiStyle}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"memoryRouterProps_",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldShowInstructions",{get:function(){return f.Z.currentTheme.instructions.show}
65,enumerable:!1,configurable:!0}),t.prototype.initialize=function(){this.loadStories({retrieve:!0})},t.prototype.loadStories=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var n,i,a,o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:e.prototype.loadStories.call(this),r.label=1;case 1:return r.trys.push([1,6,,7]),n=[],this.listViewService_.categories.length>0?[4,j.Z.loadStories(this.listViewService_.categories,t)]:[3,3];case 2:return i=r.sent(),n=i.stories,[3,5];case 3:return[4,j.Z.loadStoryById(this.storyId_,t)];case 4:if(!(a=r.sent()))throw Error(`Story null`);n=[a],r.label=5;case 5:return this.onStoriesLoadSuccess({stories:n,enableReadUnreadOrdering:!1,theme:A.Hs}),[3,7];case 6:return o=r.sent(),this.onStoriesLoadFailure(o),[3,7];case 7:return[2]}}))}))},t.prototype.onStoriesLoadSuccess=function(e){this.stories=e.stories,this.listViewService_.loadingState=P.G.Success,this.renderPlayer()},t.prototype.onStoriesLoadFailure=function(t){e.prototype.onStoriesLoadFailure.call(this,t),this.stories=[],this.listViewService_.loadingState=P.G.Error},t.prototype.registerListView=function(){},t.prototype.renderStoryteller=function(){this.renderPlayer()},t.prototype.updatePlayerVisibility=function(t){var n=this;e.prototype.updatePlayerVisibility.call(this,t),t||this.listViewService_.isDisabled||(p.Z.hasActiveDefaultStoriesView=!1,this.listViewService_.disable(),setTimeout((function(){n.playerContainerEl_.remove()}),N.r))},t}(M.Z),I=n(7942),L=n(9420),R=n(8949),z=function(e){function t(t){var n=e.call(this)||this;n.logTag=`StorytellerClipsDefaultView`,n.isDefaultView_=!0,n.useGoogleWebStoryUrls_=!1;var r=document.createElement(`div`);return document.body.appendChild(r),p.Z.hasActiveDefaultClipsView=!0,n.listViewService_.basename=A.xM,n.listViewService_.collection=t,n.playerContainerEl_=r,n.clipsNavService=new L.ZP(t),n.initializeListView(),n}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"listConfiguration",{get:function(){return{collection:this.listViewService_.collection,displayLimit:1,theme:this.theme_,uiStyle:f.Z.uiStyle}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"memoryRouterProps_",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.onClipsLoadSuccess=function(t){e.prototype.onClipsLoadSuccess.call(this,t),this.renderStoryteller()},t.prototype.loadClips=function(t){return(0,r.mG)(this,void 0,void 0,(function(){var n,i;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:if(!this.listViewService_.collection)return[2];e.prototype.loadClips.call(this),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,R.Z.loadClips(this.listConfiguration.collection,t)];case 2:return n=r.sent(),this.onClipsLoadSuccess(n),[3,4];case 3:return i=r.sent(),this.onClipsLoadFailure(i),[3,4];case 4:return[2]}}
65))}))},t.prototype.initialize=function(){this.loadClips({retrieve:!0})},t.prototype.registerListView=function(){},t.prototype.renderStoryteller=function(){this.renderPlayer()},t.prototype.onPlayerClose_=function(){p.Z.hasActiveDefaultClipsView=!1,this.playerContainerEl_.remove(),this.listViewService_.disable()},t}(I.Z),B=n(6550),V=n(3727),H=function(e){var t=e.memoryRouterProps,n=e.onRouteMatch;return t?i.default.createElement(B.VA,(0,r.pi)({},t),i.default.createElement(U,{memoryRouterProps:t,onRouteMatch:n})):i.default.createElement(V.UT,{hashType:`noslash`},i.default.createElement(U,{memoryRouterProps:t,onRouteMatch:n}))},U=function(e){var t=e.onRouteMatch,n=(0,B.TH)().search,r=(0,B.$B)(`/stories/:storyId`),a=(0,B.$B)(`/clips/:collectionId/:clipId?`),o=(0,i.useRef)(!1),s=(0,i.useRef)(!1);return(0,i.useEffect)((function(){if(r&&!o.current){var e=new URLSearchParams(n).get(`categoryId`);o.current=!0,t({categoryId:e,storyId:r.params.storyId})}r||(o.current=!1)}),[n,r,t]),(0,i.useEffect)((function(){a&&!s.current&&(s.current=!0,t({collectionId:a.params.collectionId,clipId:a.params.clipId})),a||(s.current=!1)}),[a,t]),null},W=n(1736),ee=function(){function e(){this.version=s.q4,this._isInitialized=!1}return Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPlayerVisible",{get:function(){return O.Z.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"delegate",{get:function(){return W.Z.getInstance()},set:function(e){W.Z.setDelegate(e),e.getAdConfig&&l.Z.broadcastEvent(u._.getAdConfigUpdated),l.Z.broadcastEvent(u._.userNavigatedToAppUpdated,!!e.userNavigatedToApp)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return f.Z.theme},set:function(e){f.Z.theme=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"customInstanceHost",{set:function(e){h.Z.customInstanceHost=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTheme",{get:function(){return f.Z.currentTheme},enumerable:!1,configurable:!0}),e.prototype.initialize=function(e,t){return t===void 0&&(t={}),(0,r.mG)(this,void 0,void 0,(function(){var n,i,s,l,u,d,m;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return e||this._isInitialized?(i=g.Z.get(g.d.customEnvironment),s=null,c.A||(l=document.querySelector(`meta[name="environment"]`))&&(s=l.getAttribute(`content`)??``),u=s??i??`production`,d=h.Z.apiKey!==e,h.Z.environment=a.q[u],h.Z.apiKey=e,[4,this.setUserDetails(t,d)]):(n=`Storyteller couldn't be initialized because no API key was provided.`,k.Z.logError(n),[2,Promise.reject(n)]);case 1:return r.sent(),this.setStorytellerStyles_(),c.A||(this.theme=new o.V,p.Z.getViewportMinimumScaleToRestore(),(m=window.matchMedia(`(prefers-color-scheme: dark)`)).addEventListener&&m.addEventListener(`change`,(function(){return f.Z.buildTheme()}))),this._isInitialized||this._isInitialized?(k.Z.logWarning(`Storyteller has already been initialized. Reusing the existing instance.`),[2,Promise.resolve()]):[4,D.requestSettings()];case 2:return r.sent(),this._isInitialized=!0,this.renderStorytellerRouter_(),[2]}}))}))},Object.defineProperty(e.prototype,"eventTrackingOptions",{get:function(){return m.Z.eventTrackingOptions},set:function(e){m.Z.eventTrackingOptions=e},enumerable:!1,configurable:!0}),e.prototype.enablePlayback=function(){O.Z.enablePlayback()},e.prototype.disablePlayback=function(){O.Z.disablePlayback()},e.prototype.dismissPlayer=function(e){l.Z.broadcastEvent(u._.dismissPlayer,e)},e.prototype.enableEventTracking=function(){m.Z.eventTrackingOptions={disabledFunctionalFeatures:[],enableAdTracking:!0,enableFullVideoAnalytics:!0,enableFunctionalCookies:!0,enablePersonalization:!0,enableRemoteViewingStore:!0,enableUserActivityTracking:!0,enableStorytellerTracking:!0}},e.prototype.disableEventTracking=function(){m.Z.eventTrackingOptions={disabledFunctionalFeatures:[],enableAdTracking:!0,enableFullVideoAnalytics:!0,enableFunctionalCookies:!0,enablePersonalization:!0,enableRemoteViewingStore:!0,enableUserActivityTracking:!0,enableStorytellerTracking:!1}},e.prototype.enableLogging=function(){k.Z.enableLogging()},e.prototype.setUserDetails=function(e,t){return t===void 0&&(t=!1),(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return m.Z.eventTrackingOptions.enableRemoteViewingStore?e.externalId===void 0?[3,2]:[4,h.Z.setUserId(e.externalId)]:[2,h.Z.deleteStoredUserId()];case 1:case 3:case 5:return[2,n.sent()];case 2:return h.Z.storedUserId&&!t?[3,4]:[4,h.Z.setUserId(d.i.newGuid())];case 4:return[4,h.Z.ensureUserIdIsHashed()]}}))}))},Object.defineProperty(e.prototype,"currentUserId",{get:function(){return``}
65,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentApiKey",{get:function(){return h.Z.apiKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uiStyle",{get:function(){return f.Z.uiStyle},enumerable:!1,configurable:!0}),e.prototype.openStory=function(e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return[2,p.Z.openStory({id:e})]}))}))},e.prototype.openStoryByExternalId=function(e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return[2,p.Z.openStory({externalId:e})]}))}))},e.prototype.openPage=function(e){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(t){return[2,p.Z.openPage(e)]}))}))},e.prototype.openCategory=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,p.Z.openCategory(e,t)]}))}))},e.prototype.openCollection=function(e,t,n){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(r){return[2,p.Z.openCollection(e,t,n)]}))}))},e.prototype.openClip=function(e,t){p.Z.openClip(e,t)},e.prototype.openClipByExternalId=function(e,t){return(0,r.mG)(this,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){return[2,p.Z.openClipByExternalId(e,t)]}))}))},e.prototype.setStorytellerStyles_=function(){if(!c.A&&!document.documentElement.hasAttribute(`amp-version`)){var e=`storyteller-sdk-styles`,t=document.documentElement.querySelector(`#${e}`);t||((t=document.createElement(`style`)).id=e),t.innerHTML=`
66      html:has(.${A.dO}),
67      html.i-amphtml-fie > body:has(.${A.dO}),
68      html.i-amphtml-singledoc > body:has(.${A.dO}),
69      body:has(.${A.dO}) {
70        overflow: hidden !important;
71        --storyteller-row-overflow: hidden;
72      }
73      /*@ sourceURL=${e}.css */`;var n=document.documentElement.querySelector(`head`);n?n.prepend(t):document.documentElement.prepend(t)}},e.prototype.renderStorytellerRouter_=function(){if(!c.A){var e=document.createElement(`div`);document.body.appendChild(e),i.render(i.createElement(H,{memoryRouterProps:null,onRouteMatch:function(e){if(function(e){return`storyId`in e}(e)){var t=e.categoryId,n=e.storyId,r=p.Z.storiesViewWithDefaultBasename;r?r.whenLoaded((function(){!t&&(r.stories||[]).findIndex((function(e){return e.id===n}))>-1||t&&r.categories.length===1&&r.categories[0]===t||new F(n,t)})):new F(n,t);return}var i=e.collectionId,a=p.Z.clipsViewWithDefaultBasename;a?a.whenLoaded((function(){a.collection!==i&&new z(i)})):new z(i)}}),e)}},e.sharedInstance=new e,e}().sharedInstance},2173:function(e,t,n){var r=n(7582),i=n(956),a=n(2434),o=n(1508),s=n(7112),c=n(647),l=n(6940),u=n(4539);t.Z=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`StorytellerThemeService`,t.uiStyle=u.V.auto,t}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"currentTheme",{get:function(){return this.currentTheme_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.theme_},set:function(e){this.theme_=e,this.buildTheme()},enumerable:!1,configurable:!0}),t.prototype.buildTheme=function(){if(this.currentTheme_=new o.V(l.Z.prefersDarkMode(this.uiStyle),this.theme_).build(),!a.A){var e=document.documentElement.hasAttribute(`amp-version`);l.Z.setDocumentStyle({element:document.documentElement,id:`theme`,playerType:e?l.G.Stories:l.G.None,selector:`:root`,theme:this.currentTheme_}),s.Z.broadcastEvent(c._.themeUpdated)}},t.sharedInstance=new t,t}(i.b).sharedInstance},5690:function(e,t,n){var r=n(7582),i=n(956),a=n(4779),o=n(3914);t.Z=function(e){function t(){var t=e.call(this)||this;return t.logTag=`UserPropertiesService`,t}return(0,r.ZT)(t,e),t.prototype.getUserAttributes=function(){return a.Z.get(a.d.userAttributes)||{}},t.prototype.getUserAttribute=function(e){return this.getUserAttributes()[e]},t.prototype.setUserAttribute=function(e,t){if(!e||!t)throw Error(`Key and value are required when setting user attributes`);if(o.Z.eventTrackingOptions.enablePersonalization){var n=this.getUserAttributes();return n[e]=t,a.Z.add(a.d.userAttributes,n),!!this.getUserAttributes()[e]||-1}this.logWarning(`User attributes are not being stored because eventTrackingOptions.enablePersonalization is false`)},t.prototype.setLocale=function(e){this.setUserAttribute(`stLocale`,e||``)},Object.defineProperty(t.prototype,"locale",{get:function(){return this.getUserAttribute(`stLocale`)}
73,enumerable:!1,configurable:!0}),t.prototype.removeUserAttribute=function(e){var t=this.getUserAttributes();delete t[e],a.Z.add(a.d.userAttributes,t)},t.prototype.parseUserAttributesToQueryStringAlphabetically=function(){var e=this.getUserAttributes(),t=Object.keys(e);t.sort();var n=``;return t.forEach((function(t){n+=`&userAttributes[${t}]=${e[t]}`})),n.substring(1)},t.sharedInstance=new t,t}(i.b).sharedInstance},3451:function(e,t,n){var r;(function(i,a){var o=`function`,s=`undefined`,c=`object`,l=`string`,u=`major`,d=`model`,f=`name`,p=`type`,m=`vendor`,h=`version`,g=`architecture`,_=`console`,v=`mobile`,y=`tablet`,b=`smarttv`,x=`wearable`,S=`embedded`,C=`Amazon`,w=`Apple`,T=`ASUS`,E=`BlackBerry`,D=`Browser`,O=`Chrome`,k=`Firefox`,A=`Google`,j=`Huawei`,M=`LG`,N=`Microsoft`,P=`Motorola`,F=`Opera`,I=`Samsung`,L=`Sharp`,R=`Sony`,z=`Xiaomi`,B=`Zebra`,V=`Facebook`,H=`Chromium OS`,U=`Mac OS`,W=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},ee=function(e,t){return typeof e==l&&G(t).indexOf(G(e))!==-1},G=function(e){return e.toLowerCase()},te=function(e,t){if(typeof e==l)return e=e.replace(/^\s\s*/,``),typeof t===s?e:e.substring(0,350)},ne=function(e,t){for(var n,r,i,s,l,u,d=0;d<t.length&&!l;){var f=t[d],p=t[d+1];for(n=r=0;n<f.length&&!l&&f[n];)if(l=f[n++].exec(e))for(i=0;i<p.length;i++)u=l[++r],typeof(s=p[i])==c&&s.length>0?s.length===2?typeof s[1]==o?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:s.length===3?typeof s[1]!=o||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):a:this[s[0]]=u?s[1].call(this,u,s[2]):a:s.length===4&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):a):this[s]=u||a;d+=2}},re=function(e,t){for(var n in t)if(typeof t[n]==c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(ee(t[n][r],e))return n===`?`?a:n}else if(ee(t[n],e))return n===`?`?a:n;return e},ie={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,8.1:`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},K={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[f,`Chrome`]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[f,`Edge`]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,h],[/opios[\/ ]+([\w\.]+)/i],[h,[f,F+` Mini`]],[/\bopr\/([\w\.]+)/i],[h,[f,F]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[f,`UC`+D]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[h,[f,`WeChat(Win) Desktop`]],[/micromessenger\/([\w\.]+)/i],[h,[f,`WeChat`]],[/konqueror\/([\w\.]+)/i],[h,[f,`Konqueror`]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[f,`IE`]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[f,`Yandex`]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,`$1 Secure `+D],h],[/\bfocus\/([\w\.]+)/i],[h,[f,k+` Focus`]],[/\bopt\/([\w\.]+)/i],[h,[f,F+` Touch`]],[/coc_coc\w+\/([\w\.]+)/i],[h,[f,`Coc Coc`]],[/dolfin\/([\w\.]+)/i],[h,[f,`Dolphin`]],[/coast\/([\w\.]+)/i],[h,[f,F+` Coast`]],[/miuibrowser\/([\w\.]+)/i],[h,[f,`MIUI `+D]],[/fxios\/([-\w\.]+)/i],[h,[f,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,`360 `+D]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[f,/(.+)/,`$1 `+D],h],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g,` `],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,V],h],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[f,`GSA`]],[/musical_ly(?:.
vendor: 5,108 bytes, line 73
73+app_?version\/|_)([\w\.]+)/i],[h,[f,`TikTok`]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[f,O+` Headless`]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,O+` WebView`],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[f,`Android `+D]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[f,`Mobile Safari`]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[h,re,{"1.0":`/8`,1.2:`/1`,1.3:`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,`Netscape`],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[f,k+` Reality`]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,h],[/(cobalt)\/([\w\.]+)/i],[f,[h,/master.|lts./,``]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,`amd64`]],[/(ia32(?=;))/i],[[g,G]],[/((?:i[346]|x)86)[;\)]/i],[[g,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,`armhf`]],[/windows (ce|mobile); ppc;/i],[[g,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,``,G]],[/(sun4\w)[;\)]/i],[[g,`sparc`]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[m,I],[p,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[m,I],[p,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[m,w],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[m,w],[p,y]],[/(macintosh);/i],[d,[m,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[m,L],[p,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[m,j],[p,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[m,j],[p,v]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g,` `],[m,z],[p,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g,` `],[m,z],[p,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[m,`OPPO`],[p,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[m,`Vivo`],[p,v]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[m,`Realme`],[p,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[m,P],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[m,P],[p,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[m,M],[p,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[m,M],[p,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[m,`Lenovo`],[p,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g,` `],[m,`Nokia`],[p,v]],[/(pixel c)\b/i],[d,[m,A],[p,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[m,A],[p,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[m,R],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,`Xperia Tablet`],[m,R],[p,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[m,`OnePlus`],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[m,C],[p,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,`Fire Phone $1`],[m,C],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[d,m,[p,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[m,E],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[m,T],[p,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[m,T],[p,v]],[/(nexus 9)/i],[d,[m,`HTC`],[p,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[d,/_/g,` `],[p,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[m,`Acer`],[p,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[m,`Meizu`],[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 5,574 bytes, line 73
73s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,d,[p,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,d,[p,y]],[/(surface duo)/i],[d,[m,N],[p,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[m,`Fairphone`],[p,v]],[/(u304aa)/i],[d,[m,`AT&T`],[p,v]],[/\bsie-(\w*)/i],[d,[m,`Siemens`],[p,v]],[/\b(rct\w+) b/i],[d,[m,`RCA`],[p,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[m,`Dell`],[p,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[m,`Verizon`],[p,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[m,`Barnes & Noble`],[p,y]],[/\b(tm\d{3}\w+) b/i],[d,[m,`NuVision`],[p,y]],[/\b(k88) b/i],[d,[m,`ZTE`],[p,y]],[/\b(nx\d{3}j) b/i],[d,[m,`ZTE`],[p,v]],[/\b(gen\d{3}) b.+49h/i],[d,[m,`Swiss`],[p,v]],[/\b(zur\d{3}) b/i],[d,[m,`Swiss`],[p,y]],[/\b((zeki)?tb.*\b) b/i],[d,[m,`Zeki`],[p,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,`Dragon Touch`],d,[p,y]],[/\b(ns-?\w{0,9}) b/i],[d,[m,`Insignia`],[p,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[m,`NextBook`],[p,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,`Voice`],d,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,`LvTel`],d,[p,v]],[/\b(ph-1) /i],[d,[m,`Essential`],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[m,`Envizen`],[p,y]],[/\b(trio[-\w\. ]+) b/i],[d,[m,`MachSpeed`],[p,y]],[/\btu_(1491) b/i],[d,[m,`Rotor`],[p,y]],[/(shield[\w ]+) b/i],[d,[m,`Nvidia`],[p,y]],[/(sprint) (\w+)/i],[m,d,[p,v]],[/(kin\.[onetw]{3})/i],[[d,/\./g,` `],[m,N],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[m,B],[p,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[m,B],[p,v]],[/smart-tv.+(samsung)/i],[m,[p,b]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,`SmartTV`],[m,I],[p,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,M],[p,b]],[/(apple) ?tv/i],[m,[d,w+` TV`],[p,b]],[/crkey/i],[[d,O+`cast`],[m,A],[p,b]],[/droid.+aft(\w)( bui|\))/i],[d,[m,C],[p,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[m,L],[p,b]],[/(bravia[\w ]+)( bui|\))/i],[d,[m,R],[p,b]],[/(mitv-\w{5}) bui/i],[d,[m,z],[p,b]],[/Hbbtv.*(technisat) (.*);/i],[m,d,[p,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,te],[d,te],[p,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,d,[p,_]],[/droid.+; (shield) bui/i],[d,[m,`Nvidia`],[p,_]],[/(playstation [345portablevi]+)/i],[d,[m,R],[p,_]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[m,N],[p,_]],[/((pebble))app/i],[m,d,[p,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[m,w],[p,x]],[/droid.+; (glass) \d/i],[d,[m,A],[p,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[m,B],[p,x]],[/(quest( 2| pro)?)/i],[d,[m,V],[p,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[p,S]],[/(aeobc)\b/i],[d,[m,C],[p,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,v]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[m,`Generic`]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[f,`EdgeHTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[f,`Blink`]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[h,re,ie]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,`Windows`],[h,re,ie]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,`.`],[f,`iOS`]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,U],[h,/_/g,`.`]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,h],[/\(bb(10);/i],[h,[f,E]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[f,`Symbian`]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[f,k+` OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[f,`webOS`]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[f,`watchOS`]],[/crkey\/([\d\.]+)/i],[h,[f,O+`cast`]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,H],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,h],[/(sunos) ?([\w\.\d]*)/i],[[f,`Solaris`],h
73],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,h]]},ae=function(e,t){if(typeof e==c&&(t=e,e=a),!(this instanceof ae))return new ae(e,t).getResult();var n=typeof i!==s&&i.navigator?i.navigator:a,r=e||(n&&n.userAgent?n.userAgent:``),_=n&&n.userAgentData?n.userAgentData:a,b=t?function(e,t){var n={};for(var r in e)n[r]=t[r]&&t[r].length%2==0?t[r].concat(e[r]):e[r];return n}(K,t):K,x=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=a,t[h]=a,ne.call(t,r,b.browser),t[u]=typeof(e=t[h])==l?e.replace(/[^\d\.]/g,``).split(`.`)[0]:a,x&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[f]=`Brave`),t},this.getCPU=function(){var e={};return e[g]=a,ne.call(e,r,b.cpu),e},this.getDevice=function(){var e={};return e[m]=a,e[d]=a,e[p]=a,ne.call(e,r,b.device),x&&!e[p]&&_&&_.mobile&&(e[p]=v),x&&e[d]==`Macintosh`&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]=`iPad`,e[p]=y),e},this.getEngine=function(){var e={};return e[f]=a,e[h]=a,ne.call(e,r,b.engine),e},this.getOS=function(){var e={};return e[f]=a,e[h]=a,ne.call(e,r,b.os),x&&!e[f]&&_&&_.platform!=`Unknown`&&(e[f]=_.platform.replace(/chrome os/i,H).replace(/macos/i,U)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e==l&&e.length>350?te(e,350):e,this},this.setUA(r),this};ae.VERSION=`1.0.35`,ae.BROWSER=W([f,h,u]),ae.CPU=W([g]),ae.DEVICE=W([d,m,p,_,v,b,y,x,S]),ae.ENGINE=ae.OS=W([f,h]),typeof t===s?n.amdO?(r=function(){return ae}.call(t,n,t,e))===a||(e.exports=r):typeof i!==s&&(i.UAParser=ae):(e.exports&&(t=e.exports=ae),t.UAParser=ae);var q=typeof i!==s&&(i.jQuery||i.Zepto);if(q&&!q.ua){var oe=new ae;q.ua=oe.getResult(),q.ua.get=function(){return oe.getUA()},q.ua.set=function(e){oe.setUA(e);var t=oe.getResult();for(var n in t)q.ua[n]=t[n]}}})(typeof window==`object`?window:this)},7462:function(e,t,n){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},1721:function(e,t,n){function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return i}})},3366:function(e,t,n){function r(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},8776:function(e,t,n){n.d(t,{Z:function(){return a}});var r=!0,i=`Invariant failed`;function a(e,t){if(!e){if(r)throw Error(i);var n=typeof t==`function`?t():t,a=n?`${i}: ${n}`:i;throw Error(a)}}},7582:function(e,t,n){n.d(t,{Jh:function(){return l},ZT:function(){return i},_T:function(){return o},ev:function(){return u},gn:function(){return s},mG:function(){return c},pi:function(){return a}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw TypeError(`Generator is already executing.`);for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!((i=i.length>0&&i[i.length-1])||s[0]!==6&&s[0]!==2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(s[0]===6&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function u(e,t,n){if(n||arguments.length===2)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||=Array.prototype.slice.call(t,0,i),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}}},n={};function r(e){var i=n[e];if(i!==void 0)return i.exports;var a=n[e]={exports:{}};return t[e].call(a.exports,a,a.exports,r),a.exports}r.amdO={}
73,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if(typeof globalThis==`object`)return globalThis;try{return this||Function(`return this`)()}catch{if(typeof window==`object`)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var i={};(function(){r.r(i),r.d(i,{ActivityEventDetail:function(){return jt},ActivityType:function(){return Nt.T},Alignment:function(){return fe.v},ButtonAlignment:function(){return Et.R},CellType:function(){return h.E},DismissedReason:function(){return Pt.z},GridView:function(){return lt},OpenedReason:function(){return k.T},QuizApiService:function(){return Ft.Z},QuizRenderer:function(){return It.Z},RowView:function(){return it},ServerRenderer:function(){return Rt},Story:function(){return At},StorytellerClipsGridView:function(){return vt},StorytellerClipsPlayerView:function(){return wt},StorytellerClipsRowView:function(){return yt},StorytellerEmbeddedClipsPlayerView:function(){return Tt},StorytellerStoriesGridView:function(){return lt},StorytellerStoriesRowView:function(){return it},StorytellerTrackedFunctionalFeature:function(){return nt.d},TextCase:function(){return Dt.q},Theme:function(){return Ot.W},UiStyle:function(){return Qe.V},UiTheme:function(){return kt.V},User:function(){return Lt.Z},UserActivityData:function(){return Mt},sharedInstance:function(){return e.Z}});var e=r(6916),t=r(7582),n=r(9748),a=r(4184),o=r.n(a),s=r(6356),c=null,l=function(e,t,n){return Math.min(Math.max(e,t),n)},u=function(e){return Math.max(e.scrollWidth-e.clientWidth,0)},d=function(){return c||=function(){if(typeof document>`u`||!document.body)return`negative`;var e=document.createElement(`div`),t=document.createElement(`div`);e.dir=s.m5.rtl,e.style.width=`4px`,e.style.height=`1px`,e.style.overflow=`scroll`,e.style.visibility=`hidden`,e.style.position=`absolute`,t.style.width=`8px`,t.style.height=`1px`,e.appendChild(t),document.body.appendChild(e);var n=e.scrollLeft;e.scrollLeft=1;var r=e.scrollLeft;return document.body.removeChild(e),n>0?`positive-descending`:r===0?`negative`:`positive-ascending`}(),c},f=function(e,t,n,r){r===void 0&&(r=d());var i=Math.max(t,0);if(n===s.m5.ltr)return l(e,0,i);switch(r){case`negative`:return l(-e,0,i);case`positive-descending`:return l(i-e,0,i);case`positive-ascending`:return l(e,0,i)}};function p(e,t,r){var i=(0,n.useRef)(),a=(0,n.useRef)(),o=(0,n.useRef)(null),c=(0,n.useState)({left:!1,right:!1}
73),p=c[0],m=c[1],h=(0,n.useState)(r??s.m5.ltr),g=h[0],_=h[1],v=t+(e||0),y=function(){return o.current&&v>0?Math.floor(o.current.clientWidth/v):0},b=(0,n.useCallback)((function(){return r??(0,s.Ux)(o.current)}),[r]),x=(0,n.useCallback)((function(){if(o.current){var e=b(),t=u(o.current),n=f(o.current.scrollLeft,t,e);_((function(t){return t===e?t:e})),m(function(e,t,n){var r=Math.max(t,0),i=l(e,0,r),a=i>1,o=r-1>i;return n===s.m5.rtl?{left:o,right:a}:{left:a,right:o}}(n,t,e))}else m({left:!1,right:!1})}),[b]);(0,n.useEffect)((function(){if(o.current){var e=o.current;return e?.addEventListener(`scroll`,x),window.ResizeObserver&&(i.current=new ResizeObserver(x),i.current.observe(o.current)),window.MutationObserver&&(a.current=new MutationObserver(x),a.current.observe(o.current,{childList:!0,attributes:!0,subtree:!0})),window.addEventListener(`resize`,x),x(),function(){var t,n;e?.removeEventListener(`scroll`,x),(t=i.current)==null||t.disconnect(),(n=a.current)==null||n.disconnect(),window.removeEventListener(`resize`,x)}}}),[x]),(0,n.useEffect)((function(){x()}),[x,v]);var S=function(){if(!o.current||v<=0)return 0;var e=b(),t=u(o.current),n=f(o.current.scrollLeft,t,e);return Math.floor(n/v)},C=function(e){if(o.current&&!(v<=0)){var t=S(),n=b(),r=u(o.current),i=(t+e)*v;o.current.scrollLeft=function(e,t,n,r){r===void 0&&(r=d());var i=Math.max(t,0),a=l(e,0,i);if(n===s.m5.ltr)return a;switch(r){case`negative`:return-a;case`positive-descending`:return i-a;case`positive-ascending`:return a}}(i,r,n),x()}};return{scrollContainer:o,getScrollIndex:S,scrollBy:C,scrollByPage:function(e){o.current&&C(e*y())},overflows:p,getPageSize:y,textDirection:g}}var m=r(6595),h=r(8844),g=r(16),_=r(6346),v=r(3779),y=r(8502),b=function(){var e=(0,n.useContext)(y.w);if(!e)throw Error(`useClipsContext must be used within a ClipsContext Provider`);return e},x=r(373),S=r(7050),C=14,w=8,T=function(e){var t=e.cellType,r=e.isLoading,i=r!==void 0&&r,a=e.rowDirection,o=e.titleHeight,s=e.viewTheme,c=(0,n.useContext)(S.y),l=(0,g.F)(),u=!s.appearance.tiles.title.show,d=l.lists.grid,f=(0,n.useRef)(null),p=(0,n.useState)({width:0,height:0,aspectRatio:0}),m=p[0],_=p[1],v=(0,n.useMemo)((function(){return t===h.E.square?40:o+30}),[t,o]),y=(0,n.useMemo)((function(){return t===h.E.square?160:o>0?140:120}),[t,o]),b=(0,n.useCallback)((function(){var e=2/3;if(c){if(a!==`row`){var n=(c?.clientWidth-d.tileSpacing*(d.columns-1))/d.columns;_({width:n,height:n/e,aspectRatio:e})}else{var r=c?.clientHeight;r<v&&c&&!c.style.height&&!c.style.minHeight&&!i&&(c.style.height=`${y}px`,x.Z.logWarning(`The Storyteller row container height isn't set. The cells will use the default height of ${y}px.`)),t===h.E.round&&(e=u?(r-C-w)/r:(r-(o+C/2+w/2+2))/r),_({width:e*r,height:r,aspectRatio:e})}}else _({width:0,height:0,aspectRatio:0})}),[t,y,i,d,u,v,c,a,o]);return(0,n.useEffect)((function(){c&&window.ResizeObserver&&(f.current&&f.current.unobserve(c),f.current=new ResizeObserver(b),f.current.observe(c))}),[c,b]),(0,n.useEffect)((function(){b()}),[b]),m},E=r(9283),D=r(9512),O=r(1815),k=r(4388),A=r(8671),j=r(8936),M=`storyCellContainer-x7+6pO`,N=`round-y-5ac9`,P=`storyCell-WAKj5m`,F=`rectangular-Kd4AdR`,I=`fullWidth-Q2BU6x`,L=`fullHeight-0JgPjh`,R=`roundCellContainer-q2ahxl`,z=`noTitle-4AQnST`,B=`live-mRtwld`,V=`fallback-vEGwQg`,H=`rectangularBackground-eXSm7Y`,U=`rectangularTileGradient-HZOHwI`,W=`roundBackground-TOOOIv`,ee=`storyTitle-OMQgdD`,G=`storyViewed-dvLd1j`,te=`titlePlaceholder--Ok6tW`,ne=`titlePlaceholderContainer-UE-8bf`,re=r(841),ie=r(3727),K=(0,n.forwardRef)((function(e,r){var i=e.to,a=e.native,o=e.children,s=(0,t._T)(e,[`to`,`native`,`children`]);return a?n.createElement(`a`,(0,t.pi)({href:i,ref:r},s),o):n.createElement(ie.rU,(0,t.pi)({to:i,ref:r},s),o)}));K.displayName=`StoryLink`;var ae=r(4999),q=`storyIcon-mbX1dN`,oe=`alignLeft-XfXKqs`,se=`alignRight-w1rV-Z`,ce=function(e){var t,r=e.alignment;return n.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,enableBackground:`new 0 0 24 24`,height:`16`,viewBox:`0 0 24 24`,width:`16`,className:o()(q,(t={},t[oe]=r===`left`,t[se]=r===`right`,t))},n.createElement(`g`,null,n.createElement(`rect`,{fill:`none`,height:`24`,width:`24`})),n.createElement(`g`,null,n.createElement(`g`,null),n.createElement(`g`,null,n.createElement(`rect`,{fill:`var(--storyteller-colors-white-primary)`,height:`15`,width:`10`,x:`7`,y:`4`}),n.createElement(`rect`,{fill:`var(--storyteller-colors-white-primary)`,height:`11`,width:`2`,x:`3`,y:`6`}),n.createElement(`rect`,{fill:`var(--storyteller-colors-white-primary)`,height:`11`,width:`2`,x:`19`,y:`6`}))))},le=(0,n.createContext)(null),ue=function(e){var t=e.children,r=e.viewTheme;return n.createElement(le.Provider,{value:r},t)},de=function(){var e=(0,n.useContext)(le);
73if(!e)throw Error(`useViewTheme must be used within a ViewThemeContext Provider`);return e},fe=r(942),pe=r(5792),me=r(6339),J=function(e){var t,r=(0,n.useState)(!0),i=r[0],a=r[1],c=e.media,l=e.mediaViewed,u=e.handleMediaClick,d=e.fullWidth,f=e.fullHeight,p=e.fallback,m=e.shouldLoad,v=e.googleWebStoryUrl,y=e.isReadUnreadOrderingEnabled,b=e.collection,x=e.width,S=de(),C=(0,n.useRef)(null),w=(0,g.F)(),T=function(e,t){switch(e.storyTiles.rectangularTile.chip.alignment){case fe.v.start:return t===s.m5.ltr?`left`:`right`;case fe.v.end:return t===s.m5.ltr?`right`:`left`;case fe.v.center:return`center`;default:return t===s.m5.ltr?`right`:`left`}}(w,(0,s.sF)()),E=function(e){switch(e){case`left`:case`center`:return`right`;case`right`:return`left`}}(T),D=c?.isLive,O=function(){if(!y)return D?ae.x.liveUnread:null;var e=(0,me.z)(c)&&c.isPinned;return D&&l?ae.x.liveRead:D?ae.x.liveUnread:l||e?null:ae.x.new}(),A=(0,me.z)(c)?c?.titles.longDisplay||c?.titles.internal:c?.description,j=(0,n.useMemo)((function(){if(x!==0&&c)return x>480?c.thumbnails.large:x>320?c.thumbnails.medium:c.thumbnails.small}),[c,x]),N=(0,n.useMemo)((function(){return p||i}),[p,i]),R=S.appearance.tiles.title.show;return n.createElement(K,{to:v||`/${e.basename}${b?`/${b}/`:`/`}${c?.id||``}${`?openedReason=${(0,pe.N)(c)?k.T.clipListTap:k.T.storyListTap}`}`,native:!!e.googleWebStoryUrl,onClick:u,className:o()(M,F,(t={},t[I]=d,t[L]=f,t[V]=N,t)),ref:C},n.createElement(`div`,{className:P},j&&n.createElement(_.Ee,{src:j,loading:m?void 0:`lazy`,className:H,alt:A||``,onLoad:function(){return a(!1)},onError:function(){return a(!1)},style:{opacity:+!i}}),!N&&w.storyTiles.rectangularTile.showGradient&&n.createElement(`div`,{className:U}),!N&&w.storyTiles.chip.show&&n.createElement(re.A,{cellType:h.E.square,chipType:O,alignment:T,inRow:!0}),R&&n.createElement(`div`,{className:ee},N?n.createElement(`div`,{className:ne},n.createElement(`div`,{className:te}),n.createElement(`div`,{className:te})):n.createElement(n.Fragment,null,A||``)),w.storyTiles.rectangularTile.showWebStoriesIcon&&n.createElement(ce,{alignment:E})))},he=[`left top`,`top left`,`right top`,`top right`,`right bottom`,`bottom right`,`left bottom`,`bottom left`,`top`,`bottom`,`left`,`right`];function ge(e){return e.offset!==null}function _e(e){switch(e){case`top`:return 180;case`bottom`:default:return 0;case`left`:return 90;case`right`:return-90;case`left top`:case`top left`:return 135;case`right top`:case`top right`:return-135;case`right bottom`:case`bottom right`:return-45;case`left bottom`:case`bottom left`:return 45}}var ve,Y=function(e){var t=0,n=[];if(!e.includes(`linear-gradient`))throw Error(`Non-linear gradients are not supported. The round Story cells borders might not render as expected.`);var r=/linear-gradient\((.+)\)/g.exec(e);if(r&&r.length>1)for(var i=function(e){for(var t=[],n=e.length,r=``,i=0,a=0;a<n;a++){var o=e[a];o===`(`?(i++,r+=o):o===`)`?(i--,r+=o):o===`,`&&i===0?(t.push(r.trim()),r=``):r+=o}return r&&t.push(r.trim()),t}(r[1].trim()),a=0;a<i.length;a++){var o=i[a];if(/\d+deg/.test(o)){var s=parseInt(o.replace(`deg`,``),10);t||isNaN(s)||(t=s)}else{var c=RegExp(`to (${he.join(`|`)})`).exec(o);if(c)t=_e(c[1]);else{var l=/(.+)( [\d]+%)/.exec(o),u=o.trim(),d=null;if(l){u=l[1].trim();var f=parseInt(l[2].split(`%`)[0].trim(),10);isNaN(f)||(d=f)}n.push({offset:d,color:u})}}}for(var p=[],m=n.length,h=100/(m-1),g=0;g<m;g++){var _=n[g];ge(_)?p.push(_):(d=g*h,p.push({color:_.color,offset:d}))}return{angle:t,stopColors:p}},ye=function(e){var t=e.gradientId,r=e.stroke,i=e.strokeWidth;if(!r)return null;var a=[{offset:0,color:r},{offset:100,color:r}],o=0;if(r.includes(`gradient`))try{var s=Y(r),c=s.angle;a=s.stopColors,o=c}catch(e){e instanceof Error&&x.Z.logError(e.message)}return n.createElement(`svg`,{viewBox:`0 0 100 100`,xmlns:`http://www.w3.org/2000/svg`},n.createElement(`circle`,{cx:`50`,cy:`50`,r:`50`,stroke:`url(#${t})`,strokeWidth:i,vectorEffect:`non-scaling-stroke`,shapeRendering:`geometricPrecision`}),n.createElement(`defs`,null,n.createElement(`linearGradient`,{id:t,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,gradientTransform:`rotate(${o}, 0.5, 0.5)`},a.map((function(e){var t=e.color,r=e.offset;return n.createElement(`stop`,{key:r,offset:`${r}%`,stopColor:t})})))))};(function(e){e[e.unread=0]=`unread`,e[e.read=1]=`read`,e[e.liveUnread=2]=`liveUnread`,e[e.liveRead=3]=`liveRead`})(ve||={});
73var be,xe=function(e){var t,r,i,a=(0,n.useState)(!0),s=a[0],c=a[1],l=e.basename,u=e.media,d=e.mediaViewed,f=e.handleMediaClick,p=e.fullHeight,m=e.fallback,v=e.shouldLoad,y=e.googleWebStoryUrl,b=e.isReadUnreadOrderingEnabled,x=e.collection,S=e.renderedAt,C=d&&b,w=(0,g.F)(),T=de(),E=(i=u?.isLive)!=null&&i,D=!!(0,me.z)(u)&&u.isPinned,O=(0,n.useMemo)((function(){return m||s}),[m,s]),A=(0,n.useMemo)((function(){return function(e,t,n){return n?ve.unread:e?t?ve.liveRead:ve.liveUnread:t?ve.read:ve.unread}(E||D,C||!1,O)}),[E,D,C,O]),j=(0,n.useMemo)((function(){return function(e,t,n){var r=null,i=n.storyTiles[e===h.E.round?`circularTile`:`rectangularTile`];switch(t){case ve.read:r=n.storyTiles.circularTile.readIndicatorColor;break;case ve.unread:r=n.storyTiles.circularTile.unreadIndicatorColor;break;case ve.liveRead:r=i.liveChip.readBackgroundColor;break;case ve.liveUnread:r=i.liveChip.unreadBackgroundColor;break;default:r=n.storyTiles.circularTile.readIndicatorColor}return r}(h.E.round,A,w)}),[A,w]),F=(0,me.z)(u)&&(u?.titles.shortDisplay||u?.titles.internal),I=T.appearance.tiles.title.show;return n.createElement(K,{to:y||`/${e.basename}${x?`/${x}/`:`/`}${u?.id||``}${`?openedReason=${(0,pe.N)(u)?k.T.clipListTap:k.T.storyListTap}`}`,native:!!y,onClick:f,className:o()(M,N,(t={},t[V]=O,t[G]=C,t[L]=p,t[z]=!I,t))},n.createElement(`div`,{className:o()(R)},n.createElement(`div`,{className:o()(P,(r={},r[G]=C||O,r))},(0,me.z)(u)&&u?.profilePictureUrl&&n.createElement(_.Ee,{src:u.profilePictureUrl,loading:v?void 0:`lazy`,className:W,alt:F||``,onLoad:function(){return c(!1)},onError:function(){return c(!1)},style:{opacity:+!s}})),n.createElement(ye,{gradientId:`${l||`storyteller`}-${u?.id||``}${S?`-${S}`:``}`,stroke:j,strokeWidth:w.storyTiles.circularTile[C||O?`readStrokeWidth`:`unreadStrokeWidth`]})),E&&w.storyTiles.chip.show&&n.createElement(re.A,{cellType:h.E.round,className:B,chipType:C?ae.x.liveRead:ae.x.liveUnread,inRow:!0}),I&&n.createElement(`div`,{className:ee},O?n.createElement(`div`,{className:ne},n.createElement(`div`,{className:te}),n.createElement(`div`,{className:te})):n.createElement(n.Fragment,null,F||``)))},Se=function(e){switch(e.cellType){case h.E.square:return n.createElement(J,(0,t.pi)({},e));case h.E.round:return n.createElement(xe,(0,t.pi)({},e));default:return n.createElement(n.Fragment,null)}},Ce=function(e){var r=e.cellWidth,i=e.media,a=e.mediaIndex,o=e.visible,s=(0,n.useState)(o),c=s[0],l=s[1],u=E.Z.getStoryReadState(i?.id),d=((0,me.z)(i)?u.status:E.Z.getClipViewedState(i?.id))===j.N.read;return(0,n.useEffect)((function(){o&&l(!0)}),[o]),n.createElement(Se,(0,t.pi)({},e,{shouldLoad:c,mediaViewed:d,handleMediaClick:function(){var t;i&&a!==void 0&&((0,pe.N)(i)||(E.Z.setStoryPlaybackMode(i.id,A.e.list),(t=e.storiesPlayerSyncService)==null||t.ifStoryIsSynced(i.id,(function(){D.Z.recordActivity(new O.Z(k.T.storyListTap,i,i.pages[u.initialPage],e.currentCategories))}))))},width:r}))},we=function(){return n.createElement(`svg`,{width:`16`,height:`12`,viewBox:`0 0 16 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n.createElement(`path`,{d:`M9.75 1L15 6M15 6L9.75 11M15 6H1`,stroke:`var(--storyteller-scroll-indicator-color)`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}))},X=r(8705);(function(e){e.cellSpacing=`cell-spacing`,e.insetStart=`inset-start`,e.insetEnd=`inset-end`,e.numCols=`num-cols`})(be||={});var Te=r(4338),Ee=r(6818),De=r(9705),Oe=`storyteller-bq7AJb`,ke=`rtl-tAK-UO`,Ae=`storytellerContainer-VXwt8t`,je=`square-pnO8eX`,Me=`storyScrollBtn-xpMB7W`,Ne=`visible-zorq0n`,Pe=`outside-K9wYJP`,Fe=`scrollLeft-INWdYG`,Ie=`scrollRight-HxVo0U`,Le=`hideFade-Sn5uus`,Re=`scrollArrow-7oRJQx`,ze=`touch-EyCjLz`,Be=`centeredWithRoundThumb-cO2V7s`,Ve=function(e){var r,i,a,c,l,u,d,f=(0,g.F)(),y=(0,v.Z)(),x=y.displayLimit,S=y.stories,E=y.status,D=b(),O=D.displayLimit,k=D.clips,A=D.status,M=S?.slice(0,x)||null,N=k?.slice(0,O)||null,P=e.mediaType===Te.D.stories?M:N,F=e.mediaType===Te.D.stories?E:A,I=function(e,t){var n=(0,g.F)();if(!t.appearance.tiles.title.show||e===h.E.square)return{numLines:0,containerHeight:0};var r=Math.floor(39/n.storyTiles.title.lineHeight);return r>3&&(r=3),r<1&&(r=1),{numLines:r,containerHeight:r*n.storyTiles.title.lineHeight}}(e.cellType,e.viewTheme),L=(0,n.useMemo)((function(){return F===m.G.Pending||F===m.G.Idle}),[F]),R=T({cellType:e.cellType,isLoading:L,rowDirection:`row`,titleHeight:I.containerHeight,viewTheme:e.viewTheme}
73),z=(0,n.useRef)(null),B=(0,n.useState)(s.m5.ltr),V=B[0],H=B[1],U=(0,n.useCallback)((function(){var e=(0,s.Ux)(z.current?.parentElement??z.current);H((function(t){return t===e?t:e}))}),[]);(0,n.useEffect)((function(){if(U(),typeof window<`u`){var e=z.current?.parentElement,t={attributes:!0,attributeFilter:[`class`,`dir`,`style`]},n=window.MutationObserver?new MutationObserver(U):null;return n&&e&&n.observe(e,t),n&&document.body&&document.body!==e&&n.observe(document.body,t),window.addEventListener(`resize`,U),function(){n?.disconnect(),window.removeEventListener(`resize`,U)}}}),[U]);var W=p(f.lists.row.tileSpacing,R.width,V),ee=W.scrollContainer,G=W.scrollByPage,te=W.overflows,ne=W.getScrollIndex,re=W.getPageSize,ie=(0,X.b1)(),K=V===s.m5.rtl,ae=ne()-1,q=ne()+re()+1,oe=(0,n.useMemo)((function(){for(var t=[],n=P?.length??e.displayLimit??12,r=0;r<n;r++)t.push(null);return t}),[P,e.displayLimit]),se=e.viewTheme.appearance.tiles.title.show,ce=f.lists.row.showScrollIndicator,le=e.mediaType===Te.D.stories?`Stories`:`Clips`,de=K?`Next`:`Previous`,fe=K?`Previous`:`Next`,pe=se?R.width-9:R.width-10,J=e.cellType===h.E.round&&f.storyTiles.circularTile.scrollIndicatorBlockAlignment===`thumbnail`,he=f.lists.row.scrollIndicatorInlineAlignment===`outside`,ge=!he||te.left||te.right,_e=(0,n.useMemo)((function(){var t=0,n=0;if(e.cellType===h.E.square)return{firstCellStrokeWidth:t,lastCellStrokeWidth:n};var r=f.storyTiles.circularTile,i=r.readStrokeWidth,a=r.unreadStrokeWidth,o=a>1?Math.ceil(a/2):a;if(t=o,n=o,L)return{firstCellStrokeWidth:t,lastCellStrokeWidth:n};var s=i>1?Math.ceil(i/2):i,c=P?.[0];if((0,Ee.R)(c)===j.N.read&&(t=s),P?.length){var l=P.length-1,u=P?.[l];(0,Ee.R)(u)===j.N.read&&(n=s)}return{firstCellStrokeWidth:t,lastCellStrokeWidth:n}}),[L,P,e.cellType,f.storyTiles.circularTile]),ve=_e.firstCellStrokeWidth,Y=_e.lastCellStrokeWidth,ye=(0,De.LF)({cellType:e.cellType,isReadUnreadOrderingEnabled:e.isReadUnreadOrderingEnabled,media:P,theme:f}),xe=e.cellType===h.E.round?{"row-round-cell-width":(0,X.B5)(R.width),"row-round-cell-container-size":(0,X.B5)(pe),"row-round-cell-title-height":(0,X.B5)(I.containerHeight),"row-round-cell-title-max-lines":I.numLines,"row-start-round-cell-stroke-width":(0,X.B5)(ve),"row-end-round-cell-stroke-width":(0,X.B5)(Y),"row-round-cell-padding-top":(0,X.B5)(C),"row-round-cell-padding-bottom":(0,X.B5)(w)}:{"row-square-cell-width":(0,X.B5)(R.width),"row-square-cell-height":(0,X.B5)(R.height),"row-height":(0,X.B5)(ye.top+ye.bottom+R.height)};return n.createElement(ue,{viewTheme:e.viewTheme},n.createElement(`div`,{className:o()(Oe,(r={},r[ke]=K,r)),dir:s.m5.ltr,ref:z,style:(0,X.qK)((0,t.pi)((i={},i[be.insetStart]=(0,X.B5)(f.lists.row.startInset),i[be.insetEnd]=(0,X.B5)(f.lists.row.endInset),i[`row-focus-outline-offset-top`]=(0,X.B5)(ye.top),i[`row-focus-outline-offset-left`]=(0,X.B5)(ye.left),i[`row-focus-outline-offset-bottom`]=(0,X.B5)(ye.bottom),i[`row-focus-outline-offset-right`]=(0,X.B5)(ye.right),i),xe))},ce&&ge&&n.createElement(`div`,{className:o()(Me,Fe,(a={},a[Pe]=he,a[Ne]=te.left||he&&te.right,a[ze]=ie,a[Le]=!f.lists.row.scrollIndicatorFade,a))},n.createElement(`button`,{className:o()(Re,(c={},c[Be]=J,c[ze]=ie,c)),disabled:he&&!te.left,onClick:function(){return!ie&&G(K?1:-1)},title:`${de} ${le}`},f.lists.row.scrollIndicatorIcon?n.createElement(_.Ee,{src:f.lists.row.scrollIndicatorIcon}):n.createElement(we,null))),n.createElement(`div`,{className:o()(Ae,(l={},l[je]=e.cellType===h.E.square,l)),ref:ee,dir:V},oe.map((function(t,r){var i=P?.[r];return n.createElement(Ce,{key:`rowItem${r}`,basename:e.basename,currentCategories:e.currentCategories||[],collection:e.collection,cellType:e.cellType,cellWidth:R.width,fullHeight:!0,media:i,mediaIndex:r,visible:!L&&r>=ae&&r<=q,fallback:L,googleWebStoryUrl:(0,me.z)(i)&&e.useGoogleWebStoryUrls?i.googleWebStoryUrl:void 0,isReadUnreadOrderingEnabled:e.isReadUnreadOrderingEnabled,renderedAt:e.renderedAt,storiesPlayerSyncService:e.storiesPlayerSyncService})}))),ce&&ge&&n.createElement(`div`,{className:o()(Me,Ie,(u={},u[Pe]=he,u[Ne]=te.right||he&&te.left,u[ze]=ie,u[Le]=!f.lists.row.scrollIndicatorFade,u))},n.createElement(`button`,{className:o()(Re,(d={},d[Be]=J,d[ze]=ie,d)),disabled:he&&!te.right,onClick:function(){return!ie&&G(K?-1:1)},title:`${fe} ${le}`},f.lists.row.scrollIndicatorIcon?n.createElement(_.Ee,{src:f.lists.row.scrollIndicatorIcon}):n.createElement(we,null)))))},He=r(6550),Ue=r(4745),We=r(9820),Ge=r(6008),Ke=r(1016),qe=r(8105),Je=r(3914),Ye=r(8672),Xe=r(4091),Ze=r(1143),Qe=r(4539),$e=r(7392),et=r(1417),tt=r(791),nt=r(8585),rt=function(e){function r(t,n,r){n===void 0&&(n=[]),r===void 0&&(r=!1);var i=e.call(this)||this;i.logTag=`StorytellerStoriesView`;var a=document.getElementById(t);if(!a)return i.logError(tt.q9,t),i;try{document.querySelector(`#${t}`)}catch(e){e instanceof DOMException&&e.name===`SyntaxError`&&i.logWarning(tt.ZO,t)}return a.classList.add(`storyteller`),i.rootEl_=a,i.listViewService_.categories=n,i.useGoogleWebStoryUrls_=r,i.initializeListView(),i}return(0,t.ZT)(r,e),Object.defineProperty(r.prototype,"listConfiguration",{get:function(){return{basename:this.basename,categories:this.listViewService_.categories,displayLimit:this.displayLimit_,preload:this.storiesSh
73ouldPreload_,theme:this.theme_,uiStyle:this.attributes_?this.attributes_.uiStyle:Qe.V.auto}},set:function(e){this.updateListConfiguration(e);var t=!qe.Z.categoriesAreTheSame(e.categories||[],this.listViewService_.categories);e.preload&&(this.storiesShouldPreload_=!0,this.playerShouldBeAppendedToDOM_=!0),e.categories&&t?(this.listViewService_.categories=e.categories,this.listViewService_.isBasenameBasedOnContent&&this.assignViewBasename(),this.loadStories(),this.renderStoryteller()):this.renderStoryteller()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"shouldShowInstructions",{get:function(){return this.listTheme_.instructions.show},enumerable:!1,configurable:!0}),r.prototype.openStory=function(e){if(this.stories?.length){var t=this.stories.find((function(t){return t.id===e}));location.hash=`${this.basename}/${t?.id??e}`,E.Z.setStoryPlaybackMode(t?.id||e,A.e.singleStory)}},r.prototype.openPage=function(e,t){var n=this.stories?.find((function(t){return t.pages.some((function(t){return t.id===e}))}));n?(location.hash=`${this.basename}/${n.id}/${e}`,E.Z.setStoryPlaybackMode(n.id,A.e.singleStory)):t?.(`The page with id ${e} could not be found`)},r.prototype.reloadData=function(){return(0,t.mG)(this,void 0,void 0,(function(){return(0,t.Jh)(this,(function(e){switch(e.label){case 0:return[4,this.loadStories()];case 1:return e.sent(),[2]}}))}))},r.prototype.onStoriesLoadSuccess=function(e){var t,n;this.storiesPlayerSyncService_.resetPlayerStories(),this.stories=e.stories,this.listViewService_.loadingState=m.G.Success,this.isReadUnreadOrderingEnabled_=e.enableReadUnreadOrdering,this.viewTheme_=e.theme,(n=(t=this.delegate).onDataLoadComplete)==null||n.call(t,!0,null,this.stories.length),this.renderStoryteller()},r.prototype.onStoriesLoadFailure=function(t){var n,r,i,a;e.prototype.onStoriesLoadFailure.call(this,t),this.storiesPlayerSyncService_.resetPlayerStories(),this.stories=[],this.listViewService_.loadingState=m.G.Error,t instanceof Error?(r=(n=this.delegate).onDataLoadComplete)==null||r.call(n,!1,t,0):(a=(i=this.delegate).onDataLoadComplete)==null||a.call(i,!1,Ke.G.unknown,0)},r.prototype.loadStories=function(){var n,r;return(0,t.mG)(this,void 0,void 0,(function(){var i,a;return(0,t.Jh)(this,(function(t){switch(t.label){case 0:e.prototype.loadStories.call(this),this.renderStoryteller(),(r=(n=this.delegate).onDataLoadStarted)==null||r.call(n),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Ge.Z.loadStories(this.listViewService_.categories)];case 2:return i=t.sent(),this.onStoriesLoadSuccess(i),[3,4];case 3:return a=t.sent(),this.onStoriesLoadFailure(a),[3,4];case 4:return[2]}}
73))}))},Object.defineProperty(r.prototype,"memoryRouterProps_",{get:function(){var e=this;if(this.listViewService_.urlsDisabled){var n=this.stories?.map((function(t){var n=t.id;return`/${e.basename}/${n}`}))||[];return{initialEntries:(0,t.ev)([`/`],n,!0),initialIndex:0}}return null},enumerable:!1,configurable:!0}),r.prototype.onStoriesMismatch_=function(){this.renderStoryteller()},Object.defineProperty(r.prototype,"playerShouldBeAppendedToDOM",{set:function(e){e&&(this.playerShouldBeAppendedToDOM_=!0)},enumerable:!1,configurable:!0}),r.prototype.initialize=function(){this.attributes_=this.parseAttributes(this.parseBaseAttributes()),this.loadStories(),this.renderStoryteller()},r.prototype.updatePlayerVisibility=function(n){var r=this;if(e.prototype.updatePlayerVisibility.call(this,n),this.isPlayerVisible_!==n){this.isPlayerVisible_=n;var i=this.viewTheme_.behavior.reloading.reloadOnExit;if(!n&&this.stories&&this.isReadUnreadOrderingEnabled_&&i&&Je.Z.isFunctionalFeatureEnabled(nt.d.pageReadStatus)){var a=(0,t.ev)([],this.stories,!0);(0,$e.z)({stories:a,enableReadUnreadOrdering:!0}),a.some((function(e,t){return e.id!==r.stories?.[t].id}))&&(this.stories=a,setTimeout((function(){r.renderStoryteller()}),et.r)),a=[]}}},r.prototype.registerListView=function(){qe.Z.registerStoriesView(this.listViewService_)},Object.defineProperty(r.prototype,"categories",{get:function(){return this.listViewService_.categories},set:function(e){this.listViewService_.categories=e},enumerable:!1,configurable:!0}),r.prototype.renderStorytellerList=function(){var e=this;this.listRenderedAt_=Date.now(),n.render(n.createElement(Ue.Z,{displayLimit:this.listConfiguration.displayLimit,stories:this.getStoriesWithRowIndex(),storiesStatus:this.listViewService_.loadingState,basename:this.basename,listDelegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_,theme:this.listTheme_},n.createElement(He.AW,{render:this.renderList.bind(this)}),this.memoryRouterProps_&&n.createElement(He.AW,{path:[`/:basename?/:storyId?/:pageId?`],render:function(t){var r=t.match,i=!!r.params.storyId&&e.basename===r?.params.basename;return i||e.playerShouldBeAppendedToDOM_?n.createElement(We.Z,null,n.createElement(Xe.Z,{storyId:r.params.storyId,pageId:r.params.pageId,basename:e.basename,isVisible:i,playAllStories:e.playAllStories_,setIsPlayerVisible:function(t){return e.updatePlayerVisibility(t)},shouldShowInstructions:e.shouldShowInstructions,currentCategories:e.listViewService_.categories,storiesPlayerSyncService:e.storiesPlayerSyncService_},n.createElement(Ye.Z,{cellType:e.cellType_,initialStoryId:r.params.storyId,basename:e.basename,categories:e.listViewService_.categories,playAllStories:e.playAllStories_,rootElement:e.rootEl_||null,uiTheme:e.listConfiguration.theme,uiStyle:e.listConfiguration.uiStyle,useGoogleWebStoryUrls:e.useGoogleWebStoryUrls_,viewId:e.id}))):null}})),this.rootEl_)},r.prototype.renderStoryteller=function(){this.renderStorytellerList(),this.renderPlayer()},r}(Ze.Z),it=function(e){function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`StorytellerStoriesRowView`,t}return(0,t.ZT)(r,e),Object.defineProperty(r.prototype,"cellType",{set:function(e){this.attributes_.cellType=e,this.renderStorytellerList()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"configuration",{get:function(){return(0,t.pi)((0,t.pi)({},this.listConfiguration),{cellType:this.attributes_.cellType})},set:function(e){e.cellType&&(this.attributes_.cellType=e.cellType,this.cellType_=e.cellType),this.listConfiguration=e},enumerable:!1,configurable:!0}),r.prototype.parseAttributes=function(e){var n=this.rootEl_.dataset.cellType,r=h.E.square;return n&&(r=h.E[n]),(0,t.pi)((0,t.pi)({},e),{cellType:r})},r.prototype.renderList=function(){return n.createElement(Ve,(0,t.pi)({},this.attributes_,{basename:this.basename,currentCategories:this.listViewService_.categories,displayLimit:this.listConfiguration.displayLimit,isReadUnreadOrderingEnabled:this.isReadUnreadOrderingEnabled_,useGoogleWebStoryUrls:this.useGoogleWebStoryUrls_,mediaType:Te.D.stories,renderedAt:this.listRenderedAt_,storiesPlayerSyncService:this.storiesPlayerSyncService_,viewTheme:this.viewTheme_}))},r}(rt),at=r(8080),ot=`storyteller-BIOKwp`,st=`gridContainer-P1tOQZ`,ct=function(e){var t,r=(0,g.F)(),i=(0,v.Z)(),a=i.displayLimit,o=i.stories,s=i.status,c=b(),l=c.displayLimit,u=c.clips,d=c.status,f=o?.slice(0,a)||null,p=u?.
73slice(0,l)||null,_=r.lists.grid.columns,y=(0,n.useState)([-1,-1]),x=y[0],S=y[1],C=e.mediaType===Te.D.stories?f:p,w=e.mediaType===Te.D.stories?s:d,E=(0,n.useMemo)((function(){return w===m.G.Pending||w===m.G.Idle}),[w]),D=(0,n.useRef)(null),O=(0,n.useMemo)((function(){for(var t=[],n=C?.length??e.displayLimit??_,r=0;r<n;r++)t.push(null);return t}),[C,e.displayLimit,_]),k=Math.ceil((C?.length??0)/_),A=(0,n.useCallback)((function(){var e=D.current?.getBoundingClientRect();if(e){var t=Math.max(document.documentElement.clientHeight,window.innerHeight),n=e.height/k;e?.bottom>=n&&e?.top-t<n?S([k-Math.ceil(e?.bottom/n)-1,1-Math.ceil((e?.top-t)/n)]):S([-1,-1])}else S([-1,-1])}),[k]);(0,at.Z)(`scroll`,A),(0,at.Z)(`resize`,A),(0,n.useEffect)(A,[A]);var j=(0,n.useCallback)((function(e){return Math.floor(e/_)}),[_]),M=(0,De.LF)({cellType:h.E.square,isReadUnreadOrderingEnabled:e.isReadUnreadOrderingEnabled,media:C,theme:r}),N=T({cellType:h.E.square,isLoading:E,rowDirection:`column`,titleHeight:0,viewTheme:e.viewTheme});return n.createElement(ue,{viewTheme:e.viewTheme},n.createElement(`div`,{className:ot,style:(0,X.qK)((t={},t[be.cellSpacing]=(0,X.B5)(r.lists.grid.tileSpacing),t[be.insetStart]=(0,X.B5)(r.lists.grid.startInset),t[be.insetEnd]=(0,X.B5)(r.lists.grid.endInset),t[be.numCols]=_,t[`row-focus-outline-offset-top`]=(0,X.B5)(M.top),t[`row-focus-outline-offset-left`]=(0,X.B5)(M.left),t[`row-focus-outline-offset-bottom`]=(0,X.B5)(M.bottom),t[`row-focus-outline-offset-right`]=(0,X.B5)(M.right),t[`row-square-cell-width`]=(0,X.B5)(N.width),t[`row-square-cell-height`]=(0,X.B5)(N.height),t))},n.createElement(`div`,{className:st,ref:D},O.map((function(t,r){var i=C?.[r];return n.createElement(Ce,{key:`gridItem${r}`,basename:e.basename,currentCategories:e.currentCategories||[],collection:e.collection,cellType:h.E.square,cellWidth:N.width,fullWidth:!0,media:i,mediaIndex:r,visible:!E&&j(r)>=x[0]&&j(r)<=x[1],fallback:E,googleWebStoryUrl:(0,me.z)(i)&&e.useGoogleWebStoryUrls?i.googleWebStoryUrl:void 0,isReadUnreadOrderingEnabled:e.isReadUnreadOrderingEnabled,storiesPlayerSyncService:e.storiesPlayerSyncService})})))))},lt=function(e){function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`StorytellerStoriesGridView`,t}return(0,t.ZT)(r,e),Object.defineProperty(r.prototype,"configuration",{get:function(){return this.listConfiguration},set:function(e){this.listConfiguration=e},enumerable:!1,configurable:!0}),r.prototype.renderList=function(){return n.createElement(ct,{basename:this.basename,currentCategories:this.listViewService_.categories,displayLimit:this.listConfiguration.displayLimit,isReadUnreadOrderingEnabled:this.isReadUnreadOrderingEnabled_,useGoogleWebStoryUrls:this.useGoogleWebStoryUrls_,mediaType:Te.D.stories,storiesPlayerSyncService:this.storiesPlayerSyncService_,viewTheme:this.viewTheme_})},r}(rt),ut=r(7112),dt=r(7942),ft=r(9420),pt=r(8949),mt=r(1900),ht=r(4096),gt=r(1092),_t=function(e){function r(t,n,r,i){r===void 0&&(r=!1);var a=(i===void 0?{}:i).deferInitialization,o=a!==void 0&&a,s=e.call(this)||this;s.logTag=`StorytellerClipsView`;var c=document.getElementById(t);if(!c)return s.logError(tt.q9,t),s;try{document.querySelector(`#${t}`)}catch(e){e instanceof DOMException&&e.name===`SyntaxError`&&s.logWarning(tt.ZO,t)}return c.classList.add(`storyteller`),s.rootEl_=c,s.listViewService_.collection=n,s.useGoogleWebStoryUrls_=r,s.clipsNavService=new ft.ZP(n),o||s.initializeClipsView_(),s}return(0,t.ZT)(r,e),r.prototype.initializeClipsView_=function(){this.initializeListView(),qe.Z.checkForUnreachableClipPlayers(),this.listenToUnreachablePlayerEvents_()},r.prototype.listenToUnreachablePlayerEvents_=function(){var e=this,t=new AbortController;ut.Z.on(`clipPlayerUnreachable`,(function(r){r===e.id&&(e.listViewService_.isUnreachable=!0,e.playerContainerEl_&&=(qe.Z.playerIsUsedByOtherViews(e.mediaType,e.id,e.playerContainerEl_.id)||(n.unmountComponentAtNode(e.playerContainerEl_),document.body.removeChild(e.playerContainerEl_)),void 0),t.abort())}),{signal:t.signal})},Object.defineProperty(r.prototype,"listConfiguration",{get:function(){return{collection:this.listViewService_.collection,displayLimit:this.displayLimit_,theme:this.theme_,uiStyle:this.attributes_?this.attributes_.uiStyle:Qe.V.auto}},set:function(e){this.updateListConfiguration(e),e.collection&&this.listViewService_.collection!==e.collection?(this.listViewService_.collection=e.collection,this.clipsNavService.updateCollection(e.collection),this.listViewService_.isBasenameBasedOnContent&&this.assignViewBasename(),this.loadClips(),this.renderStoryteller()
73):this.renderStoryteller()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"memoryRouterProps_",{get:function(){var e=this;if(this.listViewService_.urlsDisabled){var n=this.listViewService_.clips?.map((function(t){var n=t.id;return`/${e.basename}/${e.listViewService_.collection}/${n}`}))||[];return{initialEntries:(0,t.ev)([`/`],n,!0),initialIndex:0}}return null},enumerable:!1,configurable:!0}),r.prototype.reloadData=function(){return(0,t.mG)(this,void 0,void 0,(function(){return(0,t.Jh)(this,(function(e){switch(e.label){case 0:return[4,this.loadClips()];case 1:return e.sent(),[2]}}))}))},r.prototype.onClipsLoadSuccess=function(t){var n,r;e.prototype.onClipsLoadSuccess.call(this,t),(r=(n=this.delegate).onDataLoadComplete)==null||r.call(n,!0,null,t.clips.length),this.renderStoryteller()},r.prototype.onClipsLoadFailure=function(t){var n,r,i,a;e.prototype.onClipsLoadFailure.call(this,t),t instanceof Error?(r=(n=this.delegate).onDataLoadComplete)==null||r.call(n,!1,t,0):(a=(i=this.delegate).onDataLoadComplete)==null||a.call(i,!1,Ke.G.unknown,0)},r.prototype.loadClips=function(){var n,r;return(0,t.mG)(this,void 0,void 0,(function(){var i,a;return(0,t.Jh)(this,(function(t){switch(t.label){case 0:if(!this.listViewService_.collection)return[2];e.prototype.loadClips.call(this),this.renderStoryteller(),(r=(n=this.delegate).onDataLoadStarted)==null||r.call(n),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,pt.Z.loadClips(this.listViewService_.collection)];case 2:return i=t.sent(),this.onClipsLoadSuccess(i),[3,4];case 3:return a=t.sent(),this.onClipsLoadFailure(a),[3,4];case 4:return[2]}}
73))}))},r.prototype.initialize=function(){this.attributes_=this.parseAttributes(this.parseBaseAttributes()),this.loadClips(),this.renderStoryteller()},r.prototype.onPlayerClose_=function(){var e=this.viewTheme_.behavior.reloading.reloadOnExit;if(this.listViewService_.clips&&e&&this.isReadUnreadOrderingEnabled_&&Je.Z.isFunctionalFeatureEnabled(nt.d.clipViewedStatus)){var n=(0,t.ev)([],this.listViewService_.clips,!0);(0,mt.R)({clips:this.listViewService_.clips,enableViewedOrdering:!0}),this.listViewService_.clips.some((function(e,t){return e.id!==n[t].id}))&&this.renderStoryteller(),n=[]}},r.prototype.registerListView=function(){qe.Z.registerClipsView(this.listViewService_)},r.prototype.renderStorytellerList=function(){var e=this;this.listRenderedAt_=Date.now(),n.render(n.createElement(gt.Z,{displayLimit:this.listConfiguration.displayLimit,clips:this.listViewService_.clips,clipsStatus:this.listViewService_.loadingState,basename:this.basename,delegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_,theme:this.listTheme_},n.createElement(He.AW,{render:this.renderList.bind(this)}),this.memoryRouterProps_&&n.createElement(He.AW,{path:[`/:basename?/players/:playerId?/clips/:playId?`,`/:basename?/:collection/:clipId`],render:function(t){var r=t.match,i=e.getClipPropsFromRouteParams(r),a=i.collection,o=i.basename,s=i.clipId;return a&&a===e.listConfiguration.collection&&o===e.basename&&!e.listViewService_.isUnreachable?n.createElement(ht.ZP,{clips:e.listViewService_.clips||[],clipsNavService:e.clipsNavService,feedHeader:{title:e.feedTitle,imageUrl:e.feedTitleImageUrl},collection:e.listViewService_.collection,basename:e.basename,isCategoryNavigation:!1,initialCategoryId:null,initialClipId:s,isInline:!1,supportsNavigation:e.supportsNavigation}):null}})),this.rootEl_)},r.prototype.renderStoryteller=function(){this.renderStorytellerList(),this.renderPlayer()},r}(dt.Z),vt=function(e){function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`StorytellerClipsGridView`,t}return(0,t.ZT)(r,e),Object.defineProperty(r.prototype,"configuration",{get:function(){return this.listConfiguration},set:function(e){this.listConfiguration=e},enumerable:!1,configurable:!0}),r.prototype.renderList=function(){return n.createElement(ct,{basename:this.basename,collection:this.listViewService_.collection,displayLimit:this.listConfiguration.displayLimit,isReadUnreadOrderingEnabled:this.isReadUnreadOrderingEnabled_,useGoogleWebStoryUrls:!1,mediaType:Te.D.clips,viewTheme:this.viewTheme_})},r}(_t),yt=function(e){function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.logTag=`StorytellerClipsRowView`,t}return(0,t.ZT)(r,e),Object.defineProperty(r.prototype,"cellType",{set:function(e){this.attributes_.cellType=e,this.renderStorytellerList()},enumerable:!1,configurable:!0}),r.prototype.parseAttributes=function(e){var n=this.rootEl_.dataset.cellType,r=h.E.square;return n&&(r=h.E[n]),(0,t.pi)((0,t.pi)({},e),{cellType:r})},Object.defineProperty(r.prototype,"configuration",{get:function(){return this.listConfiguration},set:function(e){this.listConfiguration=e},enumerable:!1,configurable:!0}),r.prototype.renderList=function(){return n.createElement(Ve,(0,t.pi)({},this.attributes_,{basename:this.basename,collection:this.listViewService_.collection,displayLimit:this.listConfiguration.displayLimit,isReadUnreadOrderingEnabled:this.isReadUnreadOrderingEnabled_,useGoogleWebStoryUrls:!1,mediaType:Te.D.clips,renderedAt:this.listRenderedAt_,viewTheme:this.viewTheme_}))},r}(_t),bt=r(3983),xt=function(e){return!!e?.trim()},St=function(e){return xt(e.clipId)||xt(e.externalId)},Ct=function(e){if(typeof e==`string`)return{collection:e};var t=e.collection?.trim(),n=e.clipId?.trim(),r=e.externalId?.trim(),i=[t,n,r].filter(xt).length;if(i>1)throw Error("StorytellerClipsPlayerView only supports one source at a time. Provide exactly one of `collection`, `clipId`, or `externalId`.");if(i===0)throw Error("StorytellerClipsPlayerView requires one of `collection`, `clipId`, or `externalId`.");return t?{collection:t}:n?{clipId:n}:{externalId:r}},wt=function(e){function r(t,n,r){r===void 0&&(r=!1);var i=this,a=Ct(n);return(i=e.call(this,t,a.collection||``,r,{deferInitialization:!0})||this).logTag=`StorytellerClipsPlayerView`,i.topLevelBackButtonEnabled_=!1,i.usesSingleClipSource_=!1,i.capturePageScrollOnWheel=!1,i.disableGlobalPageScrollLock=!1,i.source_=a,i.usesSingleClipSource_=St(a),i.delegate_=i.createDefaultDelegate(),i.rootEl_&&i.initializeClipsView_(),i}return(0,t.ZT)(r,e),Object.defineProperty(r.prototype,"configuration",{get:function(){return this.listConfiguration},set:function(e){this.listConfiguration=e}
73,enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"topLevelBackButtonEnabled",{get:function(){return this.topLevelBackButtonEnabled_},set:function(e){this.topLevelBackButtonEnabled_!==e&&(this.topLevelBackButtonEnabled_=e,this.renderStoryteller())},enumerable:!1,configurable:!0}),r.prototype.createDefaultDelegate=function(){return new bt.d},Object.defineProperty(r.prototype,"listConfiguration",{get:function(){return{collection:this.source_.collection,clipId:this.source_.clipId,externalId:this.source_.externalId,displayLimit:this.displayLimit_,theme:this.theme_,uiStyle:this.attributes_?this.attributes_.uiStyle:Qe.V.auto}},set:function(e){this.updateListConfiguration(e);var t=!1;try{var n=function(e,t){var n=`collection`in t,r=`clipId`in t,i=`externalId`in t;return n||r||i?Ct({collection:n?t.collection:void 0,clipId:r?t.clipId:void 0,externalId:i?t.externalId:void 0}):null}(this.source_,e);n&&(t=n.collection!==this.source_.collection||n.clipId!==this.source_.clipId||n.externalId!==this.source_.externalId)&&(this.source_=n,this.usesSingleClipSource_=St(n),this.listViewService_.collection=n.collection||``,this.clipsNavService.updateCollection(n.collection||``),this.resetSingleClipState_(),this.listViewService_.isBasenameBasedOnContent&&this.assignViewBasename())}catch(e){if(e instanceof Error)return void this.logError(e.message);throw e}t?this.loadClips():this.renderStoryteller()},enumerable:!1,configurable:!0}),r.prototype.loadClips=function(){return(0,t.mG)(this,void 0,void 0,(function(){return(0,t.Jh)(this,(function(t){switch(t.label){case 0:return this.usesSingleClipSource_?[4,this.loadSingleClip_()]:[3,2];case 1:case 3:return t.sent(),[2];case 2:return[4,e.prototype.loadClips.call(this)]}}))}))},r.prototype.renderList=function(){var e=this.listViewService_.collection||``;return n.createElement(ht.ZP,{clips:this.listViewService_.clips||[],clipsNavService:this.clipsNavService,feedHeader:{title:this.feedTitle,imageUrl:this.feedTitleImageUrl},collection:e,basename:this.basename,initialCategoryId:null,isInline:!0,isCategoryNavigation:!1,topLevelBackButtonEnabled:this.topLevelBackButtonEnabled_,capturePageScrollOnWheel:this.capturePageScrollOnWheel,disableGlobalPageScrollLock:this.disableGlobalPageScrollLock,supportsNavigation:!this.usesSingleClipSource_&&this.supportsNavigation})},r.prototype.renderPlayer=function(){},r.prototype.resetSingleClipState_=function(){this.listViewService_.clips=[],this.feedTitle=void 0,this.feedTitleImageUrl=void 0,this.supportsNavigation=!1,this.isReadUnreadOrderingEnabled_=!1,this.viewTheme_=tt.Hs},r.prototype.onSingleClipLoadSuccess=function(){var e,t;this.listViewService_.isBasenameBasedOnContent&&this.assignViewBasename(),(t=(e=this.delegate).onDataLoadComplete)==null||t.call(e,!0,null,1),this.renderStoryteller()},r.prototype.onSingleClipLoadFailure=function(e){var t,n,r,i;if(this.listViewService_.clips=[],this.listViewService_.loadingState=m.G.Error,this.renderStoryteller(),e instanceof Error)return(n=(t=this.delegate).onDataLoadComplete)==null||n.call(t,!1,e,0),void this.logError(e.message);(i=(r=this.delegate).onDataLoadComplete)==null||i.call(r,!1,Ke.G.unknown,0)},r.prototype.loadSingleClip_=function(){var e,n;return(0,t.mG)(this,void 0,void 0,(function(){var r,i,a,o;return(0,t.Jh)(this,(function(t){switch(t.label){case 0:if(r=this.source_.clipId?.trim(),i=this.source_.externalId?.trim(),!r&&!i)return[2];this.resetSingleClipState_(),this.listViewService_.loadingState=m.G.Pending,this.renderStoryteller(),(n=(e=this.delegate).onDataLoadStarted)==null||n.call(e),t.label=1;case 1:return t.trys.push([1,7,,8]),a=void 0,r?[4,pt.Z.loadClip(r,{retrieve:!0})]:[3,3];case 2:if(!(a=t.sent()))throw Error(`Clip ${r} was not found.`);return[3,6];case 3:return i?[4,pt.Z.loadClipByExternalId(i,{retrieve:!0})]:[3,5];case 4:if(!(a=t.sent()))throw Error(`Clip with external ID ${i} was not found.`);return[3,6];case 5:return[2];case 6:return this.listViewService_.collection=a.collectionId,this.clipsNavService.updateCollection(a.collectionId),this.listViewService_.clips=[a],this.listViewService_.loadingState=m.G.Success,this.onSingleClipLoadSuccess(),[3,8];case 7:return o=t.sent(),this.onSingleClipLoadFailure(o),[3,8];case 8:return[2]}}
73))}))},r.prototype.renderStorytellerList=function(){this.listRenderedAt_=Date.now(),n.render(n.createElement(gt.Z,{displayLimit:this.listConfiguration.displayLimit,clips:this.listViewService_.clips,clipsStatus:this.listViewService_.loadingState,basename:this.basename,delegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_,theme:this.listTheme_},n.createElement(He.AW,{render:this.renderList.bind(this)})),this.rootEl_)},r}(_t),Tt=function(e){function n(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;return i.logTag=`StorytellerEmbeddedClipsPlayerView`,i.capturePageScrollOnWheel=!0,i.disableGlobalPageScrollLock=!0,i}return(0,t.ZT)(n,e),n}(wt),Et=r(9628),Dt=r(3089),Ot=r(5754),kt=r(7814),At=function(){},jt=(function(e){function n(){return e!==null&&e.apply(this,arguments)||this}(0,t.ZT)(n,e)}(At),function(e,t){this.type=e,this.data=t}),Mt=function(){},Nt=r(3766),Pt=r(4990),Ft=r(5620),It=r(109),Lt=r(5690),Rt=function(e){function r(){var t=e.call(this)||this;return t.logTag=`StorytellerServerRenderer`,t}return(0,t.ZT)(r,e),r.prototype.getStories=function(e){return e===void 0&&(e=[]),(0,t.mG)(this,void 0,void 0,(function(){return(0,t.Jh)(this,(function(t){switch(t.label){case 0:return[4,Ge.Z.loadStories(e)];case 1:return[2,t.sent().stories.filter((function(e){return!!e.googleWebStoryUrl})).map((function(e){return{href:e.googleWebStoryUrl,id:e.id,title:e.titles.longDisplay||e.titles.internal,thumbnailUrl:e.thumbnailUrl}}))]}}))}))},r.prototype.render=function(e){return n.createElement(`amp-story-player`,{style:{display:`none`}},e.map((function(e){return n.createElement(`a`,{href:e.href,key:e.id},n.createElement(_.Ee,{src:e.thumbnailUrl,loading:`lazy`,width:`320`,height:`480`,"data-amp-story-player-poster-img":!0}),n.createElement(`span`,null,e.title))})))},r.sharedInstance=new r,r}(r(956).b).sharedInstance})(),(e.Storyteller=e.Storyteller||{}).ActivityEventDetail=i.ActivityEventDetail,(e.Storyteller=e.Storyteller||{}).ActivityType=i.ActivityType,(e.Storyteller=e.Storyteller||{}).Alignment=i.Alignment,(e.Storyteller=e.Storyteller||{}).ButtonAlignment=i.ButtonAlignment,(e.Storyteller=e.Storyteller||{}).CellType=i.CellType,(e.Storyteller=e.Storyteller||{}).DismissedReason=i.DismissedReason,(e.Storyteller=e.Storyteller||{}).GridView=i.GridView,(e.Storyteller=e.Storyteller||{}).OpenedReason=i.OpenedReason,(e.Storyteller=e.Storyteller||{}).QuizApiService=i.QuizApiService,(e.Storyteller=e.Storyteller||{}).QuizRenderer=i.QuizRenderer,(e.Storyteller=e.Storyteller||{}).RowView=i.RowView,(e.Storyteller=e.Storyteller||{}).ServerRenderer=i.ServerRenderer,(e.Storyteller=e.Storyteller||{}).Story=i.Story,(e.Storyteller=e.Storyteller||{}).StorytellerClipsGridView=i.StorytellerClipsGridView,(e.Storyteller=e.Storyteller||{}).StorytellerClipsPlayerView=i.StorytellerClipsPlayerView,(e.Storyteller=e.Storyteller||{}).StorytellerClipsRowView=i.StorytellerClipsRowView,(e.Storyteller=e.Storyteller||{}).StorytellerEmbeddedClipsPlayerView=i.StorytellerEmbeddedClipsPlayerView,(e.Storyteller=e.Storyteller||{}).StorytellerStoriesGridView=i.StorytellerStoriesGridView,(e.Storyteller=e.Storyteller||{}).StorytellerStoriesRowView=i.StorytellerStoriesRowView,(e.Storyteller=e.Storyteller||{}).StorytellerTrackedFunctionalFeature=i.StorytellerTrackedFunctionalFeature,(e.Storyteller=e.Storyteller||{}).TextCase=i.TextCase,(e.Storyteller=e.Storyteller||{}).Theme=i.Theme,(e.Storyteller=e.Storyteller||{}).UiStyle=i.UiStyle,(e.Storyteller=e.Storyteller||{}).UiTheme=i.UiTheme,(e.Storyteller=e.Storyteller||{}).User=i.User,(e.Storyteller=e.Storyteller||{}).UserActivityData=i.UserActivityData,(e.Storyteller=e.Storyteller||{}).sharedInstance=i.sharedInstance,Object.defineProperty(e.Storyteller=e.Storyteller||{},"__esModule",{value:!0})})()})),ej=t(((e,t)=>{t.exports=$A().Storyteller})),tj=ej(),nj=se(!1),rj=()=>{nj.value=!0},ij=()=>nj,aj=(e,t,n)=>{let r=getComputedStyle(e).getPropertyValue(t).trim();if(!r)return n;let i=r.split(/[\s,]+/).map(Number),[a,o,s]=i;return i.length<3||i.some(isNaN)||a===void 0||o===void 0||s===void 0?n:`#${a.toString(16).padStart(2,`0`)}${o.toString(16).padStart(2,`0`)}${s.toString(16).padStart(2,`0`)}`},oj=m(()=>{let{warn:e,error:t}=ra(`integrations/storyteller`),n=Bn(),{storytellerApiKey:r}=On(n);if(!r.value){e(`Storyteller: apiKey not configured — skipping init.`);return}if(tj.sharedInstance.isInitialized){rj();return}let i=r.value;sD().then(()=>
73{if(tj.sharedInstance.isInitialized){rj();return}tj.sharedInstance.initialize(i).then(()=>rj()).catch(e=>{t(`Storyteller initialization error:`,e)})})}),sj=/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/gi,cj=new Set([`email`,`emailaddress`,`email_address`,`e_mail`,`mail`,`userid`,`user_id`,`useremail`,`user_email`,`wmtuserid`,`wmt_user_id`]),lj=e=>e.toLowerCase().replace(/[^a-z0-9_]/g,``),uj=e=>cj.has(lj(e)),dj=e=>(sj.lastIndex=0,sj.test(e)),fj=e=>{if(!e.match(/^(https?:\/\/|\/)/i))return null;try{let t=e.startsWith(`/`),n=new URL(e,`https://wmt-oas.local`);return dj(n.pathname)||dj(n.hash)?null:(Array.from(n.searchParams.entries()).forEach(([e,t])=>{(uj(e)||dj(t))&&n.searchParams.delete(e)}),t?`${n.pathname}${n.search}${n.hash}`:n.toString())}catch{return null}},pj=e=>{if(typeof e==`string`)return fj(e)||(dj(e)?void 0:e);if(Array.isArray(e)){let t=e.map(e=>pj(e)).filter(e=>e!==void 0);return t.length>0?t:void 0}if(e&&typeof e==`object`){let t=mj(e);return Object.keys(t).length>0?t:void 0}return e},mj=e=>Object.entries(e).reduce((e,[t,n])=>{if(uj(t))return e;let r=pj(n);return r===void 0?e:{...e,[t]:r}},{}),hj=()=>({track:(e,t,n=!0)=>{if(typeof window>`u`)return;let r=window.gtag??null;if(!r)return;let i=mj(t);n&&(i.device_id=`website`),r(`event`,e,i)}}),gj=e=>{if(!e?.event)return;let{track:t}=hj();t(e.event,e.params,e.deviceId??!0)},_j={mounted(e,t){e.__trackBinding__=t.value,e.__trackHandler__=()=>gj(e.__trackBinding__),e.addEventListener(`click`,e.__trackHandler__)},updated(e,t){e.__trackBinding__=t.value},beforeUnmount(e){e.__trackHandler__&&e.removeEventListener(`click`,e.__trackHandler__),e.__trackHandler__=void 0,e.__trackBinding__=void 0}},vj=m(e=>{e.vueApp.directive(`track`,_j)}),yj=[`mousedown`,`wheel`,`touchstart`,`keydown`,`click`],bj=700,xj=e=>{if(!document?.body)return;let t=se(document.body),n=J(()=>un()),r=()=>{an(e,n.value)},i=ca(r,bj);r();let{stop:a}=da(t,()=>{i()},{childList:!0,subtree:!0,attributes:!0}),o=()=>{a(),yj.forEach(e=>window.removeEventListener(e,o))};yj.forEach(e=>window.addEventListener(e,o)),W(()=>{o()})},Sj=m(()=>{let e=Fe(),t=je();e.hash&&xj(e.hash.substring(1));let n=e=>{let t=e.getAttribute(`href`);return!!(t&&t.startsWith(`#`)&&t.length>1)};document.addEventListener(`click`,r=>{if(r.metaKey||r.ctrlKey||r.shiftKey||r.altKey)return;let i=r.target?.closest?.(`a`);if(!i||!n(i))return;let a=i.getAttribute(`href`).slice(1);document.getElementById(a)&&(r.preventDefault(),an(a,un()),t.replace({path:e.path,query:e.query,hash:`#${a}`}))},!0)});function Cj(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var wj={},Tj=[],Ej=()=>{},Dj=()=>!1,Oj=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),kj=e=>e.startsWith(`onUpdate:`),Aj=Object.assign,jj=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},Mj=Object.prototype.hasOwnProperty,Nj=(e,t)=>Mj.call(e,t),Pj=Array.isArray,Fj=e=>Wj(e)===`[object Map]`,Ij=e=>Wj(e)===`[object Set]`,Lj=e=>Wj(e)===`[object Date]`,Rj=e=>typeof e==`function`,zj=e=>typeof e==`string`,Bj=e=>typeof e==`symbol`,Vj=e=>typeof e==`object`&&!!e,Hj=e=>(Vj(e)||Rj(e))&&Rj(e.then)&&Rj(e.catch),Uj=Object.prototype.toString,Wj=e=>Uj.call(e),Gj=e=>Wj(e).slice(8,-1),Kj=e=>Wj(e)===`[object Object]`,qj=e=>zj(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,Jj=Cj(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),Yj=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Xj=/-\w/g,Zj=Yj(e=>e.replace(Xj,e=>e.slice(1).toUpperCase())),Qj=/\B([A-Z])/g,$j=Yj(e=>e.replace(Qj,`-$1`).toLowerCase()),eM=Yj(e=>e.charAt(0).toUpperCase()+e.slice(1)),tM=Yj(e=>e?`on${eM(e)}`:``),nM=(e,t)=>!Object.is(e,t),rM=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},iM=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},aM=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oM,sM=()=>oM||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function cM(e){if(Pj(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=zj(r)?fM(r):cM(r);if(i)for(let e in i)t[e]=i[e]}return t}if(zj(e)||Vj(e))return e}var lM=/;(?![^(]*\))/g,uM=/:([^]+)/,dM=/\/\*[^]*?\*\//g;function fM(e){let t={};
vendor: 16,628 bytes, line 73
73return e.replace(dM,``).split(lM).forEach(e=>{if(e){let n=e.split(uM);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function pM(e){let t=``;if(zj(e))t=e;else if(Pj(e))for(let n=0;n<e.length;n++){let r=pM(e[n]);r&&(t+=r+` `)}else if(Vj(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var mM=Cj(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`);function hM(e){return!!e||e===``}function gM(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=_M(e[r],t[r]);return n}function _M(e,t){if(e===t)return!0;let n=Lj(e),r=Lj(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Bj(e),r=Bj(t),n||r)return e===t;if(n=Pj(e),r=Pj(t),n||r)return n&&r?gM(e,t):!1;if(n=Vj(e),r=Vj(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!_M(e[n],t[n]))return!1}}return String(e)===String(t)}var vM=e=>!!(e&&e.__v_isRef===!0),yM=e=>zj(e)?e:e==null?``:Pj(e)||Vj(e)&&(e.toString===Uj||!Rj(e.toString))?vM(e)?yM(e.value):JSON.stringify(e,bM,2):String(e),bM=(e,t)=>vM(t)?bM(e,t.value):Fj(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[xM(t,r)+` =>`]=n,e),{})}:Ij(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>xM(e))}:Bj(t)?xM(t):Vj(t)&&!Pj(t)&&!Kj(t)?String(t):t,xM=(e,t=``)=>Bj(e)?`Symbol(${e.description??t})`:e,SM,CM=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&SM&&(SM.active?(this.parent=SM,this.index=(SM.scopes||(SM.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=SM;try{return SM=this,e()}finally{SM=t}}}on(){++this._on===1&&(this.prevScope=SM,SM=this)}off(){if(this._on>0&&--this._on===0){if(SM===this)SM=this.prevScope;else{let e=SM;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function wM(){return SM}var TM,EM=new WeakSet,DM=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,SM&&(SM.active?SM.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,EM.has(this)&&(EM.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||jM(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,WM(this),PM(this);let e=TM,t=BM;TM=this,BM=!0;try{return this.fn()}finally{FM(this),TM=e,BM=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)RM(e);this.deps=this.depsTail=void 0,WM(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?EM.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){IM(this)&&this.run()}get dirty(){return IM(this)}},OM=0,kM,AM;function jM(e,t=!1){if(e.flags|=8,t){e.next=AM,AM=e;return}e.next=kM,kM=e}function MM(){OM++}function NM(){if(--OM>0)return;if(AM){let e=AM;for(AM=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;kM;){let t=kM;for(kM=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function PM(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function FM(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),RM(r),zM(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function IM(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(LM(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function LM(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===GM)||(e.globalVersion=GM,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!IM(e))))return;e.flags|=2;let t=e.dep,n=TM,r=BM;TM=e,BM=!0;try{PM(e);let n=e.fn(e._value);(t.version===0||nM(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{TM=n,BM=r,FM(e),e.flags&=-3}}function RM(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)RM(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zM(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var BM=!0,VM=[];function HM(){VM.push(BM),BM=!1}function UM(){let e=VM.pop();BM=e===void 0||e}function WM(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=TM;TM=void 0;try{t()}finally{TM=e}}}var GM=0,KM=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},qM=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!TM||!BM||TM===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==TM)t=this.activeLink=new KM(TM,this),TM.deps?(t.prevDep=TM.depsTail,TM.depsTail.nextDep=t,TM.depsTail=t):TM.deps=TM.depsTail=t,JM(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=TM.depsTail,t.nextDep=void 0,TM.depsTail.nextDep=t,TM.depsTail=t,TM.deps===t&&(TM.deps=e)}return t}trigger(e){this.version++,GM++,this.notify(e)}notify(e){MM();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{NM()}}};function JM(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)JM(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var YM=new WeakMap,XM=Symbol(``),ZM=Symbol(``),QM=Symbol(``);function $M(e,t,n){if(BM&&TM){let t=YM.get(e);t||YM.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new qM),r.map=t,r.key=n),r.track()}}function eN(e,t,n,r,i,a){let o=YM.get(e);if(!o){GM++;return}let s=e=>{e&&e.trigger()};if(MM(),t===`clear`)o.forEach(s);else{let i=Pj(e),a=i&&qj(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===QM||!Bj(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(QM)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(XM)),Fj(e)&&s(o.get(ZM)));break;case`delete`:i||(s(o.get(XM)),Fj(e)&&s(o.get(ZM)));break;case`set`:Fj(e)&&s(o.get(XM))}}NM()}function tN(e){let t=HN(e);return t===e?t:($M(t,`iterate`,QM),BN(e)?t:t.map(WN))}function nN(e){return $M(e=HN(e),`iterate`,QM),e}function rN(e,t){return zN(e)?GN(RN(e)?WN(t):t):WN(t)}var iN={__proto__:null,[Symbol.iterator](){return aN(this,Symbol.iterator,e=>rN(this,e))},concat(...e){return tN(this).concat(...e.map(e=>Pj(e)?tN(e):e))},entries(){return aN(this,`entries`,e=>(e[1]=rN(this,e[1]),e))},every(e,t){return sN(this,`every`,e,t,void 0,arguments)},filter(e,t){return sN(this,`filter`,e,t,e=>e.map(e=>rN(this,e)),arguments)},find(e,t){return sN(this,`find`,e,t,e=>rN(this,e),arguments)},findIndex(e,t){return sN(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return sN(this,`findLast`,e,t,e=>rN(this,e),arguments)},findLastIndex(e,t){return sN(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return sN(this,`forEach`,e,t,void 0,arguments)},includes(...e){return lN(this,`includes`,e)},indexOf(...e){return lN(this,`indexOf`,e)},join(e){return tN(this).join(e)},lastIndexOf(...e){return lN(this,`lastIndexOf`,e)},map(e,t){return sN(this,`map`,e,t,void 0,arguments)},pop(){return uN(this,`pop`)},push(...e){return uN(this,`push`,e)},reduce(e,...t){return cN(this,`reduce`,e,t)},reduceRight(e,...t){return cN(this,`reduceRight`,e,t)},shift(){return uN(this,`shift`)},some(e,t){return sN(this,`some`,e,t,void 0,arguments)},splice(...e){return uN(this,`splice`,e)},toReversed(){return tN(this).toReversed()},toSorted(e){return tN(this).toSorted(e)},toSpliced(...e){return tN(this).toSpliced(...e)},unshift(...e){return uN(this,`unshift`,e)},values(){return aN(this,`values`,e=>rN(this,e))}};function aN(e,t,n){let r=nN(e),i=r[t]();return r!==e&&!BN(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var oN=Array.prototype;function sN(e,t,n,r,i,a){let o=nN(e),s=o!==e&&!BN(e),c=o[t];if(c!==oN[t]){let t=c.apply(e,a);return s?WN(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,rN(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function cN(e,t,n,r){let i=nN(e),a=i!==e&&!BN(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=rN(e,t)),n.call(this,t,rN(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?rN(e,c):c}function lN(e,t,n){let r=HN(e);$M(r,`iterate`,QM);let i=r[t](...n);return(i===-1||i===!1)&&VN(n[0])?(n[0]=HN(n[0]),r[t](...n)):i}function uN(e,t,n=[]){HM(),MM();let r=HN(e)[t].apply(e,n);return NM(),UM(),r}var dN=Cj(`__proto__,__v_isRef,__isVue`),fN=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(Bj));function pN(e){Bj(e)||(e=String(e));let t=HN(this);return $M(t,`has`,e),t.hasOwnProperty(e)}var mN=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?MN:jN:i?AN:kN).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=Pj(e);if(!r){let e;if(a&&(e=iN[t]))return e;if(t===`hasOwnProperty`)return pN}let o=Reflect.get(e,t,KN(e)?e:n);if((Bj(t)?fN.has(t):dN(t))||(r||$M(e,`get`,t),i))return o;if(KN(o)){let e=a&&qj(t)?o:o.value;return r&&Vj(e)?IN(e):e}return Vj(o)?r?IN(o):PN(o):o}},hN=class extends mN{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=Pj(e)&&qj(t);if(!this._isShallow){let e=zN(i);if(!BN(n)&&!zN(n)&&(i=HN(i),n=HN(n)),!a&&KN(i)&&!KN(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:Nj(e,t),s=Reflect.set(e,t,n,KN(e)?e:r);return e===HN(r)&&s&&(o?nM(n,i)&&eN(e,`set`,t,n):eN(e,`add`,t,n)),s}deleteProperty(e,t){let n=Nj(e,t);e[t];let r=Reflect.deleteProperty(e,t);return r&&n&&eN(e,`delete`,t,void 0),r}has(e,t){let n=Reflect.has(e,t);return(!Bj(t)||!fN.has(t))&&$M(e,`has`,t),n}ownKeys(e){return $M(e,`iterate`,Pj(e)?`length`:XM),Reflect.ownKeys(e)}},gN=class extends mN{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},_N=new hN,vN=new gN,yN=new hN(!0),bN=e=>e,xN=e=>Reflect.getPrototypeOf(e);function SN(e,t,n){return function(...r){let i=this.__v_raw,a=HN(i),o=Fj(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?bN:t?GN:WN;return!t&&$M(a,`iterate`,c?ZM:XM),Aj(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function CN(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function wN(e,t){let n={get(n){let r=this.__v_raw,i=HN(r),a=HN(n);e||(nM(n,a)&&$M(i,`get`,n),$M(i,`get`,a));let{has:o}=xN(i),s=t?bN:e?GN:WN;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&$M(HN(t),`iterate`,XM),t.size},has(t){let n=this.__v_raw,r=HN(n),i=HN(t);return e||(nM(t,i)&&$M(r,`has`,t),$M(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=HN(a),s=t?bN:e?GN:WN;return!e&&$M(o,`iterate`,XM),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return Aj(n,e?{add:CN(`add`),set:CN(`set`),delete:CN(`delete`),clear:CN(`clear`)}:{add(e){let n=HN(this),r=xN(n),i=HN(e),a=!t&&!BN(e)&&!zN(e)?i:e;return r.has.call(n,a)||nM(e,a)&&r.has.call(n,e)||nM(i,a)&&r.has.call(n,i)||(n.add(a),eN(n,`add`,a,a)),this},set(e,n){!t&&!BN(n)&&!zN(n)&&(n=HN(n));let r=HN(this),{has:i,get:a}=xN(r),o=i.call(r,e);o||=(e=HN(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?nM(n,s)&&eN(r,`set`,e,n):eN(r,`add`,e,n),this},delete(e){let t=HN(this),{has:n,get:r}=xN(t),i=n.call(t,e);i||=(e=HN(e),n.call(t,e)),r&&r.call(t,e);let a=t.delete(e);return i&&eN(t,`delete`,e,void 0),a},clear(){let e=HN(this),t=e.size!==0,n=e.clear();return t&&eN(e,`clear`,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=SN(r,e,t)}),n}function TN(e,t){let n=wN(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(Nj(n,r)&&r in t?n:t,r,i)}var EN={get:TN(!1,!1)},DN={get:TN(!1,!0)},ON={get:TN(!0,!1)},kN=new WeakMap,AN=new WeakMap,jN=new WeakMap,MN=new WeakMap;function NN(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function PN(e){return zN(e)?e:LN(e,!1,_N,EN,kN)}function FN(e){return LN(e,!1,yN,DN,AN)}function IN(e){return LN(e,!0,vN,ON,jN)}function LN(e,t,n,r,i){if(!Vj(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=NN(Gj(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function RN(e){return zN(e)?RN(e.__v_raw):!!(e&&e.__v_isReactive)}function zN(e){return!!(e&&e.__v_isReadonly)}function BN(e){return!!(e&&e.__v_isShallow)}function VN(e){return e?!!e.__v_raw:!1}function HN(e){let t=e&&e.__v_raw;return t?HN(t):e}function UN(e){return!Nj(e,`__v_skip`)&&Object.isExtensible(e)&&iM(e,`__v_skip`,!0),e}var WN=e=>Vj(e)?PN(e):e,GN=e=>Vj(e)?IN(e):e;function KN(e){return e?e.__v_isRef===!0:!1}function qN(e){return JN(e,!1)}function JN(e,t){return KN(e)?e:new YN(e,t)}var YN=class{constructor(e,t){this.dep=new qM,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:HN(e),this._value=t?e:WN(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||BN(e)||zN(e);e=n?e:HN(e),nM(e,t)&&(this._rawValue=e,this._value=n?e:WN(e),this.dep.trigger())}};function XN(e){return KN(e)?e.value:e}var ZN={get:(e,t,n)=>t===`__v_raw`?e:XN(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return KN(i)&&!KN(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function QN(e){return RN(e)?e:new Proxy(e,ZN)}var $N=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new qM(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=GM-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&TM!==this)return jM(this,!0),!0}get value(){let e=this.dep.track();return LM(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function eP(e,t,n=!1){let r,i;return Rj(e)?r=e:(r=e.get,i=e.set),new $N(r,i,n)}var tP={},nP=new WeakMap,rP=void 0;function iP(e,t=!1,n=rP){if(n){let t=nP.get(n);t||nP.set(n,t=[]),t.push(e)}}function aP(e,t,n=wj){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:BN(e)||i===!1||i===0?oP(e,1):oP(e),u,d,f,p,m=!1,h=!1;if(KN(e)?(d=()=>e.value,m=BN(e)):RN(e)?(d=()=>l(e),m=!0):Pj(e)?(h=!0,m=e.some(e=>RN(e)||BN(e)),d=()=>e.map(e=>{if(KN(e))return e.value;if(RN(e))return l(e);if(Rj(e))return c?c(e,2):e()})):d=Rj(e)?t?c?()=>c(e,2):e:()=>{if(f){HM();try{f()}finally{UM()}}let t=rP;rP=u;try{return c?c(e,3,[p]):e(p)}finally{rP=t}}:Ej,t&&i){let e=d,t=i===!0?1/0:i;d=()=>oP(e(),t)}let g=wM(),_=()=>{u.stop(),g&&g.active&&jj(g.effects,u)};if(a&&t){let e=t;t=(...t)=>{let n=e(...t);return _(),n}}let v=h?Array(e.length).fill(tP):tP,y=e=>{if(!(!(u.flags&1)||!u.dirty&&!e)){if(t){let n=u.run();if(e||i||m||(h?n.some((e,t)=>nM(e,v[t])):nM(n,v))){f&&f();let e=rP;rP=u;try{let e=[n,v===tP?void 0:h&&v[0]===tP?[]:v,p];v=n,c?c(t,3,e):t(...e)}finally{rP=e}}}else u.run()}};
vendor: 4,547 bytes, line 73
73return s&&s(y),u=new DM(d),u.scheduler=o?()=>o(y,!1):y,p=e=>iP(e,!1,u),f=u.onStop=()=>{let e=nP.get(u);if(e){if(c)c(e,4);else for(let t of e)t();nP.delete(u)}},t?r?y(!0):v=u.run():o?o(y.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function oP(e,t=1/0,n){if(t<=0||!Vj(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,KN(e))oP(e.value,t,n);else if(Pj(e))for(let r=0;r<e.length;r++)oP(e[r],t,n);else if(Ij(e)||Fj(e))e.forEach(e=>{oP(e,t,n)});else if(Kj(e)){for(let r in e)oP(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&oP(e[r],t,n)}return e}function sP(e,t,n,r){try{return r?e(...r):e()}catch(e){lP(e,t,n)}}function cP(e,t,n,r){if(Rj(e)){let i=sP(e,t,n,r);return i&&Hj(i)&&i.catch(e=>{lP(e,t,n)}),i}if(Pj(e)){let i=[];for(let a=0;a<e.length;a++)i.push(cP(e[a],t,n,r));return i}}function lP(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||wj;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){HM(),sP(a,null,10,[e,i,o]),UM();return}}uP(e,n,i,r,o)}function uP(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var dP=[],fP=-1,pP=[],mP=null,hP=0,gP=Promise.resolve(),_P=null;function vP(e){let t=_P||gP;return e?t.then(this?e.bind(this):e):t}function yP(e){let t=fP+1,n=dP.length;for(;t<n;){let r=t+n>>>1,i=dP[r],a=TP(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function bP(e){if(!(e.flags&1)){let t=TP(e),n=dP[dP.length-1];!n||!(e.flags&2)&&t>=TP(n)?dP.push(e):dP.splice(yP(t),0,e),e.flags|=1,xP()}}function xP(){_P||=gP.then(EP)}function SP(e){Pj(e)?pP.push(...e):mP&&e.id===-1?mP.splice(hP+1,0,e):e.flags&1||(pP.push(e),e.flags|=1),xP()}function CP(e,t,n=fP+1){for(;n<dP.length;n++){let t=dP[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;dP.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function wP(e){if(pP.length){let e=[...new Set(pP)].sort((e,t)=>TP(e)-TP(t));if(pP.length=0,mP){mP.push(...e);return}for(mP=e,hP=0;hP<mP.length;hP++){let e=mP[hP];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}mP=null,hP=0}}var TP=e=>e.id==null?e.flags&2?-1:1/0:e.id;function EP(e){try{for(fP=0;fP<dP.length;fP++){let e=dP[fP];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),sP(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;fP<dP.length;fP++){let e=dP[fP];e&&(e.flags&=-2)}fP=-1,dP.length=0,wP(),_P=null,(dP.length||pP.length)&&EP()}}var DP=null,OP=null;function kP(e){let t=DP;return DP=e,OP=e&&e.type.__scopeId||null,t}function AP(e,t=DP,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&zI(-1);let i=kP(t),a;try{a=e(...n)}finally{kP(i),r._d&&zI(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function jP(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(HM(),cP(c,n,8,[e.el,s,e,t]),UM())}}function MP(e,t){if(cL){let n=cL.provides,r=cL.parent&&cL.parent.provides;r===n&&(n=cL.provides=Object.create(r)),n[e]=t}}function NP(e,t,n=!1){let r=lL();if(r||BF){let i=BF?BF._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Rj(t)?t.call(r&&r.proxy):t}}var PP=Symbol.for(`v-scx`),FP=()=>NP(PP);function IP(e,t,n){return LP(e,t,n)}function LP(e,t,n=wj){let{immediate:r,deep:i,flush:a,once:o}=n,s=Aj({},n),c=t&&r||!t&&a!==`post`,l;if(hL){if(a===`sync`){let e=FP();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=Ej,e.resume=Ej,e.pause=Ej,e}}let u=cL;s.call=(e,t,n)=>cP(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{_I(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():bP(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=aP(e,t,s);return hL&&(l?l.push(f):c&&f()),f}function RP(e,t,n){let r=this.proxy,i=zj(e)?e.includes(`.`)?zP(r,e):()=>r[e]:e.bind(r,r),a;Rj(t)?a=t:(a=t.handler,n=t);let o=fL(this),s=LP(i,a.bind(r),n);return o(),s}function zP(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var BP=Symbol(`_vte`),VP=e=>e.__isTeleport,HP=Symbol(`_leaveCb`);function UP(e,t){e.shapeFlag&6&&e.component?(e.transition=t,UP(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function WP(e,t){return Rj(e)?Aj({name:e.name},t,{setup:e}):e}
73function GP(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function KP(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var qP=new WeakMap;function JP(e,t,n,r,i=!1){if(Pj(e)){e.forEach((e,a)=>JP(e,t&&(Pj(t)?t[a]:t),n,r,i));return}if(XP(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&JP(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?SL(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===wj?s.refs={}:s.refs,d=s.setupState,f=HN(d),p=d===wj?Dj:e=>!KP(u,e)&&Nj(f,e),m=(e,t)=>!(t&&KP(u,t));if(l!=null&&l!==c){if(YP(t),zj(l))u[l]=null,p(l)&&(d[l]=null);else if(KN(l)){let e=t;m(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(Rj(c)){HM();try{sP(c,s,12,[o,u])}finally{UM()}}else{let t=zj(c),r=KN(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:m()||!e.k?c.value:u[e.k];if(i)Pj(n)&&jj(n,a);else if(Pj(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];m(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(m(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),qP.delete(e)};t.id=-1,qP.set(e,t),_I(t,n)}else YP(e),s()}}}function YP(e){let t=qP.get(e);t&&(t.flags|=8,qP.delete(e))}sM().requestIdleCallback,sM().cancelIdleCallback;var XP=e=>!!e.type.__asyncLoader,ZP=e=>e.type.__isKeepAlive;function QP(e,t){eF(e,`a`,t)}function $P(e,t){eF(e,`da`,t)}function eF(e,t,n=cL){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(nF(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ZP(e.parent.vnode)&&tF(r,t,n,e),e=e.parent}}function tF(e,t,n,r){let i=nF(t,e,r,!0);lF(()=>{jj(r[t],i)},n)}function nF(e,t,n=cL,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{HM();let i=fL(n),a=cP(t,n,e,r);return i(),UM(),a};return r?i.unshift(a):i.push(a),a}}var rF=e=>(t,n=cL)=>{(!hL||e===`sp`)&&nF(e,(...e)=>t(...e),n)},iF=rF(`bm`),aF=rF(`m`),oF=rF(`bu`),sF=rF(`u`),cF=rF(`bum`),lF=rF(`um`),uF=rF(`sp`),dF=rF(`rtg`),fF=rF(`rtc`);function pF(e,t=cL){nF(`ec`,e,t)}var mF=Symbol.for(`v-ndc`);function hF(e,t,n={},r,i){if(DP.ce||DP.parent&&XP(DP.parent)&&DP.parent.ce){let e=Object.keys(n).length>0;return II(),HI(AI,null,[JI(`slot`,n,r)],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),II();let o=a&&gF(a(n)),s=n.key||o&&o.key,c=HI(AI,{key:(s&&!Bj(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||[],o&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function gF(e){return e.some(e=>!UI(e)||!(e.type===MI||e.type===AI&&!gF(e.children)))?e:null}var _F=e=>e?mL(e)?SL(e):_F(e.parent):null,vF=Aj(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_F(e.parent),$root:e=>_F(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>DF(e),$forceUpdate:e=>e.f||=()=>{bP(e.update)},$nextTick:e=>e.n||=vP.bind(e.proxy),$watch:e=>RP.bind(e)}),yF=(e,t)=>e!==wj&&!e.__isScriptSetup&&Nj(e,t),bF={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(yF(r,t))return o[t]=1,r[t];else if(i!==wj&&Nj(i,t))return o[t]=2,i[t];else if(Nj(a,t))return o[t]=3,a[t];else if(n!==wj&&Nj(n,t))return o[t]=4,n[t];else SF&&(o[t]=0)}let l=vF[t],u,d;if(l)return t===`$attrs`&&$M(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==wj&&Nj(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,Nj(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return yF(i,t)?(i[t]=n,!0):r!==wj&&Nj(r,t)?(r[t]=n,!0):Nj(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==wj&&s[0]!==`$`&&Nj(e,s)||yF(t,s)||Nj(a,s)||Nj(r,s)||Nj(vF,s)||Nj(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?Nj(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function xF(e){return Pj(e)?e.reduce((e,t)=>
vendor: 25,319 bytes, line 73
73(e[t]=null,e),{}):e}var SF=!0;function CF(e){let t=DF(e),n=e.proxy,r=e.ctx;SF=!1,t.beforeCreate&&TF(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:g,beforeDestroy:_,beforeUnmount:v,destroyed:y,unmounted:b,render:x,renderTracked:S,renderTriggered:C,errorCaptured:w,serverPrefetch:T,expose:E,inheritAttrs:D,components:O,directives:k,filters:A}=t;if(l&&wF(l,r,null),o)for(let e in o){let t=o[e];Rj(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);Vj(t)&&(e.data=PN(t))}if(SF=!0,a)for(let e in a){let t=a[e],i=wL({get:Rj(t)?t.bind(n,n):Rj(t.get)?t.get.bind(n,n):Ej,set:!Rj(t)&&Rj(t.set)?t.set.bind(n):Ej});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)EF(s[e],r,n,e);if(c){let e=Rj(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{MP(t,e[t])})}u&&TF(u,e,`c`);function j(e,t){Pj(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(iF,d),j(aF,f),j(oF,p),j(sF,m),j(QP,h),j($P,g),j(pF,w),j(fF,S),j(dF,C),j(cF,v),j(lF,b),j(uF,T),Pj(E)){if(E.length){let t=e.exposed||={};E.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}x&&e.render===Ej&&(e.render=x),D!=null&&(e.inheritAttrs=D),O&&(e.components=O),k&&(e.directives=k),T&&GP(e)}function wF(e,t,n=Ej){Pj(e)&&(e=MF(e));for(let n in e){let r=e[n],i;i=Vj(r)?`default`in r?NP(r.from||n,r.default,!0):NP(r.from||n):NP(r),KN(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function TF(e,t,n){cP(Pj(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function EF(e,t,n,r){let i=r.includes(`.`)?zP(n,r):()=>n[r];if(zj(e)){let n=t[e];Rj(n)&&IP(i,n)}else if(Rj(e))IP(i,e.bind(n));else if(Vj(e)){if(Pj(e))e.forEach(e=>EF(e,t,n,r));else{let r=Rj(e.handler)?e.handler.bind(n):t[e.handler];Rj(r)&&IP(i,r,e)}}}function DF(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>OF(c,e,o,!0)),OF(c,t,o)),Vj(t)&&a.set(t,c),c}function OF(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&OF(e,a,n,!0),i&&i.forEach(t=>OF(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=kF[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var kF={data:AF,props:FF,emits:FF,methods:PF,computed:PF,beforeCreate:NF,created:NF,beforeMount:NF,mounted:NF,beforeUpdate:NF,updated:NF,beforeDestroy:NF,beforeUnmount:NF,destroyed:NF,unmounted:NF,activated:NF,deactivated:NF,errorCaptured:NF,serverPrefetch:NF,components:PF,directives:PF,watch:IF,provide:AF,inject:jF};function AF(e,t){return t?e?function(){return Aj(Rj(e)?e.call(this,this):e,Rj(t)?t.call(this,this):t)}:t:e}function jF(e,t){return PF(MF(e),MF(t))}function MF(e){if(Pj(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function NF(e,t){return e?[...new Set([].concat(e,t))]:t}function PF(e,t){return e?Aj(Object.create(null),e,t):t}function FF(e,t){return e?Pj(e)&&Pj(t)?[...new Set([...e,...t])]:Aj(Object.create(null),xF(e),xF(t??{})):t}function IF(e,t){if(!e)return t;if(!t)return e;let n=Aj(Object.create(null),e);for(let r in t)n[r]=NF(e[r],t[r]);return n}function LF(){return{app:null,config:{isNativeTag:Dj,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var RF=0;function zF(e,t){return function(t,n=null){Rj(t)||(t=Aj({},t)),n!=null&&!Vj(n)&&(n=null);let r=LF(),i=new WeakSet,a=[],o=!1,s=r.app={_uid:RF++,_component:t,_props:n,_container:null,_context:r,_instance:null,version:TL,get config(){return r.config},set config(e){},use(e,...t){return i.has(e)||(e&&Rj(e.install)?(i.add(e),e.install(s,...t)):Rj(e)&&(i.add(e),e(s,...t))),s},mixin(e){return r.mixins.includes(e)||r.mixins.push(e),s},component(e,t){return t?(r.components[e]=t,s):r.components[e]},directive(e,t){return t?(r.directives[e]=t,s):r.directives[e]},mount(i,a,c){if(!o){let a=s._ceVNode||JI(t,n);return a.appContext=r,c===!0?c=`svg`:c===!1&&(c=void 0),e(a,i,c),o=!0,s._container=i,i.__vue_app__=s,SL(a.component)}},onUnmount(e){a.push(e)},unmount(){o&&(cP(a,s._instance,16),e(null,s._container),delete s._container.__vue_app__)},provide(e,t){return r.provides[e]=t,s},runWithContext(e){let t=BF;BF=s;try{return e()}finally{BF=t}}};return s}}var BF=null,VF=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${Zj(t)}Modifiers`]||e[`${$j(t)}Modifiers`];function HF(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||wj,i=n,a=t.startsWith(`update:`),o=a&&VF(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>zj(e)?e.trim():e)),o.number&&(i=n.map(aM)));let s,c=r[s=tM(t)]||r[s=tM(Zj(t))];!c&&a&&(c=r[s=tM($j(t))]),c&&cP(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,cP(l,e,6,i)}}var UF=new WeakMap;function WF(e,t,n=!1){let r=n?UF:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!Rj(e)){let r=e=>{let n=WF(e,t,!0);n&&(s=!0,Aj(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(Vj(e)&&r.set(e,null),null):(Pj(a)?a.forEach(e=>o[e]=null):Aj(o,a),Vj(e)&&r.set(e,o),o)}function GF(e,t){return!e||!Oj(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),Nj(e,t[0].toLowerCase()+t.slice(1))||Nj(e,$j(t))||Nj(e,t))}function KF(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=kP(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=eL(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=eL(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:qF(s)}}catch(t){PI.length=0,lP(t,e,1),_=JI(MI)}let y=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(kj)&&(v=JF(v,a)),y=ZI(y,v,!1,!0))}return n.dirs&&(y=ZI(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&UP(y,n.transition),_=y,kP(g),_}var qF=e=>{let t;for(let n in e)(n===`class`||n===`style`||Oj(n))&&((t||={})[n]=e[n]);return t},JF=(e,t)=>{let n={};for(let r in e)(!kj(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function YF(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?XF(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(ZF(o,r,n)&&!GF(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||XF(r,o,l):!!o;return!1}function XF(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(ZF(t,e,a)&&!GF(n,a))return!0}return!1}function ZF(e,t,n){let r=e[n],i=t[n];return n===`style`&&Vj(r)&&Vj(i)?!_M(r,i):r!==i}function QF({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var $F={},eI=()=>Object.create($F),tI=e=>Object.getPrototypeOf(e)===$F;function nI(e,t,n,r=!1){let i={},a=eI();e.propsDefaults=Object.create(null),iI(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:FN(i):e.type.props?i:a,e.attrs=a}function rI(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=HN(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(GF(e.emitsOptions,o))continue;let u=t[o];if(c){if(Nj(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=Zj(o);i[t]=aI(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{iI(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!Nj(t,a)&&((r=$j(a))===a||!Nj(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=aI(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!Nj(t,e))&&(delete a[e],l=!0)}l&&eN(e.attrs,`set`,``)}function iI(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(Jj(c))continue;let l=t[c],u;i&&Nj(i,u=Zj(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:GF(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=HN(n),r=s||wj;for(let o=0;o<a.length;o++){let s=a[o];n[s]=aI(i,t,s,r[s],e,!Nj(r,s))}}return o}function aI(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=Nj(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&Rj(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=fL(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===$j(n))&&(r=!0))}return r}var oI=new WeakMap;function sI(e,t,n=!1){let r=n?oI:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!Rj(e)){let r=e=>{c=!0;let[n,r]=sI(e,t,!0);Aj(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return Vj(e)&&r.set(e,Tj),Tj;if(Pj(a))for(let e=0;e<a.length;e++){let t=Zj(a[e]);cI(t)&&(o[t]=wj)}else if(a)for(let e in a){let t=Zj(e);if(cI(t)){let n=a[e],r=o[t]=Pj(n)||Rj(n)?{type:n}:Aj({},n),i=r.type,c=!1,l=!0;if(Pj(i))for(let e=0;e<i.length;++e){let t=i[e],n=Rj(t)&&t.name;if(n===`Boolean`){c=!0;break}n===`String`&&(l=!1)}else c=Rj(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||Nj(r,`default`))&&s.push(t)}}let l=[o,s];return Vj(e)&&r.set(e,l),l}function cI(e){return e[0]!==`$`&&!Jj(e)}var lI=e=>e===`_`||e===`_ctx`||e===`$stable`,uI=e=>Pj(e)?e.map(eL):[eL(e)],dI=(e,t,n)=>{if(t._n)return t;let r=AP((...e)=>uI(t(...e)),n);return r._c=!1,r},fI=(e,t,n)=>{let r=e._ctx;for(let n in e){if(lI(n))continue;let i=e[n];if(Rj(i))t[n]=dI(n,i,r);else if(i!=null){let e=uI(i);t[n]=()=>e}}},pI=(e,t)=>{let n=uI(t);e.slots.default=()=>n},mI=(e,t,n)=>{for(let r in t)(n||!lI(r))&&(e[r]=t[r])},hI=(e,t,n)=>{let r=e.slots=eI();if(e.vnode.shapeFlag&32){let e=t._;e?(mI(r,t,n),n&&iM(r,`_`,e,!0)):fI(t,r)}else t&&pI(e,t)},gI=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=wj;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:mI(i,t,n):(a=!t.$stable,fI(t,i)),o=t}else t&&(pI(e,t),o={default:1});if(a)for(let e in i)!lI(e)&&o[e]==null&&delete i[e]},_I=kI;function vI(e){return yI(e)}function yI(e,t){let n=sM();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=Ej,insertStaticContent:m}=e,h=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!WI(e,t)&&(r=U(e),R(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case jI:g(e,t,n,r);break;case MI:_(e,t,n,r);break;case NI:e??v(t,n,r,o);break;case AI:O(e,t,n,r,i,a,o,s,c);break;default:d&1?x(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,G)}u!=null&&i?JP(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&JP(e.ref,null,a,e,!0)},g=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},_=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},x=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)S(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),T(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},S=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&w(e.children,f,null,i,s,bI(e,c),l,d),_&&jP(e,null,i,`created`),C(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!Jj(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&iL(p,i,e)}_&&jP(e,null,i,`beforeMount`);let v=SI(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&_I(()=>{try{p&&iL(p,i,e),v&&g.enter(f),_&&jP(e,null,i,`mounted`)}finally{}},s)},C=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t<r.length;t++)p(e,r[t]);if(i){let n=i.subTree;if(t===n||OI(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;C(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},w=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?tL(e[l]):eL(e[l]);h(null,c,t,n,r,i,a,o,s)}},T=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||wj,m=t.props||wj,h;if(n&&xI(n,!1),(h=m.onVnodeBeforeUpdate)&&iL(h,n,t,e),f&&jP(t,e,n,`beforeUpdate`),n&&xI(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(l=0,s=!1,d=null),(p.innerHTML&&m.innerHTML==null||p.textContent&&m.textContent==null)&&u(c,``),d?E(e.dynamicChildren,d,c,n,r,bI(t,i),o):s||P(e,t,c,null,n,r,bI(t,i),o,!1),l>0){if(l&16)D(c,p,m,n,i);else if(l&2&&p.class!==m.class&&a(c,`class`,null,m.class,i),l&4&&a(c,`style`,p.style,m.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=p[r],s=m[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else!s&&d==null&&D(c,p,m,n,i);((h=m.onVnodeUpdated)||f)&&_I(()=>{h&&iL(h,n,t,e),f&&jP(t,e,n,`updated`)},r)},E=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===AI||!WI(c,l)||c.shapeFlag&198)?d(c.el):n;h(c,l,u,null,r,i,a,o,!0)}},D=(e,t,n,r,i)=>{if(t!==n){if(t!==wj)for(let o in t)!Jj(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(Jj(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},O=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),w(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(E(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&CI(e,t,!0)):P(e,t,n,f,a,o,c,l,u)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):j(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=sL(e,r,i);if(ZP(e)&&(s.ctx.renderer=G),gL(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,M,o),!e.el){let r=s.subTree=JI(MI);_(null,r,t,n),e.placeholder=r.el}}else M(s,e,t,n,i,a,o)},j=(e,t,n)=>{let r=t.component=e.component;if(YF(e,t,n)){if(r.asyncDep&&!r.asyncResolved){N(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},M=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=TI(e);if(n){t&&(t.el=c.el,N(e,t,o)),n.asyncDep.then(()=>{_I(()=>{e.isUnmounted||l()},i)});return}}let u=t,f;xI(e,!1),t?(t.el=c.el,N(e,t,o)):t=c,n&&rM(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&iL(f,s,t,c),xI(e,!0);let p=KF(e),m=e.subTree;e.subTree=p,h(m,p,d(m.el),U(m),e,i,a),t.el=p.el,u===null&&QF(e,p.el),r&&_I(r,i),(f=t.props&&t.props.onVnodeUpdated)&&_I(()=>iL(f,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=XP(t);xI(e,!1),l&&rM(l),!m&&(o=c&&c.onVnodeBeforeMount)&&iL(o,d,t),xI(e,!0);{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=KF(e);h(null,o,n,r,e,i,a),t.el=o.el}if(u&&_I(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;_I(()=>iL(o,d,e),i)}(t.shapeFlag&256||d&&XP(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&_I(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new DM(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>bP(u),xI(e,!0),l()},N=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,rI(e,t.props,r,n),gI(e,t.children,n),HM(),CP(e),UM()},P=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){I(l,f,n,r,i,a,o,s,c);return}if(p&256){F(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&H(l,i,a),f!==l&&u(n,f)):d&16?m&16?I(l,f,n,r,i,a,o,s,c):H(l,i,a,!0):(d&8&&u(n,``),m&16&&w(f,n,r,i,a,o,s,c))},F=(e,t,n,r,i,a,o,s,c)=>{e||=Tj,t||=Tj;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?tL(t[f]):eL(t[f]);h(e[f],r,n,null,i,a,o,s,c)}l>u?H(e,i,a,!0,!1,d):w(t,n,r,i,a,o,s,c,d)},I=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?tL(t[l]):eL(t[l]);if(WI(r,u))h(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?tL(t[f]):eL(t[f]);if(WI(r,l))h(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)h(null,t[l]=c?tL(t[l]):eL(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)R(e[l],i,a,!0),l++;else{let p=l,m=l,g=new Map;for(l=m;l<=f;l++){let e=t[l]=c?tL(t[l]):eL(t[l]);e.key!=null&&g.set(e.key,l)}let _,v=0,y=f-m+1,b=!1,x=0,S=Array(y);for(l=0;l<y;l++)S[l]=0;for(l=p;l<=d;l++){let r=e[l];if(v>=y){R(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(S[_-m]===0&&WI(r,t[_])){u=_;break}u===void 0?R(r,i,a,!0):(S[u-m]=l+1,u>=x?x=u:b=!0,h(r,t[u],n,null,i,a,o,s,c),v++)}let C=b?wI(S):Tj;for(_=C.length-1,l=y-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1<u?f.el||DI(f):r;S[l]===0?h(null,d,n,p,i,a,o,s,c):b&&(_<0||l!==C[_]?L(d,n,p,2):_--)}}},L=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){L(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,G);return}if(c===AI){r(s,t,n);for(let e=0;e<u.length;e++)L(u[e],t,n,a);r(e.anchor,t,n);return}if(c===NI){y(e,t,n);return}if(a!==2&&d&1&&l){if(a===0)l.persisted&&!s[HP]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),_I(()=>l.enter(s),o));else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[HP];s._isLeaving&&s[HP](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}}else r(s,t,n)},R=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(HM(),JP(s,null,n,e,!0),UM()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!XP(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&iL(_,t,e),u&6)V(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&jP(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,G,r):l&&!l.hasOnce&&(a!==AI||d>0&&d&64)?H(l,t,n,!1,!0):(a===AI&&d&384||!i&&u&16)&&H(c,t,n),r&&z(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&_I(()=>{_&&iL(_,t,e),h&&jP(e,null,t,`unmounted`),v&&(e.el=null)},n)},z=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===AI){B(n,r);return}if(t===NI){b(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},B=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},V=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;EI(c),EI(l),r&&rM(r),i.stop(),a&&(a.flags|=8,R(o,e,t,n)),s&&_I(s,t),_I(()=>{e.isUnmounted=!0},t)},H=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)R(e[o],t,n,r,i)},U=e=>{if(e.shapeFlag&6)return U(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[BP];return n?f(n):t},W=!1,ee=(e,t,n)=>{let r;e==null?t._vnode&&(R(t._vnode,null,null,!0),r=t._vnode.component):h(t._vnode||null,e,t,null,null,null,n),t._vnode=e,W||=(W=!0,CP(r),wP(),!1)},G={p:h,um:R,m:L,r:z,mt:A,mc:w,pc:P,pbc:E,n:U,o:e},te;return{render:ee,hydrate:te,createApp:zF(ee)}}function bI({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function xI({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function SI(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function CI(e,t,n=!1){let r=e.children,i=t.children;if(Pj(r)&&Pj(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=tL(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&CI(t,a)),a.type===jI&&(a.patchFlag===-1&&(a=i[e]=tL(a)),a.el=t.el),a.type===MI&&!a.el&&(a.el=t.el)}}function wI(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function TI(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:TI(t)}function EI(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function DI(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?DI(t.subTree):null}var OI=e=>e.__isSuspense;function kI(e,t){t&&t.pendingBranch?Pj(e)?t.effects.push(...e):t.effects.push(e):SP(e)}var AI=Symbol.for(`v-fgt`),jI=Symbol.for(`v-txt`),MI=Symbol.for(`v-cmt`),NI=Symbol.for(`v-stc`),PI=[],FI=null;function II(e=!1){PI.push(FI=e?null:[])}function LI(){PI.pop(),FI=PI[PI.length-1]||null}var RI=1;function zI(e,t=!1){RI+=e,e<0&&FI&&t&&(FI.hasOnce=!0)}function BI(e){return e.dynamicChildren=RI>0?FI||Tj:null,LI(),RI>0&&FI&&FI.push(e),e}function VI(e,t,n,r,i,a){return BI(qI(e,t,n,r,i,a,!0))}function HI(e,t,n,r,i){return BI(JI(e,t,n,r,i,!0))}function UI(e){return e?e.__v_isVNode===!0:!1}function WI(e,t){return e.type===t.type&&e.key===t.key}var GI=({key:e})=>e??null,KI=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:zj(e)||KN(e)||Rj(e)?{i:DP,r:e,k:t,f:!!n}:e);function qI(e,t=null,n=null,r=0,i=null,a=e===AI?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&GI(t),ref:t&&KI(t),scopeId:OP,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:DP};return s?(nL(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=zj(n)?8:16),RI>0&&!o&&FI&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&FI.push(c),c}var JI=YI;function YI(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===mF)&&(e=MI),UI(e)){let r=ZI(e,t,!0);return n&&nL(r,n),RI>0&&!a&&FI&&(r.shapeFlag&6?FI[FI.indexOf(e)]=r:FI.push(r)),r.patchFlag=-2,r}if(CL(e)&&(e=e.__vccOpts),t){t=XI(t);let{class:e,style:n}=t;e&&!zj(e)&&(t.class=pM(e)),Vj(n)&&(VN(n)&&!Pj(n)&&(n=Aj({},n)),t.style=cM(n))}let o=zj(e)?1:OI(e)?128:VP(e)?64:Vj(e)?4:Rj(e)?2:0;return qI(e,t,n,r,i,o,a,!0)}function XI(e){return e?VN(e)||tI(e)?Aj({},e):e:null}function ZI(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?rL(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&GI(l),ref:t&&t.ref?n&&a?Pj(a)?a.concat(KI(t)):[a,KI(t)]:KI(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==AI?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ZI(e.ssContent),ssFallback:e.ssFallback&&ZI(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&UP(u,c.clone(u)),u}function QI(e=` `,t=0){return JI(jI,null,e,t)}function $I(e=``,t=!1){return t?(II(),HI(MI,null,e)):JI(MI,null,e)}function eL(e){return e==null||typeof e==`boolean`?JI(MI):Pj(e)?JI(AI,null,e.slice()):UI(e)?tL(e):JI(jI,null,String(e))}function tL(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ZI(e)}function nL(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(Pj(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),nL(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!tI(t)?t._ctx=DP:r===3&&DP&&(DP.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(Rj(t)){if(r&65){nL(e,{default:t});return}t={default:t,_ctx:DP},n=32}else t=String(t),r&64?(n=16,t=[QI(t)]):n=8;e.children=t,e.shapeFlag|=n}function rL(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=pM([t.class,r.class]));else if(e===`style`)t.style=cM([t.style,r.style]);else if(Oj(e)){let n=t[e],i=r[e];i&&n!==i&&!(Pj(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!kj(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function iL(e,t,n,r=null){cP(e,t,7,[n,r])}var aL=LF(),oL=0;function sL(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||aL,a={uid:oL++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new CM(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sI(r,i),emitsOptions:WF(r,i),emit:null,emitted:null,propsDefaults:wj,inheritAttrs:r.inheritAttrs,ctx:wj,data:wj,props:wj,attrs:wj,slots:wj,refs:wj,setupState:wj,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
73sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=HF.bind(null,a),e.ce&&e.ce(a),a}var cL=null,lL=()=>cL||DP,uL,dL;{let e=sM(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};uL=t(`__VUE_INSTANCE_SETTERS__`,e=>cL=e),dL=t(`__VUE_SSR_SETTERS__`,e=>hL=e)}var fL=e=>{let t=cL;return uL(e),e.scope.on(),()=>{e.scope.off(),uL(t)}},pL=()=>{cL&&cL.scope.off(),uL(null)};function mL(e){return e.vnode.shapeFlag&4}var hL=!1;function gL(e,t=!1,n=!1){t&&dL(t);let{props:r,children:i}=e.vnode,a=mL(e);nI(e,r,a,t),hI(e,i,n||t);let o=a?_L(e,t):void 0;return t&&dL(!1),o}function _L(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bF);let{setup:r}=n;if(r){HM();let n=e.setupContext=r.length>1?xL(e):null,i=fL(e),a=sP(r,e,0,[e.props,n]),o=Hj(a);if(UM(),i(),(o||e.sp)&&!XP(e)&&GP(e),o){if(a.then(pL,pL),t)return a.then(t=>{vL(e,t)}).catch(t=>{lP(t,e,0)});e.asyncDep=a}else vL(e,a)}else yL(e)}function vL(e,t,n){Rj(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Vj(t)&&(e.setupState=QN(t)),yL(e)}function yL(e,t,n){let r=e.type;e.render||=r.render||Ej;{let t=fL(e);HM();try{CF(e)}finally{UM(),t()}}}var bL={get(e,t){return $M(e,`get`,``),e[t]}};function xL(e){return{attrs:new Proxy(e.attrs,bL),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function SL(e){return e.exposed?e.exposeProxy||=new Proxy(QN(UN(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vF)return vF[n](e)},has(e,t){return t in e||t in vF}}):e.proxy}function CL(e){return Rj(e)&&`__vccOpts`in e}var wL=(e,t)=>eP(e,t,hL),TL=`3.5.39`,EL=void 0,DL=typeof window<`u`&&window.trustedTypes;if(DL)try{EL=DL.createPolicy(`vue`,{createHTML:e=>e})}catch{}var OL=EL?e=>EL.createHTML(e):e=>e,kL=`http://www.w3.org/2000/svg`,AL=`http://www.w3.org/1998/Math/MathML`,jL=typeof document<`u`?document:null,ML=jL&&jL.createElement(`template`),NL={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?jL.createElementNS(kL,e):t===`mathml`?jL.createElementNS(AL,e):n?jL.createElement(e,{is:n}):jL.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>jL.createTextNode(e),createComment:e=>jL.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 5,333 bytes, line 73
73{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jL.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{ML.innerHTML=OL(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=ML.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},PL=Symbol(`_vtc`);function FL(e,t,n){let r=e[PL];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var IL=Symbol(`_vod`),LL=Symbol(`_vsh`),RL=Symbol(``),zL=/(?:^|;)\s*display\s*:/;function BL(e,t,n){let r=e.style,i=zj(n),a=!1;if(n&&!i){if(t){if(zj(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??HL(r,t,``)}else for(let e in t)n[e]??HL(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?HL(r,i,``):KL(e,i,!zj(t)&&t?t[i]:void 0,o)||HL(r,i,o)}}else if(i){if(t!==n){let e=r[RL];e&&(n+=`;`+e),r.cssText=n,a=zL.test(n)}}else t&&e.removeAttribute(`style`);IL in e&&(e[IL]=a?r.display:``,e[LL]&&(r.display=`none`))}var VL=/\s*!important$/;function HL(e,t,n){if(Pj(n))n.forEach(n=>HL(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=GL(e,t);VL.test(n)?e.setProperty($j(r),n.replace(VL,``),`important`):e[r]=n}}var UL=[`Webkit`,`Moz`,`ms`],WL={};function GL(e,t){let n=WL[t];if(n)return n;let r=Zj(t);if(r!==`filter`&&r in e)return WL[t]=r;r=eM(r);for(let n=0;n<UL.length;n++){let i=UL[n]+r;if(i in e)return WL[t]=i}return t}function KL(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&zj(r)&&n===r}var qL=`http://www.w3.org/1999/xlink`;function JL(e,t,n,r,i,a=mM(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(qL,t.slice(6,t.length)):e.setAttributeNS(qL,t,n):n==null||a&&!hM(n)?e.removeAttribute(t):e.setAttribute(t,a?``:Bj(n)?String(n):n)}function YL(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?OL(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=hM(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function XL(e,t,n,r){e.addEventListener(t,n,r)}function ZL(e,t,n,r){e.removeEventListener(t,n,r)}var QL=Symbol(`_vei`);function $L(e,t,n,r,i=null){let a=e[QL]||(e[QL]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=nR(t);r?XL(e,n,a[t]=oR(r,i),s):o&&(ZL(e,n,o,s),a[t]=void 0)}}var eR=/(Once|Passive|Capture)$/,tR=/^on:?(?:Once|Passive|Capture)$/;function nR(e){let t,n;for(;(n=e.match(eR))&&!tR.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):$j(e.slice(2)),t]}var rR=0,iR=Promise.resolve(),aR=()=>rR||=(iR.then(()=>rR=0),Date.now());function oR(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(Pj(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&cP(e,t,5,a)}}else cP(r,t,5,[e])};return n.value=e,n.attached=aR(),n}var sR=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cR=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?FL(e,r,o):t===`style`?BL(e,n,r):Oj(t)?kj(t)||$L(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):lR(e,t,r,o))?(YL(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&JL(e,t,r,o,a,t!==`value`)):e._isVueCE&&(uR(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!zj(r)))?YL(e,Zj(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),JL(e,t,r,o))};function lR(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&sR(t)&&Rj(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return sR(t)&&zj(n)?!1:t in e}function uR(e,t){let n=e._def.props;if(!n)return!1;let r=Zj(t);return Array.isArray(n)?n.some(e=>Zj(e)===r):Object.keys(n).some(e=>Zj(e)===r)}var dR=Aj({patchProp:cR},NL),fR;function pR(){return fR||=vI(dR)}var mR=((...e)=>{let t=pR().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=gR(e);if(!r)return;let i=t._component;!Rj(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,hR(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function hR(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function gR(e){return zj(e)?document.querySelector(e):e}var _R={COOKIE:`cookie`,BEARER:`bearer`}
73,vR={OK:200,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,TOO_MANY_REQUESTS:429,INTERNAL_SERVER_ERROR:500},yR=`fanid_exchange_token`,bR={DomainNotConfigured:e=>`Domain not configured. The widget could not load FanID configuration from ${e}. Verify the baseUrl and that this site is whitelisted on your FanID tenant.`,MissingBaseUrl:`FanIDWidget.init() requires a baseUrl pointing to your FanID tenant domain (e.g. https://your-org.fanid.co). Initialization aborted.`},xR={[vR.BAD_REQUEST]:`Bad request.`,[vR.UNAUTHORIZED]:`Authentication required.`,[vR.TOO_MANY_REQUESTS]:`Too many requests. Please try again in a minute.`,[vR.INTERNAL_SERVER_ERROR]:`Server error. Please try again later.`},SR={ServerError:`Server error. Please try again later.`,Network:`Network error.`,Unknown:`Request failed.`},CR={enabled:!0,customElementName:`wmt-fanid-protected`,placeholder:{title:`Exclusive Content`,message:`Sign in with FanID to view this content`,buttonText:`Sign In`},style:`blur`,blurAmount:8,minHeight:280,maxHeight:null,overlayAlign:`top`,revealAnimation:`fade`},wR={enabled:!0,position:`top-right`,autoShow:!0,persistClose:`session`},TR=class{state;listeners=new Set;constructor(e){this.state={initialized:!1,isAuthenticated:!1,profile:null,organization:null,error:null,transport:_R.BEARER,classPrefix:`_`+Math.random().toString(36).slice(2,7),config:{...CR,...e?.gatedContent,placeholder:{...CR.placeholder,...e?.gatedContent?.placeholder}},floatingWidget:{...wR,...e?.floatingWidget}}}getState(){return this.state}update(e){this.state={...this.state,...e},this.notify()}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}notify(){for(let e of this.listeners)e(this.state)}},ER=null;function DR(e){return ER=new TR(e),ER}function OR(){if(!ER)throw Error(`FanIDState not initialized. Call FanIDWidget.init() first.`);return ER}var kR=class{handlers=new Map;on(e,t){this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(t)}off(e,t){this.handlers.get(e)?.delete(t)}emit(e,...t){let n=this.handlers.get(e);if(n)for(let e of n)try{e(...t)}catch{}}removeAll(){this.handlers.clear()}},AR=null;function jR(){return AR=new kR,AR}function MR(){if(!AR)throw Error(`FanIDEvents not initialized. Call FanIDWidget.init() first.`);return AR}var NR=`fanid_widget_closed`,PR=`true`;function FR(e,t){let n=parseInt(e.replace(`#`,``),16),r=Math.round(2.55*t),i=Math.max(0,(n>>16)-r),a=Math.max(0,(n>>8&255)-r),o=Math.max(0,(n&255)-r);return`#`+(16777216+i*65536+a*256+o).toString(16).slice(1)}function IR(e){return e===!1?{enabled:!1}:e===!0||e===void 0?{}:e}function LR(e){if(typeof window>`u`)return null;try{if(e===`session`)return window.sessionStorage;if(e===`persistent`)return window.localStorage}catch{return null}return null}function RR(e){return LR(e)?.getItem(NR)===PR}function zR(e){LR(e)?.setItem(NR,PR)}function BR(){if(!(typeof window>`u`))try{window.sessionStorage.removeItem(NR),window.localStorage.removeItem(NR)}catch{}}var VR=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},HR={},UR={class:`fanid-widget`,role:`region`,"aria-label":`FanID sign-in`},WR={class:`fanid-widget__container`};function GR(e,t){return II(),VI(`div`,UR,[qI(`div`,WR,[qI(`button`,{type:`button`,"aria-label":`Close FanID widget`,class:`fanid-widget__close`,onClick:t[0]||=t=>e.$emit(`close`)},[...t[1]||=[qI(`span`,{"aria-hidden":`true`},`×`,-1)]]),hF(e.$slots,`default`)])])}var KR=VR(HR,[[`render`,GR]]),qR=[`alt`,`src`],JR=WP({__name:`FanIDLogo`,props:{logo:{},organizationName:{}},setup(e){return(t,n)=>e.logo?(II(),VI(`img`,{key:0,alt:e.organizationName||`WMT Fan ID`,src:e.logo,class:`fanid-widget__icon`},null,8,qR)):$I(``,!0)}}),YR={class:`fanid-widget__content`},XR={class:`fanid-widget__brand`},ZR={class:`fanid-widget__brand-text`},QR={class:`fanid-widget__brand-label`},$R={class:`fanid-widget__text`},ez=WP({__name:`LoginDefault`,props:{logo:{},organizationName:{},title:{},subtitle:{}},emits:[`login`],setup(e){let t=e,n=wL(()=>t.title?t.title:t.organizationName?`${t.organizationName} ID`:`Fan ID`),r=wL(()=>t.subtitle||`Sign in to access exclusive content`);return(t,i)=>(II(),VI(`div`,YR,[qI(`div`,XR,[e.logo?(II(),HI(JR,{key:0,logo:e.logo,"organization-name":e.organizationName},null,8,[`logo`,`organization-name`])):$I(``,!0),qI(`div`,ZR,[qI(`span`,QR,yM(n.value),1),qI(`span`,$R,yM(r.value),1)])]),qI(`button`,{class:`fanid-widget__button`,type:`button`,onClick:i[0]||=e=>t.$emit(`login`)},` Sign In `)]))}}),tz={},nz={height:`24`,viewBox:`0 0 24 24`,width:`24`,"aria-hidden":`true`,focusable:`false`};function rz(e,t){return II(),VI(`svg`,nz,[...t[0]||=[qI(`path`,{d:`M5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h6q.425 0 .713.288T12 4t-.288.713T11 5H5v14h6q.425 0 .713.288T12 20t-.288.713T11 21zm12.175-8H10q-.425 0-.712-.288T9 12t.288-.712T10 11h7.175L15.3 9.125q-.275-.275-.275-.675t.275-.7t.7-.313t.725.288L20.3 11.3q.3.3.3.7t-.3.7l-3.575 3.575q-.3.3-.712.288t-.713-.313q-.275-.3-.262-.712t.287-.688z`,fill:`#002B5C`},null,-1)]])}var iz=VR(tz,[[`render`,rz]]),az={class:`fanid-widget__content fanid-widget__content--logged-in`},oz={class:`fanid-widget__user-info`},sz={class:`fanid-widget__user-avatar`},cz={class:`fanid-widget__user-text`},lz={class:`fanid-widget__user-name`},uz={class:`fanid-widget__user-email`},dz={class:`fanid-widget__actions`},fz=WP({__name:`LoggedIn`,props:{displayName:{},email:{}},emits:[`logout`,`redirect`],setup(e){return(t,n)=>(II(),VI(`div`,az,[qI(`div`,oz,[qI(`div`,sz,yM((e.displayName||`U`).charAt(0).toUpperCase()),1),qI(`div`,cz,[qI(`div`,lz,yM(e.displayName),1),qI(`div`,uz,yM(e.email),1)])]),qI(`div`,dz,[qI(`button`,{class:`fanid-widget__redirect-button`,type:`button`,onClick:n[0]||=e=>t.$emit(`redirect`)},` My profile `),qI(`button`,{class:`fanid-widget__logout-button`,type:`button`,"aria-label":`Sign out`,onClick:n[1]||=e=>t.$emit(`logout`)},[JI(iz)])])]))}}),pz={},mz={class:`fanid-widget__loading`,role:`status`,"aria-live":`polite`};function hz(e,t){return II(),VI(`div`,mz,` Loading... `)}var gz=VR(pz,[[`render`,hz]]),_z={class:`fanid-widget__error`,role:`alert`},vz={class:`fanid-widget__error-text`},yz={class:`fanid-widget__error-message`},bz=WP({__name:`ErrorState`,props:{message:{}},setup(e){return(t,n)=>(II(),VI(`div`,_z,[n[1]||=qI(`span`,{class:`fanid-widget__error-icon`,"aria-hidden":`true`},` ! `,-1),qI(`div`,vz,[n[0]||=qI(`strong`,{class:`fanid-widget__error-title`},`FanID configuration error`,-1),qI(`span`,yz,yM(e.message),1)])]))}}),xz=WP({__name:`Widget`,setup(e){let t=qN(!0),n=qN(!1),r=qN(!1),i=qN(null),a=qN(null),o=qN(null),s=qN(`top-right`),c=wL(()=>i.value?.firstName||null),l=wL(()=>i.value?.email||null),u=wL(()=>a.value?.name??null),d=wL(()=>a.value?.branding?.logoUrl??null),f=wL(()=>
73a.value?.branding?.title??null),p=wL(()=>a.value?.branding?.subtitle??null),m=wL(()=>`fanid-widget--${s.value}`),h=wL(()=>{let e=a.value?.branding,t={};return e?.primaryColor&&(t[`--fanid-primary-color`]=e.primaryColor,t[`--fanid-primary-color-hover`]=FR(e.primaryColor,15)),e?.accentColor&&(t[`--fanid-secondary-color`]=e.accentColor),t}),g=()=>{window.__fanid_api?.redirectToLogin()},_=()=>{let e=window.__fanid_api?.getMyProfileUrl();e&&(window.location.href=e)},v=async()=>{n.value=!0;try{await window.__fanid_api?.logout(),r.value=!1,i.value=null,OR().update({isAuthenticated:!1,profile:null}),MR().emit(`auth:logout`)}finally{n.value=!1}},y=()=>{let e=OR().getState().floatingWidget.persistClose;zR(e),t.value=!1,setTimeout(()=>{window.FanIDWidget?.hideFloatingWidget()},0)},b=null;return aF(()=>{let e=OR(),n=e.getState();s.value=n.floatingWidget.position,RR(n.floatingWidget.persistClose)&&!n.error&&(t.value=!1),r.value=n.isAuthenticated,i.value=n.profile,a.value=n.organization,o.value=n.error,b=e.subscribe(e=>{r.value=e.isAuthenticated,i.value=e.profile,a.value=e.organization,o.value=e.error})}),lF(()=>{b?.()}),(e,i)=>t.value?(II(),HI(KR,{key:0,class:pM([m.value,o.value?`fanid-widget--error`:``]),style:cM(h.value),onClose:y},{default:AP(()=>[o.value?(II(),HI(bz,{key:0,message:o.value},null,8,[`message`])):n.value?(II(),HI(gz,{key:1})):r.value?(II(),HI(fz,{key:3,"display-name":c.value,email:l.value,onLogout:v,onRedirect:_},null,8,[`display-name`,`email`])):(II(),HI(ez,{key:2,logo:d.value,"organization-name":u.value,title:f.value,subtitle:p.value,onLogin:g},null,8,[`logo`,`organization-name`,`title`,`subtitle`]))]),_:1},8,[`class`,`style`])):$I(``,!0)}}),Sz={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose
73:1/0},Cz={silent:{level:-1},fatal:{level:Sz.fatal},error:{level:Sz.error},warn:{level:Sz.warn},log:{level:Sz.log},info:{level:Sz.info},success:{level:Sz.success},fail:{level:Sz.fail},ready:{level:Sz.info},start:{level:Sz.info},box:{level:Sz.info},debug:{level:Sz.debug},trace:{level:Sz.trace},verbose:{level:Sz.verbose}};function wz(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Tz(e,t,n=`.`,r){if(!wz(t))return Tz(e,{},n);let i=Object.assign({},t);for(let t in e){if(t===`__proto__`||t===`constructor`)continue;let r=e[t];r!=null&&(i[t]=Array.isArray(r)&&Array.isArray(i[t])?[...r,...i[t]]:wz(r)&&wz(i[t])?Tz(r,i[t],(n?`${n}.`:``)+t.toString()):r)}return i}function Ez(e){return(...e)=>e.reduce((e,t)=>Tz(e,t,``),{})}var Dz=Ez();function Oz(e){return Object.prototype.toString.call(e)===`[object Object]`}function kz(e){return!(!Oz(e)||!e.message&&!e.args||e.stack)}var Az=!1,jz=[],Mz=class e{options;_lastLog;_mockFn;constructor(e={}){let t=e.types||Cz;this.options=Dz({...e,defaults:{...e.defaults},level:Nz(e.level,t),reporters:[...e.reporters||[]]},{types:Cz,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(let e in t){let n={type:e,...this.options.defaults,...t[e]};this[e]=this._wrapLogFn(n),this[e].raw=this._wrapLogFn(n,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=Nz(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw Error(`prompt is not supported!`);return this.options.prompt(e,t)}create(t){let n=new e({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+`:`+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){let t=this.options.reporters.indexOf(e);if(t!==-1)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(let e in this.options.types)console[`__`+e]||(console[`__`+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(let e in this.options.types)console[`__`+e]&&(console[e]=console[`__`+e],delete console[`__`+e])}wrapStd(){this._wrapStream(this.options.stdout,`log`),this._wrapStream(this.options.stderr,`log`)}_wrapStream(e,t){e&&(e.__write||=e.write,e.write=e=>{this[t].raw(String(e).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){Az=!0}resumeLogs(){Az=!1;let e=jz.splice(0);for(let t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){let t=e||this.options.mockFn;if(this._mockFn=t,typeof t==`function`)for(let e in this.options.types)this[e]=t(e,this.options.types[e])||this[e],this[e].raw=this[e]}_wrapLogFn(e,t){return(...n)=>{if(Az){jz.push([this,e,n,t]);return}return this._logFn(e,n,t)}}_logFn(e,t,n){if((e.level||0)>this.level)return!1;let r={date:new Date,args:[],...e,level:Nz(e.level,this.options.types)};!n&&t.length===1&&kz(t[0])?Object.assign(r,t[0]):r.args=[...t],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split(`
74`)),r.args.push(`
75`+r.additional.join(`
76`)),delete r.additional),r.type=typeof r.type==`string`?r.type.toLowerCase():`log`,r.tag=typeof r.tag==`string`?r.tag:``;let i=(e=!1)=>{let t=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&t>0){let e=[...this._lastLog.object.args];t>1&&e.push(`(repeated ${t} times)`),this._log({...this._lastLog.object,args:e}),this._lastLog.count=1}e&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);let a=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,a<this.options.throttle)try{let e=JSON.stringify([r.type,r.tag,r.args]),t=this._lastLog.serialized===e;if(this._lastLog.serialized=e,t&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(i,this.options.throttle);return}}catch{}i(!0)}_log(e){for(let t of this.options.reporters)t.log(e,{options:this.options})}};function Nz(e,t={},n=3){return e===void 0?n:typeof e==`number`?e:t[e]&&t[e].level!==void 0?t[e].level:n}Mz.prototype.add=Mz.prototype.addReporter,Mz.prototype.remove=Mz.prototype.removeReporter,Mz.prototype.clear=Mz.prototype.removeReporter,Mz.prototype.withScope=Mz.prototype.withTag,Mz.prototype.mock=Mz.prototype.mockTypes,Mz.prototype.pause=Mz.prototype.pauseLogs,Mz.prototype.resume=Mz.prototype.resumeLogs;function Pz(e={}){return new Mz(e)}var Fz=class{options;defaultColor;levelColorMap;typeColorMap;constructor(e){this.options={...e},this.defaultColor=`#7f8c8d`,this.levelColorMap={0:`#c0392b`,1:`#f39c12`,3:`#00BCD4`},this.typeColorMap={success:`#2ecc71`}}_getLogFn(e){return e<1?console.__error||console.error:e===1?console.__warn||console.warn:console.__log||console.log}log(e){let t=this._getLogFn(e.level),n=e.type===`log`?``:e.type,r=e.tag||``,i=`
77      background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};
78      border-radius: 0.5em;
79      color: white;
80      font-weight: bold;
81      padding: 2px 0.5em;
82    `,a=`%c${[r,n].filter(Boolean).join(`:`)}`;typeof e.args[0]==`string`?t(`${a}%c ${e.args[0]}`,i,``,...e.args.slice(1)):t(a,i,...e.args)}};function Iz(e={}){return Pz({reporters:e.reporters||[new Fz({})],prompt(e,t={}){return t.type===`confirm`?Promise.resolve(confirm(e)):Promise.resolve(prompt(e))},...e})}Iz();var Lz=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Rz=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,zz=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Bz(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){Vz(e);return}return t}function Vz(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Hz(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!zz.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Lz.test(e)||Rz.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,Bz)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var Uz=/#/g,Wz=/&/g,Gz=/\//g,Kz=/=/g,qz=/\+/g,Jz=/%5e/gi,Yz=/%60/gi,Xz=/%7c/gi,Zz=/%20/gi;function Qz(e){return encodeURI(``+e).replace(Xz,`|`)}function $z(e){return Qz(typeof e==`string`?e:JSON.stringify(e)).replace(qz,`%2B`).replace(Zz,`+`).replace(Uz,`%23`).replace(Wz,`%26`).replace(Yz,"`").replace(Jz,`^`).replace(Gz,`%2F`)}function eB(e){return $z(e).replace(Kz,`%3D`)}function tB(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function nB(e){return tB(e.replace(qz,` `))}function rB(e){return tB(e.replace(qz,` `))}function iB(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=nB(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=rB(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function aB(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${eB(e)}=${$z(t)}`).join(`&`):`${eB(e)}=${$z(t)}`:eB(e)}function oB(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>aB(t,e[t])).filter(Boolean).join(`&`)}var sB=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,cB=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,lB=/^([/\\]\s*){2,}[^/\\]/,uB=/^\.?\//;function dB(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?sB.test(e):cB.test(e)||(t.acceptRelative?lB.test(e):!1)}function fB(e=``,t){return e.endsWith(`/`)}function pB(e=``,t){return(fB(e)?e.slice(0,-1):e)||`/`}function mB(e=``,t){return e.endsWith(`/`)?e:e+`/`}function hB(e,t){if(_B(t)||dB(e))return e;let n=pB(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return yB(n,e)}function gB(e,t){let n=xB(e);return n.search=oB({...iB(n.search),...t}),CB(n)}function _B(e){return!e||e===`/`}function vB(e){return e&&e!==`/`}function yB(e,...t){let n=e||``;for(let e of t.filter(e=>vB(e)))if(n){let t=e.replace(uB,``);n=mB(n)+t}else n=e;return n}var bB=Symbol.for(`ufo:protocolRelative`);function xB(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!dB(e,{acceptRelative:!0}))return SB(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=SB(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[bB]:!r}}function SB(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function CB(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[bB]?(e.protocol||``)+`//`:``)+i+a+t+n+r}
82var wB=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function TB(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new wB(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var EB=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function DB(e=`GET`){return EB.has(e.toUpperCase())}function OB(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var kB=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),AB=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function jB(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return AB.test(t)?`json`:t===`text/event-stream`?`stream`:kB.has(t)||t.startsWith(`text/`)?`text`:`blob`}function MB(e,t,n,r){let i=NB(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function NB(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function PB(e,t){if(t){if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}}var FB=new Set([408,409,425,429,500,502,503,504]),IB=new Set([101,204,205,304]);function LB(e={}){let{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:+!DB(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):FB.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),a(e.request,{...e.options,retry:t-1})}}let n=TB(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,a),n}let a=async function(a,o={}){let s={request:a,options:MB(a,o,e.defaults,n),response:void 0,error:void 0};if(s.options.method&&(s.options.method=s.options.method.toUpperCase()),s.options.onRequest&&(await PB(s,s.options.onRequest),s.options.headers instanceof n||(s.options.headers=new n(s.options.headers||{}))),typeof s.request==`string`&&(s.options.baseURL&&(s.request=hB(s.request,s.options.baseURL)),s.options.query&&(s.request=gB(s.request,s.options.query),delete s.options.query),`query`in s.options&&delete s.options.query,`params`in s.options&&delete s.options.params),s.options.body&&DB(s.options.method)){if(OB(s.options.body)){let e=s.options.headers.get(`content-type`);typeof s.options.body!=`string`&&(s.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(s.options.body).toString():JSON.stringify(s.options.body)),e||s.options.headers.set(`content-type`,`application/json`),s.options.headers.has(`accept`)||s.options.headers.set(`accept`,`application/json`)}else(`pipeTo`in s.options.body&&typeof s.options.body.pipeTo==`function`||typeof s.options.body.pipe==`function`)&&(`duplex`in s.options||(s.options.duplex=`half`))}let c;if(!s.options.signal&&s.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},s.options.timeout),s.options.signal=e.signal}try{s.response=await t(s.request,s.options)}catch(e){return s.error=e,s.options.onRequestError&&await PB(s,s.options.onRequestError),await i(s)}finally{c&&clearTimeout(c)}if((s.response.body||s.response._bodyInit)&&!IB.has(s.response.status)&&s.options.method!==`HEAD`){let e=(s.options.parseResponse?`json`:s.options.responseType)||jB(s.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await s.response.text(),t=s.options.parseResponse||Hz;s.response._data=t(e);break}case`stream`:s.response._data=s.response.body||s.response._bodyInit;break;default:s.response._data=await s.response[e]()}}return s.options.onResponse&&await PB(s,s.options.onResponse),!s.options.ignoreResponseError&&s.response.status>=400&&s.response.status<600?(s.options.onResponseError&&await PB(s,s.options.onResponseError),await i(s)):s.response},o=async function(e,t){return(await a(e,t))._data};return o.raw=a,o.native=(...e)=>t(...e),o.create=(t={},n={})=>LB({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),o}var RB=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),zB=RB.fetch?(...e)=>RB.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),BB=RB.Headers,VB=RB.AbortController,HB=LB({fetch:zB,Headers:BB,AbortController:VB}),UB=/_([a-z0-9])/g;function WB(e){return e.replace(UB,(e,t)=>t.toUpperCase())}function GB(e){if(Array.isArray(e))return e.map(e=>GB(e));if(typeof e==`object`&&e){let t={};for(let[n,r]of Object.entries(e))t[WB(n)]=GB(r);return t}return e}function KB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!==`__proto__`&&(e[r]=n[r])}return e}var qB={read:function(e){return e[0]===`"`&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
82URIComponent)}};function JB(e,t){function n(n,r,i){if(!(typeof document>`u`)){i=KB({},t,i),typeof i.expires==`number`&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a=``;for(var o in i)i[o]&&(a+=`; `+o,i[o]!==!0&&(a+=`=`+i[o].split(`;`)[0]));return document.cookie=n+`=`+e.write(r,n)+a}}function r(t){if(!(typeof document>`u`||arguments.length&&!t)){for(var n=document.cookie?document.cookie.split(`; `):[],r={},i=0;i<n.length;i++){var a=n[i].split(`=`),o=a.slice(1).join(`=`);try{var s=decodeURIComponent(a[0]);if(s in r||(r[s]=e.read(o,s)),t===s)break}catch{}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,``,KB({},t,{expires:-1}))},withAttributes:function(e){return JB(this.converter,KB({},this.attributes,e))},withConverter:function(e){return JB(KB({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var YB=JB(qB,{path:`/`}),XB=Iz().withTag(`FanIDStorage`),ZB=`fanid:session:`,QB=`fanid_session_`,$B=new Map;function eV(e){try{return new URL(e).host}catch(e){return XB.debug(`Invalid apiBaseUrl, using fallback host`,e),`unknown`}}function tV(e){return ZB+eV(e)}function nV(e){return QB+eV(e).replace(/\./g,`_`)}function rV(){return typeof window<`u`&&window.location.protocol===`https:`}function iV(e){try{let t=JSON.parse(e);return typeof t?.sessionToken!=`string`||typeof t?.expiresAt!=`string`?null:t}catch(e){return XB.debug(`Failed to parse stored session`,e),null}}function aV(e){if(typeof window>`u`)return null;try{let t=window.localStorage.getItem(tV(e));return t?iV(t):null}catch(e){return XB.debug(`localStorage read failed`,e),null}}function oV(e,t){if(typeof window>`u`)return!1;try{return window.localStorage.setItem(tV(e),t),!0}catch(e){return XB.debug(`localStorage write failed`,e),!1}}function sV(e){if(!(typeof window>`u`))try{window.localStorage.removeItem(tV(e))}catch(e){XB.debug(`localStorage clear failed`,e)}}function cV(e){let t=YB.get(nV(e));return t?iV(t):null}function lV(e,t,n){try{let r=new Date(t.expiresAt);return YB.set(nV(e),n,{expires:Number.isNaN(r.getTime())?void 0:r,secure:rV(),sameSite:`strict`,path:`/`}),!0}catch(e){return XB.debug(`cookie write failed`,e),!1}}function uV(e){try{YB.remove(nV(e),{path:`/`})}catch(e){XB.debug(`cookie clear failed`,e)}}var dV={get(e){return aV(e)||cV(e)||($B.get(eV(e))??null)},set(e,t){let n=JSON.stringify(t),r=eV(e);if(oV(e,n)){$B.delete(r),uV(e);return}
82if(lV(e,t,n)){$B.delete(r);return}$B.set(r,t)},clear(e){sV(e),uV(e),$B.delete(eV(e))},isExpired(e){let t=new Date(e.expiresAt).getTime();return Number.isNaN(t)?!0:t<=Date.now()}},fV=(e,t,n,r)=>{let i={"Content-Type":`application/json`,Accept:`application/json`,...n};if(t===_R.BEARER&&!r){let t=dV.get(e);t&&!dV.isExpired(t)&&(i.Authorization=`Bearer ${t.sessionToken}`)}return i},pV=(e,t)=>t||e===_R.BEARER?`omit`:`include`,mV=`0.3.0`,hV=(e,t)=>{let n=new URLSearchParams({widget_version:mV,widget_transport:t});return`${e}${e.includes(`?`)?`&`:`?`}${n.toString()}`},gV=e=>xR[e]||(e>=vR.INTERNAL_SERVER_ERROR?SR.ServerError:SR.Unknown),_V=e=>{if(typeof e!=`object`||!e||!(`error`in e))return null;let t=e.error;return typeof t==`string`?t:null},vV=(e,t,n)=>({status:e,message:_V(t)??n,body:t}),yV=async(e,t,n,r={})=>{try{let i=await HB.raw(hV(`${e}${t}`,n),{method:r.method??`GET`,headers:fV(e,n,r.headers,r.noAuth),credentials:pV(n,r.noAuth),body:r.body,retry:0,ignoreResponseError:!0,parseResponse:e=>{if(!e)return null;try{return JSON.parse(e)}catch{return e}}}),a=i.status;if(a===vR.NO_CONTENT)return{ok:!0,status:a,data:null,error:null};let o=i._data,s=o==null?null:GB(o);return i.ok?{ok:!0,status:a,data:s,error:null}:{ok:!1,status:a,data:s,error:vV(a,o,gV(a))}}catch(e){let t=e instanceof wB?e:null,n=t?.statusCode??0;return{ok:!1,status:n,data:null,error:vV(n,t?.data??null,t?.message||SR.Network)}}},bV=Iz().withTag(`FanIDExchange`),xV=[250,1e3,4e3,11e3],SV=[50,150,300,500],CV=e=>e===yR||e.startsWith(`${yR}=`),wV=e=>{let t=e.indexOf(`#`);if(t===-1)return e;let n=e.slice(t+1).split(`&`);if(!n.some(CV))return e;let r=e.slice(0,t),i=n.filter(e=>!CV(e)).join(`&`);return i?`${r}#${i}`:r},TV=()=>{if(typeof window>`u`)return null;let{pathname:e,search:t,hash:n}=window.location;if(!n)return null;let r=e+t+n,i=wV(r);return i===r?null:i},EV=()=>typeof history<`u`&&typeof history.replaceState==`function`,DV=null,OV=()=>{DV!==null&&typeof clearTimeout==`function`&&clearTimeout(DV),DV=null},kV=(e,t,n)=>e===void 0||typeof setTimeout!=`function`?!1:(DV=setTimeout(()=>{DV=null;let e=TV();e!==null&&AV(e,t,n)},e),!0);function AV(e,t,n){try{history.replaceState(history.state,``,e)}catch(e){bV.warn(`history.replaceState was rejected (attempt ${t+1})`,e),kV(xV[t],t+1,n)||bV.error(`Could not remove ${yR} from the URL. It stays visible but is single-use and already redeemed, so the session is unaffected.`);return}kV(SV[n],t,n+1)}var jV=()=>{let e=TV();if(e!==null){if(!EV()){bV.warn(`history.replaceState is unavailable; leaving ${yR} in the URL.`);return}OV(),AV(e,0,0)}},MV=()=>{if(typeof window>`u`)return null;let e=window.location.hash;if(!e)return null;let t=new URLSearchParams(e.slice(1)).getAll(yR).filter(e=>e.length>0);return t.length>1&&bV.warn(`${t.length} ${yR} values found in the URL; redeeming the last one.`),t.at(-1)??null},NV=async(e,t,n)=>{bV.info(`Exchange token detected in URL hash, redeeming...`);let r=await t.exchange(n);return r?(dV.set(e,{sessionToken:r.sessionToken,expiresAt:r.expiresAt}),bV.info(`Exchange token redeemed; bearer session stored.`),{ok:!0,redeemed:!0}):(bV.error(`Exchange token redemption failed. The user remains logged out. Check the network tab for the /api/subscriber/auth/exchange request.`),{ok:!1,redeemed:!1})},PV=class{baseUrl;transport;logger;constructor(e,t=_R.BEARER){this.baseUrl=e,this.transport=t,this.logger=Iz().withTag(`FanIDApi`)}getTransport(){return this.transport}async checkAuthStatus(){let e=await yV(this.baseUrl,`/api/subscriber/me`,this.transport);return e.status===vR.UNAUTHORIZED?{isAuthenticated:!1,profile:null}:e.status===vR.TOO_MANY_REQUESTS?(this.logger.warn(`checkAuthStatus rate-limited`),{isAuthenticated:!1,profile:null}):e.status>=vR.INTERNAL_SERVER_ERROR?(this.logger.error(`checkAuthStatus server error`,e.status),{isAuthenticated:!1,profile:null}):e.ok&&e.data?{isAuthenticated:!0,profile:e.data.data}:(this.logger.info(`checkAuthStatus: unexpected status`,e.status),{isAuthenticated:!1,profile:null})}async getMe(){let e=await yV(this.baseUrl,`/api/subscriber/me`,this.transport);return e.status===vR.TOO_MANY_REQUESTS?this.logger.warn(`getMe rate-limited`):e.status>=vR.INTERNAL_SERVER_ERROR&&this.logger.error(`getMe server error`,e.status),!e.ok||!e.data?null:e.data.data}async exchange(e){let t=await yV(this.baseUrl,`/api/subscriber/auth/exchange`,this.transport,{method:`POST`,body:{token:e},noAuth:!0});return!t.ok||!t.data?(t.status===0?this.logger.error(`exchange failed: network or CORS error reaching ${this.baseUrl}/api/subscriber/auth/exchange. Verify this origin is whitelisted on your FanID tenant.`,t.error?.message):t.status===vR.BAD_REQUEST?this.logger.error(`exchange rejected by backend`,t.error?.message):t.status===vR.TOO_MANY_REQUESTS?this.logger.error(`exchange rate-limited`):t.status>=vR.INTERNAL_SERVER_ERROR?this.logger.error(`exchange server error`,t.status):this.logger.error(`exchange failed`,t.status,t.error?.message),null):t.data.data}async logout(){try{let e=await yV(this.baseUrl,`/api/subscriber/logout`,this.transport,{method:`POST`});e.status>=vR.INTERNAL_SERVER_ERROR&&this.logger.error(`logout server error`,e.status)}catch(e){this.logger.error(`logout request failed:`,e)}finally{dV.clear(this.baseUrl)}}async getOrganization(){let e=await yV(this.baseUrl,`/api/subscriber/organization`,this.transport,{noAuth:!0});return e.status===vR.TOO_MANY_REQUESTS?this.logger.warn(`getOrganization rate-limited`):e.status>=vR.INTERNAL_SERVER_ERROR&&this.logger.error(`getOrganization server error`,e.status),!e.ok||!e.data?(this.logger.error(`getOrganization failed`,e.status),null):e.data.data}getLoginUrl(e=window.location.href){let t=new URLSearchParams({returnUrl:wV(e)});return this.transport===_R.BEARER&&t.set(`transport`,_R.BEARER),`${this.baseUrl}/login?${t.toString()}`}getMyProfileUrl(){return`${this.baseUrl}/my-profile`}redirectToLogin(){window.location.href=this.getLoginUrl()}getBaseUrl(){return this.baseUrl}},FV=null,IV=null;function LV(e){return{root:`${e}_root`,content:`${e}_content`,overlay:`${e}_overlay`,gradient:`${e}_gradient`,panel:`${e}_panel`,title:`${e}_title`,message:`${e}_msg`,button:`${e}_btn`,logo:`${e}_logo`,revealed:`${e}_revealed`,overlayHost:`${e}_host`,fullpage:`${e}_fullpage`,fullpageClose:`${e}_fpclose`,modeBlur:`${e}_blur`,modeGradient:`${e}_grad`,modeCover:`${e}_cover`}}function RV(e,t){if(FV)return;let n=VV(LV(e),t);FV=document.createElement(`style`),FV.textContent=n,document.head.appendChild(FV),BV()}function zV(){IV?.disconnect(),IV=null,FV?.remove(),FV=null}function BV(){if(IV||!FV)return;let e=FV;IV=new MutationObserver(()=>{document.head.contains(e)||document.head.appendChild(e)}),IV.observe(document.head,{childList:!0})}function VV(e,t){let n=`
83    .${e.root} {
84      position: var(--fanid-gate-root-position, relative);
85      overflow: var(--fanid-gate-root-overflow, hidden);
86      min-height: var(--fanid-gate-min-height, ${t.minHeight}px);
87    }
88
89    .${e.revealed} .${e.content} {
90      filter: none !important;
91      user-select: auto !important;
92      pointer-events: auto !important;
93    }
94
95    .${e.revealed} .${e.overlay} {
96      display: none !important;
97    }
98
99    .${e.overlay} {
100      position: var(--fanid-gate-overlay-position, absolute);
101      inset: var(--fanid-gate-overlay-inset, 0);
102      display: var(--fanid-gate-overlay-display, flex);
103      align-items: var(--fanid-gate-overlay-align, flex-start);
104      justify-content: var(--fanid-gate-overlay-justify, center);
105      padding-top: var(--fanid-gate-overlay-padding-top, 24px);
106      padding-bottom: var(--fanid-gate-overlay-padding-bottom, 24px);
107      z-index: var(--fanid-gate-overlay-z-index, 1);
108      box-sizing: border-box;
109    }
110
111    .${e.gradient} {
112      position: var(--fanid-gate-gradient-position, absolute);
113      inset: var(--fanid-gate-gradient-inset, 0);
114      pointer-events: var(--fanid-gate-gradient-pointer-events, none);
115    }
116
117    .${e.panel} {
118      position: var(--fanid-gate-panel-position, relative);
119      z-index: var(--fanid-gate-panel-z-index, 2);
120      background: var(--fanid-gate-panel-bg, white);
121      border-radius: var(--fanid-gate-panel-radius, 12px);
122      padding: var(--fanid-gate-panel-padding, 32px 28px);
123      text-align: var(--fanid-gate-panel-text-align, center);
124      max-width: var(--fanid-gate-panel-max-width, 380px);
125      width: var(--fanid-gate-panel-width, 90%);
126      box-shadow: var(--fanid-gate-panel-shadow, 0 8px 32px rgba(0, 0, 0, 0.12));
127      font-family: var(--fanid-gate-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif);
128    }
129
130    .${e.logo} {
131      display: var(--fanid-gate-logo-display, block);
132      max-height: var(--fanid-gate-logo-height, 40px);
133      max-width: var(--fanid-gate-logo-max-width, 160px);
134      object-fit: var(--fanid-gate-logo-fit, contain);
135      margin-bottom: var(--fanid-gate-logo-margin, 16px);
136      margin-left: var(--fanid-gate-logo-margin-x, auto);
137      margin-right: var(--fanid-gate-logo-margin-x, auto);
138    }
139
140    .${e.title} {
141      font-size: var(--fanid-gate-title-size, 18px);
142      font-weight: var(--fanid-gate-title-weight, 700);
143      color: var(--fanid-gate-title-color, #002b5c);
144      margin: var(--fanid-gate-title-margin, 0 0 8px);
145      line-height: var(--fanid-gate-title-line-height, 1.3);
146    }
147
148    .${e.message} {
149      font-size: var(--fanid-gate-message-size, 14px);
150      color: var(--fanid-gate-message-color, #002b5c);
151      opacity: var(--fanid-gate-message-opacity, 0.7);
152      margin: var(--fanid-gate-message-margin, 0 0 20px);
153      line-height: var(--fanid-gate-message-line-height, 1.5);
154    }
155
156    .${e.button} {
157      display: var(--fanid-gate-button-display, inline-flex);
158      align-items: var(--fanid-gate-button-align, center);
159      justify-content: var(--fanid-gate-button-justify, center);
160      width: var(--fanid-gate-button-width, 100%);
161      height: var(--fanid-gate-button-height, 44px);
162      padding: var(--fanid-gate-button-padding, 0 20px);
163      background: var(--fanid-gate-button-bg, var(--fanid-primary-color, #f26522));
164      color: var(--fanid-gate-button-color, white);
165      border: var(--fanid-gate-button-border, none);
166      border-radius: var(--fanid-gate-button-radius, 30px);
167      font-size: var(--fanid-gate-button-size, 15px);
168      font-weight: var(--fanid-gate-button-weight, 600);
169      cursor: var(--fanid-gate-button-cursor, pointer);
170      transition: var(--fanid-gate-button-transition, filter 0.2s ease);
171      font-family: var(--fanid-gate-button-font, inherit);
172    }
173
174    .${e.button}:hover {
175      filter: var(--fanid-gate-button-hover-filter, brightness(0.9));
176    }
177
178    .${e.button}:active {
179      transform: var(--fanid-gate-button-active-transform, scale(0.98));
180    }
181
182    .${e.overlayHost} {
183      position: var(--fanid-gate-host-position, absolute);
184      inset: var(--fanid-gate-host-inset, 0);
185      z-index: var(--fanid-gate-host-z-index, 1);
186    }
187
188    .${e.fullpage} {
189      position: var(--fanid-gate-fullpage-position, fixed);
190      inset: var(--fanid-gate-fullpage-inset, 0);
191      z-index: var(--fanid-gate-fullpage-z-index, 999998);
192      display: var(--fanid-gate-fullpage-display, flex);
193      align-items: var(--fanid-gate-fullpage-align, center);
194      justify-content: var(--fanid-gate-fullpage-justify, center);
195      background: var(--fanid-gate-fullpage-bg, rgba(255, 255, 255, 0.85));
196      backdrop-filter: var(--fanid-gate-fullpage-backdrop, blur(4px));
197    }
198
199    .${e.fullpage} .${e.panel} {
200      pointer-events: var(--fanid-gate-fullpage-panel-pointer-events, auto);
201    }
202
203    .${e.fullpageClose} {
204      position: var(--fanid-gate-close-position, absolute);
205      top: var(--fanid-gate-close-top, 12px);
206      right: var(--fanid-gate-close-right, 16px);
207      background: var(--fanid-gate-close-bg, none);
208      border: var(--fanid-gate-close-border, none);
209      font-size: var(--fanid-gate-close-size, 28px);
210      cursor: var(--fanid-gate-close-cursor, pointer);
211      color: var(--fanid-gate-close-color, #002b5c);
212      opacity: var(--fanid-gate-close-opacity, 0.5);
213      transition: var(--fanid-gate-close-transition, opacity 0.2s);
214      line-height: var(--fanid-gate-close-line-height, 1);
215    }
216
217    .${e.fullpageClose}:hover {
218      opacity: var(--fanid-gate-close-hover-opacity, 1);
219    }
220  `;return n+=UV(e,t.blurAmount),n+=WV(e,t.teaserHeight),n+=GV(e),n+=KV(e,`fade`),n+=KV(e,`slide`),n+=HV(e),n}function HV(e){return`
221    @media (prefers-reduced-motion: reduce) {
222      .${e.revealed} .${e.content},
223      .${e.button},
224      .${e.fullpageClose} {
225        animation: none !important;
226        transition: none !important;
227      }
228    }
229  `}function UV(e,t){return`
230    .${e.modeBlur} .${e.content} {
231      filter: var(--fanid-gate-content-filter, blur(${t}px));
232      user-select: var(--fanid-gate-content-user-select, none);
233      pointer-events: var(--fanid-gate-content-pointer-events, none);
234    }
235    .${e.modeBlur} .${e.gradient} {
236      background: var(--fanid-gate-overlay-bg, rgba(255, 255, 255, 0.1));
237      backdrop-filter: var(--fanid-gate-overlay-backdrop, blur(2px));
238    }
239  `}function WV(e,t){let n=t??120;return`
240    .${e.modeGradient} .${e.content} {
241      user-select: var(--fanid-gate-content-user-select, none);
242      pointer-events: var(--fanid-gate-content-pointer-events, none);
243    }
244    .${e.modeGradient} .${e.gradient} {
245      background: var(--fanid-gate-gradient-bg, linear-gradient(
246        to bottom,
247        transparent ${n}px,
248        rgba(255, 255, 255, 0.8) ${n+40}
248px,
249        white ${n+100}px
250      ));
251    }
252    .${e.modeGradient} .${e.overlay} {
253      align-items: var(--fanid-gate-overlay-align-gradient, flex-end);
254      padding-bottom: var(--fanid-gate-overlay-padding-bottom, 24px);
255    }
256  `}function GV(e){return`
257    .${e.modeCover} .${e.content} {
258      opacity: var(--fanid-gate-content-cover-opacity, 0);
259      height: var(--fanid-gate-content-cover-height, 0);
260      overflow: var(--fanid-gate-content-cover-overflow, hidden);
261      pointer-events: var(--fanid-gate-content-pointer-events, none);
262    }
263    .${e.modeCover} .${e.gradient} {
264      background: var(--fanid-gate-overlay-bg, #f8f9fa);
265    }
266  `}function KV(e,t){let n=`${e.revealed}_${t}`;return t===`slide`?`
267      @keyframes ${n} {
268        from { opacity: 0; transform: translateY(10px); }
269        to { opacity: 1; transform: translateY(0); }
270      }
271      .${e.revealed} .${e.content} {
272        animation: var(--fanid-gate-reveal-animation, ${n} 0.4s ease-out);
273      }
274    `:`
275    @keyframes ${n} {
276      from { opacity: 0; }
277      to { opacity: 1; }
278    }
279    .${e.revealed} .${e.content} {
280      animation: var(--fanid-gate-reveal-animation, ${n} 0.3s ease-out);
281    }
282  `}var qV=new Map,JV=3e3;function YV(e,t){if(qV.has(e))return;let n=()=>{if(!e.querySelector(`.${t.overlay}`)){let t=e;t.connectedCallback&&(t.disconnectedCallback?.(),t.connectedCallback())}},r=new MutationObserver(()=>{n()});r.observe(e,{childList:!0,subtree:!0});let i=setInterval(n,JV);qV.set(e,{observer:r,intervalId:i})}function XV(e){let t=qV.get(e);t&&(t.observer.disconnect(),clearInterval(t.intervalId),qV.delete(e))}function ZV(e,t){let n=document.createElement(`div`);if(n.className=e.panel,t.logoUrl){let r=document.createElement(`img`);r.className=e.logo,r.src=t.logoUrl,r.alt=``,n.appendChild(r)}let r=document.createElement(`h3`);r.className=e.title,r.textContent=t.title,n.appendChild(r);let i=document.createElement(`p`);i.className=e.message,i.textContent=t.message,n.appendChild(i);let a=document.createElement(`button`);return a.className=e.button,a.textContent=t.buttonText,n.appendChild(a),n}function QV(e,t,n,r=!1){r&&(e.innerHTML=``);let i=document.createElement(`div`);i.className=t.overlay,i.setAttribute(`role`,`dialog`),i.setAttribute(`aria-modal`,`false`),i.setAttribute(`aria-label`,n.title);let a=document.createElement(`div`);a.className=t.gradient,i.appendChild(a);let o=ZV(t,n);return i.appendChild(o),e.appendChild(i),i}function $V(e,t){return{title:e.placeholder.title,message:e.placeholder.message,buttonText:e.placeholder.buttonText,logoUrl:t.organization?.branding?.logoUrl??null}}var eH={top:`flex-start`,center:`center`,bottom:`flex-end`};function tH(e,t){let n=t.organization?.branding?.primaryColor,r=t.organization?.branding?.accentColor;n&&e.style.setProperty(`--fanid-gate-button-bg`,n),r&&(e.style.setProperty(`--fanid-gate-title-color`,r),e.style.setProperty(`--fanid-gate-message-color`,r)),e.style.setProperty(`--fanid-gate-overlay-align`,eH[t.config.overlayAlign])}var nH=[`top`,`center`,`bottom`];function rH(e){let t={},n=e.getAttribute(`data-fanid-title`),r=e.getAttribute(`data-fanid-message`),i=e.getAttribute(`data-fanid-button`),a=e.getAttribute(`data-fanid-max-height`),o=e.getAttribute(`data-fanid-overlay-align`);if(n&&(t.title=n),r&&(t.message=r),i&&(t.buttonText=i),a){let e=Number(a);Number.isFinite(e)&&e>0&&(t.maxHeight=e)}return o&&nH.includes(o)&&(t.overlayAlign=o),t}function iH(e,t){switch(t){case`gradient`:return e.modeGradient;case`cover`:return e.modeCover;default:return e.modeBlur}}function aH(e,t,n){for(let r of Array.from(e.children))r!==t&&r instanceof HTMLElement&&n(r)}function oH(e,t,n){aH(e,t,e=>{e.style.filter=`blur(${n}px)`})}function sH(e,t){aH(e,t,e=>{e.style.filter=``})}function cH(e,t){aH(e,t,e=>{e.style.userSelect=`none`,e.style.pointerEvents=`none`})}function lH(e,t){aH(e,t,e=>{e.style.userSelect=``,e.style.pointerEvents=``})}var uH=[`placeholder-title`,`placeholder-message`,`placeholder-button-text`,`style-mode`,`teaser-height`,`min-height`,`max-height`,`overlay-align`],dH={top:`flex-start`,center:`center`,bottom:`flex-end`},fH=new Set([`top`,`center`,`bottom`]),pH=null,mH=()=>{class e extends HTMLElement{unsubscribe=null;isRevealed=!1;originalChildren=[];rootEl=null;static get observedAttributes(){return[...uH]}connectedCallback(){let e=OR();this.render(e.getState().isAuthenticated),this.unsubscribe=e.subscribe(e=>{let t=e.isAuthenticated;t!==this.isRevealed&&(this.isRevealed=t,this.render(t))}),e.getState().isAuthenticated||MR().emit(`gate:applied`,this)}disconnectedCallback(){this.unsubscribe?.(),this.unsubscribe=null,XV(this)}attributeChangedCallback(){this.isConnected&&this.render(this.isRevealed)}getConfig(){let e=OR().getState().config,t=this.getAttribute(`overlay-align`),n=t&&fH.has(t)?t:e.overlayAlign,r=this.getAttribute(`max-height`),i=r?Number(r):NaN;return{...e,placeholder:{title:this.getAttribute(`placeholder-title`)??e.placeholder.title,message:this.getAttribute(`placeholder-message`)??e.placeholder.message,buttonText:this.getAttribute(`placeholder-button-text`)??e.placeholder.buttonText}
282,style:this.getAttribute(`style-mode`)??e.style,teaserHeight:this.hasAttribute(`teaser-height`)?Number(this.getAttribute(`teaser-height`)):e.teaserHeight,minHeight:this.hasAttribute(`min-height`)?Number(this.getAttribute(`min-height`)):e.minHeight,maxHeight:Number.isFinite(i)&&i>0?i:e.maxHeight,overlayAlign:n}}render(e){let t=this.getConfig(),n=OR().getState(),r=LV(n.classPrefix);if(tH(this,n),this.style.setProperty(`--fanid-gate-overlay-align`,dH[t.overlayAlign]),e){if(this.style.maxHeight=``,this.rootEl){this.rootEl.remove(),this.rootEl=null;for(let e of this.originalChildren)this.appendChild(e);this.originalChildren=[]}XV(this),MR().emit(`gate:reveal`,this);return}t.maxHeight?(this.style.maxHeight=`${t.maxHeight}px`,this.style.overflow=`hidden`):this.style.maxHeight=``,this.rootEl?this.rootEl.remove():this.originalChildren=Array.from(this.childNodes);let i=document.createElement(`div`);i.className=`${r.root} ${iH(r,t.style)}`;let a=document.createElement(`div`);a.className=r.content;for(let e of this.originalChildren)a.appendChild(e);i.appendChild(a),QV(i,r,$V(t,n)).querySelector(`.${r.button}`)?.addEventListener(`click`,()=>{MR().emit(`gate:click`,this),window.__fanid_api?.redirectToLogin()}),this.rootEl=i,this.appendChild(i),YV(this,r)}}return e};function hH(e=`wmt-fanid-protected`){typeof window>`u`||typeof customElements>`u`||customElements.get(e)||(pH||=mH(),customElements.define(e,pH))}var gH=`data-fanid-gated`,_H={top:`flex-start`,center:`center`,bottom:`flex-end`},vH=new Map,yH=null;function bH(e){return typeof e==`string`?document.querySelector(e):e}function xH(e,t){let n=bH(e);if(!n||vH.has(n))return;let r=OR(),i=r.getState().config,a=LV(r.getState().classPrefix),o=rH(n),s=n.getAttribute(`data-fanid-min-height`),c={...i,...t,placeholder:{...i.placeholder,...o.title?{title:o.title}:{},...o.message?{message:o.message}:{},...o.buttonText?{buttonText:o.buttonText}:{},...t?.placeholder},style:t?.style??n.getAttribute(`data-fanid-style`)??i.style,minHeight:t?.minHeight??(s?Number(s):i.minHeight),maxHeight:t?.maxHeight??o.maxHeight??i.maxHeight,overlayAlign:t?.overlayAlign??o.overlayAlign??i.overlayAlign};window.getComputedStyle(n).position===`static`&&(n.style.position=`relative`),n.style.overflow=`hidden`,n.style.minHeight=`${c.minHeight}px`,c.maxHeight&&(n.style.maxHeight=`${c.maxHeight}px`),tH(n,r.getState()),n.style.setProperty(`--fanid-gate-overlay-align`,_H[c.overlayAlign]);let l=document.createElement(`div`);l.className=`${a.overlayHost} ${iH(a,c.style)}`,n.appendChild(l);let u=e=>{if(e){l.innerHTML=``,l.style.display=`none`,n.style.minHeight=``,n.style.maxHeight=``,sH(n,l),lH(n,l),XV(n),MR().emit(`gate:reveal`,n);return}l.style.display=``,n.style.minHeight=`${c.minHeight}px`,c.maxHeight&&(n.style.maxHeight=`${c.maxHeight}px`);let t=$V(c,r.getState());QV(l,a,t,!0),c.style===`blur`&&oH(n,l,c.blurAmount),cH(n,l),l.querySelector(`.${a.button}`)?.addEventListener(`click`,()=>{MR().emit(`gate:click`,n),window.__fanid_api?.redirectToLogin()}),YV(n,a)};u(r.getState().isAuthenticated);let d=r.subscribe(e=>{u(e.isAuthenticated)});vH.set(n,{overlayHost:l,unsubscribe:d}),MR().emit(`gate:applied`,n)}function SH(e){let t=bH(e);if(!t)return;let n=vH.get(t);n&&(n.unsubscribe(),XV(t),n.overlayHost.remove(),t.style.minHeight=``,t.style.maxHeight=``,sH(t,n.overlayHost),lH(t,n.overlayHost),vH.delete(t))}function CH(e){let t=bH(e);return t?vH.has(t):!1}function wH(){let e=document.querySelectorAll(`[${gH}]`);for(let t of e)vH.has(t)||xH(t)}function TH(){yH||(yH=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)if(e instanceof HTMLElement){e.hasAttribute(gH)&&xH(e);let t=e.querySelectorAll(`[${gH}]`);for(let e of t)xH(e)}}),yH.observe(document.body,{childList:!0,subtree:!0}))}function EH(){yH?.disconnect(),yH=null}function DH(){for(let[e]of vH)SH(e)}var OH=null,kH=null;function AH(e){if(OH)return;let t=OR(),n=t.getState(),r=n.config,i=LV(n.classPrefix),a=e?.title??r.placeholder.title,o=e?.message??r.placeholder.message,s=e?.buttonText??r.placeholder.buttonText,c=e?.allowClose??!1,l=e?.backdropBlur??8,u=n.organization?.branding?.logoUrl??null;document.body.style.filter=`blur(${l}px)`,document.body.style.pointerEvents=`none`,document.body.style.userSelect=`none`,OH=document.createElement(`div`),OH.className=i.fullpage,tH(OH,n);let d=ZV(i,{title:a,message:o,buttonText:s,logoUrl:u});if(d.style.position=`relative`,c){let e=document.createElement(`button`);e.className=i.fullpageClose,e.setAttribute(`aria-label`,`Close`),e.textContent=`×`,e.addEventListener(`click`,()=>jH()),d.insertBefore(e,d.firstChild)}d.querySelector(`.${i.button}`)?.addEventListener(`click`,()=>{MR().emit(`gate:click`,document.body),window.__fanid_api?.redirectToLogin()}),OH.appendChild(d),document.documentElement.appendChild(OH),kH=t.subscribe(e=>{e.isAuthenticated&&jH()})}function jH(){OH&&(document.body.style.filter=``,document.body.style.pointerEvents=``,document.body.style.userSelect=``,OH.remove(),OH=null,kH?.(),kH=null)}var MH=(e,t)=>{if(t)return t;if(typeof window>`u`)return _R.BEARER;try{return new URL(e).host===window.location.host?_R.COOKIE:_R.BEARER}catch{return _R.BEARER}},NH=new class{app=null;container=null;api=null;initialized=!1;initializing=!1;containerId=null;logger;storageListener=null;consumedExchangeToken=null;constructor(){this.logger=Iz().withTag(`FanIDWidget`),jR()}init(e){let t=this._consumeExchangeTokenFromUrl();if(this.initialized){this.logger.warn(`FanIDWidget already initialized`),t&&this._redeemExchangeTokenAfterInit(t);return}if(this.initializing){this.logger.warn(`FanIDWidget initialization already in progress`);return}if(!e?.baseUrl){this.logger.error(bR.MissingBaseUrl);return}this.initializing=!0,document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>this._mount(e,t)):this._mount(e,t)}destroy(){OV(),this._unmountFloatingWidget(),this._stopCrossTabSync(),this._setBodyAttribute(!1),this.api=null,this.initialized=!1,this.initializing=!1,this.consumedExchangeToken=null,EH(),DH(),zV(),delete window.__fanid_api}isInitialized(){return this.initialized}gate(e,t){this.ensureInitialized(),xH(e,t)}ungate(e){this.ensureInitialized(),SH(e)}element(e){this.ensureInitialized(),xH(e.el,e)}isGated(e){return CH(e)}gateFullPage(e){this.ensureInitialized(),AH(e)}ungateFullPage(){jH()}on(e,t){MR().on(e,t)}off(e,t){MR().off(e,t)}async isAuthenticated(){return this.ensureInitialized(),OR().getState().isAuthenticated}async getProfile(){return this.ensureInitialized(),OR().getState().profile}getOrganization(){return OR().getState().organization}login(){this.ensureInitialized(),this.api.redirectToLogin()}async logout(){this.ensureInitialized(),await this.api.logout(),OR().update({isAuthenticated:!1,profile:null}),MR().emit(`auth:logout`)}showFloatingWidget(){this.ensureInitialized(),this.app||this._mountFloatingWidget({force:!0})}hideFloatingWidget(){this._unmountFloatingWidget()}setFloatingWidgetPosition(e){this.ensureInitialized();let t=OR(),n=t.getState().floatingWidget;t.update({floatingWidget:{...n,position:e}}),this.app&&(this._unmountFloatingWidget(),this._mountFloatingWidget({force:!0}))}_mountFloatingWidget(e={}){if(this.app)return;let t=OR().getState().floatingWidget;if(e.force)BR();else if(RR(t.persistClose))return;let n=this.containerId?document.getElementById(this.containerId):null;n||(n=document.createElement(`div`),n.id=`fanid-widget-root`,document.body.insertBefore(n,document.body.firstChild)),this.container=n,this.app=mR(xz),this.app.mount(n)}_unmountFloatingWidget(){this.app&&=(this.app.unmount(),null),this.container&&this.container.id===`fanid-widget-root`&&this.container.remove(),this.container=null}_consumeExchangeTokenFromUrl(){let e=MV();return jV(),e===null||e===this.consumedExchangeToken?null:(this.consumedExchangeToken=e,e)}async _redeemExchangeTokenAfterInit(e){let t=this.api;if(!t||t.getTransport()!==_R.BEARER)return;let n=t.getBaseUrl();try{if(!(await NV(n,t,e)).redeemed)return;await this._refreshAuthFromStorage(n)}catch(e){this.logger.error(`Failed to redeem exchange token on re-initialization:`,e)}}async _mount(e,t){try{let n=MH(e.baseUrl,e.transport),r=new PV(e.baseUrl,n);this.api=r,window.__fanid_api=r;let i=IR(e.floatingWidget),a=DR({gatedContent:e.gatedContent,floatingWidget:i});a.update({transport:n});let o=MR();n===_R.BEARER&&t&&await NV(e.baseUrl,r,t);let s=await r.getOrganization();if(!s){a.update({organization:null,error:bR.DomainNotConfigured(e.baseUrl),initialized:!0}),this.containerId=e.containerId??null,this._mountFloatingWidget({force:!0}),this.initialized=!0,o.emit(`ready`),this.logger.error(`FanIDWidget initialization failed: organization could not be resolved from ${e.baseUrl}`);return}a.update({organization:s});let c=!1,l=null,u=n===_R.BEARER?dV.get(e.baseUrl):null,d=n===_R.COOKIE||u!==null&&!dV.isExpired(u);if(u&&dV.isExpired(u)&&dV.clear(e.baseUrl),d){let t=await r.checkAuthStatus();c=t.isAuthenticated,l=t.profile,n===_R.BEARER&&!c&&dV.clear(e.baseUrl)}let f=a.getState().isAuthenticated;a.update({isAuthenticated:c,profile:l,initialized:!0}),c&&l&&!f&&o.emit(`auth:login`,l),this.containerId=e.containerId??null;let p=a.getState().floatingWidget;p.enabled&&p.autoShow&&this._mountFloatingWidget();let m=a.getState().config;m.enabled&&(RV(a.getState().classPrefix,m),hH(m.customElementName),wH(),TH()),this._setBodyAttribute(a.getState().isAuthenticated),a.subscribe(e=>{this._setBodyAttribute(e.isAuthenticated)}),this._startCrossTabSync(e.baseUrl),this.initialized=!0,o.emit(`ready`),this.logger.info(`FanIDWidget initialized successfully (transport: ${n})`)}catch(e){this.logger.error(`Failed to initialize FanIDWidget:`,e)}finally{this.initializing=!1}}_setBodyAttribute(e){typeof document>`u`||document.body.toggleAttribute(`data-fanid-authed`,e)}_startCrossTabSync(e){if(typeof window>`u`||this.storageListener)return;let t=tV(e);this.storageListener=n=>{n.key===t&&this._refreshAuthFromStorage(e)},window.addEventListener(`storage`,this.storageListener)}_stopCrossTabSync(){typeof window>`u`||!this.storageListener||(window.removeEventListener(`storage`,this.storageListener),this.storageListener=null)}async _refreshAuthFromStorage(e){if(!this.api)return;let t=OR(),n=MR(),r=dV.get(e);if(!r||dV.isExpired(r)){let e=t.getState().isAuthenticated;t.update({isAuthenticated:!1,profile:null}),e&&n.emit(`auth:logout`);return}let{isAuthenticated:i,profile:a}=await this.api.checkAuthStatus(),o=t.getState().isAuthenticated;t.update({isAuthenticated:i,profile:a}),i&&a&&!o?n.emit(`auth:login`,a):!i&&o&&n.emit(`auth:logout`)}ensureInitialized(){this.initialized||this.logger.warn(`FanIDWidget not initialized. Call init() first.`)}};typeof window<`u`&&(window.FanIDWidget=NH);var PH=(e,t,n)=>{let r={};return e&&(r.title=e),t&&(r.message=t),n&&(r.buttonText=n),Object.keys(r).length?r:null},FH=m(()=>{let{error:e,info:t,warn:n}=ra(`integrations/fan-id`);try{let e=Bn(),{fanIdWidgetEnabled:r,fanIdApiBaseUrl:i,fanIdFloatingPosition:a,fanIdFloatingAutoShow:o,fanIdFloatingPersistClose:s,fanIdDefaultGateTitle:c,fanIdDefaultGateMessage:l,fanIdDefaultGateButtonText:u,fanIdDefaultGateMaxHeight:d,fanIdDefaultGateOverlayAlign:f}=On(e);if(!r.value)return;if(!i.value){n(`FanID widget: tenant URL (fan_id_api_base_url) is required but missing — skipping init.`);return}if(NH.isInitialized())return;_s({style:[{innerHTML:`wmt-fanid-protected:not(:defined){visibility:hidden}`}]});let p={enabled:!0,...a.value?{position:a.value}:{},...o.value===null?{}:{autoShow:o.value}
282,...s.value?{persistClose:s.value}:{}},m={},h=PH(c.value,l.value,u.value);h&&(m.placeholder=h),d.value!==null&&(m.maxHeight=d.value),f.value&&(m.overlayAlign=f.value);let g={baseUrl:i.value,floatingWidget:p,...Object.keys(m).length?{gatedContent:m}:{}};NH.init(g),t(`FanID widget initialized`)}catch(t){e(`FanID widget plugin error:`,t)}}),IH=m(()=>{let e=f();e.public?.oasFrontend?.preventRejectionUrls?.length&&(window.onunhandledrejection=t=>{if(!t?.reason?.request)return;let n=String(t.reason.request);e.public.oasFrontend.preventRejectionUrls?.some(e=>n.includes(e))&&t.preventDefault()})}),LH=e=>{let t=se(),n=se(),r=(e,t)=>e.find(e=>Array.isArray(e.path)?new RegExp(...e.path).test(t.path):e.hasStrictValue?t.path===e.path:t.path.startsWith(e.path)),i=()=>{n.value&&=(n.value(),void 0)};Pe(async(a,o)=>{let s=r(e,a),c=r(e,o);if(!s)return;if(t.value){if(s.url===c?.url)return;t.value(),t.value=void 0}i();let{load:l,unload:u}=la(s.url,()=>{t.value=u},{...s.props,manual:!0});n.value=$i(()=>{n.value=void 0,l()})})},RH=e=>{let t=Un(),{sportSlug:n}=On(t),r=e.find(e=>!e.sportSlug),i=se(),a=se([]),o=()=>{a.value.forEach(e=>e()),a.value=[]},s=e=>{if(!e)return;let{load:t,unload:n}=la(e.url,()=>{i.value=n},{...e.props,manual:!0}),r=$i(()=>{a.value=a.value.filter(e=>e!==r),t()});a.value.push(r)};aa(n,t=>{i.value&&=(i.value(),void 0),o();let n=e.find(e=>e.sportSlug===t);s(n),s(r)},{throttle:Jc.NavigationThrottle,immediate:!0})},zH=m(()=>{let e=f(),t=e.public.oasFrontend?.routeScripts||[];RH(e.public.oasFrontend?.sportScripts||[]),LH(t)}),BH=`Pinia`,VH=yu(((e,t={})=>({name:BH,setup(){!e||typeof e==`object`&&!(`use`in e)?Ci(()=>{console.warn('[Sentry] The Pinia integration was added, but the passed parameter `pinia` has the wrong value. Make sure to enable Pinia by adding `"@pinia/nuxt"` to the Nuxt modules array and pass pinia to Sentry with `piniaIntegration(usePinia())`. Current value of `pinia`:',e)}):e.use(IT(t))}}))),HH=(e,t)=>{t.forEach(t=>e.addIntegration(t))},UH=()=>{sD().then(()=>{let e=Jr();e&&(e.getOptions().enabled=!0,HH(e,[...o_(e.getOptions()),_f({filterKeys:[`astra-oas-frontend`],behaviour:`drop-error-if-contains-third-party-frames`}),Hg(),NT(),dT(),VH(VT()),LC({maskAllText:!1,blockAllMedia:!0})]))})},WH=m({name:`oas:sentry-consent`,parallel:!0,setup(){UH()}}),GH=m(e=>{e.vueApp.config.errorHandler=(e,t)=>{try{if(Li(e))return;if(e instanceof Event){if(`error`in e&&e.error){if(Li(e.error))return;ui(e.error)}else{let n=Error(`Event error: ${e.type}`);n.stack=`Event occurred at: ${t}`,ui(n)}}else e instanceof Error?ui(e):ui(Error(String(e)))}catch(e){console.error(`Error in errorHandler:`,e)}}});function KH(e){return`https://nuxt.com/docs/4.x/errors/${e.replace(`NUXT_`,``).toLowerCase()}`}var qH=[e=>{console.error(`[${e.name}]`)}],JH=i({docsBase:KH,reporters:qH});function YH(e=`nuxt-app`){return ma(e,{asyncContext:!1})}var XH=`__nuxt_plugin`;function ZH(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[XH]:!0,_name:t})}function QH(e){let t;return w()&&(t=S()?.appContext.app.$nuxt),t||=YH(e).tryUse(),t||null}function $H(e){let t=QH(e);if(!t)throw JH.NUXT_E1001();return t}import.meta.url.replace(/\/app\/.*$/,`/`);var eU=`__nuxt_error`,tU=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=Ae(e);return Object.defineProperty(t,eU,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};function nU(e){return Pn(Fn(e))}globalThis.requestIdleCallback,globalThis.cancelIdleCallback;function rU(e,t={}){let n,r=!1,i=[],a,o,s=(t,n)=>{let i=iU(e,t,n);return a=i,i.finally(()=>{if(a=void 0,o&&!r){let e=o;o=void 0,s(t,e)}}),i};return function(...e){return o=e,a||new Promise(a=>{let c=t.leading&&!r;r||(r=!0,z(()=>{r=!1;let a=o??e;o=void 0;let c=t.leading?n:s(this,a);for(let e of i)e(c);i=[]})),c?(n=s(this,e),a(n)):i.push(a)})}}async function iU(e,t,n){return await e.apply(t,n)}I({name:`ServerPlaceholder`,render(){return oe(`div`)}});var aU=/^[a-z][a-z0-9-]*$/i;function oU(e,t){return e&&aU.test(e)?e:t}var sU=Symbol.for(`nuxt:client-only`);I({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(e,{slots:t,attrs:n}){let r=V(!1);F(()=>{r.value=!0});let i=S();return i&&(i._nuxtClientOnly=!0),D(sU,!0),()=>{if(r.value){let e=t.default?.();return e&&e.length===1?[ae(e[0],n)]:e}let i=t.fallback||t.placeholder;if(i)return R(i);let a=e.fallback||e.placeholder||``,o=oU(e.fallbackTag||e.placeholderTag,`span`);return oe(o,n,a)}}});function cU(e){return Object.defineProperty(function(){throw JH.NUXT_E1007({name:e.name})},"__nuxt_factory",{enumerable:!1,get:()=>e.factory})}var lU=i({docsBase:KH,reporters:qH}),uU=cU({name:`createUseAsyncData`,factory(e={}){function t(...t){let n=typeof t[t.length-1]==`string`?t.pop():void 0;pU(t[0],t[1])&&t.unshift(n);let[r,i,a={}]=t,o=!1,s=q(r)||typeof r==`function`,c=s?J(()=>_e(r)):{value:r};if(!c.value||typeof c.value!=`string`)throw lU.NUXT_E3008();if(typeof i!=`function`)throw lU.NUXT_E3009();let l=typeof e==`function`,u=$H(),d=l?e(a):e;if(!l)for(let e in d)d[e]!==void 0&&a[e]===void 0&&(a[e]=d[e]);if(a.server??=!0,a.default??=_U,a.getCachedData??=vU,a.lazy??=!1,a.immediate??=!0,a.deep??=_.deep,a.dedupe??=`cancel`,a.enabled??=!0,l)for(let e in d)d[e]!==void 0&&(a[e]=d[e]);u._asyncData[c.value];function f(){let e={cause:`initial`,dedupe:a.dedupe},t=u._asyncData[c.value];
282return t?._init?u._asyncDataPromises[c.value]&&(e.cachedData=t._initialCachedData):(e.cachedData=a.getCachedData(c.value,u,{cause:`initial`}),u._asyncData[c.value]=gU(u,c.value,i,a,e.cachedData),u._asyncData[c.value]._initialCachedData=e.cachedData),()=>u._asyncData[c.value].execute(e)}let p=f(),m=u._asyncData[c.value];m._deps++;let h=a.server!==!1&&u.payload.serverRendered;{let e=S();if(e&&h&&a.immediate&&!e.sp&&(e.sp=[]),e&&!e._nuxtOnBeforeMountCbs){e._nuxtOnBeforeMountCbs=[];let t=e._nuxtOnBeforeMountCbs;M(()=>{t.forEach(e=>{e()}),t.splice(0,t.length)}),Y(()=>t.splice(0,t.length))}let t=e&&(e._nuxtClientOnly||C(sU,!1));h&&u.isHydrating&&(m.error.value||m.data.value!==void 0)?m.status.value=m.error.value?`error`:`success`:e&&(!t&&u.payload.serverRendered&&u.isHydrating||a.lazy)&&a.immediate?e._nuxtOnBeforeMountCbs.push(p):a.immediate&&m.status.value!==`success`&&p();function n(e){let t=u._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())}let r=ue(),l=()=>{},d=s?b(c,(e,t)=>{if((e||t)&&e!==t){o=!0;let r=u._asyncData[t]?.data.value!==void 0,s=u._asyncDataPromises[t]!==void 0,c={cause:`initial`,dedupe:a.dedupe};if(!u._asyncData[e]?._init){let n=a.getCachedData(e,u,{cause:`initial`});c.cachedData=n;let o=t&&r&&n===void 0?u._asyncData[t].data.value:n;u._asyncData[e]=gU(u,e,i,a,o),u._asyncData[e]._initialCachedData=n}u._asyncData[e]._deps++,t&&n(t),a._keyTriggersExecute!==!1&&(a.immediate||r||s)&&u._asyncData[e].execute(c),z(()=>{o=!1})}},{flush:`sync`}):l,f=a.watch?b(a.watch,()=>{o||u._asyncData[c.value]?._execute({cause:`watch`,dedupe:a.dedupe})}):l,g=q(a.enabled)||typeof a.enabled==`function`?b(()=>_e(a.enabled),e=>{let t=u._asyncData[c.value];e||!t||!u._asyncDataPromises[c.value]||(t._abortController?.abort(new DOMException("AsyncData request cancelled by `enabled: false`",`AbortError`)),t._abortController=void 0,delete u._asyncDataPromises[c.value],t.status.value=`idle`)}):l;r&&W(()=>{d(),f(),g(),n(c.value)})}let g={data:fU(()=>u._asyncData[c.value]?.data),pending:fU(()=>u._asyncData[c.value]?.pending),status:fU(()=>u._asyncData[c.value]?.status),error:fU(()=>u._asyncData[c.value]?.error),refresh:(...e)=>u._asyncData[c.value]?._init?u._asyncData[c.value].execute(...e):f()(),execute:(...e)=>g.refresh(...e),clear:()=>{let e=u._asyncData[c.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}mU(u,c.value)}},v=Promise.resolve(u._asyncDataPromises[c.value]).then(()=>g);return Object.assign(v,g),Object.defineProperties(v,{then:{enumerable:!0,value:v.then.bind(v)},catch:{enumerable:!0,value:v.catch.bind(v)},finally:{enumerable:!0,value:v.finally.bind(v)}}),v}return t}}),dU=uU.__nuxt_factory();uU.__nuxt_factory({lazy:!0,_functionName:`useLazyAsyncData`});function fU(e){return J({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}})}function pU(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function mU(e,t){delete e.payload.data[t],delete e.payload._errors[t],e._asyncData[t]&&(e._asyncData[t].data.value=L(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`,e._asyncData[t]._initialCachedData=void 0),delete e._asyncDataPromises[t]}function hU(e,t){let n={};for(let r of t)n[r]=e[r];return n}function gU(e,t,n,r,i){e.payload._errors[t]??=void 0;let a=r.getCachedData!==vU,o=n,s=r.deep?se:V,c=i!==void 0,l=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(t))&&await u.execute({cause:`refresh:hook`})}),u={data:s(c?i:r.default()),pending:J(()=>u.status.value===`pending`),error:ve(e.payload._errors,t),status:V(`idle`),execute:(...n)=>{let[i,a=void 0]=n,s=i&&a===void 0&&typeof i==`object`?i:{};if(e._asyncDataPromises[t]&&(s.dedupe??r.dedupe)===`defer`)return e._asyncDataPromises[t];{let n=`cachedData`in s?s.cachedData:r.getCachedData(t,e,{cause:s.cause??`refresh:manual`});if(n!==void 0)return e.payload.data[t]=u.data.value=n,u.error.value=void 0,u.status.value=`success`,Promise.resolve(n)}if(_e(r.enabled)===!1)return Promise.resolve(u.data.value);u._abortController&&u._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),u._abortController=new AbortController,u.status.value=`pending`;let c=new AbortController,l=new Promise((t,n)=>{try{let i=s.timeout??r.timeout,a=yU([u._abortController?.signal,s?.signal],c.signal,i);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}return a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:c.signal}),Promise.resolve(o(e,{signal:a})).then(t,n)}catch(e){n(e)}}).then(async n=>{if(e._asyncDataPromises[t]!==l)return;let i=n;r.transform&&(i=await r.transform(n)),r.pick&&(i=hU(i,r.pick)),e.payload.data[t]=i,u.data.value=i,u.error.value=void 0,u.status.value=`success`}).catch(n=>{if(e._asyncDataPromises[t]!==l||u._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<`u`&&n instanceof DOMException&&n.name===`AbortError`)return u.status.value=`idle`,e._asyncDataPromises[t];u.error.value=tU(n),u.data.value=L(r.default()),u.status.value=`error`}).finally(()=>{c.abort(),e._asyncDataPromises[t]===l&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=l,e._asyncDataPromises[t]},_execute:rU((...e)=>u.execute(...e)),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{l(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),e._asyncDataPromises[t]&&(u._abortController?.abort(new DOMException(`AsyncData request cancelled by unmount`,`AbortError`)),delete e._asyncDataPromises[t],u.status.value===`pending`&&(u.status.value=`idle`)),a||K(()=>{e._asyncData[t]?._init||(mU(e,t),u.execute=()=>Promise.resolve())})}};return u}var _U=()=>void 0,vU=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function yU(e,t,n){let r=e.filter(e=>!!e);
282if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}var bU=Rt,xU=[`method`,`baseURL`,`query`,`params`,`body`,`headers`];function SU(e){let t=[_e(e.method)?.toUpperCase()||`GET`,_e(e.baseURL)];for(let n of[e.query||e.params]){let e=_e(n);if(!e)continue;let r={};for(let[t,n]of Object.entries(e))r[_e(t)]=_e(n);t.push(r)}if(e.body){let n=_e(e.body);if(!n)t.push(nU(n));else if(n instanceof ArrayBuffer)t.push(nU(Object.fromEntries([...new Uint8Array(n).entries()].map(([e,t])=>[e,t.toString()]))));else if(n instanceof FormData){let e=[];for(let t of n.entries()){let[n,r]=t;e.push([n,r instanceof File?`${r.name}:${r.size}:${r.lastModified}`:r])}t.push(nU(e))}else if(T(n))t.push(nU(te(n)));else try{t.push(nU(n))}catch{lU.NUXT_E3002({cause:n})}}return t}var CU=cU({name:`createUseFetch`,factory(e={}){function t(t,n,r){let[i={},o]=typeof n==`string`?[{},n]:[n,r],s=typeof e==`function`?e(i):e,{server:c,lazy:l,default:u,transform:d,pick:f,watch:p,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,...b}={...typeof e==`function`?{}:s,...i,...typeof e==`function`?s:{}},x=J(()=>_e(t)),S=J(()=>_e(b.key)||`$f`+nU([o,typeof x.value==`string`?x.value:``,...SU(b)]));if(!b.baseURL&&typeof x.value==`string`&&x.value[0]===`/`&&x.value[1]===`/`)throw lU.NUXT_E3001({url:x.value});let C=te({...a,...b,cache:typeof b.cache==`boolean`?void 0:b.cache}),w={server:c,lazy:l,default:u,transform:d,pick:f,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,watch:p===!1?[]:[...p||[],C]};return p===!1&&(w._keyTriggersExecute=!1),dU(S,(e,{signal:t})=>{let n=b.$fetch||bU,r={signal:t,...C};for(let e of xU)typeof r[e]==`function`&&(r[e]=_e(r[e]));return n(x.value,r)},w)}return t}});CU.__nuxt_factory(),CU.__nuxt_factory({lazy:!0,_functionName:`useLazyFetch`}),globalThis.cookieStore;var wU=()=>({view:(e,t)=>Yt(`/simages/by/uuid/${encodeURIComponent(e)}`,{query:t}),search:(e,t=!0,n={})=>Yt(`/simages`,{query:e,...n},t)}),TU=t(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),EU=t(((e,t)=>{var n=ka(),r=$t(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),DU=t(((e,t)=>{var n=EU(),r=ka();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),OU=t(((e,t)=>{var n=DU(),r=en();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),kU=t(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),AU=t(((e,t)=>{var n=mn(),r=hn(),i=kU(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),jU=t(((e,t)=>{var n=on(),r=AU(),i=bn();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),MU=t(((e,t)=>{var n=DU(),r=jU();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),NU=t(((e,t)=>{var n=gn(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),PU=t(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),FU=t(((e,t)=>{var n=DU(),r=tn();function i(e,t){return n(e,r(e),t)}t.exports=i})),IU=t(((e,t)=>{t.exports=yn()(Object.getPrototypeOf,Object)})),LU=t(((e,t)=>{var n=sn(),r=IU(),i=tn(),a=nn();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),RU=t(((e,t)=>{var n=DU(),r=LU();function i(e,t){return n(e,r(e),t)}t.exports=i})),zU=t(((e,t)=>{var n=ln(),r=LU(),i=jU();function a(e){return n(e,i,r)}t.exports=a})),BU=t(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input
282=e.input),r}t.exports=r})),VU=t(((e,t)=>{var n=rn();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),HU=t(((e,t)=>{var n=VU();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),UU=t(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),WU=t(((e,t)=>{var n=En(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),GU=t(((e,t)=>{var n=VU();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),KU=t(((e,t)=>{var n=VU(),r=HU(),i=UU(),a=WU(),o=GU(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E}
282)),qU=t(((e,t)=>{var n=mn(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),JU=t(((e,t)=>{var n=qU(),r=IU(),i=hn();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),YU=t(((e,t)=>{var n=Cn(),r=vn(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),XU=t(((e,t)=>{var n=YU(),r=_n(),i=Sn(),a=i&&i.isMap;t.exports=a?r(a):n})),ZU=t(((e,t)=>{var n=Cn(),r=vn(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),QU=t(((e,t)=>{var n=ZU(),r=_n(),i=Sn(),a=i&&i.isSet;t.exports=a?r(a):n})),$U=t(((e,t)=>{var n=pn(),r=TU(),i=EU(),a=OU(),o=MU(),s=NU(),c=PU(),l=FU(),u=RU(),d=dn(),f=zU(),p=Cn(),m=BU(),h=KU(),g=JU(),_=xn(),v=wn(),y=XU(),b=mn(),x=QU(),S=en(),C=jU(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,M=`[object Function]`,N=`[object GeneratorFunction]`,P=`[object Map]`,F=`[object Number]`,I=`[object Object]`,L=`[object RegExp]`,R=`[object Set]`,z=`[object String]`,B=`[object Symbol]`,V=`[object WeakMap]`,H=`[object ArrayBuffer]`,U=`[object DataView]`,W=`[object Float32Array]`,ee=`[object Float64Array]`,G=`[object Int8Array]`,te=`[object Int16Array]`,ne=`[object Int32Array]`,re=`[object Uint8Array]`,ie=`[object Uint8ClampedArray]`,K=`[object Uint16Array]`,ae=`[object Uint32Array]`,q={};q[D]=q[O]=q[H]=q[U]=q[k]=q[A]=q[W]=q[ee]=q[G]=q[te]=q[ne]=q[P]=q[F]=q[I]=q[L]=q[R]=q[z]=q[B]=q[re]=q[ie]=q[K]=q[ae]=!0,q[j]=q[M]=q[V]=!1;function oe(e,t,O,k,A,j){var P,F=t&w,L=t&T,R=t&E;if(O&&(P=A?O(e,k,A,j):O(e)),P!==void 0)return P;if(!b(e))return e;var z=_(e);if(z){if(P=m(e),!F)return c(e,P)}else{var B=p(e),V=B==M||B==N;if(v(e))return s(e,F);if(B==I||B==D||V&&!A){if(P=L||V?{}:g(e),!F)return L?u(e,o(P,e)):l(e,a(P,e))}else{if(!q[B])return A?e:{};P=h(e,B,F)}}j||=new n;var H=j.get(e);if(H)return H;j.set(e,P),x(e)?e.forEach(function(n){P.add(oe(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){P.set(r,oe(n,t,O,r,e,j))});var U=z?void 0:(R?L?f:d:L?C:S)(e);return r(U||e,function(n,r){U&&(r=n,n=e[r]),i(P,r,oe(n,t,O,r,e,j))}),P}t.exports=oe})),eW=t(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n})),tW=t(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),nW=t(((e,t)=>{var n=Sa(),r=tW();function i(e,t){return t.length<2?e:n(e,r(t,0,-1))}t.exports=i})),rW=t(((e,t)=>{var n=xa(),r=eW(),i=nW(),a=Ca(),o=Object.prototype.hasOwnProperty;function s(e,t){t=n(t,e);var s=-1,c=t.length;if(!c)return!0;for(var l=e==null||typeof e!=`object`&&typeof e!=`function`;++s<c;){var u=t[s];if(typeof u==`string`){if(u===`__proto__`&&!o.call(e,`__proto__`))return!1;if(u===`constructor`&&s+1<c&&typeof t[s+1]==`string`&&t[s+1]===`prototype`){if(l&&s===0)continue;return!1}}}var d=i(e,t);return d==null||delete d[a(r(t))]}t.exports=s})),iW=t(((e,t)=>{var n=Tn(),r=IU(),i=vn(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),aW=t(((e,t)=>{var n=iW();function r(e){return n(e)?void 0:e}t.exports=r})),oW=t(((e,t)=>{var n=Aa();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),sW=t(((e,t)=>{var n=oW(),r=Da(),i=Oa();function a(e){return i(r(e,void 0,n),e+``)}t.exports=a})),cW=t(((e,t)=>{var n=ba(),r=$U(),i=rW(),a=xa(),o=DU(),s=aW(),c=sW(),l=zU(),u=1,d=2,f=4;t.exports=c(function(e,t){var c={};if(e==null)return c;var p=!1;t=n(t,function(t){return t=a(t,e),p||=t.length>1,t}),o(e,l(e),c),p&&(c=r(c,u|d|f,s));for(var m=t.length;m--;)i(c,t[m]);return c})})),lW=e(cW(),1),uW=3e3,dW=An(`oas-ads`,()=>{let{search:e}=wU(),t=V([]),n=V({}),r=se(!1),i=(e,t)=>{let r=Object.fromEntries(e.filter(e=>!!e.uuid).map(e=>[e.uuid,t[e.uuid]??[]]));n.value={...n.value,...r}},a=e=>{n.value=(0,lW.default)(n.value,e)},o=!1,s=()=>{o||(o=!0,queueMicrotask(()=>{o=!1,l()}))},c=e=>{let n=t.value.filter(t=>t.uuid!==e.uuid);n.push(e),e.uuid&&a(e.uuid),t.value=n,s()},l=async()=>
282{if(r.value||!t.value.length)return;let n=t.value;try{r.value=!0;let t=await e({zones:n},!1);i(n,t.data)}catch(e){fa(e)}finally{r.value=!1}t.value!==n&&s()},u=async t=>{if(!t.uuid)return[];try{let n=await e({zones:[t]},!1,{timeout:uW});i([t],n.data)}catch(e){fa(e)}return f(t.uuid)},d=()=>{t.value=[],r.value=!1},f=e=>{let t=n.value[e];return Array.isArray(t)?t:[]};return{ads:n,zones:t,isLoading:r,clearZoneAds:a,getAds:f,pushRequest:c,loadAds:l,fetchZone:u,resetZoneQueue:d}}),fW=ZH(e=>{let{resetZoneQueue:t}=dW();e.hook(`app:rendered`,()=>{t()}),e.hook(`page:loading:start`,()=>{t()})}),pW=[{id:`wmt-ads`,src:`https://ads.wmt.digital/delivery/asyncjs.php`},{id:`instagram-embed`,src:`https://www.instagram.com/embed.js`},{id:`twitter-widgets`,src:`https://platform.twitter.com/widgets.js`}],mW=()=>{let e=window;e.twttr?.widgets?.load?.(),e.instgrm?.Embeds?.process?.()},hW=()=>{let e=sD(),t=pW.map(({id:e,src:t})=>la(t,()=>mW(),{manual:!0,attrs:{id:e}}));e.then(()=>{t.forEach(({load:e})=>e().catch(()=>void 0))})},gW=m({name:`oas:default-scripts-consent`,parallel:!0,setup(){hW()}}),_W=()=>{let{formattedAnalyticsScripts:e}=On(Bn()),t=se(!1);sD().then(()=>{t.value=!0}),_s({script:J(()=>t.value&&e.value?[{id:`oas-analytics-code`,innerHTML:e.value}]:[])})},vW=m({name:`oas:analytics-consent`,parallel:!0,setup(){_W()}}),yW=`https://www.googletagmanager.com/gtag/js`,bW=`oas-gtag`,xW=e=>(e.dataLayer=e.dataLayer||[],e.gtag||(e.gtag=function(...t){e.dataLayer?.push(t)},e.gtag(`js`,new Date)),e.gtag),SW=()=>{let e=f().public.oasFrontend?.gtagTags??[],[t]=e;if(!t)return;let n=sD(),{load:r}=la(`${yW}?id=${encodeURIComponent(t)}`,()=>{},{manual:!0,attrs:{id:bW}});n.then(()=>{let t=xW(window);e.forEach(e=>t(`config`,e)),r().catch(()=>void 0)})},CW=m({name:`oas:gtag-consent`,parallel:!0,setup(){SW()}}),wW=m(()=>{let e=f().public.oasFrontend?.integrations?.onefield?.siteId;if(!e)return;_s({script:[{key:`oas-onefield-bootstrap`,innerHTML:`window.oneField=window.oneField||{};var oneField=window.oneField;oneField.cmd=oneField.cmd||[];`,tagPosition:`head`}]});let t=sD();ME({key:`oas-onefield-loader`,src:`https://onefield.fanserver.net/${encodeURIComponent(e)}/loader.js`,async:!0,fetchpriority:`high`,tagPosition:`head`,crossorigin:!1},{trigger:t})}),TW=t(((e,t)=>{function n(e){try{return JSON.stringify(e)}catch{return`"[Circular]"`}}t.exports=r;function r(e,t,r){var i=r&&r.stringify||n,a=1;if(typeof e==`object`&&e){var o=t.length+a;if(o===1)return e;var s=Array(o);s[0]=i(e);for(var c=1;c<o;c++)s[c]=i(t[c]);return s.join(` `)}if(typeof e!=`string`)return e;var l=t.length;if(l===0)return e;for(var u=``,d=1-a,f=-1,p=e&&e.length||0,m=0;m<p;){if(e.charCodeAt(m)===37&&m+1<p){switch(f=f>-1?f:0,e.charCodeAt(m+1)){case 100:case 102:if(d>=l||t[d]==null)break;f<m&&(u+=e.slice(f,m)),u+=Number(t[d]),f=m+2,m++;break;case 105:if(d>=l||t[d]==null)break;f<m&&(u+=e.slice(f,m)),u+=Math.floor(Number(t[d])),f=m+2,m++;break;case 79:case 111:case 106:if(d>=l||t[d]===void 0)break;f<m&&(u+=e.slice(f,m));var h=typeof t[d];if(h===`string`){u+=`'`+t[d]+`'`,f=m+2,m++;break}if(h===`function`){u+=t[d].name||`<anonymous>`,f=m+2,m++;break}u+=i(t[d]),f=m+2,m++;break;case 115:if(d>=l)break;f<m&&(u+=e.slice(f,m)),u+=String(t[d]),f=m+2,m++;break;case 37:f<m&&(u+=e.slice(f,m)),u+=`%`,f=m+2,m++,d--}++d}++m}return f===-1?e:(f<p&&(u+=e.slice(f)),u)}})),EW=e(t(((e,t)=>{var n=TW();t.exports=o;var r=T().console||{},i={mapHttpRequest:v,mapHttpResponse:v,wrapRequestSerializer:y,wrapResponseSerializer:y,wrapErrorSerializer:y,req:v,res:v,err:g,errWithCause:g};function a(e,t){return Array.isArray(e)?e.filter(function(e){return e!==`!stdSerializers.err`}):e===!0&&Object.keys(t)}function o(e){e||={},e.browser=e.browser||{};let t=e.browser.transmit;if(t&&typeof t.send!=`function`)throw Error(`pino: transmit option must have a send function`);let n=e.browser.write||r;e.browser.write&&(e.browser.asObject=!0);let i=e.serializers||{},o=a(e.browser.serialize,i),c=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf(`!stdSerializers.err`)>-1&&(c=!1);let u=Object.keys(e.customLevels||{}),d=[`error`,`fatal`,`warn`,`info`,`debug`,`trace`].concat(u);typeof n==`function`&&d.forEach(function(e){n[e]=n}),(e.enabled===!1||e.browser.disabled)&&(e.level=`silent`);let m=e.level||`info`,g=Object.create(n);g.log||=b,Object.defineProperty(g,"levelVal",{get:y}),Object.defineProperty(g,"level",{get:x,set:S});let v={transmit:t,serialize:o,asObject:e.browser.asObject,levels:d,timestamp:_(e)};g.levels=s(e),g.level=m,g.setMaxListeners=g.getMaxListeners=g.emit=g.addListener=g.on=g.prependListener=g.once=g.prepe
282ndOnceListener=g.removeListener=g.removeAllListeners=g.listeners=g.listenerCount=g.eventNames=g.write=g.flush=b,g.serializers=i,g._serialize=o,g._stdErrSerialize=c,g.child=C,t&&(g._logEvent=h());function y(){return this.level===`silent`?1/0:this.levels.values[this.level]}function x(){return this._level}function S(e){if(e!==`silent`&&!this.levels.values[e])throw Error(`unknown level `+e);this._level=e,l(v,g,`error`,`log`),l(v,g,`fatal`,`error`),l(v,g,`warn`,`error`),l(v,g,`info`,`log`),l(v,g,`debug`,`log`),l(v,g,`trace`,`log`),u.forEach(function(e){l(v,g,e,`log`)})}function C(n,r){if(!n)throw Error(`missing bindings for child Pino`);r||={},o&&n.serializers&&(r.serializers=n.serializers);let a=r.serializers;if(o&&a){var s=Object.assign({},i,a),c=e.browser.serialize===!0?Object.keys(s):o;delete n.serializers,f([n],c,s,this._stdErrSerialize)}function l(e){this._childLevel=(e._childLevel|0)+1,this.error=p(e,n,`error`),this.fatal=p(e,n,`fatal`),this.warn=p(e,n,`warn`),this.info=p(e,n,`info`),this.debug=p(e,n,`debug`),this.trace=p(e,n,`trace`),s&&(this.serializers=s,this._serialize=c),t&&(this._logEvent=h([].concat(e._logEvent.bindings,n)))}return l.prototype=this,new l(this)}return g}function s(e){let t=e.customLevels||{};return{values:Object.assign({},o.levels.values,t),labels:Object.assign({},o.levels.labels,c(t))}}function c(e){let t={};return Object.keys(e).forEach(function(n){t[e[n]]=n}),t}o.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:`trace`,20:`debug`,30:`info`,40:`warn`,50:`error`,60:`fatal`}},o.stdSerializers=i,o.stdTimeFunctions=Object.assign({},{nullTime:x,epochTime:S,unixTime:C,isoTime:w});function l(e,t,n,i){let a=Object.getPrototypeOf(t);t[n]=t.levelVal>t.levels.values[n]?b:a[n]?a[n]:r[n]||r[i]||b,u(e,t,n)}function u(e,t,n){!e.transmit&&t[n]===b||(t[n]=(function(i){return function(){let a=e.timestamp(),o=Array(arguments.length),s=Object.getPrototypeOf&&Object.getPrototypeOf(this)===r?r:this;for(var c=0;c<o.length;c++)o[c]=arguments[c];if(e.serialize&&!e.asObject&&f(o,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?i.call(s,d(this,n,o,a)):i.apply(s,o),e.transmit){let r=e.transmit.level||t.level,i=t.levels.values[r],s=t.levels.values[n];if(s<i)return;m(this,{ts:a,methodLevel:n,methodValue:s,transmitLevel:r,transmitValue:t.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},o)}}})(t[n]))}function d(e,t,r,i){e._serialize&&f(r,e._serialize,e.serializers,e._stdErrSerialize);let a=r.slice(),o=a[0],s={};i&&(s.time=i),s.level=e.levels.values[t];let c=(e._childLevel|0)+1;if(c<1&&(c=1),typeof o==`object`&&o){for(;c--&&typeof a[0]==`object`;)Object.assign(s,a.shift());o=a.length?n(a.shift(),a):void 0}else typeof o==`string`&&(o=n(a.shift(),a));return o!==void 0&&(s.msg=o),s}function f(e,t,n,r){for(let i in e)if(r&&e[i]instanceof Error)e[i]=o.stdSerializers.err(e[i]);else if(typeof e[i]==`object`&&!Array.isArray(e[i]))for(let r in e[i])t&&t.indexOf(r)>-1&&r in n&&(e[i][r]=n[r](e[i][r]))}function p(e,t,n){return function(){let r=Array(1+arguments.length);r[0]=t;for(var i=1;i<r.length;i++)r[i]=arguments[i-1];return e[n].apply(this,r)}}function m(e,t,n){let r=t.send,i=t.ts,a=t.methodLevel,o=t.methodValue,s=t.val,c=e._logEvent.bindings;f(n,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0||e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=n.filter(function(e){return c.indexOf(e)===-1}),e._logEvent.level.label=a,e._logEvent.level.value=o,r(a,e._logEvent,s),e._logEvent=h(c)}function h(e){return{ts:0,messages:[],bindings:e||[],level:{label:``,value:0}}}function g(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let n in e)t[n]===void 0&&(t[n]=e[n]);return t}function _(e){return typeof e.timestamp==`function`?e.timestamp:e.timestamp===!1?x:S}function v(){return{}}function y(e){return e}function b(){}function x(){return!1}function S(){return Date.now()}function C(){return Math.round(Date.now()/1e3)}function w(){return new Date(Date.now()).toISOString()}function T(){function e(e){return e!==void 0&&e}try{return typeof globalThis<`u`||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}}))(),1),DW=m(()=>{let e=f(),t=`info`;return e.public?.pino?.level&&(t=e.public.pino.level),{provide:{logger:(0,EW.default)({level:t||`info`})}}});function OW(e){let{error:t,instance:n,info:r}=e,i={info:r};if(n?.$props){let e=Jr();(e?e.getOptions():null)?.attachProps&&n.$props!==!1&&(i.propsData=n.$props)}setTimeout(()=>{ui(t,{captureContext:{contexts:{nuxt:i}},mechanism:{handled:!1,type:`auto.function.nuxt.${n?`vue`:`app`}-error`}})})}var kW=[sc,uc,gc,Oc,RO,zO,BO,VO,HO,UO,WO,GO,KO,BA,HA,WA,KA,QA,oj,vj,Sj,FH,IH,zH,WH,GH,fW,gW,vW,CW,wW,DW,ha({dependsOn:[`sentry-client-config`],async setup(e){if(typeof __SENTRY_TRACING__>`u`||__SENTRY_TRACING__){let t=Jr();t&&`$router`in e&&t.addIntegration(NT({router:e.$router,routeLabel:`path`}))}e.hook(`app:created`,e=>{let t=Jr();t&&t.addIntegration(kT({...vi._sentryNuxtVueIntegrationOptions,app:e,attachErrorHandler:!1}))}),e.hook(`app:error`,e=>{_a(e)&&e.statusCode>=300&&e.statusCode<500||OW({error:e})}),e.hook(`vue:error`,(e,t,n)=>{OW({error:e,instance:t,info:n})})}})];function AW(e,t){let n=t/e*100;return 2/Math.PI*100*Math.atan(n/50)}function jW(e={}){let{duration:t=2e3,throttle:n=200,hideDelay:i=500,resetDelay:a=400}=e,o=e.estimatedProgress||AW,s=r(),c=V(0),l=V(!1),u=V(!1),d=!1,f,p,m,h,g=(e={})=>{b(),u.value=!1,_(0,e)};function _(e=0,t={}){if(s.isHydrating)return;if(e>=100)return y({force:t.force});b(),x(),c.value=e<0?0:e;let r=t.force?0:n;r?p=setTimeout(()=>{l.value=!0,S()},r):(l.value=!0,S())}function v(){m=setTimeout(()=>{l.value=!1,h=setTimeout(()=>{c.value=0},a)},i)}function y(e={}){c.value=100,d=!0,x(),b(),e.error&&(u.value=!0),e.force?(c.value=0,l.value=!1):v()}function b(){clearTimeout(m),clearTimeout(h)}function x(){clearTimeout(p),cancelAnimationFrame(f)}function S(){d=!1;let e;function n(r){if(d)return;e??=r;let i=r-e;c.value=Math.max(0,Math.min(100,o(t,i))),f=requestAnimationFrame(n)}f=requestAnimationFrame(n)}let C=()=>{};{let e=s.hook(`page:loading:start`,()=>{g()}),t=s.hook(`page:loading:end`,()=>{y()}),n=s.hook(`vue:error`,()=>y({error:!0}));C=()=>{n(),e(),t(),x(),b()}}return{_cleanup:C,progress:ne(c),isLoading:ne(l),error:ne(u),start:g,set:_,finish:y,clear:x}}function MW(e={}){let t=r(),n=t._loadingIndicator||=jW(e);return ue()&&(t._loadingIndicatorDeps||=0,t._loadingIndicatorDeps++,W(()=>{t._loadingIndicatorDeps--,t._loadingIndicatorDeps===0&&(n._cleanup(),delete t._loadingIndicator)})),n}var NW=I({name:`NuxtLoadingIndicator`,props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:`repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)`},errorColor:{type:String,default:`repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)`},estimatedProgress:{type:Function,required:!1}},setup(e,{slots:t,expose:n}){let{progress:r,isLoading:i,error:a,start:o,finish:s,clear:c}=MW({duration:e.duration,throttle:e.throttle,hideDelay:e.hideDelay,resetDelay:e.resetDelay,estimatedProgress:e.estimatedProgress});return n({progress:r,isLoading:i,error:a,start:o,finish:s,clear:c}
282),()=>R(`div`,{class:`nuxt-loading-indicator`,style:{position:`fixed`,top:0,right:0,left:0,pointerEvents:`none`,width:`auto`,height:`${e.height}px`,opacity:+!!i.value,background:a.value?e.errorColor:e.color||void 0,backgroundSize:`${r.value>0?100/r.value*100:0}% auto`,transform:`scaleX(${r.value}%)`,transformOrigin:`left`,transition:`transform 0.1s, height 0.4s, opacity 0.4s`,zIndex:999999}},t)}}),PW=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},FW={};function IW(e,t){let n=NW;return B(),G(n,{class:`loading-indicator`})}var LW=Object.assign(PW(FW,[[`render`,IW]]),{__name:`UiLoadingIndicator`}),RW=(e=`RouteProvider`)=>I({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return D(X,re(r)),()=>e.vnode?R(e.vnode,{ref:e.vnodeRef}):e.vnode}}),zW=RW(),BW=new WeakMap,VW=I({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:i}){let a=r(),o=se(),s=C(X,null),c=new Set,l;i({pageRef:o});let u=C(Ne,null),d,f=a.deferHydration(),p=!1,m=!1,h,g=0;if(a.isHydrating){let e=a.hooks.hookOnce(`app:error`,f),t=je().beforeEach(()=>{e(),t()})}e.pageKey&&b(()=>e.pageKey,(e,t)=>{e!==t&&a.callHook(`page:loading:start`)});let _=!1;{let e=je().beforeResolve(()=>{_=!1});P(()=>{e(),f()})}return()=>R(ac,{name:e.name,route:e.route,...t},{default:WW(t=>{let r=HW(s,t.route,t.Component),i=s&&s.matched.length===t.route.matched.length;if(!t.Component){if(d&&!i&&!KW(d))return d;f();return}if(d&&u&&!KW(d)&&!u.isCurrent(t.route))return d;if(r&&s&&(!u||u?.isCurrent(s)))return(i||d)&&!KW(d)?d:null;let v=Nc(t,e.pageKey),y=UW(s,t.route,t.Component);!a.isHydrating&&l===v&&!y&&K(()=>{_||(_=!0,a.callHook(`page:loading:end`))}),p&&l!==v&&m&&g++,l=v;let b=!!(e.transition??t.route.meta.pageTransition??!1),x=b&&kt([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){a[`~transitionFinish`]?.(),delete a[`~transitionFinish`],delete a[`~transitionPromise`],a.callHook(`page:transition:finish`,t.Component)}}]),S=e.keepalive??t.route.meta.keepalive??!1,C=t.Component.type,w=C.name||C.__name;t.route.meta.keepalive&&w&&c.add(w);let T;if(c.size>0&&e.keepalive==null&&(!S||typeof S==`object`&&S&&S.include)){let e=typeof S==`object`&&S?{...S}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];T={...e,include:Array.from(new Set([...t,...c]))}}else T=S;return d=wt(b&&x,Pc(T,R(le,{key:g,suspensible:!0,onPending:()=>{p=!0,b&&!a[`~transitionPromise`]&&(a[`~transitionPromise`]=new Promise(e=>{a[`~transitionFinish`]=e})),h=a.callHook(`page:start`,t.Component)}
282,onResolve:async()=>{p=!1,m=!0,a.isHydrating&&a[`~restoreDeferredRoute`]?.();try{await K(),a._route.sync?.(),await h,await a.callHook(`page:finish`,t.Component),!_&&!y&&(_=!0,await a.callHook(`page:loading:end`))}finally{f()}}},{default:()=>{let e={key:v||void 0,vnode:n.default?GW(n.default,t):t.Component,route:t.route,renderKey:v||void 0,trackRootNodes:b,vnodeRef:o,routeRecord:void 0};if(!T)return R(zW,e);let r=C,i=BW.get(r);return i||(i=RW(w),BW.set(r,i)),R(i,e)}}))).default(),d})})}});function HW(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&Nc({route:t,Component:n})!==Nc({route:e,Component:n})}function UW(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function WW(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!N(n)?[de()]:[n]});return t._n=!0,t}function GW(e,t){let n=e(t);return n.length===1?R(n[0]):R(pe,void 0,n)}function KW(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var qW={};function JW(e,t){let n=LW,r=VW;return B(),oe(`div`,null,[H(n),H(r)])}var YW=PW(qW,[[`render`,JW]]),XW=I({name:`LayoutLoader`,inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>R(UA[e.name],e.layoutProps,t.slots)}}),ZW=I({name:`NuxtLayout`,inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){let n=r(),i=C(X),a=!i||i===Fe()?Dt():i,o=J(()=>{let t=Dn(a,e.name);return t&&!(t in UA)&&e.fallback&&(t=L(e.fallback)),t});D(we,o);let s=V();t.expose({layoutRef:s});let c=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,c),t=je().beforeEach(()=>{e(),t()})}let l;return()=>{let r=!!o.value&&o.value in UA&&!!(a?.meta.layoutTransition??!1),i=r&&kt([a?.meta.layoutTransition,!1,{onBeforeLeave(){n[`~transitionPromise`]=new Promise(e=>{n[`~transitionFinish`]=e})},onAfterLeave(){n[`~transitionFinish`]?.(),delete n[`~transitionFinish`],delete n[`~transitionPromise`]}}]),u=l;return l=o.value,wt(i,{default:()=>R(le,{suspensible:!0,onResolve:async()=>{await K(c)}},{default:()=>R(QW,{layoutProps:x(t.attrs,a.meta.layoutProps??{},{ref:s}),key:o.value||void 0,name:o.value,shouldProvide:!e.name,isRenderingNewLayout:e=>e!==u&&e===o.value,hasTransition:r},t.slots)})}).default()}}}),QW=I({name:`NuxtLayoutProvider`,inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){let n=e.name;e.shouldProvide&&D(Ne,{isCurrent:e=>n===!1||n===Dn(e)});
282let r=C(X),i=r&&r===Fe(),a=C(Ne,null);if(i){let t=Dt(),n={};for(let i in t){let o=i;Object.defineProperty(n,o,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)&&(!a||a.isCurrent(t))?t[o]:r[o]})}D(X,re(n))}return()=>!n||typeof n==`string`&&!(n in UA)?t.slots.default?.():R(XW,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),$W={__name:`LayoutWrapper`,props:{name:{type:String,required:!1,default:`default`},menu:{type:null,required:!1,default:null}},setup(e){return(t,n)=>{let r=ZW;return B(),oe(`div`,null,[H(r,{name:e.name,menu:e.menu},{default:ce(()=>[E(t.$slots,`default`)]),_:3},8,[`name`,`menu`])])}}},eG=ge(()=>Z(()=>import(`./Co5A4-cT.js`).then(e=>e.default||e),__vite__mapDeps([357,3,24,23,2,4,1,5,6,15,8,16,20,25,9,10,11,12,13,14,17,18,19,21,22,26,27,28,29,30,31,32,33,104,105,78,79,358]),import.meta.url)),tG={__name:`error`,props:{error:{type:Object,required:!0}},async setup(e){let t,n,r=e,i=Bn(),{fetch:a}=i,{defaultHead:o}=On(i);return[t,n]=me(()=>a()),await t,n(),_s({...o.value,title:String(r.error.statusCode??r.error.status??500)}),(t,n)=>{let r=eG,i=$W;return B(),G(i,null,{default:ce(()=>[H(r,{error:e.error},null,8,[`error`])]),_:1})}}},nG=()=>null,rG={key:0},iG={__name:`nuxt-root`,setup(e){let t=r(),n=t.deferHydration();if(t.isHydrating){let e=t.hooks.hookOnce(`app:error`,n),r=je().beforeEach(()=>{e(),r()})}window.location.pathname,D(X,Fe()),t.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let i=ze();function a(e,n,r){let i=t.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,n,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return A((e,n,r)=>{if(t.hooks.callHook(`vue:error`,e,n,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),xe(navigator.userAgent))return Be(t,e),!1;if(De(e)&&(e.fatal||e.unhandled))return t.runWithContext(()=>Le(e)),a(e,n,r),!1}),(e,t)=>(B(),G(le,{onResolve:L(n)},{default:ce(()=>[L(!1)?(B(),oe(`div`,rG)):L(i)?(B(),G(L(tG),{key:1,error:L(i)},null,8,[`error`])):L(!1)?(B(),G(L(nG),{key:2,context:L(!1)},null,8,[`context`])):L(!1)?(B(),G(k(L(!1)),{key:3})):(B(),G(L(YW),{key:4}))]),_:1},8,[`onResolve`]))}},aG;{let e;aG=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?be(iG):ye(iG),r=d({vueApp:n});async function i(e){await r.callHook(`app:error`,e),r.payload.error||=Me(e)}i.__nuxt_default=!0,n.config.errorHandler=i,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!t&&l.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(l.id)?.remove()});try{await g(r,kW)}catch(e){i(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(u),await r.hooks.callHook(`app:mounted`,n),await K()}catch(e){i(e)}return n},e=aG().catch(e=>{throw n.NUXT_E1009({cause:e}),e})}export{VD as A,s_ as B,qA as C,vk as D,gk as E,_E as F,_s as G,wd as H,zT as I,vs as K,LT as L,bD as M,mD as N,_A as O,sD as P,IT as R,YA as S,RA as T,yu as U,_f as V,Jc as W,NH as _,cW as a,ij as b,tW as c,GU as d,PU as f,EU as g,DU as h,dW as i,CD as j,HD as k,eW as l,jU as m,VW as n,sW as o,NU as p,PW as r,iW as s,$W as t,JU as u,hj as v,GA as w,ej as x,aj as y,o_ as z};

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