@halibegic/react-video-player 0.0.3 → 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.
@@ -1,4 +1,4 @@
1
- (function(oe,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react"),require("react-dom"),require("hls.js")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","hls.js"],m):(oe=typeof globalThis<"u"?globalThis:oe||self,m(oe.ReactVideoPlayer={},oe.React,oe.ReactDOM,oe.Hls))})(this,(function(oe,m,Li,Ie){"use strict";function Tr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const w=Tr(m);var Ve={exports:{}},Ae={};/**
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 Ot;function jr(){if(Ot)return Ae;Ot=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return Ae.Fragment=t,Ae.jsx=n,Ae.jsxs=n,Ae}var Le={};/**
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 Nt;function Rr(){return Nt||(Nt=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===I?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case S:return"Fragment";case x:return"Profiler";case E:return"StrictMode";case _:return"Suspense";case k:return"SuspenseList";case U:return"Activity"}if(typeof p=="object")switch(typeof p.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),p.$$typeof){case C:return"Portal";case h:return(p.displayName||"Context")+".Provider";case T:return(p._context.displayName||"Context")+".Consumer";case b:var j=p.render;return p=p.displayName,p||(p=j.displayName||j.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case P:return j=p.displayName||null,j!==null?j:e(p.type)||"Memo";case H:j=p._payload,p=p._init;try{return e(p(j))}catch{}}return null}function t(p){return""+p}function n(p){try{t(p);var j=!1}catch{j=!0}if(j){j=console;var A=j.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&p[Symbol.toStringTag]||p.constructor.name||"Object";return A.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),t(p)}}function r(p){if(p===S)return"<>";if(typeof p=="object"&&p!==null&&p.$$typeof===H)return"<...>";try{var j=e(p);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function o(){var p=O.A;return p===null?null:p.getOwner()}function s(){return Error("react-stack-top-frame")}function i(p){if(B.call(p,"key")){var j=Object.getOwnPropertyDescriptor(p,"key").get;if(j&&j.isReactWarning)return!1}return p.key!==void 0}function a(p,j){function A(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",j))}A.isReactWarning=!0,Object.defineProperty(p,"key",{get:A,configurable:!0})}function l(){var p=e(this.type);return Z[p]||(Z[p]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),p=this.props.ref,p!==void 0?p:null}function u(p,j,A,$,ee,Y,ae,ue){return A=Y.ref,p={$$typeof:y,type:p,key:j,props:Y,_owner:ee},(A!==void 0?A:null)!==null?Object.defineProperty(p,"ref",{enumerable:!1,get:l}):Object.defineProperty(p,"ref",{enumerable:!1,value:null}),p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(p,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(p,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(p,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p}function f(p,j,A,$,ee,Y,ae,ue){var N=j.children;if(N!==void 0)if($)if(Q(N)){for($=0;$<N.length;$++)d(N[$]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(N);if(B.call(j,"key")){N=e(p);var K=Object.keys(j).filter(function(_e){return _e!=="key"});$=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",W[N+$]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
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} />`,$,N,K,N),W[N+$]=!0)}if(N=null,A!==void 0&&(n(A),N=""+A),i(j)&&(n(j.key),N=""+j.key),"key"in j){A={};for(var ve in j)ve!=="key"&&(A[ve]=j[ve])}else A=j;return N&&a(A,typeof p=="function"?p.displayName||p.name||"Unknown":p),u(p,N,Y,ee,o(),A,ae,ue)}function d(p){typeof p=="object"&&p!==null&&p.$$typeof===y&&p._store&&(p._store.validated=1)}var g=m,y=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),h=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),I=Symbol.for("react.client.reference"),O=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,Q=Array.isArray,ne=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(p){return p()}};var re,Z={},V=g.react_stack_bottom_frame.bind(g,s)(),X=ne(r(s)),W={};Le.Fragment=S,Le.jsx=function(p,j,A,$,ee){var Y=1e4>O.recentlyCreatedOwnerStacks++;return f(p,j,A,!1,$,ee,Y?Error("react-stack-top-frame"):V,Y?ne(r(p)):X)},Le.jsxs=function(p,j,A,$,ee){var Y=1e4>O.recentlyCreatedOwnerStacks++;return f(p,j,A,!0,$,ee,Y?Error("react-stack-top-frame"):V,Y?ne(r(p)):X)}})()),Le}var Vt;function _r(){return Vt||(Vt=1,process.env.NODE_ENV==="production"?Ve.exports=jr():Ve.exports=Rr()),Ve.exports}var c=_r();const Ir=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Fe(e,t){const n=m.useRef(e);Ir(()=>{n.current=e},[e]),m.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function Ar(e){const[,t]=m.useState(0);Fe(()=>t(n=>n+1),e)}const Ft=e=>{let t;const n=new Set,r=(u,f)=>{const d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const g=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(y=>y(t,g))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(r,o,a);return a},Lr=(e=>e?Ft(e):Ft),Dr=e=>e;function at(e,t=Dr){const n=m.useSyncExternalStore(e.subscribe,m.useCallback(()=>t(e.getState()),[e,t]),m.useCallback(()=>t(e.getInitialState()),[e,t]));return m.useDebugValue(n),n}const $t=e=>{const t=Lr(e),n=r=>at(t,r);return Object.assign(n,t),n},Ht=(e=>e?$t(e):$t),Mr=(e,t)=>Ht(n=>({delay:0,startDate:e,endDate:t,startTime:e.getTime(),endTime:t.getTime(),setDelay:r=>n({delay:r}),setStartDate:r=>n({startDate:r}),setEndDate:r=>n({endDate:r})})),zt=m.createContext(null),Or=({children:e,startDate:t,endDate:n})=>{const r=m.useRef(null);return r.current||(r.current=Mr(t,n)),c.jsx(zt.Provider,{value:r.current,children:e})},q=e=>{const t=m.useContext(zt);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return at(t,e)};var G=function(){return G=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},G.apply(this,arguments)};function fe(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Nr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Vr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Fr=Nr(function(e){return Vr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),M="-ms-",De="-moz-",D="-webkit-",Bt="comm",$e="rule",ct="decl",$r="@import",Ut="@keyframes",Hr="@layer",Wt=Math.abs,lt=String.fromCharCode,ut=Object.assign;function zr(e,t){return z(e,0)^45?(((t<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3):0}function Yt(e){return e.trim()}function ie(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,n){return e.replace(t,n)}function He(e,t,n){return e.indexOf(t,n)}function z(e,t){return e.charCodeAt(t)|0}function Se(e,t,n){return e.slice(t,n)}function se(e){return e.length}function qt(e){return e.length}function Me(e,t){return t.push(e),e}function Br(e,t){return e.map(t).join("")}function Gt(e,t){return e.filter(function(n){return!ie(n,t)})}var ze=1,we=1,Kt=0,J=0,F=0,be="";function Be(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:ze,column:we,length:i,return:"",siblings:a}}function ce(e,t){return ut(Be("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xe(e){for(;e.root;)e=ce(e.root,{children:[e]});Me(e,e.siblings)}function Ur(){return F}function Wr(){return F=J>0?z(be,--J):0,we--,F===10&&(we=1,ze--),F}function te(){return F=J<Kt?z(be,J++):0,we++,F===10&&(we=1,ze++),F}function pe(){return z(be,J)}function Ue(){return J}function We(e,t){return Se(be,e,t)}function dt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yr(e){return ze=we=1,Kt=se(be=e),J=0,[]}function qr(e){return be="",e}function ft(e){return Yt(We(J-1,pt(e===91?e+2:e===40?e+1:e)))}function Gr(e){for(;(F=pe())&&F<33;)te();return dt(e)>2||dt(F)>3?"":" "}function Kr(e,t){for(;--t&&te()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return We(e,Ue()+(t<6&&pe()==32&&te()==32))}function pt(e){for(;te();)switch(F){case e:return J;case 34:case 39:e!==34&&e!==39&&pt(F);break;case 40:e===41&&pt(e);break;case 92:te();break}return J}function Zr(e,t){for(;te()&&e+F!==57;)if(e+F===84&&pe()===47)break;return"/*"+We(t,J-1)+"*"+lt(e===47?e:te())}function Xr(e){for(;!dt(pe());)te();return We(e,J)}function Jr(e){return qr(Ye("",null,null,null,[""],e=Yr(e),0,[0],e))}function Ye(e,t,n,r,o,s,i,a,l){for(var u=0,f=0,d=i,g=0,y=0,C=0,S=1,E=1,x=1,T=0,h="",b=o,_=s,k=r,P=h;E;)switch(C=T,T=te()){case 40:if(C!=108&&z(P,d-1)==58){He(P+=R(ft(T),"&","&\f"),"&\f",Wt(u?a[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:P+=ft(T);break;case 9:case 10:case 13:case 32:P+=Gr(C);break;case 92:P+=Kr(Ue()-1,7);continue;case 47:switch(pe()){case 42:case 47:Me(Qr(Zr(te(),Ue()),t,n,l),l);break;default:P+="/"}break;case 123*S:a[u++]=se(P)*x;case 125*S:case 59:case 0:switch(T){case 0:case 125:E=0;case 59+f:x==-1&&(P=R(P,/\f/g,"")),y>0&&se(P)-d&&Me(y>32?Xt(P+";",r,n,d-1,l):Xt(R(P," ","")+";",r,n,d-2,l),l);break;case 59:P+=";";default:if(Me(k=Zt(P,t,n,u,f,o,a,h,b=[],_=[],d,s),s),T===123)if(f===0)Ye(P,t,k,k,b,s,d,a,_);else switch(g===99&&z(P,3)===110?100:g){case 100:case 108:case 109:case 115:Ye(e,k,k,r&&Me(Zt(e,k,k,0,0,o,a,h,o,b=[],d,_),_),o,_,d,a,r?b:_);break;default:Ye(P,k,k,k,[""],_,0,a,_)}}u=f=y=0,S=x=1,h=P="",d=i;break;case 58:d=1+se(P),y=C;default:if(S<1){if(T==123)--S;else if(T==125&&S++==0&&Wr()==125)continue}switch(P+=lt(T),T*S){case 38:x=f>0?1:(P+="\f",-1);break;case 44:a[u++]=(se(P)-1)*x,x=1;break;case 64:pe()===45&&(P+=ft(te())),g=pe(),f=d=se(h=P+=Xr(Ue())),T++;break;case 45:C===45&&se(P)==2&&(S=0)}}return s}function Zt(e,t,n,r,o,s,i,a,l,u,f,d){for(var g=o-1,y=o===0?s:[""],C=qt(y),S=0,E=0,x=0;S<r;++S)for(var T=0,h=Se(e,g+1,g=Wt(E=i[S])),b=e;T<C;++T)(b=Yt(E>0?y[T]+" "+h:R(h,/&\f/g,y[T])))&&(l[x++]=b);return Be(e,t,n,o===0?$e:a,l,u,f,d)}function Qr(e,t,n,r){return Be(e,t,n,Bt,lt(Ur()),Se(e,2,-2),0,r)}function Xt(e,t,n,r,o){return Be(e,t,n,ct,Se(e,0,r),Se(e,r+1,-1),r,o)}function Jt(e,t,n){switch(zr(e,t)){case 5103:return D+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return D+e+e;case 4789:return De+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return D+e+De+e+M+e+e;case 5936:switch(z(e,t+11)){case 114:return D+e+M+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return D+e+M+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return D+e+M+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return D+e+M+e+e;case 6165:return D+e+M+"flex-"+e+e;case 5187:return D+e+R(e,/(\w+).+(:[^]+)/,D+"box-$1$2"+M+"flex-$1$2")+e;case 5443:return D+e+M+"flex-item-"+R(e,/flex-|-self/g,"")+(ie(e,/flex-|baseline/)?"":M+"grid-row-"+R(e,/flex-|-self/g,""))+e;case 4675:return D+e+M+"flex-line-pack"+R(e,/align-content|flex-|-self/g,"")+e;case 5548:return D+e+M+R(e,"shrink","negative")+e;case 5292:return D+e+M+R(e,"basis","preferred-size")+e;case 6060:return D+"box-"+R(e,"-grow","")+D+e+M+R(e,"grow","positive")+e;case 4554:return D+R(e,/([^-])(transform)/g,"$1"+D+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,D+"$1"),/(image-set)/,D+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,D+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,D+"box-pack:$3"+M+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+D+e+e;case 4200:if(!ie(e,/flex-|baseline/))return M+"grid-column-align"+Se(e,t)+e;break;case 2592:case 3360:return M+R(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ie(r.props,/grid-\w+-end/)})?~He(e+(n=n[t].value),"span",0)?e:M+R(e,"-start","")+e+M+"grid-row-span:"+(~He(n,"span",0)?ie(n,/\d+/):+ie(n,/\d+/)-+ie(e,/\d+/))+";":M+R(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ie(r.props,/grid-\w+-start/)})?e:M+R(R(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,D+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(se(e)-1-t>6)switch(z(e,t+1)){case 109:if(z(e,t+4)!==45)break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+D+"$2-$3$1"+De+(z(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~He(e,"stretch",0)?Jt(R(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return R(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,l,u){return M+o+":"+s+u+(i?M+o+"-span:"+(a?l:+l-+s)+u:"")+e});case 4949:if(z(e,t+6)===121)return R(e,":",":"+D)+e;break;case 6444:switch(z(e,z(e,14)===45?18:11)){case 120:return R(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+D+(z(e,14)===45?"inline-":"")+"box$3$1"+D+"$2$3$1"+M+"$2box$3")+e;case 100:return R(e,":",":"+M)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return R(e,"scroll-","scroll-snap-")+e}return e}function qe(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function eo(e,t,n,r){switch(e.type){case Hr:if(e.children.length)break;case $r:case ct:return e.return=e.return||e.value;case Bt:return"";case Ut:return e.return=e.value+"{"+qe(e.children,r)+"}";case $e:if(!se(e.value=e.props.join(",")))return""}return se(n=qe(e.children,r))?e.return=e.value+"{"+n+"}":""}function to(e){var t=qt(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function no(e){return function(t){t.root||(t=t.return)&&e(t)}}function ro(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ct:e.return=Jt(e.value,e.length,n);return;case Ut:return qe([ce(e,{value:R(e.value,"@","@"+D)})],r);case $e:if(e.length)return Br(n=e.props,function(o){switch(ie(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xe(ce(e,{props:[R(o,/:(read-\w+)/,":"+De+"$1")]})),xe(ce(e,{props:[o]})),ut(e,{props:Gt(n,r)});break;case"::placeholder":xe(ce(e,{props:[R(o,/:(plac\w+)/,":"+D+"input-$1")]})),xe(ce(e,{props:[R(o,/:(plac\w+)/,":"+De+"$1")]})),xe(ce(e,{props:[R(o,/:(plac\w+)/,M+"input-$1")]})),xe(ce(e,{props:[o]})),ut(e,{props:Gt(n,r)});break}return""})}}var oo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},he=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Qt="active",en="data-styled-version",Ge="6.1.19",ht=`/*!sc*/
23
- `,Ke=typeof window<"u"&&typeof document<"u",so=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),tn=/invalid hook call/i,Ze=new Set,io=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
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(i){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];tn.test(i)?(s=!1,Ze.delete(r)):o.apply(void 0,fe([i],a,!1))},m.useRef(),s&&!Ze.has(r)&&(console.warn(r),Ze.add(r))}catch(i){tn.test(i.message)&&Ze.delete(r)}finally{console.error=o}}},Xe=Object.freeze([]),Ce=Object.freeze({});function ao(e,t,n){return n===void 0&&(n=Ce),e.theme!==n.theme&&e.theme||t||n.theme}var mt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),co=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,lo=/(^-|-$)/g;function nn(e){return e.replace(co,"-").replace(lo,"")}var uo=/(a)(d)/gi,Je=52,rn=function(e){return String.fromCharCode(e+(e>25?39:97))};function gt(e){var t,n="";for(t=Math.abs(e);t>Je;t=t/Je|0)n=rn(t%Je)+n;return(rn(t%Je)+n).replace(uo,"$1-$2")}var yt,on=5381,me=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},sn=function(e){return me(on,e)};function an(e){return gt(sn(e)>>>0)}function cn(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function vt(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var ln=typeof Symbol=="function"&&Symbol.for,un=ln?Symbol.for("react.memo"):60115,fo=ln?Symbol.for("react.forward_ref"):60112,po={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ho={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},dn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mo=((yt={})[fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yt[un]=dn,yt);function fn(e){return("type"in(t=e)&&t.type.$$typeof)===un?dn:"$$typeof"in e?mo[e.$$typeof]:po;var t}var go=Object.defineProperty,yo=Object.getOwnPropertyNames,pn=Object.getOwnPropertySymbols,vo=Object.getOwnPropertyDescriptor,So=Object.getPrototypeOf,hn=Object.prototype;function mn(e,t,n){if(typeof t!="string"){if(hn){var r=So(t);r&&r!==hn&&mn(e,r,n)}var o=yo(t);pn&&(o=o.concat(pn(t)));for(var s=fn(e),i=fn(t),a=0;a<o.length;++a){var l=o[a];if(!(l in ho||n&&n[l]||i&&l in i||s&&l in s)){var u=vo(t,l);try{go(e,l,u)}catch{}}}}return e}function Ee(e){return typeof e=="function"}function St(e){return typeof e=="object"&&"styledComponentId"in e}function ge(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function wt(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Pe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function bt(e,t,n){if(n===void 0&&(n=!1),!n&&!Pe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=bt(e[r],t[r]);else if(Pe(t))for(var r in t)e[r]=bt(e[r],t[r]);return e}function xt(e,t){Object.defineProperty(e,"toString",{value:t})}var wo=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
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 bo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}function ke(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(bo.apply(void 0,fe([wo[e]],t,!1)).trim())}var xo=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw ke(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),l=(i=0,n.length);i<l;i++)this.tag.insertRule(a,n[i])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,i=o;i<s;i++)n+="".concat(this.tag.getRule(i)).concat(ht);return n},e})(),Co=1<<30,Qe=new Map,et=new Map,tt=1,nt=function(e){if(Qe.has(e))return Qe.get(e);for(;et.has(tt);)tt++;var t=tt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Co))throw ke(16,"".concat(t));return Qe.set(e,t),et.set(t,e),t},Eo=function(e,t){tt=t+1,Qe.set(e,t),et.set(t,e)},Po="style[".concat(he,"][").concat(en,'="').concat(Ge,'"]'),ko=new RegExp("^".concat(he,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),To=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},jo=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ht),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var l=a.match(ko);if(l){var u=0|parseInt(l[1],10),f=l[2];u!==0&&(Eo(f,u),To(e,f,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},gn=function(e){for(var t=document.querySelectorAll(Po),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(he)!==Qt&&(jo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Ro(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var yn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(he,"]")));return l[l.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(he,Qt),r.setAttribute(en,Ge);var i=Ro();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},_o=(function(){function e(t){this.element=yn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var i=r[o];if(i.ownerNode===n)return i}throw ke(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Io=(function(){function e(t){this.element=yn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Ao=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),vn=Ke,Lo={isServer:!Ke,useCSSOMInjection:!so},Sn=(function(){function e(t,n,r){t===void 0&&(t=Ce),n===void 0&&(n={});var o=this;this.options=G(G({},Lo),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Ke&&vn&&(vn=!1,gn(this)),xt(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,l="",u=function(d){var g=(function(x){return et.get(x)})(d);if(g===void 0)return"continue";var y=s.names.get(g),C=i.getGroup(d);if(y===void 0||!y.size||C.length===0)return"continue";var S="".concat(he,".g").concat(d,'[id="').concat(g,'"]'),E="";y!==void 0&&y.forEach(function(x){x.length>0&&(E+="".concat(x,","))}),l+="".concat(C).concat(S,'{content:"').concat(E,'"}').concat(ht)},f=0;f<a;f++)u(f);return l})(o)})}return e.registerId=function(t){return nt(t)},e.prototype.rehydrate=function(){!this.server&&Ke&&gn(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(G(G({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Ao(o):r?new _o(o):new Io(o)})(this.options),new xo(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(nt(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(nt(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Do=/&/g,Mo=/^\s*\/\/.*$/gm;function wn(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=wn(n.children,t)),n})}function Oo(e){var t,n,r,o=Ce,s=o.options,i=s===void 0?Ce:s,a=o.plugins,l=a===void 0?Xe:a,u=function(g,y,C){return C.startsWith(n)&&C.endsWith(n)&&C.replaceAll(n,"").length>0?".".concat(t):g},f=l.slice();f.push(function(g){g.type===$e&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Do,n).replace(r,u))}),i.prefix&&f.push(ro),f.push(eo);var d=function(g,y,C,S){y===void 0&&(y=""),C===void 0&&(C=""),S===void 0&&(S="&"),t=S,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var E=g.replace(Mo,""),x=Jr(C||y?"".concat(C," ").concat(y," { ").concat(E," }"):E);i.namespace&&(x=wn(x,i.namespace));var T=[];return qe(x,to(f.concat(no(function(h){return T.push(h)})))),T};return d.hash=l.length?l.reduce(function(g,y){return y.name||ke(15),me(g,y.name)},on).toString():"",d}var No=new Sn,Ct=Oo(),bn=m.createContext({shouldForwardProp:void 0,styleSheet:No,stylis:Ct});bn.Consumer,m.createContext(void 0);function xn(){return m.useContext(bn)}var Et=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=Ct);var i=r.name+s.hash;o.hasNameForId(r.id,i)||o.insertRules(r.id,i,s(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,xt(this,function(){throw ke(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ct),this.name+t.hash},e})(),Vo=function(e){return e>="A"&&e<="Z"};function Cn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Vo(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var En=function(e){return e==null||e===!1||e===""},Pn=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!En(s)&&(Array.isArray(s)&&s.isCss||Ee(s)?r.push("".concat(Cn(o),":"),s,";"):Pe(s)?r.push.apply(r,fe(fe(["".concat(o," {")],Pn(s),!1),["}"],!1)):r.push("".concat(Cn(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in oo||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ye(e,t,n,r){if(En(e))return[];if(St(e))return[".".concat(e.styledComponentId)];if(Ee(e)){if(!Ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Et||Pe(o)||o===null||console.error("".concat(cn(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ye(o,t,n,r)}var s;return e instanceof Et?n?(e.inject(n,r),[e.getName(r)]):[e]:Pe(e)?Pn(e):Array.isArray(e)?Array.prototype.concat.apply(Xe,e.map(function(i){return ye(i,t,n,r)})):[e.toString()]}function Fo(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ee(n)&&!St(n))return!1}return!0}var $o=sn(Ge),Ho=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Fo(t),this.componentId=n,this.baseHash=me($o,n),this.baseStyle=r,Sn.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ge(o,this.staticRulesId);else{var s=wt(ye(this.rules,t,n,r)),i=gt(me(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,i)){var a=r(s,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,a)}o=ge(o,i),this.staticRulesId=i}else{for(var l=me(this.baseHash,r.hash),u="",f=0;f<this.rules.length;f++){var d=this.rules[f];if(typeof d=="string")u+=d,process.env.NODE_ENV!=="production"&&(l=me(l,d));else if(d){var g=wt(ye(d,t,n,r));l=me(l,g+f),u+=g}}if(u){var y=gt(l>>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(u,".".concat(y),void 0,this.componentId)),o=ge(o,y)}}return o},e})(),kn=m.createContext(void 0);kn.Consumer;var Pt={},Tn=new Set;function zo(e,t,n){var r=St(e),o=e,s=!vt(e),i=t.attrs,a=i===void 0?Xe:i,l=t.componentId,u=l===void 0?(function(b,_){var k=typeof b!="string"?"sc":nn(b);Pt[k]=(Pt[k]||0)+1;var P="".concat(k,"-").concat(an(Ge+k+Pt[k]));return _?"".concat(_,"-").concat(P):P})(t.displayName,t.parentComponentId):l,f=t.displayName,d=f===void 0?(function(b){return vt(b)?"styled.".concat(b):"Styled(".concat(cn(b),")")})(e):f,g=t.displayName&&t.componentId?"".concat(nn(t.displayName),"-").concat(t.componentId):t.componentId||u,y=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,C=t.shouldForwardProp;if(r&&o.shouldForwardProp){var S=o.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;C=function(b,_){return S(b,_)&&E(b,_)}}else C=S}var x=new Ho(n,g,r?o.componentStyle:void 0);function T(b,_){return(function(k,P,H){var U=k.attrs,I=k.componentStyle,O=k.defaultProps,B=k.foldedComponentIds,Q=k.styledComponentId,ne=k.target,re=m.useContext(kn),Z=xn(),V=k.shouldForwardProp||Z.shouldForwardProp;process.env.NODE_ENV!=="production"&&m.useDebugValue(Q);var X=ao(P,re,O)||Ce,W=(function(Y,ae,ue){for(var N,K=G(G({},ae),{className:void 0,theme:ue}),ve=0;ve<Y.length;ve+=1){var _e=Ee(N=Y[ve])?N(K):N;for(var de in _e)K[de]=de==="className"?ge(K[de],_e[de]):de==="style"?G(G({},K[de]),_e[de]):_e[de]}return ae.className&&(K.className=ge(K.className,ae.className)),K})(U,P,X),p=W.as||ne,j={};for(var A in W)W[A]===void 0||A[0]==="$"||A==="as"||A==="theme"&&W.theme===X||(A==="forwardedAs"?j.as=W.forwardedAs:V&&!V(A,p)||(j[A]=W[A],V||process.env.NODE_ENV!=="development"||Fr(A)||Tn.has(A)||!mt.has(p)||(Tn.add(A),console.warn('styled-components: it looks like an unknown prop "'.concat(A,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var $=(function(Y,ae){var ue=xn(),N=Y.generateAndInjectStyles(ae,ue.styleSheet,ue.stylis);return process.env.NODE_ENV!=="production"&&m.useDebugValue(N),N})(I,W);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses($);var ee=ge(B,Q);return $&&(ee+=" "+$),W.className&&(ee+=" "+W.className),j[vt(p)&&!mt.has(p)?"class":"className"]=ee,H&&(j.ref=H),m.createElement(p,j)})(h,b,_)}T.displayName=d;var h=m.forwardRef(T);return h.attrs=y,h.componentStyle=x,h.displayName=d,h.shouldForwardProp=C,h.foldedComponentIds=r?ge(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=g,h.target=r?o.target:e,Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?(function(_){for(var k=[],P=1;P<arguments.length;P++)k[P-1]=arguments[P];for(var H=0,U=k;H<U.length;H++)bt(_,U[H],!0);return _})({},o.defaultProps,b):b}}),process.env.NODE_ENV!=="production"&&(io(d,g),h.warnTooManyClasses=(function(b,_){var k={},P=!1;return function(H){if(!P&&(k[H]=!0,Object.keys(k).length>=200)){var U=_?' with the id of "'.concat(_,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(b).concat(U,`.
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,11 +74,11 @@ Example:
74
74
  },
75
75
  }))\`width: 100%;\`
76
76
 
77
- <Component />`),P=!0,k={}}}})(d,g)),xt(h,function(){return".".concat(h.styledComponentId)}),s&&mn(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}function jn(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Rn=function(e){return Object.assign(e,{isCss:!0})};function rt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ee(e)||Pe(e))return Rn(ye(jn(Xe,fe([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ye(r):Rn(ye(jn(r,t)))}function kt(e,t,n){if(n===void 0&&(n=Ce),!t)throw ke(1,t);var r=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return e(t,n,rt.apply(void 0,fe([o],s,!1)))};return r.attrs=function(o){return kt(e,t,G(G({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return kt(e,t,G(G({},n),o))},r}var _n=function(e){return kt(zo,e)},L=_n;mt.forEach(function(e){L[e]=_n(e)});function Bo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=wt(rt.apply(void 0,fe([e],t,!1))),o=an(r);return new Et(o,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
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 ot="__sc-".concat(he,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ot]||(window[ot]=0),window[ot]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
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[ot]+=1);function Uo({children:e,eventFinishedMessage:t,eventNotStartedMessage:n,eventStartingSoonMessage:r}){const o=q(u=>u.startDate),s=q(u=>u.endDate),i=Date.now(),a=i<o.getTime(),l=i>s.getTime();return Ar(5e3),a?c.jsx(Wo,{startDate:o,title:n||"Event has not started yet.",message:r||"Starting in few seconds..."}):l?c.jsx(Yo,{title:t||"Event has finished."}):c.jsx(c.Fragment,{children:e})}function Wo({startDate:e,title:t,message:n}){const r=e.getTime()-Date.now(),o=Math.floor(r/(1e3*60*60)),s=Math.floor(r%(1e3*60*60)/(1e3*60));return o||s?c.jsxs(Tt,{children:[c.jsx(jt,{children:t}),c.jsxs(qo,{children:["(",o>0?`${o}h ${s}m`:`${s}m`,")"]})]}):c.jsx(Tt,{children:c.jsx(jt,{children:n})})}function Yo({title:e}){return c.jsx(Tt,{children:c.jsx(jt,{children:e})})}const Tt=L.div`
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
82
  position: absolute;
83
83
  top: 0;
84
84
  left: 0;
@@ -91,28 +91,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
91
91
  justify-content: center;
92
92
  color: black;
93
93
  background: #f7e406;
94
- `,jt=L.h3`
94
+ `,Vn=z.h3`
95
95
  margin: 0;
96
96
  padding: 0.5rem 0;
97
97
  font-size: 1.5rem;
98
98
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
99
99
  "Helvetica Neue", Arial, sans-serif;
100
100
  font-weight: 500;
101
- `,qo=L.p`
101
+ `,_c=z.p`
102
102
  margin: 0;
103
103
  height: 1.25rem;
104
104
  font-size: 1rem;
105
105
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
106
106
  "Helvetica Neue", Arial, sans-serif;
107
107
  font-weight: 500;
108
- `;function Go(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})}function Oe({shape:e="circle",...t}){return c.jsx(Ko,{$shape:e,...t})}const Ko=L.button`
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
109
  margin: 0;
110
110
  display: flex;
111
111
  align-items: center;
112
112
  justify-content: center;
113
113
  flex-shrink: 0;
114
114
  line-height: 1;
115
- font-size: 0.875rem;
115
+ font-size: 0.8125rem;
116
116
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
117
117
  "Helvetica Neue", Arial, sans-serif;
118
118
  font-weight: 500;
@@ -120,17 +120,18 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
120
120
  color: white;
121
121
  background: none;
122
122
  border: none;
123
+ border-radius: 1rem;
123
124
  transition: color 0.2s ease-in-out, background 0.2s ease-in-out;
124
125
 
125
126
  svg {
126
127
  width: 1.25rem;
127
128
  height: 1.25rem;
128
129
  flex-shrink: 0;
130
+ pointer-events: none;
129
131
  }
130
132
 
131
133
  &:hover {
132
- color: black;
133
- background: #f7e406;
134
+ background: rgba(255, 255, 255, 0.1);
134
135
  }
135
136
 
136
137
  &:focus {
@@ -142,18 +143,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
142
143
  cursor: not-allowed;
143
144
  }
144
145
 
145
- ${({$shape:e})=>e==="circle"&&rt`
146
+ ${({$shape:e})=>e==="circle"&&Bt`
146
147
  padding: 0;
147
- width: 2.25rem;
148
- height: 2.25rem;
149
- border-radius: 1.25rem;
148
+ width: 2rem;
149
+ height: 2rem;
150
150
  `}
151
151
 
152
- ${({$shape:e})=>e==="square"&&rt`
152
+ ${({$shape:e})=>e==="square"&&Bt`
153
153
  padding: 0.25rem 0.5rem;
154
- border-radius: 1rem;
155
154
  `}
156
- `;function Zo({message:e,...t}){const n=q(s=>s.delay),r=q(s=>s.setDelay),o=()=>r(0);return n?c.jsxs(Oe,{onClick:o,shape:"square",...t,children:[c.jsx("span",{children:e||"Live"}),c.jsx(Go,{})]}):null}function In(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M6 3H8V21H6V3ZM16 3H18V21H16V3Z"})})}function An(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M6 20.1957V3.80421C6 3.01878 6.86395 2.53993 7.53 2.95621L20.6432 11.152C21.2699 11.5436 21.2699 12.4563 20.6432 12.848L7.53 21.0437C6.86395 21.46 6 20.9812 6 20.1957Z"})})}function Xo(e,t,n){const r={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(r[t]/r[n])}function Jo(e){return Xo(e,"milliseconds","seconds")}const Te=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`};function Qo(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const Ln=Qo(/iPhone|iPad|iPod/i);function es(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function ts(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function ns(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function rs(e,t){return e.addEventListener("fullscreenchange",t),e.addEventListener("webkitfullscreenchange",t),e.addEventListener("mozfullscreenchange",t),e.addEventListener("MSFullscreenChange",t),()=>{e.removeEventListener("fullscreenchange",t),e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("mozfullscreenchange",t),e.removeEventListener("MSFullscreenChange",t)}}const os=(e,t)=>({currentTime:0,duration:0,isEnded:!1,isLoading:!1,isLoop:!1,isMetaLoaded:!1,isPlaying:!1,isReady:!1,isStarted:!1,pauseTime:0,seekTime:-1,startTime:-1,volume:100,destroy:()=>{},handleDurationChange:()=>{const n=t().techRef.current;n&&e({duration:n.duration})},handleEnd:()=>{t().techRef.current&&e({isEnded:!0,isLoading:!1,isMetaLoaded:!1,isPlaying:!1})},handleLoadedMetadata:()=>{const n=t().techRef.current;n&&(n.loop=t().isLoop,n.volume=n.muted?0:1,t().startTime!==-1&&(n.currentTime=t().startTime),e({currentTime:t().startTime!==-1?t().startTime:n.currentTime,duration:n.duration,startTime:-1,isMetaLoaded:!0,volume:n.muted?0:100}))},handleLoadStart:()=>{const n=t().techRef.current;n&&(e({isReady:!0}),n.play().then(()=>{e({isEnded:!1,isLoading:!1,isPlaying:!0,isStarted:!0,pauseTime:0})}).catch(r=>e(()=>(console.info("Player failed to autoplay",r),{isStarted:!1,isEnded:!1,isLoading:!1,isPlaying:!1}))))},handlePause:()=>e({isPlaying:!1,pauseTime:Date.now()}),handlePlay:()=>e({isPlaying:!0,pauseTime:0}),handlePlaying:()=>e({isLoading:!1}),handleSeeked:()=>e({isLoading:!1}),handleSeeking:()=>e({isLoading:!0}),handleTimeUpdate:()=>{const n=t().techRef.current;n&&e({currentTime:n.currentTime})},handleWaiting:()=>e({isLoading:!0}),pause:()=>{const n=t().techRef.current;n&&(n.pause(),e({isEnded:!1,isPlaying:!1,pauseTime:Date.now()}))},pauseTimeDiff:()=>Jo(Date.now()-t().pauseTime),play:()=>{const n=t().techRef.current;n&&(n.play(),e({isEnded:!1,isPlaying:!0,isStarted:!0,pauseTime:0}))},seek:n=>{const r=t().techRef.current;r&&(r.currentTime=n,(r.paused||r.ended)&&r.play(),e({seekTime:-1,currentTime:n,isStarted:!0,isEnded:!1,isPlaying:!0}))},setIsLoading:n=>e({isLoading:n}),setIsLoop:n=>{const r=t().techRef.current;r&&(r.loop=n,e({isLoop:n}))},setStartTime:n=>e({startTime:n}),setVolume:n=>{const r=t().techRef.current;r&&(r.muted=n===0,r.volume=n/100,e({volume:n}))},stop:()=>{t().techRef.current&&e({isPlaying:!1,isLoading:!1})}}),ss=e=>({idleLocks:new Set,addIdleLock:t=>e(n=>({idleLocks:new Set(n.idleLocks).add(t)})),removeIdleLock:t=>e(n=>{const r=new Set(n.idleLocks);return r.delete(t),{idleLocks:r}})}),is=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{ns(document),e({isFullscreen:!1})},requestFullscreen:()=>{const n=t().techRef.current,r=t().containerRef.current;if(!n||!r)return;const o=Ln?n:r;o&&ts(o),e({isFullscreen:!0})},setIsFullscreen:n=>e({isFullscreen:n}),setIsFullscreenReady:n=>e({isFullscreenReady:n})}),as=e=>({url:"",setURL:t=>e({url:t})}),cs=e=>()=>({...e}),ls=(e,t)=>Ht()((...n)=>({...os(...n),...ss(...n),...is(...n),...as(...n),...cs({techRef:e,containerRef:t})(...n)})),Dn=m.createContext(null);function us({children:e}){const t=m.useRef(null),n=m.useRef(null),r=m.useRef(null);return t.current||(t.current=ls(n,r)),c.jsx(Dn.Provider,{value:t.current,children:e})}const v=e=>{const t=m.useContext(Dn);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return at(t,e)};function ds(){const e=v(l=>l.isPlaying),t=v(l=>l.pause),n=v(l=>l.pauseTime),r=v(l=>l.pauseTimeDiff),o=v(l=>l.play),s=q(l=>l.delay),i=q(l=>l.setDelay),a=()=>{e?t():(n&&i(s+r()),o())};return c.jsx(Oe,{onClick:a,children:e?c.jsx(In,{}):c.jsx(An,{})})}function Mn({className:e,onClick:t,...n}){const r=m.useRef(null),o=v(d=>d.exitFullscreen),s=v(d=>d.isFullscreen),i=v(d=>d.requestFullscreen),a=d=>{f()?(u(),s?o():i()):l(d)},l=d=>{r.current=window.setTimeout(()=>{t?.(d),u()},200)},u=()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},f=()=>r.current!==null;return m.useEffect(()=>()=>{u()},[]),c.jsx(fs,{onClick:a,className:e,"aria-label":"Player playback indicator",...n})}const fs=L.button`
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`
157
156
  position: absolute;
158
157
  top: 0;
159
158
  left: 0;
@@ -171,10 +170,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
171
170
  &:focus {
172
171
  outline: none;
173
172
  }
174
- `;function ps(){const e=v(r=>r.isPlaying),t=v(r=>r.play),n=()=>{e||t()};return c.jsx(Mn,{onClick:n})}const On=L.div`
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`
175
174
  position: relative;
176
175
  width: 100%;
177
- `,Nn=L.div`
176
+ margin-bottom: -0.25rem;
177
+ `,Oo=z.div`
178
178
  position: absolute;
179
179
  bottom: 1.75rem;
180
180
  left: 0;
@@ -185,11 +185,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
185
185
  opacity: ${({$isVisible:e})=>e?1:0};
186
186
  transform: ${({$isVisible:e})=>e?"translateY(0)":"translateY(-0.5rem)"};
187
187
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
188
- `,Vn=L.p`
188
+ `,Do=z.p`
189
189
  margin: 0;
190
190
  padding: 0.25rem;
191
191
  font-variant-numeric: tabular-nums;
192
- font-size: 0.875rem;
192
+ font-size: 0.8125rem;
193
193
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
194
194
  "Helvetica Neue", Arial, sans-serif;
195
195
  font-weight: 500;
@@ -197,7 +197,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
197
197
  color: white;
198
198
  background: rgba(0, 0, 0, 0.8);
199
199
  border-radius: 1rem;
200
- `;function Fn(e,[t,n]){return Math.min(n,Math.max(t,e))}function je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function $n(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Hn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=$n(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():$n(e[o],null)}}}}function le(...e){return w.useCallback(Hn(...e),e)}function zn(e,t=[]){let n=[];function r(s,i){const a=w.createContext(i),l=n.length;n=[...n,i];const u=d=>{const{scope:g,children:y,...C}=d,S=g?.[e]?.[l]||a,E=w.useMemo(()=>C,Object.values(C));return c.jsx(S.Provider,{value:E,children:y})};u.displayName=s+"Provider";function f(d,g){const y=g?.[e]?.[l]||a,C=w.useContext(y);if(C)return C;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(i=>w.createContext(i));return function(a){const l=a?.[e]||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,hs(o,...t)]}function hs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Bn=globalThis?.document?w.useLayoutEffect:()=>{},ms=w[" useInsertionEffect ".trim().toString()]||Bn;function gs({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=ys({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const f=w.useRef(e!==void 0);w.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,r])}const u=w.useCallback(f=>{if(a){const d=vs(f)?f(e):f;d!==e&&i.current?.(d)}else s(f)},[a,e,s,i]);return[l,u]}function ys({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),o=w.useRef(n),s=w.useRef(t);return ms(()=>{s.current=t},[t]),w.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function vs(e){return typeof e=="function"}var Ss=w.createContext(void 0);function ws(e){const t=w.useContext(Ss);return e||t||"ltr"}function bs(e){const t=w.useRef({value:e,previous:e});return w.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function xs(e){const[t,n]=w.useState(void 0);return Bn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Rt(e){const t=Cs(e),n=w.forwardRef((r,o)=>{const{children:s,...i}=r,a=w.Children.toArray(s),l=a.find(Ps);if(l){const u=l.props.children,f=a.map(d=>d===l?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:d);return c.jsx(t,{...i,ref:o,children:w.isValidElement(u)?w.cloneElement(u,void 0,f):null})}return c.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Cs(e){const t=w.forwardRef((n,r)=>{const{children:o,...s}=n;if(w.isValidElement(o)){const i=Ts(o),a=ks(s,o.props);return o.type!==w.Fragment&&(a.ref=r?Hn(r,i):i),w.cloneElement(o,a)}return w.Children.count(o)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Es=Symbol("radix.slottable");function Ps(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Es}function ks(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ts(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var js=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=js.reduce((e,t)=>{const n=Rt(`Primitive.${t}`),r=w.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Rs(e){const t=e+"CollectionProvider",[n,r]=zn(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=S=>{const{scope:E,children:x}=S,T=m.useRef(null),h=m.useRef(new Map).current;return c.jsx(o,{scope:E,itemMap:h,collectionRef:T,children:x})};i.displayName=t;const a=e+"CollectionSlot",l=Rt(a),u=m.forwardRef((S,E)=>{const{scope:x,children:T}=S,h=s(a,x),b=le(E,h.collectionRef);return c.jsx(l,{ref:b,children:T})});u.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",g=Rt(f),y=m.forwardRef((S,E)=>{const{scope:x,children:T,...h}=S,b=m.useRef(null),_=le(E,b),k=s(f,x);return m.useEffect(()=>(k.itemMap.set(b,{ref:b,...h}),()=>void k.itemMap.delete(b))),c.jsx(g,{[d]:"",ref:_,children:T})});y.displayName=f;function C(S){const E=s(e+"CollectionConsumer",S);return m.useCallback(()=>{const T=E.collectionRef.current;if(!T)return[];const h=Array.from(T.querySelectorAll(`[${d}]`));return Array.from(E.itemMap.values()).sort((k,P)=>h.indexOf(k.ref.current)-h.indexOf(P.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:i,Slot:u,ItemSlot:y},C,r]}var Un=["PageUp","PageDown"],Wn=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Yn={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Re="Slider",[_t,_s,Is]=Rs(Re),[qn,Di]=zn(Re,[Is]),[As,st]=qn(Re),Gn=w.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:f,onValueChange:d=()=>{},onValueCommit:g=()=>{},inverted:y=!1,form:C,...S}=e,E=w.useRef(new Set),x=w.useRef(0),h=i==="horizontal"?Ls:Ds,[b=[],_]=gs({prop:f,defaultProp:u,onChange:O=>{[...E.current][x.current]?.focus(),d(O)}}),k=w.useRef(b);function P(O){const B=Fs(b,O);I(O,B)}function H(O){I(O,x.current)}function U(){const O=k.current[x.current];b[x.current]!==O&&g(b)}function I(O,B,{commit:Q}={commit:!1}){const ne=Bs(s),re=Us(Math.round((O-r)/s)*s+r,ne),Z=Fn(re,[r,o]);_((V=[])=>{const X=Ns(V,Z,B);if(zs(X,l*s)){x.current=X.indexOf(Z);const W=String(X)!==String(V);return W&&Q&&g(X),W?X:V}else return V})}return c.jsx(As,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:x,thumbs:E.current,values:b,orientation:i,form:C,children:c.jsx(_t.Provider,{scope:e.__scopeSlider,children:c.jsx(_t.Slot,{scope:e.__scopeSlider,children:c.jsx(h,{"aria-disabled":a,"data-disabled":a?"":void 0,...S,ref:t,onPointerDown:je(S.onPointerDown,()=>{a||(k.current=b)}),min:r,max:o,inverted:y,onSlideStart:a?void 0:P,onSlideMove:a?void 0:H,onSlideEnd:a?void 0:U,onHomeKeyDown:()=>!a&&I(r,0,{commit:!0}),onEndKeyDown:()=>!a&&I(o,b.length-1,{commit:!0}),onStepKeyDown:({event:O,direction:B})=>{if(!a){const re=Un.includes(O.key)||O.shiftKey&&Wn.includes(O.key)?10:1,Z=x.current,V=b[Z],X=s*re*B;I(V+X,Z,{commit:!0})}}})})})})});Gn.displayName=Re;var[Kn,Zn]=qn(Re,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Ls=w.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:u,...f}=e,[d,g]=w.useState(null),y=le(t,h=>g(h)),C=w.useRef(void 0),S=ws(o),E=S==="ltr",x=E&&!s||!E&&s;function T(h){const b=C.current||d.getBoundingClientRect(),_=[0,b.width],P=Lt(_,x?[n,r]:[r,n]);return C.current=b,P(h-b.left)}return c.jsx(Kn,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:c.jsx(Xn,{dir:S,"data-orientation":"horizontal",...f,ref:y,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:h=>{const b=T(h.clientX);i?.(b)},onSlideMove:h=>{const b=T(h.clientX);a?.(b)},onSlideEnd:()=>{C.current=void 0,l?.()},onStepKeyDown:h=>{const _=Yn[x?"from-left":"from-right"].includes(h.key);u?.({event:h,direction:_?-1:1})}})})}),Ds=w.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:l,...u}=e,f=w.useRef(null),d=le(t,f),g=w.useRef(void 0),y=!o;function C(S){const E=g.current||f.current.getBoundingClientRect(),x=[0,E.height],h=Lt(x,y?[r,n]:[n,r]);return g.current=E,h(S-E.top)}return c.jsx(Kn,{scope:e.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:c.jsx(Xn,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const E=C(S.clientY);s?.(E)},onSlideMove:S=>{const E=C(S.clientY);i?.(E)},onSlideEnd:()=>{g.current=void 0,a?.()},onStepKeyDown:S=>{const x=Yn[y?"from-bottom":"from-top"].includes(S.key);l?.({event:S,direction:x?-1:1})}})})}),Xn=w.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:l,...u}=e,f=st(Re,n);return c.jsx(Ne.span,{...u,ref:t,onKeyDown:je(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):Un.concat(Wn).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:je(e.onPointerDown,d=>{const g=d.target;g.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(g)?g.focus():r(d)}),onPointerMove:je(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:je(e.onPointerUp,d=>{const g=d.target;g.hasPointerCapture(d.pointerId)&&(g.releasePointerCapture(d.pointerId),s(d))})})}),Jn="SliderTrack",Qn=w.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=st(Jn,n);return c.jsx(Ne.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Qn.displayName=Jn;var It="SliderRange",er=w.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=st(It,n),s=Zn(It,n),i=w.useRef(null),a=le(t,i),l=o.values.length,u=o.values.map(g=>rr(g,o.min,o.max)),f=l>1?Math.min(...u):0,d=100-Math.max(...u);return c.jsx(Ne.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:f+"%",[s.endEdge]:d+"%"}})});er.displayName=It;var At="SliderThumb",tr=w.forwardRef((e,t)=>{const n=_s(e.__scopeSlider),[r,o]=w.useState(null),s=le(t,a=>o(a)),i=w.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return c.jsx(Ms,{...e,ref:s,index:i})}),Ms=w.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=st(At,n),a=Zn(At,n),[l,u]=w.useState(null),f=le(t,T=>u(T)),d=l?i.form||!!l.closest("form"):!0,g=xs(l),y=i.values[r],C=y===void 0?0:rr(y,i.min,i.max),S=Vs(r,i.values.length),E=g?.[a.size],x=E?$s(E,C,a.direction):0;return w.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),c.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${C}% + ${x}px)`},children:[c.jsx(_t.ItemSlot,{scope:e.__scopeSlider,children:c.jsx(Ne.span,{role:"slider","aria-label":e["aria-label"]||S,"aria-valuemin":i.min,"aria-valuenow":y,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:f,style:y===void 0?{display:"none"}:e.style,onFocus:je(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),d&&c.jsx(nr,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:y},r)]})});tr.displayName=At;var Os="RadioBubbleInput",nr=w.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=w.useRef(null),s=le(o,r),i=bs(t);return w.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&f){const d=new Event("input",{bubbles:!0});f.call(a,t),a.dispatchEvent(d)}},[i,t]),c.jsx(Ne.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});nr.displayName=Os;function Ns(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function rr(e,t,n){const s=100/(n-t)*(e-t);return Fn(s,[0,100])}function Vs(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Fs(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function $s(e,t,n){const r=e/2,s=Lt([0,50],[0,r]);return(r-s(t)*n)*n}function Hs(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function zs(e,t){if(t>0){const n=Hs(e);return Math.min(...n)>=t}return!0}function Lt(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Bs(e){return(String(e).split(".")[1]||"").length}function Us(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Ws=Gn,Ys=Qn,qs=er,Gs=tr;function Dt({max:e=100,min:t=0,...n}){return c.jsxs(Ks,{min:t,max:e,"aria-label":"Player progress",onKeyDown:r=>r.preventDefault(),...n,children:[c.jsx(Zs,{children:c.jsx(Xs,{})}),c.jsx(Js,{})]})}const Ks=L(Ws)`
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
201
  position: relative;
202
202
  display: flex;
203
203
  align-items: center;
@@ -211,23 +211,23 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
211
211
  cursor: not-allowed;
212
212
  opacity: 0.5;
213
213
  }
214
- `,Zs=L(Ys)`
214
+ `,_l=z(Al)`
215
215
  position: relative;
216
216
  height: 0.25rem;
217
217
  flex-grow: 1;
218
218
  background: rgba(255, 255, 255, 0.2);
219
219
  border-radius: 1rem;
220
220
  overflow: hidden;
221
- `,Xs=L(qs)`
221
+ `,Ol=z(Ml)`
222
222
  position: absolute;
223
223
  height: 100%;
224
224
  background: #f7e406;
225
225
  transition: width 0.2s ease-in-out;
226
226
  border-radius: 1rem;
227
- `,Js=L(Gs)`
227
+ `,Dl=z(kl)`
228
228
  display: block;
229
- width: 1rem;
230
- height: 1rem;
229
+ width: 0.875rem;
230
+ height: 0.875rem;
231
231
  cursor: pointer;
232
232
  background: white;
233
233
  transition: all 0.2s ease-in-out;
@@ -247,25 +247,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
247
247
  cursor: not-allowed;
248
248
  opacity: 0.5;
249
249
  }
250
- `;function it(e){const t=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight?{left:t.left*100,right:t.right*100,top:t.top*100,bottom:t.bottom*100,width:t.width*100,height:t.height*100}:t}const Qs=(e,t)=>parseInt(Math.max(0,(Date.now()-(e+t*1e3))/1e3).toFixed(0)),or=(e,t)=>Math.max(0,(Date.now()-e-t*1e3)/1e3),sr=(e,t)=>Math.max(0,(t-e)/1e3),ir="vod-player-progress-bar";function ei(){const e=m.useRef(null),t=m.useRef(null),[n,r]=m.useState(0),[o,s]=m.useState(0),[i,a]=m.useState(!1),[l,u]=m.useState(-1),[f,d]=m.useState(-1),g=q(I=>I.delay),y=q(I=>I.startTime),C=q(I=>I.endTime),S=q(I=>I.setDelay),E=v(I=>I.isPlaying),x=v(I=>I.addIdleLock),T=v(I=>I.removeIdleLock),h=m.useCallback(()=>{r(or(y,g)),s(sr(y,C))},[g,C,y]),b=parseFloat((o?(f!==-1?f:n)/o*100:0).toFixed(1)),_=I=>{d(o*(I[0]/100)),x(ir)},k=()=>{if(f!==-1){const I=Qs(y,f);S(I),d(-1),T(ir)}},P=()=>a(!0),H=()=>a(!1),U=m.useCallback(I=>{const O=e.current,B=t.current;if(O&&B){const Q=it(O),ne=it(B),re=(I.pageX||I.clientX)-Q.left,Z=re/Q.width;if(Z<0)return;let V=re-ne.width/2;V<0&&(V=0),V>Q.width-ne.width&&(V=-1),B.style.left=V>-1?`${V}px`:"auto",B.style.right=V>-1?"auto":"0px",u(Z*o)}P()},[o]);return Fe(()=>h(),E?1e3:null),m.useEffect(()=>{h()},[h]),c.jsxs(On,{children:[c.jsx(Dt,{ref:e,value:[b],onPointerLeave:H,onPointerDown:H,onPointerMove:U,onValueChange:_,onValueCommit:k,step:.1}),c.jsx(Nn,{ref:t,$isVisible:i,children:c.jsx(Vn,{children:Te(l)})})]})}function ar({children:e}){return c.jsx(us,{children:e})}function ti({children:e,startDate:t,endDate:n}){return c.jsx(Or,{startDate:t,endDate:n,children:c.jsx(ar,{children:e})})}const cr=L.div`
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
251
  display: flex;
252
252
  align-items: center;
253
- `,lr=L.p`
253
+ `,os=z.p`
254
254
  margin: 0;
255
255
  padding: 0;
256
256
  font-variant-numeric: tabular-nums;
257
- font-size: 0.875rem;
257
+ font-size: 0.8125rem;
258
258
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
259
259
  "Helvetica Neue", Arial, sans-serif;
260
260
  font-weight: 500;
261
- `,ur=L(lr)`
261
+ `,ss=z(os)`
262
262
  margin-right: 0.5rem;
263
- `,dr=L(lr)`
263
+ `,is=z(os)`
264
264
  margin-left: 0.5rem;
265
- `,fr=L.p`
265
+ `,as=z.p`
266
266
  margin: 0;
267
267
  padding: 0;
268
- font-size: 0.875rem;
268
+ font-size: 0.8125rem;
269
269
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
270
270
  "Helvetica Neue", Arial, sans-serif;
271
271
  font-weight: 500;
@@ -273,7 +273,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
273
273
  &::before {
274
274
  content: "/";
275
275
  }
276
- `;function ni(){const[e,t]=m.useState(0),[n,r]=m.useState(0),o=v(u=>u.isPlaying),s=q(u=>u.delay),i=q(u=>u.startTime),a=q(u=>u.endTime),l=m.useCallback(()=>{t(or(i,s)),r(sr(i,a))},[s,a,i]);return Fe(()=>l(),o?1e3:null),m.useEffect(()=>{l()},[l]),s?c.jsxs(cr,{children:[c.jsx(ur,{children:Te(e)}),c.jsx(fr,{}),c.jsx(dr,{children:Te(n)})]}):null}function ri({url:e,isLive:t}){const n=m.useRef(null),r=v(a=>a.techRef),o=m.useCallback(()=>{n.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),n.current.loadSource(e))},[e]),s=m.useCallback(()=>{if(!r.current)return;const u=t?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(u)),console.log("[Player] Version",Ie.version),n.current=new Ie(u),n.current.attachMedia(r.current),n.current.on(Ie.Events.MEDIA_ATTACHED,o)}catch(f){throw new Error(`Error initializing Hls: ${f}`)}},[o,t,r,e]),i=m.useCallback(()=>{n.current&&(n.current.off(Ie.Events.MEDIA_ATTACHED,o),n.current.destroy(),n.current=null)},[o]);return m.useEffect(()=>(Ie.isSupported()&&s(),i),[i,s]),null}function pr({url:e,isLive:t,isMuted:n=!1}){const r=v(h=>h.handleDurationChange),o=v(h=>h.handleEnd),s=v(h=>h.handleLoadedMetadata),i=v(h=>h.handleLoadStart),a=v(h=>h.handlePause),l=v(h=>h.handlePlay),u=v(h=>h.handlePlaying),f=v(h=>h.handleSeeked),d=v(h=>h.handleSeeking),g=v(h=>h.handleTimeUpdate),y=v(h=>h.handleWaiting),C=v(h=>h.techRef),S=m.useRef(null),E=()=>t?{}:{onDurationChange:r,onSeeked:f,onSeeking:d,onTimeUpdate:x},x=()=>{(!S.current||Date.now()-S.current>=1e3)&&(g(),S.current=Date.now())},T=E();return c.jsxs(c.Fragment,{children:[c.jsx(ri,{isLive:t,url:e}),c.jsx(oi,{ref:C,playsInline:!0,autoPlay:!0,controls:!1,muted:n,preload:"auto",crossOrigin:"anonymous",onEnded:o,onLoadedMetadata:s,onLoadStart:i,onPause:a,onPlay:l,onPlaying:u,onWaiting:y,tabIndex:-1,...T})]})}const oi=L.video`
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
277
  position: relative;
278
278
  width: 100%;
279
279
  height: 100%;
@@ -281,7 +281,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
281
281
  @media (min-width: 768px) {
282
282
  pointer-events: none;
283
283
  }
284
- `;function si({url:e}){const[t,n]=m.useState(null),r=q(s=>s.delay),o=m.useCallback(async()=>{n(r?e.replace("playlist.m3u8",`playlist_fmp4_dvr_timeshift-${r}.m3u8`):e)},[r,e]);return m.useEffect(()=>{o()},[o]),t?c.jsx(pr,{url:t,isLive:!0}):null}const hr=L.div`
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`
285
285
  position: absolute;
286
286
  top: 0;
287
287
  left: 0;
@@ -290,7 +290,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
290
290
  color: white;
291
291
  background: black;
292
292
  overflow: hidden;
293
- `,mr=L.div`
293
+ `,us=z.div`
294
294
  position: absolute;
295
295
  left: 0;
296
296
  width: 100%;
@@ -302,37 +302,33 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
302
302
  @media (min-width: 768px) {
303
303
  padding-top: 2rem;
304
304
  }
305
- `,gr=L.div`
305
+ `,ds=z.div`
306
306
  display: flex;
307
307
  flex-direction: column;
308
308
  padding-left: 0.5rem;
309
309
  padding-right: 0.5rem;
310
310
  line-height: 1;
311
311
  font-size: 0;
312
- height: 4rem;
313
312
 
314
313
  @media (min-width: 768px) {
315
314
  padding-left: 1rem;
316
315
  padding-right: 1rem;
317
- height: 4.5rem;
318
316
  }
319
- `,yr=L.div`
320
- margin: auto 0;
317
+ `,fs=z.div`
321
318
  display: flex;
319
+ padding: 0.5rem 0;
322
320
  width: 100%;
323
321
  align-items: center;
324
- `,Mt=L.div`
322
+ `,ps=z.div`
325
323
  display: flex;
326
324
  flex: 1;
327
325
  align-items: center;
328
326
  gap: 0.5rem;
329
- `,vr=L(Mt)`
327
+ `,ms=z(ps)`
330
328
  justify-content: flex-start;
331
- `,ii=L(Mt)`
332
- justify-content: center;
333
- `,Sr=L(Mt)`
329
+ `,hs=z(ps)`
334
330
  justify-content: flex-end;
335
- `;function ai(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z"})})}function ci(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"})})}function wr(){const e=v(u=>u.containerRef),t=v(u=>u.exitFullscreen),n=v(u=>u.isFullscreen),r=v(u=>u.requestFullscreen),o=v(u=>u.setIsFullscreen),s=v(u=>u.setIsFullscreenReady),i=v(u=>u.techRef),a=m.useCallback(u=>{u.stopPropagation(),o(es())},[o]),l=()=>{n?t():r()};return m.useEffect(()=>{const u=Ln?i.current:e.current;if(u)return rs(u,a)},[e,a,i]),m.useEffect(()=>{s(!0)},[s]),c.jsx(Oe,{onClick:l,children:n?c.jsx(ci,{}):c.jsx(ai,{})})}const li=5*1e3;function br({children:e}){const t=m.useRef(null),[n,r]=m.useState(!1),o=m.useRef(null),i=v(u=>u.idleLocks).size,a=m.useCallback(()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},[]),l=m.useCallback(()=>{a(),o.current=window.setTimeout(()=>r(!0),li)},[a]);return m.useEffect(()=>(r(!1),l(),()=>{a()}),[a,l]),m.useEffect(()=>{const u=t.current;if(!u)return;const f=g=>{n&&(g.stopPropagation(),r(!1),l())},d=()=>{n&&r(!1),l()};return u.addEventListener("click",f),u.addEventListener("mousemove",d),()=>{u.removeEventListener("click",f),u.removeEventListener("mousemove",d)}},[t,n,r,l]),c.jsx(ui,{ref:t,$isIdle:n&&!i,children:e})}const ui=L.div`
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`
336
332
  position: absolute;
337
333
  top: 0;
338
334
  left: 0;
@@ -341,21 +337,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
341
337
  transition: opacity 0.2s ease-in-out;
342
338
  cursor: ${({$isIdle:e})=>e?"none":"auto"};
343
339
  opacity: ${({$isIdle:e})=>e?0:1};
344
- `;function di(e){return c.jsx(pi,{...e})}const fi=Bo`
340
+ `;function Yl(e){return p.jsx(ql,{...e})}const Xl=Ac`
345
341
  from {
346
342
  transform: rotate(0deg);
347
343
  }
348
344
  to {
349
345
  transform: rotate(360deg);
350
346
  }
351
- `,pi=L.div`
347
+ `,ql=z.div`
352
348
  width: 1.5rem;
353
349
  height: 1.5rem;
354
350
  border: 2px solid white;
355
351
  border-bottom-color: transparent;
356
352
  border-radius: 50%;
357
- animation: ${fi} 1s linear infinite;
358
- `;function hi(e,t=500){const[n,r]=m.useState(e);return m.useEffect(()=>{const o=window.setTimeout(()=>r(e),t);return()=>{window.clearTimeout(o)}},[e,t]),n}function xr({style:e,...t}){const n=v(o=>o.isLoading);return hi(n,100)?c.jsx(mi,{style:e,...t,children:c.jsx(di,{})}):null}const mi=L.div`
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`
359
355
  pointer-events: none;
360
356
  position: absolute;
361
357
  top: 0;
@@ -367,11 +363,159 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
367
363
  height: 100%;
368
364
  align-items: center;
369
365
  justify-content: center;
370
- `;function gi(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z"})})}function yi(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z"})})}function vi(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z"})})}const Cr="volume";function Er(){v(a=>a.containerRef);const e=v(a=>a.setVolume),t=v(a=>a.volume),n=v(a=>a.addIdleLock),r=v(a=>a.removeIdleLock),o=a=>{e(a[0]),n(Cr)},s=()=>{r(Cr)},i=()=>e(t?0:100);return c.jsxs(Si,{children:[c.jsx(Oe,{onClick:i,className:"shrink-0",children:t?t>50?c.jsx(gi,{}):c.jsx(yi,{}):c.jsx(vi,{})}),c.jsx(Pr,{children:c.jsx(Dt,{value:[t],onValueChange:o,onValueCommit:s})})]})}const Pr=L.div`
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;
417
+
418
+ &[data-state="open"][data-side="top"] {
419
+ animation-name: slideDownAndFade;
420
+ }
421
+
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
+ }
443
+ }
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;
479
+ display: flex;
480
+ align-items: center;
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`
371
515
  width: 0;
372
516
  opacity: 0;
373
517
  transition: all 0.2s ease-in-out;
374
- `,Si=L.div`
518
+ `,vm=z.div`
375
519
  display: flex;
376
520
  align-items: center;
377
521
  gap: 0.25rem;
@@ -382,11 +526,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ot]+=1);function Uo({children
382
526
  &:hover {
383
527
  width: 6rem;
384
528
 
385
- ${Pr} {
529
+ ${fa} {
386
530
  width: 100%;
387
531
  opacity: 1;
388
532
  }
389
533
  }
390
534
  }
391
- `;function wi({url:e,startDate:t,endDate:n,messages:r}){return c.jsx(ti,{startDate:new Date(t),endDate:new Date(n),children:c.jsx(bi,{url:e,messages:r})})}function bi({url:e,messages:t}){const n=v(r=>r.containerRef);return c.jsx(hr,{ref:n,children:c.jsxs(Uo,{eventFinishedMessage:t?.eventFinished,eventNotStartedMessage:t?.eventNotStarted,eventStartingSoonMessage:t?.eventStartingSoon,children:[c.jsx(si,{url:e}),c.jsx(xr,{}),c.jsxs(br,{children:[c.jsx(ps,{}),c.jsx(mr,{children:c.jsxs(gr,{children:[c.jsx(ei,{}),c.jsxs(yr,{children:[c.jsxs(vr,{children:[c.jsx(ds,{}),c.jsx(Er,{}),c.jsx(ni,{})]}),c.jsxs(Sr,{children:[c.jsx(Zo,{message:t?.live}),c.jsx(wr,{})]})]})]})})]})]})})}function xi(){const e=v(o=>o.isPlaying),t=v(o=>o.pause),n=v(o=>o.play),r=()=>{e?t():n()};return c.jsx(Oe,{onClick:r,children:e?c.jsx(In,{}):c.jsx(An,{})})}function Ci(){const e=v(o=>o.isPlaying),t=v(o=>o.pause),n=v(o=>o.play),r=()=>{e?t():n()};return c.jsx(Mn,{onClick:r})}const kr="vod-player-progress-bar";function Ei(){const e=m.useRef(null),t=m.useRef(null),[n,r]=m.useState(!1),[o,s]=m.useState(-1),[i,a]=m.useState(-1),l=v(h=>h.currentTime),u=v(h=>h.duration),f=v(h=>h.seek),d=v(h=>h.addIdleLock),g=v(h=>h.removeIdleLock),y=parseFloat((u?(i!==-1?i:l)/u*100:0).toFixed(1)),C=h=>{a(u*(h[0]/100)),d(kr)},S=()=>{i!==-1&&(f(i),a(-1),g(kr))},E=()=>r(!0),x=()=>r(!1),T=m.useCallback(h=>{const b=e.current,_=t.current;if(b&&_){const k=it(b),P=it(_),H=(h.pageX||h.clientX)-k.left,U=H/k.width;if(U<0)return;let I=H-P.width/2;I<0&&(I=0),I>k.width-P.width&&(I=-1),_.style.left=I>-1?`${I}px`:"auto",_.style.right=I>-1?"auto":"0px",s(U*u)}E()},[u]);return c.jsxs(On,{children:[c.jsx(Dt,{ref:e,value:[y],onPointerLeave:x,onPointerDown:x,onPointerMove:T,onValueChange:C,onValueCommit:S,step:.1}),c.jsx(Nn,{ref:t,$isVisible:n,children:c.jsx(Vn,{children:Te(o)})})]})}function Pi(){const e=v(n=>n.currentTime),t=v(n=>n.duration);return c.jsxs(cr,{children:[c.jsx(ur,{children:Te(e)}),c.jsx(fr,{}),c.jsx(dr,{children:Te(t)})]})}const ki=m.lazy(()=>Promise.resolve().then(()=>Ai));function Ti({url:e,watchHistory:t}){return c.jsxs(ar,{children:[c.jsx(ji,{url:e}),t?.enabled&&c.jsx(ki,{storageKey:t.storageKey})]})}function ji({url:e}){const t=v(n=>n.containerRef);return c.jsxs(hr,{ref:t,children:[c.jsx(pr,{url:e,isLive:!1}),c.jsx(xr,{}),c.jsxs(br,{children:[c.jsx(Ci,{}),c.jsx(mr,{children:c.jsxs(gr,{children:[c.jsx(Ei,{}),c.jsxs(yr,{children:[c.jsxs(vr,{children:[c.jsx(xi,{}),c.jsx(Er,{}),c.jsx(Pi,{})]}),c.jsx(ii,{}),c.jsx(Sr,{children:c.jsx(wr,{})})]})]})})]})]})}const Ri=60,_i=95;function Ii({storageKey:e}){const t=v(f=>f.currentTime),n=v(f=>f.duration),r=v(f=>f.isPlaying),o=v(f=>f.setStartTime),s=m.useRef(!1),i=m.useCallback(()=>{window.localStorage.setItem(e,JSON.stringify({currentTime:t,duration:n}))},[t,n,e]),a=m.useCallback(()=>{const f=window.localStorage.getItem(e);if(f){const d=JSON.parse(f);return{startTime:d.currentTime,progress:d.currentTime/d.duration*100}}return{startTime:null,progress:null}},[e]),l=m.useCallback(()=>{t<Ri||i()},[t,i]),u=m.useCallback(()=>{if(s.current)return;const{progress:f,startTime:d}=a();d&&f&&f<_i&&(o(d),s.current=!0)},[a,o]);return Fe(()=>l(),r?1e3:null),m.useEffect(()=>{u()},[u]),null}const Ai=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"}));oe.LivePlayer=wi,oe.VodPlayer=Ti,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})}));
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"})}));
392
536
  //# sourceMappingURL=react-video-player.umd.js.map