@halibegic/react-video-player 0.0.2 → 0.0.3

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.
Files changed (59) hide show
  1. package/README.md +43 -2
  2. package/dist/components/live-player.d.ts +9 -1
  3. package/dist/components/player/live-player/live-player-event-check.d.ts +8 -0
  4. package/dist/components/player/live-player/live-player-go-live.d.ts +6 -0
  5. package/dist/components/player/live-player/live-player-playback-indicator.d.ts +2 -0
  6. package/dist/components/player/live-player/live-player-playback.d.ts +1 -1
  7. package/dist/components/player/live-player/live-player-progress.d.ts +2 -0
  8. package/dist/components/player/live-player/live-player-provider.d.ts +7 -0
  9. package/dist/components/player/live-player/live-player-remaining-time.d.ts +2 -0
  10. package/dist/components/player/live-player/live-player-tech.d.ts +5 -0
  11. package/dist/components/player/player-hls-engine.d.ts +6 -0
  12. package/dist/components/player/player-tech.d.ts +1 -1
  13. package/dist/components/player/ui/icons/arrow-right-icon.d.ts +2 -0
  14. package/dist/components/player/ui/icons/fullscreen-enter-icon.d.ts +2 -0
  15. package/dist/components/player/ui/icons/fullscreen-exit-icon.d.ts +2 -0
  16. package/dist/components/player/ui/icons/pause-icon.d.ts +2 -0
  17. package/dist/components/player/ui/icons/play-icon.d.ts +2 -0
  18. package/dist/components/player/ui/icons/volume-max-icon.d.ts +2 -0
  19. package/dist/components/player/ui/icons/volume-min-icon.d.ts +2 -0
  20. package/dist/components/player/ui/icons/volume-mute-icon.d.ts +2 -0
  21. package/dist/components/player/ui/player-button.d.ts +5 -2
  22. package/dist/components/player/ui/player-controls.styles.d.ts +8 -0
  23. package/dist/components/player/ui/player-fullscreen.d.ts +1 -1
  24. package/dist/components/player/ui/player-idle-check.d.ts +3 -0
  25. package/dist/components/player/ui/player-playback-indicator.d.ts +4 -0
  26. package/dist/components/player/ui/player-progress.styles.d.ts +6 -0
  27. package/dist/components/player/ui/player-remaining-time.styles.d.ts +6 -0
  28. package/dist/components/player/ui/player-slider.d.ts +3 -5
  29. package/dist/components/player/ui/player-spinner.d.ts +3 -0
  30. package/dist/components/player/ui/player-volume.d.ts +2 -0
  31. package/dist/components/vod-player/vod-player-playback-indicator.d.ts +2 -0
  32. package/dist/components/vod-player/vod-player-remaining-time.d.ts +2 -0
  33. package/dist/components/vod-player/vod-player-watch-history.d.ts +5 -0
  34. package/dist/components/vod-player.d.ts +5 -1
  35. package/dist/config/player.d.ts +3 -5
  36. package/dist/hooks/use-interval.d.ts +2 -0
  37. package/dist/hooks/use-isomorphic-layout-effect.d.ts +3 -0
  38. package/dist/hooks/use-state-refresh.d.ts +2 -0
  39. package/dist/index-DkJtizQx.js +3265 -0
  40. package/dist/index-DkJtizQx.js.map +1 -0
  41. package/dist/react-video-player.es.js +1 -1
  42. package/dist/react-video-player.umd.js +227 -105
  43. package/dist/react-video-player.umd.js.map +1 -1
  44. package/dist/stores/live-player-store.d.ts +21 -0
  45. package/dist/stores/player-store.d.ts +1 -1
  46. package/dist/utils/dom.d.ts +11 -0
  47. package/dist/utils/player.d.ts +4 -3
  48. package/dist/vod-player-watch-history-D3ZHK2x3.js +37 -0
  49. package/dist/vod-player-watch-history-D3ZHK2x3.js.map +1 -0
  50. package/package.json +3 -8
  51. package/dist/components/player/tech/player-dash-tech.d.ts +0 -6
  52. package/dist/components/player/tech/player-hls-tech.d.ts +0 -6
  53. package/dist/index-DXKCbM7O.js +0 -2003
  54. package/dist/index-DXKCbM7O.js.map +0 -1
  55. package/dist/player-dash-tech-D7KQCWFx.js +0 -50
  56. package/dist/player-dash-tech-D7KQCWFx.js.map +0 -1
  57. package/dist/player-hls-tech-sXKjWi4D.js +0 -29
  58. package/dist/player-hls-tech-sXKjWi4D.js.map +0 -1
  59. /package/dist/{components/hooks → hooks}/use-debounce.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- (function(U,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("lucide-react"),require("hls.js"),require("dashjs")):typeof define=="function"&&define.amd?define(["exports","react","lucide-react","hls.js","dashjs"],p):(U=typeof globalThis<"u"?globalThis:U||self,p(U.ReactVideoPlayer={},U.React,U["lucide-react"],U.Hls,U.dashjs))})(this,(function(U,p,ae,ve,xn){"use strict";function kn(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 Pn=kn(xn);var Re={exports:{}},be={};/**
1
+ (function(oe,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("react-dom"),require("hls.js")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","hls.js"],m):(oe=typeof globalThis<"u"?globalThis:oe||self,m(oe.ReactVideoPlayer={},oe.React,oe.ReactDOM,oe.Hls))})(this,(function(oe,m,Li,Ie){"use strict";function Tr(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 w=Tr(m);var Ve={exports:{}},Ae={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.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 bt;function Rn(){if(bt)return be;bt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return be.Fragment=t,be.jsx=n,be.jsxs=n,be}var Se={};/**
9
+ */var Ot;function jr(){if(Ot)return Ae;Ot=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return Ae.Fragment=t,Ae.jsx=n,Ae.jsxs=n,Ae}var Le={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
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 St;function Tn(){return St||(St=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===vt?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case R:return"Fragment";case O:return"Profiler";case F:return"StrictMode";case f:return"Suspense";case E:return"SuspenseList";case K:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case j:return"Portal";case P:return(i.displayName||"Context")+".Provider";case A:return(i._context.displayName||"Context")+".Consumer";case T:var h=i.render;return i=i.displayName,i||(i=h.displayName||h.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case y:return h=i.displayName||null,h!==null?h:e(i.type)||"Memo";case W:h=i._payload,i=i._init;try{return e(i(h))}catch{}}return null}function t(i){return""+i}function n(i){try{t(i);var h=!1}catch{h=!0}if(h){h=console;var w=h.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return w.call(h,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(i)}}function r(i){if(i===R)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===W)return"<...>";try{var h=e(i);return h?"<"+h+">":"<...>"}catch{return"<...>"}}function o(){var i=xe.A;return i===null?null:i.getOwner()}function s(){return Error("react-stack-top-frame")}function a(i){if(We.call(i,"key")){var h=Object.getOwnPropertyDescriptor(i,"key").get;if(h&&h.isReactWarning)return!1}return i.key!==void 0}function c(i,h){function w(){Ge||(Ge=!0,console.error("%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://react.dev/link/special-props)",h))}w.isReactWarning=!0,Object.defineProperty(i,"key",{get:w,configurable:!0})}function u(){var i=e(this.type);return Xe[i]||(Xe[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function l(i,h,w,D,Y,$,X,Z){return w=$.ref,i={$$typeof:S,type:i,key:h,props:$,_owner:Y},(w!==void 0?w:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:u}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function g(i,h,w,D,Y,$,X,Z){var N=h.children;if(N!==void 0)if(D)if(He(N)){for(D=0;D<N.length;D++)m(N[D]);Object.freeze&&Object.freeze(N)}else console.error("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 m(N);if(We.call(h,"key")){N=e(i);var z=Object.keys(h).filter(function(ye){return ye!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",q[N+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Nt;function Rr(){return Nt||(Nt=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===I?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case S:return"Fragment";case x:return"Profiler";case E:return"StrictMode";case _:return"Suspense";case k:return"SuspenseList";case U:return"Activity"}if(typeof p=="object")switch(typeof p.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),p.$$typeof){case C:return"Portal";case h:return(p.displayName||"Context")+".Provider";case T:return(p._context.displayName||"Context")+".Consumer";case b:var j=p.render;return p=p.displayName,p||(p=j.displayName||j.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case P:return j=p.displayName||null,j!==null?j:e(p.type)||"Memo";case H:j=p._payload,p=p._init;try{return e(p(j))}catch{}}return null}function t(p){return""+p}function n(p){try{t(p);var j=!1}catch{j=!0}if(j){j=console;var A=j.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&p[Symbol.toStringTag]||p.constructor.name||"Object";return A.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),t(p)}}function r(p){if(p===S)return"<>";if(typeof p=="object"&&p!==null&&p.$$typeof===H)return"<...>";try{var j=e(p);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function o(){var p=O.A;return p===null?null:p.getOwner()}function s(){return Error("react-stack-top-frame")}function i(p){if(B.call(p,"key")){var j=Object.getOwnPropertyDescriptor(p,"key").get;if(j&&j.isReactWarning)return!1}return p.key!==void 0}function a(p,j){function A(){re||(re=!0,console.error("%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://react.dev/link/special-props)",j))}A.isReactWarning=!0,Object.defineProperty(p,"key",{get:A,configurable:!0})}function l(){var p=e(this.type);return Z[p]||(Z[p]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),p=this.props.ref,p!==void 0?p:null}function u(p,j,A,$,ee,Y,ae,ue){return A=Y.ref,p={$$typeof:y,type:p,key:j,props:Y,_owner:ee},(A!==void 0?A:null)!==null?Object.defineProperty(p,"ref",{enumerable:!1,get:l}):Object.defineProperty(p,"ref",{enumerable:!1,value:null}),p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(p,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(p,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(p,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p}function f(p,j,A,$,ee,Y,ae,ue){var N=j.children;if(N!==void 0)if($)if(Q(N)){for($=0;$<N.length;$++)d(N[$]);Object.freeze&&Object.freeze(N)}else console.error("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 d(N);if(B.call(j,"key")){N=e(p);var K=Object.keys(j).filter(function(_e){return _e!=="key"});$=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",W[N+$]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,D,N,z,N),q[N+D]=!0)}if(N=null,w!==void 0&&(n(w),N=""+w),a(h)&&(n(h.key),N=""+h.key),"key"in h){w={};for(var ie in h)ie!=="key"&&(w[ie]=h[ie])}else w=h;return N&&c(w,typeof i=="function"?i.displayName||i.name||"Unknown":i),l(i,N,$,Y,o(),w,X,Z)}function m(i){typeof i=="object"&&i!==null&&i.$$typeof===S&&i._store&&(i._store.validated=1)}var b=p,S=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),vt=Symbol.for("react.client.reference"),xe=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,We=Object.prototype.hasOwnProperty,He=Array.isArray,ke=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(i){return i()}};var Ge,Xe={},ge=b.react_stack_bottom_frame.bind(b,s)(),Pe=ke(r(s)),q={};Se.Fragment=R,Se.jsx=function(i,h,w,D,Y){var $=1e4>xe.recentlyCreatedOwnerStacks++;return g(i,h,w,!1,D,Y,$?Error("react-stack-top-frame"):ge,$?ke(r(i)):Pe)},Se.jsxs=function(i,h,w,D,Y){var $=1e4>xe.recentlyCreatedOwnerStacks++;return g(i,h,w,!0,D,Y,$?Error("react-stack-top-frame"):ge,$?ke(r(i)):Pe)}})()),Se}var wt;function Cn(){return wt||(wt=1,process.env.NODE_ENV==="production"?Re.exports=Rn():Re.exports=Tn()),Re.exports}var d=Cn(),M=function(){return M=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},M.apply(this,arguments)};function ee(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function jn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _n=/^((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)-.*))$/,An=jn(function(e){return _n.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_="-ms-",we="-moz-",k="-webkit-",Et="comm",Te="rule",Je="decl",On="@import",xt="@keyframes",Nn="@layer",kt=Math.abs,Ke=String.fromCharCode,Ze=Object.assign;function In(e,t){return L(e,0)^45?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function Pt(e){return e.trim()}function G(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,n){return e.replace(t,n)}function Ce(e,t,n){return e.indexOf(t,n)}function L(e,t){return e.charCodeAt(t)|0}function ce(e,t,n){return e.slice(t,n)}function H(e){return e.length}function Rt(e){return e.length}function Ee(e,t){return t.push(e),e}function Dn(e,t){return e.map(t).join("")}function Tt(e,t){return e.filter(function(n){return!G(n,t)})}var je=1,le=1,Ct=0,V=0,I=0,ue="";function _e(e,t,n,r,o,s,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:je,column:le,length:a,return:"",siblings:c}}function J(e,t){return Ze(_e("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function de(e){for(;e.root;)e=J(e.root,{children:[e]});Ee(e,e.siblings)}function Ln(){return I}function Fn(){return I=V>0?L(ue,--V):0,le--,I===10&&(le=1,je--),I}function B(){return I=V<Ct?L(ue,V++):0,le++,I===10&&(le=1,je++),I}function te(){return L(ue,V)}function Ae(){return V}function Oe(e,t){return ce(ue,e,t)}function Qe(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 $n(e){return je=le=1,Ct=H(ue=e),V=0,[]}function Mn(e){return ue="",e}function et(e){return Pt(Oe(V-1,tt(e===91?e+2:e===40?e+1:e)))}function zn(e){for(;(I=te())&&I<33;)B();return Qe(e)>2||Qe(I)>3?"":" "}function Vn(e,t){for(;--t&&B()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return Oe(e,Ae()+(t<6&&te()==32&&B()==32))}function tt(e){for(;B();)switch(I){case e:return V;case 34:case 39:e!==34&&e!==39&&tt(I);break;case 40:e===41&&tt(e);break;case 92:B();break}return V}function qn(e,t){for(;B()&&e+I!==57;)if(e+I===84&&te()===47)break;return"/*"+Oe(t,V-1)+"*"+Ke(e===47?e:B())}function Yn(e){for(;!Qe(te());)B();return Oe(e,V)}function Un(e){return Mn(Ne("",null,null,null,[""],e=$n(e),0,[0],e))}function Ne(e,t,n,r,o,s,a,c,u){for(var l=0,g=0,m=a,b=0,S=0,j=0,R=1,F=1,O=1,A=0,P="",T=o,f=s,E=r,y=P;F;)switch(j=A,A=B()){case 40:if(j!=108&&L(y,m-1)==58){Ce(y+=v(et(A),"&","&\f"),"&\f",kt(l?c[l-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:y+=et(A);break;case 9:case 10:case 13:case 32:y+=zn(j);break;case 92:y+=Vn(Ae()-1,7);continue;case 47:switch(te()){case 42:case 47:Ee(Bn(qn(B(),Ae()),t,n,u),u);break;default:y+="/"}break;case 123*R:c[l++]=H(y)*O;case 125*R:case 59:case 0:switch(A){case 0:case 125:F=0;case 59+g:O==-1&&(y=v(y,/\f/g,"")),S>0&&H(y)-m&&Ee(S>32?_t(y+";",r,n,m-1,u):_t(v(y," ","")+";",r,n,m-2,u),u);break;case 59:y+=";";default:if(Ee(E=jt(y,t,n,l,g,o,c,P,T=[],f=[],m,s),s),A===123)if(g===0)Ne(y,t,E,E,T,s,m,c,f);else switch(b===99&&L(y,3)===110?100:b){case 100:case 108:case 109:case 115:Ne(e,E,E,r&&Ee(jt(e,E,E,0,0,o,c,P,o,T=[],m,f),f),o,f,m,c,r?T:f);break;default:Ne(y,E,E,E,[""],f,0,c,f)}}l=g=S=0,R=O=1,P=y="",m=a;break;case 58:m=1+H(y),S=j;default:if(R<1){if(A==123)--R;else if(A==125&&R++==0&&Fn()==125)continue}switch(y+=Ke(A),A*R){case 38:O=g>0?1:(y+="\f",-1);break;case 44:c[l++]=(H(y)-1)*O,O=1;break;case 64:te()===45&&(y+=et(B())),b=te(),g=m=H(P=y+=Yn(Ae())),A++;break;case 45:j===45&&H(y)==2&&(R=0)}}return s}function jt(e,t,n,r,o,s,a,c,u,l,g,m){for(var b=o-1,S=o===0?s:[""],j=Rt(S),R=0,F=0,O=0;R<r;++R)for(var A=0,P=ce(e,b+1,b=kt(F=a[R])),T=e;A<j;++A)(T=Pt(F>0?S[A]+" "+P:v(P,/&\f/g,S[A])))&&(u[O++]=T);return _e(e,t,n,o===0?Te:c,u,l,g,m)}function Bn(e,t,n,r){return _e(e,t,n,Et,Ke(Ln()),ce(e,2,-2),0,r)}function _t(e,t,n,r,o){return _e(e,t,n,Je,ce(e,0,r),ce(e,r+1,-1),r,o)}function At(e,t,n){switch(In(e,t)){case 5103:return k+"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 k+e+e;case 4789:return we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+we+e+_+e+e;case 5936:switch(L(e,t+11)){case 114:return k+e+_+v(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+_+v(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+_+v(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+_+e+e;case 6165:return k+e+_+"flex-"+e+e;case 5187:return k+e+v(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+_+"flex-$1$2")+e;case 5443:return k+e+_+"flex-item-"+v(e,/flex-|-self/g,"")+(G(e,/flex-|baseline/)?"":_+"grid-row-"+v(e,/flex-|-self/g,""))+e;case 4675:return k+e+_+"flex-line-pack"+v(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+_+v(e,"shrink","negative")+e;case 5292:return k+e+_+v(e,"basis","preferred-size")+e;case 6060:return k+"box-"+v(e,"-grow","")+k+e+_+v(e,"grow","positive")+e;case 4554:return k+v(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return v(v(v(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return v(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return v(v(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+_+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!G(e,/flex-|baseline/))return _+"grid-column-align"+ce(e,t)+e;break;case 2592:case 3360:return _+v(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,G(r.props,/grid-\w+-end/)})?~Ce(e+(n=n[t].value),"span",0)?e:_+v(e,"-start","")+e+_+"grid-row-span:"+(~Ce(n,"span",0)?G(n,/\d+/):+G(n,/\d+/)-+G(e,/\d+/))+";":_+v(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return G(r.props,/grid-\w+-start/)})?e:_+v(v(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return v(e,/(.+)-inline(.+)/,k+"$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(H(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return v(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+we+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ce(e,"stretch",0)?At(v(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return v(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,a,c,u,l){return _+o+":"+s+l+(a?_+o+"-span:"+(c?u:+u-+s)+l:"")+e});case 4949:if(L(e,t+6)===121)return v(e,":",":"+k)+e;break;case 6444:switch(L(e,L(e,14)===45?18:11)){case 120:return v(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(L(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+_+"$2box$3")+e;case 100:return v(e,":",":"+_)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(e,"scroll-","scroll-snap-")+e}return e}function Ie(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Wn(e,t,n,r){switch(e.type){case Nn:if(e.children.length)break;case On:case Je:return e.return=e.return||e.value;case Et:return"";case xt:return e.return=e.value+"{"+Ie(e.children,r)+"}";case Te:if(!H(e.value=e.props.join(",")))return""}return H(n=Ie(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hn(e){var t=Rt(e);return function(n,r,o,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,s)||"";return a}}function Gn(e){return function(t){t.root||(t=t.return)&&e(t)}}function Xn(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Je:e.return=At(e.value,e.length,n);return;case xt:return Ie([J(e,{value:v(e.value,"@","@"+k)})],r);case Te:if(e.length)return Dn(n=e.props,function(o){switch(G(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":de(J(e,{props:[v(o,/:(read-\w+)/,":"+we+"$1")]})),de(J(e,{props:[o]})),Ze(e,{props:Tt(n,r)});break;case"::placeholder":de(J(e,{props:[v(o,/:(plac\w+)/,":"+k+"input-$1")]})),de(J(e,{props:[v(o,/:(plac\w+)/,":"+we+"$1")]})),de(J(e,{props:[v(o,/:(plac\w+)/,_+"input-$1")]})),de(J(e,{props:[o]})),Ze(e,{props:Tt(n,r)});break}return""})}}var Jn={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},ne=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ot="active",Nt="data-styled-version",De="6.1.19",nt=`/*!sc*/
23
- `,Le=typeof window<"u"&&typeof document<"u",Kn=!!(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"),It=/invalid hook call/i,Fe=new Set,Zn=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.
22
+ <%s key={someKey} {...props} />`,$,N,K,N),W[N+$]=!0)}if(N=null,A!==void 0&&(n(A),N=""+A),i(j)&&(n(j.key),N=""+j.key),"key"in j){A={};for(var ve in j)ve!=="key"&&(A[ve]=j[ve])}else A=j;return N&&a(A,typeof p=="function"?p.displayName||p.name||"Unknown":p),u(p,N,Y,ee,o(),A,ae,ue)}function d(p){typeof p=="object"&&p!==null&&p.$$typeof===y&&p._store&&(p._store.validated=1)}var g=m,y=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),h=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),I=Symbol.for("react.client.reference"),O=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,Q=Array.isArray,ne=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(p){return p()}};var re,Z={},V=g.react_stack_bottom_frame.bind(g,s)(),X=ne(r(s)),W={};Le.Fragment=S,Le.jsx=function(p,j,A,$,ee){var Y=1e4>O.recentlyCreatedOwnerStacks++;return f(p,j,A,!1,$,ee,Y?Error("react-stack-top-frame"):V,Y?ne(r(p)):X)},Le.jsxs=function(p,j,A,$,ee){var Y=1e4>O.recentlyCreatedOwnerStacks++;return f(p,j,A,!0,$,ee,Y?Error("react-stack-top-frame"):V,Y?ne(r(p)):X)}})()),Le}var Vt;function _r(){return Vt||(Vt=1,process.env.NODE_ENV==="production"?Ve.exports=jr():Ve.exports=Rr()),Ve.exports}var c=_r();const Ir=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Fe(e,t){const n=m.useRef(e);Ir(()=>{n.current=e},[e]),m.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function Ar(e){const[,t]=m.useState(0);Fe(()=>t(n=>n+1),e)}const Ft=e=>{let t;const n=new Set,r=(u,f)=>{const d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const g=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(y=>y(t,g))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(r,o,a);return a},Lr=(e=>e?Ft(e):Ft),Dr=e=>e;function at(e,t=Dr){const n=m.useSyncExternalStore(e.subscribe,m.useCallback(()=>t(e.getState()),[e,t]),m.useCallback(()=>t(e.getInitialState()),[e,t]));return m.useDebugValue(n),n}const $t=e=>{const t=Lr(e),n=r=>at(t,r);return Object.assign(n,t),n},Ht=(e=>e?$t(e):$t),Mr=(e,t)=>Ht(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})})),zt=m.createContext(null),Or=({children:e,startDate:t,endDate:n})=>{const r=m.useRef(null);return r.current||(r.current=Mr(t,n)),c.jsx(zt.Provider,{value:r.current,children:e})},q=e=>{const t=m.useContext(zt);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return at(t,e)};var G=function(){return G=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},G.apply(this,arguments)};function fe(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Nr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Vr=/^((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)-.*))$/,Fr=Nr(function(e){return Vr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),M="-ms-",De="-moz-",D="-webkit-",Bt="comm",$e="rule",ct="decl",$r="@import",Ut="@keyframes",Hr="@layer",Wt=Math.abs,lt=String.fromCharCode,ut=Object.assign;function zr(e,t){return z(e,0)^45?(((t<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3):0}function Yt(e){return e.trim()}function ie(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,n){return e.replace(t,n)}function He(e,t,n){return e.indexOf(t,n)}function z(e,t){return e.charCodeAt(t)|0}function Se(e,t,n){return e.slice(t,n)}function se(e){return e.length}function qt(e){return e.length}function Me(e,t){return t.push(e),e}function Br(e,t){return e.map(t).join("")}function Gt(e,t){return e.filter(function(n){return!ie(n,t)})}var ze=1,we=1,Kt=0,J=0,F=0,be="";function Be(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:ze,column:we,length:i,return:"",siblings:a}}function ce(e,t){return ut(Be("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xe(e){for(;e.root;)e=ce(e.root,{children:[e]});Me(e,e.siblings)}function Ur(){return F}function Wr(){return F=J>0?z(be,--J):0,we--,F===10&&(we=1,ze--),F}function te(){return F=J<Kt?z(be,J++):0,we++,F===10&&(we=1,ze++),F}function pe(){return z(be,J)}function Ue(){return J}function We(e,t){return Se(be,e,t)}function dt(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 Yr(e){return ze=we=1,Kt=se(be=e),J=0,[]}function qr(e){return be="",e}function ft(e){return Yt(We(J-1,pt(e===91?e+2:e===40?e+1:e)))}function Gr(e){for(;(F=pe())&&F<33;)te();return dt(e)>2||dt(F)>3?"":" "}function Kr(e,t){for(;--t&&te()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return We(e,Ue()+(t<6&&pe()==32&&te()==32))}function pt(e){for(;te();)switch(F){case e:return J;case 34:case 39:e!==34&&e!==39&&pt(F);break;case 40:e===41&&pt(e);break;case 92:te();break}return J}function Zr(e,t){for(;te()&&e+F!==57;)if(e+F===84&&pe()===47)break;return"/*"+We(t,J-1)+"*"+lt(e===47?e:te())}function Xr(e){for(;!dt(pe());)te();return We(e,J)}function Jr(e){return qr(Ye("",null,null,null,[""],e=Yr(e),0,[0],e))}function Ye(e,t,n,r,o,s,i,a,l){for(var u=0,f=0,d=i,g=0,y=0,C=0,S=1,E=1,x=1,T=0,h="",b=o,_=s,k=r,P=h;E;)switch(C=T,T=te()){case 40:if(C!=108&&z(P,d-1)==58){He(P+=R(ft(T),"&","&\f"),"&\f",Wt(u?a[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:P+=ft(T);break;case 9:case 10:case 13:case 32:P+=Gr(C);break;case 92:P+=Kr(Ue()-1,7);continue;case 47:switch(pe()){case 42:case 47:Me(Qr(Zr(te(),Ue()),t,n,l),l);break;default:P+="/"}break;case 123*S:a[u++]=se(P)*x;case 125*S:case 59:case 0:switch(T){case 0:case 125:E=0;case 59+f:x==-1&&(P=R(P,/\f/g,"")),y>0&&se(P)-d&&Me(y>32?Xt(P+";",r,n,d-1,l):Xt(R(P," ","")+";",r,n,d-2,l),l);break;case 59:P+=";";default:if(Me(k=Zt(P,t,n,u,f,o,a,h,b=[],_=[],d,s),s),T===123)if(f===0)Ye(P,t,k,k,b,s,d,a,_);else switch(g===99&&z(P,3)===110?100:g){case 100:case 108:case 109:case 115:Ye(e,k,k,r&&Me(Zt(e,k,k,0,0,o,a,h,o,b=[],d,_),_),o,_,d,a,r?b:_);break;default:Ye(P,k,k,k,[""],_,0,a,_)}}u=f=y=0,S=x=1,h=P="",d=i;break;case 58:d=1+se(P),y=C;default:if(S<1){if(T==123)--S;else if(T==125&&S++==0&&Wr()==125)continue}switch(P+=lt(T),T*S){case 38:x=f>0?1:(P+="\f",-1);break;case 44:a[u++]=(se(P)-1)*x,x=1;break;case 64:pe()===45&&(P+=ft(te())),g=pe(),f=d=se(h=P+=Xr(Ue())),T++;break;case 45:C===45&&se(P)==2&&(S=0)}}return s}function Zt(e,t,n,r,o,s,i,a,l,u,f,d){for(var g=o-1,y=o===0?s:[""],C=qt(y),S=0,E=0,x=0;S<r;++S)for(var T=0,h=Se(e,g+1,g=Wt(E=i[S])),b=e;T<C;++T)(b=Yt(E>0?y[T]+" "+h:R(h,/&\f/g,y[T])))&&(l[x++]=b);return Be(e,t,n,o===0?$e:a,l,u,f,d)}function Qr(e,t,n,r){return Be(e,t,n,Bt,lt(Ur()),Se(e,2,-2),0,r)}function Xt(e,t,n,r,o){return Be(e,t,n,ct,Se(e,0,r),Se(e,r+1,-1),r,o)}function Jt(e,t,n){switch(zr(e,t)){case 5103:return D+"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 D+e+e;case 4789:return De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+De+e+M+e+e;case 5936:switch(z(e,t+11)){case 114:return D+e+M+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+M+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+M+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return D+e+M+e+e;case 6165:return D+e+M+"flex-"+e+e;case 5187:return D+e+R(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+M+"flex-$1$2")+e;case 5443:return D+e+M+"flex-item-"+R(e,/flex-|-self/g,"")+(ie(e,/flex-|baseline/)?"":M+"grid-row-"+R(e,/flex-|-self/g,""))+e;case 4675:return D+e+M+"flex-line-pack"+R(e,/align-content|flex-|-self/g,"")+e;case 5548:return D+e+M+R(e,"shrink","negative")+e;case 5292:return D+e+M+R(e,"basis","preferred-size")+e;case 6060:return D+"box-"+R(e,"-grow","")+D+e+M+R(e,"grow","positive")+e;case 4554:return D+R(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+M+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4200:if(!ie(e,/flex-|baseline/))return M+"grid-column-align"+Se(e,t)+e;break;case 2592:case 3360:return M+R(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ie(r.props,/grid-\w+-end/)})?~He(e+(n=n[t].value),"span",0)?e:M+R(e,"-start","")+e+M+"grid-row-span:"+(~He(n,"span",0)?ie(n,/\d+/):+ie(n,/\d+/)-+ie(e,/\d+/))+";":M+R(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ie(r.props,/grid-\w+-start/)})?e:M+R(R(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,D+"$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(se(e)-1-t>6)switch(z(e,t+1)){case 109:if(z(e,t+4)!==45)break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+De+(z(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~He(e,"stretch",0)?Jt(R(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return R(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,l,u){return M+o+":"+s+u+(i?M+o+"-span:"+(a?l:+l-+s)+u:"")+e});case 4949:if(z(e,t+6)===121)return R(e,":",":"+D)+e;break;case 6444:switch(z(e,z(e,14)===45?18:11)){case 120:return R(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+D+(z(e,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+M+"$2box$3")+e;case 100:return R(e,":",":"+M)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return R(e,"scroll-","scroll-snap-")+e}return e}function qe(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function eo(e,t,n,r){switch(e.type){case Hr:if(e.children.length)break;case $r:case ct:return e.return=e.return||e.value;case Bt:return"";case Ut:return e.return=e.value+"{"+qe(e.children,r)+"}";case $e:if(!se(e.value=e.props.join(",")))return""}return se(n=qe(e.children,r))?e.return=e.value+"{"+n+"}":""}function to(e){var t=qt(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function no(e){return function(t){t.root||(t=t.return)&&e(t)}}function ro(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ct:e.return=Jt(e.value,e.length,n);return;case Ut:return qe([ce(e,{value:R(e.value,"@","@"+D)})],r);case $e:if(e.length)return Br(n=e.props,function(o){switch(ie(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xe(ce(e,{props:[R(o,/:(read-\w+)/,":"+De+"$1")]})),xe(ce(e,{props:[o]})),ut(e,{props:Gt(n,r)});break;case"::placeholder":xe(ce(e,{props:[R(o,/:(plac\w+)/,":"+D+"input-$1")]})),xe(ce(e,{props:[R(o,/:(plac\w+)/,":"+De+"$1")]})),xe(ce(e,{props:[R(o,/:(plac\w+)/,M+"input-$1")]})),xe(ce(e,{props:[o]})),ut(e,{props:Gt(n,r)});break}return""})}}var oo={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},he=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Qt="active",en="data-styled-version",Ge="6.1.19",ht=`/*!sc*/
23
+ `,Ke=typeof window<"u"&&typeof document<"u",so=!!(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"),tn=/invalid hook call/i,Ze=new Set,io=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.
24
24
  `)+`You may see this warning because you've called styled inside another component.
25
25
  To resolve this only create new StyledComponents outside of any render method and function component.
26
26
  See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
27
- `,o=console.error;try{var s=!0;console.error=function(a){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];It.test(a)?(s=!1,Fe.delete(r)):o.apply(void 0,ee([a],c,!1))},p.useRef(),s&&!Fe.has(r)&&(console.warn(r),Fe.add(r))}catch(a){It.test(a.message)&&Fe.delete(r)}finally{console.error=o}}},$e=Object.freeze([]),fe=Object.freeze({});function Qn(e,t,n){return n===void 0&&(n=fe),e.theme!==n.theme&&e.theme||t||n.theme}var rt=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"]),er=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tr=/(^-|-$)/g;function Dt(e){return e.replace(er,"-").replace(tr,"")}var nr=/(a)(d)/gi,Me=52,Lt=function(e){return String.fromCharCode(e+(e>25?39:97))};function ot(e){var t,n="";for(t=Math.abs(e);t>Me;t=t/Me|0)n=Lt(t%Me)+n;return(Lt(t%Me)+n).replace(nr,"$1-$2")}var st,Ft=5381,re=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$t=function(e){return re(Ft,e)};function Mt(e){return ot($t(e)>>>0)}function zt(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function it(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Vt=typeof Symbol=="function"&&Symbol.for,qt=Vt?Symbol.for("react.memo"):60115,rr=Vt?Symbol.for("react.forward_ref"):60112,or={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Yt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ir=((st={})[rr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},st[qt]=Yt,st);function Ut(e){return("type"in(t=e)&&t.type.$$typeof)===qt?Yt:"$$typeof"in e?ir[e.$$typeof]:or;var t}var ar=Object.defineProperty,cr=Object.getOwnPropertyNames,Bt=Object.getOwnPropertySymbols,lr=Object.getOwnPropertyDescriptor,ur=Object.getPrototypeOf,Wt=Object.prototype;function Ht(e,t,n){if(typeof t!="string"){if(Wt){var r=ur(t);r&&r!==Wt&&Ht(e,r,n)}var o=cr(t);Bt&&(o=o.concat(Bt(t)));for(var s=Ut(e),a=Ut(t),c=0;c<o.length;++c){var u=o[c];if(!(u in sr||n&&n[u]||a&&u in a||s&&u in s)){var l=lr(t,u);try{ar(e,u,l)}catch{}}}}return e}function pe(e){return typeof e=="function"}function at(e){return typeof e=="object"&&"styledComponentId"in e}function oe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ct(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function he(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function lt(e,t,n){if(n===void 0&&(n=!1),!n&&!he(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=lt(e[r],t[r]);else if(he(t))for(var r in t)e[r]=lt(e[r],t[r]);return e}function ut(e,t){Object.defineProperty(e,"toString",{value:t})}var dr=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
27
+ `,o=console.error;try{var s=!0;console.error=function(i){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];tn.test(i)?(s=!1,Ze.delete(r)):o.apply(void 0,fe([i],a,!1))},m.useRef(),s&&!Ze.has(r)&&(console.warn(r),Ze.add(r))}catch(i){tn.test(i.message)&&Ze.delete(r)}finally{console.error=o}}},Xe=Object.freeze([]),Ce=Object.freeze({});function ao(e,t,n){return n===void 0&&(n=Ce),e.theme!==n.theme&&e.theme||t||n.theme}var mt=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"]),co=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,lo=/(^-|-$)/g;function nn(e){return e.replace(co,"-").replace(lo,"")}var uo=/(a)(d)/gi,Je=52,rn=function(e){return String.fromCharCode(e+(e>25?39:97))};function gt(e){var t,n="";for(t=Math.abs(e);t>Je;t=t/Je|0)n=rn(t%Je)+n;return(rn(t%Je)+n).replace(uo,"$1-$2")}var yt,on=5381,me=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},sn=function(e){return me(on,e)};function an(e){return gt(sn(e)>>>0)}function cn(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function vt(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var ln=typeof Symbol=="function"&&Symbol.for,un=ln?Symbol.for("react.memo"):60115,fo=ln?Symbol.for("react.forward_ref"):60112,po={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ho={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},dn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mo=((yt={})[fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yt[un]=dn,yt);function fn(e){return("type"in(t=e)&&t.type.$$typeof)===un?dn:"$$typeof"in e?mo[e.$$typeof]:po;var t}var go=Object.defineProperty,yo=Object.getOwnPropertyNames,pn=Object.getOwnPropertySymbols,vo=Object.getOwnPropertyDescriptor,So=Object.getPrototypeOf,hn=Object.prototype;function mn(e,t,n){if(typeof t!="string"){if(hn){var r=So(t);r&&r!==hn&&mn(e,r,n)}var o=yo(t);pn&&(o=o.concat(pn(t)));for(var s=fn(e),i=fn(t),a=0;a<o.length;++a){var l=o[a];if(!(l in ho||n&&n[l]||i&&l in i||s&&l in s)){var u=vo(t,l);try{go(e,l,u)}catch{}}}}return e}function Ee(e){return typeof e=="function"}function St(e){return typeof e=="object"&&"styledComponentId"in e}function ge(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function wt(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Pe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function bt(e,t,n){if(n===void 0&&(n=!1),!n&&!Pe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=bt(e[r],t[r]);else if(Pe(t))for(var r in t)e[r]=bt(e[r],t[r]);return e}function xt(e,t){Object.defineProperty(e,"toString",{value:t})}var wo=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
28
28
 
29
29
  `,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.
30
30
 
@@ -65,7 +65,7 @@ as for instance in your render method then you may be running into this limitati
65
65
 
66
66
  `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
67
67
  Has styled-components' style tag been unmounted or altered by another script?
68
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function fr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function me(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(fr.apply(void 0,ee([dr[e]],t,!1)).trim())}var pr=(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,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw me(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),u=(a=0,n.length);a<u;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)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],o=this.indexOfGroup(t),s=o+r,a=o;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(nt);return n},e})(),hr=1<<30,ze=new Map,Ve=new Map,qe=1,Ye=function(e){if(ze.has(e))return ze.get(e);for(;Ve.has(qe);)qe++;var t=qe++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>hr))throw me(16,"".concat(t));return ze.set(e,t),Ve.set(t,e),t},mr=function(e,t){qe=t+1,ze.set(e,t),Ve.set(t,e)},gr="style[".concat(ne,"][").concat(Nt,'="').concat(De,'"]'),yr=new RegExp("^".concat(ne,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),vr=function(e,t,n){for(var r,o=n.split(","),s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},br=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(nt),o=[],s=0,a=r.length;s<a;s++){var c=r[s].trim();if(c){var u=c.match(yr);if(u){var l=0|parseInt(u[1],10),g=u[2];l!==0&&(mr(g,l),vr(e,g,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},Gt=function(e){for(var t=document.querySelectorAll(gr),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ne)!==Ot&&(br(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Sr(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Xt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(c){var u=Array.from(c.querySelectorAll("style[".concat(ne,"]")));return u[u.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(ne,Ot),r.setAttribute(Nt,De);var a=Sr();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},wr=(function(){function e(t){this.element=Xt(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var a=r[o];if(a.ownerNode===n)return a}throw me(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})(),Er=(function(){function e(t){this.element=Xt(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})(),xr=(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})(),Jt=Le,kr={isServer:!Le,useCSSOMInjection:!Kn},Kt=(function(){function e(t,n,r){t===void 0&&(t=fe),n===void 0&&(n={});var o=this;this.options=M(M({},kr),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Le&&Jt&&(Jt=!1,Gt(this)),ut(this,function(){return(function(s){for(var a=s.getTag(),c=a.length,u="",l=function(m){var b=(function(O){return Ve.get(O)})(m);if(b===void 0)return"continue";var S=s.names.get(b),j=a.getGroup(m);if(S===void 0||!S.size||j.length===0)return"continue";var R="".concat(ne,".g").concat(m,'[id="').concat(b,'"]'),F="";S!==void 0&&S.forEach(function(O){O.length>0&&(F+="".concat(O,","))}),u+="".concat(j).concat(R,'{content:"').concat(F,'"}').concat(nt)},g=0;g<c;g++)l(g);return u})(o)})}return e.registerId=function(t){return Ye(t)},e.prototype.rehydrate=function(){!this.server&&Le&&Gt(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(M(M({},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,o=n.target;return n.isServer?new xr(o):r?new wr(o):new Er(o)})(this.options),new pr(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(Ye(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(Ye(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ye(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Pr=/&/g,Rr=/^\s*\/\/.*$/gm;function Zt(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=Zt(n.children,t)),n})}function Tr(e){var t,n,r,o=fe,s=o.options,a=s===void 0?fe:s,c=o.plugins,u=c===void 0?$e:c,l=function(b,S,j){return j.startsWith(n)&&j.endsWith(n)&&j.replaceAll(n,"").length>0?".".concat(t):b},g=u.slice();g.push(function(b){b.type===Te&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(Pr,n).replace(r,l))}),a.prefix&&g.push(Xn),g.push(Wn);var m=function(b,S,j,R){S===void 0&&(S=""),j===void 0&&(j=""),R===void 0&&(R="&"),t=R,n=S,r=new RegExp("\\".concat(n,"\\b"),"g");var F=b.replace(Rr,""),O=Un(j||S?"".concat(j," ").concat(S," { ").concat(F," }"):F);a.namespace&&(O=Zt(O,a.namespace));var A=[];return Ie(O,Hn(g.concat(Gn(function(P){return A.push(P)})))),A};return m.hash=u.length?u.reduce(function(b,S){return S.name||me(15),re(b,S.name)},Ft).toString():"",m}var Cr=new Kt,dt=Tr(),Qt=p.createContext({shouldForwardProp:void 0,styleSheet:Cr,stylis:dt});Qt.Consumer,p.createContext(void 0);function en(){return p.useContext(Qt)}var ft=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=dt);var a=r.name+s.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ut(this,function(){throw me(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=dt),this.name+t.hash},e})(),jr=function(e){return e>="A"&&e<="Z"};function tn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;jr(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var nn=function(e){return e==null||e===!1||e===""},rn=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!nn(s)&&(Array.isArray(s)&&s.isCss||pe(s)?r.push("".concat(tn(o),":"),s,";"):he(s)?r.push.apply(r,ee(ee(["".concat(o," {")],rn(s),!1),["}"],!1)):r.push("".concat(tn(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Jn||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function se(e,t,n,r){if(nn(e))return[];if(at(e))return[".".concat(e.styledComponentId)];if(pe(e)){if(!pe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof ft||he(o)||o===null||console.error("".concat(zt(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.")),se(o,t,n,r)}var s;return e instanceof ft?n?(e.inject(n,r),[e.getName(r)]):[e]:he(e)?rn(e):Array.isArray(e)?Array.prototype.concat.apply($e,e.map(function(a){return se(a,t,n,r)})):[e.toString()]}function _r(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(pe(n)&&!at(n))return!1}return!0}var Ar=$t(De),Or=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&_r(t),this.componentId=n,this.baseHash=re(Ar,n),this.baseStyle=r,Kt.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=oe(o,this.staticRulesId);else{var s=ct(se(this.rules,t,n,r)),a=ot(re(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=oe(o,a),this.staticRulesId=a}else{for(var u=re(this.baseHash,r.hash),l="",g=0;g<this.rules.length;g++){var m=this.rules[g];if(typeof m=="string")l+=m,process.env.NODE_ENV!=="production"&&(u=re(u,m));else if(m){var b=ct(se(m,t,n,r));u=re(u,b+g),l+=b}}if(l){var S=ot(u>>>0);n.hasNameForId(this.componentId,S)||n.insertRules(this.componentId,S,r(l,".".concat(S),void 0,this.componentId)),o=oe(o,S)}}return o},e})(),on=p.createContext(void 0);on.Consumer;var pt={},sn=new Set;function Nr(e,t,n){var r=at(e),o=e,s=!it(e),a=t.attrs,c=a===void 0?$e:a,u=t.componentId,l=u===void 0?(function(T,f){var E=typeof T!="string"?"sc":Dt(T);pt[E]=(pt[E]||0)+1;var y="".concat(E,"-").concat(Mt(De+E+pt[E]));return f?"".concat(f,"-").concat(y):y})(t.displayName,t.parentComponentId):u,g=t.displayName,m=g===void 0?(function(T){return it(T)?"styled.".concat(T):"Styled(".concat(zt(T),")")})(e):g,b=t.displayName&&t.componentId?"".concat(Dt(t.displayName),"-").concat(t.componentId):t.componentId||l,S=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,j=t.shouldForwardProp;if(r&&o.shouldForwardProp){var R=o.shouldForwardProp;if(t.shouldForwardProp){var F=t.shouldForwardProp;j=function(T,f){return R(T,f)&&F(T,f)}}else j=R}var O=new Or(n,b,r?o.componentStyle:void 0);function A(T,f){return(function(E,y,W){var K=E.attrs,vt=E.componentStyle,xe=E.defaultProps,We=E.foldedComponentIds,He=E.styledComponentId,ke=E.target,Ge=p.useContext(on),Xe=en(),ge=E.shouldForwardProp||Xe.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(He);var Pe=Qn(y,Ge,xe)||fe,q=(function($,X,Z){for(var N,z=M(M({},X),{className:void 0,theme:Z}),ie=0;ie<$.length;ie+=1){var ye=pe(N=$[ie])?N(z):N;for(var Q in ye)z[Q]=Q==="className"?oe(z[Q],ye[Q]):Q==="style"?M(M({},z[Q]),ye[Q]):ye[Q]}return X.className&&(z.className=oe(z.className,X.className)),z})(K,y,Pe),i=q.as||ke,h={};for(var w in q)q[w]===void 0||w[0]==="$"||w==="as"||w==="theme"&&q.theme===Pe||(w==="forwardedAs"?h.as=q.forwardedAs:ge&&!ge(w,i)||(h[w]=q[w],ge||process.env.NODE_ENV!=="development"||An(w)||sn.has(w)||!rt.has(i)||(sn.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" 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 D=(function($,X){var Z=en(),N=$.generateAndInjectStyles(X,Z.styleSheet,Z.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(N),N})(vt,q);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(D);var Y=oe(We,He);return D&&(Y+=" "+D),q.className&&(Y+=" "+q.className),h[it(i)&&!rt.has(i)?"class":"className"]=Y,W&&(h.ref=W),p.createElement(i,h)})(P,T,f)}A.displayName=m;var P=p.forwardRef(A);return P.attrs=S,P.componentStyle=O,P.displayName=m,P.shouldForwardProp=j,P.foldedComponentIds=r?oe(o.foldedComponentIds,o.styledComponentId):"",P.styledComponentId=b,P.target=r?o.target:e,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(T){this._foldedDefaultProps=r?(function(f){for(var E=[],y=1;y<arguments.length;y++)E[y-1]=arguments[y];for(var W=0,K=E;W<K.length;W++)lt(f,K[W],!0);return f})({},o.defaultProps,T):T}}),process.env.NODE_ENV!=="production"&&(Zn(m,b),P.warnTooManyClasses=(function(T,f){var E={},y=!1;return function(W){if(!y&&(E[W]=!0,Object.keys(E).length>=200)){var K=f?' with the id of "'.concat(f,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(T).concat(K,`.
68
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function bo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}function ke(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(bo.apply(void 0,fe([wo[e]],t,!1)).trim())}var xo=(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,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw ke(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),l=(i=0,n.length);i<l;i++)this.tag.insertRule(a,n[i])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)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],o=this.indexOfGroup(t),s=o+r,i=o;i<s;i++)n+="".concat(this.tag.getRule(i)).concat(ht);return n},e})(),Co=1<<30,Qe=new Map,et=new Map,tt=1,nt=function(e){if(Qe.has(e))return Qe.get(e);for(;et.has(tt);)tt++;var t=tt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Co))throw ke(16,"".concat(t));return Qe.set(e,t),et.set(t,e),t},Eo=function(e,t){tt=t+1,Qe.set(e,t),et.set(t,e)},Po="style[".concat(he,"][").concat(en,'="').concat(Ge,'"]'),ko=new RegExp("^".concat(he,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),To=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},jo=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ht),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var l=a.match(ko);if(l){var u=0|parseInt(l[1],10),f=l[2];u!==0&&(Eo(f,u),To(e,f,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},gn=function(e){for(var t=document.querySelectorAll(Po),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(he)!==Qt&&(jo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Ro(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var yn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(he,"]")));return l[l.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(he,Qt),r.setAttribute(en,Ge);var i=Ro();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},_o=(function(){function e(t){this.element=yn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var i=r[o];if(i.ownerNode===n)return i}throw ke(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})(),Io=(function(){function e(t){this.element=yn(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})(),Ao=(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})(),vn=Ke,Lo={isServer:!Ke,useCSSOMInjection:!so},Sn=(function(){function e(t,n,r){t===void 0&&(t=Ce),n===void 0&&(n={});var o=this;this.options=G(G({},Lo),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Ke&&vn&&(vn=!1,gn(this)),xt(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,l="",u=function(d){var g=(function(x){return et.get(x)})(d);if(g===void 0)return"continue";var y=s.names.get(g),C=i.getGroup(d);if(y===void 0||!y.size||C.length===0)return"continue";var S="".concat(he,".g").concat(d,'[id="').concat(g,'"]'),E="";y!==void 0&&y.forEach(function(x){x.length>0&&(E+="".concat(x,","))}),l+="".concat(C).concat(S,'{content:"').concat(E,'"}').concat(ht)},f=0;f<a;f++)u(f);return l})(o)})}return e.registerId=function(t){return nt(t)},e.prototype.rehydrate=function(){!this.server&&Ke&&gn(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,o=n.target;return n.isServer?new Ao(o):r?new _o(o):new Io(o)})(this.options),new xo(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(nt(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(nt(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Do=/&/g,Mo=/^\s*\/\/.*$/gm;function wn(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=wn(n.children,t)),n})}function Oo(e){var t,n,r,o=Ce,s=o.options,i=s===void 0?Ce:s,a=o.plugins,l=a===void 0?Xe:a,u=function(g,y,C){return C.startsWith(n)&&C.endsWith(n)&&C.replaceAll(n,"").length>0?".".concat(t):g},f=l.slice();f.push(function(g){g.type===$e&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Do,n).replace(r,u))}),i.prefix&&f.push(ro),f.push(eo);var d=function(g,y,C,S){y===void 0&&(y=""),C===void 0&&(C=""),S===void 0&&(S="&"),t=S,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var E=g.replace(Mo,""),x=Jr(C||y?"".concat(C," ").concat(y," { ").concat(E," }"):E);i.namespace&&(x=wn(x,i.namespace));var T=[];return qe(x,to(f.concat(no(function(h){return T.push(h)})))),T};return d.hash=l.length?l.reduce(function(g,y){return y.name||ke(15),me(g,y.name)},on).toString():"",d}var No=new Sn,Ct=Oo(),bn=m.createContext({shouldForwardProp:void 0,styleSheet:No,stylis:Ct});bn.Consumer,m.createContext(void 0);function xn(){return m.useContext(bn)}var Et=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=Ct);var i=r.name+s.hash;o.hasNameForId(r.id,i)||o.insertRules(r.id,i,s(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,xt(this,function(){throw ke(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ct),this.name+t.hash},e})(),Vo=function(e){return e>="A"&&e<="Z"};function Cn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Vo(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var En=function(e){return e==null||e===!1||e===""},Pn=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!En(s)&&(Array.isArray(s)&&s.isCss||Ee(s)?r.push("".concat(Cn(o),":"),s,";"):Pe(s)?r.push.apply(r,fe(fe(["".concat(o," {")],Pn(s),!1),["}"],!1)):r.push("".concat(Cn(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in oo||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ye(e,t,n,r){if(En(e))return[];if(St(e))return[".".concat(e.styledComponentId)];if(Ee(e)){if(!Ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Et||Pe(o)||o===null||console.error("".concat(cn(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.")),ye(o,t,n,r)}var s;return e instanceof Et?n?(e.inject(n,r),[e.getName(r)]):[e]:Pe(e)?Pn(e):Array.isArray(e)?Array.prototype.concat.apply(Xe,e.map(function(i){return ye(i,t,n,r)})):[e.toString()]}function Fo(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ee(n)&&!St(n))return!1}return!0}var $o=sn(Ge),Ho=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Fo(t),this.componentId=n,this.baseHash=me($o,n),this.baseStyle=r,Sn.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ge(o,this.staticRulesId);else{var s=wt(ye(this.rules,t,n,r)),i=gt(me(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,i)){var a=r(s,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,a)}o=ge(o,i),this.staticRulesId=i}else{for(var l=me(this.baseHash,r.hash),u="",f=0;f<this.rules.length;f++){var d=this.rules[f];if(typeof d=="string")u+=d,process.env.NODE_ENV!=="production"&&(l=me(l,d));else if(d){var g=wt(ye(d,t,n,r));l=me(l,g+f),u+=g}}if(u){var y=gt(l>>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(u,".".concat(y),void 0,this.componentId)),o=ge(o,y)}}return o},e})(),kn=m.createContext(void 0);kn.Consumer;var Pt={},Tn=new Set;function zo(e,t,n){var r=St(e),o=e,s=!vt(e),i=t.attrs,a=i===void 0?Xe:i,l=t.componentId,u=l===void 0?(function(b,_){var k=typeof b!="string"?"sc":nn(b);Pt[k]=(Pt[k]||0)+1;var P="".concat(k,"-").concat(an(Ge+k+Pt[k]));return _?"".concat(_,"-").concat(P):P})(t.displayName,t.parentComponentId):l,f=t.displayName,d=f===void 0?(function(b){return vt(b)?"styled.".concat(b):"Styled(".concat(cn(b),")")})(e):f,g=t.displayName&&t.componentId?"".concat(nn(t.displayName),"-").concat(t.componentId):t.componentId||u,y=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,C=t.shouldForwardProp;if(r&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;C=function(b,_){return S(b,_)&&E(b,_)}}else C=S}var x=new Ho(n,g,r?o.componentStyle:void 0);function T(b,_){return(function(k,P,H){var U=k.attrs,I=k.componentStyle,O=k.defaultProps,B=k.foldedComponentIds,Q=k.styledComponentId,ne=k.target,re=m.useContext(kn),Z=xn(),V=k.shouldForwardProp||Z.shouldForwardProp;process.env.NODE_ENV!=="production"&&m.useDebugValue(Q);var X=ao(P,re,O)||Ce,W=(function(Y,ae,ue){for(var N,K=G(G({},ae),{className:void 0,theme:ue}),ve=0;ve<Y.length;ve+=1){var _e=Ee(N=Y[ve])?N(K):N;for(var de in _e)K[de]=de==="className"?ge(K[de],_e[de]):de==="style"?G(G({},K[de]),_e[de]):_e[de]}return ae.className&&(K.className=ge(K.className,ae.className)),K})(U,P,X),p=W.as||ne,j={};for(var A in W)W[A]===void 0||A[0]==="$"||A==="as"||A==="theme"&&W.theme===X||(A==="forwardedAs"?j.as=W.forwardedAs:V&&!V(A,p)||(j[A]=W[A],V||process.env.NODE_ENV!=="development"||Fr(A)||Tn.has(A)||!mt.has(p)||(Tn.add(A),console.warn('styled-components: it looks like an unknown prop "'.concat(A,'" 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 $=(function(Y,ae){var ue=xn(),N=Y.generateAndInjectStyles(ae,ue.styleSheet,ue.stylis);return process.env.NODE_ENV!=="production"&&m.useDebugValue(N),N})(I,W);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses($);var ee=ge(B,Q);return $&&(ee+=" "+$),W.className&&(ee+=" "+W.className),j[vt(p)&&!mt.has(p)?"class":"className"]=ee,H&&(j.ref=H),m.createElement(p,j)})(h,b,_)}T.displayName=d;var h=m.forwardRef(T);return h.attrs=y,h.componentStyle=x,h.displayName=d,h.shouldForwardProp=C,h.foldedComponentIds=r?ge(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=g,h.target=r?o.target:e,Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?(function(_){for(var k=[],P=1;P<arguments.length;P++)k[P-1]=arguments[P];for(var H=0,U=k;H<U.length;H++)bt(_,U[H],!0);return _})({},o.defaultProps,b):b}}),process.env.NODE_ENV!=="production"&&(io(d,g),h.warnTooManyClasses=(function(b,_){var k={},P=!1;return function(H){if(!P&&(k[H]=!0,Object.keys(k).length>=200)){var U=_?' with the id of "'.concat(_,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(b).concat(U,`.
69
69
  `)+`Consider using the attrs method, together with a style object for frequently changed styles.
70
70
  Example:
71
71
  const Component = styled.div.attrs(props => ({
@@ -74,24 +74,53 @@ Example:
74
74
  },
75
75
  }))\`width: 100%;\`
76
76
 
77
- <Component />`),y=!0,E={}}}})(m,b)),ut(P,function(){return".".concat(P.styledComponentId)}),s&&Ht(P,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),P}function an(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var cn=function(e){return Object.assign(e,{isCss:!0})};function ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(pe(e)||he(e))return cn(se(an($e,ee([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?se(r):cn(se(an(r,t)))}function ht(e,t,n){if(n===void 0&&(n=fe),!t)throw me(1,t);var r=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,ln.apply(void 0,ee([o],s,!1)))};return r.attrs=function(o){return ht(e,t,M(M({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return ht(e,t,M(M({},n),o))},r}var un=function(e){return ht(Nr,e)},C=un;rt.forEach(function(e){C[e]=un(e)});function Ir(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=ct(ln.apply(void 0,ee([e],t,!1))),o=Mt(r);return new ft(o,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.
77
+ <Component />`),P=!0,k={}}}})(d,g)),xt(h,function(){return".".concat(h.styledComponentId)}),s&&mn(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}function jn(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Rn=function(e){return Object.assign(e,{isCss:!0})};function rt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ee(e)||Pe(e))return Rn(ye(jn(Xe,fe([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ye(r):Rn(ye(jn(r,t)))}function kt(e,t,n){if(n===void 0&&(n=Ce),!t)throw ke(1,t);var r=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,n,rt.apply(void 0,fe([o],s,!1)))};return r.attrs=function(o){return kt(e,t,G(G({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return kt(e,t,G(G({},n),o))},r}var _n=function(e){return kt(zo,e)},L=_n;mt.forEach(function(e){L[e]=_n(e)});function Bo(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=wt(rt.apply(void 0,fe([e],t,!1))),o=an(r);return new Et(o,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.
78
78
  Perhaps you're looking to import 'styled-components/native'?
79
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ue="__sc-".concat(ne,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ue]||(window[Ue]=0),window[Ue]===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.
79
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ot="__sc-".concat(he,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ot]||(window[ot]=0),window[ot]===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.
80
80
 
81
- See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);function mt({...e}){return d.jsx(Dr,{...e})}const Dr=C.button`
81
+ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children:e,eventFinishedMessage:t,eventNotStartedMessage:n,eventStartingSoonMessage:r}){const o=q(u=>u.startDate),s=q(u=>u.endDate),i=Date.now(),a=i<o.getTime(),l=i>s.getTime();return Ar(5e3),a?c.jsx(Wo,{startDate:o,title:n||"Event has not started yet.",message:r||"Starting in few seconds..."}):l?c.jsx(Yo,{title:t||"Event has finished."}):c.jsx(c.Fragment,{children:e})}function Wo({startDate:e,title:t,message:n}){const r=e.getTime()-Date.now(),o=Math.floor(r/(1e3*60*60)),s=Math.floor(r%(1e3*60*60)/(1e3*60));return o||s?c.jsxs(Tt,{children:[c.jsx(jt,{children:t}),c.jsxs(qo,{children:["(",o>0?`${o}h ${s}m`:`${s}m`,")"]})]}):c.jsx(Tt,{children:c.jsx(jt,{children:n})})}function Yo({title:e}){return c.jsx(Tt,{children:c.jsx(jt,{children:e})})}const Tt=L.div`
82
+ position: absolute;
83
+ top: 0;
84
+ left: 0;
85
+ width: 100%;
86
+ height: 100%;
87
+ z-index: 10;
82
88
  display: flex;
89
+ flex-direction: column;
83
90
  align-items: center;
84
91
  justify-content: center;
92
+ color: black;
93
+ background: #f7e406;
94
+ `,jt=L.h3`
85
95
  margin: 0;
86
- padding: 0;
87
- width: 2.25rem;
88
- height: 2.25rem;
96
+ padding: 0.5rem 0;
97
+ font-size: 1.5rem;
98
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
99
+ "Helvetica Neue", Arial, sans-serif;
100
+ font-weight: 500;
101
+ `,qo=L.p`
102
+ margin: 0;
103
+ height: 1.25rem;
104
+ font-size: 1rem;
105
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
106
+ "Helvetica Neue", Arial, sans-serif;
107
+ font-weight: 500;
108
+ `;function Go(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.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"})})}function Oe({shape:e="circle",...t}){return c.jsx(Ko,{$shape:e,...t})}const Ko=L.button`
109
+ margin: 0;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+ flex-shrink: 0;
114
+ line-height: 1;
115
+ font-size: 0.875rem;
116
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
117
+ "Helvetica Neue", Arial, sans-serif;
118
+ font-weight: 500;
89
119
  cursor: pointer;
90
120
  color: white;
91
121
  background: none;
92
122
  border: none;
93
- border-radius: 50%;
94
- transition: background 0.2s ease-in-out;
123
+ transition: color 0.2s ease-in-out, background 0.2s ease-in-out;
95
124
 
96
125
  svg {
97
126
  width: 1.25rem;
@@ -100,7 +129,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);function mt({...e}){r
100
129
  }
101
130
 
102
131
  &:hover {
103
- background: rgba(0, 0, 0, 0.1);
132
+ color: black;
133
+ background: #f7e406;
104
134
  }
105
135
 
106
136
  &:focus {
@@ -111,50 +141,156 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);function mt({...e}){r
111
141
  opacity: 0.5;
112
142
  cursor: not-allowed;
113
143
  }
114
- `,dn=e=>{let t;const n=new Set,r=(l,g)=>{const m=typeof l=="function"?l(t):l;if(!Object.is(m,t)){const b=t;t=g??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(S=>S(t,b))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:l=>(n.add(l),()=>n.delete(l))},u=t=e(r,o,c);return c},Lr=(e=>e?dn(e):dn),Fr=e=>e;function fn(e,t=Fr){const n=p.useSyncExternalStore(e.subscribe,p.useCallback(()=>t(e.getState()),[e,t]),p.useCallback(()=>t(e.getInitialState()),[e,t]));return p.useDebugValue(n),n}const pn=e=>{const t=Lr(e),n=r=>fn(t,r);return Object.assign(n,t),n},$r=(e=>e?pn(e):pn);function Mr(e,t,n){const r={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(r[t]/r[n])}function zr(e){return Mr(e,"milliseconds","seconds")}const hn=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`};function Vr(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const mn=Vr(/iPhone|iPad|iPod/i);function qr(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function Yr(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function Ur(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function Br(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 Wr=(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:()=>zr(Date.now()-t().pauseTime),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})}}),Hr=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}})}),Gr=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{Ur(document),e({isFullscreen:!1})},requestFullscreen:()=>{const n=t().techRef.current,r=t().containerRef.current;if(!n||!r)return;const o=mn?n:r;o&&Yr(o),e({isFullscreen:!0})},setIsFullscreen:n=>e({isFullscreen:n}),setIsFullscreenReady:n=>e({isFullscreenReady:n})}),Xr=e=>({url:"",setURL:t=>e({url:t})}),Jr=e=>()=>({...e}),Kr=(e,t)=>$r()((...n)=>({...Wr(...n),...Hr(...n),...Gr(...n),...Xr(...n),...Jr({techRef:e,containerRef:t})(...n)})),gn=p.createContext(null),Zr=({children:e})=>{const t=p.useRef(null),n=p.useRef(null),r=p.useRef(null);return t.current||(t.current=Kr(n,r)),d.jsx(gn.Provider,{value:t.current,children:e})},x=e=>{const t=p.useContext(gn);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return fn(t,e)};function Qr(){const[e,t]=p.useState(!1),n=x(a=>a.isPlaying),r=x(a=>a.isStarted),o=x(a=>a.play),s=()=>{n||o()};return p.useEffect(()=>{t(!r&&!n)},[r,n]),e?d.jsx(mt,{onClick:s,children:n?d.jsx(ae.PauseIcon,{}):d.jsx(ae.PlayIcon,{})}):null}function yn({children:e}){return d.jsx(Zr,{children:e})}const Be={hls:"hls",dash:"dash"};function eo(e){return e&&/\.m3u8/i.test(e)?Be.hls:Be.dash}const to=p.lazy(()=>Promise.resolve().then(()=>Do)),no=p.lazy(()=>Promise.resolve().then(()=>Lo));function vn({url:e,isLive:t,isMuted:n=!1}){const r=x(f=>f.handleDurationChange),o=x(f=>f.handleEnd),s=x(f=>f.handleLoadedMetadata),a=x(f=>f.handleLoadStart),c=x(f=>f.handlePause),u=x(f=>f.handlePlay),l=x(f=>f.handlePlaying),g=x(f=>f.handleSeeked),m=x(f=>f.handleSeeking),b=x(f=>f.handleTimeUpdate),S=x(f=>f.handleWaiting),j=x(f=>f.techRef),R=p.useRef(null),F=()=>t?{}:{onDurationChange:r,onSeeked:g,onSeeking:m,onTimeUpdate:O},O=()=>{(!R.current||Date.now()-R.current>=1e3)&&(b(),R.current=Date.now())},P=(()=>{switch(eo(e)){case Be.hls:return to;case Be.dash:return no}return null})();if(!P)return null;const T=F();return d.jsxs(d.Fragment,{children:[d.jsx(p.Suspense,{fallback:null,children:d.jsx(P,{isLive:t,url:e})}),d.jsx(ro,{ref:j,playsInline:!0,autoPlay:!0,controls:!1,muted:n,preload:"auto",crossOrigin:"anonymous",onEnded:o,onLoadedMetadata:s,onLoadStart:a,onPause:c,onPlay:u,onPlaying:l,onWaiting:S,tabIndex:-1,...T})]})}const ro=C.video`
115
- position: relative;
116
- width: 100%;
117
- height: 100%;
118
144
 
119
- @media (min-width: 768px) {
120
- pointer-events: none;
121
- }
122
- `,bn=()=>{const e=x(l=>l.containerRef),t=x(l=>l.exitFullscreen),n=x(l=>l.isFullscreen),r=x(l=>l.requestFullscreen),o=x(l=>l.setIsFullscreen),s=x(l=>l.setIsFullscreenReady),a=x(l=>l.techRef),c=p.useCallback(l=>{l.stopPropagation(),o(qr())},[o]),u=()=>{n?t():r()};return p.useEffect(()=>{const l=mn?a.current:e.current;if(l)return Br(l,c)},[e,c,a]),p.useEffect(()=>{s(!0)},[s]),d.jsx(mt,{onClick:u,children:n?d.jsx(ae.MinimizeIcon,{}):d.jsx(ae.MaximizeIcon,{})})};function oo(e,t=500){const[n,r]=p.useState(e);return p.useEffect(()=>{const o=window.setTimeout(()=>r(e),t);return()=>{window.clearTimeout(o)}},[e,t]),n}function Sn({style:e,...t}){const n=x(o=>o.isLoading);return oo(n,50)?d.jsx(so,{style:e,...t,children:d.jsx(ao,{})}):null}const so=C.div`
123
- pointer-events: none;
145
+ ${({$shape:e})=>e==="circle"&&rt`
146
+ padding: 0;
147
+ width: 2.25rem;
148
+ height: 2.25rem;
149
+ border-radius: 1.25rem;
150
+ `}
151
+
152
+ ${({$shape:e})=>e==="square"&&rt`
153
+ padding: 0.25rem 0.5rem;
154
+ border-radius: 1rem;
155
+ `}
156
+ `;function Zo({message:e,...t}){const n=q(s=>s.delay),r=q(s=>s.setDelay),o=()=>r(0);return n?c.jsxs(Oe,{onClick:o,shape:"square",...t,children:[c.jsx("span",{children:e||"Live"}),c.jsx(Go,{})]}):null}function In(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M6 3H8V21H6V3ZM16 3H18V21H16V3Z"})})}function An(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M6 20.1957V3.80421C6 3.01878 6.86395 2.53993 7.53 2.95621L20.6432 11.152C21.2699 11.5436 21.2699 12.4563 20.6432 12.848L7.53 21.0437C6.86395 21.46 6 20.9812 6 20.1957Z"})})}function Xo(e,t,n){const r={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(r[t]/r[n])}function Jo(e){return Xo(e,"milliseconds","seconds")}const Te=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`};function Qo(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const Ln=Qo(/iPhone|iPad|iPod/i);function es(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function ts(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function ns(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function rs(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 os=(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:()=>Jo(Date.now()-t().pauseTime),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})}}),ss=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}})}),is=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{ns(document),e({isFullscreen:!1})},requestFullscreen:()=>{const n=t().techRef.current,r=t().containerRef.current;if(!n||!r)return;const o=Ln?n:r;o&&ts(o),e({isFullscreen:!0})},setIsFullscreen:n=>e({isFullscreen:n}),setIsFullscreenReady:n=>e({isFullscreenReady:n})}),as=e=>({url:"",setURL:t=>e({url:t})}),cs=e=>()=>({...e}),ls=(e,t)=>Ht()((...n)=>({...os(...n),...ss(...n),...is(...n),...as(...n),...cs({techRef:e,containerRef:t})(...n)})),Dn=m.createContext(null);function us({children:e}){const t=m.useRef(null),n=m.useRef(null),r=m.useRef(null);return t.current||(t.current=ls(n,r)),c.jsx(Dn.Provider,{value:t.current,children:e})}const v=e=>{const t=m.useContext(Dn);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return at(t,e)};function ds(){const e=v(l=>l.isPlaying),t=v(l=>l.pause),n=v(l=>l.pauseTime),r=v(l=>l.pauseTimeDiff),o=v(l=>l.play),s=q(l=>l.delay),i=q(l=>l.setDelay),a=()=>{e?t():(n&&i(s+r()),o())};return c.jsx(Oe,{onClick:a,children:e?c.jsx(In,{}):c.jsx(An,{})})}function Mn({className:e,onClick:t,...n}){const r=m.useRef(null),o=v(d=>d.exitFullscreen),s=v(d=>d.isFullscreen),i=v(d=>d.requestFullscreen),a=d=>{f()?(u(),s?o():i()):l(d)},l=d=>{r.current=window.setTimeout(()=>{t?.(d),u()},200)},u=()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},f=()=>r.current!==null;return m.useEffect(()=>()=>{u()},[]),c.jsx(fs,{onClick:a,className:e,"aria-label":"Player playback indicator",...n})}const fs=L.button`
124
157
  position: absolute;
125
158
  top: 0;
126
- right: 0;
127
- bottom: 0;
128
159
  left: 0;
129
160
  display: flex;
130
161
  width: 100%;
131
162
  height: 100%;
163
+ cursor: default;
132
164
  align-items: center;
133
165
  justify-content: center;
134
- `,io=Ir`
135
- from {
136
- transform: rotate(0deg);
166
+ outline: none;
167
+ background: none;
168
+ border: none;
169
+ padding: 0;
170
+
171
+ &:focus {
172
+ outline: none;
137
173
  }
138
- to {
139
- transform: rotate(360deg);
174
+ `;function ps(){const e=v(r=>r.isPlaying),t=v(r=>r.play),n=()=>{e||t()};return c.jsx(Mn,{onClick:n})}const On=L.div`
175
+ position: relative;
176
+ width: 100%;
177
+ `,Nn=L.div`
178
+ position: absolute;
179
+ bottom: 1.75rem;
180
+ left: 0;
181
+ width: 3rem;
182
+ z-index: 10;
183
+ pointer-events: none;
184
+ user-select: none;
185
+ opacity: ${({$isVisible:e})=>e?1:0};
186
+ transform: ${({$isVisible:e})=>e?"translateY(0)":"translateY(-0.5rem)"};
187
+ transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
188
+ `,Vn=L.p`
189
+ margin: 0;
190
+ padding: 0.25rem;
191
+ font-variant-numeric: tabular-nums;
192
+ font-size: 0.875rem;
193
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
194
+ "Helvetica Neue", Arial, sans-serif;
195
+ font-weight: 500;
196
+ text-align: center;
197
+ color: white;
198
+ background: rgba(0, 0, 0, 0.8);
199
+ border-radius: 1rem;
200
+ `;function Fn(e,[t,n]){return Math.min(n,Math.max(t,e))}function je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function $n(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Hn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=$n(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():$n(e[o],null)}}}}function le(...e){return w.useCallback(Hn(...e),e)}function zn(e,t=[]){let n=[];function r(s,i){const a=w.createContext(i),l=n.length;n=[...n,i];const u=d=>{const{scope:g,children:y,...C}=d,S=g?.[e]?.[l]||a,E=w.useMemo(()=>C,Object.values(C));return c.jsx(S.Provider,{value:E,children:y})};u.displayName=s+"Provider";function f(d,g){const y=g?.[e]?.[l]||a,C=w.useContext(y);if(C)return C;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>w.createContext(i));return function(a){const l=a?.[e]||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,hs(o,...t)]}function hs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Bn=globalThis?.document?w.useLayoutEffect:()=>{},ms=w[" useInsertionEffect ".trim().toString()]||Bn;function gs({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=ys({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const f=w.useRef(e!==void 0);w.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,r])}const u=w.useCallback(f=>{if(a){const d=vs(f)?f(e):f;d!==e&&i.current?.(d)}else s(f)},[a,e,s,i]);return[l,u]}function ys({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),s=w.useRef(t);return ms(()=>{s.current=t},[t]),w.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function vs(e){return typeof e=="function"}var Ss=w.createContext(void 0);function ws(e){const t=w.useContext(Ss);return e||t||"ltr"}function bs(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function xs(e){const[t,n]=w.useState(void 0);return Bn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Rt(e){const t=Cs(e),n=w.forwardRef((r,o)=>{const{children:s,...i}=r,a=w.Children.toArray(s),l=a.find(Ps);if(l){const u=l.props.children,f=a.map(d=>d===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:d);return c.jsx(t,{...i,ref:o,children:w.isValidElement(u)?w.cloneElement(u,void 0,f):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Cs(e){const t=w.forwardRef((n,r)=>{const{children:o,...s}=n;if(w.isValidElement(o)){const i=Ts(o),a=ks(s,o.props);return o.type!==w.Fragment&&(a.ref=r?Hn(r,i):i),w.cloneElement(o,a)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Es=Symbol("radix.slottable");function Ps(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Es}function ks(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ts(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var js=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=js.reduce((e,t)=>{const n=Rt(`Primitive.${t}`),r=w.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Rs(e){const t=e+"CollectionProvider",[n,r]=zn(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=S=>{const{scope:E,children:x}=S,T=m.useRef(null),h=m.useRef(new Map).current;return c.jsx(o,{scope:E,itemMap:h,collectionRef:T,children:x})};i.displayName=t;const a=e+"CollectionSlot",l=Rt(a),u=m.forwardRef((S,E)=>{const{scope:x,children:T}=S,h=s(a,x),b=le(E,h.collectionRef);return c.jsx(l,{ref:b,children:T})});u.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",g=Rt(f),y=m.forwardRef((S,E)=>{const{scope:x,children:T,...h}=S,b=m.useRef(null),_=le(E,b),k=s(f,x);return m.useEffect(()=>(k.itemMap.set(b,{ref:b,...h}),()=>void k.itemMap.delete(b))),c.jsx(g,{[d]:"",ref:_,children:T})});y.displayName=f;function C(S){const E=s(e+"CollectionConsumer",S);return m.useCallback(()=>{const T=E.collectionRef.current;if(!T)return[];const h=Array.from(T.querySelectorAll(`[${d}]`));return Array.from(E.itemMap.values()).sort((k,P)=>h.indexOf(k.ref.current)-h.indexOf(P.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:i,Slot:u,ItemSlot:y},C,r]}var Un=["PageUp","PageDown"],Wn=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Yn={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Re="Slider",[_t,_s,Is]=Rs(Re),[qn,Di]=zn(Re,[Is]),[As,st]=qn(Re),Gn=w.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:f,onValueChange:d=()=>{},onValueCommit:g=()=>{},inverted:y=!1,form:C,...S}=e,E=w.useRef(new Set),x=w.useRef(0),h=i==="horizontal"?Ls:Ds,[b=[],_]=gs({prop:f,defaultProp:u,onChange:O=>{[...E.current][x.current]?.focus(),d(O)}}),k=w.useRef(b);function P(O){const B=Fs(b,O);I(O,B)}function H(O){I(O,x.current)}function U(){const O=k.current[x.current];b[x.current]!==O&&g(b)}function I(O,B,{commit:Q}={commit:!1}){const ne=Bs(s),re=Us(Math.round((O-r)/s)*s+r,ne),Z=Fn(re,[r,o]);_((V=[])=>{const X=Ns(V,Z,B);if(zs(X,l*s)){x.current=X.indexOf(Z);const W=String(X)!==String(V);return W&&Q&&g(X),W?X:V}else return V})}return c.jsx(As,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:x,thumbs:E.current,values:b,orientation:i,form:C,children:c.jsx(_t.Provider,{scope:e.__scopeSlider,children:c.jsx(_t.Slot,{scope:e.__scopeSlider,children:c.jsx(h,{"aria-disabled":a,"data-disabled":a?"":void 0,...S,ref:t,onPointerDown:je(S.onPointerDown,()=>{a||(k.current=b)}),min:r,max:o,inverted:y,onSlideStart:a?void 0:P,onSlideMove:a?void 0:H,onSlideEnd:a?void 0:U,onHomeKeyDown:()=>!a&&I(r,0,{commit:!0}),onEndKeyDown:()=>!a&&I(o,b.length-1,{commit:!0}),onStepKeyDown:({event:O,direction:B})=>{if(!a){const re=Un.includes(O.key)||O.shiftKey&&Wn.includes(O.key)?10:1,Z=x.current,V=b[Z],X=s*re*B;I(V+X,Z,{commit:!0})}}})})})})});Gn.displayName=Re;var[Kn,Zn]=qn(Re,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ls=w.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...f}=e,[d,g]=w.useState(null),y=le(t,h=>g(h)),C=w.useRef(void 0),S=ws(o),E=S==="ltr",x=E&&!s||!E&&s;function T(h){const b=C.current||d.getBoundingClientRect(),_=[0,b.width],P=Lt(_,x?[n,r]:[r,n]);return C.current=b,P(h-b.left)}return c.jsx(Kn,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:c.jsx(Xn,{dir:S,"data-orientation":"horizontal",...f,ref:y,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:h=>{const b=T(h.clientX);i?.(b)},onSlideMove:h=>{const b=T(h.clientX);a?.(b)},onSlideEnd:()=>{C.current=void 0,l?.()},onStepKeyDown:h=>{const _=Yn[x?"from-left":"from-right"].includes(h.key);u?.({event:h,direction:_?-1:1})}})})}),Ds=w.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:l,...u}=e,f=w.useRef(null),d=le(t,f),g=w.useRef(void 0),y=!o;function C(S){const E=g.current||f.current.getBoundingClientRect(),x=[0,E.height],h=Lt(x,y?[r,n]:[n,r]);return g.current=E,h(S-E.top)}return c.jsx(Kn,{scope:e.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:c.jsx(Xn,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const E=C(S.clientY);s?.(E)},onSlideMove:S=>{const E=C(S.clientY);i?.(E)},onSlideEnd:()=>{g.current=void 0,a?.()},onStepKeyDown:S=>{const x=Yn[y?"from-bottom":"from-top"].includes(S.key);l?.({event:S,direction:x?-1:1})}})})}),Xn=w.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:l,...u}=e,f=st(Re,n);return c.jsx(Ne.span,{...u,ref:t,onKeyDown:je(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):Un.concat(Wn).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:je(e.onPointerDown,d=>{const g=d.target;g.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(g)?g.focus():r(d)}),onPointerMove:je(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:je(e.onPointerUp,d=>{const g=d.target;g.hasPointerCapture(d.pointerId)&&(g.releasePointerCapture(d.pointerId),s(d))})})}),Jn="SliderTrack",Qn=w.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=st(Jn,n);return c.jsx(Ne.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Qn.displayName=Jn;var It="SliderRange",er=w.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=st(It,n),s=Zn(It,n),i=w.useRef(null),a=le(t,i),l=o.values.length,u=o.values.map(g=>rr(g,o.min,o.max)),f=l>1?Math.min(...u):0,d=100-Math.max(...u);return c.jsx(Ne.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:f+"%",[s.endEdge]:d+"%"}})});er.displayName=It;var At="SliderThumb",tr=w.forwardRef((e,t)=>{const n=_s(e.__scopeSlider),[r,o]=w.useState(null),s=le(t,a=>o(a)),i=w.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return c.jsx(Ms,{...e,ref:s,index:i})}),Ms=w.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=st(At,n),a=Zn(At,n),[l,u]=w.useState(null),f=le(t,T=>u(T)),d=l?i.form||!!l.closest("form"):!0,g=xs(l),y=i.values[r],C=y===void 0?0:rr(y,i.min,i.max),S=Vs(r,i.values.length),E=g?.[a.size],x=E?$s(E,C,a.direction):0;return w.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),c.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${C}% + ${x}px)`},children:[c.jsx(_t.ItemSlot,{scope:e.__scopeSlider,children:c.jsx(Ne.span,{role:"slider","aria-label":e["aria-label"]||S,"aria-valuemin":i.min,"aria-valuenow":y,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:f,style:y===void 0?{display:"none"}:e.style,onFocus:je(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),d&&c.jsx(nr,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:y},r)]})});tr.displayName=At;var Os="RadioBubbleInput",nr=w.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=w.useRef(null),s=le(o,r),i=bs(t);return w.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const d=new Event("input",{bubbles:!0});f.call(a,t),a.dispatchEvent(d)}},[i,t]),c.jsx(Ne.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});nr.displayName=Os;function Ns(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function rr(e,t,n){const s=100/(n-t)*(e-t);return Fn(s,[0,100])}function Vs(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Fs(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function $s(e,t,n){const r=e/2,s=Lt([0,50],[0,r]);return(r-s(t)*n)*n}function Hs(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function zs(e,t){if(t>0){const n=Hs(e);return Math.min(...n)>=t}return!0}function Lt(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Bs(e){return(String(e).split(".")[1]||"").length}function Us(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Ws=Gn,Ys=Qn,qs=er,Gs=tr;function Dt({max:e=100,min:t=0,...n}){return c.jsxs(Ks,{min:t,max:e,"aria-label":"Player progress",onKeyDown:r=>r.preventDefault(),...n,children:[c.jsx(Zs,{children:c.jsx(Xs,{})}),c.jsx(Js,{})]})}const Ks=L(Ws)`
201
+ position: relative;
202
+ display: flex;
203
+ align-items: center;
204
+ width: 100%;
205
+ height: 1rem;
206
+ touch-action: none;
207
+ user-select: none;
208
+ cursor: pointer;
209
+
210
+ &[data-disabled] {
211
+ cursor: not-allowed;
212
+ opacity: 0.5;
140
213
  }
141
- `,ao=C.div`
142
- width: 2rem;
143
- height: 2rem;
144
- border: 0.25rem solid #fff;
145
- border-bottom-color: transparent;
214
+ `,Zs=L(Ys)`
215
+ position: relative;
216
+ height: 0.25rem;
217
+ flex-grow: 1;
218
+ background: rgba(255, 255, 255, 0.2);
219
+ border-radius: 1rem;
220
+ overflow: hidden;
221
+ `,Xs=L(qs)`
222
+ position: absolute;
223
+ height: 100%;
224
+ background: #f7e406;
225
+ transition: width 0.2s ease-in-out;
226
+ border-radius: 1rem;
227
+ `,Js=L(Gs)`
228
+ display: block;
229
+ width: 1rem;
230
+ height: 1rem;
231
+ cursor: pointer;
232
+ background: white;
233
+ transition: all 0.2s ease-in-out;
234
+ box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
146
235
  border-radius: 50%;
147
- animation: ${io} 1s linear infinite;
148
- `;function co(e){return d.jsx(yn,{children:d.jsx(lo,{...e})})}function lo({url:e}){const t=x(n=>n.containerRef);return d.jsxs(uo,{ref:t,children:[d.jsx(vn,{url:e,isLive:!0}),d.jsx(Sn,{}),d.jsx(fo,{children:d.jsx(po,{children:d.jsxs(ho,{children:[d.jsx(mo,{children:d.jsx(Qr,{})}),d.jsx(go,{}),d.jsx(yo,{children:d.jsx(bn,{})})]})})})]})}const uo=C.div`
236
+
237
+ &:hover {
238
+ box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.4);
239
+ }
240
+
241
+ &:focus {
242
+ outline: none;
243
+ box-shadow: 0 0 0 0.125rem rgba(247, 228, 6, 0.5);
244
+ }
245
+
246
+ &[data-disabled] {
247
+ cursor: not-allowed;
248
+ opacity: 0.5;
249
+ }
250
+ `;function it(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 Qs=(e,t)=>parseInt(Math.max(0,(Date.now()-(e+t*1e3))/1e3).toFixed(0)),or=(e,t)=>Math.max(0,(Date.now()-e-t*1e3)/1e3),sr=(e,t)=>Math.max(0,(t-e)/1e3),ir="vod-player-progress-bar";function ei(){const e=m.useRef(null),t=m.useRef(null),[n,r]=m.useState(0),[o,s]=m.useState(0),[i,a]=m.useState(!1),[l,u]=m.useState(-1),[f,d]=m.useState(-1),g=q(I=>I.delay),y=q(I=>I.startTime),C=q(I=>I.endTime),S=q(I=>I.setDelay),E=v(I=>I.isPlaying),x=v(I=>I.addIdleLock),T=v(I=>I.removeIdleLock),h=m.useCallback(()=>{r(or(y,g)),s(sr(y,C))},[g,C,y]),b=parseFloat((o?(f!==-1?f:n)/o*100:0).toFixed(1)),_=I=>{d(o*(I[0]/100)),x(ir)},k=()=>{if(f!==-1){const I=Qs(y,f);S(I),d(-1),T(ir)}},P=()=>a(!0),H=()=>a(!1),U=m.useCallback(I=>{const O=e.current,B=t.current;if(O&&B){const Q=it(O),ne=it(B),re=(I.pageX||I.clientX)-Q.left,Z=re/Q.width;if(Z<0)return;let V=re-ne.width/2;V<0&&(V=0),V>Q.width-ne.width&&(V=-1),B.style.left=V>-1?`${V}px`:"auto",B.style.right=V>-1?"auto":"0px",u(Z*o)}P()},[o]);return Fe(()=>h(),E?1e3:null),m.useEffect(()=>{h()},[h]),c.jsxs(On,{children:[c.jsx(Dt,{ref:e,value:[b],onPointerLeave:H,onPointerDown:H,onPointerMove:U,onValueChange:_,onValueCommit:k,step:.1}),c.jsx(Nn,{ref:t,$isVisible:i,children:c.jsx(Vn,{children:Te(l)})})]})}function ar({children:e}){return c.jsx(us,{children:e})}function ti({children:e,startDate:t,endDate:n}){return c.jsx(Or,{startDate:t,endDate:n,children:c.jsx(ar,{children:e})})}const cr=L.div`
251
+ display: flex;
252
+ align-items: center;
253
+ `,lr=L.p`
254
+ margin: 0;
255
+ padding: 0;
256
+ font-variant-numeric: tabular-nums;
257
+ font-size: 0.875rem;
258
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
259
+ "Helvetica Neue", Arial, sans-serif;
260
+ font-weight: 500;
261
+ `,ur=L(lr)`
262
+ margin-right: 0.5rem;
263
+ `,dr=L(lr)`
264
+ margin-left: 0.5rem;
265
+ `,fr=L.p`
266
+ margin: 0;
267
+ padding: 0;
268
+ font-size: 0.875rem;
269
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
270
+ "Helvetica Neue", Arial, sans-serif;
271
+ font-weight: 500;
272
+
273
+ &::before {
274
+ content: "/";
275
+ }
276
+ `;function ni(){const[e,t]=m.useState(0),[n,r]=m.useState(0),o=v(u=>u.isPlaying),s=q(u=>u.delay),i=q(u=>u.startTime),a=q(u=>u.endTime),l=m.useCallback(()=>{t(or(i,s)),r(sr(i,a))},[s,a,i]);return Fe(()=>l(),o?1e3:null),m.useEffect(()=>{l()},[l]),s?c.jsxs(cr,{children:[c.jsx(ur,{children:Te(e)}),c.jsx(fr,{}),c.jsx(dr,{children:Te(n)})]}):null}function ri({url:e,isLive:t}){const n=m.useRef(null),r=v(a=>a.techRef),o=m.useCallback(()=>{n.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),n.current.loadSource(e))},[e]),s=m.useCallback(()=>{if(!r.current)return;const u=t?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(u)),console.log("[Player] Version",Ie.version),n.current=new Ie(u),n.current.attachMedia(r.current),n.current.on(Ie.Events.MEDIA_ATTACHED,o)}catch(f){throw new Error(`Error initializing Hls: ${f}`)}},[o,t,r,e]),i=m.useCallback(()=>{n.current&&(n.current.off(Ie.Events.MEDIA_ATTACHED,o),n.current.destroy(),n.current=null)},[o]);return m.useEffect(()=>(Ie.isSupported()&&s(),i),[i,s]),null}function pr({url:e,isLive:t,isMuted:n=!1}){const r=v(h=>h.handleDurationChange),o=v(h=>h.handleEnd),s=v(h=>h.handleLoadedMetadata),i=v(h=>h.handleLoadStart),a=v(h=>h.handlePause),l=v(h=>h.handlePlay),u=v(h=>h.handlePlaying),f=v(h=>h.handleSeeked),d=v(h=>h.handleSeeking),g=v(h=>h.handleTimeUpdate),y=v(h=>h.handleWaiting),C=v(h=>h.techRef),S=m.useRef(null),E=()=>t?{}:{onDurationChange:r,onSeeked:f,onSeeking:d,onTimeUpdate:x},x=()=>{(!S.current||Date.now()-S.current>=1e3)&&(g(),S.current=Date.now())},T=E();return c.jsxs(c.Fragment,{children:[c.jsx(ri,{isLive:t,url:e}),c.jsx(oi,{ref:C,playsInline:!0,autoPlay:!0,controls:!1,muted:n,preload:"auto",crossOrigin:"anonymous",onEnded:o,onLoadedMetadata:s,onLoadStart:i,onPause:a,onPlay:l,onPlaying:u,onWaiting:y,tabIndex:-1,...T})]})}const oi=L.video`
277
+ position: relative;
278
+ width: 100%;
279
+ height: 100%;
280
+
281
+ @media (min-width: 768px) {
282
+ pointer-events: none;
283
+ }
284
+ `;function si({url:e}){const[t,n]=m.useState(null),r=q(s=>s.delay),o=m.useCallback(async()=>{n(r?e.replace("playlist.m3u8",`playlist_fmp4_dvr_timeshift-${r}.m3u8`):e)},[r,e]);return m.useEffect(()=>{o()},[o]),t?c.jsx(pr,{url:t,isLive:!0}):null}const hr=L.div`
149
285
  position: absolute;
150
286
  top: 0;
151
287
  left: 0;
152
288
  width: 100%;
153
289
  height: 100%;
154
- background-color: black;
155
290
  color: white;
291
+ background: black;
156
292
  overflow: hidden;
157
- `,fo=C.div`
293
+ `,mr=L.div`
158
294
  position: absolute;
159
295
  left: 0;
160
296
  width: 100%;
@@ -166,105 +302,91 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);function mt({...e}){r
166
302
  @media (min-width: 768px) {
167
303
  padding-top: 2rem;
168
304
  }
169
- `,po=C.div`
305
+ `,gr=L.div`
170
306
  display: flex;
171
307
  flex-direction: column;
172
308
  padding-left: 0.5rem;
173
309
  padding-right: 0.5rem;
174
310
  line-height: 1;
175
311
  font-size: 0;
312
+ height: 4rem;
176
313
 
177
314
  @media (min-width: 768px) {
178
315
  padding-left: 1rem;
179
316
  padding-right: 1rem;
317
+ height: 4.5rem;
180
318
  }
181
- `,ho=C.div`
319
+ `,yr=L.div`
182
320
  margin: auto 0;
183
321
  display: flex;
184
322
  width: 100%;
185
323
  align-items: center;
186
- `,gt=C.div`
324
+ `,Mt=L.div`
187
325
  display: flex;
188
326
  flex: 1;
189
327
  align-items: center;
190
328
  gap: 0.5rem;
191
-
192
- @media (min-width: 768px) {
193
- gap: 1rem;
194
- }
195
- `,mo=C(gt)`
329
+ `,vr=L(Mt)`
196
330
  justify-content: flex-start;
197
- `,go=C(gt)`
331
+ `,ii=L(Mt)`
198
332
  justify-content: center;
199
- `,yo=C(gt)`
333
+ `,Sr=L(Mt)`
200
334
  justify-content: flex-end;
201
- `;function vo(){const e=x(o=>o.isPlaying),t=x(o=>o.pause),n=x(o=>o.play),r=()=>{e?t():n()};return d.jsx(mt,{onClick:r,children:e?d.jsx(ae.PauseIcon,{}):d.jsx(ae.PlayIcon,{})})}function bo(e){return null}function So(){const[e,t]=p.useState(-1),n=x(s=>s.currentTime),r=x(s=>s.duration),o=parseFloat((r?(e!==-1?e:n)/r*100:0).toFixed(1));return d.jsxs(wo,{children:[d.jsx(wn,{children:d.jsx(xo,{children:hn(n)})}),d.jsx(Eo,{children:d.jsx(bo,{value:o,step:.1})}),d.jsx(wn,{children:d.jsx(ko,{children:hn(r)})})]})}const wo=C.div`
202
- display: flex;
203
- align-items: center;
204
- `,wn=C.div``,Eo=C.div`
205
- flex: 1;
206
- `,En=C.p`
207
- margin: 0;
208
- color: #fff;
209
- font-size: 0.875rem;
210
- `,xo=C(En)`
211
- padding-left: 0.25rem;
212
- `,ko=C(En)`
213
- padding-right: 0.25rem;
214
- `;function Po(e){return d.jsx(yn,{children:d.jsx(Ro,{...e})})}function Ro({url:e}){const t=x(n=>n.containerRef);return d.jsxs(To,{ref:t,children:[d.jsx(vn,{url:e,isLive:!1}),d.jsx(Sn,{}),d.jsx(Co,{children:d.jsxs(jo,{children:[d.jsx(So,{}),d.jsxs(_o,{children:[d.jsx(Ao,{children:d.jsx(vo,{})}),d.jsx(Oo,{}),d.jsx(No,{children:d.jsx(bn,{})})]})]})})]})}const To=C.div`
335
+ `;function ai(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z"})})}function ci(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"})})}function wr(){const e=v(u=>u.containerRef),t=v(u=>u.exitFullscreen),n=v(u=>u.isFullscreen),r=v(u=>u.requestFullscreen),o=v(u=>u.setIsFullscreen),s=v(u=>u.setIsFullscreenReady),i=v(u=>u.techRef),a=m.useCallback(u=>{u.stopPropagation(),o(es())},[o]),l=()=>{n?t():r()};return m.useEffect(()=>{const u=Ln?i.current:e.current;if(u)return rs(u,a)},[e,a,i]),m.useEffect(()=>{s(!0)},[s]),c.jsx(Oe,{onClick:l,children:n?c.jsx(ci,{}):c.jsx(ai,{})})}const li=5*1e3;function br({children:e}){const t=m.useRef(null),[n,r]=m.useState(!1),o=m.useRef(null),i=v(u=>u.idleLocks).size,a=m.useCallback(()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},[]),l=m.useCallback(()=>{a(),o.current=window.setTimeout(()=>r(!0),li)},[a]);return m.useEffect(()=>(r(!1),l(),()=>{a()}),[a,l]),m.useEffect(()=>{const u=t.current;if(!u)return;const f=g=>{n&&(g.stopPropagation(),r(!1),l())},d=()=>{n&&r(!1),l()};return u.addEventListener("click",f),u.addEventListener("mousemove",d),()=>{u.removeEventListener("click",f),u.removeEventListener("mousemove",d)}},[t,n,r,l]),c.jsx(ui,{ref:t,$isIdle:n&&!i,children:e})}const ui=L.div`
215
336
  position: absolute;
216
337
  top: 0;
217
338
  left: 0;
218
339
  width: 100%;
219
340
  height: 100%;
220
- background-color: black;
221
- color: white;
222
- overflow: hidden;
223
- `,Co=C.div`
224
- position: absolute;
225
- left: 0;
226
- width: 100%;
227
- bottom: 0;
228
- z-index: 10;
229
- background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
230
- padding-top: 1rem;
231
-
232
- @media (min-width: 768px) {
233
- padding-top: 2rem;
341
+ transition: opacity 0.2s ease-in-out;
342
+ cursor: ${({$isIdle:e})=>e?"none":"auto"};
343
+ opacity: ${({$isIdle:e})=>e?0:1};
344
+ `;function di(e){return c.jsx(pi,{...e})}const fi=Bo`
345
+ from {
346
+ transform: rotate(0deg);
234
347
  }
235
- `,jo=C.div`
236
- display: flex;
237
- flex-direction: column;
238
- padding-left: 0.5rem;
239
- padding-right: 0.5rem;
240
- line-height: 1;
241
- font-size: 0;
242
- height: 3.5rem;
243
-
244
- @media (min-width: 768px) {
245
- padding-left: 1rem;
246
- padding-right: 1rem;
247
- height: 4rem;
348
+ to {
349
+ transform: rotate(360deg);
248
350
  }
249
- `,_o=C.div`
250
- margin: auto 0;
351
+ `,pi=L.div`
352
+ width: 1.5rem;
353
+ height: 1.5rem;
354
+ border: 2px solid white;
355
+ border-bottom-color: transparent;
356
+ border-radius: 50%;
357
+ animation: ${fi} 1s linear infinite;
358
+ `;function hi(e,t=500){const[n,r]=m.useState(e);return m.useEffect(()=>{const o=window.setTimeout(()=>r(e),t);return()=>{window.clearTimeout(o)}},[e,t]),n}function xr({style:e,...t}){const n=v(o=>o.isLoading);return hi(n,100)?c.jsx(mi,{style:e,...t,children:c.jsx(di,{})}):null}const mi=L.div`
359
+ pointer-events: none;
360
+ position: absolute;
361
+ top: 0;
362
+ right: 0;
363
+ bottom: 0;
364
+ left: 0;
251
365
  display: flex;
252
366
  width: 100%;
367
+ height: 100%;
253
368
  align-items: center;
254
- `,yt=C.div`
369
+ justify-content: center;
370
+ `;function gi(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.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 yi(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.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 vi(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.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 Cr="volume";function Er(){v(a=>a.containerRef);const e=v(a=>a.setVolume),t=v(a=>a.volume),n=v(a=>a.addIdleLock),r=v(a=>a.removeIdleLock),o=a=>{e(a[0]),n(Cr)},s=()=>{r(Cr)},i=()=>e(t?0:100);return c.jsxs(Si,{children:[c.jsx(Oe,{onClick:i,className:"shrink-0",children:t?t>50?c.jsx(gi,{}):c.jsx(yi,{}):c.jsx(vi,{})}),c.jsx(Pr,{children:c.jsx(Dt,{value:[t],onValueChange:o,onValueCommit:s})})]})}const Pr=L.div`
371
+ width: 0;
372
+ opacity: 0;
373
+ transition: all 0.2s ease-in-out;
374
+ `,Si=L.div`
255
375
  display: flex;
256
- flex: 1;
257
376
  align-items: center;
258
- gap: 0.5rem;
377
+ gap: 0.25rem;
378
+ width: 3rem;
379
+ transition: all 0.2s ease-in-out;
259
380
 
260
381
  @media (min-width: 768px) {
261
- gap: 1rem;
382
+ &:hover {
383
+ width: 6rem;
384
+
385
+ ${Pr} {
386
+ width: 100%;
387
+ opacity: 1;
388
+ }
389
+ }
262
390
  }
263
- `,Ao=C(yt)`
264
- justify-content: flex-start;
265
- `,Oo=C(yt)`
266
- justify-content: center;
267
- `,No=C(yt)`
268
- justify-content: flex-end;
269
- `;function Io({url:e,isLive:t}){const n=p.useRef(null),r=x(c=>c.techRef),o=p.useCallback(()=>{n.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),n.current.loadSource(e))},[e]),s=p.useCallback(()=>{if(!r.current)return;const l=t?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(l)),console.log("[Player] Version",ve.version),n.current=new ve(l),n.current.attachMedia(r.current),n.current.on(ve.Events.MEDIA_ATTACHED,o)}catch(g){throw new Error(`Error initializing Hls: ${g}`)}},[o,t,r,e]),a=p.useCallback(()=>{n.current&&(n.current.off(ve.Events.MEDIA_ATTACHED,o),n.current.destroy(),n.current=null)},[o]);return p.useEffect(()=>(ve.isSupported()&&s(),a),[a,s]),null}const Do=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),Lo=Object.freeze(Object.defineProperty({__proto__:null,default:({url:e,isLive:t})=>{const n=p.useRef(null),r=x(c=>c.techRef),o=p.useCallback(c=>{const u=c.codecs;return!(u&&new RegExp(/hev1|hvc1/).test(u))},[]),s=p.useCallback(()=>{if(!r.current)return;const l=t?{abr:{initialBitrate:{video:2e5}},protection:{ignoreKeyStatuses:!0}}:{};try{n.current=Pn.MediaPlayer().create(),console.log("[Player] URL",e),console.log("[Player] Version",n.current.getVersion()),console.log("[Player] Config init",JSON.stringify(l)),n.current.registerCustomCapabilitiesFilter(o),n.current.initialize(r.current,e,!0),n.current.updateSettings(l),console.log("[Player] Config current",JSON.stringify(n.current.getSettings()))}catch(g){throw new Error(`Error initializing Dash: ${g}`)}},[o,r,e,t]),a=p.useCallback(()=>{n.current&&(n.current.unregisterCustomCapabilitiesFilter(o),n.current.destroy(),n.current=null,console.log("[Player] Dash destroyed"))},[o]);return p.useEffect(()=>(s(),a),[a,s]),null}},Symbol.toStringTag,{value:"Module"}));U.LivePlayer=co,U.VodPlayer=Po,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
391
+ `;function wi({url:e,startDate:t,endDate:n,messages:r}){return c.jsx(ti,{startDate:new Date(t),endDate:new Date(n),children:c.jsx(bi,{url:e,messages:r})})}function bi({url:e,messages:t}){const n=v(r=>r.containerRef);return c.jsx(hr,{ref:n,children:c.jsxs(Uo,{eventFinishedMessage:t?.eventFinished,eventNotStartedMessage:t?.eventNotStarted,eventStartingSoonMessage:t?.eventStartingSoon,children:[c.jsx(si,{url:e}),c.jsx(xr,{}),c.jsxs(br,{children:[c.jsx(ps,{}),c.jsx(mr,{children:c.jsxs(gr,{children:[c.jsx(ei,{}),c.jsxs(yr,{children:[c.jsxs(vr,{children:[c.jsx(ds,{}),c.jsx(Er,{}),c.jsx(ni,{})]}),c.jsxs(Sr,{children:[c.jsx(Zo,{message:t?.live}),c.jsx(wr,{})]})]})]})})]})]})})}function xi(){const e=v(o=>o.isPlaying),t=v(o=>o.pause),n=v(o=>o.play),r=()=>{e?t():n()};return c.jsx(Oe,{onClick:r,children:e?c.jsx(In,{}):c.jsx(An,{})})}function Ci(){const e=v(o=>o.isPlaying),t=v(o=>o.pause),n=v(o=>o.play),r=()=>{e?t():n()};return c.jsx(Mn,{onClick:r})}const kr="vod-player-progress-bar";function Ei(){const e=m.useRef(null),t=m.useRef(null),[n,r]=m.useState(!1),[o,s]=m.useState(-1),[i,a]=m.useState(-1),l=v(h=>h.currentTime),u=v(h=>h.duration),f=v(h=>h.seek),d=v(h=>h.addIdleLock),g=v(h=>h.removeIdleLock),y=parseFloat((u?(i!==-1?i:l)/u*100:0).toFixed(1)),C=h=>{a(u*(h[0]/100)),d(kr)},S=()=>{i!==-1&&(f(i),a(-1),g(kr))},E=()=>r(!0),x=()=>r(!1),T=m.useCallback(h=>{const b=e.current,_=t.current;if(b&&_){const k=it(b),P=it(_),H=(h.pageX||h.clientX)-k.left,U=H/k.width;if(U<0)return;let I=H-P.width/2;I<0&&(I=0),I>k.width-P.width&&(I=-1),_.style.left=I>-1?`${I}px`:"auto",_.style.right=I>-1?"auto":"0px",s(U*u)}E()},[u]);return c.jsxs(On,{children:[c.jsx(Dt,{ref:e,value:[y],onPointerLeave:x,onPointerDown:x,onPointerMove:T,onValueChange:C,onValueCommit:S,step:.1}),c.jsx(Nn,{ref:t,$isVisible:n,children:c.jsx(Vn,{children:Te(o)})})]})}function Pi(){const e=v(n=>n.currentTime),t=v(n=>n.duration);return c.jsxs(cr,{children:[c.jsx(ur,{children:Te(e)}),c.jsx(fr,{}),c.jsx(dr,{children:Te(t)})]})}const ki=m.lazy(()=>Promise.resolve().then(()=>Ai));function Ti({url:e,watchHistory:t}){return c.jsxs(ar,{children:[c.jsx(ji,{url:e}),t?.enabled&&c.jsx(ki,{storageKey:t.storageKey})]})}function ji({url:e}){const t=v(n=>n.containerRef);return c.jsxs(hr,{ref:t,children:[c.jsx(pr,{url:e,isLive:!1}),c.jsx(xr,{}),c.jsxs(br,{children:[c.jsx(Ci,{}),c.jsx(mr,{children:c.jsxs(gr,{children:[c.jsx(Ei,{}),c.jsxs(yr,{children:[c.jsxs(vr,{children:[c.jsx(xi,{}),c.jsx(Er,{}),c.jsx(Pi,{})]}),c.jsx(ii,{}),c.jsx(Sr,{children:c.jsx(wr,{})})]})]})})]})]})}const Ri=60,_i=95;function Ii({storageKey:e}){const t=v(f=>f.currentTime),n=v(f=>f.duration),r=v(f=>f.isPlaying),o=v(f=>f.setStartTime),s=m.useRef(!1),i=m.useCallback(()=>{window.localStorage.setItem(e,JSON.stringify({currentTime:t,duration:n}))},[t,n,e]),a=m.useCallback(()=>{const f=window.localStorage.getItem(e);if(f){const d=JSON.parse(f);return{startTime:d.currentTime,progress:d.currentTime/d.duration*100}}return{startTime:null,progress:null}},[e]),l=m.useCallback(()=>{t<Ri||i()},[t,i]),u=m.useCallback(()=>{if(s.current)return;const{progress:f,startTime:d}=a();d&&f&&f<_i&&(o(d),s.current=!0)},[a,o]);return Fe(()=>l(),r?1e3:null),m.useEffect(()=>{u()},[u]),null}const Ai=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"}));oe.LivePlayer=wi,oe.VodPlayer=Ti,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})}));
270
392
  //# sourceMappingURL=react-video-player.umd.js.map