@halibegic/react-video-player 0.0.2 → 0.0.4

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 (61) 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/check-icon.d.ts +2 -0
  15. package/dist/components/player/ui/icons/fullscreen-enter-icon.d.ts +2 -0
  16. package/dist/components/player/ui/icons/fullscreen-exit-icon.d.ts +2 -0
  17. package/dist/components/player/ui/icons/hd-icon.d.ts +2 -0
  18. package/dist/components/player/ui/icons/pause-icon.d.ts +2 -0
  19. package/dist/components/player/ui/icons/play-icon.d.ts +2 -0
  20. package/dist/components/player/ui/icons/volume-max-icon.d.ts +2 -0
  21. package/dist/components/player/ui/icons/volume-min-icon.d.ts +2 -0
  22. package/dist/components/player/ui/icons/volume-mute-icon.d.ts +2 -0
  23. package/dist/components/player/ui/player-button.d.ts +5 -2
  24. package/dist/components/player/ui/player-controls.styles.d.ts +7 -0
  25. package/dist/components/player/ui/player-dropdown.d.ts +11 -0
  26. package/dist/components/player/ui/player-fullscreen.d.ts +1 -1
  27. package/dist/components/player/ui/player-idle-check.d.ts +3 -0
  28. package/dist/components/player/ui/player-playback-indicator.d.ts +4 -0
  29. package/dist/components/player/ui/player-progress.styles.d.ts +6 -0
  30. package/dist/components/player/ui/player-quality-control.d.ts +2 -0
  31. package/dist/components/player/ui/player-remaining-time.styles.d.ts +6 -0
  32. package/dist/components/player/ui/player-slider.d.ts +3 -5
  33. package/dist/components/player/ui/player-spinner.d.ts +3 -0
  34. package/dist/components/player/ui/player-volume.d.ts +2 -0
  35. package/dist/components/vod-player/vod-player-playback-indicator.d.ts +2 -0
  36. package/dist/components/vod-player/vod-player-remaining-time.d.ts +2 -0
  37. package/dist/components/vod-player/vod-player-watch-history.d.ts +5 -0
  38. package/dist/components/vod-player.d.ts +5 -1
  39. package/dist/config/player.d.ts +3 -5
  40. package/dist/hooks/use-interval.d.ts +2 -0
  41. package/dist/hooks/use-isomorphic-layout-effect.d.ts +3 -0
  42. package/dist/hooks/use-state-refresh.d.ts +2 -0
  43. package/dist/react-video-player.es.js +6817 -3
  44. package/dist/react-video-player.es.js.map +1 -1
  45. package/dist/react-video-player.umd.js +369 -103
  46. package/dist/react-video-player.umd.js.map +1 -1
  47. package/dist/stores/live-player-store.d.ts +21 -0
  48. package/dist/stores/player-store.d.ts +12 -2
  49. package/dist/types/player.d.ts +10 -0
  50. package/dist/utils/dom.d.ts +11 -0
  51. package/dist/utils/player.d.ts +17 -3
  52. package/package.json +7 -9
  53. package/dist/components/player/tech/player-dash-tech.d.ts +0 -6
  54. package/dist/components/player/tech/player-hls-tech.d.ts +0 -6
  55. package/dist/index-DXKCbM7O.js +0 -2003
  56. package/dist/index-DXKCbM7O.js.map +0 -1
  57. package/dist/player-dash-tech-D7KQCWFx.js +0 -50
  58. package/dist/player-dash-tech-D7KQCWFx.js.map +0 -1
  59. package/dist/player-hls-tech-sXKjWi4D.js +0 -29
  60. package/dist/player-hls-tech-sXKjWi4D.js.map +0 -1
  61. /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(he,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react-dom"),require("hls.js")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","hls.js"],R):(he=typeof globalThis<"u"?globalThis:he||self,R(he.ReactVideoPlayer={},he.React,he.ReactDOM,he.Hls))})(this,(function(he,R,Ar,De){"use strict";function Mr(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 f=Mr(R),kr=Mr(Ar);var Et={exports:{}},lt={};/**
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 Ir;function ma(){if(Ir)return lt;Ir=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 lt.Fragment=t,lt.jsx=n,lt.jsxs=n,lt}var ut={};/**
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 _r;function ha(){return _r||(_r=1,process.env.NODE_ENV!=="production"&&(function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===k?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case g:return"Fragment";case b:return"Profiler";case w:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList";case N:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case y:return"Portal";case v:return(C.displayName||"Context")+".Provider";case S:return(C._context.displayName||"Context")+".Consumer";case x:var O=C.render;return C=C.displayName,C||(C=O.displayName||O.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case E:return O=C.displayName||null,O!==null?O:e(C.type)||"Memo";case I:O=C._payload,C=C._init;try{return e(C(O))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var O=!1}catch{O=!0}if(O){O=console;var L=O.error,X=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return L.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X),t(C)}}function r(C){if(C===g)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===I)return"<...>";try{var O=e(C);return O?"<"+O+">":"<...>"}catch{return"<...>"}}function o(){var C=D.A;return C===null?null:C.getOwner()}function s(){return Error("react-stack-top-frame")}function i(C){if(H.call(C,"key")){var O=Object.getOwnPropertyDescriptor(C,"key").get;if(O&&O.isReactWarning)return!1}return C.key!==void 0}function a(C,O){function L(){K||(K=!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)",O))}L.isReactWarning=!0,Object.defineProperty(C,"key",{get:L,configurable:!0})}function c(){var C=e(this.type);return j[C]||(j[C]=!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.")),C=this.props.ref,C!==void 0?C:null}function l(C,O,L,X,re,te,oe,Y){return L=te.ref,C={$$typeof:m,type:C,key:O,props:te,_owner:re},(L!==void 0?L:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function d(C,O,L,X,re,te,oe,Y){var G=O.children;if(G!==void 0)if(X)if(W(G)){for(X=0;X<G.length;X++)u(G[X]);Object.freeze&&Object.freeze(G)}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 u(G);if(H.call(O,"key")){G=e(C);var se=Object.keys(O).filter(function(Oe){return Oe!=="key"});X=0<se.length?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}",A[G+X]||(se=0<se.length?"{"+se.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} />`,X,G,se,G),A[G+X]=!0)}if(G=null,L!==void 0&&(n(L),G=""+L),i(O)&&(n(O.key),G=""+O.key),"key"in O){L={};for(var Re in O)Re!=="key"&&(L[Re]=O[Re])}else L=O;return G&&a(L,typeof C=="function"?C.displayName||C.name||"Unknown":C),l(C,G,te,re,o(),L,oe,Y)}function u(C){typeof C=="object"&&C!==null&&C.$$typeof===m&&C._store&&(C._store.validated=1)}var h=R,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),v=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),D=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,W=Array.isArray,B=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(C){return C()}};var K,j={},F=h.react_stack_bottom_frame.bind(h,s)(),_=B(r(s)),A={};ut.Fragment=g,ut.jsx=function(C,O,L,X,re){var te=1e4>D.recentlyCreatedOwnerStacks++;return d(C,O,L,!1,X,re,te?Error("react-stack-top-frame"):F,te?B(r(C)):_)},ut.jsxs=function(C,O,L,X,re){var te=1e4>D.recentlyCreatedOwnerStacks++;return d(C,O,L,!0,X,re,te?Error("react-stack-top-frame"):F,te?B(r(C)):_)}})()),ut}var Or;function ga(){return Or||(Or=1,process.env.NODE_ENV==="production"?Et.exports=ma():Et.exports=ha()),Et.exports}var p=ga();const va=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Ct(e,t){const n=R.useRef(e);va(()=>{n.current=e},[e]),R.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function ya(e){const[,t]=R.useState(0);Ct(()=>t(n=>n+1),e)}const Dr=e=>{let t;const n=new Set,r=(l,d)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const h=t;t=d??(typeof u!="object"||u===null)?u:Object.assign({},t,u),n.forEach(m=>m(t,h))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,o,a);return a},wa=(e=>e?Dr(e):Dr),ba=e=>e;function wn(e,t=ba){const n=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(n),n}const Lr=e=>{const t=wa(e),n=r=>wn(t,r);return Object.assign(n,t),n},Nr=(e=>e?Lr(e):Lr),xa=(e,t)=>Nr(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})})),jr=R.createContext(null),Sa=({children:e,startDate:t,endDate:n})=>{const r=R.useRef(null);return r.current||(r.current=xa(t,n)),p.jsx(jr.Provider,{value:r.current,children:e})},ae=e=>{const t=R.useContext(jr);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return wn(t,e)};var Z=function(){return Z=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},Z.apply(this,arguments)};function Fr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Te(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 Ea(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ca=/^((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)-.*))$/,Pa=Ea(function(e){return Ca.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),q="-ms-",dt="-moz-",U="-webkit-",$r="comm",Pt="rule",bn="decl",Ra="@import",Vr="@keyframes",Ta="@layer",Hr=Math.abs,xn=String.fromCharCode,Sn=Object.assign;function Aa(e,t){return ne(e,0)^45?(((t<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}function Br(e){return e.trim()}function Se(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,n){return e.replace(t,n)}function Rt(e,t,n){return e.indexOf(t,n)}function ne(e,t){return e.charCodeAt(t)|0}function We(e,t,n){return e.slice(t,n)}function ge(e){return e.length}function Wr(e){return e.length}function ft(e,t){return t.push(e),e}function Ma(e,t){return e.map(t).join("")}function zr(e,t){return e.filter(function(n){return!Se(n,t)})}var Tt=1,ze=1,Ur=0,ue=0,J=0,Ue="";function At(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Tt,column:ze,length:i,return:"",siblings:a}}function Ae(e,t){return Sn(At("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ke(e){for(;e.root;)e=Ae(e.root,{children:[e]});ft(e,e.siblings)}function ka(){return J}function Ia(){return J=ue>0?ne(Ue,--ue):0,ze--,J===10&&(ze=1,Tt--),J}function fe(){return J=ue<Ur?ne(Ue,ue++):0,ze++,J===10&&(ze=1,Tt++),J}function Le(){return ne(Ue,ue)}function Mt(){return ue}function kt(e,t){return We(Ue,e,t)}function En(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 _a(e){return Tt=ze=1,Ur=ge(Ue=e),ue=0,[]}function Oa(e){return Ue="",e}function Cn(e){return Br(kt(ue-1,Pn(e===91?e+2:e===40?e+1:e)))}function Da(e){for(;(J=Le())&&J<33;)fe();return En(e)>2||En(J)>3?"":" "}function La(e,t){for(;--t&&fe()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return kt(e,Mt()+(t<6&&Le()==32&&fe()==32))}function Pn(e){for(;fe();)switch(J){case e:return ue;case 34:case 39:e!==34&&e!==39&&Pn(J);break;case 40:e===41&&Pn(e);break;case 92:fe();break}return ue}function Na(e,t){for(;fe()&&e+J!==57;)if(e+J===84&&Le()===47)break;return"/*"+kt(t,ue-1)+"*"+xn(e===47?e:fe())}function ja(e){for(;!En(Le());)fe();return kt(e,ue)}function Fa(e){return Oa(It("",null,null,null,[""],e=_a(e),0,[0],e))}function It(e,t,n,r,o,s,i,a,c){for(var l=0,d=0,u=i,h=0,m=0,y=0,g=1,w=1,b=1,S=0,v="",x=o,P=s,T=r,E=v;w;)switch(y=S,S=fe()){case 40:if(y!=108&&ne(E,u-1)==58){Rt(E+=$(Cn(S),"&","&\f"),"&\f",Hr(l?a[l-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:E+=Cn(S);break;case 9:case 10:case 13:case 32:E+=Da(y);break;case 92:E+=La(Mt()-1,7);continue;case 47:switch(Le()){case 42:case 47:ft($a(Na(fe(),Mt()),t,n,c),c);break;default:E+="/"}break;case 123*g:a[l++]=ge(E)*b;case 125*g:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+d:b==-1&&(E=$(E,/\f/g,"")),m>0&&ge(E)-u&&ft(m>32?Gr(E+";",r,n,u-1,c):Gr($(E," ","")+";",r,n,u-2,c),c);break;case 59:E+=";";default:if(ft(T=Kr(E,t,n,l,d,o,a,v,x=[],P=[],u,s),s),S===123)if(d===0)It(E,t,T,T,x,s,u,a,P);else switch(h===99&&ne(E,3)===110?100:h){case 100:case 108:case 109:case 115:It(e,T,T,r&&ft(Kr(e,T,T,0,0,o,a,v,o,x=[],u,P),P),o,P,u,a,r?x:P);break;default:It(E,T,T,T,[""],P,0,a,P)}}l=d=m=0,g=b=1,v=E="",u=i;break;case 58:u=1+ge(E),m=y;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&Ia()==125)continue}switch(E+=xn(S),S*g){case 38:b=d>0?1:(E+="\f",-1);break;case 44:a[l++]=(ge(E)-1)*b,b=1;break;case 64:Le()===45&&(E+=Cn(fe())),h=Le(),d=u=ge(v=E+=ja(Mt())),S++;break;case 45:y===45&&ge(E)==2&&(g=0)}}return s}function Kr(e,t,n,r,o,s,i,a,c,l,d,u){for(var h=o-1,m=o===0?s:[""],y=Wr(m),g=0,w=0,b=0;g<r;++g)for(var S=0,v=We(e,h+1,h=Hr(w=i[g])),x=e;S<y;++S)(x=Br(w>0?m[S]+" "+v:$(v,/&\f/g,m[S])))&&(c[b++]=x);return At(e,t,n,o===0?Pt:a,c,l,d,u)}function $a(e,t,n,r){return At(e,t,n,$r,xn(ka()),We(e,2,-2),0,r)}function Gr(e,t,n,r,o){return At(e,t,n,bn,We(e,0,r),We(e,r+1,-1),r,o)}function Yr(e,t,n){switch(Aa(e,t)){case 5103:return U+"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 U+e+e;case 4789:return dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+dt+e+q+e+e;case 5936:switch(ne(e,t+11)){case 114:return U+e+q+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+q+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+q+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+q+e+e;case 6165:return U+e+q+"flex-"+e+e;case 5187:return U+e+$(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return U+e+q+"flex-item-"+$(e,/flex-|-self/g,"")+(Se(e,/flex-|baseline/)?"":q+"grid-row-"+$(e,/flex-|-self/g,""))+e;case 4675:return U+e+q+"flex-line-pack"+$(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+q+$(e,"shrink","negative")+e;case 5292:return U+e+q+$(e,"basis","preferred-size")+e;case 6060:return U+"box-"+$(e,"-grow","")+U+e+q+$(e,"grow","positive")+e;case 4554:return U+$(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4200:if(!Se(e,/flex-|baseline/))return q+"grid-column-align"+We(e,t)+e;break;case 2592:case 3360:return q+$(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Se(r.props,/grid-\w+-end/)})?~Rt(e+(n=n[t].value),"span",0)?e:q+$(e,"-start","")+e+q+"grid-row-span:"+(~Rt(n,"span",0)?Se(n,/\d+/):+Se(n,/\d+/)-+Se(e,/\d+/))+";":q+$(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Se(r.props,/grid-\w+-start/)})?e:q+$($(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,U+"$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(ge(e)-1-t>6)switch(ne(e,t+1)){case 109:if(ne(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+dt+(ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rt(e,"stretch",0)?Yr($(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return $(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,c,l){return q+o+":"+s+l+(i?q+o+"-span:"+(a?c:+c-+s)+l:"")+e});case 4949:if(ne(e,t+6)===121)return $(e,":",":"+U)+e;break;case 6444:switch(ne(e,ne(e,14)===45?18:11)){case 120:return $(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(ne(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+q+"$2box$3")+e;case 100:return $(e,":",":"+q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return $(e,"scroll-","scroll-snap-")+e}return e}function _t(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Va(e,t,n,r){switch(e.type){case Ta:if(e.children.length)break;case Ra:case bn:return e.return=e.return||e.value;case $r:return"";case Vr:return e.return=e.value+"{"+_t(e.children,r)+"}";case Pt:if(!ge(e.value=e.props.join(",")))return""}return ge(n=_t(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ha(e){var t=Wr(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 Ba(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wa(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case bn:e.return=Yr(e.value,e.length,n);return;case Vr:return _t([Ae(e,{value:$(e.value,"@","@"+U)})],r);case Pt:if(e.length)return Ma(n=e.props,function(o){switch(Se(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ke(Ae(e,{props:[$(o,/:(read-\w+)/,":"+dt+"$1")]})),Ke(Ae(e,{props:[o]})),Sn(e,{props:zr(n,r)});break;case"::placeholder":Ke(Ae(e,{props:[$(o,/:(plac\w+)/,":"+U+"input-$1")]})),Ke(Ae(e,{props:[$(o,/:(plac\w+)/,":"+dt+"$1")]})),Ke(Ae(e,{props:[$(o,/:(plac\w+)/,q+"input-$1")]})),Ke(Ae(e,{props:[o]})),Sn(e,{props:zr(n,r)});break}return""})}}var za={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",Xr="active",qr="data-styled-version",Ot="6.1.19",Rn=`/*!sc*/
23
+ `,Dt=typeof window<"u"&&typeof document<"u",Ua=!!(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"),Zr=/invalid hook call/i,Lt=new Set,Ka=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=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];Zr.test(i)?(s=!1,Lt.delete(r)):o.apply(void 0,Te([i],a,!1))},R.useRef(),s&&!Lt.has(r)&&(console.warn(r),Lt.add(r))}catch(i){Zr.test(i.message)&&Lt.delete(r)}finally{console.error=o}}},Nt=Object.freeze([]),Ge=Object.freeze({});function Ga(e,t,n){return n===void 0&&(n=Ge),e.theme!==n.theme&&e.theme||t||n.theme}var Tn=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"]),Ya=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Xa=/(^-|-$)/g;function Jr(e){return e.replace(Ya,"-").replace(Xa,"")}var qa=/(a)(d)/gi,jt=52,Qr=function(e){return String.fromCharCode(e+(e>25?39:97))};function An(e){var t,n="";for(t=Math.abs(e);t>jt;t=t/jt|0)n=Qr(t%jt)+n;return(Qr(t%jt)+n).replace(qa,"$1-$2")}var Mn,eo=5381,je=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},to=function(e){return je(eo,e)};function no(e){return An(to(e)>>>0)}function ro(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function kn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var oo=typeof Symbol=="function"&&Symbol.for,so=oo?Symbol.for("react.memo"):60115,Za=oo?Symbol.for("react.forward_ref"):60112,Ja={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Qa={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},io={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ec=((Mn={})[Za]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mn[so]=io,Mn);function ao(e){return("type"in(t=e)&&t.type.$$typeof)===so?io:"$$typeof"in e?ec[e.$$typeof]:Ja;var t}var tc=Object.defineProperty,nc=Object.getOwnPropertyNames,co=Object.getOwnPropertySymbols,rc=Object.getOwnPropertyDescriptor,oc=Object.getPrototypeOf,lo=Object.prototype;function uo(e,t,n){if(typeof t!="string"){if(lo){var r=oc(t);r&&r!==lo&&uo(e,r,n)}var o=nc(t);co&&(o=o.concat(co(t)));for(var s=ao(e),i=ao(t),a=0;a<o.length;++a){var c=o[a];if(!(c in Qa||n&&n[c]||i&&c in i||s&&c in s)){var l=rc(t,c);try{tc(e,c,l)}catch{}}}}return e}function Ye(e){return typeof e=="function"}function In(e){return typeof e=="object"&&"styledComponentId"in e}function Fe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function _n(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Xe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function On(e,t,n){if(n===void 0&&(n=!1),!n&&!Xe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=On(e[r],t[r]);else if(Xe(t))for(var r in t)e[r]=On(e[r],t[r]);return e}function Dn(e,t){Object.defineProperty(e,"toString",{value:t})}var sc=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 ic(){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 qe(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(ic.apply(void 0,Te([sc[e]],t,!1)).trim())}var ac=(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 qe(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),c=(i=0,n.length);i<c;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(Rn);return n},e})(),cc=1<<30,Ft=new Map,$t=new Map,Vt=1,Ht=function(e){if(Ft.has(e))return Ft.get(e);for(;$t.has(Vt);)Vt++;var t=Vt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>cc))throw qe(16,"".concat(t));return Ft.set(e,t),$t.set(t,e),t},lc=function(e,t){Vt=t+1,Ft.set(e,t),$t.set(t,e)},uc="style[".concat(Ne,"][").concat(qr,'="').concat(Ot,'"]'),dc=new RegExp("^".concat(Ne,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),fc=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)},pc=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Rn),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(dc);if(c){var l=0|parseInt(c[1],10),d=c[2];l!==0&&(lc(d,l),fc(e,d,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},fo=function(e){for(var t=document.querySelectorAll(uc),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ne)!==Xr&&(pc(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function mc(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var po=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var c=Array.from(a.querySelectorAll("style[".concat(Ne,"]")));return c[c.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(Ne,Xr),r.setAttribute(qr,Ot);var i=mc();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},hc=(function(){function e(t){this.element=po(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 qe(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})(),gc=(function(){function e(t){this.element=po(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})(),vc=(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})(),mo=Dt,yc={isServer:!Dt,useCSSOMInjection:!Ua},ho=(function(){function e(t,n,r){t===void 0&&(t=Ge),n===void 0&&(n={});var o=this;this.options=Z(Z({},yc),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Dt&&mo&&(mo=!1,fo(this)),Dn(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,c="",l=function(u){var h=(function(b){return $t.get(b)})(u);if(h===void 0)return"continue";var m=s.names.get(h),y=i.getGroup(u);if(m===void 0||!m.size||y.length===0)return"continue";var g="".concat(Ne,".g").concat(u,'[id="').concat(h,'"]'),w="";m!==void 0&&m.forEach(function(b){b.length>0&&(w+="".concat(b,","))}),c+="".concat(y).concat(g,'{content:"').concat(w,'"}').concat(Rn)},d=0;d<a;d++)l(d);return c})(o)})}return e.registerId=function(t){return Ht(t)},e.prototype.rehydrate=function(){!this.server&&Dt&&fo(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Z(Z({},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 vc(o):r?new hc(o):new gc(o)})(this.options),new ac(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(Ht(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(Ht(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ht(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),wc=/&/g,bc=/^\s*\/\/.*$/gm;function go(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=go(n.children,t)),n})}function xc(e){var t,n,r,o=Ge,s=o.options,i=s===void 0?Ge:s,a=o.plugins,c=a===void 0?Nt:a,l=function(h,m,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):h},d=c.slice();d.push(function(h){h.type===Pt&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(wc,n).replace(r,l))}),i.prefix&&d.push(Wa),d.push(Va);var u=function(h,m,y,g){m===void 0&&(m=""),y===void 0&&(y=""),g===void 0&&(g="&"),t=g,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var w=h.replace(bc,""),b=Fa(y||m?"".concat(y," ").concat(m," { ").concat(w," }"):w);i.namespace&&(b=go(b,i.namespace));var S=[];return _t(b,Ha(d.concat(Ba(function(v){return S.push(v)})))),S};return u.hash=c.length?c.reduce(function(h,m){return m.name||qe(15),je(h,m.name)},eo).toString():"",u}var Sc=new ho,Ln=xc(),vo=R.createContext({shouldForwardProp:void 0,styleSheet:Sc,stylis:Ln});vo.Consumer,R.createContext(void 0);function yo(){return R.useContext(vo)}var Nn=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=Ln);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,Dn(this,function(){throw qe(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ln),this.name+t.hash},e})(),Ec=function(e){return e>="A"&&e<="Z"};function wo(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Ec(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var bo=function(e){return e==null||e===!1||e===""},xo=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!bo(s)&&(Array.isArray(s)&&s.isCss||Ye(s)?r.push("".concat(wo(o),":"),s,";"):Xe(s)?r.push.apply(r,Te(Te(["".concat(o," {")],xo(s),!1),["}"],!1)):r.push("".concat(wo(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in za||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function $e(e,t,n,r){if(bo(e))return[];if(In(e))return[".".concat(e.styledComponentId)];if(Ye(e)){if(!Ye(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 Nn||Xe(o)||o===null||console.error("".concat(ro(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.")),$e(o,t,n,r)}var s;return e instanceof Nn?n?(e.inject(n,r),[e.getName(r)]):[e]:Xe(e)?xo(e):Array.isArray(e)?Array.prototype.concat.apply(Nt,e.map(function(i){return $e(i,t,n,r)})):[e.toString()]}function Cc(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ye(n)&&!In(n))return!1}return!0}var Pc=to(Ot),Rc=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Cc(t),this.componentId=n,this.baseHash=je(Pc,n),this.baseStyle=r,ho.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=Fe(o,this.staticRulesId);else{var s=_n($e(this.rules,t,n,r)),i=An(je(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=Fe(o,i),this.staticRulesId=i}else{for(var c=je(this.baseHash,r.hash),l="",d=0;d<this.rules.length;d++){var u=this.rules[d];if(typeof u=="string")l+=u,process.env.NODE_ENV!=="production"&&(c=je(c,u));else if(u){var h=_n($e(u,t,n,r));c=je(c,h+d),l+=h}}if(l){var m=An(c>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(l,".".concat(m),void 0,this.componentId)),o=Fe(o,m)}}return o},e})(),So=R.createContext(void 0);So.Consumer;var jn={},Eo=new Set;function Tc(e,t,n){var r=In(e),o=e,s=!kn(e),i=t.attrs,a=i===void 0?Nt:i,c=t.componentId,l=c===void 0?(function(x,P){var T=typeof x!="string"?"sc":Jr(x);jn[T]=(jn[T]||0)+1;var E="".concat(T,"-").concat(no(Ot+T+jn[T]));return P?"".concat(P,"-").concat(E):E})(t.displayName,t.parentComponentId):c,d=t.displayName,u=d===void 0?(function(x){return kn(x)?"styled.".concat(x):"Styled(".concat(ro(x),")")})(e):d,h=t.displayName&&t.componentId?"".concat(Jr(t.displayName),"-").concat(t.componentId):t.componentId||l,m=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,y=t.shouldForwardProp;if(r&&o.shouldForwardProp){var g=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;y=function(x,P){return g(x,P)&&w(x,P)}}else y=g}var b=new Rc(n,h,r?o.componentStyle:void 0);function S(x,P){return(function(T,E,I){var N=T.attrs,k=T.componentStyle,D=T.defaultProps,H=T.foldedComponentIds,W=T.styledComponentId,B=T.target,K=R.useContext(So),j=yo(),F=T.shouldForwardProp||j.shouldForwardProp;process.env.NODE_ENV!=="production"&&R.useDebugValue(W);var _=Ga(E,K,D)||Ge,A=(function(te,oe,Y){for(var G,se=Z(Z({},oe),{className:void 0,theme:Y}),Re=0;Re<te.length;Re+=1){var Oe=Ye(G=te[Re])?G(se):G;for(var xe in Oe)se[xe]=xe==="className"?Fe(se[xe],Oe[xe]):xe==="style"?Z(Z({},se[xe]),Oe[xe]):Oe[xe]}return oe.className&&(se.className=Fe(se.className,oe.className)),se})(N,E,_),C=A.as||B,O={};for(var L in A)A[L]===void 0||L[0]==="$"||L==="as"||L==="theme"&&A.theme===_||(L==="forwardedAs"?O.as=A.forwardedAs:F&&!F(L,C)||(O[L]=A[L],F||process.env.NODE_ENV!=="development"||Pa(L)||Eo.has(L)||!Tn.has(C)||(Eo.add(L),console.warn('styled-components: it looks like an unknown prop "'.concat(L,'" 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 X=(function(te,oe){var Y=yo(),G=te.generateAndInjectStyles(oe,Y.styleSheet,Y.stylis);return process.env.NODE_ENV!=="production"&&R.useDebugValue(G),G})(k,A);process.env.NODE_ENV!=="production"&&T.warnTooManyClasses&&T.warnTooManyClasses(X);var re=Fe(H,W);return X&&(re+=" "+X),A.className&&(re+=" "+A.className),O[kn(C)&&!Tn.has(C)?"class":"className"]=re,I&&(O.ref=I),R.createElement(C,O)})(v,x,P)}S.displayName=u;var v=R.forwardRef(S);return v.attrs=m,v.componentStyle=b,v.displayName=u,v.shouldForwardProp=y,v.foldedComponentIds=r?Fe(o.foldedComponentIds,o.styledComponentId):"",v.styledComponentId=h,v.target=r?o.target:e,Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=r?(function(P){for(var T=[],E=1;E<arguments.length;E++)T[E-1]=arguments[E];for(var I=0,N=T;I<N.length;I++)On(P,N[I],!0);return P})({},o.defaultProps,x):x}}),process.env.NODE_ENV!=="production"&&(Ka(u,h),v.warnTooManyClasses=(function(x,P){var T={},E=!1;return function(I){if(!E&&(T[I]=!0,Object.keys(T).length>=200)){var N=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(x).concat(N,`.
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,33 +74,64 @@ 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 />`),E=!0,T={}}}})(u,h)),Dn(v,function(){return".".concat(v.styledComponentId)}),s&&uo(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}function Co(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 Po=function(e){return Object.assign(e,{isCss:!0})};function Bt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ye(e)||Xe(e))return Po($e(Co(Nt,Te([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?$e(r):Po($e(Co(r,t)))}function Fn(e,t,n){if(n===void 0&&(n=Ge),!t)throw qe(1,t);var r=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,n,Bt.apply(void 0,Te([o],s,!1)))};return r.attrs=function(o){return Fn(e,t,Z(Z({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return Fn(e,t,Z(Z({},n),o))},r}var Ro=function(e){return Fn(Tc,e)},z=Ro;Tn.forEach(function(e){z[e]=Ro(e)});function Ac(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=_n(Bt.apply(void 0,Te([e],t,!1))),o=no(r);return new Nn(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 Wt="__sc-".concat(Ne,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Wt]||(window[Wt]=0),window[Wt]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
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[Wt]+=1);function Mc({children:e,eventFinishedMessage:t,eventNotStartedMessage:n,eventStartingSoonMessage:r}){const o=ae(l=>l.startDate),s=ae(l=>l.endDate),i=Date.now(),a=i<o.getTime(),c=i>s.getTime();return ya(5e3),a?p.jsx(kc,{startDate:o,title:n||"Event has not started yet.",message:r||"Starting in few seconds..."}):c?p.jsx(Ic,{title:t||"Event has finished."}):p.jsx(p.Fragment,{children:e})}function kc({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?p.jsxs($n,{children:[p.jsx(Vn,{children:t}),p.jsxs(_c,{children:["(",o>0?`${o}h ${s}m`:`${s}m`,")"]})]}):p.jsx($n,{children:p.jsx(Vn,{children:n})})}function Ic({title:e}){return p.jsx($n,{children:p.jsx(Vn,{children:e})})}const $n=z.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
+ `,Vn=z.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
+ `,_c=z.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 Oc(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 Ze({shape:e="circle",...t}){return p.jsx(Dc,{$shape:e,...t})}const Dc=z.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.8125rem;
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
+ border-radius: 1rem;
124
+ transition: color 0.2s ease-in-out, background 0.2s ease-in-out;
95
125
 
96
126
  svg {
97
127
  width: 1.25rem;
98
128
  height: 1.25rem;
99
129
  flex-shrink: 0;
130
+ pointer-events: none;
100
131
  }
101
132
 
102
133
  &:hover {
103
- background: rgba(0, 0, 0, 0.1);
134
+ background: rgba(255, 255, 255, 0.1);
104
135
  }
105
136
 
106
137
  &:focus {
@@ -111,50 +142,155 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);function mt({...e}){r
111
142
  opacity: 0.5;
112
143
  cursor: not-allowed;
113
144
  }
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
145
 
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;
146
+ ${({$shape:e})=>e==="circle"&&Bt`
147
+ padding: 0;
148
+ width: 2rem;
149
+ height: 2rem;
150
+ `}
151
+
152
+ ${({$shape:e})=>e==="square"&&Bt`
153
+ padding: 0.25rem 0.5rem;
154
+ `}
155
+ `;function Lc({message:e,...t}){const n=ae(s=>s.delay),r=ae(s=>s.setDelay),o=()=>r(0);return n?p.jsxs(Ze,{onClick:o,shape:"square",...t,children:[p.jsx("span",{children:e||"Live"}),p.jsx(Oc,{})]}):null}function To(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M6 5H8V19H6V5ZM16 5H18V19H16V5Z"})})}function Ao(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z"})})}function Nc(e,t,n){const r={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(r[t]/r[n])}function jc(e){return Nc(e,"milliseconds","seconds")}const Je=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`};function Fc(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const Mo=Fc(/iPhone|iPad|iPod/i);function $c(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function Vc(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function Hc(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function Bc(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 Wc=(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:()=>jc(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})}}),zc=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}})}),Uc=e=>({level:null,levels:null,setLevels:t=>e({levels:t}),setLevel:t=>e({level:t})}),Kc=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{Hc(document),e({isFullscreen:!1})},requestFullscreen:()=>{const n=t().techRef.current,r=t().containerRef.current;if(!n||!r)return;const o=Mo?n:r;o&&Vc(o),e({isFullscreen:!0})},setIsFullscreen:n=>e({isFullscreen:n}),setIsFullscreenReady:n=>e({isFullscreenReady:n})}),Gc=e=>({url:"",setURL:t=>e({url:t})}),Yc=e=>()=>({...e}),Xc=(e,t)=>Nr()((...n)=>({...Wc(...n),...zc(...n),...Kc(...n),...Uc(...n),...Gc(...n),...Yc({techRef:e,containerRef:t})(...n)})),ko=R.createContext(null);function qc({children:e}){const t=R.useRef(null),n=R.useRef(null),r=R.useRef(null);return t.current||(t.current=Xc(n,r)),p.jsx(ko.Provider,{value:t.current,children:e})}const M=e=>{const t=R.useContext(ko);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return wn(t,e)};function Zc(){const e=M(c=>c.isPlaying),t=M(c=>c.pause),n=M(c=>c.pauseTime),r=M(c=>c.pauseTimeDiff),o=M(c=>c.play),s=ae(c=>c.delay),i=ae(c=>c.setDelay),a=()=>{e?t():(n&&i(s+r()),o())};return p.jsx(Ze,{onClick:a,children:e?p.jsx(To,{}):p.jsx(Ao,{})})}function Io({className:e,onClick:t,...n}){const r=R.useRef(null),o=M(u=>u.exitFullscreen),s=M(u=>u.isFullscreen),i=M(u=>u.requestFullscreen),a=u=>{d()?(l(),s?o():i()):c(u)},c=u=>{r.current=window.setTimeout(()=>{t?.(u),l()},200)},l=()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},d=()=>r.current!==null;return R.useEffect(()=>()=>{l()},[]),p.jsx(Jc,{onClick:a,className:e,"aria-label":"Player playback indicator",...n})}const Jc=z.button`
124
156
  position: absolute;
125
157
  top: 0;
126
- right: 0;
127
- bottom: 0;
128
158
  left: 0;
129
159
  display: flex;
130
160
  width: 100%;
131
161
  height: 100%;
162
+ cursor: default;
132
163
  align-items: center;
133
164
  justify-content: center;
134
- `,io=Ir`
135
- from {
136
- transform: rotate(0deg);
165
+ outline: none;
166
+ background: none;
167
+ border: none;
168
+ padding: 0;
169
+
170
+ &:focus {
171
+ outline: none;
137
172
  }
138
- to {
139
- transform: rotate(360deg);
173
+ `;function Qc(){const e=M(r=>r.isPlaying),t=M(r=>r.play),n=()=>{e||t()};return p.jsx(Io,{onClick:n})}const _o=z.div`
174
+ position: relative;
175
+ width: 100%;
176
+ margin-bottom: -0.25rem;
177
+ `,Oo=z.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
+ `,Do=z.p`
189
+ margin: 0;
190
+ padding: 0.25rem;
191
+ font-variant-numeric: tabular-nums;
192
+ font-size: 0.8125rem;
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 Lo(e,[t,n]){return Math.min(n,Math.max(t,e))}function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function No(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zt(...e){return t=>{let n=!1;const r=e.map(o=>{const s=No(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():No(e[o],null)}}}}function Q(...e){return f.useCallback(zt(...e),e)}function Qe(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),c=n.length;n=[...n,i];const l=u=>{const{scope:h,children:m,...y}=u,g=h?.[e]?.[c]||a,w=f.useMemo(()=>y,Object.values(y));return p.jsx(g.Provider,{value:w,children:m})};l.displayName=s+"Provider";function d(u,h){const m=h?.[e]?.[c]||a,y=f.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[l,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const c=a?.[e]||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,el(o,...t)]}function el(...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:c,scopeName:l})=>{const u=c(s)[`__scope${l}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Me=globalThis?.document?f.useLayoutEffect:()=>{},tl=f[" useInsertionEffect ".trim().toString()]||Me;function Hn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=nl({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const u=d.current;u!==a&&console.warn(`${r} is changing from ${u?"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.`),d.current=a},[a,r])}const l=f.useCallback(d=>{if(a){const u=rl(d)?d(e):d;u!==e&&i.current?.(u)}else s(d)},[a,e,s,i]);return[c,l]}function nl({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return tl(()=>{s.current=t},[t]),f.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function rl(e){return typeof e=="function"}var ol=f.createContext(void 0);function Bn(e){const t=f.useContext(ol);return e||t||"ltr"}function sl(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function jo(e){const[t,n]=f.useState(void 0);return Me(()=>{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 c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.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 Ut(e){const t=il(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),c=a.find(cl);if(c){const l=c.props.children,d=a.map(u=>u===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:u);return p.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function il(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=ul(o),a=ll(s,o.props);return o.type!==f.Fragment&&(a.ref=r?zt(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var al=Symbol("radix.slottable");function cl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===al}function ll(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 c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ul(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 dl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=dl.reduce((e,t)=>{const n=Ut(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fo(e,t){e&&kr.flushSync(()=>e.dispatchEvent(t))}function Wn(e){const t=e+"CollectionProvider",[n,r]=Qe(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:w,children:b}=g,S=R.useRef(null),v=R.useRef(new Map).current;return p.jsx(o,{scope:w,itemMap:v,collectionRef:S,children:b})};i.displayName=t;const a=e+"CollectionSlot",c=Ut(a),l=R.forwardRef((g,w)=>{const{scope:b,children:S}=g,v=s(a,b),x=Q(w,v.collectionRef);return p.jsx(c,{ref:x,children:S})});l.displayName=a;const d=e+"CollectionItemSlot",u="data-radix-collection-item",h=Ut(d),m=R.forwardRef((g,w)=>{const{scope:b,children:S,...v}=g,x=R.useRef(null),P=Q(w,x),T=s(d,b);return R.useEffect(()=>(T.itemMap.set(x,{ref:x,...v}),()=>void T.itemMap.delete(x))),p.jsx(h,{[u]:"",ref:P,children:S})});m.displayName=d;function y(g){const w=s(e+"CollectionConsumer",g);return R.useCallback(()=>{const S=w.collectionRef.current;if(!S)return[];const v=Array.from(S.querySelectorAll(`[${u}]`));return Array.from(w.itemMap.values()).sort((T,E)=>v.indexOf(T.ref.current)-v.indexOf(E.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},y,r]}var $o=["PageUp","PageDown"],Vo=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ho={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},et="Slider",[zn,fl,pl]=Wn(et),[Bo,Mm]=Qe(et,[pl]),[ml,Kt]=Bo(et),Wo=f.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:d,onValueChange:u=()=>{},onValueCommit:h=()=>{},inverted:m=!1,form:y,...g}=e,w=f.useRef(new Set),b=f.useRef(0),v=i==="horizontal"?hl:gl,[x=[],P]=Hn({prop:d,defaultProp:l,onChange:D=>{[...w.current][b.current]?.focus(),u(D)}}),T=f.useRef(x);function E(D){const H=xl(x,D);k(D,H)}function I(D){k(D,b.current)}function N(){const D=T.current[b.current];x[b.current]!==D&&h(x)}function k(D,H,{commit:W}={commit:!1}){const B=Pl(s),K=Rl(Math.round((D-r)/s)*s+r,B),j=Lo(K,[r,o]);P((F=[])=>{const _=wl(F,j,H);if(Cl(_,c*s)){b.current=_.indexOf(j);const A=String(_)!==String(F);return A&&W&&h(_),A?_:F}else return F})}return p.jsx(ml,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:b,thumbs:w.current,values:x,orientation:i,form:y,children:p.jsx(zn.Provider,{scope:e.__scopeSlider,children:p.jsx(zn.Slot,{scope:e.__scopeSlider,children:p.jsx(v,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:V(g.onPointerDown,()=>{a||(T.current=x)}),min:r,max:o,inverted:m,onSlideStart:a?void 0:E,onSlideMove:a?void 0:I,onSlideEnd:a?void 0:N,onHomeKeyDown:()=>!a&&k(r,0,{commit:!0}),onEndKeyDown:()=>!a&&k(o,x.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:H})=>{if(!a){const K=$o.includes(D.key)||D.shiftKey&&Vo.includes(D.key)?10:1,j=b.current,F=x[j],_=s*K*H;k(F+_,j,{commit:!0})}}})})})})});Wo.displayName=et;var[zo,Uo]=Bo(et,{startEdge:"left",endEdge:"right",size:"width",direction:1}),hl=f.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:c,onStepKeyDown:l,...d}=e,[u,h]=f.useState(null),m=Q(t,v=>h(v)),y=f.useRef(void 0),g=Bn(o),w=g==="ltr",b=w&&!s||!w&&s;function S(v){const x=y.current||u.getBoundingClientRect(),P=[0,x.width],E=Gn(P,b?[n,r]:[r,n]);return y.current=x,E(v-x.left)}return p.jsx(zo,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:p.jsx(Ko,{dir:g,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{const x=S(v.clientX);i?.(x)},onSlideMove:v=>{const x=S(v.clientX);a?.(x)},onSlideEnd:()=>{y.current=void 0,c?.()},onStepKeyDown:v=>{const P=Ho[b?"from-left":"from-right"].includes(v.key);l?.({event:v,direction:P?-1:1})}})})}),gl=f.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:c,...l}=e,d=f.useRef(null),u=Q(t,d),h=f.useRef(void 0),m=!o;function y(g){const w=h.current||d.current.getBoundingClientRect(),b=[0,w.height],v=Gn(b,m?[r,n]:[n,r]);return h.current=w,v(g-w.top)}return p.jsx(zo,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:p.jsx(Ko,{"data-orientation":"vertical",...l,ref:u,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const w=y(g.clientY);s?.(w)},onSlideMove:g=>{const w=y(g.clientY);i?.(w)},onSlideEnd:()=>{h.current=void 0,a?.()},onStepKeyDown:g=>{const b=Ho[m?"from-bottom":"from-top"].includes(g.key);c?.({event:g,direction:b?-1:1})}})})}),Ko=f.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:c,...l}=e,d=Kt(et,n);return p.jsx(ee.span,{...l,ref:t,onKeyDown:V(e.onKeyDown,u=>{u.key==="Home"?(i(u),u.preventDefault()):u.key==="End"?(a(u),u.preventDefault()):$o.concat(Vo).includes(u.key)&&(c(u),u.preventDefault())}),onPointerDown:V(e.onPointerDown,u=>{const h=u.target;h.setPointerCapture(u.pointerId),u.preventDefault(),d.thumbs.has(h)?h.focus():r(u)}),onPointerMove:V(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&o(u)}),onPointerUp:V(e.onPointerUp,u=>{const h=u.target;h.hasPointerCapture(u.pointerId)&&(h.releasePointerCapture(u.pointerId),s(u))})})}),Go="SliderTrack",Yo=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Kt(Go,n);return p.jsx(ee.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Yo.displayName=Go;var Un="SliderRange",Xo=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Kt(Un,n),s=Uo(Un,n),i=f.useRef(null),a=Q(t,i),c=o.values.length,l=o.values.map(h=>Jo(h,o.min,o.max)),d=c>1?Math.min(...l):0,u=100-Math.max(...l);return p.jsx(ee.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:d+"%",[s.endEdge]:u+"%"}})});Xo.displayName=Un;var Kn="SliderThumb",qo=f.forwardRef((e,t)=>{const n=fl(e.__scopeSlider),[r,o]=f.useState(null),s=Q(t,a=>o(a)),i=f.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return p.jsx(vl,{...e,ref:s,index:i})}),vl=f.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=Kt(Kn,n),a=Uo(Kn,n),[c,l]=f.useState(null),d=Q(t,S=>l(S)),u=c?i.form||!!c.closest("form"):!0,h=jo(c),m=i.values[r],y=m===void 0?0:Jo(m,i.min,i.max),g=bl(r,i.values.length),w=h?.[a.size],b=w?Sl(w,y,a.direction):0;return f.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${y}% + ${b}px)`},children:[p.jsx(zn.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(ee.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":m,"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:d,style:m===void 0?{display:"none"}:e.style,onFocus:V(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),u&&p.jsx(Zo,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:m},r)]})});qo.displayName=Kn;var yl="RadioBubbleInput",Zo=f.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=f.useRef(null),s=Q(o,r),i=sl(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&d){const u=new Event("input",{bubbles:!0});d.call(a,t),a.dispatchEvent(u)}},[i,t]),p.jsx(ee.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});Zo.displayName=yl;function wl(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function Jo(e,t,n){const s=100/(n-t)*(e-t);return Lo(s,[0,100])}function bl(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function xl(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 Sl(e,t,n){const r=e/2,s=Gn([0,50],[0,r]);return(r-s(t)*n)*n}function El(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Cl(e,t){if(t>0){const n=El(e);return Math.min(...n)>=t}return!0}function Gn(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 Pl(e){return(String(e).split(".")[1]||"").length}function Rl(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Tl=Wo,Al=Yo,Ml=Xo,kl=qo;function Yn({max:e=100,min:t=0,...n}){return p.jsxs(Il,{min:t,max:e,"aria-label":"Player progress",onKeyDown:r=>r.preventDefault(),...n,children:[p.jsx(_l,{children:p.jsx(Ol,{})}),p.jsx(Dl,{})]})}const Il=z(Tl)`
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
+ `,_l=z(Al)`
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
+ `,Ol=z(Ml)`
222
+ position: absolute;
223
+ height: 100%;
224
+ background: #f7e406;
225
+ transition: width 0.2s ease-in-out;
226
+ border-radius: 1rem;
227
+ `,Dl=z(kl)`
228
+ display: block;
229
+ width: 0.875rem;
230
+ height: 0.875rem;
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 Gt(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 Ll=(e,t)=>parseInt(Math.max(0,(Date.now()-(e+t*1e3))/1e3).toFixed(0)),Qo=(e,t)=>Math.max(0,(Date.now()-e-t*1e3)/1e3),es=(e,t)=>Math.max(0,(t-e)/1e3),Nl=(e,t=0)=>{const r=t<0?0:t,o=["bytes","kb","mb","gb","tb","pb","eb","zb","yb"],s=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,s)).toFixed(r))}${o[s]}`};function jl({isAuto:e,level:t,levels:n}){const r=n.length,o=[];return r>1&&o.push({sid:"quality-level-auto",label:"Auto",value:-1,selected:e||t===-1}),n.sort(function(s,i){const a=s.height||s.bitrate||0,c=i.height||i.bitrate||0;return a===c?0:a>c?1:-1}),n.map(s=>{const{bitrate:i,height:a,index:c}=s;o.push({sid:`quality-level-${c}`,label:a?`${a}p`:Nl(i),value:c,selected:r===1||!e&&c===t})}),o}const ts="vod-player-progress-bar";function Fl(){const e=R.useRef(null),t=R.useRef(null),[n,r]=R.useState(0),[o,s]=R.useState(0),[i,a]=R.useState(!1),[c,l]=R.useState(-1),[d,u]=R.useState(-1),h=ae(k=>k.delay),m=ae(k=>k.startTime),y=ae(k=>k.endTime),g=ae(k=>k.setDelay),w=M(k=>k.isPlaying),b=M(k=>k.addIdleLock),S=M(k=>k.removeIdleLock),v=R.useCallback(()=>{r(Qo(m,h)),s(es(m,y))},[h,y,m]),x=parseFloat((o?(d!==-1?d:n)/o*100:0).toFixed(1)),P=k=>{u(o*(k[0]/100)),b(ts)},T=()=>{if(d!==-1){const k=Ll(m,d);g(k),u(-1),S(ts)}},E=()=>a(!0),I=()=>a(!1),N=R.useCallback(k=>{const D=e.current,H=t.current;if(D&&H){const W=Gt(D),B=Gt(H),K=(k.pageX||k.clientX)-W.left,j=K/W.width;if(j<0)return;let F=K-B.width/2;F<0&&(F=0),F>W.width-B.width&&(F=-1),H.style.left=F>-1?`${F}px`:"auto",H.style.right=F>-1?"auto":"0px",l(j*o)}E()},[o]);return Ct(()=>v(),w?1e3:null),R.useEffect(()=>{v()},[v]),p.jsxs(_o,{children:[p.jsx(Yn,{ref:e,value:[x],onPointerLeave:I,onPointerDown:I,onPointerMove:N,onValueChange:P,onValueCommit:T,step:.1}),p.jsx(Oo,{ref:t,$isVisible:i,children:p.jsx(Do,{children:Je(c)})})]})}function ns({children:e}){return p.jsx(qc,{children:e})}function $l({children:e,startDate:t,endDate:n}){return p.jsx(Sa,{startDate:t,endDate:n,children:p.jsx(ns,{children:e})})}const rs=z.div`
251
+ display: flex;
252
+ align-items: center;
253
+ `,os=z.p`
254
+ margin: 0;
255
+ padding: 0;
256
+ font-variant-numeric: tabular-nums;
257
+ font-size: 0.8125rem;
258
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
259
+ "Helvetica Neue", Arial, sans-serif;
260
+ font-weight: 500;
261
+ `,ss=z(os)`
262
+ margin-right: 0.5rem;
263
+ `,is=z(os)`
264
+ margin-left: 0.5rem;
265
+ `,as=z.p`
266
+ margin: 0;
267
+ padding: 0;
268
+ font-size: 0.8125rem;
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 Vl(){const[e,t]=R.useState(0),[n,r]=R.useState(0),o=M(l=>l.isPlaying),s=ae(l=>l.delay),i=ae(l=>l.startTime),a=ae(l=>l.endTime),c=R.useCallback(()=>{t(Qo(i,s)),r(es(i,a))},[s,a,i]);return Ct(()=>c(),o?1e3:null),R.useEffect(()=>{c()},[c]),s?p.jsxs(rs,{children:[p.jsx(ss,{children:Je(e)}),p.jsx(as,{}),p.jsx(is,{children:Je(n)})]}):null}function Hl({url:e,isLive:t}){const n=R.useRef(null),r=M(m=>m.level),o=M(m=>m.levels),s=M(m=>m.setLevel),i=M(m=>m.setLevels),a=M(m=>m.techRef),c=R.useCallback(m=>{if(n.current&&(n.current.nextLevel=m,s(null),o)){const y=o.map(g=>({...g,selected:g.value===m}));i(y)}},[o,s,i,n]),l=R.useCallback(()=>{n.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),n.current.loadSource(e))},[e]),d=R.useCallback(()=>{if(!n.current)return;console.log("[Player][Event]","MANIFEST_LOADED");const m=n.current.levels,y=n.current.currentLevel,g=n.current.autoLevelEnabled;i(jl({levels:m.map((w,b)=>{const{bitrate:S,height:v,width:x}=w;return{bitrate:S,height:v,index:b,width:x}}),level:y,isAuto:g}))},[i]),u=R.useCallback(()=>{if(!a.current)return;const g=t?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(g)),console.log("[Player] Version",De.version),n.current=new De(g),n.current.attachMedia(a.current),n.current.on(De.Events.MEDIA_ATTACHED,l),n.current.on(De.Events.MANIFEST_LOADED,d)}catch(w){throw new Error(`Error initializing Hls: ${w}`)}},[d,l,t,a,e]),h=R.useCallback(()=>{n.current&&(n.current.off(De.Events.MEDIA_ATTACHED,l),n.current.off(De.Events.MANIFEST_LOADED,d),n.current.destroy(),n.current=null)},[d,l]);return R.useEffect(()=>{r!==null&&c(r)},[r,c]),R.useEffect(()=>(De.isSupported()&&u(),h),[h,u]),null}function cs({url:e,isLive:t,isMuted:n=!1}){const r=M(v=>v.handleDurationChange),o=M(v=>v.handleEnd),s=M(v=>v.handleLoadedMetadata),i=M(v=>v.handleLoadStart),a=M(v=>v.handlePause),c=M(v=>v.handlePlay),l=M(v=>v.handlePlaying),d=M(v=>v.handleSeeked),u=M(v=>v.handleSeeking),h=M(v=>v.handleTimeUpdate),m=M(v=>v.handleWaiting),y=M(v=>v.techRef),g=R.useRef(null),w=()=>t?{}:{onDurationChange:r,onSeeked:d,onSeeking:u,onTimeUpdate:b},b=()=>{(!g.current||Date.now()-g.current>=1e3)&&(h(),g.current=Date.now())},S=w();return p.jsxs(p.Fragment,{children:[p.jsx(Hl,{isLive:t,url:e}),p.jsx(Bl,{ref:y,playsInline:!0,autoPlay:!0,controls:!1,muted:n,preload:"auto",crossOrigin:"anonymous",onEnded:o,onLoadedMetadata:s,onLoadStart:i,onPause:a,onPlay:c,onPlaying:l,onWaiting:m,tabIndex:-1,...S})]})}const Bl=z.video`
277
+ position: relative;
278
+ width: 100%;
279
+ height: 100%;
280
+
281
+ @media (min-width: 768px) {
282
+ pointer-events: none;
283
+ }
284
+ `;function Wl({url:e}){const[t,n]=R.useState(null),r=ae(s=>s.delay),o=R.useCallback(async()=>{n(r?e.replace("playlist.m3u8",`playlist_fmp4_dvr_timeshift-${r}.m3u8`):e)},[r,e]);return R.useEffect(()=>{o()},[o]),t?p.jsx(cs,{url:t,isLive:!0}):null}const ls=z.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
+ `,us=z.div`
158
294
  position: absolute;
159
295
  left: 0;
160
296
  width: 100%;
@@ -166,7 +302,7 @@ 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
+ `,ds=z.div`
170
306
  display: flex;
171
307
  flex-direction: column;
172
308
  padding-left: 0.5rem;
@@ -178,93 +314,223 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);function mt({...e}){r
178
314
  padding-left: 1rem;
179
315
  padding-right: 1rem;
180
316
  }
181
- `,ho=C.div`
182
- margin: auto 0;
317
+ `,fs=z.div`
183
318
  display: flex;
319
+ padding: 0.5rem 0;
184
320
  width: 100%;
185
321
  align-items: center;
186
- `,gt=C.div`
322
+ `,ps=z.div`
187
323
  display: flex;
188
324
  flex: 1;
189
325
  align-items: center;
190
326
  gap: 0.5rem;
191
-
192
- @media (min-width: 768px) {
193
- gap: 1rem;
194
- }
195
- `,mo=C(gt)`
327
+ `,ms=z(ps)`
196
328
  justify-content: flex-start;
197
- `,go=C(gt)`
198
- justify-content: center;
199
- `,yo=C(gt)`
329
+ `,hs=z(ps)`
200
330
  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`
331
+ `;function zl(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z"})})}function Ul(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"})})}function gs(){const e=M(l=>l.containerRef),t=M(l=>l.exitFullscreen),n=M(l=>l.isFullscreen),r=M(l=>l.requestFullscreen),o=M(l=>l.setIsFullscreen),s=M(l=>l.setIsFullscreenReady),i=M(l=>l.techRef),a=R.useCallback(l=>{l.stopPropagation(),o($c())},[o]),c=()=>{n?t():r()};return R.useEffect(()=>{const l=Mo?i.current:e.current;if(l)return Bc(l,a)},[e,a,i]),R.useEffect(()=>{s(!0)},[s]),p.jsx(Ze,{onClick:c,children:n?p.jsx(Ul,{}):p.jsx(zl,{})})}const Kl=5*1e3;function vs({children:e}){const t=R.useRef(null),[n,r]=R.useState(!1),o=R.useRef(null),i=M(l=>l.idleLocks).size,a=R.useCallback(()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},[]),c=R.useCallback(()=>{a(),o.current=window.setTimeout(()=>r(!0),Kl)},[a]);return R.useEffect(()=>(r(!1),c(),()=>{a()}),[a,c]),R.useEffect(()=>{const l=t.current;if(!l)return;const d=h=>{n&&(h.stopPropagation(),r(!1),c())},u=()=>{n&&r(!1),c()};return l.addEventListener("click",d),l.addEventListener("mousemove",u),()=>{l.removeEventListener("click",d),l.removeEventListener("mousemove",u)}},[t,n,r,c]),p.jsx(Gl,{ref:t,$isIdle:n&&!i,children:e})}const Gl=z.div`
215
332
  position: absolute;
216
333
  top: 0;
217
334
  left: 0;
218
335
  width: 100%;
219
336
  height: 100%;
220
- background-color: black;
221
- color: white;
222
- overflow: hidden;
223
- `,Co=C.div`
337
+ transition: opacity 0.2s ease-in-out;
338
+ cursor: ${({$isIdle:e})=>e?"none":"auto"};
339
+ opacity: ${({$isIdle:e})=>e?0:1};
340
+ `;function Yl(e){return p.jsx(ql,{...e})}const Xl=Ac`
341
+ from {
342
+ transform: rotate(0deg);
343
+ }
344
+ to {
345
+ transform: rotate(360deg);
346
+ }
347
+ `,ql=z.div`
348
+ width: 1.5rem;
349
+ height: 1.5rem;
350
+ border: 2px solid white;
351
+ border-bottom-color: transparent;
352
+ border-radius: 50%;
353
+ animation: ${Xl} 1s linear infinite;
354
+ `;function Zl(e,t=500){const[n,r]=R.useState(e);return R.useEffect(()=>{const o=window.setTimeout(()=>r(e),t);return()=>{window.clearTimeout(o)}},[e,t]),n}function ys({style:e,...t}){const n=M(o=>o.isLoading);return Zl(n,100)?p.jsx(Jl,{style:e,...t,children:p.jsx(Yl,{})}):null}const Jl=z.div`
355
+ pointer-events: none;
224
356
  position: absolute;
357
+ top: 0;
358
+ right: 0;
359
+ bottom: 0;
225
360
  left: 0;
361
+ display: flex;
226
362
  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;
363
+ height: 100%;
364
+ align-items: center;
365
+ justify-content: center;
366
+ `;function Ql(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"})})}function eu(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z"})})}function Ee(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function tu(e,t=globalThis?.document){const n=Ee(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var nu="DismissableLayer",Xn="dismissableLayer.update",ru="dismissableLayer.pointerDownOutside",ou="dismissableLayer.focusOutside",ws,bs=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=f.useContext(bs),[d,u]=f.useState(null),h=d?.ownerDocument??globalThis?.document,[,m]=f.useState({}),y=Q(t,E=>u(E)),g=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(w),S=d?g.indexOf(d):-1,v=l.layersWithOutsidePointerEventsDisabled.size>0,x=S>=b,P=au(E=>{const I=E.target,N=[...l.branches].some(k=>k.contains(I));!x||N||(o?.(E),i?.(E),E.defaultPrevented||a?.())},h),T=cu(E=>{const I=E.target;[...l.branches].some(k=>k.contains(I))||(s?.(E),i?.(E),E.defaultPrevented||a?.())},h);return tu(E=>{S===l.layers.size-1&&(r?.(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),f.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ws=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Ss(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ws)}},[d,h,n,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Ss())},[d,l]),f.useEffect(()=>{const E=()=>m({});return document.addEventListener(Xn,E),()=>document.removeEventListener(Xn,E)},[]),p.jsx(ee.div,{...c,ref:y,style:{pointerEvents:v?x?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,T.onFocusCapture),onBlurCapture:V(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,P.onPointerDownCapture)})});xs.displayName=nu;var su="DismissableLayerBranch",iu=f.forwardRef((e,t)=>{const n=f.useContext(bs),r=f.useRef(null),o=Q(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(ee.div,{...e,ref:o})});iu.displayName=su;function au(e,t=globalThis?.document){const n=Ee(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){Es(ru,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cu(e,t=globalThis?.document){const n=Ee(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Es(ou,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ss(){const e=new CustomEvent(Xn);document.dispatchEvent(e)}function Es(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fo(o,s):o.dispatchEvent(s)}var qn=0;function lu(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Cs()),document.body.insertAdjacentElement("beforeend",e[1]??Cs()),qn++,()=>{qn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),qn--}},[])}function Cs(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Zn="focusScope.autoFocusOnMount",Jn="focusScope.autoFocusOnUnmount",Ps={bubbles:!1,cancelable:!0},uu="FocusScope",Rs=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=f.useState(null),l=Ee(o),d=Ee(s),u=f.useRef(null),h=Q(t,g=>c(g)),m=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let g=function(v){if(m.paused||!a)return;const x=v.target;a.contains(x)?u.current=x:ke(u.current,{select:!0})},w=function(v){if(m.paused||!a)return;const x=v.relatedTarget;x!==null&&(a.contains(x)||ke(u.current,{select:!0}))},b=function(v){if(document.activeElement===document.body)for(const P of v)P.removedNodes.length>0&&ke(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",w);const S=new MutationObserver(b);return a&&S.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),S.disconnect()}}},[r,a,m.paused]),f.useEffect(()=>{if(a){Ms.add(m);const g=document.activeElement;if(!a.contains(g)){const b=new CustomEvent(Zn,Ps);a.addEventListener(Zn,l),a.dispatchEvent(b),b.defaultPrevented||(du(gu(Ts(a)),{select:!0}),document.activeElement===g&&ke(a))}return()=>{a.removeEventListener(Zn,l),setTimeout(()=>{const b=new CustomEvent(Jn,Ps);a.addEventListener(Jn,d),a.dispatchEvent(b),b.defaultPrevented||ke(g??document.body,{select:!0}),a.removeEventListener(Jn,d),Ms.remove(m)},0)}}},[a,l,d,m]);const y=f.useCallback(g=>{if(!n&&!r||m.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(w&&b){const S=g.currentTarget,[v,x]=fu(S);v&&x?!g.shiftKey&&b===x?(g.preventDefault(),n&&ke(v,{select:!0})):g.shiftKey&&b===v&&(g.preventDefault(),n&&ke(x,{select:!0})):b===S&&g.preventDefault()}},[n,r,m.paused]);return p.jsx(ee.div,{tabIndex:-1,...i,ref:h,onKeyDown:y})});Rs.displayName=uu;function du(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ke(r,{select:t}),document.activeElement!==n)return}function fu(e){const t=Ts(e),n=As(t,e),r=As(t.reverse(),e);return[n,r]}function Ts(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function As(e,t){for(const n of e)if(!pu(n,{upTo:t}))return n}function pu(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mu(e){return e instanceof HTMLInputElement&&"select"in e}function ke(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mu(e)&&t&&e.select()}}var Ms=hu();function hu(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ks(e,t),e.unshift(t)},remove(t){e=ks(e,t),e[0]?.resume()}}}function ks(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gu(e){return e.filter(t=>t.tagName!=="A")}var vu=f[" useId ".trim().toString()]||(()=>{}),yu=0;function Qn(e){const[t,n]=f.useState(vu());return Me(()=>{n(r=>r??String(yu++))},[e]),e||(t?`radix-${t}`:"")}const wu=["top","right","bottom","left"],Ie=Math.min,ce=Math.max,Yt=Math.round,Xt=Math.floor,ve=e=>({x:e,y:e}),bu={left:"right",right:"left",bottom:"top",top:"bottom"},xu={start:"end",end:"start"};function er(e,t,n){return ce(e,Ie(t,n))}function Ce(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function tr(e){return e==="x"?"y":"x"}function nr(e){return e==="y"?"height":"width"}const Su=new Set(["top","bottom"]);function ye(e){return Su.has(Pe(e))?"y":"x"}function rr(e){return tr(ye(e))}function Eu(e,t,n){n===void 0&&(n=!1);const r=tt(e),o=rr(e),s=nr(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=qt(i)),[i,qt(i)]}function Cu(e){const t=qt(e);return[or(e),t,or(t)]}function or(e){return e.replace(/start|end/g,t=>xu[t])}const Is=["left","right"],_s=["right","left"],Pu=["top","bottom"],Ru=["bottom","top"];function Tu(e,t,n){switch(e){case"top":case"bottom":return n?t?_s:Is:t?Is:_s;case"left":case"right":return t?Pu:Ru;default:return[]}}function Au(e,t,n,r){const o=tt(e);let s=Tu(Pe(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(or)))),s}function qt(e){return e.replace(/left|right|bottom|top/g,t=>bu[t])}function Mu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Os(e){return typeof e!="number"?Mu(e):{top:e,right:e,bottom:e,left:e}}function Zt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ds(e,t,n){let{reference:r,floating:o}=e;const s=ye(t),i=rr(t),a=nr(i),c=Pe(t),l=s==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-o.width,y:u};break;default:m={x:r.x,y:r.y}}switch(tt(t)){case"start":m[i]-=h*(n&&l?-1:1);break;case"end":m[i]+=h*(n&&l?-1:1);break}return m}const ku=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Ds(l,r,c),h=r,m={},y=0;for(let g=0;g<a.length;g++){const{name:w,fn:b}=a[g],{x:S,y:v,data:x,reset:P}=await b({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:t}});d=S??d,u=v??u,m={...m,[w]:{...m[w],...x}},P&&y<=50&&(y++,typeof P=="object"&&(P.placement&&(h=P.placement),P.rects&&(l=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:u}=Ds(l,h,c)),g=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:m}};async function pt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:m=0}=Ce(t,e),y=Os(m),w=a[h?u==="floating"?"reference":"floating":u],b=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),S=u==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},P=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:v,strategy:c}):S);return{top:(b.top-P.top+y.top)/x.y,bottom:(P.bottom-b.bottom+y.bottom)/x.y,left:(b.left-P.left+y.left)/x.x,right:(P.right-b.right+y.right)/x.x}}const Iu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=Ce(e,t)||{};if(l==null)return{};const u=Os(d),h={x:n,y:r},m=rr(o),y=nr(m),g=await i.getDimensions(l),w=m==="y",b=w?"top":"left",S=w?"bottom":"right",v=w?"clientHeight":"clientWidth",x=s.reference[y]+s.reference[m]-h[m]-s.floating[y],P=h[m]-s.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let E=T?T[v]:0;(!E||!await(i.isElement==null?void 0:i.isElement(T)))&&(E=a.floating[v]||s.floating[y]);const I=x/2-P/2,N=E/2-g[y]/2-1,k=Ie(u[b],N),D=Ie(u[S],N),H=k,W=E-g[y]-D,B=E/2-g[y]/2+I,K=er(H,B,W),j=!c.arrow&&tt(o)!=null&&B!==K&&s.reference[y]/2-(B<H?k:D)-g[y]/2<0,F=j?B<H?B-H:B-W:0;return{[m]:h[m]+F,data:{[m]:K,centerOffset:B-K-F,...j&&{alignmentOffset:F}},reset:j}}}),_u=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=Ce(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Pe(o),S=ye(a),v=Pe(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),P=h||(v||!g?[qt(a)]:Cu(a)),T=y!=="none";!h&&T&&P.push(...Au(a,g,y,x));const E=[a,...P],I=await pt(t,w),N=[];let k=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&N.push(I[b]),u){const B=Eu(o,i,x);N.push(I[B[0]],I[B[1]])}if(k=[...k,{placement:o,overflows:N}],!N.every(B=>B<=0)){var D,H;const B=(((D=s.flip)==null?void 0:D.index)||0)+1,K=E[B];if(K&&(!(u==="alignment"?S!==ye(K):!1)||k.every(_=>ye(_.placement)===S?_.overflows[0]>0:!0)))return{data:{index:B,overflows:k},reset:{placement:K}};let j=(H=k.filter(F=>F.overflows[0]<=0).sort((F,_)=>F.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!j)switch(m){case"bestFit":{var W;const F=(W=k.filter(_=>{if(T){const A=ye(_.placement);return A===S||A==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(A=>A>0).reduce((A,C)=>A+C,0)]).sort((_,A)=>_[1]-A[1])[0])==null?void 0:W[0];F&&(j=F);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function Ls(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ns(e){return wu.some(t=>e[t]>=0)}const Ou=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ce(e,t);switch(r){case"referenceHidden":{const s=await pt(t,{...o,elementContext:"reference"}),i=Ls(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ns(i)}}}case"escaped":{const s=await pt(t,{...o,altBoundary:!0}),i=Ls(s,n.floating);return{data:{escapedOffsets:i,escaped:Ns(i)}}}default:return{}}}}},js=new Set(["left","top"]);async function Du(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Pe(n),a=tt(n),c=ye(n)==="y",l=js.has(i)?-1:1,d=s&&c?-1:1,u=Ce(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:y}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof y=="number"&&(m=a==="end"?y*-1:y),c?{x:m*d,y:h*l}:{x:h*l,y:m*d}}const Lu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await Du(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Nu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:b,y:S}=w;return{x:b,y:S}}},...c}=Ce(e,t),l={x:n,y:r},d=await pt(t,c),u=ye(Pe(o)),h=tr(u);let m=l[h],y=l[u];if(s){const w=h==="y"?"top":"left",b=h==="y"?"bottom":"right",S=m+d[w],v=m-d[b];m=er(S,m,v)}if(i){const w=u==="y"?"top":"left",b=u==="y"?"bottom":"right",S=y+d[w],v=y-d[b];y=er(S,y,v)}const g=a.fn({...t,[h]:m,[u]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[u]:i}}}}}},ju=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Ce(e,t),d={x:n,y:r},u=ye(o),h=tr(u);let m=d[h],y=d[u];const g=Ce(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const v=h==="y"?"height":"width",x=s.reference[h]-s.floating[v]+w.mainAxis,P=s.reference[h]+s.reference[v]-w.mainAxis;m<x?m=x:m>P&&(m=P)}if(l){var b,S;const v=h==="y"?"width":"height",x=js.has(Pe(o)),P=s.reference[u]-s.floating[v]+(x&&((b=i.offset)==null?void 0:b[u])||0)+(x?0:w.crossAxis),T=s.reference[u]+s.reference[v]+(x?0:((S=i.offset)==null?void 0:S[u])||0)-(x?w.crossAxis:0);y<P?y=P:y>T&&(y=T)}return{[h]:m,[u]:y}}}},Fu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=Ce(e,t),d=await pt(t,l),u=Pe(o),h=tt(o),m=ye(o)==="y",{width:y,height:g}=s.floating;let w,b;u==="top"||u==="bottom"?(w=u,b=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=u,w=h==="end"?"top":"bottom");const S=g-d.top-d.bottom,v=y-d.left-d.right,x=Ie(g-d[w],S),P=Ie(y-d[b],v),T=!t.middlewareData.shift;let E=x,I=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=S),T&&!h){const k=ce(d.left,0),D=ce(d.right,0),H=ce(d.top,0),W=ce(d.bottom,0);m?I=y-2*(k!==0||D!==0?k+D:ce(d.left,d.right)):E=g-2*(H!==0||W!==0?H+W:ce(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:E});const N=await i.getDimensions(a.floating);return y!==N.width||g!==N.height?{reset:{rects:!0}}:{}}}};function Jt(){return typeof window<"u"}function nt(e){return Fs(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Fs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fs(e){return Jt()?e instanceof Node||e instanceof le(e).Node:!1}function pe(e){return Jt()?e instanceof Element||e instanceof le(e).Element:!1}function be(e){return Jt()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function $s(e){return!Jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}const $u=new Set(["inline","contents"]);function mt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!$u.has(o)}const Vu=new Set(["table","td","th"]);function Hu(e){return Vu.has(nt(e))}const Bu=[":popover-open",":modal"];function Qt(e){return Bu.some(t=>{try{return e.matches(t)}catch{return!1}})}const Wu=["transform","translate","scale","rotate","perspective"],zu=["transform","translate","scale","rotate","perspective","filter"],Uu=["paint","layout","strict","content"];function sr(e){const t=ir(),n=pe(e)?me(e):e;return Wu.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||zu.some(r=>(n.willChange||"").includes(r))||Uu.some(r=>(n.contain||"").includes(r))}function Ku(e){let t=_e(e);for(;be(t)&&!rt(t);){if(sr(t))return t;if(Qt(t))return null;t=_e(t)}return null}function ir(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Gu=new Set(["html","body","#document"]);function rt(e){return Gu.has(nt(e))}function me(e){return le(e).getComputedStyle(e)}function en(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _e(e){if(nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$s(e)&&e.host||we(e);return $s(t)?t.host:t}function Vs(e){const t=_e(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&mt(t)?t:Vs(t)}function ht(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vs(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=le(o);if(s){const a=ar(i);return t.concat(i,i.visualViewport||[],mt(o)?o:[],a&&n?ht(a):[])}return t.concat(o,ht(o,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hs(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=be(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Yt(n)!==s||Yt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function cr(e){return pe(e)?e:e.contextElement}function ot(e){const t=cr(e);if(!be(t))return ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Hs(t);let i=(s?Yt(n.width):n.width)/r,a=(s?Yt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Yu=ve(0);function Bs(e){const t=le(e);return!ir()||!t.visualViewport?Yu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function Ve(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=cr(e);let i=ve(1);t&&(r?pe(r)&&(i=ot(r)):i=ot(e));const a=Xu(s,n,r)?Bs(s):ve(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(s){const h=le(s),m=r&&pe(r)?le(r):r;let y=h,g=ar(y);for(;g&&r&&m!==y;){const w=ot(g),b=g.getBoundingClientRect(),S=me(g),v=b.left+(g.clientLeft+parseFloat(S.paddingLeft))*w.x,x=b.top+(g.clientTop+parseFloat(S.paddingTop))*w.y;c*=w.x,l*=w.y,d*=w.x,u*=w.y,c+=v,l+=x,y=le(g),g=ar(y)}}return Zt({width:d,height:u,x:c,y:l})}function tn(e,t){const n=en(e).scrollLeft;return t?t.left+n:Ve(we(e)).left+n}function Ws(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-tn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function qu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=we(r),a=t?Qt(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=ve(1);const d=ve(0),u=be(r);if((u||!u&&!s)&&((nt(r)!=="body"||mt(i))&&(c=en(r)),be(r))){const m=Ve(r);l=ot(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=i&&!u&&!s?Ws(i,c):ve(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:n.y*l.y-c.scrollTop*l.y+d.y+h.y}}function Zu(e){return Array.from(e.getClientRects())}function Ju(e){const t=we(e),n=en(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+tn(e);const a=-n.scrollTop;return me(r).direction==="rtl"&&(i+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const zs=25;function Qu(e,t){const n=le(e),r=we(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const d=ir();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=tn(r);if(l<=0){const d=r.ownerDocument,u=d.body,h=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(r.clientWidth-u.clientWidth-m);y<=zs&&(s-=y)}else l<=zs&&(s+=l);return{width:s,height:i,x:a,y:c}}const ed=new Set(["absolute","fixed"]);function td(e,t){const n=Ve(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=be(e)?ot(e):ve(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function Us(e,t,n){let r;if(t==="viewport")r=Qu(e,n);else if(t==="document")r=Ju(we(e));else if(pe(t))r=td(t,n);else{const o=Bs(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Zt(r)}function Ks(e,t){const n=_e(e);return n===t||!pe(n)||rt(n)?!1:me(n).position==="fixed"||Ks(n,t)}function nd(e,t){const n=t.get(e);if(n)return n;let r=ht(e,[],!1).filter(a=>pe(a)&&nt(a)!=="body"),o=null;const s=me(e).position==="fixed";let i=s?_e(e):e;for(;pe(i)&&!rt(i);){const a=me(i),c=sr(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&ed.has(o.position)||mt(i)&&!c&&Ks(e,i))?r=r.filter(d=>d!==i):o=a,i=_e(i)}return t.set(e,r),r}function rd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Qt(t)?[]:nd(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,d)=>{const u=Us(t,d,o);return l.top=ce(u.top,l.top),l.right=Ie(u.right,l.right),l.bottom=Ie(u.bottom,l.bottom),l.left=ce(u.left,l.left),l},Us(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function od(e){const{width:t,height:n}=Hs(e);return{width:t,height:n}}function sd(e,t,n){const r=be(t),o=we(t),s=n==="fixed",i=Ve(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ve(0);function l(){c.x=tn(o)}if(r||!r&&!s)if((nt(t)!=="body"||mt(o))&&(a=en(t)),r){const m=Ve(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();s&&!r&&o&&l();const d=o&&!r&&!s?Ws(o,a):ve(0),u=i.left+a.scrollLeft-c.x-d.x,h=i.top+a.scrollTop-c.y-d.y;return{x:u,y:h,width:i.width,height:i.height}}function lr(e){return me(e).position==="static"}function Gs(e,t){if(!be(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function Ys(e,t){const n=le(e);if(Qt(e))return n;if(!be(e)){let o=_e(e);for(;o&&!rt(o);){if(pe(o)&&!lr(o))return o;o=_e(o)}return n}let r=Gs(e,t);for(;r&&Hu(r)&&lr(r);)r=Gs(r,t);return r&&rt(r)&&lr(r)&&!sr(r)?n:r||Ku(e)||n}const id=async function(e){const t=this.getOffsetParent||Ys,n=this.getDimensions,r=await n(e.floating);return{reference:sd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ad(e){return me(e).direction==="rtl"}const cd={convertOffsetParentRelativeRectToViewportRelativeRect:qu,getDocumentElement:we,getClippingRect:rd,getOffsetParent:Ys,getElementRects:id,getClientRects:Zu,getDimensions:od,getScale:ot,isElement:pe,isRTL:ad};function Xs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ld(e,t){let n=null,r;const o=we(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:d,top:u,width:h,height:m}=l;if(a||t(),!h||!m)return;const y=Xt(u),g=Xt(o.clientWidth-(d+h)),w=Xt(o.clientHeight-(u+m)),b=Xt(d),v={rootMargin:-y+"px "+-g+"px "+-w+"px "+-b+"px",threshold:ce(0,Ie(1,c))||1};let x=!0;function P(T){const E=T[0].intersectionRatio;if(E!==c){if(!x)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Xs(l,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(P,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,v)}n.observe(e)}return i(!0),s}function ud(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=cr(e),d=o||s?[...l?ht(l):[],...ht(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const u=l&&a?ld(l,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(b=>{let[S]=b;S&&S.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let y,g=c?Ve(e):null;c&&w();function w(){const b=Ve(e);g&&!Xs(g,b)&&n(),g=b,y=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(S=>{o&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),u?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(y)}}const dd=Lu,fd=Nu,pd=_u,md=Fu,hd=Ou,qs=Iu,gd=ju,vd=(e,t,n)=>{const r=new Map,o={platform:cd,...n},s={...o.platform,_c:r};return ku(e,t,{...o,platform:s})};var yd=typeof document<"u",wd=function(){},nn=yd?R.useLayoutEffect:wd;function rn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!rn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!rn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Zs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Js(e,t){const n=Zs(e);return Math.round(t*n)/n}function ur(e){const t=f.useRef(e);return nn(()=>{t.current=e}),t}function bd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=f.useState(r);rn(h,r)||m(r);const[y,g]=f.useState(null),[w,b]=f.useState(null),S=f.useCallback(_=>{_!==T.current&&(T.current=_,g(_))},[]),v=f.useCallback(_=>{_!==E.current&&(E.current=_,b(_))},[]),x=s||y,P=i||w,T=f.useRef(null),E=f.useRef(null),I=f.useRef(d),N=c!=null,k=ur(c),D=ur(o),H=ur(l),W=f.useCallback(()=>{if(!T.current||!E.current)return;const _={placement:t,strategy:n,middleware:h};D.current&&(_.platform=D.current),vd(T.current,E.current,_).then(A=>{const C={...A,isPositioned:H.current!==!1};B.current&&!rn(I.current,C)&&(I.current=C,kr.flushSync(()=>{u(C)}))})},[h,t,n,D,H]);nn(()=>{l===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,u(_=>({..._,isPositioned:!1})))},[l]);const B=f.useRef(!1);nn(()=>(B.current=!0,()=>{B.current=!1}),[]),nn(()=>{if(x&&(T.current=x),P&&(E.current=P),x&&P){if(k.current)return k.current(x,P,W);W()}},[x,P,W,k,N]);const K=f.useMemo(()=>({reference:T,floating:E,setReference:S,setFloating:v}),[S,v]),j=f.useMemo(()=>({reference:x,floating:P}),[x,P]),F=f.useMemo(()=>{const _={position:n,left:0,top:0};if(!j.floating)return _;const A=Js(j.floating,d.x),C=Js(j.floating,d.y);return a?{..._,transform:"translate("+A+"px, "+C+"px)",...Zs(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:C}},[n,a,j.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:W,refs:K,elements:j,floatingStyles:F}),[d,W,K,j,F])}const xd=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qs({element:r.current,padding:o}).fn(n):{}:r?qs({element:r,padding:o}).fn(n):{}}}},Sd=(e,t)=>({...dd(e),options:[e,t]}),Ed=(e,t)=>({...fd(e),options:[e,t]}),Cd=(e,t)=>({...gd(e),options:[e,t]}),Pd=(e,t)=>({...pd(e),options:[e,t]}),Rd=(e,t)=>({...md(e),options:[e,t]}),Td=(e,t)=>({...hd(e),options:[e,t]}),Ad=(e,t)=>({...xd(e),options:[e,t]});var Md="Arrow",Qs=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(ee.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qs.displayName=Md;var kd=Qs,dr="Popper",[ei,ti]=Qe(dr),[Id,ni]=ei(dr),ri=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return p.jsx(Id,{scope:t,anchor:r,onAnchorChange:o,children:n})};ri.displayName=dr;var oi="PopperAnchor",si=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ni(oi,n),i=f.useRef(null),a=Q(t,i),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=r?.current||i.current,l!==c.current&&s.onAnchorChange(c.current)}),r?null:p.jsx(ee.div,{...o,ref:a})});si.displayName=oi;var fr="PopperContent",[_d,Od]=ei(fr),ii=f.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,w=ni(fr,n),[b,S]=f.useState(null),v=Q(t,Y=>S(Y)),[x,P]=f.useState(null),T=jo(x),E=T?.width??0,I=T?.height??0,N=r+(s!=="center"?"-"+s:""),k=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(l)?l:[l],H=D.length>0,W={padding:k,boundary:D.filter(Ld),altBoundary:H},{refs:B,floatingStyles:K,placement:j,isPositioned:F,middlewareData:_}=bd({strategy:"fixed",placement:N,whileElementsMounted:(...Y)=>ud(...Y,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[Sd({mainAxis:o+I,alignmentAxis:i}),c&&Ed({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Cd():void 0,...W}),c&&Pd({...W}),Rd({...W,apply:({elements:Y,rects:G,availableWidth:se,availableHeight:Re})=>{const{width:Oe,height:xe}=G.reference,yn=Y.floating.style;yn.setProperty("--radix-popper-available-width",`${se}px`),yn.setProperty("--radix-popper-available-height",`${Re}px`),yn.setProperty("--radix-popper-anchor-width",`${Oe}px`),yn.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),x&&Ad({element:x,padding:a}),Nd({arrowWidth:E,arrowHeight:I}),h&&Td({strategy:"referenceHidden",...W})]}),[A,C]=li(j),O=Ee(y);Me(()=>{F&&O?.()},[F,O]);const L=_.arrow?.x,X=_.arrow?.y,re=_.arrow?.centerOffset!==0,[te,oe]=f.useState();return Me(()=>{b&&oe(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:F?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(_d,{scope:n,placedSide:A,onArrowChange:P,arrowX:L,arrowY:X,shouldHideArrow:re,children:p.jsx(ee.div,{"data-side":A,"data-align":C,...g,ref:v,style:{...g.style,animation:F?void 0:"none"}})})})});ii.displayName=fr;var ai="PopperArrow",Dd={top:"bottom",right:"left",bottom:"top",left:"right"},ci=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Od(ai,r),i=Dd[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(kd,{...o,ref:n,style:{...o.style,display:"block"}})})});ci.displayName=ai;function Ld(e){return e!==null}var Nd=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,d]=li(n),u={start:"0%",center:"50%",end:"100%"}[d],h=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+c/2;let y="",g="";return l==="bottom"?(y=i?u:`${h}px`,g=`${-c}px`):l==="top"?(y=i?u:`${h}px`,g=`${r.floating.height+c}px`):l==="right"?(y=`${-c}px`,g=i?u:`${m}px`):l==="left"&&(y=`${r.floating.width+c}px`,g=i?u:`${m}px`),{data:{x:y,y:g}}}});function li(e){const[t,n="center"]=e.split("-");return[t,n]}var jd=ri,Fd=si,$d=ii,Vd=ci,Hd="Portal",ui=f.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=f.useState(!1);Me(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Ar.createPortal(p.jsx(ee.div,{...r,ref:t}),i):null});ui.displayName=Hd;function Bd(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var gt=e=>{const{present:t,children:n}=e,r=Wd(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=Q(r.ref,zd(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};gt.displayName="Presence";function Wd(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),s=f.useRef("none"),i=e?"mounted":"unmounted",[a,c]=Bd(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=on(r.current);s.current=a==="mounted"?l:"none"},[a]),Me(()=>{const l=r.current,d=o.current;if(d!==e){const h=s.current,m=on(l);e?c("MOUNT"):m==="none"||l?.display==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Me(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,u=m=>{const g=on(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(c("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=m=>{m.target===t&&(s.current=on(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function on(e){return e?.animationName||"none"}function zd(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 pr="rovingFocusGroup.onEntryFocus",Ud={bubbles:!1,cancelable:!0},vt="RovingFocusGroup",[mr,di,Kd]=Wn(vt),[Gd,fi]=Qe(vt,[Kd]),[Yd,Xd]=Gd(vt),pi=f.forwardRef((e,t)=>p.jsx(mr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(mr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(qd,{...e,ref:t})})}));pi.displayName=vt;var qd=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...u}=e,h=f.useRef(null),m=Q(t,h),y=Bn(s),[g,w]=Hn({prop:i,defaultProp:a??null,onChange:c,caller:vt}),[b,S]=f.useState(!1),v=Ee(l),x=di(n),P=f.useRef(!1),[T,E]=f.useState(0);return f.useEffect(()=>{const I=h.current;if(I)return I.addEventListener(pr,v),()=>I.removeEventListener(pr,v)},[v]),p.jsx(Yd,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(I=>w(I),[w]),onItemShiftTab:f.useCallback(()=>S(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(I=>I+1),[]),onFocusableItemRemove:f.useCallback(()=>E(I=>I-1),[]),children:p.jsx(ee.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...u,ref:m,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{P.current=!0}),onFocus:V(e.onFocus,I=>{const N=!P.current;if(I.target===I.currentTarget&&N&&!b){const k=new CustomEvent(pr,Ud);if(I.currentTarget.dispatchEvent(k),!k.defaultPrevented){const D=x().filter(j=>j.focusable),H=D.find(j=>j.active),W=D.find(j=>j.id===g),K=[H,W,...D].filter(Boolean).map(j=>j.ref.current);gi(K,d)}}P.current=!1}),onBlur:V(e.onBlur,()=>S(!1))})})}),mi="RovingFocusGroupItem",hi=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,c=Qn(),l=s||c,d=Xd(mi,n),u=d.currentTabStopId===l,h=di(n),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:g}=d;return f.useEffect(()=>{if(r)return m(),()=>y()},[r,m,y]),p.jsx(mr.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:p.jsx(ee.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:V(e.onMouseDown,w=>{r?d.onItemFocus(l):w.preventDefault()}),onFocus:V(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:V(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const b=Qd(w,d.orientation,d.dir);if(b!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let v=h().filter(x=>x.focusable).map(x=>x.ref.current);if(b==="last")v.reverse();else if(b==="prev"||b==="next"){b==="prev"&&v.reverse();const x=v.indexOf(w.currentTarget);v=d.loop?ef(v,x+1):v.slice(x+1)}setTimeout(()=>gi(v))}}),children:typeof i=="function"?i({isCurrentTabStop:u,hasTabStop:g!=null}):i})})});hi.displayName=mi;var Zd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Jd(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Qd(e,t,n){const r=Jd(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Zd[r]}function gi(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ef(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var tf=pi,nf=hi,rf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},st=new WeakMap,sn=new WeakMap,an={},hr=0,vi=function(e){return e&&(e.host||vi(e.parentNode))},of=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},sf=function(e,t,n,r){var o=of(t,Array.isArray(e)?e:[e]);an[n]||(an[n]=new WeakMap);var s=an[n],i=[],a=new Set,c=new Set(o),l=function(u){!u||a.has(u)||(a.add(u),l(u.parentNode))};o.forEach(l);var d=function(u){!u||c.has(u)||Array.prototype.forEach.call(u.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(r),y=m!==null&&m!=="false",g=(st.get(h)||0)+1,w=(s.get(h)||0)+1;st.set(h,g),s.set(h,w),i.push(h),g===1&&y&&sn.set(h,!0),w===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return d(t),a.clear(),hr++,function(){i.forEach(function(u){var h=st.get(u)-1,m=s.get(u)-1;st.set(u,h),s.set(u,m),h||(sn.has(u)||u.removeAttribute(r),sn.delete(u)),m||u.removeAttribute(n)}),hr--,hr||(st=new WeakMap,st=new WeakMap,sn=new WeakMap,an={})}},af=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=rf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),sf(r,o,n,"aria-hidden")):function(){return null}},cn="right-scroll-bar-position",ln="width-before-scroll-bar",cf="with-scroll-bars-hidden",lf="--removed-body-scroll-bar-size";function gr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uf(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var df=typeof window<"u"?f.useLayoutEffect:f.useEffect,yi=new WeakMap;function ff(e,t){var n=uf(null,function(r){return e.forEach(function(o){return gr(o,r)})});return df(function(){var r=yi.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||gr(a,null)}),s.forEach(function(a){o.has(a)||gr(a,i)})}yi.set(n,e)},[e]),n}function pf(e){return e}function mf(e,t){t===void 0&&(t=pf);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var d=i;i=[],d.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),n}}}};return o}function hf(e){e===void 0&&(e={});var t=mf(null);return t.options=Z({async:!0,ssr:!1},e),t}var wi=function(e){var t=e.sideCar,n=Fr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,Z({},n))};wi.isSideCarExport=!0;function gf(e,t){return e.useMedium(t),wi}var bi=hf(),vr=function(){},un=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:vr,onWheelCapture:vr,onTouchMoveCapture:vr}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,u=e.shards,h=e.sideCar,m=e.noRelative,y=e.noIsolation,g=e.inert,w=e.allowPinchZoom,b=e.as,S=b===void 0?"div":b,v=e.gapMode,x=Fr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=h,T=ff([n,t]),E=Z(Z({},x),o);return f.createElement(f.Fragment,null,d&&f.createElement(P,{sideCar:bi,removeScrollBar:l,shards:u,noRelative:m,noIsolation:y,inert:g,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:v}),i?f.cloneElement(f.Children.only(a),Z(Z({},E),{ref:T})):f.createElement(S,Z({},E,{className:c,ref:T}),a))});un.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},un.classNames={fullWidth:ln,zeroRight:cn};var vf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vf();return t&&e.setAttribute("nonce",t),e}function wf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=yf())&&(wf(t,n),bf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Sf=function(){var e=xf();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xi=function(){var e=Sf(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ef={left:0,top:0,right:0,gap:0},yr=function(e){return parseInt(e||"",10)||0},Cf=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[yr(n),yr(r),yr(o)]},Pf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ef;var t=Cf(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Rf=xi(),it="data-scroll-locked",Tf=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
367
+ .`.concat(cf,` {
368
+ overflow: hidden `).concat(r,`;
369
+ padding-right: `).concat(a,"px ").concat(r,`;
370
+ }
371
+ body[`).concat(it,`] {
372
+ overflow: hidden `).concat(r,`;
373
+ overscroll-behavior: contain;
374
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
375
+ padding-left: `.concat(o,`px;
376
+ padding-top: `).concat(s,`px;
377
+ padding-right: `).concat(i,`px;
378
+ margin-left:0;
379
+ margin-top:0;
380
+ margin-right: `).concat(a,"px ").concat(r,`;
381
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
382
+ }
383
+
384
+ .`).concat(cn,` {
385
+ right: `).concat(a,"px ").concat(r,`;
386
+ }
387
+
388
+ .`).concat(ln,` {
389
+ margin-right: `).concat(a,"px ").concat(r,`;
390
+ }
391
+
392
+ .`).concat(cn," .").concat(cn,` {
393
+ right: 0 `).concat(r,`;
394
+ }
395
+
396
+ .`).concat(ln," .").concat(ln,` {
397
+ margin-right: 0 `).concat(r,`;
398
+ }
399
+
400
+ body[`).concat(it,`] {
401
+ `).concat(lf,": ").concat(a,`px;
402
+ }
403
+ `)},Si=function(){var e=parseInt(document.body.getAttribute(it)||"0",10);return isFinite(e)?e:0},Af=function(){f.useEffect(function(){return document.body.setAttribute(it,(Si()+1).toString()),function(){var e=Si()-1;e<=0?document.body.removeAttribute(it):document.body.setAttribute(it,e.toString())}},[])},Mf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Af();var s=f.useMemo(function(){return Pf(o)},[o]);return f.createElement(Rf,{styles:Tf(s,!t,o,n?"":"!important")})},wr=!1;if(typeof window<"u")try{var dn=Object.defineProperty({},"passive",{get:function(){return wr=!0,!0}});window.addEventListener("test",dn,dn),window.removeEventListener("test",dn,dn)}catch{wr=!1}var at=wr?{passive:!1}:!1,kf=function(e){return e.tagName==="TEXTAREA"},Ei=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!kf(e)&&n[t]==="visible")},If=function(e){return Ei(e,"overflowY")},_f=function(e){return Ei(e,"overflowX")},Ci=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Pi(e,r);if(o){var s=Ri(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Of=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Df=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Pi=function(e,t){return e==="v"?If(t):_f(t)},Ri=function(e,t){return e==="v"?Of(t):Df(t)},Lf=function(e,t){return e==="h"&&t==="rtl"?-1:1},Nf=function(e,t,n,r,o){var s=Lf(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,c=t.contains(a),l=!1,d=i>0,u=0,h=0;do{if(!a)break;var m=Ri(e,a),y=m[0],g=m[1],w=m[2],b=g-w-s*y;(y||b)&&Pi(e,a)&&(u+=b,h+=y);var S=a.parentNode;a=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(u)<1||!d&&Math.abs(h)<1)&&(l=!0),l},fn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ti=function(e){return[e.deltaX,e.deltaY]},Ai=function(e){return e&&"current"in e?e.current:e},jf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ff=function(e){return`
404
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
405
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
406
+ `)},$f=0,ct=[];function Vf(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState($f++)[0],s=f.useState(xi)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Te([e.lockRef.current],(e.shards||[]).map(Ai),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(g,w){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=fn(g),S=n.current,v="deltaX"in g?g.deltaX:S[0]-b[0],x="deltaY"in g?g.deltaY:S[1]-b[1],P,T=g.target,E=Math.abs(v)>Math.abs(x)?"h":"v";if("touches"in g&&E==="h"&&T.type==="range")return!1;var I=Ci(E,T);if(!I)return!0;if(I?P=E:(P=E==="v"?"h":"v",I=Ci(E,T)),!I)return!1;if(!r.current&&"changedTouches"in g&&(v||x)&&(r.current=P),!P)return!0;var N=r.current||P;return Nf(N,w,g,N==="h"?v:x)},[]),c=f.useCallback(function(g){var w=g;if(!(!ct.length||ct[ct.length-1]!==s)){var b="deltaY"in w?Ti(w):fn(w),S=t.current.filter(function(P){return P.name===w.type&&(P.target===w.target||w.target===P.shadowParent)&&jf(P.delta,b)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var v=(i.current.shards||[]).map(Ai).filter(Boolean).filter(function(P){return P.contains(w.target)}),x=v.length>0?a(w,v[0]):!i.current.noIsolation;x&&w.cancelable&&w.preventDefault()}}},[]),l=f.useCallback(function(g,w,b,S){var v={name:g,delta:w,target:b,should:S,shadowParent:Hf(b)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(x){return x!==v})},1)},[]),d=f.useCallback(function(g){n.current=fn(g),r.current=void 0},[]),u=f.useCallback(function(g){l(g.type,Ti(g),g.target,a(g,e.lockRef.current))},[]),h=f.useCallback(function(g){l(g.type,fn(g),g.target,a(g,e.lockRef.current))},[]);f.useEffect(function(){return ct.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",c,at),document.addEventListener("touchmove",c,at),document.addEventListener("touchstart",d,at),function(){ct=ct.filter(function(g){return g!==s}),document.removeEventListener("wheel",c,at),document.removeEventListener("touchmove",c,at),document.removeEventListener("touchstart",d,at)}},[]);var m=e.removeScrollBar,y=e.inert;return f.createElement(f.Fragment,null,y?f.createElement(s,{styles:Ff(o)}):null,m?f.createElement(Mf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Hf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bf=gf(bi,Vf);var Mi=f.forwardRef(function(e,t){return f.createElement(un,Z({},e,{ref:t,sideCar:Bf}))});Mi.classNames=un.classNames;var br=["Enter"," "],Wf=["ArrowDown","PageUp","Home"],ki=["ArrowUp","PageDown","End"],zf=[...Wf,...ki],Uf={ltr:[...br,"ArrowRight"],rtl:[...br,"ArrowLeft"]},Kf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yt="Menu",[wt,Gf,Yf]=Wn(yt),[He,Ii]=Qe(yt,[Yf,ti,fi]),pn=ti(),_i=fi(),[Xf,Be]=He(yt),[qf,bt]=He(yt),Oi=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=pn(t),[c,l]=f.useState(null),d=f.useRef(!1),u=Ee(s),h=Bn(o);return f.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),p.jsx(jd,{...a,children:p.jsx(Xf,{scope:t,open:n,onOpenChange:u,content:c,onContentChange:l,children:p.jsx(qf,{scope:t,onClose:f.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:d,dir:h,modal:i,children:r})})})};Oi.displayName=yt;var Zf="MenuAnchor",xr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pn(n);return p.jsx(Fd,{...o,...r,ref:t})});xr.displayName=Zf;var Sr="MenuPortal",[Jf,Di]=He(Sr,{forceMount:void 0}),Li=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Be(Sr,t);return p.jsx(Jf,{scope:t,forceMount:n,children:p.jsx(gt,{present:n||s.open,children:p.jsx(ui,{asChild:!0,container:o,children:r})})})};Li.displayName=Sr;var de="MenuContent",[Qf,Er]=He(de),Ni=f.forwardRef((e,t)=>{const n=Di(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Be(de,e.__scopeMenu),i=bt(de,e.__scopeMenu);return p.jsx(wt.Provider,{scope:e.__scopeMenu,children:p.jsx(gt,{present:r||s.open,children:p.jsx(wt.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(ep,{...o,ref:t}):p.jsx(tp,{...o,ref:t})})})})}),ep=f.forwardRef((e,t)=>{const n=Be(de,e.__scopeMenu),r=f.useRef(null),o=Q(t,r);return f.useEffect(()=>{const s=r.current;if(s)return af(s)},[]),p.jsx(Cr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tp=f.forwardRef((e,t)=>{const n=Be(de,e.__scopeMenu);return p.jsx(Cr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),np=Ut("MenuContent.ScrollLock"),Cr=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:h,onDismiss:m,disableOutsideScroll:y,...g}=e,w=Be(de,n),b=bt(de,n),S=pn(n),v=_i(n),x=Gf(n),[P,T]=f.useState(null),E=f.useRef(null),I=Q(t,E,w.onContentChange),N=f.useRef(0),k=f.useRef(""),D=f.useRef(0),H=f.useRef(null),W=f.useRef("right"),B=f.useRef(0),K=y?Mi:f.Fragment,j=y?{as:np,allowPinchZoom:!0}:void 0,F=A=>{const C=k.current+A,O=x().filter(Y=>!Y.disabled),L=document.activeElement,X=O.find(Y=>Y.ref.current===L)?.textValue,re=O.map(Y=>Y.textValue),te=mp(re,C,X),oe=O.find(Y=>Y.textValue===te)?.ref.current;(function Y(G){k.current=G,window.clearTimeout(N.current),G!==""&&(N.current=window.setTimeout(()=>Y(""),1e3))})(C),oe&&setTimeout(()=>oe.focus())};f.useEffect(()=>()=>window.clearTimeout(N.current),[]),lu();const _=f.useCallback(A=>W.current===H.current?.side&&gp(A,H.current?.area),[]);return p.jsx(Qf,{scope:n,searchRef:k,onItemEnter:f.useCallback(A=>{_(A)&&A.preventDefault()},[_]),onItemLeave:f.useCallback(A=>{_(A)||(E.current?.focus(),T(null))},[_]),onTriggerLeave:f.useCallback(A=>{_(A)&&A.preventDefault()},[_]),pointerGraceTimerRef:D,onPointerGraceIntentChange:f.useCallback(A=>{H.current=A},[]),children:p.jsx(K,{...j,children:p.jsx(Rs,{asChild:!0,trapped:o,onMountAutoFocus:V(s,A=>{A.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(xs,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:h,onDismiss:m,children:p.jsx(tf,{asChild:!0,...v,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:T,onEntryFocus:V(c,A=>{b.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx($d,{role:"menu","aria-orientation":"vertical","data-state":Qi(w.open),"data-radix-menu-content":"",dir:b.dir,...S,...g,ref:I,style:{outline:"none",...g.style},onKeyDown:V(g.onKeyDown,A=>{const O=A.target.closest("[data-radix-menu-content]")===A.currentTarget,L=A.ctrlKey||A.altKey||A.metaKey,X=A.key.length===1;O&&(A.key==="Tab"&&A.preventDefault(),!L&&X&&F(A.key));const re=E.current;if(A.target!==re||!zf.includes(A.key))return;A.preventDefault();const oe=x().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);ki.includes(A.key)&&oe.reverse(),fp(oe)}),onBlur:V(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(N.current),k.current="")}),onPointerMove:V(e.onPointerMove,St(A=>{const C=A.target,O=B.current!==A.clientX;if(A.currentTarget.contains(C)&&O){const L=A.clientX>B.current?"right":"left";W.current=L,B.current=A.clientX}}))})})})})})})});Ni.displayName=de;var rp="MenuGroup",Pr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{role:"group",...r,ref:t})});Pr.displayName=rp;var op="MenuLabel",ji=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{...r,ref:t})});ji.displayName=op;var mn="MenuItem",Fi="menu.itemSelect",hn=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=f.useRef(null),i=bt(mn,e.__scopeMenu),a=Er(mn,e.__scopeMenu),c=Q(t,s),l=f.useRef(!1),d=()=>{const u=s.current;if(!n&&u){const h=new CustomEvent(Fi,{bubbles:!0,cancelable:!0});u.addEventListener(Fi,m=>r?.(m),{once:!0}),Fo(u,h),h.defaultPrevented?l.current=!1:i.onClose()}};return p.jsx($i,{...o,ref:c,disabled:n,onClick:V(e.onClick,d),onPointerDown:u=>{e.onPointerDown?.(u),l.current=!0},onPointerUp:V(e.onPointerUp,u=>{l.current||u.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,u=>{const h=a.searchRef.current!=="";n||h&&u.key===" "||br.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});hn.displayName=mn;var $i=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=Er(mn,n),a=_i(n),c=f.useRef(null),l=Q(t,c),[d,u]=f.useState(!1),[h,m]=f.useState("");return f.useEffect(()=>{const y=c.current;y&&m((y.textContent??"").trim())},[s.children]),p.jsx(wt.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:p.jsx(nf,{asChild:!0,...a,focusable:!r,children:p.jsx(ee.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:l,onPointerMove:V(e.onPointerMove,St(y=>{r?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,St(y=>i.onItemLeave(y))),onFocus:V(e.onFocus,()=>u(!0)),onBlur:V(e.onBlur,()=>u(!1))})})})}),sp="MenuCheckboxItem",Vi=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Ui,{scope:e.__scopeMenu,checked:n,children:p.jsx(hn,{role:"menuitemcheckbox","aria-checked":gn(n)?"mixed":n,...o,ref:t,"data-state":Tr(n),onSelect:V(o.onSelect,()=>r?.(gn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Vi.displayName=sp;var Hi="MenuRadioGroup",[ip,ap]=He(Hi,{value:void 0,onValueChange:()=>{}}),Bi=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Ee(r);return p.jsx(ip,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Pr,{...o,ref:t})})});Bi.displayName=Hi;var Wi="MenuRadioItem",zi=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=ap(Wi,e.__scopeMenu),s=n===o.value;return p.jsx(Ui,{scope:e.__scopeMenu,checked:s,children:p.jsx(hn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Tr(s),onSelect:V(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});zi.displayName=Wi;var Rr="MenuItemIndicator",[Ui,cp]=He(Rr,{checked:!1}),Ki=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=cp(Rr,n);return p.jsx(gt,{present:r||gn(s.checked)||s.checked===!0,children:p.jsx(ee.span,{...o,ref:t,"data-state":Tr(s.checked)})})});Ki.displayName=Rr;var lp="MenuSeparator",Gi=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Gi.displayName=lp;var up="MenuArrow",Yi=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pn(n);return p.jsx(Vd,{...o,...r,ref:t})});Yi.displayName=up;var dp="MenuSub",[km,Xi]=He(dp),xt="MenuSubTrigger",qi=f.forwardRef((e,t)=>{const n=Be(xt,e.__scopeMenu),r=bt(xt,e.__scopeMenu),o=Xi(xt,e.__scopeMenu),s=Er(xt,e.__scopeMenu),i=f.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=s,l={__scopeMenu:e.__scopeMenu},d=f.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return f.useEffect(()=>d,[d]),f.useEffect(()=>{const u=a.current;return()=>{window.clearTimeout(u),c(null)}},[a,c]),p.jsx(xr,{asChild:!0,...l,children:p.jsx($i,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Qi(n.open),...e,ref:zt(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,St(u=>{s.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:V(e.onPointerLeave,St(u=>{d();const h=n.content?.getBoundingClientRect();if(h){const m=n.content?.dataset.side,y=m==="right",g=y?-5:5,w=h[y?"left":"right"],b=h[y?"right":"left"];s.onPointerGraceIntentChange({area:[{x:u.clientX+g,y:u.clientY},{x:w,y:h.top},{x:b,y:h.top},{x:b,y:h.bottom},{x:w,y:h.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(u),u.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,u=>{const h=s.searchRef.current!=="";e.disabled||h&&u.key===" "||Uf[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});qi.displayName=xt;var Zi="MenuSubContent",Ji=f.forwardRef((e,t)=>{const n=Di(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Be(de,e.__scopeMenu),i=bt(de,e.__scopeMenu),a=Xi(Zi,e.__scopeMenu),c=f.useRef(null),l=Q(t,c);return p.jsx(wt.Provider,{scope:e.__scopeMenu,children:p.jsx(gt,{present:r||s.open,children:p.jsx(wt.Slot,{scope:e.__scopeMenu,children:p.jsx(Cr,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{i.isUsingKeyboardRef.current&&c.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:V(e.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:V(e.onKeyDown,d=>{const u=d.currentTarget.contains(d.target),h=Kf[i.dir].includes(d.key);u&&h&&(s.onOpenChange(!1),a.trigger?.focus(),d.preventDefault())})})})})})});Ji.displayName=Zi;function Qi(e){return e?"open":"closed"}function gn(e){return e==="indeterminate"}function Tr(e){return gn(e)?"indeterminate":e?"checked":"unchecked"}function fp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function pp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function mp(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=pp(e,Math.max(s,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function hp(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,d=a.y,u=c.x,h=c.y;d>r!=h>r&&n<(u-l)*(r-d)/(h-d)+l&&(o=!o)}return o}function gp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return hp(n,t)}function St(e){return t=>t.pointerType==="mouse"?e(t):void 0}var vp=Oi,yp=xr,wp=Li,bp=Ni,xp=Pr,Sp=ji,Ep=hn,Cp=Vi,Pp=Bi,Rp=zi,Tp=Ki,Ap=Gi,Mp=Yi,kp=qi,Ip=Ji,vn="DropdownMenu",[_p,Im]=Qe(vn,[Ii]),ie=Ii(),[Op,ea]=_p(vn),ta=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,c=ie(t),l=f.useRef(null),[d,u]=Hn({prop:o,defaultProp:s??!1,onChange:i,caller:vn});return p.jsx(Op,{scope:t,triggerId:Qn(),triggerRef:l,contentId:Qn(),open:d,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(h=>!h),[u]),modal:a,children:p.jsx(vp,{...c,open:d,onOpenChange:u,dir:r,modal:a,children:n})})};ta.displayName=vn;var na="DropdownMenuTrigger",ra=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=ea(na,n),i=ie(n);return p.jsx(yp,{asChild:!0,...i,children:p.jsx(ee.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:zt(t,s.triggerRef),onPointerDown:V(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:V(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});ra.displayName=na;var Dp="DropdownMenuPortal",oa=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ie(t);return p.jsx(wp,{...r,...n})};oa.displayName=Dp;var sa="DropdownMenuContent",ia=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ea(sa,n),s=ie(n),i=f.useRef(!1);return p.jsx(bp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,a=>{i.current||o.triggerRef.current?.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:V(e.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,d=c.button===2||l;(!o.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ia.displayName=sa;var Lp="DropdownMenuGroup",Np=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(xp,{...o,...r,ref:t})});Np.displayName=Lp;var jp="DropdownMenuLabel",Fp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Sp,{...o,...r,ref:t})});Fp.displayName=jp;var $p="DropdownMenuItem",aa=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Ep,{...o,...r,ref:t})});aa.displayName=$p;var Vp="DropdownMenuCheckboxItem",Hp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Cp,{...o,...r,ref:t})});Hp.displayName=Vp;var Bp="DropdownMenuRadioGroup",Wp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Pp,{...o,...r,ref:t})});Wp.displayName=Bp;var zp="DropdownMenuRadioItem",Up=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Rp,{...o,...r,ref:t})});Up.displayName=zp;var Kp="DropdownMenuItemIndicator",Gp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Tp,{...o,...r,ref:t})});Gp.displayName=Kp;var Yp="DropdownMenuSeparator",Xp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Ap,{...o,...r,ref:t})});Xp.displayName=Yp;var qp="DropdownMenuArrow",Zp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Mp,{...o,...r,ref:t})});Zp.displayName=qp;var Jp="DropdownMenuSubTrigger",Qp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(kp,{...o,...r,ref:t})});Qp.displayName=Jp;var em="DropdownMenuSubContent",tm=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Ip,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tm.displayName=em;var nm=ta,rm=ra,om=oa,sm=ia,im=aa;function am({...e}){return p.jsx(nm,{...e})}function cm({...e}){return p.jsx(om,{...e})}function lm({...e}){return p.jsx(rm,{...e})}function um({sideOffset:e=4,...t}){return p.jsx(fm,{sideOffset:e,onCloseAutoFocus:n=>{n.preventDefault()},...t})}function dm(e){return p.jsx(pm,{...e})}const fm=z(sm)`
407
+ padding: 0.25rem;
408
+ min-width: 8rem;
409
+ max-height: 12rem;
410
+ overflow-y: auto;
411
+ border-radius: 0.75rem;
412
+ background: rgba(0, 0, 0, 0.8);
413
+ animation-duration: 400ms;
414
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
415
+ will-change: transform, opacity;
416
+ z-index: 1000;
231
417
 
232
- @media (min-width: 768px) {
233
- padding-top: 2rem;
418
+ &[data-state="open"][data-side="top"] {
419
+ animation-name: slideDownAndFade;
234
420
  }
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
421
 
244
- @media (min-width: 768px) {
245
- padding-left: 1rem;
246
- padding-right: 1rem;
247
- height: 4rem;
422
+ &[data-state="open"][data-side="right"] {
423
+ animation-name: slideLeftAndFade;
424
+ }
425
+
426
+ &[data-state="open"][data-side="bottom"] {
427
+ animation-name: slideUpAndFade;
428
+ }
429
+
430
+ &[data-state="open"][data-side="left"] {
431
+ animation-name: slideRightAndFade;
432
+ }
433
+
434
+ @keyframes slideUpAndFade {
435
+ from {
436
+ opacity: 0;
437
+ transform: translateY(2px);
438
+ }
439
+ to {
440
+ opacity: 1;
441
+ transform: translateY(0);
442
+ }
248
443
  }
249
- `,_o=C.div`
250
- margin: auto 0;
444
+
445
+ @keyframes slideRightAndFade {
446
+ from {
447
+ opacity: 0;
448
+ transform: translateX(-2px);
449
+ }
450
+ to {
451
+ opacity: 1;
452
+ transform: translateX(0);
453
+ }
454
+ }
455
+
456
+ @keyframes slideDownAndFade {
457
+ from {
458
+ opacity: 0;
459
+ transform: translateY(-2px);
460
+ }
461
+ to {
462
+ opacity: 1;
463
+ transform: translateY(0);
464
+ }
465
+ }
466
+
467
+ @keyframes slideLeftAndFade {
468
+ from {
469
+ opacity: 0;
470
+ transform: translateX(2px);
471
+ }
472
+ to {
473
+ opacity: 1;
474
+ transform: translateX(0);
475
+ }
476
+ }
477
+ `,pm=z(im)`
478
+ position: relative;
251
479
  display: flex;
252
- width: 100%;
253
480
  align-items: center;
254
- `,yt=C.div`
481
+ justify-content: space-between;
482
+ padding: 0.5rem;
483
+ cursor: pointer;
484
+ font-size: 0.8125rem;
485
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
486
+ "Helvetica Neue", Arial, sans-serif;
487
+ font-weight: 500;
488
+ line-height: 1;
489
+ user-select: none;
490
+ outline: none;
491
+ color: white;
492
+ border-radius: 0.5rem;
493
+ transition: background-color 0.2s ease;
494
+
495
+ svg {
496
+ width: 1rem;
497
+ height: 1rem;
498
+ flex-shrink: 0;
499
+ pointer-events: none;
500
+ }
501
+
502
+ &:hover {
503
+ background-color: rgba(255, 255, 255, 0.1);
504
+ }
505
+
506
+ &:focus {
507
+ background-color: rgba(255, 255, 255, 0.1);
508
+ }
509
+
510
+ &[data-disabled] {
511
+ color: rgba(255, 255, 255, 0.5);
512
+ pointer-events: none;
513
+ }
514
+ `,ca="settings";function la(){const[e,t]=R.useState(!1),n=M(c=>c.containerRef),r=M(c=>c.addIdleLock),o=M(c=>c.removeIdleLock),s=M(c=>c.levels),i=M(c=>c.setLevel),a=R.useCallback(c=>{t(c),c?r(ca):o(ca)},[r,o]);return p.jsxs(am,{open:e,onOpenChange:a,children:[p.jsx(lm,{asChild:!0,children:p.jsx(Ze,{children:p.jsx(eu,{})})}),p.jsx(cm,{container:n.current,children:p.jsx(um,{side:"top",align:"end",children:s?.map(c=>p.jsxs(dm,{onClick:()=>i(c.value),children:[c.label,c.selected&&p.jsx(Ql,{})]},c.sid))})})]})}function mm(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 hm(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 gm(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 ua="volume";function da(){M(a=>a.containerRef);const e=M(a=>a.setVolume),t=M(a=>a.volume),n=M(a=>a.addIdleLock),r=M(a=>a.removeIdleLock),o=a=>{e(a[0]),n(ua)},s=()=>{r(ua)},i=()=>e(t?0:100);return p.jsxs(vm,{children:[p.jsx(Ze,{onClick:i,className:"shrink-0",children:t?t>50?p.jsx(mm,{}):p.jsx(hm,{}):p.jsx(gm,{})}),p.jsx(fa,{children:p.jsx(Yn,{value:[t],onValueChange:o,onValueCommit:s})})]})}const fa=z.div`
515
+ width: 0;
516
+ opacity: 0;
517
+ transition: all 0.2s ease-in-out;
518
+ `,vm=z.div`
255
519
  display: flex;
256
- flex: 1;
257
520
  align-items: center;
258
- gap: 0.5rem;
521
+ gap: 0.25rem;
522
+ width: 3rem;
523
+ transition: all 0.2s ease-in-out;
259
524
 
260
525
  @media (min-width: 768px) {
261
- gap: 1rem;
526
+ &:hover {
527
+ width: 6rem;
528
+
529
+ ${fa} {
530
+ width: 100%;
531
+ opacity: 1;
532
+ }
533
+ }
262
534
  }
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"})}));
535
+ `;function ym({url:e,startDate:t,endDate:n,messages:r}){return p.jsx($l,{startDate:new Date(t),endDate:new Date(n),children:p.jsx(wm,{url:e,messages:r})})}function wm({url:e,messages:t}){const n=M(r=>r.containerRef);return p.jsx(ls,{ref:n,children:p.jsxs(Mc,{eventFinishedMessage:t?.eventFinished,eventNotStartedMessage:t?.eventNotStarted,eventStartingSoonMessage:t?.eventStartingSoon,children:[p.jsx(Wl,{url:e}),p.jsx(ys,{}),p.jsxs(vs,{children:[p.jsx(Qc,{}),p.jsx(us,{children:p.jsxs(ds,{children:[p.jsx(Fl,{}),p.jsxs(fs,{children:[p.jsxs(ms,{children:[p.jsx(Zc,{}),p.jsx(da,{}),p.jsx(Vl,{})]}),p.jsxs(hs,{children:[p.jsx(Lc,{message:t?.live}),p.jsx(la,{}),p.jsx(gs,{})]})]})]})})]})]})})}function bm(){const e=M(o=>o.isPlaying),t=M(o=>o.pause),n=M(o=>o.play),r=()=>{e?t():n()};return p.jsx(Ze,{onClick:r,children:e?p.jsx(To,{}):p.jsx(Ao,{})})}function xm(){const e=M(o=>o.isPlaying),t=M(o=>o.pause),n=M(o=>o.play),r=()=>{e?t():n()};return p.jsx(Io,{onClick:r})}const pa="vod-player-progress-bar";function Sm(){const e=R.useRef(null),t=R.useRef(null),[n,r]=R.useState(!1),[o,s]=R.useState(-1),[i,a]=R.useState(-1),c=M(v=>v.currentTime),l=M(v=>v.duration),d=M(v=>v.seek),u=M(v=>v.addIdleLock),h=M(v=>v.removeIdleLock),m=parseFloat((l?(i!==-1?i:c)/l*100:0).toFixed(1)),y=v=>{a(l*(v[0]/100)),u(pa)},g=()=>{i!==-1&&(d(i),a(-1),h(pa))},w=()=>r(!0),b=()=>r(!1),S=R.useCallback(v=>{const x=e.current,P=t.current;if(x&&P){const T=Gt(x),E=Gt(P),I=(v.pageX||v.clientX)-T.left,N=I/T.width;if(N<0)return;let k=I-E.width/2;k<0&&(k=0),k>T.width-E.width&&(k=-1),P.style.left=k>-1?`${k}px`:"auto",P.style.right=k>-1?"auto":"0px",s(N*l)}w()},[l]);return p.jsxs(_o,{children:[p.jsx(Yn,{ref:e,value:[m],onPointerLeave:b,onPointerDown:b,onPointerMove:S,onValueChange:y,onValueCommit:g,step:.1}),p.jsx(Oo,{ref:t,$isVisible:n,children:p.jsx(Do,{children:Je(o)})})]})}function Em(){const e=M(n=>n.currentTime),t=M(n=>n.duration);return p.jsxs(rs,{children:[p.jsx(ss,{children:Je(e)}),p.jsx(as,{}),p.jsx(is,{children:Je(t)})]})}const Cm=60,Pm=95;function Rm({storageKey:e}){const t=M(d=>d.currentTime),n=M(d=>d.duration),r=M(d=>d.isPlaying),o=M(d=>d.setStartTime),s=R.useRef(!1),i=R.useCallback(()=>{window.localStorage.setItem(e,JSON.stringify({currentTime:t,duration:n}))},[t,n,e]),a=R.useCallback(()=>{const d=window.localStorage.getItem(e);if(d){const u=JSON.parse(d);return{startTime:u.currentTime,progress:u.currentTime/u.duration*100}}return{startTime:null,progress:null}},[e]),c=R.useCallback(()=>{t<Cm||i()},[t,i]),l=R.useCallback(()=>{if(s.current)return;const{progress:d,startTime:u}=a();u&&d&&d<Pm&&(o(u),s.current=!0)},[a,o]);return Ct(()=>c(),r?1e3:null),R.useEffect(()=>{l()},[l]),null}function Tm({url:e,watchHistory:t}){return p.jsxs(ns,{children:[p.jsx(Am,{url:e}),t?.enabled&&p.jsx(Rm,{storageKey:t.storageKey})]})}function Am({url:e}){const t=M(n=>n.containerRef);return p.jsxs(ls,{ref:t,children:[p.jsx(cs,{url:e,isLive:!1}),p.jsx(ys,{}),p.jsxs(vs,{children:[p.jsx(xm,{}),p.jsx(us,{children:p.jsxs(ds,{children:[p.jsx(Sm,{}),p.jsxs(fs,{children:[p.jsxs(ms,{children:[p.jsx(bm,{}),p.jsx(da,{}),p.jsx(Em,{})]}),p.jsxs(hs,{children:[p.jsx(la,{}),p.jsx(gs,{})]})]})]})})]})]})}he.LivePlayer=ym,he.VodPlayer=Tm,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})}));
270
536
  //# sourceMappingURL=react-video-player.umd.js.map