PageSourceSearch

https://www.aircargocommunities.com/_next/static/chunks/8604-1482b507b8e1bdf6.js

js aircargocommunities.com collected 2026-10-10 01:48:25 UTC 497,359 bytes, 2,683 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8604],{1552:(e,t,i)=>{i.d(t,{UC:()=>et,B8:()=>J,bL:()=>X,l9:()=>ee});var r=i(52936),n=i.t(r,2),a=i(2884),o=i(7493),s=i(94038),l=i(37807),d=i(16620),u=i(76589),c=i(64524),h=i(52462),m=i(32692),p=i(36522),f=!1,v=n[" useSyncExternalStore ".trim().toString()];function g(){return()=>{}}var b="function"==typeof v?function(){return v(g,()=>!0,()=>!1)}:function(){let[e,t]=r.useState(f);return r.useEffect(()=>{f||(f=!0,t(!0))},[]),e},E=i(55524),y="rovingFocusGroup.onEntryFocus",w={bubbles:!1,cancelable:!0},A="RovingFocusGroup",[k,x,_]=(0,s.N)(A),[T,S]=(0,o.A)(A,[_]),[I,C]=T(A),L=r.forwardRef((e,t)=>(0,E.jsx)(k.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,E.jsx)(k.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,E.jsx)(M,{...e,ref:t})})}));L.displayName=A;var M=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,orientation:n,loop:o=!1,dir:s,currentTabStopId:d,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:f,onEntryFocus:v,preventScrollOnEntryFocus:g=!1,...b}=e,k=r.useRef(null),_=(0,l.s)(t,k),T=(0,m.jH)(s),[S,C]=(0,h.i)({prop:d,defaultProp:null!=p?p:null,onChange:f,caller:A}),[L,M]=r.useState(!1),R=(0,c.c)(v),D=x(i),O=r.useRef(!1),[P,U]=r.useState(0);return r.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(y,R),()=>e.removeEventListener(y,R)},[R]),(0,E.jsx)(I,{scope:i,orientation:n,dir:T,loop:o,currentTabStopId:S,onItemFocus:r.useCallback(e=>C(e),[C]),onItemShiftTab:r.useCallback(()=>M(!0),[]),onFocusableItemAdd:r.useCallback(()=>U(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>U(e=>e-1),[]),children:(0,E.jsx)(u.sG.div,{tabIndex:L||0===P?-1:0,"data-orientation":n,...b,ref:_,style:{outline:"none",...e.style},onMouseDown:(0,a.mK)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,a.mK)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(y,w);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),g)}}O.current=!1}),onBlur:(0,a.mK)(e.onBlur,()=>M(!1))})})}),R="RovingFocusGroupItem",D=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,focusable:n=!0,active:o=!1,tabStopId:s,children:l,...c}=e,h=(0,d.B)(),m=s||h,f=C(R,i),v=f.currentTabStopId===m,g=x(i),{onFocusableItemAdd:y,onFocusableItemRemove:w,currentTabStopId:A}=f,_=b();return(0,p.N)(()=>{if(_&&n)return y(),()=>w()},[_,n,y,w]),r.useEffect(()=>{if(!_&&n)return y(),()=>w()},[_,n,y,w]),(0,E.jsx)(k.ItemSlot,{scope:i,id:m,focusable:n,active:o,children:(0,E.jsx)(u.sG.span,{tabIndex:v?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:(0,a.mK)(e.onMouseDown,e=>{n?f.onItemFocus(m):e.preventDefault()}),onFocus:(0,a.mK)(e.onFocus,()=>f.onItemFocus(m)),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,i){var r;let n=(r=e.key,"rtl"!==i?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return O[n]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();let r=i.indexOf(e.currentTarget);i=f.loop?function(e,t){return e.map((i,r)=>e[(t+r)%e.length])}(i,r+1):i.slice(r+1)}setTimeout(()=>N(i))}}),children:"function"==typeof l?l({isCurrentTabStop:v,hasTabStop:null!=A}):l})})});D.displayName=R;var O={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=document.activeElement;for(let r of e)if(r===i||(r.focus({preventScroll:t}),document.activeElement!==i))return}var P=i(61501),U="Tabs",[V,F]=(0,o.A)(U,[S]),W=S(),[H,B]=V(U),j=r.forwardRef((e,t)=>{let{__scopeTabs:i,value:r,onValueChange:n,defaultValue:a,orientation:o="horizontal",dir:s,activationMode:l="automatic",...c}=e,p=(0,m.jH)(s),[f,v]=(0,h.i)({prop:r,onChange:n,defaultProp:null!=a?a:"",caller:U});return(0,E.jsx)(H,{scope:i,baseId:(0,d.B)(),value:f,onValueChange:v,orientation:o,dir:p,activationMode:l,children:(0,E.jsx)(u.sG.div,{dir:p,"data-orientation":o,...c,ref:t})})});j.displayName=U;var $="TabsList",z=r.forwardRef((e,t)=>
1{let{__scopeTabs:i,loop:r=!0,...n}=e,a=B($,i),o=W(i);return(0,E.jsx)(L,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,E.jsx)(u.sG.div,{role:"tablist","aria-orientation":a.orientation,...n,ref:t})})});z.displayName=$;var K="TabsTrigger",G=r.forwardRef((e,t)=>{let{__scopeTabs:i,value:r,disabled:n=!1,...o}=e,s=B(K,i),l=W(i),d=Z(s.baseId,r),c=Q(s.baseId,r),h=r===s.value;return(0,E.jsx)(D,{asChild:!0,...l,focusable:!n,active:h,children:(0,E.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":c,"data-state":h?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:d,...o,ref:t,onMouseDown:(0,a.mK)(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(r)}),onKeyDown:(0,a.mK)(e.onKeyDown,e=>{!n&&e.target===e.currentTarget&&[" ","Enter"].includes(e.key)&&s.onValueChange(r)}),onFocus:(0,a.mK)(e.onFocus,()=>{let e="manual"!==s.activationMode;h||n||!e||s.onValueChange(r)})})})});G.displayName=K;var q="TabsContent",Y=r.forwardRef((e,t)=>{let{__scopeTabs:i,value:n,forceMount:a,children:o,...s}=e,l=B(q,i),d=Z(l.baseId,n),c=Q(l.baseId,n),h=n===l.value,m=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,E.jsx)(P.C,{present:a||h,children:i=>{let{present:r}=i;return(0,E.jsx)(u.sG.div,{"data-state":h?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:c,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&o})}})});function Z(e,t){return"".concat(e,"-trigger-").concat(t)}function Q(e,t){return"".concat(e,"-content-").concat(t)}Y.displayName=q;var X=j,J=z,ee=G,et=Y},2884:(e,t,i)=>{function r(e,t,{checkForDefaultPrevented:i=!0}={}){return function(r){if(e?.(r),!1===i||!r||!r.defaultPrevented)return t?.(r)}}i.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},6923:(e,t,i)=>{i.d(t,{Gb:()=>V,Jt:()=>k,as:()=>N,hZ:()=>_,mN:()=>ev,xI:()=>P});var r=i(52936),n=e=>e instanceof Date,a=e=>null==e;let o=e=>"object"==typeof e;var s=e=>!a(e)&&!Array.isArray(e)&&o(e)&&!n(e),l=e=>s(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,d=(e,t)=>t.split(".").some((t,i,r)=>!isNaN(Number(t))&&e.has(r.slice(0,i).join("."))),u=e=>{let t=e.constructor&&e.constructor.prototype;return s(t)&&t.hasOwnProperty("isPrototypeOf")},c="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){if(e instanceof Date)return new Date(e);let t="undefined"!=typeof FileList&&e instanceof FileList;if(c&&(e instanceof Blob||t))return e;let i=Array.isArray(e);if(!i&&!(s(e)&&u(e)))return e;let r=i?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=h(e[t]));return r}let m={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},p={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},f={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},v="root",g=["__proto__","constructor","prototype"],b=/^\w*$/;var E=e=>b.test(e),y=e=>void 0===e;let w=/[.[\]'"]/;var A=e=>e.split(w).filter(Boolean),k=(e,t,i)=>{if(!t||!s(e))return i;let r=E(t)?[t]:A(t);if(r.some(e=>g.includes(e)))return i;let n=r.reduce((e,t)=>a(e)?void 0:e[t],e);return y(n)||n===e?y(e[t])?i:e[t]:n},x=e=>"function"==typeof e,_=(e,t,i)=>{let r=-1,n=E(t)?[t]:A(t),a=n.length,o=a-1;for(;++r<a;){let t=n[r],a=i;if(r!==o){let i=e[t];a=s(i)||Array.isArray(i)?i:isNaN(+n[r+1])?{}:[]}if(g.includes(t))return;e[t]=a,e=e[t]}};let T=r.createContext(null);T.displayName="HookFormControlContext";let S=()=>r.useContext(T);var I=(e,t,i,r=!0)=>{let n={};for(let a in e)Object.defineProperty(n,a,{get:()=>(t._proxyFormState[a]!==p.all&&(t._proxyFormState[a]=!r||p.all),i&&(i[a]=!0),e[a])});return n};let C=c?r.useLayoutEffect:r.useEffect;var L=e=>"string"==typeof e,M=(e,t,i,r,n)=>L(e)?(r&&t.watch.add(e),k(i,e,n)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),k(i,e))):(r&&(t.watchAll=!0),i),R=e=>a(e)||!o(e);let D=(e,t)=>0===t.length&&!Array.isArray(e)&&!u(e);
1function O(e,t,i=new WeakMap){if(e===t)return!0;if(R(e)||R(t))return Object.is(e,t);if(n(e)&&n(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(D(e,r)||D(t,a))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let o=i.get(e);if(o&&o.has(t))return!0;if(o)o.add(t);else{let r=new WeakSet;r.add(t),i.set(e,r)}for(let a of r){let r=e[a];if(!(a in t))return!1;if("ref"!==a){let e=t[a];if(n(r)&&n(e)||(s(r)||Array.isArray(r))&&(s(e)||Array.isArray(e))?!O(r,e,i):!Object.is(r,e))return!1}}return!0}function N(e){let t=S(),{name:i,disabled:n,control:a=t,shouldUnregister:o,defaultValue:s,exact:u=!0}=e,c=d(a._names.array,i),p=r.useMemo(()=>k(a._formValues,i,k(a._defaultValues,i,s)),[a,i,s]),f=function(e){let t=S(),{control:i=t,name:n,defaultValue:a,disabled:o,exact:s,compute:l}=e||{},d=r.useRef(a),u=r.useRef(l),c=r.useRef(void 0),h=r.useRef(i),m=r.useRef(n);u.current=l;let[p,f]=r.useState(()=>{let e=i._getWatch(n,d.current);return u.current?u.current(e):e}),v=r.useCallback(e=>{let t=M(n,i._names,e||i._formValues,!1,d.current);return u.current?u.current(t):t},[i._formValues,i._names,n]),g=r.useCallback(e=>{if(!o){let t=M(n,i._names,e||i._formValues,!1,d.current);if(u.current){let e=u.current(t);O(e,c.current)||(f(e),c.current=e)}else f(t)}},[i._formValues,i._names,o,n]);C(()=>(h.current===i&&O(m.current,n)||(h.current=i,m.current=n,g()),i._subscribe({name:n,formState:{values:!0},exact:s,callback:e=>{g(e.values)}})),[i,s,n,g]),r.useEffect(()=>i._removeUnmounted());let b=h.current!==i,E=m.current,y=r.useMemo(()=>{if(o)return null;let e=!b&&!O(E,n);return b||e?v():null},[o,b,n,E,v]);return null!==y?y:p}({control:a,name:i,defaultValue:p,exact:u}),v=function(e){let t=S(),{control:i=t,disabled:n,name:a,exact:o}=e||{},[s,l]=r.useState(()=>({...i._formState,defaultValues:i._defaultValues})),d=r.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return C(()=>i._subscribe({name:a,formState:d.current,exact:o,callback:e=>{n||l({...i._formState,...e,defaultValues:i._defaultValues})}}),[a,n,o]),r.useEffect(()=>{d.current.isValid&&i._setValid(!0)},[i]),r.useMemo(()=>I(s,i,d.current,!1),[s,i])}({control:a,name:i,exact:u}),g=r.useRef(e),b=r.useRef(null),E=r.useRef(a.register(i,{...e.rules,value:f,..."boolean"==typeof e.disabled?{disabled:e.disabled}:{}}));g.current=e;let w=r.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!k(v.errors,i)},isDirty:{enumerable:!0,get:()=>!!k(v.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!k(v.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!k(v.validatingFields,i)},error:{enumerable:!0,get:()=>k(v.errors,i)}}),[v,i]),A=r.useCallback(e=>{let t=l(e);return k(a._fields,i)||(E.current=a.register(i,{...g.current.rules,value:t})),E.current.onChange({target:{value:l(e),name:i},type:m.CHANGE})},[i,a]),T=r.useCallback(()=>E.current.onBlur({target:{value:k(a._formValues,i),name:i},type:m.BLUR}),[i,a._formValues]),L=r.useCallback(e=>{e&&(b.current={focus:()=>x(e.focus)&&e.focus(),select:()=>x(e.select)&&e.select(),setCustomValidity:t=>x(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>x(e.reportValidity)&&e.reportValidity()});let t=k(a._fields,i);t&&t._f&&e&&(t._f.ref=b.current)},[a._fields,i]),R=r.useMemo(()=>({name:i,value:f,..."boolean"==typeof n||v.disabled?{disabled:v.disabled||n}:{},onChange:A,onBlur:T,ref:L}),[i,n,v.disabled,A,T,L,f]);return r.useEffect(()=>{let e=a._options.shouldUnregister||o;a.register(i,{...g.current.rules,..."boolean"==typeof g.current.disabled?{disabled:g.current.disabled}:{}});let t=(e,t)=>{let i=k(a._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){let e=h(k(o?a._defaultValues:a._options.values||a._defaultValues,i,k(a._options.defaultValues,i,g.current.defaultValue)));_(a._defaultValues,i,e),y(k(a._formValues,i))&&_(a._formValues,i,e)}if(c||a.register(i),b.current){let e=k(a._fields,i);e&&e._f&&(e._f.ref=b.current)}return()=>{(c?e&&!a._state.action:e)?a.unregister(i):t(i,!1)}},[i,a,c,o]),r.useEffect(()=>{a._setDisabledField({disabled:n,name:i})},[n,i,a]),r.useMemo(()=>({field:R,formState:v,fieldState:w}),[R,v,w])}let P=e=>e.render(N(e)),U=e=>{let t={};for(let i of Object.keys(e))if(o(e[i])&&null!==e[i]&&!n(e[i])){let r=U(e[i]);for(let e of Object.keys(r))t[`${i}.${e}`]=r[e]}else t[i]=e[i];return t};r.createContext(null).displayName="HookFormContext";var V=(e,t,i,r,n)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:n||!0}}:{},F=e=>Array.isArray(e)?e.filter(Boolean):[],W=e=>Array.isArray(e)?e:[e],H=()=>{let e=[];return{get observers(){return e},next:t=>{for(let i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},B=e=>s(e)&&!Object.keys(e).length,j=e=>{if(!c)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},$=e=>j(e)&&e.isConnected;function z(e,t){if(L(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let i=Array.isArray(t)?t:E(t)?[t]:A(t);if(i.some(e=>
1g.includes(String(e))))return e;let r=1===i.length?e:function(e,t){let i=t.slice(0,-1).length,r=0;for(;r<i;){if(a(e)){e=void 0;break}e=e[t[r]],r++}return e}(e,i),n=i.length-1,o=i[n];return r&&delete r[o],0!==n&&(s(r)&&B(r)||Array.isArray(r)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!y(e[t]))return!1;return!0}(r))&&z(e,i.slice(0,-1)),e}function K(e){return Array.isArray(e)||s(e)&&!(e=>{for(let t in e)if(x(e[t]))return!0;return!1})(e)}function G(e,t={}){for(let i in e){let r=e[i];K(r)?(t[i]=Array.isArray(r)?[]:{},G(r,t[i])):y(r)||(t[i]=!0)}return t}function q(e,t,i){for(let r in i||(i=G(t)),e){let n=e[r];if(K(n))y(t)||R(i[r])?i[r]=G(n,Array.isArray(n)?[]:{}):q(n,a(t)?{}:t[r],i[r]);else{let e=t[r];i[r]=!O(n,e)}}return function e(t){if(!1!==t){if(!0===t)return!0;if(Array.isArray(t)){let i=t.map(t=>e(t));return i.some(e=>void 0!==e)?i:void 0}if(s(t)){let i={};for(let r in t){let n=e(t[r]);y(n)||(i[r]=n)}return Object.keys(i).length?i:void 0}}}(i)||{}}let Y={value:!1,isValid:!1},Z={value:!0,isValid:!0};var Q=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?Z:{value:e[0].value,isValid:!0}:Z:Y}return Y},X=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:r})=>y(e)?e:t?""===e?NaN:e?+e:e:i&&L(e)?new Date(e):r?r(e):e;let J={isValid:!1,value:null};var ee=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,J):J;function et(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?ee(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?Q(e.refs).value:X(y(t.value)?e.ref.value:t.value,e)}var ei=e=>y(e)?e:e instanceof RegExp?e.source:s(e)?e.value instanceof RegExp?e.value.source:e.value:e,er=e=>({isOnSubmit:!e||e===p.onSubmit,isOnBlur:e===p.onBlur,isOnChange:e===p.onChange,isOnAll:e===p.all,isOnTouch:e===p.onTouched});let en="AsyncFunction";var ea=e=>{if(!e||!e.validate)return!1;if(x(e.validate))return e.validate.constructor.name===en;if(s(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===en)return!0}return!1},eo=(e,t,i)=>{if(i)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let i of t.watch)if(e.startsWith(i)&&"."===e.charAt(i.length))return!0;return!1};let es=(e,t,i,r)=>{for(let n of i||Object.keys(e)){let i=k(e,n);if(i){let{_f:e,...a}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!r)return!0;else if(e.ref&&t(e.ref,e.name)&&!r)return!0;else if(es(a,t))break}else if(s(a)&&es(a,t))break}}};function el(e,t,i){let r=k(e,i);if(r||E(i))return{error:r,name:i};let n=i.split(".");for(;n.length;){let r=n.join("."),a=k(t,r),o=k(e,r);if(a&&!Array.isArray(a)&&i!==r)break;if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};n.pop()}return{name:i}}var ed=(e,t,i)=>{let r=k(e,i),n=Array.isArray(r)?r:[];return _(n,v,t[i]),_(e,i,n),e};function eu(e,t,i="validate"){if(L(e)||Array.isArray(e)&&e.every(L)||"boolean"==typeof e&&!e)return{type:i,message:L(e)?e:"",ref:t}}var ec=e=>!s(e)||e instanceof RegExp?{value:e,message:""}:e,eh=async(e,t,i,r,n,o)=>{let{ref:l,refs:d,required:u,maxLength:c,minLength:h,min:m,max:p,pattern:v,validate:g,name:b,valueAsNumber:E,mount:w}=e._f,A=k(i,b);if(!w||t.has(b))return{};let _=d?d[0]:l,T=e=>{if(n&&_.reportValidity){let t="boolean"==typeof e?"":e||"";d?d.forEach(e=>e.setCustomValidity(t)):_.setCustomValidity(t),_.reportValidity()}},S={},I="radio"===l.type,C="checkbox"===l.type,M=(E||"file"===l.type)&&y(l.value)&&y(A)||j(l)&&""===l.value||""===A||Array.isArray(A)&&!A.length,R=V.bind(null,b,r,S),D=(e,t,i,r=f.maxLength,n=f.minLength)=>{let a=e?t:i;S[b]={type:e?r:n,message:a,ref:l,...R(e?r:n,a)}};if(o?!Array.isArray(A)||!A.length:u&&(!(I||C)&&(M||a(A))||"boolean"==typeof A&&!A||C&&!Q(d).isValid||I&&!ee(d).isValid)){let{value:e,message:t}=L(u)?{value:!!u,message:u}:ec(u);if(e&&(S[b]={type:f.required,message:t,ref:_,...R(f.required,t)},!r))return T(t),S}if(!M&&(!a(m)||!a(p))){let e,t,i=ec(p),n=ec(m);if(a(A)||isNaN(A)){let r=l.valueAsDate||new Date(A),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==l.type,s="week"==l.type;L(i.value)&&A&&(e=o?a(A)>a(i.value):s?A>i.value:r>new Date(i.value)),L(n.value)&&A&&(t=o?a(A)<a(n.value):s?A<n.value:r<new Date(n.value))}else{let r=l.valueAsNumber||(A?+A:A);a(i.value)||(e=r>i.value),a(n.value)||(t=r<n.value)}if((e||t)&&(D(!!e,i.message,n.message,f.max,f.min),!r))return T(S[b].message),S}if((c||h)&&!M&&(L(A)||o&&Array.isArray(A))){let e=ec(c),t=ec(h),i=!a(e.value)&&A.length>+e.value,n=!a(t.value)&&A.length<+t.value;if((i||n)&&(D(i,e.message,t.message),!r))return T(S[b].message),S}if(v&&!M&&L(A)){let{value:e,message:t}=ec(v);if(e instanceof RegExp&&!A.match(e)&&(S[b]={type:f.pattern,message:t,ref:l,...R(f.pattern,t)},!r))return T(t),S}if(g){if(x(g)){let e=eu(await g(A,i),_);if(e&&(S[b]={...e,...R(f.validate,e.message)},!r))return T(e.message),S}else if(s(g)){let e={};for(let t in g){if(!B(e)&&!r)break;let n=eu(await g[t](A,i),_,t);n&&(e={...n,...R(t,n.message)},T(n.message),r&&(S[b]=e))}if(!B(e)&&(S[b]={ref:_,...e},!r))return S}}return T(!0),S};let em={mode:p.onSubmit,reValidateMode:p.onChange,shouldFocusError:!0},ep="form",ef={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function ev(e={}){let t=r.useRef(void 0),i=r.useRef(void 0),o=r.useRef(e.formControl),[u,g]=r.useState(()=>({...h(ef),isLoading:x(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:x(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&o.current!==e.formControl)if(o.current=e.formControl,e.formControl)t.current={...e.formControl,formState:u},e.defaultValues&&!x(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:i,...r}=function(e={}){let t,i={...em,...e},r={...h(ef),isLoading:x(i.defaultValues),errors:i.errors||{},disabled:i.disabled||!1},o={},u=(s(i.defaultValues)||s(i.values))&&h(i.defaultValues||i.values)||{},g=i.shouldUnregister?{}:h(u),b={action:!1,mount:!1,watch:!1,keepIsValid:!1},w={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},T=0,S=0,I=er(i.mode),C=er(i.reValidateMode),R={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},D={...R},N={...D},P={array:H(),state:H()},V=i.criteriaMode===p.all,K=async e=>{if(!b.keepIsValid&&!i.disabled&&(D.isValid||N.isValid||e)){let e;i.resolver?(e=B((await J()).errors),G()):e=await eu({fields:o,onlyCheckValid:!0,eventType:m.VALID}),e!==r.isValid&&P.state.next({isValid:e})}},G=(e,t)=>{!i.disabled&&(D.isValidating||D.validatingFields||N.isValidating||N.validatingFields)&&((e||Array.from(w.mount)).forEac
1h(e=>{e&&(t?_(r.validatingFields,e,t):z(r.validatingFields,e))}),P.state.next({validatingFields:r.validatingFields,isValidating:!B(r.validatingFields)}))},Y=()=>{r.dirtyFields=q(u,g)},Z=(t,i,n,s)=>{let l=k(o,t);if(l){if((e=>{let t=E(e)?[e]:A(e),i=g,r=u;for(let e=0;e<t.length-1;e++){let n=t[e];if(i=a(i)?i:i[n],r=a(r)?r:r[n],null===i&&null!==r)return!0}return!1})(t))return;let o=y(k(g,t)),d=k(g,t,y(n)?k(u,t):n);y(d)||s&&s.defaultChecked||i?_(g,t,i?d:et(l._f)):eg(t,d),b.mount&&!b.action&&(K(),o&&r.isDirty&&(D.isDirty||N.isDirty)&&(ec()||(r.isDirty=!1,P.state.next({...r}))),e.shouldUnregister&&o&&!y(k(g,t))&&eo(t,w)&&(b.watch=!0))}},Q=(e,t,n,a,o)=>{let s=!1,l=!1,d={name:e};if(!i.disabled){if(!n||a){let i=O(k(u,e),t);(D.isDirty||N.isDirty)&&(l=r.isDirty,r.isDirty=d.isDirty=!i||ec(),s=l!==d.isDirty),l=!!k(r.dirtyFields,e),i!==r.isDirty?r.dirtyFields=q(u,g):i?z(r.dirtyFields,e):_(r.dirtyFields,e,!0),d.dirtyFields=r.dirtyFields,s=s||(D.dirtyFields||N.dirtyFields)&&!i!==l}if(n){let t=k(r.touchedFields,e);t||(_(r.touchedFields,e,n),d.touchedFields=r.touchedFields,s=s||(D.touchedFields||N.touchedFields)&&t!==n)}s&&o&&P.state.next(d)}return s?d:{}},J=async e=>(G(e,!0),await i.resolver(g,i.context,((e,t,i,r)=>{let n={};for(let i of e){let e=k(t,i);e&&_(n,i,e._f)}return{criteriaMode:i,names:[...e],fields:n,shouldUseNativeValidation:r}})(e||w.mount,o,i.criteriaMode,i.shouldUseNativeValidation))),ee=async e=>{let{errors:t}=await J(e);if(G(e),e){for(let i of e){let e=k(t,i);e?w.array.has(i)&&s(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?ed(r.errors,{[i]:e},i):_(r.errors,i,e):z(r.errors,i)}r.errors={...r.errors}}else r.errors=t;return t},en=async({name:t,eventType:i})=>{if(e.validate){let n=await e.validate({formValues:g,formState:r,name:t,eventType:i});if(s(n))for(let e in n){let t=n[e];t&&eT(`${ep}.${e}`,{message:L(t.message)?t.message:"",type:t.type||f.validate})}else L(n)||!n?eT(ep,{message:n||"",type:f.validate}):e_(ep);return n}return!0},eu=async({fields:t,onlyCheckValid:n,name:a,eventType:o,context:s={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(s.runRootValidation=!0,!await en({name:a,eventType:o}))&&(s.valid=!1,n))return s.valid;for(let a in t){let l=t[a];if(l){let{_f:t,...d}=l;if(t){let a=w.array.has(t.name),o=l._f&&ea(l._f),d=D.validatingFields||D.isValidating||N.validatingFields||N.isValidating;o&&d&&G([t.name],!0);let u=await eh(l,w.disabled,g,V,i.shouldUseNativeValidation&&!n,a);if(o&&d&&G([t.name]),u[t.name]&&(s.valid=!1,n)||(n||(k(u,t.name)?a?ed(r.errors,u,t.name):_(r.errors,t.name,u[t.name]):z(r.errors,t.name)),e.shouldUseNativeValidation&&u[t.name]))break}B(d)||await eu({context:s,onlyCheckValid:n,fields:d,name:a,eventType:o})}}return s.valid},ec=(e,t)=>!i.disabled&&(e&&t&&_(g,e,t),!O(b.mount?g:u,u)),ev=(e,t,i)=>M(e,w,{...b.mount?g:y(t)?u:L(e)?{[e]:t}:t},i,t),eg=(e,t,i={},r=!1,n=!1)=>{let s=k(o,e),l=t;if(s){let i=s._f;i&&(i.disabled||_(g,e,X(t,i)),l=j(i.ref)&&a(t)?"":t,"select-multiple"===i.ref.type?[...i.ref.options].forEach(e=>e.selected=l.includes(e.value)):i.refs?"checkbox"===i.ref.type?i.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(l)?e.checked=!!l.find(t=>t===e.value):e.checked=l===e.value||!!l)}):i.refs.forEach(e=>e.checked=e.value===l):"file"===i.ref.type?i.ref.value="":(i.ref.value=l,i.ref.type||n||P.state.next({name:e,values:r?g:h(g)})))}(i.shouldDirty||i.shouldTouch)&&Q(e,l,i.shouldTouch,i.shouldDirty,!n),i.shouldValidate&&ek(e)},eb=(e,t,i,r=!1,a=!1)=>{for(let l in t){if(!t.hasOwnProperty(l))return;let d=t[l],u=e+"."+l,c=k(o,u);(w.array.has(e)||s(d)||c&&!c._f)&&!n(d)?eb(u,d,i,r,a):eg(u,d,i,r,a)}},eE=(e,t,i,n,s=!1)=>{let l=k(o,e),d=w.array.has(e),u=n?t:h(t),c=O(k(g,e),u);if(c||_(g,e,u),d)P.array.next({name:e,values:n?g:h(g)}),(D.isDirty||D.dirtyFields||N.isDirty||N.dirtyFields)&&i.shouldDirty&&(Y(),s||P.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:ec(e,u)}));else{let t=Array.isArray(u)&&!u.length||B(u);!l||l._f||a(u)||t?eg(e,u,i,n,s):eb(e,u,i,n,s)}if(!c&&!s){let t=eo(e,w),i=n?g:h(g);P.state.next({...t&&r,name:b.mount||t?e:void 0,values:i})}},ey=(e,t,i={})=>eE(e,t,i,!1),ew=async a=>{b.mount=!0;let s=a.target,d=s.name,u=!0,c=k(o,d),p=e=>{u=Number.isNaN(e)||n(e)&&isNaN(e.getTime())||O(e,k(g,d,e))};if(c){let n,b,R,U=s.type?et(c._f):l(a),F=a.type===m.BLUR||a.type===m.FOCUS_OUT,W=!((R=c._f).mount&&(R.required||R.min||R.max||R.maxLength||R.minLength||R.pattern||R.validate))&&!e.validate&&!i.resolver&&!k(r.errors,d)&&!c._f.deps,H=W||(f=F,v=k(r.touchedFields,d),E=r.isSubmitted,y=C,!(A=I).isOnAll&&(!E&&A.isOnTouch?!(v||f):(E?y.isOnBlur:A.isOnBlur)?!f:(E?!y.isOnChange:!A.isOnChange)||f)),j=eo(d,w,F);_(g,d,U),F?s&&s.readOnly||(c._f.onBlur&&c._f.onBlur(a),t&&t(0)):c._f.onChange&&c._f.onChange(a);let $=Q(d,U,F),q=!B($)||j;if(F||P.state.next({name:d,type:a.type,...S?{values:h(g)}:{}}),H)return(!W||!r.isValid)&&(D.isValid||N.isValid)&&("onBlur"===i.mode?F&&K():F||K()),q&&P.state.next({name:d,...j?{}:$});if(!i.resolver&&e.validate&&await en({name:d,eventType:a.type}),!F&&j&&P.state.next({...r}),i.resolver){let{errors:e}=await J([d]);if(G([d]),p(U),!u){B($)||P.state.next($);return}let t=el(r.errors,o,d),i=el(e,o,t.name||d);n=i.error,d=i.name,b=B(e)}else G([d],!0),n=(await eh(c,w.disabled,g,V,i.shouldUseNativeValidation))[d],G([d]),p(U),u&&(n?b=!1:(D.isValid||N.isValid)&&(b=await eu({fields:o,onlyCheckValid:!0,name:d,eventType:a.type})));if(u){c._f.deps&&(!Array.isArray(c._f.deps)||c._f.deps.length>0)&&ek(c._f.deps);var f,v,E,y,A,x=d,L=b,M=n;let e=k(r.errors,x),a=(D.isValid||N.isValid)&&"boolean"==typeof L&&r.isValid!==L;if(i.delayError&&M){let e;e=()=>{_(r.errors,x,M),r.errors={...r.errors},P.state.next({errors:r.errors})},(t=t=>{clearTimeout(T),T=setTimeout(e,t)})(i.delayError)}else clearTimeout(T),t=null,M?_(r.errors,x,M):z(r.errors,x),r.errors={...r.errors};if((M?!O(e,M):e)||!B($)||a){let e={...$,...a&&"boolean"==typeof L?{isValid:L}:{},errors:r.errors,name:x};r={...r,...e},P.state.next(e)}}}},eA=(e,t)=>
1{if(k(r.errors,t)&&e.focus)return e.focus(),1},ek=async(e,t={})=>{let n,a,s=W(e);if(i.resolver){let t=await ee(y(e)?e:s);n=B(t),a=e?!s.some(e=>k(t,e)):n}else e?((a=(await Promise.all(s.map(async e=>{let t=k(o,e);return await eu({fields:t&&t._f?{[e]:t}:t,eventType:m.TRIGGER})}))).every(Boolean))||r.isValid)&&K():a=n=await eu({fields:o,name:e,eventType:m.TRIGGER});return P.state.next({...!L(e)||(D.isValid||N.isValid)&&n!==r.isValid?{}:{name:e},...i.resolver||!e?{isValid:n}:{},errors:r.errors}),t.shouldFocus&&!a&&es(o,eA,e?s:w.mount),a},ex=(e,t)=>({invalid:!!k((t||r).errors,e),isDirty:!!k((t||r).dirtyFields,e),error:k((t||r).errors,e),isValidating:!!k(r.validatingFields,e),isTouched:!!k((t||r).touchedFields,e)}),e_=e=>{let t=e?W(e):void 0;null==t||t.forEach(e=>z(r.errors,e)),t?t.forEach(e=>{P.state.next({name:e,errors:r.errors})}):P.state.next({errors:{}})},eT=(e,t,i)=>{let n=(k(o,e,{_f:{}})._f||{}).ref,{ref:a,message:s,type:l,...d}=k(r.errors,e)||{};_(r.errors,e,{...d,...t,ref:n}),P.state.next({name:e,errors:r.errors,isValid:!1}),i&&i.shouldFocus&&n&&n.focus&&n.focus()},eS=e=>{var t;let i=!!(null==(t=e.formState)?void 0:t.values);i&&S++;let{unsubscribe:n}=P.state.subscribe({next:t=>{let i,n,a;if(i=e.name,n=t.name,a=e.exact,(!i||!n||i===n||W(i).some(e=>e&&(a?e===n||e.startsWith(n+"."):e.startsWith(n)||n.startsWith(e))))&&((e,t,i,r)=>{i(e);let{name:n,...a}=e,o=Object.keys(a);return!o.length||r&&o.length>=Object.keys(t).length||o.find(e=>t[e]===(!r||p.all))})(t,e.formState||D,eN,e.reRenderRoot)){let i={...g};e.callback({values:i,...r,...t,defaultValues:u})}}});if(!i)return n;let a=!1;return()=>{a||(a=!0,S--,n())}},eI=(e,t={})=>{for(let n of e?W(e):w.mount)w.mount.delete(n),w.array.delete(n),t.keepValue||(z(o,n),z(g,n)),t.keepError||z(r.errors,n),t.keepDirty||z(r.dirtyFields,n),t.keepTouched||z(r.touchedFields,n),t.keepIsValidating||z(r.validatingFields,n),i.shouldUnregister||t.keepDefaultValue||z(u,n);P.state.next({values:h(g)}),P.state.next({...r,...!t.keepDirty?{}:{isDirty:ec()}}),t.keepIsValid||K()},eC=({disabled:e,name:t})=>{if("boolean"==typeof e&&b.mount||e||w.disabled.has(t)){let i=w.disabled.has(t);e?w.disabled.add(t):w.disabled.delete(t),!!e!==i&&b.mount&&!b.action&&K()}},eL=(e,t={})=>{let r=k(o,e),n="boolean"==typeof t.disabled||"boolean"==typeof i.disabled,a=!w.registerName.has(e)&&r&&r._f&&!r._f.mount;return(_(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),w.mount.add(e),r&&!a)?eC({disabled:"boolean"==typeof t.disabled?t.disabled:i.disabled,name:e}):Z(e,!0,t.value),{...n?{disabled:t.disabled||i.disabled}:{},...i.progressive?{required:!!t.required,min:ei(t.min),max:ei(t.max),minLength:ei(t.minLength),maxLength:ei(t.maxLength),pattern:ei(t.pattern)}:{},name:e,onChange:ew,onBlur:ew,ref:n=>{if(n){let i;w.registerName.add(e),eL(e,t),w.registerName.delete(e),r=k(o,e);let a=y(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,s="radio"===(i=a).type||"checkbox"===i.type,l=r._f.refs||[];(s?l.find(e=>e===a):a===r._f.ref)||(_(o,e,{_f:{...r._f,...s?{refs:[...l.filter($),a,...Array.isArray(k(u,e))?[{}]:[]],ref:{type:a.type,name:e}}:{ref:a}}}),Z(e,!1,void 0,a))}else(r=k(o,e,{}))._f&&(r._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&!(d(w.array,e)&&b.action)&&w.unMount.add(e)}}},eM=()=>i.shouldFocusError&&!i.shouldUseNativeValidation&&es(o,eA,w.mount),eR=(e,t)=>async n=>{let a;n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let s=h(g);if(P.state.next({isSubmitting:!0}),i.resolver){let{errors:e,values:t}=await J();G(),r.errors=e,s=h(t)}else await eu({fields:o,eventType:m.SUBMIT});if(w.disabled.size)for(let e of w.disabled)z(s,e);if(z(r.errors,v),B(r.errors)){P.state.next({errors:{}});try{await e(s,n)}catch(e){a=e}}else t&&await t({...r.errors},n),eM(),setTimeout(eM);if(P.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:B(r.errors)&&!a,submitCount:r.submitCount+1,errors:r.errors}),a)throw a},eD=(e,t={})=>{let n=e?h(e):u,a=h(n),s=B(e);if(t.keepDefaultValues||(u=n),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...w.mount,...Object.keys(q(u,g))]))){let t=k(r.dirtyFields,e),i=k(g,e),n=k(a,e);t&&!y(i)?_(a,e,i):t||y(n)||ey(e,n)}else{if(c&&y(e))for(let e of w.mount){let t=k(o,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(j(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of w.mount)ey(e,k(a,e));else o={}}if(i.shouldUnregister){if(g=t.keepDefaultValues?h(u):{},t.keepFieldsRef)for(let e of w.mount)_(g,e,k(a,e))}else g=h(a);P.array.next({values:{...a}}),P.state.next({name:void 0,type:void 0,values:{...a}})}w={mount:t.keepDirtyValues?w.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!D.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!i.shouldUnregister&&!B(a),b.watch=!!i.shouldUnregister,b.keepIsValid=!!t.keepIsValid,b.action=!1,t.keepErrors||(r.errors={}),P.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!s&&(t.keepDirty?r.isDirty:t.keepValues?ec():!!(t.keepDefaultValues&&!O(e,u))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:s?{}:t.keepDirtyValues?t.keepDefaultValues&&g?q(u,g):r.dirtyFields:t.keepDefaultValues&&e?q(u,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1,defaultValues:u})},eO=(e,t)=>eD(x(e)?e(g):e,{...i.resetOptions,...t}),eN=e=>{let{name:t,type:i,values:n,...a}=e;r={...r,...a}},eP={control:{register:eL,unregister:eI,getFieldState:ex,handleSubmit:eR,setError:eT,_subscribe:eS,_runSchema:J,_updateIsValidating:G,_focusError:eM,_getWatch:ev,_getDirty:ec,_setValid:K,_setFieldArray:(e,t=[],n,a,s=!0,l=!0)=>
1{if(a&&n&&!i.disabled){if(b.action=!0,l&&Array.isArray(k(o,e))){let t=n(k(o,e),a.argA,a.argB);s&&_(o,e,t)}if(l&&Array.isArray(k(r.errors,e))){let t,i=n(k(r.errors,e),a.argA,a.argB);s&&_(r.errors,e,i),F(k(t=r.errors,e)).length||z(t,e)}if((D.touchedFields||N.touchedFields)&&l&&Array.isArray(k(r.touchedFields,e))){let t=n(k(r.touchedFields,e),a.argA,a.argB);s&&_(r.touchedFields,e,t)}(D.dirtyFields||N.dirtyFields)&&Y(),P.state.next({name:e,isDirty:ec(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else _(g,e,t)},_setDisabledField:eC,_setErrors:e=>{r.errors=e,P.state.next({errors:r.errors,isValid:!1})},_getFieldArray:e=>F(k(b.mount?g:u,e,i.shouldUnregister?k(u,e,[]):[])),_reset:eD,_resetDefaultValues:()=>x(i.defaultValues)&&i.defaultValues().then(e=>{eO(e,i.resetOptions),P.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of w.unMount){let t=k(o,e);t&&(t._f.refs?t._f.refs.every(e=>!$(e)):!$(t._f.ref))&&eI(e)}w.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(P.state.next({disabled:e}),es(o,(t,i)=>{let r=k(o,i);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:P,_proxyFormState:D,get _fields(){return o},get _formValues(){return g},get _state(){return b},set _state(value){b=value},get _defaultValues(){return u},get _names(){return w},set _names(value){w=value},get _formState(){return r},get _options(){return i},set _options(value){I=er((i={...i,...value}).mode),C=er(i.reValidateMode)}},subscribe:e=>(b.mount=!0,N={...N,...e.formState},eS({...e,formState:{...R,...e.formState}})),trigger:ek,register:eL,handleSubmit:eR,watch:(e,t)=>{if(x(e)){S++;let{unsubscribe:i}=P.state.subscribe({next:i=>"values"in i&&e(i.values||ev(void 0,t),i)}),r=!1;return{unsubscribe:()=>{r||(r=!0,S--,i())}}}return ev(e,t,!0)},setValue:ey,setValues:(e,t={})=>{let i=x(e)?e(g):e;if(!O(g,i)){g={...g,...i};let e=U(i);for(let i of w.mount)i in e&&eE(i,e[i],t,!0,!0);P.state.next({...r,name:void 0,type:void 0,...S?{values:g}:{}}),t.shouldValidate&&K()}},getValues:(e,t)=>{let i={...b.mount?g:u};return t&&(i=function e(t,i){let r={};for(let n in t)if(t.hasOwnProperty(n)){let a=t[n],o=i[n];if(a&&s(a)&&o){let t=e(a,o);s(t)&&(r[n]=t)}else t[n]&&(r[n]=o)}return r}(t.dirtyFields?r.dirtyFields:r.touchedFields,i)),y(e)?i:L(e)?k(i,e):e.map(e=>k(i,e))},reset:eO,resetField:(e,t={})=>{k(o,e)&&(y(t.defaultValue)?ey(e,h(k(u,e))):(ey(e,t.defaultValue),_(u,e,h(t.defaultValue))),t.keepTouched||z(r.touchedFields,e),t.keepDirty||(z(r.dirtyFields,e),r.isDirty=t.defaultValue?ec(e,h(k(u,e))):ec()),!t.keepError&&(z(r.errors,e),D.isValid&&K()),P.state.next({...r}))},resetDefaultValues:(e,t={})=>{if(u=h(e),!t.keepDirty){let e=q(u,g);r.dirtyFields=e,r.isDirty=!B(e)}t.keepIsValid||K(),P.state.next({...r,defaultValues:u})},clearErrors:e_,unregister:eI,setError:eT,setFocus:(e,t={})=>{let i=k(o,e),r=i&&i._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&x(e.select)&&e.select()})}},getFieldState:ex};return{...eP,formControl:eP}}(e);t.current={...r,formState:u}}let b=t.current.control;return b._options=e,C(()=>{let e=b._subscribe({formState:b._proxyFormState,callback:()=>g({...b._formState,defaultValues:b._defaultValues}),reRenderRoot:!0});return g(e=>({...e,isReady:!0})),b._formState.isReady=!0,e},[b]),r.useEffect(()=>b._disableForm(e.disabled),[b,e.disabled]),r.useEffect(()=>{e.mode&&(b._options.mode=e.mode),e.reValidateMode&&(b._options.reValidateMode=e.reValidateMode)},[b,e.mode,e.reValidateMode]),r.useEffect(()=>{e.errors&&(b._setErrors(e.errors),b._focusError())},[b,e.errors]),r.useEffect(()=>{e.shouldUnregister&&b._subjects.state.next({values:b._getWatch()})},[b,e.shouldUnregister]),r.useEffect(()=>{if(b._proxyFormState.isDirty){let e=b._getDirty();e!==u.isDirty&&b._subjects.state.next({isDirty:e})}},[b,u.isDirty]),r.useEffect(()=>{var t;e.values&&!O(e.values,i.current)?(b._reset(e.values,{keepFieldsRef:!0,...b._options.resetOptions}),(null==(t=b._options.resetOptions)?void 0:t.keepIsValid)||b._setValid(),i.current=e.values,g(e=>({...e}))):b._resetDefaultValues()},[b,e.values]),r.useEffect(()=>{b._state.mount||(b._setValid(),b._state.mount=!0),b._state.watch&&(b._state.watch=!1,b._subjects.state.next({...b._formState})),b._removeUnmounted()}),t.current.formState=r.useMemo(()=>I(u,b),[b,u]),t.current}},7493:(e,t,i)=>{i.d(t,{A:()=>a});var r=i(52936),n=i(55524);function a(e,t=[]){let i=[],o=()=>{let t=i.map(e=>r.createContext(e));return function(i){let n=i?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...i,[e]:n}}),[i,n])}};return o.scopeName=e,[function(t,a){let o=r.createContext(a);o.displayName=t+"Context";let s=i.length;i=[...i,a];let l=t=>{let{scope:i,children:a,...l}=t,d=i?.[e]?.[s]||o,u=r.useMemo(()=>l,Object.values(l));return(0,n.jsx)(d.Provider,{value:u,children:a})};return l.displayName=t+"Provider",[l,function(i,n,l={}){let{optional:d=!1}=l,u=n?.[e]?.[s]||o,c=r.useContext(u);if(c)return c;if(void 0!==a)return a;
1if(!d)throw Error(`\`${i}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let i=()=>{let i=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=i.reduce((t,{useScope:i,scopeName:r})=>{let n=i(e)[`__scope${r}`];return{...t,...n}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return i.scopeName=t.scopeName,i}(o,...t)]}},7734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return i}});let i=e=>{}},10515:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=i(61374)._(i(52936)).default.createContext(null)},10706:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return f},defaultHead:function(){return c}});let r=i(61374),n=i(64983),a=i(55524),o=n._(i(52936)),s=r._(i(48911)),l=i(84102),d=i(5012),u=i(66138);function c(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}i(15952);let m=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:i}=t;return e.reduce(h,[]).reverse().concat(c(i).reverse()).filter(function(){let e=new Set,t=new Set,i=new Set,r={};return n=>{let a=!0,o=!1;if(n.key&&"number"!=typeof n.key&&n.key.indexOf("$")>0){o=!0;let t=n.key.slice(n.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(n.type){case"title":case"base":t.has(n.type)?a=!1:t.add(n.type);break;case"meta":for(let e=0,t=m.length;e<t;e++){let t=m[e];if(n.props.hasOwnProperty(t))if("charSet"===t)i.has(t)?a=!1:i.add(t);else{let e=n.props[t],i=r[t]||new Set;("name"!==t||!o)&&i.has(e)?a=!1:(i.add(e),r[t]=i)}}}return a}}()).reverse().map((e,t)=>{let i=e.key||t;return o.default.cloneElement(e,{key:i})})}let f=function(e){let{children:t}=e,i=(0,o.useContext)(l.AmpStateContext),r=(0,o.useContext)(d.HeadManagerContext);return(0,a.jsx)(s.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,u.isInAmpMode)(i),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11312:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});let r=i(52936);function n(e,t){let i=(0,r.useRef)(null),n=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=i.current;e&&(i.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(i.current=a(e,r)),t&&(n.current=a(t,r))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let i=e(t);return"function"==typeof i?i:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11340:(e,t,i)=>{i.d(t,{X:()=>a});var r=i(52936),n=i(36522);function a(e){let[t,i]=r.useState(void 0);return(0,n.N)(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,n;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,n=t.blockSize}else r=e.offsetWidth,n=e.offsetHeight;i({width:r,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),t}},16373:(e,t,i)=>{i.d(t,{I:()=>w});var r,n,a,o,s,l,d,u,c=function(){return"undefined"!=typeof window},h=function(){return r||c()&&(r=window.gsap)&&r.registerPlugin&&r},m=function(e){return"string"==typeof e},p=function(e){return"function"==typeof e},f=function(e,t){var i="x"===t?"Width":"Height",r="scroll"+i,n="client"+i;return e===a||e===o||e===s?Math.max(o[r],s[r])-(a["inner"+i]||o[n]||s[n]):e[r]-e["offset"+i]},v=function(e,t){var i="scroll"+("x"===t?"Left":"Top");return e===a&&(null!=e.pageXOffset?i="page"+t.toUpperCase()+"Offset":e=null!=o[i]?o:s),function(){return e[i]}},g=function(e,t,i,r){if(p(e)&&(e=e(t,i,r)),"object"!=typeof e)return m(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};
1if(e.nodeType)return{y:e,x:e};var n,a={};for(n in e)a[n]="onAutoKill"!==n&&p(e[n])?e[n](t,i,r):e[n];return a},b=function(e,t){if(!(e=l(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var i=e.getBoundingClientRect(),r=!t||t===a||t===s,n=r?{top:o.clientTop-(a.pageYOffset||o.scrollTop||s.scrollTop||0),left:o.clientLeft-(a.pageXOffset||o.scrollLeft||s.scrollLeft||0)}:t.getBoundingClientRect(),d={x:i.left-n.left,y:i.top-n.top};return!r&&t&&(d.x+=v(t,"x")(),d.y+=v(t,"y")()),d},E=function(e,t,i,r,n){return isNaN(e)||"object"==typeof e?m(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+r-n:"max"===e?f(t,i)-n:Math.min(f(t,i),b(e,t)[i]-n):parseFloat(e)-n},y=function(){r=h(),c()&&r&&"undefined"!=typeof document&&document.body&&(a=window,s=document.body,o=document.documentElement,l=r.utils.toArray,r.config({autoKillThreshold:7}),d=r.config(),n=1)},w={version:"3.15.0",name:"scrollTo",rawVars:1,register:function(e){r=e,y()},init:function(e,t,i,o,s){n||y();var l=r.getProperty(e,"scrollSnapType");this.isWin=e===a,this.target=e,this.tween=i,t=g(t,o,e,s),this.vars=t,this.autoKill=!!("autoKill"in t?t:d).autoKill,this.getX=v(e,"x"),this.getY=v(e,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),u||(u=r.core.globals().ScrollTrigger),"smooth"===r.getProperty(e,"scrollBehavior")&&r.set(e,{scrollBehavior:"auto"}),l&&"none"!==l&&(this.snap=1,this.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=t.x?(this.add(this,"x",this.x,E(t.x,e,"x",this.x,t.offsetX||0),o,s),this._props.push("scrollTo_x")):this.skipX=1,null!=t.y?(this.add(this,"y",this.y,E(t.y,e,"y",this.y,t.offsetY||0),o,s),this._props.push("scrollTo_y")):this.skipY=1},render:function(e,t){for(var i,r,n,o,s,l=t._pt,c=t.target,h=t.tween,m=t.autoKill,p=t.xPrev,v=t.yPrev,g=t.isWin,b=t.snap,E=t.snapInline;l;)l.r(e,l.d),l=l._next;i=g||!t.skipX?t.getX():p,n=(r=g||!t.skipY?t.getY():v)-v,o=i-p,s=d.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),m&&(!t.skipX&&(o>s||o<-s)&&i<f(c,"x")&&(t.skipX=1),!t.skipY&&(n>s||n<-s)&&r<f(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(h.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(h,t.vars.onAutoKillParams||[]))),g?a.scrollTo(t.skipX?i:t.x,t.skipY?r:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),b&&(1===e||0===e)&&(r=c.scrollTop,i=c.scrollLeft,E?c.style.scrollSnapType=E:c.style.removeProperty("scroll-snap-type"),c.scrollTop=r+1,c.scrollLeft=i+1,c.scrollTop=r,c.scrollLeft=i),t.xPrev=t.x,t.yPrev=t.y,u&&u.update()},kill:function(e){var t="scrollTo"===e,i=this._props.indexOf(e);return(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1),i>-1&&this._props.splice(i,1),!this._props.length}};w.max=f,w.getOffset=b,w.buildGetter=v,w.config=function(e){for(var t in d||y()||(d=r.config()),e)d[t]=e[t]},h()&&r.registerPlugin(w)},16620:(e,t,i)=>{i.d(t,{B:()=>l});var r,n=i(52936),a=i(36522),o=(r||(r=i.t(n,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,i]=n.useState(o());return(0,a.N)(()=>{e||i(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},18409:(e,t,i)=>{i.d(t,{Qg:()=>o,bL:()=>l});var r=i(52936),n=i(76589),a=i(55524),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=r.forwardRef((e,t)=>(0,a.jsx)(n.sG.span,{...e,ref:t,style:{...o,...e.style}}));s.displayName="VisuallyHidden";var l=s},19125:(e,t)=>{function i(e){let t={};for(let[i,r]of e.entries()){let e=t[i];void 0===e?t[i]=r:Array.isArray(e)?e.push(r):t[i]=[e,r]}return t}function r(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function n(e){let t=new URLSearchParams;for(let[i,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(i,r(e));else t.set(i,r(n));return t}function a(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];for(let t of i){for(let i of t.keys())e.delete(i);for(let[i,r]of t.entries())e.append(i,r)}return e}
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return n}})},20465:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),i(15952);let r=i(71354),n=i(92774),a=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var i,l;let d,u,c,{src:h,sizes:m,unoptimized:p=!1,priority:f=!1,loading:v,className:g,quality:b,width:E,height:y,fill:w=!1,style:A,overrideSrc:k,onLoad:x,onLoadingComplete:_,placeholder:T="empty",blurDataURL:S,fetchPriority:I,decoding:C="async",layout:L,objectFit:M,objectPosition:R,lazyBoundary:D,lazyRoot:O,...N}=e,{imgConf:P,showAltText:U,blurComplete:V,defaultLoader:F}=t,W=P||n.imageConfigDefault;if("allSizes"in W)d=W;else{let e=[...W.deviceSizes,...W.imageSizes].sort((e,t)=>e-t),t=W.deviceSizes.sort((e,t)=>e-t),r=null==(i=W.qualities)?void 0:i.sort((e,t)=>e-t);d={...W,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===F)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let H=N.loader||F;delete N.loader,delete N.srcSet;let B="__next_img_default"in H;if(B){if("custom"===d.loader)throw Object.defineProperty(Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=H;H=t=>{let{config:i,...r}=t;return e(r)}}if(L){"fill"===L&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[L];e&&(A={...A,...e});let t={responsive:"100vw",fill:"100vw"}[L];t&&!m&&(m=t)}let j="",$=s(E),z=s(y);if((l=h)&&"object"==typeof l&&(o(l)||void 0!==l.src)){let e=o(h)?h.default:h;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(u=e.blurWidth,c=e.blurHeight,S=S||e.blurDataURL,j=e.src,!w)if($||z){if($&&!z){let t=$/e.width;z=Math.round(e.height*t)}else if(!$&&z){let t=z/e.height;$=Math.round(e.width*t)}}else $=e.width,z=e.height}let K=!f&&("lazy"===v||void 0===v);(!(h="string"==typeof h?h:j)||h.startsWith("data:")||h.startsWith("blob:"))&&(p=!0,K=!1),d.unoptimized&&(p=!0),B&&!d.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(p=!0);let G=s(b),q=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:R}:{},U?{}:{color:"transparent"},A),Y=V||"empty"===T?null:"blur"===T?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:$,heightInt:z,blurWidth:u,blurHeight:c,blurDataURL:S||"",objectFit:q.objectFit})+'")':'url("'+T+'")',Z=a.includes(q.objectFit)?"fill"===q.objectFit?"100% 100%":"cover":q.objectFit,Q=Y?{backgroundSize:Z,backgroundPosition:q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},X=function(e){let{config:t,src:i,unoptimized:r,width:n,quality:a,sizes:o,loader:s}=e;if(r)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:d}=function(e,t,i){let{deviceSizes:r,allSizes:n}=e;if(i){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(i);)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:n.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:n,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>n.find(t=>t>=e)||n[n.length-1]))],kind:"x"}}(t,n,o),u=l.length-1;return{sizes:o||"w"!==d?o:"100vw",srcSet:l.map((e,r)=>s({config:t,src:i,quality:a,width:e})+" "+("w"===d?e:r+1)+d).join(", "),src:s({config:t,src:i,quality:a,width:l[u]})}}({config:d,src:h,unoptimized:p,width:$,quality:G,sizes:m,loader:H});return{props:{...N,loading:K?"lazy":v,fetchPriority:I,width:$,height:z,decoding:C,className:g,style:{...q,...Q},sizes:X.sizes,srcSet:X.srcSet,src:k||X.src},meta:{unoptimized:p,priority:f,placeholder:T,fill:w}}}},23017:(e,t,i)=>{let r,n,a,o,s;i.d(t,{A:()=>dz});var l,d,u,c,h,m,p,f,v,g,b,E,y,w,A,k,x,_,T,S,I,C,L,M,R,D,O,N,P,U,V,F,W,H,B,j,$,z,K,G,q,Y,Z,Q,X,J,ee,et,ei,er,en,ea,eo,es,el,ed,eu,ec,eh,em,ep,ef,ev,eg,eb,eE,ey,ew,eA,ek,ex,e_,eT,eS,eI,eC,eL,eM,eR,eD,eO,eN,eP,eU,eV,eF,eW,eH,eB,ej,e$,ez,eK,eG,eq,eY,eZ,eQ,eX,eJ,e0,e1,e2,e5,e3,e4,e7,e8,e6,e9,te,tt,ti,tr,tn,ta,to,ts,tl,td,tu,tc,th,tm,tp,tf,tv,tg,tb,tE,ty,tw,tA,tk,tx,t_,tT,tS,tI,tC,tL,tM,tR,tD,tO,tN,tP,tU,tV,tF,tW,tH,tB,tj,t$,tz,tK,tG,tq,tY,tZ,tQ,tX,tJ,t0,t1,t2,t5,t3,t4,t7,t8,t6,t9,ie,it,ii,ir,ia,io,is,il,id,iu,ic,ih,im,ip,iv,ig,ib,iE,iy,iw,iA,ik,ix,i_,iT,iS,iI,iC,iL,iM,iR,iD,iO,iN,iP,iU,iV,iF,iW,iH,iB,ij,i$,iz,iK,iG,iq,iY,iZ,iQ,iX,iJ,i0,i1,i2,i5,i3,i4,i7,i8,i6,i9,re,rt,ri,rr,rn,ra,ro,rs,rl,rd,ru,rc,rh,rm,rp,rf,rv,rg,rb,rE,ry,rw,rA,rk,rx,r_,rT,rS,rI,rC,rL,rM={};i.r(rM),i.d(rM,{getPlaybackId:()=>dR,getPosterURLFromPlaybackId:()=>dD,transform:()=>dM});var rR={};i.r(rR),i.d(rR,{transform:()=>dW});var rD={};i.r(rD),i.d(rD,{transform:()=>dH});var rO={};i.r(rO),i.d(rO,{transform:()=>dB});var rN={};i.r(rN),i.d(rN,{transform:()=>dj});var rP={};i.r(rP),i.d(rP,{amazonS3:()=>rO,backblaze:()=>rD,cloudflareR2:()=>rN,mux:()=>rM,vercelBlob:()=>rR});var rU=i(55524),rV=i(52936);let rF={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:"mediash
1owtexttracksrequest",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"},rW={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},rH={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
1LAYED:"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"},rB=Object.entries(rH),rj=rB.reduce((e,[t,i])=>(e[t]=i.toLowerCase(),e),{}),r$=rB.reduce((e,[t,i])=>(e[t]=i.toLowerCase(),e),{USER_INACTIVE_CHANGE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"});Object.entries(r$).reduce((e,[t,i])=>{let r=rj[t];return r&&(e[i]=r),e},{userinactivechange:"userinactive"});let rz=Object.entries(rj).reduce((e,[t,i])=>{let r=r$[t];return r&&(e[i]=r),e},{userinactive:"userinactivechange"}),rK={SUBTITLES:"subtitles",CAPTIONS:"captions",CHAPTERS:"chapters",METADATA:"metadata"},rG={DISABLED:"disabled",SHOWING:"showing"},rq={MOUSE:"mouse",PEN:"pen",TOUCH:"touch"},rY={UNAVAILABLE:"unavailable",UNSUPPORTED:"unsupported"},rZ={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"},rQ={FULLSCREEN:"fullscreen"};function rX(e){if(e){let{id:t,width:i,height:r}=e;return[t,i,r].filter(e=>null!=e).join(":")}}function rJ(e){if(e){let[t,i,r]=e.split(":");return{id:t,width:+i,height:+r}}}function r0(e){if(e){let{id:t,kind:i,language:r,label:n}=e;return[t,i,r,n].filter(e=>null!=e).join(":")}}function r1(e){if(e){let[t,i,r,n]=e.split(":");return{id:t,kind:i,language:r,label:n}}}function r2(e){return"number"==typeof e&&!Number.isNaN(e)&&Number.isFinite(e)}function r5(e){return"string"==typeof e&&!isNaN(e)&&!isNaN(parseFloat(e))}let r3=e=>new Promise(t=>setTimeout(t,e)),r4={en:{"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
1ource 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."}},r7=(null==(l=globalThis.navigator)?void 0:l.language)||"en",r8=(e,t={})=>(e=>{var t,i,r;let[n]=r7.split("-");return(null==(t=r4[r7])?void 0:t[e])||(null==(i=r4[n])?void 0:i[e])||(null==(r=r4.en)?void 0:r[e])||e})(e).replace(/\{(\w+)\}/g,(e,i)=>i in t?String(t[i]):`{${i}}`),r6=[{singular:"hour",plural:"hours"},{singular:"minute",plural:"minutes"},{singular:"second",plural:"seconds"}],r9=e=>{if(!r2(e))return"";let t=Math.abs(e),i=t!==e,r=new Date(0,0,0,0,0,t,0),n=[r.getHours(),r.getMinutes(),r.getSeconds()].map((e,t)=>e&&((e,t)=>{let i=1===e?r8(r6[t].singular):r8(r6[t].plural);return`${e} ${i}`})(e,t)).filter(e=>e).join(", ");return i?r8("{time} remaining",{time:n}):n};function ne(e,t){let i=!1;e<0&&(i=!0,e=0-e);let r=Math.floor((e=e<0?0:e)%60),n=Math.floor(e/60%60),a=Math.floor(e/3600),o=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(a=n=r="0"),n=(((a=a>0||s>0?a+":":"")||o>=10)&&n<10?"0"+n:n)+":",(i?"-":"")+a+n+(r=r<10?"0"+r:r)}Object.freeze({length:0,start(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0}});class nt{addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}}class ni extends nt{}class nr extends ni{constructor(){super(...arguments),this.role=null}}class nn{observe(){}unobserve(){}disconnect(){}}let na={createElement:function(){return new no.HTMLElement},createElementNS:function(){return new no.HTMLElement},addEventListener(){},removeEventListener(){},dispatchEvent:e=>!1},no={ResizeObserver:nn,document:na,Node:ni,Element:nr,HTMLElement:class extends nr{constructor(){super(...arguments),this.innerHTML=""}get content(){return new no.DocumentFragment}},DocumentFragment:class extends nt{},customElements:{get:function(){},define:function(){},whenDefined:function(){}},localStorage:{getItem:e=>null,setItem(e,t){},removeItem(e){}},CustomEvent:function(){},getComputedStyle:function(){},navigator:{languages:[],get userAgent(){return""}},matchMedia:e=>({matches:!1,media:e}),DOMParser:class{parseFromString(e,t){return{body:{textContent:e}}}}},ns="global"in globalThis&&(null==globalThis?void 0:globalThis.global)===globalThis||"undefined"==typeof window||void 0===window.customElements,nl=Object.keys(no).every(e=>e in globalThis),nd=ns&&!nl?no:globalThis,nu=ns&&!nl?na:globalThis.document,nc=new WeakMap,nh=e=>{let t=nc.get(e);return t||nc.set(e,t=new Set),t},nm=new nd.ResizeObserver(e=>{for(let t of e)for(let e of nh(t.target))e(t)});function np(e,t){nh(e).add(t),nm.observe(e)}function nf(e,t){let i=nh(e);i.delete(t),i.size||nm.unobserve(e)}function nv(e){let t={};for(let i of e)t[i.name]=i.value;return t}function ng(e){var t;return null!=(t=nb(e))?t:nA(e,"media-controller")}function nb(e){var t;let{MEDIA_CONTROLLER:i}=rW,r=e.getAttribute(i);if(r)return null==(t=nx(e))?void 0:t.getElementById(r)}let nE=(e,t,i=".value")=>{let r=e.querySelector(i);r&&(r.textContent=t)},ny=(e,t)=>((e,t)=>{let i=`slot[name="${t}"]`,r=e.shadowRoot.querySelector(i);return r?r.children:[]})(e,t)[0],nw=(e,t)=>!!e&&!!t&&(null!=e&&!!e.contains(t)||nw(e,t.getRootNode().host)),nA=(e,t)=>{if(!e)return null;let i=e.closest(t);return i||nA(e.getRootNode().host,t)};function nk(e=document){var t;let i=null==e?void 0:e.activeElement;return i?null!=(t=nk(i.shadowRoot))?t:i:null}function nx(e){var t;let i=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e);return i instanceof ShadowRoot||i instanceof Document?i:null}function n_(e,{depth:t=3,checkOpacity:i=!0,checkVisibilityCSS:r=!0}={}){if(e.checkVisibility)return e.checkVisibility({checkOpacity:i,checkVisibilityCSS:r});let n=e;for(;n&&t>0;){let e=getComputedStyle(n);if(i&&"0"===e.opacity||r&&"hidden"===e.visibility||"none"===e.display)return!1;n=n.parentElement,t--}return!0}function nT(e,t){let i=function(e,t){var i,r;let n;for(n of null!=(i=e.querySelectorAll("style:not([media])"))?i:[]){let e;try{e=null==(r=n.sheet)?void 0:r.cssRules}catch{continue}for(let i of null!=e?e:[])if(t(i.selectorText))return i}}(e,e=>e===t);return i||nS(e,t)}function nS(e,t){var i,r;let n=null!=(i=e.querySelectorAll("style:not([media])"))?i:[],a=null==n?void 0:n[n.length-1];if(!(null==a?void 0:a.sheet))return console.warn("Media Chrome: No style sheet found on style tag of",e),{style:{setProperty:()=>{},removeProperty:()=>"",getPropertyValue:()=>""}};let o=null==a?void 0:a.sheet.insertRule(`${t}{}`,a.sheet.cssRules.length);return null==(r=a.sheet.cssRules)?void 0:r[o]}function nI(e,t,i=NaN){let r=e.getAttribute(t);return null!=r?+r:i}function nC(e,t,i){let r=+i;if(null==i||Number.isNaN(r)){e.hasAttribute(t)&&e.removeAttribute(t);return}nI(e,t,void 0)!==r&&e.setAttribute(t,`${r}`)}function nL(e,t){return e.hasAttribute(t)}function nM(e,t,i){if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}nL(e,t)!=i&&e.toggleAttribute(t,i)}function nR(e,t,i=null){var r;return null!=(r=e.getAttribute(t))?r:i}function nD(e,t,i){if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}let r=`${i}`;nR(e,t,void 0)!==r&&e.setAttribute(t,r)}var nO=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nN=(e,t,i)=>(nO(e,t,"read from private field"),i?i.call(e):t.get(e)),nP=(e,t,i,r)=>(nO(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);
1class nU extends nd.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,d,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[rW.MEDIA_CONTROLLER,rj.MEDIA_PAUSED]}attributeChangedCallback(e,t,i){var r,n,a,o,s;e===rW.MEDIA_CONTROLLER&&(t&&(null==(n=null==(r=nN(this,d))?void 0:r.unassociateElement)||n.call(r,this),nP(this,d,null)),i&&this.isConnected&&(nP(this,d,null==(a=this.getRootNode())?void 0:a.getElementById(i)),null==(s=null==(o=nN(this,d))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),nP(this,d,function(e){var t;let i=e.getAttribute(rW.MEDIA_CONTROLLER);return i?null==(t=e.getRootNode())?void 0:t.getElementById(i):nA(e,"media-controller")}(this)),this.getAttribute(rW.MEDIA_CONTROLLER)&&(null==(t=null==(e=nN(this,d))?void 0:e.associateElement)||t.call(e,this)),nN(this,d)&&(nN(this,d).addEventListener("pointerdown",this),nN(this,d).addEventListener("click",this),nN(this,d).hasAttribute("tabindex")||(nN(this,d).tabIndex=0))}disconnectedCallback(){var e,t,i,r;this.getAttribute(rW.MEDIA_CONTROLLER)&&(null==(t=null==(e=nN(this,d))?void 0:e.unassociateElement)||t.call(e,this)),null==(i=nN(this,d))||i.removeEventListener("pointerdown",this),null==(r=nN(this,d))||r.removeEventListener("click",this),nP(this,d,null)}handleEvent(e){var t;let i=null==(t=e.composedPath())?void 0:t[0];if(["video","media-controller"].includes(null==i?void 0:i.localName)){if("pointerdown"===e.type)this._pointerType=e.pointerType;else if("click"===e.type){let{clientX:t,clientY:i}=e,{left:r,top:n,width:a,height:o}=this.getBoundingClientRect(),s=t-r,l=i-n;if(s<0||l<0||s>a||l>o||0===a&&0===o)return;let d=this._pointerType||"mouse";if(this._pointerType=void 0,d===rq.TOUCH)return void this.handleTap(e);if(d===rq.MOUSE||d===rq.PEN)return void this.handleMouseClick(e)}}}get mediaPaused(){return nL(this,rj.MEDIA_PAUSED)}set mediaPaused(e){nM(this,rj.MEDIA_PAUSED,e)}handleTap(e){}handleMouseClick(e){let t=this.mediaPaused?rF.MEDIA_PLAY_REQUEST:rF.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new nd.CustomEvent(t,{composed:!0,bubbles:!0}))}}d=new WeakMap,nU.shadowRootOptions={mode:"open"},nU.getTemplateHTML=function(e){return`
2    <style>
3      :host {
4        display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block));
5        box-sizing: border-box;
6      }
7    </style>
8  `},nd.customElements.get("media-gesture-receiver")||nd.customElements.define("media-gesture-receiver",nU);var nV=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nF=(e,t,i)=>(nV(e,t,"read from private field"),i?i.call(e):t.get(e)),nW=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nH=(e,t,i,r)=>(nV(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),nB=(e,t,i)=>(nV(e,t,"access private method"),i);let nj={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive",AUTOHIDE_OVER_CONTROLS:"autohideovercontrols"},n$=Object.values(rj);function nz(e,t){var i,r,n;if(!e.isConnected)return;let a=Object.fromEntries((null!=(i=e.getAttribute(nj.BREAKPOINTS))?i:"sm:384 md:576 lg:768 xl:960").split(/\s+/).map(e=>e.split(":"))),o=(r=a,n=t,Object.keys(r).filter(e=>n>=parseInt(r[e]))),s=!1;if(Object.keys(a).forEach(t=>{if(o.includes(t)){e.hasAttribute(`breakpoint${t}`)||(e.setAttribute(`breakpoint${t}`,""),s=!0);return}e.hasAttribute(`breakpoint${t}`)&&(e.removeAttribute(`breakpoint${t}`),s=!0)}),s){let t=new CustomEvent(r$.BREAKPOINTS_CHANGE,{detail:o});e.dispatchEvent(t)}e.breakpointsComputed||(e.breakpointsComputed=!0,e.dispatchEvent(new CustomEvent(r$.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))}class nK extends nd.HTMLElement{constructor(){if(super(),nW(this,b),nW(this,y),nW(this,A),nW(this,x),nW(this,T),nW(this,u,void 0),nW(this,c,0),nW(this,h,null),nW(this,m,null),nW(this,p,void 0),this.breakpointsComputed=!1,nW(this,f,e=>{let t=this.media;for(let i of e)if("childList"===i.type){for(let e of i.removedNodes
8){if("media"!=e.slot||i.target!=this)continue;let r=i.previousSibling&&i.previousSibling.previousElementSibling;if(r&&t){let t="media"!==r.slot;for(;null!==(r=r.previousSibling);)"media"==r.slot&&(t=!1);t&&this.mediaUnsetCallback(e)}else this.mediaUnsetCallback(e)}if(t)for(let e of i.addedNodes)e===t&&this.handleMediaUpdated(t)}}),nW(this,v,!1),nW(this,g,e=>{nF(this,v)||(setTimeout(()=>{!function(e){nz(e.target,e.contentRect.width)}(e),nH(this,v,!1)},0),nH(this,v,!0))}),nW(this,I,void 0),nW(this,C,()=>{if(!nF(this,I).assignedElements({flatten:!0}).length){nF(this,h)&&this.mediaUnsetCallback(nF(this,h));return}this.handleMediaUpdated(this.media)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}nH(this,u,new MutationObserver(nF(this,f)))}static get observedAttributes(){return[nj.AUTOHIDE,nj.GESTURES_DISABLED].concat(n$).filter(e=>![rj.MEDIA_RENDITION_LIST,rj.MEDIA_AUDIO_TRACK_LIST,rj.MEDIA_CHAPTERS_CUES,rj.MEDIA_WIDTH,rj.MEDIA_HEIGHT,rj.MEDIA_ERROR,rj.MEDIA_ERROR_MESSAGE].includes(e))}attributeChangedCallback(e,t,i){e.toLowerCase()==nj.AUTOHIDE&&(this.autohide=i)}get media(){let e=this.querySelector(":scope > [slot=media]");return(null==e?void 0:e.nodeName)=="SLOT"&&(e=e.assignedElements({flatten:!0})[0]),e}async handleMediaUpdated(e){e&&(nH(this,h,e),e.localName.includes("-")&&await nd.customElements.whenDefined(e.localName),this.mediaSetCallback(e))}connectedCallback(){var e;nF(this,u).observe(this,{childList:!0,subtree:!0}),np(this,nF(this,g));let t=null!=this.getAttribute(nj.AUDIO)?r8("audio player"):r8("video player");this.setAttribute("role","region"),this.setAttribute("aria-label",t),this.handleMediaUpdated(this.media),this.setAttribute(nj.USER_INACTIVE,""),nz(this,this.getBoundingClientRect().width);let i=this.querySelector(":scope > slot[slot=media]");i&&(nH(this,I,i),nF(this,I).addEventListener("slotchange",nF(this,C))),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),null==(e=nd.window)||e.addEventListener("mouseup",this)}disconnectedCallback(){var e;nf(this,nF(this,g)),clearTimeout(nF(this,m)),nF(this,u).disconnect(),this.media&&this.mediaUnsetCallback(this.media),null==(e=nd.window)||e.removeEventListener("mouseup",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointermove",this),this.removeEventListener("pointerup",this),this.removeEventListener("mouseleave",this),this.removeEventListener("keyup",this),nF(this,I)&&(nF(this,I).removeEventListener("slotchange",nF(this,C)),nH(this,I,null)),nH(this,v,!1)}mediaSetCallback(e){}mediaUnsetCallback(e){nH(this,h,null)}handleEvent(e){switch(e.type){case"pointerdown":nH(this,c,e.timeStamp);break;case"pointermove":nB(this,b,E).call(this,e);break;case"pointerup":nB(this,y,w).call(this,e);break;case"mouseleave":nB(this,A,k).call(this);break;case"mouseup":this.removeAttribute(nj.KEYBOARD_CONTROL);break;case"keyup":nB(this,T,S).call(this),this.setAttribute(nj.KEYBOARD_CONTROL,"")}}set autohide(e){let t=Number(e);nH(this,p,isNaN(t)?0:t)}get autohide(){return(void 0===nF(this,p)?2:nF(this,p)).toString()}get breakpoints(){return nR(this,nj.BREAKPOINTS)}set breakpoints(e){nD(this,nj.BREAKPOINTS,e)}get audio(){return nL(this,nj.AUDIO)}set audio(e){nM(this,nj.AUDIO,e)}get gesturesDisabled(){return nL(this,nj.GESTURES_DISABLED)}set gesturesDisabled(e){nM(this,nj.GESTURES_DISABLED,e)}get keyboardControl(){return nL(this,nj.KEYBOARD_CONTROL)}set keyboardControl(e){nM(this,nj.KEYBOARD_CONTROL,e)}get noAutohide(){return nL(this,nj.NO_AUTOHIDE)}set noAutohide(e){nM(this,nj.NO_AUTOHIDE,e)}get autohideOverControls(){return nL(this,nj.AUTOHIDE_OVER_CONTROLS)}set autohideOverControls(e){nM(this,nj.AUTOHIDE_OVER_CONTROLS,e)}get userInteractive(){return nL(this,nj.USER_INACTIVE)}set userInteractive(e){nM(this,nj.USER_INACTIVE,e)}}u=new WeakMap,c=new WeakMap,h=new WeakMap,m=new WeakMap,p=new WeakMap,f=new WeakMap,v=new WeakMap,g=new WeakMap,b=new WeakSet,E=function(e){if("mouse"!==e.pointerType&&e.timeStamp-nF(this,c)<250)return;nB(this,x,_).call(this),clearTimeout(nF(this,m));let t=this.hasAttribute(nj.AUTOHIDE_OVER_CONTROLS);([this,this.media].includes(e.target)||t)&&nB(this,T,S).call(this)},y=new WeakSet,w=function(e){if("touch"===e.pointerType){let t=!this.hasAttribute(nj.USER_INACTIVE);[this,this.media].includes(e.target)&&t?nB(this,A,k).call(this):nB(this,T,S).call(this)}else e.composedPath().some(e=>["media-play-button","media-fullscreen-button"].includes(null==e?void 0:e.localName))&&nB(this,T,S).call(this)},A=new WeakSet,k=function(){if(0>nF(this,p)||this.hasAttribute(nj.USER_INACTIVE))return;this.setAttribute(nj.USER_INACTIVE,"");let e=new nd.CustomEvent(r$.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(e)},x=new WeakSet,_=function(){if(!this.hasAttribute(nj.USER_INACTIVE))return;this.removeAttribute(nj.USER_INACTIVE);let e=new nd.CustomEvent(r$.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(e)},T=new WeakSet,S=function(){nB(this,x,_).call(this),clearTimeout(nF(this,m));let e=parseInt(this.autohide);e<0||nH(this,m,setTimeout(()=>{nB(this,A,k).call(this)},1e3*e))},I=new WeakMap,C=new WeakMap,nK.shadowRootOptions={mode:"open"},nK.getTemplateHTML=function(e){return`
9    <style>
10      
11      :host([${rj.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) {
12        outline: none;
13      }
14
15      :host {
16        box-sizing: border-box;
17        position: relative;
18        display: inline-block;
19        line-height: 0;
20        background-color: var(--media-background-color, #000);
21        overflow: hidden;
22      }
23
24      :host(:not([${nj.AUDIO}])) [part~=layer]:not([part~=media-layer]) {
25        position: absolute;
26        top: 0;
27        left: 0;
28        bottom: 0;
29        right: 0;
30        display: flex;
31        flex-flow: column nowrap;
32        align-items: start;
33        pointer-events: none;
34        background: none;
35      }
36
37      slot[name=media] {
38        display: var(--media-slot-display, contents);
39      }
40
41      
42      :host([${nj.AUDIO}]) slot[name=media] {
43        display: var(--media-slot-display, none);
44      }
45
46      
47      :host([${nj.AUDIO}]) [part~=layer][part~=gesture-layer] {
48        height: 0;
49        display: block;
50      }
51
52      
53      :host(:not([${nj.AUDIO}])[${nj.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),
54          :host(:not([${nj.AUDIO}])[${nj.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {
55        display: none;
56      }
57
58      
59      ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([role=dialog]):not([hidden])) {
60        pointer-events: auto;
61      }
62
63      :host(:not([${nj.AUDIO}])) *[part~=layer][part~=centered-layer] {
64        align-items: center;
65        justify-content: center;
66      }
67
68      :host(:not([${nj.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),
69      :host(:not([${nj.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {
70        align-self: stretch;
71        flex-grow: 1;
72      }
73
74      slot[name=middle-chrome] {
75        display: inline;
76        flex-grow: 1;
77        pointer-events: none;
78        background: none;
79      }
80
81      
82      ::slotted([slot=media]),
83      ::slotted([slot=poster]) {
84        width: 100%;
85        height: 100%;
86      }
87
88      
89      :host(:not([${nj.AUDIO}])) .spacer {
90        flex-grow: 1;
91      }
92
93      
94      :host(:-webkit-full-screen) {
95        
96        width: 100% !important;
97        height: 100% !important;
98      }
99
100      
101      ::slotted(:not([slot=media]):not([slot=poster]):not([${nj.NO_AUTOHIDE}]):not([hidden]):not([role=dialog])) {
102        opacity: 1;
103        transition: var(--media-control-transition-in, opacity 0.25s);
104      }
105
106      
107      :host([${nj.USER_INACTIVE}]:not([${rj.MEDIA_PAUSED}]):not([${rj.MEDIA_IS_AIRPLAYING}]):not([${rj.MEDIA_IS_CASTING}]):not([${nj.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${nj.NO_AUTOHIDE}]):not([role=dialog])) {
108        opacity: 0;
109        transition: var(--media-control-transition-out, opacity 1s);
110      }
111
112      :host([${nj.USER_INACTIVE}]:not([${nj.NO_AUTOHIDE}]):not([${rj.MEDIA_PAUSED}]):not([${rj.MEDIA_IS_CASTING}]):not([${nj.AUDIO}])) ::slotted([slot=media]) {
113        cursor: none;
114      }
115
116      :host([${nj.USER_INACTIVE}][${nj.AUTOHIDE_OVER_CONTROLS}]:not([${nj.NO_AUTOHIDE}]):not([${rj.MEDIA_PAUSED}]):not([${rj.MEDIA_IS_CASTING}]):not([${nj.AUDIO}])) * {
117        --media-cursor: none;
118        cursor: none;
119      }
120
121
122      ::slotted(media-control-bar)  {
123        align-self: stretch;
124      }
125
126      
127      :host(:not([${nj.AUDIO}])[${rj.MEDIA_HAS_PLAYED}]) slot[name=poster] {
128        display: none;
129      }
130
131      ::slotted([role=dialog]) {
132        width: 100%;
133        height: 100%;
134        align-self: center;
135      }
136
137      ::slotted([role=menu]) {
138        align-self: end;
139      }
140    </style>
141
142    <slot name="media" part="layer media-layer"></slot>
143    <slot name="poster" part="layer poster-layer"></slot>
144    <slot name="gestures-chrome" part="layer gesture-layer">
145      <media-gesture-receiver slot="gestures-chrome">
146        <template shadowrootmode="${nU.shadowRootOptions.mode}">
147          ${nU.getTemplateHTML({})}
148        </template>
149      </media-gesture-receiver>
150    </slot>
151    <span part="layer vertical-layer">
152      <slot name="top-chrome" part="top chrome"></slot>
153      <slot name="middle-chrome" part="middle chrome"></slot>
154      <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot>
155      
156      <slot part="bottom chrome"></slot>
157    </span>
158    <slot name="dialog" part="layer dialog-layer"></slot>
159  `},nd.customElements.get("media-container")||nd.customElements.define("media-container",nK);var nG=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nq=(e,t,i)=>(nG(e,t,"read from private field"),i?i.call(e):t.get(e)),nY=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nZ=(e,t,i,r)=>(nG(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);
159class nQ{constructor(e,t,{defaultValue:i}={defaultValue:void 0}){nY(this,O),nY(this,L,void 0),nY(this,M,void 0),nY(this,R,void 0),nY(this,D,new Set),nZ(this,L,e),nZ(this,M,t),nZ(this,R,new Set(i))}[Symbol.iterator](){return nq(this,O,N).values()}get length(){return nq(this,O,N).size}get value(){var e;return null!=(e=[...nq(this,O,N)].join(" "))?e:""}set value(e){var t;e!==this.value&&(nZ(this,D,new Set),this.add(...null!=(t=null==e?void 0:e.split(" "))?t:[]))}toString(){return this.value}item(e){return[...nq(this,O,N)][e]}values(){return nq(this,O,N).values()}forEach(e,t){nq(this,O,N).forEach(e,t)}add(...e){var t,i;e.forEach(e=>nq(this,D).add(e)),(""!==this.value||(null==(t=nq(this,L))?void 0:t.hasAttribute(`${nq(this,M)}`)))&&(null==(i=nq(this,L))||i.setAttribute(`${nq(this,M)}`,`${this.value}`))}remove(...e){var t;e.forEach(e=>nq(this,D).delete(e)),null==(t=nq(this,L))||t.setAttribute(`${nq(this,M)}`,`${this.value}`)}contains(e){return nq(this,O,N).has(e)}toggle(e,t){if(void 0!==t)if(t)return this.add(e),!0;else return this.remove(e),!1;return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){return this.remove(e),this.add(t),e===t}}L=new WeakMap,M=new WeakMap,R=new WeakMap,D=new WeakMap,O=new WeakSet,N=function(){return nq(this,D).size?nq(this,D):nq(this,R)};let nX=(e="")=>{let[t,i,r]=e.split(":"),n=r?decodeURIComponent(r):void 0;return{kind:"cc"===t?rK.CAPTIONS:rK.SUBTITLES,language:i,label:n}},nJ=(e="",t={})=>((e="")=>e.split(/\s+/))(e).map(e=>{let i=nX(e);return{...t,...i}}),n0=e=>e?Array.isArray(e)?e.map(e=>"string"==typeof e?nX(e):e):"string"==typeof e?nJ(e):[e]:[],n1=({kind:e,label:t,language:i}={kind:"subtitles"})=>t?`${"captions"===e?"cc":"sb"}:${i}:${encodeURIComponent(t)}`:i,n2=(e=[])=>Array.prototype.map.call(e,n1).join(" "),n5=e=>{let t=Object.entries(e).map(([e,t])=>i=>i[e]===t);return e=>t.every(t=>t(e))},n3=(e,t=[],i=[])=>{let r=n0(i).map(n5);Array.from(t).filter(e=>r.some(t=>t(e))).forEach(t=>{t.mode=e})},n4=(e,t=()=>!0)=>{if(!(null==e?void 0:e.textTracks))return[];let i="function"==typeof t?t:n5(t);return Array.from(e.textTracks).filter(i)},n7=e=>{var t;return!!(null==(t=e.mediaSubtitlesShowing)?void 0:t.length)||e.hasAttribute(rj.MEDIA_SUBTITLES_SHOWING)},n8="exitFullscreen"in nu?"exitFullscreen":"webkitExitFullscreen"in nu?"webkitExitFullscreen":"webkitCancelFullScreen"in nu?"webkitCancelFullScreen":void 0,n6="fullscreenElement"in nu?"fullscreenElement":"webkitFullscreenElement"in nu?"webkitFullscreenElement":void 0,n9="fullscreenEnabled"in nu?"fullscreenEnabled":"webkitFullscreenEnabled"in nu?"webkitFullscreenEnabled":void 0,ae=()=>{var e;return r||(r=null==(e=null==nu?void 0:nu.createElement)?void 0:e.call(nu,"video"))},at=async(e=ae())=>{if(!e)return!1;let t=e.volume;e.volume=t/2+.1;let i=new AbortController,r=await Promise.race([ai(e,i.signal),ar(e,t)]);return i.abort(),r},ai=(e,t)=>new Promise(i=>{e.addEventListener("volumechange",()=>i(!0),{signal:t})}),ar=async(e,t)=>{for(let i=0;i<10;i++){if(e.volume===t)return!1;await r3(10)}return e.volume!==t},an=/.*Version\/.*Safari\/.*/.test(nd.navigator.userAgent),aa=(e=ae())=>(!nd.matchMedia("(display-mode: standalone)").matches||!an)&&"function"==typeof(null==e?void 0:e.requestPictureInPicture),ao=(e=ae())=>(e=>{let{documentElement:t,media:i}=e;return!!(null==t?void 0:t[n9])||i&&"webkitSupportsFullscreen"in i})({documentElement:nu,media:e}),as=ao(),al=aa(),ad=!!nd.WebKitPlaybackTargetAvailabilityEvent,au=!!nd.chrome,ac=e=>n4(e.media,e=>[rK.SUBTITLES,rK.CAPTIONS].includes(e.kind)).sort((e,t)=>e.kind>=t.kind?1:-1),ah=e=>n4(e.media,e=>e.mode===rG.SHOWING&&[rK.SUBTITLES,rK.CAPTIONS].includes(e.kind)),am=(e,t)=>{let i=ac(e),r=ah(e),n=!!r.length;if(i.length){if(!1===t||n&&!0!==t)n3(rG.DISABLED,i,r);else if(!0===t||!n&&!1!==t){let t=i[0],{options:n}=e;if(!(null==n?void 0:n.noSubtitlesLangPref)){let e=nd.localStorage.getItem("media-chrome-pref-subtitles-lang"),r=e?[e,...nd.navigator.languages]:nd.navigator.languages,n=i.filter(e=>r.some(t=>e.language.toLowerCase().startsWith(t.split("-")[0]))).sort((e,t)=>r.findIndex(t=>e.language.toLowerCase().startsWith(t.split("-")[0]))-r.findIndex(e=>t.language.toLowerCase().startsWith(e.split("-")[0])));n[0]&&(t=n[0])}let{language:a,label:o,kind:s}=t;n3(rG.DISABLED,i,r),n3(rG.SHOWING,i,[{language:a,label:o,kind:s}])}}},ap=(e,t)=>e===t||null!=e&&null!=t&&typeof e==typeof t&&(!!("number"==typeof e&&Number.isNaN(e)&&Number.isNaN(t))||"object"==typeof e&&(Array.isArray(e)?af(e,t):Object.entries(e).every(([e,i])=>
159e in t&&ap(i,t[e])))),af=(e,t)=>{let i=Array.isArray(e),r=Array.isArray(t);return i===r&&(!i&&!r||e.length===t.length&&e.every((e,i)=>ap(e,t[i])))},av=Object.values(rZ),ag=at().then(e=>n=e),ab=async(...e)=>{await Promise.all(e.filter(e=>e).map(async e=>{if(!("localName"in e&&e instanceof nd.HTMLElement))return;let t=e.localName;if(!t.includes("-"))return;let i=nd.customElements.get(t);i&&e instanceof i||(await nd.customElements.whenDefined(t),nd.customElements.upgrade(e))}))},aE=new nd.DOMParser,ay={mediaError:{get(e,t){let{media:i}=e;if((null==t?void 0:t.type)!=="playing")return null==i?void 0:i.error},mediaEvents:["emptied","error","playing"]},mediaErrorCode:{get(e,t){var i;let{media:r}=e;if((null==t?void 0:t.type)!=="playing")return null==(i=null==r?void 0:r.error)?void 0:i.code},mediaEvents:["emptied","error","playing"]},mediaErrorMessage:{get(e,t){var i,r;let{media:n}=e;if((null==t?void 0:t.type)!=="playing")return null!=(r=null==(i=null==n?void 0:n.error)?void 0:i.message)?r:""},mediaEvents:["emptied","error","playing"]},mediaWidth:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.videoWidth)?t:0},mediaEvents:["resize"]},mediaHeight:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.videoHeight)?t:0},mediaEvents:["resize"]},mediaPaused:{get(e){var t;let{media:i}=e;return null==(t=null==i?void 0:i.paused)||t},set(e,t){var i;let{media:r}=t;r&&(e?r.pause():null==(i=r.play())||i.catch(()=>{}))},mediaEvents:["play","playing","pause","emptied"]},mediaHasPlayed:{get(e,t){let{media:i}=e;return!!i&&(t?"playing"===t.type:!i.paused)},mediaEvents:["playing","emptied"]},mediaEnded:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.ended)&&t},mediaEvents:["seeked","ended","emptied"]},mediaPlaybackRate:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.playbackRate)?t:1},set(e,t){let{media:i}=t;i&&Number.isFinite(+e)&&(i.playbackRate=+e)},mediaEvents:["ratechange","loadstart"]},mediaMuted:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.muted)&&t},set(e,t){let{media:i,options:{noMutedPref:r}={}}=t;if(i){i.muted=e;try{let t=null!==nd.localStorage.getItem("media-chrome-pref-muted"),n=i.hasAttribute("muted");if(r){t&&nd.localStorage.removeItem("media-chrome-pref-muted");return}if(n&&!t)return;nd.localStorage.setItem("media-chrome-pref-muted",e?"true":"false")}catch(e){console.debug("Error setting muted pref",e)}}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{let{options:{noMutedPref:i}}=t,{media:r}=t;if(r&&!r.muted&&!i)try{let i="true"===nd.localStorage.getItem("media-chrome-pref-muted");ay.mediaMuted.set(i,t),e(i)}catch(e){console.debug("Error getting muted pref",e)}}]},mediaLoop:{get(e){let{media:t}=e;return null==t?void 0:t.loop},set(e,t){let{media:i}=t;i&&(i.loop=e)},mediaEvents:["medialooprequest"]},mediaVolume:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.volume)?t:1},set(e,t){let{media:i,options:{noVolumePref:r}={}}=t;if(i){try{null==e?nd.localStorage.removeItem("media-chrome-pref-volume"):i.hasAttribute("muted")||r||nd.localStorage.setItem("media-chrome-pref-volume",e.toString())}catch(e){console.debug("Error setting volume pref",e)}Number.isFinite(+e)&&(i.volume=+e)}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{let{options:{noVolumePref:i}}=t;if(!i)try{let{media:i}=t;if(!i)return;let r=nd.localStorage.getItem("media-chrome-pref-volume");if(null==r)return;ay.mediaVolume.set(+r,t),e(+r)}catch(e){console.debug("Error getting volume pref",e)}}]},mediaVolumeLevel:{get(e){let{media:t}=e;return void 0===(null==t?void 0:t.volume)?"high":t.muted||0===t.volume?"off":t.volume<.5?"low":t.volume<.75?"medium":"high"},mediaEvents:["volumechange"]},mediaCurrentTime:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.currentTime)?t:0},set(e,t){let{media:i}=t;i&&r2(e)&&(i.currentTime=e)},mediaEvents:["timeupdate","loadedmetadata"]},mediaDuration:{get(e){let{media:t,options:{defaultDuration:i}={}}=e;return i&&(!t||!t.duration||Number.isNaN(t.duration)||!Number.isFinite(t.duration))?i:Number.isFinite(null==t?void 0:t.duration)?t.duration:NaN},mediaEvents:["durationchange","loadedmetadata","emptied"]},mediaLoading:{get(e){let{media:t}=e;return(null==t?void 0:t.readyState)<3},mediaEvents:["waiting","playing","emptied"]},mediaSeekable:{get(e){var t;let{media:i}=e;if(!(null==(t=null==i?void 0:i.seekable)?void 0:t.length))return;let r=i.seekable.start(0),n=i.seekable.end(i.seekable.length-1);if(r||n)return[Number(r.toFixed(3)),Number(n.toFixed(3))]},mediaEvents:["loadedmetadata","emptied","progress","seekablechange"]},mediaBuffered:{get(e){var t;let{media:i}=e,r=null!=(t=null==i?void 0:i.buffered)?t:[];return Array.from(r).map((e,t)=>[Number(r.start(t).toFixed(3)),Number(r.end(t).toFixed(3))])},mediaEvents:["progress","emptied"]},mediaStreamType:{get(e){let{media:t,options:{defaultStreamType:i}={}}=e,r=[rZ.LIVE,rZ.ON_DEMAND].includes(i)?i:void 0;if(!t)return r;let{streamType:n}=t;if(av.includes(n))return n===rZ.UNKNOWN?r:n;let a=t.duration;return a===1/0?rZ.LIVE:Number.isFinite(a)?rZ.ON_DEMAND:r}
159,mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},mediaTargetLiveWindow:{get(e){let{media:t}=e;if(!t)return NaN;let{targetLiveWindow:i}=t,r=ay.mediaStreamType.get(e);return(null==i||Number.isNaN(i))&&r===rZ.LIVE?0:i},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},mediaTimeIsLive:{get(e){let{media:t,options:{liveEdgeOffset:i=10}={}}=e;if(!t)return!1;if("number"==typeof t.liveEdgeStart)return!Number.isNaN(t.liveEdgeStart)&&t.currentTime>=t.liveEdgeStart;if(ay.mediaStreamType.get(e)!==rZ.LIVE)return!1;let r=t.seekable;if(!r)return!0;if(!r.length)return!1;let n=r.end(r.length-1)-i;return t.currentTime>=n},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},mediaSubtitlesList:{get:e=>ac(e).map(({kind:e,label:t,language:i})=>({kind:e,label:t,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},mediaSubtitlesShowing:{get:e=>ah(e).map(({kind:e,label:t,language:i})=>({kind:e,label:t,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i,r;let{media:n,options:a}=t;if(!n)return;let o=e=>{var i;a.defaultSubtitles&&(e&&![rK.CAPTIONS,rK.SUBTITLES].includes(null==(i=null==e?void 0:e.track)?void 0:i.kind)||am(t,!0))};return n.addEventListener("loadstart",o),null==(i=n.textTracks)||i.addEventListener("addtrack",o),null==(r=n.textTracks)||r.addEventListener("removetrack",o),()=>{var e,t;n.removeEventListener("loadstart",o),null==(e=n.textTracks)||e.removeEventListener("addtrack",o),null==(t=n.textTracks)||t.removeEventListener("removetrack",o)}}]},mediaChaptersCues:{get(e){var t;let{media:i}=e;if(!i)return[];let[r]=n4(i,{kind:rK.CHAPTERS});return Array.from(null!=(t=null==r?void 0:r.cues)?t:[]).map(({text:e,startTime:t,endTime:i})=>({text:e&&aE.parseFromString(e,"text/html").body.textContent||e,startTime:t,endTime:i}))},mediaEvents:["loadstart","loadedmetadata"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:r}=t;if(!r)return;let n=r.querySelector('track[kind="chapters"][default][src]'),a=null==(i=r.shadowRoot)?void 0:i.querySelector(':is(video,audio) > track[kind="chapters"][default][src]');return null==n||n.addEventListener("load",e),null==a||a.addEventListener("load",e),()=>{null==n||n.removeEventListener("load",e),null==a||a.removeEventListener("load",e)}}]},mediaIsPip:{get(e){var t,i;let{media:r,documentElement:n}=e;if(!r||!n||!n.pictureInPictureElement)return!1;if(n.pictureInPictureElement===r)return!0;if(n.pictureInPictureElement instanceof HTMLMediaElement)return!!(null==(t=r.localName)?void 0:t.includes("-"))&&nw(r,n.pictureInPictureElement);if(n.pictureInPictureElement.localName.includes("-")){let e=n.pictureInPictureElement.shadowRoot;for(;null==e?void 0:e.pictureInPictureElement;){if(e.pictureInPictureElement===r)return!0;e=null==(i=e.pictureInPictureElement)?void 0:i.shadowRoot}}return!1},set(e,t){let{media:i}=t;if(i)if(e){if(!nu.pictureInPictureEnabled)return void console.warn("MediaChrome: Picture-in-picture is not enabled");if(!i.requestPictureInPicture)return void console.warn("MediaChrome: The current media does not support picture-in-picture");let e=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};i.requestPictureInPicture().catch(t=>{if(11===t.code){if(!i.src)return void console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a src set.");if(0===i.readyState&&"none"===i.preload){let t=()=>{i.removeEventListener("loadedmetadata",r),i.preload="none"},r=()=>{i.requestPictureInPicture().catch(e),t()};i.addEventListener("loadedmetadata",r),i.preload="metadata",setTimeout(()=>{0===i.readyState&&e(),t()},1e3)}else throw t}else throw t})}else nu.pictureInPictureElement&&nu.exitPictureInPicture()},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},mediaRenditionList:{get(e){var t;let{media:i}=e;return[...null!=(t=null==i?void 0:i.videoRenditions)?t:[]].map(e=>({...e}))},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaRenditionSelected:{get(e){var t,i,r;let{media:n}=e;return null==(r=null==(i=null==n?void 0:n.videoRenditions)?void 0:i[null==(t=n.videoRenditions)?void 0:t.selectedIndex])?void 0:r.id},set(e,t){let{media:i}=t;if(!(null==i?void 0:i.videoRenditions))return void console.warn("MediaController: Rendition selection not supported by this media.");let r=Array.prototype.findIndex.call(i.videoRenditions,t=>t.id==e);i.videoRenditions.selectedIndex!=r&&(i.videoRenditions.selectedIndex=r)},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},mediaAudioTrackList:{get(e){var t;let{media:i}=e;return[...null!=(t=null==i?void 0:i.audioTracks)?t:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaAudioTrackEnabled:{get(e){var t,i;let{media:r}=e;return null==(i=[...null!=(t=null==r?void 0:r.audioTracks)?t:[]].find(e=>e.enabled))?void 0:i.id},set(e,t){let{media:i}=t;if(!(null==i?void 0:i.audioTracks))return void console.warn("MediaChrome: Audio track selection not supported by this media.");
159for(let t of i.audioTracks)t.enabled=e==t.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]},mediaIsFullscreen:{get:e=>(e=>{var t;let{media:i,documentElement:r,fullscreenElement:n=i}=e;if(!i||!r)return!1;let a=(e=>{let{documentElement:t,media:i}=e,r=null==t?void 0:t[n6];return!r&&"webkitDisplayingFullscreen"in i&&"webkitPresentationMode"in i&&i.webkitDisplayingFullscreen&&i.webkitPresentationMode===rQ.FULLSCREEN?i:r})(e);if(!a)return!1;if(a===n||a===i)return!0;if(a.localName.includes("-")){let e=a.shadowRoot;if(!(n6 in e))return nw(a,n);for(;null==e?void 0:e[n6];){if(e[n6]===n)return!0;e=null==(t=e[n6])?void 0:t.shadowRoot}}return!1})(e),set(e,t,i){var r,n;e?((e=>{var t;let{media:i,fullscreenElement:r}=e;try{let e=r&&"requestFullscreen"in r?"requestFullscreen":r&&"webkitRequestFullScreen"in r?"webkitRequestFullScreen":void 0;if(e){let i=null==(t=r[e])?void 0:t.call(r);if(i instanceof Promise)return i.catch(()=>{})}else(null==i?void 0:i.webkitEnterFullscreen)?i.webkitEnterFullscreen():(null==i?void 0:i.requestFullscreen)&&i.requestFullscreen()}catch(e){console.error(e)}})(t),!i.detail||(null==(r=t.media)?void 0:r.inert)||null==(n=t.media)||n.focus()):(e=>{var t;let{documentElement:i}=e;if(n8){let e=null==(t=null==i?void 0:i[n8])?void 0:t.call(i);if(e instanceof Promise)return e.catch(()=>{})}})(t)},rootEvents:["fullscreenchange","webkitfullscreenchange"],mediaEvents:["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"]},mediaIsCasting:{get(e){var t;let{media:i}=e;return!!(null==i?void 0:i.remote)&&(null==(t=i.remote)?void 0:t.state)!=="disconnected"&&"connected"===i.remote.state},set(e,t){var i,r;let{media:n}=t;if(n&&(!e||(null==(i=n.remote)?void 0:i.state)==="disconnected")&&(e||(null==(r=n.remote)?void 0:r.state)==="connected")){if("function"!=typeof n.remote.prompt)return void console.warn("MediaChrome: Casting is not supported in this environment");n.remote.prompt().catch(()=>{})}},remoteEvents:["connect","connecting","disconnect"]},mediaIsAirplaying:{get:()=>!1,set(e,t){let{media:i}=t;if(i){if(!(i.webkitShowPlaybackTargetPicker&&nd.WebKitPlaybackTargetAvailabilityEvent))return void console.error("MediaChrome: received a request to select AirPlay but AirPlay is not supported in this environment");i.webkitShowPlaybackTargetPicker()}},mediaEvents:["webkitcurrentplaybacktargetiswirelesschanged"]},mediaFullscreenUnavailable:{get(e){let{media:t}=e;if(!as||!ao(t))return rY.UNSUPPORTED}},mediaPipUnavailable:{get(e){let{media:t}=e;return al&&aa(t)?(null==t?void 0:t.disablePictureInPicture)?rY.UNAVAILABLE:void 0:rY.UNSUPPORTED}},mediaVolumeUnavailable:{get(e){let{media:t}=e;if(!1===n||(null==t?void 0:t.volume)==void 0)return rY.UNSUPPORTED},stateOwnersUpdateHandlers:[e=>{null==n&&ag.then(t=>e(t?void 0:rY.UNSUPPORTED))}]},mediaCastUnavailable:{get(e,{availability:t="not-available"}={}){var i;let{media:r}=e;return au&&(null==(i=null==r?void 0:r.remote)?void 0:i.state)?null!=t&&"available"!==t?rY.UNAVAILABLE:void 0:rY.UNSUPPORTED},stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:r}=t;if(r)return r.disableRemotePlayback||r.hasAttribute("disableremoteplayback")||null==(i=null==r?void 0:r.remote)||i.watchAvailability(t=>{e({availability:t?"available":"not-available"})}).catch(t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})}),()=>{var e;null==(e=null==r?void 0:r.remote)||e.cancelWatchAvailability().catch(()=>{})}}]},mediaAirplayUnavailable:{get:(e,t)=>ad?(null==t?void 0:t.availability)==="not-available"?rY.UNAVAILABLE:void 0:rY.UNSUPPORTED,mediaEvents:["webkitplaybacktargetavailabilitychanged"],stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:r}=t;if(r)return r.disableRemotePlayback||r.hasAttribute("disableremoteplayback")||null==(i=null==r?void 0:r.remote)||i.watchAvailability(t=>{e({availability:t?"available":"not-available"})}).catch(t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})}),()=>{var e;null==(e=null==r?void 0:r.remote)||e.cancelWatchAvailability().catch(()=>{})}}]},mediaRenditionUnavailable:{get(e){var t;let{media:i}=e;return(null==i?void 0:i.videoRenditions)?(null==(t=i.videoRenditions)?void 0:t.length)?void 0:rY.UNAVAILABLE:rY.UNSUPPORTED},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaAudioTrackUnavailable:{get(e){var t,i;let{media:r}=e;return(null==r?void 0:r.audioTracks)?(null!=(i=null==(t=r.audioTracks)?void 0:t.length)?i:0)<=1?rY.UNAVAILABLE:void 0:rY.UNSUPPORTED},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaLang:{get(e){let{options:{mediaLang:t}={}}=e;return null!=t?t:"en"}}},aw={[rF.MEDIA_PREVIEW_REQUEST](e,t,{detail:i}){var r,n,a;let o,s,{media:l}=t,d=null!=i?i:void 0;if(l&&null!=d){let[e]=n4(l,{kind:rK.METADATA,label:"thumbnails"}),t=Array.prototype.find.call(null!=(r=null==e?void 0:e.cues)?r:[],
159(e,t,i)=>0===t?e.endTime>d:t===i.length-1?e.startTime<=d:e.startTime<=d&&e.endTime>d);if(t){let e=/'^(?:[a-z]+:)?\/\//i.test(t.text)||null==(n=null==l?void 0:l.querySelector('track[label="thumbnails"]'))?void 0:n.src,i=new URL(t.text,e);s=new URLSearchParams(i.hash).get("#xywh").split(",").map(e=>+e),o=i.href}}let u=e.mediaDuration.get(t),c=null==(a=e.mediaChaptersCues.get(t).find((e,t,i)=>t===i.length-1&&u===e.endTime?e.startTime<=d&&e.endTime>=d:e.startTime<=d&&e.endTime>d))?void 0:a.text;return null!=i&&null==c&&(c=""),{mediaPreviewTime:d,mediaPreviewImage:o,mediaPreviewCoords:s,mediaPreviewChapter:c}},[rF.MEDIA_PAUSE_REQUEST](e,t){e.mediaPaused.set(!0,t)},[rF.MEDIA_PLAY_REQUEST](e,t){var i,r,n,a;let o=e.mediaStreamType.get(t)===rZ.LIVE,s=!(null==(i=t.options)?void 0:i.noAutoSeekToLive),l=e.mediaTargetLiveWindow.get(t)>0;if(o&&s&&!l){let i=null==(r=e.mediaSeekable.get(t))?void 0:r[1];if(i){let r=null!=(a=null==(n=t.options)?void 0:n.seekToLiveOffset)?a:0;e.mediaCurrentTime.set(i-r,t)}}e.mediaPaused.set(!1,t)},[rF.MEDIA_PLAYBACK_RATE_REQUEST](e,t,{detail:i}){e.mediaPlaybackRate.set(i,t)},[rF.MEDIA_MUTE_REQUEST](e,t){e.mediaMuted.set(!0,t)},[rF.MEDIA_UNMUTE_REQUEST](e,t){e.mediaVolume.get(t)||e.mediaVolume.set(.25,t),e.mediaMuted.set(!1,t)},[rF.MEDIA_LOOP_REQUEST](e,t,{detail:i}){let r=!!i;return e.mediaLoop.set(r,t),{mediaLoop:r}},[rF.MEDIA_VOLUME_REQUEST](e,t,{detail:i}){i&&e.mediaMuted.get(t)&&e.mediaMuted.set(!1,t),e.mediaVolume.set(i,t)},[rF.MEDIA_SEEK_REQUEST](e,t,{detail:i}){e.mediaCurrentTime.set(i,t)},[rF.MEDIA_SEEK_TO_LIVE_REQUEST](e,t){var i,r,n;let a=null==(i=e.mediaSeekable.get(t))?void 0:i[1];if(Number.isNaN(Number(a)))return;let o=null!=(n=null==(r=t.options)?void 0:r.seekToLiveOffset)?n:0;e.mediaCurrentTime.set(a-o,t)},[rF.MEDIA_SHOW_SUBTITLES_REQUEST](e,t,{detail:i}){var r;let{options:n}=t,a=ac(t),o=n0(i),s=null==(r=o[0])?void 0:r.language;s&&!n.noSubtitlesLangPref&&nd.localStorage.setItem("media-chrome-pref-subtitles-lang",s),n3(rG.SHOWING,a,o)},[rF.MEDIA_DISABLE_SUBTITLES_REQUEST](e,t,{detail:i}){let r=ac(t);n3(rG.DISABLED,r,null!=i?i:[])},[rF.MEDIA_TOGGLE_SUBTITLES_REQUEST](e,t,{detail:i}){am(t,i)},[rF.MEDIA_RENDITION_REQUEST](e,t,{detail:i}){e.mediaRenditionSelected.set(i,t)},[rF.MEDIA_AUDIO_TRACK_REQUEST](e,t,{detail:i}){e.mediaAudioTrackEnabled.set(i,t)},[rF.MEDIA_ENTER_PIP_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsPip.set(!0,t)},[rF.MEDIA_EXIT_PIP_REQUEST](e,t){e.mediaIsPip.set(!1,t)},[rF.MEDIA_ENTER_FULLSCREEN_REQUEST](e,t,i){e.mediaIsPip.get(t)&&e.mediaIsPip.set(!1,t),e.mediaIsFullscreen.set(!0,t,i)},[rF.MEDIA_EXIT_FULLSCREEN_REQUEST](e,t){e.mediaIsFullscreen.set(!1,t)},[rF.MEDIA_ENTER_CAST_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsCasting.set(!0,t)},[rF.MEDIA_EXIT_CAST_REQUEST](e,t){e.mediaIsCasting.set(!1,t)},[rF.MEDIA_AIRPLAY_REQUEST](e,t){e.mediaIsAirplaying.set(!0,t)}};var aA=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},ak=(e,t,i)=>(aA(e,t,"read from private field"),i?i.call(e):t.get(e)),ax=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},a_=(e,t,i,r)=>(aA(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),aT=(e,t,i)=>(aA(e,t,"access private method"),i);let aS=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"," ","f","m","k","c","l","j",">","<","p"],aI={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"};class aC extends nK{constructor(){super(),ax(this,$),ax(this,G),ax(this,Y),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,ax(this,P,new nQ(this,aI.HOTKEYS)),ax(this,U,void 0),ax(this,V,void 0),ax(this,F,null),ax(this,W,void 0),ax(this,H,void 0),ax(this,B,e=>{var t;null==(t=ak(this,V))||t.dispatch(e)}),ax(this,j,void 0),ax(this,K,e=>{let{key:t,shiftKey:i}=e;if(!(i&&("/"===t||"?"===t)||aS.includes(t)))return void this.removeEventListener("keyup",ak(this,K));this.keyboardShortcutHandler(e)}),this.associateElement(this);let e={};
159a_(this,W,t=>{Object.entries(t).forEach(([t,i])=>{if(t in e&&e[t]===i)return;this.propagateMediaState(t,i);let r=t.toLowerCase(),n=new nd.CustomEvent(rz[r],{composed:!0,detail:i});this.dispatchEvent(n)}),e=t})}static get observedAttributes(){return super.observedAttributes.concat(aI.NO_HOTKEYS,aI.HOTKEYS,aI.DEFAULT_STREAM_TYPE,aI.DEFAULT_SUBTITLES,aI.DEFAULT_DURATION,aI.NO_MUTED_PREF,aI.NO_VOLUME_PREF,aI.LANG,aI.LOOP,aI.LIVE_EDGE_OFFSET,aI.SEEK_TO_LIVE_OFFSET,aI.NO_AUTO_SEEK_TO_LIVE)}get mediaStore(){return ak(this,V)}set mediaStore(e){var t,i;if(ak(this,V)&&(null==(t=ak(this,H))||t.call(this),a_(this,H,void 0)),a_(this,V,e),!ak(this,V)&&!this.hasAttribute(aI.NO_DEFAULT_STORE))return void aT(this,$,z).call(this);a_(this,H,null==(i=ak(this,V))?void 0:i.subscribe(ak(this,W)))}get fullscreenElement(){var e;return null!=(e=ak(this,U))?e:this}set fullscreenElement(e){var t;this.hasAttribute(aI.FULLSCREEN_ELEMENT)&&this.removeAttribute(aI.FULLSCREEN_ELEMENT),a_(this,U,e),null==(t=ak(this,V))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}get defaultSubtitles(){return nL(this,aI.DEFAULT_SUBTITLES)}set defaultSubtitles(e){nM(this,aI.DEFAULT_SUBTITLES,e)}get defaultStreamType(){return nR(this,aI.DEFAULT_STREAM_TYPE)}set defaultStreamType(e){nD(this,aI.DEFAULT_STREAM_TYPE,e)}get defaultDuration(){return nI(this,aI.DEFAULT_DURATION)}set defaultDuration(e){nC(this,aI.DEFAULT_DURATION,e)}get noHotkeys(){return nL(this,aI.NO_HOTKEYS)}set noHotkeys(e){nM(this,aI.NO_HOTKEYS,e)}get keysUsed(){return nR(this,aI.KEYS_USED)}set keysUsed(e){nD(this,aI.KEYS_USED,e)}get liveEdgeOffset(){return nI(this,aI.LIVE_EDGE_OFFSET)}set liveEdgeOffset(e){nC(this,aI.LIVE_EDGE_OFFSET,e)}get noAutoSeekToLive(){return nL(this,aI.NO_AUTO_SEEK_TO_LIVE)}set noAutoSeekToLive(e){nM(this,aI.NO_AUTO_SEEK_TO_LIVE,e)}get noVolumePref(){return nL(this,aI.NO_VOLUME_PREF)}set noVolumePref(e){nM(this,aI.NO_VOLUME_PREF,e)}get noMutedPref(){return nL(this,aI.NO_MUTED_PREF)}set noMutedPref(e){nM(this,aI.NO_MUTED_PREF,e)}get noSubtitlesLangPref(){return nL(this,aI.NO_SUBTITLES_LANG_PREF)}set noSubtitlesLangPref(e){nM(this,aI.NO_SUBTITLES_LANG_PREF,e)}get noDefaultStore(){return nL(this,aI.NO_DEFAULT_STORE)}set noDefaultStore(e){nM(this,aI.NO_DEFAULT_STORE,e)}get resolvedLang(){let[e]=r7.split("-");return r4[r7]?r7:r4[e]?e:"en"}attributeChangedCallback(e,t,i){var r,n,a,o,s,l,d,u,c,h,m,p;if(super.attributeChangedCallback(e,t,i),e===aI.NO_HOTKEYS)i!==t&&""===i?(this.hasAttribute(aI.HOTKEYS)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):i!==t&&null===i&&this.enableHotkeys();else if(e===aI.HOTKEYS)ak(this,P).value=i;else if(e===aI.DEFAULT_SUBTITLES&&i!==t)null==(r=ak(this,V))||r.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(aI.DEFAULT_SUBTITLES)}});else if(e===aI.DEFAULT_STREAM_TYPE)null==(a=ak(this,V))||a.dispatch({type:"optionschangerequest",detail:{defaultStreamType:null!=(n=this.getAttribute(aI.DEFAULT_STREAM_TYPE))?n:void 0}});else if(e===aI.LIVE_EDGE_OFFSET&&i!==t)null==(o=ak(this,V))||o.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(aI.LIVE_EDGE_OFFSET)?+this.getAttribute(aI.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(aI.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(aI.SEEK_TO_LIVE_OFFSET):this.hasAttribute(aI.LIVE_EDGE_OFFSET)?+this.getAttribute(aI.LIVE_EDGE_OFFSET):void 0}});else if(e===aI.SEEK_TO_LIVE_OFFSET&&i!==t)null==(s=ak(this,V))||s.dispatch({type:"optionschangerequest",detail:{seekToLiveOffset:this.hasAttribute(aI.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(aI.SEEK_TO_LIVE_OFFSET):this.hasAttribute(aI.LIVE_EDGE_OFFSET)?+this.getAttribute(aI.LIVE_EDGE_OFFSET):void 0}});else if(e===aI.NO_AUTO_SEEK_TO_LIVE)null==(l=ak(this,V))||l.dispatch({type:"optionschangerequest",detail:{noAutoSeekToLive:this.hasAttribute(aI.NO_AUTO_SEEK_TO_LIVE)}});else if(e===aI.FULLSCREEN_ELEMENT){let e=i?null==(d=this.getRootNode())?void 0:d.getElementById(i):void 0;a_(this,U,e),null==(u=ak(this,V))||u.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}else e===aI.LANG&&i!==t?(r7=i,null==(c=ak(this,V))||c.dispatch({type:"optionschangerequest",detail:{mediaLang:i}}
159)):e===aI.LOOP&&i!==t?null==(h=ak(this,V))||h.dispatch({type:rF.MEDIA_LOOP_REQUEST,detail:null!=i}):e===aI.NO_VOLUME_PREF&&i!==t?null==(m=ak(this,V))||m.dispatch({type:"optionschangerequest",detail:{noVolumePref:this.hasAttribute(aI.NO_VOLUME_PREF)}}):e===aI.NO_MUTED_PREF&&i!==t&&(null==(p=ak(this,V))||p.dispatch({type:"optionschangerequest",detail:{noMutedPref:this.hasAttribute(aI.NO_MUTED_PREF)}}))}connectedCallback(){var e,t,i;this.associateElement(this),ak(this,V)||this.hasAttribute(aI.NO_DEFAULT_STORE)||aT(this,$,z).call(this),null==(e=ak(this,V))||e.dispatch({type:"documentelementchangerequest",detail:nu}),null==(t=ak(this,V))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement}),super.connectedCallback(),ak(this,V)&&!ak(this,H)&&a_(this,H,null==(i=ak(this,V))?void 0:i.subscribe(ak(this,W))),void 0!==ak(this,j)&&ak(this,V)&&this.media&&setTimeout(()=>{var e,t,i;(null==(t=null==(e=this.media)?void 0:e.textTracks)?void 0:t.length)&&(null==(i=ak(this,V))||i.dispatch({type:rF.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:ak(this,j)}))},0),this.hasAttribute(aI.NO_HOTKEYS)?this.disableHotkeys():this.enableHotkeys()}disconnectedCallback(){var e,t,i,r,n,a;if(null==(e=super.disconnectedCallback)||e.call(this),this.disableHotkeys(),ak(this,V)){let e=ak(this,V).getState();a_(this,j,!!(null==(t=e.mediaSubtitlesShowing)?void 0:t.length)),null==(i=ak(this,V))||i.dispatch({type:"fullscreenelementchangerequest",detail:void 0}),null==(r=ak(this,V))||r.dispatch({type:"documentelementchangerequest",detail:void 0}),null==(n=ak(this,V))||n.dispatch({type:rF.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})}ak(this,H)&&(null==(a=ak(this,H))||a.call(this),a_(this,H,void 0)),this.unassociateElement(this),ak(this,F)&&(ak(this,F).remove(),a_(this,F,null))}mediaSetCallback(e){var t;super.mediaSetCallback(e),null==(t=ak(this,V))||t.dispatch({type:"mediaelementchangerequest",detail:e}),e.hasAttribute("tabindex")||(e.tabIndex=-1)}mediaUnsetCallback(e){var t;super.mediaUnsetCallback(e),null==(t=ak(this,V))||t.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(e,t){aV(this.mediaStateReceivers,e,t)}associateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;if(t.has(e))return;let i=aF(e,this.registerMediaStateReceiver.bind(this),this.unregisterMediaStateReceiver.bind(this));Object.values(rF).forEach(t=>{e.addEventListener(t,ak(this,B))}),t.set(e,i)}unassociateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;t.has(e)&&(t.get(e)(),t.delete(e),Object.values(rF).forEach(t=>{e.removeEventListener(t,ak(this,B))}))}registerMediaStateReceiver(e){if(!e)return;let t=this.mediaStateReceivers;!(t.indexOf(e)>-1)&&(t.push(e),ak(this,V)&&Object.entries(ak(this,V).getState()).forEach(([t,i])=>{aV([e],t,i)}))}unregisterMediaStateReceiver(e){let t=this.mediaStateReceivers,i=t.indexOf(e);i<0||t.splice(i,1)}enableHotkeys(){this.addEventListener("keydown",aT(this,G,q))}disableHotkeys(){this.removeEventListener("keydown",aT(this,G,q)),this.removeEventListener("keyup",ak(this,K))}get hotkeys(){return ak(this,P)}set hotkeys(e){nD(this,aI.HOTKEYS,e)}keyboardShortcutHandler(e){var t,i,r,n,a,o,s,l,d;let u,c,h,m=e.target;if(!((null!=(r=null!=(i=null==(t=m.getAttribute(aI.KEYS_USED))?void 0:t.split(" "))?i:null==m?void 0:m.keysUsed)?r:[]).map(e=>
159"Space"===e?" ":e).filter(Boolean).includes(e.key)||ak(this,P).contains(`no${e.key.toLowerCase()}`)||" "===e.key&&ak(this,P).contains("nospace"))&&!(e.shiftKey&&("/"===e.key||"?"===e.key)&&ak(this,P).contains("noshift+/")))switch(e.key){case" ":case"k":u=ak(this,V).getState().mediaPaused?rF.MEDIA_PLAY_REQUEST:rF.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new nd.CustomEvent(u,{composed:!0,bubbles:!0}));break;case"m":u="off"===this.mediaStore.getState().mediaVolumeLevel?rF.MEDIA_UNMUTE_REQUEST:rF.MEDIA_MUTE_REQUEST,this.dispatchEvent(new nd.CustomEvent(u,{composed:!0,bubbles:!0}));break;case"f":u=this.mediaStore.getState().mediaIsFullscreen?rF.MEDIA_EXIT_FULLSCREEN_REQUEST:rF.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new nd.CustomEvent(u,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new nd.CustomEvent(rF.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":case"j":{let e=this.hasAttribute(aI.KEYBOARD_BACKWARD_SEEK_OFFSET)?+this.getAttribute(aI.KEYBOARD_BACKWARD_SEEK_OFFSET):10;c=Math.max((null!=(n=this.mediaStore.getState().mediaCurrentTime)?n:0)-e,0),h=new nd.CustomEvent(rF.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break}case"ArrowRight":case"l":{let e=this.hasAttribute(aI.KEYBOARD_FORWARD_SEEK_OFFSET)?+this.getAttribute(aI.KEYBOARD_FORWARD_SEEK_OFFSET):10;c=Math.max((null!=(a=this.mediaStore.getState().mediaCurrentTime)?a:0)+e,0),h=new nd.CustomEvent(rF.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break}case"ArrowUp":{let e=this.hasAttribute(aI.KEYBOARD_UP_VOLUME_STEP)?+this.getAttribute(aI.KEYBOARD_UP_VOLUME_STEP):.025;c=Math.min((null!=(o=this.mediaStore.getState().mediaVolume)?o:1)+e,1),h=new nd.CustomEvent(rF.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break}case"ArrowDown":{let e=this.hasAttribute(aI.KEYBOARD_DOWN_VOLUME_STEP)?+this.getAttribute(aI.KEYBOARD_DOWN_VOLUME_STEP):.025;c=Math.max((null!=(s=this.mediaStore.getState().mediaVolume)?s:1)-e,0),h=new nd.CustomEvent(rF.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break}case"<":c=Math.max((null!=(l=this.mediaStore.getState().mediaPlaybackRate)?l:1)-.25,.25).toFixed(2),h=new nd.CustomEvent(rF.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break;case">":c=Math.min((null!=(d=this.mediaStore.getState().mediaPlaybackRate)?d:1)+.25,2).toFixed(2),h=new nd.CustomEvent(rF.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break;case"/":case"?":e.shiftKey&&aT(this,Y,Z).call(this);break;case"p":u=this.mediaStore.getState().mediaIsPip?rF.MEDIA_EXIT_PIP_REQUEST:rF.MEDIA_ENTER_PIP_REQUEST,h=new nd.CustomEvent(u,{composed:!0,bubbles:!0}),this.dispatchEvent(h)}}}P=new WeakMap,U=new WeakMap,V=new WeakMap,F=new WeakMap,W=new WeakMap,H=new WeakMap,B=new WeakMap,j=new WeakMap,$=new WeakSet,z=function(){var e;this.mediaStore=(({media:e,fullscreenElement:t,documentElement:i,stateMediator:r=ay,requestMap:n=aw,options:a={},monitorStateOwnersOnlyWithSubscriptions:o=!0})=>{let s,l=[],d={options:{...a}},u=Object.freeze({mediaPreviewTime:void 0,mediaPreviewImage:void 0,mediaPreviewCoords:void 0,mediaPreviewChapter:void 0}),c=e=>{void 0!=e&&(ap(e,u)||(u=Object.freeze({...u,...e}),l.forEach(e=>e(u))))},h=()=>{c(Object.entries(r).reduce((e,[t,{get:i}])=>(e[t]=i(d),e),{}))},m={},p=async(e,t)=>{var i,n,a,u,p,f,v,g,b,E,y,w,A,k,x,_;let T=!!s;if(s={...d,...null!=s?s:{},...e},T)return;await ab(...Object.values(e));let S=l.length>0&&0===t&&o,I=d.media!==s.media,C=(null==(i=d.media)?void 0:i.textTracks)!==(null==(n=s.media)?void 0:n.textTracks),L=(null==(a=d.media)?void 0:a.videoRenditions)!==(null==(u=s.media)?void 0:u.videoRenditions),M=(null==(p=d.media)?void 0:p.audioTracks)!==(null==(f=s.media)?void 0:f.audioTracks),R=(null==(v=d.media)?void 0:v.remote)!==(null==(g=s.media)?void 0:g.remote),D=d.documentElement!==s.documentElement,O=!!d.media&&(I||S),N=!!(null==(b=d.media)?void 0:b.textTracks)&&(C||S),P=!!(null==(E=d.media)?void 0:E.videoRenditions)&&(L||S),U=!!(null==(y=d.media)?void 0:y.audioTracks)&&(M||S),V=!!(null==(w=d.media)?void 0:w.remote)&&(R||S),F=!!d.documentElement&&(D||S),W=O||N||P||U||V||F,H=0===l.length&&1===t&&o,B=!!s.media&&(I||H),j=!!(null==(A=s.media)?void 0:A.textTracks)&&(C||H),$=!!(null==(k=s.media)?void 0:k.videoRenditions)&&(L||H),z=!!(null==(x=s.media)?void 0:x.audioTracks)&&(M||H),K=!!(null==(_=s.media)?void 0:_.remote)&&(R||H),G=!!s.documentElement&&(D||H),q=B||j||$||z||K||G;
159if(!(W||q)){Object.entries(s).forEach(([e,t])=>{d[e]=t}),h(),s=void 0;return}Object.entries(r).forEach(([e,{get:t,mediaEvents:i=[],textTracksEvents:r=[],videoRenditionsEvents:n=[],audioTracksEvents:a=[],remoteEvents:o=[],rootEvents:l=[],stateOwnersUpdateHandlers:u=[]}])=>{let h;m[e]||(m[e]={});let p=i=>{c({[e]:t(d,i)})};h=m[e].mediaEvents,i.forEach(t=>{h&&O&&(d.media.removeEventListener(t,h),m[e].mediaEvents=void 0),B&&(s.media.addEventListener(t,p),m[e].mediaEvents=p)}),h=m[e].textTracksEvents,r.forEach(t=>{var i,r;h&&N&&(null==(i=d.media.textTracks)||i.removeEventListener(t,h),m[e].textTracksEvents=void 0),j&&(null==(r=s.media.textTracks)||r.addEventListener(t,p),m[e].textTracksEvents=p)}),h=m[e].videoRenditionsEvents,n.forEach(t=>{var i,r;h&&P&&(null==(i=d.media.videoRenditions)||i.removeEventListener(t,h),m[e].videoRenditionsEvents=void 0),$&&(null==(r=s.media.videoRenditions)||r.addEventListener(t,p),m[e].videoRenditionsEvents=p)}),h=m[e].audioTracksEvents,a.forEach(t=>{var i,r;h&&U&&(null==(i=d.media.audioTracks)||i.removeEventListener(t,h),m[e].audioTracksEvents=void 0),z&&(null==(r=s.media.audioTracks)||r.addEventListener(t,p),m[e].audioTracksEvents=p)}),h=m[e].remoteEvents,o.forEach(t=>{var i,r;h&&V&&(null==(i=d.media.remote)||i.removeEventListener(t,h),m[e].remoteEvents=void 0),K&&(null==(r=s.media.remote)||r.addEventListener(t,p),m[e].remoteEvents=p)}),h=m[e].rootEvents,l.forEach(t=>{h&&F&&(d.documentElement.removeEventListener(t,h),m[e].rootEvents=void 0),G&&(s.documentElement.addEventListener(t,p),m[e].rootEvents=p)});let f=m[e].stateOwnersUpdateHandlers;if(f&&W&&(Array.isArray(f)?f:[f]).forEach(e=>{"function"==typeof e&&e()}),q){let t=u.map(e=>e(p,s)).filter(e=>"function"==typeof e);m[e].stateOwnersUpdateHandlers=1===t.length?t[0]:t}else W&&(m[e].stateOwnersUpdateHandlers=void 0)}),Object.entries(s).forEach(([e,t])=>{d[e]=t}),h(),s=void 0};return p({media:e,fullscreenElement:t,documentElement:i,options:a}),{dispatch(e){let{type:t,detail:i}=e;if(n[t]&&null==u.mediaErrorCode)return void c(n[t](r,d,e));"mediaelementchangerequest"===t?p({media:i}):"fullscreenelementchangerequest"===t?p({fullscreenElement:i}):"documentelementchangerequest"===t?p({documentElement:i}):"optionschangerequest"===t&&(Object.entries(null!=i?i:{}).forEach(([e,t])=>{d.options[e]=t}),h())},getState:()=>u,subscribe:e=>(p({},l.length+1),l.push(e),e(u),()=>{let t=l.indexOf(e);t>=0&&(p({},l.length-1),l.splice(t,1))})}})({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(aI.DEFAULT_SUBTITLES),defaultDuration:this.hasAttribute(aI.DEFAULT_DURATION)?+this.getAttribute(aI.DEFAULT_DURATION):void 0,defaultStreamType:null!=(e=this.getAttribute(aI.DEFAULT_STREAM_TYPE))?e:void 0,liveEdgeOffset:this.hasAttribute(aI.LIVE_EDGE_OFFSET)?+this.getAttribute(aI.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(aI.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(aI.SEEK_TO_LIVE_OFFSET):this.hasAttribute(aI.LIVE_EDGE_OFFSET)?+this.getAttribute(aI.LIVE_EDGE_OFFSET):void 0,noAutoSeekToLive:this.hasAttribute(aI.NO_AUTO_SEEK_TO_LIVE),noVolumePref:this.hasAttribute(aI.NO_VOLUME_PREF),noMutedPref:this.hasAttribute(aI.NO_MUTED_PREF),noSubtitlesLangPref:this.hasAttribute(aI.NO_SUBTITLES_LANG_PREF)}})},K=new WeakMap,G=new WeakSet,q=function(e){var t;let{metaKey:i,altKey:r,key:n,shiftKey:a}=e,o=a&&("/"===n||"?"===n);if(o&&(null==(t=ak(this,F))?void 0:t.open)||i||r||!o&&!aS.includes(n))return void this.removeEventListener("keyup",ak(this,K));let s=e.target,l=s instanceof HTMLElement&&("media-volume-range"===s.tagName.toLowerCase()||"media-time-range"===s.tagName.toLowerCase());![" ","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(n)||ak(this,P).contains(`no${n.toLowerCase()}`)||" "===n&&ak(this,P).contains("nospace")||l||e.preventDefault(),this.addEventListener("keyup",ak(this,K),{once:!0})},Y=new WeakSet,Z=function(){ak(this,F)||(a_(this,F,nu.createElement("media-keyboard-shortcuts-dialog")),this.appendChild(ak(this,F))),ak(this,F).open=!0};let aL=Object.values(rj),aM=Object.values(rH),aR=e=>{var t,i,r,n;let{observedAttributes:a}=e.constructor;!a&&(null==(t=e.nodeName)?void 0:t.includes("-"))&&(nd.customElements.upgrade(e),{observedAttributes:a}=e.constructor);let o=null==(n=null==(r=null==(i=null==e?void 0:e.getAttribute)?void 0:i.call(e,rW.MEDIA_CHROME_ATTRIBUTES))?void 0:r.split)?void 0:n.call(r,/\s+/);return Array.isArray(a||o)?(a||o).filter(e=>aL.includes(e)):[]},aD=e=>(e=>{var t,i;return(null==(t=e.nodeName)?void 0:t.includes("-"))&&nd.customElements.get(null==(i=e.nodeName)?void 0:i.toLowerCase())&&!(e instanceof nd.customElements.get(e.nodeName.toLowerCase()))&&nd.customElements.upgrade(e),aM.some(t=>t in e)})(e)||!!aR(e).length,aO=e=>{var t;return null==(t=null==e?void 0:e.join)?void 0:t.call(e,":")},aN={[rj.MEDIA_SUBTITLES_LIST]:n2,[rj.MEDIA_SUBTITLES_SHOWING]:n2,[rj.MEDIA_SEEKABLE]:aO,[rj.MEDIA_BUFFERED]:e=>null==e?void 0:e.map(aO).join(" "),[rj.MEDIA_PREVIEW_COORDS]:e=>null==e?void 0:e.join(" "),[rj.MEDIA_RENDITION_LIST]:function(e){return null==e?void 0:e.map(rX).join(" ")},[rj.MEDIA_AUDIO_TRACK_LIST]:function(e){return null==e?void 0:e.map(r0).join(" ")}},aP=async(e,t,i)=>{var r,n;if(e.isConnected||await r3(0),"boolean"==typeof i||null==i)return nM(e,t,i);if("number"==typeof i)return nC(e,t,i);if("string"==typeof i)return nD(e,t,i);if(Array.isArray(i)&&!i.length)return e.removeAttribute(t);let a=null!=(n=null==(r=aN[t])?void 0:r.call(aN,i))?n:i;return e.setAttribute(t,a)},aU=(e,t)=>
159{if((e=>{var t;return!!(null==(t=e.closest)?void 0:t.call(e,'*[slot="media"]'))})(e))return;let i=(e,t)=>{var i,r;aD(e)&&t(e);let{children:n=[]}=null!=e?e:{};[...n,...null!=(r=null==(i=null==e?void 0:e.shadowRoot)?void 0:i.children)?r:[]].forEach(e=>aU(e,t))},r=null==e?void 0:e.nodeName.toLowerCase();if(r.includes("-")&&!aD(e))return void nd.customElements.whenDefined(r).then(()=>{i(e,t)});i(e,t)},aV=(e,t,i)=>{e.forEach(e=>{if(t in e){e[t]=i;return}let r=aR(e),n=t.toLowerCase();r.includes(n)&&aP(e,n,i)})},aF=(e,t,i)=>{aU(e,t);let r=e=>{var i;t(null!=(i=null==e?void 0:e.composedPath()[0])?i:e.target)},n=e=>{var t;i(null!=(t=null==e?void 0:e.composedPath()[0])?t:e.target)};e.addEventListener(rF.REGISTER_MEDIA_STATE_RECEIVER,r),e.addEventListener(rF.UNREGISTER_MEDIA_STATE_RECEIVER,n);let a=[],o=e=>{let r=e.target;"media"!==r.name&&(a.forEach(e=>aU(e,i)),(a=[...r.assignedElements({flatten:!0})]).forEach(e=>aU(e,t)))};e.addEventListener("slotchange",o);let s=new MutationObserver(e=>{e.forEach(e=>{let{addedNodes:r=[],removedNodes:n=[],type:a,target:o,attributeName:s}=e;"childList"===a?(Array.prototype.forEach.call(r,e=>aU(e,t)),Array.prototype.forEach.call(n,e=>aU(e,i))):"attributes"===a&&s===rW.MEDIA_CHROME_ATTRIBUTES&&(aD(o)?t(o):i(o))})});return s.observe(e,{childList:!0,attributes:!0,subtree:!0}),()=>{aU(e,i),e.removeEventListener("slotchange",o),s.disconnect(),e.removeEventListener(rF.REGISTER_MEDIA_STATE_RECEIVER,r),e.removeEventListener(rF.UNREGISTER_MEDIA_STATE_RECEIVER,n)}};nd.customElements.get("media-controller")||nd.customElements.define("media-controller",aC);let aW={PLACEMENT:"placement",BOUNDS:"bounds"};class aH extends nd.HTMLElement{constructor(){if(super(),this.updateXOffset=()=>{var e;if(!n_(this,{checkOpacity:!1,checkVisibilityCSS:!1}))return;let t=this.placement;if("left"===t||"right"===t)return void this.style.removeProperty("--media-tooltip-offset-x");let i=getComputedStyle(this),r=null!=(e=nA(this,"#"+this.bounds))?e:ng(this);if(!r)return;let{x:n,width:a}=r.getBoundingClientRect(),{x:o,width:s}=this.getBoundingClientRect(),l=i.getPropertyValue("--media-tooltip-offset-x"),d=l?parseFloat(l.replace("px","")):0,u=i.getPropertyValue("--media-tooltip-container-margin"),c=u?parseFloat(u.replace("px","")):0,h=o-n+d-c,m=o+s-(n+a)+d+c;return h<0?void this.style.setProperty("--media-tooltip-offset-x",`${h}px`):m>0?void this.style.setProperty("--media-tooltip-offset-x",`${m}px`):void this.style.removeProperty("--media-tooltip-offset-x")},!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(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[aW.PLACEMENT,aW.BOUNDS]}get placement(){return nR(this,aW.PLACEMENT)}set placement(e){nD(this,aW.PLACEMENT,e)}get bounds(){return nR(this,aW.BOUNDS)}set bounds(e){nD(this,aW.BOUNDS,e)}}aH.shadowRootOptions={mode:"open"},aH.getTemplateHTML=function(e){return`
160    <style>
161      :host {
162        --_tooltip-background-color: var(--media-tooltip-background-color, var(--media-secondary-color, rgba(20, 20, 30, .7)));
163        --_tooltip-background: var(--media-tooltip-background, var(--_tooltip-background-color));
164        --_tooltip-arrow-half-width: calc(var(--media-tooltip-arrow-width, 12px) / 2);
165        --_tooltip-arrow-height: var(--media-tooltip-arrow-height, 5px);
166        --_tooltip-arrow-background: var(--media-tooltip-arrow-color, var(--_tooltip-background-color));
167        position: relative;
168        pointer-events: none;
169        display: var(--media-tooltip-display, inline-flex);
170        justify-content: center;
171        align-items: center;
172        box-sizing: border-box;
173        z-index: var(--media-tooltip-z-index, 1);
174        background: var(--_tooltip-background);
175        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
176        font: var(--media-font,
177          var(--media-font-weight, 400)
178          var(--media-font-size, 13px) /
179          var(--media-text-content-height, var(--media-control-height, 18px))
180          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
181        padding: var(--media-tooltip-padding, .35em .7em);
182        border: var(--media-tooltip-border, none);
183        border-radius: var(--media-tooltip-border-radius, 5px);
184        filter: var(--media-tooltip-filter, drop-shadow(0 0 4px rgba(0, 0, 0, .2)));
185        white-space: var(--media-tooltip-white-space, nowrap);
186      }
187
188      :host([hidden]) {
189        display: none;
190      }
191
192      img, svg {
193        display: inline-block;
194      }
195
196      #arrow {
197        position: absolute;
198        width: 0px;
199        height: 0px;
200        border-style: solid;
201        display: var(--media-tooltip-arrow-display, block);
202      }
203
204      :host(:not([placement])),
205      :host([placement="top"]) {
206        position: absolute;
207        bottom: calc(100% + var(--media-tooltip-distance, 12px));
208        left: 50%;
209        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0
209);
210      }
211      :host(:not([placement])) #arrow,
212      :host([placement="top"]) #arrow {
213        top: 100%;
214        left: 50%;
215        border-width: var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width);
216        border-color: var(--_tooltip-arrow-background) transparent transparent transparent;
217        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
218      }
219
220      :host([placement="right"]) {
221        position: absolute;
222        left: calc(100% + var(--media-tooltip-distance, 12px));
223        top: 50%;
224        transform: translate(0, -50%);
225      }
226      :host([placement="right"]) #arrow {
227        top: 50%;
228        right: 100%;
229        border-width: var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0;
230        border-color: transparent var(--_tooltip-arrow-background) transparent transparent;
231        transform: translate(0, -50%);
232      }
233
234      :host([placement="bottom"]) {
235        position: absolute;
236        top: calc(100% + var(--media-tooltip-distance, 12px));
237        left: 50%;
238        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0);
239      }
240      :host([placement="bottom"]) #arrow {
241        bottom: 100%;
242        left: 50%;
243        border-width: 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width);
244        border-color: transparent transparent var(--_tooltip-arrow-background) transparent;
245        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
246      }
247
248      :host([placement="left"]) {
249        position: absolute;
250        right: calc(100% + var(--media-tooltip-distance, 12px));
251        top: 50%;
252        transform: translate(0, -50%);
253      }
254      :host([placement="left"]) #arrow {
255        top: 50%;
256        left: 100%;
257        border-width: var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height);
258        border-color: transparent transparent transparent var(--_tooltip-arrow-background);
259        transform: translate(0, -50%);
260      }
261      
262      :host([placement="none"]) #arrow {
263        display: none;
264      }
265    </style>
266    <slot></slot>
267    <div id="arrow"></div>
268  `},nd.customElements.get("media-tooltip")||nd.customElements.define("media-tooltip",aH);var aB=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},aj=(e,t,i)=>(aB(e,t,"read from private field"),i?i.call(e):t.get(e)),a$=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},az=(e,t,i,r)=>(aB(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);let aK={TOOLTIP_PLACEMENT:"tooltipplacement",DISABLED:"disabled",NO_TOOLTIP:"notooltip"};class aG extends nd.HTMLElement{constructor(){if(super(),a$(this,ei),a$(this,Q,void 0),this.preventClick=!1,this.tooltipEl=null,a$(this,X,e=>{this.preventClick||this.handleClick(e),setTimeout(aj(this,J),0)}),a$(this,J,()=>{var e,t;null==(t=null==(e=this.tooltipEl)?void 0:e.updateXOffset)||t.call(e)}),a$(this,ee,e=>{let{key:t}=e;if(!this.keysUsed.includes(t))return void this.removeEventListener("keyup",aj(this,ee));this.preventClick||this.handleClick(e)}),a$(this,et,e=>{let{metaKey:t,altKey:i,key:r}=e;if(t||i||!this.keysUsed.includes(r))return void this.removeEventListener("keyup",aj(this,ee));this.addEventListener("keyup",aj(this,ee),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(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",aK.TOOLTIP_PLACEMENT,rW.MEDIA_CONTROLLER,rj.MEDIA_LANG]}enable(){this.addEventListener("click",aj(this,X)),this.addEventListener("keydown",aj(this,et)),this.tabIndex=0}disable(){this.removeEventListener("click",aj(this,X)),this.removeEventListener("keydown",aj(this,et)),this.removeEventListener("keyup",aj(this,ee)),this.tabIndex=-1}attributeChangedCallback(e,t,i){var r,n,a,o,s;e===rW.MEDIA_CONTROLLER?(t&&(null==(n=null==(r=aj(this,Q))?void 0:r.unassociateElement)||n.call(r,this),az(this,Q,null)),i&&this.isConnected&&(az(this,Q,null==(a=this.getRootNode())?void 0:a.getElementById(i)),null==(s=null==(o=aj(this,Q))?void 0:o.associateElement)||s.call(o,this))):"disabled"===e&&i!==t?null==i?this.enable():this.disable():e===aK.TOOLTIP_PLACEMENT&&this.tooltipEl&&i!==t?this.tooltipEl.placement=i:e===rj.MEDIA_LA
268NG&&(this.shadowRoot.querySelector('slot[name="tooltip-content"]').innerHTML=this.constructor.getTooltipContentHTML()),aj(this,J).call(this)}connectedCallback(){var e,t,i;let{style:r}=nT(this.shadowRoot,":host");r.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(rW.MEDIA_CONTROLLER);n&&(az(this,Q,null==(e=this.getRootNode())?void 0:e.getElementById(n)),null==(i=null==(t=aj(this,Q))?void 0:t.associateElement)||i.call(t,this)),nd.customElements.whenDefined("media-tooltip").then(()=>{var e,t;return(e=ei,t=er,aB(this,e,"access private method"),t).call(this)})}disconnectedCallback(){var e,t;this.disable(),null==(t=null==(e=aj(this,Q))?void 0:e.unassociateElement)||t.call(e,this),az(this,Q,null),this.removeEventListener("mouseenter",aj(this,J)),this.removeEventListener("focus",aj(this,J)),this.removeEventListener("click",aj(this,X))}get keysUsed(){return["Enter"," "]}get tooltipPlacement(){return nR(this,aK.TOOLTIP_PLACEMENT)}set tooltipPlacement(e){nD(this,aK.TOOLTIP_PLACEMENT,e)}get mediaController(){return nR(this,rW.MEDIA_CONTROLLER)}set mediaController(e){nD(this,rW.MEDIA_CONTROLLER,e)}get disabled(){return nL(this,aK.DISABLED)}set disabled(e){nM(this,aK.DISABLED,e)}get noTooltip(){return nL(this,aK.NO_TOOLTIP)}set noTooltip(e){nM(this,aK.NO_TOOLTIP,e)}handleClick(e){}}Q=new WeakMap,X=new WeakMap,J=new WeakMap,ee=new WeakMap,et=new WeakMap,ei=new WeakSet,er=function(){this.addEventListener("mouseenter",aj(this,J)),this.addEventListener("focus",aj(this,J)),this.addEventListener("click",aj(this,X));let e=this.tooltipPlacement;e&&this.tooltipEl&&(this.tooltipEl.placement=e)},aG.shadowRootOptions={mode:"open"},aG.getTemplateHTML=function(e,t={}){return`
269    <style>
270      :host {
271        position: relative;
272        font: var(--media-font,
273          var(--media-font-weight, bold)
274          var(--media-font-size, 14px) /
275          var(--media-text-content-height, var(--media-control-height, 24px))
276          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
277        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
278        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
279        padding: var(--media-button-padding, var(--media-control-padding, 10px));
280        justify-content: var(--media-button-justify-content, center);
281        display: inline-flex;
282        align-items: center;
283        vertical-align: middle;
284        box-sizing: border-box;
285        transition: background .15s linear;
286        pointer-events: auto;
287        cursor: var(--media-cursor, pointer);
288        -webkit-tap-highlight-color: transparent;
289      }
290
291      
292      :host(:focus-visible) {
293        box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
294        outline: 0;
295      }
296      
297      :host(:where(:focus)) {
298        box-shadow: none;
299        outline: 0;
300      }
301
302      :host(:hover) {
303        background: var(--media-control-hover-background, rgba(50 50 70 / .7));
304      }
305
306      slot[name="icon"] {
307        display: inline-flex;
308        align-items: center;
309      }
310
311      svg, img, ::slotted(svg), ::slotted(img) {
312        width: var(--media-button-icon-width);
313        height: var(--media-button-icon-height, var(--media-control-height, 24px));
314        transform: var(--media-button-icon-transform);
315        transition: var(--media-button-icon-transition);
316        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
317        vertical-align: middle;
318        max-width: 100%;
319        max-height: 100%;
320        min-width: 100%;
321      }
322
323      media-tooltip {
324        
325        max-width: 0;
326        overflow-x: clip;
327        opacity: 0;
328        transition: opacity .3s, max-width 0s 9s;
329      }
330
331      :host(:hover) media-tooltip,
332      :host(:focus-visible) media-tooltip {
333        max-width: 100vw;
334        opacity: 1;
335        transition: opacity .3s;
336      }
337
338      :host([notooltip]) slot[name="tooltip"] {
339        display: none;
340      }
341    </style>
342
343    ${this.getSlotTemplateHTML(e,t)}
344
345    <slot name="tooltip">
346      <media-tooltip part="tooltip" aria-hidden="true">
347        <template shadowrootmode="${aH.shadowRootOptions.mode}">
348          ${aH.getTemplateHTML({})}
349        </template>
350        <slot name="tooltip-content">
351          ${this.getTooltipContentHTML(e)}
352        </slot>
353      </media-tooltip>
354    </slot>
355  `},aG.getSlotTemplateHTML=function(e,t){return`
356    <slot></slot>
357  `},aG.getTooltipContentHTML=function(){return""},nd.customElements.get("media-chrome-button")||nd.customElements.define("media-chrome-button",aG);let aq=`<svg aria-hidden="true" viewBox="0 0 26 24">
358  <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"/>
359</svg>
360`,aY=e=>{let t=e.mediaIsAirplaying?r8("stop airplay"):r8("start airplay");e.setAttribute("aria-label",t)};class aZ extends aG{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_IS_AIRPLAYING,rj.MEDIA_AIRPLAY_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),aY(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_IS_AIRPLAYING&&aY(this)}get mediaIsAirplaying(){return nL(this,rj.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(e){nM(this,rj.MEDIA_IS_AIRPLAYING,e)}get mediaAirplayUnavailable(){return nR(this,rj.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(e){nD(this,rj.MEDIA_AIRPLAY_UNAVAILABLE,e)}handleClick(){let e=new nd.CustomEvent(rF.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(e)}}aZ.getSlotTemplateHTML=function(e){return`
361    <style>
362      :host([${rj.MEDIA_IS_AIRPLAYING}]) slot[name=icon] slot:not([name=exit]) {
363        display: none !important;
364      }
365
366      
367      :host(:not([${rj.MEDIA_IS_AIRPLAYING}])) slot[name=icon] slot:not([name=enter]) {
368        display: none !important;
369      }
370
371      :host([${rj.MEDIA_IS_AIRPLAYING}]) slot[name=tooltip-enter],
372      :host(:not([${rj.MEDIA_IS_AIRPLAYING}])) slot[name=tooltip-exit] {
373        display: none;
374      }
375    </style>
376
377    <slot name="icon">
378      <slot name="enter">${aq}</slot>
379      <slot name="exit">${aq}</slot>
380    </slot>
381  `},aZ.getTooltipContentHTML=function(){return`
382    <slot name="tooltip-enter">${r8("start airplay")}</slot>
383    <slot name="tooltip-exit">${r8("stop airplay")}</slot>
384  `},nd.customElements.get("media-airplay-button")||nd.customElements.define("media-airplay-button",aZ);let aQ=`<svg aria-hidden="true" viewBox="0 0 26 24">
385  <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"/>
386</svg>`,aX=`<svg aria-hidden="true" viewBox="0 0 26 24">
387  <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.8
3871 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"/>
388</svg>`,aJ=e=>{e.setAttribute("aria-checked",n7(e).toString())};class a0 extends aG{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_SUBTITLES_LIST,rj.MEDIA_SUBTITLES_SHOWING]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("aria-label",r8("closed captions")),aJ(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_SUBTITLES_SHOWING&&aJ(this)}get mediaSubtitlesList(){return a1(this,rj.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){a2(this,rj.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return a1(this,rj.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){a2(this,rj.MEDIA_SUBTITLES_SHOWING,e)}handleClick(){this.dispatchEvent(new nd.CustomEvent(rF.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}}a0.getSlotTemplateHTML=function(e){return`
389    <style>
390      :host([aria-checked="true"]) slot[name=off] {
391        display: none !important;
392      }
393
394      
395      :host(:not([aria-checked="true"])) slot[name=on] {
396        display: none !important;
397      }
398
399      :host([aria-checked="true"]) slot[name=tooltip-enable],
400      :host(:not([aria-checked="true"])) slot[name=tooltip-disable] {
401        display: none;
402      }
403    </style>
404
405    <slot name="icon">
406      <slot name="on">${aQ}</slot>
407      <slot name="off">${aX}</slot>
408    </slot>
409  `},a0.getTooltipContentHTML=function(){return`
410    <slot name="tooltip-enable">${r8("Enable captions")}</slot>
411    <slot name="tooltip-disable">${r8("Disable captions")}</slot>
412  `};let a1=(e,t)=>{let i=e.getAttribute(t);return i?nJ(i):[]},a2=(e,t,i)=>{if(!(null==i?void 0:i.length))return void e.removeAttribute(t);let r=n2(i);e.getAttribute(t)!==r&&e.setAttribute(t,r)};nd.customElements.get("media-captions-button")||nd.customElements.define("media-captions-button",a0);let a5=e=>{let t=e.mediaIsCasting?r8("stop casting"):r8("start casting");e.setAttribute("aria-label",t)};class a3 extends aG{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_IS_CASTING,rj.MEDIA_CAST_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),a5(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_IS_CASTING&&a5(this)}get mediaIsCasting(){return nL(this,rj.MEDIA_IS_CASTING)}set mediaIsCasting(e){nM(this,rj.MEDIA_IS_CASTING,e)}get mediaCastUnavailable(){return nR(this,rj.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(e){nD(this,rj.MEDIA_CAST_UNAVAILABLE,e)}handleClick(){let e=this.mediaIsCasting?rF.MEDIA_EXIT_CAST_REQUEST:rF.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new nd.CustomEvent(e,{composed:!0,bubbles:!0}))}}a3.getSlotTemplateHTML=function(e){return`
413    <style>
414      :host([${rj.MEDIA_IS_CASTING}]) slot[name=icon] slot:not([name=exit]) {
415        display: none !important;
416      }
417
418      
419      :host(:not([${rj.MEDIA_IS_CASTING}])) slot[name=icon] slot:not([name=enter]) {
420        display: none !important;
421      }
422
423      :host([${rj.MEDIA_IS_CASTING}]) slot[name=tooltip-enter],
424      :host(:not([${rj.MEDIA_IS_CASTING}])) slot[name=tooltip-exit] {
425        display: none;
426      }
427    </style>
428
429    <slot name="icon">
430      <slot name="enter"><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></slot>
431      <slot name="exit"><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></slot>
432    </slot>
433  `},a3.getTooltipContentHTML=function(){return`
434    <slot name="tooltip-enter">${r8("Start casting")}</slot>
435    <slot name="tooltip-exit">${r8("Stop casting")}</slot>
436  `},nd.customElements.get("media-cast-button")||nd.customElements.define("media-cast-button",a3);var a4=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},a7=(e,t,i)=>(a4(e,t,"read from private field"),i?i.call(e):t.get(e)),a8=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},a6=(e,t,i,r)=>(a4(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),a9=(e,t,i)=>(a4(e,t,"access private method"),i);let oe={OPEN:"open",ANCHOR:"anchor"};class ot extends nd.HTMLElement{constructor(){super(),a8(this,es),a8(this,ed),a8(this,ec),a8(this,em),a8(this,ef),a8(this,eg),a8(this,en,!1),a8(this,ea,null),a8(this,eo,null)}static get observedAttributes(){return[oe.OPEN,oe.ANCHOR]}get open(){return nL(this,oe.OPEN)}set open(e){nM(this,oe.OPEN,e)}handleEvent(e){switch(e.type){case"invoke":a9(this,em,ep).call(this,e);break;case"focusout":a9(this,ef,ev).call(this,e);break;case"keydown":a9(this,eg,eb).call(this,e)}}connectedCallback(){a9(this,es,el).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,i){a9(this,es,el).call(this),e===oe.OPEN&&i!==t&&(this.open?a9(this,ed,eu).call(this):a9(this,ec,eh).call(this))}focus(){a6(this,ea,nk());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;
436let i=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==i||i.focus()}get keysUsed(){return["Escape","Tab"]}}en=new WeakMap,ea=new WeakMap,eo=new WeakMap,es=new WeakSet,el=function(){if(!a7(this,en)&&(a6(this,en,!0),!this.shadowRoot)){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e),queueMicrotask(()=>{let{style:e}=nT(this.shadowRoot,":host");e.setProperty("transition","display .15s, visibility .15s, opacity .15s ease-in, transform .15s ease-in")})}},ed=new WeakSet,eu=function(){var e;null==(e=a7(this,eo))||e.setAttribute("aria-expanded","true"),this.dispatchEvent(new Event("open",{composed:!0,bubbles:!0})),this.addEventListener("transitionend",()=>this.focus(),{once:!0})},ec=new WeakSet,eh=function(){var e;null==(e=a7(this,eo))||e.setAttribute("aria-expanded","false"),this.dispatchEvent(new Event("close",{composed:!0,bubbles:!0}))},em=new WeakSet,ep=function(e){a6(this,eo,e.relatedTarget),nw(this,e.relatedTarget)||(this.open=!this.open)},ef=new WeakSet,ev=function(e){var t;!nw(this,e.relatedTarget)&&(null==(t=a7(this,ea))||t.focus(),a7(this,eo)&&a7(this,eo)!==e.relatedTarget&&this.open&&(this.open=!1))},eg=new WeakSet,eb=function(e){var t,i,r,n,a;let{key:o,ctrlKey:s,altKey:l,metaKey:d}=e;s||l||d||this.keysUsed.includes(o)&&(e.preventDefault(),e.stopPropagation(),"Tab"===o?(e.shiftKey?null==(i=null==(t=this.previousElementSibling)?void 0:t.focus)||i.call(t):null==(n=null==(r=this.nextElementSibling)?void 0:r.focus)||n.call(r),this.blur()):"Escape"===o&&(null==(a=a7(this,ea))||a.focus(),this.open=!1))},ot.shadowRootOptions={mode:"open"},ot.getTemplateHTML=function(e){return`
437    <style>
438      :host {
439        font: var(--media-font,
440          var(--media-font-weight, normal)
441          var(--media-font-size, 14px) /
442          var(--media-text-content-height, var(--media-control-height, 24px))
443          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
444        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
445        display: var(--media-dialog-display, inline-flex);
446        justify-content: center;
447        align-items: center;
448        
449        transition-behavior: allow-discrete;
450        visibility: hidden;
451        opacity: 0;
452        transform: translateY(2px) scale(.99);
453        pointer-events: none;
454      }
455
456      :host([open]) {
457        transition: display .2s, visibility 0s, opacity .2s ease-out, transform .15s ease-out;
458        visibility: visible;
459        opacity: 1;
460        transform: translateY(0) scale(1);
461        pointer-events: auto;
462      }
463
464      #content {
465        display: flex;
466        position: relative;
467        box-sizing: border-box;
468        width: min(320px, 100%);
469        word-wrap: break-word;
470        max-height: 100%;
471        overflow: auto;
472        text-align: center;
473        line-height: 1.4;
474      }
475    </style>
476    ${this.getSlotTemplateHTML(e)}
477  `},ot.getSlotTemplateHTML=function(e){return`
478    <slot id="content"></slot>
479  `},nd.customElements.get("media-chrome-dialog")||nd.customElements.define("media-chrome-dialog",ot);var oi=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},or=(e,t,i)=>(oi(e,t,"read from private field"),i?i.call(e):t.get(e)),on=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oa=(e,t,i,r)=>(oi(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),oo=(e,t,i)=>(oi(e,t,"access private method"),i);class os extends nd.HTMLElement{constructor(){if(super(),on(this,eI),on(this,eL),on(this,eR),on(this,eO),on(this,eP),on(this,eV),on(this,eW),on(this,eB),on(this,eE,void 0),on(this,ey,void 0),on(this,ew,void 0),on(this,eA,void 0),on(this,ek,{}),on(this,ex,[]),on(this,e_,()=>{if(this.range.matches(":focus-visible")){let{style:e}=nT(this.shadowRoot,":host");e.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}}),on(this,eT,()=>{let{style:e}=nT(this.shadowRoot,":host");e.removeProperty("--_focus-visible-box-shadow")}),on(this,eS,()=>{let e=this.shadowRoot.querySelector("#segments-clipping");e&&e.parentNode.append(e)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.container=this.shadowRoot.querySelector("#container"),oa(this,ew,this.shadowRoot.querySelector("#startpoint")),oa(this,eA,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",rW.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var r,n,a,o,s;e===rW.MEDIA_CONTROLLER?(t&&(null==(n=null==(r=or(this,eE))?void 0:r.unassociateElement)||n.call(r,this),oa(this,eE,null)),i&&this.isConnected&&(oa(this,eE,null==(a=this.getRootNode())?void 0:a.getElementById(i)),null==(s=null==(o=or(this,eE))?void 0:o.associateElement)||s.call(o,this))):("disabled"===e||"aria-disabled"===e&&t!==i)&&(null==i?(this.range.removeAttribute(e),oo(this,eL,eM).call(this)):(this.range.setAttribute(e,i),oo(this,eR,eD).call(this)))}connectedCallback(){var e,t,i;let{style:r}=nT(this.shadowRoot,":host");r.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),or(this,ek).pointer=nT(this.shadowRoot,"#pointer"),or(this,ek).progress=nT(this.shadowRoot,"#progress"),or(this,ek).thumb=nT(this.shadowRoot,'#thumb, ::slotted([slot="thumb"])'),or(this,ek).activeSegment=nT(this.shadowRoot,"#segments-clipping rect:nth-child(0)");let n=this.getAttribute(rW.MEDIA_CONTROLLER);n&&(oa(this,eE,null==(e=this.getRootNode())?void 0:e.getElementById(n)),null==(i=null==(t=or(this,eE))?void 0:t.associateElement)||i.call(t,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",or(this,e_)),this.shadowRoot.addEventListener("focusout",or(this,eT)),oo(this,eL,eM).call(this),np(this.container,or
479(this,eS))}disconnectedCallback(){var e,t;oo(this,eR,eD).call(this),null==(t=null==(e=or(this,eE))?void 0:e.unassociateElement)||t.call(e,this),oa(this,eE,null),this.shadowRoot.removeEventListener("focusin",or(this,e_)),this.shadowRoot.removeEventListener("focusout",or(this,eT)),nf(this.container,or(this,eS))}updatePointerBar(e){var t;null==(t=or(this,ek).pointer)||t.style.setProperty("width",`${100*this.getPointerRatio(e)}%`)}updateBar(){var e,t;let i=100*this.range.valueAsNumber;null==(e=or(this,ek).progress)||e.style.setProperty("width",`${i}%`),null==(t=or(this,ek).thumb)||t.style.setProperty("left",`${i}%`)}updateSegments(e){let t=this.shadowRoot.querySelector("#segments-clipping");if(t.textContent="",this.container.classList.toggle("segments",!!(null==e?void 0:e.length)),!(null==e?void 0:e.length))return;let i=[...new Set([+this.range.min,...e.flatMap(e=>[e.start,e.end]),+this.range.max])];oa(this,ex,[...i]);let r=i.pop();for(let[e,n]of i.entries()){let[a,o]=[0===e,e===i.length-1],s=a?"calc(var(--segments-gap) / -1)":`${100*n}%`,l=o?r:i[e+1],d=`calc(${(l-n)*100}%${a||o?"":" - var(--segments-gap)"})`,u=nu.createElementNS("http://www.w3.org/2000/svg","rect"),c=nS(this.shadowRoot,`#segments-clipping rect:nth-child(${e+1})`);c.style.setProperty("x",s),c.style.setProperty("width",d),t.append(u)}}getPointerRatio(e){return function(e,t,i,r){let n=r.x-i.x,a=r.y-i.y,o=n*n+a*a;return 0===o?0:Math.max(0,Math.min(1,((e-i.x)*n+(t-i.y)*a)/o))}(e.clientX,e.clientY,or(this,ew).getBoundingClientRect(),or(this,eA).getBoundingClientRect())}get dragging(){return this.hasAttribute("dragging")}handleEvent(e){switch(e.type){case"pointermove":oo(this,eB,ej).call(this,e);break;case"input":this.updateBar();break;case"pointerenter":oo(this,eP,eU).call(this,e);break;case"pointerdown":oo(this,eO,eN).call(this,e);break;case"pointerup":oo(this,eV,eF).call(this);break;case"pointerleave":oo(this,eW,eH).call(this)}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}}eE=new WeakMap,ey=new WeakMap,ew=new WeakMap,eA=new WeakMap,ek=new WeakMap,ex=new WeakMap,e_=new WeakMap,eT=new WeakMap,eS=new WeakMap,eI=new WeakSet,eC=function(e){let t=or(this,ek).activeSegment;if(!t)return;let i=this.getPointerRatio(e),r=or(this,ex).findIndex((e,t,r)=>{let n=r[t+1];return null!=n&&i>=e&&i<=n}),n=`#segments-clipping rect:nth-child(${r+1})`;t.selectorText==n&&t.style.transform||(t.selectorText=n,t.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))},eL=new WeakSet,eM=function(){!this.hasAttribute("disabled")&&this.isConnected&&(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))},eR=new WeakSet,eD=function(){var e,t;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),this.removeEventListener("pointerleave",this),null==(e=nd.window)||e.removeEventListener("pointerup",this),null==(t=nd.window)||t.removeEventListener("pointermove",this)},eO=new WeakSet,eN=function(e){var t;oa(this,ey,e.composedPath().includes(this.range)),null==(t=nd.window)||t.addEventListener("pointerup",this,{once:!0})},eP=new WeakSet,eU=function(e){var t;"mouse"!==e.pointerType&&oo(this,eO,eN).call(this,e),this.addEventListener("pointerleave",this,{once:!0}),null==(t=nd.window)||t.addEventListener("pointermove",this)},eV=new WeakSet,eF=function(){var e;null==(e=nd.window)||e.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},eW=new WeakSet,eH=function(){var e,t;this.removeEventListener("pointerleave",this),null==(e=nd.window)||e.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),null==(t=or(this,ek).activeSegment)||t.style.removeProperty("transform")},eB=new WeakSet,ej=function(e){("pen"!==e.pointerType||0!==e.buttons)&&(this.toggleAttribute("dragging",1===e.buttons||"mouse"!==e.pointerType),this.updatePointerBar(e),oo(this,eI,eC).call(this,e),this.dragging&&("mouse"!==e.pointerType||!or(this,ey))&&(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(e),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))))},os.shadowRootOptions={mode:"open"},os.getTemplateHTML=function(e){return
vendor: 7,165 bytes, lines 479-715
479`
480    <style>
481      :host {
482        --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
483        --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px));
484
485        box-shadow: var(--_focus-visible-box-shadow, none);
486        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
487        height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding));
488        display: inline-flex;
489        align-items: center;
490        
491        vertical-align: middle;
492        box-sizing: border-box;
493        position: relative;
494        width: 100px;
495        transition: background .15s linear;
496        cursor: var(--media-cursor, pointer);
497        pointer-events: auto;
498        touch-action: none; 
499      }
500
501      
502      input[type=range]:focus {
503        outline: 0;
504      }
505      input[type=range]:focus::-webkit-slider-runnable-track {
506        outline: 0;
507      }
508
509      :host(:hover) {
510        background: var(--media-control-hover-background, rgb(50 50 70 / .7));
511      }
512
513      #leftgap {
514        padding-left: var(--media-range-padding-left, var(--_media-range-padding));
515      }
516
517      #rightgap {
518        padding-right: var(--media-range-padding-right, var(--_media-range-padding));
519      }
520
521      #startpoint,
522      #endpoint {
523        position: absolute;
524      }
525
526      #endpoint {
527        right: 0;
528      }
529
530      #container {
531        
532        width: var(--media-range-track-width, 100%);
533        transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px));
534        position: relative;
535        height: 100%;
536        display: flex;
537        align-items: center;
538        min-width: 40px;
539      }
540
541      #range {
542        
543        display: var(--media-time-range-hover-display, block);
544        bottom: var(--media-time-range-hover-bottom, 0);
545        height: var(--media-time-range-hover-height, max(100% , 25px));
546        width: 100%;
547        position: absolute;
548        cursor: var(--media-cursor, pointer);
549
550        -webkit-appearance: none; 
551        -webkit-tap-highlight-color: transparent;
552        background: transparent; 
553        margin: 0;
554        z-index: 1;
555      }
556
557      @media (hover: hover) {
558        #range {
559          bottom: var(--media-time-range-hover-bottom, 0);
560          height: var(--media-time-range-hover-height, max(100%, 20px));
561        }
562      }
563
564      
565      
566      #range::-webkit-slider-thumb {
567        -webkit-appearance: none;
568        background: transparent;
569        width: .1px;
570        height: .1px;
571      }
572
573      
574      #range::-moz-range-thumb {
575        background: transparent;
576        border: transparent;
577        width: .1px;
578        height: .1px;
579      }
580
581      #appearance {
582        height: var(--media-range-track-height, 4px);
583        display: flex;
584        flex-direction: column;
585        justify-content: center;
586        width: 100%;
587        position: absolute;
588        
589        will-change: transform;
590      }
591
592      #track {
593        background: var(--media-range-track-background, rgb(255 255 255 / .2));
594        border-radius: var(--media-range-track-border-radius, 1px);
595        border: var(--media-range-track-border, none);
596        outline: var(--media-range-track-outline);
597        outline-offset: var(--media-range-track-outline-offset);
598        backdrop-filter: var(--media-range-track-backdrop-filter);
599        -webkit-backdrop-filter: var(--media-range-track-backdrop-filter);
600        box-shadow: var(--media-range-track-box-shadow, none);
601        position: absolute;
602        width: 100%;
603        height: 100%;
604        overflow: hidden;
605      }
606
607      #progress,
608      #pointer {
609        position: absolute;
610        height: 100%;
611        will-change: width;
612      }
613
614      #progress {
615        background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238)));
616        transition: var(--media-range-track-transition);
617      }
618
619      #pointer {
620        background: var(--media-range-track-pointer-background);
621        border-right: var(--media-range-track-pointer-border-right);
622        transition: visibility .25s, opacity .25s;
623        visibility: hidden;
624        opacity: 0;
625      }
626
627      @media (hover: hover) {
628        :host(:hover) #pointer {
629          transition: visibility .5s, opacity .5s;
630          visibility: visible;
631          opacity: 1;
632        }
633      }
634
635      #thumb,
636      ::slotted([slot=thumb]) {
637        width: var(--media-range-thumb-width, 10px);
638        height: var(--media-range-thumb-height, 10px);
639        transition: var(--media-range-thumb-transition);
640        transform: var(--media-range-thumb-transform, none);
641        opacity: var(--media-range-thumb-opacity, 1);
642        translate: -50%;
643        position: absolute;
644        left: 0;
645        cursor: var(--media-cursor, pointer);
646      }
647
648      #thumb {
649        border-radius: var(--media-range-thumb-border-radius, 10px);
650        background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238)));
651        box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent);
652        border: var(--media-range-thumb-border, none);
653      }
654
655      :host([disabled]) #thumb {
656        background-color: #777;
657      }
658
659      .segments #appearance {
660        height: var(--media-range-segment-hover-height, 7px);
661      }
662
663      #track {
664        clip-path: url(#segments-clipping);
665      }
666
667      #segments {
668        --segments-gap: var(--media-range-segments-gap, 2px);
669        position: absolute;
670        width: 100%;
671        height: 100%;
672      }
673
674      #segments-clipping {
675        transform: translateX(calc(var(--segments-gap) / 2));
676      }
677
678      #segments-clipping:empty {
679        display: none;
680      }
681
682      #segments-clipping rect {
683        height: var(--media-range-track-height, 4px);
684        y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2);
685        transition: var(--media-range-segment-transition, transform .1s ease-in-out);
686        transform: var(--media-range-segment-transform, scaleY(1));
687        transform-origin: center;
688      }
689
690      /* Visible label for accessibility - positioned off-screen but technically visible (Firefox requires visible labels) */
691      #range-label {
692        position: absolute;
693        left: -10000px;
694        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
695        pointer-events: none;
696      }
697    </style>
698    <div id="leftgap"></div>
699    <div id="container">
700      <div id="startpoint"></div>
701      <div id="endpoint"></div>
702      <div id="appearance">
703        <div id="track" part="track">
704          <div id="pointer"></div>
705          <div id="progress" part="progress"></div>
706        </div>
707        <slot name="thumb">
708          <div id="thumb" part="thumb"></div>
709        </slot>
710        <svg id="segments" aria-hidden="true"><clipPath id="segments-clipping"></clipPath></svg>
711      </div>
712        <input id="range" type="range" min="0" max="1" step="any" value="0">
713        <label for="range" id="range-label"></label>
714
715      ${this.getContainerTemplateHTML(
715e)}
716    </div>
717    <div id="rightgap"></div>
718  `},os.getContainerTemplateHTML=function(e){return""},nd.customElements.get("media-chrome-range")||nd.customElements.define("media-chrome-range",os);var ol=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},od=(e,t,i)=>(ol(e,t,"read from private field"),i?i.call(e):t.get(e)),ou=(e,t,i,r)=>(ol(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);class oc extends nd.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,e$,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[rW.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var r,n,a,o,s;e===rW.MEDIA_CONTROLLER&&(t&&(null==(n=null==(r=od(this,e$))?void 0:r.unassociateElement)||n.call(r,this),ou(this,e$,null)),i&&this.isConnected&&(ou(this,e$,null==(a=this.getRootNode())?void 0:a.getElementById(i)),null==(s=null==(o=od(this,e$))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,i;let r=this.getAttribute(rW.MEDIA_CONTROLLER);r&&(ou(this,e$,null==(e=this.getRootNode())?void 0:e.getElementById(r)),null==(i=null==(t=od(this,e$))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=od(this,e$))?void 0:e.unassociateElement)||t.call(e,this),ou(this,e$,null)}}
718e$=new WeakMap,oc.shadowRootOptions={mode:"open"},oc.getTemplateHTML=function(e){return`
719    <style>
720      :host {
721        
722        box-sizing: border-box;
723        display: var(--media-control-display, var(--media-control-bar-display, inline-flex));
724        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
725        --media-loading-indicator-icon-height: 44px;
726      }
727
728      ::slotted(media-time-range),
729      ::slotted(media-volume-range) {
730        min-height: 100%;
731      }
732
733      ::slotted(media-time-range),
734      ::slotted(media-clip-selector) {
735        flex-grow: 1;
736      }
737
738      ::slotted([role="menu"]) {
739        position: absolute;
740      }
741    </style>
742
743    <slot></slot>
744  `},nd.customElements.get("media-control-bar")||nd.customElements.define("media-control-bar",oc);var oh=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},om=(e,t,i)=>(oh(e,t,"read from private field"),i?i.call(e):t.get(e)),op=(e,t,i,r)=>(oh(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);class of extends nd.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,ez,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[rW.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var r,n,a,o,s;e===rW.MEDIA_CONTROLLER&&(t&&(null==(n=null==(r=om(this,ez))?void 0:r.unassociateElement)||n.call(r,this),op(this,ez,null)),i&&this.isConnected&&(op(this,ez,null==(a=this.getRootNode())?void 0:a.getElementById(i)),null==(s=null==(o=om(this,ez))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,i;let{style:r}=nT(this.shadowRoot,":host");r.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);let n=this.getAttribute(rW.MEDIA_CONTROLLER);n&&(op(this,ez,null==(e=this.getRootNode())?void 0:e.getElementById(n)),null==(i=null==(t=om(this,ez))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=om(this,ez))?void 0:e.unassociateElement)||t.call(e,this),op(this,ez,null)}}ez=new WeakMap,of.shadowRootOptions={mode:"open"},of.getTemplateHTML=function(e,t={}){return`
745    <style>
746      :host {
747        font: var(--media-font,
748          var(--media-font-weight, normal)
749          var(--media-font-size, 14px) /
750          var(--media-text-content-height, var(--media-control-height, 24px))
751          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
752        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
753        background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))));
754        padding: var(--media-control-padding, 10px);
755        display: inline-flex;
756        justify-content: center;
757        align-items: center;
758        vertical-align: middle;
759        box-sizing: border-box;
760        text-align: center;
761        pointer-events: auto;
762      }
763
764      
765      :host(:focus-visible) {
766        box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
767        outline: 0;
768      }
769
770      
771      :host(:where(:focus)) {
772        box-shadow: none;
773        outline: 0;
774      }
775    </style>
776
777    ${this.getSlotTemplateHTML(e,t)}
778  `},of.getSlotTemplateHTML=function(e,t){return`
779    <slot></slot>
780  `},nd.customElements.get("media-text-display")||nd.customElements.define("media-text-display",of);var ov=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},og=(e,t,i)=>(ov(e,t,"read from private field"),i?i.call(e):t.get(e));class ob extends of{constructor(){var e;super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eK,void 0),((e,t,i,r)=>(ov(e,t,"write to private field"),r?r.call(e,i):t.set(e,i)))(this,eK,this.shadowRoot.querySelector("slot")),og(this,eK).textContent=ne(null!=(e=this.mediaDuration)?e:0)}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_DURATION]}attributeChangedCallback(e,t,i){e===rj.MEDIA_DURATION&&(og(this,eK).textContent=ne(+i)),super.attributeChangedCallback(e,t,i)}get mediaDuration(){return nI(this,rj.MEDIA_DURATION)}set mediaDuration(e){nC(this,rj.MEDIA_DURATION,e)}}eK=new WeakMap,ob.getSlotTemplateHTML=function(e,t){return`
781    <slot>${ne(t.mediaDuration)}</slot>
782  `},nd.customElements.get("media-duration-display")||nd.customElements.define("media-duration-display",ob);let oE={2:r8("Network Error"),3:r8("Decode Error"),4:r8("Source Not Supported"),5:r8("Encryption 
782Error")},oy={2:r8("A network error caused the media download to fail."),3:r8("A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format."),4:r8("An unsupported error occurred. The server or network failed, or your browser does not support this format."),5:r8("The media is encrypted and there are no keys to decrypt it.")},ow=e=>{var t,i;return 1===e.code?null:{title:null!=(t=oE[e.code])?t:`Error ${e.code}`,message:null!=(i=oy[e.code])?i:e.message}};var oA=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};function ok(e){var t;let{title:i,message:r}=null!=(t=ow(e))?t:{},n="";return i&&(n+=`<slot name="error-${e.code}-title"><h3>${i}</h3></slot>`),r&&(n+=`<slot name="error-${e.code}-message"><p>${r}</p></slot>`),n}let ox=[rj.MEDIA_ERROR_CODE,rj.MEDIA_ERROR_MESSAGE];class o_ extends ot{constructor(){super(...arguments),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eG,null)}static get observedAttributes(){return[...super.observedAttributes,...ox]}formatErrorMessage(e){return this.constructor.formatErrorMessage(e)}attributeChangedCallback(e,t,i){var r;if(super.attributeChangedCallback(e,t,i),!ox.includes(e))return;let n=null!=(r=this.mediaError)?r:{code:this.mediaErrorCode,message:this.mediaErrorMessage};if(this.open=n.code&&null!==ow(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:e}=ow(n);e&&this.setAttribute("aria-label",e)}}get mediaError(){var e,t;return oA(this,e=eG,"read from private field"),t?t.call(this):e.get(this)}set mediaError(e){var t,i;oA(this,t=eG,"write to private field"),i?i.call(this,e):t.set(this,e)}get mediaErrorCode(){return nI(this,"mediaerrorcode")}set mediaErrorCode(e){nC(this,"mediaerrorcode",e)}get mediaErrorMessage(){return nR(this,"mediaerrormessage")}set mediaErrorMessage(e){nD(this,"mediaerrormessage",e)}}eG=new WeakMap,o_.getSlotTemplateHTML=function(e){return`
783    <style>
784      :host {
785        background: rgb(20 20 30 / .8);
786      }
787
788      #content {
789        display: block;
790        padding: 1.2em 1.5em;
791      }
792
793      h3,
794      p {
795        margin-block: 0 .3em;
796      }
797    </style>
798    <slot name="error-${e.mediaerrorcode}" id="content">
799      ${ok({code:+e.mediaerrorcode,message:e.mediaerrormessage})}
800    </slot>
801  `},o_.formatErrorMessage=ok,nd.customElements.get("media-error-dialog")||nd.customElements.define("media-error-dialog",o_);var oT=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot read from private field");return i?i.call(e):t.get(e)},oS=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)};class oI extends ot{constructor(){super(...arguments),oS(this,eq,e=>{var t;if(!this.open)return;let i=null==(t=this.shadowRoot)?void 0:t.querySelector("#content");if(!i)return;let r=e.composedPath(),n=r[0]===this||r.includes(this),a=r.includes(i);n&&!a&&(this.open=!1)}),oS(this,eY,e=>{if(!this.open)return;let t=e.shiftKey&&("/"===e.key||"?"===e.key);"Escape"!==e.key&&!t||e.ctrlKey||e.altKey||e.metaKey||(this.open=!1,e.preventDefault(),e.stopPropagation())})}connectedCallback(){super.connectedCallback(),this.open&&(this.addEventListener("click",oT(this,eq)),document.addEventListener("keydown",oT(this,eY)))}disconnectedCallback(){this.removeEventListener("click",oT(this,eq)),document.removeEventListener("keydown",oT(this,eY))}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"open"===e&&(this.open?(this.addEventListener("click",oT(this,eq)),document.addEventListener("keydown",oT(this,eY))):(this.removeEventListener("click",oT(this,eq)),document.removeEventListener("keydown",oT(this,eY))))}}eq=new WeakMap,eY=new WeakMap,oI.getSlotTemplateHTML=function(e){return`
802    <style>
803      :host {
804        position: fixed;
805        top: 0;
806        left: 0;
807        z-index: 9999;
808        background: rgb(20 20 30 / .8);
809        backdrop-filter: blur(10px);
810      }
811
812      #content {
813        display: block;
814        width: clamp(400px, 40vw, 700px);
815        max-width: 90vw;
816        text-align: left;
817      }
818
819      h2 {
820        margin: 0 0 1.5rem 0;
821        font-size: 1.5rem;
822        font-weight: 500;
823        text-align: center;
824      }
825
826      .shortcuts-table {
827        width: 100%;
828        border-collapse: collapse;
829      }
830
831      .shortcuts-table tr {
832        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
833      }
834
835      .shortcuts-table tr:last-child {
836        border-bottom: none;
837      }
838
839      .shortcuts-table td {
840        padding: 0.75rem 0.5rem;
841      }
842
843      .shortcuts-table td:first-child {
844        text-align: right;
845        padding-right: 1rem;
846        width: 40%;
847        min-width: 120px;
848      }
849
850      .shortcuts-table td:last-child {
851        padding-left: 1rem;
852      }
853
854      .key {
855        display: inline-block;
856        background: rgba(255, 255, 255, 0.15);
857        border: 1px solid rgba(255, 255, 255, 0.2);
858        border-radius: 4px;
859        padding: 0.25rem 0.5rem;
860        font-family: 'Courier New', monospace;
861        font-size: 0.9rem;
862        font-weight: 500;
863        min-width: 1.5rem;
864        text-align: center;
865        margin: 0 0.2rem;
866      }
867
868      .description {
869        color: rgba(255, 255, 255, 0.9);
870        font-size: 0.95rem;
871      }
872
873      .key-combo {
874        display: flex;
875        align-items: center;
876        justify-content: flex-end;
877        gap: 0.3rem;
878      }
879
880      .key-separator {
881        color: rgba(255, 255, 255, 0.5);
882        font-size: 0.9rem;
883      }
884    </style>
885    <slot id="content">
886      ${function(){let e=[{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:["←","j"],description:"Seek back 10s"},{keys:["→","l"],description:"Seek forward 10s"},{keys:["↑"],description:"Turn volume up"},{keys:["↓"],description:"Turn volume down"},{keys:["< (SHIFT+,)"],description:"Decrease playback rate"},{keys:["> (SHIFT+.)"],description:"Increase playback rate"}].map(({keys:e,description:t})=>{let i=e.map((e,t)=>t>0?`<span class="key-separator">or</span><span class="key">${e}</span>`:`<span class="key">${e}</span>`).join("");return`
887      <tr>
888        <td>
889          <div class="key-combo">${i}</div>
890        </td>
891        <td class="description">${t}</td>
892      </tr>
893    `}).join("");return`
894    <h2>Keyboard Shortcuts</h2>
895    <table class="shortcuts-table">${e}</table>
896  `}()}
897    </slot>
898  `},nd.customElements.get("media-keyboard-shortcuts-dialog")||nd.customElements.define("media-keyboard-shortcuts-dialog",oI);var oC=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};let oL=`<svg aria-hidden="true" viewBox="0 0 26 24">
899  <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/>
900</svg>`,oM=`<svg aria-hidden="true" viewBox="0 0 26 24">
901  <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/>
902</svg>`,oR=e=>{let t=e.mediaIsFullscreen?r8("exit fullscreen mode"):r8("enter fullscreen mode");e.setAttribute("aria-label",t)};class oD extends aG{constructor(){super(...arguments),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eZ,null)}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_IS_FULLSCREEN,rj.MEDIA_FULLSCREEN_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),oR(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_IS_FULLSCREEN&&oR(this)}get mediaFullscreenUnavailable(){return nR(this,rj.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(e){nD(this,rj.MEDIA_FULLSCREEN_UNAVAILABLE,e)}get mediaIsFullscreen(){return nL(this,rj.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(e){nM(this,rj.MEDIA_IS_FULLSCREEN,e)}handleClick(e){var t,i,r,n;oC(this,t=eZ,"write to private field"),i?i.call(this,e):t.set(this,e);let a=(oC(this,r=eZ,"read from private field"),(n?n.call(this):r.get(this))instanceof PointerEvent),o=this.mediaIsFullscreen?new nd.CustomEvent(rF.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0}):new nd.CustomEvent(rF.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0,detail:a});this.dispatchEvent(o)}}eZ=new WeakMap,oD.getSlotTemplateHTML=function(e){return`
903    <style>
904      :host([${rj.MEDIA_IS_FULLSCREEN}]) slot[name=icon] slot:not([name=exit]) {
905        display: none !important;
906      }
907
908      
909      :host(:not([${rj.MEDIA_IS_FULLSCREEN}])) slot[name=icon] slot:not([name=enter]) {
910        display: none !important;
911      }
912
913      :host([${rj.MEDIA_IS_FULLSCREEN}]) slot[name=tooltip-enter],
914      :host(:not([${rj.MEDIA_IS_FULLSCREEN}])) slot[name=tooltip-exit] {
915        display: none;
916      }
917    </style>
918
919    <slot name="icon">
920      <slot name="enter">${oL}</slot>
921      <slot name="exit">${oM}</slot>
922    </slot>
923  `},oD.getTooltipContentHTML=function(){return`
924    <slot name="tooltip-enter">${r8("Enter fullscreen mode")}</slot>
925    <slot name="tooltip-exit">${r8("Exit fullscreen mode")}</slot>
926  `},nd.customElements.get("media-fullscreen-button")||nd.customElements.define("media-fullscreen-button",oD);let{MEDIA_TIME_IS_LIVE:oO,MEDIA_PAUSED:oN}=rj,{MEDIA_SEEK_TO_LIVE_REQUEST:oP,MEDIA_PLAY_REQUEST:oU}=rF,oV=e=>{var t;let i=e.mediaPaused||!e.mediaTimeIsLive,r=i?r8("seek to live"):r8("playing live");e.setAttribute("aria-label",r);let n=null==(t=e.shadowRoot)?void 0:t.querySelector('slot[name="text"]');n&&(n.textContent=r8("live")),i?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true")};class oF extends aG{static get observedAttributes(){return[...super.observedAttributes,oO,oN]}connectedCallback(){super.connectedCallback(),oV(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),oV(this)}get mediaPaused(){return nL(this,rj.MEDIA_PAUSED)}set mediaPaused(e){nM(this,rj.MEDIA_PAUSED,e)}get mediaTimeIsLive(){return nL(this,rj.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(e){nM(this,rj.MEDIA_TIME_IS_LIVE,e)}handleClick(){(this.mediaPaused||!this.mediaTimeIsLive)&&(this.dispatchEvent(new nd.CustomEvent(oP,{composed:!0,bubbles:!0})),this.hasAttribute(oN)&&this.dispatchEvent(new nd.CustomEvent(oU,{composed:!0,bubbles:!0})))}}oF.getSlotTemplateHTML=function(e){return`
927    <style>
928      :host { --media-tooltip-display: none; }
929      
930      slot[name=indicator] > *,
931      :host ::slotted([slot=indicator]) {
932        
933        min-width: auto;
934        fill: var(--media-live-button-icon-color, rgb(140, 140, 140));
935        color: var(--media-live-button-icon-color, rgb(140, 140, 140));
936      }
937
938      :host([${oO}]:not([${oN}])) slot[name=indicator] > *,
939      :host([${oO}]:not([${oN}])) ::slotted([slot=indicator]) {
940        fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));
941        color: var(--media-live-button-indicator-color, rgb(255, 0, 0));
942      }
943
944      :host([${oO}]:not([${oN}])) {
945        cursor: var(--media-cursor, not-allowed);
946      }
947
948      slot[name=text]{
949        text-transform: uppercase;
950      }
951
952    </style>
953
954    <slot name="indicator"><svg viewBox="0 0 6 12" aria-hidden="true"><circle cx="3" cy="6" r="2"></circle></svg></slot>
955    
956    <slot name="spacer">&nbsp;</slot><slot name="text">${r8("live")}</slot>
957  `},nd.customElements.get("media-live-button")||nd.customElements.define("media-live-button",oF);var oW=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},oH=(e,t,i)=>(oW(e,t,"read from private field"),i?i.call(e):t.get(e)),oB=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oj=(e,t,i,r)=>(oW(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);let o$={LOADING_DELAY:"loadingdelay",NO_AUTOHIDE:"noautohide"},oz=`
958<svg aria-hidden="true" viewBox="0 0 100 100">
959  <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">
960    <animateTransform
961       attributeName="transform"
962       attributeType="XML"
963       type="rotate"
964       dur="1s"
965       from="0 50 50"
966       to="360 50 50"
967       repeatCount="indefinite" />
968  </path>
969</svg>
970`;class oK extends nd.HTMLElement{constructor(){if(super(),oB(this,eQ,void 0),oB(this,eX,500),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[rW.MEDIA_CONTROLLER,rj.MEDIA_PAUSED,rj.MEDIA_LOADING,o$.LOADING_DELAY]}attributeChangedCallback(e,t,i){var r,n,a,o,s;e===o$.LOADING_DELAY&&t!==i?this.loadingDelay=Number(i):e===rW.MEDIA_CONTROLLER&&(t&&(null==(n=null==(r=oH(this,eQ))?void 0:r.unassociateElement)||n.call(r,this),oj(this,eQ,null)),i&&this.isConnected&&(oj(this,eQ,null==(a=this.getRootNode())?void 0:a.getElementById(i)),null==(s=null==(o=oH(this,eQ))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,i;let r=this.getAttribute(rW.MEDIA_CONTROLLER);r&&(oj(this,eQ,null==(e=this.getRootNode())?void 0:e.getElementById(r)),null==(i=null==(t=oH(this,eQ))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=oH(this,eQ))?void 0:e.unassociateElement)||t.call(e,this),oj(this,eQ,null)}get loadingDelay(){return oH(this,eX)}set loadingDelay(e){oj(this,eX,e);let{style:t}=nT(this.shadowRoot,":host");t.setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${e}ms)`)}get mediaPaused(){return nL(this,rj.MEDIA_PAUSED)}set mediaPaused(e){nM(this,rj.MEDIA_PAUSED,e)}get mediaLoading(){return nL(this,rj.MEDIA_LOADING)}set mediaLoading(e){nM(this,rj.MEDIA_LOADING,e)}get mediaController(){return nR(this,rW.MEDIA_CONTROLLER)}set mediaController(e){nD(this,rW.MEDIA_CONTROLLER,e)}get noAutohide(){return nL(this,o$.NO_AUTOHIDE)}set noAutohide(e){nM(this,o$.NO_AUTOHIDE,e)}}eQ=new WeakMap,eX=new WeakMap,oK.shadowRootOptions={mode:"open"},oK.getTemplateHTML=function(e){return`
971    <style>
972      :host {
973        display: var(--media-control-display, var(--media-loading-indicator-display, inline-block));
974        vertical-align: middle;
975        box-sizing: border-box;
976        --_loading-indicator-delay: var(--media-loading-indicator-transition-delay, 500ms);
977      }
978
979      #status {
980        color: rgba(0,0,0,0);
981        width: 0px;
982        height: 0px;
983      }
984
985      :host slot[name=icon] > *,
986      :host ::slotted([slot=icon]) {
987        opacity: var(--media-loading-indicator-opacity, 0);
988        transition: opacity 0.15s;
989      }
990
991      :host([${rj.MEDIA_LOADING}]:not([${rj.MEDIA_PAUSED}])) slot[name=icon] > *,
992      :host([${rj.MEDIA_LOADING}]:not([${rj.MEDIA_PAUSED}])) ::slotted([slot=icon]) {
993        opacity: var(--media-loading-indicator-opacity, 1);
994        transition: opacity 0.15s var(--_loading-indicator-delay);
995      }
996
997      :host #status {
998        visibility: var(--media-loading-indicator-opacity, hidden);
999        transition: visibility 0.15s;
1000      }
1001
1002      :host([${rj.MEDIA_LOADING}]:not([${rj.MEDIA_PAUSED}])) #status {
1003        visibility: var(--media-loading-indicator-opacity, visible);
1004        transition: visibility 0.15s var(--_loading-indicator-delay);
1005      }
1006
1007      svg, img, ::slotted(svg), ::slotted(img) {
1008        width: var(--media-loading-indicator-icon-width);
1009        height: var(--media-loading-indicator-icon-height, 100px);
1010        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1011        vertical-align: middle;
1012      }
1013    </style>
1014
1015    <slot name="icon">${oz}</slot>
1016    <div id="status" role="status" aria-live="polite">${r8("media loading")}</div>
1017  `},nd.customElements.get("media-loading-indicator")||nd.customElements.define("media-loading-indicator",oK);let oG=`<svg aria-hidden="true" viewBox="0 0 24 24">
1018  <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"/>
1019</svg>`,oq=`<svg aria-hidden="true" viewBox="0 0 24 24">
1020  <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"/>
1021</svg>`,oY=`<svg aria-hidden="true" viewBox="0 0 24 24">
1022  <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"/>
1023</svg>`,oZ=e=>{let t="off"===e.mediaVolumeLevel?r8("unmute"):r8("mute");e.setAttribute("aria-label",t)};class oQ extends aG{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_VOLUME_LEVEL]}connectedCallback(){super.connectedCallback(),oZ(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_VOLUME_LEVEL&&oZ(this)}get mediaVolumeLevel(){return nR(this,rj.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(e){nD(this,rj.MEDIA_VOLUME_LEVEL,e)}handleClick(){let e="off"===this.mediaVolumeLevel?rF.MEDIA_UNMUTE_REQUEST:rF.MEDIA_MUTE_REQUEST;this.dispatchEvent(new nd.CustomEvent(e,{composed:!0,bubbles:!0}))}}oQ.getSlotTemplateHTML=function(e){return`
1024    <style>
1025      :host(:not([${rj.MEDIA_VOLUME_LEVEL}])) slot[name=icon] slot:not([name=high]),
1026      :host([${rj.MEDIA_VOLUME_LEVEL}=high]) slot[name=icon] slot:not([name=high]) {
1027        display: none !important;
1028      }
1029
1030      :host([${rj.MEDIA_VOLUME_LEVEL}=off]) slot[name=icon] slot:not([name=off]) {
1031        display: none !important;
1032      }
1033
1034      :host([${rj.MEDIA_VOLUME_LEVEL}=low]) slot[name=icon] slot:not([name=low]) {
1035        display: none !important;
1036      }
1037
1038      :host([${rj.MEDIA_VOLUME_LEVEL}=medium]) slot[name=icon] slot:not([name=medium]) {
1039        display: none !important;
1040      }
1041
1042      :host(:not([${rj.MEDIA_VOLUME_LEVEL}=off])) slot[name=tooltip-unmute],
1043      :host([${rj.MEDIA_VOLUME_LEVEL}=off]) slot[name=tooltip-mute] {
1044        display: none;
1045      }
1046    </style>
1047
1048    <slot name="icon">
1049      <slot name="off">${oG}</slot>
1050      <slot name="low">${oq}</slot>
1051      <slot name="medium">${oq}</slot>
1052      <slot name="high">${oY}</slot>
1053    </slot>
1054  `},oQ.getTooltipContentHTML=function(){return`
1055    <slot name="tooltip-mute">${r8("Mute")}</slot>
1056    <slot name="tooltip-unmute">${r8("Unmute")}</slot>
1057  `},nd.customElements.get("media-mute-button")||nd.customElements.define("media-mute-button",oQ);let oX=`<svg aria-hidden="true" viewBox="0 0 28 24">
1058  <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"/>
1059</svg>`,oJ=e=>{let t=e.mediaIsPip?r8("exit picture in picture mode"):r8("enter picture in picture mode");e.setAttribute("aria-label",t)};class o0 extends aG{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_IS_PIP,rj.MEDIA_PIP_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),oJ(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_IS_PIP&&oJ(this)}get mediaPipUnavailable(){return nR(this,rj.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(e){nD(this,rj.MEDIA_PIP_UNAVAILABLE,e)}get mediaIsPip(){return nL(this,rj.MEDIA_IS_PIP)}set mediaIsPip(e){nM(this,rj.MEDIA_IS_PIP,e)}handleClick(){let e=this.mediaIsPip?rF.MEDIA_EXIT_PIP_REQUEST:rF.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new nd.CustomEvent(e,{composed:!0,bubbles:!0}))}}o0.getSlotTemplateHTML=function(e){return`
1060    <style>
1061      :host([${rj.MEDIA_IS_PIP}]) slot[name=icon] slot:not([name=exit]) {
1062        display: none !important;
1063      }
1064
1065      :host(:not([${rj.MEDIA_IS_PIP}])) slot[name=icon] slot:not([name=enter]) {
1066        display: none !important;
1067      }
1068
1069      :host([${rj.MEDIA_IS_PIP}]) slot[name=tooltip-enter],
1070      :host(:not([${rj.MEDIA_IS_PIP}])) slot[name=tooltip-exit] {
1071        display: none;
1072      }
1073    </style>
1074
1075    <slot name="icon">
1076      <slot name="enter">${oX}</slot>
1077      <slot name="exit">${oX}</slot>
1078    </slot>
1079  `},o0.getTooltipContentHTML=function(){return`
1080    <slot name="tooltip-enter">${r8("Enter picture in picture mode")}</slot>
1081    <slot name="tooltip-exit">${r8("Exit picture in picture mode")}</slot>
1082  `},nd.customElements.get("media-pip-button")||nd.customElements.define("media-pip-button",o0);var o1=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot read from private field");return i?i.call(e):t.get(e)};let o2={RATES:"rates"},o5=[1,1.2,1.5,1.7,2];function o3(e){return Math.round(100*e)/100}class o4 extends aG{constructor(){var e;super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eJ,new nQ(this,o2.RATES,{defaultValue:o5})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${o3(null!=(e=this.mediaPlaybackRate)?e:1)}x`}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_PLAYBACK_RATE,o2.RATES]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===o2.RATES&&(o1(this,eJ).value=i),e===rj.MEDIA_PLAYBACK_RATE){let e=i?+i:NaN,t=o3(Number.isNaN(e)?1:e);this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",r8("Playback rate {playbackRate}",{playbackRate:t}))}}get rates(){return o1(this,eJ)}set rates(e){e?Array.isArray(e)?o1(this,eJ).value=e.join(" "):"string"==typeof e&&(o1(this,eJ).value=e):o1(this,eJ).value=""}get mediaPlaybackRate(){return nI(this,rj.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){nC(this,rj.MEDIA_PLAYBACK_RATE,e)}handleClick(){var e,t;let i=Array.from(o1(this,eJ).values(),e=>+e).sort((e,t)=>e-t),r=null!=(t=null!=(e=i.find(e=>e>this.mediaPlaybackRate))?e:i[0])?t:1,n=new nd.CustomEvent(rF.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:r});this.dispatchEvent(n)}}eJ=new WeakMap,o4.getSlotTemplateHTML=function(e){let t=e.mediaplaybackrate?o3(+e.mediaplaybackrate):1;return`
1083    <style>
1084      :host {
1085        min-width: 5ch;
1086        padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1087      }
1088    </style>
1089    <slot name="icon">${t}x</slot>
1090  `},o4.getTooltipContentHTML=function(){return r8("Playback rate")},nd.customElements.get("media-playback-rate-button")||nd.customElements.define("media-playback-rate-button",o4);let o7=`<svg aria-hidden="true" viewBox="0 0 24 24">
1091  <path d="m6 21 15-9L6 3v18Z"/>
1092</svg>`,o8=`<svg aria-hidden="true" viewBox="0 0 24 24">
1093  <path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/>
1094</svg>`,o6=e=>{let t=e.mediaPaused?r8("play"):r8("pause");e.setAttribute("aria-label",t)};class o9 extends aG{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_PAUSED,rj.MEDIA_ENDED]}connectedCallback(){super.connectedCallback(),o6(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),(e===rj.MEDIA_PAUSED||e===rj.MEDIA_LANG)&&o6(this)}get mediaPaused(){return nL(this,rj.MEDIA_PAUSED)}set mediaPaused(e){nM(this,rj.MEDIA_PAUSED,e)}handleClick(){let e=this.mediaPaused?rF.MEDIA_PLAY_REQUEST:rF.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new nd.CustomEvent(e,{composed:!0,bubbles:!0}))}}o9.getSlotTemplateHTML=function(e){return`
1095    <style>
1096      :host([${rj.MEDIA_PAUSED}]) slot[name=pause],
1097      :host(:not([${rj.MEDIA_PAUSED}])) slot[name=play] {
1098        display: none !important;
1099      }
1100
1101      :host([${rj.MEDIA_PAUSED}]) slot[name=tooltip-pause],
1102      :host(:not([${rj.MEDIA_PAUSED}])) slot[name=tooltip-play] {
1103        display: none;
1104      }
1105    </style>
1106
1107    <slot name="icon">
1108      <slot name="play">${o7}</slot>
1109      <slot name="pause">${o8}</slot>
1110    </slot>
1111  `},o9.getTooltipContentHTML=function(){return`
1112    <slot name="tooltip-play">${r8("Play")}</slot>
1113    <slot name="tooltip-pause">${r8("Pause")}</slot>
1114  `},nd.customElements.get("media-play-button")||nd.customElements.define("media-play-button",o9);let se={PLACEHOLDER_SRC:"placeholdersrc",SRC:"src"};class st extends nd.HTMLElement{static get observedAttributes(){return[se.PLACEHOLDER_SRC,se.SRC]}constructor(){if(super(),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(e,t,i){if(e===se.SRC&&(null==i?this.image.removeAttribute(se.SRC):this.image.setAttribute(se.SRC,i)),e===se.PLACEHOLDER_SRC)if(null==i)this.image.style.removeProperty("background-image");else{var r;r=this.image,r.style["background-image"]=`url('${i}')`}}
1114get placeholderSrc(){return nR(this,se.PLACEHOLDER_SRC)}set placeholderSrc(e){nD(this,se.SRC,e)}get src(){return nR(this,se.SRC)}set src(e){nD(this,se.SRC,e)}}st.shadowRootOptions={mode:"open"},st.getTemplateHTML=function(e){return`
1115    <style>
1116      :host {
1117        pointer-events: none;
1118        display: var(--media-poster-image-display, inline-block);
1119        box-sizing: border-box;
1120      }
1121
1122      img {
1123        max-width: 100%;
1124        max-height: 100%;
1125        min-width: 100%;
1126        min-height: 100%;
1127        background-repeat: no-repeat;
1128        background-position: var(--media-poster-image-background-position, var(--media-object-position, center));
1129        background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain));
1130        object-fit: var(--media-object-fit, contain);
1131        object-position: var(--media-object-position, center);
1132      }
1133    </style>
1134
1135    <img part="poster img" aria-hidden="true" id="image"/>
1136  `},nd.customElements.get("media-poster-image")||nd.customElements.define("media-poster-image",st);var si=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};class sr extends of{constructor(){super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,e0,void 0),((e,t,i,r)=>(si(e,t,"write to private field"),r?r.call(e,i):t.set(e,i)))(this,e0,this.shadowRoot.querySelector("slot"))}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_PREVIEW_CHAPTER,rj.MEDIA_LANG]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),(e===rj.MEDIA_PREVIEW_CHAPTER||e===rj.MEDIA_LANG)&&i!==t&&null!=i){var r,n;if((si(this,r=e0,"read from private field"),n?n.call(this):r.get(this)).textContent=i,""!==i){let e=r8("chapter: {chapterName}",{chapterName:i});this.setAttribute("aria-valuetext",e)}else this.removeAttribute("aria-valuetext")}}get mediaPreviewChapter(){return nR(this,rj.MEDIA_PREVIEW_CHAPTER)}set mediaPreviewChapter(e){nD(this,rj.MEDIA_PREVIEW_CHAPTER,e)}}e0=new WeakMap,nd.customElements.get("media-preview-chapter-display")||nd.customElements.define("media-preview-chapter-display",sr);var sn=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sa=(e,t,i)=>(sn(e,t,"read from private field"),i?i.call(e):t.get(e)),so=(e,t,i,r)=>(sn(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);class ss extends nd.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,e1,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[rW.MEDIA_CONTROLLER,rj.MEDIA_PREVIEW_IMAGE,rj.MEDIA_PREVIEW_COORDS]}connectedCallback(){var e,t,i;let r=this.getAttribute(rW.MEDIA_CONTROLLER);r&&(so(this,e1,null==(e=this.getRootNode())?void 0:e.getElementById(r)),null==(i=null==(t=sa(this,e1))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=sa(this,e1))?void 0:e.unassociateElement)||t.call(e,this),so(this,e1,null)}attributeChangedCallback(e,t,i){var r,n,a,o,s;[rj.MEDIA_PREVIEW_IMAGE,rj.MEDIA_PREVIEW_COORDS].includes(e)&&this.update(),e===rW.MEDIA_CONTROLLER&&(t&&(null==(n=null==(r=sa(this,e1))?void 0:r.unassociateElement)||n.call(r,this),so(this,e1,null)),i&&this.isConnected&&(so(this,e1,null==(a=this.getRootNode())?void 0:a.getElementById(i)),null==(s=null==(o=sa(this,e1))?void 0:o.associateElement)||s.call(o,this)))}get mediaPreviewImage(){return nR(this,rj.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){nD(this,rj.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewCoords(){let e=this.getAttribute(rj.MEDIA_PREVIEW_COORDS);if(e)return e.split(/\s+/).map(e=>+e)}set mediaPreviewCoords(e){if(!e)return void this.removeAttribute(rj.MEDIA_PREVIEW_COORDS);this.setAttribute(rj.MEDIA_PREVIEW_COORDS,e.join(" "))}update(){let e,t,i=this.mediaPreviewCoords,r=this.mediaPreviewImage;if(!(i&&r))return;let[n,a,o,s]=i,l=r.split("#")[0],d=getComputedStyle(this),{maxWidth:u,maxHeight:c,minWidth:h,minHeight:m}=d;
1136if("fill"===(d.getPropertyValue("--media-preview-thumbnail-object-fit").trim()||"contain")){let i=parseInt(u)/o,r=parseInt(c)/s,n=parseInt(h)/o,a=parseInt(m)/s;e=i<1?i:Math.max(i,n),t=r<1?r:Math.max(r,a)}else{let i=Math.min(parseInt(u)/o,parseInt(c)/s),r=Math.max(parseInt(h)/o,parseInt(m)/s),n=i<1?i:r>1?r:1;e=n,t=n}let{style:p}=nT(this.shadowRoot,":host"),f=nT(this.shadowRoot,"img").style,v=this.shadowRoot.querySelector("img"),g=1>Math.min(e,t)?"min":"max";p.setProperty(`${g}-width`,"initial","important"),p.setProperty(`${g}-height`,"initial","important"),p.width=`${o*e}px`,p.height=`${s*t}px`;let b=()=>{f.width=`${this.imgWidth*e}px`,f.height=`${this.imgHeight*t}px`,f.display="block"};v.src!==l&&(v.onload=()=>{this.imgWidth=v.naturalWidth,this.imgHeight=v.naturalHeight,b(),v.onload=null},v.src=l,b()),b(),f.transform=`translate(-${n*e}px, -${a*t}px)`}}e1=new WeakMap,ss.shadowRootOptions={mode:"open"},ss.getTemplateHTML=function(e){return`
1137    <style>
1138      :host {
1139        box-sizing: border-box;
1140        display: var(--media-control-display, var(--media-preview-thumbnail-display, inline-block));
1141        overflow: hidden;
1142      }
1143
1144      img {
1145        display: none;
1146        position: relative;
1147      }
1148    </style>
1149    <img crossorigin loading="eager" decoding="async">
1150  `},nd.customElements.get("media-preview-thumbnail")||nd.customElements.define("media-preview-thumbnail",ss);var sl=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sd=(e,t,i)=>(sl(e,t,"read from private field"),i?i.call(e):t.get(e));class su extends of{constructor(){super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,e2,void 0),((e,t,i,r)=>(sl(e,t,"write to private field"),r?r.call(e,i):t.set(e,i)))(this,e2,this.shadowRoot.querySelector("slot")),sd(this,e2).textContent=ne(0)}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_PREVIEW_TIME]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_PREVIEW_TIME&&null!=i&&(sd(this,e2).textContent=ne(parseFloat(i)))}get mediaPreviewTime(){return nI(this,rj.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){nC(this,rj.MEDIA_PREVIEW_TIME,e)}}e2=new WeakMap,nd.customElements.get("media-preview-time-display")||nd.customElements.define("media-preview-time-display",su);let sc={SEEK_OFFSET:"seekoffset"};class sh extends aG{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_CURRENT_TIME,sc.SEEK_OFFSET]}connectedCallback(){super.connectedCallback(),this.seekOffset=nI(this,sc.SEEK_OFFSET,30)}attributeChangedCallback(e,t,i){var r;super.attributeChangedCallback(e,t,i),r=this.seekOffset,this.setAttribute("aria-label",r8("seek back {seekOffset} seconds",{seekOffset:r})),e===sc.SEEK_OFFSET&&(this.seekOffset=nI(this,sc.SEEK_OFFSET,30))}get seekOffset(){return nI(this,sc.SEEK_OFFSET,30)}set seekOffset(e){nC(this,sc.SEEK_OFFSET,e),this.setAttribute("aria-label",r8("seek back {seekOffset} seconds",{seekOffset:this.seekOffset})),nE(ny(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return nI(this,rj.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){nC(this,rj.MEDIA_CURRENT_TIME,e)}handleClick(){let e=Math.max(this.mediaCurrentTime-this.seekOffset,0),t=new nd.CustomEvent(rF.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}sh.getSlotTemplateHTML=function(e,t){let i;return`
1151    <slot name="icon">${i=t.seekOffset,`
1152  <svg aria-hidden="true" viewBox="0 0 20 24">
1153    <defs>
1154      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
1155    </defs>
1156    <text class="text value" transform="translate(2.18 19.87)">${i}</text>
1157    <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"/>
1158  </svg>`}</slot>
1159  `},sh.getTooltipContentHTML=function(){return r8("Seek backward")},nd.customElements.get("media-seek-backward-button")||nd.customElements.define("media-seek-backward-button",sh);let sm={SEEK_OFFSET:"seekoffset"};class sp extends aG{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_CURRENT_TIME,sm.SEEK_OFFSET]}connectedCallback(){super.connectedCallback(),this.seekOffset=nI(this,sm.SEEK_OFFSET,30)}attributeChangedCallback(e,t,i){var r;super.attributeChangedCallback(e,t,i),r=this.seekOffset,this.setAttribute("aria-label",r8("seek forward {seekOffset} seconds",{seekOffset:r})),e===sm.SEEK_OFFSET&&(this.seekOffset=nI(this,sm.SEEK_OFFSET,30))}get seekOffset(){return nI(this,sm.SEEK_OFFSET,30)}set seekOffset(e){nC(this,sm.SEEK_OFFSET,e),this.setAttribute("aria-label",r8("seek forward {seekOffset} seconds",{seekOffset:this.seekOffset})),nE(ny(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return nI(this,rj.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){nC(this,rj.MEDIA_CURRENT_TIME,e)}handleClick(){let e=this.mediaCurrentTime+this.seekOffset,t=new nd.CustomEvent(rF.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}sp.getSlotTemplateHTML=function(e,t){let i;return`
1160    <slot name="icon">${i=t.seekOffset,`
1161  <svg aria-hidden="true" viewBox="0 0 20 24">
1162    <defs>
1163      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
1164    </defs>
1165    <text class="text value" transform="translate(8.9 19.87)">${i}</text>
1166    <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"/>
1167  </svg>`}</slot>
1168  `},sp.getTooltipContentHTML=function(){return r8("Seek forward")},nd.customElements.get("media-seek-forward-button")||nd.customElements.define("media-seek-forward-button",sp);var sf=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sv=(e,t,i)=>(sf(e,t,"read from private field"),i?i.call(e):t.get(e)),sg=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sb=(e,t,i,r)=>(sf(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),sE=(e,t,i)=>(sf(e,t,"access private method"),i);let sy={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},sw=[...Object.values(sy),rj.MEDIA_CURRENT_TIME,rj.MEDIA_DURATION,rj.MEDIA_SEEKABLE],sA=["Enter"," "],sk="&nbsp;/&nbsp;",sx=(e,{timesSep:t=sk}={})=>{var i,r;let n=null!=(i=e.mediaCurrentTime)?i:0,[,a]=null!=(r=e.mediaSeekable)?r:[],o=0;Number.isFinite(e.mediaDuration)?o=e.mediaDuration:Number.isFinite(a)&&(o=a);let s=e.remaining?ne(0-(o-n)):ne(n);return e.showDuration?`${s}${t}${ne(o)}`:s};class s_ extends of{constructor(){super(),sg(this,e7),sg(this,e6),sg(this,te),sg(this,ti),sg(this,e5,void 0),sg(this,e3,null),sg(this,e4,e=>{let{metaKey:t,altKey:i,key:r}=e;if(t||i||!sA.includes(r))return void this.removeEventListener("keyup",sv(this,e3));this.addEventListener("keyup",sv(this,e3))}),sb(this,e5,this.shadowRoot.querySelector("slot")),sv(this,e5).innerHTML=`${sx(this)}`}static get observedAttributes(){return[...super.observedAttributes,...sw,"disabled"]}connectedCallback(){let{style:e}=nT(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",r8("playback time")),sE(this,te,tt).call(this),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),sE(this,e6,e9).call(this),super.disconnectedCallback()}attributeChangedCallback(e,t,i){this.setAttribute("aria-label",r8("playback time")),sw.includes(e)?this.update():"disabled"===e&&i!==t?null==i?sE(this,te,tt).call(this):sE(this,ti,tr).call(this):e===sy.NO_TOGGLE&&i!==t&&(this.noToggle?sE(this,ti,tr).call(this):sE(this,te,tt).call(this)),super.attributeChangedCallback(e,t,i)}enable(){this.noToggle||(this.tabIndex=0)}disable(){this.tabIndex=-1}get remaining(){return nL(this,sy.REMAINING)}set remaining(e){nM(this,sy.REMAINING,e)}get showDuration(){return nL(this,sy.SHOW_DURATION)}set showDuration(e){nM(this,sy.SHOW_DURATION,e)}get noToggle(){return nL(this,sy.NO_TOGGLE)}set noToggle(e){nM(this,sy.NO_TOGGLE,e)}get mediaDuration(){return nI(this,rj.MEDIA_DURATION)}set mediaDuration(e){nC(this,rj.MEDIA_DURATION,e)}get mediaCurrentTime(){return nI(this,rj.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){nC(this,rj.MEDIA_CURRENT_TIME,e)}get mediaSeekable(){let e=this.getAttribute(rj.MEDIA_SEEKABLE);if(e)return e.split(":").map(e=>+e)}set mediaSeekable(e){if(null==e)return void this.removeAttribute(rj.MEDIA_SEEKABLE);this.setAttribute(rj.MEDIA_SEEKABLE,e.join(":"))}update(){let e=sx(this);(e=>{var t;let i=e.mediaCurrentTime,[,r]=null!=(t=e.mediaSeekable)?t:[],n=null;if(Number.isFinite(e.mediaDuration)?n=e.mediaDuration:Number.isFinite(r)&&(n=r),null==i||null===n)return e.setAttribute("aria-description",r8("video not loaded, unknown time."));let a=e.remaining?r9(0-(n-i)):r9(i);if(!e.showDuration)return e.setAttribute("aria-description",a);let o=r8("{currentTime} of {totalTime}",{currentTime:a,totalTime:r9(n)});e.setAttribute("aria-description",o)})(this),e!==sv(this,e5).innerHTML&&(sv(this,e5).innerHTML=e)}}e5=new WeakMap,e3=new WeakMap,e4=new WeakMap,e7=new WeakSet,e8=function(){sv(this,e3)||(sb(this,e3,e=>{let{key:t}=e;if(!sA.includes(t))return void this.removeEventListener("keyup",sv(this,e3));this.toggleTimeDisplay()}),this.addEventListener("keydown",sv(this,e4)),this.addEventListener("click",this.toggleTimeDisplay))},e6=new WeakSet,e9=function(){sv(this,e3)&&(this.removeEventListener("keyup",sv(this,e3)),this.removeEventListener("keydown",sv(this,e4)),this.removeEventListener("click",this.toggleTimeDisplay),sb(this,e3,null))},te=new WeakSet,tt=function(){this.noToggle||this.hasAttribute("disabled")||(this.setAttribute("role","button"),this.enable(),sE(this,e7,e8).call(this))},ti=new WeakSet,tr=function(){this.removeAttribute("role"),this.disable(),sE(this,e6,e9).call(this)},s_.getSlotTemplateHTML=function(e,t){return`
1169    <slot>${sx(t)}</slot>
1170  `},nd.customElements.get("media-time-display")||nd.customElements.define("media-time-display",s_);var sT=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sS=(e,t,i)=>(sT(e,t,"read from private field"),i?i.call(e):t.get(e)),sI=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sC=(e,t,i,r)=>(sT(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);class sL{constructor(e,t,i){sI(this,tn,void 0),sI(this,ta,void 0),sI(this,to,void 0),sI(this,ts,void 0),sI(this,tl,void 0),sI(this,td,void 0),sI(this,tu,void 0),sI(this,tc,void 0),sI(this,th,0),sI(this,tm,(e=performance.now())=>{sC(this,th,requestAnimationFrame(sS(this,tm))),sC(this,ts,performance.now()-sS(this,to));let t=1e3/this.fps;if(sS(this,ts)>t){sC(this,to,e-sS(this,ts)%t);let i=1e3/((e-sS(this,ta))/++((e,t,i,r)=>({set _(value){sC(e,t,value,i)},get _(){return sS(e,t,r)}}))(this,tl)._),r=(e-sS(this,td))/1e3/this.duration,n=sS(this,tu)+r*this.playbackRate;n-sS(this,tn).valueAsNumber>0?sC(this,tc,this.playbackRate/this.duration/i):(sC(this,tc,.995*sS(this,tc)),n=sS(this,tn).valueAsNumber+sS(this,tc)),this.callback(n)}}),sC(this,tn,e),this.callback=t,this.fps=i}start(){0===sS(this,th)&&(sC(this,to,performance.now()),sC(this,ta,sS(this,to)),sC(this,tl,0),sS(this,tm).call(this))}stop(){0!==sS(this,th)&&(cancelAnimationFrame(sS(this,th)),sC(this,th,0))}update({start:e,duration:t,playbackRate:i}){let r=e-sS(this,tn).valueAsNumber,n=Math.abs(t-this.duration);(r>0||r<-.03||n>=.5)&&this.callback(e),sC(this,tu,e),sC(this,td,performance.now()),this.duration=t,this.playbackRate=i}}tn=new WeakMap,ta=new WeakMap,to=new WeakMap,ts=new WeakMap,tl=new WeakMap,td=new WeakMap,tu=ne
1170w WeakMap,tc=new WeakMap,th=new WeakMap,tm=new WeakMap;var sM=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sR=(e,t,i)=>(sM(e,t,"read from private field"),i?i.call(e):t.get(e)),sD=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sO=(e,t,i,r)=>(sM(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),sN=(e,t,i)=>(sM(e,t,"access private method"),i);let sP=(e,t=e.mediaCurrentTime)=>{let i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,r=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(r)?0:Math.max(0,Math.min((t-i)/(r-i),1))},sU=(e,t=e.range.valueAsNumber)=>{let i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,r=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(r)?0:t*(r-i)+i};class sV extends os{constructor(){super(),sD(this,t_),sD(this,tI),sD(this,tL),sD(this,tR),sD(this,tO),sD(this,tP),sD(this,tV),sD(this,tp,null),sD(this,tf,void 0),sD(this,tv,void 0),sD(this,tg,void 0),sD(this,tb,void 0),sD(this,tE,void 0),sD(this,ty,void 0),sD(this,tw,void 0),sD(this,tA,void 0),sD(this,tk,void 0),sD(this,tx,()=>{sN(this,t_,tT).call(this)?sR(this,tf).start():sR(this,tf).stop()}),sD(this,tS,e=>{!this.dragging&&(r2(e)&&(this.range.valueAsNumber=e),sR(this,tk)||this.updateBar())}),this.shadowRoot.querySelector("#track").insertAdjacentHTML("afterbegin",'<div id="buffered" part="buffered"></div>'),sO(this,tv,this.shadowRoot.querySelectorAll('[part~="box"]')),sO(this,tb,this.shadowRoot.querySelector('[part~="preview-box"]')),sO(this,tE,this.shadowRoot.querySelector('[part~="current-box"]'));let e=getComputedStyle(this);sO(this,ty,parseInt(e.getPropertyValue("--media-box-padding-left"))),sO(this,tw,parseInt(e.getPropertyValue("--media-box-padding-right"))),sO(this,tf,new sL(this.range,sR(this,tS),60))}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_PAUSED,rj.MEDIA_DURATION,rj.MEDIA_SEEKABLE,rj.MEDIA_CURRENT_TIME,rj.MEDIA_PREVIEW_IMAGE,rj.MEDIA_PREVIEW_TIME,rj.MEDIA_PREVIEW_CHAPTER,rj.MEDIA_BUFFERED,rj.MEDIA_PLAYBACK_RATE,rj.MEDIA_LOADING,rj.MEDIA_ENDED]}connectedCallback(){var e;super.connectedCallback(),this.range.setAttribute("aria-label",r8("seek")),sR(this,tx).call(this),sO(this,tp,this.getRootNode()),null==(e=sR(this,tp))||e.addEventListener("transitionstart",this)}disconnectedCallback(){var e;super.disconnectedCallback(),sR(this,tf).stop(),null==(e=sR(this,tp))||e.removeEventListener("transitionstart",this),sO(this,tp,null)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),t!=i&&(e===rj.MEDIA_CURRENT_TIME||e===rj.MEDIA_PAUSED||e===rj.MEDIA_ENDED||e===rj.MEDIA_LOADING||e===rj.MEDIA_DURATION||e===rj.MEDIA_SEEKABLE?(sR(this,tf).update({start:sP(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),sR(this,tx).call(this),(e=>{let t=e.range,i=r9(+sU(e)),r=r9(+e.mediaSeekableEnd),n=i&&r?r8("{currentTime} of {totalTime}",{currentTime:i,totalTime:r}):r8("video not loaded, unknown time.");t.setAttribute("aria-valuetext",n)})(this)):e===rj.MEDIA_BUFFERED&&this.updateBufferedBar(),(e===rj.MEDIA_DURATION||e===rj.MEDIA_SEEKABLE)&&(this.mediaChaptersCues=sR(this,tA),this.updateBar()))}get mediaChaptersCues(){return sR(this,tA)}set mediaChaptersCues(e){var t;sO(this,tA,e),this.updateSegments(null==(t=sR(this,tA))?void 0:t.map(e=>({start:sP(this,e.startTime),end:sP(this,e.endTime)})))}get mediaPaused(){return nL(this,rj.MEDIA_PAUSED)}set mediaPaused(e){nM(this,rj.MEDIA_PAUSED,e)}get mediaLoading(){return nL(this,rj.MEDIA_LOADING)}set mediaLoading(e){nM(this,rj.MEDIA_LOADING,e)}get mediaDuration(){return nI(this,rj.MEDIA_DURATION)}set mediaDuration(e){nC(this,rj.MEDIA_DURATION,e)}get mediaCurrentTime(){return nI(this,rj.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){nC(this,rj.MEDIA_CURRENT_TIME,e)}get mediaPlaybackRate(){return nI(this,rj.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){nC(this,rj.MEDIA_PLAYBACK_RATE,e)}get mediaBuffered(){let e=this.getAttribute(rj.MEDIA_BUFFERED);return e?e.split(" ").map(e=>e.split(":").map(e=>+e)):[]}set mediaBuffered(e){if(!e)return void this.removeAttribute(rj.MEDIA_BUFFERED);let t=e.map(e=>e.join(":")).join(" ");this.setAttribute(rj.MEDIA_BUFFERED,t)}get mediaSeekable(){let e=this.getAttribute(rj.MEDIA_SEEKABLE);if(e)return e.split(":").map(e=>+e)}set mediaSeekable(e){if(null==e)return void this.removeAttribute(rj.MEDIA_SEEKABLE);this.setAttribute(rj.MEDIA_SEEKABLE,e.join(":"))}get mediaSeekableEnd(){var e;let[,t=this.mediaDuration]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaSeekableStart(){var e;let[t=0]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaPreviewImage(){return nR(this,rj.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){nD(this,rj.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewTime(){return nI(this,rj.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){nC(this,rj.MEDIA_PREVIEW_TIME,e)}get mediaEnded(){return nL(this,rj.MEDIA_ENDED)}set mediaEnded(e){nM(this,rj.MEDIA_ENDED,e)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var e;let t,i=this.mediaBuffered;if(!i.length)return;if(this.mediaEnded)t=1;else{let r=this.mediaCurrentTime,[,n=this.mediaSeekableStart]=null!=(e=i.find(([e,t])=>e<=r&&r<=t))?e:[];t=sP(this,n)}let{style:r}=nT(this.shadowRoot,"#buffered");r.setProperty("width",`${100*t}%`)}updateCurrentBox(){if(!this.shadowRoot.querySelector('slot[name="current"]').assignedElements().length)return;let e=nT(this.shadowRoot,"#current-rail"),t=nT(this.shadowRoot,'[part~="current-box"]'),i=sN(this,tI,tC).call(this,sR(this,tE)),r=sN(this,tL,tM).call(this,i,this.range.valueAsNumber),n=sN(this,tR,tD).call(this,i,this.range.valueAsNumber);e.style.transform=`translateX(${r})`,e.style.setProperty("--_range-width",`${i.range.width}`),t.style.setProperty("--_box-shift",`${n}`),t.style.setProperty("--_box-width",`${i.box.width}px`),t.style.setProperty("visibility","initial")}handleEvent(e){switch(super.handleEvent(e),e.type){case"input":sN(this,tV,tF).call(this);break;case"pointermove":sN(this,tO,tN).call(this,e);break;case"pointerup":sR(this,tk)&&sO(this,tk,!1);break;case"pointerdown":sO(this,tk,!0);break;case"pointerleave":sN(this,tP,tU).call(this,null);break;case"transitionstart":nw(e.target,this)&&setTimeout(()=>
1170sR(this,tx).call(this),0)}}}tp=new WeakMap,tf=new WeakMap,tv=new WeakMap,tg=new WeakMap,tb=new WeakMap,tE=new WeakMap,ty=new WeakMap,tw=new WeakMap,tA=new WeakMap,tk=new WeakMap,tx=new WeakMap,t_=new WeakSet,tT=function(){return this.isConnected&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded&&this.mediaSeekableEnd>0&&n_(this)},tS=new WeakMap,tI=new WeakSet,tC=function(e){var t;let i=(null!=(t=this.getAttribute("bounds")?nA(this,`#${this.getAttribute("bounds")}`):this.parentElement)?t:this).getBoundingClientRect(),r=this.range.getBoundingClientRect(),n=e.offsetWidth,a=-(r.left-i.left-n/2),o=i.right-r.left-n/2;return{box:{width:n,min:a,max:o},bounds:i,range:r}},tL=new WeakSet,tM=function(e,t){let i=`${100*t}%`,{width:r,min:n,max:a}=e.box;if(!r)return i;if(!Number.isNaN(n)){let e=`calc(1 / var(--_range-width) * 100 * ${n}% + var(--media-box-padding-left))`;i=`max(${e}, ${i})`}if(!Number.isNaN(a)){let e=`calc(1 / var(--_range-width) * 100 * ${a}% - var(--media-box-padding-right))`;i=`min(${i}, ${e})`}return i},tR=new WeakSet,tD=function(e,t){let{width:i,min:r,max:n}
1170=e.box,a=t*e.range.width;if(a<r+sR(this,ty)){let t=e.range.left-e.bounds.left-sR(this,ty);return`${a-i/2+t}px`}if(a>n-sR(this,tw)){let t=e.bounds.right-e.range.right-sR(this,tw);return`${a+i/2-t-e.range.width}px`}return 0},tO=new WeakSet,tN=function(e){let t=[...sR(this,tv)].some(t=>e.composedPath().includes(t));if(!this.dragging&&(t||!e.composedPath().includes(this)))return void sN(this,tP,tU).call(this,null);let i=this.mediaSeekableEnd;if(!i)return;let r=nT(this.shadowRoot,"#preview-rail"),n=nT(this.shadowRoot,'[part~="preview-box"]'),a=sN(this,tI,tC).call(this,sR(this,tb)),o=(e.clientX-a.range.left)/a.range.width;o=Math.max(0,Math.min(1,o));let s=sN(this,tL,tM).call(this,a,o),l=sN(this,tR,tD).call(this,a,o);r.style.transform=`translateX(${s})`,r.style.setProperty("--_range-width",`${a.range.width}`),n.style.setProperty("--_box-shift",`${l}`),n.style.setProperty("--_box-width",`${a.box.width}px`),1>Math.abs(Math.round(sR(this,tg))-Math.round(o*i))&&o>.01&&o<.99||(sO(this,tg,o*i),sN(this,tP,tU).call(this,sR(this,tg)))},tP=new WeakSet,tU=function(e){this.dispatchEvent(new nd.CustomEvent(rF.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:e}))},tV=new WeakSet,tF=function(){sR(this,tf).stop();let e=sU(this);this.dispatchEvent(new nd.CustomEvent(rF.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e}))},sV.shadowRootOptions={mode:"open"},sV.getContainerTemplateHTML=function(e){return`
1171    <style>
1172      :host {
1173        --media-box-border-radius: 4px;
1174        --media-box-padding-left: 10px;
1175        --media-box-padding-right: 10px;
1176        --media-preview-border-radius: var(--media-box-border-radius);
1177        --media-box-arrow-offset: var(--media-box-border-radius);
1178        --_control-background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
1179        --_preview-background: var(--media-preview-background, var(--_control-background));
1180
1181        
1182        contain: layout;
1183      }
1184
1185      #buffered {
1186        background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4));
1187        position: absolute;
1188        height: 100%;
1189        will-change: width;
1190      }
1191
1192      #preview-rail,
1193      #current-rail {
1194        width: 100%;
1195        position: absolute;
1196        left: 0;
1197        bottom: 100%;
1198        pointer-events: none;
1199        will-change: transform;
1200      }
1201
1202      [part~="box"] {
1203        width: min-content;
1204        
1205        position: absolute;
1206        bottom: 100%;
1207        flex-direction: column;
1208        align-items: center;
1209        transform: translateX(-50%);
1210      }
1211
1212      [part~="current-box"] {
1213        display: var(--media-current-box-display, var(--media-box-display, flex));
1214        margin: var(--media-current-box-margin, var(--media-box-margin, 0 0 5px));
1215        visibility: hidden;
1216      }
1217
1218      [part~="preview-box"] {
1219        display: var(--media-preview-box-display, var(--media-box-display, flex));
1220        margin: var(--media-preview-box-margin, var(--media-box-margin, 0 0 5px));
1221        transition-property: var(--media-preview-transition-property, visibility, opacity);
1222        transition-duration: var(--media-preview-transition-duration-out, .25s);
1223        transition-delay: var(--media-preview-transition-delay-out, 0s);
1224        visibility: hidden;
1225        opacity: 0;
1226      }
1227
1228      :host(:is([${rj.MEDIA_PREVIEW_IMAGE}], [${rj.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] {
1229        transition-duration: var(--media-preview-transition-duration-in, .5s);
1230        transition-delay: var(--media-preview-transition-delay-in, .25s);
1231        visibility: visible;
1232        opacity: 1;
1233      }
1234
1235      @media (hover: hover) {
1236        :host(:is([${rj.MEDIA_PREVIEW_IMAGE}], [${rj.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] {
1237          transition-duration: var(--media-preview-transition-duration-in, .5s);
1238          transition-delay: var(--media-preview-transition-delay-in, .25s);
1239          visibility: visible;
1240          opacity: 1;
1241        }
1242      }
1243
1244      media-preview-thumbnail,
1245      ::slotted(media-preview-thumbnail) {
1246        visibility: hidden;
1247        
1248        transition: visibility 0s .25s;
1249        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1250        background: var(--media-preview-thumbnail-background, var(--_preview-background));
1251        box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2));
1252        max-width: var(--media-preview-thumbnail-max-width, 180px);
1253        max-height: var(--media-preview-thumbnail-max-height, 160px);
1254        min-width: var(--media-preview-thumbnail-min-width, 120px);
1255        min-height: var(--media-preview-thumbnail-min-height, 80px);
1256        border: var(--media-preview-thumbnail-border);
1257        border-radius: var(--media-preview-thumbnail-border-radius,
1258          var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0);
1259      }
1260
1261      :host([${rj.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail,
1262      :host([${rj.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) {
1263        transition-delay: var(--media-preview-transition-delay-in, .25s);
1264        visibility: visible;
1265      }
1266
1267      @media (hover: hover) {
1268        :host([${rj.MEDIA_PREVIEW_IMAGE}]:hover) media-preview-thumbnail,
1269        :host([${rj.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) {
1270          transition-delay: var(--media-preview-transition-delay-in, .25s);
1271          visibility: visible;
1272        }
1273
1274        :host([${rj.MEDIA_PREVIEW_TIME}]:hover) {
1275          --media-time-range-hover-display: block;
1276        }
1277      }
1278
1279      media-preview-chapter-display,
1280      ::slotted(media-preview-chapter-display) {
1281        font-size: var(--media-font-size, 13px);
1282        line-height: 17px;
1283        min-width: 0;
1284        visibility: hidden;
1285        
1286        transition: min-width 0s, border-radius 0s, margin 0s, padding 0s, visibility 0s;
1287        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1288        background: var(--media-preview-chapter-background, var(--_preview-background));
1289        border-radius: var(--media-preview-chapter-border-radius,
1290          var(--media-preview-border-radius) var(--media-preview-border-radius)
1291          var(--media-preview-border-radius) var(--media-preview-border-radius));
1292        padding: var(--media-preview-chapter-padding, 3.5px 9px);
1293        margin: var(--media-preview-chapter-margin, 0 0 5px);
1294        text-shadow: var(--media-preview-chapter-text-shadow, 0 0 4px rgb(0 0 0 / .75));
1295      }
1296
1297      :host([${rj.MEDIA_PREVIEW_IMAGE}]) media-preview-chapter-display,
1298      :host([${rj.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-chapter-display) {
1299        transition-delay: var(--media-preview-transition-delay-in, .25s);
1300        border-radius: var(--media-preview-chapter-border-radius, 0);
1301        padding: var(--media-preview-chapter-padding, 3.5px 9px 0);
1302        margin: var(--media-preview-chapter-margin, 0);
1303        min-width: 100%;
1304      }
1305
1306      media-preview-chapter-display[${rj.MEDIA_PREVIEW_CHAPTER}],
1307      ::slotted(media-preview-chapter-display[${rj.MEDIA_PREVIEW_CHAPTER}]) {
1308        visibility: visible;
1309      }
1310
1311      media-preview-chapter-display:not([aria-valuetext]),
1312      ::slotted(media-preview-chapter-display:not([aria-valuetext])) {
1313        display: none;
1314      }
1315
1316      media-preview-time-display,
1317      ::slotted(media-preview-time-display),
1318      media-time-display,
1319      ::slotted(media-time-display) {
1320        font-size: var(--media-font-size, 13px);
1321        line-height: 17px;
1322        min-width: 0;
1323        
1324        transition: min-width 0s, border-radius 0s;
1325        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1326        background: var(--media-preview-time-background, var(--_preview-background));
1327        border-radius: var(--media-preview-time-border-radius,
1328          var(--media-preview-border-radius) var(--media-preview-border-radius)
1329          var(--media-preview-border-radius) var(--media-preview-border-radius));
1330        padding: var(--media-preview-time-padding, 3.5px 9px);
1331        margin: var(--media-preview-time-margin, 0);
1332        text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75));
1333        transform: translateX(min(
1334          max(calc(50% - var(--_box-width) / 2),
1335          calc(var(--_box-shift, 0))),
1336          calc(var(--_box-width) / 2 - 50%)
1337        ));
1338      }
1339
1340      :host([${rj.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display,
1341      :host([${rj.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) {
1342        transition-delay: var(--media-preview-transition-delay-in, .25s);
1343        border-radius: var(--media-preview-time-border-radius,
1344          0 0 var(--media-preview-border-radius) var(--media-preview-border-radius));
1345        min-width: 100%;
1346      }
1347
1348      :host([${rj.MEDIA_PREVIEW_TIME}]:hover) {
1349        --media-time-range-hover-display: block;
1350      }
1351
1352      [part~="arrow"],
1353      ::slotted([part~="arrow"]) {
1354        display: var(--media-box-arrow-display, inline-block);
1355        transform: translateX(min(
1356          max(calc(50% - var(--_box-width) / 2 + var(--media-box-arrow-offset)),
1357          calc(var(--_box-shift, 0))),
1358          calc(var(--_box-width) / 2 - 50% - var(--media-box-arrow-offset))
1359        ));
1360        
1361        border-color: transparent;
1362        border-top-color: var(--media-box-arrow-background, var(--_control-background));
1363        border-width: var(--media-box-arrow-border-width,
1364          var(--media-box-arrow-height, 5px) var(--media-box-arrow-width, 6px) 0);
1365        border-style: solid;
1366        justify-content: center;
1367        height: 0;
1368      }
1369    </style>
1370    <div id="preview-rail">
1371      <slot name="preview" part="box preview-box">
1372        <media-preview-thumbnail>
1373          <template shadowrootmode="${ss.shadowRootOptions.mode}">
1374            ${ss.getTemplateHTML({})}
1375          </template>
1376        </media-preview-thumbnail>
1377        <media-preview-chapter-display></media-preview-chapter-display>
1378        <media-preview-time-display></media-preview-time-display>
1379        <slot name="preview-arrow"><div part="arrow"></div></slot>
1380      </slot>
1381    </div>
1382    <div id="current-rail">
1383      <slot name="current" part="box current-box">
1384        
1385      </slot>
1386    </div>
1387  `},nd.customElements.get("media-time-range")||nd.customElements.define("media-time-range",sV);var sF=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot read from private field");return i?i.call(e):t.get(e)};class sW extends os{constructor(){super(...arguments),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,tW,()=>{let e=this.range.value,t=new nd.CustomEvent(rF.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)})}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_VOLUME,rj.MEDIA_MUTED,rj.MEDIA_VOLUME_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",r8("volume")),this.range.addEventListener("input",sF(this,tW))}disconnectedCallback(){this.range.removeEventListener("input",sF(this,tW)),super.disconnectedCallback()}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===rj.MEDIA_VOLUME||e===rj.MEDIA_MUTED){let e;this.range.valueAsNumber=this.mediaMuted?0:this.mediaVolume,this.range.setAttribute("aria-valuetext",(e=this.range.valueAsNumber,`${Math.round(100*e)}%`)),this.updateBar()}}
1387get mediaVolume(){return nI(this,rj.MEDIA_VOLUME,1)}set mediaVolume(e){nC(this,rj.MEDIA_VOLUME,e)}get mediaMuted(){return nL(this,rj.MEDIA_MUTED)}set mediaMuted(e){nM(this,rj.MEDIA_MUTED,e)}get mediaVolumeUnavailable(){return nR(this,rj.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(e){nD(this,rj.MEDIA_VOLUME_UNAVAILABLE,e)}}tW=new WeakMap,nd.customElements.get("media-volume-range")||nd.customElements.define("media-volume-range",sW);class sH extends aG{constructor(){super(...arguments),this.container=null}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_LOOP]}connectedCallback(){var e;super.connectedCallback(),this.container=(null==(e=this.shadowRoot)?void 0:e.querySelector("#icon"))||null,this.container&&(this.container.textContent=r8("Loop"))}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_LOOP&&this.container&&this.setAttribute("aria-checked",this.mediaLoop?"true":"false")}get mediaLoop(){return nL(this,rj.MEDIA_LOOP)}set mediaLoop(e){nM(this,rj.MEDIA_LOOP,e)}handleClick(){let e=!this.mediaLoop,t=new nd.CustomEvent(rF.MEDIA_LOOP_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}sH.getSlotTemplateHTML=function(e){return`
1388      <style>
1389        :host {
1390          min-width: 4ch;
1391          padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1392          width: 100%;
1393          display: grid;
1394          grid-template-columns: 1fr auto;
1395          gap: 1rem;
1396          font-weight: var(--media-button-font-weight, normal);
1397        }
1398
1399        #checked-indicator {
1400          display: none;
1401        }
1402
1403        :host([${rj.MEDIA_LOOP}]) #checked-indicator {
1404          display: block;
1405        }
1406      </style>
1407      
1408      <span id="icon">
1409     </span>
1410
1411      <div id="checked-indicator">
1412        <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
1413          <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"/>
1414        </svg>
1415      </div>
1416    `},sH.getTooltipContentHTML=function(){return r8("Loop")},nd.customElements.get("media-loop-button")||nd.customElements.define("media-loop-button",sH);var sB=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sj=(e,t,i)=>(sB(e,t,"read from private field"),i?i.call(e):t.get(e)),s$=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sz=(e,t,i,r)=>(sB(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);let sK={processCallback(e,t,i){if(i){for(let[e,r]of t)if(e in i){let t=i[e];"boolean"==typeof t&&r instanceof s0&&"boolean"==typeof r.element[r.attributeName]?r.booleanValue=t:"function"==typeof t&&r instanceof s0?r.element[r.attributeName]=t:r.value=t}}}};class sG extends nd.DocumentFragment{constructor(e,t,i=sK){var r;super(),s$(this,tH,void 0),s$(this,tB,void 0),this.append(e.content.cloneNode(!0)),sz(this,tH,sq(this)),sz(this,tB,i),null==(r=i.createCallback)||r.call(i,this,sj(this,tH),t),i.processCallback(this,sj(this,tH),t)}update(e){sj(this,tB).processCallback(this,sj(this,tH),e)}}tH=new WeakMap,tB=new WeakMap;let sq=(e,t=[])=>{let i,r;for(let n of e.attributes||[])if(n.value.includes("{{")){let a=new sJ;for([i,r]of sZ(n.value))if(i){let i=new s0(e,n.name,n.namespaceURI);a.append(i),t.push([r,i])}else a.append(r);n.value=a.toString()}for(let n of e.childNodes)if(1!==n.nodeType||n instanceof HTMLTemplateElement){let a=n.data;if(1===n.nodeType||a.includes("{{")){let o=[];if(a)for([i,r]of sZ(a))if(i){let i=new s1(e);o.push(i),t.push([r,i])}else o.push(new Text(r));else if(n instanceof HTMLTemplateElement){let i=new s2(e,n);o.push(i),t.push([i.expression,i])}n.replaceWith(...o.flatMap(e=>e.replacementNodes||[e]))}}else sq(n,t);return t},sY={},sZ=e=>{let t="",i=0,r=sY[e],n=0,a;if(r)return r;for(r=[];a=e[n];n++)"{"===a&&"{"===e[n+1]&&"\\"!==e[n-1]&&e[n+2]&&1==++i?(t&&r.push([0,t]),t="",n++):"}"!==a||"}"!==e[n+1]||"\\"===e[n-1]||--i?t+=a||"":(r.push([1,t.trim()]),t="",n++);return t&&r.push([0,(i>0?"{{":"")+t]),sY[e]=r};class sQ{get value(){return""}set value(e){}toString(){return this.value}}let sX=new WeakMap;class sJ{constructor(){s$(this,tj,[])}[Symbol.iterator](){return sj(this,tj).values()}get length(){return sj(this,tj).length}item(e){return sj(this,tj)[e]}append(...e){for(let t of e)t instanceof s0&&sX.set(t,this),sj(this,tj).push(t)}toString(){return sj(this,tj).join("")}}tj=new WeakMap;class s0 extends sQ{constructor(e,t,i){super(),s$(this,tq),s$(this,t$,""),s$(this,tz,void 0),s$(this,tK,void 0),s$(this,tG,void 0),sz(this,tz,e),sz(this,tK,t),sz(this,tG,i)}get attributeName(){return sj(this,tK)}get attributeNamespace(){return sj(this,tG)}
1416get element(){return sj(this,tz)}get value(){return sj(this,t$)}set value(e){sj(this,t$)!==e&&(sz(this,t$,e),sj(this,tq,tY)&&1!==sj(this,tq,tY).length?sj(this,tz).setAttributeNS(sj(this,tG),sj(this,tK),sj(this,tq,tY).toString()):null==e?sj(this,tz).removeAttributeNS(sj(this,tG),sj(this,tK)):sj(this,tz).setAttributeNS(sj(this,tG),sj(this,tK),e))}get booleanValue(){return sj(this,tz).hasAttributeNS(sj(this,tG),sj(this,tK))}set booleanValue(e){if(sj(this,tq,tY)&&1!==sj(this,tq,tY).length)throw new DOMException("Value is not fully templatized");this.value=e?"":null}}t$=new WeakMap,tz=new WeakMap,tK=new WeakMap,tG=new WeakMap,tq=new WeakSet,tY=function(){return sX.get(this)};class s1 extends sQ{constructor(e,t){super(),s$(this,tZ,void 0),s$(this,tQ,void 0),sz(this,tZ,e),sz(this,tQ,t?[...t]:[new Text])}get replacementNodes(){return sj(this,tQ)}get parentNode(){return sj(this,tZ)}get nextSibling(){return sj(this,tQ)[sj(this,tQ).length-1].nextSibling}get previousSibling(){return sj(this,tQ)[0].previousSibling}get value(){return sj(this,tQ).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(e=>null==e?[new Text]:e.forEach?[...e]:11===e.nodeType?[...e.childNodes]:e.nodeType?[e]:[new Text(e)]);t.length||t.push(new Text),sz(this,tQ,function(e,t,i,r=null){let n=0,a,o,s,l=i.length,d=t.length;for(;n<l&&n<d&&t[n]==i[n];)n++;for(;n<l&&n<d&&i[l-1]==t[d-1];)r=i[--d,--l];if(n==d)for(;n<l;)e.insertBefore(i[n++],r);if(n==l)for(;n<d;)e.removeChild(t[n++]);else{for(a=t[n];n<l;)s=i[n++],o=a?a.nextSibling:r,a==s?a=o:n<l&&i[n]==o?(e.replaceChild(s,a),a=o):e.insertBefore(s,a);for(;a!=r;)o=a.nextSibling,e.removeChild(a),a=o}return i}(sj(this,tQ)[0].parentNode,sj(this,tQ),t,this.nextSibling))}}tZ=new WeakMap,tQ=new WeakMap;class s2 extends s1{constructor(e,t){let i=t.getAttribute("directive")||t.getAttribute("type"),r=t.getAttribute("expression")||t.getAttribute(i)||"";r.startsWith("{{")&&(r=r.trim().slice(2,-2).trim()),super(e),this.expression=r,this.template=t,this.directive=i}}let s5={string:e=>String(e)};class s3{constructor(e){this.template=e,this.state=void 0}}let s4=new WeakMap,s7=new WeakMap,s8={partial:(e,t)=>{t[e.expression]=new s3(e.template)},if:(e,t)=>{var i;if(lt(e.expression,t))if(s4.get(e)!==e.template){s4.set(e,e.template);let i=new sG(e.template,t,s9);e.replace(i),s7.set(e,i)}else null==(i=s7.get(e))||i.update(t);else e.replace(""),s4.delete(e),s7.delete(e)}},s6=Object.keys(s8),s9={processCallback(e,t,i){var r,n;if(i)for(let[e,a]of t){if(a instanceof s2){if(!a.directive){let e=s6.find(e=>a.template.hasAttribute(e));e&&(a.directive=e,a.expression=a.template.getAttribute(e))}null==(r=s8[a.directive])||r.call(s8,a,i);continue}let t=lt(e,i);if(t instanceof s3){s4.get(a)!==t.template?(s4.set(a,t.template),a.value=t=new sG(t.template,t.state,s9),s7.set(a,t)):null==(n=s7.get(a))||n.update(t.state);continue}t?(a instanceof s0&&a.attributeName.startsWith("aria-")&&(t=String(t)),a instanceof s0?"boolean"==typeof t?a.booleanValue=t:"function"==typeof t?a.element[a.attributeName]=t:a.value=t:(a.value=t,s4.delete(a),s7.delete(a))):a instanceof s0?a.value=void 0:(a.value=void 0,s4.delete(a),s7.delete(a))}}},le={"!":e=>!e,"!!":e=>!!e,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,">":(e,t)=>e>t,">=":(e,t)=>
1416e>=t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,"??":(e,t)=>null!=e?e:t,"|":(e,t)=>{var i;return null==(i=s5[t])?void 0:i.call(s5,e)}};function lt(e,t={}){var i,r,n,a,o,s,l;let d=(function(e,t){let i,r,n,a=[];for(;e;){for(let a in n=null,i=e.length,t)(r=t[a].exec(e))&&r.index<i&&(n={token:r[0],type:a,matches:r.slice(1)},i=r.index);i&&a.push({token:e.substr(0,i),type:void 0}),n&&a.push(n),e=e.substr(i+(n?n.token.length:0))}return a})(e,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>"ws"!==e);if(0===d.length||d.some(({type:e})=>!e))return li(e);if((null==(i=d[0])?void 0:i.token)===">"){let i=t[null==(r=d[1])?void 0:r.token];if(!i)return li(e);let s={...t};i.state=s;let l=d.slice(2);for(let e=0;e<l.length;e+=3){let i=null==(n=l[e])?void 0:n.token,r=null==(a=l[e+1])?void 0:a.token,d=null==(o=l[e+2])?void 0:o.token;i&&"="===r&&(s[i]=ln(d,t))}return i}if(1===d.length)return lr(d[0])?ln(d[0].token,t):li(e);if(2===d.length){let i=le[null==(s=d[0])?void 0:s.token];return i&&lr(d[1])?i(ln(d[1].token,t)):li(e)}if(3===d.length){let i=null==(l=d[1])?void 0:l.token,r=le[i];if(!r||!lr(d[0])||!lr(d[2]))return li(e);let n=ln(d[0].token,t);return r(n,"|"===i?d[2].token:ln(d[2].token,t))}}function li(e){return console.warn(`Warning: invalid expression \`${e}\``),!1}function lr({type:e}){return["number","boolean","string","param"].includes(e)}function ln(e,t){let i=e[0],r=e.slice(-1);return"true"===e||"false"===e?"true"===e:i===r&&["'",'"'].includes(i)?e.slice(1,-1):r5(e)?parseFloat(e):t[e]}var la=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lo=(e,t,i)=>(la(e,t,"read from private field"),i?i.call(e):t.get(e)),ls=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},ll=(e,t,i,r)=>(la(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),ld=(e,t,i)=>(la(e,t,"access private method"),i);let lu={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},lc=nu.createElement("template");lc.innerHTML=`
1417  <style>
1418    :host {
1419      display: inline-block;
1420      line-height: 0;
1421    }
1422
1423    media-controller {
1424      width: 100%;
1425      height: 100%;
1426    }
1427
1428    media-captions-button:not([mediasubtitleslist]),
1429    media-captions-menu:not([mediasubtitleslist]),
1430    media-captions-menu-button:not([mediasubtitleslist]),
1431    media-audio-track-menu[mediaaudiotrackunavailable],
1432    media-audio-track-menu-button[mediaaudiotrackunavailable],
1433    media-rendition-menu[mediarenditionunavailable],
1434    media-rendition-menu-button[mediarenditionunavailable],
1435    media-volume-range[mediavolumeunavailable],
1436    media-airplay-button[mediaairplayunavailable],
1437    media-fullscreen-button[mediafullscreenunavailable],
1438    media-cast-button[mediacastunavailable],
1439    media-pip-button[mediapipunavailable] {
1440      display: none;
1441    }
1442  </style>
1443`;class lh extends nd.HTMLElement{constructor(){super(),ls(this,t2),ls(this,t3),ls(this,tX,void 0),ls(this,tJ,void 0),ls(this,t0,void 0),ls(this,t1,void 0),ls(this,t7,void 0),this.shadowRoot?this.renderRoot=this.shadowRoot:(this.renderRoot=this.attachShadow({mode:"open"}),this.createRenderer()),ll(this,t1,new MutationObserver(e=>{var t;(!this.mediaController||(null==(t=this.mediaController)?void 0:t.breakpointsComputed))&&e.some(e=>{let t=e.target;return t===this||"media-controller"===t.localName&&!!(lu[e.attributeName]||e.attributeName.startsWith("breakpoint"))})&&this.render()})),ll(this,t7,this.render.bind(this)),ld(this,t2,t5).call(this,"template")}get mediaController(){return this.renderRoot.querySelector("media-controller")}get template(){var e;return null!=(e=lo(this,tX))?e:this.constructor.template}set template(e){if(null===e)return void this.removeAttribute("template");"string"==typeof e?this.setAttribute("template",e):e instanceof HTMLTemplateElement&&(ll(this,tX,e),ll(this,t0,null),this.createRenderer())}get props(){var e,t,i;let r=[...Array.from(null!=(t=null==(e=this.mediaController)?void 0:e.attributes)?t:[]).filter(({name:e})=>lu[e]||e.startsWith("breakpoint")),...Array.from(this.attributes)],n={};for(let e of r){let t=null!=(i=lu[e.name])?i:e.name.replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase()),{value:r}=e;null!=r?(r5(r)&&(r=parseFloat(r)),n[t]=""===r||r):n[t]=!1}return n}attributeChangedCallback(e,t,i){"template"===e&&t!=i&&ld(this,t3,t4).call(this)}connectedCallback(){this.addEventListener(r$.BREAKPOINTS_COMPUTED,lo(this,t7)),lo(this,t1).observe(this,{attributes:!0}),lo(this,t1).observe(this.renderRoot,{attributes:!0,subtree:!0}),ld(this,t3,t4).call(this)}disconnectedCallback(){this.removeEventListener(r$.BREAKPOINTS_COMPUTED,lo(this,t7)),lo(this,t1).disconnect()}createRenderer(){this.template instanceof HTMLTemplateElement&&this.template!==lo(this,tJ)&&(ll(this,tJ,this.template),this.renderer=new sG(this.template,this.props,this.constructor.processor),this.renderRoot.textContent="",this.renderRoot.append(lc.content.cloneNode(!0),this.renderer))}render(){var e;null==(e=this.renderer)||e.update(this.props)}}async function lm(e){let t=await fetch(e);if(200!==t.status)throw Error(`Failed to load resource: the server responded with a status of ${t.status}`);return t.text()}function lp(e){return e.split("-")[0]}tX=new WeakMap,tJ=new WeakMap,t0=new WeakMap,t1=new WeakMap,t2=new WeakSet,t5=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}},t3=new WeakSet,t4=function(){var e;let t=this.getAttribute("template");if(!t||t===lo(this,t0))return;let i=this.getRootNode(),r=null==(e=null==i?void 0:i.getElementById)?void 0:e.call(i,t);if(r){ll(this,t0,t),ll(this,tX,r),this.createRenderer();return}(function(e){if(!/^(\/|\.\/|https?:\/\/)/.test(e))return!1;let t=/^https?:\/\//.test(e)?void 0:location.origin;try{new URL(e,t)}catch(e){return!1}return!0})(t)&&(ll(this,t0,t),lm(t).then(e=>{let t=nu.createElement("template");t.innerHTML=e,ll(this,tX,t),this.createRenderer()}).catch(console.error))},t7=new WeakMap,lh.observedAttributes=["template"],lh.processor=s9,nd.customElements.get("media-theme")||nd.customElements.define("media-theme",lh);
1443class lf extends Event{constructor({action:e="auto",relatedTarget:t,...i}){super("invoke",i),this.action=e,this.relatedTarget=t}}class lv extends Event{constructor({newState:e,oldState:t,...i}){super("toggle",i),this.newState=e,this.oldState=t}}var lg=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lb=(e,t,i)=>(lg(e,t,"read from private field"),i?i.call(e):t.get(e)),lE=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},ly=(e,t,i,r)=>(lg(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),lw=(e,t,i)=>(lg(e,t,"access private method"),i);function lA({type:e,text:t,value:i,checked:r}){let n=nu.createElement("media-chrome-menu-item");n.type=null!=e?e:"",n.part.add("menu-item"),e&&n.part.add(e),n.value=i,n.checked=r;let a=nu.createElement("span");return a.textContent=t,n.append(a),n}function lk(e,t){let i=e.querySelector(`:scope > [slot="${t}"]`);if((null==i?void 0:i.nodeName)=="SLOT"&&(i=i.assignedElements({flatten:!0})[0]),i)return i.cloneNode(!0);let r=e.shadowRoot.querySelector(`[name="${t}"] > svg`);return r?r.cloneNode(!0):""}let lx={STYLE:"style",HIDDEN:"hidden",DISABLED:"disabled",ANCHOR:"anchor"};class l_ extends nd.HTMLElement{constructor(){if(super(),lE(this,ia),lE(this,is),lE(this,iu),lE(this,ih),lE(this,ip),lE(this,ig),lE(this,iw),lE(this,ik),lE(this,i_),lE(this,iS),lE(this,iC),lE(this,iM),lE(this,iD),lE(this,iN),lE(this,iU),lE(this,iF),lE(this,iH),lE(this,ij),lE(this,t8,null),lE(this,t6,null),lE(this,t9,null),lE(this,ie,new Set),lE(this,it,void 0),lE(this,ii,!1),lE(this,ir,null),lE(this,id,()=>{let e=lb(this,ie),t=new Set(this.items);for(let i of e)t.has(i)||this.dispatchEvent(new CustomEvent("removemenuitem",{detail:i}));for(let i of t)e.has(i)||this.dispatchEvent(new CustomEvent("addmenuitem",{detail:i}));ly(this,ie,t)}),lE(this,iE,()=>
1443{lw(this,iw,iA).call(this),lw(this,ik,ix).call(this,!1)}),lE(this,iy,()=>{lw(this,iw,iA).call(this)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.container=this.shadowRoot.querySelector("#container"),this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),ly(this,it,new MutationObserver(lb(this,id)))}static get observedAttributes(){return[lx.DISABLED,lx.HIDDEN,lx.STYLE,lx.ANCHOR,rW.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":lw(this,ia,io).call(this,e);break;case"invoke":lw(this,ih,im).call(this,e);break;case"click":lw(this,i_,iT).call(this,e);break;case"toggle":lw(this,iC,iL).call(this,e);break;case"focusout":lw(this,iD,iO).call(this,e);break;case"keydown":lw(this,iN,iP).call(this,e)}}connectedCallback(){var e,t;lb(this,it).observe(this.defaultSlot,{childList:!0}),ly(this,ir,nS(this.shadowRoot,":host")),lw(this,iu,ic).call(this),this.hasAttribute("disabled")||this.enable(),this.role||(this.role="menu"),ly(this,t8,nb(this)),null==(t=null==(e=lb(this,t8))?void 0:e.associateElement)||t.call(e,this),this.hidden||(np(lS(this),lb(this,iE)),np(this,lb(this,iy))),lw(this,is,il).
1443call(this),this.shadowRoot.addEventListener("slotchange",this)}disconnectedCallback(){var e,t;lb(this,it).disconnect(),nf(lS(this),lb(this,iE)),nf(this,lb(this,iy)),this.disable(),null==(t=null==(e=lb(this,t8))?void 0:e.unassociateElement)||t.call(e,this),ly(this,t8,null),ly(this,t6,null),ly(this,t9,null),this.shadowRoot.removeEventListener("slotchange",this)}attributeChangedCallback(e,t,i){var r,n,a,o;e===lx.HIDDEN&&i!==t?(lb(this,ii)||ly(this,ii,!0),this.hidden?lw(this,ig,ib).call(this):lw(this,ip,iv).call(this),this.dispatchEvent(new lv({oldState:this.hidden?"open":"closed",newState:this.hidden?"closed":"open",bubbles:!0}))):e===rW.MEDIA_CONTROLLER?(t&&(null==(n=null==(r=lb(this,t8))?void 0:r.unassociateElement)||n.call(r,this),ly(this,t8,null)),i&&this.isConnected&&(ly(this,t8,nb(this)),null==(o=null==(a=lb(this,t8))?void 0:a.associateElement)||o.call(a,this))):e===lx.DISABLED&&i!==t?null==i?this.enable():this.disable():e===lx.STYLE&&i!==t&&lw(this,iu,ic).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?null==(e=nx(this))?void 0:e.querySelector(`#${this.anchor}`):null}get items(){return this.defaultSlot.assignedElements({flatten:!0}).filter(lT)}get radioGroupItems(){return this.items.filter(e=>"menuitemradio"===e.role)}get checkedItems(){return this.items.filter(e=>e.checked)}get value(){var e,t;return null!=(t=null==(e=this.checkedItems[0])?void 0:e.value)?t:""}set value(e){let t=this.items.find(t=>t.value===e);t&&lw(this,ij,i$).call(this,t)}focus(){if(ly(this,t6,nk()),this.items.length){lw(this,iH,iB).call(this,this.items[0]),this.items[0].focus();return}let e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==e||e.focus()}handleSelect(e){var t;let i=lw(this,iU,iV).call(this,e);i&&(lw(this,ij,i$).call(this,i,"checkbox"===i.type),lb(this,t9)&&!this.hidden&&(null==(t=lb(this,t6))||t.focus(),this.hidden=!0))}get keysUsed(){return["Enter","Escape","Tab"," ","ArrowDown","ArrowUp","Home","End"]}handleMove(e){var t,i;let{key:r}=e,n=this.items,a=null!=(i=null!=(t=lw(this,iU,iV).call(this,e))?t:lw(this,iF,iW).call(this))?i:n[0],o=Math.max(0,n.indexOf(a));"ArrowDown"===r?o++:"ArrowUp"===r?o--:"Home"===e.key?o=0:"End"===e.key&&(o=n.length-1),o<0&&(o=n.length-1),o>n.length-1&&(o=0),lw(this,iH,iB).call(this,n[o]),n[o].focus()}}function lT(e){return["menuitem","menuitemradio","menuitemcheckbox"].includes(null==e?void 0:e.role)}function lS(e){var t;return null!=(t=e.getAttribute("bounds")?nA(e,`#${e.getAttribute("bounds")}`):ng(e)||e.parentElement)?t:e}t8=new WeakMap,t6=new WeakMap,t9=new WeakMap,ie=new WeakMap,it=new WeakMap,ii=new WeakMap,ir=new WeakMap,ia=new WeakSet,io=function(e){let t=e.target;for(let e of t.assignedNodes({flatten:!0}))3===e.nodeType&&""===e.textContent.trim()&&e.remove();
1443["header","title"].includes(t.name)&&lw(this,is,il).call(this),t.name||lb(this,id).call(this)},is=new WeakSet,il=function(){let e=this.shadowRoot.querySelector('slot[name="header"]');e.hidden=0===this.shadowRoot.querySelector('slot[name="title"]').assignedNodes().length&&0===e.assignedNodes().length},id=new WeakMap,iu=new WeakSet,ic=function(){var e;let t=this.shadowRoot.querySelector("#layout-row"),i=null==(e=getComputedStyle(this).getPropertyValue("--media-menu-layout"))?void 0:e.trim();t.setAttribute("media","row"===i?"":"width:0")},ih=new WeakSet,im=function(e){ly(this,t9,e.relatedTarget),nw(this,e.relatedTarget)||(this.hidden=!this.hidden)},ip=new WeakSet,iv=function(){var e;null==(e=lb(this,t9))||e.setAttribute("aria-expanded","true"),this.addEventListener("transitionend",()=>this.focus(),{once:!0}),np(lS(this),lb(this,iE)),np(this,lb(this,iy))},ig=new WeakSet,ib=function(){var e;null==(e=lb(this,t9))||e.setAttribute("aria-expanded","false"),nf(lS(this),lb(this,iE)),nf(this,lb(this,iy))},iE=new WeakMap,iy=new WeakMap,iw=new WeakSet,iA=function(e){if(this.hasAttribute("mediacontroller")&&!this.anchor||this.hidden||!this.anchorElement)return;let{x:t,y:i}=function({anchor:e,floating:t,placement:i}){let{x:r,y:n}=function({anchor:e,floating:t},i){let r,n="x"==(["top","bottom"].includes(lp(i))?"y":"x")?"y":"x",a="y"===n?"height":"width",o=lp(i),s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,d=e[a]/2-t[a]/2;switch(o){case"top":r={x:s,y:e.y-t.height};break;case"bottom":r={x:s,y:e.y+e.height};break;case"right":r={x:e.x+e.width,y:l};break;case"left":r={x:e.x-t.width,y:l};break;default:r={x:e.x,y:e.y}}switch(i.split("-")[1]){case"start":r[n]-=d;break;case"end":r[n]+=d}return r}(function({anchor:e,floating:t}){return{anchor:function(e,t){var i;let r=e.getBoundingClientRect(),n=null!=(i=null==t?void 0:t.getBoundingClientRect())?i:{x:0,y:0};return{x:r.x-n.x,y:r.y-n.y,width:r.width,height:r.height}}(e,t.offsetParent),floating:{x:0,y:0,width:t.offsetWidth,height:t.offsetHeight}}}({anchor:e,floating:t}),i);return{x:r,y:n}}({anchor:this.anchorElement,floating:this,placement:"top-start"});null!=e||(e=this.offsetWidth);let r=lS(this).getBoundingClientRect(),n=r.width-t-e,a=r.height-i-this.offsetHeight,{style:o}=lb(this,ir);o.setProperty("position","absolute"),o.setProperty("right",`${Math.max(0,n)}px`),o.setProperty("--_menu-bottom",`${a}px`);let s=getComputedStyle(this),l=o.getPropertyValue("--_menu-bottom")===s.bottom?a:parseFloat(s.bottom),d=r.height-l-parseFloat(s.marginBottom);this.style.setProperty("--_menu-max-height",`${d}px`)},ik=new WeakSet,ix=function(e){let t=this.querySelector('[role="menuitem"][aria-haspopup][aria-expanded="true"]'),i=null==t?void 0:t.querySelector('[role="menu"]'),{style:r}=lb(this,ir);if(e||r.setProperty("--media-menu-transition-in","none"),i){let e=i.offsetHeight,r=Math.max(i.offsetWidth,t.offsetWidth);this.style.setProperty("min-width",`${r}px`),this.style.setProperty("min-height",`${e}px`),lw(this,iw,iA).call(this,r)}else this.style.removeProperty("min-width"),this.style.removeProperty("min-height"),lw(this,iw,iA).call(this);r.removeProperty("--media-menu-transition-in")},i_=new WeakSet,iT=function(e){var t;if(e.stopPropagation(),e.composedPath().includes(lb(this,iS,iI))){null==(t=lb(this,t6))||t.focus(),this.hidden=!0;return}let i=lw(this,iU,iV).call(this,e);!i||i.hasAttribute("disabled")||(lw(this,iH,iB).call(this,i),this.handleSelect(e))},iS=new WeakSet,iI=function(){var e;return null==(e=this.shadowRoot.querySelector('slot[name="header"]').assignedElements({flatten:!0}))?void 0:e.find(e=>e.matches('button[part~="back"]'))},iC=new WeakSet,iL=function(e){if(e.target===this)return;lw(this,iM,iR).call(this);let t=Array.from(this.querySelectorAll('[role="menuitem"][aria-haspopup]'));for(let i of t)i.invokeTargetElement!=e.target&&("open"!=e.newState||"true"!=i.getAttribute("aria-expanded")||i.invokeTargetElement.hidden||i.invokeTargetElement.dispatchEvent(new lf({relatedTarget:i})));for(let e of t)e.setAttribute("aria-expanded",`${!e.submenuElement.hidden}`);
1443lw(this,ik,ix).call(this,!0)},iM=new WeakSet,iR=function(){let e=this.querySelector('[role="menuitem"] > [role="menu"]:not([hidden])');this.container.classList.toggle("has-expanded",!!e)},iD=new WeakSet,iO=function(e){var t;nw(this,e.relatedTarget)||(lb(this,ii)&&(null==(t=lb(this,t6))||t.focus()),lb(this,t9)&&lb(this,t9)!==e.relatedTarget&&!this.hidden&&(this.hidden=!0))},iN=new WeakSet,iP=function(e){var t,i,r,n,a;let{key:o,ctrlKey:s,altKey:l,metaKey:d}=e;if(!s&&!l&&!d&&this.keysUsed.includes(o))if(e.preventDefault(),e.stopPropagation(),"Tab"===o){if(lb(this,ii)){this.hidden=!0;return}e.shiftKey?null==(i=null==(t=this.previousElementSibling)?void 0:t.focus)||i.call(t):null==(n=null==(r=this.nextElementSibling)?void 0:r.focus)||n.call(r),this.blur()}else"Escape"===o?(null==(a=lb(this,t6))||a.focus(),lb(this,ii)&&(this.hidden=!0)):"Enter"===o||" "===o?this.handleSelect(e):this.handleMove(e)},iU=new WeakSet,iV=function(e){return e.composedPath().find(e=>["menuitemradio","menuitemcheckbox"].includes(e.role))},iF=new WeakSet,iW=function(){return this.items.find(e=>0===e.tabIndex)},iH=new WeakSet,iB=function(e){for(let t of this.items)t.tabIndex=t===e?0:-1},ij=new WeakSet,i$=function(e,t){let i=[...this.checkedItems];"radio"===e.type&&this.radioGroupItems.forEach(e=>e.checked=!1),t?e.checked=!e.checked:e.checked=!0,this.checkedItems.some((e,t)=>e!=i[t])&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},l_.shadowRootOptions={mode:"open"},l_.getTemplateHTML=function(e){return`
1444    <style>
1445      :host {
1446        font: var(--media-font,
1447          var(--media-font-weight, normal)
1448          var(--media-font-size, 14px) /
1449          var(--media-text-content-height, var(--media-control-height, 24px))
1450          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
1451        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
1452        --_menu-bg: rgb(20 20 30 / .8);
1453        background: var(--media-menu-background, var(--media-control-background, var(--media-secondary-color, var(--_menu-bg))));
1454        border-radius: var(--media-menu-border-radius);
1455        border: var(--media-menu-border, none);
1456        display: var(--media-menu-display, inline-flex) !important;
1457        
1458        transition: var(--media-menu-transition-in,
1459          visibility 0s,
1460          opacity .2s ease-out,
1461          transform .15s ease-out,
1462          left .2s ease-in-out,
1463          min-width .2s ease-in-out,
1464          min-height .2s ease-in-out
1465        ) !important;
1466        
1467        visibility: var(--media-menu-visibility, visible);
1468        opacity: var(--media-menu-opacity, 1);
1469        max-height: var(--media-menu-max-height, var(--_menu-max-height, 300px));
1470        transform: var(--media-menu-transform-in, translateY(0) scale(1));
1471        flex-direction: column;
1472        
1473        min-height: 0;
1474        position: relative;
1475        bottom: var(--_menu-bottom);
1476        box-sizing: border-box;
1477      } 
1478
1479      @-moz-document url-prefix() {
1480        :host{
1481          --_menu-bg: rgb(20 20 30);
1482        }
1483      }
1484
1485      :host([hidden]) {
1486        transition: var(--media-menu-transition-out,
1487          visibility .15s ease-in,
1488          opacity .15s ease-in,
1489          transform .15s ease-in
1490        ) !important;
1491        visibility: var(--media-menu-hidden-visibility, hidden);
1492        opacity: var(--media-menu-hidden-opacity, 0);
1493        max-height: var(--media-menu-hidden-max-height,
1494          var(--media-menu-max-height, var(--_menu-max-height, 300px)));
1495        transform: var(--media-menu-transform-out, translateY(2px) scale(.99));
1496        pointer-events: none;
1497      }
1498
1499      :host([slot="submenu"]) {
1500        background: none;
1501        width: 100%;
1502        min-height: 100%;
1503        position: absolute;
1504        bottom: 0;
1505        right: -100%;
1506      }
1507
1508      #container {
1509        display: flex;
1510        flex-direction: column;
1511        min-height: 0;
1512        transition: transform .2s ease-out;
1513        transform: translate(0, 0);
1514      }
1515
1516      #container.has-expanded {
1517        transition: transform .2s ease-in;
1518        transform: translate(-100%, 0);
1519      }
1520
1521      button {
1522        background: none;
1523        color: inherit;
1524        border: none;
1525        padding: 0;
1526        font: inherit;
1527        outline: inherit;
1528        display: inline-flex;
1529        align-items: center;
1530      }
1531
1532      slot[name="header"][hidden] {
1533        display: none;
1534      }
1535
1536      slot[name="header"] > *,
1537      slot[name="header"]::slotted(*) {
1538        padding: .4em .7em;
1539        border-bottom: 1px solid rgb(255 255 255 / .25);
1540        cursor: var(--media-cursor, default);
1541      }
1542
1543      slot[name="header"] > button[part~="back"],
1544      slot[name="header"]::slotted(button[part~="back"]) {
1545        cursor: var(--media-cursor, pointer);
1546      }
1547
1548      svg[part~="back"] {
1549        height: var(--media-menu-icon-height, var(--media-control-height, 24px));
1550        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1551        display: block;
1552        margin-right: .5ch;
1553      }
1554
1555      slot:not([name]) {
1556        gap: var(--media-menu-gap);
1557        flex-direction: var(--media-menu-flex-direction, column);
1558        overflow: var(--media-menu-overflow, hidden auto);
1559        display: flex;
1560        min-height: 0;
1561      }
1562
1563      :host([role="menu"]) slot:not([name]) {
1564        padding-block: .4em;
1565      }
1566
1567      slot:not([name])::slotted([role="menu"]) {
1568        background: none;
1569      }
1570
1571      media-chrome-menu-item > span {
1572        margin-right: .5ch;
1573        max-width: var(--media-menu-item-max-width);
1574        text-overflow: ellipsis;
1575        overflow: hidden;
1576      }
1577    </style>
1578    <style id="layout-row" media="width:0">
1579
1580      slot[name="header"] > *,
1581      slot[name="header"]::slotted(*) {
1582        padding: .4em .5em;
1583      }
1584
1585      slot:not([name]) {
1586        gap: var(--media-menu-gap, .25em);
1587        flex-direction: var(--media-menu-flex-direction, row);
1588        padding-inline: .5em;
1589      }
1590
1591      media-chrome-menu-item {
1592        padding: .3em .5em;
1593      }
1594
1595      media-chrome-menu-item[aria-checked="true"] {
1596        background: var(--media-menu-item-checked-background, rgb(255 255 255 / .2));
1597      }
1598
1599      
1600      media-chrome-menu-item::part(checked-indicator) {
1601        display: var(--media-menu-item-checked-indicator-display, none);
1602      }
1603    </style>
1604    <div id="container" part="container">
1605      <slot name="header" hidden>
1606        <button part="back button" aria-label="Back to previous menu">
1607          <slot name="back-icon">
1608            <svg aria-hidden="true" viewBox="0 0 20 24" part="back indicator">
1609              <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"/>
1610            </svg>
1611          </slot>
1612          <slot name="title"></slot>
1613        </button>
1614      </slot>
1615      <slot></slot>
1616    </div>
1617    <slot name="checked-indicator" hidden></slot>
1618  `},nd.customElements.get("media-chrome-menu")||nd.customElements.define("media-chrome-menu",l_);var lI=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lC=(e,t,i)=>(lI(e,t,"read from private field"),i?i.call(e):t.get(e)),lL=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lM=(e,t,i,r)=>(lI(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),lR=(e,t,i)=>(lI(e,t,"access private method"),i);let lD={TYPE:"type",VALUE:"value",CHECKED:"checked",DISABLED:"disabled"};class lO extends nd.HTMLElement{constructor(){if(super(),lL(this,iG),lL(this,iY),lL(this,iQ),lL(this,i2),lL(this,iz,!1),lL(this,iK,void 0),lL(this,iJ,()=>{var e,t;this.submenuElement.items&&this.setAttribute("submenusize",`${this.submenuElement.items.length}`);let i=this.shadowRoot.querySelector('slot[name="description"]'),r=null==(e=this.submenuElement.checkedItems)?void 0:e[0],n=null!=(t=null==r?void 0:r.dataset.description)?t:null==r?void 0:r.text,a=nu.createElement("span");a.textContent=null!=n?n:"",i.replaceChildren(a)}),lL(this,i0,e=>{let{key:t}=e;if(!this.keysUsed.includes(t))return void this.removeEventListener("keyup",lC(this,i0));this.handleClick(e)}),lL(this,i1,e=>{let{metaKey:t,altKey:i,key:r}=e;if(t||i||!this.keysUsed.includes(r))return void this.removeEventListener("keyup",lC(this,i0));this.addEventListener("keyup",lC(this,i0),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=nv(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[lD.TYPE,lD.DISABLED,lD.CHECKED,lD.VALUE]}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),lN(this)&&!this.hasAttribute("aria-checked")&&this.setAttribute("aria-checked","fal
1618se"),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":lR(this,iG,iq).call(this,e);break;case"click":this.handleClick(e);break;case"keydown":lC(this,i1).call(this,e);break;case"keyup":lC(this,i0).call(this,e)}}attributeChangedCallback(e,t,i){e===lD.CHECKED&&lN(this)&&!lC(this,iz)?this.setAttribute("aria-checked",null!=i?"true":"false"):e===lD.TYPE&&i!==t?this.role="menuitem"+i:e===lD.DISABLED&&i!==t&&(null==i?this.enable():this.disable())}connectedCallback(){this.hasAttribute(lD.DISABLED)||this.enable(),this.role="menuitem"+this.type,lM(this,iK,function e(t,i){if(!t)return null;let{host:r}=t.getRootNode();return!i&&r?e(t,r):(null==i?void 0:i.items)?i:e(i,null==i?void 0:i.parentNode)}(this,this.parentNode)),lR(this,i2,i5).call(this),this.submenuElement&&lR(this,iY,iZ).call(this),this.shadowRoot.addEventListener("slotchange",this)}disconnectedCallback(){this.disable(),lR(this,i2,i5).call(this),lM(this,iK,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?null==(e=nx(this))?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 null!=(e=this.getAttribute(lD.TYPE))?e:""}set type(e){this.setAttribute(lD.TYPE,`${e}`)}get value(){var e;return null!=(e=this.getAttribute(lD.VALUE))?e:this.text}set value(e){this.setAttribute(lD.VALUE,e)}get text(){var e;return(null!=(e=this.textContent)?e:"").trim()}get checked(){if(lN(this))return"true"===this.getAttribute("aria-checked")}set checked(e){lN(this)&&(lM(this,iz,!0),this.setAttribute("aria-checked",e?"true":"false"),e?this.part.add("checked"):this.part.remove("checked"))}handleClick(e){!lN(this)&&this.invokeTargetElement&&nw(this,e.target)&&this.invokeTargetElement.dispatchEvent(new lf({relatedTarget:this}))}get keysUsed(){return["Enter"," "]}}function lN(e){return"radio"===e.type||"checkbox"===e.type}iz=new WeakMap,iK=new WeakMap,iG=new WeakSet,iq=function(e){let t=e.target;if(!(null==t?void 0:t.name))for(let e of t.assignedNodes({flatten:!0}))e instanceof Text&&""===e.textContent.trim()&&e.remove();"submenu"===t.name&&(this.submenuElement?lR(this,iY,iZ).call(this):lR(this,iQ,iX).call(this))},iY=new WeakSet,iZ=async function(){this.setAttribute("aria-haspopup","menu"),this.setAttribute("aria-expanded",`${!this.submenuElement.hidden}`),this.submenuElement.addEventListener("change",lC(this,iJ)),this.submenuElement.addEventListener("addmenuitem",lC(this,iJ)),this.submenuElement.addEventListener("removemenuitem",lC(this,iJ)),lC(this,iJ).call(this)},iQ=new WeakSet,iX=function(){this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.submenuElement.removeEventListener("change",lC(this,iJ)),this.submenuElement.removeEventListener("addmenuitem",lC(this,iJ)),this.submenuElement.removeEventListener("removemenuitem",lC(this,iJ)),lC(this,iJ).call(this)},iJ=new WeakMap,i0=new WeakMap,i1=new WeakMap,i2=new WeakSet,i5=function(){var e;let t=null==(e=lC(this,iK))?void 0:e.radioGroupItems;if(!t)return;let i=t.filter(e=>"true"===e.getAttribute("aria-checked")).pop();for(let e of(i||(i=t[0]),t))e.setAttribute("aria-checked","false");null==i||i.setAttribute("aria-checked","true")},lO.shadowRootOptions={mode:"open"},lO.getTemplateHTML=function(e){return`
1619    <style>
1620      :host {
1621        transition: var(--media-menu-item-transition,
1622          background .15s linear,
1623          opacity .2s ease-in-out
1624        );
1625        outline: var(--media-menu-item-outline, 0);
1626        outline-offset: var(--media-menu-item-outline-offset, -1px);
1627        cursor: var(--media-cursor, pointer);
1628        display: flex;
1629        align-items: center;
1630        align-self: stretch;
1631        justify-self: stretch;
1632        white-space: nowrap;
1633        white-space-collapse: collapse;
1634        text-wrap: nowrap;
1635        padding: .4em .8em .4em 1em;
1636      }
1637
1638      :host(:focus-visible) {
1639        box-shadow: var(--media-menu-item-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
1640        outline: var(--media-menu-item-hover-outline, 0);
1641        outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
1642      }
1643
1644      :host(:hover) {
1645        cursor: var(--media-cursor, pointer);
1646        background: var(--media-menu-item-hover-background, rgb(92 92 102 / .5));
1647        outline: var(--media-menu-item-hover-outline);
1648        outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
1649      }
1650
1651      :host([aria-checked="true"]) {
1652        background: var(--media-menu-item-checked-background);
1653      }
1654
1655      :host([hidden]) {
1656        display: none;
1657      }
1658
1659      :host([disabled]) {
1660        pointer-events: none;
1661        color: rgba(255, 255, 255, .3);
1662      }
1663
1664      slot:not([name]) {
1665        width: 100%;
1666      }
1667
1668      slot:not([name="submenu"]) {
1669        display: inline-flex;
1670        align-items: center;
1671        transition: inherit;
1672        opacity: var(--media-menu-item-opacity, 1);
1673      }
1674
1675      slot[name="description"] {
1676        justify-content: end;
1677      }
1678
1679      slot[name="description"] > span {
1680        display: inline-block;
1681        margin-inline: 1em .2em;
1682        max-width: var(--media-menu-item-description-max-width, 100px);
1683        text-overflow: ellipsis;
1684        overflow: hidden;
1685        font-size: .8em;
1686        font-weight: 400;
1687        text-align: right;
1688        position: relative;
1689        top: .04em;
1690      }
1691
1692      slot[name="checked-indicator"] {
1693        display: none;
1694      }
1695
1696      :host(:is([role="menuitemradio"],[role="menuitemcheckbox"])) slot[name="checked-indicator"] {
1697        display: var(--media-menu-item-checked-indicator-display, inline-block);
1698      }
1699
1700      
1701      svg, img, ::slotted(svg), ::slotted(img) {
1702        height: var(--media-menu-item-icon-height, var(--media-control-height, 24px));
1703        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1704        display: block;
1705      }
1706
1707      
1708      [part~="indicator"],
1709      ::slotted([part~="indicator"]) {
1710        fill: var(--media-menu-item-indicator-fill,
1711          var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))));
1712        height: var(--media-menu-item-indicator-height, 1.25em);
1713        margin-right: .5ch;
1714      }
1715
1716      [part~="checked-indicator"] {
1717        visibility: hidden;
1718      }
1719
1720      :host([aria-checked="true"]) [part~="checked-indicator"] {
1721        visibility: visible;
1722      }
1723    </style>
1724    <slot name="checked-indicator">
1725      <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
1726        <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"/>
1727      </svg>
1728    </slot>
1729    <slot name="prefix"></slot>
1730    <slot></slot>
1731    <slot name="description"></slot>
1732    <slot name="suffix">
1733      ${this.getSuffixSlotInnerHTML(e)}
1734    </slot>
1735    <slot name="submenu"></slot>
1736  `},lO.getSuffixSlotInnerHTML=function(e){return""},nd.customElements.get("media-chrome-menu-item")||nd.customElements.define("media-chrome-menu-item",lO);class lP extends l_{get anchorElement(){return"auto"!==this.anchor?super.anchorElement:ng(this).querySelector("media-settings-menu-button")}}lP.getTemplateHTML=function(e){return`
1737    ${l_.getTemplateHTML(e)}
1738    <style>
1739      :host {
1740        --_menu-bg: rgb(20 20 30 / .8);
1741        background: var(--media-settings-menu-background,
1742            var(--media-menu-background,
1743              var(--media-control-background,
1744                var(--media-secondary-color, var(--_menu-bg)))));
1745        min-width: var(--media-settings-menu-min-width, 170px);
1746        border-radius: 2px 2px 0 0;
1747        overflow: hidden;
1748      }
1749
1750      @-moz-document url-prefix() {
1751        :host{
1752          --_menu-bg: rgb(20 20 30);
1753        }
1754      }
1755
1756      :host([role="menu"]) {
1757        
1758        justify-content: end;
1759      }
1760
1761      slot:not([name]) {
1762        justify-content: var(--media-settings-menu-justify-content);
1763        flex-direction: var(--media-settings-menu-flex-direction, column);
1764        overflow: visible;
1765      }
1766
1767      #container.has-expanded {
1768        --media-settings-menu-item-opacity: 0;
1769      }
1770    </style>
1771  `},nd.customElements.get("media-settings-menu")||nd.customElements.define("media-settings-menu",lP);class lU extends lO{}lU.shadowRootOptions={mode:"open"},lU.getTemplateHTML=function(e){return`
1772    ${lO.getTemplateHTML.call(this,e)}
1773    <style>
1774      slot:not([name="submenu"]) {
1775        opacity: var(--media-settings-menu-item-opacity, var(--media-menu-item-opacity));
1776      }
1777
1778      :host([aria-expanded="true"]:hover) {
1779        background: transparent;
1780      }
1781    </style>
1782  `},lU.getSuffixSlotInnerHTML=function(e){return`
1783    <svg aria-hidden="true" viewBox="0 0 20 24">
1784      <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"/>
1785    </svg>
1786  `},nd.customElements.get("media-settings-menu-item")||nd.customElements.define("media-settings-menu-item",lU);class lV extends aG{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?null==(e=nx(this))?void 0:e.querySelector(`#${this.invokeTarget}`):null}handleClick(){var e;null==(e=this.invokeTargetElement)||e.dispatchEvent(new lf({relatedTarget:this}))}}nd.customElements.get("media-chrome-menu-button")||nd.customElements.define("media-chrome-menu-button",lV);class lF extends lV{static get observedAttributes(){return[...super.observedAttributes,"target"]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",r8("settings"))}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:ng(this).querySelector("media-settings-menu")}}lF.getSlotTemplateHTML=function(){return`
1787    <style>
1788      :host([aria-expanded="true"]) slot[name=tooltip] {
1789        display: none;
1790      }
1791    </style>
1792    <slot name="icon">
1793      <svg aria-hidden="true" viewBox="0 0 24 24">
1794        <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"/>
1795      </svg>
1796    </slot>
1797  `},lF.getTooltipContentHTML=function(){return r8("Settings")},nd.customElements.get("media-settings-menu-button")||nd.customElements.define("media-settings-menu-button",lF);var lW=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lH=(e,t,i)=>(lW(e,t,"read from private field"),i?i.call(e):t.get(e)),lB=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lj=(e,t,i,r)=>(lW(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),l$=(e,t,i)=>(lW(e,t,"access private method"),i);class lz extends l_{constructor(){super(...arguments),lB(this,i7),lB(this,i6),lB(this,i3,[]),lB(this,i4,void 0)}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_AUDIO_TRACK_LIST,rj.MEDIA_AUDIO_TRACK_ENABLED,rj.MEDIA_AUDIO_TRACK_UNAVAILABLE]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===rj.MEDIA_AUDIO_TRACK_ENABLED&&t!==i)this.value=i;else if(e===rj.MEDIA_AUDIO_TRACK_LIST&&t!==i){var r;lj(this,i3,null==(r=null!=i?i:"")?void 0:r.split(/\s+/).map(r1)),l$(this,i7,i8).call(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",l$(this,i6,i9))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",l$(this,i6,i9))}get anchorElement(){var e;return"auto"!==this.anchor?super.anchorElement:null==(e=ng(this))?void 0:e.querySelector("media-audio-track-menu-button")}get mediaAudioTrackList(){return lH(this,i3)}set mediaAudioTrackList(e){lj(this,i3,e),l$(this,i7,i8).call(this)}get mediaAudioTrackEnabled(){var e;return null!=(e=nR(this,rj.MEDIA_AUDIO_TRACK_ENABLED))?e:""}set mediaAudioTrackEnabled(e){nD(this,rj.MEDIA_AUDIO_TRACK_ENABLED,e)}}i3=new WeakMap,i4=new WeakMap,i7=new WeakSet,i8=function(){if(lH(this,i4)===JSON.stringify(this.mediaAudioTrackList))return;lj(this,i4,JSON.stringify(this.mediaAudioTrackList));let e=this.mediaAudioTrackList;for(let t of(this.defaultSlot.textContent="",e.sort((e,t)=>
1797e.id.localeCompare(t.id,void 0,{numeric:!0})),e)){let e=lA({type:"radio",text:this.formatMenuItemText(t.label,t),value:`${t.id}`,checked:t.enabled});e.prepend(lk(this,"checked-indicator")),this.defaultSlot.append(e)}},i6=new WeakSet,i9=function(){if(null==this.value)return;let e=new nd.CustomEvent(rF.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},nd.customElements.get("media-audio-track-menu")||nd.customElements.define("media-audio-track-menu",lz);let lK=`<svg aria-hidden="true" viewBox="0 0 24 24">
1798  <path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>
1799  <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"/>
1800</svg>`,lG=e=>{let t=r8("Audio");e.setAttribute("aria-label",t)};class lq extends lV{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_AUDIO_TRACK_ENABLED,rj.MEDIA_AUDIO_TRACK_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),lG(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_LANG&&lG(this)}get invokeTargetElement(){var e;return void 0!=this.invokeTarget?super.invokeTargetElement:null==(e=ng(this))?void 0:e.querySelector("media-audio-track-menu")}get mediaAudioTrackEnabled(){var e;return null!=(e=nR(this,rj.MEDIA_AUDIO_TRACK_ENABLED))?e:""}set mediaAudioTrackEnabled(e){nD(this,rj.MEDIA_AUDIO_TRACK_ENABLED,e)}}lq.getSlotTemplateHTML=function(){return`
1801    <style>
1802      :host([aria-expanded="true"]) slot[name=tooltip] {
1803        display: none;
1804      }
1805    </style>
1806    <slot name="icon">${lK}</slot>
1807  `},lq.getTooltipContentHTML=function(){return r8("Audio")},nd.customElements.get("media-audio-track-menu-button")||nd.customElements.define("media-audio-track-menu-button",lq);var lY=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lZ=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lQ=(e,t,i)=>(lY(e,t,"access private method"),i);let lX=`
1808  <svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator">
1809    <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"/>
1810  </svg>`;class lJ extends l_{constructor(){super(...arguments),lZ(this,rt),lZ(this,rr),lZ(this,re,void 0)}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_SUBTITLES_LIST,rj.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_SUBTITLES_LIST&&t!==i?lQ(this,rt,ri).call(this):e===rj.MEDIA_SUBTITLES_SHOWING&&t!==i&&(this.value=i||"",lQ(this,rt,ri).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",lQ(this,rr,rn))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",lQ(this,rr,rn))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:ng(this).querySelector("media-captions-menu-button")}get mediaSubtitlesList(){return l0(this,rj.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){l1(this,rj.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return l0(this,rj.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){l1(this,rj.MEDIA_SUBTITLES_SHOWING,e)}}re=new WeakMap,rt=new WeakSet,ri=function(){var e,t,i,r,n,a;let o=(lY(this,t=re,"read from private field"),(i?i.call(this):t.get(this))!==JSON.stringify(this.mediaSubtitlesList)),s=this.value!==this.getAttribute(rj.MEDIA_SUBTITLES_SHOWING);if(!o&&!s)return;r=re,n=JSON.stringify(this.mediaSubtitlesList),lY(this,r,"write to private field"),a?a.call(this,n):r.set(this,n),this.defaultSlot.textContent="";let l=!this.value,d=lA({type:"radio",text:this.formatMenuItemText(r8("Off")),value:"off",checked:l});for(let t of(d.prepend(lk(this,"checked-indicator")),this.defaultSlot.append(d),this.mediaSubtitlesList)){let i=lA({type:"radio",text:this.formatMenuItemText(t.label,t),value:n1(t),checked:this.value==n1(t)});i.prepend(lk(this,"checked-indicator")),"captions"===(null!=(e=t.kind)?e:"subs")&&i.append(lk(this,"captions-indicator")),this.defaultSlot.append(i)}},rr=new WeakSet,rn=function(){let e=this.mediaSubtitlesShowing,t=this.getAttribute(rj.MEDIA_SUBTITLES_SHOWING),i=this.value!==t;if((null==e?void 0:e.length)&&i&&this.dispatchEvent(new nd.CustomEvent(rF.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:e})),!this.value||!i)return;let r=new nd.CustomEvent(rF.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(r)},lJ.getTemplateHTML=function(e){return`
1811    ${l_.getTemplateHTML(e)}
1812    <slot name="captions-indicator" hidden>${lX}</slot>
1813  `};let l0=(e,t)=>{let i=e.getAttribute(t);return i?nJ(i):[]},l1=(e,t,i)=>{if(!(null==i?void 0:i.length))return void e.removeAttribute(t);let r=n2(i);e.getAttribute(t)!==r&&e.setAttribute(t,r)};nd.customElements.get("media-captions-menu")||nd.customElements.define("media-captions-menu",lJ);let l2=`<svg aria-hidden="true" viewBox="0 0 26 24">
1814  <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 
18140 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"/>
1815</svg>`,l5=`<svg aria-hidden="true" viewBox="0 0 26 24">
1816  <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"/>
1817</svg>`,l3=e=>{e.setAttribute("data-captions-enabled",n7(e).toString())},l4=e=>{e.setAttribute("aria-label",r8("closed captions"))};class l7 extends lV{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_SUBTITLES_LIST,rj.MEDIA_SUBTITLES_SHOWING,rj.MEDIA_LANG]}connectedCallback(){super.connectedCallback(),l4(this),l3(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_SUBTITLES_SHOWING?l3(this):e===rj.MEDIA_LANG&&l4(this)}get invokeTargetElement(){var e;return void 0!=this.invokeTarget?super.invokeTargetElement:null==(e=ng(this))?void 0:e.querySelector("media-captions-menu")}get mediaSubtitlesList(){return l8(this,rj.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){l6(this,rj.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return l8(this,rj.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){l6(this,rj.MEDIA_SUBTITLES_SHOWING,e)}}l7.getSlotTemplateHTML=function(){return`
1818    <style>
1819      :host([data-captions-enabled="true"]) slot[name=off] {
1820        display: none !important;
1821      }
1822
1823      
1824      :host(:not([data-captions-enabled="true"])) slot[name=on] {
1825        display: none !important;
1826      }
1827
1828      :host([aria-expanded="true"]) slot[name=tooltip] {
1829        display: none;
1830      }
1831    </style>
1832
1833    <slot name="icon">
1834      <slot name="on">${l2}</slot>
1835      <slot name="off">${l5}</slot>
1836    </slot>
1837  `},l7.getTooltipContentHTML=function(){return r8("Captions")};let l8=(e,t)=>{let i=e.getAttribute(t);return i?nJ(i):[]},l6=(e,t,i)=>{if(!(null==i?void 0:i.length))return void e.removeAttribute(t);let r=n2(i);e.getAttribute(t)!==r&&e.setAttribute(t,r)};nd.customElements.get("media-captions-menu-button")||nd.customElements.define("media-captions-menu-button",l7);var l9=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},de=(e,t,i)=>(l9(e,t,"read from private field"),i?i.call(e):t.get(e)),dt=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},di=(e,t,i)=>(l9(e,t,"access private method"),i);let dr={RATES:"rates"};class dn extends l_{constructor(){super(),dt(this,ro),dt(this,rl),dt(this,ra,new nQ(this,dr.RATES,{defaultValue:o5})),di(this,ro,rs).call(this)}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_PLAYBACK_RATE,dr.RATES]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===rj.MEDIA_PLAYBACK_RATE&&t!=i?(this.value=i,di(this,ro,rs).c
1837all(this)):e===dr.RATES&&t!=i&&(de(this,ra).value=i,di(this,ro,rs).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",di(this,rl,rd))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",di(this,rl,rd))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:ng(this).querySelector("media-playback-rate-menu-button")}get rates(){return de(this,ra)}set rates(e){e?Array.isArray(e)?de(this,ra).value=e.join(" "):"string"==typeof e&&(de(this,ra).value=e):de(this,ra).value="",di(this,ro,rs).call(this)}get mediaPlaybackRate(){return nI(this,rj.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){nC(this,rj.MEDIA_PLAYBACK_RATE,e)}}ra=new WeakMap,ro=new WeakSet,rs=function(){this.defaultSlot.textContent="";let e=o3(this.mediaPlaybackRate),t=new Set(Array.from(de(this,ra)).map(e=>o3(Number(e))));for(let i of(e>0&&!t.has(e)&&t.add(e),Array.from(t).sort((e,t)=>e-t))){let t=lA({type:"radio",text:this.formatMenuItemText(`${i}x`,i),value:i.toString(),checked:e===i});t.prepend(lk(this,"checked-indicator")),this.defaultSlot.append(t)}},rl=new WeakSet,rd=function(){if(!this.value)return;let e=new nd.CustomEvent(rF.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},nd.customElements.get("media-playback-rate-menu")||nd.customElements.define("media-playback-rate-menu",dn);class da extends lV{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_PLAYBACK_RATE]}constructor(){var e;super(),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${o3(null!=(e=this.mediaPlaybackRate)?e:1)}x`}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===rj.MEDIA_PLAYBACK_RATE){let e=i?+i:NaN,t=o3(Number.isNaN(e)?1:e);this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",r8("Playback rate {playbackRate}",{playbackRate:t}))}}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:ng(this).querySelector("media-playback-rate-menu")}get mediaPlaybackRate(){return nI(this,rj.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){nC(this,rj.MEDIA_PLAYBACK_RATE,e)}}da.getSlotTemplateHTML=function(e){let t=e.mediaplaybackrate?o3(+e.mediaplaybackrate):1;return`
1838    <style>
1839      :host {
1840        min-width: 5ch;
1841        padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1842      }
1843
1844      :host([aria-expanded="true"]) slot {
1845        display: block;
1846      }
1847
1848      :host([aria-expanded="true"]) slot[name=tooltip] {
1849        display: none;
1850      }
1851    </style>
1852    <slot name="icon">${t}x</slot>
1853  `},da.getTooltipContentHTML=function(){return r8("Playback rate")},nd.customElements.get("media-playback-rate-menu-button")||nd.customElements.define("media-playback-rate-menu-button",da);var ds=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},dl=(e,t,i)=>(ds(e,t,"read from private field"),i?i.call(e):t.get(e)),dd=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},du=(e,t,i,r)=>(ds(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),dc=(e,t,i)=>(ds(e,t,"access private method"),i);class dh extends l_{constructor(){super(...arguments),dd(this,rh),dd(this,rp),dd(this,ru,[]),dd(this,rc,{})}static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_RENDITION_LIST,rj.MEDIA_RENDITION_SELECTED,rj.MEDIA_RENDITION_UNAVAILABLE,rj.MEDIA_HEIGHT,rj.MEDIA_WIDTH]}static formatMenuItemText(e,t){return super.formatMenuItemText(e,t)}static formatRendition(e,{showBitrate:t=!1}={}){let i=`${Math.min(e.width,e.height)}p`;if(t&&e.bitrate){let t=e.bitrate/1e6,r=`${t.toFixed(+(t<1))} Mbps`;return`${i} (${r})`}return this.formatMenuItemText(i,e)}static compareRendition(e,t){var i,r;return t.height===e.height?(null!=(i=t.bitrate)?i:0)-(null!=(r=e.bitrate)?r:0):t.height-e.height}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),t!==i)switch(e){case rj.MEDIA_RENDITION_SELECTED:this.value=null!=i?i:"auto",dc(this,rh,rm).call(this);break;case rj.MEDIA_RENDITION_LIST:du(this,ru,null==i?void 0:i.split(/\s+/).map(rJ)),dc(this,rh,rm).call(this);break;case rj.MEDIA_HEIGHT:case rj.MEDIA_WIDTH:dc(this,rh,rm).call(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",dc(this,rp,rf))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",dc(this,rp,rf))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:ng(this).querySelector("media-rendition-menu-button")}get mediaRenditionList(){return dl(this,ru)}set mediaRenditionList(e){du(this,ru,e),dc(this,rh,rm).call(this)}get mediaRenditionSelected(){return nR(this,rj.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){nD(this,rj.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return nI(this,rj.MEDIA_HEIGHT)}set mediaHeight(e){nC(this,rj.MEDIA_HEIGHT,e)}get mediaWidth(){return nI(this,rj.MEDIA_WIDTH)}set mediaWidth(e){nC(this,rj.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)}}ru=new WeakMap,rc=new WeakMap,rh=new WeakSet,rm=function(){let e,t=!this.mediaRenditionSelected;if(dl(this,rc).mediaRenditionList===JSON.stringify(this.mediaRenditionList)&&dl(this,rc).mediaHeight===this.mediaHeight&&dl(this,rc).mediaWidth===this.mediaWidth&&dl(this,rc).isAuto===t)return;dl(this,rc).mediaRenditionList=JSON.stringify(this.mediaRenditionList),dl(this,rc).mediaHeight=this.mediaHeight,dl(this,rc).mediaWidth=this.mediaWidth,dl(this,rc).isAuto=t;let i=this.mediaRenditionList.sort(this.compareRendition.bind(this)),r=i.find(e=>e.id===this.mediaRenditionSelected);for(let e of i)e.selected=e===r;for(let e of(this.defaultSlot.textContent="",i)){let i=lA({type:"radio",text:this.formatRendition(e,{showBitrate:this.showRenditionBitrate(e)}
1853),value:`${e.id}`,checked:e.selected&&!t});i.prepend(lk(this,"checked-indicator")),this.defaultSlot.append(i)}let n=r&&this.showRenditionBitrate(r);t&&(r?e=this.formatMenuItemText(`${r8("Auto")} \u2022 ${this.formatRendition(r,{showBitrate:n})}`,r):this.mediaHeight>0&&this.mediaWidth>0&&(e=this.formatMenuItemText(`${r8("Auto")} (${Math.min(this.mediaWidth,this.mediaHeight)}p)`))),e||(e=this.formatMenuItemText(r8("Auto")));let a=lA({type:"radio",text:e,value:"auto",checked:t});a.dataset.description=e,a.prepend(lk(this,"checked-indicator")),this.defaultSlot.append(a)},rp=new WeakSet,rf=function(){if(null==this.value)return;let e=new nd.CustomEvent(rF.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},nd.customElements.get("media-rendition-menu")||nd.customElements.define("media-rendition-menu",dh);let dm=`<svg aria-hidden="true" viewBox="0 0 24 24">
1854  <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" />
1855</svg>`;class dp extends lV{static get observedAttributes(){return[...super.observedAttributes,rj.MEDIA_RENDITION_SELECTED,rj.MEDIA_RENDITION_UNAVAILABLE,rj.MEDIA_HEIGHT]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",r8("quality"))}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:ng(this).querySelector("media-rendition-menu")}get mediaRenditionSelected(){return nR(this,rj.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){nD(this,rj.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return nI(this,rj.MEDIA_HEIGHT)}set mediaHeight(e){nC(this,rj.MEDIA_HEIGHT,e)}}dp.getSlotTemplateHTML=function(){return`
1856    <style>
1857      :host([aria-expanded="true"]) slot[name=tooltip] {
1858        display: none;
1859      }
1860    </style>
1861    <slot name="icon">${dm}</slot>
1862  `},dp.getTooltipContentHTML=function(){return r8("Quality")},nd.customElements.get("media-rendition-menu-button")||nd.customElements.define("media-rendition-menu-button",dp);var df=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},dv=(e,t,i)=>(df(e,t,"read from private field"),i?i.call(e):t.get(e)),dg=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},db=(e,t,i,r)=>(df(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),dE=(e,t,i)=>(df(e,t,"access private method"),i);class dy extends l_{constructor(){super(),dg(this,rg),dg(this,rE),dg(this,rw),dg(this,rk),dg(this,rT),dg(this,rv,!1),dg(this,r_,e=>{let t=e.target,i=(null==t?void 0:t.nodeName)==="VIDEO",r=dE(this,rk,rx).call(this,t);(i||r)&&(dv(this,rv)?dE(this,rE,ry).call(this):dE(this,rT,rS).call(this,e))}),dg(this,rI,e=>{let t=e.target,i=this.contains(t),r=2===e.button,n=(null==t?void 0:t.nodeName)==="VIDEO",a=dE(this,rk,rx).call(this,t);!i&&(r&&(n||a)||dE(this,rE,ry).call(this))}),dg(this,rC,e=>{"Escape"===e.key&&dE(this,rE,ry).call(this)}),dg(this,rL,e=>{var t,i;let r=e.target;if(null==(t=r.matches)?void 0:t.call(r,'button[invoke="copy"]')){let e=null==(i=r.closest("media-context-menu-item"))?void 0:i.querySelector('input[slot="copy"]');e&&navigator.clipboard.writeText(e.value)}dE(this,rE,ry).call(this)}),this.setAttribute("noautohide",""),dE(this,rg,rb).call(this)}connectedCallback(){super.connectedCallback(),ng(this).addEventListener("contextmenu",dv(this,r_)),this.addEventListener("click",dv(this,rL))}disconnectedCallback(){super.disconnectedCallback(),ng(this).removeEventListener("contextmenu",dv(this,r_)),this.removeEventListener("click",dv(this,rL)),document.removeEventListener("mousedown",dv(this,rI)),document.removeEventListener("keydown",dv(this,rC))}}rv=new WeakMap,rg=new WeakSet,rb=function(){this.hidden=!dv(this,rv)},rE=new WeakSet,ry=function(){db(this,rv,!1),dE(this,rg,rb).call(this)},rw=new WeakSet,rA=function(){document.querySelectorAll("media-context-menu").forEach(e=>{e!==this&&dE(e,rE,ry).call(e)})},rk=new WeakSet,rx=function(e){return!!e&&(!!e.hasAttribute("slot")&&"media"===e.getAttribute("slot")||!!(e.nodeName.includes("-")&&e.tagName.includes("-"))&&(e.hasAttribute("src")||e.hasAttribute("poster")||e.hasAttribute("preload")||e.hasAttribute("playsinline")))},r_=new WeakMap,rT=new WeakSet,rS=function(e){e.preventDefault(),dE(this,r
1862w,rA).call(this),db(this,rv,!0),this.style.position="fixed",this.style.left=`${e.clientX}px`,this.style.top=`${e.clientY}px`,dE(this,rg,rb).call(this),document.addEventListener("mousedown",dv(this,rI),{once:!0}),document.addEventListener("keydown",dv(this,rC),{once:!0})},rI=new WeakMap,rC=new WeakMap,rL=new WeakMap,dy.getTemplateHTML=function(e){return`
1863      ${l_.getTemplateHTML(e)}
1864      <style>
1865        :host {
1866          --_menu-bg: rgb(20 20 30 / .8);
1867          background: var(--media-settings-menu-background,
1868            var(--media-menu-background,
1869              var(--media-control-background,
1870                var(--media-secondary-color, var(--_menu-bg)))));
1871          min-width: var(--media-settings-menu-min-width, 170px);
1872          border-radius: 2px;
1873          overflow: hidden;
1874        }
1875      </style>
1876    `},nd.customElements.get("media-context-menu")||nd.customElements.define("media-context-menu",dy);class dw extends lO{}dw.shadowRootOptions={mode:"open"},dw.getTemplateHTML=function(e){return`
1877    ${lO.getTemplateHTML.call(this,e)}
1878    <style>
1879        ::slotted(*) {
1880            color: var(--media-text-color, white);
1881            text-decoration: none;
1882            border: none;
1883            background: none;
1884            cursor: pointer;
1885            padding: 0;
1886            min-height: var(--media-control-height, 24px);
1887        }
1888    </style>
1889  `},nd.customElements.get("media-context-menu-item")||nd.customElements.define("media-context-menu-item",dw);let dA=nd.document?.createElement?.("template");dA&&(dA.innerHTML=String.raw`
1890    <!-- Sutro -->
1891    <style>
1892      :host {
1893        --_primary-color: var(--media-primary-color, #fff);
1894        --_secondary-color: var(--media-secondary-color, transparent);
1895        --_accent-color: var(--media-accent-color, #fff);
1896      }
1897
1898      media-controller {
1899        --base: 18px;
1900
1901        font-size: calc(0.75 * var(--base));
1902        font-family: Roboto, Arial, sans-serif;
1903        --media-font-family: Roboto, helvetica neue, segoe ui, arial, sans-serif;
1904        -webkit-font-smoothing: antialiased;
1905
1906        --media-primary-color: #fff;
1907        --media-secondary-color: transparent;
1908        --media-menu-background: rgba(28, 28, 28, 0.6);
1909        --media-text-color: var(--_primary-color);
1910        --media-control-hover-background: var(--media-secondary-color);
1911
1912        --media-range-track-height: calc(0.125 * var(--base));
1913        --media-range-thumb-height: var(--base);
1914        --media-range-thumb-width: var(--base);
1915        --media-range-thumb-border-radius: var(--base);
1916
1917        --media-control-height: calc(2 * var(--base));
1918      }
1919
1920      media-controller[breakpointmd] {
1921        --base: 20px;
1922      }
1923
1924      /* The biggest size controller is tied to going fullscreen
1925          instead of a player width. */
1926      media-controller[mediaisfullscreen] {
1927        --base: 24px;
1928      }
1929
1930      .media-button {
1931        --media-control-hover-background: var(--_secondary-color);
1932        --media-tooltip-background: rgb(28 28 28 / .24);
1933        --media-text-content-height: 1.2;
1934        --media-tooltip-padding: .7em 1em;
1935        --media-tooltip-distance: 8px;
1936        --media-tooltip-container-margin: 18px;
1937        position: relative;
1938        padding: 0;
1939        opacity: 0.9;
1940        transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
1941      }
1942
1943      .media-button svg {
1944        fill: none;
1945        stroke: var(--_primary-color);
1946        stroke-width: 1;
1947        stroke-linecap: 'round';
1948        stroke-linejoin: 'round';
1949      }
1950
1951      svg .svg-shadow {
1952        stroke: #000;
1953        stroke-opacity: 0.15;
1954        stroke-width: 2px;
1955        fill: none;
1956      }
1957    </style>
1958
1959    <media-controller
1960      breakpoints="md:480"
1961      defaultsubtitles="{{defaultsubtitles}}"
1962      defaultduration="{{defaultduration}}"
1963      gesturesdisabled="{{disabled}}"
1964      hotkeys="{{hotkeys}}"
1965      nohotkeys="{{nohotkeys}}"
1966      defaultstreamtype="on-demand"
1967    >
1968      <slot name="media" slot="media"></slot>
1969      <slot name="poster" slot="poster"></slot>
1970      <slot name="centered-chrome" slot="centered-chrome"></slot>
1971      <media-error-dialog slot="dialog"></media-error-dialog>
1972
1973      <!-- Controls Gradient -->
1974      <style>
1975        .media-gradient-bottom {
1976          position: absolute;
1977          bottom: 0;
1978          width: 100%;
1979          height: calc(8 * var(--base));
1980          pointer-events: none;
1981        }
1982
1983        .media-gradient-bottom::before {
1984          content: '';
1985          --gradient-steps: hsl(0 0% 0% / 0) 0%, hsl(0 0% 0% / 0.013) 8.1%, hsl(0 0% 0% / 0.049) 15.5%,
1986            hsl(0 0% 0% / 0.104) 22.5%, hsl(0 0% 0% / 0.175) 29%, hsl(0 0% 0% / 0.259) 35.3%, hsl(0 0% 0% / 0.352) 41.2%,
1987            hsl(0 0% 0% / 0.45) 47.1%, hsl(0 0% 0% / 0.55) 52.9%, hsl(0 0% 0% / 0.648) 58.8%, hsl(0 0% 0% / 0.741) 64.7%,
1988            hsl(0 0% 0% / 0.825) 71%, hsl(0 0% 0% / 0.896) 77.5%, hsl(0 0% 0% / 0.951) 84.5%, hsl(0 0% 0% / 0.987) 91.9%,
1989            hsl(0 0% 0%) 100%;
1990
1991          position: absolute;
1992          inset: 0;
1993          opacity: 0.7;
1994          background: linear-gradient(to bottom, var(--gradient-steps));
1995        }
1996      </style>
1997      <div class="media-gradient-bottom"></div>
1998
1999      <!-- Settings Menu -->
2000      <style>
2001        media-settings-menu {
2002          --media-menu-icon-height: 20px;
2003          --media-menu-item-icon-height: 20px;
2004          --media-settings-menu-min-width: calc(10 * var(--base));
2005          --media-menu-transform-in: translateY(0) scale(1);
2006          --media-menu-transform-out: translateY(20px) rotate(3deg) scale(1);
2007          padding-block: calc(0.15 * var(--base));
2008          margin-right: 10px;
2009          margin-bottom: 17px;
2010          border-radius: 8px;
2011          z-index: 2;
2012          user-select: none;
2013        }
2014
2015        media-settings-menu-item,
2016        [role='menu']::part(menu-item) {
2017          --media-icon-color: var(--_primary-color);
2018          margin-inline: calc(0.45 * var(--base));
2019          height: calc(1.6 * var(--base));
2020          font-size: calc(0.7 * var(--base));
2021          font-weight: 400;
2022          padding: 0;
2023          padding-left: calc(0.4 * var(--base));
2024          padding-right: calc(0.1 * var(--base));
2025          border-radius: 6px;
2026          text-shadow: none;
2027        }
2028
2029        [slot='submenu']::part(back button) {
2030          font-size: calc(0.7 * var(--base));
2031        }
2032
2033        media-settings-menu-item:hover {
2034          --media-icon-color: #000;
2035          color: #000;
2036          background-color: #fff;
2037        }
2038
2039        media-settings-menu-item:hover [slot='submenu']::part(menu-item),
2040        [slot='submenu']::part(back indicator) {
2041          --media-icon-color: var(--_primary-color);
2042        }
2043
2044        media-settings-menu-item:hover [slot='submenu']::part(menu-item):hover {
2045          --media-icon-color: #000;
2046          color: #000;
2047          background-color: #fff;
2048        }
2049
2050        media-settings-menu-item[submenusize='0'] {
2051          display: none;
2052        }
2053
2054        /* Also hide if only 'Auto' is added. */
2055        .quality-settings[submenusize='1'] {
2056          display: none;
2057        }
2058      </style>
2059      <media-settings-menu hidden anchor="auto">
2060        <media-settings-menu-item>
2061          Playback Speed
2062          <media-playback-rate-menu slot="submenu" hidden>
2063            <div slot="title">Playback Speed</div>
2064          </media-playback-rate-menu>
2065        </media-settings-menu-item>
2066        <media-settings-menu-item class="quality-settings">
2067          Quality
2068          <media-rendition-menu slot="submenu" hidden>
2069            <div slot="title">Quality</div>
2070          </media-rendition-menu>
2071        </media-settings-menu-item>
2072        <media-settings-menu-item>
2073          Subtitles/CC
2074          <media-captions-menu slot="submenu" hidden>
2075            <div slot="title">Subtitles/CC</div>
2076          </media-captions-menu>
2077        </media-settings-menu-item>
2078      </media-settings-menu>
2079
2080      <!-- Control Bar -->
2081      <style>
2082        media-control-bar {
2083          position: absolute;
2084          height: calc(2 * var(--base));
2085          line-height: calc(2 * var(--base));
2086          bottom: var(--base);
2087          left: var(--base);
2088          right: var(--base);
2089        }
2090      </style>
2091      <media-control-bar>
2092        <!-- Play/Pause -->
2093        <style>
2094          @keyframes bounce-scale-play {
2095            0% {
2096              transform: scale(0.75, 0.75);
2097            }
2098            50% {
2099              transform: scale(115%, 115%);
2100            }
2101            100% {
2102              transform: scale(1, 1);
2103            }
2104          }
2105
2106          .media-button {
2107            border-radius: 25%;
2108            backdrop-filter: blur(10px) invert(15%) brightness(80%) opacity(0);
2109            -webkit-backdrop-filter: blur(10px) invert(15%) brightness(80%) opacity(0);
2110            transition: backdrop-filter 0.3s, -webkit-backdrop-filter 0.3s, box-shadow 0.3s;
2111          }
2112
2113          .media-button:hover {
2114            /* background-color: rgba(0, 0, 0, 0.05); */
2115            box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 5px;
2116            /* hue-rotate(120deg) */
2117            backdrop-filter: blur(10px) invert(15%) brightness(80%) opacity(1);
2118            -webkit-backdrop-filter: blur(10px) invert(15%) brightness(80%) opacity(1);
2119            transition: backdrop-filter 0.3s, -webkit-backdrop-filter 0.3s;
2120          }
2121
2122          media-play-button #icon-play {
2123            opacity: 0;
2124            transform-box: view-box;
2125            transform-origin: center center;
2126            transform: scale(0.5, 0.5);
2127            transition: all 0.5s;
2128          }
2129
2130          media-play-button[mediapaused] #icon-play {
2131            opacity: 1;
2132            transform: scale(1, 1);
2133            animation: 0.35s bounce-scale-play ease-in-out;
2134          }
2135
2136          @keyframes bounce-pause-left {
2137            0% {
2138              font-size: 10px;
2139            }
2140            50% {
2141              font-size: 3px;
2142            }
2143            100% {
2144              font-size: 4px;
2145            }
2146          }
2147
2148          @keyframes bounce-pause-right {
2149            0% {
2150              font-size: 10px;
2151              transform: translateX(-8px);
2152            }
2153            50% {
2154              font-size: 3px;
2155              transform: translateX(1px);
2156            }
2157            100% {
2158              font-size: 4px;
2159              transform: translateX(0);
2160            }
2161          }
2162
2163          media-play-button #pause-left,
2164          media-play-button #pause-right {
2165            /* Using font-size to animate height because using scale was resulting in unexpected positioning */
2166            font-size: 4px;
2167            opacity: 1;
2168            transform: translateX(0);
2169            transform-box: view-box;
2170          }
2171
2172          media-play-button:not([mediapaused]) #pause-left {
2173            animation: 0.3s bounce-pause-left ease-out;
2174          }
2175
2176          media-play-button:not([mediapaused]) #pause-right {
2177            animation: 0.3s bounce-pause-right ease-out;
2178          }
2179
2180          media-play-button[mediapaused] #pause-left,
2181          media-play-button[mediapaused] #pause-right {
2182            opacity: 0;
2183            font-size: 10px;
2184          }
2185
2186          media-play-button[mediapaused] #pause-right {
2187            transform-origin: right center;
2188            transform: translateX(-8px);
2189          }
2190        </style>
2191        <media-play-button mediapaused class="media-button">
2192          <svg slot="icon" viewBox="0 0 32 32">
2193            <!-- <use class="svg-shadow" xlink:href="#icon-play"></use> -->
2194            <g>
2195              <path
2196                id="icon-play"
2197                d="M20.7131 14.6976C21.7208 15.2735 21.7208 16.7265 20.7131 17.3024L12.7442 21.856C11.7442 22.4274 10.5 21.7054 10.5 20.5536L10.5 11.4464C10.5 10.2946 11.7442 9.57257 12.7442 10.144L20.7131 14.6976Z"
2198              />
2199            </g>
2200            <!-- <use class="svg-shadow" xlink:href="#icon-pause"></use> -->
2201            <g id="icon-pause">
2202              <rect id="pause-left" x="10.5" width="1em" y="10.5" height="11" rx="0.5" />
2203              <rect id="pause-right" x="17.5" width="1em" y="10.5" height="11" rx="0.5" />
2204            </g>
2205          </svg>
2206        </media-play-button>
2207
2208        <!-- Volume/Mute -->
2209        <style>
2210          media-mute-button {
2211            position: relative;
2212          }
2213
2214          media-mute-button .muted-path {
2215            transition: clip-path 0.2s ease-out;
2216          }
2217
2218          media-mute-button #muted-path-2 {
2219            transition-delay: 0.2s;
2220          }
2221
2222          media-mute-button .muted-path {
2223            clip-path: inset(0);
2224          }
2225
2226          media-mute-button:not([mediavolumelevel='off']) #muted-path-1 {
2227            clip-path: inset(0 0 100% 0);
2228          }
2229
2230          media-mute-button:not([mediavolumelevel='off']) #muted-path-2 {
2231            clip-path: inset(0 0 100% 0);
2232          }
2233
2234          media-mute-button .muted-path {
2235            opacity: 0;
2236          }
2237
2238          media-mute-button[mediavolumelevel='off'] .muted-path {
2239            opacity: 1;
2240          }
2241
2242          media-mute-button .vol-path {
2243            opacity: 1;
2244            transition: opacity 0.4s;
2245          }
2246
2247          media-mute-button[mediavolumelevel='off'] .vol-path {
2248            opacity: 0;
2249          }
2250
2251          media-mute-button[mediavolumelevel='low'] #vol-high-path,
2252          media-mute-button[mediavolumelevel='medium'] #vol-high-path {
2253            opacity: 0;
2254          }
2255
2256          media-volume-range {
2257            --media-range-track-background: rgba(255, 255, 255, 0.2);
2258            --media-range-thumb-opacity: 0;
2259          }
2260
2261          @keyframes volume-in {
2262            0% {
2263              visibility: hidden;
2264              opacity: 0;
2265              transform: translateY(50%) rotate(1deg);
2266            }
2267            50% {
2268              visibility: visible;
2269              opacity: 1;
2270              transform: rotate(-2deg);
2271            }
2272            100% {
2273              visibility: visible;
2274              opacity: 1;
2275              transform: translateY(0) rotate(0deg);
2276            }
2277          }
2278
2279          @keyframes volume-out {
2280            0% {
2281              visibility: visible;
2282              opacity: 1;
2283              transform: translateY(0) rotate(0deg);
2284            }
2285            50% {
2286              opacity: 1;
2287              transform: rotate(0deg);
2288            }
2289            100% {
2290              visibility: hidden;
2291              opacity: 0;
2292              transform: translateY(50%) rotate(1deg);
2293            }
2294          }
2295
2296          .media-volume-range-wrapper {
2297            opacity: 0;
2298            visibility: hidden;
2299
2300            position: absolute;
2301            top: -100%;
2302            left: calc(2 * var(--base));
2303
2304            width: calc(10 * var(--base));
2305            height: calc(2.5 * var(--base));
2306            transform-origin: center left;
2307          }
2308
2309          media-volume-range {
2310            /*
2311              Hide range and animation until mediavolume attribute is set.
2312              'visibility' didn't work, hovering over media-volume-range-wrapper
2313              caused it to show. Should require mute-button:hover.
2314            */
2315            opacity: 0;
2316            transition: opacity 0s 1s;
2317
2318            width: calc(10 * var(--base));
2319            height: var(--base);
2320            padding: 0;
2321            border-radius: calc(0.25 * var(--base));
2322            overflow: hidden;
2323            background: rgba(0, 0, 0, 0.2);
2324
2325            --media-range-bar-color: var(--media-accent-color);
2326
2327            --media-range-padding-left: 0;
2328            --media-range-padding-right: 0;
2329
2330            --media-range-track-width: calc(10 * var(--base));
2331            --media-range-track-height: var(--base);
2332            --media-range-track-border-radius: calc(0.25 * var(--base));
2333            --media-range-track-backdrop-filter: blur(10px) brightness(80%);
2334
2335            /* This makes zero volume still show some of the bar.
2336               I can't make the bar have curved corners otherwise though. */
2337            --media-range-thumb-width: var(--base);
2338            --media-range-thumb-border-radius: calc(0.25 * var(--base));
2339
2340            /* The Sutro design has a gradient like this, but not sure I like it */
2341            /* --media-range-thumb-box-shadow: 10px 0px 20px rgba(255, 255, 255, 0.5); */
2342          }
2343
2344          media-volume-range[mediavolume] {
2345            opacity: 1;
2346          }
2347
2348          [keyboardcontrol] media-volume-range:focus {
2349            /* TODO: This appears to be creating a think outline */
2350            outline: 1px solid rgba(27, 127, 204, 0.9);
2351          }
2352
2353          media-mute-button:hover + .media-volume-range-wrapper,
2354          media-mute-button:focus + .media-volume-range-wrapper,
2355          media-mute-button:focus-within + .media-volume-range-wrapper,
2356          .media-volume-range-wrapper:hover,
2357          .media-volume-range-wrapper:focus,
2358          .media-volume-range-wrapper:focus-within {
2359            animation: 0.3s volume-in forwards ease-out;
2360          }
2361
2362          .media-volume-range-wrapper:not(:hover, :focus-within) {
2363            animation: 0.3s volume-out ease-out;
2364          }
2365
2366          /* When keyboard navigating the volume range and wrapper need to always be visible
2367            otherwise focus state can't land on it. This is ok when keyboard navigating because
2368            the hovering issues aren't a concern, unless you happen to be keyboard AND mouse navigating.
2369          */
2370          [keyboardcontrol] .media-volume-range-wrapper,
2371          [keyboardcontrol] .media-volume-range-wrapper:focus-within,
2372          [keyboardcontrol] .media-volume-range-wrapper:focus-within media-volume-range {
2373            visibility: visible;
2374          }
2375        </style>
2376        <media-mute-button class="media-button" notooltip>
2377          <use class="svg-shadow" xlink:href="#vol-paths"></use>
2378          <svg slot="icon" viewBox="0 0 32 32">
2379            <g id="vol-paths">
2380              <path
2381                id="speaker-path"
2382                d="M16.5 20.486v-8.972c0-1.537-2.037-2.08-2.802-.745l-1.026 1.79a2.5 2.5 0 0 1-.8.85l-1.194.78A1.5 1.5 0 0 0 10 15.446v1.11c0 .506.255.978.678 1.255l1.194.782a2.5 2.5 0 0 1 .8.849l1.026 1.79c.765 1.334 2.802.792 2.802-.745Z"
2383              />
2384              <path
2385                id="vol-low-path"
2386                class="vol-path"
2387                d="M18.5 18C19.6046 18 20.5 17.1046 20.5 16C20.5 14.8954 19.6046 14 18.5 14"
2388              />
2389              <path
2390                id="vol-high-path"
2391                class="vol-path"
2392                d="M18 21C20.7614 21 23 18.7614 23 16C23 13.2386 20.7614 11 18 11"
2393              />
2394              <path id="muted-path-1" class="muted-path" d="M23 18L19 14" />
2395              <path id="muted-path-2" class="muted-path" d="M23 14L19 18" />
2396            </g>
2397          </svg>
2398        </media-mute-button>
2399        <div class="media-volume-range-wrapper">
2400          <media-volume-range></media-volume-range>
2401        </div>
2402
2403        <!-- Time Display -->
2404        <style>
2405          media-time-display {
2406            position: relative;
2407            padding: calc(0.5 * var(--base));
2408            font-size: calc(0.7 * var(--base));
2409            border-radius: calc(0.5 * var(--base));
2410          }
2411
2412          media-controller[breakpointmd] media-time-display:not([showduration]) {
2413            display: none;
2414          }
2415
2416          media-controller:not([breakpointmd]) media-time-display[showduration] {
2417            display: none;
2418          }
2419        </style>
2420        <media-time-display></media-time-display>
2421        <media-time-display showduration></media-time-display>
2422
2423        <!-- Time Range / Progress Bar -->
2424        <style>
2425          media-time-range {
2426            height: calc(2 * var(--base));
2427            border-radius: calc(0.25 * var(--base));
2428
2429            --media-range-track-backdrop-filter: invert(10%) blur(5px) brightness(110%);
2430            --media-range-track-background: rgba(255, 255, 255, 0.2);
2431            --media-range-track-pointer-background: rgba(255, 255, 255, 0.5);
2432            --media-range-track-border-radius: calc(0.25 * var(--base));
2433
2434            --media-time-range-buffered-color: rgba(255, 255, 255, 0.4);
2435            --media-range-bar-color: var(--media-accent-color);
2436
2437            --media-range-thumb-background: var(--media-accent-color);
2438            --media-range-thumb-transition: opacity 0.1s linear;
2439            --media-range-thumb-opacity: 0;
2440
2441            --media-preview-thumbnail-border: calc(0.125 * var(--base)) solid #fff;
2442            --media-preview-thumbnail-border-radius: calc(0.5 * var(--base));
2443            --media-preview-thumbnail-min-width: calc(8 * var(--base));
2444            --media-preview-thumbnail-max-width: calc(10 * var(--base));
2445            --media-preview-thumbnail-min-height: calc(5 * var(--base));
2446            --media-preview-thumbnail-max-height: calc(7 * var(--base));
2447            --media-preview-box-margin: 0 0 -10px;
2448          }
2449          media-time-range:hover {
2450            --media-range-thumb-opacity: 1;
2451            --media-range-track-height: calc(0.25 * var(--base));
2452          }
2453
2454          media-preview-thumbnail {
2455            margin-bottom: 5px;
2456          }
2457
2458          media-preview-chapter-display {
2459            font-size: calc(0.6 * var(--base));
2460            padding-block: 0;
2461          }
2462
2463          media-preview-time-display {
2464            font-size: calc(0.65 * var(--base));
2465            padding-top: 0;
2466          }
2467        </style>
2468        <media-time-range>
2469          <media-preview-thumbnail slot="preview"></media-preview-thumbnail>
2470          <media-preview-chapter-display slot="preview"></media-preview-chapter-display>
2471          <media-preview-time-display slot="preview"></media-preview-time-display>
2472        </media-time-range>
2473
2474        <!-- Subtitles/CC Button -->
2475        <style>
2476          media-captions-button {
2477            position: relative;
2478          }
2479
2480          media-controller:not([breakpointmd]) media-captions-button {
2481            display: none;
2482          }
2483
2484          media-captions-button svg :is(path, rect) {
2485            stroke: none;
2486            fill: var(--_primary-color);
2487          }
2488
2489          /* Disble the captions button when no subtitles are available */
2490          media-captions-button:not([mediasubtitleslist]) svg {
2491            opacity: 0.3;
2492          }
2493
2494          media-captions-button #cc-underline {
2495            opacity: 1;
2496          }
2497
2498          media-captions-button[mediasubtitleslist][aria-checked='true'] #cc-underline {
2499            opacity: 1;
2500          }
2501
2502          media-captions-button #cc-underline {
2503            transition: clip-path 0.15s ease-out;
2504          }
2505
2506          media-captions-button #cc-underline {
2507            clip-path: inset(0 100% 0 0);
2508          }
2509
2510          media-captions-button[aria-checked='true'] #cc-underline {
2511            clip-path: inset(0 0 0 0);
2512          }
2513        </style>
2514        <media-captions-button class="media-button">
2515          <svg slot="icon" viewBox="0 0 32 32">
2516            <use class="svg-shadow" xlink:href="#cc-icon"></use>
2517            <g id="cc-icon">
2518              <path
2519                class="cc-c"
2520                d="M15.6634 14.3574H14.5636C14.4985 14.0523 14.3847 13.7842 14.2221 13.5532C14.0624 13.3222 13.8673 13.1283 13.6367 12.9715C13.409 12.8118 13.1562 12.692 12.8783 12.6122C12.6004 12.5323 12.3107 12.4924 12.0091 12.4924C11.4592 12.4924 10.961 12.6264 10.5146 12.8945C10.0711 13.1625 9.71776 13.5575 9.45463 14.0794C9.19445 14.6012 9.06436 15.2414 9.06436 16C9.06436 16.7586 9.19445 17.3988 9.45463 17.9206C9.71776 18.4425 10.0711 18.8375 10.5146 19.1055C10.961 19.3736 11.4592 19.5076 12.0091 19.5076C12.3107 19.5076 12.6004 19.4677 12.8783 19.3878C13.1562 19.308 13.409 19.1896 13.6367 19.0328C13.8673 18.8731 14.0624 18.6778 14.2221 18.4468C14.3847 18.2129 14.4985 17.9449 14.5636 17.6426H15.6634C15.5806 18.0903 15.4298 18.491 15.2111 18.8446C14.9923 19.1982 14.7203 19.499 14.3951 19.7471C14.0698 19.9924 13.7047 20.1792 13.2996 20.3075C12.8976 20.4358 12.4674 20.5 12.0091 20.5C11.2345 20.5 10.5456 20.3175 9.94246 19.9525C9.33932 19.5875 8.8648 19.0684 8.51888 18.3954C8.17296 17.7224 8 16.924 8 16C8 15.076 8.17296 14.2776 8.51888 13.6046C8.8648 12.9316 9.33932 12.4125 9.94246 12.0475C10.5456 11.6825 11.2345 11.5 12.0091 11.5C12.4674 11.5 12.8976 11.5642 13.2996 11.6925C13.7047 11.8208 14.0698 12.009 14.3951 12.2571C14.7203 12.5024 14.9923 12.8018 15.2111 13.1554C15.4298 13.5062 15.5806 13.9068 15.6634 14.3574Z"
2521              />
2522              <path
2523                class="cc-c"
2524                d="M24 14.3574H22.9002C22.8351 14.0523 22.7213 13.7842 22.5587 13.5532C22.399 13.3222 22.2039 13.1283 21.9733 12.9715C21.7456 12.8118 21.4928 12.692 21.2149 12.6122C20.937 12.5323 20.6473 12.4924 20.3457 12.4924C19.7958 12.4924 19.2976 12.6264 18.8511 12.8945C18.4077 13.1625 18.0543 13.5575 17.7912 14.0794C17.531 14.6012 17.4009 15.2414 17.4009 16C17.4009 16.7586 17.531 17.3988 17.7912 17.9206C18.0543 18.4425 18.4077 18.8375 18.8511 19.1055C19.2976 19.3736 19.7958 19.5076 20.3457 19.5076C20.6473 19.5076 20.937 19.4677 21.2149 19.3878C21.4928 19.308 21.7456 19.1896 21.9733 19.0328C22.2039 18.8731 22.399 18.6778 22.5587 18.4468C22.7213 18.2129 22.8351 17.9449 22.9002 17.6426H24C23.9172 18.0903 23.7664 18.491 23.5476 18.8446C23.3289 19.1982 23.0569 19.499 22.7316 19.7471C22.4064 19.9924 22.0413 20.1792 21.6362 20.3075C21.2341 20.4358 20.804 20.5 20.3457 20.5C19.5711 20.5 18.8822 20.3175 18.279 19.9525C17.6759 19.5875 17.2014 19.0684 16.8555 18.3954C16.5095 17.7224 16.3366 16.924 16.3366 16C16.3366 15.076 16.5095 14.2776 16.8555 13.6046C17.2014 12.9316 17.6759 12.4125 18.279 12.0475C18.8822 11.6825 19.5711 11.5 20.3457 11.5C20.804 11.5 21.2341 11.5642 21.6362 11.6925C22.0413 11.8208 22.4064 12.009 22.7316 12.2571C23.0569 12.5024 23.3289 12.8018 23.5476 13.1554C23.7664 13.5062 23.9172 13.9068 24 14.3574Z"
2525              />
2526              <rect id="cc-underline" x="8" y="23" width="16" height="1" rx="0.5" />
2527            </g>
2528          </svg>
2529        </media-captions-button>
2530
2531        <!-- Settings Menu Button -->
2532        <style>
2533          media-settings-menu-button svg {
2534            transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);
2535            transform: rotateZ(0deg);
2536          }
2537          media-settings-menu-button[aria-expanded='true'] svg {
2538            transform: rotateZ(30deg);
2539          }
2540        </style>
2541        <media-settings-menu-button class="media-button">
2542          <svg slot="icon" viewBox="0 0 32 32">
2543            <use class="svg-shadow" xlink:href="#settings-icon"></use>
2544            <g id="settings-icon">
2545              <path
2546                d="M16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z"
2547              />
2548              <path
2549                d="M21.0176 13.0362L20.9715 12.9531C20.8445 12.7239 20.7797 12.4629 20.784 12.1982L20.8049 10.8997C20.8092 10.6343 20.675 10.3874 20.4545 10.2549L18.5385 9.10362C18.3186 8.97143 18.0472 8.9738 17.8293 9.10981L16.7658 9.77382C16.5485 9.90953 16.2999 9.98121 16.0465 9.98121H15.9543C15.7004 9.98121 15.4513 9.90922 15.2336 9.77295L14.1652 9.10413C13.9467 8.96728 13.674 8.96518 13.4535 9.09864L11.5436 10.2545C11.3242 10.3873 11.1908 10.6336 11.1951 10.8981L11.216 12.1982C11.2203 12.4629 11.1555 12.7239 11.0285 12.9531L10.9831 13.0351C10.856 13.2645 10.6715 13.4535 10.4493 13.5819L9.36075 14.2109C9.13763 14.3398 8.99942 14.5851 9 14.8511L9.00501 17.152C9.00559 17.4163 9.1432 17.6597 9.36476 17.7883L10.4481 18.4167C10.671 18.546 10.8559 18.7364 10.9826 18.9673L11.0313 19.0559C11.1565 19.284 11.2203 19.5431 11.2161 19.8059L11.1951 21.1003C11.1908 21.3657 11.325 21.6126 11.5456 21.7452L13.4615 22.8964C13.6814 23.0286 13.9528 23.0262 14.1707 22.8902L15.2342 22.2262C15.4515 22.0905 15.7001 22.0188 15.9535 22.0188H16.0457C16.2996 22.0188 16.5487 22.0908 16.7664 22.227L17.8348 22.8959C18.0534 23.0327 18.326 23.0348 18.5465 22.9014L20.4564 21.7455C20.6758 21.6127 20.8092 21.3664 20.8049 21.1019L20.784 19.8018C20.7797 19.5371 20.8445 19.2761 20.9715 19.0469L21.0169 18.9649C21.144 18.7355 21.3285 18.5465 21.5507 18.4181L22.6393 17.7891C22.8624 17.6602 23.0006 17.4149 23 17.1489L22.995 14.848C22.9944 14.5837 22.8568 14.3403 22.6352 14.2117L21.5493 13.5818C21.328 13.4534 21.1442 13.2649 21.0176 13.0362Z"
2550              />
2551            </g>
2552          </svg>
2553        </media-settings-menu-button>
2554
2555        <!-- PIP/Mini Player Button -->
2556        <style>
2557          media-controller:not([breakpointmd]) media-pip-button {
2558            display: none;
2559          }
2560        </style>
2561        <media-pip-button class="media-button">
2562          <svg slot="icon" viewBox="0 0 32 32">
2563            <use class="svg-shadow" xlink:href="#pip-icon"></use>
2564            <g id="pip-icon">
2565              <path
2566                d="M12 22H9.77778C9.34822 22 9 21.6162 9 21.1429V10.8571C9 10.3838 9.34822 10 9.77778 10L22.2222 10C22.6518 10 23 10.3838 23 10.8571V12.5714"
2567              />
2568              <path
2569                d="M15 21.5714V16.4286C15 16.1919 15.199 16 15.4444 16H22.5556C22.801 16 23 16.1919 23 16.4286V17V21.5714C23 21.8081 22.801 22 22.5556 22H20.3333H17.6667H15.4444C15.199 22 15 21.8081 15 21.5714Z"
2570              />
2571            </g>
2572          </svg>
2573        </media-pip-button>
2574
2575        <!-- Airplay Button -->
2576        <media-airplay-button class="media-button">
2577          <svg viewBox="0 0 32 32" aria-hidden="true" slot="icon">
2578            <path stroke-linecap="round" stroke-linejoin="round" d="M20.5 20h1.722c.43 0 .778-.32.778-.714v-8.572c0-.394-.348-.714-.778-.714H9.778c-.43 0-.778.32-.778.714v1.429"/>
2579            <path stroke-linecap="round" stroke-linejoin="round" d="M11.5 20H9.778c-.43 0-.778-.32-.778-.714v-8.572c0-.394.348-.714.778-.714h12.444c.43 0 .778.32.778.714v1.429"/>
2580            <path stroke-linejoin="round" d="m16 19 3.464 3.75h-6.928L16 19Z"/>
2581          </svg>
2582        </media-airplay-button>
2583
2584        <!-- Cast Button -->
2585        <media-cast-button class="media-button">
2586          <svg slot="icon" viewBox="0 0 32 32">
2587            <use class="svg-shadow" xlink:href="#cast-icon"></use>
2588            <g id="cast-icon">
2589              <path
2590                d="M18.5 21.833h4.167c.46 0 .833-.373.833-.833V11a.833.833 0 0 0-.833-.833H9.333A.833.833 0 0 0 8.5 11v1.111m0 8.056c.92 0 1.667.746 1.667 1.666M8.5 17.667a4.167 4.167 0 0 1 4.167 4.166"
2591              />
2592              <path d="M8.5 15.167a6.667 6.667 0 0 1 6.667 6.666" />
2593            </g>
2594          </svg>
2595        </media-cast-button>
2596
2597        <!-- Fullscreen Button -->
2598        <style>
2599          /* Having trouble getting @property to work in the shadow dom
2600             to clean this up. Like https://codepen.io/luwes/pen/oNRyZyx */
2601
2602          media-fullscreen-button .fs-arrow {
2603            translate: 0% 0%;
2604          }
2605          media-fullscreen-button:hover .fs-arrow {
2606            animation: 0.35s up-left-bounce cubic-bezier(0.34, 1.56, 0.64, 1);
2607          }
2608          media-fullscreen-button:hover #fs-enter-top,
2609          media-fullscreen-button:hover #fs-exit-bottom {
2610            animation-name: up-right-bounce;
2611          }
2612
2613          media-fullscreen-button:hover #fs-enter-bottom,
2614          media-fullscreen-button:hover #fs-exit-top {
2615            animation-name: down-left-bounce;
2616          }
2617
2618          @keyframes up-left-bounce {
2619            0% {
2620              translate: 0 0;
2621            }
2622            50% {
2623              translate: -4% -4%;
2624            }
2625          }
2626          @keyframes up-right-bounce {
2627            0% {
2628              translate: 0 0;
2629            }
2630            50% {
2631              translate: 4% -4%;
2632            }
2633          }
2634          @keyframes down-left-bounce {
2635            0% {
2636              translate: 0 0;
2637            }
2638            50% {
2639              translate: -4% 4%;
2640            }
2641          }
2642          @keyframes down-right-bounce {
2643            0% {
2644              translate: 0 0;
2645            }
2646            50% {
2647              translate: 4% 4%;
2648            }
2649          }
2650        </style>
2651        <media-fullscreen-button class="media-button">
2652          <svg slot="enter" viewBox="0 0 32 32">
2653            <use class="svg-shadow" xlink:href="#fs-enter-paths"></use>
2654            <g id="fs-enter-paths">
2655              <g id="fs-enter-top" class="fs-arrow">
2656                <path d="M18 10H22V14" />
2657                <path d="M22 10L18 14" />
2658              </g>
2659              <g id="fs-enter-bottom" class="fs-arrow">
2660                <path d="M14 22L10 22V18" />
2661                <path d="M10 22L14 18" />
2662              </g>
2663            </g>
2664          </svg>
2665          <svg slot="exit" viewBox="0 0 32 32">
2666            <use class="svg-shadow" xlink:href="#fs-exit-paths"></use>
2667            <g id="fs-exit-paths">
2668              <g id="fs-exit-top" class="fs-arrow">
2669                <path d="M22 14H18V10" />
2670                <path d="M22 10L18 14" />
2671              </g>
2672              <g id="fs-exit-bottom" class="fs-arrow">
2673                <path d="M10 18L14 18V22" />
2674                <path d="M14 18L10 22" />
2675              </g>
2676            </g>
2677          </svg>
2678        </media-fullscreen-button>
2678
2679      </media-control-bar>
2680    </media-controller>
2681
2682  `);class dk extends lh{static template=dA}nd.customElements&&!nd.customElements.get("media-theme-sutro")&&nd.customElements.define("media-theme-sutro",dk);var dx=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),d_={className:"class",htmlFor:"for"};function dT(e){return e.toLowerCase()}function dS(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e?void 0:"object"!=typeof e||null===e?e:void 0}function dI(e,t,i){var r,n;e[t]=i,null==i&&t in(null!=(n=null==(r=globalThis.HTMLElement)?void 0:r.prototype)?n:{})&&e.removeAttribute(t)}var dC=function(e){let{react:t,tagName:i,elementClass:r,events:n,displayName:a,defaultProps:o,toAttributeName:s=dT,toAttributeValue:l=dS}=e,d=Number.parseInt(t.version)>=19,u=t.forwardRef((e,a)=>{var u,c,h,m,p;let f=t.useRef(null),v=t.useRef(new Map),g={},b={},E={},y={};for(let[t,i]of Object.entries(e)){if(dx.has(t)){E[t]=i;continue}let e=s(null!=(h=d_[t])?h:t);if(r.prototype&&t in r.prototype&&!(t in(null!=(m=null==(u=globalThis.HTMLElement)?void 0:u.prototype)?m:{}))&&!(null==(c=r.observedAttributes)?void 0:c.some(t=>t===e))){y[t]=i;continue}if(t.startsWith("on")){g[t]=i;continue}let n=l(i);e&&null!=n&&(b[e]=String(n),d||(E[e]=n)),e&&d&&(n!==dS(i)?E[e]=n:E[e]=i)}if("undefined"!=typeof window){for(let e in g){let i=g[e],r=e.endsWith("Capture"),a=(null!=(p=null==n?void 0:n[e])?p:e.slice(2).toLowerCase()).slice(0,r?-7:void 0);t.useLayoutEffect(()=>{let e=null==f?void 0:f.current;if(e&&"function"==typeof i)return e.addEventListener(a,i,r),()=>{e.removeEventListener(a,i,r)}},[null==f?void 0:f.current,i])}t.useLayoutEffect(()=>{if(null===f.current)return;let e=new Map;for(let t in y)dI(f.current,t,y[t]),v.current.delete(t),e.set(t,y[t]);for(let[e,t]of v.current)dI(f.current,e,void 0);v.current=e})}if("undefined"==typeof window&&(null==r?void 0:r.getTemplateHTML)&&(null==r?void 0:r.shadowRootOptions)){let{mode:i,delegatesFocus:n}=r.shadowRootOptions;E.children=[t.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:r.getTemplateHTML(b,e)},key:"ce-la-react-ssr-template-shadow-root"}),E.children]}return t.createElement(i,{...o,...E,ref:t.useCallback(e=>{f.current=e,"function"==typeof a?a(e):null!==a&&(a.current=e)},[a])},E.children)});return u.displayName=null!=a?a:r.name,u}({react:rV,tagName:"media-theme-sutro",elementClass:dk});let dL="mux.com";function dM(e,t){let i=dR(e);if(!i)return e;let r=e.providerMetadata?.mux?.thumbnailTime??t?.thumbnailTime??t?.startTime,n={...e,sources:[{src:`https://stream.${t?.customDomain??dL}/${i}.m3u8`,type:"application/x-mpegURL"}],poster:dD(i,{thumbnailTime:r,customDomain:t?.customDomain,token:t?.tokens?.thumbnail})};return r>=0&&(n.thumbnailTime=r),n}function dR(e){let t=e.providerMetadata?.mux??e.externalIds;return t?.playbackId}let dD=(e,{token:t,thumbnailTime:i,width:r,customDomain:n=dL}={})=>{let a=null==t?i:void 0,{aud:o}=function(e){let t=(e??"").split(".")[1];return t?JSON.parse(decodeURIComponent(atob(t.replace(/-/g,"+").replace(/_/g,"/")).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))):{}}(t);if(!t||"t"===o)return`https://image.${n}/${e}/thumbnail.webp${function(e){let t=(function(e){let t={};for(let i in e)null!=e[i]&&(t[i]=e[i]);return new URLSearchParams(t)})(e).toString();return t?"?"+t:""}({token:t,time:a,width:r})}`},dO=JSON.parse(i(16099).env.NEXT_PUBLIC_DEV_VIDEO_OPTS??'{"path":"/api/video","folder":"videos","provider":"amazon-s3"}'??"{}"),dN=`${dO.folder??"videos"}/`;function dP(e){if("string"==typeof e)return e.split(/[#?]/)[0].split(".").pop()?.trim()}let dU=(0,rV.forwardRef)((e,t)=>{if("string"==typeof e.playbackId)return a??(a=(0,rV.lazy)(()=>Promise.all([i.e(8655),i.e(7547),i.e(8343)]).then(i.bind(i,88343)))),(0,rU.jsx)(a,{ref:t,...e,controls:!1});let r=dP(e.src);return"m3u8"===r?(o??(o=(0,rV.lazy)(()=>Promise.all([i.e(8655),i.e(7547),i.e(8834)]).then(i.bind(i,28834)))),(0,rU.jsx)(o,{ref:t,...e,controls:!1})):"mpd"===r?(s??(s=(0,rV.lazy)(()=>Promise.all([i.e(7547),i.e(9766)]).then(i.bind(i,39766)))),(0,rU.jsx)(s,{ref:t,...e,controls:!1})):(0,rU.jsx)("video",{ref:t,...e,controls:!1})}),dV=(0,rV.forwardRef)((e,t)=>{let i,r,{style:n,children:a,asset:o,controls:s=!0,poster:l,posterFetchPriority:d="auto",blurDataURL:u,theme:c=dC,...h}=e,m=rV.Children.toArray(a).find(e=>"object"==typeof e&&"type"in e&&"poster"===e.props.slot);(0,rV.isValidElement)(m)&&(l="",u=void 0,i=m,a=rV.Children.toArray(a).filter(e=>e!==m));let p={},f=o?dR(o):void 0,v=!0;if(f&&(null==o?void 0:o.status)==="ready"&&(h.src=void 0,h.playbackId=f,l&&((v=l!==dD(f,h))||
2682(r="".concat(dD(f,{...h,width:480})," 480w,").concat(dD(f,{...h,width:640})," 640w,").concat(dD(f,{...h,width:960})," 960w,").concat(dD(f,{...h,width:1280})," 1280w,").concat(dD(f,{...h,width:1600})," 1600w,").concat(dD(f,{...h})," 1920w")))),u){let e=!v&&u===(null==o?void 0:o.blurDataURL),t=v&&u!==(null==o?void 0:o.blurDataURL);if(e||t){var g;p.gridArea="1/1",p.width="100%",p.height="100%",p.color="transparent",p.backgroundSize="cover",p.backgroundPosition="center",p.backgroundRepeat="no-repeat",p.backgroundImage="url('data:image/svg+xml;charset=utf-8,".concat((g=u,`<svg xmlns="http://www.w3.org/2000/svg"><filter id="b" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="20"/><feComponentTransfer><feFuncA type="discrete" tableValues="1 1"/></feComponentTransfer></filter><g filter="url(#b)"><image width="100%" height="100%" preserveAspectRatio="xMidYMid slice" href="${g}"/></g></svg>`.replace(/#/g,"%23")),"')")}}if(delete h.thumbnailTime,s&&c){let e=h["data-next-video"];return l&&(i=(0,rU.jsx)("img",{slot:"poster",src:v?l:void 0,srcSet:r,style:p,decoding:"async","aria-hidden":"true",fetchPriority:d}),l=""),(0,rU.jsxs)(c,{"data-next-video":e,style:{display:"grid",...n},children:[i,(0,rU.jsx)(rV.Suspense,{fallback:null,children:(0,rU.jsxs)(dU,{suppressHydrationWarning:!0,ref:t,style:{gridArea:"1/1"},slot:"media",poster:l,crossOrigin:"",...h,children:[f&&(0,rU.jsx)("track",{default:!0,kind:"metadata",label:"thumbnails",src:"https://image.mux.com/".concat(f,"/storyboard.vtt")}),a]})})]})}return(0,rU.jsx)(rV.Suspense,{fallback:null,children:(0,rU.jsxs)(dU,{suppressHydrationWarning:!0,ref:t,style:{gridArea:"1/1",...n},controls:!1!==s||void 0,poster:l,crossOrigin:"",...h,children:[f&&(0,rU.jsx)("track",{default:!0,kind:"metadata",label:"thumbnails",src:"https://image.mux.com/".concat(f,"/storyboard.vtt")}),a]})})});async function dF({config:e,src:t,width:i,height:r}){let n=`${e.path}?url=${encodeURIComponent(`${t}`)}`;return i&&(n+=`&w=${i}`),r&&(n+=`&h=${r}`),`${n}`}function dW(e){let t=e.providerMetadata?.["vercel-blob"]??e.externalIds;if(!t)return e;let i={src:t.url};return t.contentType&&(i.type=t.contentType),{...e,sources:[i]}}function dH(e){let t=e.providerMetadata?.backblaze;if(!t)return e;let i=new URL(t.endpoint);i.hostname=`${t.bucket}.${i.hostname}`,i.pathname=t.key;let r={src:`${i}`};return{...e,sources:[r]}}function dB(e){let t=e.providerMetadata?.["amazon-s3"];if(!t)return e;let i=new URL(t.endpoint);i.hostname=i.hostname,i.pathname=`${t.bucket}/${t.key}`;let r={src:`${i}`};return{...e,sources:[r]}}function dj(e){let t=e.providerMetadata?.["cloudflare-r2"];if(!t)return e;let i=new URL(t.bucketUrlPublic);i.pathname=t.key;let r={src:`${i}`};return{...e,sources:[r]}}function d$(e,t){var i;let r=null!=(i=e.provider)?i:dO.provider;for(let[i,n]of Object.entries(rP))if(i===r.toLowerCase().replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase()))return n.transform(e,t)}var dz=(0,rV.forwardRef)((e,t)=>{let{as:i=dV,loader:r=dF,transform:n=d$,className:a,style:o,src:s,width:l,height:d}=e,[u,c]=(0,rV.useState)("object"==typeof s?s:void 0),[h,m]=(0,rV.useState)(!1);"object"==typeof s&&(u=s,s=void 0);let p=function(e,t,i){return async r=>{if("string"==typeof t.src)try{let n=await e({...t,config:dO}),a=await fetch(n,{signal:r}),o=await a.json();if(a.ok)i(o);else{let e=`[next-video] The request to ${a.url} failed. `;throw e+=`Did you configure the \`${dO.path}\` route to handle video API requests?
2683`,Error(e)}}catch(e){r.aborted||console.error(e)}}}(r,{src:s,width:l,height:d},e=>c(e)),f=null==u?void 0:u.status;dP(s),!function(e,t=5e3){let i=(0,rV.useRef)(new AbortController);(0,rV.useEffect)(()=>(i.current=new AbortController,e(i.current.signal),()=>{i.current.abort()}),[]),function(e,t){let i=(0,rV.useRef)(null);(0,rV.useEffect)(()=>{i.current=e}),(0,rV.useEffect)(()=>{let e=async()=>{await i.current?.()};if(null!=t){let i=setInterval(e,t);return()=>clearInterval(i)}},[t])}((0,rV.useCallback)(()=>e(i.current.signal),[]),t)}(p,null);let v=function(e,t){var i,r,n;let{asset:a}=t,{controls:o=!0,as:s,className:l,style:d,src:u,poster:c,blurDataURL:h,loader:m,transform:p,...f}=e,v={src:u,poster:c,controls:o,blurDataURL:h,...f};if("object"==typeof c&&(v.poster=c.src,null!=v.blurDataURL||(v.blurDataURL=c.blurDataURL)),a)if("ready"===a.status){null!=v.blurDataURL||(v.blurDataURL=a.blurDataURL);let e=p(a,v);e&&(v.src=null==(r=e.sources)||null==(i=r[0])?void 0:i.src,null!=v.poster||(v.poster=e.poster),null!=v.thumbnailTime||(v.thumbnailTime=e.thumbnailTime))}else n=a.originalFilePath,v.src=n?.startsWith(dN)?n?.replace(dN,"_next-video/"):n;return v}({...e,transform:n,src:s},{asset:u});return!function(e){var t,i;return"function"==typeof(t=e)&&(()=>{let e=Object.getPrototypeOf(t);return e.prototype&&e.prototype.isReactComponent})()||"function"==typeof e||"object"==typeof(i=e)&&"symbol"==typeof i.$$typeof&&["react.memo","react.forward_ref"].includes(i.$$typeof.description)}(i)&&console.warn("The `as` property is not a valid component:",i),(0,rU.jsxs)("div",{className:"".concat(a?"".concat(a," "):"","next-video-container"),style:o,children:[(0,rU.jsx)("style",{children:"\n        .next-video-container {\n          display: grid;  /* Fixes a Safari aspect-ratio + height bug. */\n          position: relative;\n          width: 100%;\n          aspect-ratio: 16 / 9;\n        }\n\n        [data-next-video] {\n          display: block;\n          position: relative;\n          width: 100%;\n          height: 100%;\n        }\n\n        [data-next-video] img {\n          object-fit: var(--media-object-fit, contain);\n          object-position: var(--media-object-position, center);\n          max-width: 100%;\n          max-height: 100%;\n          min-width: 100%;\n          min-height: 100%;\n        }\n        "}),(0,rU.jsx)(i,{ref:t,"data-next-video":null!=f?f:"",style:{width:l,height:d},asset:u,onPlaying:()=>m(!0),onPause:()=>m(!1),...v}),!1]})})},30728:(e,t,i)=>{i.d(t,{TL:()=>o});var r,n=i(52936),a=i(37807);function o(e){let t=n.forwardRef((t,i)=>{var r;let o,d,{children:p,...f}=t,v=null,g=!1,b=[];
2683u(p)&&"function"==typeof m&&(p=m(p._payload)),n.Children.forEach(p,e=>{var t;if(t=e,n.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===s){g=!0;let t="child"in e.props?e.props.child:e.props.children;u(t)&&"function"==typeof m&&(t=m(t._payload)),v=l(e,t),b.push(v?.props?.children)}else b.push(e)}),v?v=n.cloneElement(v,void 0,b):!g&&1===n.Children.count(p)&&n.isValidElement(p)&&(v=p);let E=v?(r=v,(d=(o=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?r.ref:(d=(o=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,y=(0,a.s)(i,E);if(!v){if(p||0===p)throw Error(g?h(e):c(e));return p}let w=function(e,t){let i={...t};for(let r in t){let n=e[r],a=t[r];/^on[A-Z]/.test(r)?n&&a?i[r]=(...e)=>{let t=a(...e);return n(...e),t}:n&&(i[r]=n):"style"===r?i[r]={...n,...a}:"className"===r&&(i[r]=[n,a].filter(Boolean).join(" "))}return{...e,...i}}(f,v.props??{});return v.type!==n.Fragment&&(w.ref=i?y:E),n.cloneElement(v,w)});return t.displayName=`${e}.Slot`,t}var s=Symbol.for("radix.slottable"),l=(e,t)=>{if("child"in e.props){let t=e.props.child;return n.isValidElement(t)?n.cloneElement(t,void 0,e.props.children(t.props.children)):null}return n.isValidElement(t)?t:null},d=Symbol.for("react.lazy");function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===d&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,h=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,m=(r||(r=i.t(n,2)))[" use ".trim().toString()]},32692:(e,t,i)=>{i.d(t,{jH:()=>a});var r=i(52936);i(55524);var n=r.createContext(void 0);function a(e){let t=r.useContext(n);return e||t||"ltr"}},36522:(e,t,i)=>{i.d(t,{N:()=>n});var r=i(52936),n=globalThis?.document?r.useLayoutEffect:()=>{}},37807:(e,t,i)=>{i.d(t,{s:()=>a});var r=i(52936);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return r.useCallback(function(...e){return t=>{let i=!1,r=e.map(e=>{let r=n(e,t);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let t=0;t<r.length;t++){let i=r[t];"function"==typeof i?i():n(e[t],null)}}}}(...e),e)}},39245:(e,t,i)=>{i.d(t,{QP:()=>em});let r=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),n=[],a=(e,t,i)=>{if(0==e.length-t)return i.classGroupId;let r=e[t],n=i.nextPart.get(r);if(n){let i=a(e,t+1,n);if(i)return i}let o=i.validators;if(null===o)return;let s=0===t?e.join("-"):e.slice(t).join("-"),l=o.length;for(let e=0;e<l;e++){let t=o[e];if(t.validator(s))return t.classGroupId}},o=(e,t)=>{let i=r();for(let r in e)s(e[r],i,r,t);return i},s=(e,t,i,r)=>{let n=e.length;for(let a=0;a<n;a++)l(e[a],t,i,r)},l=(e,t,i,r)=>"string"==typeof e?void d(e,t,i):"function"==typeof e?void u(e,t,i,r):void c(e,t,i,r),d=(e,t,i)=>{(""===e?t:h(t,e)).classGroupId=i},u=(e,t,i,r)=>{if(m(e))return void s(e(r),t,i,r);null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:i,validator:e})},c=(e,t,i,r)=>{let n=Object.entries(e),a=n.length;for(let e=0;e<a;e++){let[a,o]=n[e];s(o,h(t,a),i,r)}},h=(e,t)=>{let i=e,n=t.split("-"),a=n.length;for(let e=0;e<a;e++){let t=n[e],a=i.nextPart.get(t);a||(a=r(),i.nextPart.set(t,a)),i=a}return i},m=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,p=[],f=(e,t,i,r,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:r,isExternal:n}),v=/\s+/,g=e=>{let t;if("string"==typeof e)return e;let i="";for(let r=0;r<e.length;r++)e[r]&&(t=g(e[r]))&&(i&&(i+=" "),i+=t);return i},b=[],E=e=>{let t=t=>t[e]||b;return t.isThemeGetter=!0,t},y=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w=/^\((?:(\w[\w-]*):)?(.+)\)$/i,A=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,k=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,x=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,T=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>A.test(e),C=e=>!!e&&!Number.isNaN(Number(e)),L=e=>!!e&&Number.isInteger(Number(e)),M=e=>e.endsWith("%")&&C(e.slice(0,-1)),R=e=>k.test(e),D=()=>!0,O=e=>x.test(e)&&!_.test(e),N=()=>!1,P=e=>T.test(e),U=e=>S.test(e),V=e=>
2683!H(e)&&!Y(e),F=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),W=e=>er(e,es,N),H=e=>y.test(e),B=e=>er(e,el,O),j=e=>er(e,ed,C),$=e=>er(e,ec,D),z=e=>er(e,eu,N),K=e=>er(e,ea,N),G=e=>er(e,eo,U),q=e=>er(e,eh,P),Y=e=>w.test(e),Z=e=>en(e,el),Q=e=>en(e,eu),X=e=>en(e,ea),J=e=>en(e,es),ee=e=>en(e,eo),et=e=>en(e,eh,!0),ei=e=>en(e,ec,!0),er=(e,t,i)=>{let r=y.exec(e);return!!r&&(r[1]?t(r[1]):i(r[2]))},en=(e,t,i=!1)=>{let r=w.exec(e);return!!r&&(r[1]?t(r[1]):i)},ea=e=>"position"===e||"percentage"===e,eo=e=>"image"===e||"url"===e,es=e=>"length"===e||"size"===e||"bg-size"===e,el=e=>"length"===e,ed=e=>"number"===e,eu=e=>"family-name"===e,ec=e=>"number"===e||"weight"===e,eh=e=>"shadow"===e;Symbol.toStringTag;let em=((e,...t)=>{let i,r,s,l,d=e=>{let t=r(e);if(t)return t;let n=((e,t)=>{let{parseClassName:i,getClassGroupId:r,getConflictingClassGroupIds:n,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],l=e.trim().split(v),d="";for(let e=l.length-1;e>=0;e-=1){let t,u=l[e],{isExternal:c,modifiers:h,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:f}=i(u);if(c){d=u+(d.length>0?" "+d:d);continue}let v=!!f;if(v){let e=(t=r(p.substring(0,f)))&&o[t]?r(p):void 0;e&&e!==t&&(t=e,v=!1)}else t=r(p);if(!t){if(!v||!(t=r(p))){d=u+(d.length>0?" "+d:d);continue}v=!1}let g=0===h.length?"":1===h.length?h[0]:a(h).join(":"),b=m?g+"!":g,E=b+t;if(s.indexOf(E)>-1)continue;s.push(E);let y=n(t,v);for(let e=0;e<y.length;++e){let t=y[e];s.push(b+t)}d=u+(d.length>0?" "+d:d)}return d})(e,i);return s(e,n),n};return l=u=>(r=(i=(e=>({cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,i=Object.create(null),r=Object.create(null),n=(n,a)=>{i[n]=a,++t>e&&(t=0,r=i,i=Object.create(null))};return{get(e){let t=i[e];return void 0!==t?t:void 0!==(t=r[e])?(n(e,t),t):void 0},set(e,t){e in i?i[e]=t:n(e,t)}}})(e.cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:i}=e,r=e=>{let t,i=[],r=0,n=0,a=0,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(0===r&&0===n){if(":"===o){i.push(e.slice(a,s)),a=s+1;continue}if("/"===o){t=s;continue}}"["===o?r++:"]"===o?r--:"("===o?n++:")"===o&&n--}let s=0===i.length?e:e.slice(a),l=s,d=!1;return s.endsWith("!")?(l=s.slice(0,-1),d=!0):s.startsWith("!")&&(l=s.slice(1),d=!0),f(i,d,l,t&&t>a?t-a:void 0)};if(t){let e=t+":",i=r;r=t=>t.startsWith(e)?i(t.slice(e.length)):f(p,!1,t,void 0,!0)}if(i){let e=r;r=t=>i({className:t,parseClassName:e})}return r})(e),sortModifiers:(e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,i)=>{t.set(e,1e6+i)}),e=>{let i=[],r=[];for(let n=0;n<e.length;n++){let a=e[n],o="["===a[0],s=t.has(a);o||s?(r.length>0&&(r.sort(),i.push(...r),r=[]),i.push(a)):r.push(a)}return r.length>0&&(r.sort(),i.push(...r)),i}})(e),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),i=e.postfixLookupClassGroups;if(i)for(let e=0;e<i.length;e++)t[i[e]]=!0;return t})(e),...(e=>{let t=(e=>{let{theme:t,classGroups:i}=e;return o(i,t)})(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return(e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{let t=e.slice(1,-1),i=t.indexOf(":"),r=t.slice(0,i);return r?"arbitrary.."+r:void 0})())(e);let i=e.split("-"),r=+(""===i[0]&&i.length>1);return a(i,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],a=i[e];return t?a?((e,t)=>{let i=Array(e.length+t.length);for(let t=0;t<e.length;t++)i[t]=e[t];for(let r=0;r<t.length;r++)i[e.length+r]=t[r];return i})(a,t):t:a||n}return i[e]||n}}})(e)}))(t.reduce((e,t)=>t(e),e()))).cache.get,s=i.cache.set,l=d,d(u)),(...e)=>l(((...e)=>{let t,i,r=0,n="";for(;r<e.length;)(t=e[r++])&&(i=g(t))&&(n&&(n+=" "),n+=i);return n})(...e))})(()=>{let e=E("color"),t=E("font"),i=E("text"),r=E("font-weight"),n=E("tracking"),a=E("leading"),o=E("breakpoint"),s=E("container"),l=E("spacing"),d=E("radius"),u=E("shadow"),c=E("inset-shadow"),h=E("text-shadow"),m=E("drop-shadow"),p=E("blur"),f=E("perspective"),v=E("aspect"),g=E("ease"),b=E("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...w(),Y,H],k=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],_=()=>[Y,H,l],T=()=>[I,"full","auto",..._()],S=()=>[L,"none","subgrid",Y,H],O=()=>["auto",{span:["full",L,Y,H]},L,Y,H],N=()=>[L,"auto",Y,H],P=()=>["auto","min","max","fr",Y,H],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],er=()=>["start","end","center","stretch","center-safe","end-safe"],en=()=>["auto",..._()],ea=()=>[I,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],eo=()=>[I,"screen","full","dvw","lvw","svw","min","max","fit",..._()],es=()=>[I,"screen","full","lh","dvh","lvh","svh","min","max","fit",..._()],el=()=>[e,Y,H],ed=()=>[...w(),X,K,{position:[Y,H]}],eu=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ec=()=>["auto","cover","contain",J,W,{size:[Y,H]}],eh=()=>[M,Z,B],em=()=>["","none","full",d,Y,H],ep=()=>["",C,Z,B],ef=()=>["solid","dashed","dotted","double"],ev=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eg=()=>[C,M,X,K],eb=()=>["","none",p,Y,H],eE=()=>["none",C,Y,H],ey=()=>["none",C,Y,H],ew=()=>[C,Y,H],eA=()=>[I,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[D],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[V],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",C],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",I,H,Y,v]}],container:["container"],"container-type":[{"@container":["","normal","size",Y,H]}
vendor: 6,099 bytes, line 2683
2683],"container-named":[F],columns:[{columns:[C,H,Y,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[L,"auto",Y,H]}],basis:[{basis:[I,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[C,I,"auto","initial","none",H]}],grow:[{grow:["",C,Y,H]}],shrink:[{shrink:["",C,Y,H]}],order:[{order:[L,"first","last","none",Y,H]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...er(),"normal"]}],"justify-self":[{"justify-self":["auto",...er()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...er(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...er(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...er(),"baseline"]}],"place-self":[{"place-self":["auto",...er()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:en()}],mx:[{mx:en()}],my:[{my:en()}],ms:[{ms:en()}],me:[{me:en()}],mbs:[{mbs:en()}],mbe:[{mbe:en()}],mt:[{mt:en()}],mr:[{mr:en()}],mb:[{mb:en()}],ml:[{ml:en()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:ea()}],"inline-size":[{inline:["auto",...eo()]}],"min-inline-size":[{"min-inline":["auto",...eo()]}],"max-inline-size":[{"max-inline":["none",...eo()]}],"block-size":[{block:["auto",...es()]}],"min-block-size":[{"min-block":["auto",...es()]}],"max-block-size":[{"max-block":["none",...es()]}],w:[{w:[s,"screen",...ea()]}],"min-w":[{"min-w":[s,"screen","none",...ea()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...ea()]}],h:[{h:["screen","lh",...ea()]}],"min-h":[{"min-h":["screen","lh","none",...ea()]}],"max-h":[{"max-h":["screen","lh",...ea()]}],"font-size":[{text:["base",i,Z,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ei,$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",M,H]}],"font-family":[{font:[Q,z,t]}],"font-features":[{"font-features":[H]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,Y,H]}],"line-clamp":[{"line-clamp":[C,"none",Y,j]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",Y,H]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Y,H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:el()}],"text-color":[{text:el()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ef(),"wavy"]}],"text-decoration-thickness":[{decoration:[C,"from-font","auto",Y,B]}],"text-decoration-color":[{decoration:el()}],"underline-offset":[{"underline-offset":[C,"auto",Y,H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"tab-size":[{tab:[L,Y,H]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y,H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y,H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ed()}],"bg-repeat":[{bg:eu()}],"bg-size":[{bg:ec()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L,Y,H],radial:["",Y,H],conic:[L,Y,H]},ee,G]}],"bg-color":[{bg:el()}],"gradient-from-pos":[{from:eh()}
vendor: 7,384 bytes, line 2683
2683],"gradient-via-pos":[{via:eh()}],"gradient-to-pos":[{to:eh()}],"gradient-from":[{from:el()}],"gradient-via":[{via:el()}],"gradient-to":[{to:el()}],rounded:[{rounded:em()}],"rounded-s":[{"rounded-s":em()}],"rounded-e":[{"rounded-e":em()}],"rounded-t":[{"rounded-t":em()}],"rounded-r":[{"rounded-r":em()}],"rounded-b":[{"rounded-b":em()}],"rounded-l":[{"rounded-l":em()}],"rounded-ss":[{"rounded-ss":em()}],"rounded-se":[{"rounded-se":em()}],"rounded-ee":[{"rounded-ee":em()}],"rounded-es":[{"rounded-es":em()}],"rounded-tl":[{"rounded-tl":em()}],"rounded-tr":[{"rounded-tr":em()}],"rounded-br":[{"rounded-br":em()}],"rounded-bl":[{"rounded-bl":em()}],"border-w":[{border:ep()}],"border-w-x":[{"border-x":ep()}],"border-w-y":[{"border-y":ep()}],"border-w-s":[{"border-s":ep()}],"border-w-e":[{"border-e":ep()}],"border-w-bs":[{"border-bs":ep()}],"border-w-be":[{"border-be":ep()}],"border-w-t":[{"border-t":ep()}],"border-w-r":[{"border-r":ep()}],"border-w-b":[{"border-b":ep()}],"border-w-l":[{"border-l":ep()}],"divide-x":[{"divide-x":ep()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ep()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ef(),"hidden","none"]}],"divide-style":[{divide:[...ef(),"hidden","none"]}],"border-color":[{border:el()}],"border-color-x":[{"border-x":el()}],"border-color-y":[{"border-y":el()}],"border-color-s":[{"border-s":el()}],"border-color-e":[{"border-e":el()}],"border-color-bs":[{"border-bs":el()}],"border-color-be":[{"border-be":el()}],"border-color-t":[{"border-t":el()}],"border-color-r":[{"border-r":el()}],"border-color-b":[{"border-b":el()}],"border-color-l":[{"border-l":el()}],"divide-color":[{divide:el()}],"outline-style":[{outline:[...ef(),"none","hidden"]}],"outline-offset":[{"outline-offset":[C,Y,H]}],"outline-w":[{outline:["",C,Z,B]}],"outline-color":[{outline:el()}],shadow:[{shadow:["","none",u,et,q]}],"shadow-color":[{shadow:el()}],"inset-shadow":[{"inset-shadow":["none",c,et,q]}],"inset-shadow-color":[{"inset-shadow":el()}],"ring-w":[{ring:ep()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:el()}],"ring-offset-w":[{"ring-offset":[C,B]}],"ring-offset-color":[{"ring-offset":el()}],"inset-ring-w":[{"inset-ring":ep()}],"inset-ring-color":[{"inset-ring":el()}],"text-shadow":[{"text-shadow":["none",h,et,q]}],"text-shadow-color":[{"text-shadow":el()}],opacity:[{opacity:[C,Y,H]}],"mix-blend":[{"mix-blend":[...ev(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ev()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[C]}],"mask-image-linear-from-pos":[{"mask-linear-from":eg()}],"mask-image-linear-to-pos":[{"mask-linear-to":eg()}],"mask-image-linear-from-color":[{"mask-linear-from":el()}],"mask-image-linear-to-color":[{"mask-linear-to":el()}],"mask-image-t-from-pos":[{"mask-t-from":eg()}],"mask-image-t-to-pos":[{"mask-t-to":eg()}],"mask-image-t-from-color":[{"mask-t-from":el()}],"mask-image-t-to-color":[{"mask-t-to":el()}],"mask-image-r-from-pos":[{"mask-r-from":eg()}],"mask-image-r-to-pos":[{"mask-r-to":eg()}],"mask-image-r-from-color":[{"mask-r-from":el()}],"mask-image-r-to-color":[{"mask-r-to":el()}],"mask-image-b-from-pos":[{"mask-b-from":eg()}],"mask-image-b-to-pos":[{"mask-b-to":eg()}],"mask-image-b-from-color":[{"mask-b-from":el()}],"mask-image-b-to-color":[{"mask-b-to":el()}],"mask-image-l-from-pos":[{"mask-l-from":eg()}],"mask-image-l-to-pos":[{"mask-l-to":eg()}],"mask-image-l-from-color":[{"mask-l-from":el()}],"mask-image-l-to-color":[{"mask-l-to":el()}],"mask-image-x-from-pos":[{"mask-x-from":eg()}],"mask-image-x-to-pos":[{"mask-x-to":eg()}],"mask-image-x-from-color":[{"mask-x-from":el()}],"mask-image-x-to-color":[{"mask-x-to":el()}],"mask-image-y-from-pos":[{"mask-y-from":eg()}],"mask-image-y-to-pos":[{"mask-y-to":eg()}],"mask-image-y-from-color":[{"mask-y-from":el()}],"mask-image-y-to-color":[{"mask-y-to":el()}],"mask-image-radial":[{"mask-radial":[Y,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":eg()}],"mask-image-radial-to-pos":[{"mask-radial-to":eg()}],"mask-image-radial-from-color":[{"mask-radial-from":el()}],"mask-image-radial-to-color":[{"mask-radial-to":el()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[C]}],"mask-image-conic-from-pos":[{"mask-conic-from":eg()}],"mask-image-conic-to-pos":[{"mask-conic-to":eg()}],"mask-image-conic-from-color":[{"mask-conic-from":el()}],"mask-image-conic-to-color":[{"mask-conic-to":el()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ed()}],"mask-repeat":[{mask:eu()}],"mask-size":[{mask:ec()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Y,H]}],filter:[{filter:["","none",Y,H]}],blur:[{blur:eb()}],brightness:[{brightness:[C,Y,H]}],contrast:[{contrast:[C,Y,H]}],"drop-shadow":[{"drop-shadow":["","none",m,et,q]}],"drop-shadow-color":[{"drop-shadow":el()}],grayscale:[{grayscale:["",C,Y,H]}],"hue-rotate":[{"hue-rotate":[C,Y,H]}],invert:[{invert:["",C,Y,H]}],saturate:[{saturate:[C,Y,H]}],sepia:[{sepia:["",C,Y,H]}],"backdrop-filter":[{"backdrop-filter":["","none",Y,H]}],"backdrop-blur":[{"backdrop-blur":eb()}],"backdrop-brightness":[{"backdrop-brightness":[C,Y,H]}],"backdrop-contrast":[{"backdrop-contrast":[C,Y,H]}],"backdrop-grayscale":[{"backdrop-grayscale":["",C,Y,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C,Y,H]}],"backdrop-invert":[{"backdrop-invert":["",C,Y,H]}],"backdrop-opacity":[{"backdrop-opacity":[C,Y,H]}],"backdrop-saturate":[{"backdrop-saturate":[C,Y,H]}],"backdrop-sepia":[{"backdrop-sepia":["",C,Y,H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Y,H]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[C,"initial",Y,H]}],ease:[{ease:["linear","initial",g,Y,H]}],delay:[{delay:[C,Y,H]}],animate:[{animate:["none",b,Y,H]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Y,H]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:eE()}],"rotate-x":[{"rotate-x":eE()}],"rotate-y":[{"rotate-y":eE()}],"rotate-z":[{"rotate-z":eE()}],scale:[{scale:ey()}],"scale-x":[{"scale-x":ey()}],"scale-y":[{"scale-y":ey()}],"scale-z":[{"scale-z":ey()}],"scale-3d":["scale-3d"],skew:[{skew:ew()}],"skew-x":[{"skew-x":ew()}],"skew-y":[{"skew-y":ew()}],transform:[{transform:[Y,H,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eA()}],"translate-x":[{"translate-x":eA()}],"translate-y":[{"translate-y":eA()}],"translate-z":[{"translate-z":eA()}],"translate-none":["translate-none"],zoom:[{zoom:[L,Y,H]}],accent:[{accent:el()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:el()}
vendor: 5,900 bytes, line 2683
2683],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y,H]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":el()}],"scrollbar-track-color":[{"scrollbar-track":el()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y,H]}],fill:[{fill:["none",...el()]}],"stroke-w":[{stroke:[C,Z,B,j]}],stroke:[{stroke:["none",...el()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},42430:(e,t,i)=>{i.d(t,{Eq:()=>d});var r=new WeakMap,n=new WeakMap,a={},o=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,i,l){var d=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var i=s(e);return i&&t.contains(i)?i:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[i]||(a[i]=new WeakMap);var u=a[i],c=[],h=new Set,m=new Set(d),p=function(e){!e||h.has(e)||(h.add(e),p(e.parentNode))};d.forEach(p);var f=function(e){!e||m.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))f(e);else try{var t=e.getAttribute(l),a=null!==t&&"false"!==t,o=(r.get(e)||0)+1,s=(u.get(e)||0)+1;r.set(e,o),u.set(e,s),c.push(e),1===o&&a&&n.set(e,!0),1===s&&e.setAttribute(i,"true"),a||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};
2683return f(t),h.clear(),o++,function(){c.forEach(function(e){var t=r.get(e)-1,a=u.get(e)-1;r.set(e,t),u.set(e,a),t||(n.has(e)||e.removeAttribute(l),n.delete(e)),a||e.removeAttribute(i)}),--o||(r=new WeakMap,r=new WeakMap,n=new WeakMap,a={})}},d=function(e,t,i){void 0===i&&(i="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),n=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return n?(r.push.apply(r,Array.from(n.querySelectorAll("[aria-live], script"))),l(r,n,i,"aria-hidden")):function(){return null}}},42975:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return l},getImageProps:function(){return s}});let r=i(61374),n=i(20465),a=i(63305),o=r._(i(80691));function s(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let l=a.Image},47166:(e,t,i)=>{let r;i.d(t,{UE:()=>ey,ll:()=>ep,rD:()=>eA,UU:()=>eg,jD:()=>eE,ER:()=>ew,cY:()=>ef,BN:()=>ev,Ej:()=>eb});let n=["top","right","bottom","left"],a=Math.min,o=Math.max,s=Math.round,l=Math.floor,d=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function f(e){return"y"===e?"height":"width"}function v(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let b=["left","right"],E=["right","left"],y=["top","bottom"],w=["bottom","top"];function A(e){let t=h(e);return u[t]+e.slice(t.length)}function k(e){var t,i,r,n;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(i=e.right)?i:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(n=e.left)?n:0}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:i,width:r,height:n}=e;return{width:r,height:n,top:i,left:t,right:t+r,bottom:i+n,x:t,y:i}}function _(e,t,i){let r,{reference:n,floating:a}=e,o=v(t),s=p(v(t)),l=f(s),d=h(t),u=n.x+n.width/2-a.width/2,c=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2;switch(d){case"top":r={x:u,y:n.y-a.height};break;case"bottom":r={x:u,y:n.y+n.height};break;case"right":r={x:n.x+n.width,y:c};break;case"left":r={x:n.x-a.width,y:c};break;default:r={x:n.x,y:n.y}}let b=m(t);return b&&(r[s]+=g*("end"===b?1:-1)*(i&&"y"===o?-1:1)),r}async function T(e,t){var i;void 0===t&&(t={});let{x:r,y:n,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:m=!1,padding:p=0}=c(t,e),f=k(p),v=s[m?"floating"===h?"reference":"floating":h],g=x(await a.getClippingRect({element:null==(i=await (null==a.isElement?void 0:a.isElement(v)))||i?v:v.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:u,strategy:l})),b="floating"===h?{x:r,y:n,width:o.floating.width,height:o.floating.height}:o.reference,E=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await (null==a.isElement?void 0:a.isElement(E))&&await (null==a.getScale?void 0:a.getScale(E))||{x:1,y:1},w=x(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:E,strategy:l}):b);return{top:(g.top-w.top+f.top)/y.y,bottom:(w.bottom-g.bottom+f.bottom)/y.y,left:(g.left-w.left+f.left)/y.x,right:(w.right-g.right+f.right)/y.x}}let S=async(e,t,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:o}=i,s=o.detectOverflow?o:{...o,detectOverflow:T},l=await (null==o.isRTL?void 0:o.isRTL(t)),d=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:c}=_(d,r,l),h=r,m=0,p={};for(let i=0;i<a.length;i++){let f=a[i];if(!f)continue;let{name:v,fn:g}=f,{x:b,y:E,data:y,reset:w}=await g({x:u,y:c,initialPlacement:r,placement:h,strategy:n,middlewareData:p,rects:d,platform:s,elements:{reference:e,floating:t}});u=null!=b?b:u,c=null!=E?E:c,p[v]={...p[v],...y},w&&m<50&&(m++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(d=!0===w.rects?await o.getElementRects({reference:e,floating:t,strategy:n}):w.rects),{x:u,y:c}=_(d,h,l)),i=-1)}return{x:u,y:c,placement:h,strategy:n,middlewareData:p}};function I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function C(e){return n.some(t=>e[t]>=0)}let L=new Set(["left","top"]);async function M(e,t){let{placement:i,platform:r,elements:n}=e,a=await (null==r.isRTL?void 0:r.isRTL(n.floating)),o=h(i),s=m(i),l="y"===v(i),d=L.has(o)?-1:1,u=a&&l?-1:1,p=c(t,e),{mainAxis:f,crossAxis:g,alignmentAxis:b}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}
2683:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof b&&(g="end"===s?-1*b:b),l?{x:g*u,y:f*d}:{x:f*d,y:g*u}}function R(){return"undefined"!=typeof window}function D(e){return P(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(P(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function P(e){return!!R()&&(e instanceof Node||e instanceof O(e).Node)}function U(e){return!!R()&&(e instanceof Element||e instanceof O(e).Element)}function V(e){return!!R()&&(e instanceof HTMLElement||e instanceof O(e).HTMLElement)}function F(e){return!!R()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof O(e).ShadowRoot)}function W(e){let{overflow:t,overflowX:i,overflowY:r,display:n}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&"inline"!==n&&"contents"!==n}function H(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let B=/transform|translate|scale|rotate|perspective|filter/,j=/paint|layout|strict|content/,$=e=>!!e&&"none"!==e;function z(e){let t=U(e)?q(e):e;return $(t.transform)||$(t.translate)||$(t.scale)||$(t.rotate)||$(t.perspective)||!K()&&($(t.backdropFilter)||$(t.filter))||B.test(t.willChange||"")||j.test(t.contain||"")}function K(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function G(e){return/^(html|body|#document)$/.test(D(e))}function q(e){return O(e).getComputedStyle(e)}function Y(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===D(e))return e;let t=e.assignedSlot||e.parentNode||F(e)&&e.host||N(e);return F(t)?t.host:t}function Q(e,t,i){var r;void 0===t&&(t=[]),void 0===i&&(i=!0);let n=function e(t){let i=Z(t);return G(i)?(t.ownerDocument||t).body:V(i)&&W(i)?i:e(i)}(e),a=n===(null==(r=e.ownerDocument)?void 0:r.body),o=O(n);if(!a)return t.concat(n,Q(n,[],i));{let e=X(o);return t.concat(o,o.visualViewport||[],W(n)?n:[],e&&i?Q(e):[])}}function X(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function J(e){let t=q(e),i=parseFloat(t.width)||0,r=parseFloat(t.height)||0,n=V(e),a=n?e.offsetWidth:i,o=n?e.offsetHeight:r,l=s(i)!==a||s(r)!==o;return l&&(i=a,r=o),{width:i,height:r,$:l}}function ee(e){return U(e)?e:e.contextElement}function et(e){let t=ee(e);if(!V(t))return d(1);let i=t.getBoundingClientRect(),{width:r,height:n,$:a}=J(t),o=(a?s(i.width):i.width)/r,l=(a?s(i.height):i.height)/n;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}let ei=d(0);function er(e){let t=O(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ei}function en(e,t,i,r){var n;void 0===t&&(t=!1),void 0===i&&(i=!1);let a=e.getBoundingClientRect(),o=ee(e),s=d(1);t&&(r?U(r)&&(s=et(r)):s=et(e));let l=(void 0===(n=i)&&(n=!1),r&&n&&r===O(o))?er(o):d(0),u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,h=a.width/s.x,m=a.height/s.y;if(o&&r){let e=O(o),t=U(r)?O(r):r,i=e,n=X(i);for(;n&&t!==i;){let e=et(n),t=n.getBoundingClientRect(),r=q(n),a=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,h*=e.x,m*=e.y,u+=a,c+=o,n=X(i=O(n))}}return x({width:h,height:m,x:u,y:c})}function ea(e,t){let i=Y(e).scrollLeft;return t?t.left+i:en(N(e)).left+i}function eo(e,t){let i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-ea(e,i),y:i.top+t.scrollTop}}function es(e,t,i){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,i){void 0===i&&(i="viewport");let r="layoutViewport"===i,n=O(e),a=N(e),o=n.visualViewport,s=a.clientWidth,l=a.clientHeight,d=0,u=0;if(o){let e=!K()||"fixed"===t;r?e||(d=-o.offsetLeft,u=-o.offsetTop):(s=o.width,l=o.height,e&&(d=o.offsetLeft,u=o.offsetTop))}if(0>=ea(a)){let e=a.ownerDocument,t=e.body,i=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,n=Math.abs(a.clientWidth-t.clientWidth-r),o="stable both-edges"===getComputedStyle(a).scrollbarGutter?n/2:n;o<=25&&(s-=o)}return{width:s,height:l,x:d,y:u}}(e,i,t);else if("document"===t)r=function(e){let t=Y(e),i=e.ownerDocument.body,r=o(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=o(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),a=-t.scrollLeft+ea(e),s=-t.scrollTop;return"rtl"===q(i).direction&&(a+=o(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(N(e));else if(U(t))r=function(e,t){let i=en(e,!0,"fixed"===t),r=i.top+e.clientTop,n=i.left+e.clientLeft,a=et(e),o=e.clientWidth*a.x,s=e.clientHeight*a.y;return{width:o,height:s,x:n*a.x,y:r*a.y}}(t,i);else{let i=er(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return x(r)}function el(e){return"static"===q(e).position}function ed(e,t){if(!V(e)||"fixed"===q(e).position)return null;if(t)return t(e);let i=e.offsetParent;return N(e)===i&&(i=i.ownerDocument.body),i}function eu(e,t){var i;let r=O(e);if(H(e))return r;if(!V(e)){let t=Z(e);for(;t&&!G(t);){if(U(t)&&!el(t))return t;t=Z(t)}return r}let n=ed(e,t);for(;n&&(i=n,/^(table|td|th)$/.test(D(i)))&&el(n);)n=ed(n,t);return n&&G(n)&&el(n)&&!z(n)?r:n||function(e){let t=Z(e);for(;V(t)&&!G(t);){if(z(t))return t;if(H(t))break;t=Z(t)}return null}(e)||r}let ec=async function(e){let t=this.getOffsetParent||eu,i=this.getDimensions,r=await i(e.floating);return{reference:function(e,t,i){let r=V(t),n=N(t),a="fixed"===i,o=en(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=d(0);
2683if((r||!a)&&(("body"!==D(t)||W(n))&&(s=Y(t)),r)){let e=en(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&n&&(l.x=ea(n));let u=!n||r||a?d(0):eo(n,s);return{x:o.left+s.scrollLeft-l.x-u.x,y:o.top+s.scrollTop-l.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:r,strategy:n}=e,a="fixed"===n,o=N(r),s=!!t&&H(t.floating);if(r===o||s&&a)return i;let l={scrollLeft:0,scrollTop:0},u=d(1),c=d(0),h=V(r);if((h||!a)&&(("body"!==D(r)||W(o))&&(l=Y(r)),h)){let e=en(r);u=et(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let m=!o||h||a?d(0):eo(o,l);return{width:i.width*u.x,height:i.height*u.y,x:i.x*u.x-l.scrollLeft*u.x+c.x+m.x,y:i.y*u.y-l.scrollTop*u.y+c.y+m.y}},getDocumentElement:N,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:r,strategy:n}=e,s=[..."clippingAncestors"===i?H(t)?[]:function(e,t){let i=t.get(e);if(i)return i;let r=Q(e,[],!1).filter(e=>U(e)&&"body"!==D(e)),n=null,a="fixed"===q(e).position,o=a?Z(e):e;for(;U(o)&&!G(o);
2683){let e=q(o),t=z(o),i=n?n.position:a?"fixed":"";t||"fixed"!==i&&("absolute"!==i||"static"!==e.position)?n=e:r=r.filter(e=>e!==o),o=Z(o)}return t.set(e,r),r}(t,this._c):[].concat(i),r],l=es(t,s[0],n),d=l.top,u=l.right,c=l.bottom,h=l.left;for(let e=1;e<s.length;e++){let i=es(t,s[e],n);d=o(i.top,d),u=a(i.right,u),c=a(i.bottom,c),h=o(i.left,h)}return{width:u-h,height:c-d,x:h,y:d}},getOffsetParent:eu,getElementRects:ec,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:i}=J(e);return{width:t,height:i}},getScale:et,isElement:U,isRTL:function(e){return"rtl"===q(e).direction}};function em(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ep(e,t,i,r){let n;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:d=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,m=ee(e),p=s||d?[...m?Q(m):[],...t?Q(t):[]]:[];p.forEach(e=>{s&&e.addEventListener("scroll",i),d&&e.addEventListener("resize",i)});let f=m&&c?function(e,t,i){let r,n=null,s=N(e);function d(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}function u(i,c){void 0===i&&(i=!1),void 0===c&&(c=1),d();let h=e.getBoundingClientRect(),{left:m,top:p,width:f,height:v}=h;if(i||t(),!f||!v)return;let g=l(p),b=l(s.clientWidth-(m+f)),E={rootMargin:-g+"px "+-b+"px "+-l(s.clientHeight-(p+v))+"px "+-l(m)+"px",threshold:o(0,a(1,c))||1},y=!0;function w(t){let i=t[0].intersectionRatio;if(!em(h,e.getBoundingClientRect()))return u();if(i!==c){if(!y)return u();i?u(!1,i):r=setTimeout(()=>{u(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...E,root:s.ownerDocument})}catch(e){n=new IntersectionObserver(w,E)}n.observe(e)}let c=O(e),h=()=>u(i);return c.addEventListener("resize",h),u(!0),()=>{c.removeEventListener("resize",h),d()}}(m,i,d):null,v=-1,g=null;u&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===m&&g&&t&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),i()}),m&&!h&&g.observe(m),t&&g.observe(t));let b=h?en(e):null;return h&&function t(){let r=en(e);b&&!em(b,r)&&i(),b=r,n=requestAnimationFrame(t)}(),i(),()=>{var e;p.forEach(e=>{s&&e.removeEventListener("scroll",i),d&&e.removeEventListener("resize",i)}),null==f||f(),null==(e=g)||e.disconnect(),g=null,h&&cancelAnimationFrame(n)}}let ef=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var i,r;let{x:n,y:a,placement:o,middlewareData:s}=t,l=await M(t,e);return o===(null==(i=s.offset)?void 0:i.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:a+l.y,data:{...l,placement:o}}}}},ev=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:i,y:r,placement:n,platform:s}=t,{mainAxis:l=!0,crossAxis:d=!1,limiter:u={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...h}=c(e,t),m={x:i,y:r},f=await s.detectOverflow(t,h),g=v(n),b=p(g),E=m[b],y=m[g],w=(e,t)=>o(t+f["y"===e?"top":"left"],a(t,t-f["y"===e?"bottom":"right"]));l&&(E=w(b,E)),d&&(y=w(g,y));let A=u.fn({...t,[b]:E,[g]:y});return{...A,data:{x:A.x-i,y:A.y-r,enabled:{[b]:l,[g]:d}}}}}},eg=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var i,r,n,a,o;let{placement:s,middlewareData:l,rects:d,initialPlacement:u,platform:k,elements:x}=t,{mainAxis:_=!0,crossAxis:T=!0,fallbackPlacements:S,fallbackStrategy:I="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:L=!0,...M}=c(e,t);if(null!=(i=l.arrow)&&i.alignmentOffset)return{};let R=h(s),D=v(u),O=h(u)===u,N=await (null==k.isRTL?void 0:k.isRTL(x.floating)),P=S||(O||!L?[A(u)]:function(e){let t=A(e);return[g(e),t,g(t)]}(u)),U="none"!==C;!S&&U&&P.push(...function(e,t,i,r){let n=m(e),a=function(e,t,i){switch(e){case"top":case"bottom":if(i)return t?E:b;return t?b:E;case"left":case"right":return t?y:w;default:return[]}}(h(e),"start"===i,r);return n&&(a=a.map(e=>e+"-"+n),t&&(a=a.concat(a.map(g)))),a}(u,L,C,N));let V=[u,...P],F=await k.detectOverflow(t,M),W=[],H=(null==(r=l.flip)?void 0:r.overflows)||[];if(_&&W.push(F[R]),T){let e=function(e,t,i){void 0===i&&(i=!1);let r=m(e),n=p(v(e)),a=f(n),o="x"===n?r===(i?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=A(o)),[o,A(o)]}(s,d,N);W.push(F[e[0]],F[e[1]])}if(H=[...H,{placement:s,overflows:W}],!W.every(e=>e<=0)){let e=((null==(n=l.flip)?void 0:n.index)||0)+1,t=V[e];if(t&&("alignment"!==T||D===v(t)||H.every(e=>v(e.placement)!==D||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}};let i=null==(a=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>
2683e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!i)switch(I){case"bestFit":{let e=null==(o=H.filter(e=>{if(U){let t=v(e.placement);return t===D||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(i=e);break}case"initialPlacement":i=u}if(s!==i)return{reset:{placement:i}}}return{}}}},eb=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let i,r,{placement:n,rects:s,platform:l,elements:d}=t,{apply:u=()=>{},...p}=c(e,t),f=await l.detectOverflow(t,p),g=h(n),b=m(n),E="y"===v(n),{width:y,height:w}=s.floating;"top"===g||"bottom"===g?(i=g,r=b===(await (null==l.isRTL?void 0:l.isRTL(d.floating))?"start":"end")?"left":"right"):(r=g,i="end"===b?"top":"bottom");let A=w-f.top-f.bottom,k=y-f.left-f.right,x=a(w-f[i],A),_=a(y-f[r],k),T=t.middlewareData.shift,S=!T,I=x,C=_;null!=T&&T.enabled.x&&(C=k),null!=T&&T.enabled.y&&(I=A),S&&!b&&(E?C=y-2*o(f.left,f.right):I=w-2*o(f.top,f.bottom)),await u({...t,availableWidth:C,availableHeight:I});let L=await l.getDimensions(d.floating);return y!==L.width||w!==L.height?{reset:{rects:!0}}:{}}}},eE=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:i,platform:r}=t,{strategy:n="referenceHidden",...a}=c(e,t);switch(n){case"referenceHidden":{let e=I(await r.detectOverflow(t,{...a,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:C(e)}}}case"escaped":{let e=I(await r.detectOverflow(t,{...a,altBoundary:!0}),i.floating);return{data:{escapedOffsets:e,escaped:C(e)}}}default:return{}}}}},ey=e=>({name:"arrow",options:e,async fn(t){let{x:i,y:r,placement:n,rects:s,platform:l,elements:d,middlewareData:u}=t,{element:h,padding:g=0}=c(e,t)||{};if(null==h)return{};let b=k(g),E={x:i,y:r},y=p(v(n)),w=f(y),A=await l.getDimensions(h),x="y"===y,_=x?"clientHeight":"clientWidth",T=s.reference[w]+s.reference[y]-E[y]-s.floating[w],S=E[y]-s.reference[y],I=await (null==l.getOffsetParent?void 0:l.getOffsetParent(h)),C=I?I[_]:0;C&&await (null==l.isElement?void 0:l.isElement(I))||(C=d.floating[_]||s.floating[w]);let L=C/2-A[w]/2-1,M=a(b[x?"top":"left"],L),R=a(b[x?"bottom":"right"],L),D=C-A[w]-R,O=C/2-A[w]/2+(T/2-S/2),N=o(M,a(O,D)),P=!u.arrow&&null!=m(n)&&O!==N&&s.reference[w]/2-(O<M?M:R)-A[w]/2<0,U=P?O<M?O-M:O-D:0;return{[y]:E[y]+U,data:{[y]:N,centerOffset:O-N-U,...P&&{alignmentOffset:U}},reset:P}}}),ew=function(e){return void 0===e&&(e={}),{options:e,fn(t){var i,r,n,a;let{x:o,y:s,placement:l,rects:d,middlewareData:u}=t,{offset:m=0,mainAxis:f=!0,crossAxis:g=!0}=c(e,t),b={x:o,y:s},E=v(l),y=p(E),w=b[y],A=b[E],k=c(m,t),x="number"==typeof k?{mainAxis:k,crossAxis:0}:{mainAxis:null!=(i=k.mainAxis)?i:0,crossAxis:null!=(r=k.crossAxis)?r:0};if(f){let e="y"===y?"height":"width",t=d.reference[y]-d.floating[e]+x.mainAxis,i=d.reference[y]+d.reference[e]-x.mainAxis;w<t?w=t:w>i&&(w=i)}if(g){let e="y"===y?"width":"height",t=L.has(h(l)),i=d.reference[E]-d.floating[e]+(t&&(null==(n=u.offset)?void 0:n[E])||0)+(t?0:x.crossAxis),r=d.reference[E]+d.reference[e]+(t?0:(null==(a=u.offset)?void 0:a[E])||0)-(t?x.crossAxis:0);A<i?A=i:A>r&&(A=r)}return{[y]:w,[E]:A}}}},eA=(e,t,i)=>{let r=new Map,n=null!=i?i:{},a={...eh,...n.platform,_c:r};return S(e,t,{...n,platform:a})}},48911:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=i(52936),n=r.useLayoutEffect,a=r.useEffect;function o(e){let{headManager:t,reduceComponentsToState:i}=e;function o(){if(t&&t.mountedInstances){let n=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(i(n,e))}}return n(()=>{var i;return null==t||null==(i=t.mountedInstances)||i.add(e.children),()=>{var i;null==t||null==(i=t.mountedInstances)||i.delete(e.children)}}),n(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},49207:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return s},urlObjectKeys:function(){return o}});let r=i(64983)._(i(19125)),n=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:i}=e,a=e.protocol||"",o=e.pathname||"",s=e.hash||"",l=e.query||"",d=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?d=t+e.host:i&&(
2683d=t+(~i.indexOf(":")?"["+i+"]":i),e.port&&(d+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let u=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||n.test(a))&&!1!==d?(d="//"+(d||""),o&&"/"!==o[0]&&(o="/"+o)):d||(d=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),""+a+d+(o=o.replace(/[?#]/g,encodeURIComponent))+(u=u.replace("#","%23"))+s}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return a(e)}},50394:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=i(72701),n=i(33244);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),i=new URL(e,t);return i.origin===t&&(0,n.hasBasePath)(i.pathname)}catch(e){return!1}}},52462:(e,t,i)=>{i.d(t,{i:()=>s});var r,n=i(52936),a=i(36522),o=(r||(r=i.t(n,2)))[" useInsertionEffect ".trim().toString()]||a.N;function s({prop:e,defaultProp:t,onChange:i=()=>{},caller:r}){let[a,s,l]=function({defaultProp:e,onChange:t}){let[i,r]=n.useState(e),a=n.useRef(i),s=n.useRef(t);return o(()=>{s.current=t},[t]),n.useEffect(()=>{a.current!==i&&(s.current?.(i),a.current=i)},[i,a]),[i,r,s]}({defaultProp:t,onChange:i}),d=void 0!==e,u=d?e:a;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=d},[d,r])}return[u,n.useCallback(t=>{if(d){let i="function"==typeof t?t(e):t;i!==e&&l.current?.(i)}else s(t)},[d,e,s,l])]}Symbol("RADIX:SYNC_STATE")},54412:(e,t,i)=>{i.d(t,{Z:()=>n});var r=i(52936);function n(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},58118:(e,t,i)=>{i.d(t,{n:()=>c});var r=i(52936),n=i(37807),a=i(76589),o=i(64524),s=i(55524),l="focusScope.autoFocusOnMount",d="focusScope.autoFocusOnUnmount",u={bubbles:!1,cancelable:!0},c=r.forwardRef((e,t)=>{let{loop:i=!1,trapped:c=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...b}=e,[E,y]=r.useState(null),w=(0,o.c)(v),A=(0,o.c)(g),k=r.useRef(null),x=(0,n.s)(t,y),_=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(c){let e=function(e){if(_.paused||!E)return;let t=e.target;E.contains(t)?k.current=t:p(k.current,{select:!0})},t=function(e){if(_.paused||!E)return;let t=e.relatedTarget;null!==t&&(E.contains(t)||p(k.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let i=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(E)});return E&&i.observe(E,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),i.disconnect()}}},[c,E,_.paused]),r.useEffect(()=>{if(E){f.add(_);let e=document.activeElement;if(!E.contains(e)){let t=new CustomEvent(l,u);E.addEventListener(l,w),E.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==i)return}(h(E).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(E))}return()=>{E.removeEventListener(l,w),setTimeout(()=>{let t=new CustomEvent(d,u);E.addEventListener(d,A),E.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),E.removeEventListener(d,A),f.remove(_)},0)}}},[E,w,A,_]);let T=r.useCallback(e=>{if(!i&&!c||_.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[n,a]=function(e){let t=h(e);return[m(t,e),m(t.reverse(),e)]}(t);n&&a?e.shiftKey||r!==a?e.shiftKey&&r===n&&(e.preventDefault(),i&&p(a,{select:!0})):(e.preventDefault(),i&&p(n,{select:!0})):r===t&&e.preventDefault()}},[i,c,_.paused]);return(0,s.jsx)(a.sG.div,{tabIndex:-1,...b,ref:x,onKeyDown:T})});function h(e){let t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t}function m(e,t){let i="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(i?!r.checkVisibility({checkVisibilityCSS:!0}):function(e,t){let{upTo:i}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===i||e!==i);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t})))return r}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var i;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(i=e)instanceof HTMLInputElement&&"select"in i&&t&&e.select()}}c.displayName="FocusScope";var f=function(){let e=[];return{add(t){let i=e[0];t!==i&&(null==i||i.pause()),(e=v(e,t)).unshift(t)},remove(t){var i;null==(i=(e=v(e,t))[0])||i.resume()}}}();function v(e,t){let i=[...e],r=i.indexOf(t);return -1!==r&&i.splice(r,1),i}},60955:(e,t,i)=>{i.d(t,{e0:()=>m,qW:()=>h});var r,n=i(52936),a=i(2884),o=i(76589),s=i(37807),l=i(64524),d=i(55524),u="dismissableLayer.update",c=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),h=n.forwardRef((e,t)=>
2683{var i,h;let{disableOutsidePointerEvents:m=!1,deferPointerDownOutside:g=!1,onEscapeKeyDown:b,onPointerDownOutside:E,onFocusOutside:y,onInteractOutside:w,onDismiss:A,...k}=e,x=n.useContext(c),[_,T]=n.useState(null),S=null!=(h=null==_?void 0:_.ownerDocument)?h:null==(i=globalThis)?void 0:i.document,[,I]=n.useState({}),C=(0,s.s)(t,T),L=Array.from(x.layers),[M]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),R=M?L.indexOf(M):-1,D=_?L.indexOf(_):-1,O=x.layersWithOutsidePointerEventsDisabled.size>0,N=D>=R,P=n.useRef(!1),U=function(e,t){var i;let{ownerDocument:r=null==(i=globalThis)?void 0:i.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:s,shouldHandlePointerDownOutside:d=p}=t,u=(0,l.c)(e),c=n.useRef(!1),h=n.useRef(!1),m=n.useRef(new Map),f=n.useRef(()=>{});return n.useEffect(()=>{function e(){h.current=!1,o.current=!1,m.current.clear()}function t(e){if(!h.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||m.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{h.current&&f.current()},0)}function i(e){h.current&&m.current.set(e.type,!1)}let n=t=>{if(t.target&&!c.current){let i=function(){r.removeEventListener("click",f.current);let t=Array.from(m.current.values()).some(Boolean);e(),t||v("dismissableLayer.pointerDownOutside",u,n,{discrete:!0})};if(!d(t.target)){r.removeEventListener("click",f.current),e(),c.current=!1;return}let n={originalEvent:t};h.current=!0,o.current=a&&0===t.button,m.current.clear(),a&&0===t.button?(r.removeEventListener("click",f.current),f.current=i,r.addEventListener("click",f.current,{once:!0})):i()}else r.removeEventListener("click",f.current),e();c.current=!1},l=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of l)r.addEventListener(e,t,!0),r.addEventListener(e,i);let p=window.setTimeout(()=>{r.addEventListener("pointerdown",n)},0);return()=>{for(let e of(window.clearTimeout(p),r.removeEventListener("pointerdown",n),r.removeEventListener("click",f.current),l))r.removeEventListener(e,t,!0),r.removeEventListener(e,i)}},[r,u,a,o,s,d]),{onPointerDownCapture:()=>c.current=!0}}(e=>{null==E||E(e),null==w||w(e),e.defaultPrevented||null==A||A()},{ownerDocument:S,deferPointerDownOutside:g,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:x.dismissableSurfaces,shouldHandlePointerDownOutside:n.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...x.branches].some(t=>t.contains(e));return N&&!t},[x.branches,N])}),V=function(e){var t;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,l.c)(e),a=n.useRef(!1);return n.useEffect(()=>{let e=e=>{e.target&&!a.current&&v("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return i.addEventListener("focusin",e),()=>i.removeEventListener("focusin",e)},[i,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{if(g&&P.current)return;let t=e.target;![...x.branches].some(e=>e.contains(t))&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==A||A())},S),F=!!_&&D===L.length-1,W=(0,l.c)(e=>{"Escape"===e.key&&(null==b||b(e),!e.defaultPrevented&&A&&(e.preventDefault(),A()))});return n.useEffect(()=>{if(F)return S.addEventListener("keydown",W,{capture:!0}),()=>S.removeEventListener("keydown",W,{capture:!0})},[S,F,W]),n.useEffect(()=>{if(_)return m&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(_)),x.layers.add(_),f(),()=>{m&&(x.layersWithOutsidePointerEventsDisabled.delete(_),0===x.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r))}},[_,S,m,x]),n.useEffect(()=>()=>{_&&(x.layers.delete(_),x.layersWithOutsidePointerEventsDisabled.delete(_),f())},[_,x]),n.useEffect(()=>{let e=()=>I({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,d.jsx)(o.sG.div,{...k,ref:C,style:{pointerEvents:O?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.mK)(e.onFocusCapture,V.onFocusCapture),onBlurCapture:(0,a.mK)(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:(0,a.mK)(e.onPointerDownCapture,U.onPointerDownCapture)})});function m(){let e=n.useContext(c),[t,i]=n.useState(null);return n.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),i}h.displayName="DismissableLayer",n.forwardRef((e,t)=>
2683{let i=n.useContext(c),r=n.useRef(null),a=(0,s.s)(t,r);return n.useEffect(()=>{let e=r.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}},[i.branches]),(0,d.jsx)(o.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var p=()=>!0;function f(){let e=new CustomEvent(u);document.dispatchEvent(e)}function v(e,t,i,r){let{discrete:n}=r,a=i.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});t&&a.addEventListener(e,t,{once:!0}),n?(0,o.hO)(a,s):a.dispatchEvent(s)}},61017:(e,t,i)=>{i.d(t,{Ay:()=>ew,os:()=>ew});var r,n,a,o,s,l,d,u=i(64419),c={},h=180/Math.PI,m=Math.PI/180,p=Math.atan2,f=/([A-Z])/g,v=/(left|right|width|margin|padding|x)/i,g=/[\s,\(]\S/,b={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},E=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},y=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},w=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},A=function(e,t){return t.set(t.t,t.p,1===e?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},k=function(e,t){var i=t.s+t.c*e;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)},x=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},_=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},T=function(e,t,i){return e.style[t]=i},S=function(e,t,i){return e.style.setProperty(t,i)},I=function(e,t,i){return e._gsap[t]=i},C=function(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i},L=function(e,t,i,r,n){var a=e._gsap;a.scaleX=a.scaleY=i,a.renderTransform(n,a)},M=function(e,t,i,r,n){var a=e._gsap;a[t]=i,a.renderTransform(n,a)},R="transform",D=R+"Origin",O=function e(t,i){var r=this,n=this.target,a=n.style,o=n._gsap;if(t in c&&a){if(this.tfm=this.tfm||{},"transform"===t)return b.transform.split(",").forEach(function(t){return e.call(r,t,i)});if(~(t=b[t]||t).indexOf(",")?t.split(",").forEach(function(e){return r.tfm[e]=X(n,e)}):this.tfm[t]=o.x?o[t]:X(n,t),t===D&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(R)>=0)return;o.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(D,i,"")),t=R}(a||i)&&this.props.push(t,i,a[t])},N=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},P=function(){var e,t,i=this.props,r=this.target,n=r.style,a=r._gsap;for(e=0;e<i.length;e+=3)i[e+1]?2===i[e+1]?r[i[e]](i[e+2]):r[i[e]]=i[e+2]:i[e+2]?n[i[e]]=i[e+2]:n.removeProperty("--"===i[e].substr(0,2)?i[e]:i[e].replace(f,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)a[t]=this.tfm[t];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(e=l())&&e.isStart||n[R]||(N(n),a.zOrigin&&n[D]&&(n[D]+=" "+a.zOrigin+"px",a.zOrigin=0,a.renderTransform()),a.uncache=1)}},U=function(e,t){var i={target:e,props:[],revert:P,save:O};return e._gsap||u.os.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(e){return i.save(e)}),i},V=function(e,t){var i=r.createElementNS?r.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):r.createElement(e);return i&&i.style?i:r.createElement(e)},F=function e(t,i,r){var n=getComputedStyle(t);return n[i]||n.getPropertyValue(i.replace(f,"-$1").toLowerCase())||n.getPropertyValue(i)||!r&&e(t,H(i)||i,1)||""},W="O,Moz,ms,Ms,Webkit".split(","),H=function(e,t,i){var r=(t||o).style,n=5;if(e in r&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);n--&&!(W[n]+e in r););return n<0?null:(3===n?"ms":n>=0?W[n]:"")+e},B=function(){"undefined"!=typeof window&&window.document&&(n=(r=window.document).documentElement,o=V("div")||{style:{}},V("div"),D=(R=H(R))+"Origin",o.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",d=!!H("perspective"),l=u.os.core.reverting,a=1)},j=function(e){var t,i=e.ownerSVGElement,r=V("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),a=e.cloneNode(!0);a.style.display="block",r.appendChild(a),n.appendChild(r);try{t=a.getBBox()}catch(e){}return r.removeChild(a),n.removeChild(r),t},$=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},z=function(e){var t,i;try{t=e.getBBox()}catch(r){t=j(e),i=1}return t&&(t.width||t.height)||i||(t=j(e)),!t||t.width||t.x||t.y?t:{x:+$(e,["x","cx","x1"])||0,y:+$(e,["y","cy","y1"])||0,width:0,height:0}},K=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&z(e))},G=function(e,t){if(t){var i,r=e.style;t in c&&t!==D&&(t=R),r.removeProperty?(("ms"===(i=t.substr(0,2))||"webkit"===t.substr(0,6))&&(t="-"+t),r.removeProperty("--"===i?t:t.replace(f,"-$1").toLowerCase())):r.removeAttribute(t)}},q=function(e,t,i,r,n,a){var o=new u.J7(e._pt,t,i,0,1,a?_:x);return e._pt=o,o.b=r,o.e=n,e._props.push(i),o},Y={deg:1,rad:1,turn:1},Z={grid:1,flex:1},Q=function e(t,i,n,a){var s,l,d,h,m=parseFloat(n)||0,p=(n+"").trim().substr((m+"").length)||"px",f=o.style,g=v.test(i),b="svg"===t.tagName.toLowerCase(),E=(b?"client":"offset")+(g?"Width":"Height"),y="px"===a,w="%"===a;if(a===p||!m||Y[a]||Y[p])return m;if("px"===p||y||(m=e(t,i,n,"px")),h=t.getCTM&&K(t),(w||"%"===p)&&(c[i]||~i.indexOf("adius")))return s=h?t.getBBox()[g?"width":"height"]:t[E],(0,u.E_)(w?m/s*100:m/100*s);if(f[g?"width":"height"]=100+(y?p:a),l="rem"!==a&&~i.indexOf("adius")||"em"===a&&t.appendChild&&!b?t:t.parentNode,h&&(l=(t.ownerSVGElement||{}).parentNode),l&&l!==r&&l.appendChild||(l=r.body),(d=l._gsap)&&w&&d.width&&g&&d.time===u.au.time&&!d.uncache)return(0,u.E_)(m/d.width*100);if(w&&("height"===i||"width"===i)){var A=t.style[i];
2683t.style[i]=100+a,s=t[E],A?t.style[i]=A:G(t,i)}else(w||"%"===p)&&!Z[F(l,"display")]&&(f.position=F(t,"position")),l===t&&(f.position="static"),l.appendChild(o),s=o[E],l.removeChild(o),f.position="absolute";return g&&w&&((d=(0,u.a0)(l)).time=u.au.time,d.width=l[E]),(0,u.E_)(y?s*m/100:s&&m?100/s*m:0)},X=function(e,t,i,r){var n;return a||B(),t in b&&"transform"!==t&&~(t=b[t]).indexOf(",")&&(t=t.split(",")[0]),c[t]&&"transform"!==t?(n=eu(e,r),n="transformOrigin"!==t?n[t]:n.svg?n.origin:ec(F(e,D))+" "+n.zOrigin+"px"):(!(n=e.style[t])||"auto"===n||r||~(n+"").indexOf("calc("))&&(n=er[t]&&er[t](e,t,i)||F(e,t)||(0,u.n)(e,t)||+("opacity"===t)),i&&!~(n+"").trim().indexOf(" ")?Q(e,t,n,i)+i:n},J=function(e,t,i,r){if(!i||"none"===i){var n=H(t,e,1),a=n&&F(e,n,1);a&&a!==i?(t=n,i=a):"borderColor"===t&&(i=F(e,"borderTopColor"))}var o,s,l,d,c,h,m,p,f,v,g,b=new u.J7(this._pt,e.style,t,0,1,u.l1),E=0,y=0;if(b.b=i,b.e=r,i+="","var(--"===(r+="").substring(0,6)&&(r=F(e,r.substring(4,r.indexOf(")")))),"auto"===r&&(h=e.style[t],e.style[t]=r,r=F(e,t)||r,h?e.style[t]=h:G(e,t)),o=[i,r],(0,u.Uc)(o),i=o[0],r=o[1],l=i.match(u.vM)||[],(r.match(u.vM)||[]).length){for(;s=u.vM.exec(r);)m=s[0],f=r.substring(E,s.index),c?c=(c+1)%5:("rgba("===f.substr(-5)||"hsla("===f.substr(-5))&&(c=1),m!==(h=l[y++]||"")&&(d=parseFloat(h)||0,g=h.substr((d+"").length),"="===m.charAt(1)&&(m=(0,u.B0)(d,m)+g),p=parseFloat(m),v=m.substr((p+"").length),E=u.vM.lastIndex-v.length,v||(v=v||u.Yz.units[t]||g,E===r.length&&(r+=v,b.e+=v)),g!==v&&(d=Q(e,t,h,v)||0),b._pt={_next:b._pt,p:f||1===y?f:",",s:d,c:p-d,m:c&&c<4||"zIndex"===t?Math.round:0});b.c=E<r.length?r.substring(E,r.length):""}else b.r="display"===t&&"none"===r?_:x;return u.Ks.test(r)&&(b.e=0),this._pt=b,b},ee={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},et=function(e){var t=e.split(" "),i=t[0],r=t[1]||"50%";return("top"===i||"bottom"===i||"left"===r||"right"===r)&&(e=i,i=r,r=e),t[0]=ee[i]||i,t[1]=ee[r]||r,t.join(" ")},ei=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var i,r,n,a=t.t,o=a.style,s=t.u,l=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(n=(s=s.split(",")).length;--n>-1;)c[i=s[n]]&&(r=1,i="transformOrigin"===i?D:R),G(a,i);r&&(G(a,R),l&&(l.svg&&a.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",eu(a,1),l.uncache=1,N(o)))}},er={clearProps:function(e,t,i,r,n){if("isFromStart"!==n.data){var a=e._pt=new u.J7(e._pt,t,i,0,0,ei);return a.u=r,a.pr=-10,a.tween=n,e._props.push(i),1}}},en=[1,0,0,1,0,0],ea={},eo=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},es=function(e){var t=F(e,R);return eo(t)?en:t.substr(7).match(u.vX).map(u.E_)},el=function(e,t){var i,r,a,o,s=e._gsap||(0,u.a0)(e),l=e.style,d=es(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(d=[(a=e.transform.baseVal.consolidate().matrix).a,a.b,a.c,a.d,a.e,a.f]).join(",")?en:d:(d!==en||e.offsetParent||e===n||s.svg||(a=l.display,l.display="block",(i=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(o=1,r=e.nextElementSibling,n.appendChild(e)),d=es(e),a?l.display=a:G(e,"display"),o&&(r?i.insertBefore(e,r):i?i.appendChild(e):n.removeChild(e))),t&&d.length>6?[d[0],d[1],d[4],d[5],d[12],d[13]]:d)},ed=function(e,t,i,r,n,a){var o,s,l,d,u=e._gsap,c=n||el(e,!0),h=u.xOrigin||0,m=u.yOrigin||0,p=u.xOffset||0,f=u.yOffset||0,v=c[0],g=c[1],b=c[2],E=c[3],y=c[4],w=c[5],A=t.split(" "),k=parseFloat(A[0])||0,x=parseFloat(A[1])||0;i?c!==en&&(s=v*E-g*b)&&(l=E/s*k+-b/s*x+(b*w-E*y)/s,d=-g/s*k+v/s*x-(v*w-g*y)/s,k=l,x=d):(k=(o=z(e)).x+(~A[0].indexOf("%")?k/100*o.width:k),x=o.y+(~(A[1]||A[0]).indexOf("%")?x/100*o.height:x)),r||!1!==r&&u.smooth?(u.xOffset=p+((y=k-h)*v+(w=x-m)*b)-y,u.yOffset=f+(y*g+w*E)-w):u.xOffset=u.yOffset=0,u.xOrigin=k,u.yOrigin=x,u.smooth=!!r,u.origin=t,u.originIsAbsolute=!!i,e.style[D]="0px 0px",a&&(q(a,u,"xOrigin",h,k),q(a,u,"yOrigin",m,x),q(a,u,"xOffset",p,u.xOffset),q(a,u,"yOffset",f,u.yOffset)),e.setAttribute("data-svg-origin",k+" "+x)},eu=function(e,t){var i=e._gsap||new u.n6(e);if("x"in i&&!t&&!i.uncache)return i;var r,n,a,o,s,l,c,f,v,g,b,E,y,w,A,k,x,_,T,S,I,C,L,M,O,N,P,U,V,W,H,B,j=e.style,$=i.scaleX<0,z=getComputedStyle(e),G=F(e,D)||"0";return r=n=a=l=c=f=v=g=b=0,o=s=1,i.svg=!!(e.getCTM&&K(e)),z.translate&&(("none"!==z.translate||"none"!==z.scale||"none"!==z.rotate)&&(j[R]=("none"!==z.translate?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==z.rotate?"rotate("+z.rotate+") ":"")+("none"!==z.scale?"scale("+z.scale.split(" ").join(",")+") ":"")+("none"!==z[R]?z[R]:"")),j.scale=j.rotate=j.translate="none"),w=el(e,i.svg),i.svg&&(i.uncache?(O=e.getBBox(),G=i.xOrigin-O.x+"px "+(i.yOrigin-O.y)+"px",M=""):M=!t&&e.getAttribute("data-svg-origin"),ed(e,M||G,!!M||i.originIsAbsolute,!1!==i.smooth,w)),E=i.xOrigin||0,y=i.yOrigin||0,w!==en&&(_=w[0],T=w[1],S=w[2],I=w[3],r=C=w[4],n=L=w[5],6===w.length?(o=Math.sqrt(_*_+T*T),s=Math.sqrt(I*I+S*S),l=_||T?p(T,_)*h:0,(v=S||I?p(S,I)*h+l:0)&&(s*=Math.abs(Math.cos(v*m))),i.svg&&(r-=E-(E*_+y*S),n-=y-(E*T+y*I))):(B=w[6],W=w[7],P=w[8],U=w[9],V=w[10],H=w[11],r=w[12],n=w[13],a=w[14],c=(A=p(B,V))*h,A&&(M=C*(k=Math.cos(-A))+P*(x=Math.sin(-A)),O=L*k+U*x,N=B*k+V*x,P=-(C*x)+P*k,U=-(L*x)+U*k,V=-(B*x)+V*k,H=-(W*x)+H*k,C=M,L=O,B=N),f=(A=p(-S,V))*h,A&&(M=_*(k=Math.cos(-A))-P*(x=Math.sin(-A)),O=T*k-U*x,N=S*k-V*x,H=I*x+H*k,_=M,T=O,S=N),l=(A=p(T,_))*h,A&&(M=_*(k=Math.cos(A))+T*(x=Math.sin(A)),O=C*k+L*x,T=T*k-_*x,L=L*k-C*x,_=M,C=O),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,f=180-f),o=(0,u.E_)(Math.sqrt(_*_+T*T+S*S)),s=(0,u.E_)(Math.sqrt(L*L+B*B)),v=Math.abs(A=p(C,L))>2e-4?A*h:0,b=H?1/(H<0?-H:H):0),i.svg&&(M=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!eo(F(e,R)),M&&e.setAttribute("transform",M))),Math.abs(v)>90&&270>Math.abs(v)&&($?(o*=-1,v+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,v+=v<=0?180:-180)),t=t||i.uncache,i.x=r-((i.xPercent=r&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+"px",i.y=n-((i.yPercent=n&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-n)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+"px",i.z=a+"px",i.scaleX=(0,u.E_)(o),i.scaleY=(0,u.E_)(s),i.rotation=(0,u.E_)(l)+"deg",i.rotationX=(0,u.E_)(c)+"deg",i.rotationY=(0,u.E_)(f)+"deg",i.skewX=v+"deg",i.skewY=g+"deg",i.transformPerspective=b+"px",(i.zOrigin=parseFloat(G.split(" ")[2])||!t&&i.zOrigin||0)&&(j[D]=ec(G)),i.xOffset=i.yOffset=0,i.force3D=u.Yz.force3D,i.renderTransform=i.svg?ev:d?ef:em,i.uncache=0,i},ec=function(e){return(e=e.split(" "))[0]+" "+e[1]},eh=function(e,t,i){var r=(0,u.l_)(t);return(0,u.E_)(parseFloat(t)+parseFloat(Q(e,"x",i+"px",r)))+r},em=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,ef(e,t)},ep="0deg",ef=function(e,t){var i=t||this,r=i.xPercent,n=i.yPercent,a=i.x,o=i.y,s=i.z,l=i.rotation,d=i.rotationY,u=i.rotationX,c=i.skewX,h=i.skewY,p=i.scaleX,f=i.scaleY,v=i.transformPerspective,g=i.force3D,b=i.target,E=i.zOrigin,y="",w="auto"===g&&e&&1!==e||!0===g;if(E&&(u!==ep||d!==ep)){var A,k=parseFloat(d)*m,x=Math.sin(k),_=Math.cos(k);
2683a=eh(b,a,-(x*(A=Math.cos(k=parseFloat(u)*m))*E)),o=eh(b,o,-(-Math.sin(k)*E)),s=eh(b,s,-(_*A*E)+E)}"0px"!==v&&(y+="perspective("+v+") "),(r||n)&&(y+="translate("+r+"%, "+n+"%) "),(w||"0px"!==a||"0px"!==o||"0px"!==s)&&(y+="0px"!==s||w?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+") "),l!==ep&&(y+="rotate("+l+") "),d!==ep&&(y+="rotateY("+d+") "),u!==ep&&(y+="rotateX("+u+") "),(c!==ep||h!==ep)&&(y+="skew("+c+", "+h+") "),(1!==p||1!==f)&&(y+="scale("+p+", "+f+") "),b.style[R]=y||"translate(0, 0)"},ev=function(e,t){var i,r,n,a,o,s=t||this,l=s.xPercent,d=s.yPercent,c=s.x,h=s.y,p=s.rotation,f=s.skewX,v=s.skewY,g=s.scaleX,b=s.scaleY,E=s.target,y=s.xOrigin,w=s.yOrigin,A=s.xOffset,k=s.yOffset,x=s.forceCSS,_=parseFloat(c),T=parseFloat(h);p=parseFloat(p),f=parseFloat(f),(v=parseFloat(v))&&(f+=v=parseFloat(v),p+=v),p||f?(p*=m,f*=m,i=Math.cos(p)*g,r=Math.sin(p)*g,n=-(Math.sin(p-f)*b),a=Math.cos(p-f)*b,f&&(v*=m,n*=o=Math.sqrt(1+(o=Math.tan(f-v))*o),a*=o,v&&(i*=o=Math.sqrt(1+(o=Math.tan(v))*o),r*=o)),i=(0,u.E_)(i),r=(0,u.E_)(r),n=(0,u.E_)(n),a=(0,u.E_)(a)):(i=g,a=b,r=n=0),(_&&!~(c+"").indexOf("px")||T&&!~(h+"").indexOf("px"))&&(_=Q(E,"x",c,"px"),T=Q(E,"y",h,"px")),(y||w||A||k)&&(_=(0,u.E_)(_+y-(y*i+w*n)+A),T=(0,u.E_)(T+w-(y*r+w*a)+k)),(l||d)&&(o=E.getBBox(),_=(0,u.E_)(_+l/100*o.width),T=(0,u.E_)(T+d/100*o.height)),o="matrix("+i+","+r+","+n+","+a+","+_+","+T+")",E.setAttribute("transform",o),x&&(E.style[R]=o)},eg=function(e,t,i,r,n){var a,o,s=(0,u.vQ)(n),l=parseFloat(n)*(s&&~n.indexOf("rad")?h:1)-r,d=r+l+"deg";return s&&("short"===(a=n.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===a&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===a&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),e._pt=o=new u.J7(e._pt,t,i,r,l,y),o.e=d,o.u="deg",e._props.push(i),o},eb=function(e,t){for(var i in t)e[i]=t[i];return e},eE=function(e,t,i){var r,n,a,o,s,l,d,h=eb({},i._gsap),m=i.style;for(n in h.svg?(a=i.getAttribute("transform"),i.setAttribute("transform",""),m[R]=t,r=eu(i,1),G(i,R),i.setAttribute("transform",a)):(a=getComputedStyle(i)[R],m[R]=t,r=eu(i,1),m[R]=a),c)(a=h[n])!==(o=r[n])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)&&(s=(0,u.l_)(a)!==(d=(0,u.l_)(o))?Q(i,n,a,d):parseFloat(a),l=parseFloat(o),e._pt=new u.J7(e._pt,r,n,s,l-s,E),e._pt.u=d||0,e._props.push(n));eb(r,h)};(0,u.fA)("padding,margin,Width,Radius",function(e,t){var i="Right",r="Bottom",n="Left",a=(t<3?["Top",i,r,n]:["Top"+n,"Top"+i,r+i,r+n]).map(function(i){return t<2?e+i:"border"+i+e});er[t>1?"border"+e:e]=function(e,t,i,r,n){var o,s;if(arguments.length<4)return 5===(s=(o=a.map(function(t){return X(e,t,i)})).join(" ")).split(o[0]).length?o[0]:s;o=(r+"").split(" "),s={},a.forEach(function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]}),e.init(t,s,n)}});var ey={name:"css",register:B,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,r,n){var o,s,l,d,h,m,p,f,v,y,x,_,T,S,I,C,L,M=this._props,O=e.style,N=i.vars.startAt;for(p in a||B(),this.styles=this.styles||U(e),C=this.styles.props,this.tween=i,t)if("autoRound"!==p&&(s=t[p],!(u.wU[p]&&(0,u.Zm)(p,t,i,r,e,n)))){if(h=typeof s,m=er[p],"function"===h&&(h=typeof(s=s.call(i,r,e,n))),"string"===h&&~s.indexOf("random(")&&(s=(0,u.Vy)(s)),m)m(this,e,p,s,i)&&(I=1);else if("--"===p.substr(0,2))o=(getComputedStyle(e).getPropertyValue(p)+"").trim(),s+="",u.qA.lastIndex=0,!u.qA.test(o)&&(f=(0,u.l_)(o),(v=(0,u.l_)(s))?f!==v&&(o=Q(e,p,o,v)+v):f&&(s+=f)),this.add(O,"setProperty",o,s,r,n,0,0,p),M.push(p),C.push(p,0,O[p]);else if("undefined"!==h){if(N&&p in N?(o="function"==typeof N[p]?N[p].call(i,r,e,n):N[p],(0,u.vQ)(o)&&~o.indexOf("random(")&&(o=(0,u.Vy)(o)),(0,u.l_)(o+"")||"auto"===o||(o+=u.Yz.units[p]||(0,u.l_)(X(e,p))||""),"="===(o+"").charAt(1)&&(o=X(e,p))):o=X(e,p),d=parseFloat(o),(y="string"===h&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),l=parseFloat(s),p in b&&("autoAlpha"===p&&(1===d&&"hidden"===X(e,"visibility")&&l&&(d=0),C.push("visibility",0,O.visibility),q(this,O,"visibility",d?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==p&&"transform"!==p&&~(p=b[p]).indexOf(",")&&(p=p.split(",")[0])),x=p in c){if(this.styles.save(p),L=s,"string"===h&&"var(--"===s.substring(0,6)){if("calc("===(s=F(e,s.substring(4,s.indexOf(")")))).substring(0,5)){var P=e.style.perspective;e.style.perspective=s,s=F(e,"perspective"),P?e.style.perspective=P:G(e,"perspective")}l=parseFloat(s)}if(_||((T=e._gsap).renderTransform&&!t.parseTransform||eu(e,t.parseTransform),S=!1!==t.smoothOrigin&&T.smooth,(_=this._pt=new u.J7(this._pt,O,R,0,1,T.renderTransform,T,0,-1)).dep=1),"scale"===p)this._pt=new u.J7(this._pt,T,"scaleY",T.scaleY,(y?(0,u.B0)(T.scaleY,y+l):l)-T.scaleY||0,E),this._pt.u=0,M.push("scaleY",p),p+="X";else if("transformOrigin"===p){C.push(D,0,O[D]),s=et(s),T.svg?ed(e,s,0,S,0,this):((v=parseFloat(s.split(" ")[2])||0)!==T.zOrigin&&q(this,T,"zOrigin",T.zOrigin,v),q(this,O,p,ec(o),ec(s)));continue}else if("svgOrigin"===p){ed(e,s,1,S,0,this);continue}else if(p in ea){eg(this,T,p,d,y?(0,u.B0)(d,y+s):s);continue}else if("smoothOrigin"===p){q(this,T,"smooth",T.smooth,s);continue}else if("force3D"===p){T[p]=s;continue}else if("transform"===p){eE(this,s,e);continue}}else p in O||(p=H(p)||p);if(x||(l||0===l)&&(d||0===d)&&!g.test(s)&&p in O)f=(o+"").substr((d+"").length),l||(l=0),v=(0,u.l_)(s)||(p in u.Yz.units?u.Yz.units[p]:f),f!==v&&(d=Q(e,p,o,v)),this._pt=new u.J7(this._pt,x?T:O,p,d,(y?(0,u.B0)(d,y+l):l)-d,!x&&("px"===v||"zIndex"===p)&&!1!==t.autoRound?k:E),this._pt.u=v||0,x&&L!==s?(this._pt.b=o,this._pt.e=L,this._pt.r=A):f!==v&&"%"!==v&&(this._pt.b=o,this._pt.r=w);
2683else if(p in O)J.call(this,e,p,o,y?y+s:s);else if(p in e)this.add(e,p,o||e[p],y?y+s:s,r,n);else if("parseTransform"!==p){(0,u.dg)(p,s);continue}x||(p in O?C.push(p,0,O[p]):"function"==typeof e[p]?C.push(p,2,e[p]()):C.push(p,1,o||e[p])),M.push(p)}}I&&(0,u.St)(this)},render:function(e,t){if(t.tween._time||!l())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:X,aliases:b,getSetter:function(e,t,i){var r=b[t];return r&&0>r.indexOf(",")&&(t=r),t in c&&t!==D&&(e._gsap.x||X(e,"x"))?i&&s===i?"scale"===t?C:I:(s=i||{},"scale"===t?L:M):e.style&&!(0,u.OF)(e.style[t])?T:~t.indexOf("-")?S:(0,u.Dx)(e,t)},core:{_removeProperty:G,_getMatrix:el}};u.os.utils.checkPrefix=H,u.os.core.getStyleSaver=U,function(e,t,i,r){var n=(0,u.fA)(e+","+t+","+i,function(e){c[e]=1});(0,u.fA)(t,function(e){u.Yz.units[e]="deg",ea[e]=1}),b[n[13]]=e+","+t,(0,u.fA)(r,function(e){var t=e.split(":");b[t[1]]=n[t[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),(0,u.fA)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){u.Yz.units[e]="px"}),u.os.registerPlugin(ey);var ew=u.os.registerPlugin(ey)||u.os;ew.core.Tween},61501:(e,t,i)=>{i.d(t,{C:()=>a});var r=i(52936),n=i(36522),a=e=>{let{present:t,children:i}=e,a=function(e){var t,i;let[a,o]=r.useState(),l=r.useRef(null),d=r.useRef(e),u=r.useRef("none"),c=r.useRef(void 0),[h,m]=(t=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=i[e][t];return null!=r?r:e},t));return r.useEffect(()=>{if("mounted"===h){var e;u.current=null!=(e=c.current)?e:s(l.current),c.current=void 0}else u.current="none"},[h]),(0,n.N)(()=>{let t=l.current,i=d.current;if(i!==e){let r=u.current,n=s(t);e?(c.current=n,m("MOUNT")):"none"===n||(null==t?void 0:t.display)==="none"?m("UNMOUNT"):i&&r!==n?m("ANIMATION_OUT"):m("UNMOUNT"),d.current=e}},[e,m]),(0,n.N)(()=>{if(a){var e;let t,i=null!=(e=a.ownerDocument.defaultView)?e:window,r=e=>{let r=s(l.current).includes(CSS.escape(e.animationName));if(e.target===a&&r&&(m("ANIMATION_END"),!d.current)){let e=a.style.animationFillMode;a.style.animationFillMode="forwards",t=i.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=e)})}},n=e=>{e.target===a&&(u.current=s(l.current))};return a.addEventListener("animationstart",n),a.addEventListener("animationcancel",r),a.addEventListener("animationend",r),()=>{i.clearTimeout(t),a.removeEventListener("animationstart",n),a.removeEventListener("animationcancel",r),a.removeEventListener("animationend",r)}}m("ANIMATION_END")},[a,m]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);l.current=t,c.current=s(t)}else l.current=null;o(e)},[])}}(t),l="function"==typeof i?i({present:a.isPresent}):r.Children.only(i),d=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let n=r.useRef(t);return n.current=t,r.useCallback(e=>{let t=n.current,i=!1,r=t.map(t=>{let r=o(t,e);return i||"function"!=typeof r||(i=!0),r});if(i)return()=>{for(let e=0;e<r.length;e++){let i=r[e];"function"==typeof i?i():o(t[e],null)}}},[])}(a.ref,function(e){var t,i;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?e.ref:(n=(r=null==(i=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:i.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof i||a.isPresent?r.cloneElement(l,{ref:d}):null};function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},63305:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=i(61374),n=i(64983),a=i(55524),o=n._(i(52936)),s=r._(i(77769)),l=r._(i(10706)),d=i(20465),u=i(92774),c=i(84306);i(15952);let h=i(10515),m=r._(i(80691)),p=i(11312),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function v(e,t,i,r,n,a,o){let s=null==e?void 0:e.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>
2683{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),null==i?void 0:i.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,n=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let b=(0,o.forwardRef)((e,t)=>{let{src:i,srcSet:r,sizes:n,height:s,width:l,decoding:d,className:u,style:c,fetchPriority:h,placeholder:m,loading:f,unoptimized:b,fill:E,onLoadRef:y,onLoadingCompleteRef:w,setBlurComplete:A,setShowAltText:k,sizesInput:x,onLoad:_,onError:T,...S}=e,I=(0,o.useCallback)(e=>{e&&(T&&(e.src=e.src),e.complete&&v(e,m,y,w,A,b,x))},[i,m,y,w,A,T,b,x]),C=(0,p.useMergedRef)(t,I);return(0,a.jsx)("img",{...S,...g(h),loading:f,width:l,height:s,decoding:d,"data-nimg":E?"fill":"1",className:u,style:c,sizes:n,srcSet:r,src:i,ref:C,onLoad:e=>{v(e.currentTarget,m,y,w,A,b,x)},onError:e=>{k(!0),"empty"!==m&&A(!0),T&&T(e)}})});function E(e){let{isAppRouter:t,imgAttributes:i}=e,r={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...g(i.fetchPriority)};return t&&s.default.preload?(s.default.preload(i.src,r),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...r},"__nimg-"+i.src+i.srcSet+i.sizes)})}let y=(0,o.forwardRef)((e,t)=>{let i=(0,o.useContext)(h.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),n=(0,o.useMemo)(()=>{var e;let t=f||r||u.imageConfigDefault,i=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),n=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:i,deviceSizes:n,qualities:a}},[r]),{onLoad:s,onLoadingComplete:l}=e,p=(0,o.useRef)(s);(0,o.useEffect)(()=>{p.current=s},[s]);let v=(0,o.useRef)(l);(0,o.useEffect)(()=>{v.current=l},[l]);let[g,y]=(0,o.useState)(!1),[w,A]=(0,o.useState)(!1),{props:k,meta:x}=(0,d.getImgProps)(e,{defaultLoader:m.default,imgConf:n,blurComplete:g,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b,{...k,unoptimized:x.unoptimized,placeholder:x.placeholder,fill:x.fill,onLoadRef:p,onLoadingCompleteRef:v,setBlurComplete:y,setShowAltText:A,sizesInput:e.sizes,ref:t}),x.priority?(0,a.jsx)(E,{isAppRouter:!i,imgAttributes:k}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63557:(e,t,i)=>{var r=i(42801);i.o(r,"notFound")&&i.d(t,{notFound:function(){return r.notFound}}),i.o(r,"redirect")&&i.d(t,{redirect:function(){return r.redirect}}),i.o(r,"usePathname")&&i.d(t,{usePathname:function(){return r.usePathname}}),i.o(r,"useRouter")&&i.d(t,{useRouter:function(){return r.useRouter}}),i.o(r,"useSearchParams")&&i.d(t,{useSearchParams:function(){return r.useSearchParams}})},64524:(e,t,i)=>{i.d(t,{c:()=>n});var r=i(52936);function n(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},66138:(e,t)=>{function i(e){let{ampFirst:t=!1,hybrid:i=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||i&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return i}})},66537:(e,t,i)=>{i.d(t,{UC:()=>P,ZL:()=>L,bL:()=>x,bm:()=>$,hE:()=>H,hJ:()=>R,l9:()=>T});var r=i(52936),n=i(2884),a=i(37807),o=i(7493),s=i(16620),l=i(52462),d=i(60955),u=i(58118),c=i(93149),h=i(61501),m=i(76589),p=i(91402),f=i(83867),v=i(42430),g=i(30728),b=i(55524),E="Dialog",[y,w]=(0,o.A)(E),[A,k]=y(E),x=e=>{let{__scopeDialog:t,children:i,open:n,defaultOpen:a,onOpenChange:o,modal:d=!0}=e,u=r.useRef(null),c=r.useRef(null),[h,m]=(0,l.i)({prop:n,defaultProp:null!=a&&a,onChange:o,caller:E});return(0,b.jsx)(A,{scope:t,triggerRef:u,contentRef:c,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:h,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),modal:d,children:i})};x.displayName=E;var _="DialogTrigger",T=r.forwardRef((e,t)=>
2683{let{__scopeDialog:i,...r}=e,o=k(_,i),s=(0,a.s)(t,o.triggerRef);return(0,b.jsx)(m.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":z(o.open),...r,ref:s,onClick:(0,n.mK)(e.onClick,o.onOpenToggle)})});T.displayName=_;var S="DialogPortal",[I,C]=y(S,{forceMount:void 0}),L=e=>{let{__scopeDialog:t,forceMount:i,children:n,container:a}=e,o=k(S,t);return(0,b.jsx)(I,{scope:t,forceMount:i,children:r.Children.map(n,e=>(0,b.jsx)(h.C,{present:i||o.open,children:(0,b.jsx)(c.Z,{asChild:!0,container:a,children:e})}))})};L.displayName=S;var M="DialogOverlay",R=r.forwardRef((e,t)=>{let i=C(M,e.__scopeDialog),{forceMount:r=i.forceMount,...n}=e,a=k(M,e.__scopeDialog);return a.modal?(0,b.jsx)(h.C,{present:r||a.open,children:(0,b.jsx)(O,{...n,ref:t})}):null});R.displayName=M;var D=(0,g.TL)("DialogOverlay.RemoveScroll"),O=r.forwardRef((e,t)=>{let{__scopeDialog:i,...r}=e,n=k(M,i),o=(0,d.e0)(),s=(0,a.s)(t,o);return(0,b.jsx)(f.A,{as:D,allowPinchZoom:!0,shards:[n.contentRef],children:(0,b.jsx)(m.sG.div,{"data-state":z(n.open),...r,ref:s,style:{pointerEvents:"auto",...r.style}})})}),N="DialogContent",P=r.forwardRef((e,t)=>{let i=C(N,e.__scopeDialog),{forceMount:r=i.forceMount,...n}=e,a=k(N,e.__scopeDialog);return(0,b.jsx)(h.C,{present:r||a.open,children:a.modal?(0,b.jsx)(U,{...n,ref:t}):(0,b.jsx)(V,{...n,ref:t})})});P.displayName=N;var U=r.forwardRef((e,t)=>{let i=k(N,e.__scopeDialog),o=r.useRef(null),s=(0,a.s)(t,i.contentRef,o);return r.useEffect(()=>{let e=o.current;
2683if(e)return(0,v.Eq)(e)},[]),(0,b.jsx)(F,{...e,ref:s,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:(0,n.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=i.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,n.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,i=0===t.button&&!0===t.ctrlKey;(2===t.button||i)&&e.preventDefault()}),onFocusOutside:(0,n.mK)(e.onFocusOutside,e=>e.preventDefault())})}),V=r.forwardRef((e,t)=>{let i=k(N,e.__scopeDialog),n=r.useRef(!1),a=r.useRef(!1);return(0,b.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,o;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(n.current||null==(o=i.triggerRef.current)||o.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{var r,o;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let s=t.target;(null==(o=i.triggerRef.current)?void 0:o.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),F=r.forwardRef((e,t)=>{let{__scopeDialog:i,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:a,...o}=e,s=k(N,i);return(0,p.Oh)(),(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(u.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:a,children:(0,b.jsx)(d.qW,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":z(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),W="DialogTitle",H=r.forwardRef((e,t)=>{let{__scopeDialog:i,...r}=e,n=k(W,i);return(0,b.jsx)(m.sG.h2,{id:n.titleId,...r,ref:t})});H.displayName=W;var B="DialogDescription";r.forwardRef((e,t)=>{let{__scopeDialog:i,...r}=e,n=k(B,i);return(0,b.jsx)(m.sG.p,{id:n.descriptionId,...r,ref:t})}).displayName=B;var j="DialogClose",$=r.forwardRef((e,t)=>{let{__scopeDialog:i,...r}=e,a=k(j,i);return(0,b.jsx)(m.sG.button,{type:"button",...r,ref:t,onClick:(0,n.mK)(e.onClick,()=>a.onOpenChange(!1))})});function z(e){return e?"open":"closed"}$.displayName=j},70357:(e,t,i)=>{function r(){for(var e,t,i=0,r="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=function e(t){var i,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(i=0;i<a;i++)t[i]&&(r=e(t[i]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}(e))&&(r&&(r+=" "),r+=t);return r}i.d(t,{$:()=>r,A:()=>n});let n=r},71354:(e,t)=>{function i(e){let{widthInt:t,heightInt:i,blurWidth:r,blurHeight:n,blurDataURL:a,objectFit:o}=e,s=r?40*r:t,l=n?40*n:i,d=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+d+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(d?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},72701:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{DecodeError:function(){return p},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return g},NormalizeError:function(){return f},PageNotFoundError:function(){return v},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return d},loadGetInitialProps:function(){return c}
2683,normalizeRepeatedSlashes:function(){return u},stringifyError:function(){return E}});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,i=!1;return function(){for(var r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];return i||(i=!0,t=e(...n)),t}}let n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>n.test(e);function o(){let{protocol:e,hostname:t,port:i}=window.location;return e+"//"+t+(i?":"+i:"")}function s(){let{href:e}=window.location,t=o();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function u(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function c(e,t){let i=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await c(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(i&&d(i))return r;if(!r)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let h="undefined"!=typeof performance,m=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
2683class p extends Error{}class f extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}},74028:(e,t,i)=>{i.d(t,{UC:()=>ex,In:()=>eb,q7:()=>ej,VF:()=>eG,p4:()=>ez,ZL:()=>eA,bL:()=>em,wn:()=>eQ,PP:()=>eY,l9:()=>ef,WT:()=>eg,LM:()=>eN});var r=i(52936),n=i(77769);function a(e,[t,i]){return Math.min(i,Math.max(t,e))}var o=i(2884),s=i(94038),l=i(37807),d=i(7493),u=i(32692),c=i(60955),h=i(91402),m=i(58118),p=i(16620),f=i(47166),v="undefined"!=typeof document?r.useLayoutEffect:function(){};function g(e,t){let i,r,n;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((i=e.length)!==t.length)return!1;for(r=i;0!=r--;)if(!g(e[r],t[r]))return!1;return!0}if((i=(n=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=i;0!=r--;)if(!({}).hasOwnProperty.call(t,n[r]))return!1;for(r=i;0!=r--;){let i=n[r];if(("_owner"!==i||!e.$$typeof)&&!g(e[i],t[i]))return!1}return!0}return e!=e&&t!=t}function b(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function E(e,t){let i=b(e);return Math.round(t*i)/i}function y(e){let t=r.useRef(e);return v(()=>{t.current=e}),t}var w=i(76589),A=i(55524),k=r.forwardRef((e,t)=>{let{children:i,width:r=10,height:n=5,...a}=e;return(0,A.jsx)(w.sG.svg,{...a,ref:t,width:r,height:n,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?i:(0,A.jsx)("polygon",{points:"0,0 30,0 15,10"})})});k.displayName="Arrow";var x=i(64524),_=i(36522),T=i(11340),S="Popper",[I,C]=(0,d.A)(S),[L,M]=I(S),R=e=>{let{__scopePopper:t,children:i}=e,[n,a]=r.useState(null),[o,s]=r.useState(void 0);return(0,A.jsx)(L,{scope:t,anchor:n,onAnchorChange:a,placementState:o,setPlacementState:s,children:i})};R.displayName=S;var D="PopperAnchor",O=r.forwardRef((e,t)=>{let{__scopePopper:i,virtualRef:n,...a}=e,o=M(D,i),s=r.useRef(null),d=o.onAnchorChange,u=r.useCallback(e=>{s.current=e,e&&d(e)},[d]),c=(0,l.s)(t,u),h=r.useRef(null);r.useEffect(()=>{if(!n)return;let e=h.current;h.current=n.current,e!==h.current&&d(h.current)});let m=o.placementState&&$(o.placementState),p=null==m?void 0:m[0],f=null==m?void 0:m[1];return n?null:(0,A.jsx)(w.sG.div,{"data-radix-popper-side":p,"data-radix-popper-align":f,...a,ref:c})});O.displayName=D;var N="PopperContent",[P,U]=I(N),V=r.forwardRef((e,t)=>{var i,a,o,s,d,u,c,h;let{__scopePopper:m,side:p="bottom",sideOffset:k=0,align:S="center",alignOffset:I=0,arrowPadding:C=0,avoidCollisions:L=!0,collisionBoundary:R=[],collisionPadding:D=0,sticky:O="partial",hideWhenDetached:U=!1,updatePositionStrategy:V="optimized",onPlaced:F,...W}=e,H=M(N,m),[z,K]=r.useState(null),G=(0,l.s)(t,K),[q,Y]=r.useState(null),Z=(0,T.X)(q),Q=null!=(c=null==Z?void 0:Z.width)?c:0,X=null!=(h=null==Z?void 0:Z.height)?h:0,J="number"==typeof D?D:{top:0,right:0,bottom:0,left:0,...D},ee=Array.isArray(R)?R:[R],et=ee.length>0,ei={padding:J,boundary:ee.filter(B),altBoundary:et},{refs:er,floatingStyles:en,placement:ea,isPositioned:eo,middlewareData:es}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:i="absolute",middleware:a=[],platform:o,elements:{reference:s,floating:l}={},transform:d=!0,whileElementsMounted:u,open:c}=e,[h,m]=r.useState({x:0,y:0,strategy:i,placement:t,middlewareData:{},isPositioned:!1}),[p,w]=r.useState(a);g(p,a)||w(a);let[A,k]=r.useState(null),[x,_]=r.useState(null),T=r.useCallback(e=>{e!==L.current&&(L.current=e,k(e))},[]),S=r.useCallback(e=>{e!==M.current&&(M.current=e,_(e))},[]),I=s||A,C=l||x,L=r.useRef(null),M=r.useRef(null),R=r.useRef(h),D=null!=u,O=y(u),N=y(o),P=y(c),U=r.useCallback(()=>{if(!L.current||!M.current)return;let e={placement:t,strategy:i,middleware:p};N.current&&(e.platform=N.current),(0,f.rD)(L.current,M.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};V.current&&!g(R.current,t)&&(R.current=t,n.flushSync(()=>{m(t)}))})},[p,t,i,N,P]);v(()=>{!1===c&&R.current.isPositioned&&(R.current.isPositioned=!1,m(e=>({...e,isPositioned:!1})))},[c]);let V=r.useRef(!1);v(()=>(V.current=!0,()=>{V.current=!1}),[]),v(()=>
2683{if(I&&(L.current=I),C&&(M.current=C),I&&C){if(O.current)return O.current(I,C,U);U()}},[I,C,U,O,D]);let F=r.useMemo(()=>({reference:L,floating:M,setReference:T,setFloating:S}),[T,S]),W=r.useMemo(()=>({reference:I,floating:C}),[I,C]),H=r.useMemo(()=>{let e={position:i,left:0,top:0};if(!W.floating)return e;let t=E(W.floating,h.x),r=E(W.floating,h.y);return d?{...e,transform:"translate("+t+"px, "+r+"px)",...b(W.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:t,top:r}},[i,d,W.floating,h.x,h.y]);return r.useMemo(()=>({...h,update:U,refs:F,elements:W,floatingStyles:H}),[h,U,F,W,H])}({strategy:"fixed",placement:p+("center"!==S?"-"+S:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,f.ll)(...t,{animationFrame:"always"===V})},elements:{reference:H.anchor},middleware:[((e,t)=>{let i=(0,f.cY)(e);return{name:i.name,fn:i.fn,options:[e,t]}})({mainAxis:k+X,alignmentAxis:I}),L&&((e,t)=>{let i=(0,f.BN)(e);return{name:i.name,fn:i.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===O?((e,t)=>({fn:(0,f.ER)(e).fn,options:[e,t]}))():void 0,...ei}),L&&((e,t)=>{let i=(0,f.UU)(e);return{name:i.name,fn:i.fn,options:[e,t]}})({...ei}),((e,t)=>{let i=(0,f.Ej)(e);return{name:i.name,fn:i.fn,options:[e,t]}})({...ei,apply:e=>{let{elements:t,rects:i,availableWidth:r,availableHeight:n}=e,{width:a,height:o}=i.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(n,"px")),s.setProperty("--radix-popper-anchor-width","".concat(a,"px")),s.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),q&&((e,t)=>{let i=(e=>({name:"arrow",options:e,fn(t){let{element:i,padding:r}="function"==typeof e?e(t):e;return i&&({}).hasOwnProperty.call(i,"current")?null!=i.current?(0,f.UE)({element:i.current,padding:r}).fn(t):{}:i?(0,f.UE)({element:i,padding:r}).fn(t):{}}}))(e);return{name:i.name,fn:i.fn,options:[e,t]}})({element:q,padding:C}),j({arrowWidth:Q,arrowHeight:X}),U&&((e,t)=>{let i=(0,f.jD)(e);return{name:i.name,fn:i.fn,options:[e,t]}})({strategy:"referenceHidden",...ei,boundary:et?ei.boundary:void 0})]}),el=H.setPlacementState;(0,_.N)(()=>(el(ea),()=>{el(void 0)}),[ea,el]);let[ed,eu]=$(ea),ec=(0,x.c)(F);(0,_.N)(()=>{eo&&(null==ec||ec())},[eo,ec]);let eh=null==(i=es.arrow)?void 0:i.x,em=null==(a=es.arrow)?void 0:a.y,ep=(null==(o=es.arrow)?void 0:o.centerOffset)!==0,[ef,ev]=r.useState();return(0,_.N)(()=>{z&&ev(window.getComputedStyle(z).zIndex)},[z]),(0,A.jsx)("div",{ref:er.setFloating,"data-radix-popper-content-wrapper":"",style:{...en,transform:eo?en.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ef,"--radix-popper-transform-origin":[null==(s=es.transformOrigin)?void 0:s.x,null==(d=es.transformOrigin)?void 0:d.y].join(" "),...(null==(u=es.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,A.jsx)(P,{scope:m,placedSide:ed,placedAlign:eu,onArrowChange:Y,arrowX:eh,arrowY:em,shouldHideArrow:ep,children:(0,A.jsx)(w.sG.div,{"data-side":ed,"data-align":eu,...W,ref:G,style:{...W.style,animation:eo?void 0:"none"}})})})});V.displayName=N;var F="PopperArrow",W={top:"bottom",right:"left",bottom:"top",left:"right"},H=r.forwardRef(function(e,t){let{__scopePopper:i,...r}=e,n=U(F,i),a=W[n.placedSide];return(0,A.jsx)("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:(0,A.jsx)(k,{...r,ref:t,style:{...r.style,display:"block"}})})});function B(e){return null!==e}H.displayName=F;var j=e=>({name:"transformOrigin",options:e,fn(t){var i,r,n,a,o;let{placement:s,rects:l,middlewareData:d}=t,u=(null==(i=d.arrow)?void 0:i.centerOffset)!==0,c=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[m,p]=$(s),f={start:"0%",center:"50%",end:"100%"}[p],v=(null!=(a=null==(r=d.arrow)?void 0:r.x)?a:0)+c/2,g=(null!=(o=null==(n=d.arrow)?void 0:n.y)?o:0)+h/2,b="",E="";return"bottom"===m?(b=u?f:"".concat(v,"px"),E="".concat(-h,"px")):"top"===m?(b=u?f:"".concat(v,"px"),E="".concat(l.floating.height+h,"px")):"right"===m?(b="".concat(-h,"px"),E=u?f:"".concat(g,"px")):"left"===m&&(b="".concat(l.floating.width+h,"px"),E=u?f:"".concat(g,"px")),{data:{x:b,y:E}}}});function $(e){let[t,i="center"]=e.split("-");return[t,i]}var z=i(93149),K=i(61501),G=i(30728),q=i(52462),Y=i(54412),Z=i(18409),Q=i(42430),X=i(83867),J=[" ","Enter","ArrowUp","ArrowDown"],ee=[" ","Enter"],et="Select",[ei,er,en]=(0,s.N)(et),[ea,eo]=(0,d.A)(et,[en,C]),es=C(),[el,ed]=ea(et),[eu,ec]=ea(et);function eh(e){let{__scopeSelect:t,children:i,open:n,defaultOpen:a,onOpenChange:o,value:s,defaultValue:l,onValueChange:d,dir:c,name:h,autoComplete:m,disabled:f,required:v,form:g,internal_do_not_use_render:b}=e,E=es(t),[y,w]=r.useState(null),[k,x]=r.useState(null),[_,T]=r.useState(!1),S=(0,u.jH)(c),[I,C]=(0,q.i)({prop:n,defaultProp:null!=a&&a,onChange:o,caller:et}),[L,M]=(0,q.i)({prop:s,defaultProp:l,onChange:d,caller:et}),D=r.useRef(null),O=r.useRef(L);r.useEffect(()=>{let e=g?null==y?void 0:y.ownerDocument.getElementById(g):null==y?void 0:y.form;if(e instanceof HTMLFormElement){let t=()=>M(O.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[g,y,M]);let N=!y||!!g||!!y.closest("form"),[P,U]=r.useState(new Set),V=(0,p.B)(),F=Array.from(P).map(e=>e.props.value).join(";"),W=r.useCallback(e=>{U(t=>new Set(t).add(e))},[]),H=r.useCallback(e=>{U(t=>{let i=new Set(t);return i.delete(e),i})},[]),B={required:v,trigger:y,onTriggerChange:w,valueNode:k,onValueNodeChange:x,valueNodeHasChildren:_,onValueNodeHasChildrenChange:T,contentId:V,value:L,onValueChange:M,open:I,onOpenChange:C,dir:S,triggerPointerDownPosRef:D,disabled:f,name:h,autoComplete:m,form:g,nativeOptions:P,
2683nativeSelectKey:F,isFormControl:N};return(0,A.jsx)(R,{...E,children:(0,A.jsx)(el,{scope:t,...B,children:(0,A.jsx)(ei.Provider,{scope:t,children:(0,A.jsx)(eu,{scope:t,onNativeOptionAdd:W,onNativeOptionRemove:H,children:"function"==typeof b?b(B):i})})})})}eh.displayName="SelectProvider";var em=e=>{let{__scopeSelect:t,children:i,...r}=e;return(0,A.jsx)(eh,{__scopeSelect:t,...r,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,A.jsxs)(A.Fragment,{children:[i,r?(0,A.jsx)(e1,{__scopeSelect:t}):null]})}})};em.displayName=et;var ep="SelectTrigger",ef=r.forwardRef((e,t)=>{let{__scopeSelect:i,disabled:n=!1,...a}=e,s=es(i),d=ed(ep,i),u=d.disabled||n,c=(0,l.s)(t,d.onTriggerChange),h=er(i),m=r.useRef("touch"),[p,f,v]=e5(e=>{let t=h().filter(e=>!e.disabled),i=t.find(e=>e.value===d.value),r=e3(t,e,i);void 0!==r&&d.onValueChange(r.value)}),g=e=>{u||(d.onOpenChange(!0),v()),e&&(d.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,A.jsx)(O,{asChild:!0,...s,children:(0,A.jsx)(w.sG.button,{type:"button",role:"combobox","aria-controls":d.open?d.contentId:void 0,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":e2(d.value)?"":void 0,...a,ref:c,onClick:(0,o.mK)(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==m.current&&g(e)}),onPointerDown:(0,o.mK)(a.onPointerDown,e=>{m.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:(0,o.mK)(a.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||f(e.key),(!t||" "!==e.key)&&J.includes(e.key)&&(g(),e.preventDefault())})})})});ef.displayName=ep;var ev="SelectValue",eg=r.forwardRef((e,t)=>{let{__scopeSelect:i,className:n,style:a,children:o,placeholder:s="",...d}=e,u=ed(ev,i),{onValueNodeHasChildrenChange:c}=u,h=void 0!==o,m=(0,l.s)(t,u.onValueNodeChange);(0,_.N)(()=>{c(h)},[c,h]);let p=e2(u.value);return(0,A.jsx)(w.sG.span,{...d,asChild:!p&&d.asChild,ref:m,style:{pointerEvents:"none"},children:(0,A.jsx)(r.Fragment,{children:p?s:o},p?"placeholder":"value")})});eg.displayName=ev;var eb=r.forwardRef((e,t)=>{let{__scopeSelect:i,children:r,...n}=e;return(0,A.jsx)(w.sG.span,{"aria-hidden":!0,...n,ref:t,children:r||"▼"})});eb.displayName="SelectIcon";var eE="SelectPortal",[ey,ew]=ea(eE,{forceMount:void 0}),eA=e=>{let{__scopeSelect:t,forceMount:i,...r}=e;return(0,A.jsx)(ey,{scope:e.__scopeSelect,forceMount:i,children:(0,A.jsx)(z.Z,{asChild:!0,...r})})};eA.displayName=eE;var ek="SelectContent",ex=r.forwardRef((e,t)=>{let i=ew(ek,e.__scopeSelect),{forceMount:n=i.forceMount,...a}=e,o=ed(ek,e.__scopeSelect),[s,l]=r.useState();return(0,_.N)(()=>{l(new DocumentFragment)},[]),(0,A.jsx)(K.C,{present:n||o.open,children:e=>{let{present:i}=e;return i?(0,A.jsx)(eC,{...a,ref:t}):(0,A.jsx)(e_,{...a,fragment:s})}})});ex.displayName=ek;var e_=r.forwardRef((e,t)=>{let{__scopeSelect:i,children:r,fragment:a}=e;return a?n.createPortal((0,A.jsx)(eT,{scope:i,children:(0,A.jsx)(ei.Slot,{scope:i,children:(0,A.jsx)("div",{ref:t,children:r})})}),a):null});e_.displayName="SelectContentFragment";var[eT,eS]=ea(ek),eI=(0,G.TL)("SelectContent.RemoveScroll"),eC=r.forwardRef((e,t)=>{let{__scopeSelect:i}=e,{position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:d,side:u,sideOffset:p,align:f,alignOffset:v,arrowPadding:g,collisionBoundary:b,collisionPadding:E,sticky:y,hideWhenDetached:w,avoidCollisions:k,...x}=e,_=ed(ek,i),[T,S]=r.useState(null),[I,C]=r.useState(null),L=(0,l.s)(t,S),[M,R]=r.useState(null),[D,O]=r.useState(null),N=er(i),[P,U]=r.useState(!1),V=r.useRef(!1);r.useEffect(()=>{if(T)return(0,Q.Eq)(T)},[T]),(0,h.Oh)();let F=r.useCallback(e=>{let[t,...i]=N().map(e=>e.ref.current),[r]=i.slice(-1),n=document.activeElement;for(let i of e)if(i===n||(null==i||i.scrollIntoView({block:"nearest"}),i===t&&I&&(I.scrollTop=0),i===r&&I&&(I.scrollTop=I.scrollHeight),null==i||i.focus(),document.activeElement!==n))return},[N,I]),W=r.useCallback(()=>F([M,T]),[F,M,T]);r.useEffect(()=>{P&&W()},[P,W]);let{onOpenChange:H,triggerPointerDownPosRef:B}=_;r.useEffect(()=>{if(T){let e={x:0,y:0},t=t=>{var i,r,n,a;e={x:Math.abs(Math.round(t.pageX)-(null!=(n=null==(i=B.current)?void 0:i.x)?n:0)),y:Math.abs(Math.round(t.pageY)-(null!=(a=null==(r=B.current)?void 0:r.y
2683)?a:0))}},i=i=>{e.x<=10&&e.y<=10?i.preventDefault():i.composedPath().includes(T)||H(!1),document.removeEventListener("pointermove",t),B.current=null};return null!==B.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",i,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",i,{capture:!0})}}},[T,H,B]),r.useEffect(()=>{let e=()=>H(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[H]);let[j,$]=e5(e=>{let t=N().filter(e=>!e.disabled),i=t.find(e=>e.ref.current===document.activeElement),r=e3(t,e,i);r&&setTimeout(()=>{var e;return null==(e=r.ref.current)?void 0:e.focus()})}),z=r.useCallback((e,t,i)=>{let r=!V.current&&!i;(void 0!==_.value&&_.value===t||r)&&(R(e),r&&(V.current=!0))},[_.value]),K=r.useCallback(()=>null==T?void 0:T.focus(),[T]),G=r.useCallback((e,t,i)=>{let r=!V.current&&!i;(void 0!==_.value&&_.value===t||r)&&O(e)},[_.value]),q="popper"===n?eM:eL,Y=q===eM?{side:u,sideOffset:p,align:f,alignOffset:v,arrowPadding:g,collisionBoundary:b,collisionPadding:E,sticky:y,hideWhenDetached:w,avoidCollisions:k}:{};return(0,A.jsx)(eT,{scope:i,content:T,viewport:I,onViewportChange:C,itemRefCallback:z,selectedItem:M,onItemLeave:K,itemTextRefCallback:G,focusSelectedItem:W,selectedItemText:D,position:n,isPositioned:P,searchRef:j,children:(0,A.jsx)(X.A,{as:eI,allowPinchZoom:!0,children:(0,A.jsx)(m.n,{asChild:!0,trapped:_.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,o.mK)(a,e=>{var t;null==(t=_.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,A.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:(0,A.jsx)(q,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:e=>e.preventDefault(),...x,...Y,onPlaced:()=>U(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,o.mK)(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=N().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let i=e.target,r=t.indexOf(i);t=t.slice(r+1)}setTimeout(()=>F(t)),e.preventDefault()}})})})})})})});eC.displayName="SelectContentImpl";var eL=r.forwardRef((e,t)=>{let{__scopeSelect:i,onPlaced:n,...o}=e,s=ed(ek,i),d=eS(ek,i),[u,c]=r.useState(null),[h,m]=r.useState(null),p=(0,l.s)(t,m),f=er(i),v=r.useRef(!1),g=r.useRef(!0),{viewport:b,selectedItem:E,selectedItemText:y,focusSelectedItem:k}=d,x=r.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&h&&b&&E&&y){let e=s.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),i=s.valueNode.getBoundingClientRect(),r=y.getBoundingClientRect();if("rtl"!==s.dir){let n=r.left-t.left,o=i.left-n,s=e.left-o,l=e.width+s,d=Math.max(l,t.width),c=a(o,[10,Math.max(10,window.innerWidth-10-d)]);u.style.minWidth=l+"px",u.style.left=c+"px"}else{let n=t.right-r.right,o=window.innerWidth-i.right-n,s=window.innerWidth-e.right-o,l=e.width+s,d=Math.max(l,t.width),c=a(o,[10,Math.max(10,window.innerWidth-10-d)]);u.style.minWidth=l+"px",u.style.right=c+"px"}let o=f(),l=window.innerHeight-20,d=b.scrollHeight,c=window.getComputedStyle(h),m=parseInt(c.borderTopWidth,10),p=parseInt(c.paddingTop,10),g=parseInt(c.borderBottomWidth,10),w=m+p+d+parseInt(c.paddingBottom,10)+g,A=Math.min(5*E.offsetHeight,w),k=window.getComputedStyle(b),x=parseInt(k.paddingTop,10),_=parseInt(k.paddingBottom,10),T=e.top+e.height/2-10,S=E.offsetHeight/2,I=m+p+(E.offsetTop+S);if(I<=T){let e=o.length>0&&E===o[o.length-1].ref.current;u.style.bottom="0px";let t=Math.max(l-T,S+(e?_:0)+(h.clientHeight-b.offsetTop-b.offsetHeight)+g);u.style.height=I+t+"px"}else{let e=o.length>0&&E===o[0].ref.current;u.style.top="0px";let t=Math.max(T,m+b.offsetTop+(e?x:0)+S);u.style.height=t+(w-I)+"px",b.scrollTop=I-T+b.offsetTop}u.style.margin="".concat(10,"px 0"),u.style.minHeight=A+"px",u.style.maxHeight=l+"px",null==n||n(),requestAnimationFrame(()=>v.current=!0)}},[f,s.trigger,s.valueNode,u,h,b,E,y,s.dir,n]);(0,_.N)(()=>x(),[x]);let[T,S]=r.useState();(0,_.N)(()=>{h&&S(window.getComputedStyle(h).zIndex)},[h]);let I=r.useCallback(e=>{e&&!0===g.current&&(x(),null==k||k(),g.current=!1)},[x,k]);return(0,A.jsx)(eR,{scope:i,contentWrapper:u,shouldExpandOnScrollRef:v,onScrollButtonChange:I,children:(0,A.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:(0,A.jsx)(w.sG.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});eL.displayName="SelectItemAlignedPosition";var eM=r.forwardRef((e,t)=>
2683{let{__scopeSelect:i,align:r="start",collisionPadding:n=10,...a}=e,o=es(i);return(0,A.jsx)(V,{...o,...a,ref:t,align:r,collisionPadding:n,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});eM.displayName="SelectPopperPosition";var[eR,eD]=ea(ek,{}),eO="SelectViewport",eN=r.forwardRef((e,t)=>{let{__scopeSelect:i,nonce:n,...a}=e,s=eS(eO,i),d=eD(eO,i),u=(0,l.s)(t,s.onViewportChange),c=r.useRef(0);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,A.jsx)(ei.Slot,{scope:i,children:(0,A.jsx)(w.sG.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:(0,o.mK)(a.onScroll,e=>{let t=e.currentTarget,{contentWrapper:i,shouldExpandOnScrollRef:r}=d;if((null==r?void 0:r.current)&&i){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,n=Math.max(parseFloat(i.style.minHeight),parseFloat(i.style.height));if(n<r){let a=n+e,o=Math.min(r,a),s=a-o;i.style.height=o+"px","0px"===i.style.bottom&&(t.scrollTop=s>0?s:0,i.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});eN.displayName=eO;var eP="SelectGroup",[eU,eV]=ea(eP);r.forwardRef((e,t)=>{let{__scopeSelect:i,...r}=e,n=(0,p.B)();return(0,A.jsx)(eU,{scope:i,id:n,children:(0,A.jsx)(w.sG.div,{role:"group","aria-labelledby":n,...r,ref:t})})}).displayName=eP;var eF="SelectLabel";r.forwardRef((e,t)=>{let{__scopeSelect:i,...r}=e,n=eV(eF,i);return(0,A.jsx)(w.sG.div,{id:n.id,...r,ref:t})}).displayName=eF;var eW="SelectItem",[eH,eB]=ea(eW),ej=r.forwardRef((e,t)=>{let{__scopeSelect:i,value:n,disabled:a=!1,textValue:s,...d}=e,u=ed(eW,i),c=eS(eW,i),h=u.value===n,[m,f]=r.useState(null!=s?s:""),[v,g]=r.useState(!1),b=(0,x.c)(e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,n,a)}),E=(0,l.s)(t,b),y=(0,p.B)(),k=r.useRef("touch"),_=()=>{a||(u.onValueChange(n),u.onOpenChange(!1))};return(0,A.jsx)(eH,{scope:i,value:n,disabled:a,textId:y,isSelected:h,onItemTextChange:r.useCallback(e=>{f(t=>{var i;return t||(null!=(i=null==e?void 0:e.textContent)?i:"").trim()})},[]),children:(0,A.jsx)(ei.ItemSlot,{scope:i,value:n,disabled:a,textValue:m,children:(0,A.jsx)(w.sG.div,{role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":h&&v,"data-state":h?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...d,ref:E,onFocus:(0,o.mK)(d.onFocus,()=>g(!0)),onBlur:(0,o.mK)(d.onBlur,()=>g(!1)),onClick:(0,o.mK)(d.onClick,()=>{"mouse"!==k.current&&_()}),onPointerUp:(0,o.mK)(d.onPointerUp,()=>{"mouse"===k.current&&_()}),onPointerDown:(0,o.mK)(d.onPointerDown,e=>{k.current=e.pointerType}),onPointerMove:(0,o.mK)(d.onPointerMove,e=>{if(k.current=e.pointerType,a){var t;null==(t=c.onItemLeave)||t.call(c)}else"mouse"===k.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,o.mK)(d.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:(0,o.mK)(d.onKeyDown,e=>{var t;a||e.target!==e.currentTarget||((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(ee.includes(e.key)&&_()," "===e.key&&e.preventDefault())})})})})});ej.displayName=eW;var e$="SelectItemText",ez=r.forwardRef((e,t)=>{let{__scopeSelect:i,className:a,style:o,...s}=e,d=ed(e$,i),u=eS(e$,i),c=eB(e$,i),h=ec(e$,i),[m,p]=r.useState(null),f=(0,x.c)(e=>{var t;return null==(t=u.itemTextRefCallback)?void 0:t.call(u,e,c.value,c.disabled)}),v=(0,l.s)(t,p,c.onItemTextChange,f),g=null==m?void 0:m.textContent,b=r.useMemo(()=>(0,A.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:E,onNativeOptionRemove:y}=h;return(0,_.N)(()=>(E(b),()=>y(b)),[E,y,b]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(w.sG.span,{id:c.textId,...s,ref:v}),c.isSelected&&d.valueNode&&!d.valueNodeHasChildren&&!e2(d.value)?n.createPortal(s.children,d.valueNode):null]})});
2683ez.displayName=e$;var eK="SelectItemIndicator",eG=r.forwardRef((e,t)=>{let{__scopeSelect:i,...r}=e;return eB(eK,i).isSelected?(0,A.jsx)(w.sG.span,{"aria-hidden":!0,...r,ref:t}):null});eG.displayName=eK;var eq="SelectScrollUpButton",eY=r.forwardRef((e,t)=>{let i=eS(eq,e.__scopeSelect),n=eD(eq,e.__scopeSelect),[a,o]=r.useState(!1),s=(0,l.s)(t,n.onScrollButtonChange);return(0,_.N)(()=>{if(i.viewport&&i.isPositioned){let e=function(){o(t.scrollTop>0)},t=i.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[i.viewport,i.isPositioned]),a?(0,A.jsx)(eX,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=i;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eY.displayName=eq;var eZ="SelectScrollDownButton",eQ=r.forwardRef((e,t)=>{let i=eS(eZ,e.__scopeSelect),n=eD(eZ,e.__scopeSelect),[a,o]=r.useState(!1),s=(0,l.s)(t,n.onScrollButtonChange);return(0,_.N)(()=>{if(i.viewport&&i.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)},t=i.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[i.viewport,i.isPositioned]),a?(0,A.jsx)(eX,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=i;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eQ.displayName=eZ;var eX=r.forwardRef((e,t)=>{let{__scopeSelect:i,onAutoScroll:n,...a}=e,s=eS("SelectScrollButton",i),l=r.useRef(null),d=er(i),u=r.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return r.useEffect(()=>()=>u(),[u]),(0,_.N)(()=>{var e;let t=d().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[d]),(0,A.jsx)(w.sG.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:(0,o.mK)(a.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(n,50))}),onPointerMove:(0,o.mK)(a.onPointerMove,()=>{var e;null==(e=s.onItemLeave)||e.call(s),null===l.current&&(l.current=window.setInterval(n,50))}),onPointerLeave:(0,o.mK)(a.onPointerLeave,()=>{u()})})});r.forwardRef((e,t)=>{let{__scopeSelect:i,...r}=e;return(0,A.jsx)(w.sG.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var eJ="SelectArrow";r.forwardRef((e,t)=>{let{__scopeSelect:i,...r}=e,n=es(i);return"popper"===eS(eJ,i).position?(0,A.jsx)(H,{...n,...r,ref:t}):null}).displayName=eJ;var e0="SelectBubbleInput",e1=r.forwardRef((e,t)=>{let{__scopeSelect:i,...n}=e,a=ed(e0,i),{value:o,onValueChange:s,required:d,disabled:u,name:c,autoComplete:h,form:m}=a,{nativeOptions:p,nativeSelectKey:f}=a,v=r.useRef(null),g=(0,l.s)(t,v),b=null!=o?o:"",E=(0,Y.Z)(b),y=Array.from(p).some(e=>{var t;return(null!=(t=e.props.value)?t:"")===""});return r.useEffect(()=>{let e=v.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(E!==b&&t){let i=new Event("change",{bubbles:!0});t.call(e,b),e.dispatchEvent(i)}},[E,b]),(0,A.jsxs)(w.sG.select,{"aria-hidden":!0,required:d,tabIndex:-1,name:c,autoComplete:h,disabled:u,form:m,onChange:e=>s(e.target.value),...n,style:{...Z.Qg,...n.style},ref:g,defaultValue:b,children:[e2(o)&&!y?(0,A.jsx)("option",{value:""}):null,Array.from(p)]},f)});function e2(e){return""===e||void 0===e}function e5(e){let t=(0,x.c)(e),i=r.useRef(""),n=r.useRef(0),a=r.useCallback(e=>{let r=i.current+e;t(r),function e(t){i.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),o=r.useCallback(()=>{i.current="",window.clearTimeout(n.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(n.current),[]),[i,a,o]}function e3(e,t,i){var r,n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=i?e.indexOf(i):-1,s=(r=e,n=Math.max(o,0),r.map((e,t)=>r[(n+t)%r.length]));1===a.length&&(s=s.filter(e=>e!==i));let l=s.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==i?l:void 0}e1.displayName=e0},75194:(e,t,i)=>{i.d(t,{UC:()=>eo,Y9:()=>en,q7:()=>er,bL:()=>ei,l9:()=>ea});var r=i(52936),n=i(7493),a=i(94038),o=i(37807),s=i(2884),l=i(52462),d=i(76589),u=i(36522),c=i(61501),h=i(16620),m=i(55524),p="Collapsible",[f,v]=(0,n.A)(p
2683),[g,b]=f(p),E=r.forwardRef((e,t)=>{let{__scopeCollapsible:i,open:n,defaultOpen:a,disabled:o,onOpenChange:s,...u}=e,[c,f]=(0,l.i)({prop:n,defaultProp:null!=a&&a,onChange:s,caller:p});return(0,m.jsx)(g,{scope:i,disabled:o,contentId:(0,h.B)(),open:c,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),children:(0,m.jsx)(d.sG.div,{"data-state":_(c),"data-disabled":o?"":void 0,...u,ref:t})})});E.displayName=p;var y="CollapsibleTrigger",w=r.forwardRef((e,t)=>{let{__scopeCollapsible:i,...r}=e,n=b(y,i);return(0,m.jsx)(d.sG.button,{type:"button","aria-controls":n.open?n.contentId:void 0,"aria-expanded":n.open||!1,"data-state":_(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:t,onClick:(0,s.mK)(e.onClick,n.onOpenToggle)})});w.displayName=y;var A="CollapsibleContent",k=r.forwardRef((e,t)=>{let{forceMount:i,...r}=e,n=b(A,e.__scopeCollapsible);return(0,m.jsx)(c.C,{present:i||n.open,children:e=>{let{present:i}=e;return(0,m.jsx)(x,{...r,ref:t,present:i})}})});k.displayName=A;var x=r.forwardRef((e,t)=>{let{__scopeCollapsible:i,present:n,children:a,...s}=e,l=b(A,i),[c,h]=r.useState(n),p=r.useRef(null),f=(0,o.s)(t,p),v=r.useRef(0),g=v.current,E=r.useRef(0),y=E.current,w=l.open||c,k=r.useRef(w),x=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,u.N)(()=>{let e=p.current;if(e){x.current=x.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,E.current=t.width,k.current||(e.style.transitionDuration=x.current.transitionDuration,e.style.animationName=x.current.animationName),h(n)}},[l.open,n]),(0,m.jsx)(d.sG.div,{"data-state":_(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!w,...s,ref:f,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":y?"".concat(y,"px"):void 0,...e.style},children:w&&a})});function _(e){return e?"open":"closed"}var T=i(32692),S="Accordion",I=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[C,L,M]=(0,a.N)(S),[R,D]=(0,n.A)(S,[M,v]),O=v(),N=r.forwardRef((e,t)=>{let{type:i,...r}=e;return(0,m.jsx)(C.Provider,{scope:e.__scopeAccordion,children:"multiple"===i?(0,m.jsx)(H,{...r,ref:t}):(0,m.jsx)(W,{...r,ref:t})})});N.displayName=S;var[P,U]=R(S),[V,F]=R(S,{collapsible:!1}),W=r.forwardRef((e,t)=>{let{value:i,defaultValue:n,onValueChange:a=()=>{},collapsible:o=!1,...s}=e,[d,u]=(0,l.i)({prop:i,defaultProp:null!=n?n:"",onChange:a,caller:S});return(0,m.jsx)(P,{scope:e.__scopeAccordion,value:r.useMemo(()=>d?[d]:[],[d]),onItemOpen:u,onItemClose:r.useCallback(()=>o&&u(""),[o,u]),children:(0,m.jsx)(V,{scope:e.__scopeAccordion,collapsible:o,children:(0,m.jsx)($,{...s,ref:t})})})}),H=r.forwardRef((e,t)=>{let{value:i,defaultValue:n,onValueChange:a=()=>{},...o}=e,[s,d]=(0,l.i)({prop:i,defaultProp:null!=n?n:[],onChange:a,caller:S}),u=r.useCallback(e=>d(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[d]),c=r.useCallback(e=>d(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[d]);return(0,m.jsx)(P,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:c,children:(0,m.jsx)(V,{scope:e.__scopeAccordion,collapsible:!0,children:(0,m.jsx)($,{...o,ref:t})})})}),[B,j]=R(S),$=r.forwardRef((e,t)=>{let{__scopeAccordion:i,disabled:n,dir:a,orientation:l="vertical",...u}=e,c=r.useRef(null),h=(0,o.s)(c,t),p=L(i),f="ltr"===(0,T.jH)(a),v=(0,s.mK)(e.onKeyDown,e=>{var t;if(!I.includes(e.key))return;let i=e.target,r=p().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),n=r.findIndex(e=>e.ref.current===i),a=r.length;if(-1===n)return;e.preventDefault();let o=n,s=a-1,d=()=>{(o=n+1)>s&&(o=0)},u=()=>{(o=n-1)<0&&(o=s)};switch(e.key){case"Home":o=0;break;case"End":o=s;break;case"ArrowRight":"horizontal"===l&&(f?d():u());break;case"ArrowDown":"vertical"===l&&d();break;case"ArrowLeft":"horizontal"===l&&(f?u():d());break;case"ArrowUp":"vertical"===l&&u()}
2683null==(t=r[o%a].ref.current)||t.focus()});return(0,m.jsx)(B,{scope:i,disabled:n,direction:a,orientation:l,children:(0,m.jsx)(C.Slot,{scope:i,children:(0,m.jsx)(d.sG.div,{...u,"data-orientation":l,ref:h,onKeyDown:n?void 0:v})})})}),z="AccordionItem",[K,G]=R(z),q=r.forwardRef((e,t)=>{let{__scopeAccordion:i,value:r,...n}=e,a=j(z,i),o=U(z,i),s=O(i),l=(0,h.B)(),d=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,m.jsx)(K,{scope:i,open:d,disabled:u,triggerId:l,children:(0,m.jsx)(E,{"data-orientation":a.orientation,"data-state":et(d),...s,...n,ref:t,disabled:u,open:d,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});q.displayName=z;var Y="AccordionHeader",Z=r.forwardRef((e,t)=>{let{__scopeAccordion:i,...r}=e,n=j(S,i),a=G(Y,i);return(0,m.jsx)(d.sG.h3,{"data-orientation":n.orientation,"data-state":et(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Z.displayName=Y;var Q="AccordionTrigger",X=r.forwardRef((e,t)=>{let{__scopeAccordion:i,...r}=e,n=j(S,i),a=G(Q,i),o=F(Q,i),s=O(i);return(0,m.jsx)(C.ItemSlot,{scope:i,children:(0,m.jsx)(w,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":n.orientation,id:a.triggerId,...s,...r,ref:t})})});X.displayName=Q;var J="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:i,...r}=e,n=j(S,i),a=G(J,i),o=O(i);return(0,m.jsx)(k,{role:"region","aria-labelledby":a.triggerId,"data-orientation":n.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=J;var ei=N,er=q,en=Z,ea=X,eo=ee},76589:(e,t,i)=>{i.d(t,{hO:()=>l,sG:()=>s});var r=i(52936),n=i(77769),a=i(30728),o=i(55524),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let i=(0,a.TL)(`Primitive.${t}`),n=r.forwardRef((e,r)=>{let{asChild:n,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(n?i:t,{...a,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}},79656:(e,t,i)=>{i.d(t,{default:()=>n.a});var r=i(42975),n=i.n(r)},80691:(e,t)=>{function i(e){var t;let{config:i,src:r,width:n,quality:a}=e,o=a||(null==(t=i.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return i.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+o+(r.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),i.__next_img_default=!0;let r=i},81472:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return v},useLinkStatus:function(){return b}});let r=i(64983),n=i(55524),a=r._(i(52936)),o=i(49207),s=i(44665),l=i(11312),d=i(72701),u=i(78203);i(15952);let c=i(51536),h=i(50394),m=i(45312);i(7734);let p=i(96403);function f(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}function v(e){var t;let i,r,o,[v,b]=(0,a.useOptimistic)(c.IDLE_LINK_STATUS),E=(0,a.useRef)(null),{href:y,as:w,children:A,prefetch:k=null,passHref:x,replace:_,shallow:T,scroll:S,onClick:I,onMouseEnter:C,onTouchStart:L,legacyBehavior:M=!1,onNavigate:R,ref:D,unstable_dynamicOnHover:O,...N}=e;i=A,M&&("string"==typeof i||"number"==typeof i)&&(i=(0,n.jsx)("a",{children:i}));let P=a.default.useContext(s.AppRouterContext),U=!1!==k,V=!1!==k?null===(t=k)||"auto"===t?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:F,as:W}=a.default.useMemo(()=>{let e=f(y);return{href:e,as:w?f(w):e}},[y,w]);M&&(r=a.default.Children.only(i));let H=M?r&&"object"==typeof r&&r.ref:D,B=a.default.useCallback(e=>(null!==P&&(E.current=(0,c.mountLinkInstance)(e,F,P,V,U,b)),()=>{E.current&&((0,c.unmountLinkForCurrentNavigation)(E.current),E.current=null),(0,c.unmountPrefetchableInstance)(e)}),[U,F,P,V,b]),j={ref:(0,l.useMergedRef)(B,H),onClick(e){M||"function"!=typeof I||I(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),P&&(e.defaultPrevented||function(e,t,i,r,n,o,s){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}
2683(e)||e.currentTarget.hasAttribute("download"))){if(!(0,h.isLocalURL)(t)){n&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}a.default.startTransition(()=>{(0,m.dispatchNavigateAction)(i||t,n?"replace":"push",null==o||o,r.current)})}}(e,F,W,E,_,S,R))},onMouseEnter(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),P&&U&&(0,c.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){M||"function"!=typeof L||L(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),P&&U&&(0,c.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,d.isAbsoluteUrl)(W)?j.href=W:M&&!x&&("a"!==r.type||"href"in r.props)||(j.href=(0,u.addBasePath)(W)),o=M?a.default.cloneElement(r,j):(0,n.jsx)("a",{...N,...j,children:i}),(0,n.jsx)(g.Provider,{value:v,children:o})}let g=(0,a.createContext)(c.IDLE_LINK_STATUS),b=()=>(0,a.useContext)(g);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83867:(e,t,i)=>{i.d(t,{A:()=>K});var r,n,a=function(){return(a=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function o(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i}Object.create;Object.create;var s=("function"==typeof SuppressedError&&SuppressedError,i(52936)),l="right-scroll-bar-position",d="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var c="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,h=new WeakMap;function m(e){return e}var p=function(e){void 0===e&&(e={});var t,i,r,n=(void 0===t&&(t=m),i=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var n=t(e,r);return i.push(n),function(){i=i.filter(function(e){return e!==n})}},assignSyncMedium:function(e){for(r=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){r=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var a=function(){var i=t;t=[],i.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}});return n.options=a({async:!0,ssr:!1},e),n}(),f=function(){},v=s.forwardRef(function(e,t){var i,r,n,l,d=s.useRef(null),m=s.useState({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:f}),v=m[0],g=m[1],b=e.forwardProps,E=e.children,y=e.className,w=e.removeScrollBar,A=e.enabled,k=e.shards,x=e.sideCar,_=e.noRelative,T=e.noIsolation,S=e.inert,I=e.allowPinchZoom,C=e.as,L=e.gapMode,M=o(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(i=[d,t],r=function(e){return i.forEach(function(t){return u(t,e)})},(n=(0,s.useState)(function(){return{value:null,callback:r,facade:{get current(){return n.value},set current(value){var e=n.value;e!==value&&(n.value=value,n.callback(value,e))}}}})[0]).callback=r,l=n.facade,c(function(){var e=h.get(l);if(e){var t=new Set(e),r=new Set(i),n=l.current;t.forEach(function(e){r.has(e)||u(e,null)}),r.forEach(function(e){t.has(e)||u(e,n)})}h.set(l,i)},[i]),l),D=a(a({},M),v);return s.createElement(s.Fragment,null,A&&s.createElement(x,{sideCar:p,removeScrollBar:w,shards:k,noRelative:_,noIsolation:T,inert:S,setCallbacks:g,allowPinchZoom:!!I,lockRef:d,gapMode:L}),b?s.cloneElement(s.Children.only(E),a(a({},D),{ref:R}
2683)):s.createElement(void 0===C?"div":C,a({},D,{className:y,ref:R}),E))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:d,zeroRight:l};var g=function(e){var t=e.sideCar,i=o(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,a({},i))};g.isSideCarExport=!0;var b=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||i.nc;return t&&e.setAttribute("nonce",t),e}())){var a,o;(a=t).styleSheet?a.styleSheet.cssText=r:a.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},E=function(){var e=b();return function(t,i){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&i])}},y=function(){var e=E();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},A=function(e){return parseInt(e||"",10)||0},k=function(e){var t=window.getComputedStyle(document.body),i=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],n=t["padding"===e?"paddingRight":"marginRight"];return[A(i),A(r),A(n)]},x=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=k(e),i=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-i+t[2]-t[0])}},_=y(),T="data-scroll-locked",S=function(e,t,i,r){var n=e.left,a=e.top,o=e.right,s=e.gap;return void 0===i&&(i="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(T,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===i&&"\n    padding-left: ".concat(n,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===i&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(l," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(d," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(l," .").concat(l," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(d," .").concat(d," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(T,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},I=function(){var e=parseInt(document.body.getAttribute(T)||"0",10);return isFinite(e)?e:0},C=function(){s.useEffect(function(){return document.body.setAttribute(T,(I()+1).toString()),function(){var e=I()-1;e<=0?document.body.removeAttribute(T):document.body.setAttribute(T,e.toString())}},[])},L=function(e){var t=e.noRelative,i=e.noImportant,r=e.gapMode,n=void 0===r?"margin":r;C();var a=s.useMemo(function(){return x(n)},[n]);return s.createElement(_,{styles:S(a,!t,n,i?"":"!important")})},M=!1;if("undefined"!=typeof window)try{var R=Object.defineProperty({},"passive",{get:function(){return M=!0,!0}});window.addEventListener("test",R,R),window.removeEventListener("test",R,R)}catch(e){M=!1}var D=!!M&&{passive:!1},O=function(e,t){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return"hidden"!==i[t]&&(i.overflowY!==i.overflowX||"TEXTAREA"===e.tagName||"visible"!==i[t])},N=function(e,t){var i=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),P(e,r)){var n=U(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==i.body);return!1},P=function(e,t){return"v"===e?O(t,"overflowY"):O(t,"overflowX")},U=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},V=function(e,t,i,r,n){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*r,l=i.target,d=t.contains(l),u=!1,c=s>0,h=0,m=0;do{if(!l)break;var p=U(e,l),f=p[0],v=p[1]-p[2]-o*f;(f||v)&&P(e,l)&&(h+=v,m+=f);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!d&&l!==document.body||d&&(t.contains(l)||t===l));return c&&(n&&1>Math.abs(h)||!n&&s>h)?u=!0:!c&&(n&&1>Math.abs(m)||!n&&-s>m)&&(u=!0),u},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},W=function(e){return[e.deltaX,e.deltaY]},H=function(e){return e&&"current"in e?e.current:e},B=0,j=[];let $=(r=function(e){var t=s.useRef([]),i=s.useRef([0,0]),r=s.useRef(),n=s.useState(B++)[0],a=s.useState(y)[0],o=s.useRef(e);s.useEffect(function(){o.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var t=(function(e,t,i){if(i||2==arguments.length)for(var r,n=0,a=t.length;n<a;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}
2683)([e.lockRef.current],(e.shards||[]).map(H),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var n,a=F(e),s=i.current,l="deltaX"in e?e.deltaX:s[0]-a[0],d="deltaY"in e?e.deltaY:s[1]-a[1],u=e.target,c=Math.abs(l)>Math.abs(d)?"h":"v";if("touches"in e&&"h"===c&&"range"===u.type)return!1;var h=window.getSelection(),m=h&&h.anchorNode;if(m&&(m===u||m.contains(u)))return!1;var p=N(c,u);if(!p)return!0;if(p?n=c:(n="v"===c?"h":"v",p=N(c,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||d)&&(r.current=n),!n)return!0;var f=r.current||n;return V(f,t,e,"h"===f?l:d,!0)},[]),d=s.useCallback(function(e){if(j.length&&j[j.length-1]===a){var i="deltaY"in e?W(e):F(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===i[0]&&r[1]===i[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var n=(o.current.shards||[]).map(H).filter(Boolean).filter(function(t){return t.contains(e.target)});(n.length>0?l(e,n[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=s.useCallback(function(e,i,r,n){var a={name:e,delta:i,target:r,should:n,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=s.useCallback(function(e){i.current=F(e),r.current=void 0},[]),h=s.useCallback(function(t){u(t.type,W(t),t.target,l(t,e.lockRef.current))},[]),m=s.useCallback(function(t){u(t.type,F(t),t.target,l(t,e.lockRef.current))},[]);s.useEffect(function(){return j.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",d,D),document.addEventListener("touchmove",d,D),document.addEventListener("touchstart",c,D),function(){j=j.filter(function(e){return e!==a}),document.removeEventListener("wheel",d,D),document.removeEventListener("touchmove",d,D),document.removeEventListener("touchstart",c,D)}},[]);var p=e.removeScrollBar,f=e.inert;return s.createElement(s.Fragment,null,f?s.createElement(a,{styles:"\n  .block-interactivity-".concat(n," {pointer-events: none;}\n  .allow-interactivity-").concat(n," {pointer-events: all;}\n")}):null,p?s.createElement(L,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(r),g);var z=s.forwardRef(function(e,t){return s.createElement(v,a({},e,{ref:t,sideCar:$}))});z.classNames=v.classNames;let K=z},84102:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=i(61374)._(i(52936)).default.createContext({})},84306:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let r=i(61374)._(i(52936)),n=i(92774),a=r.default.createContext(n.imageConfigDefault)},87961:(e,t,i)=>{i.d(t,{C1:()=>k,bL:()=>w});var r=i(52936),n=i(37807),a=i(7493),o=i(2884),s=i(52462),l=i(54412),d=i(11340),u=i(61501),c=i(76589),h=i(55524),m="Checkbox",[p,f]=(0,a.A)(m),[v,g]=p(m);function b(e){let{__scopeCheckbox:t,checked:i,children:n,defaultChecked:a,disabled:o,form:l,name:d,onCheckedChange:u,required:c,value:p="on",internal_do_not_use_render:f}=e,[g,b]=(0,s.i)({prop:i,defaultProp:null!=a&&a,onChange:u,caller:m}),[E,y]=r.useState(null),[w,A]=r.useState(null),k=r.useRef(!1),x=!E||!!l||!!E.closest("form"),_={checked:g,disabled:o,setChecked:b,control:E,setControl:y,name:d,form:l,value:p,hasConsumerStoppedPropagationRef:k,required:c,defaultChecked:!T(a)&&a,isFormControl:x,bubbleInput:w,setBubbleInput:A};return(0,h.jsx)(v,{scope:t,..._,children:"function"==typeof f?f(_):n})}var E="CheckboxTrigger",y=r.forwardRef((e,t)=>
2683{let{__scopeCheckbox:i,onKeyDown:a,onClick:s,...l}=e,{control:d,value:u,disabled:m,checked:p,required:f,setControl:v,setChecked:b,hasConsumerStoppedPropagationRef:y,isFormControl:w,bubbleInput:A}=g(E,i),k=(0,n.s)(t,v),x=r.useRef(p);return r.useEffect(()=>{let e=null==d?void 0:d.form;if(e){let t=()=>b(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,b]),(0,h.jsx)(c.sG.button,{type:"button",role:"checkbox","aria-checked":T(p)?"mixed":p,"aria-required":f,"data-state":S(p),"data-disabled":m?"":void 0,disabled:m,value:u,...l,ref:k,onKeyDown:(0,o.mK)(a,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,o.mK)(s,e=>{b(e=>!!T(e)||!e),A&&w&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})});y.displayName=E;var w=r.forwardRef((e,t)=>{let{__scopeCheckbox:i,name:r,checked:n,defaultChecked:a,required:o,disabled:s,value:l,onCheckedChange:d,form:u,...c}=e;return(0,h.jsx)(b,{__scopeCheckbox:i,checked:n,defaultChecked:a,disabled:s,required:o,onCheckedChange:d,name:r,form:u,value:l,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(y,{...c,ref:t,__scopeCheckbox:i}),r&&(0,h.jsx)(_,{__scopeCheckbox:i})]})}})});w.displayName=m;var A="CheckboxIndicator",k=r.forwardRef((e,t)=>{let{__scopeCheckbox:i,forceMount:r,...n}=e,a=g(A,i);return(0,h.jsx)(u.C,{present:r||T(a.checked)||!0===a.checked,children:(0,h.jsx)(c.sG.span,{"data-state":S(a.checked),"data-disabled":a.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});k.displayName=A;var x="CheckboxBubbleInput",_=r.forwardRef((e,t)=>{let{__scopeCheckbox:i,...a}=e,{control:o,hasConsumerStoppedPropagationRef:s,checked:u,defaultChecked:m,required:p,disabled:f,name:v,value:b,form:E,bubbleInput:y,setBubbleInput:w}=g(x,i),A=(0,n.s)(t,w),k=(0,l.Z)(u),_=(0,d.X)(o);r.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!s.current;if(k!==u&&e){let i=new Event("click",{bubbles:t});y.indeterminate=T(u),e.call(y,!T(u)&&u),y.dispatchEvent(i)}},[y,k,u,s]);let S=r.useRef(!T(u)&&u);return(0,h.jsx)(c.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=m?m:S.current,required:p,disabled:f,name:v,value:b,form:E,...a,tabIndex:-1,ref:A,style:{...a.style,..._,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function T(e){return"indeterminate"===e}function S(e){return T(e)?"indeterminate":e?"checked":"unchecked"}_.displayName=x},91402:(e,t,i)=>{i.d(t,{Oh:()=>o});var r=i(52936),n=0,a=null;function o(){r.useEffect(()=>{a||(a={start:s(),end:s()});let{start:e,end:t}=a;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),n++,()=>{1===n&&(null==a||a.start.remove(),null==a||a.end.remove(),a=null),n=Math.max(0,n-1)}},[])}function s(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},92774:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{VALID_LOADERS:function(){return i},imageConfigDefault:function(){return r}});let i=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},93149:(e,t,i)=>{i.d(t,{Z:()=>l,b:()=>d});var r=i(52936),n=i(77769),a=i(76589),o=i(36522),s=i(55524),l=r.forwardRef((e,t)=>{var i,l;let{container:d,...u}=e,[c,h]=r.useState(!1);(0,o.N)(()=>h(!0),[]);
2683let m=d||c&&(null==(l=globalThis)||null==(i=l.document)?void 0:i.body);return m?n.createPortal((0,s.jsx)(a.sG.div,{...u,ref:t}),m):null});l.displayName="Portal";var d=l},94038:(e,t,i)=>{function r(e,t,i){if(!t.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}function n(e,t){var i=r(e,t,"get");return i.get?i.get.call(e):i.value}function a(e,t,i){var n=r(e,t,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}i.d(t,{N:()=>h});var o,s=i(52936),l=i(7493),d=i(37807),u=i(30728),c=i(55524);function h(e){let t=e+"CollectionProvider",[i,r]=(0,l.A)(t),[n,a]=i(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:i}=e,r=s.useRef(null),a=s.useRef(new Map).current;return(0,c.jsx)(n,{scope:t,itemMap:a,collectionRef:r,children:i})};o.displayName=t;let h=e+"CollectionSlot",m=(0,u.TL)(h),p=s.forwardRef((e,t)=>{let{scope:i,children:r}=e,n=a(h,i),o=(0,d.s)(t,n.collectionRef);return(0,c.jsx)(m,{ref:o,children:r})});p.displayName=h;let f=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,u.TL)(f),b=s.forwardRef((e,t)=>{let{scope:i,children:r,...n}=e,o=s.useRef(null),l=(0,d.s)(t,o),u=a(f,i);return s.useEffect(()=>(u.itemMap.set(o,{ref:o,...n}),()=>void u.itemMap.delete(o))),(0,c.jsx)(g,{...{[v]:""},ref:l,children:r})});return b.displayName=f,[{Provider:o,Slot:p,ItemSlot:b},function(t){let i=a(e+"CollectionConsumer",t);return s.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(i.itemMap.values()).sort((e,i)=>t.indexOf(e.ref.current)-t.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])},r]}var m=new WeakMap;function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let i=function(e,t){let i=e.length,r=f(t),n=r>=0?r:i+r;return n<0||n>=i?-1:n}(e,t);return -1===i?void 0:e[i]}function f(e){return e!=e||0===e?0:Math.trunc(e)}o=new WeakMap,class e extends Map{set(e,t){return m.get(this)&&(this.has(e)?n(this,o)[n(this,o).indexOf(e)]=e:n(this,o).push(e)),super.set(e,t),this}insert(e,t,i){let r,a=this.has(t),s=n(this,o).length,l=f(e),d=l>=0?l:s+l,u=d<0||d>=s?-1:d;if(u===this.size||a&&u===this.size-1||-1===u)return this.set(t,i),this;let c=this.size+ +!a;l<0&&d++;let h=[...n(this,o)],m=!1;for(let e=d;e<c;e++)if(d===e){let n=h[e];h[e]===t&&(n=h[e+1]),a&&this.delete(t),r=this.get(n),this.set(t,i)}else{m||h[e-1]!==t||(m=!0);let i=h[m?e:e-1],n=r;r=this.get(i),this.delete(i),this.set(i,n)}return this}with(t,i,r){let n=new e(this);return n.insert(t,i,r),n}before(e){let t=n(this,o).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,i){let r=n(this,o).indexOf(e);return -1===r?this:this.insert(r,t,i)}after(e){let t=n(this,o).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,i){let r=n(this,o).indexOf(e);return -1===r?this:this.insert(r+1,t,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return a(this,o,[]),super.clear()}delete(e){let t=super.delete(e);return t&&n(this,o).splice(n(this,o).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=p(n(this,o),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=p(n(this,o),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return n(this,o).indexOf(e)}keyAt(e){return p(n(this,o),e)}from(e,t){let i=this.indexOf(e);if(-1===i)return;let r=i+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let i=this.indexOf(e);if(-1===i)return;let r=i+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let i=0;for(let r of this){if(Reflect.apply(e,t,[r,i,this]))return r;i++}}findIndex(e,t){let i=0;for(let r of this){if(Reflect.apply(e,t,[r,i,this]))return i;i++}return -1}filter(t,i){let r=[],n=0;for(let e of this)Reflect.apply(t,i,[e,n,this])&&r.push(e),n++;return new e(r)}map(t,i){let r=[],n=0;for(let e of this)r.push([e[0],Reflect.apply(t,i,[e,n,this])]),n++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let[r,n]=t,a=0,o=null!=n?n:this.at(0);for(let e of this)o=0===a&&1===t.length?e:Reflect.apply(r,this,[o,e,a,this]),a++;return o}reduceRight(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let[r,n]=t,a=null!=n?n:this.at(-1);for(let e=this.size-1;e>=0;e--){let i=this.at(e);
2683a=e===this.size-1&&1===t.length?i:Reflect.apply(r,this,[a,i,e,this])}return a}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let i=this.keyAt(e),r=this.get(i);t.set(i,r)}return t}toSpliced(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];let n=[...this.entries()];return n.splice(...i),new e(n)}slice(t,i){let r=new e,n=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==i&&i>0&&(n=i-1);for(let e=t;e<=n;e++){let t=this.keyAt(e),i=this.get(t);r.set(t,i)}return r}every(e,t){let i=0;for(let r of this){if(!Reflect.apply(e,t,[r,i,this]))return!1;i++}return!0}some(e,t){let i=0;for(let r of this){if(Reflect.apply(e,t,[r,i,this]))return!0;i++}return!1}constructor(e){super(e),function(e,t,i){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,i)}(this,o,{writable:!0,value:void 0}),a(this,o,[...super.keys()]),m.set(this,!0)}}}}]);

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.