PageSourceSearch

https://www.vwfs.se/etc.clientlibs/bluelabel/clientlibs/clientlib-…uelabel.002dfd4b7b22f1cf619106787acc5b95.js

js vwfs.se collected 2026-10-08 23:33:01 UTC 660,981 bytes, 3,309 lines download raw bytes

vendor: 14,311 bytes, lines 1-4
1/*! For license information please see LICENSE.txt */
2var Pp=Object.defineProperty;var Ey=Object.getOwnPropertyDescriptor;var Op=i=>{throw TypeError(i)};var ky=(i,e,t)=>e in i?Pp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var u=(i,e,t,r)=>{for(var a=r>1?void 0:r?Ey(e,t):e,n=i.length-1,o;n>=0;n--)(o=i[n])&&(a=(r?o(e,t,a):o(a))||a);return r&&a&&Pp(e,t,a),a};var Ye=(i,e,t)=>ky(i,typeof e!="symbol"?e+"":e,t),Pc=(i,e,t)=>e.has(i)||Op("Cannot "+t);var B=(i,e,t)=>(Pc(i,e,"read from private field"),t?t.call(i):e.get(i)),ce=(i,e,t)=>e.has(i)?Op("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),D=(i,e,t,r)=>(Pc(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),hn=(i,e,t)=>(Pc(i,e,"access private method"),t);var Vo=globalThis,Wo=Vo.ShadowRoot&&(Vo.ShadyCSS===void 0||Vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oc=Symbol(),zp=new WeakMap,mn=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Oc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Wo&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=zp.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&zp.set(t,e))}return e}toString(){return this.cssText}},Np=i=>new mn(typeof i=="string"?i:i+"",void 0,Oc),P=(i,...e)=>{let t=i.length===1?i[0]:e.reduce(((r,a,n)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+i[n+1]),i[0]);return new mn(t,i,Oc)},Up=(i,e)=>{if(Wo)i.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(let t of e){let r=document.createElement("style"),a=Vo.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=t.cssText,i.appendChild(r)}},zc=Wo?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return Np(t)})(i):i;var{is:wy,defineProperty:xy,getOwnPropertyDescriptor:Ay,getOwnPropertyNames:Ty,getOwnPropertySymbols:Sy,getPrototypeOf:Cy}=Object,jo=globalThis,Hp=jo.trustedTypes,Iy=Hp?Hp.emptyScript:"",My=jo.reactiveElementPolyfillSupport,vn=(i,e)=>i,gn={toAttribute(i,e){switch(e){case Boolean:i=i?Iy:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},qo=(i,e)=>!wy(i,e),Bp={attribute:!0,type:String,converter:gn,reflect:!1,useDefault:!1,hasChanged:qo};Symbol.metadata??=Symbol("metadata"),jo.litPropertyMetadata??=new WeakMap;var ki=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Bp){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),a=this.getPropertyDescriptor(e,r,t);a!==void 0&&xy(this.prototype,e,a)}}static getPropertyDescriptor(e,t,r){let{get:a,set:n}=Ay(this.prototype,e)??{get(){return this[t]},set(o){this[t]=o}};return{get:a,set(o){let s=a?.call(this);n?.call(this,o),this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Bp}static _$Ei(){if(this.hasOwnProperty(vn("elementProperties")))return;let e=Cy(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(vn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vn("properties"))){let t=this.properties,r=[...Ty(t),...Sy(t)];for(let a of r)this.createProperty(a,t[a])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,a]of t)this.elementProperties.set(r,a)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let a=this._$Eu(t,r);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let a of r)t.unshift(zc(a))}else e!==void 0&&t.push(zc(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Up(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,r);if(a!==void 0&&r.reflect===!0){let n=(r.converter?.toAttribute!==void 0?r.converter:gn).toAttribute(t,r.type);this._$Em=e,n==null?this.removeAttribute(a):this.setAttribute(a,n),this._$Em=null}}_$AK(e,t){let r=this.constructor,a=r._$Eh.get(e);if(a!==void 0&&this._$Em!==a){let n=r.getPropertyOptions(a),o=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:gn;this._$Em=a;let s=o.fromAttribute(t,n.type);this[a]=s??this._$Ej?.get(a)??s,this._$Em=null}}requestUpdate(e,t,r){if(e!==void 0){let a=this.constructor,n=this[e];if(r??=a.getPropertyOptions(e),!((r.hasChanged??qo)(n,t)||r.useDefault&&r.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:a,wrapped:n},o){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),n!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),a===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[a,n]of r){let{wrapped:o}=n,s=this[a];o!==!0||this._$AL.has(a)||s===void 0||this.C(a,void 0,n,s)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};ki.elementStyles=[],ki.shadowRootOptions={mode:"open"},ki[vn("elementProperties")]=new Map,ki[vn("finalized")]=new Map,My?.({ReactiveElement:ki}),(jo.reactiveElementVersions??=[]).push("2.1.1");var Uc=globalThis,Fp=i=>i,Go=Uc.trustedTypes,Vp=Go?Go.createPolicy("lit-html",{createHTML:i=>i}):void 0,Hc="$lit$",wi=`lit$${Math.random().toFixed(9).slice(2)}$`,Bc="?"+wi,Ly=`<${Bc}>`,hr=document,fn=()=>hr.createComment(""),bn=i=>i===null||typeof i!="object"&&typeof i!="function",Fc=Array.isArray,Yp=i=>Fc(i)||typeof i?.[Symbol.iterator]=="function",Nc=`[ 	
3\f\r]`,yn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wp=/-->/g,jp=/>/g,ur=RegExp(`>|${Nc}(?:([^\\s"'>=/]+)(${Nc}*=${Nc}*(?:[^ 	
4\f\r"'\`<>=]|("|')|))|$)`,"g"),qp=/'/g,Gp=/"/g,Qp=/^(?:script|style|textarea|title)$/i,Vc=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),Qe=Vc(1),Zp=Vc(2),Xp=Vc(3),mt=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Kp=new WeakMap,pr=hr.createTreeWalker(hr,129);function Jp(i,e){if(!Fc(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vp!==void 0?Vp.createHTML(e):e}var eh=(i,e)=>{let t=i.length-1,r=[],a,n=e===2?"<svg>":e===3?"<math>":"",o=yn;for(let s=0;s<t;s++){let l=i[s],d,y,p=-1,g=0;for(;g<l.length&&(o.lastIndex=g,y=o.exec(l),y!==null);)g=o.lastIndex,o===yn?y[1]==="!--"?o=Wp:y[1]!==void 0?o=jp:y[2]!==void 0?(Qp.test(y[2])&&(a=RegExp("</"+y[2],"g")),o=ur):y[3]!==void 0&&(o=ur):o===ur?y[0]===">"?(o=a??yn,p=-1):y[1]===void 0?p=-2:(p=o.lastIndex-y[2].length,d=y[1],o=y[3]===void 0?ur:y[3]==='"'?Gp:qp):o===Gp||o===qp?o=ur:o===Wp||o===jp?o=yn:(o=ur,a=void 0);let v=o===ur&&i[s+1].startsWith("/>")?" ":"";n+=o===yn?l+Ly:p>=0?(r.push(d),l.slice(0,p)+Hc+l.slice(p)+wi+v):l+wi+(p===-2?s:v)}return[Jp(i,n+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},_n=class i{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let n=0,o=0,s=e.length-1,l=this.parts,[d,y]=eh(e,t);if(this.el=i.createElement(d,r),pr.currentNode=this.el.content,t===2||t===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(a=pr.nextNode())!==null&&l.length<s;){if(a.nodeType===1){if(a.hasAttributes())for(let p of a.getAttributeNames())if(p.endsWith(Hc)){let g=y[o++],v=a.getAttribute(p).split(wi),f=/([.?@])?(.*)/.exec(g);l.push({type:1,index:n,name:f[2],strings:v,ctor:f[1]==="."?Yo:f[1]==="?"?Qo:f[1]==="@"?Zo:vr}),a.removeAttribute(p)}else p.startsWith(wi)&&(l.push({type:6,index:n}),a.removeAttribute(p));if(Qp.test(a.tagName)){let p=a.textContent.split(wi),g=p.length-1;if(g>0){a.textContent=Go?Go.emptyScript:"";for(let v=0;v<g;v++)a.append(p[v],fn()),pr.nextNode(),l.push({type:2,index:++n});a.append(p[g],fn())}}}else if(a.nodeType===8)if(a.data===Bc)l.push({type:2,index:n});else{let p=-1;for(;(p=a.data.indexOf(wi,p+1))!==-1;)l.push({type:7,index:n}),p+=wi.length-1}n++}}static createElement(e,t){let r=hr.createElement("template");return r.innerHTML=e,r}};function mr(i,e,t=i,r){if(e===mt)return e;let a=r!==void 0?t._$Co?.[r]:t._$Cl,n=bn(e)?void 0:e._$litDirective$;return a?.constructor!==n&&(a?._$AO?.(!1),n===void 0?a=void 0:(a=new n(i),a._$AT(i,t,r)),r!==void 0?(t._$Co??=[])[r]=a:t._$Cl=a),a!==void 0&&(e=mr(i,a._$AS(i,e.values),a,r)),e}var Ko=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,a=(e?.creationScope??hr).importNode(t,!0);pr.currentNode=a;let n=pr.nextNode(),o=0,s=0,l=r[0];for(;l!==void 0;){if(o===l.index){let d;l.type===2?d=new Zr(n,n.nextSibling,this,e):l.type===1?d=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(d=new Xo(n,this,e)),this._$AV.push(d),l=r[++s]}o!==l?.index&&(n=pr.nextNode(),o++)}return pr.currentNode=hr,a}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},Zr=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,a){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=mr(this,e,t),bn(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==mt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Yp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==_&&bn(this._$AH)?this._$AA.nextSibling.data=e:this.T(hr.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,a=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=_n.createElement(Jp(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===a)this._$AH.p(t);else{let n=new Ko(a,this),o=n.u(this.options);n.p(t),this.T(o),this._$AH=n}}_$AC(e){let t=Kp.get(e.strings);return t===void 0&&Kp.set(e.strings,t=new _n(e)),t}k(e){Fc(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,a=0;for(let n of e)a===t.length?t.push(r=new i(this.O(fn()),this.O(fn()),this,this.options)):r=t[a],r._$AI(n),a++;a<t.length&&(this._$AR(r&&r._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=Fp(e).nextSibling;Fp(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},vr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,a,n){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=_}_$AI(e,t=this,r,a){let n=this.strings,o=!1;if(n===void 0)e=mr(this,e,t,0),o=!bn(e)||e!==this._$AH&&e!==mt,o&&(this._$AH=e);else{let s=e,l,d;for(e=n[0],l=0;l<n.length-1;l++)d=mr(this,s[r+l],t,l),d===mt&&(d=this._$AH[l]),o||=!bn(d)||d!==this._$AH[l],d===_?e=_:e!==_&&(e+=(d??"")+n[l+1]),this._$AH[l]=d}o&&!a&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Yo=class extends vr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},Qo=class extends vr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},Zo=class extends vr{constructor(e,t,r,a,n){super(e,t,r,a,n),this.type=5}
4_$AI(e,t=this){if((e=mr(this,e,t,0)??_)===mt)return;let r=this._$AH,a=e===_&&r!==_||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==_&&(r===_||a);a&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Xo=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){mr(this,e)}},th={M:Hc,P:wi,A:Bc,C:1,L:eh,R:Ko,D:Yp,V:mr,I:Zr,H:vr,N:Qo,U:Zo,B:Yo,F:Xo},Ry=Uc.litHtmlPolyfillSupport;Ry?.(_n,Zr),(Uc.litHtmlVersions??=[]).push("3.3.3");var ih=(i,e,t)=>{let r=t?.renderBefore??e,a=r._$litPart$;if(a===void 0){let n=t?.renderBefore??null;r._$litPart$=a=new Zr(e.insertBefore(fn(),n),n,void 0,t??{})}return a._$AI(i),a};var Wc=globalThis,Et=class extends ki{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ih(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return mt}};Et._$litElement$=!0,Et.finalized=!0,Wc.litElementHydrateSupport?.({LitElement:Et});var $y=Wc.litElementPolyfillSupport;$y?.({LitElement:Et});(Wc.litElementVersions??=[]).push("4.2.1");var ah=Symbol.for(""),Dy=i=>{if(i?.r===ah)return i?._$litStatic$};var Ze=(i,...e)=>({_$litStatic$:e.reduce((t,r,a)=>t+(n=>{if(n._$litStatic$!==void 0)return n._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${n}. Use 'unsafeStatic' to pass non-literal values, but
5            take care to ensure page security.`)})(r)+i[a+1],i[0]),r:ah}),rh=new Map,jc=i=>(e,...t)=>{let r=t.length,a,n,o=[],s=[],l,d=0,y=!1;for(;d<r;){for(l=e[d];d<r&&(n=t[d],(a=Dy(n))!==void 0);)l+=a+e[++d],y=!0;d!==r&&s.push(n),o.push(l),d++}if(d===r&&o.push(e[r]),y){let p=o.join("$$lit$$");(e=rh.get(p))===void 0&&(o.raw=o,rh.set(p,e=o)),t=s}return i(e,...t)},E=jc(Qe),Hw=jc(Zp),Bw=jc(Xp);var Ui={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},vt=i=>(...e)=>({_$litDirective$:i,values:e}),Kt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var Z=vt(class extends Kt{constructor(i){if(super(i),i.type!==Ui.ATTRIBUTE||i.name!=="class"||i.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(e=>i[e]).join(" ")+" "}update(i,[e]){if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(let r in e)e[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(e)}let t=i.element.classList;for(let r of this.st)r in e||(t.remove(r),this.st.delete(r));for(let r in e){let a=!!e[r];a===this.st.has(r)||this.nt?.has(r)||(a?(t.add(r),this.st.add(r)):(t.remove(r),this.st.delete(r)))}return mt}});var M=i=>i??_;var Py={attribute:!0,type:String,converter:gn,reflect:!1,hasChanged:qo},Oy=(i=Py,e,t)=>{let{kind:r,metadata:a}=t,n=globalThis.litPropertyMetadata.get(a);if(n===void 0&&globalThis.litPropertyMetadata.set(a,n=new Map),r==="setter"&&((i=Object.create(i)).wrapped=!0),n.set(t.name,i),r==="accessor"){let{name:o}=t;return{set(s){let l=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,l,i)},init(s){return s!==void 0&&this.C(o,void 0,i,s),s}}}if(r==="setter"){let{name:o}=t;return function(s){let l=this[o];e.call(this,s),this.requestUpdate(o,l,i)}}throw Error("Unsupported decorator location: "+r)};function m(i){return(e,t)=>typeof t=="object"?Oy(i,e,t):((r,a,n)=>{let o=a.hasOwnProperty(n);return a.constructor.createProperty(n,r),o?Object.getOwnPropertyDescriptor(a,n):void 0})(i,e,t)}function G(i){return m({...i,state:!0,attribute:!1})}
5var $=class extends Et{_applyClassNames(e={}){return Z({debug:this.debug==="component","debug-recursive":this.debug==="recursive",...e})}getI18nValue(e){if(this.i18n&&e in this.i18n)return this.i18n[e];let t=this.constructor;if(t.defaultI18n&&e in t.defaultI18n)return t.defaultI18n[e]}setI18n(e,t=!0){if(t){let r=this.constructor;this.i18n={...r.defaultI18n,...e}}else this.i18n=e}emit(e,t,r){let{eventName:a,options:n}=e;if(!a)throw new TypeError("CyElement: `CyEvent` in `emit` needs an `eventName`.");let o=new CustomEvent(a,{detail:t,...n,...r});return this.dispatchEvent(o),e}static define(e,t=this,r={}){if(!customElements.get(e)){customElements.define(e,class extends t{},r);return}}_hasSlotContent(e,t){let r=this.shadowRoot?.querySelector(`slot[name="${e}"]`);return t?r?.assignedElements({flatten:!0}).length>0:r?.assignedNodes({flatten:!0}).length>0}constructor(){super(),this.currentLanguage=globalThis.navigator?.language?.split("-")[0]??"en"}};$.styles=[P`
6            :host(*) {
7                font-size: calc(1rem * var(--cy-root-font-size-multiplier, 1));
8            }
9        `],$.defaultI18n={},$.dependencies={},u([m({type:String})],$.prototype,"currentLanguage",2),u([m({type:Object})],$.prototype,"i18n",2),u([m({type:String})],$.prototype,"debug",2),u([m({type:String})],$.prototype,"testId",2);function pe(i){let{eventName:e}=i;return function(t,r){Object.defineProperty(t,r,{enumerable:!1,configurable:!1,writable:!1,value:{eventName:e,options:{bubbles:!0,cancelable:!0,composed:!0}}})}}var zy=P`@layer _settings,_component,_variants;@layer _settings{:host{--_cy-button-block-size: var(--cy-button-block-size, var(--cy-base-size-large, 2rem));--_cy-button-max-block-size: var(--cy-button-max-block-size, var(--_cy-button-block-size));--_cy-button-gap: var(--cy-button-gap, var(--cy-base-space-small, 1rem));--_cy-button-padding-block: var(--cy-button-padding-block, );--_cy-button-padding-inline: var(--cy-button-padding-inline, var(--cy-base-padding-base, .5rem));--_cy-button-flex-direction: var(--cy-button-flex-direction);--_cy-button-flex-type: var(--cy-button-flex-type, inline-flex);--_cy-button-font-family: var(--cy-button-font-family, var(--cy-base-text-font-family-base-list, sans-serif));--_cy-button-font-size: var(--cy-button-font-size, var(--cy-base-text-font-size-base, 1rem));--_cy-button-font-weight: var(--cy-button-font-weight, normal);--_cy-button-label-transform: var(--cy-button-label-transform);--_cy-button-letter-spacing: var(--cy-button-letter-spacing);--_cy-button-text-decoration: var(--cy-button-text-decoration);--_cy-button-text-decoration-thickness: var(--cy-button-text-decoration-thickness);--_cy-button-text-underline-offset: var(--cy-button-text-underline-offset);--_cy-button-border-width: var(--cy-button-border-width, var(--cy-base-border-width-base, 1px));--_cy-button-border-style: solid;--_cy-button-border-color: var(--cy-button-border-color, var(--cy-base-color-border, currentcolor));--_cy-button-active-border-color: ;--_cy-button-disabled-border-color: ;--_cy-button-hover-border-color: ;--_cy-button-border-radius: var(--cy-button-border-radius, var(--cy-base-border-radius-base, 0));--_cy-button-box-shadow: ;--_cy-button-active-box-shadow: ;
9--_cy-button-disabled-box-shadow: ;--_cy-button-hover-box-shadow: ;--_cy-button-icon-size: var(--cy-button-icon-size, var(--cy-base-icon-size-small, .8rem));--_cy-button-spinner-size: var(--cy-button-spinner-size, 18px);--_cy-button-spinner-primary-color: var(--cy-button-spinner-primary-color, var(--_cy-button-text-color));--_cy-button-spinner-secondary-color: var(--cy-button-spinner-secondary-color, color-mix(in srgb, var(--_cy-button-spinner-primary-color) 20%, transparent));--_cy-button-transition-duration: var(--_cy-button-transition-duration, var(--cy-base-animation-timing-function-base, .3s));--_cy-button-transition-timing-function: var(--_cy-button-transition-timing-function, var(--cy-base-animation-duration-base, ease));--_cy-button-small-font-size: var(--cy-button-small-font-size, var(--cy-base-text-font-size-small, .8125rem ));--_cy-button-small-icon-size: var(--cy-button-small-icon-size, var(--cy-base-icon-size-xsmall, .6rem));--_cy-button-small-padding-block: var(--cy-button-small-padding-block, );--_cy-button-small-padding-inline: var(--cy-button-small-padding-inline, var(--cy-base-padding-small, .5rem));--_cy-button-small-block-size: var(--cy-button-small-block-size, var(--cy-base-size-base, 1.5rem));--_cy-button-primary-text-color: var(--cy-button-primary-text-color, var(--cy-base-color-white, #ffffff));--_cy-button-primary-background-color: var(--cy-button-primary-background-color, var(--cy-base-color-brand, #000000));--_cy-button-primary-border-color: var(--cy-button-primary-border-color, var(--_cy-button-primary-background-color));--_cy-button-primary-box-shadow: var(--cy-button-primary-box-shadow, var(--cy-button-box-shadow, none));--_cy-button-primary-border-radius: var(--cy-button-primary-border-radius, var(--cy-button-border-radius, var(--cy-base-border-radius-base, 0)));--_cy-button-primary-hover-text-color: var(--cy-button-primary-hover-text-color, var(--_cy-button-primary-text-color));--_cy-button-primary-hover-background-color: var(--cy-button-primary-hover-background-color, oklch(from var(--_cy-button-primary-background-color) calc(l + .3) c h));--_cy-button-primary-hover-border-color: var(--cy-button-primary-hover-border-color, var(--_cy-button-primary-hover-background-color));--_cy-button-primary-hover-box-shadow: var(--cy-button-primary-hover-box-shadow);--_cy-button-primary-active-text-color: var(--cy-button-primary-active-text-color, var(--_cy-button-primary-hover-text-color));--_cy-button-primary-active-background-color: var(--cy-button-primary-active-background-color, var(--_cy-button-primary-hover-background-color));--_cy-button-primary-active-border-color: var(--cy-button-primary-active-border-color, var(--_cy-button-primary-active-background-color));--_cy-button-primary-active-box-shadow: var(--cy-button-primary-active-box-shadow);--_cy-button-primary-disabled-text-color: var(--cy-button-primary-disabled-text-color, oklch(from var(--_cy-button-primary-text-color) l c h / 50%));--_cy-button-primary-disabled-background-color: var(--cy-button-primary-disabled-background-color, oklch(from var(--_cy-button-primary-background-color) l c h / 50%));--_cy-button-primary-disabled-border-color: var(--cy-button-primary-disabled-border-color, var(--_cy-button-primary-disabled-background-color));
9--_cy-button-primary-disabled-box-shadow: var(--cy-button-primary-disabled-box-shadow);--_cy-button-secondary-text-color: var(--cy-button-secondary-text-color, var(--cy-base-color-text, #000000));--_cy-button-secondary-background-color: var(--cy-button-secondary-background-color, transparent);--_cy-button-secondary-border-color: var(--cy-button-secondary-border-color, currentcolor);--_cy-button-secondary-box-shadow: var(--cy-button-secondary-box-shadow, var(--cy-button-box-shadow, none));--_cy-button-secondary-border-radius: var(--cy-button-secondary-border-radius, var(--cy-button-border-radius, var(--cy-base-border-radius-base, 0)));--_cy-button-secondary-hover-text-color: var(--cy-button-secondary-hover-text-color, var(--_cy-button-secondary-text-color));--_cy-button-secondary-hover-background-color: var(--cy-button-secondary-hover-background-color, transparent);--_cy-button-secondary-hover-border-color: var(--cy-button-secondary-hover-border-color, var(--_cy-button-secondary-border-color));--_cy-button-secondary-hover-box-shadow: var(--cy-button-secondary-hover-box-shadow);--_cy-button-secondary-active-text-color: var(--cy-button-secondary-active-text-color, var(--_cy-button-secondary-text-color));--_cy-button-secondary-active-background-color: var(--cy-button-secondary-active-background-color, transparent);--_cy-button-secondary-active-border-color: var(--cy-button-secondary-active-border-color, var(--_cy-button-secondary-hover-border-color));--_cy-button-secondary-active-box-shadow: var(--cy-button-secondary-active-box-shadow);--_cy-button-secondary-disabled-text-color: var(--cy-button-secondary-disabled-text-color, oklch(from var(--_cy-button-secondary-text-color) l c h / 50%));--_cy-button-secondary-disabled-background-color: var(--cy-button-secondary-disabled-background-color, transparent);--_cy-button-secondary-disabled-border-color: var(--cy-button-secondary-disabled-border-color);
9--_cy-button-secondary-disabled-box-shadow: var(--cy-button-secondary-disabled-box-shadow);--_cy-button-action-text-color: var(--cy-button-action-text-color, var(--_cy-button-primary-text-color));--_cy-button-action-background-color: var(--cy-button-action-background-color, var(--_cy-button-primary-background-color));--_cy-button-action-border-color: var(--cy-button-action-border-color, var(--_cy-button-primary-border-color));--_cy-button-action-box-shadow: var(--cy-button-action-box-shadow, var(--cy-button-box-shadow, none));--_cy-button-action-border-radius: var(--cy-button-action-border-radius, var(--cy-button-border-radius, var(--cy-base-border-radius-base, 0)));--_cy-button-action-hover-text-color: var(--cy-button-action-hover-text-color, var(--_cy-button-primary-hover-text-color));--_cy-button-action-hover-background-color: var(--cy-button-action-hover-background-color, var(--_cy-button-primary-hover-background-color));--_cy-button-action-hover-border-color: var(--cy-button-action-hover-border-color, var(--_cy-button-primary-hover-border-color));--_cy-button-action-hover-box-shadow: var(--cy-button-action-hover-box-shadow, var(--_cy-button-primary-hover-box-shadow));--_cy-button-action-active-text-color: var(--cy-button-action-active-text-color, var(--_cy-button-primary-active-text-color));--_cy-button-action-active-background-color: var(--cy-button-action-active-background-color, var(--_cy-button-primary-active-background-color));--_cy-button-action-active-border-color: var(--cy-button-action-active-border-color, var(--_cy-button-primary-active-border-color));--_cy-button-action-active-box-shadow: var(--cy-button-action-active-box-shadow, var(--_cy-button-primary-active-box-shadow));--_cy-button-action-disabled-text-color: var(--cy-button-action-disabled-text-color, var(--_cy-button-primary-disabled-text-color));--_cy-button-action-disabled-background-color: var(--cy-button-action-disabled-background-color, var(--_cy-button-primary-disabled-background-color));--_cy-button-action-disabled-border-color: var(--cy-button-action-disabled-border-color, var(--_cy-button-primary-disabled-border-color));
9--_cy-button-action-disabled-box-shadow: var(--cy-button-action-disabled-box-shadow, var(--_cy-button-primary-disabled-box-shadow));--_cy-button-ghost-background-color: var(--cy-button-ghost-background-color, transparent);--_cy-button-ghost-text-color: var(--cy-button-ghost-text-color, var(--cy-base-color-text, #000000));--_cy-button-ghost-border-color: var(--cy-button-ghost-border-color, transparent);--_cy-button-ghost-hover-background-color: var(--cy-button-ghost-hover-background-color);--_cy-button-ghost-hover-text-color: var(--cy-button-ghost-hover-text-color);--_cy-button-ghost-hover-border-color: var(--cy-button-ghost-hover-border-color, transparent);--_cy-button-ghost-active-text-color: var(--cy-button-ghost-active-text-color, var(--_cy-button-ghost-text-color));--_cy-button-ghost-active-border-color: var(--cy-button-ghost-active-text-color, transparent);--_cy-button-ghost-disabled-text-color: var(--cy-button-ghost-disabled-text-color);--_cy-button-ghost-disabled-border-color: var(--cy-button-ghost-disabled-border-color, transparent);--_cy-button-ghost-border-radius: var(--cy-button-ghost-border-radius, var(--cy-button-border-radius, var(--cy-base-border-radius-base, 0)));--_cy-button-link-gap: var(--cy-button-link-gap, var(--cy-base-space-xxsmall, .3rem));--_cy-button-link-background-color: var(--cy-button-link-background-color, transparent);--_cy-button-link-text-color: var(--cy-button-link-text-color, var(--cy-base-color-link, #000000));--_cy-button-link-border-color: var(--cy-button-link-border-color, transparent);--_cy-button-link-hover-background-color: var(--cy-button-link-hover-background-color);--_cy-button-link-hover-text-color: var(--cy-button-link-hover-text-color, var(--cy-base-color-link-hover));--_cy-button-link-hover-border-color: var(--cy-button-link-hover-border-color, transparent);--_cy-button-link-active-text-color: var(--cy-button-link-active-text-color, var(--_cy-button-link-text-color));--_cy-button-link-active-border-color: var(--cy-button-link-active-text-color, transparent);--_cy-button-link-disabled-text-color: var(--cy-button-link-disabled-text-color);--_cy-button-link-disabled-border-color: var(--cy-button-link-disabled-border-color, transparent);--_cy-button-link-text-decoration: var(--cy-button-link-text-decoration, none);--_cy-button-link-text-decoration-thickness: var(--cy-button-link-text-decoration-thickness, 1px);--_cy-button-link-text-underline-offset: var(--cy-button-link-text-underline-offset, auto)}}@layer _component{:host{position:relative;display:inline-block;inline-size:auto}.button{--cy-spinner-embedded-size: var(--_cy-button-spinner-size);display:var(--_cy-button-flex-type);flex-direction:var(--_cy-button-flex-direction);gap:var(--_cy-button-gap);inline-size:stretch;min-block-size:min(var(--_cy-button-block-size),var(--_cy-button-max-block-size));aspect-ratio:var(--_cy-button-aspect-ratio);padding-inline:var(--_cy-button-padding-inline);padding-block:var(--_cy-button-padding-block);border:var(--_cy-button-border-width) var(--_cy-button-border-style) var(--_cy-button-border-color);border-radius:var(--_cy-button-border-radius);font-family:var(--_cy-button-font-family);font-size:var(--_cy-button-font-size);font-weight:var(--_cy-button-font-weight);text-decoration:var(--_cy-button-text-decoration);text-transform:var(--_cy-button-label-transform);letter-spacing:var(--_cy-button-letter-spacing);line-height:1;text-align:center;vertical-align:middle;background-color:var(--_cy-button-background-color);color:var(--_cy-button-text-color);transition-property:background-color,color,border-color,box-shadow;transition-duration:var(--_cy-button-transition-duration);transition-timing-function:var(--_cy-button-transition-timing-function);cursor:pointer;user-select:none;text-decoration-thickness:var(--_cy-button-text-decoration-thickness);text-underline-offset:var(--_cy-button-text-underline-offset);place-content:center;place-items:center;box-shadow:var(--_cy-button-box-shadow);-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;&:hover{--_cy-button-text-color: var(--_cy-button-hover-text-color);--_cy-button-background-color: var(--_cy-button-hover-background-color);--_cy-button-border-color: var(--_cy-button-hover-border-color);
9--_cy-button-box-shadow: var(--_cy-button-hover-box-shadow)}&:active{--_cy-button-text-color: var(--_cy-button-active-text-color);--_cy-button-background-color: var(--_cy-button-active-background-color);--_cy-button-border-color: var(--_cy-button-active-border-color);--_cy-button-box-shadow: var(--_cy-button-active-box-shadow)}&[disabled]{--_cy-button-text-color: var(--_cy-button-disabled-text-color);--_cy-button-background-color: var(--_cy-button-disabled-background-color);--_cy-button-border-color: var(--_cy-button-disabled-border-color);--_cy-button-box-shadow: var(--_cy-button-disabled-box-shadow);--cy-spinner-primary-color: var(--_cy-button-text-color);--cy-spinner-secondary-color: color-mix(in srgb, var(--_cy-button-text-color) 20%, transparent);--cy-spinner-dot-color: var(--_cy-button-text-color);--cy-spinner-dot-active-color: var(--_cy-button-text-color);--cy-spinner-dot-muted-color: color-mix(in srgb, var(--_cy-button-text-color) 20%, transparent);cursor:default;pointer-events:none}}:host{--cy-button-appearance-primary: var(--cy-button-appearance-reset,);--cy-button-appearance-secondary: var(--cy-button-appearance-reset,);--cy-button-appearance-action: var(--cy-button-appearance-reset,);--cy-button-appearance-ghost: var(--cy-button-appearance-reset,);--cy-button-appearance-link: var(--cy-button-appearance-reset,);--_cy-button-text-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-text-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-text-color)) var(--cy-button-appearance-action, var(--_cy-button-action-text-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-text-color)) var(--cy-button-appearance-link, var(--_cy-button-link-text-color)) ;--_cy-button-background-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-background-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-background-color)) var(--cy-button-appearance-action, var(--_cy-button-action-background-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-background-color)) var(--cy-button-appearance-link, var(--_cy-button-link-background-color)) ;--_cy-button-border-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-border-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-border-color)) var(--cy-button-appearance-action, var(--_cy-button-action-border-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-border-color)) var(--cy-button-appearance-link, var(--_cy-button-link-border-color)) ;--_cy-button-box-shadow: var(--cy-button-appearance-primary, var(--_cy-button-primary-box-shadow)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-box-shadow)) var(--cy-button-appearance-action, var(--_cy-button-action-box-shadow)) ;--_cy-button-hover-text-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-hover-text-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-hover-text-color)) var(--cy-button-appearance-action, var(--_cy-button-action-hover-text-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-hover-text-color)) var(--cy-button-appearance-link, var(--_cy-button-link-hover-text-color)) ;--_cy-button-hover-background-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-hover-background-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-hover-background-color)) var(--cy-button-appearance-action, var(--_cy-button-action-hover-background-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-hover-background-color)) var(--cy-button-appearance-link, var(--_cy-button-link-hover-background-color)) ;--_cy-button-hover-border-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-hover-border-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-hover-border-color)) var(--cy-button-appearance-action, var(--_cy-button-action-hover-border-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-hover-border-color)) var(--cy-button-appearance-link, var(--_cy-button-link-hover-border-color)) ;--_cy-button-hover-box-shadow: var(--cy-button-appearance-primary, var(--_cy-button-primary-hover-box-shadow)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-hover-box-shadow)) var(--cy-button-appearance-action, var(--_cy-button-action-hover-box-shadow)) ;--_cy-button-active-text-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-active-text-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-active-text-color)) var(--cy-button-appearance-action, var(--_cy-button-action-active-text-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-active-text-color)) var(--cy-button-appearance-link, var(--_cy-button-link-active-text-color)) ;--_cy-button-active-background-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-active-background-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-active-background-color)) var(--cy-button-appearance-action, var(--_cy-button-action-active-background-color)) ;--_cy-button-active-border-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-active-border-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-active-border-color)) var(--cy-button-appearance-action, var(--_cy-button-action-active-border-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-active-border-color)) var(--cy-button-appearance-link, var(--_cy-button-link-active-border-color)) ;--_cy-button-active-box-shadow: var(--cy-button-appearance-primary, var(--_cy-button-primary-active-box-shadow)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-active-box-shadow)) var(--cy-button-appearance-action, var(--_cy-button-action-active-box-shadow)) ;--_cy-button-disabled-text-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-disabled-text-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-disabled-text-color)) var(--cy-button-appearance-action, var(--_cy-button-action-disabled-text-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-disabled-text-color)) var(--cy-button-appearance-link, var(--_cy-button-link-disabled-text-color)) ;--_cy-button-disabled-background-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-disabled-background-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-disabled-background-color)) var(--cy-button-appearance-action, var(--_cy-button-action-disabled-background-color)) ;--_cy-button-disabled-border-color: var(--cy-button-appearance-primary, var(--_cy-button-primary-disabled-border-color)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-disabled-border-color)) var(--cy-button-appearance-action, var(--_cy-button-action-disabled-border-color)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-disabled-border-color)) var(--cy-button-appearance-link, var(--_cy-button-link-disabled-border-color)) ;
9--_cy-button-disabled-box-shadow: var(--cy-button-appearance-primary, var(--_cy-button-primary-disabled-box-shadow)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-disabled-box-shadow)) var(--cy-button-appearance-action, var(--_cy-button-action-disabled-box-shadow)) ;--_cy-button-border-radius: var(--cy-button-appearance-primary, var(--_cy-button-primary-border-radius)) var(--cy-button-appearance-secondary, var(--_cy-button-secondary-border-radius)) var(--cy-button-appearance-action, var(--_cy-button-action-border-radius)) var(--cy-button-appearance-ghost, var(--_cy-button-ghost-border-radius)) }:host([appearance="primary"]){--cy-button-appearance-primary: var(--cy-button-appearance-reset)}:host([appearance="secondary"]){--cy-button-appearance-secondary: var(--cy-button-appearance-reset);--cy-spinner-primary-color: var(--cy-button-secondary-spinner-primary-color, revert);--cy-spinner-secondary-color: var(--cy-button-secondary-spinner-secondary-color, revert);--cy-spinner-dot-color: var(--cy-button-secondary-spinner-primary-color, revert);--cy-spinner-dot-active-color: var(--cy-button-secondary-spinner-primary-color, revert);--cy-spinner-dot-muted-color: var(--cy-button-secondary-spinner-secondary-color, revert)}:host([appearance="action"]){--cy-button-appearance-action: var(--cy-button-appearance-reset)}:host([appearance="primary"]),:host([appearance="action"]){--cy-spinner-primary-color: var(--_cy-button-spinner-primary-color);--cy-spinner-secondary-color: var(--_cy-button-spinner-secondary-color);--cy-spinner-dot-color: var(--_cy-button-spinner-primary-color);--cy-spinner-dot-active-color: var(--_cy-button-spinner-primary-color);--cy-spinner-dot-muted-color: var(--_cy-button-spinner-secondary-color)}:host([appearance="ghost"]){--cy-button-appearance-ghost: var(--cy-button-appearance-reset)}:host([appearance="link"]){--cy-button-appearance-link: var(--cy-button-appearance-reset);--_cy-button-block-size: auto;--_cy-button-padding-block: 0;--_cy-button-padding-inline: 0;--_cy-button-gap: var(--_cy-button-link-gap);--_cy-button-text-decoration: var(--_cy-button-link-text-decoration);--_cy-button-text-decoration-thickness: var(--_cy-button-link-text-decoration-thickness);--_cy-button-text-underline-offset: var(--_cy-button-link-text-underline-offset)}.button-label{display:inline-flex}.button-icon:not(:empty),.button-label:not(:empty){display:inline-block}cy-icon{--_cy-icon-size: var(--_cy-button-icon-size)}}@layer _variants{.button--reverse{--_cy-button-flex-direction: row-reverse}.button--icon-only{--_cy-button-padding-block: 0;--_cy-button-small-padding-block: 0;--_cy-button-padding-inline: 0;--_cy-button-small-padding-inline: 0;--_cy-button-aspect-ratio: 1;&.button--round{--_cy-button-border-radius: calc(var(--_cy-button-block-size) / 2)}}.button--small{--_cy-button-padding-block: var(--_cy-button-small-padding-block);--_cy-button-padding-inline: var(--_cy-button-small-padding-inline);--_cy-button-block-size: var(--_cy-button-small-block-size);--_cy-button-font-size: var(--_cy-button-small-font-size);--_cy-button-icon-size: var(--_cy-button-small-icon-size);--_cy-button-spinner-size: var(--cy-button-spinner-size, var(--_cy-button-small-font-size))}.button--busy{cursor:progress;.button-icon{display:none}}}@layer _themes{@container style(--cy-theme: bluelabel){:host(:is([appearance="ghost"],[appearance="link"]):not([disabled])){.button-label{position:relative;&:after{content:"";position:absolute;inset-block-start:100%;inset-block-end:0;inset-inline-start:50%;display:block;inline-size:0;block-size:1px;margin-block-start:-1px;transform:translate(-50%);background-color:currentcolor;transition:all .25s ease}:hover>&:after{inline-size:100%}}}}}
10`,nh=zy;var Ny=P`:host{display:inline-flex;inline-size:var(--_cy-icon-size, 24px);block-size:var(--_cy-icon-size, 24px)}@layer _settings{:host{--cy-icon-size-xxsmall: var(--cy-base-icon-size-xxsmall);--cy-icon-size-xsmall: var(--cy-base-icon-size-xsmall);--cy-icon-size-small: var(--cy-base-icon-size-small);--cy-icon-size-base: var(--cy-base-icon-size-base);--cy-icon-size-large: var(--cy-base-icon-size-large);--cy-icon-size-xlarge: var(--cy-base-icon-size-xlarge);--cy-icon-size-xxlarge: var(--cy-base-icon-size-xxlarge)}.icon{--_cy-icon-complexity: var(--_cy-icon-complexity--default);--_cy-icon-complexity--default: var(--_cy-icon-complexity,);--_cy-icon-complexity--simple: var(--_cy-icon-complexity,);--_cy-icon-complexity--complex: var(--_cy-icon-complexity,)}}@layer _component{.icon-wrapper{display:inline-flex;align-items:center;container-name:--icon;container-type:inline-size;inline-size:100%;aspect-ratio:1}.icon{font-family:var(--cy-base-icon-font-family);font-size:100cqi;font-weight:400;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;&:before{content:var(--_cy-icon-complexity--default, var(--_cy-icon-name)) var(--_cy-icon-complexity--simple, var(--_cy-icon-name-simple)) var(--_cy-icon-complexity--complex, var(--_cy-icon-name-complex));display:inline-block}}}@layer _side-effects{.icon{@container --icon (inline-size >= 30px){--_cy-icon-complexity: var(--_cy-icon-complexity--complex)}@container style(--cy-theme: cupra){@container --icon (inline-size <= 20px){--_cy-icon-complexity: var(--_cy-icon-complexity--simple)}}@container style(--cy-theme: audi) or style(--cy-theme: bluelabel) or style(--cy-theme: generic){@container --icon (inline-size <= 24px){--_cy-icon-complexity: var(--_cy-icon-complexity--simple)}}@container style(--cy-theme: vw6){@container --icon (inline-size <= 12px){--_cy-icon-complexity: var(--_cy-icon-complexity--simple)}@container --icon (inline-size >= 30px){--_cy-icon-complexity: var(--_cy-icon-complexity--complex)}}@container style(--cy-theme: vw){@container --icon (inline-size <= 12px){--_cy-icon-complexity: var(--_cy-icon-complexity--simple)}@container --icon (inline-size >= 30px){--_cy-icon-complexity: var(--_cy-icon-complexity--complex)}}}}
11`,oh=Ny;var xe=class extends ${constructor(){super(...arguments);this.size="base"}get _classNames(){return Z({icon:!0,[`icon--${this.name}`]:this.name})}render(){return E`
12            <style>
13                :host {
14                    --_cy-icon-name: var(--cy-icon-override-name, var(--cy-icon-${this.name}));
15                    --_cy-icon-name-simple: var(--cy-icon-override-name--simple, var(--cy-icon-${this.name}--simple));
16                    --_cy-icon-name-complex: var(
17                        --cy-icon-override-name--complex,
18                        var(--cy-icon-${this.name}--complex)
19                    );
20                    --_cy-icon-size: var(--cy-icon-override-size, var(--cy-icon-size-${this.size}));
21                }
22            </style>
23            <span
24                class="icon-wrapper"
25                part="icon-wrapper"
26                aria-hidden="true"
27            >
28                <span
29                    class="${this._classNames}"
30                    part="icon"
31                ></span>
32            </span>
33        `}};xe.styles=[...$.styles,oh],u([m({type:String})],xe.prototype,"name",2),u([m({type:String})],xe.prototype,"size",2);customElements.get("cy-icon")||customElements.define("cy-icon",xe);var Uy=P`@layer _settings,_component,_variants;@layer _settings{:host{--_cy-spinner-size: var(--cy-spinner-size, var(--cy-base-size-large, 3rem));--_cy-spinner-border-width: var(--cy-spinner-border-width, var(--cy-base-border-width-large, 2px));--_cy-spinner-speed: var(--cy-spinner-speed, 1s);--_cy-spinner-timing-function: var(--cy-spinner-timing-function, linear);--_cy-spinner-primary-inset: var(--cy-spinner-primary-inset, 0);--_cy-spinner-primary-display: var(--cy-spinner-primary-display, block);--_cy-spinner-primary-inline-size: var(--cy-spinner-primary-inline-size, 100%);--_cy-spinner-primary-block-size: var(--cy-spinner-primary-block-size, 100%);--_cy-spinner-primary-aspect-ratio: var(--cy-spinner-primary-aspect-ratio, auto);--_cy-spinner-primary-clip-path: var(--cy-spinner-primary-clip-path);--_cy-spinner-primary-translate: var(--cy-spinner-primary-translate, none);--_cy-spinner-primary-scale: var(--cy-spinner-primary-scale, none);--_cy-spinner-primary-border-radius: var(--cy-spinner-primary-border-radius, 50%);--_cy-spinner-primary-background: var(--cy-spinner-primary-background, none);--_cy-spinner-primary-color: var(--cy-spinner-primary-color, var(--cy-base-color-brand, currentcolor));--_cy-spinner-primary-box-shadow: var(--cy-spinner-primary-box-shadow, 0 0 0 var(--_cy-spinner-border-width) var(--_cy-spinner-secondary-color) inset);--_cy-spinner-secondary-display: var(--cy-spinner-secondary-display, block);--_cy-spinner-secondary-border: var(--cy-spinner-secondary-border, var(--_cy-spinner-border-width) solid var(--_cy-spinner-primary-color));--_cy-spinner-secondary-border-block-end-color: var(--cy-spinner-secondary-border-block-end-color, transparent);--_cy-spinner-secondary-color: var(--cy-spinner-secondary-color, color-mix(in srgb, var(--_cy-spinner-primary-color) 20%, transparent));--_cy-spinner-secondary-animation: var(--cy-spinner-secondary-animation, --spinner-circle var(--_cy-spinner-speed) infinite var(--_cy-spinner-timing-function));--_cy-spinner-embedded-size: var(--cy-spinner-embedded-size, var(--cy-base-size-base, 1.5rem));--_cy-spinner-embedded-border-width: var(--cy-spinner-embedded-border-width, var(--cy-base-border-width-large, 2px));--_cy-spinner-embedded-primary-clip-path: var(--cy-spinner-embedded-primary-clip-path, var(--_cy-spinner-primary-clip-path))}}@layer _component{:host{display:inline-grid;color:var(--_cy-spinner-primary-color)}.spinner{position:relative;display:inline-block;inline-size:var(--_cy-spinner-size);block-size:var(--_cy-spinner-size);font-size:var(--_cy-spinner-size)}.spinner:before,.spinner:after{content:"";position:absolute;box-sizing:border-box;margin:auto}.spinner:before{inset:var(--_cy-spinner-primary-inset);display:var(--_cy-spinner-primary-display);inline-size:var(--_cy-spinner-primary-inline-size);block-size:var(--_cy-spinner-primary-block-size);aspect-ratio:var(--_cy-spinner-primary-aspect-ratio);translate:var(--_cy-spinner-primary-translate);scale:var(--_cy-spinner-primary-scale);border-radius:var(--_cy-spinner-primary-border-radius);background:var(--_cy-spinner-primary-background);box-shadow:var(--_cy-spinner-primary-box-shadow);clip-path:var(--_cy-spinner-primary-clip-path)}.spinner:after{inset:0;display:var(--_cy-spinner-secondary-display);inline-size:100%;block-size:100%;border:var(--_cy-spinner-secondary-border);border-block-end-color:var(--_cy-spinner-secondary-border-block-end-color);border-radius:50%;animation:var(--_cy-spinner-secondary-animation)}@keyframes --spinner-circle{to{transform:rotate(1turn)}}}@layer _variants{:host([embedded]){--_cy-spinner-size: var(--_cy-spinner-embedded-size);
33--_cy-spinner-primary-clip-path: var(--_cy-spinner-embedded-primary-clip-path);--_cy-spinner-border-width: var(--_cy-spinner-embedded-border-width);--_cy-spinner-primary-inset: var(--cy-spinner-embedded-primary-inset, var(--cy-spinner-primary-inset, 0));--_cy-spinner-primary-display: var(--cy-spinner-embedded-primary-display, var(--cy-spinner-primary-display, block));--_cy-spinner-primary-inline-size: var(--cy-spinner-embedded-primary-inline-size, var(--cy-spinner-primary-inline-size, 100%));--_cy-spinner-primary-block-size: var(--cy-spinner-embedded-primary-block-size, var(--cy-spinner-primary-block-size, 100%));--_cy-spinner-primary-aspect-ratio: var(--cy-spinner-embedded-primary-aspect-ratio, var(--cy-spinner-primary-aspect-ratio, auto));--_cy-spinner-primary-translate: var(--cy-spinner-embedded-primary-translate, var(--cy-spinner-primary-translate, none));--_cy-spinner-primary-scale: var(--cy-spinner-embedded-primary-scale, none);--_cy-spinner-primary-border-radius: var(--cy-spinner-embedded-primary-border-radius, var(--cy-spinner-primary-border-radius, 50%));--_cy-spinner-primary-background: var(--cy-spinner-embedded-primary-background, var(--cy-spinner-primary-background, none));--_cy-spinner-primary-box-shadow: var(--cy-spinner-embedded-primary-box-shadow, var(--cy-spinner-primary-box-shadow, 0 0 0 var(--_cy-spinner-border-width) var(--_cy-spinner-secondary-color) inset));--_cy-spinner-secondary-display: var(--cy-spinner-embedded-secondary-display, var(--cy-spinner-secondary-display, block))}}
34`,sh=Uy;var Yt=class extends ${constructor(){super(...arguments);this.label="Loading";this.embedded=!1}get _classNames(){return Z({spinner:!0})}render(){return E`
35            <div
36                class="${this._classNames}"
37                role="progressbar"
38                aria-label=${M(this.label)}
39                aria-live="polite"
40                aria-busy="true"
41                part="spinner"
42            ></div>
43        `}};Yt.styles=[...$.styles,sh],u([m({type:String})],Yt.prototype,"label",2),u([m({reflect:!0,type:Boolean})],Yt.prototype,"embedded",2);customElements.get("cy-spinner")||customElements.define("cy-spinner",Yt);var Hy=P`@layer utilities{[data-cy-visually-hidden],::part(cy-visually-hidden){position:var(--cy-if-hidden-disable, absolute)!important;inline-size:var(--cy-if-hidden-disable, 1px)!important;block-size:var(--cy-if-hidden-disable, 1px)!important;overflow:var(--cy-if-hidden-disable, hidden)!important;margin:var(--cy-if-hidden-disable, -1px)!important;padding:var(--cy-if-hidden-disable, 0)!important;border:var(--cy-if-hidden-disable, 0)!important;white-space:var(--cy-if-hidden-disable, nowrap)!important;clip-path:var(--cy-if-hidden-disable, inset(50%))!important}[data-cy-visually-hidden=focusable]:focus-visible,[data-cy-visually-hidden=focusable]:focus-within{--cy-if-hidden-disable: }}
44`,De=Hy;var oe=class extends ${constructor(){super(...arguments);this.appearance="primary";this.rel="noreferrer noopener";this.type="button";this.size="normal"}get _classNames(){return Z({button:!0,"button--primary":this.appearance==="primary","button--secondary":this.appearance==="secondary","button--ghost":this.appearance==="ghost","button--action":this.appearance==="action","button--link":this.appearance==="link","button--href":this.href,"button--small":this.size==="small","button--icon":this.icon,"button--icon-only":this.iconOnly,"button--reverse":(this.icon||this.busy)&&this.reverse,"button--round":this.iconOnly&&this.round,"button--busy":this.busy})}_handleBlur(){this.emit(this.blurEvent)}_handleClick(){this.emit(this.clickEvent)}_handleFocus(){this.emit(this.focusEvent)}_renderLoadingSpinner(){return this.busy?E`
45                  <cy-spinner embedded></cy-spinner>
46              `:_}_renderIcon(){return this.icon&&!this.busy?E`
47                  <cy-icon
48                      part="button-icon"
49                      name=${this.icon}
50                      exportparts="icon-wrapper, icon"
51                  ></cy-icon>
52              `:_}render(){let t=this.href?Ze`a`:Ze`button`;return E`
53            <${t}
54                part="button"
55                class=${this._classNames}
56                href=${M(this.href?this.href:_)}
57                rel=${M(this.href?this.rel:_)}
58                target=${M(this.href?this.target:_)}
59                type=${M(this.href?_:this.type)}
60                ?aria-busy=${this.busy}
61                ?disabled=${this.disabled}
62                aria-expanded=${M(this.ariaExpanded)}
63                aria-label="${M(this.ariaLabel)}"
64                aria-controls=${M(this.ariaControls)}
65                aria-labelledby="button-label"
66                @blur=${this._handleBlur}
67                @focus=${this._handleFocus}
68                @click=${this._handleClick}
69            >
70                ${this._renderLoadingSpinner()}
71                ${this._renderIcon()}
72                <slot
73                    id="button-label"
74                    class="button-label"
75                    part="button-label"
76                    ?data-cy-visually-hidden=${this.iconOnly}
77                ></slot>
78            </${t}>
79        `}};oe.shadowRootOptions={...Et.shadowRootOptions,delegatesFocus:!0},oe.styles=[...$.styles,nh,De],oe.dependencies={"cy-icon":xe,"cy-spinner":Yt},u([m({reflect:!0})],oe.prototype,"appearance",2),u([m({reflect:!0,type:Boolean})],oe.prototype,"busy",2),u([m({reflect:!0,type:Boolean})],oe.prototype,"disabled",2),u([m({type:String})],oe.prototype,"href",2),u([m({type:String})],oe.prototype,"icon",2),u([m({reflect:!0,type:Boolean})],oe.prototype,"iconOnly",2),u([m({reflect:!0,type:Boolean})],oe.prototype,"reverse",2),u([m()],oe.prototype,"rel",2),u([m({reflect:!0,type:Boolean})],oe.prototype,"round",2),u([m({type:String})],oe.prototype,"target",2),u([m({type:String})],oe.prototype,"type",2),u([m({type:String})],oe.prototype,"size",2),u([m({type:String})],oe.prototype,"ariaExpanded",2),u([m({type:String})],oe.prototype,"ariaLabel",2),u([m({type:String})],oe.prototype,"ariaControls",2),u([pe({eventName:"cy-blur"})],oe.prototype,"blurEvent",2),u([pe({eventName:"cy-focus"})],oe.prototype,"focusEvent",2),u([pe({eventName:"cy-click"})],oe.prototype,"clickEvent",2);customElements.get("cy-button")||customElements.define("cy-button",oe);var By=P`@layer _settings,_component,_variants;@layer _settings{:host{--_cy-card-label-font-size: var(--cy-card-label-font-size, var(--cy-base-text-font-size-small, .875rem));--_cy-card-label-font-weight: var(--cy-card-label-font-weight, var(--cy-base-text-font-weight-bold, 700));--_cy-card-label-background: var(--cy-card-label-background, var(--cy-base-color-surface-light, #dddddd));--_cy-card-label-color: var(--cy-card-label-color, var(--cy-base-color-text, #000000))}}@layer _components{:host{display:grid}.label{font-size:var(--_cy-card-label-font-size);font-weight:var(--_cy-card-label-font-weight);background-color:var(--_cy-card-label-background);color:var(--_cy-card-label-color)}cy-object-card-block{flex:1}}
80`,lh=By;var Fy=P`:root{--_cy-space-block-size: var(--cy-space-block-size, var(--cy-base-space-base, 1rem));--_cy-space-block-size-xxsmall: var(--cy-space-block-size-xxsmall, var(--cy-base-space-xxsmall, .3rem));--_cy-space-block-size-xsmall: var(--cy-space-block-size-xsmall, var(--cy-base-space-xsmall, .5rem));--_cy-space-block-size-small: var(--cy-space-block-size-small, var(--cy-base-space-small, .75rem));--_cy-space-block-size-large: var(--cy-space-block-size-large, var(--cy-base-space-large, 1.5rem))}[data-cy-space-block]{>:not([hidden])~:not([hidden]){margin-block-start:var(--_cy-space-block-size)}}@layer variants{[data-cy-space-block=xxsmall]{--_cy-space-block-size: var(--_cy-space-block-size-xxsmall)}[data-cy-space-block=xsmall]{--_cy-space-block-size: var(--_cy-space-block-size-xsmall)}[data-cy-space-block=small]{--_cy-space-block-size: var(--_cy-space-block-size-small)}[data-cy-space-block=large]{--_cy-space-block-size: var(--_cy-space-block-size-large)}[data-cy-space-block]{>[data-cy-space-block=none]{--_cy-space-block-size: 0}}}
81`,ch=Fy;var Vy=P`@layer settings{:root{--_cy-heading-font-family: var(--cy-heading-font-family, var(--cy-base-text-font-family-heading-list));--_cy-heading-font-size: var(--cy-heading-font-size, var(--cy-base-text-font-size-xlarge));--_cy-heading-font-weight: var(--cy-heading-font-weight, var(--cy-base-text-font-weight-bold));--_cy-heading-line-height: var(--cy-heading-line-height, var(--cy-base-text-font-line-height-base));--_cy-heading-color: var(--cy-heading-color, var(--cy-base-color-text));--_cy-heading-xxl-font-family: var(--cy-heading-xxl-font-family, var(--_cy-heading-font-family));--_cy-heading-xxl-size: var(--cy-heading-xxl-size, var(--cy-base-text-font-size-xxxxlarge-responsive));
81--_cy-heading-xxl-font-weight: var(--cy-heading-xxl-font-weight, var(--_cy-heading-font-weight));--_cy-heading-xxl-line-height: var(--cy-heading-xxl-line-height, var(--_cy-heading-line-height));--_cy-heading-xxl-color: var(--cy-heading-xxl-color, var(--_cy-heading-color));--_cy-heading-xl-font-family: var(--cy-heading-xl-font-family, var(--_cy-heading-font-family));--_cy-heading-xl-size: var(--cy-heading-xl-size, var(--cy-base-text-font-size-xxxlarge-responsive));--_cy-heading-xl-font-weight: var(--cy-heading-xl-font-weight, var(--_cy-heading-font-weight));--_cy-heading-xl-line-height: var(--cy-heading-xl-line-height, var(--_cy-heading-line-height));--_cy-heading-xl-color: var(--cy-heading-xl-color, var(--_cy-heading-color));--_cy-heading-l-font-family: var(--cy-heading-l-font-family, var(--_cy-heading-font-family));--_cy-heading-l-size: var(--cy-heading-l-size, var(--cy-base-text-font-size-xxlarge-responsive));--_cy-heading-l-font-weight: var(--cy-heading-l-font-weight, var(--_cy-heading-font-weight));--_cy-heading-l-line-height: var(--cy-heading-l-line-height, var(--_cy-heading-line-height));--_cy-heading-l-color: var(--cy-heading-l-color, var(--_cy-heading-color));--_cy-heading-m-font-family: var(--cy-heading-m-font-family, var(--_cy-heading-font-family));--_cy-heading-m-size: var(--cy-heading-m-size, var(--cy-base-text-font-size-xlarge-responsive));--_cy-heading-m-font-weight: var(--cy-heading-m-font-weight, var(--_cy-heading-font-weight));--_cy-heading-m-line-height: var(--cy-heading-m-line-height, var(--_cy-heading-line-height));--_cy-heading-m-color: var(--cy-heading-m-color, var(--_cy-heading-color));--_cy-heading-s-font-family: var(--cy-heading-s-font-family, var(--_cy-heading-font-family));--_cy-heading-s-size: var(--cy-heading-s-size, var(--cy-base-text-font-size-large-responsive));--_cy-heading-s-font-weight: var(--cy-heading-s-font-weight, var(--_cy-heading-font-weight));--_cy-heading-s-line-height: var(--cy-heading-s-line-height, var(--_cy-heading-line-height));--_cy-heading-s-color: var(--cy-heading-s-color, var(--_cy-heading-color));--_cy-heading-xs-font-family: var(--cy-heading-xs-font-family, var(--_cy-heading-font-family));--_cy-heading-xs-size: var(--cy-heading-xs-size, var(--cy-base-text-font-size-base-responsive));--_cy-heading-xs-font-weight: var(--cy-heading-xs-font-weight, var(--_cy-heading-font-weight));--_cy-heading-xs-line-height: var(--cy-heading-xs-line-height, var(--_cy-heading-line-height));--_cy-heading-xs-color: var(--cy-heading-xs-color, var(--_cy-heading-color));--_cy-heading-card-font-family: var(--cy-heading-card-font-family, var(--_cy-heading-font-family));--_cy-heading-card-size: var(--cy-heading-card-size, var(--cy-base-text-font-size-large-responsive));--_cy-heading-card-font-weight: var(--cy-heading-card-font-weight, var(--_cy-heading-font-weight));--_cy-heading-card-line-height: var(--cy-heading-card-line-height, var(--_cy-heading-line-height));--_cy-heading-card-color: var(--cy-heading-card-color, var(--_cy-heading-color));--_cy-heading-card-subtitle-font-family: var(--cy-heading-card-subtitle-font-family, var(--_cy-heading-font-family));--_cy-heading-card-subtitle-size: var(--cy-heading-card-subtitle-size, var(--cy-base-text-font-size-small-responsive));--_cy-heading-card-subtitle-font-weight: var(--cy-heading-card-subtitle-font-weight, var(--_cy-heading-card-font-weight));--_cy-heading-card-subtitle-line-height: var(--cy-heading-card-subtitle-line-height, var(--_cy-heading-line-height));--_cy-heading-card-subtitle-color: var(--cy-heading-card-subtitle-color, var(--_cy-heading-color))}}@layer main{[data-cy-heading]{margin:0;font-family:var(--_cy-heading-font-family);font-size:var(--_cy-heading-font-size);font-weight:var(--_cy-heading-font-weight);line-height:var(--_cy-heading-line-height);color:var(--_cy-heading-color)}h1[data-cy-heading=""],[data-cy-heading=xxl]{--_cy-heading-font-family: var(--_cy-heading-xxl-font-family);--_cy-heading-font-size: var(--_cy-heading-xxl-size);--_cy-heading-font-weight: var(--_cy-heading-xxl-font-weight);--_cy-heading-line-height: var(--_cy-heading-xxl-line-height);--_cy-heading-color: var(--_cy-heading-xxl-color)}h2[data-cy-heading=""],[data-cy-heading=xl]{--_cy-heading-font-family: var(--_cy-heading-xl-font-family);--_cy-heading-font-size: var(--_cy-heading-xl-size);
81--_cy-heading-font-weight: var(--_cy-heading-xl-font-weight);--_cy-heading-line-height: var(--_cy-heading-xl-line-height);--_cy-heading-color: var(--_cy-heading-xl-color)}h3[data-cy-heading=""],[data-cy-heading=l]{--_cy-heading-font-family: var(--_cy-heading-l-font-family);--_cy-heading-font-size: var(--_cy-heading-l-size);--_cy-heading-font-weight: var(--_cy-heading-l-font-weight);--_cy-heading-line-height: var(--_cy-heading-l-line-height);--_cy-heading-color: var(--_cy-heading-l-color)}h4[data-cy-heading=""],[data-cy-heading=m]{--_cy-heading-font-family: var(--_cy-heading-m-font-family);--_cy-heading-font-size: var(--_cy-heading-m-size);--_cy-heading-font-weight: var(--_cy-heading-m-font-weight);--_cy-heading-line-height: var(--_cy-heading-m-line-height);--_cy-heading-color: var(--_cy-heading-m-color)}h5[data-cy-heading=""],[data-cy-heading=s]{--_cy-heading-font-family: var(--_cy-heading-s-font-family);--_cy-heading-font-size: var(--_cy-heading-s-size);--_cy-heading-font-weight: var(--_cy-heading-s-font-weight);--_cy-heading-line-height: var(--_cy-heading-s-line-height);--_cy-heading-color: var(--_cy-heading-s-color)}h6[data-cy-heading=""],[data-cy-heading=xs]{--_cy-heading-font-family: var(--_cy-heading-xs-font-family);--_cy-heading-font-size: var(--_cy-heading-xs-size);--_cy-heading-font-weight: var(--_cy-heading-xs-font-weight);--_cy-heading-line-height: var(--_cy-heading-xs-line-height);--_cy-heading-color: var(--_cy-heading-xs-color)}[data-cy-heading=card]{--_cy-heading-font-family: var(--_cy-heading-card-font-family);--_cy-heading-font-size: var(--_cy-heading-card-size);--_cy-heading-font-weight: var(--_cy-heading-card-font-weight);--_cy-heading-line-height: var(--_cy-heading-card-line-height);--_cy-heading-color: var(--_cy-heading-card-color)}[data-cy-heading=card-subtitle]{--_cy-heading-font-family: var(--_cy-heading-card-subtitle-font-family);--_cy-heading-font-size: var(--_cy-heading-card-subtitle-size);--_cy-heading-font-weight: var(--_cy-heading-card-subtitle-font-weight);--_cy-heading-line-height: var(--_cy-heading-card-subtitle-line-height);--_cy-heading-color: var(--_cy-heading-card-subtitle-color)}}
82`,dh=Vy;var Wy=P`@layer _settings,_conditionals,_component,_variants;@layer _settings{:host{--_cy-object-card-row-gap: var(--cy-object-card-row-gap, var(--cy-base-space-base, 1.5rem));--_cy-object-card-column-gap: var(--cy-object-card-column-gap, var(--_cy-object-card-row-gap));--_cy-object-card-padding: var(--cy-object-card-padding, var(--cy-base-padding-base, 1.5rem));--_cy-object-card-background-color: var(--cy-object-card-background-color, var(--cy-base-color-surface-white, white));--_cy-object-card-shadow: var(--cy-object-card-shadow, none);--_cy-object-card-border: var(--cy-object-card-border, var(--cy-base-border-base, 1px solid black));--_cy-object-card-border-radius: var(--cy-object-card-border-radius, var(--cy-base-border-radius-base, 0));--_cy-object-card-alternative-background-color: var(--cy-object-card-alternative-background-color, var(--cy-base-color-surface-light, #dddddd));--_cy-object-card-alternative-color: var(--cy-object-card-alternative-color)}}@layer _conditionals{::slotted(cy-object-card-section:not(:first-child)){--cy-if-card-section-first: }::slotted(cy-object-card-section:not(:last-child)){--cy-if-card-section-last: }:host>*{@container (width < 30rem){--cy-if-card-\\>-breakpoint: }@container (width >= 30rem){--cy-if-card-\\<-breakpoint: }}}@layer _component{:host{display:grid;container-type:inline-size}.object-card{position:relative;display:flex;flex-direction:column;align-content:start;overflow:hidden;border:var(--_cy-object-card-border);border-radius:var(--_cy-object-card-border-radius);background-color:var(--_cy-object-card-background-color);box-shadow:var(--_cy-object-card-shadow)}::slotted(cy-object-card-section:first-child:not([theme])){--_cy-object-card-section-padding-block-start: var(--_cy-object-card-row-gap)}::slotted(cy-object-card-section:last-child:not([theme])){--_cy-object-card-section-padding-block-end: var(--_cy-object-card-row-gap)}::slotted([theme]:not(:first-child)){margin-block-start:calc(var(--_cy-object-card-padding) / 2)}::slotted([theme]:not(:last-child)){margin-block-end:calc(var(--_cy-object-card-padding) / 2)}::slotted([theme="alternative"]){--cy-object-card-section-background: var(--_cy-object-card-alternative-background-color);--cy-object-card-section-text-color: var(--_cy-object-card-alternative-color)}}@layer _variants{.object-card--inactive{filter:grayscale(100%);pointer-events:none;&:before{content:"";position:absolute;inset:0;background-color:#ffffff7f}}}
83`,uh=Wy;var jy=P`@layer _settings,_component;@layer _settings;@layer _component{details{.summary-collapse{display:none}&[open]{.summary-collapse{display:inline-flex}.summary-expand{display:none}}}summary{display:inline-flex;cursor:pointer;list-style:none;>*{display:inline-flex;align-items:center;gap:var(--cy-size-xsmall, .5rem);margin-block-end:calc(var(--_cy-object-card-row-gap) / 2);margin-inline-start:var(--_cy-object-card-padding);padding-block:var(--cy-size-xxsmall, .3rem);padding-inline:var(--cy-size-xsmall, .5rem);border-radius:var(--cy-border-radius, 5px);background-color:#efc938}&::-webkit-details-marker{display:none}}}
84`,ph=jy;var qy=P`@layer _settings,_component;@layer _settings{:host{--_cy-object-card-section-background: var(--cy-object-card-section-background);--_cy-object-card-section-text-color: var(--cy-object-card-section-text-color)}}
84@layer _component{.object-card-section{display:flex;flex-wrap:wrap;justify-content:var(--_cy-object-card-section-justify-content);gap:var(--_cy-object-card-row-gap) var(--_cy-object-card-column-gap);padding-block:var( --_cy-object-card-section-padding-block-start, calc(var(--_cy-object-card-row-gap) / 2)) var(--_cy-object-card-section-padding-block-end, calc(var(--_cy-object-card-row-gap) / 2) );padding-inline:var(--_cy-object-card-padding);background-color:var(--_cy-object-card-section-background);color:var(--_cy-object-card-section-text-color)}.object-card-section:empty{padding:0!important}}@layer _variants{:host([pushdown]){margin-block-start:auto}.object-card-section--grid{display:grid;grid-auto-columns:var(--cy-if-card-\\>-breakpoint, 1fr);grid-auto-flow:var(--_cy-object-card-section-columns, var(--cy-if-card-\\>-breakpoint, column));grid-template-columns:var(--cy-if-card-\\>-breakpoint, repeat(var(--_cy-object-card-section-columns), 1fr))}.object-card-section--no-outer-spacing{padding-inline:0;margin-block-start:var(--cy-if-card-section-first, calc(var(--_cy-object-card-padding) * -1));margin-block-end:var(--cy-if-card-section-last, calc(var(--_cy-object-card-padding) * -1));--cy-content-indent: var(--_cy-object-card-padding)}}
85`,hh=qy;var Gy=P`@layer _settings,_component;@layer _settings;@layer _component{:host{order:var(--cy-if-card-\\>-breakpoint, var(--_cy-object-card-object-order));font-size:inherit!important}.object-card-block{>*{max-inline-size:100%}::slotted(*:first-child){margin-block-start:0}::slotted(*:last-child){margin-block-end:0}::slotted(a){position:relative;z-index:1;outline:2px solid}::slotted(.card-full-link){position:static}::slotted(.card-full-link):after{content:"";position:absolute;inset:0;background:#f003;outline:2px solid red}&:hover ::slotted(.card-full-link):after{outline:2px solid blue;background:#00f3}}}
86`,mh=Gy;var Qt=class extends ${constructor(){super(...arguments);this.element="article";this.inactive=!1}get _classNames(){return this._applyClassNames({"object-card":!0,"object-card--inactive":this.inactive})}render(){let t=this.element==="div"?Ze`div`:Ze`article`;return E`
87            <${t} class="${this._classNames}" part="root object-card">
88                <slot></slot>
89            </${t}>
90        `}};Qt.styles=[...$.styles,uh],u([m({type:String})],Qt.prototype,"element",2),u([m({type:Boolean})],Qt.prototype,"inactive",2);var kt=class extends ${constructor(){super(...arguments);this.collapsibleToggleLabelExpand="Expand content";this.collapsibleToggleLabelCollapse="Collapse content"}get _classNames(){return this._applyClassNames({"object-card-section-group":!0})}render(){return this.collapsible?E`
91                <div
92                    class="${this._classNames}"
93                    part="object-card-section-group"
94                >
95                    <details>
96                        <summary>
97                            <span class="summary-expand">
98                                <cy-icon
99                                    name="semantic-expand"
100                                    size="xsmall"
101                                ></cy-icon>
102                                ${this.collapsibleToggleLabelExpand}
103                            </span>
104                            <span class="summary-collapse">
105                                <cy-icon
106                                    name="semantic-collapse"
107                                    size="xsmall"
108                                ></cy-icon>
109                                ${this.collapsibleToggleLabelCollapse}
110                            </span>
111                        </summary>
112                        <slot></slot>
113                    </details>
114                </div>
115            `:E`
116                <div
117                    class="${this._classNames}"
118                    part="object-card-section-group"
119                >
120                    <slot></slot>
121                </div>
122            `}};kt.styles=[...$.styles,ph],u([m({type:String})],kt.prototype,"theme",2),u([m({type:Boolean})],kt.prototype,"collapsible",2),u([m({type:String})],kt.prototype,"collapsibleToggleLabelExpand",2),u([m({type:String})],kt.prototype,"collapsibleToggleLabelCollapse",2);var gt=class extends ${constructor(){super(...arguments);this.layout="flex"}get _classNames(){return this._applyClassNames({"object-card-section":!0,"object-card-section--push-down":this.pushDown,"object-card-section--grid":this.layout==="grid","object-card-section--no-outer-spacing":this.noOuterSpacing})}render(){return this.align&&this.style.setProperty("--_cy-object-card-section-justify-content",this.align),this.columns&&this.style.setProperty("--_cy-object-card-section-columns",this.columns.toString()),E`
123            <div
124                class="${this._classNames}"
125                part="object-card-section"
126            >
127                <slot></slot>
128            </div>
129        `}};gt.styles=[...$.styles,hh],u([m({type:String})],gt.prototype,"layout",2),u([m({type:String})],gt.prototype,"align",2),u([m({type:Boolean})],gt.prototype,"pushDown",2),u([m({reflect:!0,type:Boolean})],gt.prototype,"noOuterSpacing",2),u([m({type:Number})],gt.prototype,"columns",2);var xi=class extends ${get _classNames(){return this.order&&this.style.setProperty("--_cy-object-card-object-order",this.order),this._applyClassNames({"object-card-block":!0})}render(){return E`
130            <div
131                class="${this._classNames}"
132                part="object-card-block"
133            >
134                <slot></slot>
135            </div>
136        `}};xi.styles=[...$.styles,mh],u([m({type:String})],xi.prototype,"order",2);customElements.get("cy-object-card")||customElements.define("cy-object-card",Qt);customElements.get("cy-object-card-section-group")||customElements.define("cy-object-card-section-group",kt);customElements.get("cy-object-card-section")||customElements.define("cy-object-card-section",gt);customElements.get("cy-object-card-block")||customElements.define("cy-object-card-block",xi);var Ky=P`@layer _settings,_component;@layer _settings{:host{--_cy-figure-gap: var(--cy-figure-gap, var(--cy-base-size-xxsmall, .5rem));--_cy-figcaption-margin-block: var(--cy-figcaption-margin-block, var(--cy-base-space-xsmall, .5rem));--_cy-figcaption-margin-inline: var(--cy-figcaption-margin-inline, var(--cy-content-indent));--_cy-figcaption-font-size: var(--cy-figcaption-font-size, var(--cy-base-text-font-size-xsmall, .8rem));--_cy-figcaption-font-style: var(--cy-figcaption-font-style, italic);--_cy-image-object-fit: var(--cy-image-object-fit, cover)}}@layer _component{:host{display:block}figure{display:grid;gap:var(--_cy-figure-gap);place-content:center;margin:0}figcaption{margin-block:var(--_cy-figcaption-margin-block);margin-inline:var(--_cy-figcaption-margin-inline);font-size:var(--_cy-figcaption-font-size);font-style:var(--_cy-figcaption-font-style)}.image{display:block;inline-size:100%;max-inline-size:100%;margin-inline:auto;object-fit:var(--_cy-image-object-fit)}}@layer _variants{.image-object-fit-contain{--_cy-image-object-fit: contain}}
137`,vh=Ky;var Yy=P`@layer settings{:root{--_cy-aspect-ratio: var(--cy-aspect-ratio, 1)}}@layer main{[data-cy-aspect-ratio],[data-cy-aspect-ratio="1:1"]{inline-size:fit-content;aspect-ratio:var(--_cy-aspect-ratio)}[data-cy-aspect-ratio="1:2"]{--_cy-aspect-ratio: 1 / 2}[data-cy-aspect-ratio="2:1"]{--_cy-aspect-ratio: 2 / 1}[data-cy-aspect-ratio="3:2"]{--_cy-aspect-ratio: 3 / 2}[data-cy-aspect-ratio="2:3"]{--_cy-aspect-ratio: 2 / 3}[data-cy-aspect-ratio="4:3"]{--_cy-aspect-ratio: 4 / 3}[data-cy-aspect-ratio="3:4"]{--_cy-aspect-ratio: 3 / 4}[data-cy-aspect-ratio="16:9"]{--_cy-aspect-ratio: 16 / 9}[data-cy-aspect-ratio="21:9"]{--_cy-aspect-ratio: 21 / 9}}
138`,gh=Yy;var Qy="images/demo-image-01.jpg",ze=class extends ${constructor(){super(...arguments);this.src=Qy;this.figure=!1;this.lazy=!1;this.objectFit="cover"}get _classNames(){return this._applyClassNames({image:!0})}renderImage(){return this.style.setProperty("--cy-image-object-fit",this.objectFit==="cover"?"":this.objectFit),E`
139            <img
140                part="${this.figure?"image":"root image"}"
141                class="${this._classNames}"
142                src="${this.src}"
143                alt="${this.alt}"
144                sizes=${M(this.sizes)}
145                srcset=${M(this.srcSet)}
146                loading=${M(this.lazy?"lazy":void 0)}
147                data-cy-aspect-ratio="${this.aspectRatio?this.aspectRatio:_}"
148            />
149        `}renderFigure(){return E`
150            <figure part="root figure">
151                ${this.renderImage()}
152                ${this.figcaption?E`
153                          <figcaption part="figcaption">${this.figcaption}</figcaption>
154                      `:_}
155            </figure>
156        `}render(){return E`
157            ${this.figure?this.renderFigure():this.renderImage()}
158        `}};ze.styles=[...$.styles,vh,gh],u([m({type:String})],ze.prototype,"src",2),u([m({type:String})],ze.prototype,"alt",2),u([m({type:String})],ze.prototype,"sizes",2),u([m({type:String,attribute:"srcset"})],ze.prototype,"srcSet",2),u([m({type:Boolean})],ze.prototype,"figure",2),u([m({type:Boolean})],ze.prototype,"lazy",2),u([m({type:String})],ze.prototype,"figcaption",2),u([m({type:String})],ze.prototype,"aspectRatio",2),u([m({type:String})],ze.prototype,"objectFit",2);customElements.get("cy-image")||customElements.define("cy-image",ze);var Ne=class extends ${constructor(){super(...arguments);this.titleHeadingLevel=2;this.inactive=!1;this._hasBodyContent=!1;this._hasFooterContent=!1;this._hasCollapsibleContent=!1}_updateSlotContent(){this._hasBodyContent=this._hasSlotContent("body"),this._hasFooterContent=this._hasSlotContent("footer")||!!this.link,this._hasCollapsibleContent=this._hasSlotContent("collapsible")}_getFooterButtons(){return(this.shadowRoot?.querySelector('slot[name="footer"]')?.assignedElements({flatten:!0})??[]).flatMap(a=>{let n=Array.from(a.querySelectorAll("cy-button"));return a.matches("cy-button")?[a,...n]:n})}_applyFooterButtonDefaults(){this._getFooterButtons().forEach(t=>{!t.hasAttribute("appearance")&&t.appearance==="primary"&&(t.appearance="link"),!t.hasAttribute("icon")&&!t.icon&&(t.icon="semantic-forward"),!t.hasAttribute("reverse")&&!t.reverse&&(t.reverse=!0)})}_handleFooterSlotChange(){this._applyFooterButtonDefaults(),this._updateSlotContent()}firstUpdated(){this.shadowRoot?.querySelector('slot[name="body"]')?.addEventListener("slotchange",()=>this._updateSlotContent()),this.shadowRoot?.querySelector('slot[name="footer"]')?.addEventListener("slotchange",()=>this._handleFooterSlotChange()),this.shadowRoot?.querySelector('slot[name="collapsible"]')?.addEventListener("slotchange",()=>this._updateSlotContent()),this._applyFooterButtonDefaults(),this._updateSlotContent()}get _classNames(){return this._applyClassNames({card:!0})}get _headingTag(){switch(Number(this.titleHeadingLevel)){case 1:return Ze`h1`;case 3:return Ze`h3`;case 4:return Ze`h4`;case 5:return Ze`h5`;case 6:return Ze`h6`;default:return Ze`h2`}}get _titleTemplate(){let t=this._headingTag;return this.title?E`
159                  <${t}
160                      part="title"
161                      data-cy-heading="card"
162                  >
163                      ${this.title}
164                  </${t}>
165              `:_}get _footerLinkTemplate(){return this.link?.text&&this.link?.href?E`
166                  <cy-button
167                      appearance="link"
168                      href=${this.link.href}
169                      icon=${"semantic-forward"}
170                      target=${M(this.link.target)}
171                      rel=${M(this.link.rel)}
172                      reverse
173                      ?disabled=${this.inactive}
174                  >
175                      ${this.link.text}
176                  </cy-button>
177              `:_}get _subtitleTemplate(){return this.subtitle?E`
178                  <p
179                      part="subtitle"
180                      data-cy-heading="card-subtitle"
181                  >
182                      ${this.subtitle}
183                  </p>
184              `:_}render(){return E`
185            <cy-object-card
186                class="${this._classNames}"
187                ?inactive=${this.inactive}
188                exportparts="object-card, object-card-section-group, object-card-section, object-card-block"
189                part="root"
190            >
191                ${this.label?E`
192                          <cy-object-card-section
193                              theme=""
194                              align="center"
195                              class="label"
196                          >
197                              <cy-object-card-block>${this.label}</cy-object-card-block>
198                          </cy-object-card-section>
199                      `:_}
200                ${this.imageSrc?E`
201                          <cy-object-card-section noOuterSpacing>
202                              <cy-object-card-block>
203                                  <cy-image
204                                      src=${this.imageSrc}
205                                      alt=${this.imageAlt}
206                                  ></cy-image>
207                              </cy-object-card-block>
208                          </cy-object-card-section>
209                      `:_}
210                ${this.icon?E`
211                          <cy-object-card-section align="center">
212                              <cy-object-card-block>
213                                  <cy-icon
214                                      name=${this.icon}
215                                      size="xlarge"
216                                  ></cy-icon>
217                              </cy-object-card-block>
218                          </cy-object-card-section>
219                      `:_}
220                ${this.title||this.subtitle?E`
221                          <cy-object-card-section class="header">
222                              <cy-object-card-block>
223                                  ${this.title&&this.subtitle?E`
224                                            <hgroup data-cy-space-block="xxsmall">
225                                                ${this._titleTemplate} ${this._subtitleTemplate}
226                                            </hgroup>
227                                        `:E`
228                                            ${this._titleTemplate}${this._subtitleTemplate}
229                                        `}
230                              </cy-object-card-block>
231                          </cy-object-card-section>
232                      `:_}
233
234                <cy-object-card-section
235                    class="body"
236                    ?hidden="${!this._hasBodyContent}"
237                >
238                    <cy-object-card-block>
239                        <slot name="body"></slot>
240                    </cy-object-card-block>
241                </cy-object-card-section>
242
243                <cy-object-card-section-group
244                    ?collapsible=${this._hasCollapsibleContent}
245                    ?hidden="${!this._hasCollapsibleContent}"
246                >
247                    <cy-object-card-section>
248                        <cy-object-card-block>
249                            <slot name="collapsible"></slot>
250                        </cy-object-card-block>
251                    </cy-object-card-section>
252                </cy-object-card-section-group>
253
254                <cy-object-card-section
255                    class="footer"
256                    pushDown
257                    ?hidden="${!this._hasFooterContent}"
258                >
259                    <cy-object-card-block>
260                        ${this._footerLinkTemplate}
261                        <slot name="footer"></slot>
262                    </cy-object-card-block>
263                </cy-object-card-section>
264            </cy-object-card>
265        `}};
vendor: 5,663 bytes, line 265
265Ne.styles=[...$.styles,lh,dh,ch],Ne.dependencies={"cy-object-card":Qt,"cy-object-card-section":gt,"cy-object-card-section-group":kt,"cy-object-card-block":xi,"cy-image":ze,"cy-icon":xe,"cy-button":oe},u([m({type:String})],Ne.prototype,"label",2),u([m({type:String})],Ne.prototype,"title",2),u([m({type:Number})],Ne.prototype,"titleHeadingLevel",2),u([m({type:String})],Ne.prototype,"subtitle",2),u([m({type:String})],Ne.prototype,"imageSrc",2),u([m({type:String})],Ne.prototype,"imageAlt",2),u([m({type:String})],Ne.prototype,"icon",2),u([m({reflect:!0,type:Boolean})],Ne.prototype,"inactive",2),u([m({type:Object})],Ne.prototype,"link",2),u([G()],Ne.prototype,"_hasBodyContent",2),u([G()],Ne.prototype,"_hasFooterContent",2),u([G()],Ne.prototype,"_hasCollapsibleContent",2);customElements.get("cy-card")||customElements.define("cy-card",Ne);var{I:Zy}=th,yh=i=>i;var bh=i=>i.strings===void 0,fh=()=>document.createComment(""),Xr=(i,e,t)=>{let r=i._$AA.parentNode,a=e===void 0?i._$AB:e._$AA;if(t===void 0){let n=r.insertBefore(fh(),a),o=r.insertBefore(fh(),a);t=new Zy(n,o,i,i.options)}else{let n=t._$AB.nextSibling,o=t._$AM,s=o!==i;if(s){let l;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(l=i._$AU)!==o._$AU&&t._$AP(l)}if(n!==a||s){let l=t._$AA;for(;l!==n;){let d=yh(l).nextSibling;yh(r).insertBefore(l,a),l=d}}}return t},Hi=(i,e,t=i)=>(i._$AI(e,t),i),Xy={},_h=(i,e=Xy)=>i._$AH=e,Eh=i=>i._$AH,es=i=>{i._$AR(),i._$AA.remove()};var kn=(i,e)=>{let t=i._$AN;if(t===void 0)return!1;for(let r of t)r._$AO?.(e,!1),kn(r,e);return!0},ts=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},kh=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),tf(e)}};function Jy(i){this._$AN!==void 0?(ts(this),this._$AM=i,kh(this)):this._$AM=i}function ef(i,e=!1,t=0){let r=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(r))for(let n=t;n<r.length;n++)kn(r[n],!1),ts(r[n]);else r!=null&&(kn(r,!1),ts(r));else kn(this,i)}var tf=i=>{i.type==Ui.CHILD&&(i._$AP??=ef,i._$AQ??=Jy)},Jr=class extends Kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),kh(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(kn(this,e),ts(this))}setValue(e){if(bh(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Ve=()=>new Gc,Gc=class{},qc=new WeakMap,Te=vt(class extends Jr{render(i){return _}update(i,[e]){let t=e!==this.G;return t&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=e,this.ht=i.options?.host,this.rt(this.ct=i.element)),_}rt(i){if(this.G!==void 0)if(this.isConnected||(i=void 0),typeof this.G=="function"){let e=this.ht??globalThis,t=qc.get(e);t===void 0&&(t=new WeakMap,qc.set(e,t)),t.get(this.G)!==void 0&&this.G.call(this.ht,void 0),t.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){return typeof this.G=="function"?qc.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var is=(i="cy-")=>`${i}${window.crypto?.randomUUID()}`;var rf=P`@layer _settings,_component;@layer _settings{:host{--_cy-carousel-padding-block: var(--cy-carousel-padding-block, 0rem);--_cy-carousel-padding-inline: var( --cy-carousel-padding-inline, var(--cy-carousel-button-block-size, 2rem) );--_cy-carousel-scroll-margin: var(--cy-carousel-scroll-margin, 1.5rem);--_cy-carousel-items-padding: var(--cy-carousel-items-padding, 0);--_cy-carousel-gap: var( --cy-carousel-gap, var(--cy-base-space-base, 1rem) );--_cy-carousel-fullscreen-layer: 99999999;--_cy-carousel-item-background-color: var( --cy-carousel-item-background-color, var(--cy-base-color-white, #ffffff) );--_cy-carousel-align-self: var(--cy-carousel-align-self, center);--_cy-carousel-align-items: var(--cy-carousel-align-items, var(--_cy-carousel-align-self));--_cy-carousel-item-border-radius: var( --cy-carousel-item-border-radius, var(--cy-base-border-radius-base, 0) );--_cy-carousel-item-aspect-ratio: var(--cy-carousel-item-aspect-ratio, none);--_cy-carousel-pagination-container-min-block-size: var(--cy-carousel-pagination-container-min-block-size, 2rem);--_cy-carousel-pagination-margin-block: var( --cy-carousel-pagination-margin-block, var(--cy-base-space-base, 1.5rem) );--_cy-carousel-pagination-dot-number: var(--cy-carousel-pagination-dot-number, 9);--_cy-carousel-pagination-button-size: var(--cy-carousel-pagination-button-size, 1.5rem);--_cy-carousel-pagination-dot-size: var(--cy-carousel-pagination-dot-size, 1rem);--_cy-carousel-pagination-dot-size-active: var( --cy-carousel-pagination-dot-size-active, var(--_cy-carousel-pagination-dot-size) );--_cy-carousel-pagination-dot-size-small: var(--cy-carousel-pagination-dot-size-small, .5rem);--_cy-carousel-pagination-dot-border-radius: var(--cy-carousel-pagination-dot-border-radius, 50%);--_cy-carousel-pagination-dot-color: var(--cy-carousel-pagination-dot-color, #cccccc);--_cy-carousel-pagination-dot-color-active: var(--cy-carousel-pagination-dot-color-active, transparent);--_cy-carousel-pagination-dot-border-color: var(--cy-carousel-pagination-dot-border-color, transparent);--_cy-carousel-pagination-dot-border-color-active: var(--cy-carousel-pagination-dot-border-color-active, transparent);--_cy-carousel-pagination-dot-border-size: var(--cy-carousel-pagination-dot-border-size, 1px);--_cy-carousel-pagination-transition: var(--cy-carousel-pagination-transition, background-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease);
265--_cy-carousel-controls-offset-inline-displacement: var(--cy-carousel-controls-offset-inline-displacement, 0px);--_cy-carousel-controls-offset-block-displacement: var(--cy-carousel-controls-offset-block-displacement, var(--_cy-carousel-controls-offset-inline-displacement));--_cy-carousel-controls-transition: var(--cy-carousel-controls-transition, opacity .2s ease);--_cy-carousel-counter: inline-flex;--_cy-carousel-counter-separator: var(--cy-carousel-counter-separator, "/");--_cy-carousel-counter-separator-spacing: var(--cy-carousel-counter-separator-spacing, .25rem);--_cy-carousel-counter-from-text-color: var( --cy-carousel-counter-from-text-color, var(--cy-base-color-text, black) );--_cy-carousel-counter-to-text-color: var(--cy-carousel-counter-to-text-color, var(--_cy-carousel-counter-from-text-color));--_cy-carousel-counter-separator-color: var(--cy-carousel-counter-separator-color, var(--_cy-carousel-counter-from-text-color));--_cy-carousel-counter-text-font-size: var( --cy-carousel-counter-text-font-size, var(--cy-base-text-font-size-base, .875rem) );--_cy-carousel-counter-font-weight: var( --cy-carousel-counter-font-weight, var(--cy-base-text-font-weight, normal) )}}@layer _component{:host{display:block;&[disable]{--_cy-carousel-item-display: initial}}.carousel{--_cy-carousel-inline-size: 100%;--_cy-carousel-padding-inline: 0%;--_cy-carousel-controls-offset-inline: 0%;position:relative;inline-size:var(--_cy-carousel-inline-size);padding-block:var(--_cy-carousel-padding-block);margin-inline:auto;&.fullscreen{position:fixed;z-index:var(--_cy-carousel-fullscreen-layer);inset:0;block-size:100dvb;@supports not (block-size: 100dvb){block-size:100vh}.carousel-container,.carousel-items{block-size:100%}}&.has-controls-position-on-hover{.carousel-fullscreen-button,.carousel-control-button{opacity:0;transition:var(--cy-if-user-prefers-reduced-motion, var(--_cy-carousel-controls-transition))}&:hover,&:focus-within{.carousel-fullscreen-button,.carousel-control-button{opacity:1}}}&.is-inactive{--_cy-carousel-padding-inline: 0%;.carousel-fullscreen-button,.carousel-controls,.carousel-counter,.carousel-pagination{display:none}slot{display:flex;flex-wrap:wrap;gap:var(--_cy-carousel-gap);inline-size:100%}}.carousel-control-button,.carousel-fullscreen-button,.carousel-control-outside-button{&[inert]{opacity:0}}}.carousel-container-wrapper{position:relative}.carousel-fullscreen-button{position:absolute;z-index:1;inset-inline-end:0;inset-block-start:0}.carousel-controls{.carousel-control-button{position:absolute;z-index:999999;inset-block-start:50%}.carousel-control-button:first-of-type{inset-inline-start:0;transform:translate3d(calc(var(--_cy-carousel-controls-offset-inline, -100%) + var(--_cy-carousel-controls-offset-inline-displacement)),-50%,0)}.carousel-control-button:last-of-type{inset-inline-end:0;transform:translate3d(calc(var(--_cy-carousel-controls-offset-inline, 100%) + var(--_cy-carousel-controls-offset-inline-displacement) * -1),-50%,0)}}.carousel-items{display:flex;align-items:center;gap:var(--_cy-carousel-gap);block-size:100%;overflow-x:scroll;margin:0;scroll-snap-type:x mandatory;list-style:none;overscroll-behavior:auto;scroll-margin:var(--_cy-carousel-scroll-margin);will-change:scroll-position;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none}}ul{margin:0;padding:0;list-style:none}::slotted(*){display:flex;align-items:var(--_cy-carousel-align-items);justify-content:center;flex-shrink:0;align-self:var(--_cy-carousel-align-self);box-sizing:border-box!important;inline-size:calc((100% / var(--_cy-carousel-items-per-view, 1)) - (var(--_cy-carousel-gap) * (var(--_cy-carousel-items-per-view, 1) - 1) / var(--_cy-carousel-items-per-view, 1)));min-block-size:1px;aspect-ratio:var(--_cy-carousel-item-aspect-ratio);padding:var(--_cy-carousel-items-padding);border-radius:var(--_cy-carousel-item-border-radius);background:var(--_cy-carousel-item-background-color);scroll-snap-align:var(--_cy-carousel-item-scroll-snap-align);backface-visibility:hidden;list-style-type:none}.carousel-pagination-container{position:relative;container-type:inline-size}.carousel-pagination-wrapper{display:flex;flex-direction:column;place-content:center;gap:var(--_cy-carousel-pagination-gap);min-block-size:var(--_cy-carousel-pagination-container-min-block-size);margin-block-start:var(--_cy-carousel-pagination-margin-block);@container (width >= 700px){flex-direction:row}}
265.carousel-pagination{display:flex;flex-wrap:nowrap;justify-content:start;justify-items:left;min-block-size:inherit;max-inline-size:calc(var(--_cy-carousel-pagination-button-size) * var(--_cy-carousel-pagination-dot-number));overflow:hidden;place-self:center}.carousel-pagination-item{--_cy-carousel-pagination-dot-inline-spacing: calc((var(--_cy-carousel-pagination-button-size) - var(--_cy-carousel-pagination-dot-size)) / 2);min-inline-size:var(--_cy-carousel-pagination-button-size);&.carousel-pagination-item--active{--_cy-carousel-pagination-dot-color: var(--_cy-carousel-pagination-dot-color-active);--_cy-carousel-pagination-dot-border-color: var(--_cy-carousel-pagination-dot-border-color-active);--_cy-carousel-pagination-dot-size: var(--_cy-carousel-pagination-dot-size-active)}&.carousel-pagination-item--small{--_cy-carousel-pagination-dot-size: var(--_cy-carousel-pagination-dot-size-small)}&.carousel-pagination-item--active~&.carousel-pagination-item--small{--_cy-carousel-pagination-dot-inset-inline: 0px var(--_cy-carousel-pagination-dot-inline-spacing)}&.carousel-pagination-item--small:has(~&.carousel-pagination-item--active){--_cy-carousel-pagination-dot-inset-inline: var(--_cy-carousel-pagination-dot-inline-spacing) 0}}.carousel-dot{position:relative;display:flex;align-items:center;justify-content:center;inline-size:var(--_cy-carousel-pagination-button-size);block-size:var(--_cy-carousel-pagination-button-size);margin:0;padding:0;border:none;background:none;cursor:pointer;outline-offset:-2px;&:before{content:"";position:absolute;inset-inline:var(--_cy-carousel-pagination-dot-inset-inline);display:block;box-sizing:border-box;inline-size:var(--_cy-carousel-pagination-dot-size);block-size:var(--_cy-carousel-pagination-dot-size);border:var(--_cy-carousel-pagination-dot-border-size) solid var(--_cy-carousel-pagination-dot-border-color);border-radius:var(--_cy-carousel-pagination-dot-border-radius);background-color:var(--_cy-carousel-pagination-dot-color);transition:var(--cy-if-user-prefers-reduced-motion, var(--_cy-carousel-pagination-transition));user-select:none;place-self:center}}.carousel-counter{display:var(--_cy-carousel-counter, inline-flex);padding:var(--_cy-carousel-counter-padding, .25rem .5rem);font-size:var(--_cy-carousel-counter-text-font-size);font-weight:var(--_cy-carousel-counter-font-weight);place-self:center;@container (width >= 700px){position:absolute;inset-inline-end:0}}.carousel-counter-from-text{color:var(--_cy-carousel-counter-from-text-color)}.carousel-counter-to-text{color:var(--_cy-carousel-counter-to-text-color);&:before{content:var(--_cy-carousel-counter-separator);margin-inline:var(--_cy-carousel-counter-separator-spacing);color:var(--_cy-carousel-counter-separator-color)}}}
266`,wh=rf;var af=P`:root{--_cy-group-gap-size: var(--cy-group-gap-size, var(--cy-base-space-base, 1rem));--_cy-group-gap-size-xxsmall: var(--cy-group-gap-size-xxsmall, var(--cy-base-space-xxsmall, .3rem));--_cy-group-gap-size-xsmall: var(--cy-group-gap-size-xsmall, var(--cy-base-space-xsmall, .5rem));--_cy-group-gap-size-small: var(--cy-group-gap-size-small, var(--cy-base-space-small, .75rem));--_cy-group-gap-size-large: var(--cy-group-gap-size-large, var(--cy-base-space-large, 1.5rem));--_cy-group-gap-size-xlarge: var(--cy-group-gap-size-xlarge, var(--cy-base-space-xlarge, 1.75rem));--_cy-group-gap-size-xxlarge: var(--cy-group-gap-size-xxlarge, var(--cy-base-space-xxlarge, 2rem))}[data-cy-group]{display:flex;flex-wrap:wrap;justify-items:start;align-items:center;gap:var(--_cy-group-gap-size)}[data-cy-group~="gap:xxsmall"]{--_cy-group-gap-size: var(--_cy-group-gap-size-xxsmall)}[data-cy-group~="gap:xsmall"]{--_cy-group-gap-size: var(--_cy-group-gap-size-xsmall)}[data-cy-group~="gap:small"]{--_cy-group-gap-size: var(--_cy-group-gap-size-small)}[data-cy-group~="gap:large"]{--_cy-group-gap-size: var(--_cy-group-gap-size-large)}[data-cy-group~="gap:xlarge"]{--_cy-group-gap-size: var(--_cy-group-gap-size-xlarge)}[data-cy-group~="gap:xxlarge"]{--_cy-group-gap-size: var(--_cy-group-gap-size-xxlarge)}[data-cy-group~="gap:none"]{--_cy-group-gap-size: 0}[data-cy-group~="inline:center"]{justify-content:center;justify-items:center}[data-cy-group~="inline:end"]{justify-content:end;justify-items:end}[data-cy-group~="inline:stretch"]{justify-content:stretch;justify-items:stretch;>*,>*::slotted(*){flex:1}}[data-cy-group~="block:start"]{align-items:start}[data-cy-group~="block:end"]{align-items:end}[data-cy-group~="direction:block"]{display:grid}
267`,xh=af;var Q=class Q extends ${constructor(){super(...arguments);this._carouselRef=Ve();
267this._containerRef=Ve();this._paginationRef=Ve();this._uuid=is();this._io=new IntersectionObserver(()=>{});this._ro=new ResizeObserver(()=>{});this.startAtView=1;this.itemsPerView=1;this.itemsPerMove=1;this.itemAlign="center";this.controlsPosition="inside";this.disable=!1;this._activeItem=1;this._activeView=1;this._initialized=!1;this._isFullscreen=!1;this._isScrolling=!1;this._currentContainerBreakpoint=0;this._defaultContainerProps={};this._active=!0}get _slottedChildren(){return this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})}_isActive(t){let r=t+1;return this._activeItem==r||this._activeItem<r&&this._activeItem+this.itemsPerView>=r}get _classNames(){return Z({carousel:!0,[`has-controls-position-${this.controlsPosition}`]:!!this.controlsPosition,"has-controls-position-on-hover":this.controlsOnHover,"is-active":this._active,"is-inactive":!this._active,"is-observed":Object.entries(this.breakpoints??{})?.length})}_handleKeydown(t){let{key:r}=t,a=this.shadowRoot?.activeElement&&this.shadowRoot?.activeElement.classList.contains("carousel-dot");(r==="ArrowUp"||r==="ArrowDown"||r==="ArrowLeft"||r==="ArrowRight")&&(t.preventDefault(),t.stopPropagation()),r==="ArrowLeft"?this._activeItem>1&&(this._activeItem-=this.itemsPerMove??this.itemsPerView??1,this._goToItem(this._activeItem),a?this.shadowRoot?.activeElement?.parentElement?.previousElementSibling?.querySelector(".carousel-dot")?.focus():this._containerRef.value?.focus()):r==="ArrowRight"&&this._activeItem<=this._itemsNum-this.itemsPerView&&(this._activeItem+=this.itemsPerMove??this.itemsPerView??1,setTimeout(()=>{this._goToItem(this._activeItem)},0),a?this.shadowRoot?.activeElement?.parentElement?.nextElementSibling?.querySelector(".carousel-dot")?.focus():this._containerRef.value?.focus())}_getViewForItem(t){return Array(this._views).fill(1).map((a,n)=>this.itemsPerMove*n+1).map(a=>Array(this.itemsPerView).fill(1).map((n,o)=>a+o)).findIndex(a=>a[0]===t)+1}_goToItem(t,r=!1){t<0||t>this._itemsNum||(this._items[t-1]?.scrollIntoView({behavior:r||this.reduceMotion?"instant":"smooth",block:"nearest",inline:"start"}),this._paginationRef?.value&&Array.from(this._paginationRef.value?.querySelectorAll(".carousel-dot")??[])[t-1]?.scrollIntoView({behavior:r||this.reduceMotion?"instant":"smooth",block:"nearest",inline:t===1?"start":"center"}),this._initialized||setTimeout(()=>{this._initialized=!0},0))}_handlePrevButtonClick(){this._activeItem-=this.itemsPerMove??this.itemsPerView??1,this._goToItem(this._activeItem)}_handleNextButtonClick(){this._activeItem+=this.itemsPerMove??this.itemsPerView??1,this._goToItem(this._activeItem)}_handleScrollSnapChange(){this._isScrolling=!1,this.emit(this.scrollEvent)}_handleScroll(){this._isScrolling=!0,this.emit(this.scrollEndEvent)}_handleScrollEnd(){let t=this._items?.findIndex(r=>r?.classList.contains("is-visible")??0)+1;this.itemsPerMove===1||this.itemsPerMove/this.itemsPerView===1?t<=this._itemsNum-this.itemsPerMove?this._activeItem=t:this.itemsPerMove%2===1?this.itemsPerMove===1||this.itemsPerMove===3?this._activeItem=10:this.itemsPerMove===5?this._activeItem=6:this.itemsPerMove===7?this._activeItem=8:this._activeItem=Math.max(t+1,this._itemsNum-1):this.itemsPerMove===2||this.itemsPerMove===4?this._activeItem=9:this.itemsPerMove===6?this._activeItem=7:this.itemsPerMove===68?this._activeItem=79:this._activeItem=Math.max(t+1,this._itemsNum-1):t%this.itemsPerMove?this._activeItem=t:t===this._itemsNum-this.itemsPerMove&&(this._activeItem=Math.min(t+1,this._itemsNum)),this._isScrolling=!1,this.emit(this.snapChangeEvent)}_toggleFullscreen(){this._isFullscreen=!this._isFullscreen,this._carouselRef?.value?.classList.toggle("fullscreen")}_renderControls(){return this.controlsPosition==="inside"?E`
268                <div class="carousel-controls">
269                    <cy-button
270                        class="carousel-control-button"
271                        appearance="primary"
272                        icon=${"semantic-back"}
273                        iconOnly
274                        aria-controls="carousel-${this._uuid}-items"
275                        ?inert=${this._activeItem===1}
276                        @click=${this._handlePrevButtonClick}
277                        part="carousel-control-button-prev"
278                    >
279                        ${this.i18n?.buttonPrevLabel??"Previous"}
280                    </cy-button>
281                    <cy-button
282                        class="carousel-control-button"
283                        appearance="primary"
284                        icon=${"semantic-forward"}
285                        iconOnly
286                        aria-controls="carousel-${this._uuid}-items"
287                        ?inert=${this._activeItem>
287this._itemsNum-this.itemsPerView}
288                        @click=${this._handleNextButtonClick}
289                        part="carousel-control-button-next"
290                    >
291                        ${this.i18n?.buttonNextLabel??"Next"}
292                    </cy-button>
293                </div>
294            `:_}_renderOutsideControls(t){return this.controlsPosition==="outside"?E`
295                <cy-button
296                    class="carousel-control-outside-button"
297                    appearance="ghost"
298                    icon=${"semantic-back"}
299                    iconOnly
300                    part="carousel-control-outside-button-prev"
301                    aria-controls="carousel-${this._uuid}-items"
302                    ?inert=${this._activeItem===1}
303                    @click=${this._handlePrevButtonClick}
304                >
305                    ${this.i18n?.buttonPrevLabel??"Previous"}
306                </cy-button>
307                ${t}
308                <cy-button
309                    class="carousel-control-outside-button"
310                    appearance="ghost"
311                    icon=${"semantic-forward"}
312                    iconOnly
313                    part="carousel-control-outside-button-next"
314                    aria-controls="carousel-${this._uuid}-items"
315                    ?inert=${this._activeItem>this._itemsNum-this.itemsPerView}
316                    @click=${this._handleNextButtonClick}
317                >
318                    ${this.i18n?.buttonNextLabel??"Next"}
319                </cy-button>
320            `:_}_renderFullscreenToggle(){return this.fullscreen?E`
321                  <cy-button
322                      class="carousel-fullscreen-button"
323                      appearance="primary"
324                      icon=${this._isFullscreen?"semantic-exit-fullscreen":"semantic-enter-fullscreen"}
325                      iconOnly
326                      @click=${this._toggleFullscreen}
327                      part=${M(this._isFullscreen?"carousel-fullscreen-button-active":"carousel-fullscreen-button")}
328                  >
329                      ${this._isFullscreen?this.i18n?.fullscreenExitLabel??"Enter fullscreen":this.i18n?.fullscreenEnterLabel??"Exit fullscreen"}
330                  </cy-button>
331              `:_}_renderItems(){this._items?.forEach((t,r)=>{let a=r+1,n=a===1||a%this.itemsPerMove===1||this.itemsPerMove===1?"--_cy-carousel-item-scroll-snap-align: start;":void 0;t.setAttribute("id",`carousel-${this._uuid}-item-${a}`),t.setAttribute("active",String(this._isActive(a))),t.setAttribute("aria-label",this.i18n?.slideLabel(String(a),String(this._itemsNum))),t.setAttribute("role",this.pagination?"tabpanel":"group"),this._isActive(a)||t.setAttribute("hidden",String(this._isActive(a))),n&&t.setAttribute("style",n)})}_renderDots(){return this._itemsNum?Array(this._views).fill(0,0)?.map((t,r)=>{let a=r+1,n=a===1?1:a*(this.itemsPerMove??this.itemsPerView)-((this.itemsPerMove??this.itemsPerView)-1),o=Array(this.itemsPerMove??this.itemsPerView).fill(0,0).map((g,v)=>`carousel-${this._uuid}-item-${n+v}`).join(" "),s=(g=>{let v=(Q._CAROUSEL_MAX_DOT_NUMBER-1)/2;return g<=Q._CAROUSEL_MAX_DOT_NUMBER-v?n===Q._CAROUSEL_MAX_DOT_NUMBER||n===Q._CAROUSEL_MAX_DOT_NUMBER+1:g>this._itemsNum-Q._CAROUSEL_MAX_DOT_NUMBER+v?n===this._itemsNum-Q._CAROUSEL_MAX_DOT_NUMBER+1||n===this._itemsNum-Q._CAROUSEL_MAX_DOT_NUMBER:g-v===n||g+v===n||g-v-1===n||g+v+1===n})(this._activeItem),l=Z({"carousel-dot":!0,"is-small":s}),d=Z({"carousel-pagination-item":!0,"carousel-pagination-item--active":this._activeItem===n,"carousel-pagination-item--small":s}),y=`${this._activeItem===n?"carousel-pagination-dot-active":"carousel-pagination-dot"} ${s?"carousel-pagination-dot-small":""}`.trim(),p=`${this._activeItem===n?"carousel-pagination-item-active":"carousel-pagination-item"} ${s?"carousel-pagination-item-small":""}`.trim();return E`
332                    <li
333                        class=${d}
334                        role="presentation"
335                        part=${p}
336                    >
337                        <button
338                            class=${l}
339                            aria-controls=${o}
340                            aria-label=${this.i18n?.paginationGoToViewX(String(r+1))}
341                            aria-selected=${M(this._activeItem===n?"true":void 0)}
342                            role="tab"
343                            type="button"
344                            part=${M(y)}
345                            tabindex=${M(this._activeItem===n?void 0:-1)}
346                            @click=${()=>{this._activeItem=n,this._goToItem(this._activeItem)}}
347                        ></button>
348                    </li>
349                `}):_}_renderPaginationCounter(){if(!this.counter)return _;this._activeView=this._getViewForItem(this._activeItem);let t=this._activeView,r=this._views;return E`
350            <div
351                class="carousel-counter"
352                aria-hidden="true"
353                part="carousel-counter"
354            >
355                <span class="carousel-counter-from-text">${t}</span>
356                <span class="carousel-counter-to-text">${r}</span>
357            </div>
358        `}_renderPagination(){let t=this.pagination?E`
359                  <ul
360                      ${Te(this._paginationRef)}
361                      id="carousel-${this._uuid}-pagination"
362                      class="carousel-pagination"
363                      aria-label=${this.i18n?.paginationContainerLabel??"Paginate items"}
364                      role="tablist"
365                      part="carousel-pagination"
366                      @keydown=${this._handleKeydown}
367                  >
368                      ${this._renderDots()}
369                  </ul>
370              `:_,r=this._renderPaginationCounter(),a=this.controlsPosition==="outside"?E`
371                      <div data-cy-group="gap:small inline:center">${this._renderOutsideControls(t)}</div>
372                  `:t;return this.pagination||this.counter?E`
373                <div class="carousel-pagination-container">
374                    <div class="carousel-pagination-wrapper">${a} ${r}</div>
375                </div>
376            `:_}_renderContainer(){return E`
377            <div
378                ${Te(this._containerRef)}
379                id="carousel-${this._uuid}-items"
380                class="carousel-items"
381                role="presentation"
382                tabindex="0"
383                part="carousel-items"
384                @keydown=${this._initialized?this._handleKeydown:_}
385                @scroll=${this._initialized?this._handleScroll:_}
386                @wheel=${this._initialized?this._handleScroll:_}
387                @scrollend=${this._initialized?this.reduceMotion?()=>setTimeout(()=>this._handleScrollEnd(),1):this._handleScrollEnd:_}
388                @scrollsnapchange=${this._initialized?this._handleScrollSnapChange:_}
389            >
390                <slot @slotchange=${this._renderItems}></slot>
391            </div>
392        `}_setupViews(){this._itemsNum=this._items?.length??0;let t=this._itemsNum-this.itemsPerView;this.itemsPerMove>this.itemsPerView&&(this.itemsPerMove=this.itemsPerView),this._views=this.itemsPerMove===this.itemsPerView?Math.ceil(this._itemsNum/this.itemsPerView):Math.ceil(t/this.itemsPerMove)+1,this.startAtView>this._views&&(this.startAtView=1),this._activeItem=this.itemsPerView===1||this.startAtView===1?this.startAtView??1:this.startAtView*this.itemsPerView-(this.itemsPerView-this.itemsPerMove)}_initView(){this.startAtView&&!this._initialized&&this._goToItem(this._activeItem,!0)}firstUpdated(t){if(super.firstUpdated(t),this.reduceMotion=window.matchMedia("(prefers-reduced-motion: reduce)")?.matches,this._active=!this.disable,this._defaultContainerProps=Object.seal({itemAlign:this.itemAlign,itemsPerView:this.itemsPerView,startAtView:this.startAtView,fullscreen:this.fullscreen,disable:this.disable}),this._items=this._slottedChildren,this._active&&(this._setupViews(),this._io=new IntersectionObserver(r=>r.forEach(a=>{a.isIntersecting?(a.target.classList.add("is-visible"),a.target.removeAttribute("inert")):(a.target.classList.remove("is-visible"),a.target.setAttribute("inert",""))}),{rootMargin:"0px",threshold:.95})),this.breakpoints){let r=o=>{let s=Object.entries(Object.assign({},this._defaultContainerProps,o));if(s.every(([y,p])=>this[y]===p))return;s.filter(([y,p])=>this[y]!==p).forEach(([y,p])=>{this[y]=p,y==="disable"&&this._active===p&&(this._active=!p)}),(this._items?.length??0)<=this.itemsPerView?this._active=!1:this._setupViews()},n=Object.entries(this.breakpoints).map(([o,s])=>[parseInt(o,10),s]).sort(([o],[s])=>s-o);this._ro=new ResizeObserver(o=>{let[s,l]=n?.filter(([d])=>d!==this._currentContainerBreakpoint&&d<=o[0].contentRect.width)?.find(([d])=>d<=o[0].contentRect.width)??[];if((!s||!l)&&this._currentContainerBreakpoint===0){r(this._defaultContainerProps);return}if(this._currentContainerBreakpoint<s){this._currentContainerBreakpoint=s,r(l);return}this._currentContainerBreakpoint?this._currentContainerBreakpoint=0:(this._currentContainerBreakpoint=s,r(l))}),this._ro.observe(this)}this._active&&(this._items?.forEach(r=>this._io.observe(r)),this._initialized||this._initView())}connectedCallback(){super.connectedCallback(),Q._CAROUSEL_MAX_DOT_NUMBER=Q._CAROUSEL_MAX_DOT_NUMBER%2?Q._CAROUSEL_MAX_DOT_NUMBER:Q._CAROUSEL_MAX_DOT_NUMBER+1}disconnectedCallback(){super.disconnectedCallback(),this._items?.forEach(t=>this._io?.unobserve(t)),this._ro.unobserve(this)}render(){return E`
393            <style>
394                :host {
395                    --_cy-carousel-items-per-view: ${this.itemsPerVie
395w};
396                    --_cy-carousel-item-display: ${this.disable?"initial":"grid"};
397                    --cy-carousel-align-self: ${this.itemAlign};
398                    --cy-carousel-align-items: ${this.itemAlign};
399                    --cy-carousel-pagination-dot-number: ${Q._CAROUSEL_MAX_DOT_NUMBER};
400                }
401            </style>
402            <div
403                ${Te(this._carouselRef)}
404                id="carousel-${this._uuid}"
405                class=${this._classNames}
406                aria-label=${this.i18n?.containerLabel??"My carousel"}
407                aria-roledescription="carousel"
408                role=${this.pagination?"group":"region"}
409            >
410                ${this._initialized?this._renderFullscreenToggle():_}
411                <div class="carousel-container-wrapper">
412                    ${this._initialized?this._renderControls():_}
413                    <div
414                        id="carousel-${this._uuid}-container"
415                        class="carousel-container"
416                        aria-atomic="true"
417                        aria-busy=${this._isScrolling?"true":"false"}
418                        aria-live="polite"
419                        part="carousel-container"
420                    >
421                        ${this._renderContainer()}
422                    </div>
423                </div>
424                ${this._initialized?this._renderPagination():_}
425            </div>
426        `}};Q.styles=[...$.styles,wh,xh],Q.dependencies={"cy-button":oe,"cy-icon":xe},Q._CAROUSEL_MAX_DOT_NUMBER=9,u([m({type:Number})],Q.prototype,"startAtView",2),u([m({type:Number})],Q.prototype,"itemsPerView",2),u([m({type:Number})],Q.prototype,"itemsPerMove",2),u([m({type:String})],Q.prototype,"itemAlign",2),u([m({type:Boolean,reflect:!0})],Q.prototype,"controlsOnHover",2),u([m({type:String})],Q.prototype,"controlsPosition",2),u([m({type:Boolean,reflect:!0})],Q.prototype,"counter",2),u([m({type:Boolean,reflect:!0})],Q.prototype,"fullscreen",2),u([m({type:Boolean,reflect:!0})],Q.prototype,"pagination",2),u([m({type:Boolean,reflect:!0})],Q.prototype,"reduceMotion",2),u([m({type:Boolean,reflect:!0})],Q.prototype,"disable",2),u([m({type:Object})],Q.prototype,"breakpoints",2),u([m({type:Object,reflect:!0})],Q.prototype,"i18n",2),u([pe({eventName:"cy-scroll"})],Q.prototype,"scrollEvent",2),u([pe({eventName:"cy-scroll-end"})],Q.prototype,"scrollEndEvent",2),u([pe({eventName:"cy-snap-change"})],Q.prototype,"snapChangeEvent",2),u([G()],Q.prototype,"_activeItem",2),u([G()],Q.prototype,"_activeView",2),u([G()],Q.prototype,"_initialized",2),u([G()],Q.prototype,"_itemsNum",2),u([G()],Q.prototype,"_views",2),u([G()],Q.prototype,"_items",2),u([G()],Q.prototype,"_isFullscreen",2),u([G()],Q.prototype,"_isScrolling",2),u([G()],Q.prototype,"_currentContainerBreakpoint",2),u([G()],Q.prototype,"_defaultContainerProps",2),u([G()],Q.prototype,"_active",2);var wn=Q;var nf=P`@layer _settings,_component,_variants;@layer _setting{:root{--_cy-carousel-item-align-items: var(--cy-carousel-item-align-items, var(--_cy-carousel-align-items));--_cy-carousel-item-align-self: var(--cy-carousel-item-align-self, var(--_cy-carousel-align-self))}}@layer _component{:host{contain:content;scroll-snap-align:center;scroll-snap-stop:always;@supports (container-type: scroll-state) and (interactivity: inert){container-type:scroll-state;>*{interactivity:inert;@container scroll-state(snapped: inline){&,>*{interactivity:auto}}}}}.carousel-item{display:flex;align-items:var(--_cy-carousel-item-align-items);align-self:var(--_cy-carousel-item-align-self);inline-size:100%;container-type:scroll-state}::slotted(*){inline-size:100%}::slotted(cy-card){display:var(--_cy-carousel-item-display)}}
427`,Ah=nf;var gr=class extends ${render(){return Qe`
428            <div
429                class="carousel-item"
430                part="carousel-item"
431                aria-roledescription="item"
432            >
433                <slot></slot>
434            </div>
435        `}};gr.styles=[...$.styles,Ah],gr.dependencies={};customElements.get("cy-carousel")||customElements.define("cy-carousel",wn);customElements.get("cy-carousel-item")||customElements.define("cy-carousel-item",gr);var yr,ea,Jc=class{constructor(e){ce(this,yr);ce(this,ea,new Set);D(this,yr,e)}get current(){return B(this,yr)}
435set current(e){B(this,yr)!=e&&(D(this,yr,e),B(this,ea).forEach(t=>t(e)))}on(e){return B(this,ea).add(e),()=>B(this,ea).delete(e)}};yr=new WeakMap,ea=new WeakMap;var Ph=i=>new Jc(i),ed=Symbol.for("atomico.hooks");globalThis[ed]=globalThis[ed]||{};var ta=globalThis[ed],of=Symbol.for("Atomico.suspense"),Oh=Symbol.for("Atomico.effect"),sf=Symbol.for("Atomico.layoutEffect"),zh=Symbol.for("Atomico.insertionEffect"),ra=(i,e,t)=>{let{i:r,hooks:a}=ta.c,n=a[r]=a[r]||{};return n.value=i(n.value),n.effect=e,n.tag=t,ta.c.i++,a[r].value},Nh=i=>ra((e=Ph(i))=>e),ds=()=>ra((i=Ph(ta.c.host))=>i),Uh=()=>ta.c.update,lf=(i,e,t=0)=>{let r={},a=!1,n=()=>a,o=(s,l)=>{for(let d in r){let y=r[d];y.effect&&y.tag===s&&(y.value=y.effect(y.value,l))}};return{load:s=>{ta.c={host:e,hooks:r,update:i,i:0,id:t};let l;try{a=!1,l=s()}catch(d){if(d!==of)throw d;a=!0}finally{ta.c=null}return l},cleanEffects:s=>(o(zh,s),()=>(o(sf,s),()=>{o(Oh,s)})),isSuspense:n}},Cn=Symbol.for;function Hh(i,e){let t=i.length;if(t!==e.length)return!1;for(let r=0;r<t;r++){let a=i[r],n=e[r];if(a!==n)return!1}return!0}var Zt=i=>typeof i=="function",xn=i=>typeof i=="object",{isArray:cf}=Array,td=(i,e)=>(e?i instanceof HTMLStyleElement:!0)&&"hydrate"in(i?.dataset||{});function Bh(i,e){let t,r=a=>{let{length:n}=a;for(let o=0;o<n;o++){let s=a[o];if(s&&Array.isArray(s))r(s);else{let l=typeof s;if(s==null||l==="function"||l==="boolean")continue;l==="string"||l==="number"?(t==null&&(t=""),t+=s):(t!=null&&(e(t),t=null),e(s))}}};r(i),t!=null&&e(t)}var Fh=(i,e,t)=>(i.addEventListener(e,t),()=>i.removeEventListener(e,t)),as=class{constructor(e,t,r){this.message=t,this.target=e,this.value=r}},ns=class extends as{},id=class extends as{},os="Custom",df=null,uf={true:1,"":1,1:1};function pf(i,e,t,r,a){let{type:n,reflect:o,event:s,value:l,attr:d=hf(e)}=t?.name!=os&&xn(t)&&t!=df?t:{type:t},y=n?.name===os&&n.map,p=l!=null?n==Function||!Zt(l)?()=>l:l:null;Object.defineProperty(i,e,{configurable:!0,set(g){let v=this[e];p&&n!=Boolean&&g==null&&(g=p());let{error:f,value:b}=(y?gf:yf)(n,g);
435if(f&&b!=null)throw new ns(this,`The value defined for prop '${e}' must be of type '${n.name}'`,b);v!=b&&(this._props[e]=b??void 0,this.update(),s&&Vh(this,s),this.updated.then(()=>{o&&(this._ignoreAttr=d,mf(this,n,d,this[e]),this._ignoreAttr=null)}))},get(){return this._props[e]}}),p&&(a[e]=p()),r[d]={prop:e,type:n}}var Vh=(i,{type:e,base:t=CustomEvent,...r})=>i.dispatchEvent(new t(e,r)),hf=i=>i.replace(/([A-Z])/g,"-$1").toLowerCase(),mf=(i,e,t,r)=>r==null||e==Boolean&&!r?i.removeAttribute(t):i.setAttribute(t,e?.name===os&&e?.serialize?e?.serialize(r):xn(r)?JSON.stringify(r):e==Boolean?"":r),vf=(i,e)=>i==Boolean?!!uf[e]:i==Number?Number(e):i==String?e:i==Array||i==Object?JSON.parse(e):i.name==os?e:new i(e),gf=({map:i},e)=>{try{return{value:i(e),error:!1}}catch{return{value:e,error:!0}}},yf=(i,e)=>i==null||e==null?{value:e,error:!1}:i!=String&&e===""?{value:void 0,error:!1}:i==Object||i==Array||i==Symbol?{value:e,error:{}.toString.call(e)!==`[object ${i.name}]`}:e instanceof i?{value:e,error:i==Number&&Number.isNaN(e.valueOf())}:i==String||i==Number||i==Boolean?{value:e,error:i==Number?typeof e!="number"?!0:Number.isNaN(e):i==String?typeof e!="string":typeof e!="boolean"}:{value:e,error:!0},ff=0,bf=i=>(i?.dataset||{})?.hydrate||""||"c"+ff++,fr=(i,e=HTMLElement)=>{let t={},r={},a="prototype"in e&&e.prototype instanceof Element,n=a?e:"base"in e?e.base:HTMLElement,{props:o,styles:s}=a?i:e;class l extends n{constructor(){super(),this._setup(),this._render=()=>i({...this._props});for(let y in r)this[y]=r[y]}static get styles(){return[super.styles,s]}async _setup(){if(this._props)return;this._props={};let y,p;this.mounted=new Promise(x=>this.mount=()=>{x(),y!=this.parentNode&&(p!=y?this.unmounted.then(this.update):this.update()),y=this.parentNode}),this.unmounted=new Promise(x=>this.unmount=()=>{x(),(y!=this.parentNode||!this.isConnected)&&(g.cleanEffects(!0)()(),p=this.parentNode,y=null)}),this.symbolId=this.symbolId||Symbol(),this.symbolIdParent=Symbol();let g=lf(()=>this.update(),this,bf(this)),v,f=!0,b=td(this);this.update=()=>(v||(v=!0,this.updated=(this.updated||this.mounted).then(()=>{try{let x=g.load(this._render),S=g.cleanEffects();return x&&x.render(this,this.symbolId,b),v=!1,f&&!g.isSuspense()&&(f=!1,!b&&_f(this)),S()}finally{v=!1}}).then(x=>{x&&x()})),this.updated),this.update()}connectedCallback(){this.mount(),super.connectedCallback&&super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.unmount()}attributeChangedCallback(y,p,g){if(t[y]){if(y===this._ignoreAttr||p===g)return;let{prop:v,type:f}=t[y];try{this[v]=vf(f,g)}catch{throw new id(this,`The value defined as attr '${y}' cannot be parsed by type '${f.name}'`,g)}}else super.attributeChangedCallback(y,p,g)}static get props(){return{...super.props,...o}}static get observedAttributes(){let y=super.observedAttributes||[];for(let p in o)pf(this.prototype,p,o[p],t,r);return Object.keys(t).concat(y)}}return l};function _f(i){let{styles:e}=i.constructor,{shadowRoot:t}=i;if(t&&e.length){let r=[];Bh(e,a=>{a&&(a instanceof Element?t.appendChild(a.cloneNode(!0)):r.push(a))}),r.length&&(t.adoptedStyleSheets=r)}}var Wh=i=>(e,t)=>{ra(([r,a]=[])=>((a||!a)&&(a&&Hh(a,t)?r=r||!0:(Zt(r)&&r(),r=null)),[r,t]),([r,a],n)=>n?(Zt(r)&&r(),[]):[r||e(),a],i)},Tn=Wh(Oh),Ef=Wh(zh),ss=class extends Array{constructor(e,t){let r=!0,a=n=>{try{t(n,this,r)}finally{r=!1}};super(void 0,a,t),a(e)}},nd=i=>{let e=Uh();return ra((t=new ss(i,(r,a,n)=>{r=Zt(r)?r(a[0]):r,r!==a[0]&&(a[0]=r,n||e())}))=>t)},Dt=(i,e)=>{let[t]=ra(([r,a,n=0]=[])=>((!a||a&&!Hh(a,e))&&(r=i()),[r,e,n]));return t},od=i=>{let{current:e}=ds();if(!(i in e))throw new ns(e,`For useProp("${i}"), the prop does not exist on the host.`,i);return ra((t=new ss(e[i],(r,a)=>{r=Zt(r)?r(e[i]):r,e[i]=r}))=>(t[0]=e[i],t))},Xt=(i,e={})=>{let t=ds();return t[i]||(t[i]=(r=e.detail)=>Vh(t.current,{type:i,...e,detail:r})),t[i]},rd=Cn("atomico/options");globalThis[rd]=globalThis[rd]||{sheet:!!document.adoptedStyleSheets};var us=globalThis[rd],kf=new Promise(i=>{us.ssr||(document.readyState==="loading"?Fh(document,"DOMContentLoaded",i):i())}),wf={checked:1,value:1,selected:1},xf={list:1,type:1,size:1,form:1,width:1,height:1,src:1,href:1,slot:1},Af={shadowDom:1,staticNode:1,cloneNode:1,children:1,key:1},rs={},ad=[],Sn=class extends Text{},Tf=Cn("atomico/id"),An=Cn("atomico/type"),Kc=Cn("atomico/ref"),jh=Cn("atomico/vnode"),qh=()=>{};function Sf(i,e,t){return Kh(this,i,e,t)}var Gh=(i,e,...t)=>{let r=e||rs,{children:a}=r;if(a=a??(t.length?t:ad),i===qh)return a;
435let n=i?i instanceof Node?1:i.prototype instanceof HTMLElement&&2:0;if(n===!1&&i instanceof Function)return i(a!=ad?{children:a,...r}:r);let o=us.render||Sf;return{[An]:jh,type:i,props:r,children:a,key:r.key,shadow:r.shadowDom,static:r.staticNode,raw:n,is:r.is,clone:r.cloneNode,render:o}};function Kh(i,e,t=Tf,r,a){let n;if(e&&e[t]&&e[t].vnode==i||i[An]!=jh)return e;(i||!e)&&(a=a||i.type=="svg",n=i.type!="host"&&(i.raw==1?(e&&i.clone?e[Kc]:e)!=i.type:i.raw==2?!(e instanceof i.type):e?e[Kc]||e.localName!=i.type:!e),n&&i.type!=null&&(i.raw==1&&i.clone?(r=!0,e=i.type.cloneNode(!0),e[Kc]=i.type):e=i.raw==1?i.type:i.raw==2?new i.type:a?document.createElementNS("http://www.w3.org/2000/svg",i.type):document.createElement(i.type,i.is?{is:i.is}:void 0)));let o=e[t]?e[t]:rs,{vnode:s=rs,cycle:l=0}=o,{fragment:d,handlers:y}=o,{children:p=ad,props:g=rs}=s;if(y=n?{}:y||{},i.static&&!n)return e;if(i.shadow&&!e.shadowRoot&&e.attachShadow({mode:"open",...i.shadow}),i.props!=g&&Mf(e,g,i.props,y,a),i.children!==p){let v=i.shadow?e.shadowRoot:e;d=If(i.children,d,v,t,!l&&r,a&&i.type=="foreignObject"?!1:a)}return e[t]={vnode:i,handlers:y,fragment:d,cycle:l+1},e}function Cf(i,e){let t=new Sn(""),r=new Sn(""),a;if(i[e?"prepend":"append"](t),e){let{lastElementChild:n}=i;for(;n;){let{previousElementSibling:o}=n;if(td(n,!0)&&!td(o,!0)){a=n;break}n=o}}return a?a.before(r):i.append(r),{markStart:t,markEnd:r}}function If(i,e,t,r,a,n){i=i==null?null:cf(i)?i:[i];let o=e||Cf(t,a),{markStart:s,markEnd:l,keyes:d}=o,y,p=d&&new Set,g=s;if(i&&Bh(i,v=>{if(typeof v=="object"&&!v[An])return;let f=v[An]&&v.key,b=d&&f!=null&&d.get(f);g!=l&&g===b?p.delete(g):g=g==l?l:g.nextSibling;let x=d?b:g,S=x;if(v[An])S=Kh(v,x,r,a,n);else{let I=v+"";!(S instanceof Text)||S instanceof Sn?S=new Text(I):S.data!=I&&(S.data=I)}S!=g&&(d&&p.delete(S),!x||d?(t.insertBefore(S,g),d&&g!=l&&p.add(g)):x==l?t.insertBefore(S,l):(t.replaceChild(S,x),g=S)),f!=null&&(y=y||new Map,y.set(f,S))}),g=g==l?l:g.nextSibling,e&&g!=l)for(;g!=l;){let v=g;g=g.nextSibling,v.remove()}return p&&p.forEach(v=>v.remove()),o.keyes=y,o}function Mf(i,e,t,r,a){for(let n in e)!(n in t)&&Th(i,n,e[n],null,a,r);for(let n in t)Th(i,n,e[n],t[n],a,r)}function Th(i,e,t,r,a,n){if(e=e=="class"&&!a?"className":e,t=t??null,r=r??null,e in i&&wf[e]&&(t=i[e]),!(r===t||Af[e]||e[0]=="_"))if(i.localName==="slot"&&e==="assignNode"&&"assign"in i)i.assign(r);else if(e[0]=="o"&&e[1]=="n"&&(Zt(r)||Zt(t)))Lf(i,e.slice(2),r,n);else if(e=="ref")r&&(Zt(r)?r(i):r.current=i);else if(e=="style"){let{style:o}=i;t=t||"",r=r||"";let s=xn(t),l=xn(r);if(s)for(let d in t)if(l)!(d in r)&&Sh(o,d,null);else break;if(l)for(let d in r){let y=r[d];s&&t[d]===y||Sh(o,d,y)}else o.cssText=r}else{let o=e[0]=="$"?e.slice(1):e;o===e&&(!a&&!xf[e]&&e in i||Zt(r)||Zt(t))?i[e]=r??"":r==null?i.removeAttribute(o):i.setAttribute(o,xn(r)?JSON.stringify(r):r)}}function Lf(i,e,t,r){if(r.handleEvent||(r.handleEvent=a=>r[a.type].call(i,a)),t){if(!r[e]){let a=t.capture||t.once||t.passive?Object.assign({},t):null;i.addEventListener(e,r,a)}r[e]=t}else r[e]&&(i.removeEventListener(e,r),delete r[e])}function Sh(i,e,t){let r="setProperty";t==null&&(r="removeProperty",t=null),~e.indexOf("-")?i[r](e,t):i[e]=t}var Rf=Gh("host",{style:"display: contents"}),Yh="value",$f=(i,e)=>{let t=ds(),r=Nh();Ef(()=>Fh(t.current,"ConnectContext",a=>{a.composedPath().at(0)!==a.currentTarget&&i===a.detail.id&&(a.stopPropagation(),a.detail.connect(r))}),[i]),r.current=e},sd=i=>{let e=Xt("ConnectContext",{bubbles:!0,composed:!0}),[t,r]=nd(()=>{if(us.ssr)return;let n;return e({id:i,connect(o){n=o}}),n}),a=Uh();return Tn(()=>{kf.then(()=>e({id:i,connect:r}))},[i]),Tn(()=>{if(t)return t.on(a)},[t]),t?.current||i[Yh]},Qh=i=>{let e=fr(({value:t})=>($f(e,t),Rf),{props:{value:{type:Object,value:()=>i}}});return e[Yh]=i,e};Qh({dispatch(i,e){}});var Ch={};function ps(i,...e){let t=(i.raw||i).reduce((r,a,n)=>r+a+(e[n]||""),"");return Ch[t]=Ch[t]||Df(t)}function Df(i){if(us.sheet){let e=new CSSStyleSheet;return e.replaceSync(i),e}else{let e=document.createElement("style");return e.textContent=i,e}}var X=(i,e,t)=>(e==null?e={key:t}:e.key=t,Gh(i,e)),Ai=X,ld=ps`*,*:before,*:after{box-sizing:border-box}button{padding:0;touch-action:manipulation;cursor:pointer;user-select:none}`,cd=ps`.vh{position:absolute;transform:scale(0)}`;function dd(){let i=new Date;return new Xe(i.getFullYear(),i.getMonth()+1,i.getDate())}var Pf=864e5;function Of(i){let e=wt(i);e.setDate(e.getUTCDate()+3-(e.getUTCDay()+6)%7);let t=new Date(e.getUTCFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/Pf-3+(t.getUTCDay()+6)%7)/7)}function ud(i,e=0){let t=wt(i),r=t.getUTCDay(),a=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-a),Xe.from(t)}function Zh(i,e=0){return ud(i,e).add({days:6})}function Xh(i){return Xe.from(new Date(Date.UTC(i.year,i.month,0)))}function hs(i,e,t){return e&&Xe.compare(i,e)<0?e:t&&Xe.compare(i,t)>0?t:i}var zf={days:1};function Nf(i,e=0){let t=ud(i.toPlainDate(),e),r=Zh(Xh(i),e),a=[];for(;Xe.compare(t,r)<0;){let n=[];for(let o=0;o<7;o++)n.push(t),t=t.add(zf);a.push(n)}return a}function wt(i){return new Date(Date.UTC(i.year,i.month-1,i.day??1))}var Uf=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[0-1])$/,Yc=(i,e)=>i.toString().padStart(e,"0"),Xe=class i{constructor(e,t,r){this.year=e,this.month=t,this.day=r}add(e){let t=wt(this);if("days"in e)return t.setUTCDate(this.day+e.days),i.from(t);let{year:r,month:a}=this;"months"in e?(a=this.month+e.months,t.setUTCMonth(a-1)):(r=this.year+e.years,t.setUTCFullYear(r));let n=i.from(wt({year:r,month:a,day:1}));return hs(i.from(t),n,Xh(n))}toString(){return`${Yc(this.year,4)}-${Yc(this.month,2)}-${Yc(this.day,2)}`}toPlainYearMonth(){return new ls(this.year,this.month)}equals(e){return i.compare(this,e)===0}static compare(e,t){return e.year<t.year?-1:e.year>t.year?1:e.month<t.month?-1:e.month>t.month?1:e.day<t.day?-1:e.day>t.day?1:0}static from(e){if(typeof e=="string"){let t=e.match(Uf);if(!t)throw new TypeError(e);let[,r,a,n]=t;return new i(parseInt(r,10),parseInt(a,10),parseInt(n,10))}return new i(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate())}},ls=class i{constructor(e,t){this.year=e,this.month=t}add(e){let t=wt(this),r=(e.months??0)+(e.years??0)*12;return t.setUTCMonth(t.getUTCMonth()+r),new i(t.getUTCFullYear(),t.getUTCMonth()+1)}equals(e){return this.year===e.year&&this.month===e.month}toPlainDate(){return new Xe(this.year,this.month,1)}};function cs(i,e){if(e)try{return i.from(e)}catch{}}function Bi(i){let[e,t]=od(i);return[Dt(()=>cs(Xe,e),[e]),r=>t(r?.toString())]}function Hf(i){let[e="",t]=od(i);return[Dt(()=>{let[r,a]=e.split("/"),n=cs(Xe,r),o=cs(Xe,a);return n&&o?[n,o]:[]},[e]),r=>t(`${r[0]}/${r[1]}`)]}function Bf(i){let[e="",t]=od(i);return[Dt(()=>{let r=[];for(let a of e.trim().split(/\s+/)){let n=cs(Xe,a);n&&r.push(n)}return r},[e]),r=>t(r.join(" "))]}function ia(i,e){return Dt(()=>new Intl.DateTimeFormat(e,{timeZone:"UTC",...i}),[e,i])}function Ih(i,e,t){let r=ia(i,t);return Dt(()=>{let a=[],n=new Date;for(var o=0;o<7;o++){let s=(n.getUTCDay()-e+7)%7;a[s]=r.format(n),n.setUTCDate(n.getUTCDate()+1)}return a},[e,r])}var Mh=(i,e,t)=>hs(i,e,t)===i,Lh=i=>i.target.matches(":dir(ltr)"),Ff={month:"long",day:"numeric"},Vf={month:"long"},Wf={weekday:"long"},Qc={bubbles:!0};function jf({props:i,context:e}){let{offset:t}=i,{firstDayOfWeek:r,isDateDisallowed:a,min:n,max:o,today:s,page:l,locale:d,focusedDate:y,formatWeekday:p}=e,g=s??dd(),v=Ih(Wf,r,d),f=Dt(()=>({weekday:p}),[p]),b=Ih(f,r,d),x=ia(Ff,d),S=ia(Vf,d),I=Dt(()=>l.start.add({months:t}),[l,t]),R=Dt(()=>Nf(I,r),[I,r]),O=Xt("focusday",Qc),H=Xt("selectday",Qc),j=Xt("hoverday",Qc);function ae(te){O(hs(te,n,o))}function U(te){let Ie;switch(te.key){case"ArrowRight":Ie=y.add({days:Lh(te)?1:-1});break;case"ArrowLeft":Ie=y.add({days:Lh(te)?-1:1});break;case"ArrowDown":Ie=y.add({days:7});break;case"ArrowUp":Ie=y.add({days:-7});break;case"PageUp":Ie=y.add(te.shiftKey?{years:-1}:{months:-1});break;case"PageDown":Ie=y.add(te.shiftKey?{years:1}:{months:1});break;case"Home":Ie=ud(y,r);break;case"End":Ie=Zh(y,r);break;default:return}ae(Ie),te.preventDefault()}function Ae(te){let Ie=I.equals(te);if(!e.showOutsideDays&&!Ie)return;let A=te.equals(y),w=te.equals(g),L=wt(te),q=a?.(L),N=!Mh(te,n,o),se="",le;if(e.type==="range"){let[Ce,Re]=e.value,_t=Ce?.equals(te),Rt=Re?.equals(te);le=Ce&&Re&&Mh(te,Ce,Re),se=`${_t?"range-start":""} ${Rt?"range-end":""} ${le&&!_t&&!Rt?"range-inner":""}`}else e.type==="multi"?le=e.value.some(Ce=>Ce.equals(te)):le=e.value?.equals(te);return{part:`${`button day day-${L.getDay()} ${Ie?le?"selected":"":"outside"} ${q?"disallowed":""} ${w?"today":""} ${e.getDayParts?.(L)??""}`} ${se}`,tabindex:Ie&&A?0:-1,disabled:N,"aria-disabled":q?"true":void 0,"aria-pressed":Ie&&le,"aria-current":w?"date":void 0,"aria-label":x.format(L),onkeydown:U,onclick(){q||H(te),ae(te)},onmouseover(){!q&&!N&&j(te)}}}return{weeks:R,yearMonth:I,daysLong:v,daysVisible:b,formatter:S,getDayProps:Ae}}var Zc=dd(),In=Qh({type:"date",firstDayOfWeek:1,focusedDate:Zc,page:{start:Zc.toPlainYearMonth(),end:Zc.toPlainYearMonth()}});customElements.define("calendar-ctx",In);var qf=(i,e)=>(e+i)%7,Gf=fr(i=>{let e=sd(In),t=Nh(),r=jf({props:i,context:e});function a(){t.current.querySelector("button[tabindex='0']")?.focus()}return Ai("host",{shadowDom:!0,focus:a,children:[X("div",{id:"h",part:"heading",children:r.formatter.format(wt(r.yearMonth))}),Ai("table",{ref:t,"aria-labelledby":"h",part:"table",children:[Ai("colgroup",{children:[e.showWeekNumbers&&X("col",{part:"col-weeknumber"}),X("col",{part:"col-1"}),X("col",{part:"col-2"}),X("col",{part:"col-3"}),X("col",{part:"col-4"}),X("col",{part:"col-5"}),X("col",{part:"col-6"}),X("col",{part:"col-7"})]}),X("thead",{children:Ai("tr",{part:"tr head",children:[e.showWeekNumbers&&X("th",{part:"th weeknumber",children:X("slot",{name:"weeknumber",children:X("span",{"aria-label":"Week",children:"#"})})}),r.daysLong.map((n,o)=>Ai("th",{part:`th day day-${qf(e.firstDayOfWeek,o)}`,scope:"col",children:[X("span",{class:"vh",children:n}),X("span",{"aria-hidden":"true",children:r.daysVisible[o]})]}))]})}),X("tbody",{children:r.weeks.map((n,o)=>Ai("tr",{part:"tr week",children:[e.showWeekNumbers&&X("th",{class:"num",part:"th weeknumber",scope:"row",children:Of(n[0])}),n.map((s,l)=>{let d=r.getDayProps(s);return X("td",{part:"td",children:d&&X("button",{class:"num",...d,children:s.day})},l)})]},o))})]})]})},{props:{offset:{type:Number,value:0}},styles:[ld,cd,ps`:host{--color-accent: black;--color-text-on-accent: white;display:flex;flex-direction:column;gap:.25rem;text-align:center;inline-size:fit-content}table{border-collapse:collapse;font-size:.875rem}th{inline-size:2.25rem;block-size:2.25rem}td{padding-inline:0}.num{font-variant-numeric:tabular-nums}button{color:inherit;font-size:inherit;background:transparent;border:0;block-size:2.25rem;inline-size:2.25rem}
435button:hover:where(:not(:disabled,[aria-disabled])){background:#0000000d}button:is([aria-pressed=true],:focus-visible){background:var(--color-accent);color:var(--color-text-on-accent)}button:focus-visible{outline:1px solid var(--color-text-on-accent);outline-offset:-2px}button:disabled,:host::part(outside),:host::part(disallowed){cursor:default;opacity:.5}`]});customElements.define("calendar-month",Gf);function Rh(i){return X("button",{part:`button ${i.name} ${i.onclick?"":"disabled"}`,onclick:i.onclick,"aria-disabled":i.onclick?null:"true",children:X("slot",{name:i.name,children:i.children})})}function pd(i){let e=wt(i.page.start),t=wt(i.page.end);return X(In,{value:i,onselectday:i.onSelect,onfocusday:i.onFocus,onhoverday:i.onHover,children:Ai("div",{role:"group","aria-labelledby":"h",part:"container",children:[X("div",{id:"h",class:"vh","aria-live":"polite","aria-atomic":"true",children:i.formatVerbose.formatRange(e,t)}),Ai("div",{part:"header",children:[X(Rh,{name:"previous",onclick:i.previous,children:"Previous"}),X("slot",{part:"heading",name:"heading",children:X("div",{"aria-hidden":"true",children:i.format.formatRange(e,t)})}),X(Rh,{name:"next",onclick:i.next,children:"Next"})]}),X("slot",{part:"months"})]})})}var hd={value:{type:String,value:""},min:{type:String,value:""},max:{type:String,value:""},today:{type:String,value:""},isDateDisallowed:{type:Function,value:i=>!1},formatWeekday:{type:String,value:()=>"narrow"},getDayParts:{type:Function,value:i=>""},firstDayOfWeek:{type:Number,value:()=>1},showOutsideDays:{type:Boolean,value:!1},locale:{type:String,value:()=>{}},months:{type:Number,value:1},focusedDate:{type:String,value:()=>{}},pageBy:{type:String,value:()=>"months"},showWeekNumbers:{type:Boolean,value:!1}},md=[ld,cd,ps`:host{display:block;inline-size:fit-content}:host::part(container){display:flex;flex-direction:column;gap:1em}:host::part(header){display:flex;align-items:center;justify-content:space-between}:host::part(heading){font-weight:700;font-size:1.25em}:host::part(button){display:flex;align-items:center;justify-content:center}:host::part(button disabled){cursor:default;opacity:.5}`],Kf={year:"numeric"},Yf={year:"numeric",month:"long"};function Xc(i,e){return(e.year-i.year)*12+e.month-i.month}var $h=(i,e)=>(i=e===12?new ls(i.year,1):i,{start:i,end:i.add({months:e-1})});function Qf({pageBy:i,focusedDate:e,months:t,max:r,min:a,goto:n}){let o=i==="single"?1:t,[s,l]=nd(()=>$h(e.toPlainYearMonth(),t)),d=p=>l($h(s.start.add({months:p}),t)),y=p=>{let g=Xc(s.start,p.toPlainYearMonth());return g>=0&&g<t};return Tn(()=>{if(y(e))return;let p=Xc(e.toPlainYearMonth(),s.start);n(e.add({months:p}))},[s.start]),Tn(()=>{if(y(e))return;let p=Xc(s.start,e.toPlainYearMonth());d(p===-1?-o:p===t?o:Math.floor(p/t)*t)},[e,o,t]),{page:s,previous:!a||!y(a)?()=>d(-o):void 0,next:!r||!y(r)?()=>d(o):void 0}}function vd({months:i,pageBy:e,locale:t,focusedDate:r,setFocusedDate:a}){let[n]=Bi("min"),[o]=Bi("max"),[s]=Bi("today"),l=Xt("focusday"),d=Xt("change"),y=Dt(()=>hs(r??s??dd(),n,o),[r,s,n,o]);function p(S){a(S),l(wt(S))}let{next:g,previous:v,page:f}=Qf({pageBy:e,focusedDate:y,months:i,min:n,max:o,goto:p}),b=ds();function x(S){let I=S?.target??"day";I==="day"?b.current.querySelectorAll("calendar-month").forEach(R=>R.focus(S)):b.current.shadowRoot.querySelector(`[part~='${I}']`).focus(S)}return{format:ia(Kf,t),formatVerbose:ia(Yf,t),page:f,focusedDate:y,dispatch:d,onFocus(S){S.stopPropagation(),p(S.detail),setTimeout(x)},min:n,max:o,today:s,next:g,previous:v,focus:x}}var Zf=fr(i=>{let[e,t]=Bi("value"),[r=e,a]=Bi("focusedDate"),n=vd({...i,focusedDate:r,setFocusedDate:a});function o(s){t(s.detail),n.dispatch()}return X("host",{shadowDom:!0,focus:n.focus,children:X(pd,{...i,...n,type:"date",value:e,onSelect:o})})},{props:hd,styles:md});customElements.define("calendar-date",Zf);function Jh(i){return Ai(qh,{children:[X("label",{part:"label",for:"s",children:X("slot",{name:"label",children:i.label})}),X("select",{id:"s",part:"select",onchange:i.onChange,children:i.options.map(e=>X("option",{part:"option",...e}))})]})}var em=[ld,cd];function Xf(i,e){return Array.from({length:i},(t,r)=>e(r))}function Jf(i){let{min:e,max:t,focusedDate:r}=sd(In),a=Xt("focusday",{bubbles:!0}),n=r.toPlainYearMonth(),o=n.year,s=Math.floor(i.maxYears/2),l=o-s,d=o+(i.maxYears-s-1),y=Math.max(l,e?.year??-1/0),p=Math.min(d,t?.year??1/0),g=Xf(p-y+1,f=>{let b=y+f;return{label:`${b}`,value:`${b}`,selected:b===n.year}});function v(f){let b=parseInt(f.currentTarget.value)-n.year;a(r.add({years:b}))}return{options:g,onChange:v}}var eb=fr(i=>{let e=Jf(i);return X("host",{shadowDom:!0,children:X(Jh,{label:"Year",...e})})},{props:{maxYears:{type:Number,value:20}},styles:em});customElements.define("calendar-select-year",eb);function tb(i){let{min:e,max:t,focusedDate:r,locale:a}=sd(In),n=Xt("focusday",{bubbles:!0}),o=Dt(()=>({month:i.formatMonth}),[i.formatMonth]),s=ia(o,a),l=Dt(()=>{let g=[],v=new Date;for(var f=0;f<12;f++){let b=(v.getUTCMonth()+12)%12;g[b]=s.format(v),v.setUTCMonth(v.getUTCMonth()+1)}return g},[s]),d=r.toPlainYearMonth(),y=l.map((g,v)=>{let f=v+1,b=d.add({months:f-d.month}).toPlainDate(),x=e!=null&&Xe.compare(b,e)<0||t!=null&&Xe.compare(b,t)>0;return{label:g,value:`${f}`,disabled:x,selected:f===d.month}});function p(g){let v=parseInt(g.currentTarget.value)-d.month;n(r.add({months:v}))}return{options:y,onChange:p}}var ib=fr(i=>{let e=tb(i);return X("host",{shadowDom:!0,children:X(Jh,{label:"Month",...e})})},{props:{formatMonth:{type:String,value:()=>"long"}},styles:em});customElements.define("calendar-select-month",ib);var Dh=(i,e)=>
435Xe.compare(i,e)<0?[i,e]:[e,i],rb=fr(i=>{let[e,t]=Hf("value"),[r=e[0],a]=Bi("focusedDate"),n=vd({...i,focusedDate:r,setFocusedDate:a}),o=Xt("rangestart"),s=Xt("rangeend"),[l,d]=Bi("tentative"),[y,p]=nd();Tn(()=>p(void 0),[l]);function g(x){n.onFocus(x),v(x)}function v(x){x.stopPropagation(),l&&p(x.detail)}function f(x){let S=x.detail;x.stopPropagation(),l?(t(Dh(l,S)),d(void 0),s(wt(S)),n.dispatch()):(d(S),o(wt(S)))}let b=l?Dh(l,y??l):e;return X("host",{shadowDom:!0,focus:n.focus,children:X(pd,{...i,...n,type:"range",value:b,onFocus:g,onHover:v,onSelect:f})})},{props:{...hd,tentative:{type:String,value:""}},styles:md});customElements.define("calendar-range",rb);var ab=fr(i=>{let[e,t]=Bf("value"),[r=e[0],a]=Bi("focusedDate"),n=vd({...i,focusedDate:r,setFocusedDate:a});function o(s){let l=[...e],d=e.findIndex(y=>y.equals(s.detail));d<0?l.push(s.detail):l.splice(d,1),t(l),n.dispatch()}return X("host",{shadowDom:!0,focus:n.focus,children:X(pd,{...i,...n,type:"multi",value:e,onSelect:o})})},{props:hd,styles:md});customElements.define("calendar-multi",ab);var nb=P`@layer _settings,_vendor,_component,_variants;@layer _settings{:host{--_cy-datepicker-font-family: var( --cy-datepicker-font-family, var(--cy-base-text-font-family-base-list, sans-serif) );--_cy-datepicker-font-weight: var( --cy-datepicker-font-weight, var(--cy-base-text-font-weight-normal, normal) );--_cy-datepicker-font-weight-hover: var( --cy-datepicker-font-weight-hover, var(--_cy-datepicker-font-weight) );--_cy-datepicker-font-weight-selected: var( --cy-datepicker-font-weight-selected, var(--_cy-datepicker-font-weight) );--_cy-datepicker-background-color: var(--cy-datepicker-background-color, var(--cy-base-color-white, #ffffff));--_cy-datepicker-days-background-color: var(--cy-datepicker-days-background-color, transparent);--_cy-datepicker-days-background-color-hover: var(--cy-datepicker-days-background-color-hover, #aaaaaa);--_cy-datepicker-days-background-color-selected: var( --cy-datepicker-days-background-color-selected, var(--cy-base-color-brand, blue) );--_cy-datepicker-days-background-color-selected-hover: var( --cy-datepicker-days-background-color-selected-hover, var(--_cy-datepicker-days-background-color-selected) );--_cy-datepicker-days-font-size: var( --cy-datepicker-days-font-size, var(--cy-base-text-font-size-base, 1rem) );--_cy-datepicker-text-color: var( --cy-datepicker-text-color, var(--cy-base-color-text, black) );--_cy-datepicker-text-color-selected: var( --cy-datepicker-text-color-selected, var(--cy-base-color-white, white) );--_cy-datepicker-border-radius: var( --cy-datepicker-border-radius, var(--cy-base-border-radius-base, 0) );--_cy-datepicker-range-inner-background-color: var( --cy-datepicker-range-inner-background-color, var(--cy-datepicker-days-background-color-hover) );--_cy-datepicker-range-inner-background-color-hover: var( --cy-datepicker-range-inner-background-color-hover, var(--cy-datepicker-days-background-color-hover) );--_cy-datepicker-range-inner-text-color: var(--cy-datepicker-range-inner-text-color, inherit);--_cy-datepicker-range-inner-text-color-hover: var(--cy-datepicker-range-inner-text-color-hover, inherit);--_cy-datepicker-range-font-weight: var(--cy-datepicker-range-font-weight);--_cy-datepicker-days-button-size: var(--cy-datepicker-day-button-size, 2.5rem);--_cy-datepicker-heading-gap: var(--cy-datepicker-heading-gap, .5rem);--_cy-datepicker-heading-color: var(--cy-datepicker-heading-color, var(--_cy-datepicker-text-color));--_cy-datepicker-heading-font-size: var(--cy-datepicker-heading-font-size, inherit);--_cy-datepicker-column-header-color: var(--cy-datepicker-column-header-color);--_cy-datepicker-column-header-font-size: var(--cy-datepicker-column-header-font-size, inherit);--_cy-datepicker-column-header-font-weight: var(--cy-datepicker-column-header-font-weight, inherit);--_cy-datepicker-header-button-background-color: var( --cy-datepicker-header-button-background-color, var(--cy-base-color-surface-medium, #aaaaaa) );--_cy-datepicker-header-button-hover-background-color: var( --cy-datepicker-header-button-hover-background-color, var(--cy-base-color-surface-medium, oklch(from var(--_cy-datepicker-header-button-background-color) 50% c h)) );--_cy-datepicker-header-button-disabled-background-color: var( --cy-datepicker-header-button-disabled-background-color, var(--cy-base-color-surface-light, oklch(from var(--_cy-datepicker-header-button-background-color) 75% c h)) );--_cy-datepicker-header-button-border-radius: var(--cy-datepicker-header-button-border-radius, 0);--_cy-datepicker-header-button-border-color: var(--cy-datepicker-header-button-border-color, transparent);--_cy-datepicker-header-button-padding: var(--cy-datepicker-header-button-padding, .5em);--_cy-datepicker-select-background-color: var(--cy-datepicker-select-border, white);--_cy-datepicker-select-gradient: var( --cy-datepicker-select-gradient, linear-gradient(to top, #f9f9f9, var(--_cy-datepicker-select-background-color) 33%) );--_cy-datepicker-select-border-color: var(--cy-datepicker-select-border, #777777);--_cy-datepicker-select-border-width: var(--cy-datepicker-select-border-width, 1px);--_cy-datepicker-select-focus-color: var(--cy-datepicker-select-color-focus, blue);--_cy-datepicker-select-disclosure-arrow-color: var( --cy-datepicker-select-disclosure-arrow-color, var(--_cy-datepicker-select-border-color) );--_cy-datepicker-select-min-inline-size: var(--cy-datepicker-select-min-inline-size, 4ch);--_cy-datepicker-select-max-inline-size: var(--cy-datepicker-select-max-inline-size, 6ch);--_cy-datepicker-select-padding-block: var(--cy-datepicker-select-padding-block, .35em);--_cy-datepicker-select-padding-inline: var(--cy-datepicker-select-padding-inline, .5em);--_cy-datepicker-select-border-radius: var(--cy-datepicker-select-border-radius, .25em);--_cy-datepicker-select-font-size: var(--cy-datepicker-select-font-size, .875rem);--_cy-datepicker-select-arrow-size: var(--cy-datepicker-select-arrow-size, .5em);--_cy-datepicker-weeknumber-border-color: var( --cy-datepicker-weeknumber-border-color, var(--cy-base-color-border, #888888) );--_cy-datepicker-weeknumber-color: var( --cy-datepicker-weeknumber-color, var(--cy-base-color-text, #333333) );--_cy-datepicker-weeknumber-font-size: var( --cy-datepicker-weeknumber-font-size, inherit );
435--_cy-datepicker-weeknumber-font-weight: var( --cy-datepicker-weeknumber-font-weight, var(--cy-base-text-font-weight-normal, normal) )}}@layer _component{.datepicker{font-family:var(--_cy-datepicker-font-family)}}@layer _vendor{calendar-date,calendar-range{color:var(--_cy-datepicker-text-color);&::part(button){padding:var(--_cy-datepicker-header-button-padding);border:none;border-radius:var(--_cy-datepicker-header-button-border-radius);background-color:var(--_cy-datepicker-header-button-background-color)}&::part(previous),&::part(next){inline-size:var(--_cy-datepicker-days-button-size);block-size:var(--_cy-datepicker-days-button-size);background-color:transparent}&::part(disabled){--_cy-datepicker-header-button-background-color: var(--_cy-datepicker-header-button-disabled-background-color)}&::part(button):hover{--_cy-datepicker-header-button-background-color: var(--_cy-datepicker-header-button-hover-background-color)}&::part(disabled):hover{--_cy-datepicker-header-button-background-color: var(--_cy-datepicker-header-button-disabled-background-color)}}calendar-date{&::part(container){background-color:var(--_cy-datepicker-background-color)}}calendar-month{gap:var(--_cy-datepicker-heading-gap);&::part(button){border-radius:var(--_cy-datepicker-border-radius);font-family:var(--_cy-datepicker-font-family);font-weight:var(--_cy-datepicker-font-weight);background-color:var(--_cy-datepicker-days-background-color);color:var(--_cy-datepicker-text-color)}&::part(button):hover{--_cy-datepicker-days-background-color: var(--_cy-datepicker-days-background-color-hover);--_cy-datepicker-font-weight: var(--_cy-datepicker-font-weight-hover);--_cy-datepicker-text-color: var(--_cy-datepicker-text-color-hover)}&::part(button):focus-visible{outline:2px solid var(--_cy-datepicker-text-color-hover);outline-offset:-3px}&::part(button):is([aria-pressed=true],:focus-visible){background-color:var(--_cy-datepicker-days-background-color-hover);color:var(--_cy-datepicker-text-color-hover)}&::part(button):disabled{background-color:transparent}&::part(selected),&::part(selected):hover{--_cy-datepicker-days-background-color: var(--_cy-datepicker-days-background-color-selected);--_cy-datepicker-font-weight: var(--_cy-datepicker-font-weight-selected);--_cy-datepicker-text-color: var(--_cy-datepicker-text-color-selected)}&::part(day){inline-size:var(--_cy-datepicker-days-button-size);block-size:var(--_cy-datepicker-days-button-size);font-size:var(--_cy-datepicker-days-font-size)}&::part(button range-inner){--_cy-datepicker-days-background-color: var(--_cy-datepicker-range-inner-background-color);--_cy-datepicker-border-radius: 0;--_cy-datepicker-font-weight: var(--_cy-datepicker-range-font-weight);--_cy-datepicker-text-color: var(--_cy-datepicker-range-inner-text-color)}&::part(button range-inner):hover{--_cy-datepicker-days-background-color: var(--_cy-datepicker-range-inner-background-color-hover);--_cy-datepicker-text-color: var(--_cy-datepicker-range-inner-text-color-hover)}&::part(button range-start){border-start-end-radius:0;border-end-end-radius:0}&::part(button range-end){border-start-start-radius:0;border-end-start-radius:0}&::part(button range-start range-end){border-radius:var(--_cy-datepicker-border-radius)}&::part(button disallowed){font-weight:400;background-color:transparent}&::part(th){font-size:var( --_cy-datepicker-column-header-font-size, var(--_cy-datepicker-weeknumber-font-size) );font-weight:var( --_cy-datepicker-column-header-font-weight, var(--_cy-datepicker-weeknumber-font-we
435ight) );color:var(--_cy-datepicker-column-header-color)}&::part(heading){font-size:var(--_cy-datepicker-heading-font-size);color:var(--_cy-datepicker-heading-color)}&::part(th weeknumber){inline-size:calc(var(--_cy-datepicker-days-button-size) - 2px);block-size:calc(var(--_cy-datepicker-days-button-size) - 4px);border-inline-end:1px solid var(--_cy-datepicker-weeknumber-border-color);font-size:var(--_cy-datepicker-weeknumber-font-size);font-weight:var(--_cy-datepicker-weeknumber-font-weight);color:var(--_cy-datepicker-weeknumber-color)}}calendar-select-year{position:relative;display:grid;grid-template-areas:"select";align-items:center;inline-size:100%;min-inline-size:var(--_cy-datepicker-select-min-inline-size);max-inline-size:var(--_cy-datepicker-select-max-inline-size);padding-block:var(--_cy-datepicker-select-padding-block);padding-inline:var(--_cy-datepicker-select-padding-inline);border:var(--_cy-datepicker-select-border-width) solid var(--_cy-datepicker-select-border-color);border-radius:var(--_cy-datepicker-select-border-radius);font-size:var(--_cy-datepicker-select-font-size);line-height:1;background-color:var(--_cy-datepicker-select-background-color);background-image:var(--_cy-datepicker-select-gradient);cursor:pointer;&:after{content:"";grid-area:select;justify-self:end;inline-size:var(--_cy-datepicker-select-arrow-size);aspect-ratio:1.5;background-color:var(--_cy-datepicker-select-disclosure-arrow-color);clip-path:polygon(100% 0%,0 0%,50% 100%)}&:has(:focus):before{content:"";position:absolute;inset:-1px;border-radius:inherit;outline:2px solid var(--_cy-datepicker-select-focus-color)}&::part(select){grid-area:select;inline-size:100%;block-size:100%;margin:0;padding:0;border:none;font-family:inherit;font-size:inherit;line-height:inherit;background-color:transparent;cursor:inherit;appearance:none;outline:none;&::-ms-expand{display:none}}}}
436`,tm=nb;var im={nextButtonLabel:"Next month",previousButtonLabel:"Previous month",weekNumberLabel:"Week",yearSelectLabel:"Please select the year to display"};var Pe=class extends ${constructor(){super(...arguments);this.disabledDates=[];this.disabledWeekdays=[];this.weekdayFormat="narrow";this.yearSelect=!1;this.yearSelectMaxYears=100;this._callyRef=Ve()}get _classNames(){return Z({datepicker:!0,"datepicker--range":this.range,"datepicker--single":!this.range})}_renderControls(){return E`
437            <cy-icon
438                slot="previous"
439                name=${"semantic-back"}
440                size="small"
441                exportparts="icon:datepicker-control-icon"
442                aria-label=${M(this.getI18nValue("previousButtonLabel"))}
443            ></cy-icon>
444            <cy-icon
445                slot="next"
446                name=${"semantic-forward"}
447                size="small"
448                exportparts="icon:datepicker-control-icon"
449                aria-label=${M(this.getI18nValue("nextButtonLabel"))}
450            ></cy-icon>
451        `}_renderYearSelect(){return M(this.yearSelect)?E`
452            <calendar-select-year
453                class="datepicker-select-wrapper"
454                slot="heading"
455                part="datepicker-select"
456                max-years=${this.yearSelectMaxYears}
457            >
458                <p
459                    id="year-select-label"
460                    data-cy-visually-hidden
461                    slot="label"
462                >
463                    ${this.getI18nValue("yearSelectLabel")}
464                </p>
465            </calendar-select-year>
466        `:_}_handleChange(t){this.value=t.target?.value,this.emit(this.changeEvent,t.target?.value)}_isDisabledDate(t){let r=t.toLocaleDateString("en-GB",{weekday:"long"}),a=t.toISOString().substring(0,10);return this.disabledDates?.includes(a)||this.disabledWeekdays?.includes(r)}_renderWeekNumberLabel(){return this.showWeekNumbers?E`
467                  <span
468                      slot="weeknumber"
469                      data-cy-visually-hidden
470                  >
471                      ${M(this.getI18nValue("weekNumberLabel"))}
472                  </span>
473              `:_}render(){let t=this.range?Ze`calendar-range`:Ze`calendar-date`;return E`
474            <div
475                class="${this._classNames}"
476                part="datepicker"
477            >
478                <${t}
479                    locale=${M(this.locale)}
480                    min=${this.min||_}
481                    max=${this.max||_}
482                    value=${this.value}
483                    @change=${this._handleChange}
484                    format-weekday=${this.weekdayFormat}
485                    ?show-week-numbers=${this.showWeekNumbers}
486                    .isDateDisallowed=${this._isDisabledDate.bind(this)}
487                    ${Te(this._callyRef)}
488                >
489                    ${this._renderControls()}
490                    ${this._renderYearSelect()}
491                    <calendar-month
492                        exportparts="selected:datepicker-selected, range-start:datepicker-range-start, range-end:datepicker-range-end"
493                    >
494                        ${this._renderWeekNumberLabel()}
495                    </calendar-month>
496                </${t}>
497            </div>
498        `}};Pe.styles=[...$.styles,De,tm],Pe.dependencies={"cy-icon":xe},Pe.defaultI18n=im,u([m({reflect:!1,type:Array,converter:t=>{let r=t?.split(",");return Array.isArray(r)?r:t}})],Pe.prototype,"disabledDates",2),u([m({reflect:!1,type:Array,converter:t=>{let r=t?.split(",");return Array.isArray(r)?r:t}})],Pe.prototype,"disabledWeekdays",2),u([m({reflect:!0,type:String})],Pe.prototype,"locale",2),u([m({reflect:!0,type:String})],Pe.prototype,"max",2),u([m({reflect:!0,type:String})],Pe.prototype,"min",2),u([m({reflect:!0,type:Boolean})],Pe.prototype,"range",2),u([m({reflect:!0,type:Boolean})],Pe.prototype,"showWeekNumbers",2),u([m({reflect:!0,type:String})],Pe.prototype,"value",2),u([m({type:String})],Pe.prototype,"weekdayFormat",2),u([m({reflect:!0,type:Boolean})],Pe.prototype,"yearSelect",2),u([m({type:Number})],Pe.prototype,"yearSelectMaxYears",2),u([pe({eventName:"cy-change"})],Pe.prototype,"changeEvent",2);customElements.get("cy-datepicker")||customElements.define("cy-datepicker",Pe);var ob=P`@layer _settings,_component,_variants;@layer _settings{:host{--_cy-logo-background-image: var(--cy-logo-background-image);--_cy-logo-aspect-ratio: var( --cy-logo-aspect-ratio, var( --cy-base-asset-image-logo-small-aspect-ratio, var( --cy-base-asset-image-logo-aspect-ratio, 1 ) ) );--_cy-logo-inline-size: var(--cy-logo-inline-size);--_cy-logo-block-size: var(--cy-logo-block-size, 5rem)}}@layer _component{:host{display:inline-block}#label{display:none}.logo{display:block;inline-size:var(--_cy-logo-inline-size);block-size:var(--_cy-logo-block-size) var(--_cy-logo-inline-size, );&:has([part=image]){aspect-ratio:var(--_cy-logo-aspect-ratio)}}[part=image]{display:block;inline-size:100%;block-size:100%;background-image:var(--_cy-logo-background-image);background-repeat:no-repeat;background-size:contain}img{display:block;inline-size:var(--_cy-logo-inline-size, auto);block-size:100%;
498&:has(+.small){display:var(--cy-logo-custom-small-display, none)}&.small{display:var(--cy-logo-custom-small-display) none}}}
499`,rm=ob;var am={defaultAltSuffix:"logo"};var ot=class extends ${constructor(){super(...arguments);this.label="Brand";this._isAltProvided=!1}get alt(){return this._isAltProvided?this._altValue??"":`${this.label} ${this.getI18nValue("defaultAltSuffix")}`}set alt(t){let r=this.alt;t==null?(this._isAltProvided=!1,this._altValue=void 0):(this._isAltProvided=!0,this._altValue=t);let a=this.alt;r!==a&&this.requestUpdate("alt",r)}get _classNames(){return Z({logo:!0})}render(){let t=this.alt,r=E`
500            <span id="label">${this.label}</span>
501
502            ${this.src||this.smallSrc?E`
503                      ${this.src?E`
504                                <img
505                                    src="${this.src}"
506                                    alt="${t}"
507                                />
508                            `:""}
509                      ${this.smallSrc?E`
510                                <img
511                                    src="${this.smallSrc}"
512                                    class="small"
513                                    alt="${t}"
514                                />
515                            `:""}
516                  `:E`
517                      <span
518                          part="image"
519                          role="img"
520                          aria-label="${t}"
521                      ></span>
522                  `}
523        `;return this.href?E`
524                  <a
525                      href="${this.href}"
526                      class="${this._classNames}"
527                      part="root"
528                      aria-labelledby="label"
529                  >
530                      ${r}
531                  </a>
532              `:E`
533                  <span
534                      class="${this._classNames}"
535                      part="root"
536                      aria-labelledby="label"
537                  >
538                      ${r}
539                  </span>
540              `}};ot.styles=[...$.styles,rm,De],ot.defaultI18n=am,u([m({type:String})],ot.prototype,"label",2),u([m({type:String})],ot.prototype,"alt",1),u([m({type:String})],ot.prototype,"href",2),u([m({type:String})],ot.prototype,"src",2),u([m({type:String})],ot.prototype,"smallSrc",2);customElements.get("cy-logo")||customElements.define("cy-logo",ot);var sb=P`@layer _settings,_conditionals,_component,_variants;@layer _settings{:host{--_cy-navigation-position: var(--cy-navigation-position, relative);--_cy-navigation-min-height: var(--cy-navigation-min-height);--_cy-navigation-direction: var(--cy-navigation-direction, horizontal);--_cy-navigation-column-gap: var(--cy-navigation-column-gap, var(--cy-base-space-base, 1.2rem));--_cy-navigation-row-gap: var(--cy-navigation-row-gap, var(--_cy-navigation-column-gap));--_cy-navigation-level-1-column-gap: var(--cy-navigation-level-1-column-gap, var(--cy-base-space-small, .75rem));--_cy-navigation-dropdown-padding-inline: var(--cy-navigation-dropdown-padding-inline, var(--cy-base-padding-base, 1rem));--_cy-navigation-dropdown-padding-block: var(--cy-navigation-dropdown-padding-block, var(--cy-base-padding-base, 1rem));--_cy-navigation-vertical-padding-inline: var(--cy-navigation-vertical-padding-inline, var(--cy-base-padding-small, .75rem));--_cy-navigation-vertical-padding-block: var(--cy-navigation-vertical-padding-block, var(--cy-base-padding-small, .75rem));--_cy-navigation-list-min-inline-size: var(--cy-navigation-list-min-inline-size, calc(20rem * var(--cy-root-font-size-multiplier, 1)))}}@layer _component{.navigation{position:var(--_cy-navigation-position);z-index:1;display:grid;min-block-size:var(--_cy-navigation-min-height);&:has([data-cy-navigation-level="1"]){block-size:100%}}.navigation-list{display:grid;grid-column:1/-1;column-gap:var(--_cy-navigation-column-gap);margin:0;padding:0;list-style:none;&[data-cy-navigation-level="1"]{grid-auto-columns:max-content;grid-auto-flow:column;align-items:center;column-gap:var(--_cy-navigation-level-1-column-gap)}>*:first-child::part(navigation-item){--cy-if-not-navigation-item-first-child: }[layout=panel][level="1"]>&{row-gap:var(--_cy-navigation-row-gap)}[data-cy-navigation-direction=horizontal][layout=dropdown]:is([level="1"],[toggle])>&{box-sizing:border-box;inline-size:var(--_cy-navigation-list-min-inline-size);padding-inline:var(--_cy-navigation-dropdown-padding-inline);padding-block:var(--_cy-navigation-dropdown-padding-block)}:host([data-cy-navigation-direction="vertical"]) &{padding-inline:var(--_cy-navigation-vertical-padding-inline);padding-block:var(--_cy-navigation-vertical-padding-block);[level="2"]>&[data-cy-navigation-level="2"],[level="3"]>&[data-cy-navigation-level="3"],[level="4"]>&[data-cy-navigation-level="4"],[level="5"]>&[data-cy-navigation-level="5"],[level="6"]>&[data-cy-navigation-level="6"]{padding-inline:0;padding-block:0}}}}
541`,nm=sb;var om={backButtonLabel:"Back"};var sm=(i,e,t)=>{let r=new Map;for(let a=e;a<=t;a++)r.set(i[a],a);return r},gd=vt(class extends Kt{constructor(i){if(super(i),i.type!==Ui.CHILD)throw Error("repeat() can only be used in text expressions")}
vendor: 5,530 bytes, line 541
541dt(i,e,t){let r;t===void 0?t=e:e!==void 0&&(r=e);let a=[],n=[],o=0;for(let s of i)a[o]=r?r(s,o):o,n[o]=t(s,o),o++;return{values:n,keys:a}}render(i,e,t){return this.dt(i,e,t).values}update(i,[e,t,r]){let a=Eh(i),{values:n,keys:o}=this.dt(e,t,r);if(!Array.isArray(a))return this.ut=o,n;let s=this.ut??=[],l=[],d,y,p=0,g=a.length-1,v=0,f=n.length-1;for(;p<=g&&v<=f;)if(a[p]===null)p++;else if(a[g]===null)g--;else if(s[p]===o[v])l[v]=Hi(a[p],n[v]),p++,v++;else if(s[g]===o[f])l[f]=Hi(a[g],n[f]),g--,f--;else if(s[p]===o[f])l[f]=Hi(a[p],n[f]),Xr(i,l[f+1],a[p]),p++,f--;else if(s[g]===o[v])l[v]=Hi(a[g],n[v]),Xr(i,a[p],a[g]),g--,v++;else if(d===void 0&&(d=sm(o,v,f),y=sm(s,p,g)),d.has(s[p]))if(d.has(s[g])){let b=y.get(o[v]),x=b!==void 0?a[b]:null;if(x===null){let S=Xr(i,a[p]);Hi(S,n[v]),l[v]=S}else l[v]=Hi(x,n[v]),Xr(i,a[p],x),a[b]=null;v++}else es(a[g]),g--;else es(a[p]),p++;for(;v<=f;){let b=Xr(i,l[f+1]);Hi(b,n[v]),l[v++]=b}for(;p<=g;){let b=a[p++];b!==null&&es(b)}return this.ut=o,_h(i,l),mt}});var lb=P`@layer _settings,_conditionals,_component,_variants;@layer _settings{:host{--_cy-navigation-item-level-1-color: var(--cy-navigation-item-level-1-color, var(--cy-base-color-text, #000000));--_cy-navigation-item-text-color: var(--cy-navigation-item-text-color, var(--cy-base-color-white, #ffffff));--_cy-navigation-item-nested-accent-color: var(--cy-navigation-item-nested-accent-color, color-mix( in srgb, currentcolor, transparent var(--cy-navigation-item-nested-accent-color-transparency, 80%) ));--_cy-navigation-item-nested-accent-emphasized-color: var(--cy-navigation-item-nested-accent-emphasized-color, color-mix( in srgb, currentcolor, transparent var(--cy-navigation-item-nested-accent-emphasized-color-transparency, 40%) ));--_cy-navigation-item-expanded-background: var(--cy-navigation-item-expanded-background, var(--_cy-navigation-item-subitems-container-background));--_cy-navigation-item-expanded-toggle-color: var(--cy-navigation-item-expanded-toggle-color, var(--_cy-navigation-item-text-color));--_cy-navigation-item-link-hover-color: var(--cy-navigation-item-link-hover-color);--_cy-navigation-item-link-hover-background-color: var(--cy-navigation-item-link-hover-background-color, var(--_cy-navigation-item-nested-accent-color));--_cy-navigation-item-icon-size: var(--cy-navigation-item-icon-size, var(--cy-base-icon-size-small));--_cy-navigation-item-font-family: var(--cy-navigation-item-font-family, inherit);--_cy-navigation-item-font-size: var(--cy-navigation-item-font-size, inherit);--_cy-navigation-item-level-1-font-weight: var(--cy-navigation-item-level-1-font-weight, inherit);--_cy-navigation-item-border-color: var(--cy-navigation-item-border-color, var(--_cy-navigation-item-nested-accent-color));--_cy-navigation-item-border-color-emphasized: var(--cy-navigation-item-border-color, var(--_cy-navigation-item-nested-accent-emphasized-color));--_cy-navigation-item-border-width: var(--cy-navigation-item-border-width, var(--cy-base-border-width-small, 3px));--_cy-navigation-item-border-style: var(--cy-navigation-item-border-style, solid);--_cy-navigation-item-border: var(--_cy-navigation-item-border-width) var(--_cy-navigation-item-border-style) var(--_cy-navigation-item-border-color);--_cy-navigation-item-heading-text-transform: var(--cy-navigation-item-heading-text-transform);--_cy-navigation-item-heading-font-weight: var(--cy-navigation-item-heading-font-weight, var(--cy-base-text-font-weight-bold, bold));--_cy-navigation-item-heading-font-size: var(--cy-navigation-item-heading-font-size);--_cy-navigation-item-heading-text-color: var(--cy-navigation-item-heading-text-color);--_cy-navigation-item-heading-link-indicator-size: var(--cy-navigation-item-heading-link-indicator-size, var(--cy-base-icon-size-xxsmall));--_cy-navigation-item-level-1-content-padding-block: var(--cy-navigation-item-level-1-content-link-padding-block, var(--cy-base-padding-xxsmall, .3rem));--_cy-navigation-item-level-1-content-padding-inline: var(--cy-navigation-item-level-1-content-padding-inline, var(--cy-base-padding-xxsmall, .3rem));--_cy-navigation-item-level-1-content-current-color: var(--cy-navigation-item-level-1-content-current-color, var(--_cy-navigation-item-content-current-color));--_cy-navigation-item-level-1-content-active-color: var(--cy-navigation-item-level-1-content-active-color, var(--_cy-navigation-item-content-active-color));--_cy-navigation-item-level-1-expanded-color: var(--cy-navigation-item-level-1-expanded-color, var(--_cy-navigation-item-content-active-color));--_cy-navigation-item-level-1-link-hover-color: var(--cy-navigation-item-level-1-link-hover-color, currentColor);--_cy-navigation-item-level-1-expanded-text-decoration: var(--cy-navigation-item-level-1-expanded-text-decoration, none);--_cy-navigation-item-level-1-expanded-text-underline-offset: var(--cy-navigation-item-level-1-expanded-text-underline-offset, var(--_cy-navigation-item-content-active-text-underline-offset));--_cy-navigation-item-content-padding-block: var(--cy-navigation-item-content-link-padding-block, var(--cy-base-padding-xxsmall, .3rem));--_cy-navigation-item-content-padding-inline: var(--cy-navigation-item-content-padding-inline, var(--cy-base-padding-small, 1rem));--_cy-navigation-item-content-gap: var(--cy-navigation-item-content-gap, var(--cy-base-space-xsmall, .5rem));--_cy-navigation-item-content-min-block-size: var(--cy-navigation-item-content-min-block-size, 2.5rem);--_cy-navigation-item-content-line-height: var(--cy-navigation-item-content-line-height, 1.3);
541--_cy-navigation-item-content-font-weight: var(--cy-navigation-item-content-font-weight, inherit);--_cy-navigation-item-content-transition: var(--cy-navigation-item-content-transition, color .1s ease, background-color .1s ease);--_cy-navigation-item-content-current-color: var(--cy-navigation-item-content-current-color);--_cy-navigation-item-content-current-background-color: var(--cy-navigation-item-content-current-background-color, var(--_cy-navigation-item-nested-accent-color));--_cy-navigation-item-content-current-font-weight: var(--cy-navigation-item-content-current-font-weight, var(--cy-base-text-font-weight-bold, bold));--_cy-navigation-item-content-current-text-decoration: var(--cy-navigation-item-content-current-text-decoration, underline);--_cy-navigation-item-content-current-text-underline-offset: var(--cy-navigation-item-content-current-text-underline-offset, .3em);--_cy-navigation-item-content-active-color: var(--cy-navigation-item-content-active-color, var(--_cy-navigation-item-content-current-color));--_cy-navigation-item-content-active-background-color: var(--cy-navigation-item-content-active-background-color, var(--_cy-navigation-item-content-current-background-color));--_cy-navigation-item-content-active-font-weight: var(--cy-navigation-item-content-active-font-weight, var(--_cy-navigation-item-content-current-font-weight));--_cy-navigation-item-content-active-text-decoration: var(--cy-navigation-item-content-active-text-decoration, var(--_cy-navigation-item-content-current-text-decoration));--_cy-navigation-item-content-active-text-underline-offset: var(--cy-navigation-item-content-active-text-underline-offset, var(--_cy-navigation-item-content-current-text-underline-offset));--_cy-navigation-item-content-color: var(--cy-navigation-item-content-color);--_cy-navigation-item-content-background: var(--cy-navigation-item-content-background);--_cy-navigation-item-content-form-field-margin-inline: var(--cy-navigation-item-content-form-field-margin-inline, calc((var(--_cy-navigation-item-content-padding-inline) - var(--cy-base-padding-small, 1rem)) * -1));--_cy-if-navigation-item-label-visible: var(--cy-if-navigation-item-label-visible);--_cy-navigation-item-image-label-color: var(--cy-navigation-item-image-label-color, var(--cy-base-color-white, #ffffff));--_cy-navigation-item-image-label-background-color: var(--cy-navigation-item-image-label-background-color, var(--cy-base-color-black, #000000));--_cy-navigation-item-image-label-background-opacity: var(--cy-navigation-item-image-label-background-opacity, 50%);--_cy-navigation-item-subitems-container-toggle-expanded-background-color: var(--cy-navigation-item-subitems-container-toggle-expanded-background-color, var(--_cy-navigation-item-nested-accent-color));--_cy-navigation-item-subitems-container-toggle-expanded-color: var(--cy-navigation-item-subitems-container-toggle-expanded-color, var(--_cy-navigation-item-link-hover-color));--_cy-navigation-item-subitems-container-header-border: var(--cy-navigation-item-subitems-container-header-border, var(--_cy-navigation-item-border));--_cy-navigation-item-subitems-container-padding-inline-start: var(--cy-navigation-item-subitems-container-padding-inline-start);--_cy-navigation-item-subitems-container-background: var(--cy-navigation-item-subitems-container-background, var(--_cy-page-header-navigation-container-small-background, var(--cy-base-color-surface-dark, #dddddd)));--_cy-navigation-item-subitems-container-box-shadow: var(--cy-navigation-item-subitems-container-box-shadow, none);--_cy-navigation-item-subitems-container-border-radius: var(--cy-navigation-item-subitems-container-border-radius, 0px);--_cy-navigation-item-subitems-container-max-inline-size: var(--cy-navigation-item-subitems-container-max-inline-size, var(--cy-navigation-item-subitems-container-min-width, 20rem));--_cy-navigation-item-subitems-container-toggle-indicator-size: var(--cy-navigation-item-subitems-container-toggle-indicator-size, 8px);--_cy-navigation-item-subitems-container-toggle-indicator-filter: var(--cy-navigation-item-subitems-container-toggle-indicator-filter, none);--_cy-navigation-item-subitems-indicator-size: var(--cy-navigation-item-subitems-indicator-size, var(--cy-base-icon-size-xsmall));--_cy-navigation-item-subitems-indicator-color: var(--cy-navigation-item-subitems-indicator-color);--_cy-navigation-item-subitems-container-subitems-indicator-color: var(--cy-navigation-item-subitems-container-subitems-indicator-color);--_cy-navigation-item-subitems-transition: var(--cy-navigation-item-subitems-transition, padding .2s ease, transform .2s ease, translate .2s ease-in-out, block-size .2s ease, opacity .2s ease, visibility .2s ease);--_cy-navigation-item-level-1-subitems-container-inset-block-start: var(--cy-navigation-item-level-1-subitems-container-inset-block-start, 100%);--_cy-navigation-item-level-1-subitems-container-offset: var(--cy-navigation-item-level-1-subitems-container-offset, 0px);--_cy-navigation-item-level-1-subitems-container-padding-inline: var(--cy-navigation-item-level-1-subitems-container-padding-inline, 0px);--_cy-navigation-item-level-1-subitems-container-padding-block: var(--cy-navigation-item-level-1-subitems-container-padding-block, var(--_cy-navigation-item-level-1-subitems-container-padding-inline));--_cy-navigation-item-panel-subitems-container-padding-block: var(--cy-navigation-item-level-1-panel-subitems-container-padding-block, var(--_cy-navigation-row-gap));--_cy-navigation-item-panel-subitems-container-padding-inline: var(--cy-navigation-item-level-1-panel-subitems-container-padding-inline, var(--_cy-navigation-column-gap));--_cy-navigation-item-navigation-list-column-min-inline-size: var(--cy-navigation-item-navigation-list-column-min-inline-size, var(--cy-navigation-item-navigation-list-column-min-width, 16rem));--_cy-navigation-item-default-grid-template-areas: "--icon --label";--_cy-navigation-item-default-grid-template-columns: max-content 1fr;--_cy-navigation-item-dropdown-heading-margin-block-start: var(--cy-navigation-dropdown-heading-margin-block, var(--_cy-navigation-row-gap, var(--cy-base-space-base, 1.2rem)))}}@layer _component{:host{display:contents;interpolate-size:allow-keywords}
541a,button{cursor:pointer}.navigation-item{display:grid;grid-template-columns:subgrid;align-content:center;font-family:var(--_cy-navigation-item-font-family);font-size:var(--_cy-navigation-item-font-size);color:var(--_cy-navigation-item-text-color);&[data-cy-navigation-level="1"]{--_cy-navigation-item-text-color: var(--_cy-navigation-item-level-1-color)}&[data-cy-navigation-level="1"]{anchor-name:--navigation-item;>.subitems-container-toggle{&:after{content:"";position:absolute;z-index:1;inset-block-start:var(--_cy-navigation-item-level-1-subitems-container-inset-block-start);inset-inline-start:50%;inline-size:0;block-size:0;transform:translate(-50%,-100%);border-inline-start:var(--_cy-navigation-item-subitems-container-toggle-indicator-size) solid transparent;border-inline-end:var(--_cy-navigation-item-subitems-container-toggle-indicator-size) solid transparent;border-block-end:var(--_cy-navigation-item-subitems-container-toggle-indicator-size) solid var(--_cy-navigation-item-subitems-container-background);filter:var(--_cy-navigation-item-subitems-container-toggle-indicator-filter);transition:var(--cy-if-user-prefers-reduced-motion, var(--_cy-navigation-item-subitems-transition));opacity:0}&[aria-expanded=true]:after{opacity:1}}}>cy-button{padding-inline:0;padding-block:var(--_cy-navigation-item-content-padding-inline);:host(:not([data-cy-navigation-direction="horizontal"][level="1"]):last-child) &{padding-block-end:0}:host([data-cy-navigation-direction]) &{grid-column:initial}}&:not([data-cy-navigation-level="1"]){&:has(.navigation-item-content[aria-expanded=true]){--_cy-navigation-item-text-color: var(--_cy-navigation-item-expanded-toggle-color)}a[href],button,:has(a[href]){&:hover,&:focus-visible,&:focus-within,&:active{--_cy-navigation-item-content-background: var(--_cy-navigation-item-link-hover-background-color);--_cy-navigation-item-content-color: var(--_cy-navigation-item-link-hover-color)}}}&:not([data-cy-navigation-level="1"],[data-cy-navigation-level="2"],[data-cy-navigation-level="3"]) .subitems-container{grid-template-areas:"--indentation --icon --label";grid-template-columns:var(--_cy-navigation-item-subitems-indentation, 2rem) var(--_cy-navigation-item-default-grid-template-columns)}&[data-cy-navigation-level="5"] .subitems-container{--_cy-navigation-item-subitems-indentation: 3rem}}.navigation-item-content{position:relative;display:inline grid;grid-column:1/-1;align-items:center;gap:var(--_cy-navigation-item-content-gap);box-sizing:content-box;min-block-size:var(--_cy-navigation-item-content-min-block-size);margin:0;padding-inline:var(--_cy-navigation-item-content-padding-inline);padding-block:var(--_cy-navigation-item-content-padding-block);border:none;font-family:inherit;font-size:inherit;font-weight:var(--_cy-navigation-item-content-font-weight);text-decoration:none;line-height:var(--_cy-navigation-item-content-line-height);text-align:start;background:var(--_cy-navigation-item-content-background, none);color:var(--_cy-navigation-item-content-color, inherit);transition:var(--cy-if-user-prefers-reduced-motion, var(--_cy-navigation-item-content-transition));[data-cy-navigation-level="1"]>&{--_cy-navigation-item-content-padding-inline: var(--_cy-navigation-item-level-1-content-padding-inline);grid-template-areas:var(--_cy-navigation-item-default-grid-template-areas);font-weight:var(--_cy-navigation-item-level-1-font-weight)}:host(:not([level="1"])) &{border-block-end:var(--_cy-navigation-item-border);&.navigation-item-heading{border-block-end-color:var(--_cy-navigation-item-nested-accent-emphasized-color)}}:host(:last-child) &:not(.navigation-item-heading){border-block-end-style:none}&:focus-visible{outline-offset:-2px}&[aria-current=page],&:has(>[aria-current=page]){font-weight:var(--_cy-navigation-item-content-current-font-weight);text-decoration:var(--_cy-navigation-item-content-current-text-decoration);text-underline-offset:var(--_cy-navigation-item-content-current-text-underline-offset);color:var(--_cy-navigation-item-level-1-content-current-color);:not([data-cy-navigation-level="1"])>&{background-color:var(--_cy-navigation-item-content-current-background-color);color:var(--_cy-navigation-item-content-current-color)}}&[data-active=true],&:has(>[data-active=true]){font-weight:var(--_cy-navigation-item-content-active-font-we
541ight);text-decoration:var(--_cy-navigation-item-content-active-text-decoration);text-underline-offset:var(--_cy-navigation-item-content-active-text-underline-offset);color:var(--_cy-navigation-item-level-1-content-active-color);:not([data-cy-navigation-level="1"])>&{background-color:var(--_cy-navigation-item-content-active-background-color);color:var(--_cy-navigation-item-content-active-color)}}[data-cy-navigation-level="1"]>&{white-space:nowrap;&:hover,&:focus-visible,&:focus-within,&:active{color:var(--_cy-navigation-item-level-1-link-hover-color)}}}.subitems-container-toggle{[data-cy-navigation-level="1"]>&{&[aria-expanded=true]{text-decoration:var(--_cy-navigation-item-level-1-expanded-text-decoration);text-underline-offset:var(--_cy-navigation-item-level-1-expanded-text-underline-offset);color:var(--_cy-navigation-item-level-1-expanded-color)}}:not([data-cy-navigation-level="1"])>&{&[aria-expanded=true]{--_cy-navigation-item-content-background: var(--_cy-navigation-item-subitems-container-toggle-expanded-background-color) !important;--_cy-navigation-item-content-color: var(--_cy-navigation-item-subitems-container-toggle-expanded-color) !important;.subitems-indicator{translate:calc(var(--_cy-navigation-item-content-padding-inline) - var(--cy-base-space-xxsmall))}}}}.navigation-item-heading{grid-template-columns:var(--_cy-navigation-item-default-grid-template-columns);grid-template-areas:var(--_cy-navigation-item-default-grid-template-areas);gap:var(--_cy-navigation-item-content-gap);&:not(:has(cy-icon)){column-gap:0}font-size:var(--_cy-navigation-item-heading-font-size);font-weight:var(--_cy-navigation-item-heading-font-weight);text-transform:var(--_cy-navigation-item-heading-text-transform);color:var(--_cy-navigation-item-heading-text-color);.subitems-indicator{display:none}.heading-link-indicator{--_cy-icon-size: var(--_cy-navigation-item-heading-link-indicator-size);rotate:-90deg}&:has(a[href]){&:hover,&:focus-within,&:active{color:var(--_cy-navigation-item-link-hover-color, var(--_cy-navigation-item-heading-text-color))}}a[href]{position:absolute;inset:0;display:inherit;grid-template-columns:inherit;grid-template-areas:inherit;align-items:inherit;gap:inherit;padding-inline:var(--_cy-navigation-item-content-padding-inline);padding-block:var(--_cy-navigation-item-content-padding-block);text-decoration:none;color:inherit}}.label{display:flex;align-items:center;gap:0;&:has(.icon){gap:inherit}&:where(cy-button){display:inline-block}}cy-icon{--_cy-icon-size: var(--_cy-navigation-item-icon-size)}.label-text{--cy-if-hidden-disable: var(--_cy-if-navigation-item-label-visible);flex:1;display:flex;align-items:center;column-gap:var(--_cy-navigation-item-content-gap)}.navigation-item-content:has(cy-image){min-block-size:auto;padding:0;.label,cy-image{grid-column:1/-1;grid-row:1}.label{position:relative;z-index:1;align-self:end;box-sizing:border-box;padding-block:var(--_cy-navigation-item-content-padding-block);overflow-wrap:anywhere;hyphens:auto;background-color:color-mix(in srgb,var(--_cy-navigation-item-image-label-background-color),transparent calc(100% - var(--_cy-navigation-item-image-label-background-opacity)));color:var(--_cy-navigation-item-image-label-color)}.label-text,cy-icon{translate:var(--_cy-navigation-item-content-padding-inline)}.label-text{margin-inline-end:calc(var(--_cy-navigation-item-content-padding-inline) * 2)}}.navigation-item-content:has(cy-text-input){--cy-form-field-wrapper-margin-inline: var(--_cy-navigation-item-content-form-field-margin-inline);--cy-form-element-label-text-color: currentcolor;--_cy-navigation-item-border: none;--_cy-navigation-item-content-padding-inline: 0px;grid-column:1/-1;grid-template-columns:none;form{display:contents}}.subitems-indicator{--_cy-icon-size: var(--_cy-navigation-item-subitems-indicator-size);margin-inline-start:auto;color:var(--_cy-navigation-item-subitems-indicator-color);transition:transform .2s ease-in-out,translate .2s ease-in-out;:host([data-cy-navigation-direction="horizontal"]:not([level="1"])) &,:host([data-cy-navigation-direction="vertical"]) &{color:var(--_cy-navigation-item-subitems-container-subitems-indicator-color)}[data-cy-navigation-level="1"] &{margin-inline-start:0}[aria-expanded=true] &{transform:rotate(-180deg)}}.subitems-container{inset-inline-start:var(--_cy-navigation-item-subitems-inset-inline-start);inset-inline-end:var(--_cy-navigation-item-subitems-inset-inline-end);
541display:grid;grid-column:1/-1;grid-template-rows:max-content;overflow:hidden;transition:var(--cy-if-user-prefers-reduced-motion, var(--_cy-navigation-item-subitems-transition));&[aria-hidden=true]{opacity:0;visibility:hidden;block-size:0}[data-cy-navigation-level="1"]>&{position:absolute;inset-block-start:100%;margin-block-start:var(--_cy-navigation-item-level-1-subitems-container-offset);margin-inline:var(--_cy-navigation-item-level-1-subitems-container-offset);border-radius:var(--_cy-navigation-item-subitems-container-border-radius);background:var(--_cy-navigation-item-subitems-container-background);box-shadow:var(--_cy-navigation-item-subitems-container-box-shadow)}}.subitems-container-header{display:none}.subitems-container-content{display:contents}}@layer variants{[data-cy-navigation-items-layout=dropdown]{:host(:not(:first-child)) & .navigation-item-heading{margin-block-start:var(--_cy-navigation-item-dropdown-heading-margin-block-start)}:not(.navigation-item-heading)+.subitems-container{padding-block:var(--_cy-navigation-item-level-1-subitems-container-padding-block)}&[data-cy-navigation-level="1"]{.subitems-container{position-anchor:--navigation-item;justify-self:anchor-center}:host(:first-child)>&>.subitems-container{inset-inline-start:var(--cy-navigation-item-first-child-dropdown-subitems-container-inset-inline-start);translate:var(--cy-navigation-item-first-child-dropdown-subitems-container-translate)}@supports not (position-area: top){position:relative;z-index:1;.subitems-container{inset-block-start:var(--_cy-navigation-item-level-1-subitems-container-inset-block-start);inset-inline-start:var( --cy-if-not-navigation-item-first-child, var( --cy-if-not-secondary-navigation, 50% ) );transform:var(--cy-if-not-navigation-item-first-child, var( --cy-if-not-secondary-navigation, translateX(-50%) ))}}>.subitems-container{--_cy-navigation-item-subitems-container-level-1-padding-inline-end: calc( var(--_cy-navigation-item-level-1-subitems-container-padding-inline) + var(--_cy-navigation-item-subitems-container-level-1-width, 0px) + var(--_cy-navigation-item-subitems-container-level-2-width, 0px) + var(--_cy-navigation-item-subitems-container-level-3-width, 0px) + var(--_cy-navigation-item-subitems-container-level-4-width, 0px) + var(--_cy-navigation-item-subitems-container-level-5-width, 0px) + var(--_cy-navigation-item-subitems-container-level-6-width, 0px) + var(--_cy-navigation-item-subitems-container-level-7-width, 0px) + var(--_cy-navigation-item-subitems-container-level-8-width, 0px) + var(--_cy-navigation-item-subitems-container-level-9-width, 0px) );min-block-size:max(var(--_cy-navigation-item-subitems-container-level-2-content-height, 0px),var(--_cy-navigation-item-subitems-container-level-3-content-height, 0px),var(--_cy-navigation-item-subitems-container-level-4-content-height, 0px),var(--_cy-navigation-item-subitems-container-level-5-content-height, 0px),var(--_cy-navigation-item-subitems-container-level-6-content-height, 0px),var(--_cy-navigation-item-subitems-container-level-7-content-height, 0px),var(--_cy-navigation-item-subitems-container-level-8-content-height, 0px),var(--_cy-navigation-item-subitems-container-level-9-content-height, 0px));padding-inline-end:var(--_cy-navigation-item-subitems-container-level-1-padding-inline-end)}}&:not([data-cy-navigation-level="1"]):has(.subitems-container-toggle){.subitems-indicator{transform:rotate(-90deg)}.subitems-container{position:absolute;z-index:2;grid-template-areas:var(--_cy-navigation-item-default-grid-template-areas);grid-template-columns:var(--_cy-navigation-item-default-grid-template-columns);align-content:start;overflow-y:auto;background:var(--_cy-navigation-item-subitems-container-background);:host([data-cy-navigation-direction="vertical"]) &{position:fixed}:host(:not([data-cy-navigation-direction="vertical"])) :not([data-cy-navigation-level="1"]) &{border-inline-start:var(--_cy-navigation-item-border);border-inline-start-color:var(--_cy-navigation-item-nested-accent-color)}.subitems-container-content{display:grid;grid-template-columns:subgrid;grid-column:1 / -1}&[aria-hidden=true]{visibility:hidden;block-size:100%}}.subitems-container-header{position:sticky;z-index:1;inset-block-start:0;display:flex;grid-column:1 / -1;align-items:center;column-gap:1rem;min-block-size:calc(var(--_cy-page-header-min-block-size) - var(--_cy-page-header-bottom-border-width));padding-inline-start:var(--_cy-navigation-vertical-padding-inline);border-block-end:var(--_cy-navigation-item-subitems-container-header-border);background:var(--_cy-navigation-item-subitems-container-background);.back-button{--cy-button-ghost-text-color: currentcolor;--cy-button-ghost-hover-text-color: var(--cy-button-ghost-text-color);--cy-button-ghost-hover-background-color: var(--_cy-navigation-item-link-hover-background-color);grid-column:1 / -1}.subitems-container-header-title{all:unset;margin:0;margin-inline-end:7rem}:host([data-cy-navigation-direction="horizontal"]) &{display:none}}:host([data-cy-navigation-direction="vertical"]) &{.subitems-container{inset:0;overflow:hidden;padding:0;padding-inline-start:var(--_cy-navigation-item-subitems-container-padding-inline-start);overscroll-behavior:none;touch-action:none;&[data-cy-navigation-current-expanded]{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y}&[aria-hidden=true]{transform:translate(100%);scale:0 1}}}:host([data-cy-navigation-direction="horizontal"]) &{.subitems-container{inset-block:0;inset-inline-start:calc(100% + var(--_cy-navigation-item-level-1-subitems-container-padding-inline));inline-size:max-content;overflow:visible;border-block-start:none;&[aria-hidden=true]{box-sizing:border-box;opacity:0}
541.back-button{display:none}}}}}[data-cy-navigation-items-layout=panel]{&[data-cy-navigation-level="1"]{.subitems-container{--_cy-navigation-item-subitems-in-page-wrap-inset-inline: calc(var(--cy-navigation-item-subitems-in-page-wrap-inset-inline, var(--_cy-page-wrap-padding-inline)) * -1);--_cy-navigation-item-subitems-inset-inline-start: var(--_cy-navigation-item-subitems-in-page-wrap-inset-inline, 0);--_cy-navigation-item-subitems-inset-inline-end: var(--_cy-navigation-item-subitems-in-page-wrap-inset-inline, 0);padding-block:var(--_cy-navigation-item-panel-subitems-container-padding-inline);padding-inline:var(--_cy-navigation-item-panel-subitems-container-padding-inline)}}&[data-cy-navigation-level="1"] ::slotted(.navigation-list){grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--_cy-navigation-item-navigation-list-column-min-inline-size)),1fr));align-items:start}:host([data-cy-navigation-direction="horizontal"]) &{&[data-cy-panel-layout-position=end]{grid-column-end:var(--cy-if-page-header-size-small, -1);justify-content:var(--cy-if-page-header-size-small, end);&:has(cy-button){grid-template-areas:var(--cy-if-page-header-size-small, none);grid-template-columns:var(--cy-if-page-header-size-small, max-content)}}}.subitems-container{overflow:visible}.navigation-item-content:has(cy-text-input){--cy-form-field-wrapper-margin-inline: 0}}}
542`,lm=lb;var ms=class extends Jr{constructor(){super(...arguments);this.prevData={}}render(t){return _}update(t,[r]){this.element!==t.element&&(this.element=t.element),this.host=t.options?.host||this.element,this.apply(r),this.groom(r),this.prevData={...r}}apply(t){if(!t)return;let{prevData:r,element:a}=this;for(let n in t){let o=t[n];o!==r[n]&&(a[n]=o)}}groom(t){let{prevData:r,element:a}=this;if(r)for(let n in r)(!t||!(n in t)&&a[n]===r[n])&&(a[n]=void 0)}},VS=vt(ms),vs=class extends ms{constructor(){super(...arguments);this.eventData={}}apply(t){if(t)for(let r in t){let a=t[r];a!==this.eventData[r]&&this.applyEvent(r,a)}}applyEvent(t,r){let{prevData:a,element:n}=this;this.eventData[t]=r,a[t]&&n.removeEventListener(t,this,r),n.addEventListener(t,this,r)}groom(t){let{prevData:r,element:a}=this;if(r)for(let n in r)(!t||!(n in t)&&a[n]===r[n])&&this.groomEvent(n,r[n])}groomEvent(t,r){let{element:a}=this;delete this.eventData[t],a.removeEventListener(t,this,r)}handleEvent(t){let r=this.eventData[t.type];typeof r=="function"?r.call(this.host,t):r.handleEvent(t)}disconnected(){let{eventData:t,element:r}=this;for(let a in t){let n=a.slice(1),o=t[a];r.removeEventListener(n,this,o)}}reconnected(){let{eventData:t,element:r}=this;for(let a in t){let n=a.slice(1),o=t[a];r.addEventListener(n,this,o)}}},WS=vt(vs),yd=class extends vs{apply(e){if(!e)return;let{prevData:t,element:r}=this;for(let a in e){let n=e[a];if(n===t[a])continue;let o=a.slice(1);switch(a[0]){case"@":this.eventData[o]=n,this.applyEvent(o,n);break;case".":r[o]=n;break;case"?":n?r.setAttribute(o,""):r.removeAttribute(o);break;default:n!=null?r.setAttribute(a,String(n)):r.removeAttribute(a);break}}}groom(e){let{prevData:t,element:r}=this;if(t)for(let a in t){let n=a.slice(1);if(!e||!(a in e)&&r[n]===t[a])switch(a[0]){case"@":this.groomEvent(n,t[a]);break;case".":r[n]=void 0;break;case"?":r.removeAttribute(n);break;default:r.removeAttribute(a);break}}}},br=vt(yd);function _r(i,e,t=!1){let r=null,a=null;return function(...n){a=n;let o=t&&!r,s=()=>{r=null,!t&&a&&(i.apply(this,a),a=null)};r!==null&&clearTimeout(r),r=setTimeout(s,e),o&&i.apply(this,n)}}var cb=P`@layer _settings{:host{--_cy-input-suffix-spinner-size: var(--cy-input-suffix-spinner-size, 18px) }}@layer _component{::slotted(*),slot>*{place-self:center center}::slotted(cy-button),::slotted(cy-tooltip){--_cy-button-block-size: auto;--cy-button-ghost-text-color: var(--_cy-input-suffix-color)}::slotted(cy-button){--cy-button-flex-type: flex}::slotted([slot]){--cy-button-block-size: 0}::slotted(cy-spinner){--cy-spinner-size: var(--_cy-input-suffix-spinner-size);--cy-spinner-embedded-size: var(--cy-spinner-size);--cy-spinner-primary-color: var(--_cy-input-suffix-color);block-size:var(--cy-spinner-size)}.input-wrapper{display:flex;align-items:center;input{inline-size:var(--_cy-input-inline-size);block-size:var(--_cy-input-block-size)}&.has-suffix input{&::-webkit-search-decoration,&::-webkit-search-cancel-button{display:none}}&:has([type=color]){padding-inline:0;border:none}@container style(--cy-input-inline-size){display:inline-flex}}input{&[type=color]{max-inline-size:3rem;aspect-ratio:1;padding:0;border:initial;background:initial}&[type=search]{appearance:initial}&[type=time]{--cy-input-inline-size: min-content}&::-webkit-calendar-picker-indicator{display:none}}.suffix{display:flex;justify-content:center;box-sizing:border-box;block-size:var(--_cy-input-block-size);margin-inline-end:calc(var(--_cy-input-padding-inline) * -.5);background-color:var(--_cy-input-background-color)}}@layer _variants{.input-wrapper.has-suffix{border-radius:var(--_cy-input-border-radius);input{outline:none}.suffix{aspect-ratio:1}}.input-wrapper:not(.has-suffix){.suffix{display:none}}[type=color]{+.suffix{display:none}}}
543`,cm=cb;var db=P`@layer _settings,_component,_variants;@layer _settings{:host{--_cy-form-field-wrapper-margin-inline: var( --cy-form-field-wrapper-margin-inline, 0 );--_cy-form-element-input-state-color: var(--cy-form-element-input-state-color);--_cy-form-element-label-text-color: var( --cy-form-element-label-text-color, var(--cy-base-color-text, black) );--_cy-form-element-label-font-size: var( --cy-form-element-label-font-size, var(--cy-base-text-font-size-small, .875rem) );--_cy-form-element-label-spacing: var(--cy-form-element-label-spacing, 0);--_cy-form-element-row-gap: var( --cy-form-element-row-gap, var(--cy-base-padding-small, .5rem) )}}
543@layer _component{.form-field{display:grid;grid-template-columns:1fr;row-gap:var(--_cy-form-element-row-gap);&:has(:user-invalid,.is-touched[required]:invalid),&.has-custom-error{--_cy-form-element-input-state-color: var(--cy-base-color-status-error);.form-field-error{display:block}}&:has(:user-valid){--_cy-form-element-input-state-color: var(--cy-base-color-status-success)}&:has(:focus-visible) .input-wrapper{--cy-focus-outline-color: #333333;--cy-focus-outline-color-inverted: #ffffff;--cy-focus-outline-offset: 2px;--cy-focus-outline-style: solid;--cy-focus-outline-width: 2px;outline:var(--cy-focus-outline-color, #333333) var(--cy-focus-outline-style, solid) var(--cy-focus-outline-width, 2px);outline-offset:var(--cy-focus-outline-offset, 2px);box-shadow:0 0 0 var(--cy-focus-outline-width) var(--cy-focus-outline-color-inverted)}}.form-field-wrapper{margin-inline:var(--_cy-form-field-wrapper-margin-inline)}.form-field-error,.form-field-hint,.form-field-label{display:inline-flex;margin:var(--_cy-form-element-label-spacing);font-family:var(--cy-base-text-font-family-base-list);font-size:var(--_cy-form-element-label-font-size);color:var(--_cy-form-element-label-text-color)}.form-field-error{display:none;color:var(--_cy-form-element-input-state-color, inherit)}}
544`,dm=db;var Ue=class extends ${constructor(){super();this.labelHidden=!1;this.requiredText="* ";this.hasCustomError=!1;this.internals_=this.attachInternals()}static get formAssociated(){return!0}get form(){return this.internals_.form}get validity(){return this.internals_.validity}get validationMessage(){return this.internals_.validationMessage}get willValidate(){return this.internals_.willValidate}setValidity(t,r,a){this.internals_.setValidity(t,r,a)}checkValidity(){return this.internals_.checkValidity()}reportValidity(){return this.internals_.reportValidity()}get value(){return this.value_}set value(t){this.value_=t}get _formFieldClassNameList(){return Z({"form-field":!0,"has-custom-error":this.hasCustomError})}_renderIfLabel(t){let r=`${this.label} ${this.required?this.requiredText:""}`,a=`${this.id??"form-field"}-label`;return this.label?t?Qe`
545                      <div
546                          id=${a}
547                          class="form-field-label"
548                          ?data-cy-visually-hidden=${this.labelHidden}
549                      >
550                          ${r}
551                      </div>
552                  `:Qe`
553                      <label
554                          id=${a}
555                          for="${M(this.id)}"
556                          class="form-field-label"
557                          ?data-cy-visually-hidden=${this.labelHidden}
558                      >
559                          ${r}
560                      </label>
561                  `:_}_renderIfErrorMessage(){return this.errorMessage?Qe`
562                  <div class="form-field-error">${this.errorMessage}</div>
563              `:_}_renderIfHint(){return this.hint?Qe`
564                <div class="form-field-hint">${this.hint}</div>
565            `:_}_renderFormField(t,r){return Qe`
566            <div class=${this._formFieldClassNameList} >
567                ${this._renderIfLabel(r)}
568                <div class="form-field-wrapper">
569                    ${t(this.errorMessage||this.hint?`${this.id}-description`:void 0)??_}
570                </div>
571                ${this.errorMessage||this.hint?Qe`
572                          <div
573                              class="form-field-description"
574                              id="${this.id}-description"
575                          >
576                              ${this._renderIfErrorMessage()} ${this._renderIfHint()}
577                          </div>
578                      `:_}
579            </div>
580        `}};Ue.styles=[...$.styles,De,dm],Ue.shadowRootOptions={...Et.shadowRootOptions,delegatesFocus:!0},u([m({type:String})],Ue.prototype,"id",2),u([m({type:String})],Ue.prototype,"errorMessage",2),u([m({type:String})],Ue.prototype,"hint",2),u([m({type:String})],Ue.prototype,"label",2),u([m({type:Boolean})],Ue.prototype,"labelHidden",2),u([m({type:Boolean,reflect:!0})],Ue.prototype,"required",2),u([m({type:String})],Ue.prototype,"requiredText",2),u([m({type:Boolean,reflect:!0})],Ue.prototype,"hasCustomError",2);var ub=P`@layer _settings{:host{--_cy-input-background-color: var( --cy-input-background-color, var(--cy-base-color-white, white) );--_cy-input-border-width: var( --cy-input-border-width, var(--cy-base-border-width-base, 1px) );--_cy-input-border-color: var( --_cy-input-state-color, var( --cy-input-border-color, var(--cy-base-color-border, #aaaaaa) ) );--_cy-input-border-radius: var(--cy-input-border-radius, 0);--_cy-input-text-color: var( --cy-input-text-color, var(--cy-base-color-text, black) );--_cy-input-font-family: var(--cy-base-text-font-family-base-list);--_cy-input-font-size: var( --cy-input-font-size, var(--cy-base-text-font-size-small, .875rem) );
580--_cy-input-font-weight: var( --cy-input-font-weight, var(--cy-base-text-font-weight-normal, normal) );--_cy-input-block-size: var( --cy-input-block-size, var(--cy-base-size-large, 2lh) );--_cy-input-inline-size: var(--cy-input-inline-size, 100%);--_cy-input-padding-block: var(--cy-input-padding-block, 0);--_cy-input-padding-inline: var( --cy-input-padding-inline, var(--cy-base-padding-small, .75rem) );--_cy-input-disabled-border-color: var( --cy-input-disabled-border-color, var(--cy-base-color-disabled-border, inherit) );--_cy-input-disabled-background-color: var( --cy-input-disabled-background-color, var(--cy-base-color-disabled-background, inherit) );--_cy-input-disabled-color: var( --cy-input-disabled-color, var(--cy-base-color-disabled-text, inherit) );--_cy-input-status-error-color: var( --cy-input-status-error-color, var(--cy-base-color-status-error, red) );--_cy-input-status-success-color: var( --cy-input-status-success-color, var(--cy-base-color-status-success, green) );--_cy-input-suffix-spacing: var( --cy-input-suffix-spacing, .5rem );--_cy-input-suffix-color: var( --cy-input-suffix-color, inherit );--_cy-input-small-block-size: var( --cy-input-small-block-size, var(--cy-base-size-base, 1.5lh) );--_cy-input-small-font-size: var( --cy-input-small-font-size, var(--cy-base-text-font-size-xsmall, .75rem) );--_cy-input-small-padding-inline: var( --cy-input-small-padding-inline, var(--cy-base-padding-xsmall, .5rem) );--_cy-input-small-padding-block: var(--cy-input-small-padding-block, 0);--_cy-input-small-suffix-spacing: var( --cy-input-small-suffix-spacing, var(--cy-base-space-xsmall, .25rem) )}}@layer _component{:host{--cy-button-ghost-text-color: var(--_cy-input-text-color);text-align:start}.input-wrapper{padding-inline:var(--_cy-input-padding-inline);border-width:var(--_cy-input-border-width);border-style:solid;border-color:var(--_cy-input-state-color, var(--_cy-input-border-color));border-radius:var(--_cy-input-border-radius);background-color:var(--_cy-input-background-color);input,textarea{outline:none}&:focus-within{--cy-focus-outline-color: #333333;--cy-focus-outline-color-inverted: #ffffff;--cy-focus-outline-offset: 2px;--cy-focus-outline-style: solid;--cy-focus-outline-width: 2px;outline:var(--cy-focus-outline-color, #333333) var(--cy-focus-outline-style, solid) var(--cy-focus-outline-width, 2px);outline-offset:var(--cy-focus-outline-offset, 2px)}&:has([required]:user-invalid),&:has([required].is-touched:invalid){--_cy-input-state-color: var(--_cy-input-status-error-color)}&:has([required]:user-valid){--_cy-input-state-color: var(--_cy-input-status-success-color)}&:has(input:disabled),&:has(textarea:disabled){--_cy-input-border-color: var(--_cy-input-disabled-border-color);--_cy-input-background-color: var(--_cy-input-disabled-background-color);--_cy-input-color: var(--_cy-input-disabled-color)}&:has(>:is(textarea,input):user-invalid){--_cy-input-state-color: var(--_cy-input-status-error-color)}&:has(>:is(textarea,input):read-only),&:has(>[readonly]){--_cy-input-border-color: var(--_cy-input-disabled-border-color)}}textarea,input{box-sizing:border-box;padding-block:var(--_cy-input-padding-block);border:none;font-family:var(--_cy-input-font-family);font-size:var(--_cy-input-font-size);font-weight:var(--_cy-input-font-weight);background-color:var(--_cy-input-background-color);color:var(--_cy-input-text-color);&:disabled{color:var(--_cy-input-color);pointer-events:none;opacity:1}@media(forced-colors:active){background:none}}}@layer _variants{:has(>.input--small){--_cy-input-block-size: var(--_cy-input-small-block-size);--_cy-input-font-size: var(--_cy-input-small-font-size);--_cy-input-padding-inline: var(--_cy-input-small-padding-inline);--_cy-input-padding-block: var(--_cy-input-small-padding-block);--_cy-input-suffix-spacing: var(--_cy-input-small-suffix-spacing)}}
581`,um=ub;var be=class extends Ue{constructor(){super(...arguments);this._inputRef=Ve();this.size="normal";this.disabled=!1;this.readOnly=!1;this._touched=!1}_handleChange(t){this._updateValidity(t.target),this.internals_.setFormValue(t.target.value),this._hasValue=!!t.target.value,this.emit
581(this.changeEvent,t.target?.value)}_handleBlur(t){this._updateValidity(t.target),this.internals_.setFormValue(t.target.value),this._hasValue=!!t.target.value,this._touched=!0,this.emit(this.blurEvent,t.target?.value)}_handleClick(){this.emit(this.clickEvent)}_handleFocus(t){this._updateValidity(t.target),this.emit(this.focusEvent)}_handleInput(t){this._updateValidity(t.target),this.internals_.setFormValue(t.target.value),this._hasValue=!!t.target.value,this.emit(this.inputEvent,t.target?.value)}_updateValidity(t){this.internals_.setValidity(t.validity,t.validationMessage,t)}formResetCallback(){this._inputRef?.value&&(this._hasValue=!!this.defaultValue,this._inputRef.value.setAttribute("value",this._initialValue),this._inputRef.value.value=this._initialValue,this.internals_.setFormValue(this._initialValue),this.defaultValue=this._initialValue)}firstUpdated(t){super.firstUpdated(t),this._hasValue=!!this.defaultValue,this._initialValue=this.defaultValue,this.internals_.setFormValue(this.defaultValue),this.checkValidity(),this._inputRef.value&&this._updateValidity(this._inputRef.value)}updated(t){super.updated(t),t?.has("defaultValue")&&(this.internals_.setFormValue(this.defaultValue),this.checkValidity(),this._inputRef.value&&this._updateValidity(this._inputRef.value))}connectedCallback(){super.connectedCallback(),this.internals_.setFormValue(this.defaultValue),this._hasValue=!!this.defaultValue,this.emit(this.inputEvent,this.defaultValue),this.checkValidity()}};be.styles=[...Ue.styles,um],u([m({type:String,reflect:!0})],be.prototype,"defaultValue",2),u([m({type:Boolean})],be.prototype,"standalone",2),u([m({type:String,reflect:!0})],be.prototype,"size",2),u([m({type:Boolean,reflect:!0})],be.prototype,"disabled",2),u([m({type:Number})],be.prototype,"maxLength",2),u([m({type:Number})],be.prototype,"minLength",2),u([m({type:String,reflect:!0})],be.prototype,"name",2),u([m({type:Boolean,reflect:!0})],be.prototype,"readOnly",2),u([m({type:Boolean,reflect:!0})],be.prototype,"autofocus",2),u([pe({eventName:"cy-blur"})],be.prototype,"blurEvent",2),u([pe({eventName:"cy-change"})],be.prototype,"changeEvent",2),u([pe({eventName:"cy-click"})],be.prototype,"clickEvent",2),u([pe({eventName:"cy-focus"})],be.prototype,"focusEvent",2),u([pe({eventName:"cy-input"})],be.prototype,"inputEvent",2),u([G()],be.prototype,"_hasValue",2),u([G()],be.prototype,"_touched",2),u([G()],be.prototype,"_initialValue",2);var We=class extends be{constructor(){super(...arguments);this.type="text"}get _divClassNameList(){return Z({"input-wrapper":!0,"has-suffix":this._hasSuffix})}get _inputClassNameList(){return Z({input:!0,[`input--${this.type}`]:this.type,[`input--${this.size}`]:this.size,"has-value":this._hasValue,"is-touched":this._touched})}get _spanClassNameList(){return Z({suffix:!0})}_handleSlotChange(){this._hasSuffix=this._hasSlotContent("suffix",!0)}firstUpdated(t){super.firstUpdated(t),this._hasValue=!!this.defaultValue,this._hasSuffix=this._hasSlotContent("suffix",!0),this._inputRef.value&&super._updateValidity(this._inputRef.value)}_renderInput(t,r){return Qe`
582            <div
583                class=${this._divClassNameList}
584                part="input-wrapper"
585            >
586                <input
587                    aria-describedby=${t||_}
588                    aria-labelledby=${r||_}
589                    class=${this._inputClassNameList}
590                    data-testid=${this.testId||_}
591                    id=${this.id??_}
592                    inputmode=${this.inputmode??_}
593                    maxlength=${this.maxLength??_}
594                    minlength=${this.minLength??_}
595                    min=${this.min??_}
596                    max=${this.max??_}
597                    name=${this.name??_}
598                    pattern=${this.pattern??_}
599                    step=${this.step??_}
600                    type=${this.type||"text"}
601                    .value=${this.defaultValue??_}
602                    placeholder=${M(this.placeholder)}
603                    ?autofocus=${this.autofocus}
604                    ?disabled=${this.disabled}
605                    ?readonly=${this.readOnly}
606                    ?required=${this.required}
607                    @change=${this._handleChange}
608                    @blur=${this._handleBlur}
609                    @click=${this._handleClick}
610                    @focus=${this._handleFocus}
611                    @input=${this._handleInput}
612                    part="text-input"
613                    ${Te(this._inputRef)}
614                />
615                <div class=${this._spanClassNameList}>
616                    <slot
617                        part="suffix"
618                        name="suffix"
619                        @slotchange=${this._handleSlotChange}
620                    >
621                        ${this.type==="time"?Qe`
622                                  <cy-icon
623                                      name=${"semantic-clock"}
624                                      size="xsmall"
625                                  ></cy-icon>
626                              `:_}
627                    </slot>
628                </div>
629            </div>
630        `}render(){return this.standalone?this._renderInput():this._renderFormField(this._renderInput.bind(this))}};We.styles=[...be.styles,cm],u([m({type:String})],We.prototype,"type",2),u([m()],We.prototype,"inputmode",2),u([m({type:String})],We.prototype,"max",2),u([m({type:String})],We.prototype,"min",2),u([m({type:String})],We.prototype,"pattern",2),u([m({type:Number})],We.prototype,"step",2),u([m({type:String})],We.prototype,"placeholder",2),u([G()],We.prototype,"_hasSuffix",2);customElements.get("cy-text-input")||customElements.define("cy-text-input",We);var ie=class ie extends ${constructor(){super(...arguments);this.iconOnly=!1;this.isCurrent=!1;this.isActive=!1;this.layout="dropdown";this.compactContentItem=!1;this.isButton=!1;this.toggle=!1;this.isHeading=!1;this.level=1;this.preventContentDefault=!1;this._hasSubItems=!1;this._resizeObserver=null;this._pendingRepaintFrame=null;this._navigationHost=null;this._isOpen=!1;this._toggleButtonRef=null;this._handleClickOutside=t=>{!this._isOpen||t.composedPath().includes(this)||this._closeAndNotify()};this._handleKeyDown=t=>{if(t.key!=="Escape"||!this._isOpen)return;this.renderRoot.querySelector(".navigation-item-content[aria-expanded]")?.focus(),this._closeAndNotify(),t.stopPropagation()};this._handleFocusOut=t=>{if(!this._isOpen)return;let r=t.relatedTarget;r&&r.nodeName==="CY-PAGE-HEADER"||r&&!this.contains(r)&&this._closeAndNotify()};this._handleDropdownEvent=t=>{let{source:r,isOpen:a}=t.detail;r!==this&&this.contains(r)&&this._syncScrollOwnership(),a&&r!==this&&!this.contains(r)&&this._closeAndNotify()}}_detectSubItems(){this._hasSubItems=!!this.querySelector('[slot="subitems"]')||!!this.items?.length}_updateDropdownDimensions(t){if(this.layout!=="dropdown"||this.level===1||!this._isOpen||this.getAttribute("data-cy-navigation-direction")!=="horizontal")return;let r=t.offsetWidth,n=t.querySelector(".subitems-container-content")?.offsetHeight||0,o=this._getNavigationHost();if(!o)return;let s=this.level;o.style.setProperty(`--_cy-navigation-item-subitems-container-level-${s}-width`,`${r}px`),o.style.setProperty(`--_cy-navigation-item-subitems-container-level-${s}-content-height`,`${n}px`)}_getNavigationHost(){let t=this.getRootNode();return t instanceof ShadowRoot&&(this._navigationHost=t.host),this._navigationHost}_isChromiumBrowser(){if(ie._isChromiumCached!==void 0)return ie._isChromiumCached;let t=navigator.userAgentData;return ie._isChromiumCached=t?.brands?.some(({brand:r})=>r==="Chromium")??!1,ie._isChromiumCached}async _cleanupDropdownDimensions(t=!1){if(this.layout!=="dropdown"||this.level===1)return;let r=this._getNavigationHost();if(!r)return;let a=this.level??1,n=(s,l)=>(s.style.removeProperty(l),new Promise(d=>setTimeout(d,10))),o=[`--_cy-navigation-item-subitems-container-level-${a}-width`,`--_cy-navigation-item-subitems-container-level-${a}-content-height`];for(let s of o)await n(r,s);if(t){let l=Array.from({length:10-a},(d,y)=>{let p=a+y+1;return[`--_cy-navigation-item-subitems-container-level-${p}-width`,`--_cy-navigation-item-subitems-container-level-${p}-content-height`]}).flat();for(let d of l)await n(r,d)}this._resizeObserver?.disconnect(),this._resizeObserver=null}_closeAndNotify(){this._isOpen&&(this.resetSubitemsScrollPosition(),this._cleanupDropdownDimensions(!0),this._isOpen=!1,this.emit(this.dropdownToggleEvent,{source:this,level:this.level,isOpen:!1}),this.requestUpdate())}resetSubitemsScrollPosition(){this.renderRoot.querySelector(".subitems-container")?.scrollTo({top:0,behavior:"instant"})}
630_openAndNotify(){this._isOpen=!0,this.emit(this.dropdownToggleEvent,{source:this,level:this.level,isOpen:!0}),this.requestUpdate()}updated(t){super.updated(t),t.has("_isOpen")&&(this._syncScrollOwnership(),this._handleOpenStateChange())}_syncScrollOwnership(){if(this.layout!=="dropdown"||this.getAttribute("data-cy-navigation-direction")!=="vertical")return;let t=this.renderRoot.querySelector(".subitems-container");if(!(t instanceof HTMLElement))return;let r=Array.from(this.querySelectorAll("cy-navigation-item")).some(a=>a._isOpen);t.toggleAttribute("data-cy-navigation-current-expanded",this._isOpen&&!r)}_handleOpenStateChange(){this._isOpen?(document.addEventListener("click",this._handleClickOutside),this._setupDropdownDimensionTracking(),this.layout==="dropdown"&&this.getAttribute("data-cy-navigation-direction")==="vertical"&&this._isChromiumBrowser()&&(this._pendingRepaintFrame!==null&&cancelAnimationFrame(this._pendingRepaintFrame),this.updateComplete.then(()=>{let t=this.renderRoot.querySelector(".subitems-container");!this.isConnected||!t||!this._isOpen||(this._pendingRepaintFrame=requestAnimationFrame(()=>{this._pendingRepaintFrame=null,this._isOpen&&this._forceVerticalDropdownRepaint(t)}))}))):(document.removeEventListener("click",this._handleClickOutside),this._cleanupResizeObserver(),this._pendingRepaintFrame!==null&&(cancelAnimationFrame(this._pendingRepaintFrame),this._pendingRepaintFrame=null))}_forceVerticalDropdownRepaint(t){let r=t.style.display;t.style.display="contents",t.offsetHeight,r?t.style.display=r:t.style.removeProperty("display")}_setupDropdownDimensionTracking(){this.layout!=="dropdown"||this.level===1||this.updateComplete.then(()=>{let t=this.renderRoot.querySelector(".subitems-container");t&&this._setupResizeObserver(t)})}_cleanupResizeObserver(){this._resizeObserver?.disconnect(),this._resizeObserver=null}_setupResizeObserver(t){this._cleanupResizeObserver();let r=_r(()=>this._updateDropdownDimensions(t),16);this._resizeObserver=new ResizeObserver(r),this._resizeObserver.observe(t),this._updateDropdownDimensions(t)}connectedCallback(){super.connectedCallback(),this._getNavigationHost(),this.updateComplete.then(()=>{this._detectSubItems(),this._setupEventListeners()})}_setupEventListeners(){this._hasSubItems&&(document.addEventListener("keydown",this._handleKeyDown,{passive:!0}),document.addEventListener("cy-navigation-subitems-toggle",this._handleDropdownEvent),this.addEventListener("focusout",this._handleFocusOut))}disconnectedCallback(){super.disconnectedCallback(),this._cleanupEventListeners(),this._cleanupDropdownDimensions(!0),this._resizeObserver?.disconnect(),this._resizeObserver=null,this._pendingRepaintFrame!==null&&(cancelAnimationFrame(this._pendingRepaintFrame),this._pendingRepaintFrame=null)}_cleanupEventListeners(){this._hasSubItems&&(document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("cy-navigation-subitems-toggle",this._handleDropdownEvent),this.removeEventListener("focusout",this._handleFocusOut))}closeDropdown(){if(this._isOpen){let t=this.renderRoot.querySelector(".navigation-item-content[aria-expanded]");t&&t.focus(),this._closeAndNotify()}}_handleDropdownToggle(t){t.preventDefault(),t.target.closest("button")===t.currentTarget&&t.stopPropagation();let a=t.currentTarget;this._isOpen?(a?.focus(),this._closeAndNotify()):(this._toggleButtonRef=a,this._openAndNotify(),this.layout==="dropdown"&&this._handleDropdownOpen(t.detail===0))}_handleDropdownTogglePointerDown(t){this.layout!=="dropdown"||this.level===1||this.getAttribute("data-cy-navigation-direction")!=="horizontal"||t.preventDefault()}_emitContentClickEvent(t){let r=t.currentTarget;r instanceof HTMLElement&&(this.preventContentDefault&&t.preventDefault(),this.emit(this.contentClickEvent,{source:this,contentElement:r}))}_handleDropdownToggleClick(t){this._emitContentClickEvent(t),this._handleDropdownToggle(t)}_renderButton(){if(!this.isButton)return;let t={href:this.href||void 0,target:this.target||void 0,rel:this.rel||void 0,icon:this.icon||void 0,iconOnly:this.iconOnly||void 0,size:this.buttonProps?.size??(this.compactContentItem?"small":void 0),...this.buttonProps},r=this._getContentAttributes();return E`
631            <cy-button
632                class="navigation-item-content ${this._getContentClass()}"
633                @cy-click=${this._emitContentClickEvent}
634                ${br({...t,...r})}
635            >
636                ${this.label}
637            </cy-button>
638        `}_handleBackButtonClick(t){t.preventDefault(),t.stopPropagation(),this._closeAndNotify(),this._toggleButtonRef&&this.updateComplete.then(()=>{this._toggleButtonRef?.focus(),this._toggleButtonRef=null})}_handleFormActionClick(t){let r=t.currentTarget;if(!(r instanceof HTMLElement))return;let a=r.closest("form");if(!(a instanceof HTMLFormElement))return;let n=r.getAttribute("type")||"submit";if(n==="reset"){a.reset(),this._syncTextInputAfterReset(a);return}n==="submit"&&a.requestSubmit()}_handleFormInputKeyDown(t){if(t.key!=="Enter")return;let r=this.form?.buttons?.[0]?.type||"submit";if(r==="reset")return;let a=t.currentTarget;if(!(a instanceof HTMLElement))return;let n=a?.shadowRoot?.querySelector("input");if(!(n instanceof HTMLInputElement)||!n.value.trim())return;t.preventDefault();let o=a.closest("form");if(!(o instanceof HTMLFormElement))return;if(r==="submit"){o.requestSubmit();return}o.querySelector("cy-button[slot='suffix']")?.shadowRoot?.querySelector("button, a")?.click()}_syncTextInputAfterReset(t){let r=t.querySelector("cy-text-input")?.shadowRoot?.querySelector("input");r instanceof HTMLInputElement&&(r.value=r.defaultValue||"",r.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}_handleDropdownOpen(t){this.layout==="dropdown"&&setTimeout(()=>{if(!t&&this.getAttribute("data-cy-navigation-direction")==="horizontal"){let n=this.querySelectorAll(':scope > [slot="subitems"] > cy-navigation-item');
638if(n.length===1){let o=n[0].renderRoot.querySelector("cy-text-input");if(o){o.focus();return}}}let r=this.renderRoot.querySelector('.subitems-container[aria-hidden="false"]');if(!r)return;r.querySelectorAll('cy-button, a[href], button, input, textarea, select, [tabindex]:not([tabindex="-1"])')[0]?.focus()},150)}get _classNames(){return Z({"navigation-item":!0})}_getContentClass(){return Array.isArray(this.contentClass)?this.contentClass.join(" "):this.contentClass??""}_getContentAttributes(){if(!this.contentAttributes)return{};let t=new Set(["aria-current","aria-describedby","aria-expanded","class","data-active","href","part","rel","target","type"]);return Object.fromEntries(Object.entries(this.contentAttributes).filter(([r])=>!t.has(r)&&!r.startsWith("on")))}render(){let t={class:"navigation-item-content",part:"navigation-item-content","data-active":this.isActive?"true":void 0,"aria-current":this.isCurrent?"page":void 0,"aria-describedby":this.description?"navigation-item-description":void 0},r=this._getContentAttributes(),a=this.parentElement?.closest("cy-navigation-item"),n;this.isHeading?n=!1:a?n=this.toggle:n=!0;let o=E`
639            ${!this.label&&!this.icon?_:E`
640                      <span class="label">
641                          ${this.icon?E`
642                                    <cy-icon
643                                        aria-hidden="true"
644                                        class="icon"
645                                        .name=${this.icon}
646                                    ></cy-icon>
647                                `:_}
648                          <span class="label-text">
649                              <span ?data-cy-visually-hidden=${this.iconOnly}>${this.label}</span>
650                              ${this.href&&this._hasSubItems&&!n?E`
651                                        <cy-icon
652                                            class="heading-link-indicator"
653                                            .name=${"semantic-expand"}
654                                        ></cy-icon>
655                                    `:_}
656                              ${this._hasSubItems&&n?E`
657                                        <cy-icon
658                                            aria-hidden="true"
659                                            class="subitems-indicator"
660                                            name="semantic-expand"
661                                        ></cy-icon>
662                                    `:_}
663                          </span>
664                      </span>
665                  `}
666            ${this.image?E`
667                      <cy-image
668                          .src=${this.image?.src}
669                          .alt=${this.image?.alt}
670                          .aspectRatio=${this.image?.aspectRatio}
671                      ></cy-image>
672                  `:_}
673        `,s;this.isButton&&(s=this._renderButton());let l;if(this._hasSubItems&&n)l=E`
674                <button
675                    class="${t.class} ${this._getContentClass()} subitems-container-toggle"
676                    part="${t.part}"
677                    data-active=${M(t["data-active"])}
678                    aria-describedby=${M(t["aria-describedby"])}
679                    aria-current=${M(t["aria-current"])}
680                    aria-expanded=${this._isOpen}
681                    @pointerdown=${this._handleDropdownTogglePointerDown}
682                    @click=${this._handleDropdownToggleClick}
683                    type="button"
684                    ${br(r)}
685                >
686                    ${o}
687                </button>
688            `;else if(this.form){let p=this.form.fields?.[0],v=this.form.buttons?.[0],f=v?.type||"submit",b=p?.element||"input";l=E`
689                <div
690                    class="${t.class}"
691                    part="${t.part}"
692                >
693                    <form
694                        action=${M(this.form.action)}
695                        method=${M(this.form.method||"post")}
696                    >
697                        ${o}
698                        ${p&&b==="input"?E`
699                                  <cy-text-input
700                                      id=${M("navigation-item-form-field-0")}
701                                      name=${M(p.name)}
702                                      label=${M(p.label)}
703                                      .labelHidden=${p.labelHidden??!1}
704                                      size=${M(this.compactContentItem?"small":void 0)}
705                                      type=${p.type||"search"}
706                                      placeholder=${M(p.placeholder)}
707                                      @keydown=${this._handleFormInputKeyDown}
708                                  >
709                                      ${v?E`
710                                                <cy-button
711                                                    slot="suffix"
712                                                    ?iconOnly=${v.iconOnly??!0}
713                                                    appearance="ghost"
714                                                    @cy-click=${this._handleFormActionClick}
715                                                    size=${M(this.compactContentItem?"small":void 0)}
716                                                    type=${f}
717                                                    icon=${v.icon||"semantic-search"}
718                                                >
719                                                    ${v.label}
720                                                </cy-button>
721                                            `:_}
722                                  </cy-text-input>
723                              `:_}
724                    </form>
725                </div>
726            `}else this._hasSubItems?this.href?l=E`
727                    <div
728                        role="heading"
729                        aria-level="3"
730                        class="navigation-item-heading ${t.class}"
731                        aria-describedby=${M(t["aria-describedby"])}
732                        part="${t.part} navigation-item-heading"
733                    >
734                        <a
735                            class="${this._getContentClass()}"
736                            data-active=${M(t["data-active"])}
737                            aria-current=${M(t["aria-current"])}
738                            href=${M(this.href)}
739                            target=${M(this.target)}
740                            rel=${M(this.rel)}
741                            @click=${this._emitContentClickEvent}
742                            ${br(r)}
743                        >
744                            ${o}
745                        </a>
746                    </div>
747                `:l=E`
748                    <div
749                        role="heading"
750                        aria-level="3"
751                        class="navigation-item-heading ${t.class}"
752                        aria-describedby=${M(t["aria-describedby"])}
753                        part="${t.part} navigation-item-heading"
754                        @click=${this._emitContentClickEvent}
755                        ${br(r)}
756                    >
757                        ${o}
758                    </div>
759                `:this.href?l=E`
760                <a
761                    class="${t.class} ${this._getContentClass()}"
762                    part="${t.part}"
763                    data-active=${M(t["data-active"])}
764                    aria-describedby=${M(t["aria-describedby"])}
765                    aria-current=${M(t["aria-current"])}
766                    href=${M(this.href)}
767                    target=${M(this.target)}
768                    rel=${M(this.rel)}
769                    @click=${this._emitContentClickEvent}
770                    ${br(r)}
771                >
772                    ${o}
773                </a>
774            `:l=E`
775                <span
776                    class="${t.class} ${this._getContentClass()}"
777                    part="${t.part}"
778                    data-active=${M(t["data-active"])}
779                    aria-describedby=${M(t["aria-describedby"])}
780                    aria-current=${M(t["aria-current"])}
781                    @click=${this._emitContentClickEvent}
782                    ${br(r)}
783                >
784                    ${o}
785                </span>
786            `;let d;return this._hasSubItems&&n?d=E`
787                <div
788                    class="subitems-container"
789                    part="subitems-container"
790                    aria-hidden="${!this._isOpen}"
791                    ?inert=${!this._isOpen}
792                >
793                    <div class="subitems-container-content">
794                        <div class="subitems-container-header">
795                            <cy-button
796                                class="back-button"
797                                appearance="ghost"
798                                icon="semantic-back"
799                                iconOnly
800                                size=${M(this.compactContentItem?"small":void 0)}
801                                @click=${this._handleBackButtonClick}
802                            >
803                                ${this.backButtonLabel}
804                            </cy-button>
805                            <h3 class="subitems-container-header-title">${this.label}</h3>
806                        </div>
807                        <slot name="subitems"></slot>
808                    </div>
809                </div>
810            `:this._hasSubItems&&(d=E`
811                <div
812                    class="subitems-container"
813                    aria-hidden="false"
814                >
815                    <slot name="subitems"></slot>
816                </div>
817            `),E`
818            <li
819                class=${this._classNames}
820                part="navigation-item"
821                data-cy-navigation-items-layout=${M(this.layout)}
822                data-cy-navigation-level="${M(this.level)}"
823                data-cy-panel-layout-position=${M(this.panelLayoutPosition)}
824            >
825                ${s||E`
826                          ${l} ${d}
827                      `}
828                ${this.description?E`
829                          <span
830                              id="navigation-item-description"
831                              data-cy-visually-hidden
832                          >
833                              ${this.description}
834                          </span>
835                      `:_}
836            </li>
837        `}};ie.styles=[...$.styles,lm,De],ie.dependencies={"cy-icon":xe,"cy-button":oe,"cy-image":ze,"cy-text-input":We},u([m({type:String})],ie.prototype,"label",2),u([m({type:String})],ie.prototype,"description",2),u([m({type:String})],ie.prototype,"href",2),u([m({type:String})],ie.prototype,"target",2),u([m({type:String})],ie.prototype,"rel",2),u([m({converter:t=>{if(t===null)return;let r=t.split(/\s+/).filter(Boolean);return r.length?r:[]}})],ie.prototype,"contentClass",2),u([m({type:Object})],ie.prototype,"contentAttributes",2),u([m({type:String})],ie.prototype,"icon",2),u([m({type:Boolean})],ie.prototype,"iconOnly",2),u([m({type:Boolean,reflect:!0})],ie.prototype,"isCurrent",2),u([m({type:Boolean,reflect:!0})],ie.prototype,"isActive",2),u([m({type:String})],ie.prototype,"layout",2),u([m({type:String})],ie.prototype,"backButtonLabel",2),u([m({type:Boolean,attribute:!1})],ie.prototype,"compactContentItem",2),u([m({type:Boolean})],ie.prototype,"isButton",2),u([m({type:Object})],ie.prototype,"buttonProps",2),u([m({type:Object})],ie.prototype,"image",2),u([m({type:Object})],ie.prototype,"form",2),u([m({type:Boolean})],ie.prototype,"toggle",2),u([m({type:Boolean,attribute:!1})],ie.prototype,"isHeading",2),u([m({type:Number})],ie.prototype,"level",2),u([m({type:Array})],ie.prototype,"items",2),u([m({type:String})],ie.prototype,"panelLayoutPosition",2),u([m({type:Boolean})],ie.prototype,"preventContentDefault",2),u([pe({eventName:"cy-navigation-subitems-toggle"})],ie.prototype,"dropdownToggleEvent",2),u([pe({eventName:"cy-navigation-item-content-click"})],ie.prototype,"contentClickEvent",2),u([G()],ie.prototype,"_hasSubItems",2),u([G()],ie.prototype,"_isOpen",2),u([G()],ie.prototype,"_toggleButtonRef",2);var Ti=ie;var Je=class extends ${constructor(){super(...arguments);this.label="Navigation";this.layout="dropdown";this.compactContentItems=!1;this.omitSingleRootLevel=!1;this._direction="horizontal";this._observedDirection=null;this._directionObserver=null;this._loggedWarnings=new Set;this._navigationElement=null;this._handleWindowResize=_r(()=>{this._updateDirectionFromCSS()},100);
837this._handleSlotChange=()=>{this._syncSlottedCompactContentItems()}}get maxToggleLevels(){return 3}_warnOnce(t,r){this._loggedWarnings.has(t)||(this._loggedWarnings.add(t),console.error(r))}_updateDirectionFromCSS(){if(!this._navigationElement)return;let r=getComputedStyle(this._navigationElement).getPropertyValue("--_cy-navigation-direction").trim();r!==this._observedDirection&&(this._observedDirection=r,r?(r==="vertical"||r==="horizontal")&&(this._direction=r,this.requestUpdate()):(this.removeAttribute("direction"),this._direction="horizontal",this.requestUpdate()))}syncDirectionFromCSS(){this._updateDirectionFromCSS()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._handleWindowResize),this.updateComplete.then(()=>{this._setupDirectionObserver()})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleWindowResize),this._directionObserver&&(this._directionObserver.disconnect(),this._directionObserver=null)}_setupDirectionObserver(){if(!this.shadowRoot||(this._navigationElement=this.shadowRoot.querySelector(".navigation"),!this._navigationElement))return;let t=_r(()=>this._updateDirectionFromCSS(),16,!0);this._directionObserver=new ResizeObserver(t),this._directionObserver.observe(this._navigationElement)}_syncSlottedCompactContentItems(){if(this.items)return;this.querySelectorAll("cy-navigation-item").forEach(r=>{r.compactContentItem=this.compactContentItems})}willUpdate(t){super.willUpdate(t),(t.has("items")||t.has("layout")||t.has("maxToggleLevels")||t.has("omitSingleRootLevel")||t.has("_direction"))&&this._loggedWarnings.clear()}_syncHostDirectionAttribute(){this.setAttribute("data-cy-navigation-direction",this._direction)}updated(t){super.updated(t),t.has("compactContentItems")&&this._syncSlottedCompactContentItems(),(t.has("_direction")||!this.hasAttribute("data-cy-navigation-direction"))&&this._syncHostDirectionAttribute()}get _classNames(){return Z({navigation:!0})}_normalizeLayout(t="dropdown"){return t==="panel"?"panel":"dropdown"}_getEffectiveLayout(t,r){let a=this._normalizeLayout(t.layout??r??this.layout);return this._direction==="vertical"?"dropdown":a}_calculateToggleInfo(t,r,a){let n=!!t.items?.length,o=r>(this._direction==="vertical"?2:1),s;t.isHeading?s=!1:o?s=t.toggle:s=!0;let l=s&&n,d=l?a+1:a;return{hasItemsToRender:n,willHaveToggle:s,isToggleableWithSubitems:l,newToggleLevel:d}}_shouldRenderSubitems(t,r,a,n,o,s){let{hasItemsToRender:l,isToggleableWithSubitems:d,newToggleLevel:y}=r,p=a==="panel",g=d&&y>this.maxToggleLevels,v=p&&t.toggle;g&&l&&this._warnOnce(`toggle:${s}`,`[cy-navigation] Item "${o}" exceeds the maximum toggle nesting depth (${this.maxToggleLevels}). Its ${t.items.length} child item(s) will not be rendered.`);let f=!t.isButton&&!t.form&&!r.willHaveToggle,b=p&&n&&!f;return b&&l&&this._warnOnce(`panel:${s}`,`[cy-navigation] Panel layout item "${o}" is too deeply nested. Its ${t.items.length} child item(s) will not be rendered. Only heading groups (non-toggleable, non-button, non-form items) may contain children inside panel content.`),l&&!v&&!g&&!b}_renderSubitems(t,r,a,n,o,s){let{willHaveToggle:l,newToggleLevel:d}=n,y=!l,p=y?r:r+1,g=a==="panel",v=y;return E`
838            <ul
839                class="navigation-list"
840                slot="subitems"
841                data-cy-navigation-level="${p}"
842            >
843                ${gd(t.items??[],(f,b)=>`${o}-${b}`,(f,b)=>this._renderNavigationItem(f,p,a,d,`${o}-${b}`,g,v,s))}
844            </ul>
845        `}_renderNavigationItem(t,r,a,n=0,o="root",s=!1,l=!1,d=""){let y=this._calculateToggleInfo(t,r,n),p=d?`${d} > ${t.label}`:t.label??"(unnamed)",g=!t.href&&!t.isButton&&!t.form&&!y.willHaveToggle;if(l&&g)return t.items?.length&&this._warnOnce(`heading:${o}`,`[cy-navigation] Label-only item "${p}" is nested inside a heading without a toggle. Its ${t.items.length} child item(s) will not be rendered. Add a \`toggle\` property to an ancestor to allow deeper nesting.`),_;let v=this._normalizeLayout(t.layout??a??this.layout),f=this._getEffectiveLayout(t,a),b=this._shouldRenderSubitems(t,y,v,s,p,o);return E`
846            <cy-navigation-item
847                label=${M(t.label)}
848                description=${M(t.description)}
849                href=${M(t.href)}
850                target=${M(t.target)}
851                rel=${M(t.rel)}
852                .contentClass=${t.contentClass}
853                .contentAttributes=${t.contentAttributes}
854                icon=${M(t.icon)}
855                ?iconOnly=${t.iconOnly}
856                ?isCurrent=${t.isCurrent}
857                ?isActive=${t.isActive}
858                ?toggle=${t.toggle}
859                ?isButton=${t.isButton}
860                .buttonProps=${t.buttonProps}
861                .image=${t.image}
862                .form=${t.form}
863                ?preventContentDefault=${t.preventContentDefault}
864                .compactContentItem=${this.compactContentItems}
865                .isHeading=${t.isHeading??!1}
866                layout="${f}"
867                backButtonLabel=${M(this.getI18nValue("backButtonLabel"))}
868                level="${r}"
869                panelLayoutPosition=${M(t.panelLayoutPosition)}
870                data-cy-navigation-direction=${M(this._direction)}
871            >
872                ${b?this._renderSubitems(t,r,v,y,o,p):_}
873            </cy-navigation-item>
874        `}get _effectiveItems(){if(!this.items||!this.omitSingleRootLevel||this._direction!=="vertical")return this.items;if(this.items.length!==1)return this.items;let t=this.items[0],r=t.items;return!r||!r.length||t.href||t.isButton||t.form?this.items:r.map(a=>({...a,isHeading:a.isHeading??(!!a.items?.length&&!a.toggle)}))}_renderItems(){let t=this._effectiveItems;if(!t)return null;let r=this._direction==="vertical"?2:1,a=t!==this.items,n=a?"promoted-root":"root",o=a?this._normalizeLayout(this.items[0].layout??this.layout):void 0,s=o==="panel",l=a?1:0;return gd(t,(d,y)=>`${n}-${y}`,(d,y)=>this._renderNavigationItem(d,r,o,l,`${n}-${y}`,s))}render(){let t=this._direction==="vertical"?2:1;return E`
875            <nav
876                class=${this._classNames}
877                part="root navigation"
878                aria-labelledby="navigation-label"
879            >
880                <div
881                    role="heading"
882                    aria-level="2"
883                    id="navigation-label"
884                    data-cy-visually-hidden
885                >
886                    ${this.label}
887                </div>
888                <ul
889                    class="navigation-list"
890                    part="navigation-list"
891                    data-cy-navigation-level="${t}"
892                >
893                    ${this.items?this._renderItems():E`
894                              <slot @slotchange=${this._handleSlot
894Change}></slot>
895                          `}
896                </ul>
897            </nav>
898        `}};Je.styles=[...$.styles,nm,De],Je.dependencies={"cy-icon":xe,"cy-navigation-item":Ti},Je.defaultI18n=om,u([m({type:Array})],Je.prototype,"items",2),u([m({type:String})],Je.prototype,"label",2),u([m({type:String,reflect:!0})],Je.prototype,"layout",2),u([m({type:Boolean,attribute:!1})],Je.prototype,"compactContentItems",2),u([m({type:Boolean,attribute:"omit-single-root-level"})],Je.prototype,"omitSingleRootLevel",2),u([G()],Je.prototype,"_direction",2),u([G()],Je.prototype,"_observedDirection",2);customElements.get("cy-navigation")||customElements.define("cy-navigation",Je);customElements.get("cy-navigation-item")||customElements.define("cy-navigation-item",Ti);var pb=P`@layer _settings,_conditionals,_component,_variants;@layer _settings{:host{--_cy-grid-columns: var(--cy-grid-columns, 12);--_cy-grid-columns\\@m: var(--cy-grid-columns\\@m, var(--_cy-grid-columns));--_cy-grid-columns\\@l: var(--cy-grid-columns\\@l, var(--_cy-grid-columns\\@m));--_cy-grid-auto-fit: var(--cy-grid-auto-fit);--_cy-grid-auto-fit\\@m: var(--cy-grid-auto-fit\\@m, var(--_cy-grid-auto-fit));--_cy-grid-auto-fit\\@l: var(--cy-grid-auto-fit\\@l, var(--_cy-grid-auto-fit\\@m));--_cy-grid-min-column-width: var(--cy-grid-min-column-width, 7rem);--_cy-grid-gutter-size-default: var(--cy-grid-gutter-size-default, var(--cy-base-space-base, 1.5rem));--_cy-grid-gutter-size-small: var(--cy-grid-gutter-size-small, var(--cy-base-space-small, 1rem));--_cy-grid-gutter-size-large: var(--cy-grid-gutter-size-large, var(--cy-base-space-large, 2rem));--_cy-grid-item-gutter: var(--cy-grid-item-gutter, var(--_cy-grid-gutter-size-default));--_cy-grid-item-gutter-block: var(--cy-grid-item-gutter-block, var(--_cy-grid-item-gutter));--_cy-grid-item-gutter-inline: var(--cy-grid-item-gutter-inline, var(--_cy-grid-item-gutter))}}@layer _conditionals{.object-grid:not(.object-grid--equal-height){--_cy-if-grid-item-equal-height: }}@layer _component{:host{display:block;container-type:inline-size}.object-grid{display:grid;grid-template-columns:repeat(var(--_cy-grid-auto-fit, var(--_cy-grid-columns)),minmax(min(100%,var(--_cy-grid-min-column-width)),1fr));align-items:var(--_cy-grid-align-items, start);justify-items:var(--_cy-grid-justify-items, start);column-gap:var(--_cy-grid-item-gutter-block);row-gap:var(--_cy-grid-item-gutter-block);@container (width > 30rem){--_cy-grid-columns: var(--_cy-grid-columns\\@m);--_cy-grid-auto-fit: var(--_cy-grid-auto-fit\\@m)}@container (width > 60rem){--_cy-grid-columns: var(--_cy-grid-columns\\@l);--_cy-grid-auto-fit: var(--_cy-grid-auto-fit\\@l)}}}@layer _variants{.object-grid--equal-height{--_cy-grid-item-display: grid;align-items:stretch}.object-grid--gutter-large{--_cy-grid-item-gutter-block: var(--_cy-grid-gutter-size-large)}.object-grid--gutter-small{--_cy-grid-item-gutter-block: var(--_cy-grid-gutter-size-small)}.object-grid--gutter-none{--_cy-grid-item-gutter-block: 0}.object-grid--block-center{--_cy-grid-align-items: center}.object-grid--block-end{--_cy-grid-align-items: end}.object-grid--inline-center{--_cy-grid-justify-items: center}.object-grid--inline-end{--_cy-grid-justify-items: end}}
899`,pm=pb;var hb=P`@layer _settings,_component;@layer _settings{:host{--_cy-grid-item-columns-span: var(--cy-grid-item-columns-span, 1);--_cy-grid-item-columns-span\\@m: var(--cy-grid-item-columns-span\\@m, var(--_cy-grid-item-columns-span));--_cy-grid-item-columns-span\\@l: var(--cy-grid-item-columns-span\\@l, var(--_cy-grid-item-columns-span\\@m))}}@layer _component{:host{display:contents}.object-grid-item{display:var(--_cy-grid-item-display);grid-column-end:span min(var(--_cy-grid-columns),var(--_cy-grid-item-columns-span));inline-size:100%;@container (width > 30rem){--_cy-grid-item-columns-span: var(--_cy-grid-item-columns-span\\@m)}@container (width > 60rem){--_cy-grid-item-columns-span: var(--_cy-grid-item-columns-span\\@l)}>::slotted(*){display:var(--_cy-if-grid-item-equal-height, contents)}}}@layer _variants{.object-grid-item--row-break{grid-column-start:1}.object-grid-item--row-break\\@m{@container (width > 30rem){grid-column-start:1}}.object-grid-item--row-break\\@l{@container (width > 65rem){grid-column-start:1}}}
900`,hm=hb;var mb=P`@property --cy-current-breakpoint{syntax: "<string>"; inherits: false; initial-value: default;}@property --cy-width-numerator{syntax: "<number>"; inherits: false; initial-value: 1;}@property --cy-width-denominator{syntax: "<number>"; inherits: false; initial-value: 1;}[data-cy-width]{inline-size:calc(100% / var(--_cy-width-responsive-denominator, var(--cy-width-denominator)) * var(--_cy-width-responsive-numerator, var(--cy-width-numerator)))}[data-cy-width^="1/"]{--cy-width-numerator: 1}[data-cy-width^="2/"]{--cy-width-numerator: 2}[data-cy-width^="3/"]{--cy-width-numerator: 3}[data-cy-width^="4/"]{--cy-width-numerator: 4}[data-cy-width^="5/"]{--cy-width-numerator: 5}
900[data-cy-width^="6/"]{--cy-width-numerator: 6}[data-cy-width^="7/"]{--cy-width-numerator: 7}[data-cy-width^="8/"]{--cy-width-numerator: 8}[data-cy-width^="9/"]{--cy-width-numerator: 9}[data-cy-width^="10/"]{--cy-width-numerator: 10}[data-cy-width^="11/"]{--cy-width-numerator: 11}[data-cy-width^="12/"]{--cy-width-numerator: 12}[data-cy-width$="/1"]{--cy-width-denominator: 1}[data-cy-width$="/2"]{--cy-width-denominator: 2}[data-cy-width$="/3"]{--cy-width-denominator: 3}[data-cy-width$="/4"]{--cy-width-denominator: 4}[data-cy-width$="/12"]{--cy-width-denominator: 12}[data-cy-width]{--cy-current-breakpoint: "default";@container (width >= 15rem){--cy-current-breakpoint: "s";--_cy-width-responsive-numerator: var(--cy-width-numerator\\@s);--_cy-width-responsive-denominator: var(--cy-width-denominator\\@s);&[data-cy-width-at-s]{&[data-cy-width-at-s^="1/"]{--cy-width-numerator: 1}&[data-cy-width-at-s^="2/"]{--cy-width-numerator: 2}&[data-cy-width-at-s^="3/"]{--cy-width-numerator: 3}&[data-cy-width-at-s^="4/"]{--cy-width-numerator: 4}&[data-cy-width-at-s^="5/"]{--cy-width-numerator: 5}&[data-cy-width-at-s^="6/"]{--cy-width-numerator: 6}&[data-cy-width-at-s^="7/"]{--cy-width-numerator: 7}&[data-cy-width-at-s^="8/"]{--cy-width-numerator: 8}&[data-cy-width-at-s^="9/"]{--cy-width-numerator: 9}&[data-cy-width-at-s^="10/"]{--cy-width-numerator: 10}&[data-cy-width-at-s^="11/"]{--cy-width-numerator: 11}&[data-cy-width-at-s^="12/"]{--cy-width-numerator: 12}&[data-cy-width-at-s$="/1"]{--cy-width-denominator: 1}&[data-cy-width-at-s$="/2"]{--cy-width-denominator: 2}&[data-cy-width-at-s$="/3"]{--cy-width-denominator: 3}&[data-cy-width-at-s$="/4"]{--cy-width-denominator: 4}&[data-cy-width-at-s$="/12"]{--cy-width-denominator: 12}}}@container (width >= 33rem){--cy-current-breakpoint: "m";--_cy-width-responsive-numerator: var(--cy-width-numerator\\@m, var(--cy-width-numerator\\@s));--_cy-width-responsive-denominator: var(--cy-width-denominator\\@m, var(--cy-width-denominator\\@s));&[data-cy-width-at-m]{&[data-cy-width-at-m^="1/"]{--cy-width-numerator: 1}&[data-cy-width-at-m^="2/"]{--cy-width-numerator: 2}&[data-cy-width-at-m^="3/"]{--cy-width-numerator: 3}&[data-cy-width-at-m^="4/"]{--cy-width-numerator: 4}&[data-cy-width-at-m^="5/"]{--cy-width-numerator: 5}&[data-cy-width-at-m^="6/"]{--cy-width-numerator: 6}&[data-cy-width-at-m^="7/"]{--cy-width-numerator: 7}&[data-cy-width-at-m^="8/"]{--cy-width-numerator: 8}&[data-cy-width-at-m^="9/"]{--cy-width-numerator: 9}&[data-cy-width-at-m^="10/"]{--cy-width-numerator: 10}&[data-cy-width-at-m^="11/"]{--cy-width-numerator: 11}&[data-cy-width-at-m^="12/"]{--cy-width-numerator: 12}&[data-cy-width-at-m$="/1"]{--cy-width-denominator: 1}&[data-cy-width-at-m$="/2"]{--cy-width-denominator: 2}&[data-cy-width-at-m$="/3"]{--cy-width-denominator: 3}&[data-cy-width-at-m$="/4"]{--cy-width-denominator: 4}&[data-cy-width-at-m$="/12"]{--cy-width-denominator: 12}}}@container (width >= 50rem){--cy-current-breakpoint: "l";--_cy-width-responsive-numerator: var(--cy-width-numerator\\@l, var(--cy-width-numerator\\@m));--_cy-width-responsive-denominator: var(--cy-width-denominator\\@l, var(--cy-width-denominator\\@m));&[data-cy-width-at-l]{&[data-cy-width-at-l^="1/"]{--cy-width-numerator: 1}&[data-cy-width-at-l^="2/"]{--cy-width-numerator: 2}&[data-cy-width-at-l^="3/"]{--cy-width-numerator: 3}&[data-cy-width-at-l^="4/"]{--cy-width-numerator: 4}&[data-cy-width-at-l^="5/"]{--cy-width-numerator: 5}&[data-cy-width-at-l^="6/"]{--cy-width-numerator: 6}&[data-cy-width-at-l^="7/"]{--cy-width-numerator: 7}&[data-cy-width-at-l^="8/"]{--cy-width-numerator: 8}&[data-cy-width-at-l^="9/"]{--cy-width-numerator: 9}&[data-cy-width-at-l^="10/"]{--cy-width-numerator: 10}&[data-cy-width-at-l^="11/"]{--cy-width-numerator: 11}&[data-cy-width-at-l^="12/"]{--cy-width-numerator: 12}&[data-cy-width-at-l$="/1"]{--cy-width-denominator: 1}&[data-cy-width-at-l$="/2"]{--cy-width-denominator: 2}&[data-cy-width-at-l$="/3"]{--cy-width-denominator: 3}&[data-cy-width-at-l$="/4"]{--cy-width-denominator: 4}&[data-cy-width-at-l$="/12"]{--cy-width-denominator: 12}}}@container (width >= 70rem){--cy-current-breakpoint: "xl";--_cy-width-responsive-numerator: var(--cy-width-numerator\\@xl, var(--cy-width-numerator\\@l));--_cy-width-responsive-denominator: var(--cy-width-denominator\\@xl, var(--cy-width-denominator\\@l));&[data-cy-width-at-xl]{&[data-cy-width-at-xl^="1/"]{--cy-width-numerator: 1}&[data-cy-width-at-xl^="2/"]{--cy-width-numerator: 2}&[data-cy-width-at-xl^="3/"]{--cy-width-numerator: 3}&[data-cy-width-at-xl^="4/"]{--cy-width-numerator: 4}&[data-cy-width-at-xl^="5/"]{--cy-width-numerator: 5}
900&[data-cy-width-at-xl^="6/"]{--cy-width-numerator: 6}&[data-cy-width-at-xl^="7/"]{--cy-width-numerator: 7}&[data-cy-width-at-xl^="8/"]{--cy-width-numerator: 8}&[data-cy-width-at-xl^="9/"]{--cy-width-numerator: 9}&[data-cy-width-at-xl^="10/"]{--cy-width-numerator: 10}&[data-cy-width-at-xl^="11/"]{--cy-width-numerator: 11}&[data-cy-width-at-xl^="12/"]{--cy-width-numerator: 12}&[data-cy-width-at-xl$="/1"]{--cy-width-denominator: 1}&[data-cy-width-at-xl$="/2"]{--cy-width-denominator: 2}&[data-cy-width-at-xl$="/3"]{--cy-width-denominator: 3}&[data-cy-width-at-xl$="/4"]{--cy-width-denominator: 4}&[data-cy-width-at-xl$="/12"]{--cy-width-denominator: 12}}}}
901`,gs=mb;var yt=class extends ${constructor(){super(...arguments);this.gutter="default";this.equalHeight=!1;this.alignBlock="start";this.alignInline="start"}get _classNames(){return this._applyClassNames({"object-grid":!0,"object-grid--gutter-large":this.gutter==="large","object-grid--gutter-small":this.gutter==="small","object-grid--gutter-none":this.gutter==="none","object-grid--equal-height":this.equalHeight,"object-grid--block-center":this.alignBlock==="center","object-grid--block-end":this.alignBlock==="end","object-grid--inline-center":this.alignInline==="center","object-grid--inline-end":this.alignInline==="end"})}render(){return this.style.setProperty("--cy-grid-auto-fit",this.columns==="auto"?"auto-fit":""),this.style.setProperty("--cy-grid-columns",this.columns&&!isNaN(Number(this.columns))?this.columns:""),this.style.setProperty("--cy-grid-auto-fit@m",this.columnsAtM==="auto"?"auto-fit":""),this.style.setProperty("--cy-grid-columns@m",this.columnsAtM&&!isNaN(Number(this.columnsAtM))?this.columnsAtM:""),this.style.setProperty("--cy-grid-auto-fit@l",this.columnsAtL==="auto"?"auto-fit":""),this.style.setProperty("--cy-grid-columns@l",this.columnsAtL&&!isNaN(Number(this.columnsAtL))?this.columnsAtL:""),E`
902            <div
903                class="${this._classNames}"
904                part="object-grid"
905            >
906                <slot></slot>
907            </div>
908        `}};yt.styles=[...$.styles,pm],u([m({type:String})],yt.prototype,"columns",2),u([m({attribute:"columns-at-m",type:String})],yt.prototype,"columnsAtM",2),u([m({attribute:"columns-at-l",type:String})],yt.prototype,"columnsAtL",2),u([m({type:String})],yt.prototype,"gutter",2),u([m({type:Boolean})],yt.prototype,"equalHeight",2),u([m({type:String})],yt.prototype,"alignBlock",2),u([m({type:String})],yt.prototype,"alignInline",2);var xt=class extends ${constructor(){super(...arguments);this.rowbreak=!1;this.rowbreakAtM=!1;this.rowbreakAtL=!1}get _classNames(){return this._applyClassNames({"object-grid-item":!0,"object-grid-item--row-break":this.rowbreak,"object-grid-item--row-break@m":this.rowbreakAtM,"object-grid-item--row-break@l":this.rowbreakAtL})}render(){return this.span&&this.style.setProperty("--cy-grid-item-columns-span",this.span.toString()),this.spanAtM&&this.style.setProperty("--cy-grid-item-columns-span@m",this.spanAtM.toString()),this.spanAtL&&this.style.setProperty("--cy-grid-item-columns-span@l",this.spanAtL.toString()),E`
909            <div
910                class="${this._classNames}"
911                part="object-grid-item"
912            >
913                <slot></slot>
914            </div>
915        `}};xt.styles=[...$.styles,hm,gs],u([m({type:Number})],xt.prototype,"span",2),u([m({attribute:"span-at-m",type:Number})],xt.prototype,"spanAtM",2),u([m({attribute:"span-at-l",type:Number})],xt.prototype,"spanAtL",2),u([m({type:Boolean})],xt.prototype,"rowbreak",2),u([m({attribute:"rowbreak-at-m",type:Boolean})],xt.prototype,"rowbreakAtM",2),u([m({attribute:"rowbreak-at-l",type:Boolean})],xt.prototype,"rowbreakAtL",2);customElements.get("cy-object-grid")||customElements.define("cy-object-grid",yt);customElements.get("cy-object-grid-item")||customElements.define("cy-object-grid-item",xt);var vb=P`@layer _settings,_component,_variants;@layer _settings{:host{--_cy-layout-gutter-size-default: var(--cy-layout-gutter-size-default, var(--cy-base-space-base, 1.5rem));--_cy-layout-gutter-size-small: var(--cy-layout-gutter-size-small, var(--cy-base-space-small, 1rem));--_cy-layout-gutter-size-large: var(--cy-layout-gutter-size-large, var(--cy-base-space-large, 2rem));--_cy-layout-gutter: var(--cy-layout-item-gutter, var(--_cy-layout-gutter-size-default));--_cy-layout-gutter-block: var(--cy-layout-item-gutter-block, var(--_cy-layout-gutter));--_cy-layout-gutter-inline: var(--cy-layout-item-gutter-inline, var(--_cy-layout-gutter))}}@layer _component{:host{display:block;container-type:inline-size;container-name:--layout-object}.object-layout{display:flex;flex-wrap:wrap;justify-content:start;row-gap:var(--_cy-layout-gutter-block);margin-inline-start:calc(var(--_cy-layout-gutter-inline) * -1)}}@layer _variants{.object-layout--equal-height{--_cy-layout-item-display: grid}.object-layout--gutter-large{--_cy-layout-gutter-block: var(--_cy-layout-gutter-size-large);--_cy-layout-gutter-inline: var(--_cy-layout-gutter-size-large)}.object-layout--gutter-small{--_cy-layout-gutter-block: var(--_cy-layout-gutter-size-small);--_cy-layout-gutter-inline: var(--_cy-layout-gutter-size-small)}.object-layout--gutter-none{--_cy-layout-gutter-block: 0;--_cy-layout-gutter-inline: 0}.object-layout--block-center{align-items:center}.object-layout--block-end{align-items:end}.object-layout--inline-center{justify-content:center}.object-layout--inline-end{justify-content:end}}
916`,mm=vb;var gb=P`@layer _settings,_component;@layer _settings;@layer _component{:host{display:contents}.object-layout-item{display:var(--_cy-layout-item-display);box-sizing:border-box;inline-size:100%;padding-inline-start:var(--_cy-layout-gutter-inline);>::slotted(*){flex-basis:100%}}}
917`,vm=gb;var Jt=class extends ${constructor(){super(...arguments);this.gutter="default";this.equalHeight=!1;this.alignBlock="start";this.alignInline="start"}get _classNames(){return this._applyClassNames({"object-layout":!0,"object-layout--equal-height":this.equalHeight,[`object-layout--gutter-${this.gutter}`]:this.gutter,[`object-layout--block-${this.alignBlock}`]:this.alignBlock,[`object-layout--inline-${this.alignInline}`]:this.alignInline})}render(){return E`
918            <div
919                class="${this._classNames}"
920                part="root object-layout"
921            >
922                <slot></slot>
923            </div>
924        `}};Jt.styles=[...$.styles,mm],u([m({type:String})],Jt.prototype,"gutter",2),u([m({type:Boolean})],Jt.prototype,"equalHeight",2),u([m({type:String})],Jt.prototype,"alignBlock",2),u([m({type:String})],Jt.prototype,"alignInline",2);var Pt=class extends ${get _classNames(){return this._applyClassNames({"object-layout-item":!0})}_setWidthForBreakpoint(e,t){if(e){let[r,a]=e.split("/").map(Number);this.style.setProperty(`--cy-width-numerator@${t}`,r.toString()),this.style.setProperty(`--cy-width-denominator@${t}`,a.toString())}}
924render(){return this._setWidthForBreakpoint(this.widthAtS,"s"),this._setWidthForBreakpoint(this.widthAtM,"m"),this._setWidthForBreakpoint(this.widthAtL,"l"),this._setWidthForBreakpoint(this.widthAtXL,"xl"),E`
925            <div
926                class="${this._classNames}"
927                data-cy-width="${this.width}"
928                part="object-layout-item"
929            >
930                <slot></slot>
931            </div>
932        `}};Pt.styles=[...$.styles,vm,gs],u([m({type:String})],Pt.prototype,"width",2),u([m({attribute:"width-at-s",type:String})],Pt.prototype,"widthAtS",2),u([m({attribute:"width-at-m",type:String})],Pt.prototype,"widthAtM",2),u([m({attribute:"width-at-l",type:String})],Pt.prototype,"widthAtL",2),u([m({attribute:"width-at-xl",type:String})],Pt.prototype,"widthAtXL",2);customElements.get("cy-object-layout")||customElements.define("cy-object-layout",Jt);customElements.get("cy-object-layout-item")||customElements.define("cy-object-layout-item",Pt);var yb=P`@layer _settings,_conditionals,_component,_variants;@layer _settings{:host{--_cy-page-header-z-index: var(--cy-page-header-z-index);--_cy-page-header-min-block-size: var(--cy-page-header-min-block-size, calc(5rem * var(--cy-root-font-size-multiplier, 1)));--_cy-page-header-small-min-block-size: var(--cy-page-header-small-min-block-size, calc(4rem * var(--cy-root-font-size-multiplier, 1)));--_cy-page-header-xsmall-min-block-size: var(--cy-page-header-xsmall-min-block-size, var(--_cy-page-header-small-min-block-size));--_cy-page-header-template-columns: var(--cy-page-header-template-columns, auto 1fr);--_cy-page-header-template-areas: var(--cy-page-header-template-areas, "--top-bar --top-bar" "--logo    --nav" );--_cy-page-header-small-template-areas: var(--cy-page-header-small-template-areas, "--logo --nav-toggle");--_cy-page-header-text-color: var(--cy-page-header-text-color, var(--cy-base-color-text, #000000));--_cy-page-header-background-color: var(--cy-page-header-background-color);--_cy-page-header-bottom-border-width: var(--cy-page-header-bottom-border-width, 0px);--_cy-page-header-bottom-border-color: var(--cy-page-header-bottom-border-color, transparent);--_cy-page-header-box-shadow: var(--cy-page-header-box-shadow, inset 0 calc(var(--_cy-page-header-bottom-border-width) * -1) 0 0 var(--_cy-page-header-bottom-border-color) );--_cy-page-header-padding-block-start: var(--cy-page-header-padding-block-start, var(--cy-base-padding-block, 1rem));--_cy-page-header-padding-block-end: var(--cy-page-header-padding-block-end, var(--cy-base-padding-block, 1rem));--_cy-page-header-column-gap: var( --cy-page-header-column-gap, clamp( var(--cy-base-padding-small, .75rem), 2dvi, var(--cy-base-padding-xlarge, 1.5rem) ) );--_cy-page-header-absolute-background-color: var(--cy-page-header-absolute-background-color, var(--_cy-page-header-background-color));--_cy-page-header-absolute-background-opacity: var(--cy-page-header-absolute-background-opacity, .7);--_cy-page-header-absolute-background: var( --cy-page-header-absolute-background, color-mix( in srgb, var(--_cy-page-header-absolute-background-color), transparent calc(100% - 100% * var(--_cy-page-header-absolute-background-opacity)) ) );--_cy-page-header-absolute-backdrop-filter: var(--cy-page-header-absolute-backdrop-filter, blur(15px));--_cy-page-header-logo-block-size: var(--cy-page-header-logo-small-block-size, var(--cy-page-header-logo-block-size, 3rem));--_cy-page-header-custom-logo-block-size: var(--cy-page-header-custom-logo-small-block-size, var(--cy-page-header-custom-logo-block-size, var(--_cy-page-header-logo-block-size)));--_cy-page-header-logo-gap: var(--cy-page-header-logo-gap, var(--cy-base-space-small, .75rem));--_cy-page-header-navigation-container-transition: var(--cy-page-header-navigation-container-transition, block-size .2s ease, inline-size .2s ease, padding-block .2s ease, opacity .2s ease);--_cy-page-header-navigation-container-padding-block: var(--cy-page-header-navigation-container-padding-block);--_cy-page-header-navigation-container-padding-inline: var(--cy-page-header-navigation-container-padding-inline);--_cy-page-header-navigation-container-large-column-gap: var(--cy-page-header-navigation-container-column-gap, var(--cy-base-space-base, 1rem));--_cy-page-header-navigation-container-small-row-gap: var(--cy-page-header-navigation-container-small-row-gap, var(--cy-base-space-base, 1rem));--_cy-page-header-navigation-container-small-navigation-sections-border-color: var(--cy-page-header-navigation-container-small-navigation-sections-border-color, color-mix( in srgb, currentcolor, transparent var(--cy-page-header-navigation-container-small-navigation-sections-border-color-transparency, 40%) ));--_cy-page-header-navigation-container-small-navigation-sections-border: var(--cy-page-header-navigation-container-small-navigation-sections-border, 1px solid var(--_cy-page-header-navigation-container-small-navigation-sections-border-color));--_cy-page-header-navigation-container-small-text-color: var(--cy-page-header-navigation-container-small-text-color, var(--cy-base-color-white, #ffffff));--_cy-page-header-navigation-container-small-link-color: var(--cy-page-header-navigation-container-small-text-color, var(--_cy-page-header-navigation-container-small-text-color));--_cy-page-header-navigation-container-small-background: var(--cy-page-header-navigation-container-small-background, var(--cy-base-color-surface-dark, #666666));--_cy-page-header-navigation-container-small-box-shadow: var(--cy-page-header-navigation-container-small-box-shadow, none);--_cy-page-header-navigation-container-small-padding-inline: var(--cy-page-header-navigation-container-small-padding-inline, var(--_cy-page-wrap-padding-inline, 1rem));--_cy-page-header-navigation-container-small-padding-block: var(--cy-page-header-navigation-container-small-padding-block, var(--_cy-page-header-navigation-container-small-padding-inline));--_cy-page-header-navigation-container-xsmall-padding-block: var(--cy-page-header-navigation-container-xsmall-padding-block);--_cy-page-header-navigation-toggle-color: var(--cy-page-header-navigation-toggle-color, currentColor);--_cy-page-header-navigation-toggle-justify-self: var(--cy-page-header-navigation-toggle-justify-self, end);--_cy-page-header-navigation-toggle-margin-inline-end: var(--cy-page-header-navigation-toggle-margin-inline-end, var(--_cy-page-wrap-padding-inline));--_cy-page-header-navigation-toggle-flex-direction: var(--cy-page-header-navigation-toggle-flex-direction, row-reverse);--_cy-page-header-navigation-toggle-xsmall-expanded-text-color: var(--cy-page-header-navigation-toggle-xsmall-expanded-text-color, var(--_cy-page-header-navigation-container-small-link-color));--_cy-page-header-navigation-toggle-xsmall-expanded-hover-text-color: var(--cy-page-header-navigation-toggle-xsmall-expanded-hover-text-color, var(--_cy-page-header-navigation-toggle-xsmall-expanded-text-color));--_cy-page-header-top-bar-min-block-size: var(--cy-page-header-top-bar-min-block-size, var(--cy-base-size-xlarge, 2rem));--_cy-page-header-top-bar-background-color: var(--cy-page-header-top-bar-background-color);--_cy-page-header-top-bar-subitems-container-background-color: var(--cy-page-header-top-bar-subitems-container-background-color, var(--_cy-page-header-top-bar-background-color));--_cy-page-header-top-bar-subitems-container-box-shadow: var(--cy-page-header-top-bar-subitems-container-box-shadow, none);--_cy-page-header-top-bar-navigation-dropdown-padding-inline: var(--cy-page-header-top-bar-navigation-dropdown-padding-inline, var(--cy-base-padding-small, .75rem));--_cy-page-header-top-bar-navigation-dropdown-padding-block: var(--cy-page-header-top-bar-navigation-dropdown-padding-block, var(--cy-base-padding-small, .75rem));--_cy-page-header-top-bar-navigation-item-font-size: var(--cy-page-header-top-bar-navigation-item-font-size, var(--cy-base-text-font-size-small));--_cy-page-header-top-bar-navigation-item-icon-size: var(--cy-page-header-top-bar-navigation-item-icon-size, var(--cy-base-icon-size-xsmall));--_cy-page-header-top-bar-navigation-item-content-color: var(--cy-page-header-top-bar-navigation-item-content-color, inherit);--_cy-page-header-top-bar-navigation-item-level-1-font-weight: var(--cy-page-header-top-bar-navigation-item-level-1-font-weight, var(--cy-navigation-item-level-1-font-weight));--_cy-page-header-top-bar-navigation-item-level-1-color: var(--cy-page-header-top-bar-navigation-item-level-1-color);--_cy-page-header-top-bar-navigation-item-level-1-expanded-color: var(--cy-page-header-top-bar-navigation-item-level-1-expanded-color, var(--_cy-page-header-top-bar-navigation-item-level-1-color));--_cy-page-header-top-bar-navigation-item-color: var(--cy-page-header-top-bar-navigation-item-color, var(--_cy-page-header-top-bar-navigation-item-level-1-color));--_cy-page-header-top-bar-navigation-item-content-current-color: var( --cy-page-header-top-bar-navigation-item-content-current-color, var(--_cy-page-header-top-bar-navigation-item-color) );--_cy-page-header-top-bar-navigation-item-content-active-color: var( --cy-page-header-top-bar-navigation-item-content-active-color, var(--_cy-page-header-top-bar-navigation-item-content-current-color) );--_cy-page-header-top-bar-navigation-item-link-hover-background-color: var(--cy-page-header-top-bar-navigation-item-link-hover-background-color, var(--cy-navigation-item-link-hover-background-color));--_cy-page-header-top-bar-navigation-item-content-current-background-color: var( --cy-page-header-top-bar-navigation-item-content-current-background-color, var(--_cy-page-header-top-bar-navigation-item-link-hover-background-color) );--_cy-page-header-top-bar-navigation-item-content-active-background-color: var( --cy-page-header-top-bar-navigation-item-content-active-background-color, var(--_cy-page-header-top-bar-navigation-item-content-current-background-color) );--_cy-page-header-top-bar-navigation-item-expanded-background: var( --cy-page-header-top-bar-navigation-item-expanded-background, var(--_cy-page-header-top-bar-navigation-item-link-hover-background-color) );--_cy-page-header-top-bar-navigation-subitems-container-padding-block: var(--cy-page-header-top-bar-navigation-subitems-container-padding-block, 0);--_cy-page-header-top-bar-navigation-item-content-padding-inline: var(--cy-page-header-top-bar-navigation-item-content-padding-inline, var(--cy-base-space-small))}}@layer _component{:host{interpolate-size:allow-keywords;z-index:2;display:block;background-color:var(--_cy-page-header-background-color);box-shadow:var(--_cy-page-header-box-shadow)}:host(:not([data-cy-page-header-layout])){visibility:hidden}::slotted(cy-navigation){opacity:1!important}.page-header{--cy-logo-block-size: var(--_cy-page-header-logo-block-size);::slotted(cy-logo[src]){--cy-logo-block-size: var(--_cy-page-header-custom-logo-block-size);align-self:center}--cy-navigation-position: static;z-index:var(--_cy-page-header-z-index);display:grid;grid-auto-columns:auto;grid-template-areas:var(--_cy-page-header-template-areas);grid-template-columns:var(--_cy-page-header-template-columns);align-content:center;align-items:center;column-gap:var(--_cy-page-header-column-gap);box-sizing:border-box;min-block-size:var(--_cy-page-header-min-block-size);padding-block-start:var(--_cy-page-header-padding-block-start);padding-block-end:var(--_cy-page-header-padding-block-end);color:var(--_cy-page-header-text-color)}.logo{position:relative;display:flex;grid-area:--logo;align-items:center;align-self:center;gap:var(--_cy-page-header-logo-gap)}.navigation-container{will-change:transform,opacity}[data-cy-page-header-layout=large]{--cy-navigation-item-level-1-subitems-container-inset-block-start: 100%;position:relative;align-items:end;.navigation-container{display:contents}
932.top-bar,.navigation{display:flex;flex-flow:row-reverse;justify-content:space-between;column-gap:var(--_cy-page-header-navigation-container-large-column-gap);inline-size:100%}.navigation{--cy-navigation-item-text-color: var(--_cy-page-header-navigation-container-small-link-color);--cy-navigation-item-level-1-subitems-container-inset-block-start: calc(50% + var(--_cy-page-header-min-block-size) / 2 + var(--_cy-page-header-padding-block-end));grid-area:--nav;align-items:center;align-self:stretch;>*{align-self:stretch;min-block-size:var(--_cy-page-header-min-block-size)}}&:has(.top-bar){grid-template-rows:auto var(--_cy-page-header-min-block-size);align-content:start;min-block-size:calc(var(--_cy-page-header-min-block-size) + var(--_cy-page-header-top-bar-min-block-size))}.top-bar{--cy-navigation-min-height: var(--_cy-page-header-top-bar-min-block-size);--cy-navigation-list-min-inline-size: calc(15rem * var(--cy-root-font-size-multiplier, 1));--cy-navigation-dropdown-padding-inline: var(--_cy-page-header-top-bar-navigation-dropdown-padding-inline);--cy-navigation-dropdown-padding-block: var(--_cy-page-header-top-bar-navigation-dropdown-padding-block);--cy-navigation-item-dropdown-subitems-container-margin-block-start: 0;--cy-navigation-item-subitems-container-background: var(--_cy-page-header-top-bar-subitems-container-background-color);--cy-navigation-item-subitems-container-box-shadow: var(--_cy-page-header-top-bar-subitems-container-box-shadow);--cy-navigation-item-subitems-container-toggle-indicator-size: 0;--cy-navigation-item-content-color: var(--_cy-page-header-top-bar-navigation-item-content-color);--cy-navigation-item-level-1-font-weight: var(--_cy-page-header-top-bar-navigation-item-level-1-font-weight);--cy-navigation-item-level-1-color: var(--_cy-page-header-top-bar-navigation-item-level-1-color);--cy-navigation-item-text-color: var(--_cy-page-header-top-bar-navigation-item-color);--cy-navigation-item-link-hover-background-color: var(--_cy-page-header-top-bar-navigation-item-link-hover-background-color);--cy-navigation-item-content-current-background-color: var(--_cy-page-header-top-bar-navigation-item-content-current-background-color);--cy-navigation-item-content-active-background-color: var(--_cy-page-header-top-bar-navigation-item-content-active-background-color);--cy-navigation-item-level-1-content-current-color: var(--_cy-page-header-top-bar-navigation-item-color);--cy-navigation-item-level-1-content-active-color: var(--_cy-page-header-top-bar-navigation-item-color);--cy-navigation-item-content-current-color: var(--_cy-page-header-top-bar-navigation-item-content-current-color);--cy-navigation-item-content-active-color: var(--_cy-page-header-top-bar-navigation-item-content-active-color);--cy-navigation-item-expanded-background: var(--_cy-page-header-top-bar-navigation-item-expanded-background);--cy-navigation-item-level-1-expanded-color: var(--_cy-page-header-top-bar-navigation-item-level-1-expanded-color);--cy-navigation-item-level-1-subitems-container-padding-block-end: var(--_cy-page-header-top-bar-navigation-subitems-container-padding-block);--cy-navigation-item-level-1-subitems-container-padding-inline: 0;--cy-navigation-item-content-padding-inline: var(--_cy-page-header-top-bar-navigation-item-content-padding-inline);--cy-navigation-item-icon-size: var(--_cy-page-header-top-bar-navigation-item-icon-size);--cy-navigation-item-font-size: var(--_cy-page-header-top-bar-navigation-item-font-size);--cy-navigation-item-content-min-block-size: 1.8rem;position:relative;z-index:2;display:flex;grid-area:--top-bar;align-items:center;margin-block-start:calc(var(--_cy-page-header-padding-block-start) * -1);container-type:inline-size;&:before{content:"";position:absolute;z-index:-1;inset-block:0;inset-inline-start:calc((100dvi - 100cqi)/-2);inline-size:100dvi;background-color:var(--_cy-page-header-top-bar-background-color)}}.top-bar-primary,.navigation-primary{order:1;margin-inline-end:auto}.top-bar-secondary,.navigation-secondary{--cy-if-not-secondary-navigation: ;--_cy-navigation-item-subitems-inset-inline-end: 0;justify-self:end}}.navigation-toggle{--cy-button-max-block-size: var(--_cy-page-header-logo-block-size);--cy-button-ghost-text-color: var(--_cy-page-header-navigation-toggle-color);--cy-button-flex-direction: var(--_cy-page-header-navigation-toggle-flex-direction);--cy-button-gap: var(--cy-base-space-xsmall);position:relative;z-index:1;display:none;grid-area:--nav-toggle;
932align-items:center;justify-self:var(--_cy-page-header-navigation-toggle-justify-self);margin-inline-end:calc(var(--_cy-page-header-navigation-toggle-margin-inline-end) * -1);&::part(button){padding-inline:calc(var(--_cy-button-padding-inline) / 2)}}[data-cy-page-header-layout=small],[data-cy-page-header-layout=xsmall]{--_cy-page-header-template-areas: var(--_cy-page-header-small-template-areas);--_cy-page-header-min-block-size: var(--_cy-page-header-small-min-block-size);--cy-navigation-direction: vertical;--cy-if-navigation-item-label-visible: ;--cy-navigation-item-subitems-container-header-border: var(--_cy-page-header-navigation-container-small-navigation-sections-border);position:relative;.navigation-toggle{display:flex;&[ariaexpanded=true]{--cy-button-ghost-text-color: var(--_cy-page-header-navigation-toggle-xsmall-expanded-text-color);--cy-button-ghost-hover-text-color: var(--_cy-page-header-navigation-toggle-xsmall-expanded-hover-text-color);position:fixed;inset-inline-end:var(--_cy-page-header-navigation-toggle-margin-inline-end);@supports (background: -webkit-canvas(squares)){inset-block-start:calc(var(--_cy-page-header-min-block-size) / 2);inset-inline-end:var(--_cy-page-header-navigation-container-small-padding-inline);transform:translateY(-50%)}}}.navigation-container{--_cy-page-header-navigation-container-padding-block: var(--_cy-page-header-navigation-container-small-padding-block);--cy-navigation-item-text-color: var(--_cy-page-header-navigation-container-small-link-color);position:fixed;inset:0;display:grid;grid-template-rows:max-content;row-gap:var(--_cy-page-header-navigation-container-small-row-gap);box-sizing:border-box;block-size:100dvb;overflow-y:auto;padding-inline:var(--_cy-page-header-navigation-container-padding-inline);padding-block:var(--_cy-page-header-navigation-container-padding-block);padding-block-start:calc(var(--_cy-page-header-min-block-size) - var(--_cy-page-header-bottom-border-width));overscroll-behavior:contain;:host([data-cy-navigation-expanded-level]) &{overflow:hidden}background:var(--_cy-page-header-navigation-container-small-background);color:var(--_cy-page-header-navigation-container-small-text-color);:host([data-cy-initialized]) &{transition:var(--cy-if-user-prefers-reduced-motion, var(--_cy-page-header-navigation-container-transition))}&[aria-hidden=true]{visibility:hidden;opacity:0}>*{display:grid;row-gap:var(--_cy-page-header-navigation-container-small-row-gap);&:last-child{margin-block-start:auto}>*{border-block-start:var(--_cy-page-header-navigation-container-small-navigation-sections-border)}}}}[data-cy-page-header-layout=xsmall]{--_cy-page-header-min-block-size: var(--_cy-page-header-xsmall-min-block-size);--_cy-page-header-navigation-container-padding-block: var(--_cy-page-header-navigation-container-xsmall-padding-block);
932.navigation-container{&[aria-hidden=true]{block-size:0;padding-block:0}}}[data-cy-page-header-layout=small]{.navigation-container{inset-inline-start:auto;inline-size:min(100dvi,25rem);box-shadow:var(--_cy-page-header-navigation-container-small-box-shadow);&[aria-hidden=true]{inline-size:0;padding-inline:0}}}}@layer _variants{:host([data-cy-page-header-layout="large"][position="absolute"]){position:absolute;inline-size:100dvi;background-color:var(--_cy-page-header-absolute-background);backdrop-filter:var(--_cy-page-header-absolute-backdrop-filter)}}
933`,gm=yb;var ym={navToggleLabel:"Menu",navToggleAccessibleToOpenLabel:"Open menu",navToggleAccessibleToCloseLabel:"Close menu",menuOpenedStatusMessage:"Menu opened",menuClosedStatusMessage:"Menu closed"};var Ot=class extends ${constructor(){super(...arguments);this._isMenuOpen=!1;this._headerLayout=null;this._resizeObserver=null;this._isLayoutOverridden=!1;this._headerElement=null;this._expandedNavigationLevels=new Map;this._handleClickOutside=t=>{!this._isMenuOpen||this.contains(t.target)||this._closeMenu()};this._handleKeyDown=t=>{t.key!=="Escape"||!this._isMenuOpen||(this._closeMenu(),this.updateComplete.then(()=>{this.shadowRoot?.querySelector("#navigation-toggle")?.focus()}))};this._handleFocusOut=t=>{if(!this._isMenuOpen)return;let r=t.relatedTarget;r&&!this.contains(r)&&this._closeMenu()};this._handleWindowResize=_r(()=>{this._isLayoutOverridden&&(this._clearOverflowOverride(),this._syncHeaderLayoutAttributes("large")),this._checkHeaderSize(),this._syncSlottedNavigationStateAndCheck()},100);this._handleSlotChange=()=>{this.updateComplete.then(()=>{this._isLayoutOverridden&&(this._clearOverflowOverride(),this._syncHeaderLayoutAttributes("large")),this._syncSlottedNavigationStateAndCheck()})};this._handleNavigationToggle=t=>{let{source:r,level:a,isOpen:n}=t.detail;n?this._expandedNavigationLevels.set(r,a):this._expandedNavigationLevels.delete(r),this._updateNavigationLevelAttribute()}}_toggleMenu(){this._isMenuOpen=!this._isMenuOpen,this._isMenuOpen?this._updateHostNavigationExpandedAttribute(!0):this._closeMenu()}_closeMenu(){this._isMenuOpen=!1,this.shadowRoot?.querySelector(".navigation-container")?.scrollTo({top:0,behavior:"instant"}
933),this._expandedNavigationLevels.forEach((r,a)=>{a instanceof Ti&&a.resetSubitemsScrollPosition()}),this._updateHostNavigationExpandedAttribute(!1),this._expandedNavigationLevels.clear(),this._updateNavigationLevelAttribute()}_dispatchFocusEvent(){this.dispatchEvent(new CustomEvent("cy-navigation-focus",{bubbles:!0,composed:!0,detail:{focused:!0}}))}focusNavToggle(){let t=this.shadowRoot?.querySelector("#navigation-toggle");t instanceof HTMLElement&&(t.focus(),this._isMenuOpen||this._toggleMenu(),this._dispatchFocusEvent())}_syncHeaderLayoutAttributes(t){t?(this.setAttribute("data-cy-page-header-layout",t),this._headerElement?.setAttribute("data-cy-page-header-layout",t)):(this.removeAttribute("data-cy-page-header-layout"),this._headerElement?.removeAttribute("data-cy-page-header-layout"))}_hasHorizontalOverflow(){if(!this._headerElement||!this.shadowRoot)return!1;let t=this._headerElement.getBoundingClientRect(),r=this.shadowRoot.querySelectorAll(".navigation-primary, .navigation-secondary, .top-bar-primary, .top-bar-secondary"),a=(n,o)=>o.right-n.right>1||n.left-o.left>1;return Array.from(r).some(n=>{if(n.clientWidth===0||getComputedStyle(n).display==="none")return!1;let o=n.getBoundingClientRect();if(a(t,o))return!0;let s=n.querySelector("slot");return s instanceof HTMLSlotElement?s.assignedElements({flatten:!0}).some(l=>{if(!(l instanceof HTMLElement))return!1;let d=l.getBoundingClientRect();return d.width>0&&a(o,d)}):!1})}_getViewportLayout(){if(!this._headerElement)return null;let t=getComputedStyle(this._headerElement).getPropertyValue("--cy-page-header-layout").trim();return t==="large"||t==="small"||t==="xsmall"?t:null}_applyHeaderLayout(t){return t===this._headerLayout?(this._syncHeaderLayoutAttributes(t),!1):(this._headerLayout=t,this._syncHeaderLayoutAttributes(t),this.requestUpdate(),!0)}_checkHeaderSize(){if(!this._headerElement)return!1;/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(this._headerElement.style.contentVisibility="auto",this._headerElement.offsetHeight,this._headerElement.style.contentVisibility="visible");let t=this._getViewportLayout();if(!t)return!1;t!=="large"&&this._clearOverflowOverride();let r=t==="large"&&this._hasHorizontalOverflow();r&&(this._isLayoutOverridden=!0);let a=t==="large"&&(r||this._isLayoutOverridden)?"small":t;return this._applyHeaderLayout(a)}_clearOverflowOverride(){this._isLayoutOverridden=!1}_setupHeaderSizeObserver(){if(!this.shadowRoot||(this._headerElement=this.shadowRoot.querySelector(".page-header"),!this._headerElement))return;let t=(r=0)=>{!this._checkHeaderSize()&&r<8&&setTimeout(()=>t(r+1),r===0?0:50)};this._resizeObserver=new ResizeObserver(()=>{this._checkHeaderSize()}),this._resizeObserver.observe(this._headerElement),this._resizeObserver.observe(document.documentElement),requestAnimationFrame(()=>{t()})}connectedCallback(){super.connectedCallback(),this._setupEventListeners(),this._initializeComponent()}_setupEventListeners(){document.addEventListener("click",this._handleClickOutside),document.addEventListener("keydown",this._handleKeyDown),this.addEventListener("focusout",this._handleFocusOut),window.addEventListener("resize",this._handleWindowResize),this.addEventListener("cy-navigation-subitems-toggle",this._handleNavigationToggle)}_initializeComponent(){this.setAttribute("data-cy-initialized",""),this._updateHostNavigationExpandedAttribute(this._isMenuOpen),this.updateComplete.then(()=>{this._setupHeaderSizeObserver()})}disconnectedCallback(){super.disconnectedCallback(),this._cleanupEventListeners(),this._cleanupObserver(),this._updateHostNavigationExpandedAttribute(!1)}_cleanupEventListeners(){document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("keydown",this._handleKeyDown),this.removeEventListener("focusout",this._handleFocusOut),window.removeEventListener("resize",this._handleWindowResize),this.removeEventListener("cy-navigation-subitems-toggle",this._handleNavigationToggle)}_cleanupObserver(){this._resizeObserver?.disconnect(),this._resizeObserver=null,this._isLayoutOverridden=!1}_useCompactTopBarContentItems(){return this._headerLayout==="large"}_getSlottedNavigations(t="cy-navigation"){return Array.from(this.querySelectorAll(t))}_syncTopBarNavigationCompactContentItems(){let t=this._useCompactTopBarContentItems();this._getSlottedNavigations('cy-navigation[slot="top-bar-primary"], cy-navigation[slot="top-bar-secondary"]').forEach(a=>{a.compactContentItems=t})}async _syncSlottedNavigationState(){this._syncTopBarNavigationCompactContentItems();let t=this._getSlottedNavigations();t.forEach(r=>r.syncDirectionFromCSS?.()),await Promise.all(Array.from(t,r=>r.updateComplete??Promise.resolve()))}_syncSlottedNavigationStateAndCheck(){this._syncSlottedNavigationState().then(()=>{requestAnimationFrame(()=>{this._checkHeaderSize()})})}updated(t){super.updated(t),this._headerLayout&&!this.hasAttribute("data-cy-page-header-layout")&&this._syncHeaderLayoutAttributes(this._headerLayout),t.has("_headerLayout")&&this._syncSlottedNavigationStateAndCheck()}_updateNavigationLevelAttribute(){if(this._expandedNavigationLevels.size===0)this.removeAttribute("data-cy-navigation-expanded-level");else{let t=Math.max(...this._expandedNavigationLevels.values());this.setAttribute("data-cy-navigation-expanded-level",t.toString())}}_updateHostNavigationExpandedAttribute(t){t?this.setAttribute("data-cy-page-header-navigation-is-expanded",""):this.removeAttribute("data-cy-page-header-navigation-is-expanded")}get _classNames(){return Z({"page-header":!0})}render(){let t=this._getSlotContent();return this._renderHeader(t)}_getSlotContent(){let t=!!this.querySelector('[slot="navigation-primary"]'),r=!!this.querySelector('[slot="navigation-secondary"]'),a=!!this.querySelector('[slot="top-bar-primary"]'),n=!!this.querySelector('[slot="top-bar-secondary"]'),o=t||r,s=a||n;return{hasNavigationPrimary:t,hasNavigationSecondary:r,hasTopBarPrimary:a,hasTopBarSecondary:n,hasNavigationContent:o,hasTopBarContent:s,hasAnyNavigationContent:o||s}}_renderHeader(t){let{hasAnyNavigationContent:r,hasNavigationContent:a,hasTopBarContent:n}=t;return E`
934            <header
935                class="${this._classNames}"
936                part="root"
937                ?data-cy-page-header-position="${this.position}"
938                data-cy-page-header-layout="${this._headerLayout||""}"
939            >
940                <div
941                    class="logo"
942                    part="logo"
943                >
944                    <slot name="logo"></slot>
945                </div>
946
947                ${r?E`
948                          <cy-button
949                              class="navigation-toggle"
950                              id="navigation-toggle"
951                              part="navigation-toggle"
952                              @click=${this._toggleMenu}
953                              ariaExpanded=${this._isMenuOpen?"true":"false"}
954                              ariaControls="navigation"
955                              ariaLabel=${M(this._isMenuOpen?this.getI18nValue("navToggleAccessibleToCloseLabel"):this.getI18nValue("navToggleAccessibleToOpenLabel"))}
956                              appearance="ghost"
957                              icon=${this._isMenuOpen?"semantic-close":"semantic-menu"}
958                          >
959                              ${this.getI18nValue("navToggleLabel")}
960                          </cy-button>
961
962                          <div
963                              aria-live="polite"
964                              role="status"
965                              data-cy-visually-hidden
966                          >
967                              ${this._isMenuOpen?this.getI18nValue("menuOpenedStatusMessage"):this.getI18nValue("menuClosedStatusMessage")}
968                          </div>
969
970                          <div
971                              id="navigation"
972                              class="navigation-container"
973                              part="navigation-container"
974                              aria-hidden=${this._headerLayout==="small"||this._headerLayout==="xsmall"?!this._isMenuOpen:"false"}
975                              ?inert=${this._headerLayout==="small"||this._headerLayout==="xsmall"?!this._isMenuOpen:!1}
976                              aria-live="polite"
977                          >
978                              ${a?this._renderNavigationSection(t):""}
979                              ${n?this._renderTopBarSection(t):""}
980                          </div>
981                      `:""}
982            </header>
983        `}_renderNavigationSection(t){let{hasNavigationPrimary:r,hasNavigationSecondary:a}=t;return E`
984            <div
985                class="navigation"
986                part="navigation"
987            >
988                ${r?E`
989                          <div class="navigation-primary">
990                              <slot
991                                  name="navigation-primary"
992                                  @slotchange=${this._handleSlotChange}
993                              ></slot>
994                          </div>
995                      `:""}
996                ${a?E`
997                          <div class="navigation-secondary">
998                              <slot
999                                  name="navigation-secondary"
1000                                  @slotchange=${this._handleSlotChange}
1001                              ></slot>
1002                          </div>
1003                      `:""}
1004            </div>
1005        `}_renderTopBarSection(t){let{hasTopBarPrimary:r,hasTopBarSecondary:a}=t;return E`
1006            <div
1007                class="top-bar"
1008                part="top-bar"
1009            >
1010                ${r?E`
1011                          <div class="top-bar-primary">
1012                              <slot
1013                                  name="top-bar-primary"
1014                                  @slotchange=${this._handleSlotChange}
1015                              ></slot>
1016                          </div>
1017                      `:""}
1018                ${a?E`
1019                          <div class="top-bar-secondary">
1020                              <slot
1021                                  name="top-bar-secondary"
1022                                  @slotchange=${this._handleSlotChange}
1023                              ></slot>
1024                          </div>
1025                      `:""}
1026            </div>
1027        `}};Ot.styles=[...$.styles,gm,De],Ot.dependencies={"cy-logo":ot,"cy-icon":xe,"cy-button":oe},Ot.defaultI18n=ym,u([m({type:String})],Ot.prototype,"position",2),u([G()],Ot.prototype,"_isMenuOpen",2),u([G()],Ot.prototype,"_headerLayout",2);customElements.get("cy-page-header")||customElements.define("cy-page-header",Ot);var fb=P`@layer _settings{:host{--_cy-range-slider-thumb-inline-size: var( --cy-range-slider-thumb-inline-size, 1.5rem );--_cy-range-slider-thumb-block-size: var( --cy-range-slider-thumb-block-size, 1.5rem );--_cy-range-slider-thumb-color: var( --cy-range-slider-thumb-color, rgb(255 102 0) );--_cy-range-slider-thumb-hover-color: var( --cy-range-slider-thumb-hover-color, oklch(from var(--_cy-range-slider-thumb-color) calc(l + .3) c h) );--_cy-range-slider-thumb-active-color: var( --cy-range-slider-thumb-active-color, oklch(from var(--_cy-range-slider-thumb-color) calc(l + .2) c h) );--_cy-range-slider-thumb-border-color: var( --cy-range-slider-thumb-border-color, rgb(0 0 0 / 10%) );--_cy-range-slider-thumb-hover-border-color: var( --cy-range-slider-thumb-hover-border-color, oklch(from var(--_cy-range-slider-thumb-border-color) calc(l + .1) c h) );--_cy-range-slider-thumb-active-border-color: var( --cy-range-slider-thumb-active-border-color, oklch(from var(--_cy-range-slider-thumb-border-color) calc(l - .1) c h) );--_cy-range-slider-thumb-border-width: var( --cy-range-slider-thumb-border-width, 0 );--_cy-range-slider-thumb-border-radius: calc(var(--_cy-range-slider-thumb-inline-size) * 2);--_cy-range-slider-thumb-background-image: var(--cy-range-slider-thumb-background-image, none);--_cy-range-slider-track-height: var(--cy-range-slider-track-height, .125rem);--_cy-range-slider-track-color: var( --cy-range-slider-track-color, #cccccc );--_cy-range-slider-track-filled-color: var( --cy-range-slider-track-filled-color, rgb(255 102 0) );--_cy-range-slider-block-size: var(--cy-range-slider-block-size, 2rem);--_cy-range-slider-scale-line-width: .125rem;--_cy-range-slider-scale-dot-size: var(--cy-range-slider-scale-dot-size, .25rem);--_cy-range-slider-tooltip-block-size: var( --cy-range-slider-tooltip-block-size, 2rem );--_cy-range-slider-tooltip-border-radius: var( --cy-range-slider-tooltip-border-radius, 0px );--_cy-range-slider-tooltip-background-color: var( --cy-range-slider-tooltip-background-color, var(--cy-base-color-surface-light, lightgray) );--_cy-range-slider-tooltip-text-color: var( --cy-range-slider-tooltip-text-color, var(--cy-base-color-text, #333333) );--_cy-range-slider-tooltip-font-size: var( --cy-range-slider-tooltip-font-size, var(--cy-base-text-font-size-xsmall, .75em) );--_cy-range-slider-tooltip-spacing: var( --cy-range-slider-tooltip-spacing, var(--cy-base-space-xsmall, .5rem) );--_cy-range-slider-tooltip-filter: var( --cy-range-slider-tooltip-filter, none );--_cy-range-slider-tooltip-offset: 1rem;--_cy-range-slider-tooltip-shape-arrow-size: var( --cy-range-slider-tooltip-shape-arrow-size, .625rem );--_cy-range-slider-scale-color: var( --cy-range-slider-scale-color, inherit );
1027--_cy-range-slider-scale-number-spacing: var( --cy-range-slider-scale-number-spacing, 1rem )}}@layer _component{.range-slider{position:relative;z-index:1;display:flex;grid-area:stack;box-sizing:border-box;inline-size:100%;block-size:max(var(--_cy-range-slider-block-size),var(--_cy-range-slider-thumb-block-size));max-inline-size:100%;&:not(.range-slider--single){padding-inline-end:var(--_cy-range-slider-thumb-inline-size)}&:has(input:focus-visible){outline:2px solid var(--_cy-range-slider-thumb-active-border-color);outline-offset:calc(var(--_cy-range-slider-thumb-inline-size) / 2);border-radius:2px}@supports selector(.range-slider-input::-moz-range-thumb){--_cy-range-slider-tooltip-min-position-fallback: calc(100% - var(--_cy-range-slider-min-normalized-value-percentage) - var(--_cy-range-slider-thumb-inline-size) * var(--_cy-range-slider-max-normalized-value));--_cy-range-slider-tooltip-max-position-fallback: calc(100% - var(--_cy-range-slider-min-normalized-value-percentage) + var(--_cy-range-slider-difference-normalized-value-percentage) - var(--_cy-range-slider-thumb-inline-size) * calc((var(--_cy-range-slider-max-value-raw) - var(--_cy-range-slider-lower-bound)) / var(--_cy-range-slider-value-range)))}@media(forced-colors:active){display:none!important}}.range-slider-input{flex-shrink:0;block-size:100%;min-inline-size:var(--_cy-range-slider-thumb-inline-size);margin:0;-webkit-tap-highlight-color:transparent;appearance:none;background:none;outline:none!important;box-shadow:none!important;&:disabled{filter:grayscale(1) saturate(0%) contrast(30%) brightness(130%)}&::-webkit-slider-runnable-track{--_cy-range-slider-gradient: linear-gradient( var(--_cy-range-slider-gradient-direction), transparent var(--_cy-range-slider-gradient-offset), var(--_cy-range-slider-track-color) var(--_cy-range-slider-gradient-offset), var(--_cy-range-slider-track-color) var(--_cy-range-slider-gradient-position), var(--_cy-range-slider-track-filled-color) var(--_cy-range-slider-gradient-position), var(--_cy-range-slider-track-filled-color) var(--_cy-range-slider-gradient-offset-end, 100%), transparent var(--_cy-range-slider-gradient-offset-end, 100%) );box-sizing:border-box;block-size:var(--_cy-range-slider-track-height);background-color:transparent;background-repeat:no-repeat}&::-webkit-slider-thumb{anchor-name:--thumb-min;box-sizing:border-box;inline-size:var(--_cy-range-slider-thumb-inline-size);block-size:var(--_cy-range-slider-thumb-block-size);margin-block-start:calc(var(--_cy-range-slider-track-height) / 2);transform:translateY(-50%);border:var(--_cy-range-slider-thumb-border-width) solid var(--_cy-range-slider-thumb-border-color);border-radius:var(--_cy-range-slider-thumb-border-radius);background-color:var(--_cy-range-slider-thumb-color);background-image:var(--_cy-range-slider-thumb-background-image);appearance:none;box-shadow:none}&::-webkit-slider-thumb:hover{border-color:var(--_cy-range-slider-thumb-hover-border-color);background-color:var(--_cy-range-slider-thumb-hover-color)}&:focus-visible::-webkit-slider-thumb{border-color:var(--_cy-range-slider-thumb-active-border-color);background-color:var(--_cy-range-slider-thumb-active-color)}&::-webkit-slider-thumb:active{border-color:var(--_cy-range-slider-thumb-active-border-color);background-color:var(--_cy-range-slider-thumb-active-color)}&::-moz-range-track{--_cy-range-slider-gradient: linear-gradient( var(--_cy-range-slider-gradient-direction), transparent var(--_cy-range-slider-gradient-offset), var(--_cy-range-slider-track-color) var(--_cy-range-slider-gradient-offset), var(--_cy-range-slider-track-color) var(--_cy-range-slider-gradient-position), var(--_cy-range-slider-track-filled-color) var(--_cy-range-slider-gradient-position), var(--_cy-range-slider-track-filled-color) var(--_cy-range-slider-gradient-offset-end, 100%), transparent var(--_cy-range-slider-gradient-offset-end, 100%) );box-sizing:border-box;block-size:var(--_cy-range-slider-track-height);background-color:transparent;background-repeat:no-repeat}&::-moz-range-thumb{anchor-name:--thumb-min;box-sizing:border-box;inline-size:var(--_cy-range-slider-thumb-inline-size);block-size:var(--_cy-range-slider-thumb-block-size);border:var(--_cy-range-slider-thumb-border-width) solid var(--_cy-range-slider-thumb-border-color);border-radius:var(--_cy-range-slider-thumb-border-radius);background-color:var(--_cy-range-slider-thumb-color);background-image:var(--_cy-range-slider-thumb-background-image);appearance:none;box-shadow:none}&::-moz-range-thumb:hover{border-color:var(--_cy-range-slider-thumb-hover-border-color);background-color:var(--_cy-range-slider-thumb-hover-color)}&:focus-visible::-moz-range-thumb{border-color:var(--_cy-range-slider-thumb-active-border-color);background-color:var(--_cy-range-slider-thumb-active-color)}&::-moz-range-thumb:active{border-color:var(--_cy-range-slider-thumb-active-border-color);background-color:var(--_cy-range-slider-thumb-active-color)}&.range-slider-input--min{&::-webkit-slider-thumb{anchor-name:--thumb-min}&::-moz-range-thumb{anchor-name:--thumb-min}}&.range-slider-input--max{&::-webkit-slider-thumb{anchor-name:--thumb-max}&::-moz-range-thumb{anchor-name:--thumb-max}}}.range-slider-wrapper:has(.range-slider--lines){--_cy-range-slider-gradient-offset: calc(var(--_cy-range-slider-thumb-inline-size) / 2);--_cy-range-slider-scale-numbers-offset: calc(var(--_cy-range-slider-gradient-offset) - (var(--_cy-range-slider-scale-line-width) / 2));--_cy-range-slider-scale-numbers-inline-size: calc(100% - (var(--_cy-range-slider-gradient-offset) * 2) + var(--_cy-range-slider-scale-line-width))}.range-slider-wrapper:has(.range-slider--dots){--_cy-range-slider-gradient-offset: calc(var(--_cy-range-slider-thumb-inline-size) / 2 - var(--_cy-range-slider-scale-dot-size));--_cy-range-slider-scale-numbers-offset: var(--_cy-range-slider-gradient-offset);--_cy-range-slider-scale-numbers-inline-size: calc(100% - var(--_cy-range-slider-gradient-offset) * 2)}.range-slider-wrapper:has(.range-slider--no-alt-inputs){@media(forced-colors:active){[data-cy-visually-hidden]{--cy-if-hidden-disable: true}}}.range-slider-input--single,.range-slider-input--min{--_cy-range-slider-gradient-position: var(--_cy-range-slider-min-position);flex-basis:var(--_cy-range-slider-min-width);&::-webkit-slider-runnable-track{background-image:var(--_cy-range-slider-gradient)}&::-moz-range-track{background-image:var(--_cy-range-slider-gradient)}}.range-slider-input--single{--_cy-range-slider-gradient-direction: to left;--_cy-range-slider-gradient-offset-end: calc(100% - var(--_cy-range-slider-gradient-offset))}.range-slider-wrapper:has(.range-slider--single,.range-slider--multiple){--_cy-range-slider-scale-dot-multiplier: calc(var(--_cy-range-slider-scale-dot-size) * 2);--_cy-range-slider-value-range: calc(var(--_cy-range-slider-upper-bound) - var(--_cy-range-slider-lower-bound));--_cy-range-slider-min-normalized-value: calc( (var(--_cy-range-slider-upper-bound) - var(--_cy-range-slider-min-value-raw)) / var(--_cy-range-slider-value-range) );--_cy-range-slider-max-normalized-value: calc( (var(--_cy-range-slider-min-value-raw) - var(--_cy-range-slider-lower-bound)) / var(--_cy-range-slider-value-range) );--_cy-range-slider-min-normalized-value-percentage: calc(100% * var(--_cy-range-slider-min-normalized-value));--_cy-range-slider-max-normalized-value-percentage: calc(100% * var(--_cy-range-slider-max-normalized-value))}.range-slider-wrapper:has(.range-slider--single){--_cy-range-slider-normalized-value-per-step: calc( (var(--_cy-range-slider-min-value-raw) - var(--_cy-range-slider-lower-bound)) / var(--_cy-range-slider-steps) );--_cy-range-slider-scale-inset-inline-start-active: 0%;--_cy-range-slider-scale-inline-size-active: calc( 100% - var(--_cy-range-slider-min-normalized-value-percentage) + (var
1027(--_cy-range-slider-scale-dot-multiplier) * var(--_cy-range-slider-min-normalized-value)));--_cy-range-slider-scale-background-size-active: calc( (100% - var(--_cy-range-slider-scale-dot-multiplier)) / var(--_cy-range-slider-normalized-value-per-step) )}.range-slider-wrapper:has(.range-slider--multiple){--_cy-range-slider-value-difference: calc(var(--_cy-range-slider-max-value-raw) - var(--_cy-range-slider-min-value-raw));--_cy-range-slider-difference-normalized-value: calc( var(--_cy-range-slider-value-difference) / var(--_cy-range-slider-value-range) );--_cy-range-slider-normalized-value-per-step: calc( var(--_cy-range-slider-value-difference) / var(--_cy-range-slider-steps) );--_cy-range-slider-lower-bound-normalized-value: calc( (var(--_cy-range-slider-min-value-raw) - var(--_cy-range-slider-lower-bound)) / var(--_cy-range-slider-value-range) );--_cy-range-slider-difference-normalized-value-percentage: calc(100% * var(--_cy-range-slider-difference-normalized-value));--_cy-range-slider-scale-inset-inline-start-active: calc(100% - var(--_cy-range-slider-min-normalized-value-percentage) - (var(--_cy-range-slider-scale-dot-multiplier) * var(--_cy-range-slider-lower-bound-normalized-value)));--_cy-range-slider-scale-inline-size-active: calc(var(--_cy-range-slider-difference-normalized-value-percentage) + (var(--_cy-range-slider-scale-dot-multiplier) * (1 - var(--_cy-range-slider-difference-normalized-value))));--_cy-range-slider-scale-background-size-active: calc( (100% - var(--_cy-range-slider-scale-dot-multiplier)) / var(--_cy-range-slider-normalized-value-per-step) )}.range-slider-input--min{--_cy-range-slider-gradient-direction: to right;margin-inline-end:calc(var(--_cy-range-slider-thumb-inline-size) * -.5)}.range-slider-input--max{--_cy-range-slider-gradient-position: var(--_cy-range-slider-max-position);--_cy-range-slider-gradient-direction: to left;flex-basis:var(--_cy-range-slider-max-width);margin-inline-start:calc(var(--_cy-range-slider-thumb-inline-size) * -.5);&::-webkit-slider-runnable-track{background-image:var(--_cy-range-slider-gradient)}&::-moz-range-track{background-image:var(--_cy-range-slider-gradient)}}.range-slider-wrapper{display:grid;grid-template-areas:"inputs" "stack" "scale";grid-template-rows:min-content min-content 2rem auto;align-items:center;gap:1rem}.range-slider-scale{z-index:-1;grid-area:stack;inline-size:calc(100% - var(--_cy-range-slider-thumb-inline-size));block-size:.625rem;place-self:center;@media(forced-colors:active){display:none!important}}.range-slider-scale--lines{--_cy-range-slider-scale-density-offset: calc( var(--_cy-range-slider-scale-line-width) / 2 / (var(--_cy-range-slider-steps) / 2) );grid-area:scale;inline-size:calc(100% - var(--_cy-range-slider-thumb-inline-size) + var(--_cy-range-slider-scale-line-width));margin-block-start:-.75rem;background-image:repeating-linear-gradient(90deg,var(--_cy-range-slider-track-color),var(--_cy-range-slider-track-color) var(--_cy-range-slider-scale-line-width),transparent 0,transparent calc((100% / var(--_cy-range-slider-steps)) - var(--_cy-range-slider-scale-density-offset)))}.range-slider-scale--dots{position:relative;inline-size:calc(100% - var(--_cy-range-slider-thumb-inline-size) + (var(--_cy-range-slider-scale-dot-multiplier)));background-image:radial-gradient(circle at var(--_cy-range-slider-scale-dot-size) 50%,var(--_cy-range-slider-track-color),var(--_cy-range-slider-track-color) var(--_cy-range-slider-scale-dot-size),transparent var(--_cy-range-slider-scale-dot-size),transparent var(--_cy-range-slider-scale-dot-size));background-repeat:repeat-x;background-size:calc((100% / var(--_cy-range-slider-scale-density)) - (var(--_cy-range-slider-scale-dot-size) / (var(--_cy-range-slider-scale-density) * .5)));&:before{content:"";position:absolute;inset-inline-start:var(--_cy-range-slider-scale-inset-inline-start-active);display:block;inline-size:var(--_cy-range-slider-scale-inline-size-active);block-size:100%;background-image:radial-gradient(circle at var(--_cy-range-slider-scale-dot-size) 50%,var(--_cy-range-slider-track-filled-color),var(--_cy-range-slider-track-filled-color) var(--_cy-range-slider-scale-dot-size),transparent var(--_cy-range-slider-scale-dot-size),transparent var(--_cy-range-slider-scale-dot-size));background-repeat:repeat-x;background-size:var(--_cy-range-slider-scale-background-size-active)}}.range-slider:not(.range-slider--no-alt-input){&:hover,&:focus-within{output{transition:opacity .15s linear;visibility:visible;opacity:1}}output{transition:visibility 0s .15s,opacity .15s linear;visibility:visible;opacity:1}}output{--_cy-range-output-flip-direction: -1;--_cy-range-slider-tooltip-shape-offset-block-correction: 0%;--_cy-range-slider-tooltip-shape-offset-block-correction-bottom: calc(0% + var(--_cy-range-slider-tooltip-shape-arrow-size));--_cy-range-slider-tooltip-shape-arrow-size-offset-y: calc(100% - var(--_cy-range-slider-tooltip-shape-arrow-size));--_cy-range-slider-tooltip-shape-coord-start: calc(0% + var(--_cy-range-slider-tooltip-border-radius)) var(--_cy-range-slider-tooltip-shape-offset-block-correction);--_cy-range-slider-tooltip-shape-coord-left-top: 0% calc(var(--_cy-range-slider-tooltip-shape-offset-block-correction) + var(--_cy-range-slider-tooltip-border-radius));--_cy-range-slider-tooltip-shape-coord-right-top: calc(100% - var(--_cy-range-slider-tooltip-border-radius)) var(--_cy-range-slider-tooltip-shape-offset-block-correction);--_cy-range-slider-tooltip-shape-coord-right-bottom: 100% calc(100% - var(--_cy-range-slider-tooltip-border-radius) - var(--_cy-range-slider-tooltip-shape-offset-block-correction-bottom));--_cy-range-slider-tooltip-shape-coord-left-bottom: calc(0% + var(--_cy-range-slider-tooltip-border-radius)) calc(100% - var(--_cy-range-slider-tooltip-shape-offset-block-correction-bottom));--_cy-range-slider-tooltip-shape-top-right-coords-pair: line to var(--_cy-range-slider-tooltip-shape-coord-right-top
1027), smooth to 100% calc(var(--_cy-range-slider-tooltip-shape-offset-block-correction) + var(--_cy-range-slider-tooltip-border-radius)) with 100% var(--_cy-range-slider-tooltip-shape-offset-block-correction);--_cy-range-slider-tooltip-shape-bottom-right-coords-pair: line to var(--_cy-range-slider-tooltip-shape-coord-right-bottom), smooth to calc(100% - var(--_cy-range-slider-tooltip-border-radius)) calc(100% - var(--_cy-range-slider-tooltip-shape-offset-block-correction-bottom)) with 100% calc(100% - var(--_cy-range-slider-tooltip-shape-offset-block-correction-bottom));--_cy-range-slider-tooltip-shape-bottom-left-coords-pair: line to var(--_cy-range-slider-tooltip-shape-coord-left-bottom), smooth to 0% calc(100% - var(--_cy-range-slider-tooltip-border-radius) - var(--_cy-range-slider-tooltip-shape-offset-block-correction-bottom)) with 0% calc(100% - var(--_cy-range-slider-tooltip-shape-offset-block-correction-bottom));--_cy-range-slider-tooltip-shape-top-left-coords-pair: line to var(--_cy-range-slider-tooltip-shape-coord-left-top), smooth to calc(0% + var(--_cy-range-slider-tooltip-border-radius)) var(--_cy-range-slider-tooltip-shape-offset-block-correction) with 0% var(--_cy-range-slider-tooltip-shape-offset-block-correction);--_cy-range-slider-tooltip-shape-arrow-coords: move to calc(50% - var(--_cy-range-slider-tooltip-shape-arrow-size)) var(--_cy-range-slider-tooltip-shape-arrow-size-offset-y), hline by calc(var(--_cy-range-slider-tooltip-shape-arrow-size) * 2), line to 50% 100%, line to calc(50% - var(--_cy-range-slider-tooltip-shape-arrow-size)) var(--_cy-range-slider-tooltip-shape-arrow-size-offset-y), close;--_cy-range-slider-tooltip-shape: shape( from var(--_cy-range-slider-tooltip-shape-coord-start), var(--_cy-range-slider-tooltip-shape-top-right-coords-pair), var(--_cy-range-slider-tooltip-shape-bottom-right-coords-pair), var(--_cy-range-slider-tooltip-shape-bottom-left-coords-pair), var(--_cy-range-slider-tooltip-shape-top-left-coords-pair), close, var(--_cy-range-slider-tooltip-shape-arrow-coords) );@supports not (clip-path: shape(from 0% 0%,line to 100% 0%,close)){--_cy-range-slider-tooltip-shape: xywh(0% 0% 100% calc(100% - var(--_cy-range-slider-tooltip-shape-arrow-size)) round var(--_cy-range-slider-tooltip-border-radius) var(--_cy-range-slider-tooltip-border-radius) var(--_cy-range-slider-tooltip-border-radius) var(--_cy-range-slider-tooltip-border-radius))}position:absolute;position-area:center;display:flex;justify-content:center;box-sizing:border-box;inline-size:var(--_cy-range-slider-thumb-inline-size);block-size:var(--_cy-range-slider-thumb-block-size);pointer-events:none;user-select:none;filter:var(--_cy-range-slider-tooltip-filter);&:before{position:relative;inset-block-start:0%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;inline-size:fit-content;min-inline-size:var(--_cy-range-slider-tooltip-block-size);min-block-size:calc(var(--_cy-range-slider-tooltip-block-size) + var(--_cy-range-slider-tooltip-shape-arrow-size));padding-inline:var(--_cy-range-slider-tooltip-spacing);padding-block-end:var(--_cy-range-slider-tooltip-shape-arrow-size);transform:translateY(-100%);font-size:var(--_cy-range-slider-tooltip-font-size);line-height:1;text-align:center;background-color:var(--_cy-range-slider-tooltip-background-color);color:var(--_cy-range-slider-tooltip-text-color);clip-path:var(--_cy-range-slider-tooltip-shape)}&.has-intersection,&.has-intersection+&{--_cy-range-output-flip-direction: -1;--_cy-range-slider-tooltip-shape-offset-block-correction: calc(0% + var(--_cy-range-slider-tooltip-shape-arrow-size));--_cy-range-slider-tooltip-shape-offset-block-correction-bottom: 0%;--_cy-range-slider-tooltip-shape-arrow-size-offset-y: calc(0% + var(--_cy-range-slider-tooltip-shape-arrow-size));--_cy-range-slider-tooltip-shape-arrow-coords: move to calc(50% - var(--_cy-range-slider-tooltip-shape-arrow-size)) var(--_cy-range-slider-tooltip-shape-arrow-size-offset-y), hline by calc(var(--_cy-range-slider-tooltip-shape-arrow-size) * 2), line to 50% 0%, line to calc(50% - var(--_cy-range-slider-tooltip-shape-arrow-size)) var(--_cy-range-slider-tooltip-shape-arrow-size-offset-y), close;--_cy-range-slider-tooltip-shape: shape( from var(--_cy-range-slider-tooltip-shape-coord-start), var(--_cy-range-slider-tooltip-shape-top-right-coords-pair), var(--_cy-range-slider-tooltip-shape-bottom-right-coords-pair), var(--_cy-range-slider-tooltip-shape-bottom-left-coords-pair), var(--_cy-range-slider-tooltip-shape-top-left-coords-pair), close, var(--_cy-range-slider-tooltip-shape-arrow-coords), );&:before{inset-block-start:initial;inset-block-end:-100%;padding-block-start:var(--_cy-range-slider-tooltip-shape-arrow-size);padding-block-end:initial;transform:translateY(0)}}&.range-slider-output-min{position-anchor:--thumb-min;inset-inline-start:var(--_cy-range-slider-tooltip-min-position-fallback, initial);&:before{content:var(--_cy-range-slider-min-value, "")}}&.range-slider-output-max{position-anchor:--thumb-max;inset-inline-start:var(--_cy-range-slider-tooltip-max-position-fallback, initial);&:before{content:var(--_cy-range-slider-max-value, "")}}}.range-slider-scale-numbers{position:relative;inset-inline:var(--_cy-range-slider-scale-numbers-offset);grid-area:scale;box-sizing:border-box;inline-size:var(--_cy-range-slider-scale-numbers-inline-size);margin:0;
1027margin-block-start:var(--_cy-range-slider-scale-number-spacing);padding:0;padding-inline:var(--_cy-range-slider-gradient-offset);font-size:var(--_cy-range-slider-tooltip-font-size);color:var(--_cy-range-slider-scale-color);list-style:none;li{font-variant-numeric:tabular-nums;position:absolute;inset-inline-start:0;min-inline-size:var(--_cy-range-slider-thumb-inline-size);text-align:center}li:not(:first-child){inset-inline-start:calc(var(--_cy-range-slider-scale-number-indent, 0) + var(--_cy-range-slider-scale-dot-size) / 4);transform:translate(-50%)}li:first-child{inset-inline-start:0;transform:translate(calc(-.5ch + var(--_cy-range-slider-scale-line-width) / 2));text-align:start}li:last-child{transform:translate(calc(-100% + .5ch - var(--_cy-range-slider-scale-line-width) / 2));text-align:end}@media screen and (width<=400px){li:not(:first-child,:last-child){display:none}}@media(forced-colors:active){display:none!important}}cy-text-input{display:inline-flex}fieldset{margin:0;padding:0;border:none}}
1028`,fm=fb;var bm="important",bb=" !"+bm,_m=vt(class extends Kt{constructor(i){if(super(i),i.type!==Ui.ATTRIBUTE||i.name!=="style"||i.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce((e,t)=>{let r=i[t];return r==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(i,[e]){let{style:t}=i.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let r of this.ft)e[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(let r in e){let a=e[r];if(a!=null){this.ft.add(r);let n=typeof a=="string"&&a.endsWith(bb);r.includes("-")||n?t.setProperty(r,n?a.slice(0,-11):a,n?bm:""):t[r]=a}}return mt}});function ys(i,e,t={mode:"both",cssClass:"has-intersection"}){if(!(i&&e))return!1;let{bottom:r,left:a,right:n,top:o}=i?.getBoundingClientRect()??{},{bottom:s,left:l,right:d,top:y}=e?.getBoundingClientRect()??{},p=n>l||a>d,g=r<y||o>s;return t.mode==="both"?p||g:t.mode==="inline"?(e?.classList.toggle("has-intersection",p),p):t.mode==="block"?g:!1}var _b=(i,e,t)=>Math.abs((i-e)/(t-e)*100),he=class extends Ue{constructor(){super(...arguments);this._internalScaleDensity=1;this.disabled=!1;this.step=25;this.multiple=!1;this.showScale=!1;this.scaleType="dot";this.hideAlternativeInput=!1;this._minDisplacement="calc(50.000% + 0.000rem)";this._singleDisplacement="50%";this._minWidth="calc(50.000% + var(--_cy-range-slider-thumb-inline-size))";this._maxDisplacement="calc(50.000% - 0.000rem)";this._maxWidth="calc(50.000% + var(--_cy-range-slider-thumb-inline-size))";this.minInputRef=Ve();this.maxInputRef=Ve();this.minInputAltRef=Ve();this.minOutputRef=Ve();this.maxInputAltRef=Ve();this.maxOutputRef=Ve();this._handleTooltipCollision=()=>{this.multiple?requestAnimationFrame(()=>{ys(this.maxInputAltRef?.value?.shadowRoot?.querySelector(".form-field"),this.minOutputRef?.value,{mode:"inline"}),ys(this.maxInputAltRef.value?.shadowRoot?.querySelector(".form-field"),this.maxOutputRef?.value,{mode:"inline"})}):requestAnimationFrame(()=>ys(this.minInputAltRef?.value?.shadowRoot?.querySelector(".form-field"),this.minOutputRef?.value,{mode:"inline"}))}}get _classNames(){return Z({"range-slider":!0,"range-slider--multiple":this.multiple,"range-slider--single":!this.multiple,"range-slider--scale":this.showScale,"range-slider--lines":this.scaleType==="line","range-slider--dots":this.scaleType==="dot","range-slider--no-alt-inputs":this.hideAlternativeInput})}get _scaleClassNames(){return Z({"range-slider-scale":!0,"range-slider-scale--lines":this.scaleType==="line","range-slider-scale--dots":this.scaleType==="dot"})}_updateMin(t){let r=t.detail??t.target.value;this._minValue=parseFloat(r),this.hasCustomError=!1,this._setAverage(),this._styleInputs(),this._setInputWidth(),this.minInputAltRef?.value&&(this.minInputAltRef.value.value=r)}_updateMax(t){let r=t.detail??t.target.value;this._maxValue=parseFloat(r),this._setAverage(),this._styleInputs(),this._setInputWidth(),this.maxInputAltRef?.value&&(this.maxInputAltRef.value.value=r)}_setAverage(){this._internalScaleDensity=(this.max-this.min)/this.step;let t=(this._maxValue-this._minValue)/2;this._average=this._minValue+Math.ceil(t/this.step)*this.step}_getMinMaxRange(){return this.max-this.min}_setInputWidth(){let t=this._getMinMaxRange(),r=(this._average-this.min)/t*100,a=(this.max-this._average)/t*100;this._setAverage(),this._minWidth=`calc(${r}% + var(--_cy-range-slider-thumb-inline-size))`,this._maxWidth=`calc(${a}% + var(--_cy-range-slider-thumb-inline-size))`}_highlightRangeArea(){let t=(this._minValue-this.min)/(this._average-this.min)||0,r=(this._maxValue-this._average)/(this.max-this._average)||0,a=t*100,n=(1-r)*100,o=.5-t,s=.5-(1-r);this._minDisplacement=`calc(${a}% + (${o} * var(--_cy-range-slider-thumb-inline-size)))`,this._maxDisplacement=`calc(${n}% + (${s} * var(--_cy-range-slider-thumb-inline-size)))`,this._singleDisplacement=`${(100-this._minValue/this.max*100)*this.max/(this.max-this.min)}%`}_styleInputs(){this._highlightRangeArea(),this._handleChange()}_handleChange(){this.multiple?this._value=[this._minValue,this._maxValue]:this._value=this._minValue,this.internals_.setFormValue(this._value),this.emit
1028(this.changeEvent,this._value),this._handleTooltipCollision()}firstUpdated(t){if(super.firstUpdated(t),Array.isArray(this.defaultValue)){if(this.defaultValue.length===2){let[r,a]=this.defaultValue;this._minValue=r,this._maxValue=a}else if(this.defaultValue.length===1){let[r]=this.defaultValue;this._minValue=r,this._maxValue=r}}else throw new TypeError("RangeSlider: You must set a valid defaultValue.");this._setAverage(),this.minInputRef.value?.addEventListener("input",this._updateMin.bind(this)),this.maxInputRef.value?.addEventListener("input",this._updateMax.bind(this)),this._setInputWidth(),this._styleInputs(),this._handleTooltipCollision()}_renderInputs(t,r){let[a,n]=this.defaultValue,o=this.max-this.min;return this.multiple?E`
1029                  <style>
1030                      :host {
1031                          --_cy-range-slider-min-width: ${this._minWidth};
1032                          --_cy-range-slider-max-width: ${this._maxWidth};
1033                          --_cy-range-slider-min-position: ${this._minDisplacement};
1034                          --_cy-range-slider-max-position: ${this._maxDisplacement};
1035                          --_cy-range-slider-scale-density: ${this._internalScaleDensity};
1036                          --_cy-range-slider-lower-bound: ${this.min};
1037                          --_cy-range-slider-upper-bound: ${this.max};
1038                          --_cy-range-slider-steps: ${this.step};
1039                          --_cy-range-slider-min-value-raw: ${this._minValue};
1040                          --_cy-range-slider-max-value-raw: ${this._maxValue};
1041                          --_cy-range-slider-min-value: "${this._minValue}";
1042                          --_cy-range-slider-output-min-offset: ${this._minValue/o*100}%;
1043                          --_cy-range-slider-max-value: "${this._maxValue}";
1044                          --_cy-range-slider-output-max-offset: ${this._maxValue/o*100}%;
1045                          --_cy-range-slider-scale-meow-min: 25%;
1046                      }
1047                  </style>
1048                  <fieldset
1049                      class=${Z({"visually-hidden":this.hideAlternativeInput})}
1050                      data-cy-visually-hidden=${this.hideAlternativeInput?"focusable":_}
1051                      ?inert="${this.disabled}"
1052                      aria-describedby=${t||_}
1053                      aria-labelledby=${r||_}
1054                  >
1055                      <cy-text-input
1056                          ${Te(this.minInputAltRef)}
1057                          id="min-value-input"
1058                          type="number"
1059                          size="small"
1060                          defaultValue=${this._minValue??a}
1061                          label=${this.minRangeValueLabel??"Minimum range value"}
1062                          step=${this.step}
1063                          max=${this._average}
1064                          min=${this.min}
1065                          ?disabled=${this.disabled}
1066                          @cy-change=${s=>{if(s.preventDefault?.(),!s.detail)return;let d=parseFloat(s.detail)%this.step===0;if(this.minInputRef?.value&&!d){this.hasCustomError=!0;return}if(parseFloat(s.detail)>this._maxValue){this.minInputAltRef.value&&(this.minInputAltRef.value.defaultValue=String(this._minValue??a));return}this.minInputRef?.value&&(this.minInputRef.value.value=String(s.detail)),this._updateMin(s)}}
1067                      ></cy-text-input>
1068                      <cy-text-input
1069                          ${Te(this.maxInputAltRef)}
1070                          id="max-value-input"
1071                          type="number"
1072                          size="small"
1073                          defaultValue=${this._maxValue??n}
1074                          label=${this.maxRangeValueLabel??"Maximum range value"}
1075                          step=${this.step}
1076                          max=${this.max}
1077                          min=${this._average}
1078                          ?disabled=${this.disabled}
1079                          @cy-change=${s=>{if(s.preventDefault?.(),!s.detail)return;let d=parseFloat(s.detail)%this.step===0;if(this.maxInputRef?.value&&!d){this.hasCustomError=!0,this.requestUpdate("defaultValue",[10,90],{state:!0});return}if(parseFloat(s.detail)<=this._minValue){this.maxInputAltRef.value&&(this.maxInputAltRef.value.value=String(this._maxValue??n));return}this.maxInputRef?.value&&(this.maxInputRef.value.value=s.detail),this._updateMax(s)}}
1080                      ></cy-text-input>
1081                  </fieldset>
1082                  <div
1083                      class="${this._classNames}"
1084                      aria-disabled="${this.disabled}"
1085                      ?inert="${this.disabled}"
1086                      aria-hidden="true"
1087                  >
1088                      <input
1089                          ${Te(this.minInputRef)}
1090                          id="min-value"
1091                          class="range-slider-input range-slider-input--min"
1092                          max=${this._average}
1093                          min=${this.min}
1094                          step=${this.step}
1095                          type="range"
1096                          value=${a}
1097                          tabindex="-1"
1098                          ?disabled=${this.disabled}
1099                          @keydown=${s=>this._minValue+this.step===this._maxValue&&s.key==="ArrowRight"?(s.preventDefault(),s.stopPropagation(),!1):!0}
1100                      />
1101                      <input
1102                          ${Te(this.maxInputRef)}
1103                          id="max-value"
1104                          class="range-slider-input range-slider-input--max"
1105                          max=${this.max}
1106                          min=${this._average}
1107                          step=${this.step}
1108                          type="range"
1109                          value=${n}
1110                          tabindex="-1"
1111                          ?disabled=${this.disabled}
1112                      />
1113                      <output
1114                          ${Te(this.minOutputRef)}
1115                          for="min-value"
1116                          class="range-slider-output-min"
1117                      ></output>
1118                      <output
1119                          ${Te(this.maxOutputRef)}
1120                          for="max-value"
1121                          class="range-slider-output-max"
1122                      ></output>
1123                  </div>
1124              `:E`
1125                  <style>
1126                      :host {
1127                          --_cy-range-slider-min-width: 100%;
1128                          --_cy-range-slider-min-position: ${this._singleDisplacement};
1129                          --_cy-range-slider-scale-density: ${this._internalScaleDensity};
1130                          --_cy-range-slider-steps: ${this.step};
1131                          --_cy-range-slider-lower-bound: ${this.min};
1132                          --_cy-range-slider-upper-bound: ${this.max};
1133                          --_cy-range-slider-min-value-raw: ${this._minValue};
1134                          --_cy-range-slider-min-value: "${this._minValue}";
1135                          --_cy-range-slider-output-min-offset: calc(100% - ${this._singleDisplacement});
1136                      }
1137                  </style>
1138                  <cy-text-input
1139                      ${Te(this.minInputAltRef)}
1140                      class=${Z({"visually-hidden":this.hideAlternativeInput})}
1141                      data-cy-visually-hidden=${this.hideAlternativeInput?"focusable":_}
1142                      id="min-value-input"
1143                      type="number"
1144                      size="small"
1145                      defaultValue=${this._minValue??a}
1146                      label=${this.minRangeValueLabel??"Range value"}
1147                      labelHidden
1148                      step=${this.step}
1149                      max=${this.max}
1150                      min=${this.min}
1151                      ?disabled=${this.disabled}
1152                      @cy-change=${s=>
1152{if(s.preventDefault?.(),!s.detail)return;let l=parseFloat(s.detail),d=l%this.step===0;if(this.minInputRef?.value){if(!d){this.hasCustomError=!0;return}this.minInputRef.value.value=String(l)}this._updateMin(s)}}
1153                  ></cy-text-input>
1154                  <fieldset
1155                      class="${this._classNames}"
1156                      aria-describedby=${t||_}
1157                      aria-labelledby=${r||_}
1158                      aria-disabled=${this.disabled}
1159                      aria-hidden="true"
1160                      ?inert="${this.disabled}"
1161                  >
1162                      <input
1163                          ${Te(this.minInputRef)}
1164                          id="min-value"
1165                          class="range-slider-input range-slider-input--single"
1166                          max=${this.max}
1167                          min=${this.min}
1168                          step=${this.step}
1169                          type="range"
1170                          value=${a}
1171                          tabindex="-1"
1172                          ?disabled=${this.disabled}
1173                      />
1174                      <output
1175                          ${Te(this.minOutputRef)}
1176                          for="min-value"
1177                          class="range-slider-output-min"
1178                      ></output>
1179                  </fieldset>
1180              `}_renderScale(){let t=(this.max-this.min)/this._internalScaleDensity,r=Array.from(Array(this._internalScaleDensity+1)).map((a,n)=>n*t+this.min);return this.showScale?E`
1181                  <div
1182                      class=${this._scaleClassNames}
1183                      aria-hidden="true"
1184                  ></div>
1185                  <ol
1186                      class="range-slider-scale-numbers"
1187                      aria-hidden="true"
1188                  >
1189                      ${r.map(a=>{let n=a%this.step?.25:1,s=`${_b(a,this.min,this.max)}%`;return E`
1190                              <li
1191                                  style=${_m({"--_cy-range-slider-scale-number-indent":s,"--_cy-range-slider-scale-number-opacity":n})}
1192                              >
1193                                  ${a}
1194                              </li>
1195                          `})}
1196                  </ol>
1197              `:_}_renderInput(t,r){return E`
1198            <div class="range-slider-wrapper">
1199                ${this._renderInputs(t,r)} ${this.showScale?this._renderScale():_}
1200            </div>
1201        `}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._handleTooltipCollision)}disconnectedCallback(){window.removeEventListener("resize",this._handleTooltipCollision),super.disconnectedCallback(),this.minInputRef.value?.removeEventListener("input",this._updateMin.bind(this)),this.maxInputRef.value?.removeEventListener("input",this._updateMax.bind(this))}render(){return this.standalone?this._renderInput():this._renderFormField(this._renderInput.bind(this),!0)}};he.styles=[...Ue.styles,De,fm],he.dependencies={"cy-icon":xe,"cy-text-input":We},u([m({type:Array,converter:t=>{let r=t?.split(",").map(parseFloat);return Array.isArray(r)?r:t}})],he.prototype,"defaultValue",2),u([m({type:Boolean,reflect:!0})],he.prototype,"disabled",2),u([m({type:Number})],he.prototype,"min",2),u([m({type:Number})],he.prototype,"max",2),u([m({type:Number})],he.prototype,"step",2),u([m({type:Boolean,reflect:!0})],he.prototype,"multiple",2),u([m({type:Boolean,reflect:!0})],he.prototype,"showScale",2),u([m({type:String})],he.prototype,"minRangeValueLabel",2),u([m({type:String})],he.prototype,"maxRangeValueLabel",2),u([m({type:String})],he.prototype,"scaleType",2),u([m({type:Boolean,reflect:!0})],he.prototype,"hideAlternativeInput",2),u([m({type:Boolean,reflect:!0})],he.prototype,"standalone",2),u([G()],he.prototype,"_average",2),u([G()],he.prototype,"_minValue",2),u([G()],he.prototype,"_minDisplacement",2),u([G()],he.prototype,"_singleDisplacement",2),u([G()],he.prototype,"_minWidth",2),u([G()],he.prototype,"_maxValue",2),u([G()],he.prototype,"_maxDisplacement",2),u([G()],he.prototype,"_maxWidth",2),u([G()],he.prototype,"_value",2),u([pe({eventName:"cy-change"})],he.prototype,"changeEvent",2);customElements.get("cy-range-slider")||customElements.define("cy-range-slider",he);var Eb=P`@layer _settings{:host{--_cy-switch-text-color: var(--cy-base-color-text);--_cy-switch-font-family: var(--cy-base-text-font-family-base-list);--_cy-switch-track-block-size: var(--cy-switch-block-size, 28px);--_cy-switch-track-inline-size: var(--cy-switch-inline-size, 52px);
1201--_cy-switch-thumb-size: var(--cy-switch-thumb-size, 24px);--_cy-switch-track-background-color: var( --cy-switch-track-background-color, #d9d9d9 );--_cy-switch-track-checked-background-color: var( --cy-switch-track-checked-background-color, var(--cy-base-color-status-success, green) );--_cy-switch-track-border-color: var( --cy-switch-track-border-color, transparent );--_cy-switch-track-border-width: var( --cy-switch-track-border-width, 0 );--_cy-switch-track-checked-border-color: transparent;--_cy-switch-thumb-background-color: var( --cy-switch-thumb-background-color, var(--cy-base-color-white, #ffffff) );--_cy-switch-thumb-checked-background-color: var( --cy-switch-thumb-checked-background-color, var(--cy-base-color-white, #ffffff) );--_cy-switch-thumb-border-color: transparent;--_cy-switch-thumb-checked-border-color: transparent;--_cy-switch-thumb-scale-factor: var(--cy-switch-thumb-scale-factor, 1);--_cy-switch-thumb-hover-scale-factor: var(--cy-switch-thumb-hover-scale-factor, 1);--_cy-switch-label-color: var( --cy-switch-label-color, var(--cy-base-color-text, black) );--_cy-switch-label-gap: var( --cy-switch-label-gap, var(--cy-base-space-xsmall, .5rem) )}}@layer _component{.switch{--_cy-switch-inset: calc((var(--_cy-switch-track-block-size) - var(--_cy-switch-thumb-size)) / 2);position:relative;display:inline-flex;align-items:center;gap:var(--_cy-switch-label-gap);font-family:var(--cy-base-text-font-family-base-list);&:has(:disabled){filter:grayscale(1) saturate(0%) contrast(30%) brightness(130%)}}.switch:has([switch]){.switch-input::thumb,.switch-input::track{position:absolute;display:block}.switch-input{appearance:none}}.switch:not(:has(>[switch])){input{position:absolute;z-index:1;inset:0;margin:0;cursor:pointer;appearance:none;&[disabled]{cursor:auto}}}.switch:hover{--_cy-switch-thumb-scale-factor: var(--_cy-switch-thumb-hover-scale-factor)}.switch:has(:checked){--_cy-switch-thumb-position: calc(var(--_cy-switch-track-inline-size) - var(--_cy-switch-thumb-size) - (var(--_cy-switch-inset) * 2));--_cy-switch-thumb-background-color: var(--_cy-switch-thumb-checked-background-color);--_cy-switch-track-background-color: var(--_cy-switch-track-checked-background-color);label [name=on-label]{display:block}label [name=off-label]{display:none}}.switch-input{position:relative;inline-size:var(--_cy-switch-track-inline-size);block-size:var(--_cy-switch-track-block-size);.switch-input-thumb{inset-block:var(--_cy-switch-inset);inset-inline-start:var(--_cy-switch-inset);inline-size:var(--_cy-switch-thumb-size);max-block-size:var(--_cy-switch-thumb-size);aspect-ratio:1;transform:translate(var(--_cy-switch-thumb-position, 0)) scale(var(--_cy-switch-thumb-scale-factor));border:0;border-radius:50%;background-color:var(--_cy-switch-thumb-background-color);transition:transform .25s ease-in-out;box-shadow:none}.switch-input-track{inset:0;border-style:solid;border-width:var(--_cy-switch-track-border-width);border-color:var(--_cy-switch-track-border-color);border-radius:calc(var(--_cy-switch-track-block-size) / 2);background-color:var(--_cy-switch-track-background-color);transition:background-color .25s ease-in-out}&::thumb{inset-block:var(--_cy-switch-inset);inset-inline-start:var(--_cy-switch-inset);inline-size:var(--_cy-switch-thumb-size);max-block-size:var(--_cy-switch-thumb-size);aspect-ratio:1;transform:translate(var(--_cy-switch-thumb-position, 0)) scale(var(--_cy-switch-thumb-scale-factor));border:0;border-radius:50%;background-color:var(--_cy-switch-thumb-background-color);transition:transform .25s ease-in-out;box-shadow:none}&::track{inset:0;border-style:solid;border-width:var(--_cy-switch-track-border-width);border-color:var(--_cy-switch-track-border-color);border-radius:calc(var(--_cy-switch-track-block-size) / 2);background-color:var(--_cy-switch-track-background-color);transition:background-color .25s ease-in-out}}.switch-input-thumb,.switch-input-track{position:absolute;display:block}label [name=on-label]{display:none}::slotted(*){position:relative;z-index:1}}
1202`,Em=Eb;var et=class extends ${constructor(){super(...arguments);this.hideLabelVisually=!1}get _classNames(){return Z({switch:!0})}
1202_handleChange(t){this.emit(this.changeEvent,t.target?.checked)}_handleBlur(){this.emit(this.blurEvent)}_handleClick(){this.emit(this.clickEvent)}_handleFocus(){this.emit(this.focusEvent)}_handleInput(t){this.emit(this.inputEvent,t.target?.checked)}_renderLegacySwitchInput(){return E`
1203            <input
1204                id="switch"
1205                role="switch"
1206                type="checkbox"
1207                ?checked=${this.checked}
1208                ?disabled=${this.disabled}
1209                @blur=${this._handleBlur}
1210                @change=${this._handleChange}
1211                @click=${this._handleClick}
1212                @focus=${this._handleFocus}
1213                @input=${this._handleInput}
1214            />
1215            <!-- Rebuild the native [switch] markup. -->
1216            <div
1217                class="switch-input"
1218                aria-hidden="true"
1219                part="switch-input"
1220            >
1221                <div class="switch-input-track"></div>
1222                <div class="switch-input-thumb"></div>
1223            </div>
1224        `}_renderSwitchInput(){return E`
1225            <input
1226                id="switch"
1227                class="switch-input"
1228                switch
1229                type="checkbox"
1230                part="switch-input"
1231                ?checked=${this.checked}
1232                ?disabled=${this.disabled}
1233                @blur=${this._handleBlur}
1234                @change=${this._handleChange}
1235                @click=${this._handleClick}
1236                @focus=${this._handleFocus}
1237                @input=${this._handleInput}
1238            />
1239        `}connectedCallback(){super.connectedCallback(),this._hasSwitchAttrSupport=CSS.supports("selector([switch]::thumb)")}render(){return E`
1240            <div
1241                class="${this._classNames}"
1242                part="switch-wrapper"
1243            >
1244                ${this._hasSwitchAttrSupport?this._renderSwitchInput():this._renderLegacySwitchInput()}
1245                <label
1246                    class="switch-label"
1247                    for="switch"
1248                    part="switch-label"
1249                    data-cy-visually-hidden=${this.hideLabelVisually||_}
1250                >
1251                    <slot name="on-label">${this.i18n?.offLabel??"On"}</slot>
1252                    <slot name="off-label">${this.i18n?.onLabel??"Off"}</slot>
1253                </label>
1254            </div>
1255        `}};et.styles=[...$.styles,De,Em],u([m({type:Boolean,reflect:!0})],et.prototype,"checked",2),u([m({type:Boolean,reflect:!0})],et.prototype,"disabled",2),u([m({type:Boolean,reflect:!0})],et.prototype,"hideLabelVisually",2),u([G()],et.prototype,"_hasSwitchAttrSupport",2),u([pe({eventName:"cy-blur"})],et.prototype,"blurEvent",2),u([pe({eventName:"cy-change"})],et.prototype,"changeEvent",2),u([pe({eventName:"cy-click"})],et.prototype,"clickEvent",2),u([pe({eventName:"cy-focus"})],et.prototype,"focusEvent",2),u([pe({eventName:"cy-input"})],et.prototype,"inputEvent",2);customElements.get("cy-switch")||customElements.define("cy-switch",et);var kb=P`@layer _settings{:host{--_cy-textarea-padding-block: var( --cy-textarea-padding-block, var(--cy-base-space-small, 0) );--_cy-textarea-padding-inline: var( --cy-textarea-padding-inline, var(--cy-base-space-small, 0) );--_cy-textarea-width: var(--cy-textarea-width, 100%);--_cy-textarea-height: var(--cy-textarea-height, 10lh)}}@layer _component{.input-wrapper{display:flex}textarea{inline-size:var(--_cy-textarea-width);block-size:var(--_cy-textarea-height);padding-block:var(--_cy-textarea-padding-block);padding-inline:var(--_cy-textarea-padding-inline);resize:none;field-sizing:content;@supports not (field-sizing: content){resize:block}}}
1256`,km=kb;var Fi=class extends be{get _divClassNameList(){return Z({"input-wrapper":!0})}get _inputClassNameList(){return Z({input:!0,[`input--${this.size}`]:this.size,"has-value":this._hasValue,"is-touched":this._touched})}firstUpdated(e){super.firstUpdated(e),this._hasValue=!!this.defaultValue,this._inputRef.value&&super._updateValidity(this._inputRef.value)}_renderTextarea(e){return Qe`
1257            <div
1258                class=${this._divClassNameList}
1259                part="input-wrapper"
1260            >
1261                <textarea
1262                    aria-describedby=${e||_}
1263                    class=${this._inputClassNameList}
1264                    data-testid=${this.testId||_}
1265                    id=${this.id??_}
1266                    maxlength=${this.maxLength??_}
1267                    minlength=${this.minLength??_}
1268                    name=${this.name??_}
1269                    rows=${this.rows??_}
1270                    wrap=${this.wrap??_}
1271                    ?autofocus=${this.autofocus}
1272                    ?disabled=${this.disabled}
1273                    ?readonly=${this.readOnly}
1274                    ?required=${this.required}
1275                    .value=${this.defaultValue??_}
1276                    @change=${this._handleChange}
1277                    @blur=${this._handleBlur}
1278                    @click=${this._handleClick}
1279                    @focus=${this._handleFocus}
1280                    @input=${this._handleInput}
1281                    part="textarea"
1282                    ${Te(this._inputRef)}
1283                ></textarea>
1284            </div>
1285        `}render(){return this.standalone?this._renderTextarea():this._renderFormField(this._renderTextarea.bind(this))}};Fi.styles=[...be.styles,km],u([m({type:Number})],Fi.prototype,"rows",2),u([m({type:String})],Fi.prototype,"wrap",2);customElements.get("cy-textarea")||customElements.define("cy-textarea",Fi);var wb=P`@layer _settings,_component,_variants;@layer _settings{:host{--_cy-tooltip-background-color: var( --cy-tooltip-background-color, var(--cy-base-color-surface-light, #f1f1f1) );--_cy-tooltip-border-radius: var( --cy-tooltip-border-radius, var(--cy-base-border-radius-base, 0 ) );--_cy-tooltip-border-width: var(--cy-tooltip-border-width, 0);--_cy-tooltip-border-color: var(--cy-tooltip-border-color, var(--cy-base-color-border, transparent));--_cy-tooltip-filter: var( --cy-tooltip-filter, drop-shadow(var(--_cy-tooltip-border-width) 0px 0px var(--_cy-tooltip-border-color)) drop-shadow(calc(-1 * var(--_cy-tooltip-border-width)) 0px 0px var(--_cy-tooltip-border-color)) drop-shadow(0px var(--_cy-tooltip-border-width) 0px var(--_cy-tooltip-border-color)) drop-shadow(0px calc(-1 * var(--_cy-tooltip-border-width)) 0px var(--_cy-tooltip-border-color)) );--_cy-tooltip-font-size: var(--cy-tooltip-font-size, var(--cy-base-text-font-size-base, 1rem));--_cy-tooltip-line-height: var( --cy-tooltip-line-height, var(--cy-base-text-font-line-height-base, 1.5) );--_cy-tooltip-max-block-size: var(--cy-tooltip-max-block-size, initial);--_cy-tooltip-max-inline-size: var(--cy-tooltip-max-inline-size, 13em);--_cy-tooltip-min-inline-size: var(--cy-tooltip-min-inline-size, 10em);--_cy-tooltip-padding: var(--cy-tooltip-padding, var(--cy-base-padding-base, 1rem));--_cy-tooltip-position-area: var(--cy-tooltip-position-area, top center);--_cy-tooltip-text-color: var(--cy-tooltip-text-color, var(--cy-base-color-text));--_cy-tooltip-fade-in-time: var(--cy-tooltip-fade-in-time, var(--cy-base-animation-duration-base, .25s));--_cy-tooltip-arrow-size: var( --cy-tooltip-arrow-size, 1rem )}}@layer _component{:host{display:inline-block}[popover]{--_cy-tooltip-arrow-distance: var(--_cy-tooltip-arrow-size);--_cy-tooltip-arrow-edge-size: var(--_cy-tooltip-arrow-size);--_cy-tooltip-arrow-tail-size: 0rem;anchor-name:--tooltip;position-anchor:--popover-target;position-try:flip-block;position-visibility:always;inset:auto;min-inline-size:var(--_cy-tooltip-min-inline-size);max-inline-size:var(--_cy-tooltip-max-inline-size);overflow:visible;margin:var(--_cy-tooltip-arrow-distance);margin-block-end:0;padding:var(--_cy-tooltip-padding);border:none;border-radius:var(--_cy-tooltip-border-radius);font-family:var(--cy-base-text-font-family-base-list);font-size:var(--_cy-tooltip-font-size);line-height:var(--_cy-tooltip-line-height);background-color:var(--_cy-tooltip-background-color);color:var(--_cy-tooltip-text-color);transition:var(--cy-if-user-prefers-reduced-motion, overlay var(--_cy-tooltip-fade-in-time), display var(--_cy-tooltip-fade-in-time), opacity var(--_cy-tooltip-fade-in-time));transition-behavior:allow-discrete;slot{position:relative;z-index:1;display:block;margin:calc(var(--_cy-tooltip-padding) * -1);padding:var(--_cy-tooltip-padding);border-radius:var(--_cy-tooltip-border-radius);background-color:inherit}@supports (position-area: top){@media screen and (width>600px){position-try:flip-block,--flip-left,--flip-right}&.tooltip-inline-start{inset-inline-end:calc(anchor(left) + var(--_cy-tooltip-arrow-distance));margin:var(--_cy-tooltip-arrow-distance);margin-inline-end:0}&.tooltip-inline-center{justify-self:anchor-center}&.tooltip-inline-end{inset-inline-start:calc(anchor(right) + var(--_cy-tooltip-arrow-distance));margin:var(--_cy-tooltip-arrow-distance);margin-inline-start:0}&.tooltip-block-start{inset-block-end:calc(anchor(top) + var(--_cy-tooltip-arrow-distance))}&.tooltip-block-center{align-self:unsafe anchor-center}&.tooltip-block-end{inset-block-start:calc(anchor(bottom) + var(--_cy-tooltip-arrow-distance));margin:var(--_cy-tooltip-arrow-distance);margin-block-start:0}&.tooltip-inline-center.tooltip-block-center{inset-block-end:calc(anchor(top) + var(--_cy-tooltip-arrow-distance));justify-self:anchor-center;align-self:initial}@media screen and (width<=600px){&.tooltip-inline-start,&.tooltip-inline-end{inset-inline:unset;margin:var(--_cy-tooltip-arrow-distance)}&.tooltip-block-center{inset-block-end:calc(anchor(top) + var(--_cy-tooltip-arrow-distance));align-self:unset;margin-block-end:0}}}@media(prefers-reduced-motion:reduce){--_cy-tooltip-fade-in-time: 0}@supports not (position-area: top){position:fixed;inset:initial;inset-inline-start:var(--cy-tooltip-inline-start);inset-block-start:var(--cy-tooltip-block-start);transform:translateY(var(--cy-tooltip-offset-y, 0)) translate(var(--cy-tooltip-offset-x, 0));transform-origin:center;visibility:var(--cy-tooltip-visibility, hidden)}&:popover-open{display:inline-block;opacity:1;@starting-style{opacity:0}
1285}&:not(.has-arrow){--_cy-tooltip-arrow-distance: 0rem;margin:0!important}&:before{content:"";position:absolute;z-index:-2;inset:0;border-radius:var(--_cy-tooltip-border-radius);background-color:inherit;filter:var(--_cy-tooltip-filter)}&.has-arrow{anchor-name:--tooltip;@supports not (position-area: top){margin:var(--_cy-tooltip-arrow-distance);&.tooltip-inline-center.tooltip-block-start{margin-block-end:0}&.tooltip-inline-center.tooltip-block-end{margin-block-start:0}&.tooltip-inline-start.tooltip-block-center{margin-inline-end:0}&.tooltip-inline-end.tooltip-block-center{margin-inline-start:0}&.tooltip-inline-center.tooltip-block-center{margin-block-end:0!important}}.tooltip-arrow{position:absolute;z-index:-1;inset:calc(-1 * var(--_cy-tooltip-arrow-distance));margin:inherit;filter:var(--_cy-tooltip-filter);&:before{content:"";position:absolute;inset:0;margin:inherit;background:var(--_cy-tooltip-background-color);clip-path:polygon(calc(50% - var(--_cy-tooltip-arrow-edge-size)) calc(50% - var(--_cy-tooltip-arrow-edge-size)),calc(50% - var(--_cy-tooltip-arrow-edge-size)) var(--_cy-tooltip-arrow-distance),50% var(--_cy-tooltip-arrow-tail-size),calc(50% + var(--_cy-tooltip-arrow-edge-size)) var(--_cy-tooltip-arrow-distance),calc(50% + var(--_cy-tooltip-arrow-edge-size)) calc(50% - var(--_cy-tooltip-arrow-edge-size) + 0rem),calc(100% - var(--_cy-tooltip-arrow-distance)) calc(50% - var(--_cy-tooltip-arrow-edge-size) + 0rem),calc(100% - var(--_cy-tooltip-arrow-tail-size)) 50%,calc(100% - var(--_cy-tooltip-arrow-distance)) calc(50% + var(--_cy-tooltip-arrow-edge-size)),calc(50% + var(--_cy-tooltip-arrow-edge-size)) calc(50% + var(--_cy-tooltip-arrow-edge-size)),calc(50% + var(--_cy-tooltip-arrow-edge-size)) calc(100% - var(--_cy-tooltip-arrow-distance)),50% calc(100% - var(--_cy-tooltip-arrow-tail-size)),calc(50% - var(--_cy-tooltip-arrow-edge-size)) calc(100% - var(--_cy-tooltip-arrow-distance)),calc(50% - var(--_cy-tooltip-arrow-edge-size)) calc(50% + var(--_cy-tooltip-arrow-edge-size)),var(--_cy-tooltip-arrow-distance) calc(50% + var(--_cy-tooltip-arrow-edge-size)),var(--_cy-tooltip-arrow-tail-size) 50%,var(--_cy-tooltip-arrow-distance) calc(50% - var(--_cy-tooltip-arrow-edge-size)))}}@supports (position-area: top){&.tooltip-inline-center.tooltip-block-start,&.tooltip-inline-center.tooltip-block-end{.tooltip-arrow{position:fixed;position-anchor:--tooltip;inset-inline-start:calc(anchor(--popover-target center) - var(--_cy-tooltip-arrow-edge-size) * 2);inset-block-start:calc(anchor(--tooltip top) - var(--_cy-tooltip-arrow-distance));inset-block-end:calc(anchor(--tooltip bottom) - var(--_cy-tooltip-arrow-distance));inline-size:calc(var(--_cy-tooltip-arrow-edge-size) * 2);background-color:transparent;&:before{inset-inline-start:-1rem;inline-size:calc(var(--_cy-tooltip-arrow-edge-size) * 2);background-color:var(--_cy-tooltip-background-color);clip-path:polygon(50% 0,100% var(--_cy-tooltip-arrow-edge-size),100% calc(100% - var(--_cy-tooltip-arrow-edge-size)),50% 100%,0 calc(100% - var(--_cy-tooltip-arrow-edge-size)),0 var(--_cy-tooltip-arrow-edge-size))}}}@media screen and (width<=600px){.tooltip-arrow{position:fixed;position-anchor:--tooltip;inset-inline-start:calc(anchor(--popover-target center) - var(--_cy-tooltip-arrow-edge-size) * 2);inset-block-start:calc(anchor(--tooltip top) - var(--_cy-tooltip-arrow-distance));inset-block-end:calc(anchor(--tooltip bottom) - var(--_cy-tooltip-arrow-distance));inline-size:calc(var(--_cy-tooltip-arrow-edge-size) * 2);background-color:transparent;&:before{inset-inline-start:-1rem;inline-size:calc(var(--_cy-tooltip-arrow-edge-size) * 2);background-color:var(--_cy-tooltip-background-color);clip-path:polygon(50% 0,100% var(--_cy-tooltip-arrow-edge-size),100% calc(100% - var(--_cy-tooltip-arrow-edge-size)),50% 100%,0 calc(100% - var(--_cy-tooltip-arrow-edge-size)),0 var(--_cy-tooltip-arrow-edge-size))}}&.tooltip-inline-start,&.tooltip-inline-end{justify-self:anchor-center}}}}}@position-try --flip-left{inset-inline-start:unset;inset-inline-end:calc(anchor(left) + var(--_cy-tooltip-arrow-distance));margin:var(--_cy-tooltip-arrow-distance);margin-inline-end:0}@position-try --flip-right{inset-inline-end:unset;inset-inline-start:calc(anchor(right) + var(--_cy-tooltip-arrow-distance));margin:var(--_cy-tooltip-arrow-distance);margin-inline-start:0}[popovertarget]{position:relative;anchor-name:--popover-target;display:inline-block}::slotted([slot="tooltip"]){margin:0;padding:0;font-family:var(--cy-font-family);color:inherit}::slotted(button[type="button"]){margin:0;padding:0;border:none;font-family:inherit;font-size:inherit;text-decoration:underline;background:none;color:inherit;appearance:none;text-decoration-skip-ink:all}}
1286`,wm=wb;var fs=i=>e=>
1286e[i],bs=!("anchorName"in document.documentElement.style),tt=class extends ${constructor(){super(...arguments);this._uuid=is();this.tooltipRef=Ve();this.tooltipTriggerRef=Ve();this.noArrow=!1;this.open=!1;this.placementInline="center";this.placementBlock="start";this._repositionTooltip=()=>requestAnimationFrame(()=>{if(!(this.tooltipTriggerRef?.value&&this.tooltipRef?.value))return;let{x:t,y:r,bottom:a,right:n,height:o,width:s}=this.tooltipTriggerRef?.value?.getBoundingClientRect()??{},{height:l,width:d}=this.tooltipRef?.value?.getBoundingClientRect()??{};if(o&&s&&l&&d&&a&&n&&(this._bottom!==a||this._right!==n)){let y=r>=l,p=window.innerHeight-a>=l,g=t>=d,v=window.innerWidth-n>=d;y&&!p?(this.placementBlock!=="start"&&(this.placementBlock="start"),this.placementInline!=="center"&&(this.placementInline="center")):!y&&p?(this.placementBlock!=="end"&&(this.placementBlock="end"),this.placementInline!=="center"&&(this.placementInline="center")):!y&&!p?(this.placementInline!=="center"&&(this.placementInline="center"),g?this.placementBlock!=="start"&&(this.placementBlock="start"):v&&this.placementBlock!=="end"&&(this.placementBlock="end")):y&&p&&(g&&v?this._bottom&&this._right&&this.placementInline!=="center"&&(this.placementBlock="center"):g?this.placementInline!=="start"&&(this.placementInline="start"):v&&this.placementInline!=="end"&&(this.placementInline="end"));let f=t+s/2,b=r+o/2,x=fs(this.placementInline)({center:"calc(-50% - var(--_cy-tooltip-arrow-distance))",start:`calc(-100% - (${s??0}px / 2) - var(--_cy-tooltip-arrow-distance))`,end:`calc((${s??0}px / 2) + var(--_cy-tooltip-arrow-distance))`}),S=fs(this.placementBlock)({center:"calc(-50% - var(--_cy-tooltip-arrow-distance))",start:`calc(-100% - (${o??0}px / 2) - (var(--_cy-tooltip-arrow-distance) * 2))`,end:`calc((${o??0}px / 2) + var(--_cy-tooltip-arrow-distance))`}),I=this.tooltipRef?.value?.style.getPropertyValue("--cy-tooltip-inline-start")??"0",R=this.tooltipRef?.value?.style.getPropertyValue("--cy-tooltip-block-start")??"0";parseInt(I)!==f&&(this.tooltipRef?.value?.style.setProperty("--cy-tooltip-inline-start",`${f}px`),this.tooltipRef?.value?.style.setProperty("--cy-tooltip-offset-x",`${x}`)),parseInt(R)!==b&&(this.tooltipRef?.value?.style.setProperty("--cy-tooltip-block-start",`${b}px`),this.tooltipRef?.value?.style.setProperty("--cy-tooltip-offset-y",`${S}`)),this.tooltipRef?.value?.style.setProperty("--cy-tooltip-visibility","visible"),this._bottom=a,this._right=n}})}get _classNames(){return Z({"tooltip-trigger":!0})}get _classNamesTooltip(){let t=fs(this.placementInline)({center:"inline-center",start:"inline-start",end:"inline-end"}),r=fs(this.placementBlock)({center:"block-center",start:"block-start",end:"block-end"});return Z({tooltip:!0,"has-arrow":!this.noArrow&&(this.placementBlock==="center"&&this.placementInline!=="center"||this.placementBlock!=="center"&&this.placementInline==="center"),[`tooltip-${t}`]:t,[`tooltip-${r}`]:r})}_handleBeforeToggle(t){bs&&t.newState==="open"&&this._repositionTooltip()}_handleToggle(t){this._isVisible=t.newState==="open"}_handleClick(t){this._isVisible?this._hide(t):this._show(t)}_show(t){t?.preventDefault(),t?.stopPropagation(),t?.stopImmediatePropagation(),this.tooltipRef?.value?.showPopover(),this._handleOpen()}_hide(t){t?.preventDefault(),t?.stopPropagation(),t?.stopImmediatePropagation(),this.tooltipRef?.value?.hidePopover(),this._handleClose()}show(t){this._show(t)}hide(t){this._hide(t)}_handleOpen(){this.emit(this.openEvent)}_handleClose(){this.emit(this.closeEvent)}connectedCallback(){super.connectedCallback(),bs&&(document.addEventListener("scroll",this._repositionTooltip),window.addEventListener("resize",this._repositionTooltip))}disconnectedCallback(){bs&&(document.removeEventListener("scroll",this._repositionTooltip),window.removeEventListener("resize",this._repositionTooltip)),super.disconnectedCallback()}firstUpdated(t){super.firstUpdated(t),this.open&&setTimeout(()=>this.tooltipRef?.value?.showPopover(),100)}updated(t){bs&&setTimeout(()=>this._repositionTooltip(),100),super.updated(t)}render(){return this.placementBlock==="center"&&this.placementInline==="center"&&(this.placementBlock="start",this.placementInline="center"),E`
1287            <span
1288                ${Te(this.tooltipTriggerRef)}
1289                aria-describedby="tooltip-${this._uuid}"
1290                class=${this._classNames}
1291                id="tooltip-trigger-${this._uuid}"
1292                part="tooltip-trigger"
1293                popovertarget="tooltip-${this._uuid}"
1294                @click=${this._handleClick}
1295                @mouseenter=${this.showOnHover?this._show:null}
1296                @mouseleave=${this.showOnHover?this._hide:null}
1297                @focusin=${this.showOnFocus?this._show:null}
1298                @focusout=${this.showOnFocus?this._hide:null}
1299            >
1300                <slot name="tooltip-trigger"></slot>
1301            </span>
1302            <span
1303                ${Te(this.tooltipRef)}
1304                class=${this._classNamesTooltip}
1305                id="tooltip-${this._uuid}"
1306                popover
1307                part="tooltip"
1308                role="tooltip"
1309                @beforetoggle="${this._handleBeforeToggle}"
1310                @toggle="${this._handleToggle}"
1311            >
1312                <span class="tooltip-arrow"></span>
1313                <slot name="tooltip"></slot>
1314            </span>
1315        `}};tt.styles=[wm],u([m({reflect:!0,type:Boolean})],tt.prototype,"noArrow",2),u([m({reflect:!0,type:Boolean})],tt.prototype,"open",2),u([m({type:String,hasChanged(t){return t!==null}})],tt.prototype,"placementInline",2),u([m({type:String,hasChanged(t){return t!==null}})],tt.prototype,"placementBlock",2),u([m({type:Boolean,reflect:!1})],tt.prototype,"showOnFocus",2),u([m({type:Boolean,reflect:!1})],tt.prototype,"showOnHover",2),u([G()],tt.prototype,"_isVisible",2),u([pe({eventName:"cy-open"})],tt.prototype,"openEvent",2),u([pe({eventName:"cy-close"})],tt.prototype,"closeEvent",2);customElements.get("cy-tooltip")||customElements.define("cy-tooltip",tt);var xb=P`@layer _settings{:host{--_cy-video-aspect-ratio: var( --cy-video-aspect-ratio, 16 / 9 );--_cy-video-caption-text-font-size: var( --cy-video-caption-text-font-size, var(--cy-base-text-font-size-xxxlarge, initial) );--_cy-video-caption-text-color: var( --cy-video-caption-text-color, var(--cy-base-color-white, white) );--_cy-video-caption-background-color: var( --cy-video-caption-background-color, var(--cy-base-color-black, black) );--_cy-video-media-control-transition-in: var( --cy-video-media-control-transition-in, .125s );--_cy-video-media-control-transition-out: var( --cy-video-media-control-transition-out, .5s )}}@layer _components{media-controller{--media-control-transition-in: var(--_cy-video-media-control-transition-in);--media-control-transition-out: var(--_cy-video-media-control-transition-out);display:block;inline-size:100%;aspect-ratio:var(--_cy-video-aspect-ratio);@supports (-webkit-hyphens: none){video::-webkit-media-text-track-display-backdrop{overflow:visible!important}video::-webkit-media-text-track-display{box-sizing:border-box;overflow:visible!important}video::-webkit-media-text-track-container{position:absolute;overflow:visible!important;transform:translateY(-.5lh)!important;transition:transform .5s .5s}&:not([userinactive]),&[mediapaused]{video::-webkit-media-text-track-container{transform:translateY(-3lh)!important}}}@media(prefers-reduced-motion:no-preference){video::-webkit-media-text-track-display{transition:transform .5s .5s}}&:not([userinactive]),&[mediapaused]{video::-webkit-media-text-track-display{transform:translateY(-100%);transition-duration:0s;transition-delay:0s}}&:has(vimeo-video),&:has(youtube-video){&:not([mediasubtitleslist]) media-captions-menu-button{display:none}&[mediasubtitleslist]{&:not([autohide]),&[autohide="-1"]{box-sizing:content-box;padding-block-end:44px}}}}media-volume-range[mediavolumeunavailable]{display:none}.video--youtube media-fullscreen-button[mediafullscreenunavailable]{--media-control-display: none}video::cue{font-size:var(--_cy-video-caption-text-font-size);background-color:var(--_cy-video-caption-background-color);color:var(--_cy-video-caption-text-color)}}
1316`,xm=xb;var Am={"Start airplay":"Start airplay","Stop airplay":"Stop airplay",Audio:"Audio",Captions:"Captions","Enable captions":"Enable captions","Disable captions":"Disable captions","Start casting":"Start casting","Stop casting":"Stop casting","Enter fullscreen mode":"Enter fullscreen mode","Exit fullscreen mode":"Exit fullscreen mode",Mute:"Mute",Unmute:"Unmute",Loop:"Loop","Enter picture in picture mode":"Enter picture in picture mode","Exit picture in picture mode":"Exit picture in picture mode",Play:"Play",Pause:"Pause","Playback rate":"Playback rate","Playback rate {playbackRate}":"Playback rate {playbackRate}",Quality:"Quality","Seek backward":"Seek backward","Seek forward":"Seek forward",Settings:"Settings",Auto:"Auto","audio player":"audio player","video player":"video player",volume:"volume",seek:"seek","closed captions":"closed captions","current playback rate":"current playback rate","playback time":"playback time","media loading":"media loading",settings:"settings","audio tracks":"audio tracks",quality:"quality",play:"play",pause:"pause",mute:"mute",unmute:"unmute","chapter: {chapterName}":"chapter: {chapterName}",live:"live",Off:"Off","start airplay":"start airplay","stop airplay":"stop airplay","start casting":"start casting","stop casting":"stop casting","enter fullscreen mode":"enter fullscreen mode","exit fullscreen mode":"exit fullscreen mode","enter picture in picture mode":"enter picture in picture mode","exit picture in picture mode":"exit picture in picture mode","seek to live":"seek to live","playing live":"playing live","seek back {seekOffset} seconds":"seek back {seekOffset} seconds","seek forward {seekOffset} seconds":"seek forward {seekOffset} seconds","Network Error":"Network Error","Decode Error":"Decode Error","S
1316ource Not Supported":"Source Not Supported","Encryption Error":"Encryption Error","A network error caused the media download to fail.":"A network error caused the media download to fail.","A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.":"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.","An unsupported error occurred. The server or network failed, or your browser does not support this format.":"An unsupported error occurred. The server or network failed, or your browser does not support this format.","The media is encrypted and there are no keys to decrypt it.":"The media is encrypted and there are no keys to decrypt it.",hour:"hour",hours:"hours",minute:"minute",minutes:"minutes",second:"second",seconds:"seconds","{time} remaining":"{time} remaining","{currentTime} of {totalTime}":"{currentTime} of {totalTime}","video not loaded, unknown time.":"video not loaded, unknown time."};var Tm,aa={en:Am},na=((Tm=globalThis.navigator)==null?void 0:Tm.language)||"en",_s=i=>{na=i},Sm=(i,e)=>{aa[i]=e},Ab=i=>{var e,t,r;let[a]=na.split("-");return((e=aa[na])==null?void 0:e[i])||((t=aa[a])==null?void 0:t[i])||((r=aa.en)==null?void 0:r[i])||i},Cm=()=>{let[i]=na.split("-");return aa[na]?na:aa[i]?i:"en"},k=(i,e={})=>Ab(i).replace(/\{(\w+)\}/g,(t,r)=>r in e?String(e[r]):`{${r}}`);var fd={"Start airplay":"Start AirPlay","Stop airplay":"Stop AirPlay",Audio:"Audio",Captions:"Captions","Enable captions":"Enable captions","Disable captions":"Disable captions","Start casting":"Start casting","Stop casting":"Stop casting","Enter fullscreen mode":"Enter fullscreen mode","Exit fullscreen mode":"Exit fullscreen mode",Mute:"Mute",Unmute:"Unmute",Loop:"Loop","Enter picture in picture mode":"Enter picture-in-picture mode","Exit picture in picture mode":"Exit picture-in-picture mode",Play:"Play",Pause:"Pause","Playback rate":"Playback rate","Playback rate {playbackRate}":"Playback rate {playbackRate}",Quality:"Quality","Seek backward":"Seek backward","Seek forward":"Seek forward",Settings:"Settings",Auto:"Auto","audio player":"audio player","video player":"video player",volume:"volume",seek:"seek","closed captions":"closed captions","current playback rate":"current playback rate","playback time":"playback time","media loading":"media loading",settings:"settings","audio tracks":"audio tracks",quality:"quality",play:"play",pause:"pause",mute:"mute",unmute:"unmute","chapter: {chapterName}":"Chapter: {chapterName}",live:"live",Off:"Off","start airplay":"start airplay","stop airplay":"stop airplay","start casting":"start casting","stop casting":"stop casting","enter fullscreen mode":"enter fullscreen mode","exit fullscreen mode":"exit fullscreen mode","enter picture in picture mode":"enter picture-in-picture mode","exit picture in picture mode":"exit picture-in-picture mode","seek to live":"seek to live","playing live":"playing live","seek back {seekOffset} seconds":"seek back {seekOffset} seconds","seek forward {seekOffset} seconds":"seek forward {seekOffset} seconds","Network Error":"Network Error","Decode Error":"Decode Error","Source Not Supported":"Source Not Supported","Encryption Error":"Encryption 
1316Error","A network error caused the media download to fail.":"A network error caused the media download to fail.","A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.":"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.","An unsupported error occurred. The server or network failed, or your browser does not support this format.":"An unsupported error occurred. The server or network failed, or your browser does not support this format.","The media is encrypted and there are no keys to decrypt it.":"The media is encrypted and there are no keys to decrypt it.",hour:"hour",hours:"hours",minute:"minute",minutes:"minutes",second:"second",seconds:"seconds","{time} remaining":"{time} remaining","{currentTime} of {totalTime}":"{currentTime} of {totalTime}","video not loaded, unknown time.":"video not loaded, unknown time."};Sm("en",fd);_s("en");var T={MEDIA_PLAY_REQUEST:"mediaplayrequest",MEDIA_PAUSE_REQUEST:"mediapauserequest",MEDIA_MUTE_REQUEST:"mediamuterequest",MEDIA_UNMUTE_REQUEST:"mediaunmuterequest",MEDIA_LOOP_REQUEST:"medialooprequest",MEDIA_VOLUME_REQUEST:"mediavolumerequest",MEDIA_SEEK_REQUEST:"mediaseekrequest",MEDIA_AIRPLAY_REQUEST:"mediaairplayrequest",MEDIA_ENTER_FULLSCREEN_REQUEST:"mediaenterfullscreenrequest",MEDIA_EXIT_FULLSCREEN_REQUEST:"mediaexitfullscreenrequest",MEDIA_PREVIEW_REQUEST:"mediapreviewrequest",MEDIA_ENTER_PIP_REQUEST:"mediaenterpiprequest",MEDIA_EXIT_PIP_REQUEST:"mediaexitpiprequest",MEDIA_ENTER_CAST_REQUEST:"mediaentercastrequest",MEDIA_EXIT_CAST_REQUEST:"mediaexitcastrequest",MEDIA_SHOW_TEXT_TRACKS_REQUEST:"mediashowtexttracksrequest",MEDIA_HIDE_TEXT_TRACKS_REQUEST:"mediahidetexttracksrequest",MEDIA_SHOW_SUBTITLES_REQUEST:"mediashowsubtitlesrequest",MEDIA_DISABLE_SUBTITLES_REQUEST:"mediadisablesubtitlesrequest",MEDIA_TOGGLE_SUBTITLES_REQUEST:"mediatogglesubtitlesrequest",MEDIA_PLAYBACK_RATE_REQUEST:"mediaplaybackraterequest",MEDIA_RENDITION_REQUEST:"mediarenditionrequest",MEDIA_AUDIO_TRACK_REQUEST:"mediaaudiotrackrequest",MEDIA_SEEK_TO_LIVE_REQUEST:"mediaseektoliverequest",REGISTER_MEDIA_STATE_RECEIVER:"registermediastatereceiver",UNREGISTER_MEDIA_STATE_RECEIVER:"unregistermediastatereceiver"},J={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},bd={MEDIA_AIRPLAY_UNAVAILABLE:"mediaAirplayUnavailable",MEDIA_AUDIO_TRACK_ENABLED:"mediaAudioTrackEnabled",MEDIA_AUDIO_TRACK_LIST:"mediaAudioTrackList",MEDIA_AUDIO_TRACK_UNAVAILABLE:"mediaAudioTrackUnavailable",MEDIA_BUFFERED:"mediaBuffered",MEDIA_CAST_UNAVAILABLE:"mediaCastUnavailable",MEDIA_CHAPTERS_CUES:"mediaChaptersCues",MEDIA_CURRENT_TIME:"mediaCurrentTime",MEDIA_DURATION:"mediaDuration",MEDIA_ENDED:"mediaEnded",MEDIA_ERROR:"mediaError",MEDIA_ERROR_CODE:"mediaErrorCode",MEDIA_ERROR_MESSAGE:"mediaErrorMessage",MEDIA_FULLSCREEN_UNAVAILABLE:"mediaFullscreenUnavailable",MEDIA_HAS_P
vendor: 14,002 bytes, lines 1316-1422
1316LAYED:"mediaHasPlayed",MEDIA_HEIGHT:"mediaHeight",MEDIA_IS_AIRPLAYING:"mediaIsAirplaying",MEDIA_IS_CASTING:"mediaIsCasting",MEDIA_IS_FULLSCREEN:"mediaIsFullscreen",MEDIA_IS_PIP:"mediaIsPip",MEDIA_LOADING:"mediaLoading",MEDIA_MUTED:"mediaMuted",MEDIA_LOOP:"mediaLoop",MEDIA_PAUSED:"mediaPaused",MEDIA_PIP_UNAVAILABLE:"mediaPipUnavailable",MEDIA_PLAYBACK_RATE:"mediaPlaybackRate",MEDIA_PREVIEW_CHAPTER:"mediaPreviewChapter",MEDIA_PREVIEW_COORDS:"mediaPreviewCoords",MEDIA_PREVIEW_IMAGE:"mediaPreviewImage",MEDIA_PREVIEW_TIME:"mediaPreviewTime",MEDIA_RENDITION_LIST:"mediaRenditionList",MEDIA_RENDITION_SELECTED:"mediaRenditionSelected",MEDIA_RENDITION_UNAVAILABLE:"mediaRenditionUnavailable",MEDIA_SEEKABLE:"mediaSeekable",MEDIA_STREAM_TYPE:"mediaStreamType",MEDIA_SUBTITLES_LIST:"mediaSubtitlesList",MEDIA_SUBTITLES_SHOWING:"mediaSubtitlesShowing",MEDIA_TARGET_LIVE_WINDOW:"mediaTargetLiveWindow",MEDIA_TIME_IS_LIVE:"mediaTimeIsLive",MEDIA_VOLUME:"mediaVolume",MEDIA_VOLUME_LEVEL:"mediaVolumeLevel",MEDIA_VOLUME_UNAVAILABLE:"mediaVolumeUnavailable",MEDIA_LANG:"mediaLang",MEDIA_WIDTH:"mediaWidth"},Im=Object.entries(bd),c=Im.reduce((i,[e,t])=>(i[e]=t.toLowerCase(),i),{}),Tb={USER_INACTIVE_CHANGE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"},Er=Im.reduce((i,[e,t])=>(i[e]=t.toLowerCase(),i),{...Tb}),rL=Object.entries(Er).reduce((i,[e,t])=>{let r=c[e];return r&&(i[t]=r),i},{userinactivechange:"userinactive"}),Mm=Object.entries(c).reduce((i,[e,t])=>{let r=Er[e];return r&&(i[t]=r),i},{userinactive:"userinactivechange"}),st={SUBTITLES:"subtitles",CAPTIONS:"captions",DESCRIPTIONS:"descriptions",CHAPTERS:"chapters",METADATA:"metadata"},Vi={DISABLED:"disabled",HIDDEN:"hidden",SHOWING:"showing"};var Es={MOUSE:"mouse",PEN:"pen",TOUCH:"touch"},lt={UNAVAILABLE:"unavailable",UNSUPPORTED:"unsupported"},zt={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"};var Lm={INLINE:"inline",FULLSCREEN:"fullscreen",PICTURE_IN_PICTURE:"picture-in-picture"};function Rm(i){return i?.map(Cb).join(" ")}function $m(i){return i?.split(/\s+/).map(Ib)}function Cb(i){if(i){let{id:e,width:t,height:r}=i;return[e,t,r].filter(a=>a!=null).join(":")}}function Ib(i){if(i){let[e,t,r]=i.split(":");return{id:e,width:+t,height:+r}}}function Dm(i){return i?.map(Mb).join(" ")}function Pm(i){return i?.split(/\s+/).map(Lb)}function Mb(i){if(i){let{id:e,kind:t,language:r,label:a}=i;return[e,t,r,a].filter(n=>n!=null).join(":")}}function Lb(i){if(i){let[e,t,r,a]=i.split(":");return{id:e,kind:t,language:r,label:a}}}function oa(i){return typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i)}var ks=i=>new Promise(e=>setTimeout(e,i));var Om=[{singular:"hour",plural:"hours"},{singular:"minute",plural:"minutes"},{singular:"second",plural:"seconds"}],Rb=(i,e)=>{let t=i===1?k(Om[e].singular):k(Om[e].plural);return`${i} ${t}`},kr=i=>{if(!oa(i))return"";let e=Math.abs(i),t=e!==i,r=new Date(0,0,0,0,0,e,0),n=[r.getHours(),r.getMinutes(),r.getSeconds()].map((o,s)=>o&&Rb(o,s)).filter(o=>o).join(", ");return t?k("{time} remaining",{time:n}):n};function Nt(i,e){let t=!1;i<0&&(t=!0,i=0-i),i=i<0?0:i;let r=Math.floor(i%60),a=Math.floor(i/60%60),n=Math.floor(i/3600),o=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(i)||i===1/0)&&(n=a=r="0"),n=n>0||s>0?n+":":"",a=((n||o>=10)&&a<10?"0"+a:a)+":",r=r<10?"0"+r:r,(t?"-":"")+n+a+r}var sL=Object.freeze({length:0,start(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(i){let e=i>>>0;if(e>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${e}) is greater than or equal to the maximum bound (${this.length}).`);return 0}});var ws=class{addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}},xs=class extends ws{},As=class extends xs{constructor(){super(...arguments),this.role=null}},_d=class{observe(){}unobserve(){}disconnect(){}},zm={createElement:function(){return new Mn.HTMLElement},createElementNS:function(){return new Mn.HTMLElement},addEventListener(){},removeEventListener(){},dispatchEvent(i){return!1}},Mn={ResizeObserver:_d,document:zm,Node:xs,Element:As,HTMLElement:class extends As{constructor(){super(...arguments),this.innerHTML=""}get content(){return new Mn.DocumentFragment}},DocumentFragment:class extends ws{},customElements:{get:function(){},define:function(){},whenDefined:function(){}},localStorage:{getItem(i){return null},setItem(i,e){},removeItem(i){}},CustomEvent:function(){},getComputedStyle:function(){},navigator:{languages:[],get userAgent(){return""}},matchMedia(i){return{matches:!1,media:i}},DOMParser:class{parseFromString(e,t){return{body:{textContent:e}}}}},Nm="global"in globalThis&&globalThis?.global===globalThis||typeof window>"u"||typeof window.customElements>"u",Um=Object.keys(Mn).every(i=>i in globalThis),h=Nm&&!Um?Mn:globalThis,Ee=Nm&&!Um?zm:globalThis.document;var Hm=new WeakMap,Ed=i=>{let e=Hm.get(i);return e||Hm.set(i,e=new Set),e},Bm=new h.ResizeObserver(i=>{for(let e of i)for(let t of Ed(e.target))t(e)});function Si(i,e){Ed(i).add(e),Bm.observe(i)}function Ci(i,e){let t=Ed(i);t.delete(e),t.size||Bm.unobserve(i)}function _e(i){let e={};for(let t of i)e[t.name]=t.value;return e}function ye(i){var e;return(e=Ts(i))!=null?e:ei(i,"media-controller")}function Ts(i){var e;let{MEDIA_CONTROLLER:t}=J,r=i.getAttribute(t);if(r)return(e=wr(i))==null?void 0:e.getElementById(r)}var Ss=(i,e,t=".value")=>{let r=i.querySelector(t);r&&(r.textContent=e)},Db=(i,e)=>{let t=`slot[name="${e}"]`,r=i.shadowRoot.querySelector(t);return r?r.children:[]},Cs=(i,e)=>Db(i,e)[0],it=(i,e)=>!i||!e?!1:i?.contains(e)?!0:it(i,e.getRootNode().host),ei=(i,e)=>{if(!i)return null;let t=i.closest(e);return t||ei(i.getRootNode().host,e)};function Ln(i=document){var e;let t=i?.activeElement;return t?(e=Ln(t.shadowRoot))!=null?e:t:null}function wr(i){var e;let t=(e=i?.getRootNode)==null?void 0:e.call(i);return t instanceof ShadowRoot||t instanceof Document?t:null}function Is(i,{depth:e=3,checkOpacity:t=!0,checkVisibilityCSS:r=!0}={}){if(i.checkVisibility)return i.checkVisibility({checkOpacity:t,checkVisibilityCSS:r});let a=i;for(;a&&e>0;){let n=getComputedStyle(a);if(t&&n.opacity==="0"||r&&n.visibility==="hidden"||n.display==="none")return!1;a=a.parentElement,e--}return!0}function Fm(i,e,t,r){let a=r.x-t.x,n=r.y-t.y,o=a*a+n*n;if(o===0)return 0;let s=((i-t.x)*a+(e-t.y)*n)/o;return Math.max(0,Math.min(1,s))}function fe(i,e){let t=Pb(i,r=>r===e);return t||Rn(i,e)}function Pb(i,e){var t,r;let a;for(a of(t=i.querySelectorAll("style:not([media])"))!=null?t:[]){let n;try{n=(r=a.sheet)==null?void 0:r.cssRules}catch{continue}for(let o of n??[])if(e(o.selectorText))return o}}function Rn(i,e){var t,r;let a=(t=i.querySelectorAll("style:not([media])"))!=null?t:[],n=a?.[a.length-1];if(!n?.sheet)return console.warn("Media Chrome: No style sheet found on style tag of",i),{style:{setProperty:()=>{},removeProperty:()=>"",getPropertyValue:()=>""}};let o=n?.sheet.insertRule(`${e}{}`,n.sheet.cssRules.length);return(r=n.sheet.cssRules)==null?void 0:r[o]}function ee(i,e,t=Number.NaN){let r=i.getAttribute(e);return r!=null?+r:t}function re(i,e,t){let r=+t;if(t==null||Number.isNaN(r)){i.hasAttribute(e)&&i.removeAttribute(e);return}ee(i,e,void 0)!==r&&i.setAttribute(e,`${r}`)}function F(i,e){return i.hasAttribute(e)}function V(i,e,t){if(t==null){i.hasAttribute(e)&&i.removeAttribute(e);return}F(i,e)!=t&&i.toggleAttribute(e,t)}function Y(i,e,t=null){var r;return(r=i.getAttribute(e))!=null?r:t}function K(i,e,t){if(t==null){i.hasAttribute(e)&&i.removeAttribute(e);return}let r=`${t}`;Y(i,e,void 0)!==r&&i.setAttribute(e,r)}var Vm=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Ut=(i,e,t)=>(Vm(i,e,"read from private field"),t?t.call(i):e.get(i)),Ob=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Ms=(i,e,t,r)=>(Vm(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Ge;function zb(i){return`
1317    <style>
1318      :host {
1319        display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block));
1320        box-sizing: border-box;
1321      }
1322    </style>
1323  `}var sa=class extends h.HTMLElement{constructor(){if(super(),Ob(this,Ge,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[J.MEDIA_CONTROLLER,c.MEDIA_PAUSED]}attributeChangedCallback(e,t,r){var a,n,o,s,l;e===J.MEDIA_CONTROLLER&&(t&&((n=(a=Ut(this,Ge))==null?void 0:a.unassociateElement)==null||n.call(a,this),Ms(this,Ge,null)),r&&this.isConnected&&(Ms(this,Ge,(o=this.getRootNode())==null?void 0:o.getElementById(r)),(l=(s=Ut(this,Ge))==null?void 0:s.associateElement)==null||l.call(s,this)))}connectedCallback(){var e,t;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),Ms(this,Ge,Nb(this)),this.getAttribute(J.MEDIA_CONTROLLER)&&((t=(e=Ut(this,Ge))==null?void 0:e.associateElement)==null||t.call(e,this)),Ut(this,Ge)&&(Ut(this,Ge).addEventListener("pointerdown",this),Ut(this,Ge).addEventListener("click",this),Ut(this,Ge).hasAttribute("tabindex")||(Ut(this,Ge).tabIndex=0))}disconnectedCallback(){var e,t,r,a;this.getAttribute(J.MEDIA_CONTROLLER)&&((t=(e=Ut(this,Ge))==null?void 0:e.unassociateElement)==null||t.call(e,this)),(r=Ut(this,Ge))==null||r.removeEventListener("pointerdown",this),(a=Ut(this,Ge))==null||a.removeEventListener("click",this),Ms(this,Ge,null)}handleEvent(e){var t;let r=(t=e.composedPath())==null?void 0:t[0];if(["video","media-controller"].includes(r?.localName)){if(e.type==="pointerdown")this._pointerType=e.pointerType;else if(e.type==="click"){let{clientX:n,clientY:o}=e,{left:s,top:l,width:d,height:y}=this.getBoundingClientRect(),p=n-s,g=o-l;if(p<0||g<0||p>d||g>y||d===0&&y===0)return;let v=this._pointerType||"mouse";if(this._pointerType=void 0,v===Es.TOUCH){this.handleTap(e);return}else if(v===Es.MOUSE||v===Es.PEN){this.handleMouseClick(e);return}}}}get mediaPaused(){return F(this,c.MEDIA_PAUSED)}set mediaPaused(e){V(this,c.MEDIA_PAUSED,e)}handleTap(e){}handleMouseClick(e){let t=this.mediaPaused?T.MEDIA_PLAY_REQUEST:T.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new h.CustomEvent(t,{composed:!0,bubbles:!0}))}};Ge=new WeakMap;sa.shadowRootOptions={mode:"open"};sa.getTemplateHTML=zb;function Nb(i){var e;let t=i.getAttribute(J.MEDIA_CONTROLLER);return t?(e=i.getRootNode())==null?void 0:e.getElementById(t):ei(i,"media-controller")}h.customElements.get("media-gesture-receiver")||h.customElements.define("media-gesture-receiver",sa);var Ls=sa;var Ad=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Me=(i,e,t)=>(Ad(i,e,"read from private field"),t?t.call(i):e.get(i)),rt=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Ht=(i,e,t,r)=>(Ad(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Bt=(i,e,t)=>(Ad(i,e,"access private method"),t),$n,Ds,la,ua,da,kd,ca,Rs,wd,Wm,xd,jm,Dn,Ps,Os,Td,pa,Pn,Wi,$s,W={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive",AUTOHIDE_OVER_CONTROLS:"autohideovercontrols"};function Ub(i){return`
1324    <style>
1325      
1326      :host([${c.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) {
1327        outline: none;
1328      }
1329
1330      :host {
1331        box-sizing: border-box;
1332        position: relative;
1333        display: inline-block;
1334        line-height: 0;
1335        background-color: var(--media-background-color, #000);
1336        overflow: hidden;
1337      }
1338
1339      :host(:not([${W.AUDIO}])) [part~=layer]:not([part~=media-layer]) {
1340        position: absolute;
1341        top: 0;
1342        left: 0;
1343        bottom: 0;
1344        right: 0;
1345        display: flex;
1346        flex-flow: column nowrap;
1347        align-items: start;
1348        pointer-events: none;
1349        background: none;
1350      }
1351
1352      slot[name=media] {
1353        display: var(--media-slot-display, contents);
1354      }
1355
1356      
1357      :host([${W.AUDIO}]) slot[name=media] {
1358        display: var(--media-slot-display, none);
1359      }
1360
1361      
1362      :host([${W.AUDIO}]) [part~=layer][part~=gesture-layer] {
1363        height: 0;
1364        display: block;
1365      }
1366
1367      
1368      :host(:not([${W.AUDIO}])[${W.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),
1369          :host(:not([${W.AUDIO}])[${W.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {
1370        display: none;
1371      }
1372
1373      
1374      ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([role=dialog]):not([hidden])) {
1375        pointer-events: auto;
1376      }
1377
1378      :host(:not([${W.AUDIO}])) *[part~=layer][part~=centered-layer] {
1379        align-items: center;
1380        justify-content: center;
1381      }
1382
1383      :host(:not([${W.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),
1384      :host(:not([${W.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {
1385        align-self: stretch;
1386        flex-grow: 1;
1387      }
1388
1389      slot[name=middle-chrome] {
1390        display: inline;
1391        flex-grow: 1;
1392        pointer-events: none;
1393        background: none;
1394      }
1395
1396      
1397      ::slotted([slot=media]),
1398      ::slotted([slot=poster]) {
1399        width: 100%;
1400        height: 100%;
1401      }
1402
1403      
1404      :host(:not([${W.AUDIO}])) .spacer {
1405        flex-grow: 1;
1406      }
1407
1408      
1409      :host(:-webkit-full-screen) {
1410        
1411        width: 100% !important;
1412        height: 100% !important;
1413      }
1414
1415      
1416      ::slotted(:not([slot=media]):not([slot=poster]):not([${W.NO_AUTOHIDE}]):not([hidden]):not([role=dialog])) {
1417        opacity: 1;
1418        transition: var(--media-control-transition-in, opacity 0.25s);
1419      }
1420
1421      
1422      :host([${W.USER_INACTIVE}]:not([${c.MEDIA_PAUSED}]):not([${c.MEDIA_IS_AIRPLAYING}
1422]):not([${c.MEDIA_IS_CASTING}]):not([${W.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${W.NO_AUTOHIDE}]):not([role=dialog])) {
1423        opacity: 0;
1424        transition: var(--media-control-transition-out, opacity 1s);
1425      }
1426
1427      :host([${W.USER_INACTIVE}]:not([${W.NO_AUTOHIDE}]):not([${c.MEDIA_PAUSED}]):not([${c.MEDIA_IS_CASTING}]):not([${W.AUDIO}])) ::slotted([slot=media]) {
1428        cursor: none;
1429      }
1430
1431      :host([${W.USER_INACTIVE}][${W.AUTOHIDE_OVER_CONTROLS}]:not([${W.NO_AUTOHIDE}]):not([${c.MEDIA_PAUSED}]):not([${c.MEDIA_IS_CASTING}]):not([${W.AUDIO}])) * {
1432        --media-cursor: none;
1433        cursor: none;
1434      }
1435
1436
1437      ::slotted(media-control-bar)  {
1438        align-self: stretch;
1439      }
1440
1441      
1442      :host(:not([${W.AUDIO}])[${c.MEDIA_HAS_PLAYED}]) slot[name=poster] {
1443        display: none;
1444      }
1445
1446      ::slotted([role=dialog]) {
1447        width: 100%;
1448        height: 100%;
1449        align-self: center;
1450      }
1451
1452      ::slotted([role=menu]) {
1453        align-self: end;
1454      }
1455    </style>
1456
1457    <slot name="media" part="layer media-layer"></slot>
1458    <slot name="poster" part="layer poster-layer"></slot>
1459    <slot name="gestures-chrome" part="layer gesture-layer">
1460      <media-gesture-receiver slot="gestures-chrome">
1461        <template shadowrootmode="${Ls.shadowRootOptions.mode}">
1462          ${Ls.getTemplateHTML({})}
1463        </template>
1464      </media-gesture-receiver>
1465    </slot>
1466    <span part="layer vertical-layer">
1467      <slot name="top-chrome" part="top chrome"></slot>
1468      <slot name="middle-chrome" part="middle chrome"></slot>
1469      <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot>
1470      
1471      <slot part="bottom chrome"></slot>
1472    </span>
1473    <slot name="dialog" part="layer dialog-layer"></slot>
1474  `}var Hb=Object.values(c),Bb="sm:384 md:576 lg:768 xl:960";function Fb(i){qm(i.target,i.contentRect.width)}function qm(i,e){var t;if(!i.isConnected)return;let r=(t=i.getAttribute(W.BREAKPOINTS))!=null?t:Bb,a=Vb(r),n=Wb(a,e),o=!1;if(Object.keys(a).forEach(s=>{if(n.includes(s)){i.hasAttribute(`breakpoint${s}`)||(i.setAttribute(`breakpoint${s}`,""),o=!0);return}i.hasAttribute(`breakpoint${s}`)&&(i.removeAttribute(`breakpoint${s}`),o=!0)}),o){let s=new CustomEvent(Er.BREAKPOINTS_CHANGE,{detail:n});i.dispatchEvent(s)}i.breakpointsComputed||(i.breakpointsComputed=!0,i.dispatchEvent(new CustomEvent(Er.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))}function Vb(i){let e=i.split(/\s+/);return Object.fromEntries(e.map(t=>t.split(":")))}function Wb(i,e){return Object.keys(i).filter(t=>e>=parseInt(i[t]))}var xr=class extends h.HTMLElement{constructor(){if(super(),rt(this,wd),rt(this,xd),rt(this,Dn),rt(this,Os),rt(this,pa),rt(this,$n,void 0),rt(this,Ds,0),rt(this,la,null),rt(this,ua,null),rt(this,da,void 0),this.breakpointsComputed=!1,rt(this,kd,e=>{let t=this.media;for(let r of e){if(r.type!=="childList")continue;let a=r.removedNodes;for(let n of a){if(n.slot!="media"||r.target!=this)continue;let o=r.previousSibling&&r.previousSibling.previousElementSibling;if(!o||!t)this.mediaUnsetCallback(n);else{let s=o.slot!=="media";for(;(o=o.previousSibling)!==null;)o.slot=="media"&&(s=!1);s&&this.mediaUnsetCallback(n)}}if(t)for(let n of r.addedNodes)n===t&&this.handleMediaUpdated(t)}}),rt(this,ca,!1),rt(this,Rs,e=>{Me(this,ca)||(setTimeout(()=>{Fb(e),Ht(this,ca,!1)},0),Ht(this,ca,!0))}),rt(this,Wi,void 0),rt(this,$s,()=>{if(!Me(this,Wi).assignedElements({flatten:!0}).length){Me(this,la)&&this.mediaUnsetCallback(Me(this,la));return}this.handleMediaUpdated(this.media)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}Ht(this,$n,new MutationObserver(Me(this,kd)))}static get observedAttributes(){return[W.AUTOHIDE,W.GESTURES_DISABLED].concat(Hb).filter(e=>![c.MEDIA_RENDITION_LIST,c.MEDIA_AUDIO_TRACK_LIST,c.MEDIA_CHAPTERS_CUES,c.MEDIA_WIDTH,c.MEDIA_HEIGHT,c.MEDIA_ERROR,c.MEDIA_ERROR_MESSAGE].includes(e))}attributeChangedCallback(e,t,r){e.toLowerCase()==W.AUTOHIDE&&(this.autohide=r)}get media(){let e=this.querySelector(":scope > [slot=media]");return e?.nodeName=="SLOT"&&(e=e.assignedElements({flatten:!0})[0]),e}async handleMediaUpdated(e){e&&(Ht(this,la,e),e.localName.includes("-")&&await h.customElements.whenDefined(e.localName),this.mediaSetCallback(e))}connectedCallback(){var e;Me(this,$n).observe(this,{childList:!0,subtree:!0}),Si(this,Me(this,Rs));let r=this.getAttribute(W.AUDIO)!=null?k("audio player"):k("video player");
vendor: 6,365 bytes, line 1474
1474this.setAttribute("role","region"),this.setAttribute("aria-label",r),this.handleMediaUpdated(this.media),this.setAttribute(W.USER_INACTIVE,""),qm(this,this.getBoundingClientRect().width);let a=this.querySelector(":scope > slot[slot=media]");a&&(Ht(this,Wi,a),Me(this,Wi).addEventListener("slotchange",Me(this,$s))),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),(e=h.window)==null||e.addEventListener("mouseup",this)}disconnectedCallback(){var e;Ci(this,Me(this,Rs)),clearTimeout(Me(this,ua)),Me(this,$n).disconnect(),this.media&&this.mediaUnsetCallback(this.media),(e=h.window)==null||e.removeEventListener("mouseup",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointermove",this),this.removeEventListener("pointerup",this),this.removeEventListener("mouseleave",this),this.removeEventListener("keyup",this),Me(this,Wi)&&(Me(this,Wi).removeEventListener("slotchange",Me(this,$s)),Ht(this,Wi,null)),Ht(this,ca,!1)}mediaSetCallback(e){}mediaUnsetCallback(e){Ht(this,la,null)}handleEvent(e){switch(e.type){case"pointerdown":Ht(this,Ds,e.timeStamp);break;case"pointermove":Bt(this,wd,Wm).call(this,e);break;case"pointerup":Bt(this,xd,jm).call(this,e);break;case"mouseleave":Bt(this,Dn,Ps).call(this);break;case"mouseup":this.removeAttribute(W.KEYBOARD_CONTROL);break;case"keyup":Bt(this,pa,Pn).call(this),this.setAttribute(W.KEYBOARD_CONTROL,"");break}}set autohide(e){let t=Number(e);Ht(this,da,isNaN(t)?0:t)}get autohide(){return(Me(this,da)===void 0?2:Me(this,da)).toString()}get breakpoints(){return Y(this,W.BREAKPOINTS)}set breakpoints(e){K(this,W.BREAKPOINTS,e)}get audio(){return F(this,W.AUDIO)}set audio(e){V(this,W.AUDIO,e)}get gesturesDisabled(){return F(this,W.GESTURES_DISABLED)}set gesturesDisabled(e){V(this,W.GESTURES_DISABLED,e)}get keyboardControl(){return F(this,W.KEYBOARD_CONTROL)}set keyboardControl(e){V(this,W.KEYBOARD_CONTROL,e)}get noAutohide(){return F(this,W.NO_AUTOHIDE)}set noAutohide(e){V(this,W.NO_AUTOHIDE,e)}get autohideOverControls(){return F(this,W.AUTOHIDE_OVER_CONTROLS)}set autohideOverControls(e){V(this,W.AUTOHIDE_OVER_CONTROLS,e)}get userInteractive(){return F(this,W.USER_INACTIVE)}set userInteractive(e){V(this,W.USER_INACTIVE,e)}};$n=new WeakMap;Ds=new WeakMap;la=new WeakMap;ua=new WeakMap;da=new WeakMap;kd=new WeakMap;ca=new WeakMap;Rs=new WeakMap;wd=new WeakSet;Wm=function(i){if(i.pointerType!=="mouse"&&i.timeStamp-Me(this,Ds)<250)return;Bt(this,Os,Td).call(this),clearTimeout(Me(this,ua));let e=this.hasAttribute(W.AUTOHIDE_OVER_CONTROLS);([this,this.media].includes(i.target)||e)&&Bt(this,pa,Pn).call(this)};xd=new WeakSet;jm=function(i){if(i.pointerType==="touch"){let e=!this.hasAttribute(W.USER_INACTIVE);[this,this.media].includes(i.target)&&e?Bt(this,Dn,Ps).call(this):Bt(this,pa,Pn).call(this)}else i.composedPath().some(e=>["media-play-button","media-fullscreen-button"].includes(e?.localName))&&Bt(this,pa,Pn).call(this)};Dn=new WeakSet;Ps=function(){if(Me(this,da)<0||this.hasAttribute(W.USER_INACTIVE))return;this.setAttribute(W.USER_INACTIVE,"");let i=new h.CustomEvent(Er.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(i)};Os=new WeakSet;Td=function(){if(!this.hasAttribute(W.USER_INACTIVE))return;this.removeAttribute(W.USER_INACTIVE);let i=new h.CustomEvent(Er.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(i)};pa=new WeakSet;Pn=function(){Bt(this,Os,Td).call(this),clearTimeout(Me(this,ua));let i=parseInt(this.autohide);i<0||Ht(this,ua,setTimeout(()=>{Bt(this,Dn,Ps).call(this)},i*1e3))};Wi=new WeakMap;$s=new WeakMap;xr.shadowRootOptions={mode:"open"};xr.getTemplateHTML=Ub;h.customElements.get("media-container")||h.customElements.define("media-container",xr);var Gm=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},je=(i,e,t)=>(Gm(i,e,"read from private field"),t?t.call(i):e.get(i)),On=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},zs=(i,e,t,r)=>(Gm(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),ha,ma,Ns,Ar,Ii,ji,qi=class{constructor(e,t,{defaultValue:r}={defaultValue:void 0}){On(this,Ii),On(this,ha,void 0),On(this,ma,void 0),On(this,Ns,void 0),On(this,Ar,new Set),zs(this,ha,e),zs(this,ma,t),zs(this,Ns,new Set(r))}[Symbol.iterator](){return je(this,Ii,ji).values()}get length(){return je(this,Ii,ji).size}get value(){var e;return(e=[...je(this,Ii,ji)].join(" "))!=null?e:""}set value(e){var t;e!==this.value&&(zs(this,Ar,new Set),this.add(...(t=e?.split(" "))!=null?t:[]))}toString(){return this.value}item(e){return[...je(this,Ii,ji)][e]}values(){return je(this,Ii,ji).values()}forEach(e,t){je(this,Ii,ji).forEach(e,t)}add(...e){var t,r;e.forEach(a=>je(this,Ar).add(a)),!(this.value===""&&!((t=je(this,ha))!=null&&t.hasAttribute(`${je(this,ma)}`)))&&((r=je(this,ha))==null||r.setAttribute(`${je(this,ma)}`,`${this.value}`))}remove(...e){var t;e.forEach(r=>je(this,Ar).delete(r)),(t=je(this,ha))==null||t.setAttribute(`${je(this,ma)}`,`${this.value}`)}contains(e){return je(this,Ii,ji).has(e)}toggle(e,t){return typeof t<"u"?t?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){return this.remove(e),this.add(t),e===t}};ha=new WeakMap;ma=new WeakMap;Ns=new WeakMap;Ar=new WeakMap;Ii=new WeakSet;ji=function(){return je(this,Ar).size?je(this,Ar):je(this,Ns)};var jb=(i="")=>i.split(/\s+/),Km=(i="")=>{let[e,t,r]=i.split(":"),a=r?decodeURIComponent(r):void 0;return{kind:e==="cc"?st.CAPTIONS:st.SUBTITLES,language:t,label:a}},Tr=(i="",e={})=>jb(i).map(t=>{let r=Km(t);return{...e,...r}}),Sd=i=>i?Array.isArray(i)?i.map(e=>typeof e=="string"?Km(e):e):typeof i=="string"?Tr(i):[i]:[],Us=({kind:i,label:e,language:t}={kind:"subtitles"})=>e?`${i==="captions"?"cc":"sb"}:${t}:${encodeURIComponent(e)}`:t,Mi=(i=[])=>Array.prototype.map.call(i,Us).join(" "),qb=(i,e)=>t=>t[i]===e,Ym=i=>{let e=Object.entries(i).map(([t,r])=>qb(t,r));return t=>e.every(r=>r(t))},Sr=(i,e=[],t=[])=>{let r=Sd(t).map(Ym),a=n=>r.some(o=>o(n));Array.from(e).filter(a).forEach(n=>{n.mode=i})},Cr=(i,e=()=>!0)=>{if(!i?.textTracks)return[];let t=typeof e=="function"?e:Ym(e);return Array.from(i.textTracks).filter(t)},Hs=i=>
vendor: 22,080 bytes, line 1474
1474{var e;return!!((e=i.mediaSubtitlesShowing)!=null&&e.length)||i.hasAttribute(c.MEDIA_SUBTITLES_SHOWING)};var Zm=i=>{var e;let{media:t,fullscreenElement:r}=i;try{let a=r&&"requestFullscreen"in r?"requestFullscreen":r&&"webkitRequestFullScreen"in r?"webkitRequestFullScreen":void 0;if(a){let n=(e=r[a])==null?void 0:e.call(r);if(n instanceof Promise)return n.catch(()=>{})}else t?.webkitEnterFullscreen?t.webkitEnterFullscreen():t?.requestFullscreen&&t.requestFullscreen()}catch(a){console.error(a)}},Qm="exitFullscreen"in Ee?"exitFullscreen":"webkitExitFullscreen"in Ee?"webkitExitFullscreen":"webkitCancelFullScreen"in Ee?"webkitCancelFullScreen":void 0,Xm=i=>{var e;let{documentElement:t}=i;if(Qm){let r=(e=t?.[Qm])==null?void 0:e.call(t);if(r instanceof Promise)return r.catch(()=>{})}},zn="fullscreenElement"in Ee?"fullscreenElement":"webkitFullscreenElement"in Ee?"webkitFullscreenElement":void 0,Gb=i=>{let{documentElement:e,media:t}=i,r=e?.[zn];return!r&&"webkitDisplayingFullscreen"in t&&"webkitPresentationMode"in t&&t.webkitDisplayingFullscreen&&t.webkitPresentationMode===Lm.FULLSCREEN?t:r},Jm=i=>{var e;let{media:t,documentElement:r,fullscreenElement:a=t}=i;if(!t||!r)return!1;let n=Gb(i);if(!n)return!1;if(n===a||n===t)return!0;if(n.localName.includes("-")){let o=n.shadowRoot;if(!(zn in o))return it(n,a);for(;o?.[zn];){if(o[zn]===a)return!0;o=(e=o[zn])==null?void 0:e.shadowRoot}}return!1},Kb="fullscreenEnabled"in Ee?"fullscreenEnabled":"webkitFullscreenEnabled"in Ee?"webkitFullscreenEnabled":void 0,ev=i=>{let{documentElement:e,media:t}=i;return!!e?.[Kb]||t&&"webkitSupportsFullscreen"in t};var Bs,Cd=()=>{var i,e;return Bs||(Bs=(e=(i=Ee)==null?void 0:i.createElement)==null?void 0:e.call(i,"video"),Bs)},tv=async(i=Cd())=>{if(!i)return!1;let e=i.volume;i.volume=e/2+.1;let t=new AbortController,r=await Promise.race([Yb(i,t.signal),Qb(i,e)]);return t.abort(),r},Yb=(i,e)=>new Promise(t=>{i.addEventListener("volumechange",()=>t(!0),{signal:e})}),Qb=async(i,e)=>{for(let t=0;t<10;t++){if(i.volume===e)return!1;await ks(10)}return i.volume!==e},Zb=/.*Version\/.*Safari\/.*/.test(h.navigator.userAgent),Id=(i=Cd())=>h.matchMedia("(display-mode: standalone)").matches&&Zb?!1:typeof i?.requestPictureInPicture=="function",Md=(i=Cd())=>ev({documentElement:Ee,media:i}),iv=Md(),rv=Id(),av=!!h.WebKitPlaybackTargetAvailabilityEvent,nv=!!h.chrome;var va=i=>Cr(i.media,e=>[st.SUBTITLES,st.CAPTIONS].includes(e.kind)).sort((e,t)=>e.kind>=t.kind?1:-1),Ld=i=>Cr(i.media,e=>e.mode===Vi.SHOWING&&[st.SUBTITLES,st.CAPTIONS].includes(e.kind)),Fs=(i,e)=>{let t=va(i),r=Ld(i),a=!!r.length;if(t.length){if(e===!1||a&&e!==!0)Sr(Vi.DISABLED,t,r);else if(e===!0||!a&&e!==!1){let n=t[0],{options:o}=i;if(!o?.noSubtitlesLangPref){let y=h.localStorage.getItem("media-chrome-pref-subtitles-lang"),p=y?[y,...h.navigator.languages]:h.navigator.languages,g=t.filter(v=>p.some(f=>v.language.toLowerCase().startsWith(f.split("-")[0]))).sort((v,f)=>{let b=p.findIndex(S=>v.language.toLowerCase().startsWith(S.split("-")[0])),x=p.findIndex(S=>f.language.toLowerCase().startsWith(S.split("-")[0]));return b-x});g[0]&&(n=g[0])}let{language:s,label:l,kind:d}=n;Sr(Vi.DISABLED,t,r),Sr(Vi.SHOWING,t,[{language:s,label:l,kind:d}])}}},Vs=(i,e)=>i===e?!0:i==null||e==null||typeof i!=typeof e?!1:typeof i=="number"&&Number.isNaN(i)&&Number.isNaN(e)?!0:typeof i!="object"?!1:Array.isArray(i)?Xb(i,e):Object.entries(i).every(([t,r])=>t in e&&Vs(r,e[t])),Xb=(i,e)=>{let t=Array.isArray(i),r=Array.isArray(e);return t!==r?!1:t||r?i.length!==e.length?!1:i.every((a,n)=>Vs(a,e[n])):!0};var Jb=Object.values(zt),Ws,e_=tv().then(i=>(Ws=i,Ws)),ov=async(...i)=>{await Promise.all(i.filter(e=>e).map(async e=>{if(!("localName"in e&&e instanceof h.HTMLElement))return;let t=e.localName;if(!t.includes("-"))return;let r=h.customElements.get(t);r&&e instanceof r||(await h.customElements.whenDefined(t),h.customElements.upgrade(e))}))},t_=new h.DOMParser,i_=i=>i&&(t_.parseFromString(i,"text/html").body.textContent||i),ga={mediaError:{get(i,e){let{media:t}=i;if(e?.type!=="playing")return t?.error},mediaEvents:["emptied","error","playing"]},mediaErrorCode:{get(i,e){var t;let{media:r}=i;if(e?.type!=="playing")return(t=r?.error)==null?void 0:t.code},mediaEvents:["emptied","error","playing"]},mediaErrorMessage:{get(i,e){var t,r;let{media:a}=i;if(e?.type!=="playing")return(r=(t=a?.error)==null?void 0:t.message)!=null?r:""},mediaEvents:["emptied","error","playing"]},mediaWidth:{get(i){var e;let{media:t}=i;return(e=t?.videoWidth)!=null?e:0},mediaEvents:["resize"]},mediaHeight:{get(i){var e;let{media:t}=i;return(e=t?.videoHeight)!=null?e:0},mediaEvents:["resize"]},mediaPaused:{get(i){var e;let{media:t}=i;return(e=t?.paused)!=null?e:!0},set(i,e){var t;let{media:r}=e;r&&(i?r.pause():(t=r.play())==null||t.catch(()=>{}))},mediaEvents:["play","playing","pause","emptied"]},mediaHasPlayed:{get(i,e){let{media:t}=i;return t?e?e.type==="playing":!t.paused:!1},mediaEvents:["playing","emptied"]},mediaEnded:{get(i){var e;let{media:t}=i;return(e=t?.ended)!=null?e:!1},mediaEvents:["seeked","ended","emptied"]},mediaPlaybackRate:{get(i){var e;let{media:t}=i;return(e=t?.playbackRate)!=null?e:1},set(i,e){let{media:t}=e;t&&Number.isFinite(+i)&&(t.playbackRate=+i)},mediaEvents:["ratechange","loadstart"]},mediaMuted:{get(i){var e;let{media:t}=i;return(e=t?.muted)!=null?e:!1},set(i,e){let{media:t,options:{noMutedPref:r}={}}=e;if(t){t.muted=i;try{let a=h.localStorage.getItem("media-chrome-pref-muted")!==null,n=t.hasAttribute("muted");if(r){a&&h.localStorage.removeItem("media-chrome-pref-muted");return}if(n&&!a)return;h.localStorage.setItem("media-chrome-pref-muted",i?"true":"false")}catch(a){console.debug("Error setting muted pref",a)}}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(i,e)=>{let{options:{noMutedPref:t}}=e,{media:r}=e;if(!(!r||r.muted||t))try{let a=h.localStorage.getItem("media-chrome-pref-muted")==="true";ga.mediaMuted.set(a,e),i(a)}catch(a){console.debug("Error getting muted pref",a)}}]},mediaLoop:{get(i){let{media:e}=i;return e?.loop},set(i,e){let{media:t}=e;t&&(t.loop=i)},mediaEvents:["medialooprequest"]},mediaVolume:{get(i){var e;let{media:t}=i;return(e=t?.volume)!=null?e:1},set(i,e){let{media:t,options:{noVolumePref:r}={}}=e;if(t){try{i==null?h.localStorage.removeItem("media-chrome-pref-volume"):!t.hasAttribute("muted")&&!r&&h.localStorage.setItem("media-chrome-pref-volume",i.toString())}catch(a){console.debug("Error setting volume pref",a)}Number.isFinite(+i)&&(t.volume=+i)}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(i,e)=>{let{options:{noVolumePref:t}}=e;if(!t)try{let{media:r}=e;if(!r)return;let a=h.localStorage.getItem("media-chrome-pref-volume");if(a==null)return;ga.mediaVolume.set(+a,e),i(+a)}catch(r){console.debug("Error getting volume pref",r)}}]},mediaVolumeLevel:{get(i){let{media:e}=i;return typeof e?.volume>"u"?"high":e.muted||e.volume===0?"off":e.volume<.5?"low":e.volume<.75?"medium":"high"},mediaEvents:["volumechange"]},mediaCurrentTime:{get(i){var e;let{media:t}=i;return(e=t?.currentTime)!=null?e:0},set(i,e){let{media:t}=e;!t||!oa(i)||(t.currentTime=i)},mediaEvents:["timeupdate","loadedmetadata"]},mediaDuration:{get(i){let{media:e,options:{defaultDuration:t}={}}=i;return t&&(!e||!e.duration||Number.isNaN(e.duration)||!Number.isFinite(e.duration))?t:Number.isFinite(e?.duration)?e.duration:Number.NaN},mediaEvents:["durationchange","loadedmetadata","emptied"]},mediaLoading:{get(i){let{media:e}=i;return e?.readyState<3},mediaEvents:["waiting","playing","emptied"]},mediaSeekable:{get(i){var e;let{media:t}=i;if(!((e=t?.seekable)!=null&&e.length))return;let r=t.seekable.start(0),a=t.seekable.end(t.seekable.length-1);if(!(!r&&!a))return[Number(r.toFixed(3)),Number(a.toFixed(3))]},mediaEvents:["loadedmetadata","emptied","progress","seekablechange"]},mediaBuffered:{get(i){var e;let{media:t}=i,r=(e=t?.buffered)!=null?e:[];return Array.from(r).map((a,n)=>[Number(r.start(n).toFixed(3)),Number(r.end(n).toFixed(3))])},mediaEvents:["progress","emptied"]},mediaStreamType:{get(i){let{media:e,options:{defaultStreamType:t}={}}=i,r=[zt.LIVE,zt.ON_DEMAND].includes(t)?t:void 0;if(!e)return r;let{streamType:a}=e;if(Jb.includes(a))return a===zt.UNKNOWN?r:a;let n=e.duration;return n===1/0?zt.LIVE:Number.isFinite(n)?zt.ON_DEMAND:r},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},mediaTargetLiveWindow:{get(i){let{media:e}=i;if(!e)return Number.NaN;let{targetLiveWindow:t}=e,r=ga.mediaStreamType.get(i);return(t==null||Number.isNaN(t))&&r===zt.LIVE?0:t},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},mediaTimeIsLive:{get(i){let{media:e,options:{liveEdgeOffset:t=10}={}}=i;if(!e)return!1;if(typeof e.liveEdgeStart=="number")return Number.isNaN(e.liveEdgeStart)?!1:e.currentTime>=e.liveEdgeStart;if(!(ga.mediaStreamType.get(i)===zt.LIVE))return!1;let a=e.seekable;if(!a)return!0;if(!a.length)return!1;let n=a.end(a.length-1)-t;return e.currentTime>=n},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},mediaSubtitlesList:{get(i){return va(i).map(({kind:e,label:t,language:r})=>({kind:e,label:t,language:r}))},mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},mediaSubtitlesShowing:{get(i){return Ld(i).map(({kind:e,label:t,language:r})=>({kind:e,label:t,language:r}))},mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(i,e)=>{var t,r;let{media:a,options:n}=e;if(!a)return;let o=s=>{var l;!n.defaultSubtitles||s&&![st.CAPTIONS,st.SUBTITLES].includes((l=s?.track)==null?void 0:l.kind)||Fs(e,!0)};return a.addEventListener("loadstart",o),(t=a.textTracks)==null||t.addEventListener("addtrack",o),(r=a.textTracks)==null||r.addEventListener("removetrack",o),()=>{var s,l;a.removeEventListener("loadstart",o),(s=a.textTracks)==null||s.removeEventListener("addtrack",o),(l=a.textTracks)==null||l.removeEventListener("removetrack",o)}}]},mediaChaptersCues:{get(i){var e;let{media:t}=i;if(!t)return[];let[r]=Cr(t,{kind:st.CHAPTERS});return Array.from((e=r?.cues)!=null?e:[]).map(({text:a,startTime:n,endTime:o})=>({text:i_(a),startTime:n,endTime:o}))},mediaEvents:["loadstart","loadedmetadata"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(i,e)=>{var t;let{media:r}=e;if(!r)return;let a=r.querySelector('track[kind="chapters"][default][src]'),n=(t=r.shadowRoot)==null?void 0:t.querySelector(':is(video,audio) > track[kind="chapters"][default][src]');return a?.addEventListener("load",i),n?.addEventListener("load",i),()=>{a?.removeEventListener("load",i),n?.removeEventListener("load",i)}}]},mediaIsPip:{get(i){var e,t;let{media:r,documentElement:a}=i;if(!r||!a||!a.pictureInPictureElement)return!1;if(a.pictureInPictureElement===r)return!0;if(a.pictureInPictureElement instanceof HTMLMediaElement)return(e=r.localName)!=null&&e.includes("-")?it(r,a.pictureInPictureElement):!1;if(a.pictureInPictureElement.localName.includes("-")){let n=a.pictureInPictureElement.shadowRoot;for(;n?.pictureInPictureElement;){if(n.pictureInPictureElement===r)return!0;n=(t=n.pictureInPictureElement)==null?void 0:t.shadowRoot}}return!1},set(i,e){let{media:t}=e;if(t)if(i){if(!Ee.pictureInPictureEnabled){console.warn("MediaChrome: Picture-in-picture is not enabled");return}if(!t.requestPictureInPicture){console.warn("MediaChrome: The current media does not support picture-in-picture");return}let r=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};t.requestPictureInPicture().catch(a=>{if(a.code===11){if(!t.src){console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a src set.");return}if(t.readyState===0&&t.preload==="none"){let n=()=>{t.removeEventListener("loadedmetadata",o),t.preload="none"},o=()=>{t.requestPictureInPicture().catch(r),n()};t.addEventListener("loadedmetadata",o),t.preload="metadata",setTimeout(()=>{t.readyState===0&&r(),n()},1e3)}else throw a}else throw a})}else Ee.pictureInPictureElement&&Ee.exitPictureInPicture()},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},mediaRenditionList:{get(i){var e;let{media:t}=i;return[...(e=t?.videoRenditions)!=null?e:[]].map(r=>({...r}))},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaRenditionSelected:{get(i){var e,t,r;let{media:a}=i;return(r=(t=a?.videoRenditions)==null?void 0:t[(e=a.videoRenditions)==null?void 0:e.selectedIndex])==null?void 0:r.id},set(i,e){let{media:t}=e;if(!t?.videoRenditions){console.warn("MediaController: Rendition selection not supported by this media.");return}let r=i,a=Array.prototype.findIndex.call(t.videoRenditions,n=>n.id==r);t.videoRenditions.selectedIndex!=a&&(t.videoRenditions.selectedIndex=a)},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},mediaAudioTrackList:{get(i){var e;let{media:t}=i;return[...(e=t?.audioTracks)!=null?e:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaAudioTrackEnabled:{get(i){var e,t;let{media:r}=i;return(t=[...(e=r?.audioTracks)!=null?e:[]].find(a=>a.enabled))==null?void 0:t.id},set(i,e){let{media:t}=e;if(!t?.audioTracks){console.warn("MediaChrome: Audio track selection not supported by this media.");return}let r=i;for(let a of t.audioTracks)a.enabled=r==a.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]},mediaIsFullscreen:{get(i){return Jm(i)},set(i,e,t){var r,a;i?(Zm(e),t.detail&&!((r=e.media)!=null&&r.inert)&&((a=e.media)==null||a.focus())):Xm(e)},rootEvents:["fullscreenchange","webkitfullscreenchange"],mediaEvents:["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"]},mediaIsCasting:{get(i){var e;let{media:t}=i;return!t?.remote||((e=t.remote)==null?void 0:e.state)==="disconnected"?!1:t.remote.state==="connected"},set(i,e){var t,r;let{media:a}=e;if(a&&!(i&&((t=a.remote)==null?void 0:t.state)!=="disconnected")&&!(!i&&((r=a.remote)==null?void 0:r.state)!=="connected")){if(typeof a.remote.prompt!="function"){console.warn("MediaChrome: Casting is not supported in this environment");return}a.remote.prompt().catch(()=>{})}},remoteEvents:["connect","connecting","disconnect"]},mediaIsAirplaying:{get(){return!1},set(i,e){let{media:t}=e;if(t){if(!(t.webkitShowPlaybackTargetPicker&&h.WebKitPlaybackTargetAvailabilityEvent)){console.error("MediaChrome: received a request to select AirPlay but AirPlay is not supported in this environment");return}t.webkitShowPlaybackTargetPicker()}},mediaEvents:["webkitcurrentplaybacktargetiswirelesschanged"]},mediaFullscreenUnavailable:{get(i){let{media:e}=i;if(!iv||!Md(e))return lt.UNSUPPORTED}},mediaPipUnavailable:{get(i){let{media:e}=i;if(!rv||!Id(e))return lt.UNSUPPORTED;if(e?.disablePictureInPicture)return lt.UNAVAILABLE}},mediaVolumeUnavailable:{get(i){let{media:e}=i;if(Ws===!1||e?.volume==null)return lt.UNSUPPORTED},stateOwnersUpdateHandlers:[i=>{Ws==null&&e_.then(e=>i(e?void 0:lt.UNSUPPORTED))}]},mediaCastUnavailable:{get(i,{availability:e="not-available"}={}){var t;let{media:r}=i;if(!nv||!((t=r?.remote)!=null&&t.state))return lt.UNSUPPORTED;if(!(e==null||e==="available"))return lt.UNAVAILABLE},stateOwnersUpdateHandlers:[(i,e)=>{var t;let{media:r}=e;return r?(r.disableRemotePlayback||r.hasAttribute("disableremoteplayback")||(t=r?.remote)==null||t.watchAvailability(n=>{i({availability:n?"available":"not-available"})}).catch(n=>{n.name==="NotSupportedError"?i({availability:null}):i({availability:"not-available"})}),()=>{var n;(n=r?.remote)==null||n.cancelWatchAvailability().catch(()=>{})}):void 0}]},mediaAirplayUnavailable:{get(i,e){if(!av)return lt.UNSUPPORTED;if(e?.availability==="not-available")return lt.UNAVAILABLE},mediaEvents:["webkitplaybacktargetavailabilitychanged"],stateOwnersUpdateHandlers:[(i,e)=>{var t;let{media:r}=e;return r?(r.disableRemotePlayback||r.hasAttribute("disableremoteplayback")||(t=r?.remote)==null||t.watchAvailability(n=>{i({availability:n?"available":"not-available"})}).catch(n=>{n.name==="NotSupportedError"?i({availability:null}):i({availability:"not-available"})}),()=>{var n;(n=r?.remote)==null||n.cancelWatchAvailability().catch(()=>{})}):void 0}]},mediaRenditionUnavailable:{get(i){var e;let{media:t}=i;if(!t?.videoRenditions)return lt.UNSUPPORTED;if(!((e=t.videoRenditions)!=null&&e.length))return lt.UNAVAILABLE},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaAudioTrackUnavailable:{get(i){var e,t;let{media:r}=i;if(!r?.audioTracks)return lt.UNSUPPORTED;if(((t=(e=r.audioTracks)==null?void 0:e.length)!=null?t:0)<=1)return lt.UNAVAILABLE},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaLang:{get(i){let{options:{mediaLang:e}={}}=i;return e??"en"}}};var sv={[T.MEDIA_PREVIEW_REQUEST](i,e,{detail:t}){var r,a,n;let{media:o}=e,s=t??void 0,l,d;if(o&&s!=null){let[v]=Cr(o,{kind:st.METADATA,label:"thumbnails"}),f=Array.prototype.find.call((r=v?.cues)!=null?r:[],(b,x,S)=>x===0?b.endTime>s:x===S.length-1?b.startTime<=s:b.startTime<=s&&b.endTime>s);if(f){let b=/'^(?:[a-z]+:)?\/\//i.test(f.text)||(a=o?.querySelector('track[label="thumbnails"]'))==null?void 0:a.src,x=new URL(f.text,b);d=new URLSearchParams(x.hash).get("#xywh").split(",").map(I=>+I),l=x.href}}let y=i.mediaDuration.get(e),g=(n=i.mediaChaptersCues.get(e).find((v,f,b)=>f===b.length-1&&y===v.endTime?v.startTime<=s&&v.endTime>=s:v.startTime<=s&&v.endTime>s))==null?void 0:n.text;return t!=null&&g==null&&(g=""),{mediaPreviewTime:s,mediaPreviewImage:l,mediaPreviewCoords:d,mediaPreviewChapter:g}},[T.MEDIA_PAUSE_REQUEST](i,e){i["mediaPaused"].set(!0,e)},[T.MEDIA_PLAY_REQUEST](i,e){var t,r,a,n;let o="mediaPaused",l=i.mediaStreamType.get(e)===zt.LIVE,d=!((t=e.options)!=null&&t.noAutoSeekToLive),y=i.mediaTargetLiveWindow.get(e)>0;if(l&&d&&!y){let p=(r=i.mediaSeekable.get(e))==null?void 0:r[1];if(p){let g=(n=(a=e.options)==null?void 0:a.seekToLiveOffset)!=null?n:0,v=p-g;i.mediaCurrentTime.set(v,e)}}i[o].set(!1,e)},[T.MEDIA_PLAYBACK_RATE_REQUEST](i,e,{detail:t}){let r="mediaPlaybackRate",a=t;i[r].set(a,e)},[T.MEDIA_MUTE_REQUEST](i,e){i["mediaMuted"].set(!0,e)},[T.MEDIA_UNMUTE_REQUEST](i,e){let t="mediaMuted";i.mediaVolume.get(e)||i.mediaVolume.set(.25,e),i[t].set(!1,e)},[T.MEDIA_LOOP_REQUEST](i,e,{detail:t}){let r="mediaLoop",a=!!t;return i[r].set(a,e),{mediaLoop:a}},[T.MEDIA_VOLUME_REQUEST](i,e,{detail:t}){let r="mediaVolume",a=t;a&&i.mediaMuted.get(e)&&i.mediaMuted.set(!1,e),i[r].set(a,e)},[T.MEDIA_SEEK_REQUEST](i,e,{detail:t}){let r="mediaCurrentTime",a=t;i[r].set(a,e)},[T.MEDIA_SEEK_TO_LIVE_REQUEST](i,e){var t,r,a;let n="mediaCurrentTime",o=(t=i.mediaSeekable.get(e))==null?void 0:t[1];if(Number.isNaN(Number(o)))return;let s=(a=(r=e.options)==null?void 0:r.seekToLiveOffset)!=null?a:0,l=o-s;i[n].set(l,e)},[T.MEDIA_SHOW_SUBTITLES_REQUEST](i,e,{detail:t}){var r;let{options:a}=e,n=va(e),o=Sd(t),s=(r=o[0])==null?void 0:r.language;s&&!a.noSubtitlesLangPref&&h.localStorage.setItem("media-chrome-pref-subtitles-lang",s),Sr(Vi.SHOWING,n,o)},[T.MEDIA_DISABLE_SUBTITLES_REQUEST](i,e,{detail:t}){let r=va(e),a=t??[];Sr(Vi.DISABLED,r,a)},[T.MEDIA_TOGGLE_SUBTITLES_REQUEST](i,e,{detail:t}){Fs(e,t)},[T.MEDIA_RENDITION_REQUEST](i,e,{detail:t}){let r="mediaRenditionSelected",a=t;i[r].set(a,e)},[T.MEDIA_AUDIO_TRACK_REQUEST](i,e,{detail:t}){let r="mediaAudioTrackEnabled",a=t;i[r].set(a,e)},[T.MEDIA_ENTER_PIP_REQUEST](i,e){let t="mediaIsPip";i.mediaIsFullscreen.get(e)&&i.mediaIsFullscreen.set(!1,e),i[t].set(!0,e)},[T.MEDIA_EXIT_PIP_REQUEST](i,e){i["mediaIsPip"].set(!1,e)},[T.MEDIA_ENTER_FULLSCREEN_REQUEST](i,e,t){let r="mediaIsFullscreen";i.mediaIsPip.get(e)&&i.mediaIsPip.set(!1,e),i[r].set(!0,e,t)},[T.MEDIA_EXIT_FULLSCREEN_REQUEST](i,e){i["mediaIsFullscreen"].set(!1,e)},[T.MEDIA_ENTER_CAST_REQUEST](i,e){let t="mediaIsCasting";i.mediaIsFullscreen.get(e)&&i.mediaIsFullscreen.set(!1,e),i[t].set(!0,e)},[T.MEDIA_EXIT_CAST_REQUEST](i,e){i["mediaIsCasting"].set(!1,e)},[T.MEDIA_AIRPLAY_REQUEST](i,e){i["mediaIsAirplaying"].set(!0,e)}};var lv=({media:i,fullscreenElement:e,documentElement:t,stateMediator:r=ga,requestMap:a=sv,options:n={},monitorStateOwnersOnlyWithSubscriptions:o=!0})=>{let s=[],l={options:{...n}},d=Object.freeze({mediaPreviewTime:void 0,mediaPreviewImage:void 0,mediaPreviewCoords:void 0,mediaPreviewChapter:void 0}),y=b=>{b!=null&&(Vs(b,d)||(d=Object.freeze({...d,...b}),s.forEach(x=>x(d))))},p=()=>{let b=Object.entries(r).reduce((x,[S,{get:I}])=>(x[S]=I(l),x),{});y(b)},g={},v,f=async(b,x)=>{var S,I,R,O,H,j,ae,U,Ae,te,Ie,A,w,L,q,N;let se=!!v;if(v={...l,...v??{},...b},se)return;await ov(...Object.values(b));let le=s.length>0&&x===0&&o,Ce=l.media!==v.media,Re=((S=l.media)==null?void 0:S.textTracks)!==((I=v.media)==null?void 0:I.textTracks),_t=((R=l.media)==null?void 0:R.videoRenditions)!==((O=v.media)==null?void 0:O.videoRenditions),Rt=((H=l.media)==null?void 0:H.audioTracks)!==((j=v.media)==null?void 0:j.audioTracks),Gt=((ae=l.media)==null?void 0:ae.remote)!==((U=v.media)==null?void 0:U.remote),Ep=l.documentElement!==v.documentElement,kp=!!l.media&&(Ce||le),wp=!!((Ae=l.media)!=null&&Ae.textTracks)&&(Re||le),xp=!!((te=l.media)!=null&&te.videoRenditions)&&(_t||le),Ap=!!((Ie=l.media)!=null&&Ie.audioTracks)&&(Rt||le),Tp=!!((A=l.media)!=null&&A.remote)&&(Gt||le),Sp=!!l.documentElement&&(Ep||le),Dc=kp||wp||xp||Ap||Tp||Sp,Qr=s.length===0&&x===1&&o,Cp=!!v.media&&(Ce||Qr),Ip=!!((w=v.media)!=null&&w.textTracks)&&(Re||Qr),Mp=!!((L=v.media)!=null&&L.videoRenditions)&&(_t||Qr),Lp=!!((q=v.media)!=null&&q.audioTracks)&&(Rt||Qr),Rp=!!((N=v.media)!=null&&N.remote)&&(Gt||Qr),$p=!!v.documentElement&&(Ep||Qr),Dp=Cp||Ip||Mp||Lp||Rp||$p;if(!(Dc||Dp)){Object.entries(v).forEach(([me,pn])=>{l[me]=pn}),p(),v=void 0;return}Object.entries(r).forEach(([me,{get:pn,mediaEvents:my=[],textTracksEvents:vy=[],videoRenditionsEvents:gy=[],audioTracksEvents:yy=[],remoteEvents:fy=[],rootEvents:by=[],stateOwnersUpdateHandlers:_y=[]}])=>{g[me]||(g[me]={});let ht=we=>{let $e=pn(l,we);y({[me]:$e})},Fe;
vendor: 4,168 bytes, line 1474
1474Fe=g[me].mediaEvents,my.forEach(we=>{Fe&&kp&&(l.media.removeEventListener(we,Fe),g[me].mediaEvents=void 0),Cp&&(v.media.addEventListener(we,ht),g[me].mediaEvents=ht)}),Fe=g[me].textTracksEvents,vy.forEach(we=>{var $e,$t;Fe&&wp&&(($e=l.media.textTracks)==null||$e.removeEventListener(we,Fe),g[me].textTracksEvents=void 0),Ip&&(($t=v.media.textTracks)==null||$t.addEventListener(we,ht),g[me].textTracksEvents=ht)}),Fe=g[me].videoRenditionsEvents,gy.forEach(we=>{var $e,$t;Fe&&xp&&(($e=l.media.videoRenditions)==null||$e.removeEventListener(we,Fe),g[me].videoRenditionsEvents=void 0),Mp&&(($t=v.media.videoRenditions)==null||$t.addEventListener(we,ht),g[me].videoRenditionsEvents=ht)}),Fe=g[me].audioTracksEvents,yy.forEach(we=>{var $e,$t;Fe&&Ap&&(($e=l.media.audioTracks)==null||$e.removeEventListener(we,Fe),g[me].audioTracksEvents=void 0),Lp&&(($t=v.media.audioTracks)==null||$t.addEventListener(we,ht),g[me].audioTracksEvents=ht)}),Fe=g[me].remoteEvents,fy.forEach(we=>{var $e,$t;Fe&&Tp&&(($e=l.media.remote)==null||$e.removeEventListener(we,Fe),g[me].remoteEvents=void 0),Rp&&(($t=v.media.remote)==null||$t.addEventListener(we,ht),g[me].remoteEvents=ht)}),Fe=g[me].rootEvents,by.forEach(we=>{Fe&&Sp&&(l.documentElement.removeEventListener(we,Fe),g[me].rootEvents=void 0),$p&&(v.documentElement.addEventListener(we,ht),g[me].rootEvents=ht)});let Fo=g[me].stateOwnersUpdateHandlers;if(Fo&&Dc&&(Array.isArray(Fo)?Fo:[Fo]).forEach($e=>{typeof $e=="function"&&$e()}),Dp){let we=_y.map($e=>$e(ht,v)).filter($e=>typeof $e=="function");g[me].stateOwnersUpdateHandlers=we.length===1?we[0]:we}else Dc&&(g[me].stateOwnersUpdateHandlers=void 0)}),Object.entries(v).forEach(([me,pn])=>{l[me]=pn}),p(),v=void 0};return f({media:i,fullscreenElement:e,documentElement:t,options:n}),{dispatch(b){let{type:x,detail:S}=b;if(a[x]&&d.mediaErrorCode==null){y(a[x](r,l,b));return}x==="mediaelementchangerequest"?f({media:S}):x==="fullscreenelementchangerequest"?f({fullscreenElement:S}):x==="documentelementchangerequest"?f({documentElement:S}):x==="optionschangerequest"&&(Object.entries(S??{}).forEach(([I,R])=>{l.options[I]=R}),p())},getState(){return d},subscribe(b){return f({},s.length+1),s.push(b),b(d),()=>{let x=s.indexOf(b);x>=0&&(f({},s.length-1),s.splice(x,1))}}}};var zd=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},z=(i,e,t)=>(zd(i,e,"read from private field"),t?t.call(i):e.get(i)),At=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Ft=(i,e,t,r)=>(zd(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Nn=(i,e,t)=>(zd(i,e,"access private method"),t),Li,Un,ne,ii,Hn,ti,js,Bn,qs,Rd,Mr,Gs,$d,Dd,vv,gv=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"," ","f","m","k","c","l","j",">","<","p"],cv=10,dv=.025,uv=.25,r_=.25,a_=2,C={DEFAULT_SUBTITLES:"defaultsubtitles",DEFAULT_STREAM_TYPE:"defaultstreamtype",DEFAULT_DURATION:"defaultduration",FULLSCREEN_ELEMENT:"fullscreenelement",HOTKEYS:"hotkeys",KEYBOARD_BACKWARD_SEEK_OFFSET:"keyboardbackwardseekoffset",KEYBOARD_FORWARD_SEEK_OFFSET:"keyboardforwardseekoffset",KEYBOARD_DOWN_VOLUME_STEP:"keyboarddownvolumestep",KEYBOARD_UP_VOLUME_STEP:"keyboardupvolumestep",KEYS_USED:"keysused",LANG:"lang",LOOP:"loop",LIVE_EDGE_OFFSET:"liveedgeoffset",NO_AUTO_SEEK_TO_LIVE:"noautoseektolive",NO_DEFAULT_STORE:"nodefaultstore",NO_HOTKEYS:"nohotkeys",NO_MUTED_PREF:"nomutedpref",NO_SUBTITLES_LANG_PREF:"nosubtitleslangpref",NO_VOLUME_PREF:"novolumepref",SEEK_TO_LIVE_OFFSET:"seektoliveoffset"},Pd=class extends xr{constructor(){super(),At(this,qs),At(this,Gs),At(this,Dd),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,At(this,Li,new qi(this,C.HOTKEYS)),At(this,Un,void 0),At(this,ne,void 0),At(this,ii,null),At(this,Hn,void 0),At(this,ti,void 0),At(this,js,t=>{var r;(r=z(this,ne))==null||r.dispatch(t)}),At(this,Bn,void 0),At(this,Mr,t=>{let{key:r,shiftKey:a}=t;if(!(a&&(r==="/"||r==="?")||gv.includes(r))){this.removeEventListener("keyup",z(this,Mr));return}this.keyboardShortcutHandler(t)}),this.associateElement(this);let e={};Ft(this,Hn,t=>{Object.entries(t).forEach(([r,a])=>{if(r in e&&e[r]===a)return;
vendor: 9,816 bytes, line 1474
1474this.propagateMediaState(r,a);let n=r.toLowerCase(),o=new h.CustomEvent(Mm[n],{composed:!0,detail:a});this.dispatchEvent(o)}),e=t})}static get observedAttributes(){return super.observedAttributes.concat(C.NO_HOTKEYS,C.HOTKEYS,C.DEFAULT_STREAM_TYPE,C.DEFAULT_SUBTITLES,C.DEFAULT_DURATION,C.NO_MUTED_PREF,C.NO_VOLUME_PREF,C.LANG,C.LOOP,C.LIVE_EDGE_OFFSET,C.SEEK_TO_LIVE_OFFSET,C.NO_AUTO_SEEK_TO_LIVE)}get mediaStore(){return z(this,ne)}set mediaStore(e){var t,r;if(z(this,ne)&&((t=z(this,ti))==null||t.call(this),Ft(this,ti,void 0)),Ft(this,ne,e),!z(this,ne)&&!this.hasAttribute(C.NO_DEFAULT_STORE)){Nn(this,qs,Rd).call(this);return}Ft(this,ti,(r=z(this,ne))==null?void 0:r.subscribe(z(this,Hn)))}get fullscreenElement(){var e;return(e=z(this,Un))!=null?e:this}set fullscreenElement(e){var t;this.hasAttribute(C.FULLSCREEN_ELEMENT)&&this.removeAttribute(C.FULLSCREEN_ELEMENT),Ft(this,Un,e),(t=z(this,ne))==null||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}get defaultSubtitles(){return F(this,C.DEFAULT_SUBTITLES)}set defaultSubtitles(e){V(this,C.DEFAULT_SUBTITLES,e)}get defaultStreamType(){return Y(this,C.DEFAULT_STREAM_TYPE)}set defaultStreamType(e){K(this,C.DEFAULT_STREAM_TYPE,e)}get defaultDuration(){return ee(this,C.DEFAULT_DURATION)}set defaultDuration(e){re(this,C.DEFAULT_DURATION,e)}get noHotkeys(){return F(this,C.NO_HOTKEYS)}set noHotkeys(e){V(this,C.NO_HOTKEYS,e)}get keysUsed(){return Y(this,C.KEYS_USED)}set keysUsed(e){K(this,C.KEYS_USED,e)}get liveEdgeOffset(){return ee(this,C.LIVE_EDGE_OFFSET)}set liveEdgeOffset(e){re(this,C.LIVE_EDGE_OFFSET,e)}get noAutoSeekToLive(){return F(this,C.NO_AUTO_SEEK_TO_LIVE)}set noAutoSeekToLive(e){V(this,C.NO_AUTO_SEEK_TO_LIVE,e)}get noVolumePref(){return F(this,C.NO_VOLUME_PREF)}set noVolumePref(e){V(this,C.NO_VOLUME_PREF,e)}get noMutedPref(){return F(this,C.NO_MUTED_PREF)}set noMutedPref(e){V(this,C.NO_MUTED_PREF,e)}get noSubtitlesLangPref(){return F(this,C.NO_SUBTITLES_LANG_PREF)}set noSubtitlesLangPref(e){V(this,C.NO_SUBTITLES_LANG_PREF,e)}get noDefaultStore(){return F(this,C.NO_DEFAULT_STORE)}set noDefaultStore(e){V(this,C.NO_DEFAULT_STORE,e)}get resolvedLang(){return Cm()}attributeChangedCallback(e,t,r){var a,n,o,s,l,d,y,p,g,v,f,b;if(super.attributeChangedCallback(e,t,r),e===C.NO_HOTKEYS)r!==t&&r===""?(this.hasAttribute(C.HOTKEYS)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):r!==t&&r===null&&this.enableHotkeys();else if(e===C.HOTKEYS)z(this,Li).value=r;else if(e===C.DEFAULT_SUBTITLES&&r!==t)(a=z(this,ne))==null||a.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(C.DEFAULT_SUBTITLES)}});else if(e===C.DEFAULT_STREAM_TYPE)(o=z(this,ne))==null||o.dispatch({type:"optionschangerequest",detail:{defaultStreamType:(n=this.getAttribute(C.DEFAULT_STREAM_TYPE))!=null?n:void 0}});else if(e===C.LIVE_EDGE_OFFSET&&r!==t)(s=z(this,ne))==null||s.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(C.LIVE_EDGE_OFFSET)?+this.getAttribute(C.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(C.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(C.SEEK_TO_LIVE_OFFSET):this.hasAttribute(C.LIVE_EDGE_OFFSET)?+this.getAttribute(C.LIVE_EDGE_OFFSET):void 0}});else if(e===C.SEEK_TO_LIVE_OFFSET&&r!==t)(l=z(this,ne))==null||l.dispatch({type:"optionschangerequest",detail:{seekToLiveOffset:this.hasAttribute(C.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(C.SEEK_TO_LIVE_OFFSET):this.hasAttribute(C.LIVE_EDGE_OFFSET)?+this.getAttribute(C.LIVE_EDGE_OFFSET):void 0}});else if(e===C.NO_AUTO_SEEK_TO_LIVE)(d=z(this,ne))==null||d.dispatch({type:"optionschangerequest",detail:{noAutoSeekToLive:this.hasAttribute(C.NO_AUTO_SEEK_TO_LIVE)}});else if(e===C.FULLSCREEN_ELEMENT){let x=r?(y=this.getRootNode())==null?void 0:y.getElementById(r):void 0;Ft(this,Un,x),(p=z(this,ne))==null||p.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}else e===C.LANG&&r!==t?(_s(r),(g=z(this,ne))==null||g.dispatch({type:"optionschangerequest",detail:{mediaLang:r}})):e===C.LOOP&&r!==t?(v=z(this,ne))==null||v.dispatch({type:T.MEDIA_LOOP_REQUEST,detail:r!=null}):e===C.NO_VOLUME_PREF&&r!==t?(f=z(this,ne))==null||f.dispatch({type:"optionschangerequest",detail:{noVolumePref:this.hasAttribute(C.NO_VOLUME_PREF)}}):e===C.NO_MUTED_PREF&&r!==t&&((b=z(this,ne))==null||b.dispatch({type:"optionschangerequest",detail:{noMutedPref:this.hasAttribute(C.NO_MUTED_PREF)}}))}connectedCallback(){var e,t,r;this.associateElement(this),!z(this,ne)&&!this.hasAttribute(C.NO_DEFAULT_STORE)&&Nn(this,qs,Rd).call(this),(e=z(this,ne))==null||e.dispatch({type:"documentelementchangerequest",detail:Ee}),(t=z(this,ne))==null||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement}),super.connectedCallback(),z(this,ne)&&!z(this,ti)&&Ft(this,ti,(r=z(this,ne))==null?void 0:r.subscribe(z(this,Hn))),z(this,Bn)!==void 0&&z(this,ne)&&this.media&&setTimeout(()=>{var a,n,o;(n=(a=this.media)==null?void 0:a.textTracks)!=null&&n.length&&((o=z(this,ne))==null||o.dispatch({type:T.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:z(this,Bn)}))},0),this.hasAttribute(C.NO_HOTKEYS)?this.disableHotkeys():this.enableHotkeys()}disconnectedCallback(){var e,t,r,a,n,o;if((e=super.disconnectedCallback)==null||e.call(this),this.disableHotkeys(),z(this,ne)){let s=z(this,ne).getState();Ft(this,Bn,!!((t=s.mediaSubtitlesShowing)!=null&&t.length)),(r=z(this,ne))==null||r.dispatch({type:"fullscreenelementchangerequest",detail:void 0}),(a=z(this,ne))==null||a.dispatch({type:"documentelementchangerequest",detail:void 0}),(n=z(this,ne))==null||n.dispatch({type:T.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})}z(this,ti)&&((o=z(this,ti))==null||o.call(this),Ft(this,ti,void 0)),this.unassociateElement(this),z(this,ii)&&(z(this,ii).remove(),Ft(this,ii,null))}mediaSetCallback(e){var t;super.mediaSetCallback(e),(t=z(this,ne))==null||t.dispatch({type:"mediaelementchangerequest",detail:e}),e.hasAttribute("tabindex")||(e.tabIndex=-1)}mediaUnsetCallback(e){var t;super.mediaUnsetCallback(e),(t=z(this,ne))==null||t.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(e,t){mv(this.mediaStateReceivers,e,t)}associateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;if(t.has(e))return;let r=this.registerMediaStateReceiver.bind(this),a=this.unregisterMediaStateReceiver.bind(this),n=d_(e,r,a);Object.values(T).forEach(o=>{e.addEventListener(o,z(this,js))}),t.set(e,n)}unassociateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;if(!t.has(e))return;t.get(e)(),t.delete(e),Object.values(T).forEach(a=>{e.removeEventListener(a,z(this,js))})}registerMediaStateReceiver(e){if(!e)return;let t=this.mediaStateReceivers;t.indexOf(e)>-1||(t.push(e),z(this,ne)&&Object.entries(z(this,ne).getState()).forEach(([a,n])=>{mv([e],a,n)}))}unregisterMediaStateReceiver(e){let t=this.mediaStateReceivers,r=t.indexOf(e);r<0||t.splice(r,1)}enableHotkeys(){this.addEventListener("keydown",Nn(this,Gs,$d))}disableHotkeys(){this.removeEventListener("keydown",Nn(this,Gs,$d)),this.removeEventListener("keyup",z(this,Mr))}get hotkeys(){return z(this,Li)}set hotkeys(e){K(this,C.HOTKEYS,e)}keyboardShortcutHandler(e){var t,r,a,n,o,s,l,d,y;let p=e.target;if(((a=(r=(t=p.getAttribute(C.KEYS_USED))==null?void 0:t.split(" "))!=null?r:p?.keysUsed)!=null?a:[]).map(S=>S==="Space"?" ":S).filter(Boolean).includes(e.key))return;let v,f,b;if(!(z(this,Li).contains(`no${e.key.toLowerCase()}`)||e.key===" "&&z(this,Li).contains("nospace")||e.shiftKey&&(e.key==="/"||e.key==="?")&&z(this,Li).contains("noshift+/")))switch(e.key){case" ":case"k":v=z(this,ne).getState().mediaPaused?T.MEDIA_PLAY_REQUEST:T.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new h.CustomEvent(v,{composed:!0,bubbles:!0}));break;case"m":v=this.mediaStore.getState().mediaVolumeLevel==="off"?T.MEDIA_UNMUTE_REQUEST:T.MEDIA_MUTE_REQUEST,this.dispatchEvent(new h.CustomEvent(v,{composed:!0,bubbles:!0}));break;case"f":v=this.mediaStore.getState().mediaIsFullscreen?T.MEDIA_EXIT_FULLSCREEN_REQUEST:T.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new h.CustomEvent(v,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new h.CustomEvent(T.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":case"j":{let S=this.hasAttribute(C.KEYBOARD_BACKWARD_SEEK_OFFSET)?+this.getAttribute(C.KEYBOARD_BACKWARD_SEEK_OFFSET):cv;f=Math.max(((n=this.mediaStore.getState().mediaCurrentTime)!=null?n:0)-S,0),b=new h.CustomEvent(T.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:f}),this.dispatchEvent(b);break}case"ArrowRight":case"l":{let S=this.hasAttribute(C.KEYBOARD_FORWARD_SEEK_OFFSET)?+this.getAttribute(C.KEYBOARD_FORWARD_SEEK_OFFSET):cv;f=Math.max(((o=this.mediaStore.getState().mediaCurrentTime)!=null?o:0)+S,0),b=new h.CustomEvent(T.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:f}),this.dispatchEvent(b);break}case"ArrowUp":{let S=this.hasAttribute(C.KEYBOARD_UP_VOLUME_STEP)?+this.getAttribute(C.KEYBOARD_UP_VOLUME_STEP):dv;f=Math.min(((s=this.mediaStore.getState().mediaVolume)!=null?s:1)+S,1),b=new h.CustomEvent(T.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:f}),this.dispatchEvent(b);break}case"ArrowDown":{let S=this.hasAttribute(C.KEYBOARD_DOWN_VOLUME_STEP)?+this.getAttribute(C.KEYBOARD_DOWN_VOLUME_STEP):dv;f=Math.max(((l=this.mediaStore.getState().mediaVolume)!=null?l:1)-S,0),b=new h.CustomEvent(T.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:f}),this.dispatchEvent(b);break}case"<":{let S=(d=this.mediaStore.getState().mediaPlaybackRate)!=null?d:1;f=Math.max(S-uv,r_).toFixed(2),b=new h.CustomEvent(T.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:f}),this.dispatchEvent(b);break}case">":{let S=(y=this.mediaStore.getState().mediaPlaybackRate)!=null?y:1;
vendor: 4,242 bytes, line 1474
1474f=Math.min(S+uv,a_).toFixed(2),b=new h.CustomEvent(T.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:f}),this.dispatchEvent(b);break}case"/":case"?":{e.shiftKey&&Nn(this,Dd,vv).call(this);break}case"p":{v=this.mediaStore.getState().mediaIsPip?T.MEDIA_EXIT_PIP_REQUEST:T.MEDIA_ENTER_PIP_REQUEST,b=new h.CustomEvent(v,{composed:!0,bubbles:!0}),this.dispatchEvent(b);break}default:break}}};Li=new WeakMap;Un=new WeakMap;ne=new WeakMap;ii=new WeakMap;Hn=new WeakMap;ti=new WeakMap;js=new WeakMap;Bn=new WeakMap;qs=new WeakSet;Rd=function(){var i;this.mediaStore=lv({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(C.DEFAULT_SUBTITLES),defaultDuration:this.hasAttribute(C.DEFAULT_DURATION)?+this.getAttribute(C.DEFAULT_DURATION):void 0,defaultStreamType:(i=this.getAttribute(C.DEFAULT_STREAM_TYPE))!=null?i:void 0,liveEdgeOffset:this.hasAttribute(C.LIVE_EDGE_OFFSET)?+this.getAttribute(C.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(C.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(C.SEEK_TO_LIVE_OFFSET):this.hasAttribute(C.LIVE_EDGE_OFFSET)?+this.getAttribute(C.LIVE_EDGE_OFFSET):void 0,noAutoSeekToLive:this.hasAttribute(C.NO_AUTO_SEEK_TO_LIVE),noVolumePref:this.hasAttribute(C.NO_VOLUME_PREF),noMutedPref:this.hasAttribute(C.NO_MUTED_PREF),noSubtitlesLangPref:this.hasAttribute(C.NO_SUBTITLES_LANG_PREF)}})};Mr=new WeakMap;Gs=new WeakSet;$d=function(i){var e;let{metaKey:t,altKey:r,key:a,shiftKey:n}=i,o=n&&(a==="/"||a==="?");if(o&&((e=z(this,ii))!=null&&e.open)){this.removeEventListener("keyup",z(this,Mr));return}if(t||r||!o&&!gv.includes(a)){this.removeEventListener("keyup",z(this,Mr));return}let s=i.target,l=s instanceof HTMLElement&&(s.tagName.toLowerCase()==="media-volume-range"||s.tagName.toLowerCase()==="media-time-range");[" ","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(a)&&!(z(this,Li).contains(`no${a.toLowerCase()}`)||a===" "&&z(this,Li).contains("nospace"))&&!l&&i.preventDefault(),this.addEventListener("keyup",z(this,Mr),{once:!0})};Dd=new WeakSet;vv=function(){z(this,ii)||(Ft(this,ii,Ee.createElement("media-keyboard-shortcuts-dialog")),this.appendChild(z(this,ii))),z(this,ii).open=!0};var n_=Object.values(c),o_=Object.values(bd),yv=i=>{var e,t,r,a;let{observedAttributes:n}=i.constructor;!n&&((e=i.nodeName)!=null&&e.includes("-"))&&(h.customElements.upgrade(i),{observedAttributes:n}=i.constructor);let o=(a=(r=(t=i?.getAttribute)==null?void 0:t.call(i,J.MEDIA_CHROME_ATTRIBUTES))==null?void 0:r.split)==null?void 0:a.call(r,/\s+/);return Array.isArray(n||o)?(n||o).filter(s=>n_.includes(s)):[]},s_=i=>{var e,t;return(e=i.nodeName)!=null&&e.includes("-")&&h.customElements.get((t=i.nodeName)==null?void 0:t.toLowerCase())&&!(i instanceof h.customElements.get(i.nodeName.toLowerCase()))&&h.customElements.upgrade(i),o_.some(r=>r in i)},Od=i=>s_(i)||!!yv(i).length,pv=i=>{var e;return(e=i?.join)==null?void 0:e.call(i,":")},hv={[c.MEDIA_SUBTITLES_LIST]:Mi,[c.MEDIA_SUBTITLES_SHOWING]:Mi,[c.MEDIA_SEEKABLE]:pv,[c.MEDIA_BUFFERED]:i=>i?.map(pv).join(" "),[c.MEDIA_PREVIEW_COORDS]:i=>i?.join(" "),[c.MEDIA_RENDITION_LIST]:Rm,[c.MEDIA_AUDIO_TRACK_LIST]:Dm},l_=async(i,e,t)=>{var r,a;if(i.isConnected||await ks(0),typeof t=="boolean"||t==null)return V(i,e,t);if(typeof t=="number")return re(i,e,t);if(typeof t=="string")return K(i,e,t);if(Array.isArray(t)&&!t.length)return i.removeAttribute(e);let n=(a=(r=hv[e])==null?void 0:r.call(hv,t))!=null?a:t;return i.setAttribute(e,n)},c_=i=>{var e;return!!((e=i.closest)!=null&&e.call(i,'*[slot="media"]'))},Ir=(i,e)=>{if(c_(i))return;let t=(a,n)=>{var o,s;Od(a)&&n(a);let{children:l=[]}=a??{},d=(s=(o=a?.shadowRoot)==null?void 0:o.children)!=null?s:[];[...l,...d].forEach(p=>Ir(p,n))},r=i?.nodeName.toLowerCase();if(r.includes("-")&&!Od(i)){h.customElements.whenDefined(r).then(()=>{t(i,e)});return}t(i,e)},mv=(i,e,t)=>{i.forEach(r=>{if(e in r){r[e]=t;return}let a=yv(r),n=e.toLowerCase();a.includes(n)&&l_(r,n,t)})},d_=(i,e,t)=>{Ir(i,e);let r=y=>{var p;let g=(p=y?.composedPath()[0])!=null?p:y.target;e(g)},a=y=>{var p;let g=(p=y?.composedPath()[0])!=null?p:y.target;t(g)};i.addEventListener(T.REGISTER_MEDIA_STATE_RECEIVER,r),i.addEventListener(T.UNREGISTER_MEDIA_STATE_RECEIVER,a);let n=y=>
vendor: 4,127 bytes, lines 1474-1553
1474{y.forEach(p=>{let{addedNodes:g=[],removedNodes:v=[],type:f,target:b,attributeName:x}=p;f==="childList"?(Array.prototype.forEach.call(g,S=>Ir(S,e)),Array.prototype.forEach.call(v,S=>Ir(S,t))):f==="attributes"&&x===J.MEDIA_CHROME_ATTRIBUTES&&(Od(b)?e(b):t(b))})},o=[],s=y=>{let p=y.target;p.name!=="media"&&(o.forEach(g=>Ir(g,t)),o=[...p.assignedElements({flatten:!0})],o.forEach(g=>Ir(g,e)))};i.addEventListener("slotchange",s);let l=new MutationObserver(n);return l.observe(i,{childList:!0,attributes:!0,subtree:!0}),()=>{Ir(i,t),i.removeEventListener("slotchange",s),l.disconnect(),i.removeEventListener(T.REGISTER_MEDIA_STATE_RECEIVER,r),i.removeEventListener(T.UNREGISTER_MEDIA_STATE_RECEIVER,a)}};h.customElements.get("media-controller")||h.customElements.define("media-controller",Pd);var ya={PLACEMENT:"placement",BOUNDS:"bounds"};function u_(i){return`
1475    <style>
1476      :host {
1477        --_tooltip-background-color: var(--media-tooltip-background-color, var(--media-secondary-color, rgba(20, 20, 30, .7)));
1478        --_tooltip-background: var(--media-tooltip-background, var(--_tooltip-background-color));
1479        --_tooltip-arrow-half-width: calc(var(--media-tooltip-arrow-width, 12px) / 2);
1480        --_tooltip-arrow-height: var(--media-tooltip-arrow-height, 5px);
1481        --_tooltip-arrow-background: var(--media-tooltip-arrow-color, var(--_tooltip-background-color));
1482        position: relative;
1483        pointer-events: none;
1484        display: var(--media-tooltip-display, inline-flex);
1485        justify-content: center;
1486        align-items: center;
1487        box-sizing: border-box;
1488        z-index: var(--media-tooltip-z-index, 1);
1489        background: var(--_tooltip-background);
1490        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
1491        font: var(--media-font,
1492          var(--media-font-weight, 400)
1493          var(--media-font-size, 13px) /
1494          var(--media-text-content-height, var(--media-control-height, 18px))
1495          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
1496        padding: var(--media-tooltip-padding, .35em .7em);
1497        border: var(--media-tooltip-border, none);
1498        border-radius: var(--media-tooltip-border-radius, 5px);
1499        filter: var(--media-tooltip-filter, drop-shadow(0 0 4px rgba(0, 0, 0, .2)));
1500        white-space: var(--media-tooltip-white-space, nowrap);
1501      }
1502
1503      :host([hidden]) {
1504        display: none;
1505      }
1506
1507      img, svg {
1508        display: inline-block;
1509      }
1510
1511      #arrow {
1512        position: absolute;
1513        width: 0px;
1514        height: 0px;
1515        border-style: solid;
1516        display: var(--media-tooltip-arrow-display, block);
1517      }
1518
1519      :host(:not([placement])),
1520      :host([placement="top"]) {
1521        position: absolute;
1522        bottom: calc(100% + var(--media-tooltip-distance, 12px));
1523        left: 50%;
1524        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0);
1525      }
1526      :host(:not([placement])) #arrow,
1527      :host([placement="top"]) #arrow {
1528        top: 100%;
1529        left: 50%;
1530        border-width: var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width);
1531        border-color: var(--_tooltip-arrow-background) transparent transparent transparent;
1532        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
1533      }
1534
1535      :host([placement="right"]) {
1536        position: absolute;
1537        left: calc(100% + var(--media-tooltip-distance, 12px));
1538        top: 50%;
1539        transform: translate(0, -50%);
1540      }
1541      :host([placement="right"]) #arrow {
1542        top: 50%;
1543        right: 100%;
1544        border-width: var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0;
1545        border-color: transparent var(--_tooltip-arrow-background) transparent transparent;
1546        transform: translate(0, -50%);
1547      }
1548
1549      :host([placement="bottom"]) {
1550        position: absolute;
1551        top: calc(100% + var(--media-tooltip-distance, 12px));
1552        left: 50%;
1553        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0
1553);
1554      }
1555      :host([placement="bottom"]) #arrow {
1556        bottom: 100%;
1557        left: 50%;
1558        border-width: 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width);
1559        border-color: transparent transparent var(--_tooltip-arrow-background) transparent;
1560        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
1561      }
1562
1563      :host([placement="left"]) {
1564        position: absolute;
1565        right: calc(100% + var(--media-tooltip-distance, 12px));
1566        top: 50%;
1567        transform: translate(0, -50%);
1568      }
1569      :host([placement="left"]) #arrow {
1570        top: 50%;
1571        left: 100%;
1572        border-width: var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height);
1573        border-color: transparent transparent transparent var(--_tooltip-arrow-background);
1574        transform: translate(0, -50%);
1575      }
1576      
1577      :host([placement="none"]) #arrow {
1578        display: none;
1579      }
1580    </style>
1581    <slot></slot>
1582    <div id="arrow"></div>
1583  `}var fa=class extends h.HTMLElement{constructor(){if(super(),this.updateXOffset=()=>{var e;if(!Is(this,{checkOpacity:!1,checkVisibilityCSS:!1}))return;let t=this.placement;if(t==="left"||t==="right"){this.style.removeProperty("--media-tooltip-offset-x");return}let r=getComputedStyle(this),a=(e=ei(this,"#"+this.bounds))!=null?e:ye(this);if(!a)return;let{x:n,width:o}=a.getBoundingClientRect(),{x:s,width:l}=this.getBoundingClientRect(),d=s+l,y=n+o,p=r.getPropertyValue("--media-tooltip-offset-x"),g=p?parseFloat(p.replace("px","")):0,v=r.getPropertyValue("--media-tooltip-container-margin"),f=v?parseFloat(v.replace("px","")):0,b=s-n+g-f,x=d-y+g+f;if(b<0){this.style.setProperty("--media-tooltip-offset-x",`${b}px`);return}if(x>0){this.style.setProperty("--media-tooltip-offset-x",`${x}px`);return}this.style.removeProperty("--media-tooltip-offset-x")},!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}if(this.arrowEl=this.shadowRoot.querySelector("#arrow"),Object.prototype.hasOwnProperty.call(this,"placement")){let e=this.placement;delete this.placement,this.placement=e}}static get observedAttributes(){return[ya.PLACEMENT,ya.BOUNDS]}get placement(){return Y(this,ya.PLACEMENT)}set placement(e){K(this,ya.PLACEMENT,e)}get bounds(){return Y(this,ya.BOUNDS)}set bounds(e){K(this,ya.BOUNDS,e)}};fa.shadowRootOptions={mode:"open"};fa.getTemplateHTML=u_;h.customElements.get("media-tooltip")||h.customElements.define("media-tooltip",fa);var Ks=fa;var Ud=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Oe=(i,e,t)=>(Ud(i,e,"read from private field"),t?t.call(i):e.get(i)),ba=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Ys=(i,e,t,r)=>(Ud(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),p_=(i,e,t)=>(Ud(i,e,"access private method"),t),ri,Ea,Ki,_a,Qs,Nd,fv,Gi={TOOLTIP_PLACEMENT:"tooltipplacement",DISABLED:"disabled",NO_TOOLTIP:"notooltip"};function h_(i,e={}){return`
1584    <style>
1585      :host {
1586        position: relative;
1587        font: var(--media-font,
1588          var(--media-font-weight, bold)
1589          var(--media-font-size, 14px) /
1590          var(--media-text-content-height, var(--media-control-height, 24px))
1591          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
1592        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
1593        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
1594        padding: var(--media-button-padding, var(--media-control-padding, 10px));
1595        justify-content: var(--media-button-justify-content, center);
1596        display: inline-flex;
1597        align-items: center;
1598        vertical-align: middle;
1599        box-sizing: border-box;
1600        transition: background .15s linear;
1601        pointer-events: auto;
1602        cursor: var(--media-cursor, pointer);
1603        -webkit-tap-highlight-color: transparent;
1604      }
1605
1606      
1607      :host(:focus-visible) {
1608        box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
1609        outline: 0;
1610      }
1611      
1612      :host(:where(:focus)) {
1613        box-shadow: none;
1614        outline: 0;
1615      }
1616
1617      :host(:hover) {
1618        background: var(--media-control-hover-background, rgba(50 50 70 / .7));
1619      }
1620
1621      slot[name="icon"] {
1622        display: inline-flex;
1623        align-items: center;
1624      }
1625
1626      svg, img, ::slotted(svg), ::slotted(img) {
1627        width: var(--media-button-icon-width);
1628        height: var(--media-button-icon-height, var(--media-control-height, 24px));
1629        transform: var(--media-button-icon-transform);
1630        transition: var(--media-button-icon-transition);
1631        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1632        vertical-align: middle;
1633        max-width: 100%;
1634        max-height: 100%;
1635        min-width: 100%;
1636      }
1637
1638      media-tooltip {
1639        
1640        max-width: 0;
1641        overflow-x: clip;
1642        opacity: 0;
1643        transition: opacity .3s, max-width 0s 9s;
1644      }
1645
1646      :host(:hover) media-tooltip,
1647      :host(:focus-visible) media-tooltip {
1648        max-width: 100vw;
1649        opacity: 1;
1650        transition: opacity .3s;
1651      }
1652
1653      :host([notooltip]) slot[name="tooltip"] {
1654        display: none;
1655      }
1656    </style>
1657
1658    ${this.getSlotTemplateHTML(i,e)}
1659
1660    <slot name="tooltip">
1661      <media-tooltip part="tooltip" aria-hidden="true">
1662        <template shadowrootmode="${Ks.shadowRootOptions.mode}">
1663          ${Ks.getTemplateHTML({})}
1664        </template>
1665        <slot name="tooltip-content">
1666          ${this.getTooltipContentHTML(i)}
1667        </slot>
1668      </media-tooltip>
1669    </slot>
1670  `}function m_(i,e){return`
1671    <slot></slot>
1672  `}function v_(){return""}var de=class extends h.HTMLElement{constructor(){if(super(),ba(this,Nd),ba(this,ri,void 0),this.preventClick=!1,this.tooltipEl=null,ba(this,Ea,e=>{this.preventClick||this.handleClick(e),setTimeout(Oe(this,Ki),0)}),ba(this,Ki,()=>{var e,t;(t=(e=this.tooltipEl)==null?void 0:e.updateXOffset)==null||t.call(e)}),ba(this,_a,e=>{let{key:t}=e;if(!this.keysUsed.includes(t)){this.removeEventListener("keyup",Oe(this,_a));return}this.preventClick||this.handleClick(e)}),ba(this,Qs,e=>{let{metaKey:t,altKey:r,key:a}=e;if(t||r||!this.keysUsed.includes(a)){this.removeEventListener("keyup",Oe(this,_a));return}this.addEventListener("keyup",Oe(this,_a),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.tooltipEl=this.shadowRoot.querySelector("media-tooltip")}static get observedAttributes(){return["disabled",Gi.TOOLTIP_PLACEMENT,J.MEDIA_CONTROLLER,c.MEDIA_LANG]}enable(){this.addEventListener("click",Oe(this,Ea)),this.addEventListener("keydown",Oe(this,Qs)),this.tabIndex=0}disable(){this.removeEventListener("click",Oe(this,Ea)),this.removeEventListener("keydown",Oe(this,Qs)),this.removeEventListener("keyup",Oe(this,_a)),this.tabIndex=-1}attributeChangedCallback(e,t,r){var a,n,o,s,l;e===J.MEDIA_CONTROLLER?(t&&((n=(a=Oe(this,ri))==null?void 0:a.unassociateElement)==null||n.call(a,this),Ys(this,ri,null)),r&&this.isConnected&&(Ys(this,ri,(o=this.getRootNode())==null?void 0:o.getElementById(r)),(l=(s=Oe(this,ri))==null?void 0:s.associateElement)==null||l.call(s,this))):e==="disabled"&&r!==t?r==null?this.enable():this.disable():e===Gi.TOOLTIP_PLACEMENT&&this.tooltipEl&&r!==t?this.tooltipEl.placement=r:e===c.MEDIA_LANG&&(this.shadowRoot.querySelector('slot[name="tooltip-content"]').innerHTML=this.constructor.getTooltipContentHTML()),Oe(this,Ki).call(this)}connectedCallback(){var e,t,r;let{style:a}=fe(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.hasAttribute("disabled")?this.disable():this.enable(),this.setAttribute("role","button");let n=this.getAttribute(J.MEDIA_CONTROLLER);n&&(Ys(this,ri,(e=this.getRootNode())==null?void 0:e.getElementById(n)),(r=(t=Oe(this,ri))==null?void 0:t.associateElement)==null||r.call(t,this)),h.customElements.whenDefined("media-tooltip").then(()=>p_(this,Nd,fv).call(this))}disconnectedCallback(){var e,t;this.disable(),(t=(e=Oe(this,ri))==null?void 0:e.unassociateElement)==null||t.call(e,this),Ys(this,ri,null),this.removeEventListener("mouseenter",Oe(this,Ki)),this.removeEventListener("focus",Oe(this,Ki)),this.removeEventListener("click",Oe(this,Ea))}get keysUsed(){return["Enter"," "]}get tooltipPlacement(){return Y(this,Gi.TOOLTIP_PLACEMENT)}set tooltipPlacement(e){K(this,Gi.TOOLTIP_PLACEMENT,e)}get mediaController(){return Y(this,J.MEDIA_CONTROLLER)}set mediaController(e){K(this,J.MEDIA_CONTROLLER,e)}get disabled(){return F(this,Gi.DISABLED)}set disabled(e){V(this,Gi.DISABLED,e)}get noTooltip(){return F(this,Gi.NO_TOOLTIP)}set noTooltip(e){V(this,Gi.NO_TOOLTIP,e)}handleClick(e){}};ri=new WeakMap;Ea=new WeakMap;Ki=new WeakMap;_a=new WeakMap;Qs=new WeakMap;Nd=new WeakSet;fv=function(){this.addEventListener("mouseenter",Oe(this,Ki)),this.addEventListener("focus",Oe(this,Ki)),this.addEventListener("click",Oe(this,Ea));let i=this.tooltipPlacement;i&&this.tooltipEl&&(this.tooltipEl.placement=i)};de.shadowRootOptions={mode:"open"};
vendor: 14,498 bytes, lines 1672-1794
1672de.getTemplateHTML=h_;de.getSlotTemplateHTML=m_;de.getTooltipContentHTML=v_;h.customElements.get("media-chrome-button")||h.customElements.define("media-chrome-button",de);var bv=`<svg aria-hidden="true" viewBox="0 0 26 24">
1673  <path d="M22.13 3H3.87a.87.87 0 0 0-.87.87v13.26a.87.87 0 0 0 .87.87h3.4L9 16H5V5h16v11h-4l1.72 2h3.4a.87.87 0 0 0 .87-.87V3.87a.87.87 0 0 0-.86-.87Zm-8.75 11.44a.5.5 0 0 0-.76 0l-4.91 5.73a.5.5 0 0 0 .38.83h9.82a.501.501 0 0 0 .38-.83l-4.91-5.73Z"/>
1674</svg>
1675`;function g_(i){return`
1676    <style>
1677      :host([${c.MEDIA_IS_AIRPLAYING}]) slot[name=icon] slot:not([name=exit]) {
1678        display: none !important;
1679      }
1680
1681      
1682      :host(:not([${c.MEDIA_IS_AIRPLAYING}])) slot[name=icon] slot:not([name=enter]) {
1683        display: none !important;
1684      }
1685
1686      :host([${c.MEDIA_IS_AIRPLAYING}]) slot[name=tooltip-enter],
1687      :host(:not([${c.MEDIA_IS_AIRPLAYING}])) slot[name=tooltip-exit] {
1688        display: none;
1689      }
1690    </style>
1691
1692    <slot name="icon">
1693      <slot name="enter">${bv}</slot>
1694      <slot name="exit">${bv}</slot>
1695    </slot>
1696  `}function y_(){return`
1697    <slot name="tooltip-enter">${k("start airplay")}</slot>
1698    <slot name="tooltip-exit">${k("stop airplay")}</slot>
1699  `}var _v=i=>{let e=i.mediaIsAirplaying?k("stop airplay"):k("start airplay");i.setAttribute("aria-label",e)},Fn=class extends de{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_IS_AIRPLAYING,c.MEDIA_AIRPLAY_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),_v(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_IS_AIRPLAYING&&_v(this)}get mediaIsAirplaying(){return F(this,c.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(e){V(this,c.MEDIA_IS_AIRPLAYING,e)}get mediaAirplayUnavailable(){return Y(this,c.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(e){K(this,c.MEDIA_AIRPLAY_UNAVAILABLE,e)}handleClick(){let e=new h.CustomEvent(T.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(e)}};Fn.getSlotTemplateHTML=g_;Fn.getTooltipContentHTML=y_;h.customElements.get("media-airplay-button")||h.customElements.define("media-airplay-button",Fn);var f_=`<svg aria-hidden="true" viewBox="0 0 26 24">
1700  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
1701</svg>`,b_=`<svg aria-hidden="true" viewBox="0 0 26 24">
1702  <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
1703</svg>`;function __(i){return`
1704    <style>
1705      :host([aria-checked="true"]) slot[name=off] {
1706        display: none !important;
1707      }
1708
1709      
1710      :host(:not([aria-checked="true"])) slot[name=on] {
1711        display: none !important;
1712      }
1713
1714      :host([aria-checked="true"]) slot[name=tooltip-enable],
1715      :host(:not([aria-checked="true"])) slot[name=tooltip-disable] {
1716        display: none;
1717      }
1718    </style>
1719
1720    <slot name="icon">
1721      <slot name="on">${f_}</slot>
1722      <slot name="off">${b_}</slot>
1723    </slot>
1724  `}function E_(){return`
1725    <slot name="tooltip-enable">${k("Enable captions")}</slot>
1726    <slot name="tooltip-disable">${k("Disable captions")}</slot>
1727  `}var Ev=i=>{i.setAttribute("aria-checked",Hs(i).toString())},Vn=class extends de{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_SUBTITLES_LIST,c.MEDIA_SUBTITLES_SHOWING]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("aria-label",k("closed captions")),Ev(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_SUBTITLES_SHOWING&&Ev(this)}get mediaSubtitlesList(){return kv(this,c.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){wv(this,c.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return kv(this,c.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){wv(this,c.MEDIA_SUBTITLES_SHOWING,e)}handleClick(){this.dispatchEvent(new h.CustomEvent(T.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}};Vn.getSlotTemplateHTML=__;Vn.getTooltipContentHTML=E_;var kv=(i,e)=>{let t=i.getAttribute(e);return t?Tr(t):[]},wv=(i,e,t)=>{if(!t?.length){i.removeAttribute(e);return}let r=Mi(t);i.getAttribute(e)!==r&&i.setAttribute(e,r)};h.customElements.get("media-captions-button")||h.customElements.define("media-captions-button",Vn);var k_='<svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/></g></svg>',w_='<svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path class="cast_caf_icon_boxfill" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg>';function x_(i){return`
1728    <style>
1729      :host([${c.MEDIA_IS_CASTING}]) slot[name=icon] slot:not([name=exit]) {
1730        display: none !important;
1731      }
1732
1733      
1734      :host(:not([${c.MEDIA_IS_CASTING}])) slot[name=icon] slot:not([name=enter]) {
1735        display: none !important;
1736      }
1737
1738      :host([${c.MEDIA_IS_CASTING}]) slot[name=tooltip-enter],
1739      :host(:not([${c.MEDIA_IS_CASTING}])) slot[name=tooltip-exit] {
1740        display: none;
1741      }
1742    </style>
1743
1744    <slot name="icon">
1745      <slot name="enter">${k_}</slot>
1746      <slot name="exit">${w_}</slot>
1747    </slot>
1748  `}function A_(){return`
1749    <slot name="tooltip-enter">${k("Start casting")}</slot>
1750    <slot name="tooltip-exit">${k("Stop casting")}</slot>
1751  `}var xv=i=>{let e=i.mediaIsCasting?k("stop casting"):k("start casting");i.setAttribute("aria-label",e)},Wn=class extends de{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_IS_CASTING,c.MEDIA_CAST_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),xv(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_IS_CASTING&&xv(this)}get mediaIsCasting(){return F(this,c.MEDIA_IS_CASTING)}set mediaIsCasting(e){V(this,c.MEDIA_IS_CASTING,e)}get mediaCastUnavailable(){return Y(this,c.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(e){K(this,c.MEDIA_CAST_UNAVAILABLE,e)}handleClick(){let e=this.mediaIsCasting?T.MEDIA_EXIT_CAST_REQUEST:T.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new h.CustomEvent(e,{composed:!0,bubbles:!0}))}};Wn.getSlotTemplateHTML=x_;Wn.getTooltipContentHTML=A_;h.customElements.get("media-cast-button")||h.customElements.define("media-cast-button",Wn);var qd=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Rr=(i,e,t)=>(qd(i,e,"read from private field"),t?t.call(i):e.get(i)),Ri=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Gd=(i,e,t,r)=>(qd(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Lr=(i,e,t)=>(qd(i,e,"access private method"),t),Xs,qn,$r,Zs,Hd,Bd,Av,Fd,Tv,Vd,Sv,Wd,Cv,jd,Iv;function T_(i){return`
1752    <style>
1753      :host {
1754        font: var(--media-font,
1755          var(--media-font-weight, normal)
1756          var(--media-font-size, 14px) /
1757          var(--media-text-content-height, var(--media-control-height, 24px))
1758          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
1759        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
1760        display: var(--media-dialog-display, inline-flex);
1761        justify-content: center;
1762        align-items: center;
1763        
1764        transition-behavior: allow-discrete;
1765        visibility: hidden;
1766        opacity: 0;
1767        transform: translateY(2px) scale(.99);
1768        pointer-events: none;
1769      }
1770
1771      :host([open]) {
1772        transition: display .2s, visibility 0s, opacity .2s ease-out, transform .15s ease-out;
1773        visibility: visible;
1774        opacity: 1;
1775        transform: translateY(0) scale(1);
1776        pointer-events: auto;
1777      }
1778
1779      #content {
1780        display: flex;
1781        position: relative;
1782        box-sizing: border-box;
1783        width: min(320px, 100%);
1784        word-wrap: break-word;
1785        max-height: 100%;
1786        overflow: auto;
1787        text-align: center;
1788        line-height: 1.4;
1789      }
1790    </style>
1791    ${this.getSlotTemplateHTML(i)}
1792  `}function S_(i){return`
1793    <slot id="content"></slot>
1794  `}var jn={OPEN:"open",ANCHOR:"anchor"},ai=class extends h.HTMLElement{constructor(){super(),Ri(this,Zs),Ri(this,Bd),Ri(this,Fd),Ri(this,Vd),Ri(this,Wd),Ri(this,jd),Ri(this,Xs,!1),Ri(this,qn,null),Ri(this,$r,null)}static get observedAttributes(){return[jn.OPEN,jn.ANCHOR]}get open(){return F(this,jn.OPEN)}set open(e){V(this,jn.OPEN,e)}handleEvent(e){switch(e.type){case"invoke":Lr(this,Vd,Sv).call(this,e);break;case"focusout":Lr(this,Wd,Cv).call(this,e);break;case"keydown":Lr(this,jd,Iv).call(this,e);break}}connectedCallback(){Lr(this,Zs,Hd).call(this),this.role||(this.role="dialog"),this.addEventListener("invoke",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this)}disconnectedCallback(){this.removeEventListener("invoke",this),this.removeEventListener("focusout",this),this.removeEventListener("keydown",this)}attributeChangedCallback(e,t,r){Lr(this,Zs,Hd).call(this),e===jn.OPEN&&r!==t&&(this.open?Lr(this,Bd,Av).call(this):Lr(this,Fd,Tv).call(this))}focus(){Gd(this,qn,Ln());let e=!this.dispatchEvent(new Event("focus",{composed:!0,cancelable:!0})),t=!this.dispatchEvent(new Event("focusin",{composed:!0,bubbles:!0,cancelable:!0}));if(e||t)return;let r=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');r?.focus()}get keysUsed(){return["Escape","Tab"]}};Xs=new WeakMap;qn=new WeakMap;$r=new WeakMap;Zs=new WeakSet;Hd=function(){if(!Rr(this,Xs)&&(Gd(this,Xs,!0),!this.shadowRoot)){this.attachShadow(this.constructor.shadowRootOptions);let i=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(i),queueMicrotask(()=>{let{style:e}=fe(this.shadowRoot,":host");e.setProperty("transition","display .15s, visibility .15s, opacity .15s ease-in, transform .15s ease-in")})}};Bd=new WeakSet;Av=function(){var i;(i=Rr(this,$r))==null||i.setAttribute("aria-expanded","true"),this.dispatchEvent(new Event("open",{composed:!0,bubbles:!0})),this.addEventListener("transitionend",()=>this.focus(),{once:!0})};Fd=new WeakSet;Tv=function(){var i;(i=Rr(this,$r))==null||i.setAttribute("aria-expanded","false"),this.dispatchEvent(new Event("close",{composed:!0,bubbles:!0}))};Vd=new WeakSet;Sv=function(i){Gd(this,$r,i.relatedTarget),it(this,i.relatedTarget)||(this.open=!this.open)};Wd=new WeakSet;Cv=function(i){var e;it(this,i.relatedTarget)||((e=Rr(this,qn))==null||e.focus(),Rr(this,$r)&&Rr(this,$r)!==i.relatedTarget&&this.open&&(this.open=!1))};jd=new WeakSet;Iv=function(i){var e,t,r,a,n;let{key:o,ctrlKey:s,altKey:l,metaKey:d}=i;s||l||d||this.keysUsed.includes(o)&&(i.preventDefault(),i.stopPropagation(),o==="Tab"?(i.shiftKey?(t=(e=this.previousElementSibling)==null?void 0:e.focus)==null||t.call(e):(a=(r=this.nextElementSibling)==null?void 0:r.focus)==null||a.call(r),this.blur()):o==="Escape"&&((n=Rr(this,qn))==null||n.focus(),this.open=!1))};ai.shadowRootOptions={mode:"open"};ai.getTemplateHTML=T_;ai.getSlotTemplateHTML=S_;h.customElements.get("media-chrome-dialog")||h.customElements.define("media-chrome-dialog",ai);var eu=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Se=(i,e,t)=>(eu(i,e,"read from private field"),t?t.call(i):e.get(i)),Ke=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Yi=(i,e,t,r)=>(eu(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Vt=(i,e,t)=>(eu(i,e,"access private method"),t),ni,ll,Js,el,Wt,ol,tl,il,rl,tu,Mv,al,Kd,nl,Yd,sl,iu,Qd,Lv,Zd,Rv,Xd,$v,Jd,Dv;function C_(i){return
vendor: 7,165 bytes, lines 1794-2030
1794`
1795    <style>
1796      :host {
1797        --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
1798        --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px));
1799
1800        box-shadow: var(--_focus-visible-box-shadow, none);
1801        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
1802        height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding));
1803        display: inline-flex;
1804        align-items: center;
1805        
1806        vertical-align: middle;
1807        box-sizing: border-box;
1808        position: relative;
1809        width: 100px;
1810        transition: background .15s linear;
1811        cursor: var(--media-cursor, pointer);
1812        pointer-events: auto;
1813        touch-action: none; 
1814      }
1815
1816      
1817      input[type=range]:focus {
1818        outline: 0;
1819      }
1820      input[type=range]:focus::-webkit-slider-runnable-track {
1821        outline: 0;
1822      }
1823
1824      :host(:hover) {
1825        background: var(--media-control-hover-background, rgb(50 50 70 / .7));
1826      }
1827
1828      #leftgap {
1829        padding-left: var(--media-range-padding-left, var(--_media-range-padding));
1830      }
1831
1832      #rightgap {
1833        padding-right: var(--media-range-padding-right, var(--_media-range-padding));
1834      }
1835
1836      #startpoint,
1837      #endpoint {
1838        position: absolute;
1839      }
1840
1841      #endpoint {
1842        right: 0;
1843      }
1844
1845      #container {
1846        
1847        width: var(--media-range-track-width, 100%);
1848        transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px));
1849        position: relative;
1850        height: 100%;
1851        display: flex;
1852        align-items: center;
1853        min-width: 40px;
1854      }
1855
1856      #range {
1857        
1858        display: var(--media-time-range-hover-display, block);
1859        bottom: var(--media-time-range-hover-bottom, 0);
1860        height: var(--media-time-range-hover-height, max(100% , 25px));
1861        width: 100%;
1862        position: absolute;
1863        cursor: var(--media-cursor, pointer);
1864
1865        -webkit-appearance: none; 
1866        -webkit-tap-highlight-color: transparent;
1867        background: transparent; 
1868        margin: 0;
1869        z-index: 1;
1870      }
1871
1872      @media (hover: hover) {
1873        #range {
1874          bottom: var(--media-time-range-hover-bottom, 0);
1875          height: var(--media-time-range-hover-height, max(100%, 20px));
1876        }
1877      }
1878
1879      
1880      
1881      #range::-webkit-slider-thumb {
1882        -webkit-appearance: none;
1883        background: transparent;
1884        width: .1px;
1885        height: .1px;
1886      }
1887
1888      
1889      #range::-moz-range-thumb {
1890        background: transparent;
1891        border: transparent;
1892        width: .1px;
1893        height: .1px;
1894      }
1895
1896      #appearance {
1897        height: var(--media-range-track-height, 4px);
1898        display: flex;
1899        flex-direction: column;
1900        justify-content: center;
1901        width: 100%;
1902        position: absolute;
1903        
1904        will-change: transform;
1905      }
1906
1907      #track {
1908        background: var(--media-range-track-background, rgb(255 255 255 / .2));
1909        border-radius: var(--media-range-track-border-radius, 1px);
1910        border: var(--media-range-track-border, none);
1911        outline: var(--media-range-track-outline);
1912        outline-offset: var(--media-range-track-outline-offset);
1913        backdrop-filter: var(--media-range-track-backdrop-filter);
1914        -webkit-backdrop-filter: var(--media-range-track-backdrop-filter);
1915        box-shadow: var(--media-range-track-box-shadow, none);
1916        position: absolute;
1917        width: 100%;
1918        height: 100%;
1919        overflow: hidden;
1920      }
1921
1922      #progress,
1923      #pointer {
1924        position: absolute;
1925        height: 100%;
1926        will-change: width;
1927      }
1928
1929      #progress {
1930        background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238)));
1931        transition: var(--media-range-track-transition);
1932      }
1933
1934      #pointer {
1935        background: var(--media-range-track-pointer-background);
1936        border-right: var(--media-range-track-pointer-border-right);
1937        transition: visibility .25s, opacity .25s;
1938        visibility: hidden;
1939        opacity: 0;
1940      }
1941
1942      @media (hover: hover) {
1943        :host(:hover) #pointer {
1944          transition: visibility .5s, opacity .5s;
1945          visibility: visible;
1946          opacity: 1;
1947        }
1948      }
1949
1950      #thumb,
1951      ::slotted([slot=thumb]) {
1952        width: var(--media-range-thumb-width, 10px);
1953        height: var(--media-range-thumb-height, 10px);
1954        transition: var(--media-range-thumb-transition);
1955        transform: var(--media-range-thumb-transform, none);
1956        opacity: var(--media-range-thumb-opacity, 1);
1957        translate: -50%;
1958        position: absolute;
1959        left: 0;
1960        cursor: var(--media-cursor, pointer);
1961      }
1962
1963      #thumb {
1964        border-radius: var(--media-range-thumb-border-radius, 10px);
1965        background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238)));
1966        box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent);
1967        border: var(--media-range-thumb-border, none);
1968      }
1969
1970      :host([disabled]) #thumb {
1971        background-color: #777;
1972      }
1973
1974      .segments #appearance {
1975        height: var(--media-range-segment-hover-height, 7px);
1976      }
1977
1978      #track {
1979        clip-path: url(#segments-clipping);
1980      }
1981
1982      #segments {
1983        --segments-gap: var(--media-range-segments-gap, 2px);
1984        position: absolute;
1985        width: 100%;
1986        height: 100%;
1987      }
1988
1989      #segments-clipping {
1990        transform: translateX(calc(var(--segments-gap) / 2));
1991      }
1992
1993      #segments-clipping:empty {
1994        display: none;
1995      }
1996
1997      #segments-clipping rect {
1998        height: var(--media-range-track-height, 4px);
1999        y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2);
2000        transition: var(--media-range-segment-transition, transform .1s ease-in-out);
2001        transform: var(--media-range-segment-transform, scaleY(1));
2002        transform-origin: center;
2003      }
2004
2005      /* Visible label for accessibility - positioned off-screen but technically visible (Firefox requires visible labels) */
2006      #range-label {
2007        position: absolute;
2008        left: -10000px;
2009        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
2010        pointer-events: none;
2011      }
2012    </style>
2013    <div id="leftgap"></div>
2014    <div id="container">
2015      <div id="startpoint"></div>
2016      <div id="endpoint"></div>
2017      <div id="appearance">
2018        <div id="track" part="track">
2019          <div id="pointer"></div>
2020          <div id="progress" part="progress"></div>
2021        </div>
2022        <slot name="thumb">
2023          <div id="thumb" part="thumb"></div>
2024        </slot>
2025        <svg id="segments" aria-hidden="true"><clipPath id="segments-clipping"></clipPath></svg>
2026      </div>
2027        <input id="range" type="range" min="0" max="1" step="any" value="0">
2028        <label for="range" id="range-label"></label>
2029
2030      ${this.getContainerTemplateHTML(
2030i)}
2031    </div>
2032    <div id="rightgap"></div>
2033  `}function I_(i){return""}var oi=class extends h.HTMLElement{constructor(){if(super(),Ke(this,tu),Ke(this,al),Ke(this,nl),Ke(this,sl),Ke(this,Qd),Ke(this,Zd),Ke(this,Xd),Ke(this,Jd),Ke(this,ni,void 0),Ke(this,ll,void 0),Ke(this,Js,void 0),Ke(this,el,void 0),Ke(this,Wt,{}),Ke(this,ol,[]),Ke(this,tl,()=>{if(this.range.matches(":focus-visible")){let{style:e}=fe(this.shadowRoot,":host");e.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}}),Ke(this,il,()=>{let{style:e}=fe(this.shadowRoot,":host");e.removeProperty("--_focus-visible-box-shadow")}),Ke(this,rl,()=>{let e=this.shadowRoot.querySelector("#segments-clipping");e&&e.parentNode.append(e)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.container=this.shadowRoot.querySelector("#container"),Yi(this,Js,this.shadowRoot.querySelector("#startpoint")),Yi(this,el,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",J.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,r){var a,n,o,s,l;e===J.MEDIA_CONTROLLER?(t&&((n=(a=Se(this,ni))==null?void 0:a.unassociateElement)==null||n.call(a,this),Yi(this,ni,null)),r&&this.isConnected&&(Yi(this,ni,(o=this.getRootNode())==null?void 0:o.getElementById(r)),(l=(s=Se(this,ni))==null?void 0:s.associateElement)==null||l.call(s,this))):(e==="disabled"||e==="aria-disabled"&&t!==r)&&(r==null?(this.range.removeAttribute(e),Vt(this,al,Kd).call(this)):(this.range.setAttribute(e,r),Vt(this,nl,Yd).call(this)))}connectedCallback(){var e,t,r;let{style:a}=fe(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),Se(this,Wt).pointer=fe(this.shadowRoot,"#pointer"),Se(this,Wt).progress=fe(this.shadowRoot,"#progress"),Se(this,Wt).thumb=fe(this.shadowRoot,'#thumb, ::slotted([slot="thumb"])'),Se(this,Wt).activeSegment=fe(this.shadowRoot,"#segments-clipping rect:nth-child(0)");let n=this.getAttribute(J.MEDIA_CONTROLLER);n&&(Yi(this,ni,(e=this.getRootNode())==null?void 0:e.getElementById(n)),(r=(t=Se(this,ni))==null?void 0:t.associateElement)==null||r.call(t,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",Se(this,tl)),this.shadowRoot.addEventListener("focusout",Se(this,il)),Vt(this,al,Kd).call(this),Si(this.container,Se(this,rl))}disconnectedCallback(){var e,t;Vt(this,nl,Yd).call(this),(t=(e=Se(this,ni))==null?void 0:e.unassociateElement)==null||t.call(e,this),Yi(this,ni,null),this.shadowRoot.removeEventListener("focusin",Se(this,tl)),this.shadowRoot.removeEventListener("focusout",Se(this,il)),Ci(this.container,Se(this,rl))}updatePointerBar(e){var t;(t=Se(this,Wt).pointer)==null||t.style.setProperty("width",`${this.getPointerRatio(e)*100}%`)}updateBar(){var e,t;let r=this.range.valueAsNumber*100;(e=Se(this,Wt).progress)==null||e.style.setProperty("width",`${r}%`),(t=Se(this,Wt).thumb)==null||t.style.setProperty("left",`${r}%`)}updateSegments(e){let t=this.shadowRoot.querySelector("#segments-clipping");if(t.textContent="",this.container.classList.toggle("segments",!!e?.length),!e?.length)return;let r=[...new Set([+this.range.min,...e.flatMap(n=>[n.start,n.end]),+this.range.max])];Yi(this,ol,[...r]);let a=r.pop();for(let[n,o]of r.entries()){let[s,l]=[n===0,n===r.length-1],d=s?"calc(var(--segments-gap) / -1)":`${o*100}%`,p=`calc(${((l?a:r[n+1])-o)*100}%${s||l?"":" - var(--segments-gap)"})`,g=Ee.createElementNS("http://www.w3.org/2000/svg","rect"),v=Rn(this.shadowRoot,`#segments-clipping rect:nth-child(${n+1})`);v.style.setProperty("x",d),v.style.setProperty("width",p),t.append(g)}}getPointerRatio(e){return Fm(e.clientX,e.clientY,Se(this,Js).getBoundingClientRect(),Se(this,el).getBoundingClientRect())}get dragging(){return this.hasAttribute("dragging")}handleEvent(e){switch(e.type){case"pointermove":Vt(this,Jd,Dv).call(this,e);break;case"input":this.updateBar();break;case"pointerenter":Vt(this,Qd,Lv).call(this,e);break;case"pointerdown":Vt(this,sl,iu).call(this,e);break;case"pointerup":Vt(this,Zd,Rv).call(this);break;case"pointerleave":Vt(this,Xd,$v).call(this);break}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}};ni=new WeakMap;ll=new WeakMap;Js=new WeakMap;el=new WeakMap;Wt=new WeakMap;ol=new WeakMap;tl=new WeakMap;il=new WeakMap;rl=new WeakMap;tu=new WeakSet;Mv=function(i){let e=Se(this,Wt).activeSegment;if(!e)return;let t=this.getPointerRatio(i),a=`#segments-clipping rect:nth-child(${Se(this,ol).findIndex((n,o,s)=>{let l=s[o+1];return l!=null&&t>=n&&t<=l})+1})`;(e.selectorText!=a||!e.style.transform)&&(e.selectorText=a,e.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))};al=new WeakSet;Kd=function(){this.hasAttribute("disabled")||!this.isConnected||(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))};nl=new WeakSet;Yd=function(){var i,e;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),this.removeEventListener("pointerleave",this),(i=h.window)==null||i.removeEventListener("pointerup",this),(e=h.window)==null||e.removeEventListener("pointermove",this)};sl=new WeakSet;iu=function(i){var e;Yi(this,ll,i.composedPath().includes(this.range)),(e=h.window)==null||e.addEventListener("pointerup",this,{once:!0})};Qd=new WeakSet;Lv=function(i){var e;i.pointerType!=="mouse"&&Vt(this,sl,iu).call(this,i),this.addEventListener("pointerleave",this,{once:!0}),(e=h.window)==null||e.addEventListener("pointermove",this)};Zd=new WeakSet;Rv=function(){var i;(i=h.window)==null||i.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")};Xd=new WeakSet;$v=function(){var i,e;this.removeEventListener("pointerleave",this),(i=h.window)==null||i.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),(e=Se(this,Wt).activeSegment)==null||e.style.removeProperty("transform")};Jd=new WeakSet;Dv=function(i){i.pointerType==="pen"&&i.buttons===0||(this.toggleAttribute("dragging",i.buttons===1||i.pointerType!=="mouse"),this.updatePointerBar(i),Vt(this,tu,Mv).call(this,i),this.dragging&&(i.pointerType!=="mouse"||!Se(this,ll))&&(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(i),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))))};oi.shadowRootOptions={mode:"open"};oi.getTemplateHTML=C_;oi.getContainerTemplateHTML=I_;h.customElements.get("media-chrome-range")||h.customElements.define("media-chrome-range",oi);var Pv=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},cl=(i,e,t)=>(Pv(i,e,"read from private field"),t?t.call(i):e.get(i)),M_=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},dl=(i,e,t,r)=>(Pv(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),si;function L_(i){return`
2034    <style>
2035      :host {
2036        
2037        box-sizing: border-box;
2038        display: var(--media-control-display, var(--media-control-bar-display, inline-flex));
2039        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
2040        --media-loading-indicator-icon-height: 44px;
2041      }
2042
2043      ::slotted(media-time-range),
2044      ::slotted(media-volume-range) {
2045        min-height: 100%;
2046      }
2047
2048      ::slotted(media-time-range),
2049      ::slotted(media-clip-selector) {
2050        flex-grow: 1;
2051      }
2052
2053      ::slotted([role="menu"]) {
2054        position: absolute;
2055      }
2056    </style>
2057
2058    <slot></slot>
2059  `}var Gn=class extends h.HTMLElement{constructor(){if(super(),M_(this,si,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[J.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,r){var a,n,o,s,l;e===J.MEDIA_CONTROLLER&&(t&&((n=(a=cl(this,si))==null?void 0:a.unassociateElement)==null||n.call(a,this),dl(this,si,null)),r&&this.isConnected&&(dl(this,si,(o=this.getRootNode())==null?void 0:o.getElementById(r)),(l=(s=cl(this,si))==null?void 0:s.associateElement)==null||l.call(s,this)))}connectedCallback(){var e,t,r;let a=this.getAttribute(J.MEDIA_CONTROLLER);a&&(dl(this,si,(e=this.getRootNode())==null?void 0:e.getElementById(a)),(r=(t=cl(this,si))==null?void 0:t.associateElement)==null||r.call(t,this))}disconnectedCallback(){var e,t;(t=(e=cl(this,si))==null?void 0:e.unassociateElement)==null||t.call(e,this),dl(this,si,null)}};si=new WeakMap;Gn.shadowRootOptions={mode:"open"};Gn.getTemplateHTML=L_;h.customElements.get("media-control-bar")||h.customElements.define("media-control-bar",Gn);var Ov=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},ul=(i,e,t)=>(Ov(i,e,"read from private field"),t?t.call(i):e.get(i)),R_=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},pl=(i,e,t,r)=>(Ov(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),li;function $_(i,e={}){return`
2060    <style>
2061      :host {
2062        font: var(--media-font,
2063          var(--media-font-weight, normal)
2064          var(--media-font-size, 14px) /
2065          var(--media-text-content-height, var(--media-control-height, 24px))
2066          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
2067        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
2068        background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))));
2069        padding: var(--media-control-padding, 10px);
2070        display: inline-flex;
2071        justify-content: center;
2072        align-items: center;
2073        vertical-align: middle;
2074        box-sizing: border-box;
2075        text-align: center;
2076        pointer-events: auto;
2077      }
2078
2079      
2080      :host(:focus-visible) {
2081        box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
2082        outline: 0;
2083      }
2084
2085      
2086      :host(:where(:focus)) {
2087        box-shadow: none;
2088        outline: 0;
2089      }
2090    </style>
2091
2092    ${this.getSlotTemplateHTML(i,e)}
2093  `}function D_(i,e){return`
2094    <slot></slot>
2095  `}var ct=class extends h.HTMLElement{constructor(){if(super(),R_(this,li,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[J.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,r){var a,n,o,s,l;e===J.MEDIA_CONTROLLER&&(t&&((n=(a=ul(this,li))==null?void 0:a.unassociateElement)==null||n.call(a,this),pl(this,li,null)),r&&this.isConnected&&(pl(this,li,(o=this.getRootNode())==null?void 0:o.getElementById(r)),(l=(s=ul(this,li))==null?void 0:s.associateElement)==null||l.call(s,this)))}connectedCallback(){var e,t,r;let{style:a}=fe(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);let n=this.getAttribute(J.MEDIA_CONTROLLER);n&&(pl(this,li,(e=this.getRootNode())==null?void 0:e.getElementById(n)),(r=(t=ul(this,li))==null?void 0:t.associateElement)==null||r.call(t,this))}disconnectedCallback(){var e,t;(t=(e=ul(this,li))==null?void 0:e.unassociateElement)==null||t.call(e,this),pl(this,li,null)}};li=new WeakMap;ct.shadowRootOptions={mode:"open"};ct.getTemplateHTML=$_;ct.getSlotTemplateHTML=D_;h.customElements.get("media-text-display")||h.customElements.define("media-text-display",ct);var Nv=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},zv=(i,e,t)=>(Nv(i,e,"read from private field"),t?t.call(i):e.get(i)),P_=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},O_=(i,e,t,r)=>(Nv(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Kn;function z_(i,e){return`
2096    <slot>${Nt(e.mediaDuration)}</slot>
2097  `}var hl=class extends ct{constructor(){var e;super(),P_(this,Kn,void 0),O_(this,Kn,this.shadowRoot.querySelector("slot")),zv(this,Kn).textContent=Nt((e=this.mediaDuration)!=null?e:0)}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_DURATION]}attributeChangedCallback(e,t,r){e===c.MEDIA_DURATION&&(zv(this,Kn).textContent=Nt(+r)),super.attributeChangedCallback(e,t,r)}get mediaDuration(){return ee(this,c.MEDIA_DURATION)}set mediaDuration(e){re(this,c.MEDIA_DURATION,e)}};Kn=new WeakMap;hl.getSlotTemplateHTML=z_;h.customElements.get("media-duration-display")||h.customElements.define("media-duration-display",hl);var N_={2:k("Network Error"),3:k("Decode Error"),4:k("Source Not Supported"),5:k("Encryption 
2097Error")},U_={2:k("A network error caused the media download to fail."),3:k("A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format."),4:k("An unsupported error occurred. The server or network failed, or your browser does not support this format."),5:k("The media is encrypted and there are no keys to decrypt it.")},ml=i=>{var e,t;return i.code===1?null:{title:(e=N_[i.code])!=null?e:`Error ${i.code}`,message:(t=U_[i.code])!=null?t:i.message}};var Hv=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},H_=(i,e,t)=>(Hv(i,e,"read from private field"),t?t.call(i):e.get(i)),B_=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},F_=(i,e,t,r)=>(Hv(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),vl;function V_(i){return`
2098    <style>
2099      :host {
2100        background: rgb(20 20 30 / .8);
2101      }
2102
2103      #content {
2104        display: block;
2105        padding: 1.2em 1.5em;
2106      }
2107
2108      h3,
2109      p {
2110        margin-block: 0 .3em;
2111      }
2112    </style>
2113    <slot name="error-${i.mediaerrorcode}" id="content">
2114      ${Bv({code:+i.mediaerrorcode,message:i.mediaerrormessage})}
2115    </slot>
2116  `}function W_(i){return i.code&&ml(i)!==null}function Bv(i){var e;let{title:t,message:r}=(e=ml(i))!=null?e:{},a="";return t&&(a+=`<slot name="error-${i.code}-title"><h3>${t}</h3></slot>`),r&&(a+=`<slot name="error-${i.code}-message"><p>${r}</p></slot>`),a}var Uv=[c.MEDIA_ERROR_CODE,c.MEDIA_ERROR_MESSAGE],Yn=class extends ai{constructor(){super(...arguments),B_(this,vl,null)}static get observedAttributes(){return[...super.observedAttributes,...Uv]}formatErrorMessage(e){return this.constructor.formatErrorMessage(e)}attributeChangedCallback(e,t,r){var a;if(super.attributeChangedCallback(e,t,r),!Uv.includes(e))return;let n=(a=this.mediaError)!=null?a:{code:this.mediaErrorCode,message:this.mediaErrorMessage};if(this.open=W_(n),this.open&&(this.shadowRoot.querySelector("slot").name=`error-${this.mediaErrorCode}`,this.shadowRoot.querySelector("#content").innerHTML=this.formatErrorMessage(n),!this.hasAttribute("aria-label"))){let{title:o}=ml(n);o&&this.setAttribute("aria-label",o)}}get mediaError(){return H_(this,vl)}set mediaError(e){F_(this,vl,e)}get mediaErrorCode(){return ee(this,"mediaerrorcode")}set mediaErrorCode(e){re(this,"mediaerrorcode",e)}get mediaErrorMessage(){return Y(this,"mediaerrormessage")}set mediaErrorMessage(e){K(this,"mediaerrormessage",e)}};vl=new WeakMap;Yn.getSlotTemplateHTML=V_;Yn.formatErrorMessage=Bv;h.customElements.get("media-error-dialog")||h.customElements.define("media-error-dialog",Yn);var j_=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Qi=(i,e,t)=>(j_(i,e,"read from private field"),t?t.call(i):e.get(i)),Fv=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},ka,wa;function q_(i){return`
2117    <style>
2118      :host {
2119        position: fixed;
2120        top: 0;
2121        left: 0;
2122        z-index: 9999;
2123        background: rgb(20 20 30 / .8);
2124        backdrop-filter: blur(10px);
2125      }
2126
2127      #content {
2128        display: block;
2129        width: clamp(400px, 40vw, 700px);
2130        max-width: 90vw;
2131        text-align: left;
2132      }
2133
2134      h2 {
2135        margin: 0 0 1.5rem 0;
2136        font-size: 1.5rem;
2137        font-weight: 500;
2138        text-align: center;
2139      }
2140
2141      .shortcuts-table {
2142        width: 100%;
2143        border-collapse: collapse;
2144      }
2145
2146      .shortcuts-table tr {
2147        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
2148      }
2149
2150      .shortcuts-table tr:last-child {
2151        border-bottom: none;
2152      }
2153
2154      .shortcuts-table td {
2155        padding: 0.75rem 0.5rem;
2156      }
2157
2158      .shortcuts-table td:first-child {
2159        text-align: right;
2160        padding-right: 1rem;
2161        width: 40%;
2162        min-width: 120px;
2163      }
2164
2165      .shortcuts-table td:last-child {
2166        padding-left: 1rem;
2167      }
2168
2169      .key {
2170        display: inline-block;
2171        background: rgba(255, 255, 255, 0.15);
2172        border: 1px solid rgba(255, 255, 255, 0.2);
2173        border-radius: 4px;
2174        padding: 0.25rem 0.5rem;
2175        font-family: 'Courier New', monospace;
2176        font-size: 0.9rem;
2177        font-weight: 500;
2178        min-width: 1.5rem;
2179        text-align: center;
2180        margin: 0 0.2rem;
2181      }
2182
2183      .description {
2184        color: rgba(255, 255, 255, 0.9);
2185        font-size: 0.95rem;
2186      }
2187
2188      .key-combo {
2189        display: flex;
2190        align-items: center;
2191        justify-content: flex-end;
2192        gap: 0.3rem;
2193      }
2194
2195      .key-separator {
2196        color: rgba(255, 255, 255, 0.5);
2197        font-size: 0.9rem;
2198      }
2199    </style>
2200    <slot id="content">
2201      ${G_()}
2202    </slot>
2203  `}function G_(){return`
2204    <h2>Keyboard Shortcuts</h2>
2205    <table class="shortcuts-table">${[{keys:["Space","k"],description:"Toggle Playback"},{keys:["m"],description:"Toggle mute"},{keys:["f"],description:"Toggle fullscreen"},{keys:["c"],description:"Toggle captions or subtitles, if available"},{keys:["p"],description:"Toggle Picture in Picture"},{keys:["\u2190","j"],description:"Seek back 10s"},{keys:["\u2192","l"],description:"Seek forward 10s"},{keys:["\u2191"],description:"Turn volume up"},{keys:["\u2193"],description:"Turn volume down"},{keys:["< (SHIFT+,)"],description:"Decrease playback rate"},{keys:["> (SHIFT+.)"],description:"Increase playback rate"}].map(({keys:t,description:r})=>`
2206      <tr>
2207        <td>
2208          <div class="key-combo">${t.map((n,o)=>o>0?`<span class="key-separator">or</span><span class="key">${n}</span>`:`<span class="key">${n}</span>`).join("")}</div>
2209        </td>
2210        <td class="description">${r}</td>
2211      </tr>
2212    `).join("")}</table>
2213  `}var gl=class extends ai{constructor(){super(...arguments),Fv(this,ka,e=>{var t;if(!this.open)return;let r=(t=this.shadowRoot)==null?void 0:t.querySelector("#content");
vendor: 4,248 bytes, lines 2213-2253
2213if(!r)return;let a=e.composedPath(),n=a[0]===this||a.includes(this),o=a.includes(r);n&&!o&&(this.open=!1)}),Fv(this,wa,e=>{if(!this.open)return;let t=e.shiftKey&&(e.key==="/"||e.key==="?");(e.key==="Escape"||t)&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(this.open=!1,e.preventDefault(),e.stopPropagation())})}connectedCallback(){super.connectedCallback(),this.open&&(this.addEventListener("click",Qi(this,ka)),document.addEventListener("keydown",Qi(this,wa)))}disconnectedCallback(){this.removeEventListener("click",Qi(this,ka)),document.removeEventListener("keydown",Qi(this,wa))}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e==="open"&&(this.open?(this.addEventListener("click",Qi(this,ka)),document.addEventListener("keydown",Qi(this,wa))):(this.removeEventListener("click",Qi(this,ka)),document.removeEventListener("keydown",Qi(this,wa))))}};ka=new WeakMap;wa=new WeakMap;gl.getSlotTemplateHTML=q_;h.customElements.get("media-keyboard-shortcuts-dialog")||h.customElements.define("media-keyboard-shortcuts-dialog",gl);var Wv=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},K_=(i,e,t)=>(Wv(i,e,"read from private field"),t?t.call(i):e.get(i)),Y_=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Q_=(i,e,t,r)=>(Wv(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),yl,Z_=`<svg aria-hidden="true" viewBox="0 0 26 24">
2214  <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/>
2215</svg>`,X_=`<svg aria-hidden="true" viewBox="0 0 26 24">
2216  <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/>
2217</svg>`;function J_(i){return`
2218    <style>
2219      :host([${c.MEDIA_IS_FULLSCREEN}]) slot[name=icon] slot:not([name=exit]) {
2220        display: none !important;
2221      }
2222
2223      
2224      :host(:not([${c.MEDIA_IS_FULLSCREEN}])) slot[name=icon] slot:not([name=enter]) {
2225        display: none !important;
2226      }
2227
2228      :host([${c.MEDIA_IS_FULLSCREEN}]) slot[name=tooltip-enter],
2229      :host(:not([${c.MEDIA_IS_FULLSCREEN}])) slot[name=tooltip-exit] {
2230        display: none;
2231      }
2232    </style>
2233
2234    <slot name="icon">
2235      <slot name="enter">${Z_}</slot>
2236      <slot name="exit">${X_}</slot>
2237    </slot>
2238  `}function eE(){return`
2239    <slot name="tooltip-enter">${k("Enter fullscreen mode")}</slot>
2240    <slot name="tooltip-exit">${k("Exit fullscreen mode")}</slot>
2241  `}var Vv=i=>{let e=i.mediaIsFullscreen?k("exit fullscreen mode"):k("enter fullscreen mode");i.setAttribute("aria-label",e)},Qn=class extends de{constructor(){super(...arguments),Y_(this,yl,null)}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_IS_FULLSCREEN,c.MEDIA_FULLSCREEN_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),Vv(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_IS_FULLSCREEN&&Vv(this)}get mediaFullscreenUnavailable(){return Y(this,c.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(e){K(this,c.MEDIA_FULLSCREEN_UNAVAILABLE,e)}get mediaIsFullscreen(){return F(this,c.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(e){V(this,c.MEDIA_IS_FULLSCREEN,e)}handleClick(e){Q_(this,yl,e);let t=K_(this,yl)instanceof PointerEvent,r=this.mediaIsFullscreen?new h.CustomEvent(T.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0}):new h.CustomEvent(T.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0,detail:t});this.dispatchEvent(r)}};yl=new WeakMap;Qn.getSlotTemplateHTML=J_;Qn.getTooltipContentHTML=eE;h.customElements.get("media-fullscreen-button")||h.customElements.define("media-fullscreen-button",Qn);var{MEDIA_TIME_IS_LIVE:fl,MEDIA_PAUSED:Zn}=c,{MEDIA_SEEK_TO_LIVE_REQUEST:tE,MEDIA_PLAY_REQUEST:iE}=T,rE='<svg viewBox="0 0 6 12" aria-hidden="true"><circle cx="3" cy="6" r="2"></circle></svg>';function aE(i){return`
2242    <style>
2243      :host { --media-tooltip-display: none; }
2244      
2245      slot[name=indicator] > *,
2246      :host ::slotted([slot=indicator]) {
2247        
2248        min-width: auto;
2249        fill: var(--media-live-button-icon-color, rgb(140, 140, 140));
2250        color: var(--media-live-button-icon-color, rgb(140, 140, 140));
2251      }
2252
2253      :host([${fl}
2253]:not([${Zn}])) slot[name=indicator] > *,
2254      :host([${fl}]:not([${Zn}])) ::slotted([slot=indicator]) {
2255        fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));
2256        color: var(--media-live-button-indicator-color, rgb(255, 0, 0));
2257      }
2258
2259      :host([${fl}]:not([${Zn}])) {
2260        cursor: var(--media-cursor, not-allowed);
2261      }
2262
2263      slot[name=text]{
2264        text-transform: uppercase;
2265      }
2266
2267    </style>
2268
2269    <slot name="indicator">${rE}</slot>
2270    
2271    <slot name="spacer">&nbsp;</slot><slot name="text">${k("live")}</slot>
2272  `}var jv=i=>{var e;let t=i.mediaPaused||!i.mediaTimeIsLive,r=t?k("seek to live"):k("playing live");i.setAttribute("aria-label",r);let a=(e=i.shadowRoot)==null?void 0:e.querySelector('slot[name="text"]');a&&(a.textContent=k("live")),t?i.removeAttribute("aria-disabled"):i.setAttribute("aria-disabled","true")},bl=class extends de{static get observedAttributes(){return[...super.observedAttributes,fl,Zn]}connectedCallback(){super.connectedCallback(),jv(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),jv(this)}get mediaPaused(){return F(this,c.MEDIA_PAUSED)}set mediaPaused(e){V(this,c.MEDIA_PAUSED,e)}get mediaTimeIsLive(){return F(this,c.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(e){V(this,c.MEDIA_TIME_IS_LIVE,e)}handleClick(){!this.mediaPaused&&this.mediaTimeIsLive||(this.dispatchEvent(new h.CustomEvent(tE,{composed:!0,bubbles:!0})),this.hasAttribute(Zn)&&this.dispatchEvent(new h.CustomEvent(iE,{composed:!0,bubbles:!0})))}};bl.getSlotTemplateHTML=aE;h.customElements.get("media-live-button")||h.customElements.define("media-live-button",bl);var Gv=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Xn=(i,e,t)=>(Gv(i,e,"read from private field"),t?t.call(i):e.get(i)),qv=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Jn=(i,e,t,r)=>(Gv(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),ci,El,_l={LOADING_DELAY:"loadingdelay",NO_AUTOHIDE:"noautohide"},Kv=500,nE=`
2273<svg aria-hidden="true" viewBox="0 0 100 100">
2274  <path d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
2275    <animateTransform
2276       attributeName="transform"
2277       attributeType="XML"
2278       type="rotate"
2279       dur="1s"
2280       from="0 50 50"
2281       to="360 50 50"
2282       repeatCount="indefinite" />
2283  </path>
2284</svg>
2285`;function oE(i){return`
2286    <style>
2287      :host {
2288        display: var(--media-control-display, var(--media-loading-indicator-display, inline-block));
2289        vertical-align: middle;
2290        box-sizing: border-box;
2291        --_loading-indicator-delay: var(--media-loading-indicator-transition-delay, ${Kv}ms);
2292      }
2293
2294      #status {
2295        color: rgba(0,0,0,0);
2296        width: 0px;
2297        height: 0px;
2298      }
2299
2300      :host slot[name=icon] > *,
2301      :host ::slotted([slot=icon]) {
2302        opacity: var(--media-loading-indicator-opacity, 0);
2303        transition: opacity 0.15s;
2304      }
2305
2306      :host([${c.MEDIA_LOADING}]:not([${c.MEDIA_PAUSED}])) slot[name=icon] > *,
2307      :host([${c.MEDIA_LOADING}]:not([${c.MEDIA_PAUSED}])) ::slotted([slot=icon]) {
2308        opacity: var(--media-loading-indicator-opacity, 1);
2309        transition: opacity 0.15s var(--_loading-indicator-delay);
2310      }
2311
2312      :host #status {
2313        visibility: var(--media-loading-indicator-opacity, hidden);
2314        transition: visibility 0.15s;
2315      }
2316
2317      :host([${c.MEDIA_LOADING}]:not([${c.MEDIA_PAUSED}])) #status {
2318        visibility: var(--media-loading-indicator-opacity, visible);
2319        transition: visibility 0.15s var(--_loading-indicator-delay);
2320      }
2321
2322      svg, img, ::slotted(svg), ::slotted(img) {
2323        width: var(--media-loading-indicator-icon-width);
2324        height: var(--media-loading-indicator-icon-height, 100px);
2325        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
2326        vertical-align: middle;
2327      }
2328    </style>
2329
2330    <slot name="icon">${nE}</slot>
2331    <div id="status" role="status" aria-live="polite">${k("media loading")}</div>
2332  `}var eo=class extends h.HTMLElement{constructor(){if(super(),qv(this,ci,void 0),qv(this,El,Kv),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[J.MEDIA_CONTROLLER,c.MEDIA_PAUSED,c.MEDIA_LOADING,_l.LOADING_DELAY]}attributeChangedCallback(e,t,r){var a,n,o,s,l;e===_l.LOADING_DELAY&&t!==r?this.loadingDelay=Number(r):e===J.MEDIA_CONTROLLER&&(t&&((n=(a=Xn(this,ci))==null?void 0:a.unassociateElement)==null||n.call(a,this),Jn(this,ci,null)),r&&this.isConnected&&(Jn(this,ci,(o=this.getRootNode())==null?void 0:o.getElementById(r)),(l=(s=Xn(this,ci))==null?void 0:s.associateElement)==null||l.call(s,this)))}connectedCallback(){var e,t,r;let a=this.getAttribute(J.MEDIA_CONTROLLER);a&&(Jn(this,ci,(e=this.getRootNode())==null?void 0:e.getElementById(a)),(r=(t=Xn(this,ci))==null?void 0:t.associateElement)==null||r.call(t,this))}disconnectedCallback(){var e,t;(t=(e=Xn(this,ci))==null?void 0:e.unassociateElement)==null||t.call(e,this),Jn(this,ci,null)}get loadingDelay(){return Xn(this,El)}set loadingDelay(e){Jn(this,El,e);let{style:t}=fe(this.shadowRoot,":host");t.setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${e}ms)`)}get mediaPaused(){return F(this,c.MEDIA_PAUSED)}set mediaPaused(e){V(this,c.MEDIA_PAUSED,e)}get mediaLoading(){return F(this,c.MEDIA_LOADING)}set mediaLoading(e){V(this,c.MEDIA_LOADING,e)}get mediaController(){return Y(this,J.MEDIA_CONTROLLER)}set mediaController(e){K(this,J.MEDIA_CONTROLLER,e)}get noAutohide(){return F(this,_l.NO_AUTOHIDE)}set noAutohide(e){V(this,_l.NO_AUTOHIDE,e)}};ci=new WeakMap;El=new WeakMap;eo.shadowRootOptions={mode:"open"};eo.getTemplateHTML=oE;h.customElements.get("media-loading-indicator")||h.customElements.define("media-loading-indicator",eo);var sE=`<svg aria-hidden="true" viewBox="0 0 24 24">
2333  <path d="M16.5 12A4.5 4.5 0 0 0 14 8v2.18l2.45 2.45a4.22 4.22 0 0 0 .05-.63Zm2.5 0a6.84 6.84 0 0 1-.54 2.64L20 16.15A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A6.92 6.92 0 0 1 14 18.7v2.06A9 9 0 0 0 17.69 19l2 2.05L21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"/>
2334</svg>`,Yv=`<svg aria-hidden="true" viewBox="0 0 24 24">
2335  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4Z"/>
2336</svg>`,lE=`<svg aria-hidden="true" viewBox="0 0 24 24">
2337  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54Z"/>
2338</svg>`;function cE(i){return`
2339    <style>
2340      :host(:not([${c.MEDIA_VOLUME_LEVEL}])) slot[name=icon] slot:not([name=high]),
2341      :host([${c.MEDIA_VOLUME_LEVEL}=high]) slot[name=icon] slot:not([name=high]) {
2342        display: none !important;
2343      }
2344
2345      :host([${c.MEDIA_VOLUME_LEVEL}=off]) slot[name=icon] slot:not([name=off]) {
2346        display: none !important;
2347      }
2348
2349      :host([${c.MEDIA_VOLUME_LEVEL}=low]) slot[name=icon] slot:not([name=low]) {
2350        display: none !important;
2351      }
2352
2353      :host([${c.MEDIA_VOLUME_LEVEL}=medium]) slot[name=icon] slot:not([name=medium]) {
2354        display: none !important;
2355      }
2356
2357      :host(:not([${c.MEDIA_VOLUME_LEVEL}=off])) slot[name=tooltip-unmute],
2358      :host([${c.MEDIA_VOLUME_LEVEL}=off]) slot[name=tooltip-mute] {
2359        display: none;
2360      }
2361    </style>
2362
2363    <slot name="icon">
2364      <slot name="off">${sE}</slot>
2365      <slot name="low">${Yv}</slot>
2366      <slot name="medium">${Yv}</slot>
2367      <slot name="high">${lE}</slot>
2368    </slot>
2369  `}function dE(){return`
2370    <slot name="tooltip-mute">${k("Mute")}</slot>
2371    <slot name="tooltip-unmute">${k("Unmute")}</slot>
2372  `}var Qv=i=>{let t=i.mediaVolumeLevel==="off"?k("unmute"):k("mute");i.setAttribute("aria-label",t)},to=class extends de{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_VOLUME_LEVEL]}connectedCallback(){super.connectedCallback(),Qv(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_VOLUME_LEVEL&&Qv(this)}get mediaVolumeLevel(){return Y(this,c.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(e){K(this,c.MEDIA_VOLUME_LEVEL,e)}handleClick(){let e=this.mediaVolumeLevel==="off"?T.MEDIA_UNMUTE_REQUEST:T.MEDIA_MUTE_REQUEST;this.dispatchEvent(new h.CustomEvent(e,{composed:!0,bubbles:!0}))}};
vendor: 4,488 bytes, lines 2372-2417
2372to.getSlotTemplateHTML=cE;to.getTooltipContentHTML=dE;h.customElements.get("media-mute-button")||h.customElements.define("media-mute-button",to);var Zv=`<svg aria-hidden="true" viewBox="0 0 28 24">
2373  <path d="M24 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Zm-1 16H5V5h18v14Zm-3-8h-7v5h7v-5Z"/>
2374</svg>`;function uE(i){return`
2375    <style>
2376      :host([${c.MEDIA_IS_PIP}]) slot[name=icon] slot:not([name=exit]) {
2377        display: none !important;
2378      }
2379
2380      :host(:not([${c.MEDIA_IS_PIP}])) slot[name=icon] slot:not([name=enter]) {
2381        display: none !important;
2382      }
2383
2384      :host([${c.MEDIA_IS_PIP}]) slot[name=tooltip-enter],
2385      :host(:not([${c.MEDIA_IS_PIP}])) slot[name=tooltip-exit] {
2386        display: none;
2387      }
2388    </style>
2389
2390    <slot name="icon">
2391      <slot name="enter">${Zv}</slot>
2392      <slot name="exit">${Zv}</slot>
2393    </slot>
2394  `}function pE(){return`
2395    <slot name="tooltip-enter">${k("Enter picture in picture mode")}</slot>
2396    <slot name="tooltip-exit">${k("Exit picture in picture mode")}</slot>
2397  `}var Xv=i=>{let e=i.mediaIsPip?k("exit picture in picture mode"):k("enter picture in picture mode");i.setAttribute("aria-label",e)},io=class extends de{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_IS_PIP,c.MEDIA_PIP_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),Xv(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_IS_PIP&&Xv(this)}get mediaPipUnavailable(){return Y(this,c.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(e){K(this,c.MEDIA_PIP_UNAVAILABLE,e)}get mediaIsPip(){return F(this,c.MEDIA_IS_PIP)}set mediaIsPip(e){V(this,c.MEDIA_IS_PIP,e)}handleClick(){let e=this.mediaIsPip?T.MEDIA_EXIT_PIP_REQUEST:T.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new h.CustomEvent(e,{composed:!0,bubbles:!0}))}};io.getSlotTemplateHTML=uE;io.getTooltipContentHTML=pE;h.customElements.get("media-pip-button")||h.customElements.define("media-pip-button",io);var hE=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},xa=(i,e,t)=>(hE(i,e,"read from private field"),t?t.call(i):e.get(i)),mE=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Zi,ru={RATES:"rates"},au=[1,1.2,1.5,1.7,2],Dr=1;function di(i){return Math.round(i*100)/100}function vE(i){return`
2398    <style>
2399      :host {
2400        min-width: 5ch;
2401        padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
2402      }
2403    </style>
2404    <slot name="icon">${i.mediaplaybackrate?di(+i.mediaplaybackrate):Dr}x</slot>
2405  `}function gE(){return k("Playback rate")}var ro=class extends de{constructor(){var e;super(),mE(this,Zi,new qi(this,ru.RATES,{defaultValue:au})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${di((e=this.mediaPlaybackRate)!=null?e:Dr)}x`}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_PLAYBACK_RATE,ru.RATES]}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e===ru.RATES&&(xa(this,Zi).value=r),e===c.MEDIA_PLAYBACK_RATE){let a=r?+r:Number.NaN,n=di(Number.isNaN(a)?Dr:a);this.container.innerHTML=`${n}x`,this.setAttribute("aria-label",k("Playback rate {playbackRate}",{playbackRate:n}))}}get rates(){return xa(this,Zi)}set rates(e){e?Array.isArray(e)?xa(this,Zi).value=e.join(" "):typeof e=="string"&&(xa(this,Zi).value=e):xa(this,Zi).value=""}get mediaPlaybackRate(){return ee(this,c.MEDIA_PLAYBACK_RATE,Dr)}set mediaPlaybackRate(e){re(this,c.MEDIA_PLAYBACK_RATE,e)}handleClick(){var e,t;let r=Array.from(xa(this,Zi).values(),o=>+o).sort((o,s)=>o-s),a=(t=(e=r.find(o=>o>this.mediaPlaybackRate))!=null?e:r[0])!=null?t:Dr,n=new h.CustomEvent(T.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:a});this.dispatchEvent(n)}};Zi=new WeakMap;ro.getSlotTemplateHTML=vE;ro.getTooltipContentHTML=gE;h.customElements.get("media-playback-rate-button")||h.customElements.define("media-playback-rate-button",ro);var yE=`<svg aria-hidden="true" viewBox="0 0 24 24">
2406  <path d="m6 21 15-9L6 3v18Z"/>
2407</svg>`,fE=`<svg aria-hidden="true" viewBox="0 0 24 24">
2408  <path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/>
2409</svg>`;function bE(i){return`
2410    <style>
2411      :host([${c.MEDIA_PAUSED}]) slot[name=pause],
2412      :host(:not([${c.MEDIA_PAUSED}])) slot[name=play] {
2413        display: none !important;
2414      }
2415
2416      :host([${c.MEDIA_PAUSED}]) slot[name=tooltip-pause],
2417      :host(:not([${c.MEDIA_PAUSED}
2417])) slot[name=tooltip-play] {
2418        display: none;
2419      }
2420    </style>
2421
2422    <slot name="icon">
2423      <slot name="play">${yE}</slot>
2424      <slot name="pause">${fE}</slot>
2425    </slot>
2426  `}function _E(){return`
2427    <slot name="tooltip-play">${k("Play")}</slot>
2428    <slot name="tooltip-pause">${k("Pause")}</slot>
2429  `}var Jv=i=>{let e=i.mediaPaused?k("play"):k("pause");i.setAttribute("aria-label",e)},ao=class extends de{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_PAUSED,c.MEDIA_ENDED]}connectedCallback(){super.connectedCallback(),Jv(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),(e===c.MEDIA_PAUSED||e===c.MEDIA_LANG)&&Jv(this)}get mediaPaused(){return F(this,c.MEDIA_PAUSED)}set mediaPaused(e){V(this,c.MEDIA_PAUSED,e)}handleClick(){let e=this.mediaPaused?T.MEDIA_PLAY_REQUEST:T.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new h.CustomEvent(e,{composed:!0,bubbles:!0}))}};ao.getSlotTemplateHTML=bE;ao.getTooltipContentHTML=_E;h.customElements.get("media-play-button")||h.customElements.define("media-play-button",ao);var ui={PLACEHOLDER_SRC:"placeholdersrc",SRC:"src"};function EE(i){return`
2430    <style>
2431      :host {
2432        pointer-events: none;
2433        display: var(--media-poster-image-display, inline-block);
2434        box-sizing: border-box;
2435      }
2436
2437      img {
2438        max-width: 100%;
2439        max-height: 100%;
2440        min-width: 100%;
2441        min-height: 100%;
2442        background-repeat: no-repeat;
2443        background-position: var(--media-poster-image-background-position, var(--media-object-position, center));
2444        background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain));
2445        object-fit: var(--media-object-fit, contain);
2446        object-position: var(--media-object-position, center);
2447      }
2448    </style>
2449
2450    <img part="poster img" aria-hidden="true" id="image"/>
2451  `}var kE=i=>{i.style.removeProperty("background-image")},wE=(i,e)=>{i.style["background-image"]=`url('${e}')`},no=class extends h.HTMLElement{static get observedAttributes(){return[ui.PLACEHOLDER_SRC,ui.SRC]}constructor(){if(super(),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(e,t,r){e===ui.SRC&&(r==null?this.image.removeAttribute(ui.SRC):this.image.setAttribute(ui.SRC,r)),e===ui.PLACEHOLDER_SRC&&(r==null?kE(this.image):wE(this.image,r))}get placeholderSrc(){return Y(this,ui.PLACEHOLDER_SRC)}set placeholderSrc(e){K(this,ui.SRC,e)}get src(){return Y(this,ui.SRC)}set src(e){K(this,ui.SRC,e)}};no.shadowRootOptions={mode:"open"};no.getTemplateHTML=EE;h.customElements.get("media-poster-image")||h.customElements.define("media-poster-image",no);var eg=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},xE=(i,e,t)=>(eg(i,e,"read from private field"),t?t.call(i):e.get(i)),AE=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},TE=(i,e,t,r)=>(eg(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),kl,nu=class extends ct{constructor(){super(),AE(this,kl,void 0),TE(this,kl,this.shadowRoot.querySelector("slot"))}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_PREVIEW_CHAPTER,c.MEDIA_LANG]}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),(e===c.MEDIA_PREVIEW_CHAPTER||e===c.MEDIA_LANG)&&r!==t&&r!=null)if(xE(this,kl).textContent=r,r!==""){let a=k("chapter: {chapterName}",{chapterName:r});this.setAttribute("aria-valuetext",a)}else this.removeAttribute("aria-valuetext")}get mediaPreviewChapter(){return Y(this,c.MEDIA_PREVIEW_CHAPTER)}set mediaPreviewChapter(e){K(this,c.MEDIA_PREVIEW_CHAPTER,e)}};kl=new WeakMap;h.customElements.get("media-preview-chapter-display")||h.customElements.define("media-preview-chapter-display",nu);var tg=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},wl=(i,e,t)=>(tg(i,e,"read from private field"),t?t.call(i):e.get(i)),SE=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},xl=(i,e,t,r)=>(tg(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),pi;function CE(i){return`
2452    <style>
2453      :host {
2454        box-sizing: border-box;
2455        display: var(--media-control-display, var(--media-preview-thumbn
2455ail-display, inline-block));
2456        overflow: hidden;
2457      }
2458
2459      img {
2460        display: none;
2461        position: relative;
2462      }
2463    </style>
2464    <img crossorigin loading="eager" decoding="async">
2465  `}var Aa=class extends h.HTMLElement{constructor(){if(super(),SE(this,pi,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[J.MEDIA_CONTROLLER,c.MEDIA_PREVIEW_IMAGE,c.MEDIA_PREVIEW_COORDS]}connectedCallback(){var e,t,r;let a=this.getAttribute(J.MEDIA_CONTROLLER);a&&(xl(this,pi,(e=this.getRootNode())==null?void 0:e.getElementById(a)),(r=(t=wl(this,pi))==null?void 0:t.associateElement)==null||r.call(t,this))}disconnectedCallback(){var e,t;(t=(e=wl(this,pi))==null?void 0:e.unassociateElement)==null||t.call(e,this),xl(this,pi,null)}attributeChangedCallback(e,t,r){var a,n,o,s,l;[c.MEDIA_PREVIEW_IMAGE,c.MEDIA_PREVIEW_COORDS].includes(e)&&this.update(),e===J.MEDIA_CONTROLLER&&(t&&((n=(a=wl(this,pi))==null?void 0:a.unassociateElement)==null||n.call(a,this),xl(this,pi,null)),r&&this.isConnected&&(xl(this,pi,(o=this.getRootNode())==null?void 0:o.getElementById(r)),(l=(s=wl(this,pi))==null?void 0:s.associateElement)==null||l.call(s,this)))}get mediaPreviewImage(){return Y(this,c.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){K(this,c.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewCoords(){let e=this.getAttribute(c.MEDIA_PREVIEW_COORDS);if(e)return e.split(/\s+/).map(t=>+t)}set mediaPreviewCoords(e){if(!e){this.removeAttribute(c.MEDIA_PREVIEW_COORDS);return}this.setAttribute(c.MEDIA_PREVIEW_COORDS,e.join(" "))}update(){let e=this.mediaPreviewCoords,t=this.mediaPreviewImage;if(!(e&&t))return;let[r,a,n,o]=e,s=t.split("#")[0],l=getComputedStyle(this),{maxWidth:d,maxHeight:y,minWidth:p,minHeight:g}=l,v=l.getPropertyValue("--media-preview-thumbnail-object-fit").trim()||"contain",f,b;if(v==="fill"){let j=parseInt(d)/n,ae=parseInt(y)/o,U=parseInt(p)/n,Ae=parseInt(g)/o;f=j<1?j:Math.max(j,U),b=ae<1?ae:Math.max(ae,Ae)}else{let j=Math.min(parseInt(d)/n,parseInt(y)/o),ae=Math.max(parseInt(p)/n,parseInt(g)/o),Ae=j<1?j:ae>1?ae:1;f=Ae,b=Ae}let{style:x}=fe(this.shadowRoot,":host"),S=fe(this.shadowRoot,"img").style,I=this.shadowRoot.querySelector("img"),O=Math.min(f,b)<1?"min":"max";x.setProperty(`${O}-width`,"initial","important"),x.setProperty(`${O}-height`,"initial","important"),x.width=`${n*f}px`,x.height=`${o*b}px`;let H=()=>{S.width=`${this.imgWidth*f}px`,S.height=`${this.imgHeight*b}px`,S.display="block"};I.src!==s&&(I.onload=()=>{this.imgWidth=I.naturalWidth,this.imgHeight=I.naturalHeight,H(),I.onload=null},I.src=s,H()),H(),S.transform=`translate(-${r*f}px, -${a*b}px)`}};pi=new WeakMap;Aa.shadowRootOptions={mode:"open"};Aa.getTemplateHTML=CE;h.customElements.get("media-preview-thumbnail")||h.customElements.define("media-preview-thumbnail",Aa);var Al=Aa;var rg=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},ig=(i,e,t)=>(rg(i,e,"read from private field"),t?t.call(i):e.get(i)),IE=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},ME=(i,e,t,r)=>(rg(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),oo,ou=class extends ct{constructor(){super(),IE(this,oo,void 0),ME(this,oo,this.shadowRoot.querySelector("slot")),ig(this,oo).textContent=Nt(0)}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_PREVIEW_TIME]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_PREVIEW_TIME&&r!=null&&(ig(this,oo).textContent=Nt(parseFloat(r)))}get mediaPreviewTime(){return ee(this,c.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){re(this,c.MEDIA_PREVIEW_TIME,e)}};oo=new WeakMap;h.customElements.get("media-preview-time-display")||h.customElements.define("media-preview-time-display",ou);var Ta={SEEK_OFFSET:"seekoffset"},su=30,LE=i=>`
2466  <svg aria-hidden="true" viewBox="0 0 20 24">
2467    <defs>
2468      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
2469    </defs>
2470    <text class="text value" transform="translate(2.18 19.87)">${i}</text>
2471    <path d="M10 6V3L4.37 7 10 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 10 6Z"/>
2472  </svg>`;function RE(i,e){return`
2473    <slot name="icon">${LE(e.seekOffset)}</slot>
2474  `}var $E=(i,e)=>{i.setAttribute("aria-label",k("seek back {seekOffset} seconds",{seekOffset:e}))};function DE(){return k("Seek backward")}var PE=0,so=class extends de{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_CURRENT_TIME,Ta.SEEK_OFFSET]}connectedCallback(){super.connectedCallback(),this.seekOffset=ee(this,Ta.SEEK_OFFSET,su)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),$E(this,this.seekOffset),e===Ta.SEEK_OFFSET&&(this.seekOffset=ee(this,Ta.SEEK_OFFSET,su))}get seekOffset(){return ee(this,Ta.SEEK_OFFSET,su)}set seekOffset(e){re(this,Ta.SEEK_OFFSET,e),this.setAttribute("aria-label",k("seek back {seekOffset} seconds",{seekOffset:this.seekOffset})),Ss(Cs(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return ee(this,c.MEDIA_CURRENT_TIME,PE)}set mediaCurrentTime(e){re(this,c.MEDIA_CURRENT_TIME,e)}handleClick(){let e=Math.max(this.mediaCurrentTime-this.seekOffset,0),t=new h.CustomEvent(T.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}};
vendor: 11,327 bytes, lines 2474-2558
2474so.getSlotTemplateHTML=RE;so.getTooltipContentHTML=DE;h.customElements.get("media-seek-backward-button")||h.customElements.define("media-seek-backward-button",so);var Sa={SEEK_OFFSET:"seekoffset"},lu=30,OE=i=>`
2475  <svg aria-hidden="true" viewBox="0 0 20 24">
2476    <defs>
2477      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
2478    </defs>
2479    <text class="text value" transform="translate(8.9 19.87)">${i}</text>
2480    <path d="M10 6V3l5.61 4L10 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 10 6Z"/>
2481  </svg>`;function zE(i,e){return`
2482    <slot name="icon">${OE(e.seekOffset)}</slot>
2483  `}var NE=(i,e)=>{i.setAttribute("aria-label",k("seek forward {seekOffset} seconds",{seekOffset:e}))};function UE(){return k("Seek forward")}var HE=0,lo=class extends de{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_CURRENT_TIME,Sa.SEEK_OFFSET]}connectedCallback(){super.connectedCallback(),this.seekOffset=ee(this,Sa.SEEK_OFFSET,lu)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),NE(this,this.seekOffset),e===Sa.SEEK_OFFSET&&(this.seekOffset=ee(this,Sa.SEEK_OFFSET,lu))}get seekOffset(){return ee(this,Sa.SEEK_OFFSET,lu)}set seekOffset(e){re(this,Sa.SEEK_OFFSET,e),this.setAttribute("aria-label",k("seek forward {seekOffset} seconds",{seekOffset:this.seekOffset})),Ss(Cs(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return ee(this,c.MEDIA_CURRENT_TIME,HE)}set mediaCurrentTime(e){re(this,c.MEDIA_CURRENT_TIME,e)}handleClick(){let e=this.mediaCurrentTime+this.seekOffset,t=new h.CustomEvent(T.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}};lo.getSlotTemplateHTML=zE;lo.getTooltipContentHTML=UE;h.customElements.get("media-seek-forward-button")||h.customElements.define("media-seek-forward-button",lo);var uu=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},jt=(i,e,t)=>(uu(i,e,"read from private field"),t?t.call(i):e.get(i)),Pr=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},pu=(i,e,t,r)=>(uu(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Ji=(i,e,t)=>(uu(i,e,"access private method"),t),Ca,hi,Ml,hu,ng,Cl,mu,co,Tl,Sl,cu,Xi={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},ag=[...Object.values(Xi),c.MEDIA_CURRENT_TIME,c.MEDIA_DURATION,c.MEDIA_SEEKABLE],og=["Enter"," "],BE="&nbsp;/&nbsp;",du=(i,{timesSep:e=BE}={})=>{var t,r;let a=(t=i.mediaCurrentTime)!=null?t:0,[,n]=(r=i.mediaSeekable)!=null?r:[],o=0;Number.isFinite(i.mediaDuration)?o=i.mediaDuration:Number.isFinite(n)&&(o=n);let s=i.remaining?Nt(0-(o-a)):Nt(a);return i.showDuration?`${s}${e}${Nt(o)}`:s},FE=i=>{var e;let t=i.mediaCurrentTime,[,r]=(e=i.mediaSeekable)!=null?e:[],a=null;if(Number.isFinite(i.mediaDuration)?a=i.mediaDuration:Number.isFinite(r)&&(a=r),t==null||a===null){i.setAttribute("aria-description",k("video not loaded, unknown time."));return}let n=i.remaining?kr(0-(a-t)):kr(t);if(!i.showDuration){i.setAttribute("aria-description",n);return}let o=kr(a),s=k("{currentTime} of {totalTime}",{currentTime:n,totalTime:o});i.setAttribute("aria-description",s)};function VE(i,e){return`
2484    <slot>${du(e)}</slot>
2485  `}var WE=i=>{i.setAttribute("aria-label",k("playback time"))},Il=class extends ct{constructor(){super(),Pr(this,hu),Pr(this,Cl),Pr(this,co),Pr(this,Sl),Pr(this,Ca,void 0),Pr(this,hi,null),Pr(this,Ml,e=>{let{metaKey:t,altKey:r,key:a}=e;if(t||r||!og.includes(a)){this.removeEventListener("keyup",jt(this,hi));return}this.addEventListener("keyup",jt(this,hi))}),pu(this,Ca,this.shadowRoot.querySelector("slot")),jt(this,Ca).innerHTML=`${du(this)}`}static get observedAttributes(){return[...super.observedAttributes,...ag,"disabled"]}connectedCallback(){let{style:e}=fe(this.shadowRoot,":host(:hover:not([notoggle]))");e.setProperty("cursor","var(--media-cursor, pointer)"),e.setProperty("background","var(--media-control-hover-background, rgba(50 50 70 / .7))"),this.setAttribute("aria-label",k("playback time")),Ji(this,co,Tl).call(this),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),Ji(this,Cl,mu).call(this),super.disconnectedCallback()}attributeChangedCallback(e,t,r){WE(this),ag.includes(e)?this.update():e==="disabled"&&r!==t?r==null?Ji(this,co,Tl).call(this):Ji(this,Sl,cu).call(this):e===Xi.NO_TOGGLE&&r!==t&&(this.noToggle?Ji(this,Sl,cu).call(this):Ji(this,co,Tl).call(this)),super.attributeChangedCallback(e,t,r)}enable(){this.noToggle||(this.tabIndex=0)}disable(){this.tabIndex=-1}get remaining(){return F(this,Xi.REMAINING)}set remaining(e){V(this,Xi.REMAINING,e)}get showDuration(){return F(this,Xi.SHOW_DURATION)}set showDuration(e){V(this,Xi.SHOW_DURATION,e)}get noToggle(){return F(this,Xi.NO_TOGGLE)}set noToggle(e){V(this,Xi.NO_TOGGLE,e)}get mediaDuration(){return ee(this,c.MEDIA_DURATION)}set mediaDuration(e){re(this,c.MEDIA_DURATION,e)}get mediaCurrentTime(){return ee(this,c.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){re(this,c.MEDIA_CURRENT_TIME,e)}get mediaSeekable(){let e=this.getAttribute(c.MEDIA_SEEKABLE);if(e)return e.split(":").map(t=>+t)}set mediaSeekable(e){if(e==null){this.removeAttribute(c.MEDIA_SEEKABLE);return}this.setAttribute(c.MEDIA_SEEKABLE,e.join(":"))}update(){let e=du(this);FE(this),e!==jt(this,Ca).innerHTML&&(jt(this,Ca).innerHTML=e)}};Ca=new WeakMap;hi=new WeakMap;Ml=new WeakMap;hu=new WeakSet;ng=function(){jt(this,hi)||(pu(this,hi,i=>{let{key:e}=i;if(!og.includes(e)){this.removeEventListener("keyup",jt(this,hi));return}this.toggleTimeDisplay()}),this.addEventListener("keydown",jt(this,Ml)),this.addEventListener("click",this.toggleTimeDisplay))};Cl=new WeakSet;mu=function(){jt(this,hi)&&(this.removeEventListener("keyup",jt(this,hi)),this.removeEventListener("keydown",jt(this,Ml)),this.removeEventListener("click",this.toggleTimeDisplay),pu(this,hi,null))};co=new WeakSet;Tl=function(){!this.noToggle&&!this.hasAttribute("disabled")&&(this.setAttribute("role","button"),this.enable(),Ji(this,hu,ng).call(this))};Sl=new WeakSet;cu=function(){this.removeAttribute("role"),this.disable(),Ji(this,Cl,mu).call(this)};Il.getSlotTemplateHTML=VE;h.customElements.get("media-time-display")||h.customElements.define("media-time-display",Il);var sg=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},qe=(i,e,t)=>(sg(i,e,"read from private field"),t?t.call(i):e.get(i)),mi=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},ft=(i,e,t,r)=>(sg(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),jE=(i,e,t,r)=>({set _(a){ft(i,e,a,t)},get _(){return qe(i,e,r)}}),Ia,Ll,Ma,uo,Rl,$l,Dl,La,Or,Pl,Ol=class{constructor(e,t,r){mi(this,Ia,void 0),mi(this,Ll,void 0),mi(this,Ma,void 0),mi(this,uo,void 0),mi(this,Rl,void 0),mi(this,$l,void 0),mi(this,Dl,void 0),mi(this,La,void 0),mi(this,Or,0),mi(this,Pl,(a=performance.now())=>{ft(this,Or,requestAnimationFrame(qe(this,Pl))),ft(this,uo,performance.now()-qe(this,Ma));let n=1e3/this.fps;if(qe(this,uo)>n){ft(this,Ma,a-qe(this,uo)%n);let o=1e3/((a-qe(this,Ll))/++jE(this,Rl)._),s=(a-qe(this,$l))/1e3/this.duration,l=qe(this,Dl)+s*this.playbackRate;l-qe(this,Ia).valueAsNumber>0?ft(this,La,this.playbackRate/this.duration/o):(ft(this,La,.995*qe(this,La)),l=qe(this,Ia).valueAsNumber+qe(this,La)),this.callback(l)}}),ft(this,Ia,e),this.callback=t,this.fps=r}start(){qe(this,Or)===0&&(ft(this,Ma,performance.now()),ft(this,Ll,qe(this,Ma)),ft(this,Rl,0),qe(this,Pl).call(this))}stop(){qe(this,Or)!==0&&(cancelAnimationFrame(qe(this,Or)),ft(this,Or,0))}update({start:e,duration:t,playbackRate:r}){let a=e-qe(this,Ia).valueAsNumber,n=Math.abs(t-this.duration);(a>0||a<-.03||n>=.5)&&this.callback(e),ft(this,Dl,e),ft(this,$l,performance.now()),this.duration=t,this.playbackRate=r}};Ia=new WeakMap;Ll=new WeakMap;Ma=new WeakMap;uo=new WeakMap;Rl=new WeakMap;$l=new WeakMap;Dl=new WeakMap;La=new WeakMap;Or=new WeakMap;Pl=new WeakMap;var bu=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},ke=(i,e,t)=>(bu(i,e,"read from private field"),t?t.call(i):e.get(i)),He=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Tt=(i,e,t,r)=>(bu(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),St=(i,e,t)=>(bu(i,e,"access private method"),t),Ra,er,Ul,ho,Hl,Nl,mo,vo,$a,Da,po,vu,lg,gu,Bl,_u,Fl,Eu,Vl,ku,yu,cg,go,Wl,fu,dg,qE=i=>{let e=i.range,t=kr(+ug(i)),r=kr(+i.mediaSeekableEnd),a=t&&r?k("{currentTime} of {totalTime}",{currentTime:t,totalTime:r}):k("video not loaded, unknown time.");e.setAttribute("aria-valuetext",a)};function GE(i){return`
2486    <style>
2487      :host {
2488        --media-box-border-radius: 4px;
2489        --media-box-padding-left: 10px;
2490        --media-box-padding-right: 10px;
2491        --media-preview-border-radius: var(--media-box-border-radius);
2492        --media-box-arrow-offset: var(--media-box-border-radius);
2493        --_control-background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
2494        --_preview-background: var(--media-preview-background, var(--_control-background));
2495
2496        
2497        contain: layout;
2498      }
2499
2500      #buffered {
2501        background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4));
2502        position: absolute;
2503        height: 100%;
2504        will-change: width;
2505      }
2506
2507      #preview-rail,
2508      #current-rail {
2509        width: 100%;
2510        position: absolute;
2511        left: 0;
2512        bottom: 100%;
2513        pointer-events: none;
2514        will-change: transform;
2515      }
2516
2517      [part~="box"] {
2518        width: min-content;
2519        
2520        position: absolute;
2521        bottom: 100%;
2522        flex-direction: column;
2523        align-items: center;
2524        transform: translateX(-50%);
2525      }
2526
2527      [part~="current-box"] {
2528        display: var(--media-current-box-display, var(--media-box-display, flex));
2529        margin: var(--media-current-box-margin, var(--media-box-margin, 0 0 5px));
2530        visibility: hidden;
2531      }
2532
2533      [part~="preview-box"] {
2534        display: var(--media-preview-box-display, var(--media-box-display, flex));
2535        margin: var(--media-preview-box-margin, var(--media-box-margin, 0 0 5px));
2536        transition-property: var(--media-preview-transition-property, visibility, opacity);
2537        transition-duration: var(--media-preview-transition-duration-out, .25s);
2538        transition-delay: var(--media-preview-transition-delay-out, 0s);
2539        visibility: hidden;
2540        opacity: 0;
2541      }
2542
2543      :host(:is([${c.MEDIA_PREVIEW_IMAGE}], [${c.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] {
2544        transition-duration: var(--media-preview-transition-duration-in, .5s);
2545        transition-delay: var(--media-preview-transition-delay-in, .25s);
2546        visibility: visible;
2547        opacity: 1;
2548      }
2549
2550      @media (hover: hover) {
2551        :host(:is([${c.MEDIA_PREVIEW_IMAGE}], [${c.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] {
2552          transition-duration: var(--media-preview-transition-duration-in, .5s);
2553          transition-delay: var(--media-preview-transition-delay-in, .25s);
2554          visibility: visible;
2555          opacity: 1;
2556        }
2557      }
2558
2559      media-preview-thumbnail,
2560      ::slotted(media-preview-thumbnail) {
2561        visibility: hidden;
2562        
2563        transition: visibility 0s .25s;
2564        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
2565        background: var(--media-preview-thumbnail-background, var(--_preview-background));
2566        box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2));
2567        max-width: var(--media-preview-thumbnail-max-width, 180px);
2568        max-height: var(--media-preview-thumbnail-max-height, 160px);
2569        min-width: var(--media-preview-thumbnail-min-width, 120px);
2570        min-height: var(--media-preview-thumbnail-min-height, 80px);
2571        border: var(--media-preview-thumbnail-border);
2572        border-radius: var(--media-preview-thumbnail-border-radius,
2573          var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0);
2574      }
2575
2576      :host([${c.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail,
2577      :host([${c.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) {
2578        transition-delay: var(--media-preview-transition-delay-in, .25s);
2579        visibility: visible;
2580      }
2581
2582      @media (hover: hover) {
2583        :host([${c.MEDIA_PREVIEW_IMAGE}]:hover) media-preview-thumbnail,
2584        :host([${c.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) {
2585          transition-delay: var(--media-preview-transition-delay-in, .25s);
2586          visibility: visible;
2587        }
2588
2589        :host([${c.MEDIA_PREVIEW_TIME}]:hover) {
2590          --media-time-range-hover-display: block;
2591        }
2592      }
2593
2594      media-preview-chapter-display,
2595      ::slotted(media-preview-chapter-display) {
2596        font-size: var(--media-font-size, 13px);
2597        line-height: 17px;
2598        min-width: 0;
2599        visibility: hidden;
2600        
2601        transition: min-width 0s, border-radius 0s, margin 0s, padding 0s, visibility 0s;
2602        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
2603        background: var(--media-preview-chapter-background, var(--_preview-background));
2604        border-radius: var(--media-preview-chapter-border-radius,
2605          var(--media-preview-border-radius) var(--media-preview-border-radius)
2606          var(--media-preview-border-radius) var(--media-preview-border-radius));
2607        padding: var(--media-preview-chapter-padding, 3.5px 9px);
2608        margin: var(--media-preview-chapter-margin, 0 0 5px);
2609        text-shadow: var(--media-preview-chapter-text-shadow, 0 0 4px rgb(0 0 0 / .75));
2610      }
2611
2612      :host([${c.MEDIA_PREVIEW_IMAGE}]) media-preview-chapter-display,
2613      :host([${c.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-chapter-display) {
2614        transition-delay: var(--media-preview-transition-delay-in, .25s);
2615        border-radius: var(--media-preview-chapter-border-radius, 0);
2616        padding: var(--media-preview-chapter-padding, 3.5px 9px 0);
2617        margin: var(--media-preview-chapter-margin, 0);
2618        min-width: 100%;
2619      }
2620
2621      media-preview-chapter-display[${c.MEDIA_PREVIEW_CHAPTER}],
2622      ::slotted(media-preview-chapter-display[${c.MEDIA_PREVIEW_CHAPTER}]) {
2623        visibility: visible;
2624      }
2625
2626      media-preview-chapter-display:not([aria-valuetext]),
2627      ::slotted(media-preview-chapter-display:not([aria-valuetext])) {
2628        display: none;
2629      }
2630
2631      media-preview-time-display,
2632      ::slotted(media-preview-time-display),
2633      media-time-display,
2634      ::slotted(media-time-display) {
2635        font-size: var(--media-font-size, 13px);
2636        line-height: 17px;
2637        min-width: 0;
2638        
2639        transition: min-width 0s, border-radius 0s;
2640        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
2641        background: var(--media-preview-time-background, var(--_preview-background));
2642        border-radius: var(--media-preview-time-border-radius,
2643          var(--media-preview-border-radius) var(--media-preview-border-radius)
2644          var(--media-preview-border-radius) var(--media-preview-border-radius));
2645        padding: var(--media-preview-time-padding, 3.5px 9px);
2646        margin: var(--media-preview-time-margin, 0);
2647        text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75));
2648        transform: translateX(min(
2649          max(calc(50% - var(--_box-width) / 2),
2650          calc(var(--_box-shift, 0))),
2651          calc(var(--_box-width) / 2 - 50%)
2652        ));
2653      }
2654
2655      :host([${c.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display,
2656      :host([${c.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) {
2657        transition-delay: var(--media-preview-transition-delay-in, .25s);
2658        border-radius: var(--media-preview-time-border-radius,
2659          0 0 var(--media-preview-border-radius) var(--media-preview-border-radius));
2660        min-width: 100%;
2661      }
2662
2663      :host([${c.MEDIA_PREVIEW_TIME}]:hover) {
2664        --media-time-range-hover-display: block;
2665      }
2666
2667      [part~="arrow"],
2668      ::slotted([part~="arrow"]) {
2669        display: var(--media-box-arrow-display, inline-block);
2670        transform: translateX(min(
2671          max(calc(50% - var(--_box-width) / 2 + var(--media-box-arrow-offset)),
2672          calc(var(--_box-shift, 0))),
2673          calc(var(--_box-width) / 2 - 50% - var(--media-box-arrow-offset))
2674        ));
2675        
2676        border-color: transparent;
2677        border-top-color: var(--media-box-arrow-background, var(--_control-background));
2678        border-width: var(--media-box-arrow-border-width,
2679          var(--media-box-arrow-height, 5px) var(--media-box-arrow-width, 6px) 0);
2680        border-style: solid;
2681        justify-content: center;
2682        height: 0;
2683      }
2684    </style>
2685    <div id="preview-rail">
2686      <slot name="preview" part="box preview-box">
2687        <media-preview-thumbnail>
2688          <template shadowrootmode="${Al.shadowRootOptions.mode}">
2689            ${Al.getTemplateHTML({})}
2690          </template>
2691        </media-preview-thumbnail>
2692        <media-preview-chapter-display></media-preview-chapter-display>
2693        <media-preview-time-display></media-preview-time-display>
2694        <slot name="preview-arrow"><div part="arrow"></div></slot>
2695      </slot>
2696    </div>
2697    <div id="current-rail">
2698      <slot name="current" part="box current-box">
2699        
2700      </slot>
2701    </div>
2702  `}var zl=(i,e=i.mediaCurrentTime)=>{let t=Number.isFinite(i.mediaSeekableStart)?i.mediaSeekableStart:0,r=Number.isFinite(i.mediaDuration)?i.mediaDuration:i.mediaSeekableEnd;if(Number.isNaN(r))return 0;let a=(e-t)/(r-t);return Math.max(0,Math.min(a,1))},ug=(i,e=i.range.valueAsNumber)=>{let t=Number.isFinite(i.mediaSeekableStart)?i.mediaSeekableStart:0,r=Number.isFinite(i.mediaDuration)?i.mediaDuration:i.mediaSeekableEnd;return Number.isNaN(r)?0:e*(r-t)+t},yo=class extends oi{constructor(){super(),He(this,vu),He(this,Bl),He(this,Fl),He(this,Vl),He(this,yu),He(this,go),He(this,fu),He(this,Ra,null),He(this,er,void 0),He(this,Ul,void 0),He(this,ho,void 0),He(this,Hl,void 0),He(this,Nl,void 0),He(this,mo,void 0),He(this,vo,void 0),He(this,$a,void 0),He(this,Da,void 0),He(this,po,()=>{St(this,vu,lg).call(this)?ke(this,er).start():ke(this,er).stop()}),He(this,gu,r=>{this.dragging||(oa(r)&&(this.range.valueAsNumber=r),ke(this,Da)||this.updateBar())}),this.shadowRoot.querySelector("#track").insertAdjacentHTML("afterbegin",'<div id="buffered" part="buffered"></div>'),Tt(this,Ul,this.shadowRoot.querySelectorAll('[part~="box"]')),Tt(this,Hl,this.shadowRoot.querySelector('[part~="preview-box"]')),Tt(this,Nl,this.shadowRoot.querySelector('[part~="current-box"]'));let t=getComputedStyle(this);Tt(this,mo,parseInt(t.getPropertyValue("--media-box-padding-left"))),Tt(this,vo,parseInt(t.getPropertyValue("--media-box-padding-right"))),Tt(this,er,new Ol(this.range,ke(this,gu),60))}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_PAUSED,c.MEDIA_DURATION,c.MEDIA_SEEKABLE,c.MEDIA_CURRENT_TIME,c.MEDIA_PREVIEW_IMAGE,c.MEDIA_PREVIEW_TIME,c.MEDIA_PREVIEW_CHAPTER,c.MEDIA_BUFFERED,c.MEDIA_PLAYBACK_RATE,c.MEDIA_LOADING,c.MEDIA_ENDED]}connectedCallback(){var e;super.connectedCallback(),this.range.setAttribute("aria-label",k("seek")),ke(this,po).call(this),Tt(this,Ra,this.getRootNode()),(e=ke(this,Ra))==null||e.addEventListener("transitionstart",this)}disconnectedCallback(){var e;super.disconnectedCallback(),ke(this,er).stop(),(e=ke(this,Ra))==null||e.removeEventListener("transitionstart",this),Tt(this,Ra,null)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),t!=r&&(e===c.MEDIA_CURRENT_TIME||e===c.MEDIA_PAUSED||e===c.MEDIA_ENDED||e===c.MEDIA_LOADING||e===c.MEDIA_DURATION||e===c.MEDIA_SEEKABLE?(ke(this,er).update({start:zl(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),ke(this,po).call(this),qE(this)):e===c.MEDIA_BUFFERED&&this.updateBufferedBar(),(e===c.MEDIA_DURATION||e===c.MEDIA_SEEKABLE)&&(this.mediaChaptersCues=ke(this,$a),this.updateBar()))}get mediaChaptersCues(){return ke(this,$a)}set mediaChaptersCues(e){var t;Tt(this,$a,e),this.updateSegments((t=ke(this,$a))==null?void 0:t.map(r=>({start:zl(this,r.startTime),end:zl(this,r.endTime)})))}get mediaPaused(){return F(this,c.MEDIA_PAUSED)}set mediaPaused(e){V(this,c.MEDIA_PAUSED,e)}get mediaLoading(){return F(this,c.MEDIA_LOADING)}set mediaLoading(e){V(this,c.MEDIA_LOADING,e)}get mediaDuration(){return ee(this,c.MEDIA_DURATION)}set mediaDuration(e){re(this,c.MEDIA_DURATION,e)}get mediaCurrentTime(){return ee(this,c.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){re(this,c.MEDIA_CURRENT_TIME,e)}get mediaPlaybackRate(){return ee(this,c.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){re(this,c.MEDIA_PLAYBACK_RATE,e)}get mediaBuffered(){let e=this.getAttribute(c.MEDIA_BUFFERED);return e?e.split(" ").map(t=>t.split(":").map(r=>+r)):[]}set mediaBuffered(e){if(!e){this.removeAttribute(c.MEDIA_BUFFERED);return}let t=e.map(r=>r.join(":")).join(" ");this.setAttribute(c.MEDIA_BUFFERED,t)}get mediaSeekable(){let e=this.getAttribute(c.MEDIA_SEEKABLE);if(e)return e.split(":").map(t=>+t)}set mediaSeekable(e){if(e==null){this.removeAttribute(c.MEDIA_SEEKABLE);return}this.setAttribute(c.MEDIA_SEEKABLE,e.join(":"))}get mediaSeekableEnd(){var e;let[,t=this.mediaDuration]=(e=this.mediaSeekable)!=null?e:[];return t}get mediaSeekableStart(){var e;let[t=0]=(e=this.mediaSeekable)!=null?e:[];return t}get mediaPreviewImage(){return Y(this,c.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){K(this,c.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewTime(){return ee(this,c.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){re(this,c.MEDIA_PREVIEW_TIME,e)}get mediaEnded(){return F(this,c.MEDIA_ENDED)}set mediaEnded(e){V(this,c.MEDIA_ENDED,e)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var e;let t=this.mediaBuffered;if(!t.length)return;let r;if(this.mediaEnded)r=1;else{let n=this.mediaCurrentTime,[,o=this.mediaSeekableStart]=(e=t.find(([s,l])=>s<=n&&n<=l))!=null?e:[];r=zl(this,o)}let{style:a}=fe(this.shadowRoot,"#buffered");a.setProperty("width",`${r*100}%`)}updateCurrentBox(){if(!this.shadowRoot.querySelector('slot[name="current"]').assignedElements().length)return;let t=fe(this.shadowRoot,"#current-rail"),r=fe(this.shadowRoot,'[part~="current-box"]'),a=St(this,Bl,_u).call(this,ke(this,Nl)),n=St(this,Fl,Eu).call(this,a,this.range.valueAsNumber),o=St(this,Vl,ku).call(this,a,this.range.valueAsNumber);t.style.transform=`translateX(${n})`,t.style.setProperty("--_range-width",`${a.range.width}`),r.style.setProperty("--_box-shift",`${o}`),r.style.setProperty("--_box-width",`${a.box.width}px`),r.style.setProperty("visibility","initial")}handleEvent(e){switch(super.handleEvent(e),e.type){case"input":St(this,fu,dg).call(this);break;case"pointermove":St(this,yu,cg).call(this,e);break;case"pointerup":ke(this,Da)&&Tt(this,Da,!1);break;case"pointerdown":Tt(this,Da,!0);break;case"pointerleave":St(this,go,Wl).call(this,null);break;case"transitionstart":it(e.target,this)&&setTimeout(()=>
vendor: 4,671 bytes, lines 2702-2722
2702ke(this,po).call(this),0);break}}};Ra=new WeakMap;er=new WeakMap;Ul=new WeakMap;ho=new WeakMap;Hl=new WeakMap;Nl=new WeakMap;mo=new WeakMap;vo=new WeakMap;$a=new WeakMap;Da=new WeakMap;po=new WeakMap;vu=new WeakSet;lg=function(){return this.isConnected&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded&&this.mediaSeekableEnd>0&&Is(this)};gu=new WeakMap;Bl=new WeakSet;_u=function(i){var e;let r=((e=this.getAttribute("bounds")?ei(this,`#${this.getAttribute("bounds")}`):this.parentElement)!=null?e:this).getBoundingClientRect(),a=this.range.getBoundingClientRect(),n=i.offsetWidth,o=-(a.left-r.left-n/2),s=r.right-a.left-n/2;return{box:{width:n,min:o,max:s},bounds:r,range:a}};Fl=new WeakSet;Eu=function(i,e){let t=`${e*100}%`,{width:r,min:a,max:n}=i.box;if(!r)return t;if(Number.isNaN(a)||(t=`max(${`calc(1 / var(--_range-width) * 100 * ${a}% + var(--media-box-padding-left))`}, ${t})`),!Number.isNaN(n)){let s=`calc(1 / var(--_range-width) * 100 * ${n}% - var(--media-box-padding-right))`;t=`min(${t}, ${s})`}return t};Vl=new WeakSet;ku=function(i,e){let{width:t,min:r,max:a}=i.box,n=e*i.range.width;if(n<r+ke(this,mo)){let o=i.range.left-i.bounds.left-ke(this,mo);return`${n-t/2+o}px`}if(n>a-ke(this,vo)){let o=i.bounds.right-i.range.right-ke(this,vo);return`${n+t/2-o-i.range.width}px`}return 0};yu=new WeakSet;cg=function(i){let e=[...ke(this,Ul)].some(y=>i.composedPath().includes(y));if(!this.dragging&&(e||!i.composedPath().includes(this))){St(this,go,Wl).call(this,null);return}let t=this.mediaSeekableEnd;if(!t)return;let r=fe(this.shadowRoot,"#preview-rail"),a=fe(this.shadowRoot,'[part~="preview-box"]'),n=St(this,Bl,_u).call(this,ke(this,Hl)),o=(i.clientX-n.range.left)/n.range.width;o=Math.max(0,Math.min(1,o));let s=St(this,Fl,Eu).call(this,n,o),l=St(this,Vl,ku).call(this,n,o);r.style.transform=`translateX(${s})`,r.style.setProperty("--_range-width",`${n.range.width}`),a.style.setProperty("--_box-shift",`${l}`),a.style.setProperty("--_box-width",`${n.box.width}px`);let d=Math.round(ke(this,ho))-Math.round(o*t);Math.abs(d)<1&&o>.01&&o<.99||(Tt(this,ho,o*t),St(this,go,Wl).call(this,ke(this,ho)))};go=new WeakSet;Wl=function(i){this.dispatchEvent(new h.CustomEvent(T.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:i}))};fu=new WeakSet;dg=function(){ke(this,er).stop();let i=ug(this);this.dispatchEvent(new h.CustomEvent(T.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:i}))};yo.shadowRootOptions={mode:"open"};yo.getContainerTemplateHTML=GE;h.customElements.get("media-time-range")||h.customElements.define("media-time-range",yo);var KE=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},pg=(i,e,t)=>(KE(i,e,"read from private field"),t?t.call(i):e.get(i)),YE=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},jl,QE=1,ZE=i=>i.mediaMuted?0:i.mediaVolume,XE=i=>`${Math.round(i*100)}%`,wu=class extends oi{constructor(){super(...arguments),YE(this,jl,()=>{let e=this.range.value,t=new h.CustomEvent(T.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)})}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_VOLUME,c.MEDIA_MUTED,c.MEDIA_VOLUME_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",k("volume")),this.range.addEventListener("input",pg(this,jl))}disconnectedCallback(){this.range.removeEventListener("input",pg(this,jl)),super.disconnectedCallback()}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),(e===c.MEDIA_VOLUME||e===c.MEDIA_MUTED)&&(this.range.valueAsNumber=ZE(this),this.range.setAttribute("aria-valuetext",XE(this.range.valueAsNumber)),this.updateBar())}get mediaVolume(){return ee(this,c.MEDIA_VOLUME,QE)}set mediaVolume(e){re(this,c.MEDIA_VOLUME,e)}get mediaMuted(){return F(this,c.MEDIA_MUTED)}set mediaMuted(e){V(this,c.MEDIA_MUTED,e)}get mediaVolumeUnavailable(){return Y(this,c.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(e){K(this,c.MEDIA_VOLUME_UNAVAILABLE,e)}};jl=new WeakMap;h.customElements.get("media-volume-range")||h.customElements.define("media-volume-range",wu);function JE(i){return`
2703      <style>
2704        :host {
2705          min-width: 4ch;
2706          padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
2707          width: 100%;
2708          display: grid;
2709          grid-template-columns: 1fr auto;
2710          gap: 1rem;
2711          font-weight: var(--media-button-font-weight, normal);
2712        }
2713
2714        #checked-indicator {
2715          display: none;
2716        }
2717
2718        :host([${c.MEDIA_LOOP}]) #checked-indicator {
2719          display: block;
2720        }
2721      </style>
2722      
2723      <span id="icon">
2724     </span>
2725
2726      <div id="checked-indicator">
2727        <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
2728          <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
2729        </svg>
2730      </div>
2731    `}function ek(){return k("Loop")}var fo=class extends de{constructor(){super(...arguments),this.container=null}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_LOOP]}connectedCallback(){var e;super.connectedCallback(),this.container=((e=this.shadowRoot)==null?void 0:e.querySelector("#icon"))||null,this.container&&(this.container.textContent=k("Loop"))}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_LOOP&&this.container&&this.setAttribute("aria-checked",this.mediaLoop?"true":"false")}get mediaLoop(){return F(this,c.MEDIA_LOOP)}set mediaLoop(e){V(this,c.MEDIA_LOOP,e)}handleClick(){let e=!this.mediaLoop,t=new h.CustomEvent(T.MEDIA_LOOP_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}};fo.getSlotTemplateHTML=JE;fo.getTooltipContentHTML=ek;h.customElements.get("media-loop-button")||h.customElements.define("media-loop-button",fo);function hg({anchor:i,floating:e,placement:t}){let r=tk({anchor:i,floating:e}),{x:a,y:n}=rk(r,t);return{x:a,y:n}}function tk({anchor:i,floating:e}){return{anchor:ik(i,e.offsetParent),floating:{x:0,y:0,width:e.offsetWidth,height:e.offsetHeight}}}function ik(i,e){var t;let r=i.getBoundingClientRect(),a=(t=e?.getBoundingClientRect())!=null?t:{x:0,y:0};return{x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}function rk({anchor:i,floating:e},t){let r=ak(t)==="x"?"y":"x",a=r==="y"?"height":"width",n=mg(t),o=i.x+i.width/2-e.width/2,s=i.y+i.height/2-e.height/2,l=i[a]/2-e[a]/2,d;switch(n){case"top":d={x:o,y:i.y-e.height};break;case"bottom":d={x:o,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:s};break;case"left":d={x:i.x-e.width,y:s};break;default:d={x:i.x,y:i.y}}switch(t.split("-")[1]){case"start":d[r]-=l;break;case"end":d[r]+=l;break}return d}function mg(i){return i.split("-")[0]}function ak(i){return["top","bottom"].includes(mg(i))?"y":"x"}var tr=class extends Event{constructor({action:e="auto",relatedTarget:t,...r}){super("invoke",r),this.action=e,this.relatedTarget=t}},ql=class extends Event{constructor({newState:e,oldState:t,...r}){super("toggle",r),this.newState=e,this.oldState=t}};var Pu=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},ue=(i,e,t)=>(Pu(i,e,"read from private field"),t?t.call(i):e.get(i)),ve=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Ct=(i,e,t,r)=>(Pu(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),ge=(i,e,t)=>(Pu(i,e,"access private method"),t),vi,ir,$i,Gl,bo,Nr,ko,xu,vg,Ql,Ou,Zl,Kl,Au,Tu,gg,Su,yg,Cu,fg,Pa,Oa,za,wo,Xl,zu,Iu,bg,Nu,_g,Mu,Eg,Uu,kg,Lu,wg,Ru,xg,_o,Jl,$u,Ag,Eo,ec,Yl,Du;function gi({type:i,text:e,value:t,checked:r}){let a=Ee.createElement("media-chrome-menu-item");a.type=i??"",a.part.add("menu-item"),i&&a.part.add(i),a.value=t,a.checked=r;let n=Ee.createElement("span");return n.textContent=e,a.append(n),a}function qt(i,e){let t=i.querySelector(`:scope > [slot="${e}"]`);if(t?.nodeName=="SLOT"&&(t=t.assignedElements({flatten:!0})[0]),t)return t=t.cloneNode(!0),t;let r=i.shadowRoot.querySelector(`[name="${e}"] > svg`);return r?r.cloneNode(!0):""}function nk(i){return`
2732    <style>
2733      :host {
2734        font: var(--media-font,
2735          var(--media-font-weight, normal)
2736          var(--media-font-size, 14px) /
2737          var(--media-text-content-height, var(--media-control-height, 24px))
2738          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
2739        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
2740        --_menu-bg: rgb(20 20 30 / .8);
2741        background: var(--media-menu-background, var(--media-control-background, var(--media-secondary-color, var(--_menu-bg))));
2742        border-radius: var(--media-menu-border-radius);
2743        border: var(--media-menu-border, none);
2744        display: var(--media-menu-display, inline-flex) !important;
2745        
2746        transition: var(--media-menu-transition-in,
2747          visibility 0s,
2748          opacity .2s ease-out,
2749          transform .15s ease-out,
2750          left .2s ease-in-out,
2751          min-width .2s ease-in-out,
2752          min-height .2s ease-in-out
2753        ) !important;
2754        
2755        visibility: var(--media-menu-visibility, visible);
2756        opacity: var(--media-menu-opacity, 1);
2757        max-height: var(--media-menu-max-height, var(--_menu-max-height, 300px));
2758        transform: var(--media-menu-transform-in, translateY(0) scale(1));
2759        flex-direction: column;
2760        
2761        min-height: 0;
2762        position: relative;
2763        bottom: var(--_menu-bottom);
2764        box-sizing: border-box;
2765      } 
2766
2767      @-moz-document url-prefix() {
2768        :host{
2769          --_menu-bg: rgb(20 20 30);
2770        }
2771      }
2772
2773      :host([hidden]) {
2774        transition: var(--media-menu-transition-out,
2775          visibility .15s ease-in,
2776          opacity .15s ease-in,
2777          transform .15s ease-in
2778        ) !important;
2779        visibility: var(--media-menu-hidden-visibility, hidden);
2780        opacity: var(--media-menu-hidden-opacity, 0);
2781        max-height: var(--media-menu-hidden-max-height,
2782          var(--media-menu-max-height, var(--_menu-max-height, 300px)));
2783        transform: var(--media-menu-transform-out, translateY(2px) scale(.99));
2784        pointer-events: none;
2785      }
2786
2787      :host([slot="submenu"]) {
2788        background: none;
2789        width: 100%;
2790        min-height: 100%;
2791        position: absolute;
2792        bottom: 0;
2793        right: -100%;
2794      }
2795
2796      #container {
2797        display: flex;
2798        flex-direction: column;
2799        min-height: 0;
2800        transition: transform .2s ease-out;
2801        transform: translate(0, 0);
2802      }
2803
2804      #container.has-expanded {
2805        transition: transform .2s ease-in;
2806        transform: translate(-100%, 0);
2807      }
2808
2809      button {
2810        background: none;
2811        color: inherit;
2812        border: none;
2813        padding: 0;
2814        font: inherit;
2815        outline: inherit;
2816        display: inline-flex;
2817        align-items: center;
2818      }
2819
2820      slot[name="header"][hidden] {
2821        display: none;
2822      }
2823
2824      slot[name="header"] > *,
2825      slot[name="header"]::slotted(*) {
2826        padding: .4em .7em;
2827        border-bottom: 1px solid rgb(255 255 255 / .25);
2828        cursor: var(--media-cursor, default);
2829      }
2830
2831      slot[name="header"] > button[part~="back"],
2832      slot[name="header"]::slotted(button[part~="back"]) {
2833        cursor: var(--media-cursor, pointer);
2834      }
2835
2836      svg[part~="back"] {
2837        height: var(--media-menu-icon-height, var(--media-control-height, 24px));
2838        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
2839        display: block;
2840        margin-right: .5ch;
2841      }
2842
2843      slot:not([name]) {
2844        gap: var(--media-menu-gap);
2845        flex-direction: var(--media-menu-flex-direction, column);
2846        overflow: var(--media-menu-overflow, hidden auto);
2847        display: flex;
2848        min-height: 0;
2849      }
2850
2851      :host([role="menu"]) slot:not([name]) {
2852        padding-block: .4em;
2853      }
2854
2855      slot:not([name])::slotted([role="menu"]) {
2856        background: none;
2857      }
2858
2859      media-chrome-menu-item > span {
2860        margin-right: .5ch;
2861        max-width: var(--media-menu-item-max-width);
2862        text-overflow: ellipsis;
2863        overflow: hidden;
2864      }
2865    </style>
2866    <style id="layout-row" media="width:0">
2867
2868      slot[name="header"] > *,
2869      slot[name="header"]::slotted(*) {
2870        padding: .4em .5em;
2871      }
2872
2873      slot:not([name]) {
2874        gap: var(--media-menu-gap, .25em);
2875        flex-direction: var(--media-menu-flex-direction, row);
2876        padding-inline: .5em;
2877      }
2878
2879      media-chrome-menu-item {
2880        padding: .3em .5em;
2881      }
2882
2883      media-chrome-menu-item[aria-checked="true"] {
2884        background: var(--media-menu-item-checked-background, rgb(255 255 255 / .2));
2885      }
2886
2887      
2888      media-chrome-menu-item::part(checked-indicator) {
2889        display: var(--media-menu-item-checked-indicator-display, none);
2890      }
2891    </style>
2892    <div id="container" part="container">
2893      <slot name="header" hidden>
2894        <button part="back button" aria-label="Back to previous menu">
2895          <slot name="back-icon">
2896            <svg aria-hidden="true" viewBox="0 0 20 24" part="back indicator">
2897              <path d="m11.88 17.585.742-.669-4.2-4.665 4.2-4.666-.743-.669-4.803 5.335 4.803 5.334Z"/>
2898            </svg>
2899          </slot>
2900          <slot name="title"></slot>
2901        </button>
2902      </slot>
2903      <slot></slot>
2904    </div>
2905    <slot name="checked-indicator" hidden></slot>
2906  `}var zr={STYLE:"style",HIDDEN:"hidden",DISABLED:"disabled",ANCHOR:"anchor"},Le=class extends h.HTMLElement{constructor(){if(super(),ve(this,xu),ve(this,Ql),ve(this,Kl),ve(this,Tu),ve(this,Su),ve(this,Cu),ve(this,za),ve(this,Xl),ve(this,Iu),ve(this,Nu),ve(this,Mu),ve(this,Uu),ve(this,Lu),ve(this,Ru),ve(this,_o),ve(this,$u),ve(this,Eo),ve(this,Yl),ve(this,vi,null),ve(this,ir,null),ve(this,$i,null),ve(this,Gl,new Set),ve(this,bo,void 0),ve(this,Nr,!1),ve(this,ko,null),ve(this,Zl,()=>{let e=ue(this,Gl),t=new Set(this.items);for(let r of e)t.has(r)||this.dispatchEvent(new CustomEvent("removemenuitem",{detail:r}));for(let r of t)e.has(r)||this.dispatchEvent(new CustomEvent("addmenuitem",{detail:r}));Ct(this,Gl,t)}),ve(this,Pa,()=>
vendor: 13,375 bytes, lines 2906-3020
2906{ge(this,za,wo).call(this),ge(this,Xl,zu).call(this,!1)}),ve(this,Oa,()=>{ge(this,za,wo).call(this)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.container=this.shadowRoot.querySelector("#container"),this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),Ct(this,bo,new MutationObserver(ue(this,Zl)))}static get observedAttributes(){return[zr.DISABLED,zr.HIDDEN,zr.STYLE,zr.ANCHOR,J.MEDIA_CONTROLLER]}static formatMenuItemText(e,t){return e}enable(){this.addEventListener("click",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this),this.addEventListener("invoke",this),this.addEventListener("toggle",this)}disable(){this.removeEventListener("click",this),this.removeEventListener("focusout",this),this.removeEventListener("keyup",this),this.removeEventListener("invoke",this),this.removeEventListener("toggle",this)}handleEvent(e){switch(e.type){case"slotchange":ge(this,xu,vg).call(this,e);break;case"invoke":ge(this,Tu,gg).call(this,e);break;case"click":ge(this,Iu,bg).call(this,e);break;case"toggle":ge(this,Mu,Eg).call(this,e);break;case"focusout":ge(this,Lu,wg).call(this,e);break;case"keydown":ge(this,Ru,xg).call(this,e);break}}connectedCallback(){var e,t;ue(this,bo).observe(this.defaultSlot,{childList:!0}),Ct(this,ko,Rn(this.shadowRoot,":host")),ge(this,Kl,Au).call(this),this.hasAttribute("disabled")||this.enable(),this.role||(this.role="menu"),Ct(this,vi,Ts(this)),(t=(e=ue(this,vi))==null?void 0:e.associateElement)==null||t.call(e,this),this.hidden||(Si(xo(this),ue(this,Pa)),Si(this,ue(this,Oa))),ge(this,Ql,Ou).call(this),this.shadowRoot.addEventListener("slotchange",this)}disconnectedCallback(){var e,t;ue(this,bo).disconnect(),Ci(xo(this),ue(this,Pa)),Ci(this,ue(this,Oa)),this.disable(),(t=(e=ue(this,vi))==null?void 0:e.unassociateElement)==null||t.call(e,this),Ct(this,vi,null),Ct(this,ir,null),Ct(this,$i,null),this.shadowRoot.removeEventListener("slotchange",this)}attributeChangedCallback(e,t,r){var a,n,o,s;e===zr.HIDDEN&&r!==t?(ue(this,Nr)||Ct(this,Nr,!0),this.hidden?ge(this,Cu,fg).call(this):ge(this,Su,yg).call(this),this.dispatchEvent(new ql({oldState:this.hidden?"open":"closed",newState:this.hidden?"closed":"open",bubbles:!0}))):e===J.MEDIA_CONTROLLER?(t&&((n=(a=ue(this,vi))==null?void 0:a.unassociateElement)==null||n.call(a,this),Ct(this,vi,null)),r&&this.isConnected&&(Ct(this,vi,Ts(this)),(s=(o=ue(this,vi))==null?void 0:o.associateElement)==null||s.call(o,this))):e===zr.DISABLED&&r!==t?r==null?this.enable():this.disable():e===zr.STYLE&&r!==t&&ge(this,Kl,Au).call(this)}formatMenuItemText(e,t){return this.constructor.formatMenuItemText(e,t)}get anchor(){return this.getAttribute("anchor")}set anchor(e){this.setAttribute("anchor",`${e}`)}get anchorElement(){var e;return this.anchor?(e=wr(this))==null?void 0:e.querySelector(`#${this.anchor}`):null}get items(){return this.defaultSlot.assignedElements({flatten:!0}).filter(ok)}get radioGroupItems(){return this.items.filter(e=>e.role==="menuitemradio")}get checkedItems(){return this.items.filter(e=>e.checked)}get value(){var e,t;return(t=(e=this.checkedItems[0])==null?void 0:e.value)!=null?t:""}set value(e){let t=this.items.find(r=>r.value===e);t&&ge(this,Yl,Du).call(this,t)}focus(){if(Ct(this,ir,Ln()),this.items.length){ge(this,Eo,ec).call(this,this.items[0]),this.items[0].focus();return}let e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');e?.focus()}handleSelect(e){var t;let r=ge(this,_o,Jl).call(this,e);r&&(ge(this,Yl,Du).call(this,r,r.type==="checkbox"),ue(this,$i)&&!this.hidden&&((t=ue(this,ir))==null||t.focus(),this.hidden=!0))}get keysUsed(){return["Enter","Escape","Tab"," ","ArrowDown","ArrowUp","Home","End"]}handleMove(e){var t,r;let{key:a}=e,n=this.items,o=(r=(t=ge(this,_o,Jl).call(this,e))!=null?t:ge(this,$u,Ag).call(this))!=null?r:n[0],s=n.indexOf(o),l=Math.max(0,s);a==="ArrowDown"?l++:a==="ArrowUp"?l--:e.key==="Home"?l=0:e.key==="End"&&(l=n.length-1),l<0&&(l=n.length-1),l>n.length-1&&(l=0),ge(this,Eo,ec).call(this,n[l]),n[l].focus()}};vi=new WeakMap;ir=new WeakMap;$i=new WeakMap;Gl=new WeakMap;bo=new WeakMap;Nr=new WeakMap;ko=new WeakMap;xu=new WeakSet;vg=function(i){let e=i.target;for(let t of e.assignedNodes({flatten:!0}))t.nodeType===3&&t.textContent.trim()===""&&t.remove();["header","title"].includes(e.name)&&ge(this,Ql,Ou).call(this),e.name||ue(this,Zl).call(this)};Ql=new WeakSet;Ou=function(){let i=this.shadowRoot.querySelector('slot[name="header"]'),e=this.shadowRoot.querySelector('slot[name="title"]');i.hidden=e.assignedNodes().length===0&&i.assignedNodes().length===0};Zl=new WeakMap;Kl=new WeakSet;Au=function(){var i;let e=this.shadowRoot.querySelector("#layout-row"),t=(i=getComputedStyle(this).getPropertyValue("--media-menu-layout"))==null?void 0:i.trim();e.setAttribute("media",t==="row"?"":"width:0")};Tu=new WeakSet;gg=function(i){Ct(this,$i,i.relatedTarget),it(this,i.relatedTarget)||(this.hidden=!this.hidden)};Su=new WeakSet;yg=function(){var i;(i=ue(this,$i))==null||i.setAttribute("aria-expanded","true"),this.addEventListener("transitionend",()=>this.focus(),{once:!0}),Si(xo(this),ue(this,Pa)),Si(this,ue(this,Oa))};Cu=new WeakSet;fg=function(){var i;(i=ue(this,$i))==null||i.setAttribute("aria-expanded","false"),Ci(xo(this),ue(this,Pa)),Ci(this,ue(this,Oa))};Pa=new WeakMap;Oa=new WeakMap;za=new WeakSet;wo=function(i){if(this.hasAttribute("mediacontroller")&&!this.anchor||this.hidden||!this.anchorElement)return;let{x:e,y:t}=hg({anchor:this.anchorElement,floating:this,placement:"top-start"});i??(i=this.offsetWidth);let a=xo(this).getBoundingClientRect(),n=a.width-e-i,o=a.height-t-this.offsetHeight,{style:s}=ue(this,ko);s.setProperty("position","absolute"),s.setProperty("right",`${Math.max(0,n)}px`),s.setProperty("--_menu-bottom",`${o}px`);let l=getComputedStyle(this),y=s.getPropertyValue("--_menu-bottom")===l.bottom?o:parseFloat(l.bottom),p=a.height-y-parseFloat(l.marginBottom);this.style.setProperty("--_menu-max-height",`${p}px`)};Xl=new WeakSet;zu=function(i){let e=this.querySelector('[role="menuitem"][aria-haspopup][aria-expanded="true"]'),t=e?.querySelector('[role="menu"]'),{style:r}=ue(this,ko);if(i||r.setProperty("--media-menu-transition-in","none"),t){let a=t.offsetHeight,n=Math.max(t.offsetWidth,e.offsetWidth);this.style.setProperty("min-width",`${n}px`),this.style.setProperty("min-height",`${a}px`),ge(this,za,wo).call(this,n)}else this.style.removeProperty("min-width"),this.style.removeProperty("min-height"),ge(this,za,wo).call(this);r.removeProperty("--media-menu-transition-in")};Iu=new WeakSet;bg=function(i){var e;if(i.stopPropagation(),i.composedPath().includes(ue(this,Nu,_g))){(e=ue(this,ir))==null||e.focus(),this.hidden=!0;return}let t=ge(this,_o,Jl).call(this,i);!t||t.hasAttribute("disabled")||(ge(this,Eo,ec).call(this,t),this.handleSelect(i))};Nu=new WeakSet;_g=function(){var i;return(i=this.shadowRoot.querySelector('slot[name="header"]').assignedElements({flatten:!0}))==null?void 0:i.find(t=>t.matches('button[part~="back"]'))};Mu=new WeakSet;Eg=function(i){if(i.target===this)return;ge(this,Uu,kg).call(this);let e=Array.from(this.querySelectorAll('[role="menuitem"][aria-haspopup]'));for(let t of e)t.invokeTargetElement!=i.target&&i.newState=="open"&&t.getAttribute("aria-expanded")=="true"&&!t.invokeTargetElement.hidden&&t.invokeTargetElement.dispatchEvent(new tr({relatedTarget:t}));for(let t of e)t.setAttribute("aria-expanded",`${!t.submenuElement.hidden}`);ge(this,Xl,zu).call(this,!0)};Uu=new WeakSet;kg=function(){let e=this.querySelector('[role="menuitem"] > [role="menu"]:not([hidden])');this.container.classList.toggle("has-expanded",!!e)};Lu=new WeakSet;wg=function(i){var e;it(this,i.relatedTarget)||(ue(this,Nr)&&((e=ue(this,ir))==null||e.focus()),ue(this,$i)&&ue(this,$i)!==i.relatedTarget&&!this.hidden&&(this.hidden=!0))};Ru=new WeakSet;xg=function(i){var e,t,r,a,n;let{key:o,ctrlKey:s,altKey:l,metaKey:d}=i;if(!(s||l||d)&&this.keysUsed.includes(o))if(i.preventDefault(),i.stopPropagation(),o==="Tab"){if(ue(this,Nr)){this.hidden=!0;return}i.shiftKey?(t=(e=this.previousElementSibling)==null?void 0:e.focus)==null||t.call(e):(a=(r=this.nextElementSibling)==null?void 0:r.focus)==null||a.call(r),this.blur()}else o==="Escape"?((n=ue(this,ir))==null||n.focus(),ue(this,Nr)&&(this.hidden=!0)):o==="Enter"||o===" "?this.handleSelect(i):this.handleMove(i)};_o=new WeakSet;Jl=function(i){return i.composedPath().find(e=>["menuitemradio","menuitemcheckbox"].includes(e.role))};$u=new WeakSet;Ag=function(){return this.items.find(i=>i.tabIndex===0)};Eo=new WeakSet;ec=function(i){for(let e of this.items)e.tabIndex=e===i?0:-1};Yl=new WeakSet;Du=function(i,e){let t=[...this.checkedItems];i.type==="radio"&&this.radioGroupItems.forEach(r=>r.checked=!1),e?i.checked=!i.checked:i.checked=!0,this.checkedItems.some((r,a)=>r!=t[a])&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))};Le.shadowRootOptions={mode:"open"};Le.getTemplateHTML=nk;function ok(i){return["menuitem","menuitemradio","menuitemcheckbox"].includes(i?.role)}function xo(i){var e;return(e=i.getAttribute("bounds")?ei(i,`#${i.getAttribute("bounds")}`):ye(i)||i.parentElement)!=null?e:i}h.customElements.get("media-chrome-menu")||h.customElements.define("media-chrome-menu",Le);var ju=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},at=(i,e,t)=>(ju(i,e,"read from private field"),t?t.call(i):e.get(i)),Di=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Hu=(i,e,t,r)=>(ju(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Ua=(i,e,t)=>(ju(i,e,"access private method"),t),tc,To,Bu,Tg,rc,qu,Gu,Sg,yi,Na,Fu,ic,Vu;function sk(i){return`
2907    <style>
2908      :host {
2909        transition: var(--media-menu-item-transition,
2910          background .15s linear,
2911          opacity .2s ease-in-out
2912        );
2913        outline: var(--media-menu-item-outline, 0);
2914        outline-offset: var(--media-menu-item-outline-offset, -1px);
2915        cursor: var(--media-cursor, pointer);
2916        display: flex;
2917        align-items: center;
2918        align-self: stretch;
2919        justify-self: stretch;
2920        white-space: nowrap;
2921        white-space-collapse: collapse;
2922        text-wrap: nowrap;
2923        padding: .4em .8em .4em 1em;
2924      }
2925
2926      :host(:focus-visible) {
2927        box-shadow: var(--media-menu-item-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
2928        outline: var(--media-menu-item-hover-outline, 0);
2929        outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
2930      }
2931
2932      :host(:hover) {
2933        cursor: var(--media-cursor, pointer);
2934        background: var(--media-menu-item-hover-background, rgb(92 92 102 / .5));
2935        outline: var(--media-menu-item-hover-outline);
2936        outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
2937      }
2938
2939      :host([aria-checked="true"]) {
2940        background: var(--media-menu-item-checked-background);
2941      }
2942
2943      :host([hidden]) {
2944        display: none;
2945      }
2946
2947      :host([disabled]) {
2948        pointer-events: none;
2949        color: rgba(255, 255, 255, .3);
2950      }
2951
2952      slot:not([name]) {
2953        width: 100%;
2954      }
2955
2956      slot:not([name="submenu"]) {
2957        display: inline-flex;
2958        align-items: center;
2959        transition: inherit;
2960        opacity: var(--media-menu-item-opacity, 1);
2961      }
2962
2963      slot[name="description"] {
2964        justify-content: end;
2965      }
2966
2967      slot[name="description"] > span {
2968        display: inline-block;
2969        margin-inline: 1em .2em;
2970        max-width: var(--media-menu-item-description-max-width, 100px);
2971        text-overflow: ellipsis;
2972        overflow: hidden;
2973        font-size: .8em;
2974        font-weight: 400;
2975        text-align: right;
2976        position: relative;
2977        top: .04em;
2978      }
2979
2980      slot[name="checked-indicator"] {
2981        display: none;
2982      }
2983
2984      :host(:is([role="menuitemradio"],[role="menuitemcheckbox"])) slot[name="checked-indicator"] {
2985        display: var(--media-menu-item-checked-indicator-display, inline-block);
2986      }
2987
2988      
2989      svg, img, ::slotted(svg), ::slotted(img) {
2990        height: var(--media-menu-item-icon-height, var(--media-control-height, 24px));
2991        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
2992        display: block;
2993      }
2994
2995      
2996      [part~="indicator"],
2997      ::slotted([part~="indicator"]) {
2998        fill: var(--media-menu-item-indicator-fill,
2999          var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))));
3000        height: var(--media-menu-item-indicator-height, 1.25em);
3001        margin-right: .5ch;
3002      }
3003
3004      [part~="checked-indicator"] {
3005        visibility: hidden;
3006      }
3007
3008      :host([aria-checked="true"]) [part~="checked-indicator"] {
3009        visibility: visible;
3010      }
3011    </style>
3012    <slot name="checked-indicator">
3013      <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
3014        <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
3015      </svg>
3016    </slot>
3017    <slot name="prefix"></slot>
3018    <slot></slot>
3019    <slot name="description"></slot>
3020    <slot name="suffix">
3021      ${this.getSuffixSlotInnerHTML(i)}
3022    </slot>
3023    <slot name="submenu"></slot>
3024  `}function lk(i){return""}var It={TYPE:"type",VALUE:"value",CHECKED:"checked",DISABLED:"disabled"},bt=class extends h.HTMLElement{constructor(){if(super(),Di(this,Bu),Di(this,rc),Di(this,Gu),Di(this,ic),Di(this,tc,!1),Di(this,To,void 0),Di(this,yi,()=>{var e,t;this.submenuElement.items&&this.setAttribute("submenusize",`${this.submenuElement.items.length}`);let r=this.shadowRoot.querySelector('slot[name="description"]'),a=(e=this.submenuElement.checkedItems)==null?void 0:e[0],n=(t=a?.dataset.description)!=null?t:a?.text,o=Ee.createElement("span");o.textContent=n??"",r.replaceChildren(o)}),Di(this,Na,e=>{let{key:t}=e;if(!this.keysUsed.includes(t)){this.removeEventListener("keyup",at(this,Na));return}this.handleClick(e)}),Di(this,Fu,e=>{let{metaKey:t,altKey:r,key:a}=e;if(t||r||!this.keysUsed.includes(a)){this.removeEventListener("keyup",at(this,Na));return}this.addEventListener("keyup",at(this,Na),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=_e(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[It.TYPE,It.DISABLED,It.CHECKED,It.VALUE]}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),Ao(this)&&!this.hasAttribute("aria-checked")&&this.setAttribute("aria-checked","false"),this.addEventListener("click",this),this.addEventListener("keydown",this)}disable(){this.removeAttribute("tabindex"),this.removeEventListener("click",this),this.removeEventListener("keydown",this),this.removeEventListener("keyup",this)}handleEvent(e){switch(e.type){case"slotchange":Ua(this,Bu,Tg).call(this,e);break;case"click":this.handleClick(e);break;case"keydown":at(this,Fu).call(this,e);break;case"keyup":at(this,Na).call(this,e);break}}attributeChangedCallback(e,t,r){e===It.CHECKED&&Ao(this)&&!at(this,tc)?this.setAttribute("aria-checked",r!=null?"true":"false"):e===It.TYPE&&r!==t?this.role="menuitem"+r:e===It.DISABLED&&r!==t&&(r==null?this.enable():this.disable())}connectedCallback(){this.hasAttribute(It.DISABLED)||this.enable(),this.role="menuitem"+this.type,Hu(this,To,Wu(this,this.parentNode)),Ua(this,ic,Vu).call(this),this.submenuElement&&Ua(this,rc,qu).call(this),this.shadowRoot.addEventListener("slotchange",this)}disconnectedCallback(){this.disable(),Ua(this,ic,Vu).call(this),Hu(this,To,null),this.shadowRoot.removeEventListener("slotchange",this)}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?(e=wr(this))==null?void 0:e.querySelector(`#${this.invokeTarget}`):this.submenuElement}get submenuElement(){return this.shadowRoot.querySelector('slot[name="submenu"]').assignedElements({flatten:!0})[0]}get type(){var e;return(e=this.getAttribute(It.TYPE))!=null?e:""}set type(e){this.setAttribute(It.TYPE,`${e}`)}get value(){var e;return(e=this.getAttribute(It.VALUE))!=null?e:this.text}set value(e){this.setAttribute(It.VALUE,e)}get text(){var e;return((e=this.textContent)!=null?e:"").trim()}get checked(){if(Ao(this))return this.getAttribute("aria-checked")==="true"}set checked(e){Ao(this)&&(Hu(this,tc,!0),this.setAttribute("aria-checked",e?"true":"false"),e?this.part.add("checked"):this.part.remove("checked"))}handleClick(e){Ao(this)||this.invokeTargetElement&&it(this,e.target)&&this.invokeTargetElement.dispatchEvent(new tr({relatedTarget:this}))}get keysUsed(){return["Enter"," "]}};tc=new WeakMap;To=new WeakMap;Bu=new WeakSet;Tg=function(i){let e=i.target;if(!e?.name)for(let r of e.assignedNodes({flatten:!0}))r instanceof Text&&r.textContent.trim()===""&&r.remove();e.name==="submenu"&&(this.submenuElement?Ua(this,rc,qu).call(this):Ua(this,Gu,Sg).call(this))};rc=new WeakSet;qu=async function(){this.setAttribute("aria-haspopup","menu"),this.setAttribute("aria-expanded",`${!this.submenuElement.hidden}`),this.submenuElement.addEventListener("change",at(this,yi)),this.submenuElement.addEventListener("addmenuitem",at(this,yi)),this.submenuElement.addEventListener("removemenuitem",at(this,yi)),at(this,yi).call(this)};Gu=new WeakSet;Sg=function(){this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.submenuElement.removeEventListener("change",at(this,yi)),this.submenuElement.removeEventListener("addmenuitem",at(this,yi)),this.submenuElement.removeEventListener("removemenuitem",at(this,yi)),at(this,yi).call(this)};yi=new WeakMap;Na=new WeakMap;Fu=new WeakMap;ic=new WeakSet;Vu=function(){var i;let e=(i=at(this,To))==null?void 0:i.radioGroupItems;if(!e)return;let t=e.filter(r=>r.getAttribute("aria-checked")==="true").pop();t||(t=e[0]);
vendor: 12,034 bytes, lines 3024-3102
3024for(let r of e)r.setAttribute("aria-checked","false");t?.setAttribute("aria-checked","true")};bt.shadowRootOptions={mode:"open"};bt.getTemplateHTML=sk;bt.getSuffixSlotInnerHTML=lk;function Ao(i){return i.type==="radio"||i.type==="checkbox"}function Wu(i,e){if(!i)return null;let{host:t}=i.getRootNode();return!e&&t?Wu(i,t):e?.items?e:Wu(e,e?.parentNode)}h.customElements.get("media-chrome-menu-item")||h.customElements.define("media-chrome-menu-item",bt);function ck(i){return`
3025    ${Le.getTemplateHTML(i)}
3026    <style>
3027      :host {
3028        --_menu-bg: rgb(20 20 30 / .8);
3029        background: var(--media-settings-menu-background,
3030            var(--media-menu-background,
3031              var(--media-control-background,
3032                var(--media-secondary-color, var(--_menu-bg)))));
3033        min-width: var(--media-settings-menu-min-width, 170px);
3034        border-radius: 2px 2px 0 0;
3035        overflow: hidden;
3036      }
3037
3038      @-moz-document url-prefix() {
3039        :host{
3040          --_menu-bg: rgb(20 20 30);
3041        }
3042      }
3043
3044      :host([role="menu"]) {
3045        
3046        justify-content: end;
3047      }
3048
3049      slot:not([name]) {
3050        justify-content: var(--media-settings-menu-justify-content);
3051        flex-direction: var(--media-settings-menu-flex-direction, column);
3052        overflow: visible;
3053      }
3054
3055      #container.has-expanded {
3056        --media-settings-menu-item-opacity: 0;
3057      }
3058    </style>
3059  `}var So=class extends Le{get anchorElement(){return this.anchor!=="auto"?super.anchorElement:ye(this).querySelector("media-settings-menu-button")}};So.getTemplateHTML=ck;h.customElements.get("media-settings-menu")||h.customElements.define("media-settings-menu",So);function dk(i){return`
3060    ${bt.getTemplateHTML.call(this,i)}
3061    <style>
3062      slot:not([name="submenu"]) {
3063        opacity: var(--media-settings-menu-item-opacity, var(--media-menu-item-opacity));
3064      }
3065
3066      :host([aria-expanded="true"]:hover) {
3067        background: transparent;
3068      }
3069    </style>
3070  `}function uk(i){return`
3071    <svg aria-hidden="true" viewBox="0 0 20 24">
3072      <path d="m8.12 17.585-.742-.669 4.2-4.665-4.2-4.666.743-.669 4.803 5.335-4.803 5.334Z"/>
3073    </svg>
3074  `}var Ur=class extends bt{};Ur.shadowRootOptions={mode:"open"};Ur.getTemplateHTML=dk;Ur.getSuffixSlotInnerHTML=uk;h.customElements.get("media-settings-menu-item")||h.customElements.define("media-settings-menu-item",Ur);var dt=class extends de{connectedCallback(){super.connectedCallback(),this.invokeTargetElement&&this.setAttribute("aria-haspopup","menu")}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?(e=wr(this))==null?void 0:e.querySelector(`#${this.invokeTarget}`):null}handleClick(){var e;(e=this.invokeTargetElement)==null||e.dispatchEvent(new tr({relatedTarget:this}))}};h.customElements.get("media-chrome-menu-button")||h.customElements.define("media-chrome-menu-button",dt);function pk(){return`
3075    <style>
3076      :host([aria-expanded="true"]) slot[name=tooltip] {
3077        display: none;
3078      }
3079    </style>
3080    <slot name="icon">
3081      <svg aria-hidden="true" viewBox="0 0 24 24">
3082        <path d="M4.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/>
3083      </svg>
3084    </slot>
3085  `}function hk(){return k("Settings")}var Ha=class extends dt{static get observedAttributes(){return[...super.observedAttributes,"target"]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",k("settings"))}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:ye(this).querySelector("media-settings-menu")}};Ha.getSlotTemplateHTML=pk;Ha.getTooltipContentHTML=hk;h.customElements.get("media-settings-menu-button")||h.customElements.define("media-settings-menu-button",Ha);var Zu=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Cg=(i,e,t)=>(Zu(i,e,"read from private field"),t?t.call(i):e.get(i)),ac=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Ku=(i,e,t,r)=>(Zu(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),nc=(i,e,t)=>(Zu(i,e,"access private method"),t),Co,lc,oc,Yu,sc,Qu,cc=class extends Le{constructor(){super(...arguments),ac(this,oc),ac(this,sc),ac(this,Co,[]),ac(this,lc,void 0)}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_AUDIO_TRACK_LIST,c.MEDIA_AUDIO_TRACK_ENABLED,c.MEDIA_AUDIO_TRACK_UNAVAILABLE]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_AUDIO_TRACK_ENABLED&&t!==r?this.value=r:e===c.MEDIA_AUDIO_TRACK_LIST&&t!==r&&(Ku(this,Co,Pm(r??"")),nc(this,oc,Yu).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",nc(this,sc,Qu))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",nc(this,sc,Qu))}get anchorElement(){var e;return this.anchor!=="auto"?super.anchorElement:(e=ye(this))==null?void 0:e.querySelector("media-audio-track-menu-button")}get mediaAudioTrackList(){return Cg(this,Co)}set mediaAudioTrackList(e){Ku(this,Co,e),nc(this,oc,Yu).call(this)}get mediaAudioTrackEnabled(){var e;return(e=Y(this,c.MEDIA_AUDIO_TRACK_ENABLED))!=null?e:""}set mediaAudioTrackEnabled(e){K(this,c.MEDIA_AUDIO_TRACK_ENABLED,e)}};Co=new WeakMap;lc=new WeakMap;oc=new WeakSet;Yu=function(){if(Cg(this,lc)===JSON.stringify(this.mediaAudioTrackList))return;Ku(this,lc,JSON.stringify(this.mediaAudioTrackList));let i=this.mediaAudioTrackList;this.defaultSlot.textContent="",i.sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}));for(let e of i){let t=this.formatMenuItemText(e.label,e),r=gi({type:"radio",text:t,value:`${e.id}`,checked:e.enabled});r.prepend(qt(this,"checked-indicator")),this.defaultSlot.append(r)}};sc=new WeakSet;Qu=function(){if(this.value==null)return;let i=new h.CustomEvent(T.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(i)};h.customElements.get("media-audio-track-menu")||h.customElements.define("media-audio-track-menu",cc);var mk=`<svg aria-hidden="true" viewBox="0 0 24 24">
3086  <path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>
3087  <path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/>
3088</svg>`;function vk(){return`
3089    <style>
3090      :host([aria-expanded="true"]) slot[name=tooltip] {
3091        display: none;
3092      }
3093    </style>
3094    <slot name="icon">${mk}</slot>
3095  `}function gk(){return k("Audio")}var Ig=i=>{let e=k("Audio");i.setAttribute("aria-label",e)},Ba=class extends dt{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_AUDIO_TRACK_ENABLED,c.MEDIA_AUDIO_TRACK_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),Ig(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_LANG&&Ig(this)}get invokeTargetElement(){var e;return this.invokeTarget!=null?super.invokeTargetElement:(e=ye(this))==null?void 0:e.querySelector("media-audio-track-menu")}get mediaAudioTrackEnabled(){var e;return(e=Y(this,c.MEDIA_AUDIO_TRACK_ENABLED))!=null?e:""}set mediaAudioTrackEnabled(e){K(this,c.MEDIA_AUDIO_TRACK_ENABLED,e)}};Ba.getSlotTemplateHTML=vk;Ba.getTooltipContentHTML=gk;h.customElements.get("media-audio-track-menu-button")||h.customElements.define("media-audio-track-menu-button",Ba);var tp=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},yk=(i,e,t)=>(tp(i,e,"read from private field"),t?t.call(i):e.get(i)),Xu=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},fk=(i,e,t,r)=>(tp(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),dc=(i,e,t)=>(tp(i,e,"access private method"),t),hc,uc,Ju,pc,ep,bk=`
3096  <svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator">
3097    <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
3098  </svg>`;function _k(i){return`
3099    ${Le.getTemplateHTML(i)}
3100    <slot name="captions-indicator" hidden>${bk}</slot>
3101  `}var Io=class extends Le{constructor(){super(...arguments),Xu(this,uc),Xu(this,pc),Xu(this,hc,void 0)}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_SUBTITLES_LIST,c.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_SUBTITLES_LIST&&t!==r?dc(this,uc,Ju).call(this):e===c.MEDIA_SUBTITLES_SHOWING&&t!==r&&(this.value=r||"",dc(this,uc,Ju).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",dc(this,pc,ep))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",dc(this,pc,ep))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:ye(this).querySelector("media-captions-menu-button")}get mediaSubtitlesList(){return Mg(this,c.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){Lg(this,c.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return Mg(this,c.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){Lg(this,c.MEDIA_SUBTITLES_SHOWING,e)}};hc=new WeakMap;uc=new WeakSet;Ju=function(){var i;let e=yk(this,hc)!==JSON.stringify(this.mediaSubtitlesList),t=this.value!==this.getAttribute(c.MEDIA_SUBTITLES_SHOWING);if(!e&&!t)return;fk(this,hc,JSON.stringify(this.mediaSubtitlesList)),this.defaultSlot.textContent="";let r=!this.value,a=gi({type:"radio",text:this.formatMenuItemText(k("Off")),value:"off",checked:r});a.prepend(qt(this,"checked-indicator")),this.defaultSlot.append(a);let n=this.mediaSubtitlesList;for(let o of n){let s=gi({type:"radio",text:this.formatMenuItemText(o.label,o),value:Us(o),checked:this.value==Us(o)});s.prepend(qt(this,"checked-indicator")),((i=o.kind)!=null?i:"subs")==="captions"&&s.append(qt(this,"captions-indicator")),this.defaultSlot.append(s)}};pc=new WeakSet;ep=function(){let i=this.mediaSubtitlesShowing,e=this.getAttribute(c.MEDIA_SUBTITLES_SHOWING),t=this.value!==e;if(i?.length&&t&&this.dispatchEvent(new h.CustomEvent(T.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:i})),!this.value||!t)return;let r=new h.CustomEvent(T.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(r)};Io.getTemplateHTML=_k;var Mg=(i,e)=>{let t=i.getAttribute(e);return t?Tr(t):[]},Lg=(i,e,t)=>{if(!t?.length){i.removeAttribute(e);return}let r=Mi(t);i.getAttribute(e)!==r&&i.setAttribute(e,r)};h.customElements.get("media-captions-menu")||h.customElements.define("media-captions-menu",Io);var Ek=`<svg aria-hidden="true" viewBox="0 0 26 24">
3102  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 
31020 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
3103</svg>`,kk=`<svg aria-hidden="true" viewBox="0 0 26 24">
3104  <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
3105</svg>`;function wk(){return`
3106    <style>
3107      :host([data-captions-enabled="true"]) slot[name=off] {
3108        display: none !important;
3109      }
3110
3111      
3112      :host(:not([data-captions-enabled="true"])) slot[name=on] {
3113        display: none !important;
3114      }
3115
3116      :host([aria-expanded="true"]) slot[name=tooltip] {
3117        display: none;
3118      }
3119    </style>
3120
3121    <slot name="icon">
3122      <slot name="on">${Ek}</slot>
3123      <slot name="off">${kk}</slot>
3124    </slot>
3125  `}function xk(){return k("Captions")}var Rg=i=>{i.setAttribute("data-captions-enabled",Hs(i).toString())},$g=i=>{i.setAttribute("aria-label",k("closed captions"))},Fa=class extends dt{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_SUBTITLES_LIST,c.MEDIA_SUBTITLES_SHOWING,c.MEDIA_LANG]}connectedCallback(){super.connectedCallback(),$g(this),Rg(this)}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_SUBTITLES_SHOWING?Rg(this):e===c.MEDIA_LANG&&$g(this)}get invokeTargetElement(){var e;return this.invokeTarget!=null?super.invokeTargetElement:(e=ye(this))==null?void 0:e.querySelector("media-captions-menu")}get mediaSubtitlesList(){return Dg(this,c.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){Pg(this,c.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return Dg(this,c.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){Pg(this,c.MEDIA_SUBTITLES_SHOWING,e)}};Fa.getSlotTemplateHTML=wk;Fa.getTooltipContentHTML=xk;var Dg=(i,e)=>{let t=i.getAttribute(e);return t?Tr(t):[]},Pg=(i,e,t)=>{if(!t?.length){i.removeAttribute(e);return}let r=Mi(t);i.getAttribute(e)!==r&&i.setAttribute(e,r)};h.customElements.get("media-captions-menu-button")||h.customElements.define("media-captions-menu-button",Fa);var Og=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Wa=(i,e,t)=>(Og(i,e,"read from private field"),t?t.call(i):e.get(i)),ip=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Va=(i,e,t)=>(Og(i,e,"access private method"),t),rr,ja,Mo,mc,ap,rp={RATES:"rates"},vc=class extends Le{constructor(){super(),ip(this,ja),ip(this,mc),ip(this,rr,new qi(this,rp.RATES,{defaultValue:au})),Va(this,ja,Mo).call(this)}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_PLAYBACK_RATE,rp.RATES]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e===c.MEDIA_PLAYBACK_RATE&&t!=r?(this.value=r,Va(this,ja,Mo).call(this)):e===rp.RATES&&t!=r&&(Wa(this,rr).value=r,Va(this,ja,Mo).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",Va(this,mc,ap))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",Va(this,mc,ap))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:ye(this).querySelector("media-playback-rate-menu-button")}get rates(){return Wa(this,rr)}set rates(e){e?Array.isArray(e)?Wa(this,rr).value=e.join(" "):typeof e=="string"&&(Wa(this,rr).value=e):Wa(this,rr).value="",Va(this,ja,Mo).call(this)}get mediaPlaybackRate(){return ee(this,c.MEDIA_PLAYBACK_RATE,Dr)}set mediaPlaybackRate(e){re(this,c.MEDIA_PLAYBACK_RATE,e)}};rr=new WeakMap;ja=new WeakSet;Mo=function(){this.defaultSlot.textContent="";let i=di(this.mediaPlaybackRate),e=new Set(Array.from(Wa(this,rr)).map(r=>di(Number(r))));i>0&&!e.has(i)&&e.add(i);let t=Array.from(e).sort((r,a)=>r-a);for(let r of t){let a=gi({type:"radio",text:this.formatMenuItemText(`${r}x`,r),value:r.toString(),checked:i===r});a.prepend(qt(this,"checked-indicator")),this.defaultSlot.append(a)}};mc=new WeakSet;ap=function(){if(!this.value)return;let i=new h.CustomEvent(T.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(i)};h.customElements.get("media-playback-rate-menu")||h.customElements.define("media-playback-rate-menu",vc);var gc=1;function Ak(i){return`
3126    <style>
3127      :host {
3128        min-width: 5ch;
3129        padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
3130      }
3131
3132      :host([aria-expanded="true"]) slot {
3133        display: block;
3134      }
3135
3136      :host([aria-expanded="true"]) slot[name=tooltip] {
3137        display: none;
3138      }
3139    </style>
3140    <slot name="icon">${i.mediaplaybackrate?di(+i.mediaplaybackrate):gc}x</slot>
3141  `}function Tk(){return k("Playback rate")}var qa=class extends dt{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_PLAYBACK_RATE]}constructor(){var e;super(),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${di((e=this.mediaPlaybackRate)!=null?e:gc)}x`}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e===c.MEDIA_PLAYBACK_RATE){let a=r?+r:Number.NaN,n=di(Number.isNaN(a)?gc:a);this.container.innerHTML=`${n}x`,this.setAttribute("aria-label",k("Playback rate {playbackRate}",{playbackRate:n}))}}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:ye(this).querySelector("media-playback-rate-menu")}get mediaPlaybackRate(){return ee(this,c.MEDIA_PLAYBACK_RATE,gc)}set mediaPlaybackRate(e){re(this,c.MEDIA_PLAYBACK_RATE,e)}};qa.getSlotTemplateHTML=Ak;qa.getTooltipContentHTML=Tk;h.customElements.get("media-playback-rate-menu-button")||h.customElements.define("media-playback-rate-menu-button",qa);var op=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},Pi=(i,e,t)=>(op(i,e,"read from private field"),t?t.call(i):e.get(i)),yc=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},zg=(i,e,t,r)=>(op(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Ga=(i,e,t)=>(op(i,e,"access private method"),t),Lo,fi,Ka,Ro,fc,np,bc=class extends Le{constructor(){super(...arguments),yc(this,Ka),yc(this,fc),yc(this,Lo,[]),yc(this,fi,{})}static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_RENDITION_LIST,c.MEDIA_RENDITION_SELECTED,c.MEDIA_RENDITION_UNAVAILABLE,c.MEDIA_HEIGHT,c.MEDIA_WIDTH]}static formatMenuItemText(e,t){return super.formatMenuItemText(e,t)}static formatRendition(e,{showBitrate:t=!1}={}){let r=`${Math.min(e.width,e.height)}p`;if(t&&e.bitrate){let a=e.bitrate/1e6,n=`${a.toFixed(a<1?1:0)} Mbps`;return`${r} (${n})`}return this.formatMenuItemText(r,e)}static compareRendition(e,t){var r,a;return t.height===e.height?((r=t.bitrate)!=null?r:0)-((a=e.bitrate)!=null?a:0):t.height-e.height}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),t!==r)switch(e){case c.MEDIA_RENDITION_SELECTED:this.value=r??"auto",Ga(this,Ka,Ro).call(this);break;case c.MEDIA_RENDITION_LIST:zg(this,Lo,$m(r)),Ga(this,Ka,Ro).call(this);break;case c.MEDIA_HEIGHT:case c.MEDIA_WIDTH:Ga(this,Ka,Ro).call(this);break}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",Ga(this,fc,np))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",Ga(this,fc,np))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:ye(this).querySelector("media-rendition-menu-button")}get mediaRenditionList(){return Pi(this,Lo)}set mediaRenditionList(e){zg(this,Lo,e),Ga(this,Ka,Ro).call(this)}get mediaRenditionSelected(){return Y(this,c.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){K(this,c.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return ee(this,c.MEDIA_HEIGHT)}set mediaHeight(e){re(this,c.MEDIA_HEIGHT,e)}get mediaWidth(){return ee(this,c.MEDIA_WIDTH)}set mediaWidth(e){re(this,c.MEDIA_WIDTH,e)}compareRendition(e,t){return this.constructor.compareRendition(e,t)}formatMenuItemText(e,t){return this.constructor.formatMenuItemText(e,t)}formatRendition(e,t){return this.constructor.formatRendition(e,t)}showRenditionBitrate(e){return this.mediaRenditionList.some(t=>t!==e&&t.height===e.height&&t.bitrate!==e.bitrate)}};Lo=new WeakMap;fi=new WeakMap;Ka=new WeakSet;Ro=function(){let i=!this.mediaRenditionSelected;if(Pi(this,fi).mediaRenditionList===JSON.stringify(this.mediaRenditionList)&&Pi(this,fi).mediaHeight===this.mediaHeight&&Pi(this,fi).mediaWidth===this.mediaWidth&&Pi(this,fi).isAuto===i)return;Pi(this,fi).mediaRenditionList=JSON.stringify(this.mediaRenditionList),Pi(this,fi).mediaHeight=this.mediaHeight,Pi(this,fi).mediaWidth=this.mediaWidth,Pi(this,fi).isAuto=i;let e=this.mediaRenditionList.sort(this.compareRendition.bind(this)),t=e.find(o=>o.id===this.mediaRenditionSelected);for(let o of e)o.selected=o===t;this.defaultSlot.textContent="";for(let o of e){let s=this.formatRendition(o,{showBitrate:this.showRenditionBitrate(o)}),l=gi({type:"radio",text:s,value:`${o.id}`,checked:o.selected&&!i});
vendor: 4,391 bytes, lines 3141-3164
3141l.prepend(qt(this,"checked-indicator")),this.defaultSlot.append(l)}let r=t&&this.showRenditionBitrate(t),a;i&&(t?a=this.formatMenuItemText(`${k("Auto")} \u2022 ${this.formatRendition(t,{showBitrate:r})}`,t):this.mediaHeight>0&&this.mediaWidth>0&&(a=this.formatMenuItemText(`${k("Auto")} (${Math.min(this.mediaWidth,this.mediaHeight)}p)`))),a||(a=this.formatMenuItemText(k("Auto")));let n=gi({type:"radio",text:a,value:"auto",checked:i});n.dataset.description=a,n.prepend(qt(this,"checked-indicator")),this.defaultSlot.append(n)};fc=new WeakSet;np=function(){if(this.value==null)return;let i=new h.CustomEvent(T.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(i)};h.customElements.get("media-rendition-menu")||h.customElements.define("media-rendition-menu",bc);var Sk=`<svg aria-hidden="true" viewBox="0 0 24 24">
3142  <path d="M13.5 2.5h2v6h-2v-2h-11v-2h11v-2Zm4 2h4v2h-4v-2Zm-12 4h2v6h-2v-2h-3v-2h3v-2Zm4 2h12v2h-12v-2Zm1 4h2v6h-2v-2h-8v-2h8v-2Zm4 2h7v2h-7v-2Z" />
3143</svg>`;function Ck(){return`
3144    <style>
3145      :host([aria-expanded="true"]) slot[name=tooltip] {
3146        display: none;
3147      }
3148    </style>
3149    <slot name="icon">${Sk}</slot>
3150  `}function Ik(){return k("Quality")}var Ya=class extends dt{static get observedAttributes(){return[...super.observedAttributes,c.MEDIA_RENDITION_SELECTED,c.MEDIA_RENDITION_UNAVAILABLE,c.MEDIA_HEIGHT]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",k("quality"))}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:ye(this).querySelector("media-rendition-menu")}get mediaRenditionSelected(){return Y(this,c.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){K(this,c.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return ee(this,c.MEDIA_HEIGHT)}set mediaHeight(e){re(this,c.MEDIA_HEIGHT,e)}};Ya.getSlotTemplateHTML=Ck;Ya.getTooltipContentHTML=Ik;h.customElements.get("media-rendition-menu-button")||h.customElements.define("media-rendition-menu-button",Ya);var cp=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)},_i=(i,e,t)=>(cp(i,e,"read from private field"),t?t.call(i):e.get(i)),bi=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},Ng=(i,e,t,r)=>(cp(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Mt=(i,e,t)=>(cp(i,e,"access private method"),t),Za,$o,Ac,Hr,Qa,dp,Ug,_c,sp,Ec,lp,Hg,wc,xc,kc;function Mk(i){return`
3151      ${Le.getTemplateHTML(i)}
3152      <style>
3153        :host {
3154          --_menu-bg: rgb(20 20 30 / .8);
3155          background: var(--media-settings-menu-background,
3156            var(--media-menu-background,
3157              var(--media-control-background,
3158                var(--media-secondary-color, var(--_menu-bg)))));
3159          min-width: var(--media-settings-menu-min-width, 170px);
3160          border-radius: 2px;
3161          overflow: hidden;
3162        }
3163      </style>
3164    `}var Do=class extends Le{constructor(){super(),bi(this,$o),bi(this,Hr),bi(this,dp),bi(this,_c),bi(this,lp),bi(this,Za,!1),bi(this,Ec,e=>{let t=e.target,r=t?.nodeName==="VIDEO",a=Mt(this,_c,sp).call(this,t);(r||a)&&(_i(this,Za)?Mt(this,Hr,Qa).call(this):Mt(this,lp,Hg).call(this,e))}),bi(this,wc,e=>{let t=e.target,r=this.contains(t),a=e.button===2,n=t?.nodeName==="VIDEO",o=Mt(this,_c,sp).call(this,t);r||a&&(n||o)||Mt(this,Hr,Qa).call(this)}),bi(this,xc,e=>{e.key==="Escape"&&Mt(this,Hr,Qa).call(this)}),bi(this,kc,e=>{var t,r;let a=e.target;if((t=a.matches)!=null&&t.call(a,'button[invoke="copy"]')){let n=(r=a.closest("media-context-menu-item"))==null?void 0:r.querySelector('input[slot="copy"]');n&&navigator.clipboard.writeText(n.value)}Mt(this,Hr,Qa).call(this)}),this.setAttribute("noautohide",""),Mt(this,$o,Ac).call(this)}connectedCallback(){super.connectedCallback(),ye(this).addEventListener("contextmenu",_i(this,Ec)),this.addEventListener("click",_i(this,kc))}disconnectedCallback(){super.disconnectedCallback(),ye(this).removeEventListener("contextmenu",_i(this,Ec)),this.removeEventListener("click",_i(this,kc)),document.removeEventListener("mousedown",_i(this,wc)),document.removeEventListener("keydown",_i(this,xc))}};Za=new WeakMap;$o=new WeakSet;Ac=function(){this.hidden=!_i(this,Za)};Hr=new WeakSet;Qa=function(){Ng(this,Za,!1),Mt(this,$o,Ac).call(this)};dp=new WeakSet;Ug=function(){document.querySelectorAll("media-context-menu").forEach(e
3164=>{var t;e!==this&&Mt(t=e,Hr,Qa).call(t)})};_c=new WeakSet;sp=function(i){return i?i.hasAttribute("slot")&&i.getAttribute("slot")==="media"?!0:i.nodeName.includes("-")&&i.tagName.includes("-")?i.hasAttribute("src")||i.hasAttribute("poster")||i.hasAttribute("preload")||i.hasAttribute("playsinline"):!1:!1};Ec=new WeakMap;lp=new WeakSet;Hg=function(i){i.preventDefault(),Mt(this,dp,Ug).call(this),Ng(this,Za,!0),this.style.position="fixed",this.style.left=`${i.clientX}px`,this.style.top=`${i.clientY}px`,Mt(this,$o,Ac).call(this),document.addEventListener("mousedown",_i(this,wc),{once:!0}),document.addEventListener("keydown",_i(this,xc),{once:!0})};wc=new WeakMap;xc=new WeakMap;kc=new WeakMap;Do.getTemplateHTML=Mk;h.customElements.get("media-context-menu")||h.customElements.define("media-context-menu",Do);function Lk(i){return`
3165    ${bt.getTemplateHTML.call(this,i)}
3166    <style>
3167        ::slotted(*) {
3168            color: var(--media-text-color, white);
3169            text-decoration: none;
3170            border: none;
3171            background: none;
3172            cursor: pointer;
3173            padding: 0;
3174            min-height: var(--media-control-height, 24px);
3175        }
3176    </style>
3177  `}var Xa=class extends bt{};Xa.shadowRootOptions={mode:"open"};Xa.getTemplateHTML=Lk;h.customElements.get("media-context-menu-item")||h.customElements.define("media-context-menu-item",Xa);function Tc(i){return class extends i{constructor(){super(...arguments);Ye(this,"_playedRanges",[]);Ye(this,"_currentPlayedRange",null);Ye(this,"_RANGE_EPSILON",.5);Ye(this,"_seeking",!1)}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this.addEventListener("play",()=>this.onPlaybackStart({time:this.currentTime})),this.addEventListener("pause",()=>this.onPlaybackStop({time:this.currentTime})),this.addEventListener("ended",()=>this.onPlaybackStop({time:this.currentTime})),this.addEventListener("seeking",()=>this.onSeeking()),this.addEventListener("seeked",()=>this.onSeeked({time:this.currentTime}))}onPlaybackStart(r={}){this._seeking=!1;let{time:a}=r,n=typeof a=="number"?a:this.currentTime;this._currentPlayedRange||(this._currentPlayedRange={start:n,end:n})}onSeeking(){this._seeking=!0,this._commitCurrentRange()}onSeeked(r={}){this._seeking=!1;let{time:a}=r,n=typeof a=="number"?a:this.currentTime;this._currentPlayedRange={start:n,end:n}}onPlaybackStop(r={}){let{time:a}=r,n=typeof a=="number"?a:this.currentTime;this._commitCurrentRange(n)}_commitCurrentRange(r){if(!this._currentPlayedRange)return;typeof r=="number"&&(this._currentPlayedRange.end=r);let{start:a,end:n}=this._currentPlayedRange;this._currentPlayedRange=null,this.addPlayedRange(a,n)}addPlayedRange(r,a){if(r>=a)return;let n=this._RANGE_EPSILON,o=[...this._playedRanges,{start:r,end:a}];o.sort((l,d)=>l.start-d.start);let s=[];for(let l of o){if(!s.length){s.push({...l});continue}let d=s[s.length-1];l.start<=d.end+n?(d.start=Math.min(d.start,l.start),d.end=Math.max(d.end,l.end)):s.push({...l})}this._playedRanges=s}get played(){let r=this.currentTime;return!this.paused&&!this._currentPlayedRange&&typeof r=="number"&&(this._currentPlayedRange={start:r,end:r}),this._currentPlayedRange&&typeof r=="number"&&(r>this._currentPlayedRange.end&&(this._currentPlayedRange.end=r),this.addPlayedRange(this._currentPlayedRange.start,this._currentPlayedRange.end)),this._playedRanges.length?Bg(this._playedRanges.map(a=>[a.start,a.end])):Bg([[0,0]])}}}function Bg(i){return Object.defineProperties(i,{start:{value:e=>i[e][0]},end:{value:e=>i[e][1]}}),i}var Rk="https://www.youtube.com/embed",$k="https://www.youtube-nocookie.com/embed",Dk="https://www.youtube.com/iframe_api",Pk="YT",Ok="onYouTubeIframeAPIReady",Fg=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,zk=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function Nk(i){if(!i)return;let e=i.match(/[?&]t=([\dms]+)/i);if(!e)return;let t=e[1].toLowerCase(),r=0,a=!1,n=t.match(/(\d+)m/);n&&(r+=parseInt(n[1],10)*60,a=!0);let o=t.match(/(\d+)s?$/);return o&&(r+=parseInt(o[1],10),a=!0),a?r:void 0}function Vg(i,e={}){var t;let r={src:jg(i,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return(t=e.config)!=null&&t.referrerpolicy&&(r.referrerpolicy=e.config.referrerpolicy),e.config&&(r["data-config"]=JSON.stringify(e.config)),`
3178    <style>
3179      :host {
3180        display: inline-block;
3181        line-height: 0;
3182        position: relative;
3183        min-width: 300px;
3184        min-height: 150px;
3185      }
3186      iframe {
3187        position: absolute;
3188        top: 0;
3189        left: 0;
3190      }
3191    </style>
3192    <iframe${Uk(r)}></iframe>
3193  `}
3193function jg(i,e){if(!i.src)return;let t=i.src.includes("-nocookie")?$k:Rk,r={controls:i.controls===""?null:0,autoplay:i.autoplay,loop:i.loop,mute:i.muted,playsinline:i.playsinline,preload:i.preload??"metadata",enablejsapi:1,cc_load_policy:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,start:Nk(i.src),...e.config};if(Fg.test(i.src)){let s=i.src.match(Fg),l=s&&s[1];return`${t}/${l}?${Wg(r)}`}let a=i.src.match(zk),o={listType:"playlist",list:a&&a[1],...r};return`${t}?${Wg(o)}`}var en,tn,ar,nr,Oi,Oo,rn,Br,or,Sc,qg,Ja=class extends Tc(globalThis.HTMLElement??class{}){constructor(){super();ce(this,Sc);Ye(this,"loadComplete",new Po);ce(this,en);ce(this,tn);ce(this,ar,0);ce(this,nr,!1);ce(this,Oi);Ye(this,"isLoaded",!1);ce(this,Oo,null);ce(this,rn,null);ce(this,Br,null);ce(this,or,1);hn(this,Sc,qg).call(this,"config")}get config(){return B(this,rn)}set config(t){D(this,rn,t)}async load(){if(B(this,en))return;this.shadowRoot||this.attachShadow({mode:"open"});let t=!B(this,tn);B(this,tn)&&(this.loadComplete=new Po,this.isLoaded=!1),D(this,tn,!0),await D(this,en,Promise.resolve()),D(this,en,null),D(this,ar,0),this.dispatchEvent(new Event("emptied"));let r=this.api;if(this.api=null,!this.src){r?.destroy();return}D(this,Br,document.createElement("video")),this.textTracks=B(this,Br).textTracks,this.textTracks.addEventListener("change",()=>{var p;let g=Array.from(this.textTracks).find(v=>v.mode==="showing");(p=this.api)==null||p.setOption("captions","track",g?{languageCode:g.language}:{})}),this.dispatchEvent(new Event("loadstart"));let a=this.shadowRoot.querySelector("iframe"),n=Bk(this.attributes);t&&a&&D(this,rn,JSON.parse(a.getAttribute("data-config")||"{}")),(!a?.src||a.src!==jg(n,this))&&(this.shadowRoot.innerHTML=Vg(n,this),a=this.shadowRoot.querySelector("iframe"));let o=await Fk(Dk,Pk,Ok);this.api=new o.Player(a,{events:{onReady:()=>{var p;D(this,ar,1),this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),B(this,or)!==1&&((p=this.api)==null||p.setVolume(B(this,or)*100)),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:p=>{console.error(p),D(this,Oo,{code:p.data,message:`YouTube iframe player error #${p.data}; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.`}),this.dispatchEvent(new Event("error"))}}});let s=!1;this.api.addEventListener("onStateChange",p=>{var g;let v=p.data;if((v===o.PlayerState.PLAYING||v===o.PlayerState.BUFFERING)&&(s||(s=!0,this.dispatchEvent(new Event("play"))),(this.api.getOption("captions","tracklist")||[]).forEach(b=>{[...this.textTracks].some(x=>x.language===b.languageCode)||B(this,Br).addTextTrack("subtitles",b.displayName,b.languageCode),this.textTracks=B(this,Br).textTracks}),this.dispatchEvent(new Event("loadstart"))),v===o.PlayerState.PLAYING)this.seeking&&(D(this,nr,!1),(g=B(this,Oi))==null||g.resolve(),this.dispatchEvent(new Event("seeked"))),D(this,ar,3),this.dispatchEvent(new Event("playing"));else if(v===o.PlayerState.PAUSED){let f=Math.abs(this.currentTime-l);!this.seeking&&f>.1&&(D(this,nr,!0),this.dispatchEvent(new Event("seeking"))),s=!1,this.dispatchEvent(new Event("pause"))}v===o.PlayerState.ENDED&&(s=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())}),this.api.addEventListener("onPlaybackRateChange",()=>{this.dispatchEvent(new Event("ratechange"))}),this.api.addEventListener("onVolumeChange",()=>{var p;let g=((p=this.api)==null?void 0:p.getVolume())/100;D(this,or,g),this.dispatchEvent(new Event("volumechange"))}),this.api.addEventListener("onVideoProgress",()=>{this.dispatchEvent(new Event("timeupdate"))}),await this.loadComplete;let l=0;setInterval(()=>{var p;let g=Math.abs(this.currentTime-l),v=this.buffered.end(this.buffered.length-1);this.seeking&&v>.1?(D(this,nr,!1),(p=B(this,Oi))==null||p.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&g>.1&&(D(this,nr,!0),this.dispatchEvent(new Event("seeking"))),l=this.currentTime},50);let d,y=setInterval(()=>{let p=this.buffered.end(this.buffered.length-1);p>=this.duration&&(clearInterval(y),D(this,ar,4)),d!=p&&(d=p,this.dispatchEvent(new Event("progress")))},100)}async attributeChangedCallback(t,r,a){if(r!==a)switch(t){case"src":case"auto
3193play":case"controls":case"loop":case"playsinline":this.load()}}async play(){var t;return D(this,Oi,null),await this.loadComplete,(t=this.api)==null||t.playVideo(),jk(this)}async pause(){var t;return await this.loadComplete,(t=this.api)==null?void 0:t.pauseVideo()}get seeking(){return B(this,nr)}get readyState(){return B(this,ar)}get src(){return this.getAttribute("src")}set src(t){this.src!=t&&this.setAttribute("src",t)}get error(){return B(this,Oo)}get paused(){var t,r;return this.isLoaded?[-1,0,2,5].includes((r=(t=this.api)==null?void 0:t.getPlayerState)==null?void 0:r.call(t)):!this.autoplay}get duration(){var t,r;return((r=(t=this.api)==null?void 0:t.getDuration)==null?void 0:r.call(t))??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(t){this.autoplay!=t&&this.toggleAttribute("autoplay",!!t)}get buffered(){var t,r;if(!this.isLoaded)return hp();let a=((t=this.api)==null?void 0:t.getVideoLoadedFraction())*((r=this.api)==null?void 0:r.getDuration());return a>0?hp(0,a):hp()}get controls(){return this.hasAttribute("controls")}set controls(t){this.controls!=t&&this.toggleAttribute("controls",!!t)}get currentTime(){var t,r;return((r=(t=this.api)==null?void 0:t.getCurrentTime)==null?void 0:r.call(t))??0}set currentTime(t){this.currentTime!=t&&(D(this,Oi,new Po),this.loadComplete.then(()=>{var r,a;(r=this.api)==null||r.seekTo(t,!0),this.paused&&((a=B(this,Oi))==null||a.then(()=>{var n;B(this,Oi)&&((n=this.api)==null||n.pauseVideo())}))}))}set defaultMuted(t){this.defaultMuted!=t&&this.toggleAttribute("muted",!!t)}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}set muted(t){this.muted!=t&&this.loadComplete.then(()=>{var r,a;t?(r=this.api)==null||r.mute():(a=this.api)==null||a.unMute()})}get muted(){var t,r;return this.isLoaded?(r=(t=this.api)==null?void 0:t.isMuted)==null?void 0:r.call(t):this.defaultMuted}get playbackRate(){var t,r;return((r=(t=this.api)==null?void 0:t.getPlaybackRate)==null?void 0:r.call(t))??1}set playbackRate(t){this.playbackRate!=t&&this.loadComplete.then(()=>{var r;(r=this.api)==null||r.setPlaybackRate(t)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(t){this.playsInline!=t&&this.toggleAttribute("playsinline",!!t)}get poster(){return this.getAttribute("poster")}set poster(t){this.poster!=t&&this.setAttribute("poster",`${t}`)}set volume(t){this.volume!=t&&(D(this,or,t),this.loadComplete.then(()=>{var r;(r=this.api)==null||r.setVolume(t*100)}))}get volume(){var t;return this.isLoaded?((t=this.api)==null?void 0:t.getVolume())/100:B(this,or)}};en=new WeakMap,tn=new WeakMap,ar=new WeakMap,nr=new WeakMap,Oi=new WeakMap,Oo=new WeakMap,rn=new WeakMap,Br=new WeakMap,or=new WeakMap,Sc=new WeakSet,qg=function(t){if(Object.prototype.hasOwnProperty.call(this,t)){let r=this[t];delete this[t],this[t]=r}},Ye(Ja,"getTemplateHTML",Vg),Ye(Ja,"shadowRootOptions",{mode:"open"}),Ye(Ja,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);function Uk(i){let e="";for(let t in i){let r=i[t];r===""?e+=` ${up(t)}`:e+=` ${up(t)}="${up(`${r}`)}"`}return e}function up(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}function Wg(i){return String(new URLSearchParams(Hk(i)))}function Hk(i){let e={};for(let t in i){let r=i[t];r===!0||r===""?e[t]=1:r===!1?e[t]=0:r!=null&&(e[t]=r)}return e}function Bk(i){let e={};for(let t of i)e[t.name]=t.value;return e}var pp={};async function Fk(i,e,t){return pp[i]?pp[i]:e&&self[e]?(await Vk(0),self[e]):pp[i]=new Promise(function(r,a){let n=document.createElement("script");n.src=i;let o=()=>r(self[e]);t&&(self[t]=o),n.onload=()=>!t&&o(),n.onerror=a,document.head.append(n)})}var Vk=i=>new Promise(e=>setTimeout(e,i));function Wk(i){return(...e)=>new Promise(t=>{i(...e,(...r)=>{r.length>1?t(r):t(r[0])})})}function jk(i){return Wk((e,t)=>{let r;i.addEventListener(e,r=()=>{i.removeEventListener(e,r),t()})})("playing")}var Po=class extends Promise{constructor(e=()=>{}){let t,r;super((a,n)=>
3193{e(a,n),t=a,r=n}),this.resolve=t,this.reject=r}};function hp(i,e){return Array.isArray(i)?mp(i):i==null||e==null||i===0&&e===0?mp([[0,0]]):mp([[i,e]])}function mp(i){return Object.defineProperties(i,{start:{value:e=>i[e][0]},end:{value:e=>i[e][1]}}),i}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",Ja);function Gg(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),t.push.apply(t,r)}return t}function Kg(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Gg(Object(t),!0).forEach(function(r){Cc(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Gg(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function nt(){nt=function(){return i};var i={},e=Object.prototype,t=e.hasOwnProperty,r=Object.defineProperty||function(A,w,L){A[w]=L.value},a=typeof Symbol=="function"?Symbol:{},n=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(A,w,L){return Object.defineProperty(A,w,{value:L,enumerable:!0,configurable:!0,writable:!0}),A[w]}try{l({},"")}catch{l=function(w,L,q){return w[L]=q}}function d(A,w,L,q){var N=w&&w.prototype instanceof g?w:g,se=Object.create(N.prototype),le=new Ae(q||[]);return r(se,"_invoke",{value:H(A,L,le)}),se}function y(A,w,L){try{return{type:"normal",arg:A.call(w,L)}}catch(q){return{type:"throw",arg:q}}}i.wrap=d;var p={};function g(){}function v(){}function f(){}var b={};l(b,n,function(){return this});var x=Object.getPrototypeOf,S=x&&x(x(te([])));S&&S!==e&&t.call(S,n)&&(b=S);var I=f.prototype=g.prototype=Object.create(b);function R(A){["next","throw","return"].forEach(function(w){l(A,w,function(L){return this._invoke(w,L)})})}function O(A,w){function L(N,se,le,Ce){var Re=y(A[N],A,se);if(Re.type!=="throw"){var _t=Re.arg,Rt=_t.value;return Rt&&typeof Rt=="object"&&t.call(Rt,"__await")?w.resolve(Rt.__await).then(function(Gt){L("next",Gt,le,Ce)},function(Gt){L("throw",Gt,le,Ce)}):w.resolve(Rt).then(function(Gt){_t.value=Gt,le(_t)},function(Gt){return L("throw",Gt,le,Ce)})}Ce(Re.arg)}var q;r(this,"_invoke",{value:function(N,se){function le(){return new w(function(Ce,Re){L(N,se,Ce,Re)})}return q=q?q.then(le,le):le()}})}function H(A,w,L){var q="suspendedStart";return function(N,se){if(q==="executing")throw new Error("Generator is already running");if(q==="completed"){if(N==="throw")throw se;return Ie()}for(L.method=N,L.arg=se;;){var le=L.delegate;if(le){var Ce=j(le,L);if(Ce){if(Ce===p)continue;return Ce}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(q==="suspendedStart")throw q="completed",L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);q="executing";var Re=y(A,w,L);if(Re.type==="normal"){if(q=L.done?"completed":"suspendedYield",Re.arg===p)continue;return{value:Re.arg,done:L.done}}Re.type==="throw"&&(q="completed",L.method="throw",L.arg=Re.arg)}}}function j(A,w){var L=w.method,q=A.iterator[L];if(q===void 0)return w.delegate=null,L==="throw"&&A.iterator.return&&(w.method="return",w.arg=void 0,j(A,w),w.method==="throw")||L!=="return"&&(w.method="throw",w.arg=new TypeError("The iterator does not provide a '"+L+"' method")),p;var N=y(q,A.iterator,w.arg);if(N.type==="throw")return w.method="throw",w.arg=N.arg,w.delegate=null,p;var se=N.arg;return se?se.done?(w[A.resultName]=se.value,w.next=A.nextLoc,w.method!=="return"&&(w.method="next",w.arg=void 0),w.delegate=null,p):se:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,p)}function ae(A){var w={tryLoc:A[0]};1 in A&&(w.catchLoc=A[1]),2 in A&&(w.finallyLoc=A[2],w.afterLoc=A[3]),this.tryEntries.push(w)}function U(A){var w=A.completion||{};w.type="normal",delete w.arg,A.completion=w}function Ae(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(ae,this),this.reset(!0)}function te(A){if(A){var w=A[n];if(w)return w.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var L=-1,q=function N(){for(;++L<A.length;)if(t.call(A,L))return N.value=A[L],N.done=!1,N;return N.value=void 0,N.done=!0,N};return q.next=q}}return{next:Ie}}function Ie(){return{value:void 0,done:!0}}return v.prototype=f,r(I,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:v,configurable:!0}),v.displayName=l(f,s,"GeneratorFunction"),i.isGeneratorFunction=function(A){var w=typeof A=="function"&&A.constructor;return!!w&&(w===v||(w.displayName||w.name)==="GeneratorFunction")},i.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,f):(A.__proto__=f,l(A,s,"GeneratorFunction")),A.prototype=Object.create(I),A},i.awrap=function(A){return{__await:A}},R(O.prototype),l(O.prototype,o,function(){return this}),i.AsyncIterator=O,i.async=function(A,w,L,q,N){N===void 0&&(N=Promise);var se=new O(d(A,w,L,q),N);return i.isGeneratorFunction(w)?se:se.next().then(function(le){return le.done?le.value:se.next()})},R(I),l(I,s,"Generator"),l(I,n,function(){return this}),l(I,"toString",function(){return"[object Generator]"}),i.keys=function(A){var w=Object(A),L=[];for(var q in w)L.push(q);return L.reverse(),function N(){for(;L.length;){var se=L.pop();if(se in w)return N.value=se,N.done=!1,N}return N.done=!0,N}},i.values=te,Ae.prototype={constructor:Ae,reset:function(A){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
3193h(U),!A)for(var w in this)w.charAt(0)==="t"&&t.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=void 0)},stop:function(){this.done=!0;var A=this.tryEntries[0].completion;if(A.type==="throw")throw A.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var w=this;function L(Re,_t){return se.type="throw",se.arg=A,w.next=Re,_t&&(w.method="next",w.arg=void 0),!!_t}for(var q=this.tryEntries.length-1;q>=0;--q){var N=this.tryEntries[q],se=N.completion;if(N.tryLoc==="root")return L("end");if(N.tryLoc<=this.prev){var le=t.call(N,"catchLoc"),Ce=t.call(N,"finallyLoc");if(le&&Ce){if(this.prev<N.catchLoc)return L(N.catchLoc,!0);if(this.prev<N.finallyLoc)return L(N.finallyLoc)}else if(le){if(this.prev<N.catchLoc)return L(N.catchLoc,!0)}else{if(!Ce)throw new Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return L(N.finallyLoc)}}}},abrupt:function(A,w){for(var L=this.tryEntries.length-1;L>=0;--L){var q=this.tryEntries[L];if(q.tryLoc<=this.prev&&t.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var N=q;break}}N&&(A==="break"||A==="continue")&&N.tryLoc<=w&&w<=N.finallyLoc&&(N=null);var se=N?N.completion:{};return se.type=A,se.arg=w,N?(this.method="next",this.next=N.finallyLoc,p):this.complete(se)},complete:function(A,w){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&w&&(this.next=w),p},finish:function(A){for(var w=this.tryEntries.length-1;w>=0;--w){var L=this.tryEntries[w];if(L.finallyLoc===A)return this.complete(L.completion,L.afterLoc),U(L),p}},catch:function(A){for(var w=this.tryEntries.length-1;w>=0;--w){var L=this.tryEntries[w];if(L.tryLoc===A){var q=L.completion;if(q.type==="throw"){var N=q.arg;U(L)}return N}}throw new Error("illegal catch attempt")},delegateYield:function(A,w,L){return this.delegate={iterator:te(A),resultName:w,nextLoc:L},this.method==="next"&&(this.arg=void 0),p}},i}function Yg(i,e,t,r,a,n,o){try{var s=i[n](o),l=s.value}catch(d){t(d);return}s.done?e(l):Promise.resolve(l).then(r,a)}function Vr(i){return function(){var e=this,t=arguments;return new Promise(function(r,a){var n=i.apply(e,t);function o(l){Yg(n,r,a,o,s,"next",l)}function s(l){Yg(n,r,a,o,s,"throw",l)}o(void 0)})}}function Jg(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function Qg(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,iy(r.key),r)}}function ey(i,e,t){return e&&Qg(i.prototype,e),t&&Qg(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}function Cc(i,e,t){return e=iy(e),e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function qk(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Uo(i,e)}function No(i){return No=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},No(i)}function Uo(i,e){return Uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Uo(i,e)}function ty(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ic(i,e,t){return ty()?Ic=Reflect.construct.bind():Ic=function(a,n,o){var s=[null];s.push.apply(s,n);var l=Function.bind.apply(a,s),d=new l;return o&&Uo(d,o.prototype),d},Ic.apply(null,arguments)}function Gk(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function gp(i){var e=typeof Map=="function"?new Map:void 0;return gp=function(r){if(r===null||!Gk(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return Ic(r,arguments,No(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Uo(a,r)},gp(i)}function Mc(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Kk(i,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mc(i)}function Yk(i){var e=ty();return function(){var r=No(i),a;if(e){var n=No(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Kk(this,a)}}function Qk(i,e){if(typeof i!="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function iy(i){var e=Qk(i,"string");return typeof e=="symbol"?e:String(e)}var ry=typeof global<"u"&&{}.toString.call(global)==="[object global]";function Zg(i,e){return i.indexOf(e.toLowerCase())===0?i:"".concat(e.toLowerCase()).concat(i.substr(0,1).toUpperCase()).concat(i.substr(1))}function Zk(i){return!!(i&&i.nodeType===1&&"nodeName"in i&&i.ownerDocument&&i.ownerDocument.defaultView)}function Xk(i){return!isNaN(parseFloat(i))&&isFinite(i)&&Math.floor(i)==i}function Wr(i){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(i)}function ay(i){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return e.test(i)}function Jk(i){for(var e=(i||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),t=(e&&e[1]||"").replace("player.",""),r=[".videoji.hk",".vimeo.work",".videoji.cn"],a=0,n=r;a<n.length;a++){var o=n[a];if(t.endsWith(o))return t}return"vimeo.com"}function ny(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=i.id,t=i.url,r=e||t;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(Xk(r))return"https://vimeo.com/".concat(r);if(Wr(r))return r.replace("http:","https:");throw e?new TypeError("\u201C".concat(e,"\u201D is not a valid video id.")):new TypeError("\u201C".concat(r,"\u201D is not a vimeo.com url."))}var Xg=function(e,t,r){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",o=typeof t=="string"?[t]:t;return o.forEach(function(s){e[a](s,r)}),{cancel:function(){return o.forEach(function(l){return e[n](l,r)})}}},ew=typeof Array.prototype.indexOf<"u",tw=typeof window<"u"&&typeof window.postMessage<"u";if(!ry&&(!ew||!tw))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function iw(i,e){return e={exports:{}},i(e,e.exports),e.exports}(function(i){if(i.WeakMap)return;var e=Object.prototype.hasOwnProperty,t=Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}})(),r=function(n,o,s){t?Object.defineProperty(n,o,{configurable:!0,writable:!0,value:s}):n[o]=s};i.WeakMap=(function(){function n(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",s("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}r(n.prototype,"delete",function(d){if(o(this,"delete"),!a(d))return!1;var y=d[this._id];return y&&y[0]===d?(delete d[this._id],!0):!1}),r(n.prototype,"get",function(d){if(o(this,"get"),!!a(d)){var y=d[this._id];if(y&&y[0]===d)return y[1]}}),r(n.prototype,"has",function(d){if(o(this,"has"),!a(d))return!1;var y=d[this._id];return!!(y&&y[0]===d)}),r(n.prototype,"set",function(d,y){if(o(this,"set"),!a(d))throw new TypeError("Invalid value used as weak map key");var p=d[this._id];return p&&p[0]===d?(p[1]=y,this):(r(d,this._id,[d,y]),this)});function o(d,y){if(!a(d)||!e.call(d,"_id"))throw new TypeError(y+" method called on incompatible receiver "+typeof d)}function s(d){return d+"_"+l()+"."+l()}function l(){return Math.random().toString().substring(2)}return r(n,"_polyfill",!0),n})();function a(n){return Object(n)===n}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:nn);var Lt=iw(function(i){(function(t,r,a){r[t]=r[t]||a(),i.exports&&(i.exports=r[t])})("Promise",nn,function(){var t,r,a,n=Object.prototype.toString,o=typeof setImmediate<"u"?function(R){return setImmediate(R)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(R,O,H,j){return Object.defineProperty(R,O,{value:H,writable:!0,configurable:j!==!1})}}catch{t=function(O,H,j){return O[H]=j,O}}a=(function(){var R,O,H;function j(ae,U){this.fn=ae,this.self=U,this.next=void 0}return{add:function(U,Ae){H=new j(U,Ae),O?O.next=H:R=H,O=H,H=void 0},drain:function(){var U=R;for(R=O=r=void 0;U;)U.fn.call(U.self),U=U.next}}})();function s(I,R){a.add(I,R),r||(r=o(a.drain))}
3193function l(I){var R,O=typeof I;return I!=null&&(O=="object"||O=="function")&&(R=I.then),typeof R=="function"?R:!1}function d(){for(var I=0;I<this.chain.length;I++)y(this,this.state===1?this.chain[I].success:this.chain[I].failure,this.chain[I]);this.chain.length=0}function y(I,R,O){var H,j;try{R===!1?O.reject(I.msg):(R===!0?H=I.msg:H=R.call(void 0,I.msg),H===O.promise?O.reject(TypeError("Promise-chain cycle")):(j=l(H))?j.call(H,O.resolve,O.reject):O.resolve(H))}catch(ae){O.reject(ae)}}function p(I){var R,O=this;if(!O.triggered){O.triggered=!0,O.def&&(O=O.def);try{(R=l(I))?s(function(){var H=new f(O);try{R.call(I,function(){p.apply(H,arguments)},function(){g.apply(H,arguments)})}catch(j){g.call(H,j)}}):(O.msg=I,O.state=1,O.chain.length>0&&s(d,O))}catch(H){g.call(new f(O),H)}}}function g(I){var R=this;R.triggered||(R.triggered=!0,R.def&&(R=R.def),R.msg=I,R.state=2,R.chain.length>0&&s(d,R))}function v(I,R,O,H){for(var j=0;j<R.length;j++)(function(U){I.resolve(R[U]).then(function(te){O(U,te)},H)})(j)}function f(I){this.def=I,this.triggered=!1}function b(I){this.promise=I,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function x(I){if(typeof I!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var R=new b(this);this.then=function(H,j){var ae={success:typeof H=="function"?H:!0,failure:typeof j=="function"?j:!1};return ae.promise=new this.constructor(function(Ae,te){if(typeof Ae!="function"||typeof te!="function")throw TypeError("Not a function");ae.resolve=Ae,ae.reject=te}),R.chain.push(ae),R.state!==0&&s(d,R),ae.promise},this.catch=function(H){return this.then(void 0,H)};try{I.call(void 0,function(H){p.call(R,H)},function(H){g.call(R,H)})}catch(O){g.call(R,O)}}var S=t({},"constructor",x,!1);return x.prototype=S,t(S,"__NPO__",0,!1),t(x,"resolve",function(R){var O=this;return R&&typeof R=="object"&&R.__NPO__===1?R:new O(function(j,ae){if(typeof j!="function"||typeof ae!="function")throw TypeError("Not a function");j(R)})}),t(x,"reject",function(R){return new this(function(H,j){if(typeof H!="function"||typeof j!="function")throw TypeError("Not a function");j(R)})}),t(x,"all",function(R){var O=this;return n.call(R)!="[object Array]"?O.reject(TypeError("Not an array")):R.length===0?O.resolve([]):new O(function(j,ae){if(typeof j!="function"||typeof ae!="function")throw TypeError("Not a function");var U=R.length,Ae=Array(U),te=0;v(O,R,function(A,w){Ae[A]=w,++te===U&&j(Ae)},ae)})}),t(x,"race",function(R){var O=this;return n.call(R)!="[object Array]"?O.reject(TypeError("Not an array")):new O(function(j,ae){if(typeof j!="function"||typeof ae!="function")throw TypeError("Not a function");v(O,R,function(Ae,te){j(te)},ae)})}),x})}),zi=new WeakMap;function zo(i,e,t){var r=zi.get(i.element)||{};e in r||(r[e]=[]),r[e].push(t),zi.set(i.element,r)}function Lc(i,e){var t=zi.get(i.element)||{};return t[e]||[]}function Rc(i,e,t){var r=zi.get(i.element)||{};if(!r[e])return!0;if(!t)return r[e]=[],zi.set(i.element,r),!0;var a=r[e].indexOf(t);return a!==-1&&r[e].splice(a,1),zi.set(i.element,r),r[e]&&r[e].length===0}function rw(i,e){var t=Lc(i,e);if(t.length<1)return!1;var r=t.shift();return Rc(i,e,r),r}function aw(i,e){var t=zi.get(i);zi.set(e,t),zi.delete(i)}function $c(i){if(typeof i=="string")try{i=JSON.parse(i)}catch(e){return console.warn(e),{}}return i}function Fr(i,e,t){if(!(!i.element.contentWindow||!i.element.contentWindow.postMessage)){var r={method:e};t!==void 0&&(r.value=t);var a=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));a>=8&&a<10&&(r=JSON.stringify(r)),i.element.contentWindow.postMessage(r,i.origin)}}function nw(i,e){e=$c(e);var t=[],r;if(e.event){if(e.event==="error"){var a=Lc(i,e.data.method);a.forEach(function(o){var s=new Error(e.data.message);s.name=e.data.name,o.reject(s),Rc(i,e.data.method,o)})}t=Lc(i,"event:".concat(e.event)),r=e.data}else if(e.method){var n=rw(i,e.method);n&&(t.push(n),r=e.value)}t.forEach(function(o){try{if(typeof o=="function"){o.call(i,r);return}o.resolve(r)}catch{}})}var ow=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function oy(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ow.reduce(function(t,r){var a=i.getAttribute("data-vimeo-".concat(r));return(a||a==="")&&(t[r]=a===""?1:a),t},e)}function yp(i,e){var t=i.html;if(!e)throw new TypeError("An element must be provided");
3193if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=t,e.appendChild(r.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function sy(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,a){if(!Wr(i))throw new TypeError("\u201C".concat(i,"\u201D is not a vimeo.com url."));var n=Jk(i),o="https://".concat(n,"/api/oembed.json?url=").concat(encodeURIComponent(i));for(var s in e)e.hasOwnProperty(s)&&(o+="&".concat(s,"=").concat(encodeURIComponent(e[s])));var l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",o,!0),l.onload=function(){if(l.status===404){a(new Error("\u201C".concat(i,"\u201D was not found.")));return}if(l.status===403){a(new Error("\u201C".concat(i,"\u201D is not embeddable.")));return}try{var d=JSON.parse(l.responseText);if(d.domain_status_code===403){yp(d,t),a(new Error("\u201C".concat(i,"\u201D is not embeddable.")));return}r(d)}catch(y){a(y)}},l.onerror=function(){var d=l.status?" (".concat(l.status,")"):"";a(new Error("There was an error fetching the embed code from Vimeo".concat(d,".")))},l.send()})}function sw(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(i.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),t=function(a){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(a))};e.forEach(function(r){try{if(r.getAttribute("data-vimeo-defer")!==null)return;var a=oy(r),n=ny(a);sy(n,a,r).then(function(o){return yp(o,r)}).catch(t)}catch(o){t(o)}})}function lw(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(r){if(Wr(r.origin)&&!(!r.data||r.data.event!=="spacechange")){for(var a=i.querySelectorAll("iframe"),n=0;n<a.length;n++)if(a[n].contentWindow===r.source){var o=a[n].parentElement;o.style.paddingBottom="".concat(r.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function cw(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(r){if(Wr(r.origin)){var a=$c(r.data);if(!(!a||a.event!=="ready"))for(var n=i.querySelectorAll("iframe"),o=0;o<n.length;o++){var s=n[o],l=s.contentWindow===r.source;if(ay(s.src)&&l){var d=new fp(s);d.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function dw(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
3193=!0;var e=function(a){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(a))},t=function(a){if(Wr(a.origin)){var n=$c(a.data);if(!(!n||n.event!=="ready"))for(var o=i.querySelectorAll("iframe"),s=function(){var y=o[l],p=y.contentWindow===a.source;if(ay(y.src)&&p){var g=new fp(y);g.getVideoId().then(function(v){var f=new RegExp("[?&]vimeo_t_".concat(v,"=([^&#]*)")).exec(window.location.href);if(f&&f[1]){var b=decodeURI(f[1]);g.setCurrentTime(b)}}).catch(e)}},l=0;l<o.length;l++)s()}};window.addEventListener("message",t)}}function uw(){var i=(function(){for(var r,a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,o=a.length,s={};n<o;n++)if(r=a[n],r&&r[1]in document){for(n=0;n<r.length;n++)s[a[0][n]]=r[n];return s}return!1})(),e={fullscreenchange:i.fullscreenchange,fullscreenerror:i.fullscreenerror},t={request:function(a){return new Promise(function(n,o){var s=function d(){t.off("fullscreenchange",d),n()};t.on("fullscreenchange",s),a=a||document.documentElement;var l=a[i.requestFullscreen]();l instanceof Promise&&l.then(s).catch(o)})},exit:function(){return new Promise(function(a,n){if(!t.isFullscreen){a();return}var o=function l(){t.off("fullscreenchange",l),a()};t.on("fullscreenchange",o);var s=document[i.exitFullscreen]();s instanceof Promise&&s.then(o).catch(n)})},on:function(a,n){var o=e[a];o&&document.addEventListener(o,n)},off:function(a,n){var o=e[a];o&&document.removeEventListener(o,n)}};return Object.defineProperties(t,{isFullscreen:{get:function(){return!!document[i.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[i.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[i.fullscreenEnabled]}}}),t}var pw={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},hw=(function(i){qk(t,i);var e=Yk(t);function t(r,a){var n,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return Jg(this,t),n=e.call(this),Cc(Mc(n),"logger",void 0),Cc(Mc(n),"speedAdjustment",0),Cc(Mc(n),"adjustSpeed",(function(){var l=Vr(nt().mark(function d(y,p){var g;return nt().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(n.speedAdjustment!==p){f.next=2;break}return f.abrupt("return");case 2:return f.next=4,y.getPlaybackRate();case 4:return f.t0=f.sent,f.t1=n.speedAdjustment,f.t2=f.t0-f.t1,f.t3=p,g=f.t2+f.t3,n.log("New playbackRate:  ".concat(g)),f.next=12,y.setPlaybackRate(g);case 12:n.speedAdjustment=p;case 13:case"end":return f.stop()}},d)}));return function(d,y){return l.apply(this,arguments)}})()),n.logger=s,n.init(a,r,Kg(Kg({},pw),o)),n}return ey(t,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(function(){var r=Vr(nt().mark(function n(o,s,l){var d=this,y,p,g;return nt().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.waitForTOReadyState(o,"open");case 2:if(l.role!=="viewer"){f.next=10;break}return f.next=5,this.updatePlayer(o,s,l);case 5:y=Xg(o,"change",function(){return d.updatePlayer(o,s,l)}),p=this.maintainPlaybackPosition(o,s,l),this.addEventListener("disconnect",function(){p.cancel(),y.cancel()}),f.next=14;break;case 10:return f.next=12,this.updateTimingObject(o,s);case 12:g=Xg(s,["seeked","play","pause","ratechange"],function(){return d.updateTimingObject(o,s)},"on","off"),this.addEventListener("disconnect",function(){return g.cancel()});case 14:case"end":return f.stop()}},n,this)}));function a(n,o,s){return r.apply(this,arguments)}return a})()},{key:"updateTimingObject",value:(function(){var r=Vr(nt().mark(function n(o,s){return nt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.t0=o,d.next=3,s.getCurrentTime();case 3:return d.t1=d.sent,d.next=6,s.getPaused();case 6:if(!d.sent){d.next=10;break}d.t2=0,d.next=13;break;case 10:return d.next=12,s.getPlaybackRate();case 12:d.t2=d.sent;case 13:d.t3=d.t2,d.t4={position:d.t1,velocity:d.t3},d.t0.update.call(d.t0,d.t4);case 16:case"end":return d.stop()}},n)}));function a(n,o){return r.apply(this,arguments)}return a})()},{key:"updatePlayer",value:(function(){var r=Vr(nt().mark(function n(o,s,l){var d,y,p;return nt().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(d=o.query(),y=d.position,p=d.velocity,typeof y=="number"&&s.setCurrentTime(y),typeof p!="number"){v.next=25;break}if(p!==0){v.next=11;break}return v.next=6,s.getPaused();case 6:if(v.t0=v.sent,v.t0!==!1){v.next=9;break}s.pause();case 9:v.next=25;break;case 11:if(!(p>0)){v.next=25;break}return v.next=14,s.getPaused();case 14:if(v.t1=v.sent,v.t1!==!0){v.next=19;break}return v.next=18,s.play().catch((function(){var f=Vr(nt().mark(function b(x){return nt().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(!(x.name==="NotAllowedError"&&l.autoPlayMuted)){I.next=5;break}return I.next=3,s.setMuted(!0);case 3:return I.next=5,s.play().catch(function(R){return console.error("Couldn't play the video from TimingSrcConnector. Error:",R)});case 5:case"end":return I.stop()}},b)}));return function(b){return f.apply(this,arguments)}})());case 18:this.updatePlayer(o,s,l);case 19:return v.next=21,s.getPlaybackRate();case 21:if(v.t2=v.sent,v.t3=p,v.t2===v.t3){v.next=25;break}s.setPlaybackRate(p);case 25:case"end":return v.stop()}},n,this)}));function a(n,o,s){return r.apply(this,arguments)}return a})()},{key:"maintainPlaybackPosition",value:function(a,n,o){var s=this,l=o.allowedDrift,d=o.maxAllowedDrift,y=o.minCheckInterval,p=o.maxRateAdjustment,g=o.maxTimeToCatchUp,v=Math.min(g,Math.max(y,d))*1e3,f=(function(){var x=Vr(nt().mark(function S(){var I,R,O,H,j;return nt().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(U.t0=a.query().velocity===0,U.t0){U.next=6;break}return U.next=4,n.getPaused();case 4:U.t1=U.sent,U.t0=U.t1===!0;case 6:if(!U.t0){U.next=8;break}return U.abrupt("return");case 8:return U.t2=a.query().position,U.next=11,n.getCurrentTime();case 11:if(U.t3=U.sent,I=U.t2-U.t3,R=Math.abs(I),s.log("Drift: ".concat(I
3193)),!(R>d)){U.next=22;break}return U.next=18,s.adjustSpeed(n,0);case 18:n.setCurrentTime(a.query().position),s.log("Resync by currentTime"),U.next=29;break;case 22:if(!(R>l)){U.next=29;break}return O=R/g,H=p,j=O<H?(H-O)/2:H,U.next=28,s.adjustSpeed(n,j*Math.sign(I));case 28:s.log("Resync by playbackRate");case 29:case"end":return U.stop()}},S)}));return function(){return x.apply(this,arguments)}})(),b=setInterval(function(){return f()},v);return{cancel:function(){return clearInterval(b)}}}},{key:"log",value:function(a){var n;(n=this.logger)===null||n===void 0||n.call(this,"TimingSrcConnector: ".concat(a))}},{key:"waitForTOReadyState",value:function(a,n){return new Promise(function(o){var s=function l(){a.readyState===n?o():a.addEventListener("readystatechange",l,{once:!0})};s()})}}]),t})(gp(EventTarget)),an=new WeakMap,vp=new WeakMap,ut={},fp=(function(){function i(e){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Jg(this,i),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!Zk(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var a=e.querySelector("iframe");a&&(e=a)}if(e.nodeName==="IFRAME"&&!Wr(e.getAttribute("src")||""))throw new Error("The player element passed isn\u2019t a Vimeo embed.");if(an.has(e))return an.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var n=new Lt(function(s,l){if(t._onMessage=function(p){if(!(!Wr(p.origin)||t.element.contentWindow!==p.source)){t.origin==="*"&&(t.origin=p.origin);var g=$c(p.data),v=g&&g.event==="error",f=v&&g.data&&g.data.method==="ready";if(f){var b=new Error(g.data.message);b.name=g.data.name,l(b);return}var x=g&&g.event==="ready",S=g&&g.method==="ping";if(x||S){t.element.setAttribute("data-ready","true"),s();return}nw(t,g)}},t._window.addEventListener("message",t._onMessage),t.element.nodeName!=="IFRAME"){var d=oy(e,r),y=ny(d);sy(y,d,e).then(function(p){var g=yp(p,e);return t.element=g,t._originalElement=e,aw(e,g),an.set(t.element,t),p}).catch(l)}});if(vp.set(this,n),an.set(this.element,this),this.element.nodeName==="IFRAME"&&Fr(this,"ping"),ut.isEnabled){var o=function(){return ut.exit()};this.fullscreenchangeHandler=function(){ut.isFullscreen?zo(t,"event:exitFullscreen",o):Rc(t,"event:exitFullscreen",o),t.ready().then(function(){Fr(t,"fullscreenchange",ut.isFullscreen)})},ut.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return ey(i,[{key:"callMethod",value:function(t){for(var r=this,a=arguments.length,n=new Array(a>1?a-1:0),o=1;o<a;o++)n[o-1]=arguments[o];if(t==null)throw new TypeError("You must pass a method name.");return new Lt(function(s,l){return r.ready().then(function(){zo(r,t,{resolve:s,reject:l}),Fr(r,t,n)}).catch(l)})}},{key:"get",value:function(t){var r=this;return new Lt(function(a,n){return t=Zg(t,"get"),r.ready().then(function(){zo(r,t,{resolve:a,reject:n}),Fr(r,t)}).catch(n)})}},{key:"set",value:function(t,r){var a=this;return new Lt(function(n,o){if(t=Zg(t,"set"),r==null)throw new TypeError("There must be a value to set.");return a.ready().then(function(){zo(a,t,{resolve:n,reject:o}),Fr(a,t,r)}).catch(o)})}},{key:"on",value:function(t,r){if(!t)throw new TypeError("You must pass an event name.");if(!r)throw new TypeError("You must pass a callback function.");if(typeof r!="function")throw new TypeError("The callback must be a function.");var a=Lc(this,"event:".concat(t));a.length===0&&this.callMethod("addEventListener",t).catch(function(){}),zo(this,"event:".concat(t),r)}},{key:"off",value:function(t,r){if(!t)throw new TypeError("You must pass an event name.");if(r&&typeof r!="function")throw new TypeError("The callback must be a function.");var a=Rc(this,"event:".concat(t),r);a&&this.callMethod("removeEventListener",t).catch(function(n){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=vp.get(this)||new Lt(function(r,a){a(new Error("Unknown player. Probably unloaded."))});return Lt.resolve(t)}},{key:"addCuePoint",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:r})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,r){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:r})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return ut.isEnabled?ut.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return ut.isEnabled?ut.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return ut.isEnabled?Lt.resolve(ut.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new Lt(function(r){if(vp.delete(t),an.delete(t.element),t._originalElement&&(an.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&t.element.nodeName==="IFRAME"&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&t.element.nodeName==="DIV"&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var a=t.element.querySelector("iframe");a&&a.parentNode&&(a.parentNode.parentNode&&t._originalElement&&t._originalElement!==a.parentNode?a.parentNode.parentNode.removeChild(a.parentNode):a.parentNode.removeChild(a))}t._window.removeEventListener("message",t._onMessage),ut.isEnabled&&ut.off("fullscreenchange",t.fullscreenchangeHandler),r()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return Lt.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new Lt(function(n,o){return o(new TypeError("Argument must be an array."))});var r=new Lt(function(n){return n(null)}),a=[t[0]?this.set("colorOne",t[0]):r,t[1]?this.set("colorTwo",t[1]):r,t[2]?this.set("colorThree",t[2]):r,t[3]?this.set("colorFour",t[3]):r];return Lt.all(a)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}
3193},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:(function(){var e=Vr(nt().mark(function r(a,n){var o=this,s;return nt().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(a){d.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return d.next=4,this.ready();case 4:return s=new hw(this,a,n),Fr(this,"notifyTimingObjectConnect"),s.addEventListener("disconnect",function(){return Fr(o,"notifyTimingObjectDisconnect")}),d.abrupt("return",s);case 8:case"end":return d.stop()}},r,this)}));function t(r,a){return e.apply(this,arguments)}return t})()}]),i})();ry||(ut=uw(),sw(),lw(),cw(),dw());var ly=fp;var mw="https://player.vimeo.com/video",vw="https://vimeo.com/event",gw=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function cy(i,e={}){var t;let r={src:yw(i,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return e.config&&(r["data-config"]=JSON.stringify(e.config)),(t=e.config)!=null&&t.referrerpolicy&&(r.referrerpolicy=e.config.referrerpolicy),`
3194    <style>
3195      :host {
3196        display: inline-block;
3197        min-width: 300px;
3198        min-height: 150px;
3199        position: relative;
3200      }
3201      iframe {
3202        position: absolute;
3203        top: 0;
3204        left: 0;
3205      }
3206      :host(:not([controls])) {
3207        pointer-events: none;
3208      }
3209    </style>
3210    <iframe${fw(r)}></iframe>
3211  `}function yw(i,e){if(!i.src)return;let t=new URL(i.src),r=i.src.match(gw),a=r?.[1],n=r?.[2],o=t.searchParams.get("h")||r?.[3],s={controls:i.controls===""?null:0,autoplay:i.autoplay,loop:i.loop,muted:i.muted,playsinline:i.playsinline,preload:i.preload??"metadata",transparent:!1,autopause:i.autopause,h:o,...e.config};if(a==="event/"){let l=o?`/${o}`:"";return delete s.h,`${vw}/${n}/embed${l}?${dy(s)}`}return`${mw}/${n}?${dy(s)}`}var jr,sn,ln,Ei,sr,lr,pt,qr,Gr,cr,Kr,dr,cn,dn,Ni,Yr,Bo,un,py,hy,on=class extends Tc(globalThis.HTMLElement??class{}){constructor(){super();ce(this,un);Ye(this,"loadComplete",new Ho);ce(this,jr);ce(this,sn);ce(this,ln);ce(this,Ei,0);ce(this,sr,NaN);ce(this,lr,!1);ce(this,pt,!this.autoplay);ce(this,qr,1);ce(this,Gr,0);ce(this,cr,0);ce(this,Kr,!1);ce(this,dr,1);ce(this,cn,NaN);ce(this,dn,NaN);ce(this,Ni,null);ce(this,Yr,!1);ce(this,Bo,async()=>{D(this,cr,1),this.dispatchEvent(new Event("loadedmetadata")),this.api&&(D(this,lr,await this.api.getMuted()),D(this,dr,await this.api.getVolume()),this.dispatchEvent(new Event("volumechange")),D(this,sr,await this.api.getDuration()),this.dispatchEvent(new Event("durationchange"))),this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve()});hn(this,un,hy).call(this,"config")}requestFullscreen(){var t,r;return(r=(t=this.api)==null?void 0:t.requestFullscreen)==null?void 0:r.call(t)}exitFullscreen(){var t,r;return(r=(t=this.api)==null?void 0:t.exitFullscreen)==null?void 0:r.call(t)}requestPictureInPicture(){var t,r;return(r=(t=this.api)==null?void 0:t.requestPictureInPicture)==null?void 0:r.call(t)}exitPictureInPicture(){var t,r;return(r=(t=this.api)==null?void 0:t.exitPictureInPicture)==null?void 0:r.call(t)}get config(){return B(this,Ni)}set config(t){t??=null,JSON.stringify(B(this,Ni))!==JSON.stringify(t)&&(D(this,Ni,t),this.load())}async load(){var t;if(B(this,jr))return;await D(this,jr,Promise.resolve()),D(this,jr,null),D(this,Ei,0),D(this,sr,NaN),D(this,lr,!1),D(this,pt,!this.autoplay),D(this,qr,1),D(this,Gr,0),D(this,cr,0),D(this,Kr,!1),D(this,dr,1),D(this,cr,0),D(this,cn,NaN),D(this,dn,NaN),this.dispatchEvent(new Event("emptied"));let r=this.api;if(this.api=null,!this.src)return;B(this,sn)&&(this.loadComplete=new Ho),D(this,sn,!0),this.dispatchEvent(new Event("loadstart"));let a={autoplay:this.autoplay,controls:this.controls,loop:this.loop,muted:this.defaultMuted,playsinline:this.playsInl
3211ine,preload:this.preload??"metadata",transparent:!1,autopause:this.hasAttribute("autopause"),...B(this,Ni)};if(B(this,ln)){this.api=r,await this.api.loadVideo({...a,url:this.src}),await B(this,Bo).call(this),await this.loadComplete;return}D(this,ln,!0),this.shadowRoot||this.attachShadow({mode:"open"});let n=this.shadowRoot.querySelector("iframe");n&&!B(this,Yr)?B(this,Ni)||D(this,Ni,JSON.parse(n.getAttribute("data-config")||"{}")):this.shadowRoot.innerHTML=cy(_w(this.attributes),this),D(this,Yr,!1),(t=r?.destroy)==null||t.call(r);let s=this.shadowRoot.querySelector("iframe");this.api=new ly(s),hn(this,un,py).call(this),await this.loadComplete}connectedCallback(){var t;B(this,Yr)&&this.load(),(t=super.connectedCallback)==null||t.call(this)}disconnectedCallback(){var t,r,a;D(this,Yr,!0),D(this,jr,null),D(this,sn,null),D(this,ln,null),this.loadComplete=new Ho,(r=(t=this.api)==null?void 0:t.destroy)==null||r.call(t),this.api=null,(a=super.disconnectedCallback)==null||a.call(this)}async attributeChangedCallback(t,r,a){if(r!==a){switch(t){case"autoplay":case"controls":case"src":{this.load();return}}await this.loadComplete,t==="loop"&&this.api.setLoop(this.loop)}}async play(){var t;D(this,pt,!1),this.dispatchEvent(new Event("play")),await this.loadComplete;try{await((t=this.api)==null?void 0:t.play())}catch(r){throw D(this,pt,!0),this.dispatchEvent(new Event("pause")),r}}async pause(){var t;return await this.loadComplete,(t=this.api)==null?void 0:t.pause()}get ended(){return B(this,Ei)>=B(this,sr)}get seeking(){return B(this,Kr)}get readyState(){return B(this,cr)}get videoWidth(){return B(this,cn)}get videoHeight(){return B(this,dn)}get src(){return this.getAttribute("src")}set src(t){this.src!=t&&this.setAttribute("src",t)}get paused(){return B(this,pt)}get duration(){return B(this,sr)}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(t){this.autoplay!=t&&this.toggleAttribute("autoplay",!!t)}get buffered(){return B(this,Gr)>0?uy(0,B(this,Gr)):uy()}get controls(){return this.hasAttribute("controls")}set controls(t){this.controls!=t&&this.toggleAttribute("controls",!!t)}get currentTime(){return B(this,Ei)}set currentTime(t){this.currentTime!=t&&(D(this,Ei,t),this.loadComplete.then(()=>{var r;(r=this.api)==null||r.setCurrentTime(t).catch(()=>{})}))}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.defaultMuted!=t&&this.toggleAttribute("muted",!!t)}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}get muted(){return B(this,lr)}set muted(t){this.muted!=t&&(D(this,lr,t),this.loadComplete.then(()=>{var r;(r=this.api)==null||r.setMuted(t).catch(()=>{})}))}get playbackRate(){return B(this,qr)}set playbackRate(t){this.playbackRate!=t&&(D(this,qr,t),this.loadComplete.then(()=>{var r;(r=this.api)==null||r.setPlaybackRate(t).catch(()=>{})}))}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(t){this.playsInline!=t&&this.toggleAttribute("playsinline",!!t)}get poster(){return this.getAttribute("poster")}set poster(t){this.poster!=t&&this.setAttribute("poster",`${t}`)}get volume(){return B(this,dr)}set volume(t){this.volume!=t&&(D(this,dr,t),this.loadComplete.then(()=>{var r;(r=this.api)==null||r.setVolume(t).catch(()=>{})}))}};jr=new WeakMap,sn=new WeakMap,ln=new WeakMap,Ei=new WeakMap,sr=new WeakMap,lr=new WeakMap,pt=new WeakMap,qr=new WeakMap,Gr=new WeakMap,cr=new WeakMap,Kr=new WeakMap,dr=new WeakMap,cn=new WeakMap,dn=new WeakMap,Ni=new WeakMap,Yr=new WeakMap,Bo=new WeakMap,un=new WeakSet,py=function(){let t=document.createElement("video");this.textTracks=t.textTracks,this.api.getTextTracks().then(a=>{a.forEach(n=>{t.addTextTrack(n.kind,n.label,n.language)})}),this.textTracks.addEventListener("change",()=>{let a=Array.from(this.textTracks).find(n=>n.mode==="showing");a?this.api.enableTextTrack(a.language,a.kind):this.api.disableTextTrack()});let r=()=>{this.api.off("loaded",r),B(this,Bo).call(this)};this.api.on("loaded",r),this.api.on("bufferstart",()=>{B(this,pt)&&(D(this,pt,!1),this.dispatchEvent(new Event("play"))),this.dispatchEvent(new Event("waiting"))}),this.api.on("play",()=>{B(this,pt)&&(D(this,pt,!1),this.dispatchEvent(new Event("play")))}),this.api.on("playing",()=>{D(this,cr,3),D(this,pt,!1),this.dispatchEvent(new Event("playing"))}),this.api.on("seeking",()=>{D(this,Kr,!0),this.onSeeking(),this.dispatchEvent(new Event("seeking"))}),this.api.on("seeked",async()=>{D(this,Kr,!1),D(this,Ei,await this.api.getCurrentTime().catch(()=>B(this,Ei))),this.dispatchEvent(new Event("seeked"))}),this.api.on("pause",()=>{D(this,pt,!0),this.dispatchEvent(new Event("pause"))}),this.api.on("ended",()=>{D(this,pt,!0),this.dispatchEvent(new Event("ended"))}),this.api.on("ratechange",({playbackRate:a})=>{D(this,qr,a),this.dispatchEvent(new Event("ratechange"))}),this.api.on("volumechange",async({volume:a})=>{D(this,dr,a),this.api&&D(this,lr,await this.api.getMuted()),this.dispatchEvent(new Event("volumechange"))}),this.api.on("durationchange",({duration:a})=>{D(this,sr,a),this.dispatchEvent(new Event("durationchange"))}),this.api.on("timeupdate",({seconds:a})=>{let n=Math.round(a*100)/100;D(this,Ei,n),this.dispatchEvent(new Event("timeupdate"))}),this.api.on("progress",({seconds:a})=>{D(this,Gr,a),this.dispatchEvent(new Event("progress"))}),this.api.on("resize",({videoWidth:a,videoHeight:n})=>{D(this,cn,a),D(this,dn,n),this.dispatchEvent(new Event("resize"))})},hy=function(t){if(Object.prototype.hasOwnProperty.call(this,t)){let r=this[t];delete this[t],this[t]=r}},Ye(on,"getTemplateHTML",cy),Ye(on,"shadowRootOptions",{mode:"open"}
3211),Ye(on,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);function fw(i){let e="";for(let t in i){let r=i[t];r===""?e+=` ${bp(t)}`:e+=` ${bp(t)}="${bp(`${r}`)}"`}return e}function bp(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}function dy(i){return String(new URLSearchParams(bw(i)))}function bw(i){let e={};for(let t in i){let r=i[t];r===!0||r===""?e[t]=1:r===!1?e[t]=0:r!=null&&(e[t]=r)}return e}function _w(i){let e={};for(let t of i)e[t.name]=t.value;return e}var Ho=class extends Promise{constructor(e=()=>{}){let t,r;super((a,n)=>{e(a,n),t=a,r=n}),this.resolve=t,this.reject=r}};function uy(i,e){return Array.isArray(i)?_p(i):i==null||e==null||i===0&&e===0?_p([[0,0]]):_p([[i,e]])}function _p(i){return Object.defineProperties(i,{start:{value:e=>i[e][0]},end:{value:e=>i[e][1]}}),i}globalThis.customElements&&!globalThis.customElements.get("vimeo-video")&&globalThis.customElements.define("vimeo-video",on);var Be=class extends ${constructor(){super(...arguments);this.autohide=1;this.type="self-hosted";this.referrerpolicy="strict-origin-when-cross-origin"}get _classNames(){return Z({video:!0,[`video--${this.type}`]:this.type})}_renderVideo(){return this.type==="youtube"?E`
3212                <youtube-video
3213                    slot="media"
3214                    src=${this.src}
3215                    crossorigin
3216                    ?autoplay=${this.autoplay}
3217                    ?loop=${this.loop}
3218                    ?muted=${this.muted}
3219                    ?preload=${this.preload}
3220                    poster=${M(this.poster)}
3221                    .config=${{referrerpolicy:this.referrerpolicy,origin:this.origin??globalThis.location?.origin}}
3222                ></youtube-video>
3223                <media-loading-indicator
3224                    slot="centered-chrome"
3225                    noautohide
3226                ></media-loading-indicator>
3227            `:this.type==="vimeo"?E`
3228                <vimeo-video
3229                    slot="media"
3230                    src=${this.src}
3231                    crossorigin
3232                    ?autoplay=${this.autoplay}
3233                    ?loop=${this.loop}
3234                    ?muted=${this.muted}
3235                    ?preload=${this.preload}
3236                    poster=${M(this.poster)}
3237                ></vimeo-video>
3238                <media-loading-indicator
3239                    slot="centered-chrome"
3240                    noautohide
3241                ></media-loading-indicator>
3242            `:E`
3243                <video
3244                    slot="media"
3245                    src=${this.src}
3246                    ?autoplay=${this.autoplay}
3247                    ?loop=${this.loop}
3248                    ?muted=${this.muted}
3249                    preload=${M(this.preload)}
3250                    poster=${M(this.poster)}
3251                >
3252                    ${this._renderCaptions()}
3253                </video>
3254            `}_renderCaptions(){return this.captions?.map(({src:t,srclang:r,label:a,default:n})=>E`
3255                <track
3256                    src=${t}
3257                    label=${M(a)}
3258                    srclang=${M(r)}
3259                    ?default=${n}
3260                    kind="captions"
3261                />
3262            `)}_renderMediaCaptionControls(){return this.captions?.length||this.type==="vimeo"||this.type==="youtube"?E`
3263                  <media-captions-menu
3264                      anchor="auto"
3265                      hidden
3266                  ></media-captions-menu>
3267                  <media-captions-menu-button></media-captions-menu-button>
3268              `:_}_renderMediaControls(){return E`
3269            <media-control-bar>
3270                <media-play-button></media-play-button>
3271                <media-mute-button></media-mute-button>
3272                <media-volume-range></media-volume-range>
3273                <media-time-range></media-time-range>
3274                <media-fullscreen-button></media-fullscreen-button>
3275                ${this._renderMediaCaptionControls()}
3276            </media-control-bar>
3277        `}
3277firstUpdated(t){super.firstUpdated(t),this.label&&(this.type==="youtube"||this.type==="vimeo")&&requestAnimationFrame(()=>{let a=this.shadowRoot?.querySelector("media-controller")?.querySelector(`${this.type}-video`),n=a?.shadowRoot?.querySelector("iframe"),o=document.createElement("p");o?.setAttribute("id","video-label"),o?.setAttribute("part","cy-visually-hidden"),o.textContent=this.label,a?.shadowRoot?.appendChild(o),n?.setAttribute("aria-labelledby","video-label")})}render(){return E`
3278            <div class=${this._classNames}>
3279                <media-controller
3280                    autohide=${this.autohide}
3281                    ?defaultsubtitles=${this.captions?.length}
3282                >
3283                    ${this._renderVideo()} ${this._renderMediaControls()}
3284                </media-controller>
3285            </div>
3286        `}};Be.styles=[...$.styles,xm,De],Be.defaultI18n=fd,u([m({type:Boolean,reflect:!0})],Be.prototype,"autoplay",2),u([m({type:Number})],Be.prototype,"autohide",2),u([m({type:String})],Be.prototype,"label",2),u([m({type:Boolean,reflect:!0})],Be.prototype,"loop",2),u([m({type:Boolean,reflect:!0})],Be.prototype,"muted",2),u([m({type:String})],Be.prototype,"poster",2),u([m({type:String,reflect:!0})],Be.prototype,"preload",2),u([m({type:String})],Be.prototype,"src",2),u([m({type:String})],Be.prototype,"type",2),u([m({type:Array})],Be.prototype,"captions",2),u([m({type:String})],Be.prototype,"referrerpolicy",2),u([m({type:String})],Be.prototype,"origin",2);customElements.get("cy-video")||customElements.define("cy-video",Be);export{oe as CyButton,Ne as CyCard,wn as CyCarousel,gr as CyCarouselItem,Pe as CyDatepicker,xe as CyIcon,ze as CyImage,ot as CyLogo,Je as CyNavigation,Ti as CyNavigationItem,Qt as CyObjectCard,xi as CyObjectCardBlock,gt as CyObjectCardSection,kt as CyObjectCardSectionGroup,yt as CyObjectGrid,xt as CyObjectGridItem,Jt as CyObjectLayout,Pt as CyObjectLayoutItem,Ot as CyPageHeader,he as CyRangeSlider,Yt as CySpinner,et as CySwitch,We as CyTextInput,Fi as CyTextarea,tt as CyTooltip,Be as CyVideo};
3287
3288//TODO remove after i18n is implmented https://jira.platform.vwfs.io/servicedesk/customer/portal/1/BRONSD-1244
3289document.addEventListener('DOMContentLoaded', function () {
3290    const pageHeader = document.querySelector('cy-page-header')
3291    if (pageHeader != null) {
3292        const PAGE_HEADER_I18N = {
3293            navToggleLabel: pageHeader.getAttribute('navToggleLabel'),
3294            navToggleAccessibleToOpenLabel: pageHeader.getAttribute('navToggleAccessibleToOpenLabel'),
3295            navToggleAccessibleToCloseLabel: pageHeader.getAttribute('navToggleAccessibleToCloseLabel'),
3296            menuOpenedStatusMessage: pageHeader.getAttribute('menuOpenedStatusMessage'),
3297            menuClosedStatusMessage: pageHeader.getAttribute('menuClosedStatusMessage'),
3298        }
3299        pageHeader.i18n = PAGE_HEADER_I18N
3300
3301        const navigations = document.querySelectorAll('cy-navigation')
3302        navigations.forEach((navigation) => {
3303            const NAVIGATION_I18N = {
3304                backButtonLabel: navigation.getAttribute('backButtonLabel'),
3305            }
3306            navigation.i18n = NAVIGATION_I18N
3307        })
3308    }
3309})

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.