@halibegic/react-video-player 0.0.7 → 0.0.8
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(
|
|
1
|
+
(function(O,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("zustand"),require("styled-components"),require("@radix-ui/react-slider"),require("hls.js"),require("@radix-ui/react-dropdown-menu")):typeof define=="function"&&define.amd?define(["exports","react","zustand","styled-components","@radix-ui/react-slider","hls.js","@radix-ui/react-dropdown-menu"],c):(O=typeof globalThis<"u"?globalThis:O||self,c(O.ReactVideoPlayer={},O.React,O.zustand,O.styled,O.RadixUISlider,O.Hls,O.RadixUIDropdownMenu))})(this,(function(O,c,le,w,Ot,Z,Ht){"use strict";function ke(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const ce=ke(Ot),re=ke(Ht);var ue={exports:{}},oe={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Le;function At(){if(Le)return oe;Le=1;var e=c,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function p(h,a,f){var v,x={},L=null,R=null;f!==void 0&&(L=""+f),a.key!==void 0&&(L=""+a.key),a.ref!==void 0&&(R=a.ref);for(v in a)i.call(a,v)&&!m.hasOwnProperty(v)&&(x[v]=a[v]);if(h&&h.defaultProps)for(v in a=h.defaultProps,a)x[v]===void 0&&(x[v]=a[v]);return{$$typeof:n,type:h,key:L,ref:R,props:x,_owner:l.current}}return oe.Fragment=r,oe.jsx=p,oe.jsxs=p,oe}var ie={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,79 +14,20 @@
|
|
|
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
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var _e;function Ut(){return _e||(_e=1,process.env.NODE_ENV!=="production"&&(function(){var e=c,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),M=Symbol.iterator,_="@@iterator";function U(t){if(t===null||typeof t!="object")return null;var s=M&&t[M]||t[_];return typeof s=="function"?s:null}var F=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(t){{for(var s=arguments.length,d=new Array(s>1?s-1:0),y=1;y<s;y++)d[y-1]=arguments[y];g("error",t,d)}}function g(t,s,d){{var y=F.ReactDebugCurrentFrame,S=y.getStackAddendum();S!==""&&(s+="%s",d=d.concat([S]));var j=d.map(function(T){return String(T)});j.unshift("Warning: "+s),Function.prototype.apply.call(console[t],console,j)}}var W=!1,z=!1,X=!1,ee=!1,K=!1,G;G=Symbol.for("react.module.reference");function C(t){return!!(typeof t=="string"||typeof t=="function"||t===i||t===m||K||t===l||t===f||t===v||ee||t===R||W||z||X||typeof t=="object"&&t!==null&&(t.$$typeof===L||t.$$typeof===x||t.$$typeof===p||t.$$typeof===h||t.$$typeof===a||t.$$typeof===G||t.getModuleId!==void 0))}function me(t,s,d){var y=t.displayName;if(y)return y;var S=s.displayName||s.name||"";return S!==""?d+"("+S+")":d}function Q(t){return t.displayName||"Context"}function H(t){if(t==null)return null;if(typeof t.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case i:return"Fragment";case r:return"Portal";case m:return"Profiler";case l:return"StrictMode";case f:return"Suspense";case v:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case h:var s=t;return Q(s)+".Consumer";case p:var d=t;return Q(d._context)+".Provider";case a:return me(t,t.render,"ForwardRef");case x:var y=t.displayName||null;return y!==null?y:H(t.type)||"Memo";case L:{var S=t,j=S._payload,T=S._init;try{return H(T(j))}catch{return null}}}return null}var N=Object.assign,Y=0,se,B,vt,gt,yt,xt,bt;function wt(){}wt.__reactDisabledLog=!0;function lr(){{if(Y===0){se=console.log,B=console.info,vt=console.warn,gt=console.error,yt=console.group,xt=console.groupCollapsed,bt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:wt,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Y++}}function cr(){{if(Y--,Y===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},t,{value:se}),info:N({},t,{value:B}),warn:N({},t,{value:vt}),error:N({},t,{value:gt}),group:N({},t,{value:yt}),groupCollapsed:N({},t,{value:xt}),groupEnd:N({},t,{value:bt})})}Y<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var we=F.ReactCurrentDispatcher,Te;function pe(t,s,d){{if(Te===void 0)try{throw Error()}catch(S){var y=S.stack.trim().match(/\n( *(at )?)/);Te=y&&y[1]||""}return`
|
|
18
|
+
`+Te+t}}var Ce=!1,ve;{var ur=typeof WeakMap=="function"?WeakMap:Map;ve=new ur}function Tt(t,s){if(!t||Ce)return"";{var d=ve.get(t);if(d!==void 0)return d}var y;Ce=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=we.current,we.current=null,lr();try{if(s){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(V){y=V}Reflect.construct(t,[],T)}else{try{T.call()}catch(V){y=V}t.call(T.prototype)}}else{try{throw Error()}catch(V){y=V}t()}}catch(V){if(V&&y&&typeof V.stack=="string"){for(var b=V.stack.split(`
|
|
19
|
+
`),I=y.stack.split(`
|
|
20
|
+
`),E=b.length-1,k=I.length-1;E>=1&&k>=0&&b[E]!==I[k];)k--;for(;E>=1&&k>=0;E--,k--)if(b[E]!==I[k]){if(E!==1||k!==1)do if(E--,k--,k<0||b[E]!==I[k]){var A=`
|
|
21
|
+
`+b[E].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),typeof t=="function"&&ve.set(t,A),A}while(E>=1&&k>=0);break}}}finally{Ce=!1,we.current=j,cr(),Error.prepareStackTrace=S}var ne=t?t.displayName||t.name:"",q=ne?pe(ne):"";return typeof t=="function"&&ve.set(t,q),q}function dr(t,s,d){return Tt(t,!1)}function fr(t){var s=t.prototype;return!!(s&&s.isReactComponent)}function ge(t,s,d){if(t==null)return"";if(typeof t=="function")return Tt(t,fr(t));if(typeof t=="string")return pe(t);switch(t){case f:return pe("Suspense");case v:return pe("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case a:return dr(t.render);case x:return ge(t.type,s,d);case L:{var y=t,S=y._payload,j=y._init;try{return ge(j(S),s,d)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,Ct={},St=F.ReactDebugCurrentFrame;function ye(t){if(t){var s=t._owner,d=ge(t.type,t._source,s?s.type:null);St.setExtraStackFrame(d)}else St.setExtraStackFrame(null)}function hr(t,s,d,y,S){{var j=Function.call.bind(ae);for(var T in t)if(j(t,T)){var b=void 0;try{if(typeof t[T]!="function"){var I=Error((y||"React class")+": "+d+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}b=t[T](s,T,y,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){b=E}b&&!(b instanceof Error)&&(ye(S),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",d,T,typeof b),ye(null)),b instanceof Error&&!(b.message in Ct)&&(Ct[b.message]=!0,ye(S),P("Failed %s type: %s",d,b.message),ye(null))}}}var mr=Array.isArray;function Se(t){return mr(t)}function pr(t){{var s=typeof Symbol=="function"&&Symbol.toStringTag,d=s&&t[Symbol.toStringTag]||t.constructor.name||"Object";return d}}function vr(t){try{return Rt(t),!1}catch{return!0}}function Rt(t){return""+t}function jt(t){if(vr(t))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pr(t)),Rt(t)}var Pt=F.ReactCurrentOwner,gr={key:!0,ref:!0,__self:!0,__source:!0},Et,kt;function yr(t){if(ae.call(t,"ref")){var s=Object.getOwnPropertyDescriptor(t,"ref").get;if(s&&s.isReactWarning)return!1}return t.ref!==void 0}function xr(t){if(ae.call(t,"key")){var s=Object.getOwnPropertyDescriptor(t,"key").get;if(s&&s.isReactWarning)return!1}return t.key!==void 0}function br(t,s){typeof t.ref=="string"&&Pt.current}function wr(t,s){{var d=function(){Et||(Et=!0,P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};d.isReactWarning=!0,Object.defineProperty(t,"key",{get:d,configurable:!0})}}function Tr(t,s){{var d=function(){kt||(kt=!0,P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",s))};d.isReactWarning=!0,Object.defineProperty(t,"ref",{get:d,configurable:!0})}}var Cr=function(t,s,d,y,S,j,T){var b={$$typeof:n,type:t,key:s,ref:d,props:T,_owner:j};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Sr(t,s,d,y,S){{var j,T={},b=null,I=null;d!==void 0&&(jt(d),b=""+d),xr(s)&&(jt(s.key),b=""+s.key),yr(s)&&(I=s.ref,br(s,S));for(j in s)ae.call(s,j)&&!gr.hasOwnProperty(j)&&(T[j]=s[j]);if(t&&t.defaultProps){var E=t.defaultProps;for(j in E)T[j]===void 0&&(T[j]=E[j])}if(b||I){var k=typeof t=="function"?t.displayName||t.name||"Unknown":t;b&&wr(T,k),I&&Tr(T,k)}return Cr(t,b,I,S,y,Pt.current,T)}}var Re=F.ReactCurrentOwner,Lt=F.ReactDebugCurrentFrame;function te(t){if(t){var s=t._owner,d=ge(t.type,t._source,s?s.type:null);Lt.setExtraStackFrame(d)}else Lt.setExtraStackFrame(null)}var je;je=!1;function Pe(t){return typeof t=="object"&&t!==null&&t.$$typeof===n}function _t(){{if(Re.current){var t=H(Re.current.type);if(t)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+t+"`."}return""}}function Rr(t){return""}var Ft={};function jr(t){{var s=_t();if(!s){var d=typeof t=="string"?t:t.displayName||t.name;d&&(s=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+d+">.")}return s}}function It(t,s){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var d=jr(s);if(Ft[d])return;Ft[d]=!0;var y="";t&&t._owner&&t._owner!==Re.current&&(y=" It was passed a child from "+H(t._owner.type)+"."),te(t),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,y),te(null)}}function Dt(t,s){{if(typeof t!="object")return;if(Se(t))for(var d=0;d<t.length;d++){var y=t[d];Pe(y)&&It(y,s)}else if(Pe(t))t._store&&(t._store.validated=!0);else if(t){var S=U(t);if(typeof S=="function"&&S!==t.entries)for(var j=S.call(t),T;!(T=j.next()).done;)Pe(T.value)&&It(T.value,s)}}}function Pr(t){{var s=t.type;if(s==null||typeof s=="string")return;var d;if(typeof s=="function")d=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===a||s.$$typeof===x))d=s.propTypes;else return;if(d){var y=H(s);hr(d,t.props,"prop",y,t)}else if(s.PropTypes!==void 0&&!je){je=!0;var S=H(s);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",S||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Er(t){{for(var s=Object.keys(t.props),d=0;d<s.length;d++){var y=s[d];if(y!=="children"&&y!=="key"){te(t),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),te(null);break}}t.ref!==null&&(te(t),P("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}}var Mt={};function Vt(t,s,d,y,S,j){{var T=C(t);if(!T){var b="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var I=Rr();I?b+=I:b+=_t();var E;t===null?E="null":Se(t)?E="array":t!==void 0&&t.$$typeof===n?(E="<"+(H(t.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):E=typeof t,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,b)}var k=Sr(t,s,d,S,j);if(k==null)return k;if(T){var A=s.children;if(A!==void 0)if(y)if(Se(A)){for(var ne=0;ne<A.length;ne++)Dt(A[ne],t);Object.freeze&&Object.freeze(A)}else P("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 Dt(A,t)}if(ae.call(s,"key")){var q=H(t),V=Object.keys(s).filter(function(Dr){return Dr!=="key"}),Ee=V.length>0?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}";if(!Mt[q+Ee]){var Ir=V.length>0?"{"+V.join(": ..., ")+": ...}":"{}";P(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Jr,ot,jm,ot),Qa[ot+Jr]=!0}}return h===r?_m(se):km(se),se}}function Om(h,T,O){return ec(h,T,O,!0)}function Im(h,T,O){return ec(h,T,O,!1)}var Dm=Im,Lm=Om;Mt.Fragment=r,Mt.jsx=Dm,Mt.jsxs=Lm})()),Mt}var oo;function rc(){return oo||(oo=1,process.env.NODE_ENV==="production"?Bt.exports=tc():Bt.exports=nc()),Bt.exports}var p=rc();const oc=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Wt(e,t){const n=R.useRef(e);oc(()=>{n.current=e},[e]),R.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function ic(e){const[,t]=R.useState(0);Wt(()=>t(n=>n+1),e)}const io=e=>{let t;const n=new Set,r=(l,d)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const g=t;t=d??(typeof u!="object"||u===null)?u:Object.assign({},t,u),n.forEach(m=>m(t,g))}},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},sc=(e=>e?io(e):io),ac=e=>e;function Vn(e,t=ac){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 so=e=>{const t=sc(e),n=r=>Vn(t,r);return Object.assign(n,t),n},ao=(e=>e?so(e):so),cc=(e,t)=>ao(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})})),co=R.createContext(null),lc=({children:e,startDate:t,endDate:n})=>{const r=R.useRef(null);return r.current||(r.current=cc(t,n)),p.jsx(co.Provider,{value:r.current,children:e})},pe=e=>{const t=R.useContext(co);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Vn(t,e)};var he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},he.apply(this,arguments)};function Ge(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function uc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var dc=/^((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)-.*))$/,fc=uc(function(e){return dc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ee="-ms-",At="-moz-",X="-webkit-",lo="comm",Ut="rule",Hn="decl",pc="@import",uo="@keyframes",hc="@layer",fo=Math.abs,Bn=String.fromCharCode,Wn=Object.assign;function mc(e,t){return ce(e,0)^45?(((t<<2^ce(e,0))<<2^ce(e,1))<<2^ce(e,2))<<2^ce(e,3):0}function po(e){return e.trim()}function Ne(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function zt(e,t,n){return e.indexOf(t,n)}function ce(e,t){return e.charCodeAt(t)|0}function it(e,t,n){return e.slice(t,n)}function ke(e){return e.length}function ho(e){return e.length}function kt(e,t){return t.push(e),e}function gc(e,t){return e.map(t).join("")}function mo(e,t){return e.filter(function(n){return!Ne(n,t)})}var Kt=1,st=1,go=0,be=0,re=0,at="";function Yt(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Kt,column:st,length:s,return:"",siblings:a}}function He(e,t){return Wn(Yt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ct(e){for(;e.root;)e=He(e.root,{children:[e]});kt(e,e.siblings)}function vc(){return re}function yc(){return re=be>0?ce(at,--be):0,st--,re===10&&(st=1,Kt--),re}function Ce(){return re=be<go?ce(at,be++):0,st++,re===10&&(st=1,Kt++),re}function Xe(){return ce(at,be)}function Gt(){return be}function Xt(e,t){return it(at,e,t)}function Un(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 wc(e){return Kt=st=1,go=ke(at=e),be=0,[]}function bc(e){return at="",e}function zn(e){return po(Xt(be-1,Kn(e===91?e+2:e===40?e+1:e)))}function xc(e){for(;(re=Xe())&&re<33;)Ce();return Un(e)>2||Un(re)>3?"":" "}function Sc(e,t){for(;--t&&Ce()&&!(re<48||re>102||re>57&&re<65||re>70&&re<97););return Xt(e,Gt()+(t<6&&Xe()==32&&Ce()==32))}function Kn(e){for(;Ce();)switch(re){case e:return be;case 34:case 39:e!==34&&e!==39&&Kn(re);break;case 40:e===41&&Kn(e);break;case 92:Ce();break}return be}function Ec(e,t){for(;Ce()&&e+re!==57;)if(e+re===84&&Xe()===47)break;return"/*"+Xt(t,be-1)+"*"+Bn(e===47?e:Ce())}function Cc(e){for(;!Un(Xe());)Ce();return Xt(e,be)}function Pc(e){return bc(qt("",null,null,null,[""],e=wc(e),0,[0],e))}function qt(e,t,n,r,o,i,s,a,c){for(var l=0,d=0,u=s,g=0,m=0,w=0,v=1,b=1,x=1,E=0,y="",S=o,P=i,M=r,C=y;b;)switch(w=E,E=Ce()){case 40:if(w!=108&&ce(C,u-1)==58){zt(C+=B(zn(E),"&","&\f"),"&\f",fo(l?a[l-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:C+=zn(E);break;case 9:case 10:case 13:case 32:C+=xc(w);break;case 92:C+=Sc(Gt()-1,7);continue;case 47:switch(Xe()){case 42:case 47:kt(Rc(Ec(Ce(),Gt()),t,n,c),c);break;default:C+="/"}break;case 123*v:a[l++]=ke(C)*x;case 125*v:case 59:case 0:switch(E){case 0:case 125:b=0;case 59+d:x==-1&&(C=B(C,/\f/g,"")),m>0&&ke(C)-u&&kt(m>32?yo(C+";",r,n,u-1,c):yo(B(C," ","")+";",r,n,u-2,c),c);break;case 59:C+=";";default:if(kt(M=vo(C,t,n,l,d,o,a,y,S=[],P=[],u,i),i),E===123)if(d===0)qt(C,t,M,M,S,i,u,a,P);else switch(g===99&&ce(C,3)===110?100:g){case 100:case 108:case 109:case 115:qt(e,M,M,r&&kt(vo(e,M,M,0,0,o,a,y,o,S=[],u,P),P),o,P,u,a,r?S:P);break;default:qt(C,M,M,M,[""],P,0,a,P)}}l=d=m=0,v=x=1,y=C="",u=s;break;case 58:u=1+ke(C),m=w;default:if(v<1){if(E==123)--v;else if(E==125&&v++==0&&yc()==125)continue}switch(C+=Bn(E),E*v){case 38:x=d>0?1:(C+="\f",-1);break;case 44:a[l++]=(ke(C)-1)*x,x=1;break;case 64:Xe()===45&&(C+=zn(Ce())),g=Xe(),d=u=ke(y=C+=Cc(Gt())),E++;break;case 45:w===45&&ke(C)==2&&(v=0)}}return i}function vo(e,t,n,r,o,i,s,a,c,l,d,u){for(var g=o-1,m=o===0?i:[""],w=ho(m),v=0,b=0,x=0;v<r;++v)for(var E=0,y=it(e,g+1,g=fo(b=s[v])),S=e;E<w;++E)(S=po(b>0?m[E]+" "+y:B(y,/&\f/g,m[E])))&&(c[x++]=S);return Yt(e,t,n,o===0?Ut:a,c,l,d,u)}function Rc(e,t,n,r){return Yt(e,t,n,lo,Bn(vc()),it(e,2,-2),0,r)}function yo(e,t,n,r,o){return Yt(e,t,n,Hn,it(e,0,r),it(e,r+1,-1),r,o)}function wo(e,t,n){switch(mc(e,t)){case 5103:return X+"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 X+e+e;case 4789:return At+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+At+e+ee+e+e;case 5936:switch(ce(e,t+11)){case 114:return X+e+ee+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+ee+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+ee+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return X+e+ee+e+e;case 6165:return X+e+ee+"flex-"+e+e;case 5187:return X+e+B(e,/(\w+).+(:[^]+)/,X+"box-$1$2"+ee+"flex-$1$2")+e;case 5443:return X+e+ee+"flex-item-"+B(e,/flex-|-self/g,"")+(Ne(e,/flex-|baseline/)?"":ee+"grid-row-"+B(e,/flex-|-self/g,""))+e;case 4675:return X+e+ee+"flex-line-pack"+B(e,/align-content|flex-|-self/g,"")+e;case 5548:return X+e+ee+B(e,"shrink","negative")+e;case 5292:return X+e+ee+B(e,"basis","preferred-size")+e;case 6060:return X+"box-"+B(e,"-grow","")+X+e+ee+B(e,"grow","positive")+e;case 4554:return X+B(e,/([^-])(transform)/g,"$1"+X+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+e+e;case 4200:if(!Ne(e,/flex-|baseline/))return ee+"grid-column-align"+it(e,t)+e;break;case 2592:case 3360:return ee+B(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Ne(r.props,/grid-\w+-end/)})?~zt(e+(n=n[t].value),"span",0)?e:ee+B(e,"-start","")+e+ee+"grid-row-span:"+(~zt(n,"span",0)?Ne(n,/\d+/):+Ne(n,/\d+/)-+Ne(e,/\d+/))+";":ee+B(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ne(r.props,/grid-\w+-start/)})?e:ee+B(B(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,X+"$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(ke(e)-1-t>6)switch(ce(e,t+1)){case 109:if(ce(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+At+(ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zt(e,"stretch",0)?wo(B(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return B(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,c,l){return ee+o+":"+i+l+(s?ee+o+"-span:"+(a?c:+c-+i)+l:"")+e});case 4949:if(ce(e,t+6)===121)return B(e,":",":"+X)+e;break;case 6444:switch(ce(e,ce(e,14)===45?18:11)){case 120:return B(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+X+(ce(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+ee+"$2box$3")+e;case 100:return B(e,":",":"+ee)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return B(e,"scroll-","scroll-snap-")+e}return e}function Zt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Tc(e,t,n,r){switch(e.type){case hc:if(e.children.length)break;case pc:case Hn:return e.return=e.return||e.value;case lo:return"";case uo:return e.return=e.value+"{"+Zt(e.children,r)+"}";case Ut:if(!ke(e.value=e.props.join(",")))return""}return ke(n=Zt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mc(e){var t=ho(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function Ac(e){return function(t){t.root||(t=t.return)&&e(t)}}function kc(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Hn:e.return=wo(e.value,e.length,n);return;case uo:return Zt([He(e,{value:B(e.value,"@","@"+X)})],r);case Ut:if(e.length)return gc(n=e.props,function(o){switch(Ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ct(He(e,{props:[B(o,/:(read-\w+)/,":"+At+"$1")]})),ct(He(e,{props:[o]})),Wn(e,{props:mo(n,r)});break;case"::placeholder":ct(He(e,{props:[B(o,/:(plac\w+)/,":"+X+"input-$1")]})),ct(He(e,{props:[B(o,/:(plac\w+)/,":"+At+"$1")]})),ct(He(e,{props:[B(o,/:(plac\w+)/,ee+"input-$1")]})),ct(He(e,{props:[o]})),Wn(e,{props:mo(n,r)});break}return""})}}var _c={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},qe=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",bo="active",xo="data-styled-version",Jt="6.1.19",Yn=`/*!sc*/
|
|
31
|
-
`,Qt=typeof window<"u"&&typeof document<"u",Oc=!!(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"),So=/invalid hook call/i,en=new Set,Ic=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
32
|
-
`)+`You may see this warning because you've called styled inside another component.
|
|
33
|
-
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
34
|
-
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
35
|
-
`,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];So.test(s)?(i=!1,en.delete(r)):o.apply(void 0,Ge([s],a,!1))},R.useRef(),i&&!en.has(r)&&(console.warn(r),en.add(r))}catch(s){So.test(s.message)&&en.delete(r)}finally{console.error=o}}},tn=Object.freeze([]),lt=Object.freeze({});function Dc(e,t,n){return n===void 0&&(n=lt),e.theme!==n.theme&&e.theme||t||n.theme}var Gn=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"]),Lc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,jc=/(^-|-$)/g;function Eo(e){return e.replace(Lc,"-").replace(jc,"")}var Nc=/(a)(d)/gi,nn=52,Co=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xn(e){var t,n="";for(t=Math.abs(e);t>nn;t=t/nn|0)n=Co(t%nn)+n;return(Co(t%nn)+n).replace(Nc,"$1-$2")}var qn,Po=5381,Ze=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ro=function(e){return Ze(Po,e)};function To(e){return Xn(Ro(e)>>>0)}function Mo(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Zn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ao=typeof Symbol=="function"&&Symbol.for,ko=Ao?Symbol.for("react.memo"):60115,Fc=Ao?Symbol.for("react.forward_ref"):60112,$c={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hc=((qn={})[Fc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qn[ko]=_o,qn);function Oo(e){return("type"in(t=e)&&t.type.$$typeof)===ko?_o:"$$typeof"in e?Hc[e.$$typeof]:$c;var t}var Bc=Object.defineProperty,Wc=Object.getOwnPropertyNames,Io=Object.getOwnPropertySymbols,Uc=Object.getOwnPropertyDescriptor,zc=Object.getPrototypeOf,Do=Object.prototype;function Lo(e,t,n){if(typeof t!="string"){if(Do){var r=zc(t);r&&r!==Do&&Lo(e,r,n)}var o=Wc(t);Io&&(o=o.concat(Io(t)));for(var i=Oo(e),s=Oo(t),a=0;a<o.length;++a){var c=o[a];if(!(c in Vc||n&&n[c]||s&&c in s||i&&c in i)){var l=Uc(t,c);try{Bc(e,c,l)}catch{}}}}return e}function ut(e){return typeof e=="function"}function Jn(e){return typeof e=="object"&&"styledComponentId"in e}function Je(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Qn(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function dt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function er(e,t,n){if(n===void 0&&(n=!1),!n&&!dt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=er(e[r],t[r]);else if(dt(t))for(var r in t)e[r]=er(e[r],t[r]);return e}function tr(e,t){Object.defineProperty(e,"toString",{value:t})}var Kc=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
36
|
-
|
|
37
|
-
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
38
|
-
|
|
39
|
-
- Are you trying to reuse it across renders?
|
|
40
|
-
- Are you accidentally calling collectStyles twice?
|
|
41
|
-
|
|
42
|
-
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
43
|
-
|
|
44
|
-
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
45
|
-
|
|
46
|
-
- Does this error occur on the client and is your target falsy?
|
|
47
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
48
|
-
|
|
49
|
-
`,5:`The clone method cannot be used on the client!
|
|
50
|
-
|
|
51
|
-
- Are you running in a client-like environment on the server?
|
|
52
|
-
- Are you trying to run SSR on the client?
|
|
53
|
-
|
|
54
|
-
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
55
|
-
|
|
56
|
-
- Are you using a custom target that isn't mounted?
|
|
57
|
-
- Does your document not have a valid head element?
|
|
58
|
-
- Have you accidentally removed a style tag manually?
|
|
59
|
-
|
|
60
|
-
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
61
|
-
|
|
62
|
-
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
63
|
-
|
|
64
|
-
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
65
|
-
|
|
66
|
-
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s 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.
|
|
67
|
-
|
|
68
|
-
`,14:`ThemeProvider: "theme" prop is required.
|
|
69
|
-
|
|
70
|
-
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
71
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
72
|
-
as for instance in your render method then you may be running into this limitation.
|
|
73
|
-
|
|
74
|
-
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
75
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
76
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Yc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function ft(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(Yc.apply(void 0,Ge([Kc[e]],t,!1)).trim())}var Gc=(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,i=o;t>=i;)if((i<<=1)<0)throw ft(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),c=(s=0,n.length);s<c;s++)this.tag.insertRule(a,n[s])&&(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 i=r;i<o;i++)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),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(Yn);return n},e})(),Xc=1<<30,rn=new Map,on=new Map,sn=1,an=function(e){if(rn.has(e))return rn.get(e);for(;on.has(sn);)sn++;var t=sn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Xc))throw ft(16,"".concat(t));return rn.set(e,t),on.set(t,e),t},qc=function(e,t){sn=t+1,rn.set(e,t),on.set(t,e)},Zc="style[".concat(qe,"][").concat(xo,'="').concat(Jt,'"]'),Jc=new RegExp("^".concat(qe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Qc=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},el=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Yn),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(Jc);if(c){var l=0|parseInt(c[1],10),d=c[2];l!==0&&(qc(d,l),Qc(e,d,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},jo=function(e){for(var t=document.querySelectorAll(Zc),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(qe)!==bo&&(el(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function tl(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var No=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var c=Array.from(a.querySelectorAll("style[".concat(qe,"]")));return c[c.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(qe,bo),r.setAttribute(xo,Jt);var s=tl();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},nl=(function(){function e(t){this.element=No(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var s=r[o];if(s.ownerNode===n)return s}throw ft(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})(),rl=(function(){function e(t){this.element=No(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})(),ol=(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})(),Fo=Qt,il={isServer:!Qt,useCSSOMInjection:!Oc},$o=(function(){function e(t,n,r){t===void 0&&(t=lt),n===void 0&&(n={});var o=this;this.options=he(he({},il),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Qt&&Fo&&(Fo=!1,jo(this)),tr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,c="",l=function(u){var g=(function(x){return on.get(x)})(u);if(g===void 0)return"continue";var m=i.names.get(g),w=s.getGroup(u);if(m===void 0||!m.size||w.length===0)return"continue";var v="".concat(qe,".g").concat(u,'[id="').concat(g,'"]'),b="";m!==void 0&&m.forEach(function(x){x.length>0&&(b+="".concat(x,","))}),c+="".concat(w).concat(v,'{content:"').concat(b,'"}').concat(Yn)},d=0;d<a;d++)l(d);return c})(o)})}return e.registerId=function(t){return an(t)},e.prototype.rehydrate=function(){!this.server&&Qt&&jo(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(he(he({},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 ol(o):r?new nl(o):new rl(o)})(this.options),new Gc(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(an(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(an(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(an(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),sl=/&/g,al=/^\s*\/\/.*$/gm;function Vo(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=Vo(n.children,t)),n})}function cl(e){var t,n,r,o=lt,i=o.options,s=i===void 0?lt:i,a=o.plugins,c=a===void 0?tn:a,l=function(g,m,w){return w.startsWith(n)&&w.endsWith(n)&&w.replaceAll(n,"").length>0?".".concat(t):g},d=c.slice();d.push(function(g){g.type===Ut&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(sl,n).replace(r,l))}),s.prefix&&d.push(kc),d.push(Tc);var u=function(g,m,w,v){m===void 0&&(m=""),w===void 0&&(w=""),v===void 0&&(v="&"),t=v,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var b=g.replace(al,""),x=Pc(w||m?"".concat(w," ").concat(m," { ").concat(b," }"):b);s.namespace&&(x=Vo(x,s.namespace));var E=[];return Zt(x,Mc(d.concat(Ac(function(y){return E.push(y)})))),E};return u.hash=c.length?c.reduce(function(g,m){return m.name||ft(15),Ze(g,m.name)},Po).toString():"",u}var ll=new $o,nr=cl(),Ho=R.createContext({shouldForwardProp:void 0,styleSheet:ll,stylis:nr});Ho.Consumer,R.createContext(void 0);function Bo(){return R.useContext(Ho)}var rr=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=nr);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,tr(this,function(){throw ft(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=nr),this.name+t.hash},e})(),ul=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;ul(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Uo=function(e){return e==null||e===!1||e===""},zo=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Uo(i)&&(Array.isArray(i)&&i.isCss||ut(i)?r.push("".concat(Wo(o),":"),i,";"):dt(i)?r.push.apply(r,Ge(Ge(["".concat(o," {")],zo(i),!1),["}"],!1)):r.push("".concat(Wo(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in _c||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Qe(e,t,n,r){if(Uo(e))return[];if(Jn(e))return[".".concat(e.styledComponentId)];if(ut(e)){if(!ut(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof rr||dt(o)||o===null||console.error("".concat(Mo(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.")),Qe(o,t,n,r)}var i;return e instanceof rr?n?(e.inject(n,r),[e.getName(r)]):[e]:dt(e)?zo(e):Array.isArray(e)?Array.prototype.concat.apply(tn,e.map(function(s){return Qe(s,t,n,r)})):[e.toString()]}function dl(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ut(n)&&!Jn(n))return!1}return!0}var fl=Ro(Jt),pl=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&dl(t),this.componentId=n,this.baseHash=Ze(fl,n),this.baseStyle=r,$o.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=Je(o,this.staticRulesId);else{var i=Qn(Qe(this.rules,t,n,r)),s=Xn(Ze(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var a=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,a)}o=Je(o,s),this.staticRulesId=s}else{for(var c=Ze(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=Ze(c,u));else if(u){var g=Qn(Qe(u,t,n,r));c=Ze(c,g+d),l+=g}}if(l){var m=Xn(c>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(l,".".concat(m),void 0,this.componentId)),o=Je(o,m)}}return o},e})(),Ko=R.createContext(void 0);Ko.Consumer;var or={},Yo=new Set;function hl(e,t,n){var r=Jn(e),o=e,i=!Zn(e),s=t.attrs,a=s===void 0?tn:s,c=t.componentId,l=c===void 0?(function(S,P){var M=typeof S!="string"?"sc":Eo(S);or[M]=(or[M]||0)+1;var C="".concat(M,"-").concat(To(Jt+M+or[M]));return P?"".concat(P,"-").concat(C):C})(t.displayName,t.parentComponentId):c,d=t.displayName,u=d===void 0?(function(S){return Zn(S)?"styled.".concat(S):"Styled(".concat(Mo(S),")")})(e):d,g=t.displayName&&t.componentId?"".concat(Eo(t.displayName),"-").concat(t.componentId):t.componentId||l,m=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,w=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;w=function(S,P){return v(S,P)&&b(S,P)}}else w=v}var x=new pl(n,g,r?o.componentStyle:void 0);function E(S,P){return(function(M,C,I){var j=M.attrs,_=M.componentStyle,F=M.defaultProps,U=M.foldedComponentIds,N=M.styledComponentId,H=M.target,G=R.useContext(Ko),$=Bo(),V=M.shouldForwardProp||$.shouldForwardProp;process.env.NODE_ENV!=="production"&&R.useDebugValue(N);var D=Dc(C,G,F)||lt,A=(function(Me,le,Z){for(var ue,ye=he(he({},le),{className:void 0,theme:Z}),je=0;je<Me.length;je+=1){var Ke=ut(ue=Me[je])?ue(ye):ue;for(var we in Ke)ye[we]=we==="className"?Je(ye[we],Ke[we]):we==="style"?he(he({},ye[we]),Ke[we]):Ke[we]}return le.className&&(ye.className=Je(ye.className,le.className)),ye})(j,C,D),Q=A.as||H,ae={};for(var te in A)A[te]===void 0||te[0]==="$"||te==="as"||te==="theme"&&A.theme===D||(te==="forwardedAs"?ae.as=A.forwardedAs:V&&!V(te,Q)||(ae[te]=A[te],V||process.env.NODE_ENV!=="development"||fc(te)||Yo.has(te)||!Gn.has(Q)||(Yo.add(te),console.warn('styled-components: it looks like an unknown prop "'.concat(te,'" 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 Se=(function(Me,le){var Z=Bo(),ue=Me.generateAndInjectStyles(le,Z.styleSheet,Z.stylis);return process.env.NODE_ENV!=="production"&&R.useDebugValue(ue),ue})(_,A);process.env.NODE_ENV!=="production"&&M.warnTooManyClasses&&M.warnTooManyClasses(Se);var Te=Je(U,N);return Se&&(Te+=" "+Se),A.className&&(Te+=" "+A.className),ae[Zn(Q)&&!Gn.has(Q)?"class":"className"]=Te,I&&(ae.ref=I),R.createElement(Q,ae)})(y,S,P)}E.displayName=u;var y=R.forwardRef(E);return y.attrs=m,y.componentStyle=x,y.displayName=u,y.shouldForwardProp=w,y.foldedComponentIds=r?Je(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=g,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=r?(function(P){for(var M=[],C=1;C<arguments.length;C++)M[C-1]=arguments[C];for(var I=0,j=M;I<j.length;I++)er(P,j[I],!0);return P})({},o.defaultProps,S):S}}),process.env.NODE_ENV!=="production"&&(Ic(u,g),y.warnTooManyClasses=(function(S,P){var M={},C=!1;return function(I){if(!C&&(M[I]=!0,Object.keys(M).length>=200)){var j=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(S).concat(j,`.
|
|
77
|
-
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
78
|
-
Example:
|
|
79
|
-
const Component = styled.div.attrs(props => ({
|
|
80
|
-
style: {
|
|
81
|
-
background: props.background,
|
|
82
|
-
},
|
|
83
|
-
}))\`width: 100%;\`
|
|
84
|
-
|
|
85
|
-
<Component />`),C=!0,M={}}}})(u,g)),tr(y,function(){return".".concat(y.styledComponentId)}),i&&Lo(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Go(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 Xo=function(e){return Object.assign(e,{isCss:!0})};function cn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ut(e)||dt(e))return Xo(Qe(Go(tn,Ge([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Qe(r):Xo(Qe(Go(r,t)))}function ir(e,t,n){if(n===void 0&&(n=lt),!t)throw ft(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,cn.apply(void 0,Ge([o],i,!1)))};return r.attrs=function(o){return ir(e,t,he(he({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return ir(e,t,he(he({},n),o))},r}var qo=function(e){return ir(hl,e)},Y=qo;Gn.forEach(function(e){Y[e]=qo(e)});function ml(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=Qn(cn.apply(void 0,Ge([e],t,!1))),o=To(r);return new rr(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.
|
|
86
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
87
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ln="__sc-".concat(qe,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ln]||(window[ln]=0),window[ln]===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.
|
|
88
|
-
|
|
89
|
-
See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children:e,eventFinishedMessage:t,eventNotStartedMessage:n,eventStartingSoonMessage:r}){const o=pe(l=>l.startDate),i=pe(l=>l.endDate),s=Date.now(),a=s<o.getTime(),c=s>i.getTime();return ic(5e3),a?p.jsx(vl,{startDate:o,title:n||"Event has not started yet.",message:r||"Starting in few seconds..."}):c?p.jsx(yl,{title:t||"Event has finished."}):p.jsx(p.Fragment,{children:e})}function vl({startDate:e,title:t,message:n}){const r=e.getTime()-Date.now(),o=Math.floor(r/(1e3*60*60)),i=Math.floor(r%(1e3*60*60)/(1e3*60));return o||i?p.jsxs(sr,{children:[p.jsx(ar,{children:t}),p.jsxs(wl,{children:["(",o>0?`${o}h ${i}m`:`${i}m`,")"]})]}):p.jsx(sr,{children:p.jsx(ar,{children:n})})}function yl({title:e}){return p.jsx(sr,{children:p.jsx(ar,{children:e})})}const sr=Y.div`
|
|
30
|
+
<%s key={someKey} {...props} />`,Ee,q,Ir,q),Mt[q+Ee]=!0}}return t===i?Er(k):Pr(k),k}}function kr(t,s,d){return Vt(t,s,d,!0)}function Lr(t,s,d){return Vt(t,s,d,!1)}var _r=Lr,Fr=kr;ie.Fragment=i,ie.jsx=_r,ie.jsxs=Fr})()),ie}var Fe;function Nt(){return Fe||(Fe=1,process.env.NODE_ENV==="production"?ue.exports=At():ue.exports=Ut()),ue.exports}var o=Nt();const Bt=typeof window<"u"?c.useLayoutEffect:c.useEffect;function de(e,n){const r=c.useRef(e);Bt(()=>{r.current=e},[e]),c.useEffect(()=>{if(n===null)return;const i=setInterval(()=>{r.current()},n);return()=>{clearInterval(i)}},[n])}function Wt(e){const[,n]=c.useState(0);de(()=>n(r=>r+1),e)}const zt=(e,n)=>le.create(r=>({delay:0,startDate:e,endDate:n,startTime:e.getTime(),endTime:n.getTime(),setDelay:i=>r({delay:i}),setStartDate:i=>r({startDate:i}),setEndDate:i=>r({endDate:i})})),Ie=c.createContext(null),Yt=({children:e,startDate:n,endDate:r})=>{const i=c.useRef(null);return i.current||(i.current=zt(n,r)),o.jsx(Ie.Provider,{value:i.current,children:e})},D=e=>{const n=c.useContext(Ie);if(!n)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return le.useStore(n,e)};function Zt({children:e,eventFinishedMessage:n,eventNotStartedMessage:r,eventStartingSoonMessage:i}){const l=D(f=>f.startDate),m=D(f=>f.endDate),p=Date.now(),h=p<l.getTime(),a=p>m.getTime();return Wt(5e3),h?o.jsx(Jt,{startDate:l,title:r||"Event has not started yet.",message:i||"Starting in few seconds..."}):a?o.jsx(Xt,{title:n||"Event has finished."}):o.jsx(o.Fragment,{children:e})}function Jt({startDate:e,title:n,message:r}){const i=e.getTime()-Date.now(),l=Math.floor(i/(1e3*60*60)),m=Math.floor(i%(1e3*60*60)/(1e3*60));return l||m?o.jsxs(xe,{children:[o.jsx(be,{children:n}),o.jsxs(Kt,{children:["(",l>0?`${l}h ${m}m`:`${m}m`,")"]})]}):o.jsx(xe,{children:o.jsx(be,{children:r})})}function Xt({title:e}){return o.jsx(xe,{children:o.jsx(be,{children:e})})}const xe=w.div`
|
|
90
31
|
position: absolute;
|
|
91
32
|
top: 0;
|
|
92
33
|
left: 0;
|
|
@@ -99,21 +40,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
99
40
|
justify-content: center;
|
|
100
41
|
color: black;
|
|
101
42
|
background: #f7e406;
|
|
102
|
-
`,
|
|
43
|
+
`,be=w.h3`
|
|
103
44
|
margin: 0;
|
|
104
45
|
padding: 0.5rem 0;
|
|
105
46
|
font-size: 1.5rem;
|
|
106
47
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
107
48
|
"Helvetica Neue", Arial, sans-serif;
|
|
108
49
|
font-weight: 500;
|
|
109
|
-
`,
|
|
50
|
+
`,Kt=w.p`
|
|
110
51
|
margin: 0;
|
|
111
52
|
height: 1.25rem;
|
|
112
53
|
font-size: 1rem;
|
|
113
54
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
114
55
|
"Helvetica Neue", Arial, sans-serif;
|
|
115
56
|
font-weight: 500;
|
|
116
|
-
`;function
|
|
57
|
+
`;function Gt(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})}const J=c.forwardRef(({shape:e="circle",...n},r)=>o.jsx(Qt,{ref:r,$shape:e,...n}));J.displayName="PlayerButton";const Qt=w.button`
|
|
117
58
|
margin: 0;
|
|
118
59
|
display: flex;
|
|
119
60
|
align-items: center;
|
|
@@ -151,16 +92,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
151
92
|
cursor: not-allowed;
|
|
152
93
|
}
|
|
153
94
|
|
|
154
|
-
${({$shape:e})=>e==="circle"&&
|
|
95
|
+
${({$shape:e})=>e==="circle"&&w.css`
|
|
155
96
|
padding: 0;
|
|
156
97
|
width: 2rem;
|
|
157
98
|
height: 2rem;
|
|
158
99
|
`}
|
|
159
100
|
|
|
160
|
-
${({$shape:e})=>e==="square"&&
|
|
101
|
+
${({$shape:e})=>e==="square"&&w.css`
|
|
161
102
|
padding: 0.25rem 0.5rem;
|
|
162
103
|
`}
|
|
163
|
-
`;function
|
|
104
|
+
`;function qt({message:e,...n}){const r=D(m=>m.delay),i=D(m=>m.setDelay),l=()=>i(0);return r?o.jsxs(J,{onClick:l,shape:"square",...n,children:[o.jsx("span",{children:e||"Live"}),o.jsx(Gt,{})]}):null}function De(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("path",{d:"M6 5H8V19H6V5ZM16 5H18V19H16V5Z"})})}function Me(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.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 $t(e,n,r){const i={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(i[n]/i[r])}function en(e){return $t(e,"milliseconds","seconds")}const $=e=>{const n=Math.floor(e/60),r=Math.floor(e%60);return`${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`};function tn(e){const n=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(n)}const Ve=tn(/iPhone|iPad|iPod/i);function nn(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function rn(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function on(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function sn(e,n){return e.addEventListener("fullscreenchange",n),e.addEventListener("webkitfullscreenchange",n),e.addEventListener("mozfullscreenchange",n),e.addEventListener("MSFullscreenChange",n),()=>{e.removeEventListener("fullscreenchange",n),e.removeEventListener("webkitfullscreenchange",n),e.removeEventListener("mozfullscreenchange",n),e.removeEventListener("MSFullscreenChange",n)}}const an=(e,n)=>({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 r=n().techRef.current;r&&e({duration:r.duration})},handleEnd:()=>{n().techRef.current&&e({isEnded:!0,isLoading:!1,isMetaLoaded:!1,isPlaying:!1})},handleLoadedMetadata:()=>{const r=n().techRef.current;r&&(r.loop=n().isLoop,r.volume=r.muted?0:1,n().startTime!==-1&&(r.currentTime=n().startTime),e({currentTime:n().startTime!==-1?n().startTime:r.currentTime,duration:r.duration,startTime:-1,isMetaLoaded:!0,volume:r.muted?0:100}))},handleLoadStart:()=>{const r=n().techRef.current;r&&(e({isReady:!0}),r.play().then(()=>{e({isEnded:!1,isLoading:!1,isPlaying:!0,isStarted:!0,pauseTime:0})}).catch(i=>e(()=>(console.info("Player failed to autoplay",i),{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 r=n().techRef.current;r&&e({currentTime:r.currentTime})},handleWaiting:()=>e({isLoading:!0}),pause:()=>{const r=n().techRef.current;r&&(r.pause(),e({isEnded:!1,isPlaying:!1,pauseTime:Date.now()}))},pauseTimeDiff:()=>en(Date.now()-n().pauseTime),play:()=>{const r=n().techRef.current;r&&(r.play(),e({isEnded:!1,isPlaying:!0,isStarted:!0,pauseTime:0}))},seek:r=>{const i=n().techRef.current;i&&(i.currentTime=r,(i.paused||i.ended)&&i.play(),e({seekTime:-1,currentTime:r,isStarted:!0,isEnded:!1,isPlaying:!0}))},setIsLoading:r=>e({isLoading:r}),setIsLoop:r=>{const i=n().techRef.current;i&&(i.loop=r,e({isLoop:r}))},setStartTime:r=>e({startTime:r}),setVolume:r=>{const i=n().techRef.current;i&&(i.muted=r===0,i.volume=r/100,e({volume:r}))},stop:()=>{n().techRef.current&&e({isPlaying:!1,isLoading:!1})}}),ln=e=>({idleLocks:new Set,addIdleLock:n=>e(r=>({idleLocks:new Set(r.idleLocks).add(n)})),removeIdleLock:n=>e(r=>{const i=new Set(r.idleLocks);return i.delete(n),{idleLocks:i}})}),cn=e=>({level:null,levels:null,setLevels:n=>e({levels:n}),setLevel:n=>e({level:n})}),un=(e,n)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{on(document),e({isFullscreen:!1})},requestFullscreen:()=>{const r=n().techRef.current,i=n().containerRef.current;if(!r||!i)return;const l=Ve?r:i;l&&rn(l),e({isFullscreen:!0})},setIsFullscreen:r=>e({isFullscreen:r}),setIsFullscreenReady:r=>e({isFullscreenReady:r})}),dn=e=>({url:"",setURL:n=>e({url:n})}),fn=e=>()=>({...e}),hn=(e,n)=>le.create()((...r)=>({...an(...r),...ln(...r),...un(...r),...cn(...r),...dn(...r),...fn({techRef:e,containerRef:n})(...r)})),Oe=c.createContext(null);function mn({children:e}){const n=c.useRef(null),r=c.useRef(null),i=c.useRef(null);return n.current||(n.current=hn(r,i)),o.jsx(Oe.Provider,{value:n.current,children:e})}const u=e=>{const n=c.useContext(Oe);if(!n)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return le.useStore(n,e)};function pn(){const e=u(a=>a.isPlaying),n=u(a=>a.pause),r=u(a=>a.pauseTime),i=u(a=>a.pauseTimeDiff),l=u(a=>a.play),m=D(a=>a.delay),p=D(a=>a.setDelay),h=()=>{e?n():(r&&p(m+i()),l())};return o.jsx(J,{onClick:h,children:e?o.jsx(De,{}):o.jsx(Me,{})})}function He({className:e,onClick:n,...r}){const i=c.useRef(null),l=u(x=>x.exitFullscreen),m=u(x=>x.isFullscreen),p=u(x=>x.requestFullscreen),h=x=>{v()?(f(),m?l():p()):a(x)},a=x=>{i.current=window.setTimeout(()=>{n?.(x),f()},200)},f=()=>{i.current!==null&&(window.clearTimeout(i.current),i.current=null)},v=()=>i.current!==null;return c.useEffect(()=>()=>{f()},[]),o.jsx(vn,{onClick:h,className:e,"aria-label":"Player playback indicator",...r})}const vn=w.button`
|
|
164
105
|
position: absolute;
|
|
165
106
|
top: 0;
|
|
166
107
|
left: 0;
|
|
@@ -178,11 +119,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
178
119
|
&:focus {
|
|
179
120
|
outline: none;
|
|
180
121
|
}
|
|
181
|
-
`;function
|
|
122
|
+
`;function gn(){const e=u(i=>i.isPlaying),n=u(i=>i.play),r=()=>{e||n()};return o.jsx(He,{onClick:r})}const Ae=w.div`
|
|
182
123
|
position: relative;
|
|
183
124
|
width: 100%;
|
|
184
125
|
margin-bottom: -0.25rem;
|
|
185
|
-
`,
|
|
126
|
+
`,Ue=w.div`
|
|
186
127
|
position: absolute;
|
|
187
128
|
bottom: 1.75rem;
|
|
188
129
|
left: 0;
|
|
@@ -193,7 +134,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
193
134
|
opacity: ${({$isVisible:e})=>e?1:0};
|
|
194
135
|
transform: ${({$isVisible:e})=>e?"translateY(0)":"translateY(-0.5rem)"};
|
|
195
136
|
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
196
|
-
`,
|
|
137
|
+
`,Ne=w.p`
|
|
197
138
|
margin: 0;
|
|
198
139
|
padding: 0.25rem;
|
|
199
140
|
font-variant-numeric: tabular-nums;
|
|
@@ -205,7 +146,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
205
146
|
color: white;
|
|
206
147
|
background: rgba(0, 0, 0, 0.8);
|
|
207
148
|
border-radius: 1rem;
|
|
208
|
-
`;function ii(e,[t,n]){return Math.min(n,Math.max(t,e))}function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function si(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function un(...e){return t=>{let n=!1;const r=e.map(o=>{const i=si(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():si(e[o],null)}}}}function oe(...e){return f.useCallback(un(...e),e)}function ht(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];const l=u=>{const{scope:g,children:m,...w}=u,v=g?.[e]?.[c]||a,b=f.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:b,children:m})};l.displayName=i+"Provider";function d(u,g){const m=g?.[e]?.[c]||a,w=f.useContext(m);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=a?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Hl(o,...t)]}function Hl(...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(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const u=c(i)[`__scope${l}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Be=globalThis?.document?f.useLayoutEffect:()=>{},Bl=f[" useInsertionEffect ".trim().toString()]||Be;function cr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Wl({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=Ul(d)?d(e):d;u!==e&&s.current?.(u)}else i(d)},[a,e,i,s]);return[c,l]}function Wl({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return Bl(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Ul(e){return typeof e=="function"}var zl=f.createContext(void 0);function lr(e){const t=f.useContext(zl);return e||t||"ltr"}function Kl(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 ai(e){const[t,n]=f.useState(void 0);return Be(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function dn(e){const t=Yl(e),n=f.forwardRef((r,o)=>{const{children:i,...s}=r,a=f.Children.toArray(i),c=a.find(Xl);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,{...s,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return p.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Yl(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const s=Zl(o),a=ql(i,o.props);return o.type!==f.Fragment&&(a.ref=r?un(r,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gl=Symbol("radix.slottable");function Xl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gl}function ql(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Zl(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 Jl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=Jl.reduce((e,t)=>{const n=dn(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ci(e,t){e&&to.flushSync(()=>e.dispatchEvent(t))}function ur(e){const t=e+"CollectionProvider",[n,r]=ht(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:b,children:x}=v,E=R.useRef(null),y=R.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:y,collectionRef:E,children:x})};s.displayName=t;const a=e+"CollectionSlot",c=dn(a),l=R.forwardRef((v,b)=>{const{scope:x,children:E}=v,y=i(a,x),S=oe(b,y.collectionRef);return p.jsx(c,{ref:S,children:E})});l.displayName=a;const d=e+"CollectionItemSlot",u="data-radix-collection-item",g=dn(d),m=R.forwardRef((v,b)=>{const{scope:x,children:E,...y}=v,S=R.useRef(null),P=oe(b,S),M=i(d,x);return R.useEffect(()=>(M.itemMap.set(S,{ref:S,...y}),()=>void M.itemMap.delete(S))),p.jsx(g,{[u]:"",ref:P,children:E})});m.displayName=d;function w(v){const b=i(e+"CollectionConsumer",v);return R.useCallback(()=>{const E=b.collectionRef.current;if(!E)return[];const y=Array.from(E.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((M,C)=>y.indexOf(M.ref.current)-y.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:l,ItemSlot:m},w,r]}var li=["PageUp","PageDown"],ui=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],di={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},mt="Slider",[dr,Ql,eu]=ur(mt),[fi,Fm]=ht(mt,[eu]),[tu,fn]=fi(mt),pi=f.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:d,onValueChange:u=()=>{},onValueCommit:g=()=>{},inverted:m=!1,form:w,...v}=e,b=f.useRef(new Set),x=f.useRef(0),y=s==="horizontal"?nu:ru,[S=[],P]=cr({prop:d,defaultProp:l,onChange:F=>{[...b.current][x.current]?.focus(),u(F)}}),M=f.useRef(S);function C(F){const U=cu(S,F);_(F,U)}function I(F){_(F,x.current)}function j(){const F=M.current[x.current];S[x.current]!==F&&g(S)}function _(F,U,{commit:N}={commit:!1}){const H=fu(i),G=pu(Math.round((F-r)/i)*i+r,H),$=ii(G,[r,o]);P((V=[])=>{const D=su(V,$,U);if(du(D,c*i)){x.current=D.indexOf($);const A=String(D)!==String(V);return A&&N&&g(D),A?D:V}else return V})}return p.jsx(tu,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:x,thumbs:b.current,values:S,orientation:s,form:w,children:p.jsx(dr.Provider,{scope:e.__scopeSlider,children:p.jsx(dr.Slot,{scope:e.__scopeSlider,children:p.jsx(y,{"aria-disabled":a,"data-disabled":a?"":void 0,...v,ref:t,onPointerDown:W(v.onPointerDown,()=>{a||(M.current=S)}),min:r,max:o,inverted:m,onSlideStart:a?void 0:C,onSlideMove:a?void 0:I,onSlideEnd:a?void 0:j,onHomeKeyDown:()=>!a&&_(r,0,{commit:!0}),onEndKeyDown:()=>!a&&_(o,S.length-1,{commit:!0}),onStepKeyDown:({event:F,direction:U})=>{if(!a){const G=li.includes(F.key)||F.shiftKey&&ui.includes(F.key)?10:1,$=x.current,V=S[$],D=i*G*U;_(V+D,$,{commit:!0})}}})})})})});pi.displayName=mt;var[hi,mi]=fi(mt,{startEdge:"left",endEdge:"right",size:"width",direction:1}),nu=f.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:s,onSlideMove:a,onSlideEnd:c,onStepKeyDown:l,...d}=e,[u,g]=f.useState(null),m=oe(t,y=>g(y)),w=f.useRef(void 0),v=lr(o),b=v==="ltr",x=b&&!i||!b&&i;function E(y){const S=w.current||u.getBoundingClientRect(),P=[0,S.width],C=hr(P,x?[n,r]:[r,n]);return w.current=S,C(y-S.left)}return p.jsx(hi,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:p.jsx(gi,{dir:v,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{const S=E(y.clientX);s?.(S)},onSlideMove:y=>{const S=E(y.clientX);a?.(S)},onSlideEnd:()=>{w.current=void 0,c?.()},onStepKeyDown:y=>{const P=di[x?"from-left":"from-right"].includes(y.key);l?.({event:y,direction:P?-1:1})}})})}),ru=f.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:a,onStepKeyDown:c,...l}=e,d=f.useRef(null),u=oe(t,d),g=f.useRef(void 0),m=!o;function w(v){const b=g.current||d.current.getBoundingClientRect(),x=[0,b.height],y=hr(x,m?[r,n]:[n,r]);return g.current=b,y(v-b.top)}return p.jsx(hi,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:p.jsx(gi,{"data-orientation":"vertical",...l,ref:u,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const b=w(v.clientY);i?.(b)},onSlideMove:v=>{const b=w(v.clientY);s?.(b)},onSlideEnd:()=>{g.current=void 0,a?.()},onStepKeyDown:v=>{const x=di[m?"from-bottom":"from-top"].includes(v.key);c?.({event:v,direction:x?-1:1})}})})}),gi=f.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:c,...l}=e,d=fn(mt,n);return p.jsx(ie.span,{...l,ref:t,onKeyDown:W(e.onKeyDown,u=>{u.key==="Home"?(s(u),u.preventDefault()):u.key==="End"?(a(u),u.preventDefault()):li.concat(ui).includes(u.key)&&(c(u),u.preventDefault())}),onPointerDown:W(e.onPointerDown,u=>{const g=u.target;g.setPointerCapture(u.pointerId),u.preventDefault(),d.thumbs.has(g)?g.focus():r(u)}),onPointerMove:W(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&o(u)}),onPointerUp:W(e.onPointerUp,u=>{const g=u.target;g.hasPointerCapture(u.pointerId)&&(g.releasePointerCapture(u.pointerId),i(u))})})}),vi="SliderTrack",yi=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fn(vi,n);return p.jsx(ie.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});yi.displayName=vi;var fr="SliderRange",wi=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fn(fr,n),i=mi(fr,n),s=f.useRef(null),a=oe(t,s),c=o.values.length,l=o.values.map(g=>Si(g,o.min,o.max)),d=c>1?Math.min(...l):0,u=100-Math.max(...l);return p.jsx(ie.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[i.startEdge]:d+"%",[i.endEdge]:u+"%"}})});wi.displayName=fr;var pr="SliderThumb",bi=f.forwardRef((e,t)=>{const n=Ql(e.__scopeSlider),[r,o]=f.useState(null),i=oe(t,a=>o(a)),s=f.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return p.jsx(ou,{...e,ref:i,index:s})}),ou=f.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,s=fn(pr,n),a=mi(pr,n),[c,l]=f.useState(null),d=oe(t,E=>l(E)),u=c?s.form||!!c.closest("form"):!0,g=ai(c),m=s.values[r],w=m===void 0?0:Si(m,s.min,s.max),v=au(r,s.values.length),b=g?.[a.size],x=b?lu(b,w,a.direction):0;return f.useEffect(()=>{if(c)return s.thumbs.add(c),()=>{s.thumbs.delete(c)}},[c,s.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${w}% + ${x}px)`},children:[p.jsx(dr.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(ie.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":s.min,"aria-valuenow":m,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...i,ref:d,style:m===void 0?{display:"none"}:e.style,onFocus:W(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),u&&p.jsx(xi,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:m},r)]})});bi.displayName=pr;var iu="RadioBubbleInput",xi=f.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=f.useRef(null),i=oe(o,r),s=Kl(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&d){const u=new Event("input",{bubbles:!0});d.call(a,t),a.dispatchEvent(u)}},[s,t]),p.jsx(ie.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});xi.displayName=iu;function su(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function Si(e,t,n){const i=100/(n-t)*(e-t);return ii(i,[0,100])}function au(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function cu(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 lu(e,t,n){const r=e/2,i=hr([0,50],[0,r]);return(r-i(t)*n)*n}function uu(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function du(e,t){if(t>0){const n=uu(e);return Math.min(...n)>=t}return!0}function hr(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 fu(e){return(String(e).split(".")[1]||"").length}function pu(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var hu=pi,mu=yi,gu=wi,vu=bi;const pn=R.forwardRef(({max:e=100,min:t=0,...n},r)=>p.jsxs(yu,{ref:r,min:t,max:e,"aria-label":"Player progress",onKeyDown:o=>o.preventDefault(),...n,children:[p.jsx(wu,{children:p.jsx(bu,{})}),p.jsx(xu,{})]}));pn.displayName="PlayerSlider";const yu=Y(hu)`
|
|
149
|
+
`,fe=c.forwardRef(({max:e=100,min:n=0,...r},i)=>o.jsxs(yn,{ref:i,min:n,max:e,"aria-label":"Player progress",onKeyDown:l=>l.preventDefault(),...r,children:[o.jsx(xn,{children:o.jsx(bn,{})}),o.jsx(wn,{})]}));fe.displayName="PlayerSlider";const yn=w(ce.Root)`
|
|
209
150
|
position: relative;
|
|
210
151
|
display: flex;
|
|
211
152
|
align-items: center;
|
|
@@ -219,20 +160,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
219
160
|
cursor: not-allowed;
|
|
220
161
|
opacity: 0.5;
|
|
221
162
|
}
|
|
222
|
-
`,
|
|
163
|
+
`,xn=w(ce.Track)`
|
|
223
164
|
position: relative;
|
|
224
165
|
height: 0.25rem;
|
|
225
166
|
flex-grow: 1;
|
|
226
167
|
background: rgba(255, 255, 255, 0.2);
|
|
227
168
|
border-radius: 1rem;
|
|
228
169
|
overflow: hidden;
|
|
229
|
-
`,
|
|
170
|
+
`,bn=w(ce.Range)`
|
|
230
171
|
position: absolute;
|
|
231
172
|
height: 100%;
|
|
232
173
|
background: #f7e406;
|
|
233
174
|
transition: width 0.2s ease-in-out;
|
|
234
175
|
border-radius: 1rem;
|
|
235
|
-
`,
|
|
176
|
+
`,wn=w(ce.Thumb)`
|
|
236
177
|
display: block;
|
|
237
178
|
width: 0.875rem;
|
|
238
179
|
height: 0.875rem;
|
|
@@ -255,10 +196,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
255
196
|
cursor: not-allowed;
|
|
256
197
|
opacity: 0.5;
|
|
257
198
|
}
|
|
258
|
-
`;function
|
|
199
|
+
`;function he(e){const n=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight?{left:n.left*100,right:n.right*100,top:n.top*100,bottom:n.bottom*100,width:n.width*100,height:n.height*100}:n}const Tn=(e,n)=>parseInt(Math.max(0,(Date.now()-(e+n*1e3))/1e3).toFixed(0)),Be=(e,n)=>Math.max(0,(Date.now()-e-n*1e3)/1e3),We=(e,n)=>Math.max(0,(n-e)/1e3),Cn=(e,n=0)=>{const i=n<0?0:n,l=["bytes","kb","mb","gb","tb","pb","eb","zb","yb"],m=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,m)).toFixed(i))}${l[m]}`};function Sn({isAuto:e,level:n,levels:r}){const i=r.length,l=[];return i>1&&l.push({sid:"quality-level-auto",label:"Auto",value:-1,selected:e||n===-1}),r.sort(function(m,p){const h=m.height||m.bitrate||0,a=p.height||p.bitrate||0;return h===a?0:h>a?1:-1}),r.map(m=>{const{bitrate:p,height:h,index:a}=m;l.push({sid:`quality-level-${a}`,label:h?`${h}p`:Cn(p),value:a,selected:i===1||!e&&a===n})}),l}const ze="vod-player-progress-bar";function Rn(){const e=c.useRef(null),n=c.useRef(null),[r,i]=c.useState(0),[l,m]=c.useState(0),[p,h]=c.useState(!1),[a,f]=c.useState(-1),[v,x]=c.useState(-1),L=D(C=>C.delay),R=D(C=>C.startTime),M=D(C=>C.endTime),_=D(C=>C.setDelay),U=u(C=>C.isPlaying),F=u(C=>C.addIdleLock),P=u(C=>C.removeIdleLock),g=c.useCallback(()=>{i(Be(R,L)),m(We(R,M))},[L,M,R]),W=parseFloat((l?(v!==-1?v:r)/l*100:0).toFixed(1)),z=C=>{x(l*(C[0]/100)),F(ze)},X=()=>{if(v!==-1){const C=Tn(R,v);_(C),x(-1),P(ze)}},ee=()=>h(!0),K=()=>h(!1),G=c.useCallback(C=>{const me=e.current,Q=n.current;if(me&&Q){const H=he(me),N=he(Q),Y=(C.pageX||C.clientX)-H.left,se=Y/H.width;if(se<0)return;let B=Y-N.width/2;B<0&&(B=0),B>H.width-N.width&&(B=-1),Q.style.left=B>-1?`${B}px`:"auto",Q.style.right=B>-1?"auto":"0px",f(se*l)}ee()},[l]);return de(()=>g(),U?1e3:null),c.useEffect(()=>{g()},[g]),o.jsxs(Ae,{children:[o.jsx(fe,{ref:e,value:[W],onPointerLeave:K,onPointerDown:K,onPointerMove:G,onValueChange:z,onValueCommit:X,step:.1}),o.jsx(Ue,{ref:n,$isVisible:p,children:o.jsx(Ne,{children:$(a)})})]})}function Ye({children:e}){return o.jsx(mn,{children:e})}function jn({children:e,startDate:n,endDate:r}){return o.jsx(Yt,{startDate:n,endDate:r,children:o.jsx(Ye,{children:e})})}const Ze=w.div`
|
|
259
200
|
display: flex;
|
|
260
201
|
align-items: center;
|
|
261
|
-
`,
|
|
202
|
+
`,Je=w.p`
|
|
262
203
|
margin: 0;
|
|
263
204
|
padding: 0;
|
|
264
205
|
font-variant-numeric: tabular-nums;
|
|
@@ -266,11 +207,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
266
207
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
267
208
|
"Helvetica Neue", Arial, sans-serif;
|
|
268
209
|
font-weight: 500;
|
|
269
|
-
`,
|
|
210
|
+
`,Xe=w(Je)`
|
|
270
211
|
margin-right: 0.5rem;
|
|
271
|
-
`,
|
|
212
|
+
`,Ke=w(Je)`
|
|
272
213
|
margin-left: 0.5rem;
|
|
273
|
-
`,
|
|
214
|
+
`,Ge=w.p`
|
|
274
215
|
margin: 0;
|
|
275
216
|
padding: 0;
|
|
276
217
|
font-size: 0.8125rem;
|
|
@@ -281,7 +222,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
281
222
|
&::before {
|
|
282
223
|
content: "/";
|
|
283
224
|
}
|
|
284
|
-
`;function
|
|
225
|
+
`;function Pn(){const[e,n]=c.useState(0),[r,i]=c.useState(0),l=u(f=>f.isPlaying),m=D(f=>f.delay),p=D(f=>f.startTime),h=D(f=>f.endTime),a=c.useCallback(()=>{n(Be(p,m)),i(We(p,h))},[m,h,p]);return de(()=>a(),l?1e3:null),c.useEffect(()=>{a()},[a]),m?o.jsxs(Ze,{children:[o.jsx(Xe,{children:$(e)}),o.jsx(Ge,{}),o.jsx(Ke,{children:$(r)})]}):null}function En({url:e,isLive:n}){const r=c.useRef(null),i=u(R=>R.level),l=u(R=>R.levels),m=u(R=>R.setLevel),p=u(R=>R.setLevels),h=u(R=>R.techRef),a=c.useCallback(R=>{if(r.current&&(r.current.nextLevel=R,m(null),l)){const M=l.map(_=>({..._,selected:_.value===R}));p(M)}},[l,m,p,r]),f=c.useCallback(()=>{r.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),r.current.loadSource(e))},[e]),v=c.useCallback(()=>{if(!r.current)return;console.log("[Player][Event]","MANIFEST_LOADED");const R=r.current.levels,M=r.current.currentLevel,_=r.current.autoLevelEnabled;p(Sn({levels:R.map((U,F)=>{const{bitrate:P,height:g,width:W}=U;return{bitrate:P,height:g,index:F,width:W}}),level:M,isAuto:_}))},[p]),x=c.useCallback(()=>{if(!h.current)return;const _=n?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(_)),console.log("[Player] Version",Z.version),r.current=new Z(_),r.current.attachMedia(h.current),r.current.on(Z.Events.MEDIA_ATTACHED,f),r.current.on(Z.Events.MANIFEST_LOADED,v)}catch(U){throw new Error(`Error initializing Hls: ${U}`)}},[v,f,n,h,e]),L=c.useCallback(()=>{r.current&&(r.current.off(Z.Events.MEDIA_ATTACHED,f),r.current.off(Z.Events.MANIFEST_LOADED,v),r.current.destroy(),r.current=null)},[v,f]);return c.useEffect(()=>{i!==null&&a(i)},[i,a]),c.useEffect(()=>(Z.isSupported()&&x(),L),[L,x]),null}function Qe({url:e,isLive:n,isMuted:r=!1}){const i=u(g=>g.handleDurationChange),l=u(g=>g.handleEnd),m=u(g=>g.handleLoadedMetadata),p=u(g=>g.handleLoadStart),h=u(g=>g.handlePause),a=u(g=>g.handlePlay),f=u(g=>g.handlePlaying),v=u(g=>g.handleSeeked),x=u(g=>g.handleSeeking),L=u(g=>g.handleTimeUpdate),R=u(g=>g.handleWaiting),M=u(g=>g.techRef),_=c.useRef(null),U=()=>n?{}:{onDurationChange:i,onSeeked:v,onSeeking:x,onTimeUpdate:F},F=()=>{(!_.current||Date.now()-_.current>=1e3)&&(L(),_.current=Date.now())},P=U();return o.jsxs(o.Fragment,{children:[o.jsx(En,{isLive:n,url:e}),o.jsx(kn,{ref:M,playsInline:!0,autoPlay:!0,controls:!1,muted:r,preload:"auto",crossOrigin:"anonymous",onEnded:l,onLoadedMetadata:m,onLoadStart:p,onPause:h,onPlay:a,onPlaying:f,onWaiting:R,tabIndex:-1,...P})]})}const kn=w.video`
|
|
285
226
|
position: relative;
|
|
286
227
|
width: 100%;
|
|
287
228
|
height: 100%;
|
|
@@ -289,7 +230,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
289
230
|
@media (min-width: 768px) {
|
|
290
231
|
pointer-events: none;
|
|
291
232
|
}
|
|
292
|
-
`;function
|
|
233
|
+
`;function Ln({url:e}){const[n,r]=c.useState(null),i=D(m=>m.delay),l=c.useCallback(async()=>{r(i?e.replace("playlist.m3u8",`playlist_fmp4_dvr_timeshift-${i}.m3u8`):e)},[i,e]);return c.useEffect(()=>{l()},[l]),n?o.jsx(Qe,{url:n,isLive:!0}):null}const qe=w.div`
|
|
293
234
|
position: absolute;
|
|
294
235
|
top: 0;
|
|
295
236
|
left: 0;
|
|
@@ -298,7 +239,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
298
239
|
color: white;
|
|
299
240
|
background: black;
|
|
300
241
|
overflow: hidden;
|
|
301
|
-
|
|
242
|
+
`,$e=w.div`
|
|
302
243
|
position: absolute;
|
|
303
244
|
left: 0;
|
|
304
245
|
width: 100%;
|
|
@@ -310,7 +251,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
310
251
|
@media (min-width: 768px) {
|
|
311
252
|
padding-top: 2rem;
|
|
312
253
|
}
|
|
313
|
-
`,
|
|
254
|
+
`,et=w.div`
|
|
314
255
|
display: flex;
|
|
315
256
|
flex-direction: column;
|
|
316
257
|
padding-left: 0.5rem;
|
|
@@ -322,21 +263,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
322
263
|
padding-left: 1rem;
|
|
323
264
|
padding-right: 1rem;
|
|
324
265
|
}
|
|
325
|
-
`,
|
|
266
|
+
`,tt=w.div`
|
|
326
267
|
display: flex;
|
|
327
268
|
padding: 0.5rem 0;
|
|
328
269
|
width: 100%;
|
|
329
270
|
align-items: center;
|
|
330
|
-
`,
|
|
271
|
+
`,nt=w.div`
|
|
331
272
|
display: flex;
|
|
332
273
|
flex: 1;
|
|
333
274
|
align-items: center;
|
|
334
275
|
gap: 0.5rem;
|
|
335
|
-
`,
|
|
276
|
+
`,rt=w(nt)`
|
|
336
277
|
justify-content: flex-start;
|
|
337
|
-
|
|
278
|
+
`,ot=w(nt)`
|
|
338
279
|
justify-content: flex-end;
|
|
339
|
-
`;function
|
|
280
|
+
`;function _n(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("path",{d:"M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z"})})}function Fn(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("path",{d:"M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"})})}function it(){const e=u(f=>f.containerRef),n=u(f=>f.exitFullscreen),r=u(f=>f.isFullscreen),i=u(f=>f.requestFullscreen),l=u(f=>f.setIsFullscreen),m=u(f=>f.setIsFullscreenReady),p=u(f=>f.techRef),h=c.useCallback(f=>{f.stopPropagation(),l(nn())},[l]),a=()=>{r?n():i()};return c.useEffect(()=>{const f=Ve?p.current:e.current;if(f)return sn(f,h)},[e,h,p]),c.useEffect(()=>{m(!0)},[m]),o.jsx(J,{onClick:a,children:r?o.jsx(Fn,{}):o.jsx(_n,{})})}const In=5*1e3;function st({children:e}){const n=c.useRef(null),[r,i]=c.useState(!1),l=c.useRef(null),p=u(f=>f.idleLocks).size,h=c.useCallback(()=>{l.current!==null&&(window.clearTimeout(l.current),l.current=null)},[]),a=c.useCallback(()=>{h(),l.current=window.setTimeout(()=>i(!0),In)},[h]);return c.useEffect(()=>(i(!1),a(),()=>{h()}),[h,a]),c.useEffect(()=>{const f=n.current;if(!f)return;const v=L=>{r&&(L.stopPropagation(),i(!1),a())},x=()=>{r&&i(!1),a()};return f.addEventListener("click",v),f.addEventListener("mousemove",x),()=>{f.removeEventListener("click",v),f.removeEventListener("mousemove",x)}},[n,r,i,a]),o.jsx(Dn,{ref:n,$isIdle:r&&!p,children:e})}const Dn=w.div`
|
|
340
281
|
position: absolute;
|
|
341
282
|
top: 0;
|
|
342
283
|
left: 0;
|
|
@@ -345,21 +286,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
345
286
|
transition: opacity 0.2s ease-in-out;
|
|
346
287
|
cursor: ${({$isIdle:e})=>e?"none":"auto"};
|
|
347
288
|
opacity: ${({$isIdle:e})=>e?0:1};
|
|
348
|
-
`;function
|
|
289
|
+
`;function Mn(e){return o.jsx(On,{...e})}const Vn=w.keyframes`
|
|
349
290
|
from {
|
|
350
291
|
transform: rotate(0deg);
|
|
351
292
|
}
|
|
352
293
|
to {
|
|
353
294
|
transform: rotate(360deg);
|
|
354
295
|
}
|
|
355
|
-
`,
|
|
296
|
+
`,On=w.div`
|
|
356
297
|
width: 1.5rem;
|
|
357
298
|
height: 1.5rem;
|
|
358
299
|
border: 2px solid white;
|
|
359
300
|
border-bottom-color: transparent;
|
|
360
301
|
border-radius: 50%;
|
|
361
|
-
animation: ${
|
|
362
|
-
`;function
|
|
302
|
+
animation: ${Vn} 1s linear infinite;
|
|
303
|
+
`;function Hn(e,n=500){const[r,i]=c.useState(e);return c.useEffect(()=>{const l=window.setTimeout(()=>i(e),n);return()=>{window.clearTimeout(l)}},[e,n]),r}function at({style:e,...n}){const r=u(l=>l.isLoading);return Hn(r,100)?o.jsx(An,{style:e,...n,children:o.jsx(Mn,{})}):null}const An=w.div`
|
|
363
304
|
pointer-events: none;
|
|
364
305
|
position: absolute;
|
|
365
306
|
top: 0;
|
|
@@ -371,47 +312,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
371
312
|
height: 100%;
|
|
372
313
|
align-items: center;
|
|
373
314
|
justify-content: center;
|
|
374
|
-
`;function Vu(){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 Hu(){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 Fe(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function Bu(e,t=globalThis?.document){const n=Fe(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 Wu="DismissableLayer",mr="dismissableLayer.update",Uu="dismissableLayer.pointerDownOutside",zu="dismissableLayer.focusOutside",Wi,Ui=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zi=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(Ui),[d,u]=f.useState(null),g=d?.ownerDocument??globalThis?.document,[,m]=f.useState({}),w=oe(t,C=>u(C)),v=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(b),E=d?v.indexOf(d):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,S=E>=x,P=Gu(C=>{const I=C.target,j=[...l.branches].some(_=>_.contains(I));!S||j||(o?.(C),s?.(C),C.defaultPrevented||a?.())},g),M=Xu(C=>{const I=C.target;[...l.branches].some(_=>_.contains(I))||(i?.(C),s?.(C),C.defaultPrevented||a?.())},g);return Bu(C=>{E===l.layers.size-1&&(r?.(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},g),f.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Wi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Ki(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Wi)}},[d,g,n,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Ki())},[d,l]),f.useEffect(()=>{const C=()=>m({});return document.addEventListener(mr,C),()=>document.removeEventListener(mr,C)},[]),p.jsx(ie.div,{...c,ref:w,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,M.onFocusCapture),onBlurCapture:W(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,P.onPointerDownCapture)})});zi.displayName=Wu;var Ku="DismissableLayerBranch",Yu=f.forwardRef((e,t)=>{const n=f.useContext(Ui),r=f.useRef(null),o=oe(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(ie.div,{...e,ref:o})});Yu.displayName=Ku;function Gu(e,t=globalThis?.document){const n=Fe(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Yi(Uu,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},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xu(e,t=globalThis?.document){const n=Fe(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Yi(zu,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ki(){const e=new CustomEvent(mr);document.dispatchEvent(e)}function Yi(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ci(o,i):o.dispatchEvent(i)}var gr=0;function qu(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gi()),document.body.insertAdjacentElement("beforeend",e[1]??Gi()),gr++,()=>{gr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gr--}},[])}function Gi(){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 vr="focusScope.autoFocusOnMount",yr="focusScope.autoFocusOnUnmount",Xi={bubbles:!1,cancelable:!0},Zu="FocusScope",qi=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=f.useState(null),l=Fe(o),d=Fe(i),u=f.useRef(null),g=oe(t,v=>c(v)),m=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let v=function(y){if(m.paused||!a)return;const S=y.target;a.contains(S)?u.current=S:We(u.current,{select:!0})},b=function(y){if(m.paused||!a)return;const S=y.relatedTarget;S!==null&&(a.contains(S)||We(u.current,{select:!0}))},x=function(y){if(document.activeElement===document.body)for(const P of y)P.removedNodes.length>0&&We(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",b);const E=new MutationObserver(x);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),E.disconnect()}}},[r,a,m.paused]),f.useEffect(()=>{if(a){Qi.add(m);const v=document.activeElement;if(!a.contains(v)){const x=new CustomEvent(vr,Xi);a.addEventListener(vr,l),a.dispatchEvent(x),x.defaultPrevented||(Ju(rd(Zi(a)),{select:!0}),document.activeElement===v&&We(a))}return()=>{a.removeEventListener(vr,l),setTimeout(()=>{const x=new CustomEvent(yr,Xi);a.addEventListener(yr,d),a.dispatchEvent(x),x.defaultPrevented||We(v??document.body,{select:!0}),a.removeEventListener(yr,d),Qi.remove(m)},0)}}},[a,l,d,m]);const w=f.useCallback(v=>{if(!n&&!r||m.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(b&&x){const E=v.currentTarget,[y,S]=Qu(E);y&&S?!v.shiftKey&&x===S?(v.preventDefault(),n&&We(y,{select:!0})):v.shiftKey&&x===y&&(v.preventDefault(),n&&We(S,{select:!0})):x===E&&v.preventDefault()}},[n,r,m.paused]);return p.jsx(ie.div,{tabIndex:-1,...s,ref:g,onKeyDown:w})});qi.displayName=Zu;function Ju(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(We(r,{select:t}),document.activeElement!==n)return}function Qu(e){const t=Zi(e),n=Ji(t,e),r=Ji(t.reverse(),e);return[n,r]}function Zi(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 Ji(e,t){for(const n of e)if(!ed(n,{upTo:t}))return n}function ed(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 td(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&td(e)&&t&&e.select()}}var Qi=nd();function nd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=es(e,t),e.unshift(t)},remove(t){e=es(e,t),e[0]?.resume()}}}function es(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rd(e){return e.filter(t=>t.tagName!=="A")}var od=f[" useId ".trim().toString()]||(()=>{}),id=0;function wr(e){const[t,n]=f.useState(od());return Be(()=>{n(r=>r??String(id++))},[e]),e||(t?`radix-${t}`:"")}const sd=["top","right","bottom","left"],Ue=Math.min,ge=Math.max,mn=Math.round,gn=Math.floor,_e=e=>({x:e,y:e}),ad={left:"right",right:"left",bottom:"top",top:"bottom"},cd={start:"end",end:"start"};function br(e,t,n){return ge(e,Ue(t,n))}function $e(e,t){return typeof e=="function"?e(t):e}function Ve(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function xr(e){return e==="x"?"y":"x"}function Sr(e){return e==="y"?"height":"width"}const ld=new Set(["top","bottom"]);function Oe(e){return ld.has(Ve(e))?"y":"x"}function Er(e){return xr(Oe(e))}function ud(e,t,n){n===void 0&&(n=!1);const r=gt(e),o=Er(e),i=Sr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vn(s)),[s,vn(s)]}function dd(e){const t=vn(e);return[Cr(e),t,Cr(t)]}function Cr(e){return e.replace(/start|end/g,t=>cd[t])}const ts=["left","right"],ns=["right","left"],fd=["top","bottom"],pd=["bottom","top"];function hd(e,t,n){switch(e){case"top":case"bottom":return n?t?ns:ts:t?ts:ns;case"left":case"right":return t?fd:pd;default:return[]}}function md(e,t,n,r){const o=gt(e);let i=hd(Ve(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Cr)))),i}function vn(e){return e.replace(/left|right|bottom|top/g,t=>ad[t])}function gd(e){return{top:0,right:0,bottom:0,left:0,...e}}function rs(e){return typeof e!="number"?gd(e):{top:e,right:e,bottom:e,left:e}}function yn(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 os(e,t,n){let{reference:r,floating:o}=e;const i=Oe(t),s=Er(t),a=Sr(s),c=Ve(t),l=i==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,g=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(gt(t)){case"start":m[s]-=g*(n&&l?-1:1);break;case"end":m[s]+=g*(n&&l?-1:1);break}return m}const vd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=os(l,r,c),g=r,m={},w=0;for(let v=0;v<a.length;v++){const{name:b,fn:x}=a[v],{x:E,y,data:S,reset:P}=await x({x:d,y:u,initialPlacement:r,placement:g,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});d=E??d,u=y??u,m={...m,[b]:{...m[b],...S}},P&&w<=50&&(w++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(l=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:u}=os(l,g,c)),v=-1)}return{x:d,y:u,placement:g,strategy:o,middlewareData:m}};async function _t(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:g=!1,padding:m=0}=$e(t,e),w=rs(m),b=a[g?u==="floating"?"reference":"floating":u],x=yn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),E=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},P=yn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:y,strategy:c}):E);return{top:(x.top-P.top+w.top)/S.y,bottom:(P.bottom-x.bottom+w.bottom)/S.y,left:(x.left-P.left+w.left)/S.x,right:(P.right-x.right+w.right)/S.x}}const yd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=$e(e,t)||{};if(l==null)return{};const u=rs(d),g={x:n,y:r},m=Er(o),w=Sr(m),v=await s.getDimensions(l),b=m==="y",x=b?"top":"left",E=b?"bottom":"right",y=b?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[m]-g[m]-i.floating[w],P=g[m]-i.reference[m],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let C=M?M[y]:0;(!C||!await(s.isElement==null?void 0:s.isElement(M)))&&(C=a.floating[y]||i.floating[w]);const I=S/2-P/2,j=C/2-v[w]/2-1,_=Ue(u[x],j),F=Ue(u[E],j),U=_,N=C-v[w]-F,H=C/2-v[w]/2+I,G=br(U,H,N),$=!c.arrow&>(o)!=null&&H!==G&&i.reference[w]/2-(H<U?_:F)-v[w]/2<0,V=$?H<U?H-U:H-N:0;return{[m]:g[m]+V,data:{[m]:G,centerOffset:H-G-V,...$&&{alignmentOffset:V}},reset:$}}}),wd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...b}=$e(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=Ve(o),E=Oe(a),y=Ve(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),P=g||(y||!v?[vn(a)]:dd(a)),M=w!=="none";!g&&M&&P.push(...md(a,v,w,S));const C=[a,...P],I=await _t(t,b),j=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&j.push(I[x]),u){const H=ud(o,s,S);j.push(I[H[0]],I[H[1]])}if(_=[..._,{placement:o,overflows:j}],!j.every(H=>H<=0)){var F,U;const H=(((F=i.flip)==null?void 0:F.index)||0)+1,G=C[H];if(G&&(!(u==="alignment"?E!==Oe(G):!1)||_.every(D=>Oe(D.placement)===E?D.overflows[0]>0:!0)))return{data:{index:H,overflows:_},reset:{placement:G}};let $=(U=_.filter(V=>V.overflows[0]<=0).sort((V,D)=>V.overflows[1]-D.overflows[1])[0])==null?void 0:U.placement;if(!$)switch(m){case"bestFit":{var N;const V=(N=_.filter(D=>{if(M){const A=Oe(D.placement);return A===E||A==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(A=>A>0).reduce((A,Q)=>A+Q,0)]).sort((D,A)=>D[1]-A[1])[0])==null?void 0:N[0];V&&($=V);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function is(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ss(e){return sd.some(t=>e[t]>=0)}const bd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=$e(e,t);switch(r){case"referenceHidden":{const i=await _t(t,{...o,elementContext:"reference"}),s=is(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ss(s)}}}case"escaped":{const i=await _t(t,{...o,altBoundary:!0}),s=is(i,n.floating);return{data:{escapedOffsets:s,escaped:ss(s)}}}default:return{}}}}},as=new Set(["left","top"]);async function xd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ve(n),a=gt(n),c=Oe(n)==="y",l=as.has(s)?-1:1,d=i&&c?-1:1,u=$e(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:w}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof w=="number"&&(m=a==="end"?w*-1:w),c?{x:m*d,y:g*l}:{x:g*l,y:m*d}}const Sd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await xd(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Ed=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x,y:E}=b;return{x,y:E}}},...c}=$e(e,t),l={x:n,y:r},d=await _t(t,c),u=Oe(Ve(o)),g=xr(u);let m=l[g],w=l[u];if(i){const b=g==="y"?"top":"left",x=g==="y"?"bottom":"right",E=m+d[b],y=m-d[x];m=br(E,m,y)}if(s){const b=u==="y"?"top":"left",x=u==="y"?"bottom":"right",E=w+d[b],y=w-d[x];w=br(E,w,y)}const v=a.fn({...t,[g]:m,[u]:w});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:i,[u]:s}}}}}},Cd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=$e(e,t),d={x:n,y:r},u=Oe(o),g=xr(u);let m=d[g],w=d[u];const v=$e(a,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const y=g==="y"?"height":"width",S=i.reference[g]-i.floating[y]+b.mainAxis,P=i.reference[g]+i.reference[y]-b.mainAxis;m<S?m=S:m>P&&(m=P)}if(l){var x,E;const y=g==="y"?"width":"height",S=as.has(Ve(o)),P=i.reference[u]-i.floating[y]+(S&&((x=s.offset)==null?void 0:x[u])||0)+(S?0:b.crossAxis),M=i.reference[u]+i.reference[y]+(S?0:((E=s.offset)==null?void 0:E[u])||0)-(S?b.crossAxis:0);w<P?w=P:w>M&&(w=M)}return{[g]:m,[u]:w}}}},Pd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=$e(e,t),d=await _t(t,l),u=Ve(o),g=gt(o),m=Oe(o)==="y",{width:w,height:v}=i.floating;let b,x;u==="top"||u==="bottom"?(b=u,x=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=u,b=g==="end"?"top":"bottom");const E=v-d.top-d.bottom,y=w-d.left-d.right,S=Ue(v-d[b],E),P=Ue(w-d[x],y),M=!t.middlewareData.shift;let C=S,I=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=E),M&&!g){const _=ge(d.left,0),F=ge(d.right,0),U=ge(d.top,0),N=ge(d.bottom,0);m?I=w-2*(_!==0||F!==0?_+F:ge(d.left,d.right)):C=v-2*(U!==0||N!==0?U+N:ge(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:C});const j=await s.getDimensions(a.floating);return w!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}};function wn(){return typeof window<"u"}function vt(e){return cs(e)?(e.nodeName||"").toLowerCase():"#document"}function ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(cs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cs(e){return wn()?e instanceof Node||e instanceof ve(e).Node:!1}function Pe(e){return wn()?e instanceof Element||e instanceof ve(e).Element:!1}function De(e){return wn()?e instanceof HTMLElement||e instanceof ve(e).HTMLElement:!1}function ls(e){return!wn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ve(e).ShadowRoot}const Rd=new Set(["inline","contents"]);function Ot(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Rd.has(o)}const Td=new Set(["table","td","th"]);function Md(e){return Td.has(vt(e))}const Ad=[":popover-open",":modal"];function bn(e){return Ad.some(t=>{try{return e.matches(t)}catch{return!1}})}const kd=["transform","translate","scale","rotate","perspective"],_d=["transform","translate","scale","rotate","perspective","filter"],Od=["paint","layout","strict","content"];function Pr(e){const t=Rr(),n=Pe(e)?Re(e):e;return kd.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)||_d.some(r=>(n.willChange||"").includes(r))||Od.some(r=>(n.contain||"").includes(r))}function Id(e){let t=ze(e);for(;De(t)&&!yt(t);){if(Pr(t))return t;if(bn(t))return null;t=ze(t)}return null}function Rr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Dd=new Set(["html","body","#document"]);function yt(e){return Dd.has(vt(e))}function Re(e){return ve(e).getComputedStyle(e)}function xn(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ze(e){if(vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ls(e)&&e.host||Ie(e);return ls(t)?t.host:t}function us(e){const t=ze(e);return yt(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&Ot(t)?t:us(t)}function It(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=us(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ve(o);if(i){const a=Tr(s);return t.concat(s,s.visualViewport||[],Ot(o)?o:[],a&&n?It(a):[])}return t.concat(o,It(o,[],n))}function Tr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ds(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=De(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=mn(n)!==i||mn(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Mr(e){return Pe(e)?e:e.contextElement}function wt(e){const t=Mr(e);if(!De(t))return _e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ds(t);let s=(i?mn(n.width):n.width)/r,a=(i?mn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ld=_e(0);function fs(e){const t=ve(e);return!Rr()||!t.visualViewport?Ld:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ve(e)?!1:t}function tt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Mr(e);let s=_e(1);t&&(r?Pe(r)&&(s=wt(r)):s=wt(e));const a=jd(i,n,r)?fs(i):_e(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const g=ve(i),m=r&&Pe(r)?ve(r):r;let w=g,v=Tr(w);for(;v&&r&&m!==w;){const b=wt(v),x=v.getBoundingClientRect(),E=Re(v),y=x.left+(v.clientLeft+parseFloat(E.paddingLeft))*b.x,S=x.top+(v.clientTop+parseFloat(E.paddingTop))*b.y;c*=b.x,l*=b.y,d*=b.x,u*=b.y,c+=y,l+=S,w=ve(v),v=Tr(w)}}return yn({width:d,height:u,x:c,y:l})}function Sn(e,t){const n=xn(e).scrollLeft;return t?t.left+n:tt(Ie(e)).left+n}function ps(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Nd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ie(r),a=t?bn(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=_e(1);const d=_e(0),u=De(r);if((u||!u&&!i)&&((vt(r)!=="body"||Ot(s))&&(c=xn(r)),De(r))){const m=tt(r);l=wt(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const g=s&&!u&&!i?ps(s,c):_e(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+g.x,y:n.y*l.y-c.scrollTop*l.y+d.y+g.y}}function Fd(e){return Array.from(e.getClientRects())}function $d(e){const t=Ie(e),n=xn(e),r=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Sn(e);const a=-n.scrollTop;return Re(r).direction==="rtl"&&(s+=ge(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const hs=25;function Vd(e,t){const n=ve(e),r=Ie(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const d=Rr();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Sn(r);if(l<=0){const d=r.ownerDocument,u=d.body,g=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-u.clientWidth-m);w<=hs&&(i-=w)}else l<=hs&&(i+=l);return{width:i,height:s,x:a,y:c}}const Hd=new Set(["absolute","fixed"]);function Bd(e,t){const n=tt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=De(e)?wt(e):_e(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ms(e,t,n){let r;if(t==="viewport")r=Vd(e,n);else if(t==="document")r=$d(Ie(e));else if(Pe(t))r=Bd(t,n);else{const o=fs(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return yn(r)}function gs(e,t){const n=ze(e);return n===t||!Pe(n)||yt(n)?!1:Re(n).position==="fixed"||gs(n,t)}function Wd(e,t){const n=t.get(e);if(n)return n;let r=It(e,[],!1).filter(a=>Pe(a)&&vt(a)!=="body"),o=null;const i=Re(e).position==="fixed";let s=i?ze(e):e;for(;Pe(s)&&!yt(s);){const a=Re(s),c=Pr(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&Hd.has(o.position)||Ot(s)&&!c&&gs(e,s))?r=r.filter(d=>d!==s):o=a,s=ze(s)}return t.set(e,r),r}function Ud(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?bn(t)?[]:Wd(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,d)=>{const u=ms(t,d,o);return l.top=ge(u.top,l.top),l.right=Ue(u.right,l.right),l.bottom=Ue(u.bottom,l.bottom),l.left=ge(u.left,l.left),l},ms(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zd(e){const{width:t,height:n}=ds(e);return{width:t,height:n}}function Kd(e,t,n){const r=De(t),o=Ie(t),i=n==="fixed",s=tt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=_e(0);function l(){c.x=Sn(o)}if(r||!r&&!i)if((vt(t)!=="body"||Ot(o))&&(a=xn(t)),r){const m=tt(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?ps(o,a):_e(0),u=s.left+a.scrollLeft-c.x-d.x,g=s.top+a.scrollTop-c.y-d.y;return{x:u,y:g,width:s.width,height:s.height}}function Ar(e){return Re(e).position==="static"}function vs(e,t){if(!De(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ie(e)===n&&(n=n.ownerDocument.body),n}function ys(e,t){const n=ve(e);if(bn(e))return n;if(!De(e)){let o=ze(e);for(;o&&!yt(o);){if(Pe(o)&&!Ar(o))return o;o=ze(o)}return n}let r=vs(e,t);for(;r&&Md(r)&&Ar(r);)r=vs(r,t);return r&&yt(r)&&Ar(r)&&!Pr(r)?n:r||Id(e)||n}const Yd=async function(e){const t=this.getOffsetParent||ys,n=this.getDimensions,r=await n(e.floating);return{reference:Kd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gd(e){return Re(e).direction==="rtl"}const Xd={convertOffsetParentRelativeRectToViewportRelativeRect:Nd,getDocumentElement:Ie,getClippingRect:Ud,getOffsetParent:ys,getElementRects:Yd,getClientRects:Fd,getDimensions:zd,getScale:wt,isElement:Pe,isRTL:Gd};function ws(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qd(e,t){let n=null,r;const o=Ie(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:d,top:u,width:g,height:m}=l;if(a||t(),!g||!m)return;const w=gn(u),v=gn(o.clientWidth-(d+g)),b=gn(o.clientHeight-(u+m)),x=gn(d),y={rootMargin:-w+"px "+-v+"px "+-b+"px "+-x+"px",threshold:ge(0,Ue(1,c))||1};let S=!0;function P(M){const C=M[0].intersectionRatio;if(C!==c){if(!S)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!ws(l,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(P,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,y)}n.observe(e)}return s(!0),i}function Zd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Mr(e),d=o||i?[...l?It(l):[],...It(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const u=l&&a?qd(l,n):null;let g=-1,m=null;s&&(m=new ResizeObserver(x=>{let[E]=x;E&&E.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let w,v=c?tt(e):null;c&&b();function b(){const x=tt(e);v&&!ws(v,x)&&n(),v=x,w=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),u?.(),(x=m)==null||x.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const Jd=Sd,Qd=Ed,ef=wd,tf=Pd,nf=bd,bs=yd,rf=Cd,of=(e,t,n)=>{const r=new Map,o={platform:Xd,...n},i={...o.platform,_c:r};return vd(e,t,{...o,platform:i})};var sf=typeof document<"u",af=function(){},En=sf?R.useLayoutEffect:af;function Cn(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(!Cn(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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Cn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ss(e,t){const n=xs(e);return Math.round(t*n)/n}function kr(e){const t=f.useRef(e);return En(()=>{t.current=e}),t}function cf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=f.useState(r);Cn(g,r)||m(r);const[w,v]=f.useState(null),[b,x]=f.useState(null),E=f.useCallback(D=>{D!==M.current&&(M.current=D,v(D))},[]),y=f.useCallback(D=>{D!==C.current&&(C.current=D,x(D))},[]),S=i||w,P=s||b,M=f.useRef(null),C=f.useRef(null),I=f.useRef(d),j=c!=null,_=kr(c),F=kr(o),U=kr(l),N=f.useCallback(()=>{if(!M.current||!C.current)return;const D={placement:t,strategy:n,middleware:g};F.current&&(D.platform=F.current),of(M.current,C.current,D).then(A=>{const Q={...A,isPositioned:U.current!==!1};H.current&&!Cn(I.current,Q)&&(I.current=Q,to.flushSync(()=>{u(Q)}))})},[g,t,n,F,U]);En(()=>{l===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,u(D=>({...D,isPositioned:!1})))},[l]);const H=f.useRef(!1);En(()=>(H.current=!0,()=>{H.current=!1}),[]),En(()=>{if(S&&(M.current=S),P&&(C.current=P),S&&P){if(_.current)return _.current(S,P,N);N()}},[S,P,N,_,j]);const G=f.useMemo(()=>({reference:M,floating:C,setReference:E,setFloating:y}),[E,y]),$=f.useMemo(()=>({reference:S,floating:P}),[S,P]),V=f.useMemo(()=>{const D={position:n,left:0,top:0};if(!$.floating)return D;const A=Ss($.floating,d.x),Q=Ss($.floating,d.y);return a?{...D,transform:"translate("+A+"px, "+Q+"px)",...xs($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:Q}},[n,a,$.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:N,refs:G,elements:$,floatingStyles:V}),[d,N,G,$,V])}const lf=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?bs({element:r.current,padding:o}).fn(n):{}:r?bs({element:r,padding:o}).fn(n):{}}}},uf=(e,t)=>({...Jd(e),options:[e,t]}),df=(e,t)=>({...Qd(e),options:[e,t]}),ff=(e,t)=>({...rf(e),options:[e,t]}),pf=(e,t)=>({...ef(e),options:[e,t]}),hf=(e,t)=>({...tf(e),options:[e,t]}),mf=(e,t)=>({...nf(e),options:[e,t]}),gf=(e,t)=>({...lf(e),options:[e,t]});var vf="Arrow",Es=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.jsx(ie.svg,{...i,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"})})});Es.displayName=vf;var yf=Es,_r="Popper",[Cs,Ps]=ht(_r),[wf,Rs]=Cs(_r),Ts=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return p.jsx(wf,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ts.displayName=_r;var Ms="PopperAnchor",As=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Rs(Ms,n),s=f.useRef(null),a=oe(t,s),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=r?.current||s.current,l!==c.current&&i.onAnchorChange(c.current)}),r?null:p.jsx(ie.div,{...o,ref:a})});As.displayName=Ms;var Or="PopperContent",[bf,xf]=Cs(Or),ks=f.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:w,...v}=e,b=Rs(Or,n),[x,E]=f.useState(null),y=oe(t,Z=>E(Z)),[S,P]=f.useState(null),M=ai(S),C=M?.width??0,I=M?.height??0,j=r+(i!=="center"?"-"+i:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(l)?l:[l],U=F.length>0,N={padding:_,boundary:F.filter(Ef),altBoundary:U},{refs:H,floatingStyles:G,placement:$,isPositioned:V,middlewareData:D}=cf({strategy:"fixed",placement:j,whileElementsMounted:(...Z)=>Zd(...Z,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[uf({mainAxis:o+I,alignmentAxis:s}),c&&df({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?ff():void 0,...N}),c&&pf({...N}),hf({...N,apply:({elements:Z,rects:ue,availableWidth:ye,availableHeight:je})=>{const{width:Ke,height:we}=ue.reference,Ct=Z.floating.style;Ct.setProperty("--radix-popper-available-width",`${ye}px`),Ct.setProperty("--radix-popper-available-height",`${je}px`),Ct.setProperty("--radix-popper-anchor-width",`${Ke}px`),Ct.setProperty("--radix-popper-anchor-height",`${we}px`)}}),S&&gf({element:S,padding:a}),Cf({arrowWidth:C,arrowHeight:I}),g&&mf({strategy:"referenceHidden",...N})]}),[A,Q]=Is($),ae=Fe(w);Be(()=>{V&&ae?.()},[V,ae]);const te=D.arrow?.x,Se=D.arrow?.y,Te=D.arrow?.centerOffset!==0,[Me,le]=f.useState();return Be(()=>{x&&le(window.getComputedStyle(x).zIndex)},[x]),p.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:V?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(bf,{scope:n,placedSide:A,onArrowChange:P,arrowX:te,arrowY:Se,shouldHideArrow:Te,children:p.jsx(ie.div,{"data-side":A,"data-align":Q,...v,ref:y,style:{...v.style,animation:V?void 0:"none"}})})})});ks.displayName=Or;var _s="PopperArrow",Sf={top:"bottom",right:"left",bottom:"top",left:"right"},Os=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=xf(_s,r),s=Sf[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(yf,{...o,ref:n,style:{...o.style,display:"block"}})})});Os.displayName=_s;function Ef(e){return e!==null}var Cf=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,d]=Is(n),u={start:"0%",center:"50%",end:"100%"}[d],g=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+c/2;let w="",v="";return l==="bottom"?(w=s?u:`${g}px`,v=`${-c}px`):l==="top"?(w=s?u:`${g}px`,v=`${r.floating.height+c}px`):l==="right"?(w=`${-c}px`,v=s?u:`${m}px`):l==="left"&&(w=`${r.floating.width+c}px`,v=s?u:`${m}px`),{data:{x:w,y:v}}}});function Is(e){const[t,n="center"]=e.split("-");return[t,n]}var Pf=Ts,Rf=As,Tf=ks,Mf=Os,Af="Portal",Ds=f.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=f.useState(!1);Be(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Qr.createPortal(p.jsx(ie.div,{...r,ref:t}),s):null});Ds.displayName=Af;function kf(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Dt=e=>{const{present:t,children:n}=e,r=_f(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=oe(r.ref,Of(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Dt.displayName="Presence";function _f(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=kf(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Pn(r.current);i.current=a==="mounted"?l:"none"},[a]),Be(()=>{const l=r.current,d=o.current;if(d!==e){const g=i.current,m=Pn(l);e?c("MOUNT"):m==="none"||l?.display==="none"?c("UNMOUNT"):c(d&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Be(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,u=m=>{const v=Pn(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=m=>{m.target===t&&(i.current=Pn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",g),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 Pn(e){return e?.animationName||"none"}function Of(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 Ir="rovingFocusGroup.onEntryFocus",If={bubbles:!1,cancelable:!0},Lt="RovingFocusGroup",[Dr,Ls,Df]=ur(Lt),[Lf,js]=ht(Lt,[Df]),[jf,Nf]=Lf(Lt),Ns=f.forwardRef((e,t)=>p.jsx(Dr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Dr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Ff,{...e,ref:t})})}));Ns.displayName=Lt;var Ff=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...u}=e,g=f.useRef(null),m=oe(t,g),w=lr(i),[v,b]=cr({prop:s,defaultProp:a??null,onChange:c,caller:Lt}),[x,E]=f.useState(!1),y=Fe(l),S=Ls(n),P=f.useRef(!1),[M,C]=f.useState(0);return f.useEffect(()=>{const I=g.current;if(I)return I.addEventListener(Ir,y),()=>I.removeEventListener(Ir,y)},[y]),p.jsx(jf,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:v,onItemFocus:f.useCallback(I=>b(I),[b]),onItemShiftTab:f.useCallback(()=>E(!0),[]),onFocusableItemAdd:f.useCallback(()=>C(I=>I+1),[]),onFocusableItemRemove:f.useCallback(()=>C(I=>I-1),[]),children:p.jsx(ie.div,{tabIndex:x||M===0?-1:0,"data-orientation":r,...u,ref:m,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{P.current=!0}),onFocus:W(e.onFocus,I=>{const j=!P.current;if(I.target===I.currentTarget&&j&&!x){const _=new CustomEvent(Ir,If);if(I.currentTarget.dispatchEvent(_),!_.defaultPrevented){const F=S().filter($=>$.focusable),U=F.find($=>$.active),N=F.find($=>$.id===v),G=[U,N,...F].filter(Boolean).map($=>$.ref.current);Vs(G,d)}}P.current=!1}),onBlur:W(e.onBlur,()=>E(!1))})})}),Fs="RovingFocusGroupItem",$s=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...a}=e,c=wr(),l=i||c,d=Nf(Fs,n),u=d.currentTabStopId===l,g=Ls(n),{onFocusableItemAdd:m,onFocusableItemRemove:w,currentTabStopId:v}=d;return f.useEffect(()=>{if(r)return m(),()=>w()},[r,m,w]),p.jsx(Dr.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:p.jsx(ie.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:W(e.onMouseDown,b=>{r?d.onItemFocus(l):b.preventDefault()}),onFocus:W(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:W(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=Hf(b,d.orientation,d.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=g().filter(S=>S.focusable).map(S=>S.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();const S=y.indexOf(b.currentTarget);y=d.loop?Bf(y,S+1):y.slice(S+1)}setTimeout(()=>Vs(y))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:v!=null}):s})})});$s.displayName=Fs;var $f={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Vf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Hf(e,t,n){const r=Vf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return $f[r]}function Vs(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Bf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Wf=Ns,Uf=$s,zf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bt=new WeakMap,Rn=new WeakMap,Tn={},Lr=0,Hs=function(e){return e&&(e.host||Hs(e.parentNode))},Kf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hs(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})},Yf=function(e,t,n,r){var o=Kf(t,Array.isArray(e)?e:[e]);Tn[n]||(Tn[n]=new WeakMap);var i=Tn[n],s=[],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(g){if(a.has(g))d(g);else try{var m=g.getAttribute(r),w=m!==null&&m!=="false",v=(bt.get(g)||0)+1,b=(i.get(g)||0)+1;bt.set(g,v),i.set(g,b),s.push(g),v===1&&w&&Rn.set(g,!0),b===1&&g.setAttribute(n,"true"),w||g.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return d(t),a.clear(),Lr++,function(){s.forEach(function(u){var g=bt.get(u)-1,m=i.get(u)-1;bt.set(u,g),i.set(u,m),g||(Rn.has(u)||u.removeAttribute(r),Rn.delete(u)),m||u.removeAttribute(n)}),Lr--,Lr||(bt=new WeakMap,bt=new WeakMap,Rn=new WeakMap,Tn={})}},Gf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=zf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Yf(r,o,n,"aria-hidden")):function(){return null}},Le=function(){return Le=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Le.apply(this,arguments)};function Bs(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 Xf(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Mn="right-scroll-bar-position",An="width-before-scroll-bar",qf="with-scroll-bars-hidden",Zf="--removed-body-scroll-bar-size";function jr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Jf(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 Qf=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ws=new WeakMap;function ep(e,t){var n=Jf(null,function(r){return e.forEach(function(o){return jr(o,r)})});return Qf(function(){var r=Ws.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||jr(a,null)}),i.forEach(function(a){o.has(a)||jr(a,s)})}Ws.set(n,e)},[e]),n}function tp(e){return e}function np(e,t){t===void 0&&(t=tp);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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return o}function rp(e){e===void 0&&(e={});var t=np(null);return t.options=Le({async:!0,ssr:!1},e),t}var Us=function(e){var t=e.sideCar,n=Bs(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,Le({},n))};Us.isSideCarExport=!0;function op(e,t){return e.useMedium(t),Us}var zs=rp(),Nr=function(){},kn=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Nr,onWheelCapture:Nr,onTouchMoveCapture:Nr}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,u=e.shards,g=e.sideCar,m=e.noRelative,w=e.noIsolation,v=e.inert,b=e.allowPinchZoom,x=e.as,E=x===void 0?"div":x,y=e.gapMode,S=Bs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=g,M=ep([n,t]),C=Le(Le({},S),o);return f.createElement(f.Fragment,null,d&&f.createElement(P,{sideCar:zs,removeScrollBar:l,shards:u,noRelative:m,noIsolation:w,inert:v,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:y}),s?f.cloneElement(f.Children.only(a),Le(Le({},C),{ref:M})):f.createElement(E,Le({},C,{className:c,ref:M}),a))});kn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},kn.classNames={fullWidth:An,zeroRight:Mn};var ip=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ip();return t&&e.setAttribute("nonce",t),e}function ap(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var lp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=sp())&&(ap(t,n),cp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},up=function(){var e=lp();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ks=function(){var e=up(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},dp={left:0,top:0,right:0,gap:0},Fr=function(e){return parseInt(e||"",10)||0},fp=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[Fr(n),Fr(r),Fr(o)]},pp=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dp;var t=fp(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])}},hp=Ks(),xt="data-scroll-locked",mp=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
375
|
-
.`.concat(qf,` {
|
|
376
|
-
overflow: hidden `).concat(r,`;
|
|
377
|
-
padding-right: `).concat(a,"px ").concat(r,`;
|
|
378
|
-
}
|
|
379
|
-
body[`).concat(xt,`] {
|
|
380
|
-
overflow: hidden `).concat(r,`;
|
|
381
|
-
overscroll-behavior: contain;
|
|
382
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
383
|
-
padding-left: `.concat(o,`px;
|
|
384
|
-
padding-top: `).concat(i,`px;
|
|
385
|
-
padding-right: `).concat(s,`px;
|
|
386
|
-
margin-left:0;
|
|
387
|
-
margin-top:0;
|
|
388
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
389
|
-
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
.`).concat(Mn,` {
|
|
393
|
-
right: `).concat(a,"px ").concat(r,`;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
.`).concat(An,` {
|
|
397
|
-
margin-right: `).concat(a,"px ").concat(r,`;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.`).concat(Mn," .").concat(Mn,` {
|
|
401
|
-
right: 0 `).concat(r,`;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.`).concat(An," .").concat(An,` {
|
|
405
|
-
margin-right: 0 `).concat(r,`;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
body[`).concat(xt,`] {
|
|
409
|
-
`).concat(Zf,": ").concat(a,`px;
|
|
410
|
-
}
|
|
411
|
-
`)},Ys=function(){var e=parseInt(document.body.getAttribute(xt)||"0",10);return isFinite(e)?e:0},gp=function(){f.useEffect(function(){return document.body.setAttribute(xt,(Ys()+1).toString()),function(){var e=Ys()-1;e<=0?document.body.removeAttribute(xt):document.body.setAttribute(xt,e.toString())}},[])},vp=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;gp();var i=f.useMemo(function(){return pp(o)},[o]);return f.createElement(hp,{styles:mp(i,!t,o,n?"":"!important")})},$r=!1;if(typeof window<"u")try{var _n=Object.defineProperty({},"passive",{get:function(){return $r=!0,!0}});window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{$r=!1}var St=$r?{passive:!1}:!1,yp=function(e){return e.tagName==="TEXTAREA"},Gs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yp(e)&&n[t]==="visible")},wp=function(e){return Gs(e,"overflowY")},bp=function(e){return Gs(e,"overflowX")},Xs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=qs(e,r);if(o){var i=Zs(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xp=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Sp=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qs=function(e,t){return e==="v"?wp(t):bp(t)},Zs=function(e,t){return e==="v"?xp(t):Sp(t)},Ep=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cp=function(e,t,n,r,o){var i=Ep(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,d=s>0,u=0,g=0;do{if(!a)break;var m=Zs(e,a),w=m[0],v=m[1],b=m[2],x=v-b-i*w;(w||x)&&qs(e,a)&&(u+=x,g+=w);var E=a.parentNode;a=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(u)<1||!d&&Math.abs(g)<1)&&(l=!0),l},On=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Js=function(e){return[e.deltaX,e.deltaY]},Qs=function(e){return e&&"current"in e?e.current:e},Pp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rp=function(e){return`
|
|
412
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
413
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
414
|
-
`)},Tp=0,Et=[];function Mp(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Tp++)[0],i=f.useState(Ks)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Xf([e.lockRef.current],(e.shards||[]).map(Qs),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var x=On(v),E=n.current,y="deltaX"in v?v.deltaX:E[0]-x[0],S="deltaY"in v?v.deltaY:E[1]-x[1],P,M=v.target,C=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in v&&C==="h"&&M.type==="range")return!1;var I=Xs(C,M);if(!I)return!0;if(I?P=C:(P=C==="v"?"h":"v",I=Xs(C,M)),!I)return!1;if(!r.current&&"changedTouches"in v&&(y||S)&&(r.current=P),!P)return!0;var j=r.current||P;return Cp(j,b,v,j==="h"?y:S)},[]),c=f.useCallback(function(v){var b=v;if(!(!Et.length||Et[Et.length-1]!==i)){var x="deltaY"in b?Js(b):On(b),E=t.current.filter(function(P){return P.name===b.type&&(P.target===b.target||b.target===P.shadowParent)&&Pp(P.delta,x)})[0];if(E&&E.should){b.cancelable&&b.preventDefault();return}if(!E){var y=(s.current.shards||[]).map(Qs).filter(Boolean).filter(function(P){return P.contains(b.target)}),S=y.length>0?a(b,y[0]):!s.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),l=f.useCallback(function(v,b,x,E){var y={name:v,delta:b,target:x,should:E,shadowParent:Ap(x)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),d=f.useCallback(function(v){n.current=On(v),r.current=void 0},[]),u=f.useCallback(function(v){l(v.type,Js(v),v.target,a(v,e.lockRef.current))},[]),g=f.useCallback(function(v){l(v.type,On(v),v.target,a(v,e.lockRef.current))},[]);f.useEffect(function(){return Et.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:g}),document.addEventListener("wheel",c,St),document.addEventListener("touchmove",c,St),document.addEventListener("touchstart",d,St),function(){Et=Et.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,St),document.removeEventListener("touchmove",c,St),document.removeEventListener("touchstart",d,St)}},[]);var m=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(i,{styles:Rp(o)}):null,m?f.createElement(vp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ap(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kp=op(zs,Mp);var ea=f.forwardRef(function(e,t){return f.createElement(kn,Le({},e,{ref:t,sideCar:kp}))});ea.classNames=kn.classNames;var Vr=["Enter"," "],_p=["ArrowDown","PageUp","Home"],ta=["ArrowUp","PageDown","End"],Op=[..._p,...ta],Ip={ltr:[...Vr,"ArrowRight"],rtl:[...Vr,"ArrowLeft"]},Dp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},jt="Menu",[Nt,Lp,jp]=ur(jt),[nt,na]=ht(jt,[jp,Ps,js]),In=Ps(),ra=js(),[Np,rt]=nt(jt),[Fp,Ft]=nt(jt),oa=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=In(t),[c,l]=f.useState(null),d=f.useRef(!1),u=Fe(i),g=lr(o);return f.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),p.jsx(Pf,{...a,children:p.jsx(Np,{scope:t,open:n,onOpenChange:u,content:c,onContentChange:l,children:p.jsx(Fp,{scope:t,onClose:f.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:d,dir:g,modal:s,children:r})})})};oa.displayName=jt;var $p="MenuAnchor",Hr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=In(n);return p.jsx(Rf,{...o,...r,ref:t})});Hr.displayName=$p;var Br="MenuPortal",[Vp,ia]=nt(Br,{forceMount:void 0}),sa=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=rt(Br,t);return p.jsx(Vp,{scope:t,forceMount:n,children:p.jsx(Dt,{present:n||i.open,children:p.jsx(Ds,{asChild:!0,container:o,children:r})})})};sa.displayName=Br;var xe="MenuContent",[Hp,Wr]=nt(xe),aa=f.forwardRef((e,t)=>{const n=ia(xe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=rt(xe,e.__scopeMenu),s=Ft(xe,e.__scopeMenu);return p.jsx(Nt.Provider,{scope:e.__scopeMenu,children:p.jsx(Dt,{present:r||i.open,children:p.jsx(Nt.Slot,{scope:e.__scopeMenu,children:s.modal?p.jsx(Bp,{...o,ref:t}):p.jsx(Wp,{...o,ref:t})})})})}),Bp=f.forwardRef((e,t)=>{const n=rt(xe,e.__scopeMenu),r=f.useRef(null),o=oe(t,r);return f.useEffect(()=>{const i=r.current;if(i)return Gf(i)},[]),p.jsx(Ur,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:W(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Wp=f.forwardRef((e,t)=>{const n=rt(xe,e.__scopeMenu);return p.jsx(Ur,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Up=dn("MenuContent.ScrollLock"),Ur=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:g,onDismiss:m,disableOutsideScroll:w,...v}=e,b=rt(xe,n),x=Ft(xe,n),E=In(n),y=ra(n),S=Lp(n),[P,M]=f.useState(null),C=f.useRef(null),I=oe(t,C,b.onContentChange),j=f.useRef(0),_=f.useRef(""),F=f.useRef(0),U=f.useRef(null),N=f.useRef("right"),H=f.useRef(0),G=w?ea:f.Fragment,$=w?{as:Up,allowPinchZoom:!0}:void 0,V=A=>{const Q=_.current+A,ae=S().filter(Z=>!Z.disabled),te=document.activeElement,Se=ae.find(Z=>Z.ref.current===te)?.textValue,Te=ae.map(Z=>Z.textValue),Me=nh(Te,Q,Se),le=ae.find(Z=>Z.textValue===Me)?.ref.current;(function Z(ue){_.current=ue,window.clearTimeout(j.current),ue!==""&&(j.current=window.setTimeout(()=>Z(""),1e3))})(Q),le&&setTimeout(()=>le.focus())};f.useEffect(()=>()=>window.clearTimeout(j.current),[]),qu();const D=f.useCallback(A=>N.current===U.current?.side&&oh(A,U.current?.area),[]);return p.jsx(Hp,{scope:n,searchRef:_,onItemEnter:f.useCallback(A=>{D(A)&&A.preventDefault()},[D]),onItemLeave:f.useCallback(A=>{D(A)||(C.current?.focus(),M(null))},[D]),onTriggerLeave:f.useCallback(A=>{D(A)&&A.preventDefault()},[D]),pointerGraceTimerRef:F,onPointerGraceIntentChange:f.useCallback(A=>{U.current=A},[]),children:p.jsx(G,{...$,children:p.jsx(qi,{asChild:!0,trapped:o,onMountAutoFocus:W(i,A=>{A.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:p.jsx(zi,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:g,onDismiss:m,children:p.jsx(Wf,{asChild:!0,...y,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:M,onEntryFocus:W(c,A=>{x.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(Tf,{role:"menu","aria-orientation":"vertical","data-state":Ca(b.open),"data-radix-menu-content":"",dir:x.dir,...E,...v,ref:I,style:{outline:"none",...v.style},onKeyDown:W(v.onKeyDown,A=>{const ae=A.target.closest("[data-radix-menu-content]")===A.currentTarget,te=A.ctrlKey||A.altKey||A.metaKey,Se=A.key.length===1;ae&&(A.key==="Tab"&&A.preventDefault(),!te&&Se&&V(A.key));const Te=C.current;if(A.target!==Te||!Op.includes(A.key))return;A.preventDefault();const le=S().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);ta.includes(A.key)&&le.reverse(),eh(le)}),onBlur:W(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(j.current),_.current="")}),onPointerMove:W(e.onPointerMove,Vt(A=>{const Q=A.target,ae=H.current!==A.clientX;if(A.currentTarget.contains(Q)&&ae){const te=A.clientX>H.current?"right":"left";N.current=te,H.current=A.clientX}}))})})})})})})});aa.displayName=xe;var zp="MenuGroup",zr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ie.div,{role:"group",...r,ref:t})});zr.displayName=zp;var Kp="MenuLabel",ca=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ie.div,{...r,ref:t})});ca.displayName=Kp;var Dn="MenuItem",la="menu.itemSelect",Ln=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=f.useRef(null),s=Ft(Dn,e.__scopeMenu),a=Wr(Dn,e.__scopeMenu),c=oe(t,i),l=f.useRef(!1),d=()=>{const u=i.current;if(!n&&u){const g=new CustomEvent(la,{bubbles:!0,cancelable:!0});u.addEventListener(la,m=>r?.(m),{once:!0}),ci(u,g),g.defaultPrevented?l.current=!1:s.onClose()}};return p.jsx(ua,{...o,ref:c,disabled:n,onClick:W(e.onClick,d),onPointerDown:u=>{e.onPointerDown?.(u),l.current=!0},onPointerUp:W(e.onPointerUp,u=>{l.current||u.currentTarget?.click()}),onKeyDown:W(e.onKeyDown,u=>{const g=a.searchRef.current!=="";n||g&&u.key===" "||Vr.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Ln.displayName=Dn;var ua=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=Wr(Dn,n),a=ra(n),c=f.useRef(null),l=oe(t,c),[d,u]=f.useState(!1),[g,m]=f.useState("");return f.useEffect(()=>{const w=c.current;w&&m((w.textContent??"").trim())},[i.children]),p.jsx(Nt.ItemSlot,{scope:n,disabled:r,textValue:o??g,children:p.jsx(Uf,{asChild:!0,...a,focusable:!r,children:p.jsx(ie.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:l,onPointerMove:W(e.onPointerMove,Vt(w=>{r?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:W(e.onPointerLeave,Vt(w=>s.onItemLeave(w))),onFocus:W(e.onFocus,()=>u(!0)),onBlur:W(e.onBlur,()=>u(!1))})})})}),Yp="MenuCheckboxItem",da=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(ga,{scope:e.__scopeMenu,checked:n,children:p.jsx(Ln,{role:"menuitemcheckbox","aria-checked":jn(n)?"mixed":n,...o,ref:t,"data-state":Yr(n),onSelect:W(o.onSelect,()=>r?.(jn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});da.displayName=Yp;var fa="MenuRadioGroup",[Gp,Xp]=nt(fa,{value:void 0,onValueChange:()=>{}}),pa=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Fe(r);return p.jsx(Gp,{scope:e.__scopeMenu,value:n,onValueChange:i,children:p.jsx(zr,{...o,ref:t})})});pa.displayName=fa;var ha="MenuRadioItem",ma=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=Xp(ha,e.__scopeMenu),i=n===o.value;return p.jsx(ga,{scope:e.__scopeMenu,checked:i,children:p.jsx(Ln,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Yr(i),onSelect:W(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ma.displayName=ha;var Kr="MenuItemIndicator",[ga,qp]=nt(Kr,{checked:!1}),va=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=qp(Kr,n);return p.jsx(Dt,{present:r||jn(i.checked)||i.checked===!0,children:p.jsx(ie.span,{...o,ref:t,"data-state":Yr(i.checked)})})});va.displayName=Kr;var Zp="MenuSeparator",ya=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ie.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ya.displayName=Zp;var Jp="MenuArrow",wa=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=In(n);return p.jsx(Mf,{...o,...r,ref:t})});wa.displayName=Jp;var Qp="MenuSub",[$m,ba]=nt(Qp),$t="MenuSubTrigger",xa=f.forwardRef((e,t)=>{const n=rt($t,e.__scopeMenu),r=Ft($t,e.__scopeMenu),o=ba($t,e.__scopeMenu),i=Wr($t,e.__scopeMenu),s=f.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=i,l={__scopeMenu:e.__scopeMenu},d=f.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return f.useEffect(()=>d,[d]),f.useEffect(()=>{const u=a.current;return()=>{window.clearTimeout(u),c(null)}},[a,c]),p.jsx(Hr,{asChild:!0,...l,children:p.jsx(ua,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ca(n.open),...e,ref:un(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:W(e.onPointerMove,Vt(u=>{i.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:W(e.onPointerLeave,Vt(u=>{d();const g=n.content?.getBoundingClientRect();if(g){const m=n.content?.dataset.side,w=m==="right",v=w?-5:5,b=g[w?"left":"right"],x=g[w?"right":"left"];i.onPointerGraceIntentChange({area:[{x:u.clientX+v,y:u.clientY},{x:b,y:g.top},{x,y:g.top},{x,y:g.bottom},{x:b,y:g.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(u),u.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:W(e.onKeyDown,u=>{const g=i.searchRef.current!=="";e.disabled||g&&u.key===" "||Ip[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});xa.displayName=$t;var Sa="MenuSubContent",Ea=f.forwardRef((e,t)=>{const n=ia(xe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=rt(xe,e.__scopeMenu),s=Ft(xe,e.__scopeMenu),a=ba(Sa,e.__scopeMenu),c=f.useRef(null),l=oe(t,c);return p.jsx(Nt.Provider,{scope:e.__scopeMenu,children:p.jsx(Dt,{present:r||i.open,children:p.jsx(Nt.Slot,{scope:e.__scopeMenu,children:p.jsx(Ur,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{s.isUsingKeyboardRef.current&&c.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:W(e.onFocusOutside,d=>{d.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:W(e.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:W(e.onKeyDown,d=>{const u=d.currentTarget.contains(d.target),g=Dp[s.dir].includes(d.key);u&&g&&(i.onOpenChange(!1),a.trigger?.focus(),d.preventDefault())})})})})})});Ea.displayName=Sa;function Ca(e){return e?"open":"closed"}function jn(e){return e==="indeterminate"}function Yr(e){return jn(e)?"indeterminate":e?"checked":"unchecked"}function eh(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function th(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function nh(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=th(e,Math.max(i,0));o.length===1&&(s=s.filter(l=>l!==n));const c=s.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function rh(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],l=a.x,d=a.y,u=c.x,g=c.y;d>r!=g>r&&n<(u-l)*(r-d)/(g-d)+l&&(o=!o)}return o}function oh(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return rh(n,t)}function Vt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ih=oa,sh=Hr,ah=sa,ch=aa,lh=zr,uh=ca,dh=Ln,fh=da,ph=pa,hh=ma,mh=va,gh=ya,vh=wa,yh=xa,wh=Ea,Nn="DropdownMenu",[bh,Vm]=ht(Nn,[na]),de=na(),[xh,Pa]=bh(Nn),Ra=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,c=de(t),l=f.useRef(null),[d,u]=cr({prop:o,defaultProp:i??!1,onChange:s,caller:Nn});return p.jsx(xh,{scope:t,triggerId:wr(),triggerRef:l,contentId:wr(),open:d,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(g=>!g),[u]),modal:a,children:p.jsx(ih,{...c,open:d,onOpenChange:u,dir:r,modal:a,children:n})})};Ra.displayName=Nn;var Ta="DropdownMenuTrigger",Ma=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Pa(Ta,n),s=de(n);return p.jsx(sh,{asChild:!0,...s,children:p.jsx(ie.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:un(t,i.triggerRef),onPointerDown:W(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:W(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Ma.displayName=Ta;var Sh="DropdownMenuPortal",Aa=e=>{const{__scopeDropdownMenu:t,...n}=e,r=de(t);return p.jsx(ah,{...r,...n})};Aa.displayName=Sh;var ka="DropdownMenuContent",_a=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pa(ka,n),i=de(n),s=f.useRef(!1);return p.jsx(ch,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:W(e.onCloseAutoFocus,a=>{s.current||o.triggerRef.current?.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:W(e.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,d=c.button===2||l;(!o.modal||d)&&(s.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)"}})});_a.displayName=ka;var Eh="DropdownMenuGroup",Ch=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(lh,{...o,...r,ref:t})});Ch.displayName=Eh;var Ph="DropdownMenuLabel",Rh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(uh,{...o,...r,ref:t})});Rh.displayName=Ph;var Th="DropdownMenuItem",Oa=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(dh,{...o,...r,ref:t})});Oa.displayName=Th;var Mh="DropdownMenuCheckboxItem",Ah=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(fh,{...o,...r,ref:t})});Ah.displayName=Mh;var kh="DropdownMenuRadioGroup",_h=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(ph,{...o,...r,ref:t})});_h.displayName=kh;var Oh="DropdownMenuRadioItem",Ih=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(hh,{...o,...r,ref:t})});Ih.displayName=Oh;var Dh="DropdownMenuItemIndicator",Lh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(mh,{...o,...r,ref:t})});Lh.displayName=Dh;var jh="DropdownMenuSeparator",Nh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(gh,{...o,...r,ref:t})});Nh.displayName=jh;var Fh="DropdownMenuArrow",$h=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(vh,{...o,...r,ref:t})});$h.displayName=Fh;var Vh="DropdownMenuSubTrigger",Hh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(yh,{...o,...r,ref:t})});Hh.displayName=Vh;var Bh="DropdownMenuSubContent",Wh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(wh,{...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)"}})});Wh.displayName=Bh;var Uh=Ra,zh=Ma,Kh=Aa,Yh=_a,Gh=Oa;const Xh=Uh,qh=zh,Zh=Kh,Ia=R.forwardRef(({sideOffset:e=4,...t},n)=>p.jsx(Jh,{ref:n,sideOffset:e,onCloseAutoFocus:r=>{r.preventDefault()},...t}));Ia.displayName="PlayerDropdownMenuContent";const Da=R.forwardRef((e,t)=>p.jsx(Qh,{ref:t,...e}));Da.displayName="PlayerDropdownMenuItem";const Jh=Y(Yh).withConfig({shouldForwardProp:e=>e!=="ref"})`
|
|
315
|
+
`;function Un(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.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 Nn(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.jsx("path",{d:"M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z"})})}const Bn=re.Root,Wn=re.Trigger,zn=re.Portal,lt=c.forwardRef(({sideOffset:e=4,...n},r)=>o.jsx(Yn,{ref:r,sideOffset:e,onCloseAutoFocus:i=>{i.preventDefault()},...n}));lt.displayName="PlayerDropdownMenuContent";const ct=c.forwardRef((e,n)=>o.jsx(Zn,{ref:n,...e}));ct.displayName="PlayerDropdownMenuItem";const Yn=w(re.Content).withConfig({shouldForwardProp:e=>e!=="ref"})`
|
|
415
316
|
padding: 0.25rem;
|
|
416
317
|
min-width: 8rem;
|
|
417
318
|
max-height: 12rem;
|
|
@@ -482,7 +383,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
482
383
|
transform: translateX(0);
|
|
483
384
|
}
|
|
484
385
|
}
|
|
485
|
-
`,
|
|
386
|
+
`,Zn=w(re.Item)`
|
|
486
387
|
position: relative;
|
|
487
388
|
display: flex;
|
|
488
389
|
align-items: center;
|
|
@@ -519,11 +420,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
519
420
|
color: rgba(255, 255, 255, 0.5);
|
|
520
421
|
pointer-events: none;
|
|
521
422
|
}
|
|
522
|
-
`,
|
|
423
|
+
`,ut="settings";function dt(){const[e,n]=c.useState(!1),r=u(a=>a.containerRef),i=u(a=>a.addIdleLock),l=u(a=>a.removeIdleLock),m=u(a=>a.levels),p=u(a=>a.setLevel),h=c.useCallback(a=>{n(a),a?i(ut):l(ut)},[i,l]);return o.jsxs(Bn,{open:e,onOpenChange:h,children:[o.jsx(Wn,{asChild:!0,children:o.jsx(J,{children:o.jsx(Nn,{})})}),o.jsx(zn,{container:r.current,children:o.jsx(lt,{side:"top",align:"end",children:m?.map(a=>o.jsxs(ct,{onClick:()=>p(a.value),children:[a.label,a.selected&&o.jsx(Un,{})]},a.sid))})})]})}function Jn(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.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 Xn(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.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 Kn(){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:o.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 ft="volume";function ht(){u(h=>h.containerRef);const e=u(h=>h.setVolume),n=u(h=>h.volume),r=u(h=>h.addIdleLock),i=u(h=>h.removeIdleLock),l=h=>{e(h[0]),r(ft)},m=()=>{i(ft)},p=()=>e(n?0:100);return o.jsxs(Gn,{children:[o.jsx(J,{onClick:p,className:"shrink-0",children:n?n>50?o.jsx(Jn,{}):o.jsx(Xn,{}):o.jsx(Kn,{})}),o.jsx(mt,{children:o.jsx(fe,{value:[n],onValueChange:l,onValueCommit:m})})]})}const mt=w.div`
|
|
523
424
|
width: 0;
|
|
524
425
|
opacity: 0;
|
|
525
426
|
transition: all 0.2s ease-in-out;
|
|
526
|
-
`,
|
|
427
|
+
`,Gn=w.div`
|
|
527
428
|
display: flex;
|
|
528
429
|
align-items: center;
|
|
529
430
|
gap: 0.25rem;
|
|
@@ -534,11 +435,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children
|
|
|
534
435
|
&:hover {
|
|
535
436
|
width: 6rem;
|
|
536
437
|
|
|
537
|
-
${
|
|
438
|
+
${mt} {
|
|
538
439
|
width: 100%;
|
|
539
440
|
opacity: 1;
|
|
540
441
|
}
|
|
541
442
|
}
|
|
542
443
|
}
|
|
543
|
-
`;function
|
|
444
|
+
`;function Qn({url:e,startDate:n,endDate:r,messages:i}){return o.jsx(jn,{startDate:new Date(n),endDate:new Date(r),children:o.jsx(qn,{url:e,messages:i})})}function qn({url:e,messages:n}){const r=u(i=>i.containerRef);return o.jsx(qe,{ref:r,children:o.jsxs(Zt,{eventFinishedMessage:n?.eventFinished,eventNotStartedMessage:n?.eventNotStarted,eventStartingSoonMessage:n?.eventStartingSoon,children:[o.jsx(Ln,{url:e}),o.jsx(at,{}),o.jsxs(st,{children:[o.jsx(gn,{}),o.jsx($e,{children:o.jsxs(et,{children:[o.jsx(Rn,{}),o.jsxs(tt,{children:[o.jsxs(rt,{children:[o.jsx(pn,{}),o.jsx(ht,{}),o.jsx(Pn,{})]}),o.jsxs(ot,{children:[o.jsx(qt,{message:n?.live}),o.jsx(dt,{}),o.jsx(it,{})]})]})]})})]})]})})}function $n(){const e=u(l=>l.isPlaying),n=u(l=>l.pause),r=u(l=>l.play),i=()=>{e?n():r()};return o.jsx(J,{onClick:i,children:e?o.jsx(De,{}):o.jsx(Me,{})})}function er(){const e=u(l=>l.isPlaying),n=u(l=>l.pause),r=u(l=>l.play),i=()=>{e?n():r()};return o.jsx(He,{onClick:i})}const pt="vod-player-progress-bar";function tr(){const e=c.useRef(null),n=c.useRef(null),[r,i]=c.useState(!1),[l,m]=c.useState(-1),[p,h]=c.useState(-1),a=u(g=>g.currentTime),f=u(g=>g.duration),v=u(g=>g.seek),x=u(g=>g.addIdleLock),L=u(g=>g.removeIdleLock),R=parseFloat((f?(p!==-1?p:a)/f*100:0).toFixed(1)),M=g=>{h(f*(g[0]/100)),x(pt)},_=()=>{p!==-1&&(v(p),h(-1),L(pt))},U=()=>i(!0),F=()=>i(!1),P=c.useCallback(g=>{const W=e.current,z=n.current;if(W&&z){const X=he(W),ee=he(z),K=(g.pageX||g.clientX)-X.left,G=K/X.width;if(G<0)return;let C=K-ee.width/2;C<0&&(C=0),C>X.width-ee.width&&(C=-1),z.style.left=C>-1?`${C}px`:"auto",z.style.right=C>-1?"auto":"0px",m(G*f)}U()},[f]);return o.jsxs(Ae,{children:[o.jsx(fe,{ref:e,value:[R],onPointerLeave:F,onPointerDown:F,onPointerMove:P,onValueChange:M,onValueCommit:_,step:.1}),o.jsx(Ue,{ref:n,$isVisible:r,children:o.jsx(Ne,{children:$(l)})})]})}function nr(){const e=u(r=>r.currentTime),n=u(r=>r.duration);return o.jsxs(Ze,{children:[o.jsx(Xe,{children:$(e)}),o.jsx(Ge,{}),o.jsx(Ke,{children:$(n)})]})}const rr=60,or=95;function ir({storageKey:e}){const n=u(v=>v.currentTime),r=u(v=>v.duration),i=u(v=>v.isPlaying),l=u(v=>v.setStartTime),m=c.useRef(!1),p=c.useCallback(()=>{window.localStorage.setItem(e,JSON.stringify({currentTime:n,duration:r}))},[n,r,e]),h=c.useCallback(()=>{const v=window.localStorage.getItem(e);if(v){const x=JSON.parse(v);return{startTime:x.currentTime,progress:x.currentTime/x.duration*100}}return{startTime:null,progress:null}},[e]),a=c.useCallback(()=>{n<rr||p()},[n,p]),f=c.useCallback(()=>{if(m.current)return;const{progress:v,startTime:x}=h();x&&v&&v<or&&(l(x),m.current=!0)},[h,l]);return de(()=>a(),i?1e3:null),c.useEffect(()=>{f()},[f]),null}function sr({url:e,watchHistory:n}){return o.jsxs(Ye,{children:[o.jsx(ar,{url:e}),n?.enabled&&o.jsx(ir,{storageKey:n.storageKey})]})}function ar({url:e}){const n=u(r=>r.containerRef);return o.jsxs(qe,{ref:n,children:[o.jsx(Qe,{url:e,isLive:!1}),o.jsx(at,{}),o.jsxs(st,{children:[o.jsx(er,{}),o.jsx($e,{children:o.jsxs(et,{children:[o.jsx(tr,{}),o.jsxs(tt,{children:[o.jsxs(rt,{children:[o.jsx($n,{}),o.jsx(ht,{}),o.jsx(nr,{})]}),o.jsxs(ot,{children:[o.jsx(dt,{}),o.jsx(it,{})]})]})]})})]})]})}O.LivePlayer=Qn,O.VodPlayer=sr,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
|
|
544
445
|
//# sourceMappingURL=react-video-player.umd.js.map
|