@halibegic/react-video-player 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(Se,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react"),require("zustand"),require("@radix-ui/react-slider"),require("hls.js"),require("@radix-ui/react-dropdown-menu")):typeof define=="function"&&define.amd?define(["exports","react","zustand","@radix-ui/react-slider","hls.js","@radix-ui/react-dropdown-menu"],y):(Se=typeof globalThis<"u"?globalThis:Se||self,y(Se.ReactVideoPlayer={},Se.React,Se.zustand,Se.RadixUISlider,Se.Hls,Se.RadixUIDropdownMenu))})(this,(function(Se,y,Ge,Wr,Le,qr){"use strict";function Rt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const Xe=Rt(Wr),Be=Rt(qr);function Zr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Je={exports:{}},Ue={};/**
1
+ (function(Q,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("zustand"),require("@radix-ui/react-slider"),require("hls.js"),require("@radix-ui/react-dropdown-menu")):typeof define=="function"&&define.amd?define(["exports","react","zustand","@radix-ui/react-slider","hls.js","@radix-ui/react-dropdown-menu"],p):(Q=typeof globalThis<"u"?globalThis:Q||self,p(Q.ReactVideoPlayer={},Q.React,Q.zustand,Q.RadixUISlider,Q.Hls,Q.RadixUIDropdownMenu))})(this,(function(Q,p,Je,$r,we,Hr){"use strict";function Xt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ke=Xt($r),Be=Xt(Hr);var Qe={exports:{}},Ue={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Pt;function Gr(){if(Pt)return Ue;Pt=1;var e=y,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(d,u,f){var v,b={},I=null,k=null;f!==void 0&&(I=""+f),u.key!==void 0&&(I=""+u.key),u.ref!==void 0&&(k=u.ref);for(v in u)n.call(u,v)&&!c.hasOwnProperty(v)&&(b[v]=u[v]);if(d&&d.defaultProps)for(v in u=d.defaultProps,u)b[v]===void 0&&(b[v]=u[v]);return{$$typeof:r,type:d,key:I,ref:k,props:b,_owner:a.current}}return Ue.Fragment=t,Ue.jsx=l,Ue.jsxs=l,Ue}var We={};/**
9
+ */var Jt;function zr(){if(Jt)return Ue;Jt=1;var e=p,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(u,i,d){var h,y={},b=null,w=null;d!==void 0&&(b=""+d),i.key!==void 0&&(b=""+i.key),i.ref!==void 0&&(w=i.ref);for(h in i)r.call(i,h)&&!c.hasOwnProperty(h)&&(y[h]=i[h]);if(u&&u.defaultProps)for(h in i=u.defaultProps,i)y[h]===void 0&&(y[h]=i[h]);return{$$typeof:t,type:u,key:b,ref:w,props:y,_owner:s.current}}return Ue.Fragment=n,Ue.jsx=l,Ue.jsxs=l,Ue}var We={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,34 +14,25 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var kt;function Xr(){return kt||(kt=1,process.env.NODE_ENV!=="production"&&(function(){var e=y,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),T=Symbol.iterator,_="@@iterator";function j(o){if(o===null||typeof o!="object")return null;var m=T&&o[T]||o[_];return typeof m=="function"?m:null}var L=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(o){{for(var m=arguments.length,E=new Array(m>1?m-1:0),D=1;D<m;D++)E[D-1]=arguments[D];g("error",o,E)}}function g(o,m,E){{var D=L.ReactDebugCurrentFrame,G=D.getStackAddendum();G!==""&&(m+="%s",E=E.concat([G]));var J=E.map(function(B){return String(B)});J.unshift("Warning: "+m),Function.prototype.apply.call(console[o],console,J)}}var A=!1,p=!1,W=!1,fe=!1,re=!1,le;le=Symbol.for("react.module.reference");function F(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===c||re||o===a||o===f||o===v||fe||o===k||A||p||W||typeof o=="object"&&o!==null&&(o.$$typeof===I||o.$$typeof===b||o.$$typeof===l||o.$$typeof===d||o.$$typeof===u||o.$$typeof===le||o.getModuleId!==void 0))}function ye(o,m,E){var D=o.displayName;if(D)return D;var G=m.displayName||m.name||"";return G!==""?E+"("+G+")":E}function ne(o){return o.displayName||"Context"}function K(o){if(o==null)return null;if(typeof o.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case t:return"Portal";case c:return"Profiler";case a:return"StrictMode";case f:return"Suspense";case v:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case d:var m=o;return ne(m)+".Consumer";case l:var E=o;return ne(E._context)+".Provider";case u:return ye(o,o.render,"ForwardRef");case b:var D=o.displayName||null;return D!==null?D:K(o.type)||"Memo";case I:{var G=o,J=G._payload,B=G._init;try{return K(B(J))}catch{return null}}}return null}var oe=Object.assign,Q=0,we,ee,he,Ee,xe,Te,P;function C(){}C.__reactDisabledLog=!0;function R(){{if(Q===0){we=console.log,ee=console.info,he=console.warn,Ee=console.error,xe=console.group,Te=console.groupCollapsed,P=console.groupEnd;var o={configurable:!0,enumerable:!0,value:C,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}Q++}}function M(){{if(Q--,Q===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:oe({},o,{value:we}),info:oe({},o,{value:ee}),warn:oe({},o,{value:he}),error:oe({},o,{value:Ee}),group:oe({},o,{value:xe}),groupCollapsed:oe({},o,{value:Te}),groupEnd:oe({},o,{value:P})})}Q<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var s=L.ReactCurrentDispatcher,$;function w(o,m,E){{if($===void 0)try{throw Error()}catch(G){var D=G.stack.trim().match(/\n( *(at )?)/);$=D&&D[1]||""}return`
18
- `+$+o}}var X=!1,V;{var Y=typeof WeakMap=="function"?WeakMap:Map;V=new Y}function h(o,m){if(!o||X)return"";{var E=V.get(o);if(E!==void 0)return E}var D;X=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=s.current,s.current=null,R();try{if(m){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(ge){D=ge}Reflect.construct(o,[],B)}else{try{B.call()}catch(ge){D=ge}o.call(B.prototype)}}else{try{throw Error()}catch(ge){D=ge}o()}}catch(ge){if(ge&&D&&typeof ge.stack=="string"){for(var H=ge.stack.split(`
19
- `),ve=D.stack.split(`
20
- `),ce=H.length-1,de=ve.length-1;ce>=1&&de>=0&&H[ce]!==ve[de];)de--;for(;ce>=1&&de>=0;ce--,de--)if(H[ce]!==ve[de]){if(ce!==1||de!==1)do if(ce--,de--,de<0||H[ce]!==ve[de]){var Ce=`
21
- `+H[ce].replace(" at new "," at ");return o.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",o.displayName)),typeof o=="function"&&V.set(o,Ce),Ce}while(ce>=1&&de>=0);break}}}finally{X=!1,s.current=J,M(),Error.prepareStackTrace=G}var Ye=o?o.displayName||o.name:"",Oe=Ye?w(Ye):"";return typeof o=="function"&&V.set(o,Oe),Oe}function ae(o,m,E){return h(o,!1)}function se(o){var m=o.prototype;return!!(m&&m.isReactComponent)}function N(o,m,E){if(o==null)return"";if(typeof o=="function")return h(o,se(o));if(typeof o=="string")return w(o);switch(o){case f:return w("Suspense");case v:return w("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case u:return ae(o.render);case b:return N(o.type,m,E);case I:{var D=o,G=D._payload,J=D._init;try{return N(J(G),m,E)}catch{}}}return""}var ie=Object.prototype.hasOwnProperty,U={},ue=L.ReactDebugCurrentFrame;function Re(o){if(o){var m=o._owner,E=N(o.type,o._source,m?m.type:null);ue.setExtraStackFrame(E)}else ue.setExtraStackFrame(null)}function pe(o,m,E,D,G){{var J=Function.call.bind(ie);for(var B in o)if(J(o,B)){var H=void 0;try{if(typeof o[B]!="function"){var ve=Error((D||"React class")+": "+E+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ve.name="Invariant Violation",ve}H=o[B](m,B,D,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ce){H=ce}H&&!(H instanceof Error)&&(Re(G),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",D||"React class",E,B,typeof H),Re(null)),H instanceof Error&&!(H.message in U)&&(U[H.message]=!0,Re(G),x("Failed %s type: %s",E,H.message),Re(null))}}}var Ve=Array.isArray;function _e(o){return Ve(o)}function be(o){{var m=typeof Symbol=="function"&&Symbol.toStringTag,E=m&&o[Symbol.toStringTag]||o.constructor.name||"Object";return E}}function O(o){try{return te(o),!1}catch{return!0}}function te(o){return""+o}function $e(o){if(O(o))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",be(o)),te(o)}var He=L.ReactCurrentOwner,Pe={key:!0,ref:!0,__self:!0,__source:!0},Fr,Nr;function ua(o){if(ie.call(o,"ref")){var m=Object.getOwnPropertyDescriptor(o,"ref").get;if(m&&m.isReactWarning)return!1}return o.ref!==void 0}function da(o){if(ie.call(o,"key")){var m=Object.getOwnPropertyDescriptor(o,"key").get;if(m&&m.isReactWarning)return!1}return o.key!==void 0}function fa(o,m){typeof o.ref=="string"&&He.current}function pa(o,m){{var E=function(){Fr||(Fr=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};E.isReactWarning=!0,Object.defineProperty(o,"key",{get:E,configurable:!0})}}function ha(o,m){{var E=function(){Nr||(Nr=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};E.isReactWarning=!0,Object.defineProperty(o,"ref",{get:E,configurable:!0})}}var ma=function(o,m,E,D,G,J,B){var H={$$typeof:r,type:o,key:m,ref:E,props:B,_owner:J};return H._store={},Object.defineProperty(H._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(H,"_self",{configurable:!1,enumerable:!1,writable:!1,value:D}),Object.defineProperty(H,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(H.props),Object.freeze(H)),H};function va(o,m,E,D,G){{var J,B={},H=null,ve=null;E!==void 0&&($e(E),H=""+E),da(m)&&($e(m.key),H=""+m.key),ua(m)&&(ve=m.ref,fa(m,G));for(J in m)ie.call(m,J)&&!Pe.hasOwnProperty(J)&&(B[J]=m[J]);if(o&&o.defaultProps){var ce=o.defaultProps;for(J in ce)B[J]===void 0&&(B[J]=ce[J])}if(H||ve){var de=typeof o=="function"?o.displayName||o.name||"Unknown":o;H&&pa(B,de),ve&&ha(B,de)}return ma(o,H,ve,G,D,He.current,B)}}var xt=L.ReactCurrentOwner,Vr=L.ReactDebugCurrentFrame;function ze(o){if(o){var m=o._owner,E=N(o.type,o._source,m?m.type:null);Vr.setExtraStackFrame(E)}else Vr.setExtraStackFrame(null)}var Ct;Ct=!1;function Et(o){return typeof o=="object"&&o!==null&&o.$$typeof===r}function $r(){{if(xt.current){var o=K(xt.current.type);if(o)return`
17
+ */var Kt;function Br(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&(function(){var e=p,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),P=Symbol.iterator,T="@@iterator";function N(o){if(o===null||typeof o!="object")return null;var f=P&&o[P]||o[T];return typeof f=="function"?f:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(o){{for(var f=arguments.length,v=new Array(f>1?f-1:0),C=1;C<f;C++)v[C-1]=arguments[C];g("error",o,v)}}function g(o,f,v){{var C=R.ReactDebugCurrentFrame,M=C.getStackAddendum();M!==""&&(f+="%s",v=v.concat([M]));var F=v.map(function(L){return String(L)});F.unshift("Warning: "+f),Function.prototype.apply.call(console[o],console,F)}}var I=!1,O=!1,k=!1,S=!1,W=!1,X;X=Symbol.for("react.module.reference");function D(o){return!!(typeof o=="string"||typeof o=="function"||o===r||o===c||W||o===s||o===d||o===h||S||o===w||I||O||k||typeof o=="object"&&o!==null&&(o.$$typeof===b||o.$$typeof===y||o.$$typeof===l||o.$$typeof===u||o.$$typeof===i||o.$$typeof===X||o.getModuleId!==void 0))}function Fe(o,f,v){var C=o.displayName;if(C)return C;var M=f.displayName||f.name||"";return M!==""?v+"("+M+")":v}function de(o){return o.displayName||"Context"}function q(o){if(o==null)return null;if(typeof o.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case r:return"Fragment";case n:return"Portal";case c:return"Profiler";case s:return"StrictMode";case d:return"Suspense";case h:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case u:var f=o;return de(f)+".Consumer";case l:var v=o;return de(v._context)+".Provider";case i:return Fe(o,o.render,"ForwardRef");case y:var C=o.displayName||null;return C!==null?C:q(o.type)||"Memo";case b:{var M=o,F=M._payload,L=M._init;try{return q(L(F))}catch{return null}}}return null}var te=Object.assign,le=0,Te,J,Ze,ne,me,ge,Y;function Ve(){}Ve.__reactDisabledLog=!0;function Ge(){{if(le===0){Te=console.log,J=console.info,Ze=console.warn,ne=console.error,me=console.group,ge=console.groupCollapsed,Y=console.groupEnd;var o={configurable:!0,enumerable:!0,value:Ve,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}le++}}function Ne(){{if(le--,le===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:te({},o,{value:Te}),info:te({},o,{value:J}),warn:te({},o,{value:Ze}),error:te({},o,{value:ne}),group:te({},o,{value:me}),groupCollapsed:te({},o,{value:ge}),groupEnd:te({},o,{value:Y})})}le<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=R.ReactCurrentDispatcher,ye;function se(o,f,v){{if(ye===void 0)try{throw Error()}catch(M){var C=M.stack.trim().match(/\n( *(at )?)/);ye=C&&C[1]||""}return`
18
+ `+ye+o}}var ie=!1,ve;{var $e=typeof WeakMap=="function"?WeakMap:Map;ve=new $e}function ae(o,f){if(!o||ie)return"";{var v=ve.get(o);if(v!==void 0)return v}var C;ie=!0;var M=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var F;F=fe.current,fe.current=null,Ge();try{if(f){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(K){C=K}Reflect.construct(o,[],L)}else{try{L.call()}catch(K){C=K}o.call(L.prototype)}}else{try{throw Error()}catch(K){C=K}o()}}catch(K){if(K&&C&&typeof K.stack=="string"){for(var j=K.stack.split(`
19
+ `),Z=C.stack.split(`
20
+ `),$=j.length-1,z=Z.length-1;$>=1&&z>=0&&j[$]!==Z[z];)z--;for(;$>=1&&z>=0;$--,z--)if(j[$]!==Z[z]){if($!==1||z!==1)do if($--,z--,z<0||j[$]!==Z[z]){var re=`
21
+ `+j[$].replace(" at new "," at ");return o.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",o.displayName)),typeof o=="function"&&ve.set(o,re),re}while($>=1&&z>=0);break}}}finally{ie=!1,fe.current=F,Ne(),Error.prepareStackTrace=M}var ze=o?o.displayName||o.name:"",Pe=ze?se(ze):"";return typeof o=="function"&&ve.set(o,Pe),Pe}function yi(o,f,v){return ae(o,!1)}function vi(o){var f=o.prototype;return!!(f&&f.isReactComponent)}function St(o,f,v){if(o==null)return"";if(typeof o=="function")return ae(o,vi(o));if(typeof o=="string")return se(o);switch(o){case d:return se("Suspense");case h:return se("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case i:return yi(o.render);case y:return St(o.type,f,v);case b:{var C=o,M=C._payload,F=C._init;try{return St(F(M),f,v)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,Tr={},Pr=R.ReactDebugCurrentFrame;function Ct(o){if(o){var f=o._owner,v=St(o.type,o._source,f?f.type:null);Pr.setExtraStackFrame(v)}else Pr.setExtraStackFrame(null)}function wi(o,f,v,C,M){{var F=Function.call.bind(Xe);for(var L in o)if(F(o,L)){var j=void 0;try{if(typeof o[L]!="function"){var Z=Error((C||"React class")+": "+v+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Z.name="Invariant Violation",Z}j=o[L](f,L,C,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){j=$}j&&!(j instanceof Error)&&(Ct(M),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",v,L,typeof j),Ct(null)),j instanceof Error&&!(j.message in Tr)&&(Tr[j.message]=!0,Ct(M),x("Failed %s type: %s",v,j.message),Ct(null))}}}var bi=Array.isArray;function Wt(o){return bi(o)}function xi(o){{var f=typeof Symbol=="function"&&Symbol.toStringTag,v=f&&o[Symbol.toStringTag]||o.constructor.name||"Object";return v}}function Si(o){try{return Rr(o),!1}catch{return!0}}function Rr(o){return""+o}function jr(o){if(Si(o))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xi(o)),Rr(o)}var Lr=R.ReactCurrentOwner,Ci={key:!0,ref:!0,__self:!0,__source:!0},_r,Ir;function ki(o){if(Xe.call(o,"ref")){var f=Object.getOwnPropertyDescriptor(o,"ref").get;if(f&&f.isReactWarning)return!1}return o.ref!==void 0}function Ei(o){if(Xe.call(o,"key")){var f=Object.getOwnPropertyDescriptor(o,"key").get;if(f&&f.isReactWarning)return!1}return o.key!==void 0}function Ti(o,f){typeof o.ref=="string"&&Lr.current}function Pi(o,f){{var v=function(){_r||(_r=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};v.isReactWarning=!0,Object.defineProperty(o,"key",{get:v,configurable:!0})}}function Ri(o,f){{var v=function(){Ir||(Ir=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};v.isReactWarning=!0,Object.defineProperty(o,"ref",{get:v,configurable:!0})}}var ji=function(o,f,v,C,M,F,L){var j={$$typeof:t,type:o,key:f,ref:v,props:L,_owner:F};return j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(j,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(j,"_source",{configurable:!1,enumerable:!1,writable:!1,value:M}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j};function Li(o,f,v,C,M){{var F,L={},j=null,Z=null;v!==void 0&&(jr(v),j=""+v),Ei(f)&&(jr(f.key),j=""+f.key),ki(f)&&(Z=f.ref,Ti(f,M));for(F in f)Xe.call(f,F)&&!Ci.hasOwnProperty(F)&&(L[F]=f[F]);if(o&&o.defaultProps){var $=o.defaultProps;for(F in $)L[F]===void 0&&(L[F]=$[F])}if(j||Z){var z=typeof o=="function"?o.displayName||o.name||"Unknown":o;j&&Pi(L,z),Z&&Ri(L,z)}return ji(o,j,Z,M,C,Lr.current,L)}}var qt=R.ReactCurrentOwner,Dr=R.ReactDebugCurrentFrame;function He(o){if(o){var f=o._owner,v=St(o.type,o._source,f?f.type:null);Dr.setExtraStackFrame(v)}else Dr.setExtraStackFrame(null)}var Yt;Yt=!1;function Zt(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function Or(){{if(qt.current){var o=q(qt.current.type);if(o)return`
22
22
 
23
- Check the render method of \``+o+"`."}return""}}function ga(o){return""}var Hr={};function ya(o){{var m=$r();if(!m){var E=typeof o=="string"?o:o.displayName||o.name;E&&(m=`
23
+ Check the render method of \``+o+"`."}return""}}function _i(o){return""}var Ar={};function Ii(o){{var f=Or();if(!f){var v=typeof o=="string"?o:o.displayName||o.name;v&&(f=`
24
24
 
25
- Check the top-level render call using <`+E+">.")}return m}}function zr(o,m){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var E=ya(m);if(Hr[E])return;Hr[E]=!0;var D="";o&&o._owner&&o._owner!==xt.current&&(D=" It was passed a child from "+K(o._owner.type)+"."),ze(o),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,D),ze(null)}}function Yr(o,m){{if(typeof o!="object")return;if(_e(o))for(var E=0;E<o.length;E++){var D=o[E];Et(D)&&zr(D,m)}else if(Et(o))o._store&&(o._store.validated=!0);else if(o){var G=j(o);if(typeof G=="function"&&G!==o.entries)for(var J=G.call(o),B;!(B=J.next()).done;)Et(B.value)&&zr(B.value,m)}}}function wa(o){{var m=o.type;if(m==null||typeof m=="string")return;var E;if(typeof m=="function")E=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===u||m.$$typeof===b))E=m.propTypes;else return;if(E){var D=K(m);pe(E,o.props,"prop",D,o)}else if(m.PropTypes!==void 0&&!Ct){Ct=!0;var G=K(m);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ba(o){{for(var m=Object.keys(o.props),E=0;E<m.length;E++){var D=m[E];if(D!=="children"&&D!=="key"){ze(o),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D),ze(null);break}}o.ref!==null&&(ze(o),x("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}var Br={};function Ur(o,m,E,D,G,J){{var B=F(o);if(!B){var H="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(H+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ve=ga();ve?H+=ve:H+=$r();var ce;o===null?ce="null":_e(o)?ce="array":o!==void 0&&o.$$typeof===r?(ce="<"+(K(o.type)||"Unknown")+" />",H=" Did you accidentally export a JSX literal instead of a component?"):ce=typeof o,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ce,H)}var de=va(o,m,E,G,J);if(de==null)return de;if(B){var Ce=m.children;if(Ce!==void 0)if(D)if(_e(Ce)){for(var Ye=0;Ye<Ce.length;Ye++)Yr(Ce[Ye],o);Object.freeze&&Object.freeze(Ce)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Yr(Ce,o)}if(ie.call(m,"key")){var Oe=K(o),ge=Object.keys(m).filter(function(Ra){return Ra!=="key"}),Tt=ge.length>0?"{key: someKey, "+ge.join(": ..., ")+": ...}":"{key: someKey}";if(!Br[Oe+Tt]){var Ta=ge.length>0?"{"+ge.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+v+">.")}return f}}function Mr(o,f){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var v=Ii(f);if(Ar[v])return;Ar[v]=!0;var C="";o&&o._owner&&o._owner!==qt.current&&(C=" It was passed a child from "+q(o._owner.type)+"."),He(o),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',v,C),He(null)}}function Fr(o,f){{if(typeof o!="object")return;if(Wt(o))for(var v=0;v<o.length;v++){var C=o[v];Zt(C)&&Mr(C,f)}else if(Zt(o))o._store&&(o._store.validated=!0);else if(o){var M=N(o);if(typeof M=="function"&&M!==o.entries)for(var F=M.call(o),L;!(L=F.next()).done;)Zt(L.value)&&Mr(L.value,f)}}}function Di(o){{var f=o.type;if(f==null||typeof f=="string")return;var v;if(typeof f=="function")v=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===i||f.$$typeof===y))v=f.propTypes;else return;if(v){var C=q(f);wi(v,o.props,"prop",C,o)}else if(f.PropTypes!==void 0&&!Yt){Yt=!0;var M=q(f);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",M||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Oi(o){{for(var f=Object.keys(o.props),v=0;v<f.length;v++){var C=f[v];if(C!=="children"&&C!=="key"){He(o),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),He(null);break}}o.ref!==null&&(He(o),x("Invalid attribute `ref` supplied to `React.Fragment`."),He(null))}}var Vr={};function Nr(o,f,v,C,M,F){{var L=D(o);if(!L){var j="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(j+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z=_i();Z?j+=Z:j+=Or();var $;o===null?$="null":Wt(o)?$="array":o!==void 0&&o.$$typeof===t?($="<"+(q(o.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):$=typeof o,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,j)}var z=Li(o,f,v,M,F);if(z==null)return z;if(L){var re=f.children;if(re!==void 0)if(C)if(Wt(re)){for(var ze=0;ze<re.length;ze++)Fr(re[ze],o);Object.freeze&&Object.freeze(re)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Fr(re,o)}if(Xe.call(f,"key")){var Pe=q(o),K=Object.keys(f).filter(function($i){return $i!=="key"}),Gt=K.length>0?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}";if(!Vr[Pe+Gt]){var Ni=K.length>0?"{"+K.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Tt,Oe,Ta,Oe),Br[Oe+Tt]=!0}}return o===n?ba(de):wa(de),de}}function Sa(o,m,E){return Ur(o,m,E,!0)}function xa(o,m,E){return Ur(o,m,E,!1)}var Ca=xa,Ea=Sa;We.Fragment=n,We.jsx=Ca,We.jsxs=Ea})()),We}var _t;function Jr(){return _t||(_t=1,process.env.NODE_ENV==="production"?Je.exports=Gr():Je.exports=Xr()),Je.exports}var i=Jr();const Kr=typeof window<"u"?y.useLayoutEffect:y.useEffect;function Ke(e,r){const t=y.useRef(e);Kr(()=>{t.current=e},[e]),y.useEffect(()=>{if(r===null)return;const n=setInterval(()=>{t.current()},r);return()=>{clearInterval(n)}},[r])}function Qr(e){const[,r]=y.useState(0);Ke(()=>r(t=>t+1),e)}const en=(e,r)=>Ge.create(t=>({delay:0,startDate:e,endDate:r,startTime:e.getTime(),endTime:r.getTime(),setDelay:n=>t({delay:n}),setStartDate:n=>t({startDate:n}),setEndDate:n=>t({endDate:n})})),jt=y.createContext(null),tn=({children:e,startDate:r,endDate:t})=>{const n=y.useRef(null);return n.current||(n.current=en(r,t)),i.jsx(jt.Provider,{value:n.current,children:e})},me=e=>{const r=y.useContext(jt);if(!r)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Ge.useStore(r,e)};var Qe={exports:{}},q={};/** @license React v16.13.1
31
- * react-is.production.min.js
32
- *
33
- * Copyright (c) Facebook, Inc. and its affiliates.
34
- *
35
- * This source code is licensed under the MIT license found in the
36
- * LICENSE file in the root directory of this source tree.
37
- */var At;function rn(){if(At)return q;At=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,I=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,j=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function g(p){if(typeof p=="object"&&p!==null){var W=p.$$typeof;switch(W){case r:switch(p=p.type,p){case u:case f:case n:case c:case a:case b:return p;default:switch(p=p&&p.$$typeof,p){case d:case v:case T:case k:case l:return p;default:return W}}case t:return W}}}function A(p){return g(p)===f}return q.AsyncMode=u,q.ConcurrentMode=f,q.ContextConsumer=d,q.ContextProvider=l,q.Element=r,q.ForwardRef=v,q.Fragment=n,q.Lazy=T,q.Memo=k,q.Portal=t,q.Profiler=c,q.StrictMode=a,q.Suspense=b,q.isAsyncMode=function(p){return A(p)||g(p)===u},q.isConcurrentMode=A,q.isContextConsumer=function(p){return g(p)===d},q.isContextProvider=function(p){return g(p)===l},q.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===r},q.isForwardRef=function(p){return g(p)===v},q.isFragment=function(p){return g(p)===n},q.isLazy=function(p){return g(p)===T},q.isMemo=function(p){return g(p)===k},q.isPortal=function(p){return g(p)===t},q.isProfiler=function(p){return g(p)===c},q.isStrictMode=function(p){return g(p)===a},q.isSuspense=function(p){return g(p)===b},q.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===f||p===c||p===a||p===b||p===I||typeof p=="object"&&p!==null&&(p.$$typeof===T||p.$$typeof===k||p.$$typeof===l||p.$$typeof===d||p.$$typeof===v||p.$$typeof===j||p.$$typeof===L||p.$$typeof===x||p.$$typeof===_)},q.typeOf=g,q}var Z={};/** @license React v16.13.1
38
- * react-is.development.js
39
- *
40
- * Copyright (c) Facebook, Inc. and its affiliates.
41
- *
42
- * This source code is licensed under the MIT license found in the
43
- * LICENSE file in the root directory of this source tree.
44
- */var Lt;function nn(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,I=e?Symbol.for("react.suspense_list"):60120,k=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,j=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function g(h){return typeof h=="string"||typeof h=="function"||h===n||h===f||h===c||h===a||h===b||h===I||typeof h=="object"&&h!==null&&(h.$$typeof===T||h.$$typeof===k||h.$$typeof===l||h.$$typeof===d||h.$$typeof===v||h.$$typeof===j||h.$$typeof===L||h.$$typeof===x||h.$$typeof===_)}function A(h){if(typeof h=="object"&&h!==null){var ae=h.$$typeof;switch(ae){case r:var se=h.type;switch(se){case u:case f:case n:case c:case a:case b:return se;default:var N=se&&se.$$typeof;switch(N){case d:case v:case T:case k:case l:return N;default:return ae}}case t:return ae}}}var p=u,W=f,fe=d,re=l,le=r,F=v,ye=n,ne=T,K=k,oe=t,Q=c,we=a,ee=b,he=!1;function Ee(h){return he||(he=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),xe(h)||A(h)===u}function xe(h){return A(h)===f}function Te(h){return A(h)===d}function P(h){return A(h)===l}function C(h){return typeof h=="object"&&h!==null&&h.$$typeof===r}function R(h){return A(h)===v}function M(h){return A(h)===n}function s(h){return A(h)===T}function $(h){return A(h)===k}function w(h){return A(h)===t}function X(h){return A(h)===c}function V(h){return A(h)===a}function Y(h){return A(h)===b}Z.AsyncMode=p,Z.ConcurrentMode=W,Z.ContextConsumer=fe,Z.ContextProvider=re,Z.Element=le,Z.ForwardRef=F,Z.Fragment=ye,Z.Lazy=ne,Z.Memo=K,Z.Portal=oe,Z.Profiler=Q,Z.StrictMode=we,Z.Suspense=ee,Z.isAsyncMode=Ee,Z.isConcurrentMode=xe,Z.isContextConsumer=Te,Z.isContextProvider=P,Z.isElement=C,Z.isForwardRef=R,Z.isFragment=M,Z.isLazy=s,Z.isMemo=$,Z.isPortal=w,Z.isProfiler=X,Z.isStrictMode=V,Z.isSuspense=Y,Z.isValidElementType=g,Z.typeOf=A})()),Z}var It;function Ot(){return It||(It=1,process.env.NODE_ENV==="production"?Qe.exports=rn():Qe.exports=nn()),Qe.exports}var lt=Ot();function on(e){function r(P,C,R,M,s){for(var $=0,w=0,X=0,V=0,Y,h,ae=0,se=0,N,ie=N=Y=0,U=0,ue=0,Re=0,pe=0,Ve=R.length,_e=Ve-1,be,O="",te="",$e="",He="",Pe;U<Ve;){if(h=R.charCodeAt(U),U===_e&&w+V+X+$!==0&&(w!==0&&(h=w===47?10:47),V=X=$=0,Ve++,_e++),w+V+X+$===0){if(U===_e&&(0<ue&&(O=O.replace(I,"")),0<O.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:O+=R.charAt(U)}h=59}switch(h){case 123:for(O=O.trim(),Y=O.charCodeAt(0),N=1,pe=++U;U<Ve;){switch(h=R.charCodeAt(U)){case 123:N++;break;case 125:N--;break;case 47:switch(h=R.charCodeAt(U+1)){case 42:case 47:e:{for(ie=U+1;ie<_e;++ie)switch(R.charCodeAt(ie)){case 47:if(h===42&&R.charCodeAt(ie-1)===42&&U+2!==ie){U=ie+1;break e}break;case 10:if(h===47){U=ie+1;break e}}U=ie}}break;case 91:h++;case 40:h++;case 34:case 39:for(;U++<_e&&R.charCodeAt(U)!==h;);}if(N===0)break;U++}switch(N=R.substring(pe,U),Y===0&&(Y=(O=O.replace(b,"").trim()).charCodeAt(0)),Y){case 64:switch(0<ue&&(O=O.replace(I,"")),h=O.charCodeAt(1),h){case 100:case 109:case 115:case 45:ue=C;break;default:ue=we}if(N=r(C,ue,N,h,s+1),pe=N.length,0<he&&(ue=t(we,O,Re),Pe=d(3,N,ue,C,K,ne,pe,h,s,M),O=ue.join(""),Pe!==void 0&&(pe=(N=Pe.trim()).length)===0&&(h=0,N="")),0<pe)switch(h){case 115:O=O.replace(W,l);case 100:case 109:case 45:N=O+"{"+N+"}";break;case 107:O=O.replace(x,"$1 $2"),N=O+"{"+N+"}",N=Q===1||Q===2&&c("@"+N,3)?"@-webkit-"+N+"@"+N:"@"+N;break;default:N=O+N,M===112&&(N=(te+=N,""))}else N="";break;default:N=r(C,t(C,O,Re),N,M,s+1)}$e+=N,N=Re=ue=ie=Y=0,O="",h=R.charCodeAt(++U);break;case 125:case 59:if(O=(0<ue?O.replace(I,""):O).trim(),1<(pe=O.length))switch(ie===0&&(Y=O.charCodeAt(0),Y===45||96<Y&&123>Y)&&(pe=(O=O.replace(" ",":")).length),0<he&&(Pe=d(1,O,C,P,K,ne,te.length,M,s,M))!==void 0&&(pe=(O=Pe.trim()).length)===0&&(O="\0\0"),Y=O.charCodeAt(0),h=O.charCodeAt(1),Y){case 0:break;case 64:if(h===105||h===99){He+=O+R.charAt(U);break}default:O.charCodeAt(pe-1)!==58&&(te+=a(O,Y,h,O.charCodeAt(2)))}Re=ue=ie=Y=0,O="",h=R.charCodeAt(++U)}}switch(h){case 13:case 10:w===47?w=0:1+Y===0&&M!==107&&0<O.length&&(ue=1,O+="\0"),0<he*xe&&d(0,O,C,P,K,ne,te.length,M,s,M),ne=1,K++;break;case 59:case 125:if(w+V+X+$===0){ne++;break}default:switch(ne++,be=R.charAt(U),h){case 9:case 32:if(V+$+w===0)switch(ae){case 44:case 58:case 9:case 32:be="";break;default:h!==32&&(be=" ")}break;case 0:be="\\0";break;case 12:be="\\f";break;case 11:be="\\v";break;case 38:V+w+$===0&&(ue=Re=1,be="\f"+be);break;case 108:if(V+w+$+oe===0&&0<ie)switch(U-ie){case 2:ae===112&&R.charCodeAt(U-3)===58&&(oe=ae);case 8:se===111&&(oe=se)}break;case 58:V+w+$===0&&(ie=U);break;case 44:w+X+V+$===0&&(ue=1,be+="\r");break;case 34:case 39:w===0&&(V=V===h?0:V===0?h:V);break;case 91:V+w+X===0&&$++;break;case 93:V+w+X===0&&$--;break;case 41:V+w+$===0&&X--;break;case 40:if(V+w+$===0){if(Y===0)switch(2*ae+3*se){case 533:break;default:Y=1}X++}break;case 64:w+X+V+$+ie+N===0&&(N=1);break;case 42:case 47:if(!(0<V+$+X))switch(w){case 0:switch(2*h+3*R.charCodeAt(U+1)){case 235:w=47;break;case 220:pe=U,w=42}break;case 42:h===47&&ae===42&&pe+2!==U&&(R.charCodeAt(pe+2)===33&&(te+=R.substring(pe,U+1)),be="",w=0)}}w===0&&(O+=be)}se=ae,ae=h,U++}if(pe=te.length,0<pe){if(ue=C,0<he&&(Pe=d(2,te,ue,P,K,ne,pe,M,s,M),Pe!==void 0&&(te=Pe).length===0))return He+te+$e;if(te=ue.join(",")+"{"+te+"}",Q*oe!==0){switch(Q!==2||c(te,2)||(oe=0),oe){case 111:te=te.replace(A,":-moz-$1")+te;break;case 112:te=te.replace(g,"::-webkit-input-$1")+te.replace(g,"::-moz-$1")+te.replace(g,":-ms-input-$1")+te}oe=0}}return He+te+$e}function t(P,C,R){var M=C.trim().split(j);C=M;var s=M.length,$=P.length;switch($){case 0:case 1:var w=0;for(P=$===0?"":P[0]+" ";w<s;++w)C[w]=n(P,C[w],R).trim();break;default:var X=w=0;for(C=[];w<s;++w)for(var V=0;V<$;++V)C[X++]=n(P[V]+" ",M[w],R).trim()}return C}function n(P,C,R){var M=C.charCodeAt(0);switch(33>M&&(M=(C=C.trim()).charCodeAt(0)),M){case 38:return C.replace(L,"$1"+P.trim());case 58:return P.trim()+C.replace(L,"$1"+P.trim());default:if(0<1*R&&0<C.indexOf("\f"))return C.replace(L,(P.charCodeAt(0)===58?"":"$1")+P.trim())}return P+C}function a(P,C,R,M){var s=P+";",$=2*C+3*R+4*M;if($===944){P=s.indexOf(":",9)+1;var w=s.substring(P,s.length-1).trim();return w=s.substring(0,P).trim()+w+";",Q===1||Q===2&&c(w,1)?"-webkit-"+w+w:w}if(Q===0||Q===2&&!c(s,1))return s;switch($){case 1015:return s.charCodeAt(10)===97?"-webkit-"+s+s:s;case 951:return s.charCodeAt(3)===116?"-webkit-"+s+s:s;case 963:return s.charCodeAt(5)===110?"-webkit-"+s+s:s;case 1009:if(s.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(s.charCodeAt(8)===45)return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(ye,"$1-webkit-$2")+s;break;case 932:if(s.charCodeAt(4)===45)switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(s.charCodeAt(8)!==99)break;return w=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+w+"-webkit-"+s+"-ms-flex-pack"+w+s;case 1005:return T.test(s)?s.replace(k,":-webkit-")+s.replace(k,":-moz-")+s:s;case 1e3:switch(w=s.substring(13).trim(),C=w.indexOf("-")+1,w.charCodeAt(0)+w.charCodeAt(C)){case 226:w=s.replace(p,"tb");break;case 232:w=s.replace(p,"tb-rl");break;case 220:w=s.replace(p,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+w+s;case 1017:if(s.indexOf("sticky",9)===-1)break;case 975:switch(C=(s=P).length-10,w=(s.charCodeAt(C)===33?s.substring(0,C):s).substring(P.indexOf(":",7)+1).trim(),$=w.charCodeAt(0)+(w.charCodeAt(7)|0)){case 203:if(111>w.charCodeAt(8))break;case 115:s=s.replace(w,"-webkit-"+w)+";"+s;break;case 207:case 102:s=s.replace(w,"-webkit-"+(102<$?"inline-":"")+"box")+";"+s.replace(w,"-webkit-"+w)+";"+s.replace(w,"-ms-"+w+"box")+";"+s}return s+";";case 938:if(s.charCodeAt(5)===45)switch(s.charCodeAt(6)){case 105:return w=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+w+"-ms-flex-"+w+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(re,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(re,"")+s}break;case 973:case 989:if(s.charCodeAt(3)!==45||s.charCodeAt(4)===122)break;case 931:case 953:if(F.test(P)===!0)return(w=P.substring(P.indexOf(":")+1)).charCodeAt(0)===115?a(P.replace("stretch","fill-available"),C,R,M).replace(":fill-available",":stretch"):s.replace(w,"-webkit-"+w)+s.replace(w,"-moz-"+w.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(s.charCodeAt(5)===102?"-ms-"+s:"")+s,R+M===211&&s.charCodeAt(13)===105&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(_,"$1-webkit-$2")+s}return s}function c(P,C){var R=P.indexOf(C===1?":":"{"),M=P.substring(0,C!==3?R:10);return R=P.substring(R+1,P.length-1),Ee(C!==2?M:M.replace(le,"$1"),R,C)}function l(P,C){var R=a(C,C.charCodeAt(0),C.charCodeAt(1),C.charCodeAt(2));return R!==C+";"?R.replace(fe," or ($1)").substring(4):"("+C+")"}function d(P,C,R,M,s,$,w,X,V,Y){for(var h=0,ae=C,se;h<he;++h)switch(se=ee[h].call(v,P,ae,R,M,s,$,w,X,V,Y)){case void 0:case!1:case!0:case null:break;default:ae=se}if(ae!==C)return ae}function u(P){switch(P){case void 0:case null:he=ee.length=0;break;default:if(typeof P=="function")ee[he++]=P;else if(typeof P=="object")for(var C=0,R=P.length;C<R;++C)u(P[C]);else xe=!!P|0}return u}function f(P){return P=P.prefix,P!==void 0&&(Ee=null,P?typeof P!="function"?Q=1:(Q=2,Ee=P):Q=0),f}function v(P,C){var R=P;if(33>R.charCodeAt(0)&&(R=R.trim()),Te=R,R=[Te],0<he){var M=d(-1,C,R,R,K,ne,0,0,0,0);M!==void 0&&typeof M=="string"&&(C=M)}var s=r(we,R,C,0,0);return 0<he&&(M=d(-2,s,R,R,K,ne,s.length,0,0,0),M!==void 0&&(s=M)),Te="",oe=0,ne=K=1,s}var b=/^\0+/g,I=/[\0\r\f]/g,k=/: */g,T=/zoo|gra/,_=/([,: ])(transform)/g,j=/,\r+?/g,L=/([\t\r\n ])*\f?&/g,x=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,A=/:(read-only)/g,p=/[svh]\w+-[tblr]{2}/,W=/\(\s*(.*)\s*\)/g,fe=/([\s\S]*?);/g,re=/-self|flex-/g,le=/[^]*?(:[rp][el]a[\w-]+)[^]*/,F=/stretch|:\s*\w+\-(?:conte|avail)/,ye=/([^-])(image-set\()/,ne=1,K=1,oe=0,Q=1,we=[],ee=[],he=0,Ee=null,xe=0,Te="";return v.use=u,v.set=f,e!==void 0&&f(e),v}var an={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function sn(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var cn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dt=sn(function(e){return cn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ut,Mt;function ln(){if(Mt)return ut;Mt=1;var e=Ot(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[e.ForwardRef]=n,c[e.Memo]=a;function l(T){return e.isMemo(T)?a:c[T.$$typeof]||r}var d=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,I=Object.prototype;function k(T,_,j){if(typeof _!="string"){if(I){var L=b(_);L&&L!==I&&k(T,L,j)}var x=u(_);f&&(x=x.concat(f(_)));for(var g=l(T),A=l(_),p=0;p<x.length;++p){var W=x[p];if(!t[W]&&!(j&&j[W])&&!(A&&A[W])&&!(g&&g[W])){var fe=v(_,W);try{d(T,W,fe)}catch{}}}}return T}return ut=k,ut}var un=ln();const dn=Zr(un);function ke(){return(ke=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var Ft=function(e,r){for(var t=[e[0]],n=0,a=r.length;n<a;n+=1)t.push(r[n],e[n+1]);return t},dt=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!lt.typeOf(e)},et=Object.freeze([]),je=Object.freeze({});function qe(e){return typeof e=="function"}function ft(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function pt(e){return e&&typeof e.styledComponentId=="string"}var De=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ht=typeof window<"u"&&"HTMLElement"in window,fn=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production")),pn=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
30
+ <%s key={someKey} {...props} />`,Gt,Pe,Ni,Pe),Vr[Pe+Gt]=!0}}return o===r?Oi(z):Di(z),z}}function Ai(o,f,v){return Nr(o,f,v,!0)}function Mi(o,f,v){return Nr(o,f,v,!1)}var Fi=Mi,Vi=Ai;We.Fragment=r,We.jsx=Fi,We.jsxs=Vi})()),We}var Qt;function Ur(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?Qe.exports=zr():Qe.exports=Br()),Qe.exports}var a=Ur();const Wr=typeof window<"u"?p.useLayoutEffect:p.useEffect;function et(e,t){const n=p.useRef(e);Wr(()=>{n.current=e},[e]),p.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function qr(e){const[,t]=p.useState(0);et(()=>t(n=>n+1),e)}const Yr=(e,t)=>Je.create(n=>({delay:0,startDate:e,endDate:t,startTime:e.getTime(),endTime:t.getTime(),setDelay:r=>n({delay:r}),setStartDate:r=>n({startDate:r}),setEndDate:r=>n({endDate:r})})),en=p.createContext(null),Zr=({children:e,startDate:t,endDate:n})=>{const r=p.useRef(null);return r.current||(r.current=Yr(t,n)),a.jsx(en.Provider,{value:r.current,children:e})},B=e=>{const t=p.useContext(en);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Je.useStore(t,e)};var G=function(){return G=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(t[c]=n[c])}return t},G.apply(this,arguments)};function be(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,c;r<s;r++)(c||!(r in t))&&(c||(c=Array.prototype.slice.call(t,0,r)),c[r]=t[r]);return e.concat(c||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Gr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jr=Gr(function(e){return Xr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),V="-ms-",qe="-moz-",A="-webkit-",tn="comm",tt="rule",kt="decl",Kr="@import",nn="@keyframes",Qr="@layer",rn=Math.abs,Et=String.fromCharCode,Tt=Object.assign;function eo(e,t){return U(e,0)^45?(((t<<2^U(e,0))<<2^U(e,1))<<2^U(e,2))<<2^U(e,3):0}function on(e){return e.trim()}function ue(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,n){return e.replace(t,n)}function nt(e,t,n){return e.indexOf(t,n)}function U(e,t){return e.charCodeAt(t)|0}function Re(e,t,n){return e.slice(t,n)}function ce(e){return e.length}function sn(e){return e.length}function Ye(e,t){return t.push(e),e}function to(e,t){return e.map(t).join("")}function an(e,t){return e.filter(function(n){return!ue(n,t)})}var rt=1,je=1,cn=0,ee=0,H=0,Le="";function ot(e,t,n,r,s,c,l,u){return{value:e,root:t,parent:n,type:r,props:s,children:c,line:rt,column:je,length:l,return:"",siblings:u}}function pe(e,t){return Tt(ot("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _e(e){for(;e.root;)e=pe(e.root,{children:[e]});Ye(e,e.siblings)}function no(){return H}function ro(){return H=ee>0?U(Le,--ee):0,je--,H===10&&(je=1,rt--),H}function oe(){return H=ee<cn?U(Le,ee++):0,je++,H===10&&(je=1,rt++),H}function xe(){return U(Le,ee)}function st(){return ee}function it(e,t){return Re(Le,e,t)}function Pt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oo(e){return rt=je=1,cn=ce(Le=e),ee=0,[]}function so(e){return Le="",e}function Rt(e){return on(it(ee-1,jt(e===91?e+2:e===40?e+1:e)))}function io(e){for(;(H=xe())&&H<33;)oe();return Pt(e)>2||Pt(H)>3?"":" "}function ao(e,t){for(;--t&&oe()&&!(H<48||H>102||H>57&&H<65||H>70&&H<97););return it(e,st()+(t<6&&xe()==32&&oe()==32))}function jt(e){for(;oe();)switch(H){case e:return ee;case 34:case 39:e!==34&&e!==39&&jt(H);break;case 40:e===41&&jt(e);break;case 92:oe();break}return ee}function co(e,t){for(;oe()&&e+H!==57;)if(e+H===84&&xe()===47)break;return"/*"+it(t,ee-1)+"*"+Et(e===47?e:oe())}function lo(e){for(;!Pt(xe());)oe();return it(e,ee)}function uo(e){return so(at("",null,null,null,[""],e=oo(e),0,[0],e))}function at(e,t,n,r,s,c,l,u,i){for(var d=0,h=0,y=l,b=0,w=0,P=0,T=1,N=1,R=1,x=0,g="",I=s,O=c,k=r,S=g;N;)switch(P=x,x=oe()){case 40:if(P!=108&&U(S,y-1)==58){nt(S+=E(Rt(x),"&","&\f"),"&\f",rn(d?u[d-1]:0))!=-1&&(R=-1);break}case 34:case 39:case 91:S+=Rt(x);break;case 9:case 10:case 13:case 32:S+=io(P);break;case 92:S+=ao(st()-1,7);continue;case 47:switch(xe()){case 42:case 47:Ye(fo(co(oe(),st()),t,n,i),i);break;default:S+="/"}break;case 123*T:u[d++]=ce(S)*R;case 125*T:case 59:case 0:switch(x){case 0:case 125:N=0;case 59+h:R==-1&&(S=E(S,/\f/g,"")),w>0&&ce(S)-y&&Ye(w>32?un(S+";",r,n,y-1,i):un(E(S," ","")+";",r,n,y-2,i),i);break;case 59:S+=";";default:if(Ye(k=ln(S,t,n,d,h,s,u,g,I=[],O=[],y,c),c),x===123)if(h===0)at(S,t,k,k,I,c,y,u,O);else switch(b===99&&U(S,3)===110?100:b){case 100:case 108:case 109:case 115:at(e,k,k,r&&Ye(ln(e,k,k,0,0,s,u,g,s,I=[],y,O),O),s,O,y,u,r?I:O);break;default:at(S,k,k,k,[""],O,0,u,O)}}d=h=w=0,T=R=1,g=S="",y=l;break;case 58:y=1+ce(S),w=P;default:if(T<1){if(x==123)--T;else if(x==125&&T++==0&&ro()==125)continue}switch(S+=Et(x),x*T){case 38:R=h>0?1:(S+="\f",-1);break;case 44:u[d++]=(ce(S)-1)*R,R=1;break;case 64:xe()===45&&(S+=Rt(oe())),b=xe(),h=y=ce(g=S+=lo(st())),x++;break;case 45:P===45&&ce(S)==2&&(T=0)}}return c}function ln(e,t,n,r,s,c,l,u,i,d,h,y){for(var b=s-1,w=s===0?c:[""],P=sn(w),T=0,N=0,R=0;T<r;++T)for(var x=0,g=Re(e,b+1,b=rn(N=l[T])),I=e;x<P;++x)(I=on(N>0?w[x]+" "+g:E(g,/&\f/g,w[x])))&&(i[R++]=I);return ot(e,t,n,s===0?tt:u,i,d,h,y)}function fo(e,t,n,r){return ot(e,t,n,tn,Et(no()),Re(e,2,-2),0,r)}function un(e,t,n,r,s){return ot(e,t,n,kt,Re(e,0,r),Re(e,r+1,-1),r,s)}function dn(e,t,n){switch(eo(e,t)){case 5103:return A+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+e+e;case 4789:return qe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return A+e+qe+e+V+e+e;case 5936:switch(U(e,t+11)){case 114:return A+e+V+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return A+e+V+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return A+e+V+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return A+e+V+e+e;case 6165:return A+e+V+"flex-"+e+e;case 5187:return A+e+E(e,/(\w+).+(:[^]+)/,A+"box-$1$2"+V+"flex-$1$2")+e;case 5443:return A+e+V+"flex-item-"+E(e,/flex-|-self/g,"")+(ue(e,/flex-|baseline/)?"":V+"grid-row-"+E(e,/flex-|-self/g,""))+e;case 4675:return A+e+V+"flex-line-pack"+E(e,/align-content|flex-|-self/g,"")+e;case 5548:return A+e+V+E(e,"shrink","negative")+e;case 5292:return A+e+V+E(e,"basis","preferred-size")+e;case 6060:return A+"box-"+E(e,"-grow","")+A+e+V+E(e,"grow","positive")+e;case 4554:return A+E(e,/([^-])(transform)/g,"$1"+A+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+V+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+e+e;case 4200:if(!ue(e,/flex-|baseline/))return V+"grid-column-align"+Re(e,t)+e;break;case 2592:case 3360:return V+E(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,s){return t=s,ue(r.props,/grid-\w+-end/)})?~nt(e+(n=n[t].value),"span",0)?e:V+E(e,"-start","")+e+V+"grid-row-span:"+(~nt(n,"span",0)?ue(n,/\d+/):+ue(n,/\d+/)-+ue(e,/\d+/))+";":V+E(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ue(r.props,/grid-\w+-start/)})?e:V+E(E(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,A+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ce(e)-1-t>6)switch(U(e,t+1)){case 109:if(U(e,t+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+qe+(U(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~nt(e,"stretch",0)?dn(E(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return E(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,s,c,l,u,i,d){return V+s+":"+c+d+(l?V+s+"-span:"+(u?i:+i-+c)+d:"")+e});case 4949:if(U(e,t+6)===121)return E(e,":",":"+A)+e;break;case 6444:switch(U(e,U(e,14)===45?18:11)){case 120:return E(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+A+(U(e,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+V+"$2box$3")+e;case 100:return E(e,":",":"+V)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return E(e,"scroll-","scroll-snap-")+e}return e}function ct(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function po(e,t,n,r){switch(e.type){case Qr:if(e.children.length)break;case Kr:case kt:return e.return=e.return||e.value;case tn:return"";case nn:return e.return=e.value+"{"+ct(e.children,r)+"}";case tt:if(!ce(e.value=e.props.join(",")))return""}return ce(n=ct(e.children,r))?e.return=e.value+"{"+n+"}":""}function ho(e){var t=sn(e);return function(n,r,s,c){for(var l="",u=0;u<t;u++)l+=e[u](n,r,s,c)||"";return l}}function mo(e){return function(t){t.root||(t=t.return)&&e(t)}}function go(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kt:e.return=dn(e.value,e.length,n);return;case nn:return ct([pe(e,{value:E(e.value,"@","@"+A)})],r);case tt:if(e.length)return to(n=e.props,function(s){switch(ue(s,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_e(pe(e,{props:[E(s,/:(read-\w+)/,":"+qe+"$1")]})),_e(pe(e,{props:[s]})),Tt(e,{props:an(n,r)});break;case"::placeholder":_e(pe(e,{props:[E(s,/:(plac\w+)/,":"+A+"input-$1")]})),_e(pe(e,{props:[E(s,/:(plac\w+)/,":"+qe+"$1")]})),_e(pe(e,{props:[E(s,/:(plac\w+)/,V+"input-$1")]})),_e(pe(e,{props:[s]})),Tt(e,{props:an(n,r)});break}return""})}}var yo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Se=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",fn="active",pn="data-styled-version",lt="6.1.19",Lt=`/*!sc*/
31
+ `,ut=typeof window<"u"&&typeof document<"u",vo=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),hn=/invalid hook call/i,dt=new Set,wo=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
32
+ `)+`You may see this warning because you've called styled inside another component.
33
+ To resolve this only create new StyledComponents outside of any render method and function component.
34
+ See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
35
+ `,s=console.error;try{var c=!0;console.error=function(l){for(var u=[],i=1;i<arguments.length;i++)u[i-1]=arguments[i];hn.test(l)?(c=!1,dt.delete(r)):s.apply(void 0,be([l],u,!1))},p.useRef(),c&&!dt.has(r)&&(console.warn(r),dt.add(r))}catch(l){hn.test(l.message)&&dt.delete(r)}finally{console.error=s}}},ft=Object.freeze([]),Ie=Object.freeze({});function bo(e,t,n){return n===void 0&&(n=Ie),e.theme!==n.theme&&e.theme||t||n.theme}var _t=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),xo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,So=/(^-|-$)/g;function mn(e){return e.replace(xo,"-").replace(So,"")}var Co=/(a)(d)/gi,pt=52,gn=function(e){return String.fromCharCode(e+(e>25?39:97))};function It(e){var t,n="";for(t=Math.abs(e);t>pt;t=t/pt|0)n=gn(t%pt)+n;return(gn(t%pt)+n).replace(Co,"$1-$2")}var Dt,yn=5381,Ce=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},vn=function(e){return Ce(yn,e)};function wn(e){return It(vn(e)>>>0)}function bn(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Ot(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var xn=typeof Symbol=="function"&&Symbol.for,Sn=xn?Symbol.for("react.memo"):60115,ko=xn?Symbol.for("react.forward_ref"):60112,Eo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},To={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Cn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Po=((Dt={})[ko]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Dt[Sn]=Cn,Dt);function kn(e){return("type"in(t=e)&&t.type.$$typeof)===Sn?Cn:"$$typeof"in e?Po[e.$$typeof]:Eo;var t}var Ro=Object.defineProperty,jo=Object.getOwnPropertyNames,En=Object.getOwnPropertySymbols,Lo=Object.getOwnPropertyDescriptor,_o=Object.getPrototypeOf,Tn=Object.prototype;function Pn(e,t,n){if(typeof t!="string"){if(Tn){var r=_o(t);r&&r!==Tn&&Pn(e,r,n)}var s=jo(t);En&&(s=s.concat(En(t)));for(var c=kn(e),l=kn(t),u=0;u<s.length;++u){var i=s[u];if(!(i in To||n&&n[i]||l&&i in l||c&&i in c)){var d=Lo(t,i);try{Ro(e,i,d)}catch{}}}}return e}function De(e){return typeof e=="function"}function At(e){return typeof e=="object"&&"styledComponentId"in e}function ke(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Mt(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Oe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ft(e,t,n){if(n===void 0&&(n=!1),!n&&!Oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ft(e[r],t[r]);else if(Oe(t))for(var r in t)e[r]=Ft(e[r],t[r]);return e}function Vt(e,t){Object.defineProperty(e,"toString",{value:t})}var Io=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
45
36
 
46
37
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
47
38
 
@@ -82,13 +73,8 @@ as for instance in your render method then you may be running into this limitati
82
73
 
83
74
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
84
75
  Has styled-components' style tag been unmounted or altered by another script?
85
- `}:{};function hn(){for(var e=arguments.length<=0?void 0:arguments[0],r=[],t=1,n=arguments.length;t<n;t+=1)r.push(t<0||arguments.length<=t?void 0:arguments[t]);return r.forEach((function(a){e=e.replace(/%[a-z]/,a)})),e}function Me(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];throw process.env.NODE_ENV==="production"?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(t.length>0?" Args: "+t.join(", "):"")):new Error(hn.apply(void 0,[pn[e]].concat(t)).trim())}var mn=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var r=e.prototype;return r.indexOfGroup=function(t){for(var n=0,a=0;a<t;a++)n+=this.groupSizes[a];return n},r.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var a=this.groupSizes,c=a.length,l=c;t>=l;)(l<<=1)<0&&Me(16,""+t);this.groupSizes=new Uint32Array(l),this.groupSizes.set(a),this.length=l;for(var d=c;d<l;d++)this.groupSizes[d]=0}for(var u=this.indexOfGroup(t+1),f=0,v=n.length;f<v;f++)this.tag.insertRule(u,n[f])&&(this.groupSizes[t]++,u++)},r.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],a=this.indexOfGroup(t),c=a+n;this.groupSizes[t]=0;for(var l=a;l<c;l++)this.tag.deleteRule(a)}},r.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var a=this.groupSizes[t],c=this.indexOfGroup(t),l=c+a,d=c;d<l;d++)n+=this.tag.getRule(d)+`/*!sc*/
86
- `;return n},e})(),tt=new Map,rt=new Map,Ze=1,nt=function(e){if(tt.has(e))return tt.get(e);for(;rt.has(Ze);)Ze++;var r=Ze++;return process.env.NODE_ENV!=="production"&&((0|r)<0||r>1<<30)&&Me(16,""+r),tt.set(e,r),rt.set(r,e),r},vn=function(e){return rt.get(e)},gn=function(e,r){r>=Ze&&(Ze=r+1),tt.set(e,r),rt.set(r,e)},yn="style["+De+'][data-styled-version="5.3.11"]',wn=new RegExp("^"+De+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),bn=function(e,r,t){for(var n,a=t.split(","),c=0,l=a.length;c<l;c++)(n=a[c])&&e.registerName(r,n)},Sn=function(e,r){for(var t=(r.textContent||"").split(`/*!sc*/
87
- `),n=[],a=0,c=t.length;a<c;a++){var l=t[a].trim();if(l){var d=l.match(wn);if(d){var u=0|parseInt(d[1],10),f=d[2];u!==0&&(gn(f,u),bn(e,f,d[3]),e.getTag().insertRules(u,n)),n.length=0}else n.push(l)}}},xn=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},Nt=function(e){var r=document.head,t=e||r,n=document.createElement("style"),a=(function(d){for(var u=d.childNodes,f=u.length;f>=0;f--){var v=u[f];if(v&&v.nodeType===1&&v.hasAttribute(De))return v}})(t),c=a!==void 0?a.nextSibling:null;n.setAttribute(De,"active"),n.setAttribute("data-styled-version","5.3.11");var l=xn();return l&&n.setAttribute("nonce",l),t.insertBefore(n,c),n},Cn=(function(){function e(t){var n=this.element=Nt(t);n.appendChild(document.createTextNode("")),this.sheet=(function(a){if(a.sheet)return a.sheet;for(var c=document.styleSheets,l=0,d=c.length;l<d;l++){var u=c[l];if(u.ownerNode===a)return u}Me(17)})(n),this.length=0}var r=e.prototype;return r.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},r.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},r.getRule=function(t){var n=this.sheet.cssRules[t];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},e})(),En=(function(){function e(t){var n=this.element=Nt(t);this.nodes=n.childNodes,this.length=0}var r=e.prototype;return r.insertRule=function(t,n){if(t<=this.length&&t>=0){var a=document.createTextNode(n),c=this.nodes[t];return this.element.insertBefore(a,c||null),this.length++,!0}return!1},r.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},r.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Tn=(function(){function e(t){this.rules=[],this.length=0}var r=e.prototype;return r.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},r.deleteRule=function(t){this.rules.splice(t,1),this.length--},r.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Vt=ht,Rn={isServer:!ht,useCSSOMInjection:!fn},$t=(function(){function e(t,n,a){t===void 0&&(t=je),n===void 0&&(n={}),this.options=ke({},Rn,{},t),this.gs=n,this.names=new Map(a),this.server=!!t.isServer,!this.server&&ht&&Vt&&(Vt=!1,(function(c){for(var l=document.querySelectorAll(yn),d=0,u=l.length;d<u;d++){var f=l[d];f&&f.getAttribute(De)!=="active"&&(Sn(c,f),f.parentNode&&f.parentNode.removeChild(f))}})(this))}e.registerId=function(t){return nt(t)};var r=e.prototype;return r.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ke({},this.options,{},t),this.gs,n&&this.names||void 0)},r.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},r.getTag=function(){return this.tag||(this.tag=(a=(n=this.options).isServer,c=n.useCSSOMInjection,l=n.target,t=a?new Tn(l):c?new Cn(l):new En(l),new mn(t)));var t,n,a,c,l},r.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},r.registerName=function(t,n){if(nt(t),this.names.has(t))this.names.get(t).add(n);else{var a=new Set;a.add(n),this.names.set(t,a)}},r.insertRules=function(t,n,a){this.registerName(t,n),this.getTag().insertRules(nt(t),a)},r.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},r.clearRules=function(t){this.getTag().clearGroup(nt(t)),this.clearNames(t)},r.clearTag=function(){this.tag=void 0},r.toString=function(){return(function(t){for(var n=t.getTag(),a=n.length,c="",l=0;l<a;l++){var d=vn(l);if(d!==void 0){var u=t.names.get(d),f=n.getGroup(l);if(u&&f&&u.size){var v=De+".g"+l+'[id="'+d+'"]',b="";u!==void 0&&u.forEach((function(I){I.length>0&&(b+=I+",")})),c+=""+f+v+'{content:"'+b+`"}/*!sc*/
88
- `}}}return c})(this)},e})(),Pn=/(a)(d)/gi,Ht=function(e){return String.fromCharCode(e+(e>25?39:97))};function mt(e){var r,t="";for(r=Math.abs(e);r>52;r=r/52|0)t=Ht(r%52)+t;return(Ht(r%52)+t).replace(Pn,"$1-$2")}var Ie=function(e,r){for(var t=r.length;t;)e=33*e^r.charCodeAt(--t);return e},zt=function(e){return Ie(5381,e)};function kn(e){for(var r=0;r<e.length;r+=1){var t=e[r];if(qe(t)&&!pt(t))return!1}return!0}var _n=zt("5.3.11"),jn=(function(){function e(r,t,n){this.rules=r,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&kn(r),this.componentId=t,this.baseHash=Ie(_n,t),this.baseStyle=n,$t.registerId(t)}return e.prototype.generateAndInjectStyles=function(r,t,n){var a=this.componentId,c=[];if(this.baseStyle&&c.push(this.baseStyle.generateAndInjectStyles(r,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(a,this.staticRulesId))c.push(this.staticRulesId);else{var l=Fe(this.rules,r,t,n).join(""),d=mt(Ie(this.baseHash,l)>>>0);if(!t.hasNameForId(a,d)){var u=n(l,"."+d,void 0,a);t.insertRules(a,d,u)}c.push(d),this.staticRulesId=d}else{for(var f=this.rules.length,v=Ie(this.baseHash,n.hash),b="",I=0;I<f;I++){var k=this.rules[I];if(typeof k=="string")b+=k,process.env.NODE_ENV!=="production"&&(v=Ie(v,k+I));else if(k){var T=Fe(k,r,t,n),_=Array.isArray(T)?T.join(""):T;v=Ie(v,_+I),b+=_}}if(b){var j=mt(v>>>0);if(!t.hasNameForId(a,j)){var L=n(b,"."+j,void 0,a);t.insertRules(a,j,L)}c.push(j)}}return c.join(" ")},e})(),An=/^\s*\/\/.*$/gm,Ln=[":","[",".","#"];function In(e){var r,t,n,a,c=je,l=c.options,d=l===void 0?je:l,u=c.plugins,f=u===void 0?et:u,v=new on(d),b=[],I=(function(_){function j(L){if(L)try{_(L+"}")}catch{}}return function(L,x,g,A,p,W,fe,re,le,F){switch(L){case 1:if(le===0&&x.charCodeAt(0)===64)return _(x+";"),"";break;case 2:if(re===0)return x+"/*|*/";break;case 3:switch(re){case 102:case 112:return _(g[0]+x),"";default:return x+(F===0?"/*|*/":"")}case-2:x.split("/*|*/}").forEach(j)}}})((function(_){b.push(_)})),k=function(_,j,L){return j===0&&Ln.indexOf(L[t.length])!==-1||L.match(a)?_:"."+r};function T(_,j,L,x){x===void 0&&(x="&");var g=_.replace(An,""),A=j&&L?L+" "+j+" { "+g+" }":g;return r=x,t=j,n=new RegExp("\\"+t+"\\b","g"),a=new RegExp("(\\"+t+"\\b){2,}"),v(L||!j?"":j,A)}return v.use([].concat(f,[function(_,j,L){_===2&&L.length&&L[0].lastIndexOf(t)>0&&(L[0]=L[0].replace(n,k))},I,function(_){if(_===-2){var j=b;return b=[],j}}])),T.hash=f.length?f.reduce((function(_,j){return j.name||Me(15),Ie(_,j.name)}),5381).toString():"",T}var Yt=y.createContext();Yt.Consumer;var Bt=y.createContext(),On=(Bt.Consumer,new $t),vt=In();function Dn(){return y.useContext(Yt)||On}function Mn(){return y.useContext(Bt)||vt}var Ut=(function(){function e(r,t){var n=this;this.inject=function(a,c){c===void 0&&(c=vt);var l=n.name+c.hash;a.hasNameForId(n.id,l)||a.insertRules(n.id,l,c(n.rules,l,"@keyframes"))},this.toString=function(){return Me(12,String(n.name))},this.name=r,this.id="sc-keyframes-"+r,this.rules=t}return e.prototype.getName=function(r){return r===void 0&&(r=vt),this.name+r.hash},e})(),Fn=/([A-Z])/,Nn=/([A-Z])/g,Vn=/^ms-/,$n=function(e){return"-"+e.toLowerCase()};function Wt(e){return Fn.test(e)?e.replace(Nn,$n).replace(Vn,"-ms-"):e}var qt=function(e){return e==null||e===!1||e===""};function Fe(e,r,t,n){if(Array.isArray(e)){for(var a,c=[],l=0,d=e.length;l<d;l+=1)(a=Fe(e[l],r,t,n))!==""&&(Array.isArray(a)?c.push.apply(c,a):c.push(a));return c}if(qt(e))return"";if(pt(e))return"."+e.styledComponentId;if(qe(e)){if(typeof(f=e)!="function"||f.prototype&&f.prototype.isReactComponent||!r)return e;var u=e(r);return process.env.NODE_ENV!=="production"&&lt.isElement(u)&&console.warn(ft(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Fe(u,r,t,n)}var f;return e instanceof Ut?t?(e.inject(t,n),e.getName(n)):e:dt(e)?(function v(b,I){var k,T,_=[];for(var j in b)b.hasOwnProperty(j)&&!qt(b[j])&&(Array.isArray(b[j])&&b[j].isCss||qe(b[j])?_.push(Wt(j)+":",b[j],";"):dt(b[j])?_.push.apply(_,v(b[j],j)):_.push(Wt(j)+": "+(k=j,(T=b[j])==null||typeof T=="boolean"||T===""?"":typeof T!="number"||T===0||k in an||k.startsWith("--")?String(T).trim():T+"px")+";"));return I?[I+" {"].concat(_,["}"]):_})(e):e.toString()}var Zt=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ot(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return qe(e)||dt(e)?Zt(Fe(Ft(et,[e].concat(t)))):t.length===0&&e.length===1&&typeof e[0]=="string"?e:Zt(Fe(Ft(e,t)))}var Gt=/invalid hook call/i,at=new Set,Hn=function(e,r){if(process.env.NODE_ENV!=="production"){var t="The component "+e+(r?' with the id of "'+r+'"':"")+` has been created dynamically.
89
- You may see this warning because you've called styled inside another component.
90
- To resolve this only create new StyledComponents outside of any render method and function component.`,n=console.error;try{var a=!0;console.error=function(c){if(Gt.test(c))a=!1,at.delete(t);else{for(var l=arguments.length,d=new Array(l>1?l-1:0),u=1;u<l;u++)d[u-1]=arguments[u];n.apply(void 0,[c].concat(d))}},y.useRef(),a&&!at.has(t)&&(console.warn(t),at.add(t))}catch(c){Gt.test(c.message)&&at.delete(t)}finally{console.error=n}}},zn=function(e,r,t){return t===void 0&&(t=je),e.theme!==t.theme&&e.theme||r||t.theme},Yn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Bn=/(^-|-$)/g;function gt(e){return e.replace(Yn,"-").replace(Bn,"")}var Xt=function(e){return mt(zt(e)>>>0)};function it(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var yt=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},Un=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function Wn(e,r,t){var n=e[t];yt(r)&&yt(n)?Jt(n,r):e[t]=r}function Jt(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];for(var a=0,c=t;a<c.length;a++){var l=c[a];if(yt(l))for(var d in l)Un(d)&&Wn(e,l[d],d)}return e}var Kt=y.createContext();Kt.Consumer;var wt={};function Qt(e,r,t){var n=pt(e),a=!it(e),c=r.attrs,l=c===void 0?et:c,d=r.componentId,u=d===void 0?(function(x,g){var A=typeof x!="string"?"sc":gt(x);wt[A]=(wt[A]||0)+1;var p=A+"-"+Xt("5.3.11"+A+wt[A]);return g?g+"-"+p:p})(r.displayName,r.parentComponentId):d,f=r.displayName,v=f===void 0?(function(x){return it(x)?"styled."+x:"Styled("+ft(x)+")"})(e):f,b=r.displayName&&r.componentId?gt(r.displayName)+"-"+r.componentId:r.componentId||u,I=n&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,k=r.shouldForwardProp;n&&e.shouldForwardProp&&(k=r.shouldForwardProp?function(x,g,A){return e.shouldForwardProp(x,g,A)&&r.shouldForwardProp(x,g,A)}:e.shouldForwardProp);var T,_=new jn(t,b,n?e.componentStyle:void 0),j=_.isStatic&&l.length===0,L=function(x,g){return(function(A,p,W,fe){var re=A.attrs,le=A.componentStyle,F=A.defaultProps,ye=A.foldedComponentIds,ne=A.shouldForwardProp,K=A.styledComponentId,oe=A.target,Q=(function(M,s,$){M===void 0&&(M=je);var w=ke({},s,{theme:M}),X={};return $.forEach((function(V){var Y,h,ae,se=V;for(Y in qe(se)&&(se=se(w)),se)w[Y]=X[Y]=Y==="className"?(h=X[Y],ae=se[Y],h&&ae?h+" "+ae:h||ae):se[Y]})),[w,X]})(zn(p,y.useContext(Kt),F)||je,p,re),we=Q[0],ee=Q[1],he=(function(M,s,$,w){var X=Dn(),V=Mn(),Y=s?M.generateAndInjectStyles(je,X,V):M.generateAndInjectStyles($,X,V);return process.env.NODE_ENV!=="production"&&!s&&w&&w(Y),Y})(le,fe,we,process.env.NODE_ENV!=="production"?A.warnTooManyClasses:void 0),Ee=W,xe=ee.$as||p.$as||ee.as||p.as||oe,Te=it(xe),P=ee!==p?ke({},p,{},ee):p,C={};for(var R in P)R[0]!=="$"&&R!=="as"&&(R==="forwardedAs"?C.as=P[R]:(ne?ne(R,Dt,xe):!Te||Dt(R))&&(C[R]=P[R]));return p.style&&ee.style!==p.style&&(C.style=ke({},p.style,{},ee.style)),C.className=Array.prototype.concat(ye,K,he!==K?he:null,p.className,ee.className).filter(Boolean).join(" "),C.ref=Ee,y.createElement(xe,C)})(T,x,g,j)};return L.displayName=v,(T=y.forwardRef(L)).attrs=I,T.componentStyle=_,T.displayName=v,T.shouldForwardProp=k,T.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):et,T.styledComponentId=b,T.target=n?e.target:e,T.withComponent=function(x){var g=r.componentId,A=(function(W,fe){if(W==null)return{};var re,le,F={},ye=Object.keys(W);for(le=0;le<ye.length;le++)re=ye[le],fe.indexOf(re)>=0||(F[re]=W[re]);return F})(r,["componentId"]),p=g&&g+"-"+(it(x)?x:gt(ft(x)));return Qt(x,ke({},A,{attrs:I,componentId:p}),t)},Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=n?Jt({},e.defaultProps,x):x}}),process.env.NODE_ENV!=="production"&&(Hn(v,b),T.warnTooManyClasses=(function(x,g){var A={},p=!1;return function(W){if(!p&&(A[W]=!0,Object.keys(A).length>=200)){var fe=g?' with the id of "'+g+'"':"";console.warn("Over 200 classes were generated for component "+x+fe+`.
91
- Consider using the attrs method, together with a style object for frequently changed styles.
76
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Do(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],s=1,c=e.length;s<c;s+=1)r.push(e[s]);return r.forEach(function(l){n=n.replace(/%[a-z]/,l)}),n}function Ae(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Do.apply(void 0,be([Io[e]],t,!1)).trim())}var Oo=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,s=r.length,c=s;t>=c;)if((c<<=1)<0)throw Ae(16,"".concat(t));this.groupSizes=new Uint32Array(c),this.groupSizes.set(r),this.length=c;for(var l=s;l<c;l++)this.groupSizes[l]=0}for(var u=this.indexOfGroup(t+1),i=(l=0,n.length);l<i;l++)this.tag.insertRule(u,n[l])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),s=r+n;this.groupSizes[t]=0;for(var c=r;c<s;c++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],s=this.indexOfGroup(t),c=s+r,l=s;l<c;l++)n+="".concat(this.tag.getRule(l)).concat(Lt);return n},e})(),Ao=1<<30,ht=new Map,mt=new Map,gt=1,yt=function(e){if(ht.has(e))return ht.get(e);for(;mt.has(gt);)gt++;var t=gt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Ao))throw Ae(16,"".concat(t));return ht.set(e,t),mt.set(t,e),t},Mo=function(e,t){gt=t+1,ht.set(e,t),mt.set(t,e)},Fo="style[".concat(Se,"][").concat(pn,'="').concat(lt,'"]'),Vo=new RegExp("^".concat(Se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),No=function(e,t,n){for(var r,s=n.split(","),c=0,l=s.length;c<l;c++)(r=s[c])&&e.registerName(t,r)},$o=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Lt),s=[],c=0,l=r.length;c<l;c++){var u=r[c].trim();if(u){var i=u.match(Vo);if(i){var d=0|parseInt(i[1],10),h=i[2];d!==0&&(Mo(h,d),No(e,h,i[3]),e.getTag().insertRules(d,s)),s.length=0}else s.push(u)}}},Rn=function(e){for(var t=document.querySelectorAll(Fo),n=0,r=t.length;n<r;n++){var s=t[n];s&&s.getAttribute(Se)!==fn&&($o(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function Ho(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),s=(function(u){var i=Array.from(u.querySelectorAll("style[".concat(Se,"]")));return i[i.length-1]})(n),c=s!==void 0?s.nextSibling:null;r.setAttribute(Se,fn),r.setAttribute(pn,lt);var l=Ho();return l&&r.setAttribute("nonce",l),n.insertBefore(r,c),r},zo=(function(){function e(t){this.element=jn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,s=0,c=r.length;s<c;s++){var l=r[s];if(l.ownerNode===n)return l}throw Ae(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Bo=(function(){function e(t){this.element=jn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Uo=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Ln=ut,Wo={isServer:!ut,useCSSOMInjection:!vo},_n=(function(){function e(t,n,r){t===void 0&&(t=Ie),n===void 0&&(n={});var s=this;this.options=G(G({},Wo),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&ut&&Ln&&(Ln=!1,Rn(this)),Vt(this,function(){return(function(c){for(var l=c.getTag(),u=l.length,i="",d=function(y){var b=(function(R){return mt.get(R)})(y);if(b===void 0)return"continue";var w=c.names.get(b),P=l.getGroup(y);if(w===void 0||!w.size||P.length===0)return"continue";var T="".concat(Se,".g").concat(y,'[id="').concat(b,'"]'),N="";w!==void 0&&w.forEach(function(R){R.length>0&&(N+="".concat(R,","))}),i+="".concat(P).concat(T,'{content:"').concat(N,'"}').concat(Lt)},h=0;h<u;h++)d(h);return i})(s)})}return e.registerId=function(t){return yt(t)},e.prototype.rehydrate=function(){!this.server&&ut&&Rn(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(G(G({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,s=n.target;return n.isServer?new Uo(s):r?new zo(s):new Bo(s)})(this.options),new Oo(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(yt(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(yt(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(yt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),qo=/&/g,Yo=/^\s*\/\/.*$/gm;function In(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=In(n.children,t)),n})}function Zo(e){var t,n,r,s=Ie,c=s.options,l=c===void 0?Ie:c,u=s.plugins,i=u===void 0?ft:u,d=function(b,w,P){return P.startsWith(n)&&P.endsWith(n)&&P.replaceAll(n,"").length>0?".".concat(t):b},h=i.slice();h.push(function(b){b.type===tt&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(qo,n).replace(r,d))}),l.prefix&&h.push(go),h.push(po);var y=function(b,w,P,T){w===void 0&&(w=""),P===void 0&&(P=""),T===void 0&&(T="&"),t=T,n=w,r=new RegExp("\\".concat(n,"\\b"),"g");var N=b.replace(Yo,""),R=uo(P||w?"".concat(P," ").concat(w," { ").concat(N," }"):N);l.namespace&&(R=In(R,l.namespace));var x=[];return ct(R,ho(h.concat(mo(function(g){return x.push(g)})))),x};return y.hash=i.length?i.reduce(function(b,w){return w.name||Ae(15),Ce(b,w.name)},yn).toString():"",y}var Go=new _n,Nt=Zo(),Dn=p.createContext({shouldForwardProp:void 0,styleSheet:Go,stylis:Nt});Dn.Consumer,p.createContext(void 0);function On(){return p.useContext(Dn)}var $t=(function(){function e(t,n){var r=this;this.inject=function(s,c){c===void 0&&(c=Nt);var l=r.name+c.hash;s.hasNameForId(r.id,l)||s.insertRules(r.id,l,c(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Vt(this,function(){throw Ae(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Nt),this.name+t.hash},e})(),Xo=function(e){return e>="A"&&e<="Z"};function An(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Xo(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Mn=function(e){return e==null||e===!1||e===""},Fn=function(e){var t,n,r=[];for(var s in e){var c=e[s];e.hasOwnProperty(s)&&!Mn(c)&&(Array.isArray(c)&&c.isCss||De(c)?r.push("".concat(An(s),":"),c,";"):Oe(c)?r.push.apply(r,be(be(["".concat(s," {")],Fn(c),!1),["}"],!1)):r.push("".concat(An(s),": ").concat((t=s,(n=c)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in yo||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ee(e,t,n,r){if(Mn(e))return[];if(At(e))return[".".concat(e.styledComponentId)];if(De(e)){if(!De(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return[e];var s=e(t);return process.env.NODE_ENV==="production"||typeof s!="object"||Array.isArray(s)||s instanceof $t||Oe(s)||s===null||console.error("".concat(bn(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ee(s,t,n,r)}var c;return e instanceof $t?n?(e.inject(n,r),[e.getName(r)]):[e]:Oe(e)?Fn(e):Array.isArray(e)?Array.prototype.concat.apply(ft,e.map(function(l){return Ee(l,t,n,r)})):[e.toString()]}function Jo(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(De(n)&&!At(n))return!1}return!0}var Ko=vn(lt),Qo=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Jo(t),this.componentId=n,this.baseHash=Ce(Ko,n),this.baseStyle=r,_n.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))s=ke(s,this.staticRulesId);else{var c=Mt(Ee(this.rules,t,n,r)),l=It(Ce(this.baseHash,c)>>>0);if(!n.hasNameForId(this.componentId,l)){var u=r(c,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,u)}s=ke(s,l),this.staticRulesId=l}else{for(var i=Ce(this.baseHash,r.hash),d="",h=0;h<this.rules.length;h++){var y=this.rules[h];if(typeof y=="string")d+=y,process.env.NODE_ENV!=="production"&&(i=Ce(i,y));else if(y){var b=Mt(Ee(y,t,n,r));i=Ce(i,b+h),d+=b}}if(d){var w=It(i>>>0);n.hasNameForId(this.componentId,w)||n.insertRules(this.componentId,w,r(d,".".concat(w),void 0,this.componentId)),s=ke(s,w)}}return s},e})(),Vn=p.createContext(void 0);Vn.Consumer;var Ht={},Nn=new Set;function es(e,t,n){var r=At(e),s=e,c=!Ot(e),l=t.attrs,u=l===void 0?ft:l,i=t.componentId,d=i===void 0?(function(I,O){var k=typeof I!="string"?"sc":mn(I);Ht[k]=(Ht[k]||0)+1;var S="".concat(k,"-").concat(wn(lt+k+Ht[k]));return O?"".concat(O,"-").concat(S):S})(t.displayName,t.parentComponentId):i,h=t.displayName,y=h===void 0?(function(I){return Ot(I)?"styled.".concat(I):"Styled(".concat(bn(I),")")})(e):h,b=t.displayName&&t.componentId?"".concat(mn(t.displayName),"-").concat(t.componentId):t.componentId||d,w=r&&s.attrs?s.attrs.concat(u).filter(Boolean):u,P=t.shouldForwardProp;if(r&&s.shouldForwardProp){var T=s.shouldForwardProp;if(t.shouldForwardProp){var N=t.shouldForwardProp;P=function(I,O){return T(I,O)&&N(I,O)}}else P=T}var R=new Qo(n,b,r?s.componentStyle:void 0);function x(I,O){return(function(k,S,W){var X=k.attrs,D=k.componentStyle,Fe=k.defaultProps,de=k.foldedComponentIds,q=k.styledComponentId,te=k.target,le=p.useContext(Vn),Te=On(),J=k.shouldForwardProp||Te.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(q);var Ze=bo(S,le,Fe)||Ie,ne=(function(Ne,fe,ye){for(var se,ie=G(G({},fe),{className:void 0,theme:ye}),ve=0;ve<Ne.length;ve+=1){var $e=De(se=Ne[ve])?se(ie):se;for(var ae in $e)ie[ae]=ae==="className"?ke(ie[ae],$e[ae]):ae==="style"?G(G({},ie[ae]),$e[ae]):$e[ae]}return fe.className&&(ie.className=ke(ie.className,fe.className)),ie})(X,S,Ze),me=ne.as||te,ge={};for(var Y in ne)ne[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&ne.theme===Ze||(Y==="forwardedAs"?ge.as=ne.forwardedAs:J&&!J(Y,me)||(ge[Y]=ne[Y],J||process.env.NODE_ENV!=="development"||Jr(Y)||Nn.has(Y)||!_t.has(me)||(Nn.add(Y),console.warn('styled-components: it looks like an unknown prop "'.concat(Y,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Ve=(function(Ne,fe){var ye=On(),se=Ne.generateAndInjectStyles(fe,ye.styleSheet,ye.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(se),se})(D,ne);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(Ve);var Ge=ke(de,q);return Ve&&(Ge+=" "+Ve),ne.className&&(Ge+=" "+ne.className),ge[Ot(me)&&!_t.has(me)?"class":"className"]=Ge,W&&(ge.ref=W),p.createElement(me,ge)})(g,I,O)}x.displayName=y;var g=p.forwardRef(x);return g.attrs=w,g.componentStyle=R,g.displayName=y,g.shouldForwardProp=P,g.foldedComponentIds=r?ke(s.foldedComponentIds,s.styledComponentId):"",g.styledComponentId=b,g.target=r?s.target:e,Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(I){this._foldedDefaultProps=r?(function(O){for(var k=[],S=1;S<arguments.length;S++)k[S-1]=arguments[S];for(var W=0,X=k;W<X.length;W++)Ft(O,X[W],!0);return O})({},s.defaultProps,I):I}}),process.env.NODE_ENV!=="production"&&(wo(y,b),g.warnTooManyClasses=(function(I,O){var k={},S=!1;return function(W){if(!S&&(k[W]=!0,Object.keys(k).length>=200)){var X=O?' with the id of "'.concat(O,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(I).concat(X,`.
77
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
92
78
  Example:
93
79
  const Component = styled.div.attrs(props => ({
94
80
  style: {
@@ -96,11 +82,11 @@ Example:
96
82
  },
97
83
  }))\`width: 100%;\`
98
84
 
99
- <Component />`),p=!0,A={}}}})(v,b)),Object.defineProperty(T,"toString",{value:function(){return"."+T.styledComponentId}}),a&&dn(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),T}var z=function(e){return(function r(t,n,a){if(a===void 0&&(a=je),!lt.isValidElementType(n))return Me(1,String(n));var c=function(){return t(n,a,ot.apply(void 0,arguments))};return c.withConfig=function(l){return r(t,n,ke({},a,{},l))},c.attrs=function(l){return r(t,n,ke({},a,{attrs:Array.prototype.concat(a.attrs,l).filter(Boolean)}))},c})(Qt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){z[e]=z(e)}));function qn(e){process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var a=ot.apply(void 0,[e].concat(t)).join(""),c=Xt(a);return new Ut(c,a)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
85
+ <Component />`),S=!0,k={}}}})(y,b)),Vt(g,function(){return".".concat(g.styledComponentId)}),c&&Pn(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}function $n(e,t){for(var n=[e[0]],r=0,s=t.length;r<s;r+=1)n.push(t[r],e[r+1]);return n}var Hn=function(e){return Object.assign(e,{isCss:!0})};function vt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(De(e)||Oe(e))return Hn(Ee($n(ft,be([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Ee(r):Hn(Ee($n(r,t)))}function zt(e,t,n){if(n===void 0&&(n=Ie),!t)throw Ae(1,t);var r=function(s){for(var c=[],l=1;l<arguments.length;l++)c[l-1]=arguments[l];return e(t,n,vt.apply(void 0,be([s],c,!1)))};return r.attrs=function(s){return zt(e,t,G(G({},n),{attrs:Array.prototype.concat(n.attrs,s).filter(Boolean)}))},r.withConfig=function(s){return zt(e,t,G(G({},n),s))},r}var zn=function(e){return zt(es,e)},_=zn;_t.forEach(function(e){_[e]=zn(e)});function ts(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=Mt(vt.apply(void 0,be([e],t,!1))),s=wn(r);return new $t(s,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
100
86
  Perhaps you're looking to import 'styled-components/native'?
101
- Read more about this at https://www.styled-components.com/docs/basics#react-native`),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
87
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var wt="__sc-".concat(Se,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[wt]||(window[wt]=0),window[wt]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
102
88
 
103
- See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);function Zn({children:e,eventFinishedMessage:r,eventNotStartedMessage:t,eventStartingSoonMessage:n}){const a=me(f=>f.startDate),c=me(f=>f.endDate),l=Date.now(),d=l<a.getTime(),u=l>c.getTime();return Qr(5e3),d?i.jsx(Gn,{startDate:a,title:t||"Event has not started yet.",message:n||"Starting in few seconds..."}):u?i.jsx(Xn,{title:r||"Event has finished."}):i.jsx(i.Fragment,{children:e})}function Gn({startDate:e,title:r,message:t}){const n=e.getTime()-Date.now(),a=Math.floor(n/(1e3*60*60)),c=Math.floor(n%(1e3*60*60)/(1e3*60));return a||c?i.jsxs(bt,{children:[i.jsx(St,{children:r}),i.jsxs(Jn,{children:["(",a>0?`${a}h ${c}m`:`${c}m`,")"]})]}):i.jsx(bt,{children:i.jsx(St,{children:t})})}function Xn({title:e}){return i.jsx(bt,{children:i.jsx(St,{children:e})})}const bt=z.div`
89
+ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children:e,eventFinishedMessage:t,eventNotStartedMessage:n,eventStartingSoonMessage:r}){const s=B(d=>d.startDate),c=B(d=>d.endDate),l=Date.now(),u=l<s.getTime(),i=l>c.getTime();return qr(5e3),u?a.jsx(rs,{startDate:s,title:n||"Event has not started yet.",message:r||"Starting in few seconds..."}):i?a.jsx(os,{title:t||"Event has finished."}):a.jsx(a.Fragment,{children:e})}function rs({startDate:e,title:t,message:n}){const r=e.getTime()-Date.now(),s=Math.floor(r/(1e3*60*60)),c=Math.floor(r%(1e3*60*60)/(1e3*60));return s||c?a.jsxs(Bt,{children:[a.jsx(Ut,{children:t}),a.jsxs(ss,{children:["(",s>0?`${s}h ${c}m`:`${c}m`,")"]})]}):a.jsx(Bt,{children:a.jsx(Ut,{children:n})})}function os({title:e}){return a.jsx(Bt,{children:a.jsx(Ut,{children:e})})}const Bt=_.div`
104
90
  position: absolute;
105
91
  top: 0;
106
92
  left: 0;
@@ -113,21 +99,21 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
113
99
  justify-content: center;
114
100
  color: black;
115
101
  background: #f7e406;
116
- `,St=z.h3`
102
+ `,Ut=_.h3`
117
103
  margin: 0;
118
104
  padding: 0.5rem 0;
119
105
  font-size: 1.5rem;
120
106
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
121
107
  "Helvetica Neue", Arial, sans-serif;
122
108
  font-weight: 500;
123
- `,Jn=z.p`
109
+ `,ss=_.p`
124
110
  margin: 0;
125
111
  height: 1.25rem;
126
112
  font-size: 1rem;
127
113
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
128
114
  "Helvetica Neue", Arial, sans-serif;
129
115
  font-weight: 500;
130
- `;function Kn(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})}const Ae=y.forwardRef(({shape:e="circle",...r},t)=>i.jsx(Qn,{ref:t,$shape:e,...r}));Ae.displayName="PlayerButton";const Qn=z.button`
116
+ `;function is(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})}const he=p.forwardRef(({shape:e="circle",...t},n)=>a.jsx(as,{ref:n,$shape:e,...t}));he.displayName="PlayerButton";const as=_.button`
131
117
  margin: 0;
132
118
  display: flex;
133
119
  align-items: center;
@@ -165,16 +151,16 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
165
151
  cursor: not-allowed;
166
152
  }
167
153
 
168
- ${({$shape:e})=>e==="circle"&&ot`
154
+ ${({$shape:e})=>e==="circle"&&vt`
169
155
  padding: 0;
170
156
  width: 2rem;
171
157
  height: 2rem;
172
158
  `}
173
159
 
174
- ${({$shape:e})=>e==="square"&&ot`
160
+ ${({$shape:e})=>e==="square"&&vt`
175
161
  padding: 0.25rem 0.5rem;
176
162
  `}
177
- `;function eo({message:e,...r}){const t=me(c=>c.delay),n=me(c=>c.setDelay),a=()=>n(0);return t?i.jsxs(Ae,{onClick:a,shape:"square",...r,children:[i.jsx("span",{children:e||"Live"}),i.jsx(Kn,{})]}):null}function er(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M6 5H8V19H6V5ZM16 5H18V19H16V5Z"})})}function tr(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z"})})}function to(e,r,t){const n={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(n[r]/n[t])}function ro(e){return to(e,"milliseconds","seconds")}const Ne=e=>{const r=Math.floor(e/60),t=Math.floor(e%60);return`${r.toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`};function no(e){const r=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(r)}const rr=no(/iPhone|iPad|iPod/i);function oo(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function ao(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function io(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function so(e,r){return e.addEventListener("fullscreenchange",r),e.addEventListener("webkitfullscreenchange",r),e.addEventListener("mozfullscreenchange",r),e.addEventListener("MSFullscreenChange",r),()=>{e.removeEventListener("fullscreenchange",r),e.removeEventListener("webkitfullscreenchange",r),e.removeEventListener("mozfullscreenchange",r),e.removeEventListener("MSFullscreenChange",r)}}const co=(e,r)=>({currentTime:0,duration:0,isEnded:!1,isLoading:!1,isLoop:!1,isMetaLoaded:!1,isPlaying:!1,isReady:!1,isStarted:!1,pauseTime:0,seekTime:-1,startTime:-1,volume:100,destroy:()=>{},handleDurationChange:()=>{const t=r().techRef.current;t&&e({duration:t.duration})},handleEnd:()=>{r().techRef.current&&e({isEnded:!0,isLoading:!1,isMetaLoaded:!1,isPlaying:!1})},handleLoadedMetadata:()=>{const t=r().techRef.current;t&&(t.loop=r().isLoop,t.volume=t.muted?0:1,r().startTime!==-1&&(t.currentTime=r().startTime),e({currentTime:r().startTime!==-1?r().startTime:t.currentTime,duration:t.duration,startTime:-1,isMetaLoaded:!0,volume:t.muted?0:100}))},handleLoadStart:()=>{const t=r().techRef.current;t&&(e({isReady:!0}),t.play().then(()=>{e({isEnded:!1,isLoading:!1,isPlaying:!0,isStarted:!0,pauseTime:0})}).catch(n=>e(()=>(console.info("Player failed to autoplay",n),{isStarted:!1,isEnded:!1,isLoading:!1,isPlaying:!1}))))},handlePause:()=>e({isPlaying:!1,pauseTime:Date.now()}),handlePlay:()=>e({isPlaying:!0,pauseTime:0}),handlePlaying:()=>e({isLoading:!1}),handleSeeked:()=>e({isLoading:!1}),handleSeeking:()=>e({isLoading:!0}),handleTimeUpdate:()=>{const t=r().techRef.current;t&&e({currentTime:t.currentTime})},handleWaiting:()=>e({isLoading:!0}),pause:()=>{const t=r().techRef.current;t&&(t.pause(),e({isEnded:!1,isPlaying:!1,pauseTime:Date.now()}))},pauseTimeDiff:()=>ro(Date.now()-r().pauseTime),play:()=>{const t=r().techRef.current;t&&(t.play(),e({isEnded:!1,isPlaying:!0,isStarted:!0,pauseTime:0}))},seek:t=>{const n=r().techRef.current;n&&(n.currentTime=t,(n.paused||n.ended)&&n.play(),e({seekTime:-1,currentTime:t,isStarted:!0,isEnded:!1,isPlaying:!0}))},setIsLoading:t=>e({isLoading:t}),setIsLoop:t=>{const n=r().techRef.current;n&&(n.loop=t,e({isLoop:t}))},setStartTime:t=>e({startTime:t}),setVolume:t=>{const n=r().techRef.current;n&&(n.muted=t===0,n.volume=t/100,e({volume:t}))},stop:()=>{r().techRef.current&&e({isPlaying:!1,isLoading:!1})}}),lo=e=>({idleLocks:new Set,addIdleLock:r=>e(t=>({idleLocks:new Set(t.idleLocks).add(r)})),removeIdleLock:r=>e(t=>{const n=new Set(t.idleLocks);return n.delete(r),{idleLocks:n}})}),uo=e=>({level:null,levels:null,setLevels:r=>e({levels:r}),setLevel:r=>e({level:r})}),fo=(e,r)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{io(document),e({isFullscreen:!1})},requestFullscreen:()=>{const t=r().techRef.current,n=r().containerRef.current;if(!t||!n)return;const a=rr?t:n;a&&ao(a),e({isFullscreen:!0})},setIsFullscreen:t=>e({isFullscreen:t}),setIsFullscreenReady:t=>e({isFullscreenReady:t})}),po=e=>()=>({...e}),ho=(e,r)=>Ge.create()((...t)=>({...co(...t),...lo(...t),...fo(...t),...uo(...t),...po({techRef:e,containerRef:r})(...t)})),nr=y.createContext(null);function mo({children:e}){const r=y.useRef(null),t=y.useRef(null),n=y.useRef(null);return r.current||(r.current=ho(t,n)),i.jsx(nr.Provider,{value:r.current,children:e})}const S=e=>{const r=y.useContext(nr);if(!r)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Ge.useStore(r,e)};function vo(){const e=S(u=>u.isPlaying),r=S(u=>u.pause),t=S(u=>u.pauseTime),n=S(u=>u.pauseTimeDiff),a=S(u=>u.play),c=me(u=>u.delay),l=me(u=>u.setDelay),d=()=>{e?r():(t&&l(c+n()),a())};return i.jsx(Ae,{onClick:d,children:e?i.jsx(er,{}):i.jsx(tr,{})})}function or({className:e,onClick:r,...t}){const n=y.useRef(null),a=S(b=>b.exitFullscreen),c=S(b=>b.isFullscreen),l=S(b=>b.requestFullscreen),d=b=>{v()?(f(),c?a():l()):u(b)},u=b=>{n.current=window.setTimeout(()=>{r?.(b),f()},200)},f=()=>{n.current!==null&&(window.clearTimeout(n.current),n.current=null)},v=()=>n.current!==null;return y.useEffect(()=>()=>{f()},[]),i.jsx(go,{onClick:d,className:e,"aria-label":"Player playback indicator",...t})}const go=z.button`
163
+ `;function cs({message:e,...t}){const n=B(c=>c.delay),r=B(c=>c.setDelay),s=()=>r(0);return n?a.jsxs(he,{onClick:s,shape:"square",...t,children:[a.jsx("span",{children:e||"Live"}),a.jsx(is,{})]}):null}function Bn(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M6 5H8V19H6V5ZM16 5H18V19H16V5Z"})})}function Un(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z"})})}function ls(e,t,n){const r={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(r[t]/r[n])}function us(e){return ls(e,"milliseconds","seconds")}const Me=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`};function ds(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const Wn=ds(/iPhone|iPad|iPod/i);function fs(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function ps(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function hs(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function ms(e,t){return e.addEventListener("fullscreenchange",t),e.addEventListener("webkitfullscreenchange",t),e.addEventListener("mozfullscreenchange",t),e.addEventListener("MSFullscreenChange",t),()=>{e.removeEventListener("fullscreenchange",t),e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("mozfullscreenchange",t),e.removeEventListener("MSFullscreenChange",t)}}const gs=(e,t)=>({currentTime:0,duration:0,isEnded:!1,isLoading:!1,isLoop:!1,isMetaLoaded:!1,isPlaying:!1,isReady:!1,isStarted:!1,pauseTime:0,seekTime:-1,startTime:-1,volume:100,destroy:()=>{},handleDurationChange:()=>{const n=t().techRef.current;n&&e({duration:n.duration})},handleEnd:()=>{t().techRef.current&&e({isEnded:!0,isLoading:!1,isMetaLoaded:!1,isPlaying:!1})},handleLoadedMetadata:()=>{const n=t().techRef.current;n&&(n.loop=t().isLoop,n.volume=n.muted?0:1,t().startTime!==-1&&(n.currentTime=t().startTime),e({currentTime:t().startTime!==-1?t().startTime:n.currentTime,duration:n.duration,startTime:-1,isMetaLoaded:!0,volume:n.muted?0:100}))},handleLoadStart:()=>{const n=t().techRef.current;n&&(e({isReady:!0}),n.play().then(()=>{e({isEnded:!1,isLoading:!1,isPlaying:!0,isStarted:!0,pauseTime:0})}).catch(r=>e(()=>(console.info("Player failed to autoplay",r),{isStarted:!1,isEnded:!1,isLoading:!1,isPlaying:!1}))))},handlePause:()=>e({isPlaying:!1,pauseTime:Date.now()}),handlePlay:()=>e({isPlaying:!0,pauseTime:0}),handlePlaying:()=>e({isLoading:!1}),handleSeeked:()=>e({isLoading:!1}),handleSeeking:()=>e({isLoading:!0}),handleTimeUpdate:()=>{const n=t().techRef.current;n&&e({currentTime:n.currentTime})},handleWaiting:()=>e({isLoading:!0}),pause:()=>{const n=t().techRef.current;n&&(n.pause(),e({isEnded:!1,isPlaying:!1,pauseTime:Date.now()}))},pauseTimeDiff:()=>parseInt(us(Date.now()-t().pauseTime).toFixed(0)),play:()=>{const n=t().techRef.current;n&&(n.play(),e({isEnded:!1,isPlaying:!0,isStarted:!0,pauseTime:0}))},seek:n=>{const r=t().techRef.current;r&&(r.currentTime=n,(r.paused||r.ended)&&r.play(),e({seekTime:-1,currentTime:n,isStarted:!0,isEnded:!1,isPlaying:!0}))},setIsLoading:n=>e({isLoading:n}),setIsLoop:n=>{const r=t().techRef.current;r&&(r.loop=n,e({isLoop:n}))},setStartTime:n=>e({startTime:n}),setVolume:n=>{const r=t().techRef.current;r&&(r.muted=n===0,r.volume=n/100,e({volume:n}))},stop:()=>{t().techRef.current&&e({isPlaying:!1,isLoading:!1})}}),ys=e=>({idleLocks:new Set,addIdleLock:t=>e(n=>({idleLocks:new Set(n.idleLocks).add(t)})),removeIdleLock:t=>e(n=>{const r=new Set(n.idleLocks);return r.delete(t),{idleLocks:r}})}),vs=e=>({level:null,levels:null,setLevels:t=>e({levels:t}),setLevel:t=>e({level:t})}),ws=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{hs(document),e({isFullscreen:!1})},requestFullscreen:()=>{const n=t().techRef.current,r=t().containerRef.current;if(!n||!r)return;const s=Wn?n:r;s&&ps(s),e({isFullscreen:!0})},setIsFullscreen:n=>e({isFullscreen:n}),setIsFullscreenReady:n=>e({isFullscreenReady:n})}),bs=e=>()=>({...e}),xs=(e,t)=>Je.create()((...n)=>({...gs(...n),...ys(...n),...ws(...n),...vs(...n),...bs({techRef:e,containerRef:t})(...n)})),qn=p.createContext(null);function Ss({children:e}){const t=p.useRef(null),n=p.useRef(null),r=p.useRef(null);return t.current||(t.current=xs(n,r)),a.jsx(qn.Provider,{value:t.current,children:e})}const m=e=>{const t=p.useContext(qn);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Je.useStore(t,e)};function Cs(){const e=m(i=>i.isPlaying),t=m(i=>i.pause),n=m(i=>i.pauseTime),r=m(i=>i.pauseTimeDiff),s=m(i=>i.play),c=B(i=>i.delay),l=B(i=>i.setDelay),u=()=>{e?t():(n&&l(c+r()),s())};return a.jsx(he,{onClick:u,children:e?a.jsx(Bn,{}):a.jsx(Un,{})})}function Yn({className:e,onClick:t,...n}){const r=p.useRef(null),s=m(y=>y.exitFullscreen),c=m(y=>y.isFullscreen),l=m(y=>y.requestFullscreen),u=y=>{h()?(d(),c?s():l()):i(y)},i=y=>{r.current=window.setTimeout(()=>{t?.(y),d()},200)},d=()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},h=()=>r.current!==null;return p.useEffect(()=>()=>{d()},[]),a.jsx(ks,{onClick:u,className:e,"aria-label":"Player playback indicator",...n})}const ks=_.button`
178
164
  position: absolute;
179
165
  top: 0;
180
166
  left: 0;
@@ -192,11 +178,11 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
192
178
  &:focus {
193
179
  outline: none;
194
180
  }
195
- `;function yo(){const e=S(n=>n.isPlaying),r=S(n=>n.play),t=()=>{e||r()};return i.jsx(or,{onClick:t})}const ar=z.div`
181
+ `;function Es(){const e=m(i=>i.isPlaying),t=m(i=>i.pause),n=m(i=>i.pauseTime),r=m(i=>i.pauseTimeDiff),s=m(i=>i.play),c=B(i=>i.delay),l=B(i=>i.setDelay),u=()=>{e?t():(n&&l(c+r()),s())};return a.jsx(Yn,{onClick:u})}const Zn=_.div`
196
182
  position: relative;
197
183
  width: 100%;
198
184
  margin-bottom: -0.25rem;
199
- `,ir=z.div`
185
+ `,Gn=_.div`
200
186
  position: absolute;
201
187
  bottom: 1.75rem;
202
188
  left: 0;
@@ -207,7 +193,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
207
193
  opacity: ${({$isVisible:e})=>e?1:0};
208
194
  transform: ${({$isVisible:e})=>e?"translateY(0)":"translateY(-0.5rem)"};
209
195
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
210
- `,sr=z.p`
196
+ `,Xn=_.p`
211
197
  margin: 0;
212
198
  padding: 0.25rem;
213
199
  font-variant-numeric: tabular-nums;
@@ -219,7 +205,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
219
205
  color: white;
220
206
  background: rgba(0, 0, 0, 0.8);
221
207
  border-radius: 1rem;
222
- `,st=y.forwardRef(({max:e=100,min:r=0,...t},n)=>i.jsxs(wo,{ref:n,min:r,max:e,"aria-label":"Player progress",onKeyDown:a=>a.preventDefault(),...t,children:[i.jsx(bo,{children:i.jsx(So,{})}),i.jsx(xo,{})]}));st.displayName="PlayerSlider";const wo=z(Xe.Root)`
208
+ `,bt=p.forwardRef(({max:e=100,min:t=0,...n},r)=>a.jsxs(Ts,{ref:r,min:t,max:e,"aria-label":"Player progress",onKeyDown:s=>s.preventDefault(),...n,children:[a.jsx(Ps,{children:a.jsx(Rs,{})}),a.jsx(js,{})]}));bt.displayName="PlayerSlider";const Ts=_(Ke.Root)`
223
209
  position: relative;
224
210
  display: flex;
225
211
  align-items: center;
@@ -233,20 +219,20 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
233
219
  cursor: not-allowed;
234
220
  opacity: 0.5;
235
221
  }
236
- `,bo=z(Xe.Track)`
222
+ `,Ps=_(Ke.Track)`
237
223
  position: relative;
238
224
  height: 0.25rem;
239
225
  flex-grow: 1;
240
226
  background: rgba(255, 255, 255, 0.2);
241
227
  border-radius: 1rem;
242
228
  overflow: hidden;
243
- `,So=z(Xe.Range)`
229
+ `,Rs=_(Ke.Range)`
244
230
  position: absolute;
245
231
  height: 100%;
246
232
  background: #f7e406;
247
233
  transition: width 0.2s ease-in-out;
248
234
  border-radius: 1rem;
249
- `,xo=z(Xe.Thumb)`
235
+ `,js=_(Ke.Thumb)`
250
236
  display: block;
251
237
  width: 0.875rem;
252
238
  height: 0.875rem;
@@ -269,10 +255,10 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
269
255
  cursor: not-allowed;
270
256
  opacity: 0.5;
271
257
  }
272
- `;function ct(e){const r=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight?{left:r.left*100,right:r.right*100,top:r.top*100,bottom:r.bottom*100,width:r.width*100,height:r.height*100}:r}const cr=(e,r=0)=>parseInt(Math.max(0,(Date.now()-(e+r*1e3))/1e3).toFixed(0)),lr=(e,r)=>Math.max(0,(Date.now()-e-r*1e3)/1e3),ur=(e,r)=>Math.max(0,(r-e)/1e3),Co=(e,r=0)=>{const n=r<0?0:r,a=["bytes","kb","mb","gb","tb","pb","eb","zb","yb"],c=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,c)).toFixed(n))}${a[c]}`};function Eo({isAuto:e,level:r,levels:t}){const n=t.length,a=[];return n>1&&a.push({sid:"quality-level-auto",label:"Auto",value:-1,selected:e||r===-1}),t.sort(function(c,l){const d=c.height||c.bitrate||0,u=l.height||l.bitrate||0;return d===u?0:d>u?1:-1}),t.map(c=>{const{bitrate:l,height:d,index:u}=c;a.push({sid:`quality-level-${u}`,label:d?`${d}p`:Co(l),value:u,selected:n===1||!e&&u===r})}),a}const dr="vod-player-progress-bar";function To(){const e=y.useRef(null),r=y.useRef(null),[t,n]=y.useState(0),[a,c]=y.useState(0),[l,d]=y.useState(!1),[u,f]=y.useState(-1),[v,b]=y.useState(-1),I=me(F=>F.delay),k=me(F=>F.startTime),T=me(F=>F.endTime),_=me(F=>F.setDelay),j=S(F=>F.isPlaying),L=S(F=>F.addIdleLock),x=S(F=>F.removeIdleLock),g=y.useCallback(()=>{n(lr(k,I)),c(ur(k,T))},[I,T,k]),A=parseFloat((a?(v!==-1?v:t)/a*100:0).toFixed(1)),p=F=>{b(a*(F[0]/100)),L(dr)},W=()=>{if(v!==-1){const F=cr(k,v);_(F),b(-1),x(dr)}},fe=()=>d(!0),re=()=>d(!1),le=y.useCallback(F=>{const ye=e.current,ne=r.current;if(ye&&ne){const K=ct(ye),oe=ct(ne),Q=(F.pageX||F.clientX)-K.left,we=Q/K.width;if(we<0)return;let ee=Q-oe.width/2;ee<0&&(ee=0),ee>K.width-oe.width&&(ee=-1),ne.style.left=ee>-1?`${ee}px`:"auto",ne.style.right=ee>-1?"auto":"0px",f(we*a)}fe()},[a]);return Ke(()=>g(),j?1e3:null),y.useEffect(()=>{g()},[g]),i.jsxs(ar,{children:[i.jsx(st,{ref:e,value:[A],onPointerLeave:re,onPointerDown:re,onPointerMove:le,onValueChange:p,onValueCommit:W,step:.1}),i.jsx(ir,{ref:r,$isVisible:l,children:i.jsx(sr,{children:Ne(u)})})]})}function fr({children:e}){return i.jsx(mo,{children:e})}function Ro({children:e,startDate:r,endDate:t}){return i.jsx(tn,{startDate:r,endDate:t,children:i.jsx(fr,{children:e})})}const pr=z.div`
258
+ `;function xt(e){const t=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight?{left:t.left*100,right:t.right*100,top:t.top*100,bottom:t.bottom*100,width:t.width*100,height:t.height*100}:t}const Jn=(e,t=0)=>parseInt(Math.max(0,(Date.now()-(e+t*1e3))/1e3).toFixed(0)),Kn=(e,t)=>Math.max(0,(Date.now()-e-t*1e3)/1e3),Qn=(e,t)=>Math.max(0,(t-e)/1e3),Ls=(e,t=0)=>{const r=t<0?0:t,s=["bytes","kb","mb","gb","tb","pb","eb","zb","yb"],c=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,c)).toFixed(r))}${s[c]}`};function _s({isAuto:e,level:t,levels:n}){const r=n.length,s=[];return r>1&&s.push({sid:"quality-level-auto",label:"Auto",value:-1,selected:e||t===-1}),n.sort(function(c,l){const u=c.height||c.bitrate||0,i=l.height||l.bitrate||0;return u===i?0:u>i?1:-1}),n.map(c=>{const{bitrate:l,height:u,index:i}=c;s.push({sid:`quality-level-${i}`,label:u?`${u}p`:Ls(l),value:i,selected:r===1||!e&&i===t})}),s}const er="vod-player-progress-bar";function Is(){const e=p.useRef(null),t=p.useRef(null),[n,r]=p.useState(0),[s,c]=p.useState(0),[l,u]=p.useState(!1),[i,d]=p.useState(-1),[h,y]=p.useState(-1),b=B(D=>D.delay),w=B(D=>D.startTime),P=B(D=>D.endTime),T=B(D=>D.setDelay),N=m(D=>D.isPlaying),R=m(D=>D.addIdleLock),x=m(D=>D.removeIdleLock),g=p.useCallback(()=>{r(Kn(w,b)),c(Qn(w,P))},[b,P,w]),I=parseFloat((s?(h!==-1?h:n)/s*100:0).toFixed(1)),O=D=>{y(s*(D[0]/100)),R(er)},k=()=>{if(h!==-1){const D=Jn(w,h);T(D),y(-1),x(er)}},S=()=>u(!0),W=()=>u(!1),X=p.useCallback(D=>{const Fe=e.current,de=t.current;if(Fe&&de){const q=xt(Fe),te=xt(de),le=(D.pageX||D.clientX)-q.left,Te=le/q.width;if(Te<0)return;let J=le-te.width/2;J<0&&(J=0),J>q.width-te.width&&(J=-1),de.style.left=J>-1?`${J}px`:"auto",de.style.right=J>-1?"auto":"0px",d(Te*s)}S()},[s]);return et(()=>g(),N?1e3:null),p.useEffect(()=>{g()},[g]),a.jsxs(Zn,{children:[a.jsx(bt,{ref:e,value:[I],onPointerLeave:W,onPointerDown:W,onPointerMove:X,onValueChange:O,onValueCommit:k,step:.1}),a.jsx(Gn,{ref:t,$isVisible:l,children:a.jsx(Xn,{children:Me(i)})})]})}function tr({children:e}){return a.jsx(Ss,{children:e})}function Ds({children:e,startDate:t,endDate:n}){return a.jsx(Zr,{startDate:t,endDate:n,children:a.jsx(tr,{children:e})})}const nr=_.div`
273
259
  display: flex;
274
260
  align-items: center;
275
- `,hr=z.p`
261
+ `,rr=_.p`
276
262
  margin: 0;
277
263
  padding: 0;
278
264
  font-variant-numeric: tabular-nums;
@@ -280,11 +266,11 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
280
266
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
281
267
  "Helvetica Neue", Arial, sans-serif;
282
268
  font-weight: 500;
283
- `,mr=z(hr)`
269
+ `,or=_(rr)`
284
270
  margin-right: 0.5rem;
285
- `,vr=z(hr)`
271
+ `,sr=_(rr)`
286
272
  margin-left: 0.5rem;
287
- `,gr=z.p`
273
+ `,ir=_.p`
288
274
  margin: 0;
289
275
  padding: 0;
290
276
  font-size: 0.8125rem;
@@ -295,7 +281,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
295
281
  &::before {
296
282
  content: "/";
297
283
  }
298
- `;function Po(){const[e,r]=y.useState(0),[t,n]=y.useState(0),a=S(f=>f.isPlaying),c=me(f=>f.delay),l=me(f=>f.startTime),d=me(f=>f.endTime),u=y.useCallback(()=>{r(lr(l,c)),n(ur(l,d))},[c,d,l]);return Ke(()=>u(),a?1e3:null),y.useEffect(()=>{u()},[u]),c?i.jsxs(pr,{children:[i.jsx(mr,{children:Ne(e)}),i.jsx(gr,{}),i.jsx(vr,{children:Ne(t)})]}):null}function ko(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z"})})}function _o(){const e=me(n=>n.startTime),r=me(n=>n.setDelay),t=()=>r(cr(e));return i.jsx(Ae,{onClick:t,children:i.jsx(ko,{})})}function jo({url:e,isLive:r}){const t=y.useRef(null),n=S(k=>k.level),a=S(k=>k.levels),c=S(k=>k.setLevel),l=S(k=>k.setLevels),d=S(k=>k.techRef),u=y.useCallback(k=>{if(t.current&&(t.current.nextLevel=k,c(null),a)){const T=a.map(_=>({..._,selected:_.value===k}));l(T)}},[a,c,l,t]),f=y.useCallback(()=>{t.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),t.current.loadSource(e))},[e]),v=y.useCallback(()=>{if(!t.current)return;console.log("[Player][Event]","MANIFEST_LOADED");const k=t.current.levels,T=t.current.currentLevel,_=t.current.autoLevelEnabled;l(Eo({levels:k.map((j,L)=>{const{bitrate:x,height:g,width:A}=j;return{bitrate:x,height:g,index:L,width:A}}),level:T,isAuto:_}))},[l]),b=y.useCallback(()=>{if(!d.current)return;const _=r?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(_)),console.log("[Player] Version",Le.version),t.current=new Le(_),t.current.attachMedia(d.current),t.current.on(Le.Events.MEDIA_ATTACHED,f),t.current.on(Le.Events.MANIFEST_LOADED,v)}catch(j){throw new Error(`Error initializing Hls: ${j}`)}},[v,f,r,d,e]),I=y.useCallback(()=>{t.current&&(t.current.off(Le.Events.MEDIA_ATTACHED,f),t.current.off(Le.Events.MANIFEST_LOADED,v),t.current.destroy(),t.current=null)},[v,f]);return y.useEffect(()=>{n!==null&&u(n)},[n,u]),y.useEffect(()=>(Le.isSupported()&&b(),I),[I,b]),null}function yr({url:e,isLive:r,isMuted:t=!1}){const n=S(g=>g.handleDurationChange),a=S(g=>g.handleEnd),c=S(g=>g.handleLoadedMetadata),l=S(g=>g.handleLoadStart),d=S(g=>g.handlePause),u=S(g=>g.handlePlay),f=S(g=>g.handlePlaying),v=S(g=>g.handleSeeked),b=S(g=>g.handleSeeking),I=S(g=>g.handleTimeUpdate),k=S(g=>g.handleWaiting),T=S(g=>g.techRef),_=y.useRef(null),j=()=>r?{}:{onDurationChange:n,onSeeked:v,onSeeking:b,onTimeUpdate:L},L=()=>{(!_.current||Date.now()-_.current>=1e3)&&(I(),_.current=Date.now())},x=j();return i.jsxs(i.Fragment,{children:[i.jsx(jo,{isLive:r,url:e}),i.jsx(Ao,{ref:T,playsInline:!0,autoPlay:!0,controls:!1,muted:t,preload:"auto",crossOrigin:"anonymous",onEnded:a,onLoadedMetadata:c,onLoadStart:l,onPause:d,onPlay:u,onPlaying:f,onWaiting:k,tabIndex:-1,...x})]})}const Ao=z.video`
284
+ `;function Os(){const[e,t]=p.useState(0),[n,r]=p.useState(0),s=m(d=>d.isPlaying),c=B(d=>d.delay),l=B(d=>d.startTime),u=B(d=>d.endTime),i=p.useCallback(()=>{t(Kn(l,c)),r(Qn(l,u))},[c,u,l]);return et(()=>i(),s?1e3:null),p.useEffect(()=>{i()},[i]),c?a.jsxs(nr,{children:[a.jsx(or,{children:Me(e)}),a.jsx(ir,{}),a.jsx(sr,{children:Me(n)})]}):null}function As(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z"})})}function Ms(){const e=B(r=>r.startTime),t=B(r=>r.setDelay),n=()=>t(Jn(e));return a.jsx(he,{onClick:n,children:a.jsx(As,{})})}function Fs({url:e,isLive:t}){const n=p.useRef(null),r=m(w=>w.level),s=m(w=>w.levels),c=m(w=>w.setLevel),l=m(w=>w.setLevels),u=m(w=>w.techRef),i=p.useCallback(w=>{if(n.current&&(n.current.nextLevel=w,c(null),s)){const P=s.map(T=>({...T,selected:T.value===w}));l(P)}},[s,c,l,n]),d=p.useCallback(()=>{n.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),n.current.loadSource(e))},[e]),h=p.useCallback(()=>{if(!n.current)return;console.log("[Player][Event]","MANIFEST_LOADED");const w=n.current.levels,P=n.current.currentLevel,T=n.current.autoLevelEnabled;l(_s({levels:w.map((N,R)=>{const{bitrate:x,height:g,width:I}=N;return{bitrate:x,height:g,index:R,width:I}}),level:P,isAuto:T}))},[l]),y=p.useCallback(()=>{if(!u.current)return;const T=t?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(T)),console.log("[Player] Version",we.version),n.current=new we(T),n.current.attachMedia(u.current),n.current.on(we.Events.MEDIA_ATTACHED,d),n.current.on(we.Events.MANIFEST_LOADED,h)}catch(N){throw new Error(`Error initializing Hls: ${N}`)}},[h,d,t,u,e]),b=p.useCallback(()=>{n.current&&(n.current.off(we.Events.MEDIA_ATTACHED,d),n.current.off(we.Events.MANIFEST_LOADED,h),n.current.destroy(),n.current=null)},[h,d]);return p.useEffect(()=>{r!==null&&i(r)},[r,i]),p.useEffect(()=>(we.isSupported()&&y(),b),[b,y]),null}function ar({url:e,isLive:t,isMuted:n=!1}){const r=m(g=>g.handleDurationChange),s=m(g=>g.handleEnd),c=m(g=>g.handleLoadedMetadata),l=m(g=>g.handleLoadStart),u=m(g=>g.handlePause),i=m(g=>g.handlePlay),d=m(g=>g.handlePlaying),h=m(g=>g.handleSeeked),y=m(g=>g.handleSeeking),b=m(g=>g.handleTimeUpdate),w=m(g=>g.handleWaiting),P=m(g=>g.techRef),T=p.useRef(null),N=()=>t?{}:{onDurationChange:r,onSeeked:h,onSeeking:y,onTimeUpdate:R},R=()=>{(!T.current||Date.now()-T.current>=1e3)&&(b(),T.current=Date.now())},x=N();return a.jsxs(a.Fragment,{children:[a.jsx(Fs,{isLive:t,url:e}),a.jsx(Vs,{ref:P,playsInline:!0,autoPlay:!0,controls:!1,muted:n,preload:"auto",crossOrigin:"anonymous",onEnded:s,onLoadedMetadata:c,onLoadStart:l,onPause:u,onPlay:i,onPlaying:d,onWaiting:w,tabIndex:-1,...x})]})}const Vs=_.video`
299
285
  position: relative;
300
286
  width: 100%;
301
287
  height: 100%;
@@ -303,7 +289,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
303
289
  @media (min-width: 768px) {
304
290
  pointer-events: none;
305
291
  }
306
- `;function Lo({url:e}){const[r,t]=y.useState(null),n=me(c=>c.delay),a=y.useCallback(async()=>{t(n?e.replace("playlist.m3u8",`playlist_fmp4_dvr_timeshift-${n}.m3u8`):e)},[n,e]);return y.useEffect(()=>{a()},[a]),r?i.jsx(yr,{url:r,isLive:!0}):null}const wr=z.div`
292
+ `;function Ns({url:e}){const[t,n]=p.useState(null),r=B(c=>c.delay),s=p.useCallback(async()=>{n(r?e.replace("playlist.m3u8",`playlist_fmp4_dvr_timeshift-${r}.m3u8`):e)},[r,e]);return p.useEffect(()=>{s()},[s]),t?a.jsx(ar,{url:t,isLive:!0}):null}const cr=_.div`
307
293
  position: absolute;
308
294
  top: 0;
309
295
  left: 0;
@@ -312,7 +298,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
312
298
  color: white;
313
299
  background: black;
314
300
  overflow: hidden;
315
- `,br=z.div`
301
+ `,lr=_.div`
316
302
  position: absolute;
317
303
  left: 0;
318
304
  width: 100%;
@@ -324,7 +310,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
324
310
  @media (min-width: 768px) {
325
311
  padding-top: 2rem;
326
312
  }
327
- `,Sr=z.div`
313
+ `,ur=_.div`
328
314
  display: flex;
329
315
  flex-direction: column;
330
316
  padding-left: 0.5rem;
@@ -336,21 +322,21 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
336
322
  padding-left: 1rem;
337
323
  padding-right: 1rem;
338
324
  }
339
- `,xr=z.div`
325
+ `,dr=_.div`
340
326
  display: flex;
341
327
  padding: 0.5rem 0;
342
328
  width: 100%;
343
329
  align-items: center;
344
- `,Cr=z.div`
330
+ `,fr=_.div`
345
331
  display: flex;
346
332
  flex: 1;
347
333
  align-items: center;
348
334
  gap: 0.5rem;
349
- `,Er=z(Cr)`
335
+ `,pr=_(fr)`
350
336
  justify-content: flex-start;
351
- `,Tr=z(Cr)`
337
+ `,hr=_(fr)`
352
338
  justify-content: flex-end;
353
- `;function Io(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z"})})}function Oo(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"})})}function Rr(){const e=S(f=>f.containerRef),r=S(f=>f.exitFullscreen),t=S(f=>f.isFullscreen),n=S(f=>f.requestFullscreen),a=S(f=>f.setIsFullscreen),c=S(f=>f.setIsFullscreenReady),l=S(f=>f.techRef),d=y.useCallback(f=>{f.stopPropagation(),a(oo())},[a]),u=()=>{t?r():n()};return y.useEffect(()=>{const f=rr?l.current:e.current;if(f)return so(f,d)},[e,d,l]),y.useEffect(()=>{c(!0)},[c]),i.jsx(Ae,{onClick:u,children:t?i.jsx(Oo,{}):i.jsx(Io,{})})}const Do=5*1e3;function Pr({children:e}){const r=y.useRef(null),[t,n]=y.useState(!1),a=y.useRef(null),l=S(f=>f.idleLocks).size,d=y.useCallback(()=>{a.current!==null&&(window.clearTimeout(a.current),a.current=null)},[]),u=y.useCallback(()=>{d(),a.current=window.setTimeout(()=>n(!0),Do)},[d]);return y.useEffect(()=>(n(!1),u(),()=>{d()}),[d,u]),y.useEffect(()=>{const f=r.current;if(!f)return;const v=I=>{t&&(I.stopPropagation(),n(!1),u())},b=()=>{t&&n(!1),u()};return f.addEventListener("click",v),f.addEventListener("mousemove",b),()=>{f.removeEventListener("click",v),f.removeEventListener("mousemove",b)}},[r,t,n,u]),i.jsx(Mo,{ref:r,$isIdle:t&&!l,children:e})}const Mo=z.div`
339
+ `;function $s(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z"})})}function Hs(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"})})}function mr(){const e=m(d=>d.containerRef),t=m(d=>d.exitFullscreen),n=m(d=>d.isFullscreen),r=m(d=>d.requestFullscreen),s=m(d=>d.setIsFullscreen),c=m(d=>d.setIsFullscreenReady),l=m(d=>d.techRef),u=p.useCallback(d=>{d.stopPropagation(),s(fs())},[s]),i=()=>{n?t():r()};return p.useEffect(()=>{const d=Wn?l.current:e.current;if(d)return ms(d,u)},[e,u,l]),p.useEffect(()=>{c(!0)},[c]),a.jsx(he,{onClick:i,children:n?a.jsx(Hs,{}):a.jsx($s,{})})}const zs=5*1e3;function gr({children:e}){const t=p.useRef(null),[n,r]=p.useState(!1),s=p.useRef(null),l=m(d=>d.idleLocks).size,u=p.useCallback(()=>{s.current!==null&&(window.clearTimeout(s.current),s.current=null)},[]),i=p.useCallback(()=>{u(),s.current=window.setTimeout(()=>r(!0),zs)},[u]);return p.useEffect(()=>(r(!1),i(),()=>{u()}),[u,i]),p.useEffect(()=>{const d=t.current;if(!d)return;const h=b=>{n&&(b.stopPropagation(),r(!1),i())},y=()=>{n&&r(!1),i()};return d.addEventListener("click",h),d.addEventListener("mousemove",y),()=>{d.removeEventListener("click",h),d.removeEventListener("mousemove",y)}},[t,n,r,i]),a.jsx(Bs,{ref:t,$isIdle:n&&!l,children:e})}const Bs=_.div`
354
340
  position: absolute;
355
341
  top: 0;
356
342
  left: 0;
@@ -359,21 +345,21 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
359
345
  transition: opacity 0.2s ease-in-out;
360
346
  cursor: ${({$isIdle:e})=>e?"none":"auto"};
361
347
  opacity: ${({$isIdle:e})=>e?0:1};
362
- `;function Fo(e){return i.jsx(Vo,{...e})}const No=qn`
348
+ `;function Us(e){return a.jsx(qs,{...e})}const Ws=ts`
363
349
  from {
364
350
  transform: rotate(0deg);
365
351
  }
366
352
  to {
367
353
  transform: rotate(360deg);
368
354
  }
369
- `,Vo=z.div`
355
+ `,qs=_.div`
370
356
  width: 1.5rem;
371
357
  height: 1.5rem;
372
358
  border: 2px solid white;
373
359
  border-bottom-color: transparent;
374
360
  border-radius: 50%;
375
- animation: ${No} 1s linear infinite;
376
- `;function $o(e,r=500){const[t,n]=y.useState(e);return y.useEffect(()=>{const a=window.setTimeout(()=>n(e),r);return()=>{window.clearTimeout(a)}},[e,r]),t}function kr({style:e,...r}){const t=S(a=>a.isLoading);return $o(t,100)?i.jsx(Ho,{style:e,...r,children:i.jsx(Fo,{})}):null}const Ho=z.div`
361
+ animation: ${Ws} 1s linear infinite;
362
+ `;function Ys(e,t=500){const[n,r]=p.useState(e);return p.useEffect(()=>{const s=window.setTimeout(()=>r(e),t);return()=>{window.clearTimeout(s)}},[e,t]),n}function yr({style:e,...t}){const n=m(s=>s.isLoading);return Ys(n,100)?a.jsx(Zs,{style:e,...t,children:a.jsx(Us,{})}):null}const Zs=_.div`
377
363
  pointer-events: none;
378
364
  position: absolute;
379
365
  top: 0;
@@ -385,7 +371,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
385
371
  height: 100%;
386
372
  align-items: center;
387
373
  justify-content: center;
388
- `;function zo(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"})})}function Yo(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z"})})}const Bo=Be.Root,Uo=Be.Trigger,Wo=Be.Portal,_r=y.forwardRef(({sideOffset:e=4,...r},t)=>i.jsx(qo,{ref:t,sideOffset:e,onCloseAutoFocus:n=>{n.preventDefault()},...r}));_r.displayName="PlayerDropdownMenuContent";const jr=y.forwardRef((e,r)=>i.jsx(Zo,{ref:r,...e}));jr.displayName="PlayerDropdownMenuItem";const qo=z(Be.Content).withConfig({shouldForwardProp:e=>e!=="ref"})`
374
+ `;function Gs(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"})})}function Xs(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z"})})}const Js=Be.Root,Ks=Be.Trigger,Qs=Be.Portal,vr=p.forwardRef(({sideOffset:e=4,...t},n)=>a.jsx(ei,{ref:n,sideOffset:e,onCloseAutoFocus:r=>{r.preventDefault()},...t}));vr.displayName="PlayerDropdownMenuContent";const wr=p.forwardRef((e,t)=>a.jsx(ti,{ref:t,...e}));wr.displayName="PlayerDropdownMenuItem";const ei=_(Be.Content).withConfig({shouldForwardProp:e=>e!=="ref"})`
389
375
  padding: 0.25rem;
390
376
  min-width: 8rem;
391
377
  max-height: 8rem;
@@ -460,7 +446,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
460
446
  transform: translateX(0);
461
447
  }
462
448
  }
463
- `,Zo=z(Be.Item)`
449
+ `,ti=_(Be.Item)`
464
450
  position: relative;
465
451
  display: flex;
466
452
  align-items: center;
@@ -497,11 +483,11 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
497
483
  color: rgba(255, 255, 255, 0.5);
498
484
  pointer-events: none;
499
485
  }
500
- `,Ar="settings";function Lr(){const[e,r]=y.useState(!1),t=S(u=>u.containerRef),n=S(u=>u.addIdleLock),a=S(u=>u.removeIdleLock),c=S(u=>u.levels),l=S(u=>u.setLevel),d=y.useCallback(u=>{r(u),u?n(Ar):a(Ar)},[n,a]);return i.jsxs(Bo,{open:e,onOpenChange:d,children:[i.jsx(Uo,{asChild:!0,children:i.jsx(Ae,{children:i.jsx(Yo,{})})}),i.jsx(Wo,{container:t.current,children:i.jsx(_r,{side:"top",align:"end",children:c?.map(u=>i.jsxs(jr,{onClick:()=>l(u.value),children:[u.label,u.selected&&i.jsx(zo,{})]},u.sid))})})]})}function Go(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z"})})}function Xo(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z"})})}function Jo(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:i.jsx("path",{d:"M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z"})})}const Ir="volume";function Or(){S(d=>d.containerRef);const e=S(d=>d.setVolume),r=S(d=>d.volume),t=S(d=>d.addIdleLock),n=S(d=>d.removeIdleLock),a=d=>{e(d[0]),t(Ir)},c=()=>{n(Ir)},l=()=>e(r?0:100);return i.jsxs(Ko,{children:[i.jsx(Ae,{onClick:l,className:"shrink-0",children:r?r>50?i.jsx(Go,{}):i.jsx(Xo,{}):i.jsx(Jo,{})}),i.jsx(Dr,{children:i.jsx(st,{value:[r],onValueChange:a,onValueCommit:c})})]})}const Dr=z.div`
486
+ `,br="settings";function xr(){const[e,t]=p.useState(!1),n=m(i=>i.containerRef),r=m(i=>i.addIdleLock),s=m(i=>i.removeIdleLock),c=m(i=>i.levels),l=m(i=>i.setLevel),u=p.useCallback(i=>{t(i),i?r(br):s(br)},[r,s]);return a.jsxs(Js,{open:e,onOpenChange:u,children:[a.jsx(Ks,{asChild:!0,children:a.jsx(he,{children:a.jsx(Xs,{})})}),a.jsx(Qs,{container:n.current,children:a.jsx(vr,{side:"top",align:"end",children:c?.map(i=>a.jsxs(wr,{onClick:()=>l(i.value),children:[i.label,i.selected&&a.jsx(Gs,{})]},i.sid))})})]})}function ni(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z"})})}function ri(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z"})})}function oi(){return a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z"})})}const Sr="volume";function Cr(){m(u=>u.containerRef);const e=m(u=>u.setVolume),t=m(u=>u.volume),n=m(u=>u.addIdleLock),r=m(u=>u.removeIdleLock),s=u=>{e(u[0]),n(Sr)},c=()=>{r(Sr)},l=()=>e(t?0:100);return a.jsxs(si,{children:[a.jsx(he,{onClick:l,className:"shrink-0",children:t?t>50?a.jsx(ni,{}):a.jsx(ri,{}):a.jsx(oi,{})}),a.jsx(kr,{children:a.jsx(bt,{value:[t],onValueChange:s,onValueCommit:c})})]})}const kr=_.div`
501
487
  width: 0;
502
488
  opacity: 0;
503
489
  transition: all 0.2s ease-in-out;
504
- `,Ko=z.div`
490
+ `,si=_.div`
505
491
  display: flex;
506
492
  align-items: center;
507
493
  gap: 0.25rem;
@@ -512,11 +498,11 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
512
498
  &:hover {
513
499
  width: 6rem;
514
500
 
515
- ${Dr} {
501
+ ${kr} {
516
502
  width: 100%;
517
503
  opacity: 1;
518
504
  }
519
505
  }
520
506
  }
521
- `;function Qo({url:e,startDate:r,endDate:t,messages:n}){return i.jsx(Ro,{startDate:new Date(r),endDate:new Date(t),children:i.jsx(ea,{url:e,messages:n})})}function ea({url:e,messages:r}){const t=S(n=>n.containerRef);return i.jsx(wr,{ref:t,children:i.jsxs(Zn,{eventFinishedMessage:r?.eventFinished,eventNotStartedMessage:r?.eventNotStarted,eventStartingSoonMessage:r?.eventStartingSoon,children:[i.jsx(Lo,{url:e}),i.jsx(kr,{}),i.jsxs(Pr,{children:[i.jsx(yo,{}),i.jsx(br,{children:i.jsxs(Sr,{children:[i.jsx(To,{}),i.jsxs(xr,{children:[i.jsxs(Er,{children:[i.jsx(vo,{}),i.jsx(_o,{}),i.jsx(Or,{}),i.jsx(Po,{})]}),i.jsxs(Tr,{children:[i.jsx(eo,{message:r?.live}),i.jsx(Lr,{}),i.jsx(Rr,{})]})]})]})})]})]})})}function ta(){const e=S(a=>a.isPlaying),r=S(a=>a.pause),t=S(a=>a.play),n=()=>{e?r():t()};return i.jsx(Ae,{onClick:n,children:e?i.jsx(er,{}):i.jsx(tr,{})})}function ra(){const e=S(a=>a.isPlaying),r=S(a=>a.pause),t=S(a=>a.play),n=()=>{e?r():t()};return i.jsx(or,{onClick:n})}const Mr="vod-player-progress-bar";function na(){const e=y.useRef(null),r=y.useRef(null),[t,n]=y.useState(!1),[a,c]=y.useState(-1),[l,d]=y.useState(-1),u=S(g=>g.currentTime),f=S(g=>g.duration),v=S(g=>g.seek),b=S(g=>g.addIdleLock),I=S(g=>g.removeIdleLock),k=parseFloat((f?(l!==-1?l:u)/f*100:0).toFixed(1)),T=g=>{d(f*(g[0]/100)),b(Mr)},_=()=>{l!==-1&&(v(l),d(-1),I(Mr))},j=()=>n(!0),L=()=>n(!1),x=y.useCallback(g=>{const A=e.current,p=r.current;if(A&&p){const W=ct(A),fe=ct(p),re=(g.pageX||g.clientX)-W.left,le=re/W.width;if(le<0)return;let F=re-fe.width/2;F<0&&(F=0),F>W.width-fe.width&&(F=-1),p.style.left=F>-1?`${F}px`:"auto",p.style.right=F>-1?"auto":"0px",c(le*f)}j()},[f]);return i.jsxs(ar,{children:[i.jsx(st,{ref:e,value:[k],onPointerLeave:L,onPointerDown:L,onPointerMove:x,onValueChange:T,onValueCommit:_,step:.1}),i.jsx(ir,{ref:r,$isVisible:t,children:i.jsx(sr,{children:Ne(a)})})]})}function oa(){const e=S(t=>t.currentTime),r=S(t=>t.duration);return i.jsxs(pr,{children:[i.jsx(mr,{children:Ne(e)}),i.jsx(gr,{}),i.jsx(vr,{children:Ne(r)})]})}const aa=60,ia=95;function sa({storageKey:e}){const r=S(v=>v.currentTime),t=S(v=>v.duration),n=S(v=>v.isPlaying),a=S(v=>v.setStartTime),c=y.useRef(!1),l=y.useCallback(()=>{window.localStorage.setItem(e,JSON.stringify({currentTime:r,duration:t}))},[r,t,e]),d=y.useCallback(()=>{const v=window.localStorage.getItem(e);if(v){const b=JSON.parse(v);return{startTime:b.currentTime,progress:b.currentTime/b.duration*100}}return{startTime:null,progress:null}},[e]),u=y.useCallback(()=>{r<aa||l()},[r,l]),f=y.useCallback(()=>{if(c.current)return;const{progress:v,startTime:b}=d();b&&v&&v<ia&&(a(b),c.current=!0)},[d,a]);return Ke(()=>u(),n?1e3:null),y.useEffect(()=>{f()},[f]),null}function ca({url:e,watchHistory:r}){return i.jsxs(fr,{children:[i.jsx(la,{url:e}),r?.enabled&&i.jsx(sa,{storageKey:r.storageKey})]})}function la({url:e}){const r=S(t=>t.containerRef);return i.jsxs(wr,{ref:r,children:[i.jsx(yr,{url:e,isLive:!1}),i.jsx(kr,{}),i.jsxs(Pr,{children:[i.jsx(ra,{}),i.jsx(br,{children:i.jsxs(Sr,{children:[i.jsx(na,{}),i.jsxs(xr,{children:[i.jsxs(Er,{children:[i.jsx(ta,{}),i.jsx(Or,{}),i.jsx(oa,{})]}),i.jsxs(Tr,{children:[i.jsx(Lr,{}),i.jsx(Rr,{})]})]})]})})]})]})}Se.LivePlayer=Qo,Se.VodPlayer=ca,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})}));
507
+ `;function ii({url:e,startDate:t,endDate:n,messages:r}){return a.jsx(Ds,{startDate:new Date(t),endDate:new Date(n),children:a.jsx(ai,{url:e,messages:r})})}function ai({url:e,messages:t}){const n=m(r=>r.containerRef);return a.jsx(cr,{ref:n,children:a.jsxs(ns,{eventFinishedMessage:t?.eventFinished,eventNotStartedMessage:t?.eventNotStarted,eventStartingSoonMessage:t?.eventStartingSoon,children:[a.jsx(Ns,{url:e}),a.jsx(yr,{}),a.jsxs(gr,{children:[a.jsx(Es,{}),a.jsx(lr,{children:a.jsxs(ur,{children:[a.jsx(Is,{}),a.jsxs(dr,{children:[a.jsxs(pr,{children:[a.jsx(Cs,{}),a.jsx(Ms,{}),a.jsx(Cr,{}),a.jsx(Os,{})]}),a.jsxs(hr,{children:[a.jsx(cs,{message:t?.live}),a.jsx(xr,{}),a.jsx(mr,{})]})]})]})})]})]})})}function ci(){const e=m(s=>s.isPlaying),t=m(s=>s.pause),n=m(s=>s.play),r=()=>{e?t():n()};return a.jsx(he,{onClick:r,children:e?a.jsx(Bn,{}):a.jsx(Un,{})})}function li(){const e=m(s=>s.isPlaying),t=m(s=>s.pause),n=m(s=>s.play),r=()=>{e?t():n()};return a.jsx(Yn,{onClick:r})}const Er="vod-player-progress-bar";function ui(){const e=p.useRef(null),t=p.useRef(null),[n,r]=p.useState(!1),[s,c]=p.useState(-1),[l,u]=p.useState(-1),i=m(g=>g.currentTime),d=m(g=>g.duration),h=m(g=>g.seek),y=m(g=>g.addIdleLock),b=m(g=>g.removeIdleLock),w=parseFloat((d?(l!==-1?l:i)/d*100:0).toFixed(1)),P=g=>{u(d*(g[0]/100)),y(Er)},T=()=>{l!==-1&&(h(l),u(-1),b(Er))},N=()=>r(!0),R=()=>r(!1),x=p.useCallback(g=>{const I=e.current,O=t.current;if(I&&O){const k=xt(I),S=xt(O),W=(g.pageX||g.clientX)-k.left,X=W/k.width;if(X<0)return;let D=W-S.width/2;D<0&&(D=0),D>k.width-S.width&&(D=-1),O.style.left=D>-1?`${D}px`:"auto",O.style.right=D>-1?"auto":"0px",c(X*d)}N()},[d]);return a.jsxs(Zn,{children:[a.jsx(bt,{ref:e,value:[w],onPointerLeave:R,onPointerDown:R,onPointerMove:x,onValueChange:P,onValueCommit:T,step:.1}),a.jsx(Gn,{ref:t,$isVisible:n,children:a.jsx(Xn,{children:Me(s)})})]})}function di(){const e=m(n=>n.currentTime),t=m(n=>n.duration);return a.jsxs(nr,{children:[a.jsx(or,{children:Me(e)}),a.jsx(ir,{}),a.jsx(sr,{children:Me(t)})]})}const fi=60,pi=95;function hi({storageKey:e}){const t=m(h=>h.currentTime),n=m(h=>h.duration),r=m(h=>h.isPlaying),s=m(h=>h.setStartTime),c=p.useRef(!1),l=p.useCallback(()=>{window.localStorage.setItem(e,JSON.stringify({currentTime:t,duration:n}))},[t,n,e]),u=p.useCallback(()=>{const h=window.localStorage.getItem(e);if(h){const y=JSON.parse(h);return{startTime:y.currentTime,progress:y.currentTime/y.duration*100}}return{startTime:null,progress:null}},[e]),i=p.useCallback(()=>{t<fi||l()},[t,l]),d=p.useCallback(()=>{if(c.current)return;const{progress:h,startTime:y}=u();y&&h&&h<pi&&(s(y),c.current=!0)},[u,s]);return et(()=>i(),r?1e3:null),p.useEffect(()=>{d()},[d]),null}function mi({url:e,watchHistory:t}){return a.jsxs(tr,{children:[a.jsx(gi,{url:e}),t?.enabled&&a.jsx(hi,{storageKey:t.storageKey})]})}function gi({url:e}){const t=m(n=>n.containerRef);return a.jsxs(cr,{ref:t,children:[a.jsx(ar,{url:e,isLive:!1}),a.jsx(yr,{}),a.jsxs(gr,{children:[a.jsx(li,{}),a.jsx(lr,{children:a.jsxs(ur,{children:[a.jsx(ui,{}),a.jsxs(dr,{children:[a.jsxs(pr,{children:[a.jsx(ci,{}),a.jsx(Cr,{}),a.jsx(di,{})]}),a.jsxs(hr,{children:[a.jsx(xr,{}),a.jsx(mr,{})]})]})]})})]})]})}Q.LivePlayer=ii,Q.VodPlayer=mi,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
522
508
  //# sourceMappingURL=react-video-player.umd.js.map