@halibegic/react-video-player 0.0.0 → 0.0.2
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.
- package/dist/app.d.ts +2 -0
- package/dist/components/player/live-player/live-player-playback.d.ts +2 -0
- package/dist/components/player/ui/player-button.d.ts +4 -0
- package/dist/components/player/ui/player-fullscreen.d.ts +1 -2
- package/dist/components/player/ui/player-loading.d.ts +1 -1
- package/dist/components/player/ui/player-slider.d.ts +6 -0
- package/dist/components/vod-player/vod-player-playback.d.ts +2 -0
- package/dist/components/vod-player/vod-player-progress.d.ts +2 -0
- package/dist/index-DXKCbM7O.js +2003 -0
- package/dist/index-DXKCbM7O.js.map +1 -0
- package/dist/{player-dash-tech-DDeyebd7.js → player-dash-tech-D7KQCWFx.js} +2 -2
- package/dist/{player-dash-tech-DDeyebd7.js.map → player-dash-tech-D7KQCWFx.js.map} +1 -1
- package/dist/{player-hls-tech-a87iikPB.js → player-hls-tech-sXKjWi4D.js} +2 -2
- package/dist/{player-hls-tech-a87iikPB.js.map → player-hls-tech-sXKjWi4D.js.map} +1 -1
- package/dist/react-video-player.es.js +1 -1
- package/dist/react-video-player.umd.js +251 -39
- package/dist/react-video-player.umd.js.map +1 -1
- package/dist/utils/date-time.d.ts +2 -1
- package/package.json +6 -11
- package/dist/components/ui/button.d.ts +0 -12
- package/dist/components/ui/slider.d.ts +0 -4
- package/dist/components/ui/spinner.d.ts +0 -3
- package/dist/index-UZF7kuPZ.js +0 -3642
- package/dist/index-UZF7kuPZ.js.map +0 -1
- package/dist/utils/cn.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(U,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("lucide-react"),require("hls.js"),require("dashjs")):typeof define=="function"&&define.amd?define(["exports","react","lucide-react","hls.js","dashjs"],p):(U=typeof globalThis<"u"?globalThis:U||self,p(U.ReactVideoPlayer={},U.React,U["lucide-react"],U.Hls,U.dashjs))})(this,(function(U,p,ae,ve,xn){"use strict";function kn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Pn=kn(xn);var Re={exports:{}},be={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var bt;function Rn(){if(bt)return be;bt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return be.Fragment=t,be.jsx=n,be.jsxs=n,be}var Se={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,45 +14,257 @@
|
|
|
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
|
|
17
|
+
*/var St;function Tn(){return St||(St=1,process.env.NODE_ENV!=="production"&&(function(){function e(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===vt?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case R:return"Fragment";case O:return"Profiler";case F:return"StrictMode";case f:return"Suspense";case E:return"SuspenseList";case K:return"Activity"}if(typeof i=="object")switch(typeof i.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),i.$$typeof){case j:return"Portal";case P:return(i.displayName||"Context")+".Provider";case A:return(i._context.displayName||"Context")+".Consumer";case T:var h=i.render;return i=i.displayName,i||(i=h.displayName||h.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case y:return h=i.displayName||null,h!==null?h:e(i.type)||"Memo";case W:h=i._payload,i=i._init;try{return e(i(h))}catch{}}return null}function t(i){return""+i}function n(i){try{t(i);var h=!1}catch{h=!0}if(h){h=console;var w=h.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||"Object";return w.call(h,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(i)}}function r(i){if(i===R)return"<>";if(typeof i=="object"&&i!==null&&i.$$typeof===W)return"<...>";try{var h=e(i);return h?"<"+h+">":"<...>"}catch{return"<...>"}}function o(){var i=xe.A;return i===null?null:i.getOwner()}function s(){return Error("react-stack-top-frame")}function a(i){if(We.call(i,"key")){var h=Object.getOwnPropertyDescriptor(i,"key").get;if(h&&h.isReactWarning)return!1}return i.key!==void 0}function c(i,h){function w(){Ge||(Ge=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",h))}w.isReactWarning=!0,Object.defineProperty(i,"key",{get:w,configurable:!0})}function u(){var i=e(this.type);return Xe[i]||(Xe[i]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),i=this.props.ref,i!==void 0?i:null}function l(i,h,w,D,Y,$,X,Z){return w=$.ref,i={$$typeof:S,type:i,key:h,props:$,_owner:Y},(w!==void 0?w:null)!==null?Object.defineProperty(i,"ref",{enumerable:!1,get:u}):Object.defineProperty(i,"ref",{enumerable:!1,value:null}),i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(i,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(i,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(i,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i}function g(i,h,w,D,Y,$,X,Z){var N=h.children;if(N!==void 0)if(D)if(He(N)){for(D=0;D<N.length;D++)m(N[D]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(N);if(We.call(h,"key")){N=e(i);var z=Object.keys(h).filter(function(ye){return ye!=="key"});D=0<z.length?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}",q[N+D]||(z=0<z.length?"{"+z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,k,_,V,_),ce[_+k]=!0)}if(_=null,S!==void 0&&(r(S),_=""+S),i(b)&&(r(b.key),_=""+b.key),"key"in b){S={};for(var H in b)H!=="key"&&(S[H]=b[H])}else S=b;return _&&d(S,typeof s=="function"?s.displayName||s.name||"Unknown":s),m(s,_,z,T,o(),S,oe,C)}function w(s){typeof s=="object"&&s!==null&&s.$$typeof===L&&s._store&&(s._store.validated=1)}var R=y,L=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),$=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),ne=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,be=Array.isArray,Q=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(s){return s()}};var B,O={},W=R.react_stack_bottom_frame.bind(R,a)(),p=Q(n(a)),ce={};ie.Fragment=P,ie.jsx=function(s,b,S,k,T){var z=1e4>ne.recentlyCreatedOwnerStacks++;return f(s,b,S,!1,k,T,z?Error("react-stack-top-frame"):W,z?Q(n(s)):p)},ie.jsxs=function(s,b,S,k,T){var z=1e4>ne.recentlyCreatedOwnerStacks++;return f(s,b,S,!0,k,T,z?Error("react-stack-top-frame"):W,z?Q(n(s)):p)}})()),ie}var je;function dr(){return je||(je=1,process.env.NODE_ENV==="production"?ue.exports=lr():ue.exports=cr()),ue.exports}var h=dr();const _e=e=>{let t;const r=new Set,n=(m,f)=>{const w=typeof m=="function"?m(t):m;if(!Object.is(w,t)){const R=t;t=f??(typeof w!="object"||w===null)?w:Object.assign({},t,w),r.forEach(L=>L(t,R))}},o=()=>t,d={setState:n,getState:o,getInitialState:()=>u,subscribe:m=>(r.add(m),()=>r.delete(m))},u=t=e(n,o,d);return d},ur=(e=>e?_e(e):_e),fr=e=>e;function Ae(e,t=fr){const r=y.useSyncExternalStore(e.subscribe,y.useCallback(()=>t(e.getState()),[e,t]),y.useCallback(()=>t(e.getInitialState()),[e,t]));return y.useDebugValue(r),r}const ze=e=>{const t=ur(e),r=n=>Ae(t,n);return Object.assign(r,t),r},mr=(e=>e?ze(e):ze);function pr(e,t,r){const n={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(n[t]/n[r])}function gr(e){return pr(e,"milliseconds","seconds")}function br(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const Ne=br(/iPhone|iPad|iPod/i);function hr(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function yr(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function vr(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function xr(e,t){return e.addEventListener("fullscreenchange",t),e.addEventListener("webkitfullscreenchange",t),e.addEventListener("mozfullscreenchange",t),e.addEventListener("MSFullscreenChange",t),()=>{e.removeEventListener("fullscreenchange",t),e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("mozfullscreenchange",t),e.removeEventListener("MSFullscreenChange",t)}}const kr=(e,t)=>({currentTime:0,duration:0,isEnded:!1,isLoading:!1,isLoop:!1,isMetaLoaded:!1,isPlaying:!1,isReady:!1,isStarted:!1,pauseTime:0,seekTime:-1,startTime:-1,volume:100,destroy:()=>{},handleDurationChange:()=>{const r=t().techRef.current;r&&e({duration:r.duration})},handleEnd:()=>{t().techRef.current&&e({isEnded:!0,isLoading:!1,isMetaLoaded:!1,isPlaying:!1})},handleLoadedMetadata:()=>{const r=t().techRef.current;r&&(r.loop=t().isLoop,r.volume=r.muted?0:1,t().startTime!==-1&&(r.currentTime=t().startTime),e({currentTime:t().startTime!==-1?t().startTime:r.currentTime,duration:r.duration,startTime:-1,isMetaLoaded:!0,volume:r.muted?0:100}))},handleLoadStart:()=>{const r=t().techRef.current;r&&(e({isReady:!0}),r.play().then(()=>{e({isEnded:!1,isLoading:!1,isPlaying:!0,isStarted:!0,pauseTime:0})}).catch(n=>e(()=>(console.info("Player failed to autoplay",n),{isStarted:!1,isEnded:!1,isLoading:!1,isPlaying:!1}))))},handlePause:()=>e({isPlaying:!1,pauseTime:Date.now()}),handlePlay:()=>e({isPlaying:!0,pauseTime:0}),handlePlaying:()=>e({isLoading:!1}),handleSeeked:()=>e({isLoading:!1}),handleSeeking:()=>e({isLoading:!0}),handleTimeUpdate:()=>{const r=t().techRef.current;r&&e({currentTime:r.currentTime})},handleWaiting:()=>e({isLoading:!0}),pause:()=>{const r=t().techRef.current;r&&(r.pause(),e({isEnded:!1,isPlaying:!1,pauseTime:Date.now()}))},pauseTimeDiff:()=>gr(Date.now()-t().pauseTime),play:()=>{const r=t().techRef.current;r&&(r.play(),e({isEnded:!1,isPlaying:!0,isStarted:!0,pauseTime:0}))},seek:r=>{const n=t().techRef.current;n&&(n.currentTime=r,(n.paused||n.ended)&&n.play(),e({seekTime:-1,currentTime:r,isStarted:!0,isEnded:!1,isPlaying:!0}))},setIsLoading:r=>e({isLoading:r}),setIsLoop:r=>{const n=t().techRef.current;n&&(n.loop=r,e({isLoop:r}))},setStartTime:r=>e({startTime:r}),setVolume:r=>{const n=t().techRef.current;n&&(n.muted=r===0,n.volume=r/100,e({volume:r}))},stop:()=>{t().techRef.current&&e({isPlaying:!1,isLoading:!1})}}),wr=e=>({idleLocks:new Set,addIdleLock:t=>e(r=>({idleLocks:new Set(r.idleLocks).add(t)})),removeIdleLock:t=>e(r=>{const n=new Set(r.idleLocks);return n.delete(t),{idleLocks:n}})}),Sr=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{vr(document),e({isFullscreen:!1})},requestFullscreen:()=>{const r=t().techRef.current,n=t().containerRef.current;if(!r||!n)return;const o=Ne?r:n;o&&yr(o),e({isFullscreen:!0})},setIsFullscreen:r=>e({isFullscreen:r}),setIsFullscreenReady:r=>e({isFullscreenReady:r})}),Er=e=>({url:"",setURL:t=>e({url:t})}),Pr=e=>()=>({...e}),Tr=(e,t)=>mr()((...r)=>({...kr(...r),...wr(...r),...Sr(...r),...Er(...r),...Pr({techRef:e,containerRef:t})(...r)})),Le=y.createContext(null),Cr=({children:e})=>{const t=y.useRef(null),r=y.useRef(null),n=y.useRef(null);return t.current||(t.current=Tr(r,n)),h.jsx(Le.Provider,{value:t.current,children:e})},E=e=>{const t=y.useContext(Le);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Ae(t,e)};function Me({children:e}){return h.jsx(Cr,{children:e})}const fe={hls:"hls",dash:"dash"};function Rr(e){return e&&/\.m3u8/i.test(e)?fe.hls:fe.dash}const jr=y.lazy(()=>Promise.resolve().then(()=>Ot)),_r=y.lazy(()=>Promise.resolve().then(()=>It));function Oe({url:e,isLive:t,isMuted:r=!1}){const n=E(x=>x.handleDurationChange),o=E(x=>x.handleEnd),a=E(x=>x.handleLoadedMetadata),i=E(x=>x.handleLoadStart),d=E(x=>x.handlePause),u=E(x=>x.handlePlay),m=E(x=>x.handlePlaying),f=E(x=>x.handleSeeked),w=E(x=>x.handleSeeking),R=E(x=>x.handleTimeUpdate),L=E(x=>x.handleWaiting),A=E(x=>x.techRef),P=y.useRef(null),M=()=>t?{}:{onDurationChange:n,onSeeked:f,onSeeking:w,onTimeUpdate:I},I=()=>{(!P.current||Date.now()-P.current>=1e3)&&(R(),P.current=Date.now())},$=(()=>{switch(Rr(e)){case fe.hls:return jr;case fe.dash:return _r}return null})();if(!$)return null;const G=M();return h.jsxs(h.Fragment,{children:[h.jsx(y.Suspense,{fallback:null,children:h.jsx($,{isLive:t,url:e})}),h.jsx("video",{className:"relative size-full md:pointer-events-none",ref:A,playsInline:!0,autoPlay:!0,controls:!1,muted:r,preload:"auto",crossOrigin:"anonymous",onEnded:o,onLoadedMetadata:a,onLoadStart:i,onPause:d,onPlay:u,onPlaying:m,onWaiting:L,tabIndex:-1,...G})]})}function Ie(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ar(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Ie(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Ie(e[o],null)}}}}function zr(e){const t=Lr(e),r=N.forwardRef((n,o)=>{const{children:a,...i}=n,d=N.Children.toArray(a),u=d.find(Or);if(u){const m=u.props.children,f=d.map(w=>w===u?N.Children.count(m)>1?N.Children.only(null):N.isValidElement(m)?m.props.children:null:w);return h.jsx(t,{...i,ref:o,children:N.isValidElement(m)?N.cloneElement(m,void 0,f):null})}return h.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Nr=zr("Slot");function Lr(e){const t=N.forwardRef((r,n)=>{const{children:o,...a}=r;if(N.isValidElement(o)){const i=Fr(o),d=Ir(a,o.props);return o.type!==N.Fragment&&(d.ref=n?Ar(n,i):i),N.cloneElement(o,d)}return N.Children.count(o)>1?N.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mr=Symbol("radix.slottable");function Or(e){return N.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mr}function Ir(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...d)=>{const u=a(...d);return o(...d),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Fr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Fe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Fe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ve(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Fe(e))&&(n&&(n+=" "),n+=t);return n}const De=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$e=Ve,Vr=(e,t)=>r=>{var n;if(t?.variants==null)return $e(e,r?.class,r?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(m=>{const f=r?.[m],w=a?.[m];if(f===null)return null;const R=De(f)||De(w);return o[m][R]}),d=r&&Object.entries(r).reduce((m,f)=>{let[w,R]=f;return R===void 0||(m[w]=R),m},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((m,f)=>{let{class:w,className:R,...L}=f;return Object.entries(L).every(A=>{let[P,M]=A;return Array.isArray(M)?M.includes({...a,...d}[P]):{...a,...d}[P]===M})?[...m,w,R]:m},[]);return $e(e,i,u,r?.class,r?.className)},ye="-",Dr=e=>{const t=Gr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const d=i.split(ye);return d[0]===""&&d.length!==1&&d.shift(),Ge(d,t)||$r(i)},getConflictingClassGroupIds:(i,d)=>{const u=r[i]||[];return d&&n[i]?[...u,...n[i]]:u}}},Ge=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Ge(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(ye);return t.validators.find(({validator:i})=>i(a))?.classGroupId},We=/^\[(.+)\]$/,$r=e=>{if(We.test(e)){const t=We.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Gr=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)ve(r[o],n,o,t);return n},ve=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Ue(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Wr(o)){ve(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{ve(i,Ue(t,a),r,n)})})},Ue=(e,t)=>{let r=e;return t.split(ye).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Wr=e=>e.isThemeGetter,Ur=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},xe="!",ke=":",qr=ke.length,Br=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,d=0,u=0,m;for(let A=0;A<o.length;A++){let P=o[A];if(i===0&&d===0){if(P===ke){a.push(o.slice(u,A)),u=A+qr;continue}if(P==="/"){m=A;continue}}P==="["?i++:P==="]"?i--:P==="("?d++:P===")"&&d--}const f=a.length===0?o:o.substring(u),w=Yr(f),R=w!==f,L=m&&m>u?m-u:void 0;return{modifiers:a,hasImportantModifier:R,baseClassName:w,maybePostfixModifierPosition:L}};if(t){const o=t+ke,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Yr=e=>e.endsWith(xe)?e.substring(0,e.length-1):e.startsWith(xe)?e.substring(1):e,Hr=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},Jr=e=>({cache:Ur(e.cacheSize),parseClassName:Br(e),sortModifiers:Hr(e),...Dr(e)}),Xr=/\s+/,Zr=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],d=e.trim().split(Xr);let u="";for(let m=d.length-1;m>=0;m-=1){const f=d[m],{isExternal:w,modifiers:R,hasImportantModifier:L,baseClassName:A,maybePostfixModifierPosition:P}=r(f);if(w){u=f+(u.length>0?" "+u:u);continue}let M=!!P,I=n(M?A.substring(0,P):A);if(!I){if(!M){u=f+(u.length>0?" "+u:u);continue}if(I=n(A),!I){u=f+(u.length>0?" "+u:u);continue}M=!1}const X=a(R).join(":"),$=L?X+xe:X,G=$+I;if(i.includes(G))continue;i.push(G);const x=o(I,M);for(let q=0;q<x.length;++q){const Z=x[q];i.push($+Z)}u=f+(u.length>0?" "+u:u)}return u};function Kr(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=qe(t))&&(n&&(n+=" "),n+=r);return n}const qe=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=qe(e[n]))&&(r&&(r+=" "),r+=t);return r};function Qr(e,...t){let r,n,o,a=i;function i(u){const m=t.reduce((f,w)=>w(f),e());return r=Jr(m),n=r.cache.get,o=r.cache.set,a=d,d(u)}function d(u){const m=n(u);if(m)return m;const f=Zr(u,r);return o(u,f),f}return function(){return a(Kr.apply(null,arguments))}}const j=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Be=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ye=/^\((?:(\w[\w-]*):)?(.+)\)$/i,et=/^\d+\/\d+$/,rt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ot=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,st=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ee=e=>et.test(e),v=e=>!!e&&!Number.isNaN(Number(e)),Y=e=>!!e&&Number.isInteger(Number(e)),we=e=>e.endsWith("%")&&v(e.slice(0,-1)),U=e=>rt.test(e),at=()=>!0,it=e=>tt.test(e)&&!nt.test(e),He=()=>!1,lt=e=>ot.test(e),ct=e=>st.test(e),dt=e=>!l(e)&&!c(e),ut=e=>re(e,Qe,He),l=e=>Be.test(e),J=e=>re(e,er,it),Se=e=>re(e,bt,v),Je=e=>re(e,Ze,He),ft=e=>re(e,Ke,ct),me=e=>re(e,rr,lt),c=e=>Ye.test(e),le=e=>te(e,er),mt=e=>te(e,ht),Xe=e=>te(e,Ze),pt=e=>te(e,Qe),gt=e=>te(e,Ke),pe=e=>te(e,rr,!0),re=(e,t,r)=>{const n=Be.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},te=(e,t,r=!1)=>{const n=Ye.exec(e);return n?n[1]?t(n[1]):r:!1},Ze=e=>e==="position"||e==="percentage",Ke=e=>e==="image"||e==="url",Qe=e=>e==="length"||e==="size"||e==="bg-size",er=e=>e==="length",bt=e=>e==="number",ht=e=>e==="family-name",rr=e=>e==="shadow",yt=Qr(()=>{const e=j("color"),t=j("font"),r=j("text"),n=j("font-weight"),o=j("tracking"),a=j("leading"),i=j("breakpoint"),d=j("container"),u=j("spacing"),m=j("radius"),f=j("shadow"),w=j("inset-shadow"),R=j("text-shadow"),L=j("drop-shadow"),A=j("blur"),P=j("perspective"),M=j("aspect"),I=j("ease"),X=j("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...G(),c,l],q=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],g=()=>[c,l,u],F=()=>[ee,"full","auto",...g()],ge=()=>[Y,"none","subgrid",c,l],ne=()=>["auto",{span:["full",Y,c,l]},Y,c,l],K=()=>[Y,"auto",c,l],be=()=>["auto","min","max","fr",c,l],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...g()],W=()=>[ee,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],p=()=>[e,c,l],ce=()=>[...G(),Xe,Je,{position:[c,l]}],s=()=>["no-repeat",{repeat:["","x","y","space","round"]}],b=()=>["auto","cover","contain",pt,ut,{size:[c,l]}],S=()=>[we,le,J],k=()=>["","none","full",m,c,l],T=()=>["",v,le,J],z=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[v,we,Xe,Je],_=()=>["","none",A,c,l],V=()=>["none",v,c,l],H=()=>["none",v,c,l],de=()=>[v,c,l],he=()=>[ee,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[at],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[dt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",v],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ee,l,c,M]}],container:["container"],columns:[{columns:[v,l,c,d]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Y,"auto",c,l]}],basis:[{basis:[ee,"full","auto",d,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,ee,"auto","initial","none",l]}],grow:[{grow:["",v,c,l]}],shrink:[{shrink:["",v,c,l]}],order:[{order:[Y,"first","last","none",c,l]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":be()}],"auto-rows":[{"auto-rows":be()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[d,"screen",...W()]}],"min-w":[{"min-w":[d,"screen","none",...W()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[i]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",r,le,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,c,Se]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",we,l]}],"font-family":[{font:[mt,l,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,c,l]}],"line-clamp":[{"line-clamp":[v,"none",c,Se]}],leading:[{leading:[a,...g()]}],"list-image":[{"list-image":["none",c,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",c,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",c,J]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[v,"auto",c,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:s()}],"bg-size":[{bg:b()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Y,c,l],radial:["",c,l],conic:[Y,c,l]},gt,ft]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:S()}],"gradient-via-pos":[{via:S()}],"gradient-to-pos":[{to:S()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":T()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,c,l]}],"outline-w":[{outline:["",v,le,J]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",f,pe,me]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",w,pe,me]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[v,J]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",R,pe,me]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[v,c,l]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[c,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:s()}],"mask-size":[{mask:b()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",c,l]}],filter:[{filter:["","none",c,l]}],blur:[{blur:_()}],brightness:[{brightness:[v,c,l]}],contrast:[{contrast:[v,c,l]}],"drop-shadow":[{"drop-shadow":["","none",L,pe,me]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",v,c,l]}],"hue-rotate":[{"hue-rotate":[v,c,l]}],invert:[{invert:["",v,c,l]}],saturate:[{saturate:[v,c,l]}],sepia:[{sepia:["",v,c,l]}],"backdrop-filter":[{"backdrop-filter":["","none",c,l]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[v,c,l]}],"backdrop-contrast":[{"backdrop-contrast":[v,c,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,c,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,c,l]}],"backdrop-invert":[{"backdrop-invert":["",v,c,l]}],"backdrop-opacity":[{"backdrop-opacity":[v,c,l]}],"backdrop-saturate":[{"backdrop-saturate":[v,c,l]}],"backdrop-sepia":[{"backdrop-sepia":["",v,c,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",c,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",c,l]}],ease:[{ease:["linear","initial",I,c,l]}],delay:[{delay:[v,c,l]}],animate:[{animate:["none",X,c,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[P,c,l]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[c,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c,l]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[v,le,J,Se]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ee(...e){return yt(Ve(e))}const vt=Vr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function xt({className:e,variant:t,size:r,asChild:n=!1,...o}){const a=n?Nr:"button";return h.jsx(a,{"data-slot":"button",className:Ee(vt({variant:t,size:r,className:e})),...o})}/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
22
|
+
<%s key={someKey} {...props} />`,D,N,z,N),q[N+D]=!0)}if(N=null,w!==void 0&&(n(w),N=""+w),a(h)&&(n(h.key),N=""+h.key),"key"in h){w={};for(var ie in h)ie!=="key"&&(w[ie]=h[ie])}else w=h;return N&&c(w,typeof i=="function"?i.displayName||i.name||"Unknown":i),l(i,N,$,Y,o(),w,X,Z)}function m(i){typeof i=="object"&&i!==null&&i.$$typeof===S&&i._store&&(i._store.validated=1)}var b=p,S=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),vt=Symbol.for("react.client.reference"),xe=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,We=Object.prototype.hasOwnProperty,He=Array.isArray,ke=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(i){return i()}};var Ge,Xe={},ge=b.react_stack_bottom_frame.bind(b,s)(),Pe=ke(r(s)),q={};Se.Fragment=R,Se.jsx=function(i,h,w,D,Y){var $=1e4>xe.recentlyCreatedOwnerStacks++;return g(i,h,w,!1,D,Y,$?Error("react-stack-top-frame"):ge,$?ke(r(i)):Pe)},Se.jsxs=function(i,h,w,D,Y){var $=1e4>xe.recentlyCreatedOwnerStacks++;return g(i,h,w,!0,D,Y,$?Error("react-stack-top-frame"):ge,$?ke(r(i)):Pe)}})()),Se}var wt;function Cn(){return wt||(wt=1,process.env.NODE_ENV==="production"?Re.exports=Rn():Re.exports=Tn()),Re.exports}var d=Cn(),M=function(){return M=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},M.apply(this,arguments)};function ee(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function jn(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,An=jn(function(e){return _n.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_="-ms-",we="-moz-",k="-webkit-",Et="comm",Te="rule",Je="decl",On="@import",xt="@keyframes",Nn="@layer",kt=Math.abs,Ke=String.fromCharCode,Ze=Object.assign;function In(e,t){return L(e,0)^45?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function Pt(e){return e.trim()}function G(e,t){return(e=t.exec(e))?e[0]:e}function v(e,t,n){return e.replace(t,n)}function Ce(e,t,n){return e.indexOf(t,n)}function L(e,t){return e.charCodeAt(t)|0}function ce(e,t,n){return e.slice(t,n)}function H(e){return e.length}function Rt(e){return e.length}function Ee(e,t){return t.push(e),e}function Dn(e,t){return e.map(t).join("")}function Tt(e,t){return e.filter(function(n){return!G(n,t)})}var je=1,le=1,Ct=0,V=0,I=0,ue="";function _e(e,t,n,r,o,s,a,c){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:je,column:le,length:a,return:"",siblings:c}}function J(e,t){return Ze(_e("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function de(e){for(;e.root;)e=J(e.root,{children:[e]});Ee(e,e.siblings)}function Ln(){return I}function Fn(){return I=V>0?L(ue,--V):0,le--,I===10&&(le=1,je--),I}function B(){return I=V<Ct?L(ue,V++):0,le++,I===10&&(le=1,je++),I}function te(){return L(ue,V)}function Ae(){return V}function Oe(e,t){return ce(ue,e,t)}function Qe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $n(e){return je=le=1,Ct=H(ue=e),V=0,[]}function Mn(e){return ue="",e}function et(e){return Pt(Oe(V-1,tt(e===91?e+2:e===40?e+1:e)))}function zn(e){for(;(I=te())&&I<33;)B();return Qe(e)>2||Qe(I)>3?"":" "}function Vn(e,t){for(;--t&&B()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return Oe(e,Ae()+(t<6&&te()==32&&B()==32))}function tt(e){for(;B();)switch(I){case e:return V;case 34:case 39:e!==34&&e!==39&&tt(I);break;case 40:e===41&&tt(e);break;case 92:B();break}return V}function qn(e,t){for(;B()&&e+I!==57;)if(e+I===84&&te()===47)break;return"/*"+Oe(t,V-1)+"*"+Ke(e===47?e:B())}function Yn(e){for(;!Qe(te());)B();return Oe(e,V)}function Un(e){return Mn(Ne("",null,null,null,[""],e=$n(e),0,[0],e))}function Ne(e,t,n,r,o,s,a,c,u){for(var l=0,g=0,m=a,b=0,S=0,j=0,R=1,F=1,O=1,A=0,P="",T=o,f=s,E=r,y=P;F;)switch(j=A,A=B()){case 40:if(j!=108&&L(y,m-1)==58){Ce(y+=v(et(A),"&","&\f"),"&\f",kt(l?c[l-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:y+=et(A);break;case 9:case 10:case 13:case 32:y+=zn(j);break;case 92:y+=Vn(Ae()-1,7);continue;case 47:switch(te()){case 42:case 47:Ee(Bn(qn(B(),Ae()),t,n,u),u);break;default:y+="/"}break;case 123*R:c[l++]=H(y)*O;case 125*R:case 59:case 0:switch(A){case 0:case 125:F=0;case 59+g:O==-1&&(y=v(y,/\f/g,"")),S>0&&H(y)-m&&Ee(S>32?_t(y+";",r,n,m-1,u):_t(v(y," ","")+";",r,n,m-2,u),u);break;case 59:y+=";";default:if(Ee(E=jt(y,t,n,l,g,o,c,P,T=[],f=[],m,s),s),A===123)if(g===0)Ne(y,t,E,E,T,s,m,c,f);else switch(b===99&&L(y,3)===110?100:b){case 100:case 108:case 109:case 115:Ne(e,E,E,r&&Ee(jt(e,E,E,0,0,o,c,P,o,T=[],m,f),f),o,f,m,c,r?T:f);break;default:Ne(y,E,E,E,[""],f,0,c,f)}}l=g=S=0,R=O=1,P=y="",m=a;break;case 58:m=1+H(y),S=j;default:if(R<1){if(A==123)--R;else if(A==125&&R++==0&&Fn()==125)continue}switch(y+=Ke(A),A*R){case 38:O=g>0?1:(y+="\f",-1);break;case 44:c[l++]=(H(y)-1)*O,O=1;break;case 64:te()===45&&(y+=et(B())),b=te(),g=m=H(P=y+=Yn(Ae())),A++;break;case 45:j===45&&H(y)==2&&(R=0)}}return s}function jt(e,t,n,r,o,s,a,c,u,l,g,m){for(var b=o-1,S=o===0?s:[""],j=Rt(S),R=0,F=0,O=0;R<r;++R)for(var A=0,P=ce(e,b+1,b=kt(F=a[R])),T=e;A<j;++A)(T=Pt(F>0?S[A]+" "+P:v(P,/&\f/g,S[A])))&&(u[O++]=T);return _e(e,t,n,o===0?Te:c,u,l,g,m)}function Bn(e,t,n,r){return _e(e,t,n,Et,Ke(Ln()),ce(e,2,-2),0,r)}function _t(e,t,n,r,o){return _e(e,t,n,Je,ce(e,0,r),ce(e,r+1,-1),r,o)}function At(e,t,n){switch(In(e,t)){case 5103:return k+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+e+e;case 4789:return we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+we+e+_+e+e;case 5936:switch(L(e,t+11)){case 114:return k+e+_+v(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+_+v(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+_+v(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+_+e+e;case 6165:return k+e+_+"flex-"+e+e;case 5187:return k+e+v(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+_+"flex-$1$2")+e;case 5443:return k+e+_+"flex-item-"+v(e,/flex-|-self/g,"")+(G(e,/flex-|baseline/)?"":_+"grid-row-"+v(e,/flex-|-self/g,""))+e;case 4675:return k+e+_+"flex-line-pack"+v(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+_+v(e,"shrink","negative")+e;case 5292:return k+e+_+v(e,"basis","preferred-size")+e;case 6060:return k+"box-"+v(e,"-grow","")+k+e+_+v(e,"grow","positive")+e;case 4554:return k+v(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return v(v(v(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return v(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return v(v(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+_+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!G(e,/flex-|baseline/))return _+"grid-column-align"+ce(e,t)+e;break;case 2592:case 3360:return _+v(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,G(r.props,/grid-\w+-end/)})?~Ce(e+(n=n[t].value),"span",0)?e:_+v(e,"-start","")+e+_+"grid-row-span:"+(~Ce(n,"span",0)?G(n,/\d+/):+G(n,/\d+/)-+G(e,/\d+/))+";":_+v(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return G(r.props,/grid-\w+-start/)})?e:_+v(v(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return v(e,/(.+)-inline(.+)/,k+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(H(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return v(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+we+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ce(e,"stretch",0)?At(v(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return v(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,a,c,u,l){return _+o+":"+s+l+(a?_+o+"-span:"+(c?u:+u-+s)+l:"")+e});case 4949:if(L(e,t+6)===121)return v(e,":",":"+k)+e;break;case 6444:switch(L(e,L(e,14)===45?18:11)){case 120:return v(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(L(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+_+"$2box$3")+e;case 100:return v(e,":",":"+_)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return v(e,"scroll-","scroll-snap-")+e}return e}function Ie(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Wn(e,t,n,r){switch(e.type){case Nn:if(e.children.length)break;case On:case Je:return e.return=e.return||e.value;case Et:return"";case xt:return e.return=e.value+"{"+Ie(e.children,r)+"}";case Te:if(!H(e.value=e.props.join(",")))return""}return H(n=Ie(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hn(e){var t=Rt(e);return function(n,r,o,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,o,s)||"";return a}}function Gn(e){return function(t){t.root||(t=t.return)&&e(t)}}function Xn(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Je:e.return=At(e.value,e.length,n);return;case xt:return Ie([J(e,{value:v(e.value,"@","@"+k)})],r);case Te:if(e.length)return Dn(n=e.props,function(o){switch(G(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":de(J(e,{props:[v(o,/:(read-\w+)/,":"+we+"$1")]})),de(J(e,{props:[o]})),Ze(e,{props:Tt(n,r)});break;case"::placeholder":de(J(e,{props:[v(o,/:(plac\w+)/,":"+k+"input-$1")]})),de(J(e,{props:[v(o,/:(plac\w+)/,":"+we+"$1")]})),de(J(e,{props:[v(o,/:(plac\w+)/,_+"input-$1")]})),de(J(e,{props:[o]})),Ze(e,{props:Tt(n,r)});break}return""})}}var Jn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ne=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ot="active",Nt="data-styled-version",De="6.1.19",nt=`/*!sc*/
|
|
23
|
+
`,Le=typeof window<"u"&&typeof document<"u",Kn=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),It=/invalid hook call/i,Fe=new Set,Zn=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
24
|
+
`)+`You may see this warning because you've called styled inside another component.
|
|
25
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
26
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
27
|
+
`,o=console.error;try{var s=!0;console.error=function(a){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];It.test(a)?(s=!1,Fe.delete(r)):o.apply(void 0,ee([a],c,!1))},p.useRef(),s&&!Fe.has(r)&&(console.warn(r),Fe.add(r))}catch(a){It.test(a.message)&&Fe.delete(r)}finally{console.error=o}}},$e=Object.freeze([]),fe=Object.freeze({});function Qn(e,t,n){return n===void 0&&(n=fe),e.theme!==n.theme&&e.theme||t||n.theme}var rt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),er=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tr=/(^-|-$)/g;function Dt(e){return e.replace(er,"-").replace(tr,"")}var nr=/(a)(d)/gi,Me=52,Lt=function(e){return String.fromCharCode(e+(e>25?39:97))};function ot(e){var t,n="";for(t=Math.abs(e);t>Me;t=t/Me|0)n=Lt(t%Me)+n;return(Lt(t%Me)+n).replace(nr,"$1-$2")}var st,Ft=5381,re=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$t=function(e){return re(Ft,e)};function Mt(e){return ot($t(e)>>>0)}function zt(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function it(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Vt=typeof Symbol=="function"&&Symbol.for,qt=Vt?Symbol.for("react.memo"):60115,rr=Vt?Symbol.for("react.forward_ref"):60112,or={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Yt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ir=((st={})[rr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},st[qt]=Yt,st);function Ut(e){return("type"in(t=e)&&t.type.$$typeof)===qt?Yt:"$$typeof"in e?ir[e.$$typeof]:or;var t}var ar=Object.defineProperty,cr=Object.getOwnPropertyNames,Bt=Object.getOwnPropertySymbols,lr=Object.getOwnPropertyDescriptor,ur=Object.getPrototypeOf,Wt=Object.prototype;function Ht(e,t,n){if(typeof t!="string"){if(Wt){var r=ur(t);r&&r!==Wt&&Ht(e,r,n)}var o=cr(t);Bt&&(o=o.concat(Bt(t)));for(var s=Ut(e),a=Ut(t),c=0;c<o.length;++c){var u=o[c];if(!(u in sr||n&&n[u]||a&&u in a||s&&u in s)){var l=lr(t,u);try{ar(e,u,l)}catch{}}}}return e}function pe(e){return typeof e=="function"}function at(e){return typeof e=="object"&&"styledComponentId"in e}function oe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ct(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function he(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function lt(e,t,n){if(n===void 0&&(n=!1),!n&&!he(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=lt(e[r],t[r]);else if(he(t))for(var r in t)e[r]=lt(e[r],t[r]);return e}function ut(e,t){Object.defineProperty(e,"toString",{value:t})}var dr=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
28
|
+
|
|
29
|
+
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
30
|
+
|
|
31
|
+
- Are you trying to reuse it across renders?
|
|
32
|
+
- Are you accidentally calling collectStyles twice?
|
|
33
|
+
|
|
34
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
35
|
+
|
|
36
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
37
|
+
|
|
38
|
+
- Does this error occur on the client and is your target falsy?
|
|
39
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
40
|
+
|
|
41
|
+
`,5:`The clone method cannot be used on the client!
|
|
42
|
+
|
|
43
|
+
- Are you running in a client-like environment on the server?
|
|
44
|
+
- Are you trying to run SSR on the client?
|
|
45
|
+
|
|
46
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
47
|
+
|
|
48
|
+
- Are you using a custom target that isn't mounted?
|
|
49
|
+
- Does your document not have a valid head element?
|
|
50
|
+
- Have you accidentally removed a style tag manually?
|
|
51
|
+
|
|
52
|
+
`,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.
|
|
53
|
+
|
|
54
|
+
`,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
|
|
55
|
+
|
|
56
|
+
`,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.
|
|
57
|
+
|
|
58
|
+
`,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.
|
|
59
|
+
|
|
60
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
61
|
+
|
|
62
|
+
`,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.
|
|
63
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
64
|
+
as for instance in your render method then you may be running into this limitation.
|
|
65
|
+
|
|
66
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
67
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
68
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function fr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function me(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(fr.apply(void 0,ee([dr[e]],t,!1)).trim())}var pr=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;t>=s;)if((s<<=1)<0)throw me(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=o;a<s;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),u=(a=0,n.length);a<u;a++)this.tag.insertRule(c,n[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),s=o+r,a=o;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(nt);return n},e})(),hr=1<<30,ze=new Map,Ve=new Map,qe=1,Ye=function(e){if(ze.has(e))return ze.get(e);for(;Ve.has(qe);)qe++;var t=qe++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>hr))throw me(16,"".concat(t));return ze.set(e,t),Ve.set(t,e),t},mr=function(e,t){qe=t+1,ze.set(e,t),Ve.set(t,e)},gr="style[".concat(ne,"][").concat(Nt,'="').concat(De,'"]'),yr=new RegExp("^".concat(ne,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),vr=function(e,t,n){for(var r,o=n.split(","),s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},br=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(nt),o=[],s=0,a=r.length;s<a;s++){var c=r[s].trim();if(c){var u=c.match(yr);if(u){var l=0|parseInt(u[1],10),g=u[2];l!==0&&(mr(g,l),vr(e,g,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},Gt=function(e){for(var t=document.querySelectorAll(gr),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ne)!==Ot&&(br(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Sr(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Xt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(c){var u=Array.from(c.querySelectorAll("style[".concat(ne,"]")));return u[u.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(ne,Ot),r.setAttribute(Nt,De);var a=Sr();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},wr=(function(){function e(t){this.element=Xt(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var a=r[o];if(a.ownerNode===n)return a}throw me(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Er=(function(){function e(t){this.element=Xt(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),xr=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Jt=Le,kr={isServer:!Le,useCSSOMInjection:!Kn},Kt=(function(){function e(t,n,r){t===void 0&&(t=fe),n===void 0&&(n={});var o=this;this.options=M(M({},kr),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Le&&Jt&&(Jt=!1,Gt(this)),ut(this,function(){return(function(s){for(var a=s.getTag(),c=a.length,u="",l=function(m){var b=(function(O){return Ve.get(O)})(m);if(b===void 0)return"continue";var S=s.names.get(b),j=a.getGroup(m);if(S===void 0||!S.size||j.length===0)return"continue";var R="".concat(ne,".g").concat(m,'[id="').concat(b,'"]'),F="";S!==void 0&&S.forEach(function(O){O.length>0&&(F+="".concat(O,","))}),u+="".concat(j).concat(R,'{content:"').concat(F,'"}').concat(nt)},g=0;g<c;g++)l(g);return u})(o)})}return e.registerId=function(t){return Ye(t)},e.prototype.rehydrate=function(){!this.server&&Le&&Gt(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(M(M({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new xr(o):r?new wr(o):new Er(o)})(this.options),new pr(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Ye(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Ye(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ye(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Pr=/&/g,Rr=/^\s*\/\/.*$/gm;function Zt(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Zt(n.children,t)),n})}function Tr(e){var t,n,r,o=fe,s=o.options,a=s===void 0?fe:s,c=o.plugins,u=c===void 0?$e:c,l=function(b,S,j){return j.startsWith(n)&&j.endsWith(n)&&j.replaceAll(n,"").length>0?".".concat(t):b},g=u.slice();g.push(function(b){b.type===Te&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(Pr,n).replace(r,l))}),a.prefix&&g.push(Xn),g.push(Wn);var m=function(b,S,j,R){S===void 0&&(S=""),j===void 0&&(j=""),R===void 0&&(R="&"),t=R,n=S,r=new RegExp("\\".concat(n,"\\b"),"g");var F=b.replace(Rr,""),O=Un(j||S?"".concat(j," ").concat(S," { ").concat(F," }"):F);a.namespace&&(O=Zt(O,a.namespace));var A=[];return Ie(O,Hn(g.concat(Gn(function(P){return A.push(P)})))),A};return m.hash=u.length?u.reduce(function(b,S){return S.name||me(15),re(b,S.name)},Ft).toString():"",m}var Cr=new Kt,dt=Tr(),Qt=p.createContext({shouldForwardProp:void 0,styleSheet:Cr,stylis:dt});Qt.Consumer,p.createContext(void 0);function en(){return p.useContext(Qt)}var ft=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=dt);var a=r.name+s.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,ut(this,function(){throw me(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=dt),this.name+t.hash},e})(),jr=function(e){return e>="A"&&e<="Z"};function tn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;jr(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var nn=function(e){return e==null||e===!1||e===""},rn=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!nn(s)&&(Array.isArray(s)&&s.isCss||pe(s)?r.push("".concat(tn(o),":"),s,";"):he(s)?r.push.apply(r,ee(ee(["".concat(o," {")],rn(s),!1),["}"],!1)):r.push("".concat(tn(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Jn||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function se(e,t,n,r){if(nn(e))return[];if(at(e))return[".".concat(e.styledComponentId)];if(pe(e)){if(!pe(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof ft||he(o)||o===null||console.error("".concat(zt(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),se(o,t,n,r)}var s;return e instanceof ft?n?(e.inject(n,r),[e.getName(r)]):[e]:he(e)?rn(e):Array.isArray(e)?Array.prototype.concat.apply($e,e.map(function(a){return se(a,t,n,r)})):[e.toString()]}function _r(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(pe(n)&&!at(n))return!1}return!0}var Ar=$t(De),Or=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&_r(t),this.componentId=n,this.baseHash=re(Ar,n),this.baseStyle=r,Kt.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=oe(o,this.staticRulesId);else{var s=ct(se(this.rules,t,n,r)),a=ot(re(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var c=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,c)}o=oe(o,a),this.staticRulesId=a}else{for(var u=re(this.baseHash,r.hash),l="",g=0;g<this.rules.length;g++){var m=this.rules[g];if(typeof m=="string")l+=m,process.env.NODE_ENV!=="production"&&(u=re(u,m));else if(m){var b=ct(se(m,t,n,r));u=re(u,b+g),l+=b}}if(l){var S=ot(u>>>0);n.hasNameForId(this.componentId,S)||n.insertRules(this.componentId,S,r(l,".".concat(S),void 0,this.componentId)),o=oe(o,S)}}return o},e})(),on=p.createContext(void 0);on.Consumer;var pt={},sn=new Set;function Nr(e,t,n){var r=at(e),o=e,s=!it(e),a=t.attrs,c=a===void 0?$e:a,u=t.componentId,l=u===void 0?(function(T,f){var E=typeof T!="string"?"sc":Dt(T);pt[E]=(pt[E]||0)+1;var y="".concat(E,"-").concat(Mt(De+E+pt[E]));return f?"".concat(f,"-").concat(y):y})(t.displayName,t.parentComponentId):u,g=t.displayName,m=g===void 0?(function(T){return it(T)?"styled.".concat(T):"Styled(".concat(zt(T),")")})(e):g,b=t.displayName&&t.componentId?"".concat(Dt(t.displayName),"-").concat(t.componentId):t.componentId||l,S=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c,j=t.shouldForwardProp;if(r&&o.shouldForwardProp){var R=o.shouldForwardProp;if(t.shouldForwardProp){var F=t.shouldForwardProp;j=function(T,f){return R(T,f)&&F(T,f)}}else j=R}var O=new Or(n,b,r?o.componentStyle:void 0);function A(T,f){return(function(E,y,W){var K=E.attrs,vt=E.componentStyle,xe=E.defaultProps,We=E.foldedComponentIds,He=E.styledComponentId,ke=E.target,Ge=p.useContext(on),Xe=en(),ge=E.shouldForwardProp||Xe.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(He);var Pe=Qn(y,Ge,xe)||fe,q=(function($,X,Z){for(var N,z=M(M({},X),{className:void 0,theme:Z}),ie=0;ie<$.length;ie+=1){var ye=pe(N=$[ie])?N(z):N;for(var Q in ye)z[Q]=Q==="className"?oe(z[Q],ye[Q]):Q==="style"?M(M({},z[Q]),ye[Q]):ye[Q]}return X.className&&(z.className=oe(z.className,X.className)),z})(K,y,Pe),i=q.as||ke,h={};for(var w in q)q[w]===void 0||w[0]==="$"||w==="as"||w==="theme"&&q.theme===Pe||(w==="forwardedAs"?h.as=q.forwardedAs:ge&&!ge(w,i)||(h[w]=q[w],ge||process.env.NODE_ENV!=="development"||An(w)||sn.has(w)||!rt.has(i)||(sn.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var D=(function($,X){var Z=en(),N=$.generateAndInjectStyles(X,Z.styleSheet,Z.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(N),N})(vt,q);process.env.NODE_ENV!=="production"&&E.warnTooManyClasses&&E.warnTooManyClasses(D);var Y=oe(We,He);return D&&(Y+=" "+D),q.className&&(Y+=" "+q.className),h[it(i)&&!rt.has(i)?"class":"className"]=Y,W&&(h.ref=W),p.createElement(i,h)})(P,T,f)}A.displayName=m;var P=p.forwardRef(A);return P.attrs=S,P.componentStyle=O,P.displayName=m,P.shouldForwardProp=j,P.foldedComponentIds=r?oe(o.foldedComponentIds,o.styledComponentId):"",P.styledComponentId=b,P.target=r?o.target:e,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(T){this._foldedDefaultProps=r?(function(f){for(var E=[],y=1;y<arguments.length;y++)E[y-1]=arguments[y];for(var W=0,K=E;W<K.length;W++)lt(f,K[W],!0);return f})({},o.defaultProps,T):T}}),process.env.NODE_ENV!=="production"&&(Zn(m,b),P.warnTooManyClasses=(function(T,f){var E={},y=!1;return function(W){if(!y&&(E[W]=!0,Object.keys(E).length>=200)){var K=f?' with the id of "'.concat(f,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(T).concat(K,`.
|
|
69
|
+
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
70
|
+
Example:
|
|
71
|
+
const Component = styled.div.attrs(props => ({
|
|
72
|
+
style: {
|
|
73
|
+
background: props.background,
|
|
74
|
+
},
|
|
75
|
+
}))\`width: 100%;\`
|
|
76
|
+
|
|
77
|
+
<Component />`),y=!0,E={}}}})(m,b)),ut(P,function(){return".".concat(P.styledComponentId)}),s&&Ht(P,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),P}function an(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var cn=function(e){return Object.assign(e,{isCss:!0})};function ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(pe(e)||he(e))return cn(se(an($e,ee([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?se(r):cn(se(an(r,t)))}function ht(e,t,n){if(n===void 0&&(n=fe),!t)throw me(1,t);var r=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,ln.apply(void 0,ee([o],s,!1)))};return r.attrs=function(o){return ht(e,t,M(M({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return ht(e,t,M(M({},n),o))},r}var un=function(e){return ht(Nr,e)},C=un;rt.forEach(function(e){C[e]=un(e)});function Ir(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=ct(ln.apply(void 0,ee([e],t,!1))),o=Mt(r);return new ft(o,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
78
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
79
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ue="__sc-".concat(ne,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ue]||(window[Ue]=0),window[Ue]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
80
|
+
|
|
81
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Ue]+=1);function mt({...e}){return d.jsx(Dr,{...e})}const Dr=C.button`
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
margin: 0;
|
|
86
|
+
padding: 0;
|
|
87
|
+
width: 2.25rem;
|
|
88
|
+
height: 2.25rem;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
color: white;
|
|
91
|
+
background: none;
|
|
92
|
+
border: none;
|
|
93
|
+
border-radius: 50%;
|
|
94
|
+
transition: background 0.2s ease-in-out;
|
|
95
|
+
|
|
96
|
+
svg {
|
|
97
|
+
width: 1.25rem;
|
|
98
|
+
height: 1.25rem;
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
background: rgba(0, 0, 0, 0.1);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:focus {
|
|
107
|
+
outline: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:disabled {
|
|
111
|
+
opacity: 0.5;
|
|
112
|
+
cursor: not-allowed;
|
|
113
|
+
}
|
|
114
|
+
`,dn=e=>{let t;const n=new Set,r=(l,g)=>{const m=typeof l=="function"?l(t):l;if(!Object.is(m,t)){const b=t;t=g??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(S=>S(t,b))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:l=>(n.add(l),()=>n.delete(l))},u=t=e(r,o,c);return c},Lr=(e=>e?dn(e):dn),Fr=e=>e;function fn(e,t=Fr){const n=p.useSyncExternalStore(e.subscribe,p.useCallback(()=>t(e.getState()),[e,t]),p.useCallback(()=>t(e.getInitialState()),[e,t]));return p.useDebugValue(n),n}const pn=e=>{const t=Lr(e),n=r=>fn(t,r);return Object.assign(n,t),n},$r=(e=>e?pn(e):pn);function Mr(e,t,n){const r={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(r[t]/r[n])}function zr(e){return Mr(e,"milliseconds","seconds")}const hn=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`};function Vr(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const mn=Vr(/iPhone|iPad|iPod/i);function qr(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function Yr(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function Ur(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function Br(e,t){return e.addEventListener("fullscreenchange",t),e.addEventListener("webkitfullscreenchange",t),e.addEventListener("mozfullscreenchange",t),e.addEventListener("MSFullscreenChange",t),()=>{e.removeEventListener("fullscreenchange",t),e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("mozfullscreenchange",t),e.removeEventListener("MSFullscreenChange",t)}}const Wr=(e,t)=>({currentTime:0,duration:0,isEnded:!1,isLoading:!1,isLoop:!1,isMetaLoaded:!1,isPlaying:!1,isReady:!1,isStarted:!1,pauseTime:0,seekTime:-1,startTime:-1,volume:100,destroy:()=>{},handleDurationChange:()=>{const n=t().techRef.current;n&&e({duration:n.duration})},handleEnd:()=>{t().techRef.current&&e({isEnded:!0,isLoading:!1,isMetaLoaded:!1,isPlaying:!1})},handleLoadedMetadata:()=>{const n=t().techRef.current;n&&(n.loop=t().isLoop,n.volume=n.muted?0:1,t().startTime!==-1&&(n.currentTime=t().startTime),e({currentTime:t().startTime!==-1?t().startTime:n.currentTime,duration:n.duration,startTime:-1,isMetaLoaded:!0,volume:n.muted?0:100}))},handleLoadStart:()=>{const n=t().techRef.current;n&&(e({isReady:!0}),n.play().then(()=>{e({isEnded:!1,isLoading:!1,isPlaying:!0,isStarted:!0,pauseTime:0})}).catch(r=>e(()=>(console.info("Player failed to autoplay",r),{isStarted:!1,isEnded:!1,isLoading:!1,isPlaying:!1}))))},handlePause:()=>e({isPlaying:!1,pauseTime:Date.now()}),handlePlay:()=>e({isPlaying:!0,pauseTime:0}),handlePlaying:()=>e({isLoading:!1}),handleSeeked:()=>e({isLoading:!1}),handleSeeking:()=>e({isLoading:!0}),handleTimeUpdate:()=>{const n=t().techRef.current;n&&e({currentTime:n.currentTime})},handleWaiting:()=>e({isLoading:!0}),pause:()=>{const n=t().techRef.current;n&&(n.pause(),e({isEnded:!1,isPlaying:!1,pauseTime:Date.now()}))},pauseTimeDiff:()=>zr(Date.now()-t().pauseTime),play:()=>{const n=t().techRef.current;n&&(n.play(),e({isEnded:!1,isPlaying:!0,isStarted:!0,pauseTime:0}))},seek:n=>{const r=t().techRef.current;r&&(r.currentTime=n,(r.paused||r.ended)&&r.play(),e({seekTime:-1,currentTime:n,isStarted:!0,isEnded:!1,isPlaying:!0}))},setIsLoading:n=>e({isLoading:n}),setIsLoop:n=>{const r=t().techRef.current;r&&(r.loop=n,e({isLoop:n}))},setStartTime:n=>e({startTime:n}),setVolume:n=>{const r=t().techRef.current;r&&(r.muted=n===0,r.volume=n/100,e({volume:n}))},stop:()=>{t().techRef.current&&e({isPlaying:!1,isLoading:!1})}}),Hr=e=>({idleLocks:new Set,addIdleLock:t=>e(n=>({idleLocks:new Set(n.idleLocks).add(t)})),removeIdleLock:t=>e(n=>{const r=new Set(n.idleLocks);return r.delete(t),{idleLocks:r}})}),Gr=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{Ur(document),e({isFullscreen:!1})},requestFullscreen:()=>{const n=t().techRef.current,r=t().containerRef.current;if(!n||!r)return;const o=mn?n:r;o&&Yr(o),e({isFullscreen:!0})},setIsFullscreen:n=>e({isFullscreen:n}),setIsFullscreenReady:n=>e({isFullscreenReady:n})}),Xr=e=>({url:"",setURL:t=>e({url:t})}),Jr=e=>()=>({...e}),Kr=(e,t)=>$r()((...n)=>({...Wr(...n),...Hr(...n),...Gr(...n),...Xr(...n),...Jr({techRef:e,containerRef:t})(...n)})),gn=p.createContext(null),Zr=({children:e})=>{const t=p.useRef(null),n=p.useRef(null),r=p.useRef(null);return t.current||(t.current=Kr(n,r)),d.jsx(gn.Provider,{value:t.current,children:e})},x=e=>{const t=p.useContext(gn);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return fn(t,e)};function Qr(){const[e,t]=p.useState(!1),n=x(a=>a.isPlaying),r=x(a=>a.isStarted),o=x(a=>a.play),s=()=>{n||o()};return p.useEffect(()=>{t(!r&&!n)},[r,n]),e?d.jsx(mt,{onClick:s,children:n?d.jsx(ae.PauseIcon,{}):d.jsx(ae.PlayIcon,{})}):null}function yn({children:e}){return d.jsx(Zr,{children:e})}const Be={hls:"hls",dash:"dash"};function eo(e){return e&&/\.m3u8/i.test(e)?Be.hls:Be.dash}const to=p.lazy(()=>Promise.resolve().then(()=>Do)),no=p.lazy(()=>Promise.resolve().then(()=>Lo));function vn({url:e,isLive:t,isMuted:n=!1}){const r=x(f=>f.handleDurationChange),o=x(f=>f.handleEnd),s=x(f=>f.handleLoadedMetadata),a=x(f=>f.handleLoadStart),c=x(f=>f.handlePause),u=x(f=>f.handlePlay),l=x(f=>f.handlePlaying),g=x(f=>f.handleSeeked),m=x(f=>f.handleSeeking),b=x(f=>f.handleTimeUpdate),S=x(f=>f.handleWaiting),j=x(f=>f.techRef),R=p.useRef(null),F=()=>t?{}:{onDurationChange:r,onSeeked:g,onSeeking:m,onTimeUpdate:O},O=()=>{(!R.current||Date.now()-R.current>=1e3)&&(b(),R.current=Date.now())},P=(()=>{switch(eo(e)){case Be.hls:return to;case Be.dash:return no}return null})();if(!P)return null;const T=F();return d.jsxs(d.Fragment,{children:[d.jsx(p.Suspense,{fallback:null,children:d.jsx(P,{isLive:t,url:e})}),d.jsx(ro,{ref:j,playsInline:!0,autoPlay:!0,controls:!1,muted:n,preload:"auto",crossOrigin:"anonymous",onEnded:o,onLoadedMetadata:s,onLoadStart:a,onPause:c,onPlay:u,onPlaying:l,onWaiting:S,tabIndex:-1,...T})]})}const ro=C.video`
|
|
115
|
+
position: relative;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
|
|
119
|
+
@media (min-width: 768px) {
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
}
|
|
122
|
+
`,bn=()=>{const e=x(l=>l.containerRef),t=x(l=>l.exitFullscreen),n=x(l=>l.isFullscreen),r=x(l=>l.requestFullscreen),o=x(l=>l.setIsFullscreen),s=x(l=>l.setIsFullscreenReady),a=x(l=>l.techRef),c=p.useCallback(l=>{l.stopPropagation(),o(qr())},[o]),u=()=>{n?t():r()};return p.useEffect(()=>{const l=mn?a.current:e.current;if(l)return Br(l,c)},[e,c,a]),p.useEffect(()=>{s(!0)},[s]),d.jsx(mt,{onClick:u,children:n?d.jsx(ae.MinimizeIcon,{}):d.jsx(ae.MaximizeIcon,{})})};function oo(e,t=500){const[n,r]=p.useState(e);return p.useEffect(()=>{const o=window.setTimeout(()=>r(e),t);return()=>{window.clearTimeout(o)}},[e,t]),n}function Sn({style:e,...t}){const n=x(o=>o.isLoading);return oo(n,50)?d.jsx(so,{style:e,...t,children:d.jsx(ao,{})}):null}const so=C.div`
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 0;
|
|
126
|
+
right: 0;
|
|
127
|
+
bottom: 0;
|
|
128
|
+
left: 0;
|
|
129
|
+
display: flex;
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 100%;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
`,io=Ir`
|
|
135
|
+
from {
|
|
136
|
+
transform: rotate(0deg);
|
|
137
|
+
}
|
|
138
|
+
to {
|
|
139
|
+
transform: rotate(360deg);
|
|
140
|
+
}
|
|
141
|
+
`,ao=C.div`
|
|
142
|
+
width: 2rem;
|
|
143
|
+
height: 2rem;
|
|
144
|
+
border: 0.25rem solid #fff;
|
|
145
|
+
border-bottom-color: transparent;
|
|
146
|
+
border-radius: 50%;
|
|
147
|
+
animation: ${io} 1s linear infinite;
|
|
148
|
+
`;function co(e){return d.jsx(yn,{children:d.jsx(lo,{...e})})}function lo({url:e}){const t=x(n=>n.containerRef);return d.jsxs(uo,{ref:t,children:[d.jsx(vn,{url:e,isLive:!0}),d.jsx(Sn,{}),d.jsx(fo,{children:d.jsx(po,{children:d.jsxs(ho,{children:[d.jsx(mo,{children:d.jsx(Qr,{})}),d.jsx(go,{}),d.jsx(yo,{children:d.jsx(bn,{})})]})})})]})}const uo=C.div`
|
|
149
|
+
position: absolute;
|
|
150
|
+
top: 0;
|
|
151
|
+
left: 0;
|
|
152
|
+
width: 100%;
|
|
153
|
+
height: 100%;
|
|
154
|
+
background-color: black;
|
|
155
|
+
color: white;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
`,fo=C.div`
|
|
158
|
+
position: absolute;
|
|
159
|
+
left: 0;
|
|
160
|
+
width: 100%;
|
|
161
|
+
bottom: 0;
|
|
162
|
+
z-index: 10;
|
|
163
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
|
|
164
|
+
padding-top: 1rem;
|
|
165
|
+
|
|
166
|
+
@media (min-width: 768px) {
|
|
167
|
+
padding-top: 2rem;
|
|
168
|
+
}
|
|
169
|
+
`,po=C.div`
|
|
170
|
+
display: flex;
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
padding-left: 0.5rem;
|
|
173
|
+
padding-right: 0.5rem;
|
|
174
|
+
line-height: 1;
|
|
175
|
+
font-size: 0;
|
|
176
|
+
|
|
177
|
+
@media (min-width: 768px) {
|
|
178
|
+
padding-left: 1rem;
|
|
179
|
+
padding-right: 1rem;
|
|
180
|
+
}
|
|
181
|
+
`,ho=C.div`
|
|
182
|
+
margin: auto 0;
|
|
183
|
+
display: flex;
|
|
184
|
+
width: 100%;
|
|
185
|
+
align-items: center;
|
|
186
|
+
`,gt=C.div`
|
|
187
|
+
display: flex;
|
|
188
|
+
flex: 1;
|
|
189
|
+
align-items: center;
|
|
190
|
+
gap: 0.5rem;
|
|
191
|
+
|
|
192
|
+
@media (min-width: 768px) {
|
|
193
|
+
gap: 1rem;
|
|
194
|
+
}
|
|
195
|
+
`,mo=C(gt)`
|
|
196
|
+
justify-content: flex-start;
|
|
197
|
+
`,go=C(gt)`
|
|
198
|
+
justify-content: center;
|
|
199
|
+
`,yo=C(gt)`
|
|
200
|
+
justify-content: flex-end;
|
|
201
|
+
`;function vo(){const e=x(o=>o.isPlaying),t=x(o=>o.pause),n=x(o=>o.play),r=()=>{e?t():n()};return d.jsx(mt,{onClick:r,children:e?d.jsx(ae.PauseIcon,{}):d.jsx(ae.PlayIcon,{})})}function bo(e){return null}function So(){const[e,t]=p.useState(-1),n=x(s=>s.currentTime),r=x(s=>s.duration),o=parseFloat((r?(e!==-1?e:n)/r*100:0).toFixed(1));return d.jsxs(wo,{children:[d.jsx(wn,{children:d.jsx(xo,{children:hn(n)})}),d.jsx(Eo,{children:d.jsx(bo,{value:o,step:.1})}),d.jsx(wn,{children:d.jsx(ko,{children:hn(r)})})]})}const wo=C.div`
|
|
202
|
+
display: flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
`,wn=C.div``,Eo=C.div`
|
|
205
|
+
flex: 1;
|
|
206
|
+
`,En=C.p`
|
|
207
|
+
margin: 0;
|
|
208
|
+
color: #fff;
|
|
209
|
+
font-size: 0.875rem;
|
|
210
|
+
`,xo=C(En)`
|
|
211
|
+
padding-left: 0.25rem;
|
|
212
|
+
`,ko=C(En)`
|
|
213
|
+
padding-right: 0.25rem;
|
|
214
|
+
`;function Po(e){return d.jsx(yn,{children:d.jsx(Ro,{...e})})}function Ro({url:e}){const t=x(n=>n.containerRef);return d.jsxs(To,{ref:t,children:[d.jsx(vn,{url:e,isLive:!1}),d.jsx(Sn,{}),d.jsx(Co,{children:d.jsxs(jo,{children:[d.jsx(So,{}),d.jsxs(_o,{children:[d.jsx(Ao,{children:d.jsx(vo,{})}),d.jsx(Oo,{}),d.jsx(No,{children:d.jsx(bn,{})})]})]})})]})}const To=C.div`
|
|
215
|
+
position: absolute;
|
|
216
|
+
top: 0;
|
|
217
|
+
left: 0;
|
|
218
|
+
width: 100%;
|
|
219
|
+
height: 100%;
|
|
220
|
+
background-color: black;
|
|
221
|
+
color: white;
|
|
222
|
+
overflow: hidden;
|
|
223
|
+
`,Co=C.div`
|
|
224
|
+
position: absolute;
|
|
225
|
+
left: 0;
|
|
226
|
+
width: 100%;
|
|
227
|
+
bottom: 0;
|
|
228
|
+
z-index: 10;
|
|
229
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
|
|
230
|
+
padding-top: 1rem;
|
|
231
|
+
|
|
232
|
+
@media (min-width: 768px) {
|
|
233
|
+
padding-top: 2rem;
|
|
234
|
+
}
|
|
235
|
+
`,jo=C.div`
|
|
236
|
+
display: flex;
|
|
237
|
+
flex-direction: column;
|
|
238
|
+
padding-left: 0.5rem;
|
|
239
|
+
padding-right: 0.5rem;
|
|
240
|
+
line-height: 1;
|
|
241
|
+
font-size: 0;
|
|
242
|
+
height: 3.5rem;
|
|
243
|
+
|
|
244
|
+
@media (min-width: 768px) {
|
|
245
|
+
padding-left: 1rem;
|
|
246
|
+
padding-right: 1rem;
|
|
247
|
+
height: 4rem;
|
|
248
|
+
}
|
|
249
|
+
`,_o=C.div`
|
|
250
|
+
margin: auto 0;
|
|
251
|
+
display: flex;
|
|
252
|
+
width: 100%;
|
|
253
|
+
align-items: center;
|
|
254
|
+
`,yt=C.div`
|
|
255
|
+
display: flex;
|
|
256
|
+
flex: 1;
|
|
257
|
+
align-items: center;
|
|
258
|
+
gap: 0.5rem;
|
|
259
|
+
|
|
260
|
+
@media (min-width: 768px) {
|
|
261
|
+
gap: 1rem;
|
|
262
|
+
}
|
|
263
|
+
`,Ao=C(yt)`
|
|
264
|
+
justify-content: flex-start;
|
|
265
|
+
`,Oo=C(yt)`
|
|
266
|
+
justify-content: center;
|
|
267
|
+
`,No=C(yt)`
|
|
268
|
+
justify-content: flex-end;
|
|
269
|
+
`;function Io({url:e,isLive:t}){const n=p.useRef(null),r=x(c=>c.techRef),o=p.useCallback(()=>{n.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),n.current.loadSource(e))},[e]),s=p.useCallback(()=>{if(!r.current)return;const l=t?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(l)),console.log("[Player] Version",ve.version),n.current=new ve(l),n.current.attachMedia(r.current),n.current.on(ve.Events.MEDIA_ATTACHED,o)}catch(g){throw new Error(`Error initializing Hls: ${g}`)}},[o,t,r,e]),a=p.useCallback(()=>{n.current&&(n.current.off(ve.Events.MEDIA_ATTACHED,o),n.current.destroy(),n.current=null)},[o]);return p.useEffect(()=>(ve.isSupported()&&s(),a),[a,s]),null}const Do=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),Lo=Object.freeze(Object.defineProperty({__proto__:null,default:({url:e,isLive:t})=>{const n=p.useRef(null),r=x(c=>c.techRef),o=p.useCallback(c=>{const u=c.codecs;return!(u&&new RegExp(/hev1|hvc1/).test(u))},[]),s=p.useCallback(()=>{if(!r.current)return;const l=t?{abr:{initialBitrate:{video:2e5}},protection:{ignoreKeyStatuses:!0}}:{};try{n.current=Pn.MediaPlayer().create(),console.log("[Player] URL",e),console.log("[Player] Version",n.current.getVersion()),console.log("[Player] Config init",JSON.stringify(l)),n.current.registerCustomCapabilitiesFilter(o),n.current.initialize(r.current,e,!0),n.current.updateSettings(l),console.log("[Player] Config current",JSON.stringify(n.current.getSettings()))}catch(g){throw new Error(`Error initializing Dash: ${g}`)}},[o,r,e,t]),a=p.useCallback(()=>{n.current&&(n.current.unregisterCustomCapabilitiesFilter(o),n.current.destroy(),n.current=null,console.log("[Player] Dash destroyed"))},[o]);return p.useEffect(()=>(s(),a),[a,s]),null}},Symbol.toStringTag,{value:"Module"}));U.LivePlayer=co,U.VodPlayer=Po,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
|
|
58
270
|
//# sourceMappingURL=react-video-player.umd.js.map
|