From f9519f0bfe2349e948f2972f58e8aceea5557da1 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Mon, 26 Feb 2024 17:41:56 +0000 Subject: [PATCH] ci: automatic build fixes --- ...on-1e73cb4e.js => DailyMotion-360cfcd6.js} | 2 +- ...ebook-75e7cdc3.js => Facebook-d39364fd.js} | 2 +- ...yer-a6b5c6ba.js => FilePlayer-518986c0.js} | 2 +- ...altura-f447b996.js => Kaltura-e146b1f1.js} | 2 +- ...cloud-e6ffb5b8.js => Mixcloud-2f41bbf1.js} | 2 +- ...sIcon-a27d580f.js => PlusIcon-67466f8b.js} | 2 +- ...review-64356325.js => Preview-cf030fed.js} | 2 +- ...{Select-631e4391.js => Select-6f6c7ca7.js} | 2 +- ...leton-5410b08c.js => Skeleton-d791a65b.js} | 2 +- ...oud-7b625e8c.js => SoundCloud-370f2397.js} | 2 +- ...ble-02f6d6ff.js => Streamable-b74b3979.js} | 2 +- ...{Twitch-f6c2e381.js => Twitch-34b4cf9c.js} | 2 +- ...idyard-a3146ae7.js => Vidyard-d5f9b421.js} | 2 +- .../{Vimeo-7d27e522.js => Vimeo-0e587634.js} | 2 +- ...{Wistia-05302f1c.js => Wistia-7ca4ce66.js} | 2 +- ...ouTube-aecf8ec2.js => YouTube-6a5e094a.js} | 2 +- ...ants-b28599d8.js => constants-fce7955b.js} | 2 +- .../{index-fce50a17.js => index-0bceab6d.js} | 2 +- .../{index-6de96962.js => index-100276ae.js} | 2 +- .../{index-b639b6f9.js => index-32144865.js} | 2 +- .../{index-98716dc3.js => index-3e078f3e.js} | 2 +- build/assets/index-603c7e27.js | 49 ------------------- .../{index-56950d92.js => index-753a4213.js} | 2 +- .../{index-b7491f5d.js => index-7cae0b0a.js} | 2 +- .../{index-8982aad6.js => index-86f4b424.js} | 2 +- .../{index-0f881382.js => index-9035c855.js} | 2 +- .../{index-fc412426.js => index-94b46638.js} | 2 +- .../{index-06aeb711.js => index-a820256c.js} | 6 +-- build/assets/index-b43b296e.js | 49 +++++++++++++++++++ .../{index-ca6baa98.js => index-cc4d749c.js} | 2 +- .../{index-728012ea.js => index-d9ff45b3.js} | 4 +- ...e-5eb83970.js => toastMessage-ef227247.js} | 2 +- build/index.html | 2 +- 33 files changed, 83 insertions(+), 83 deletions(-) rename build/assets/{DailyMotion-1e73cb4e.js => DailyMotion-360cfcd6.js} (95%) rename build/assets/{Facebook-75e7cdc3.js => Facebook-d39364fd.js} (96%) rename build/assets/{FilePlayer-a6b5c6ba.js => FilePlayer-518986c0.js} (98%) rename build/assets/{Kaltura-f447b996.js => Kaltura-e146b1f1.js} (95%) rename build/assets/{Mixcloud-e6ffb5b8.js => Mixcloud-2f41bbf1.js} (95%) rename build/assets/{PlusIcon-a27d580f.js => PlusIcon-67466f8b.js} (95%) rename build/assets/{Preview-64356325.js => Preview-cf030fed.js} (97%) rename build/assets/{Select-631e4391.js => Select-6f6c7ca7.js} (99%) rename build/assets/{Skeleton-5410b08c.js => Skeleton-d791a65b.js} (93%) rename build/assets/{SoundCloud-7b625e8c.js => SoundCloud-370f2397.js} (95%) rename build/assets/{Streamable-02f6d6ff.js => Streamable-b74b3979.js} (95%) rename build/assets/{Twitch-f6c2e381.js => Twitch-34b4cf9c.js} (95%) rename build/assets/{Vidyard-a3146ae7.js => Vidyard-d5f9b421.js} (95%) rename build/assets/{Vimeo-7d27e522.js => Vimeo-0e587634.js} (96%) rename build/assets/{Wistia-05302f1c.js => Wistia-7ca4ce66.js} (96%) rename build/assets/{YouTube-aecf8ec2.js => YouTube-6a5e094a.js} (97%) rename build/assets/{constants-b28599d8.js => constants-fce7955b.js} (99%) rename build/assets/{index-fce50a17.js => index-0bceab6d.js} (88%) rename build/assets/{index-6de96962.js => index-100276ae.js} (97%) rename build/assets/{index-b639b6f9.js => index-32144865.js} (99%) rename build/assets/{index-98716dc3.js => index-3e078f3e.js} (99%) delete mode 100644 build/assets/index-603c7e27.js rename build/assets/{index-56950d92.js => index-753a4213.js} (94%) rename build/assets/{index-b7491f5d.js => index-7cae0b0a.js} (54%) rename build/assets/{index-8982aad6.js => index-86f4b424.js} (96%) rename build/assets/{index-0f881382.js => index-9035c855.js} (86%) rename build/assets/{index-fc412426.js => index-94b46638.js} (92%) rename build/assets/{index-06aeb711.js => index-a820256c.js} (99%) create mode 100644 build/assets/index-b43b296e.js rename build/assets/{index-ca6baa98.js => index-cc4d749c.js} (99%) rename build/assets/{index-728012ea.js => index-d9ff45b3.js} (99%) rename build/assets/{toastMessage-5eb83970.js => toastMessage-ef227247.js} (88%) diff --git a/build/assets/DailyMotion-1e73cb4e.js b/build/assets/DailyMotion-360cfcd6.js similarity index 95% rename from build/assets/DailyMotion-1e73cb4e.js rename to build/assets/DailyMotion-360cfcd6.js index 0e0adacd5..d43d7768f 100644 --- a/build/assets/DailyMotion-1e73cb4e.js +++ b/build/assets/DailyMotion-360cfcd6.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-b639b6f9.js";import{u as D,p as O}from"./index-728012ea.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{g as P,r as v}from"./index-32144865.js";import{u as D,p as O}from"./index-d9ff45b3.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/Facebook-75e7cdc3.js b/build/assets/Facebook-d39364fd.js similarity index 96% rename from build/assets/Facebook-75e7cdc3.js rename to build/assets/Facebook-d39364fd.js index d8e148f83..630203315 100644 --- a/build/assets/Facebook-75e7cdc3.js +++ b/build/assets/Facebook-d39364fd.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-b639b6f9.js";import{u as P,p as m}from"./index-728012ea.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{g as _,r as g}from"./index-32144865.js";import{u as P,p as m}from"./index-d9ff45b3.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/FilePlayer-a6b5c6ba.js b/build/assets/FilePlayer-518986c0.js similarity index 98% rename from build/assets/FilePlayer-a6b5c6ba.js rename to build/assets/FilePlayer-518986c0.js index d96c10275..0026339d6 100644 --- a/build/assets/FilePlayer-a6b5c6ba.js +++ b/build/assets/FilePlayer-518986c0.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-b639b6f9.js";import{u as O,p as A}from"./index-728012ea.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{g as b,r as _}from"./index-32144865.js";import{u as O,p as A}from"./index-d9ff45b3.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/build/assets/Kaltura-f447b996.js b/build/assets/Kaltura-e146b1f1.js similarity index 95% rename from build/assets/Kaltura-f447b996.js rename to build/assets/Kaltura-e146b1f1.js index 91c5827f6..698027860 100644 --- a/build/assets/Kaltura-f447b996.js +++ b/build/assets/Kaltura-e146b1f1.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-b639b6f9.js";import{u as _,p as m}from"./index-728012ea.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; +import{g as y,r as f}from"./index-32144865.js";import{u as _,p as m}from"./index-d9ff45b3.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; diff --git a/build/assets/Mixcloud-e6ffb5b8.js b/build/assets/Mixcloud-2f41bbf1.js similarity index 95% rename from build/assets/Mixcloud-e6ffb5b8.js rename to build/assets/Mixcloud-2f41bbf1.js index 656a029b4..c8a6a244e 100644 --- a/build/assets/Mixcloud-e6ffb5b8.js +++ b/build/assets/Mixcloud-2f41bbf1.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-b639b6f9.js";import{u as m,p as g}from"./index-728012ea.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; +import{g as _,r as f}from"./index-32144865.js";import{u as m,p as g}from"./index-d9ff45b3.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/build/assets/PlusIcon-a27d580f.js b/build/assets/PlusIcon-67466f8b.js similarity index 95% rename from build/assets/PlusIcon-a27d580f.js rename to build/assets/PlusIcon-67466f8b.js index 697a91be4..71cc8b30c 100644 --- a/build/assets/PlusIcon-a27d580f.js +++ b/build/assets/PlusIcon-67466f8b.js @@ -1 +1 @@ -import{j as r}from"./index-b639b6f9.js";function s(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const i=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:r.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]});export{i as P,s as f}; +import{j as r}from"./index-32144865.js";function s(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const i=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:r.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]});export{i as P,s as f}; diff --git a/build/assets/Preview-64356325.js b/build/assets/Preview-cf030fed.js similarity index 97% rename from build/assets/Preview-64356325.js rename to build/assets/Preview-cf030fed.js index ab503adf3..3379932be 100644 --- a/build/assets/Preview-64356325.js +++ b/build/assets/Preview-cf030fed.js @@ -1 +1 @@ -import{g as y,r as b}from"./index-b639b6f9.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; +import{g as y,r as b}from"./index-32144865.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; diff --git a/build/assets/Select-631e4391.js b/build/assets/Select-6f6c7ca7.js similarity index 99% rename from build/assets/Select-631e4391.js rename to build/assets/Select-6f6c7ca7.js index 578d0dc62..aed0bcfaa 100644 --- a/build/assets/Select-631e4391.js +++ b/build/assets/Select-6f6c7ca7.js @@ -1 +1 @@ -import{r as u,$ as ft,_ as s,j as v,C as V,h as N,p as ye,n as ne,H as bt}from"./index-b639b6f9.js";import{a$ as j,cF as Re,b0 as A,cD as mt,b1 as $,cL as Se,b3 as T,cM as $e,cN as Pe,cO as Me,cP as ke,b6 as U,cI as be,cJ as me,b5 as Z,aX as gt,cQ as vt,aZ as Ie,aW as we,bK as ht,cR as xt,b9 as Ct,ba as Te,b8 as It,cS as yt}from"./index-06aeb711.js";let Ue=0;function Rt(e){const[t,o]=u.useState(e),n=e||t;return u.useEffect(()=>{t==null&&(Ue+=1,o(`mui-${Ue}`))},[t]),n}const _e=ft["useId".toString()];function St(e){if(_e!==void 0){const t=_e();return e??t}return Rt(e)}function ze({controlled:e,default:t,name:o,state:n="value"}){const{current:a}=u.useRef(e!==void 0),[i,l]=u.useState(t),r=a?e:i,c=u.useCallback(p=>{a||l(p)},[]);return[r,c]}function $t(e){return A("MuiInput",e)}const Pt=s({},Re,j("MuiInput",["root","underline","input"])),se=Pt;function Mt(e){return A("MuiOutlinedInput",e)}const kt=s({},Re,j("MuiOutlinedInput",["root","notchedOutline","input"])),q=kt;function wt(e){return A("MuiFilledInput",e)}const Ft=s({},Re,j("MuiFilledInput",["root","underline","input"])),Q=Ft,Lt=mt(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ot=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Nt=e=>{const{classes:t,disableUnderline:o}=e,a=U({root:["root",!o&&"underline"],input:["input"]},wt,t);return s({},t,a)},Et=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...$e(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return s({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Q.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Q.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Q.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Q.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Q.disabled}, .${Q.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Q.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&s({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Bt=$(Pe,{name:"MuiFilledInput",slot:"Input",overridesResolver:Me})(({theme:e,ownerState:t})=>s({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Xe=u.forwardRef(function(t,o){var n,a,i,l;const r=V({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:p,fullWidth:m=!1,inputComponent:x="input",multiline:h=!1,slotProps:C,slots:k={},type:w="text"}=r,L=N(r,Ot),g=s({},r,{fullWidth:m,inputComponent:x,multiline:h,type:w}),P=Nt(r),b={root:{ownerState:g},input:{ownerState:g}},f=C??p?ye(b,C??p):b,y=(n=(a=k.root)!=null?a:c.Root)!=null?n:Et,S=(i=(l=k.input)!=null?l:c.Input)!=null?i:Bt;return v.jsx(ke,s({slots:{root:y,input:S},componentsProps:f,fullWidth:m,inputComponent:x,multiline:h,ref:o,type:w},L,{classes:P}))});Xe.muiName="Input";const Wt=Xe;function Dt(e){return A("MuiFormLabel",e)}const jt=j("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),le=jt,At=["children","className","color","component","disabled","error","filled","focused","required"],Tt=e=>{const{classes:t,color:o,focused:n,disabled:a,error:i,filled:l,required:r}=e,c={root:["root",`color${ne(o)}`,a&&"disabled",i&&"error",l&&"filled",n&&"focused",r&&"required"],asterisk:["asterisk",i&&"error"]};return U(c,Dt,t)},Ut=$("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>s({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>s({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${le.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${le.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${le.error}`]:{color:(e.vars||e).palette.error.main}})),_t=$("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${le.error}`]:{color:(e.vars||e).palette.error.main}})),zt=u.forwardRef(function(t,o){const n=V({props:t,name:"MuiFormLabel"}),{children:a,className:i,component:l="label"}=n,r=N(n,At),c=be(),p=me({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),m=s({},n,{color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),x=Tt(m);return v.jsxs(Ut,s({as:l,ownerState:m,className:Z(x.root,i),ref:o},r,{children:[a,p.required&&v.jsxs(_t,{ownerState:m,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}))}),Kt=zt,qt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Vt=e=>{const{classes:t,disableUnderline:o}=e,a=U({root:["root",!o&&"underline"],input:["input"]},$t,t);return s({},t,a)},Ht=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...$e(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),s({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${se.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${se.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${se.disabled}, .${se.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${se.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Xt=$(Pe,{name:"MuiInput",slot:"Input",overridesResolver:Me})({}),Ge=u.forwardRef(function(t,o){var n,a,i,l;const r=V({props:t,name:"MuiInput"}),{disableUnderline:c,components:p={},componentsProps:m,fullWidth:x=!1,inputComponent:h="input",multiline:C=!1,slotProps:k,slots:w={},type:L="text"}=r,g=N(r,qt),P=Vt(r),f={root:{ownerState:{disableUnderline:c}}},y=k??m?ye(k??m,f):f,S=(n=(a=w.root)!=null?a:p.Root)!=null?n:Ht,I=(i=(l=w.input)!=null?l:p.Input)!=null?i:Xt;return v.jsx(ke,s({slots:{root:S,input:I},slotProps:y,fullWidth:x,inputComponent:h,multiline:C,ref:o,type:L},g,{classes:P}))});Ge.muiName="Input";const Gt=Ge;function Jt(e){return A("MuiInputLabel",e)}j("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Qt=["disableAnimation","margin","shrink","variant","className"],Zt=e=>{const{classes:t,formControl:o,size:n,shrink:a,disableAnimation:i,variant:l,required:r}=e,c={root:["root",o&&"formControl",!i&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ne(n)}`,l],asterisk:[r&&"asterisk"]},p=U(c,Jt,t);return s({},t,p)},Yt=$(Kt,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${le.asterisk}`]:t.asterisk},t.root,o.formControl&&t.formControl,o.size==="small"&&t.sizeSmall,o.shrink&&t.shrink,!o.disableAnimation&&t.animated,o.focused&&t.focused,t[o.variant]]}})(({theme:e,ownerState:t})=>s({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&s({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&s({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&s({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),eo=u.forwardRef(function(t,o){const n=V({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:i,className:l}=n,r=N(n,Qt),c=be();let p=i;typeof p>"u"&&c&&(p=c.filled||c.focused||c.adornedStart);const m=me({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),x=s({},n,{disableAnimation:a,formControl:c,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),h=Zt(x);return v.jsx(Yt,s({"data-shrink":p,ownerState:x,ref:o,className:Z(h.root,l)},r,{classes:h}))}),an=eo,to=u.createContext({}),oo=to;function no(e){return A("MuiList",e)}j("MuiList",["root","padding","dense","subheader"]);const so=["children","className","component","dense","disablePadding","subheader"],ro=e=>{const{classes:t,disablePadding:o,dense:n,subheader:a}=e;return U({root:["root",!o&&"padding",n&&"dense",a&&"subheader"]},no,t)},ao=$("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})(({ownerState:e})=>s({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),lo=u.forwardRef(function(t,o){const n=V({props:t,name:"MuiList"}),{children:a,className:i,component:l="ul",dense:r=!1,disablePadding:c=!1,subheader:p}=n,m=N(n,so),x=u.useMemo(()=>({dense:r}),[r]),h=s({},n,{component:l,dense:r,disablePadding:c}),C=ro(h);return v.jsx(oo.Provider,{value:x,children:v.jsxs(ao,s({as:l,className:Z(C.root,i),ref:o,ownerState:h},m,{children:[p,a]}))})}),io=lo,uo=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ce(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function Ke(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function Je(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.indexOf(t.keys.join(""))===0}function re(e,t,o,n,a,i){let l=!1,r=a(e,t,t?o:!1);for(;r;){if(r===e.firstChild){if(l)return!1;l=!0}const c=n?!1:r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||!Je(r,i)||c)r=a(e,r,o);else return r.focus(),!0}return!1}const co=u.forwardRef(function(t,o){const{actions:n,autoFocus:a=!1,autoFocusItem:i=!1,children:l,className:r,disabledItemsFocusable:c=!1,disableListWrap:p=!1,onKeyDown:m,variant:x="selectedMenu"}=t,h=N(t,uo),C=u.useRef(null),k=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gt(()=>{a&&C.current.focus()},[a]),u.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,f)=>{const y=!C.current.style.width;if(b.clientHeight{const f=C.current,y=b.key,S=Ie(f).activeElement;if(y==="ArrowDown")b.preventDefault(),re(f,S,p,c,Ce);else if(y==="ArrowUp")b.preventDefault(),re(f,S,p,c,Ke);else if(y==="Home")b.preventDefault(),re(f,null,p,c,Ce);else if(y==="End")b.preventDefault(),re(f,null,p,c,Ke);else if(y.length===1){const I=k.current,O=y.toLowerCase(),W=performance.now();I.keys.length>0&&(W-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&O!==I.keys[0]&&(I.repeating=!1)),I.lastTime=W,I.keys.push(O);const _=S&&!I.repeating&&Je(S,I);I.previousKeyMatched&&(_||re(f,S,!1,c,Ce,I))?b.preventDefault():I.previousKeyMatched=!1}m&&m(b)},L=we(C,o);let g=-1;u.Children.forEach(l,(b,f)=>{if(!u.isValidElement(b)){g===f&&(g+=1,g>=l.length&&(g=-1));return}b.props.disabled||(x==="selectedMenu"&&b.props.selected||g===-1)&&(g=f),g===f&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(g+=1,g>=l.length&&(g=-1))});const P=u.Children.map(l,(b,f)=>{if(f===g){const y={};return i&&(y.autoFocus=!0),b.props.tabIndex===void 0&&x==="selectedMenu"&&(y.tabIndex=0),u.cloneElement(b,y)}return b});return v.jsx(io,s({role:"menu",ref:L,className:r,onKeyDown:w,tabIndex:a?0:-1},h,{children:P}))}),po=co;function fo(e){return A("MuiMenu",e)}j("MuiMenu",["root","paper","list"]);const bo=["onEntering"],mo=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],go={vertical:"top",horizontal:"right"},vo={vertical:"top",horizontal:"left"},ho=e=>{const{classes:t}=e;return U({root:["root"],paper:["paper"],list:["list"]},fo,t)},xo=$(ht,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Co=$(xt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Io=$(po,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),yo=u.forwardRef(function(t,o){var n,a;const i=V({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:r,className:c,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:x,open:h,PaperProps:C={},PopoverClasses:k,transitionDuration:w="auto",TransitionProps:{onEntering:L}={},variant:g="selectedMenu",slots:P={},slotProps:b={}}=i,f=N(i.TransitionProps,bo),y=N(i,mo),S=Ct(),I=S.direction==="rtl",O=s({},i,{autoFocus:l,disableAutoFocusItem:p,MenuListProps:m,onEntering:L,PaperProps:C,transitionDuration:w,TransitionProps:f,variant:g}),W=ho(O),_=l&&!p&&h,z=u.useRef(null),H=(E,G)=>{z.current&&z.current.adjustStyleForScrollbar(E,S),L&&L(E,G)},D=E=>{E.key==="Tab"&&(E.preventDefault(),x&&x(E,"tabKeyDown"))};let B=-1;u.Children.map(r,(E,G)=>{u.isValidElement(E)&&(E.props.disabled||(g==="selectedMenu"&&E.props.selected||B===-1)&&(B=G))});const X=(n=P.paper)!=null?n:Co,Y=(a=b.paper)!=null?a:C,K=Te({elementType:P.root,externalSlotProps:b.root,ownerState:O,className:[W.root,c]}),M=Te({elementType:X,externalSlotProps:Y,ownerState:O,className:W.paper});return v.jsx(xo,s({onClose:x,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?go:vo,slots:{paper:X,root:P.root},slotProps:{root:K,paper:M},open:h,ref:o,transitionDuration:w,TransitionProps:s({onEntering:H},f),ownerState:O},y,{classes:k,children:v.jsx(Io,s({onKeyDown:D,actions:z,autoFocus:l&&(B===-1||p),autoFocusItem:_,variant:g},m,{className:Z(W.list,m.className),children:r}))}))}),Ro=yo;function So(e){return A("MuiNativeSelect",e)}const $o=j("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Fe=$o,Po=["className","disabled","error","IconComponent","inputRef","variant"],Mo=e=>{const{classes:t,variant:o,disabled:n,multiple:a,open:i,error:l}=e,r={select:["select",o,n&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${ne(o)}`,i&&"iconOpen",n&&"disabled"]};return U(r,So,t)},Qe=({ownerState:e,theme:t})=>s({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":s({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Fe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ko=$("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:T,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Fe.multiple}`]:t.multiple}]}})(Qe),Ze=({ownerState:e,theme:t})=>s({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Fe.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),wo=$("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ne(o.variant)}`],o.open&&t.iconOpen]}})(Ze),Fo=u.forwardRef(function(t,o){const{className:n,disabled:a,error:i,IconComponent:l,inputRef:r,variant:c="standard"}=t,p=N(t,Po),m=s({},t,{disabled:a,variant:c,error:i}),x=Mo(m);return v.jsxs(u.Fragment,{children:[v.jsx(ko,s({ownerState:m,className:Z(x.select,n),disabled:a,ref:r||o},p)),t.multiple?null:v.jsx(wo,{as:l,ownerState:m,className:x.icon})]})}),Lo=Fo;var qe;const Oo=["children","classes","className","label","notched"],No=$("fieldset",{shouldForwardProp:T})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Eo=$("legend",{shouldForwardProp:T})(({ownerState:e,theme:t})=>s({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&s({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Bo(e){const{className:t,label:o,notched:n}=e,a=N(e,Oo),i=o!=null&&o!=="",l=s({},e,{notched:n,withLabel:i});return v.jsx(No,s({"aria-hidden":!0,className:t,ownerState:l},a,{children:v.jsx(Eo,{ownerState:l,children:i?v.jsx("span",{children:o}):qe||(qe=v.jsx("span",{className:"notranslate",children:"​"}))})}))}const Wo=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Do=e=>{const{classes:t}=e,n=U({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Mt,t);return s({},t,n)},jo=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$e})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return s({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${q.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${q.focused} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${q.error} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${q.disabled} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&s({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Ao=$(Bo,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),To=$(Pe,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Me})(({theme:e,ownerState:t})=>s({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Ye=u.forwardRef(function(t,o){var n,a,i,l,r;const c=V({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:x="input",label:h,multiline:C=!1,notched:k,slots:w={},type:L="text"}=c,g=N(c,Wo),P=Do(c),b=be(),f=me({props:c,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y=s({},c,{color:f.color||"primary",disabled:f.disabled,error:f.error,focused:f.focused,formControl:b,fullWidth:m,hiddenLabel:f.hiddenLabel,multiline:C,size:f.size,type:L}),S=(n=(a=w.root)!=null?a:p.Root)!=null?n:jo,I=(i=(l=w.input)!=null?l:p.Input)!=null?i:To;return v.jsx(ke,s({slots:{root:S,input:I},renderSuffix:O=>v.jsx(Ao,{ownerState:y,className:P.notchedOutline,label:h!=null&&h!==""&&f.required?r||(r=v.jsxs(u.Fragment,{children:[h," ","*"]})):h,notched:typeof k<"u"?k:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:m,inputComponent:x,multiline:C,ref:o,type:L},g,{classes:s({},P,{notchedOutline:null})}))});Ye.muiName="Input";const Uo=Ye;function _o(e){return A("MuiSelect",e)}const zo=j("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ae=zo;var Ve;const Ko=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qo=$("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${ae.select}`]:t.select},{[`&.${ae.select}`]:t[o.variant]},{[`&.${ae.error}`]:t.error},{[`&.${ae.multiple}`]:t.multiple}]}})(Qe,{[`&.${ae.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Vo=$("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ne(o.variant)}`],o.open&&t.iconOpen]}})(Ze),Ho=$("input",{shouldForwardProp:e=>It(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function He(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Xo(e){return e==null||typeof e=="string"&&!e.trim()}const Go=e=>{const{classes:t,variant:o,disabled:n,multiple:a,open:i,error:l}=e,r={select:["select",o,n&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${ne(o)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return U(r,_o,t)},Jo=u.forwardRef(function(t,o){var n;const{"aria-describedby":a,"aria-label":i,autoFocus:l,autoWidth:r,children:c,className:p,defaultOpen:m,defaultValue:x,disabled:h,displayEmpty:C,error:k=!1,IconComponent:w,inputRef:L,labelId:g,MenuProps:P={},multiple:b,name:f,onBlur:y,onChange:S,onClose:I,onFocus:O,onOpen:W,open:_,readOnly:z,renderValue:H,SelectDisplayProps:D={},tabIndex:B,value:X,variant:Y="standard"}=t,K=N(t,Ko),[M,E]=ze({controlled:X,default:x,name:"Select"}),[G,tt]=ze({controlled:_,default:m,name:"Select"}),Oe=u.useRef(null),J=u.useRef(null),[ee,ot]=u.useState(null),{current:ge}=u.useRef(_!=null),[nt,Ne]=u.useState(),st=we(o,L),rt=u.useCallback(d=>{J.current=d,d&&ot(d)},[]),ie=ee==null?void 0:ee.parentNode;u.useImperativeHandle(st,()=>({focus:()=>{J.current.focus()},node:Oe.current,value:M}),[M]),u.useEffect(()=>{m&&G&&ee&&!ge&&(Ne(r?null:ie.clientWidth),J.current.focus())},[ee,r]),u.useEffect(()=>{l&&J.current.focus()},[l]),u.useEffect(()=>{if(!g)return;const d=Ie(J.current).getElementById(g);if(d){const R=()=>{getSelection().isCollapsed&&J.current.focus()};return d.addEventListener("click",R),()=>{d.removeEventListener("click",R)}}},[g]);const de=(d,R)=>{d?W&&W(R):I&&I(R),ge||(Ne(r?null:ie.clientWidth),tt(d))},at=d=>{d.button===0&&(d.preventDefault(),J.current.focus(),de(!0,d))},lt=d=>{de(!1,d)},Ee=u.Children.toArray(c),it=d=>{const R=Ee.find(F=>F.props.value===d.target.value);R!==void 0&&(E(R.props.value),S&&S(d,R))},dt=d=>R=>{let F;if(R.currentTarget.hasAttribute("tabindex")){if(b){F=Array.isArray(M)?M.slice():[];const oe=M.indexOf(d.props.value);oe===-1?F.push(d.props.value):F.splice(oe,1)}else F=d.props.value;if(d.props.onClick&&d.props.onClick(R),M!==F&&(E(F),S)){const oe=R.nativeEvent||R,Ae=new oe.constructor(oe.type,oe);Object.defineProperty(Ae,"target",{writable:!0,value:{value:F,name:f}}),S(Ae,d)}b||de(!1,R)}},ut=d=>{z||[" ","ArrowUp","ArrowDown","Enter"].indexOf(d.key)!==-1&&(d.preventDefault(),de(!0,d))},ue=ee!==null&&G,ct=d=>{!ue&&y&&(Object.defineProperty(d,"target",{writable:!0,value:{value:M,name:f}}),y(d))};delete K["aria-invalid"];let te,Be;const ce=[];let pe=!1;(yt({value:M})||C)&&(H?te=H(M):pe=!0);const pt=Ee.map(d=>{if(!u.isValidElement(d))return null;let R;if(b){if(!Array.isArray(M))throw new Error(bt(2));R=M.some(F=>He(F,d.props.value)),R&&pe&&ce.push(d.props.children)}else R=He(M,d.props.value),R&&pe&&(Be=d.props.children);return u.cloneElement(d,{"aria-selected":R?"true":"false",onClick:dt(d),onKeyUp:F=>{F.key===" "&&F.preventDefault(),d.props.onKeyUp&&d.props.onKeyUp(F)},role:"option",selected:R,value:void 0,"data-value":d.props.value})});pe&&(b?ce.length===0?te=null:te=ce.reduce((d,R,F)=>(d.push(R),F{const{classes:t}=e;return t},Le={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>T(e)&&e!=="variant",slot:"Root"},tn=$(Gt,Le)(""),on=$(Uo,Le)(""),nn=$(Wt,Le)(""),et=u.forwardRef(function(t,o){const n=V({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:i,classes:l={},className:r,defaultOpen:c=!1,displayEmpty:p=!1,IconComponent:m=Lt,id:x,input:h,inputProps:C,label:k,labelId:w,MenuProps:L,multiple:g=!1,native:P=!1,onClose:b,onOpen:f,open:y,renderValue:S,SelectDisplayProps:I,variant:O="outlined"}=n,W=N(n,Zo),_=P?Lo:Qo,z=be(),H=me({props:n,muiFormControl:z,states:["variant","error"]}),D=H.variant||O,B=s({},n,{variant:D,classes:l}),X=en(B),Y=N(X,Yo),K=h||{standard:v.jsx(tn,{ownerState:B}),outlined:v.jsx(on,{label:k,ownerState:B}),filled:v.jsx(nn,{ownerState:B})}[D],M=we(o,K.ref);return v.jsx(u.Fragment,{children:u.cloneElement(K,s({inputComponent:_,inputProps:s({children:i,error:H.error,IconComponent:m,variant:D,type:void 0,multiple:g},P?{id:x}:{autoWidth:a,defaultOpen:c,displayEmpty:p,labelId:w,MenuProps:L,onClose:b,onOpen:f,open:y,renderValue:S,SelectDisplayProps:s({id:x},I)},C,{classes:C?ye(Y,C.classes):Y},h?h.props.inputProps:{})},g&&P&&D==="outlined"?{notched:!0}:{},{ref:M,className:Z(K.props.className,r,X.root)},!h&&{variant:D},W))})});et.muiName="Select";const ln=et;export{Lt as A,Wt as F,an as I,oo as L,Uo as O,ln as S,St as a,Gt as b,Q as f,se as i,q as o,ze as u}; +import{r as u,$ as ft,_ as s,j as v,C as V,h as N,p as ye,n as ne,H as bt}from"./index-32144865.js";import{a$ as j,cF as Re,b0 as A,cD as mt,b1 as $,cL as Se,b3 as T,cM as $e,cN as Pe,cO as Me,cP as ke,b6 as U,cI as be,cJ as me,b5 as Z,aX as gt,cQ as vt,aZ as Ie,aW as we,bK as ht,cR as xt,b9 as Ct,ba as Te,b8 as It,cS as yt}from"./index-a820256c.js";let Ue=0;function Rt(e){const[t,o]=u.useState(e),n=e||t;return u.useEffect(()=>{t==null&&(Ue+=1,o(`mui-${Ue}`))},[t]),n}const _e=ft["useId".toString()];function St(e){if(_e!==void 0){const t=_e();return e??t}return Rt(e)}function ze({controlled:e,default:t,name:o,state:n="value"}){const{current:a}=u.useRef(e!==void 0),[i,l]=u.useState(t),r=a?e:i,c=u.useCallback(p=>{a||l(p)},[]);return[r,c]}function $t(e){return A("MuiInput",e)}const Pt=s({},Re,j("MuiInput",["root","underline","input"])),se=Pt;function Mt(e){return A("MuiOutlinedInput",e)}const kt=s({},Re,j("MuiOutlinedInput",["root","notchedOutline","input"])),q=kt;function wt(e){return A("MuiFilledInput",e)}const Ft=s({},Re,j("MuiFilledInput",["root","underline","input"])),Q=Ft,Lt=mt(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ot=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Nt=e=>{const{classes:t,disableUnderline:o}=e,a=U({root:["root",!o&&"underline"],input:["input"]},wt,t);return s({},t,a)},Et=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...$e(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return s({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Q.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Q.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Q.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Q.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Q.disabled}, .${Q.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Q.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&s({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Bt=$(Pe,{name:"MuiFilledInput",slot:"Input",overridesResolver:Me})(({theme:e,ownerState:t})=>s({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Xe=u.forwardRef(function(t,o){var n,a,i,l;const r=V({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:p,fullWidth:m=!1,inputComponent:x="input",multiline:h=!1,slotProps:C,slots:k={},type:w="text"}=r,L=N(r,Ot),g=s({},r,{fullWidth:m,inputComponent:x,multiline:h,type:w}),P=Nt(r),b={root:{ownerState:g},input:{ownerState:g}},f=C??p?ye(b,C??p):b,y=(n=(a=k.root)!=null?a:c.Root)!=null?n:Et,S=(i=(l=k.input)!=null?l:c.Input)!=null?i:Bt;return v.jsx(ke,s({slots:{root:y,input:S},componentsProps:f,fullWidth:m,inputComponent:x,multiline:h,ref:o,type:w},L,{classes:P}))});Xe.muiName="Input";const Wt=Xe;function Dt(e){return A("MuiFormLabel",e)}const jt=j("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),le=jt,At=["children","className","color","component","disabled","error","filled","focused","required"],Tt=e=>{const{classes:t,color:o,focused:n,disabled:a,error:i,filled:l,required:r}=e,c={root:["root",`color${ne(o)}`,a&&"disabled",i&&"error",l&&"filled",n&&"focused",r&&"required"],asterisk:["asterisk",i&&"error"]};return U(c,Dt,t)},Ut=$("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>s({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>s({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${le.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${le.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${le.error}`]:{color:(e.vars||e).palette.error.main}})),_t=$("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${le.error}`]:{color:(e.vars||e).palette.error.main}})),zt=u.forwardRef(function(t,o){const n=V({props:t,name:"MuiFormLabel"}),{children:a,className:i,component:l="label"}=n,r=N(n,At),c=be(),p=me({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),m=s({},n,{color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),x=Tt(m);return v.jsxs(Ut,s({as:l,ownerState:m,className:Z(x.root,i),ref:o},r,{children:[a,p.required&&v.jsxs(_t,{ownerState:m,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}))}),Kt=zt,qt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Vt=e=>{const{classes:t,disableUnderline:o}=e,a=U({root:["root",!o&&"underline"],input:["input"]},$t,t);return s({},t,a)},Ht=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...$e(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),s({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${se.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${se.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${se.disabled}, .${se.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${se.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Xt=$(Pe,{name:"MuiInput",slot:"Input",overridesResolver:Me})({}),Ge=u.forwardRef(function(t,o){var n,a,i,l;const r=V({props:t,name:"MuiInput"}),{disableUnderline:c,components:p={},componentsProps:m,fullWidth:x=!1,inputComponent:h="input",multiline:C=!1,slotProps:k,slots:w={},type:L="text"}=r,g=N(r,qt),P=Vt(r),f={root:{ownerState:{disableUnderline:c}}},y=k??m?ye(k??m,f):f,S=(n=(a=w.root)!=null?a:p.Root)!=null?n:Ht,I=(i=(l=w.input)!=null?l:p.Input)!=null?i:Xt;return v.jsx(ke,s({slots:{root:S,input:I},slotProps:y,fullWidth:x,inputComponent:h,multiline:C,ref:o,type:L},g,{classes:P}))});Ge.muiName="Input";const Gt=Ge;function Jt(e){return A("MuiInputLabel",e)}j("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Qt=["disableAnimation","margin","shrink","variant","className"],Zt=e=>{const{classes:t,formControl:o,size:n,shrink:a,disableAnimation:i,variant:l,required:r}=e,c={root:["root",o&&"formControl",!i&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ne(n)}`,l],asterisk:[r&&"asterisk"]},p=U(c,Jt,t);return s({},t,p)},Yt=$(Kt,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${le.asterisk}`]:t.asterisk},t.root,o.formControl&&t.formControl,o.size==="small"&&t.sizeSmall,o.shrink&&t.shrink,!o.disableAnimation&&t.animated,o.focused&&t.focused,t[o.variant]]}})(({theme:e,ownerState:t})=>s({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&s({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&s({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&s({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),eo=u.forwardRef(function(t,o){const n=V({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:i,className:l}=n,r=N(n,Qt),c=be();let p=i;typeof p>"u"&&c&&(p=c.filled||c.focused||c.adornedStart);const m=me({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),x=s({},n,{disableAnimation:a,formControl:c,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),h=Zt(x);return v.jsx(Yt,s({"data-shrink":p,ownerState:x,ref:o,className:Z(h.root,l)},r,{classes:h}))}),an=eo,to=u.createContext({}),oo=to;function no(e){return A("MuiList",e)}j("MuiList",["root","padding","dense","subheader"]);const so=["children","className","component","dense","disablePadding","subheader"],ro=e=>{const{classes:t,disablePadding:o,dense:n,subheader:a}=e;return U({root:["root",!o&&"padding",n&&"dense",a&&"subheader"]},no,t)},ao=$("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})(({ownerState:e})=>s({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),lo=u.forwardRef(function(t,o){const n=V({props:t,name:"MuiList"}),{children:a,className:i,component:l="ul",dense:r=!1,disablePadding:c=!1,subheader:p}=n,m=N(n,so),x=u.useMemo(()=>({dense:r}),[r]),h=s({},n,{component:l,dense:r,disablePadding:c}),C=ro(h);return v.jsx(oo.Provider,{value:x,children:v.jsxs(ao,s({as:l,className:Z(C.root,i),ref:o,ownerState:h},m,{children:[p,a]}))})}),io=lo,uo=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ce(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function Ke(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function Je(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.indexOf(t.keys.join(""))===0}function re(e,t,o,n,a,i){let l=!1,r=a(e,t,t?o:!1);for(;r;){if(r===e.firstChild){if(l)return!1;l=!0}const c=n?!1:r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||!Je(r,i)||c)r=a(e,r,o);else return r.focus(),!0}return!1}const co=u.forwardRef(function(t,o){const{actions:n,autoFocus:a=!1,autoFocusItem:i=!1,children:l,className:r,disabledItemsFocusable:c=!1,disableListWrap:p=!1,onKeyDown:m,variant:x="selectedMenu"}=t,h=N(t,uo),C=u.useRef(null),k=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});gt(()=>{a&&C.current.focus()},[a]),u.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,f)=>{const y=!C.current.style.width;if(b.clientHeight{const f=C.current,y=b.key,S=Ie(f).activeElement;if(y==="ArrowDown")b.preventDefault(),re(f,S,p,c,Ce);else if(y==="ArrowUp")b.preventDefault(),re(f,S,p,c,Ke);else if(y==="Home")b.preventDefault(),re(f,null,p,c,Ce);else if(y==="End")b.preventDefault(),re(f,null,p,c,Ke);else if(y.length===1){const I=k.current,O=y.toLowerCase(),W=performance.now();I.keys.length>0&&(W-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&O!==I.keys[0]&&(I.repeating=!1)),I.lastTime=W,I.keys.push(O);const _=S&&!I.repeating&&Je(S,I);I.previousKeyMatched&&(_||re(f,S,!1,c,Ce,I))?b.preventDefault():I.previousKeyMatched=!1}m&&m(b)},L=we(C,o);let g=-1;u.Children.forEach(l,(b,f)=>{if(!u.isValidElement(b)){g===f&&(g+=1,g>=l.length&&(g=-1));return}b.props.disabled||(x==="selectedMenu"&&b.props.selected||g===-1)&&(g=f),g===f&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(g+=1,g>=l.length&&(g=-1))});const P=u.Children.map(l,(b,f)=>{if(f===g){const y={};return i&&(y.autoFocus=!0),b.props.tabIndex===void 0&&x==="selectedMenu"&&(y.tabIndex=0),u.cloneElement(b,y)}return b});return v.jsx(io,s({role:"menu",ref:L,className:r,onKeyDown:w,tabIndex:a?0:-1},h,{children:P}))}),po=co;function fo(e){return A("MuiMenu",e)}j("MuiMenu",["root","paper","list"]);const bo=["onEntering"],mo=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],go={vertical:"top",horizontal:"right"},vo={vertical:"top",horizontal:"left"},ho=e=>{const{classes:t}=e;return U({root:["root"],paper:["paper"],list:["list"]},fo,t)},xo=$(ht,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Co=$(xt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Io=$(po,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),yo=u.forwardRef(function(t,o){var n,a;const i=V({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:r,className:c,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:x,open:h,PaperProps:C={},PopoverClasses:k,transitionDuration:w="auto",TransitionProps:{onEntering:L}={},variant:g="selectedMenu",slots:P={},slotProps:b={}}=i,f=N(i.TransitionProps,bo),y=N(i,mo),S=Ct(),I=S.direction==="rtl",O=s({},i,{autoFocus:l,disableAutoFocusItem:p,MenuListProps:m,onEntering:L,PaperProps:C,transitionDuration:w,TransitionProps:f,variant:g}),W=ho(O),_=l&&!p&&h,z=u.useRef(null),H=(E,G)=>{z.current&&z.current.adjustStyleForScrollbar(E,S),L&&L(E,G)},D=E=>{E.key==="Tab"&&(E.preventDefault(),x&&x(E,"tabKeyDown"))};let B=-1;u.Children.map(r,(E,G)=>{u.isValidElement(E)&&(E.props.disabled||(g==="selectedMenu"&&E.props.selected||B===-1)&&(B=G))});const X=(n=P.paper)!=null?n:Co,Y=(a=b.paper)!=null?a:C,K=Te({elementType:P.root,externalSlotProps:b.root,ownerState:O,className:[W.root,c]}),M=Te({elementType:X,externalSlotProps:Y,ownerState:O,className:W.paper});return v.jsx(xo,s({onClose:x,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?go:vo,slots:{paper:X,root:P.root},slotProps:{root:K,paper:M},open:h,ref:o,transitionDuration:w,TransitionProps:s({onEntering:H},f),ownerState:O},y,{classes:k,children:v.jsx(Io,s({onKeyDown:D,actions:z,autoFocus:l&&(B===-1||p),autoFocusItem:_,variant:g},m,{className:Z(W.list,m.className),children:r}))}))}),Ro=yo;function So(e){return A("MuiNativeSelect",e)}const $o=j("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Fe=$o,Po=["className","disabled","error","IconComponent","inputRef","variant"],Mo=e=>{const{classes:t,variant:o,disabled:n,multiple:a,open:i,error:l}=e,r={select:["select",o,n&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${ne(o)}`,i&&"iconOpen",n&&"disabled"]};return U(r,So,t)},Qe=({ownerState:e,theme:t})=>s({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":s({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Fe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ko=$("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:T,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Fe.multiple}`]:t.multiple}]}})(Qe),Ze=({ownerState:e,theme:t})=>s({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Fe.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),wo=$("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ne(o.variant)}`],o.open&&t.iconOpen]}})(Ze),Fo=u.forwardRef(function(t,o){const{className:n,disabled:a,error:i,IconComponent:l,inputRef:r,variant:c="standard"}=t,p=N(t,Po),m=s({},t,{disabled:a,variant:c,error:i}),x=Mo(m);return v.jsxs(u.Fragment,{children:[v.jsx(ko,s({ownerState:m,className:Z(x.select,n),disabled:a,ref:r||o},p)),t.multiple?null:v.jsx(wo,{as:l,ownerState:m,className:x.icon})]})}),Lo=Fo;var qe;const Oo=["children","classes","className","label","notched"],No=$("fieldset",{shouldForwardProp:T})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Eo=$("legend",{shouldForwardProp:T})(({ownerState:e,theme:t})=>s({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&s({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Bo(e){const{className:t,label:o,notched:n}=e,a=N(e,Oo),i=o!=null&&o!=="",l=s({},e,{notched:n,withLabel:i});return v.jsx(No,s({"aria-hidden":!0,className:t,ownerState:l},a,{children:v.jsx(Eo,{ownerState:l,children:i?v.jsx("span",{children:o}):qe||(qe=v.jsx("span",{className:"notranslate",children:"​"}))})}))}const Wo=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Do=e=>{const{classes:t}=e,n=U({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Mt,t);return s({},t,n)},jo=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$e})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return s({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${q.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${q.focused} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${q.error} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${q.disabled} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&s({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Ao=$(Bo,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),To=$(Pe,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Me})(({theme:e,ownerState:t})=>s({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Ye=u.forwardRef(function(t,o){var n,a,i,l,r;const c=V({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:x="input",label:h,multiline:C=!1,notched:k,slots:w={},type:L="text"}=c,g=N(c,Wo),P=Do(c),b=be(),f=me({props:c,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y=s({},c,{color:f.color||"primary",disabled:f.disabled,error:f.error,focused:f.focused,formControl:b,fullWidth:m,hiddenLabel:f.hiddenLabel,multiline:C,size:f.size,type:L}),S=(n=(a=w.root)!=null?a:p.Root)!=null?n:jo,I=(i=(l=w.input)!=null?l:p.Input)!=null?i:To;return v.jsx(ke,s({slots:{root:S,input:I},renderSuffix:O=>v.jsx(Ao,{ownerState:y,className:P.notchedOutline,label:h!=null&&h!==""&&f.required?r||(r=v.jsxs(u.Fragment,{children:[h," ","*"]})):h,notched:typeof k<"u"?k:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:m,inputComponent:x,multiline:C,ref:o,type:L},g,{classes:s({},P,{notchedOutline:null})}))});Ye.muiName="Input";const Uo=Ye;function _o(e){return A("MuiSelect",e)}const zo=j("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ae=zo;var Ve;const Ko=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qo=$("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${ae.select}`]:t.select},{[`&.${ae.select}`]:t[o.variant]},{[`&.${ae.error}`]:t.error},{[`&.${ae.multiple}`]:t.multiple}]}})(Qe,{[`&.${ae.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Vo=$("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ne(o.variant)}`],o.open&&t.iconOpen]}})(Ze),Ho=$("input",{shouldForwardProp:e=>It(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function He(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Xo(e){return e==null||typeof e=="string"&&!e.trim()}const Go=e=>{const{classes:t,variant:o,disabled:n,multiple:a,open:i,error:l}=e,r={select:["select",o,n&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${ne(o)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return U(r,_o,t)},Jo=u.forwardRef(function(t,o){var n;const{"aria-describedby":a,"aria-label":i,autoFocus:l,autoWidth:r,children:c,className:p,defaultOpen:m,defaultValue:x,disabled:h,displayEmpty:C,error:k=!1,IconComponent:w,inputRef:L,labelId:g,MenuProps:P={},multiple:b,name:f,onBlur:y,onChange:S,onClose:I,onFocus:O,onOpen:W,open:_,readOnly:z,renderValue:H,SelectDisplayProps:D={},tabIndex:B,value:X,variant:Y="standard"}=t,K=N(t,Ko),[M,E]=ze({controlled:X,default:x,name:"Select"}),[G,tt]=ze({controlled:_,default:m,name:"Select"}),Oe=u.useRef(null),J=u.useRef(null),[ee,ot]=u.useState(null),{current:ge}=u.useRef(_!=null),[nt,Ne]=u.useState(),st=we(o,L),rt=u.useCallback(d=>{J.current=d,d&&ot(d)},[]),ie=ee==null?void 0:ee.parentNode;u.useImperativeHandle(st,()=>({focus:()=>{J.current.focus()},node:Oe.current,value:M}),[M]),u.useEffect(()=>{m&&G&&ee&&!ge&&(Ne(r?null:ie.clientWidth),J.current.focus())},[ee,r]),u.useEffect(()=>{l&&J.current.focus()},[l]),u.useEffect(()=>{if(!g)return;const d=Ie(J.current).getElementById(g);if(d){const R=()=>{getSelection().isCollapsed&&J.current.focus()};return d.addEventListener("click",R),()=>{d.removeEventListener("click",R)}}},[g]);const de=(d,R)=>{d?W&&W(R):I&&I(R),ge||(Ne(r?null:ie.clientWidth),tt(d))},at=d=>{d.button===0&&(d.preventDefault(),J.current.focus(),de(!0,d))},lt=d=>{de(!1,d)},Ee=u.Children.toArray(c),it=d=>{const R=Ee.find(F=>F.props.value===d.target.value);R!==void 0&&(E(R.props.value),S&&S(d,R))},dt=d=>R=>{let F;if(R.currentTarget.hasAttribute("tabindex")){if(b){F=Array.isArray(M)?M.slice():[];const oe=M.indexOf(d.props.value);oe===-1?F.push(d.props.value):F.splice(oe,1)}else F=d.props.value;if(d.props.onClick&&d.props.onClick(R),M!==F&&(E(F),S)){const oe=R.nativeEvent||R,Ae=new oe.constructor(oe.type,oe);Object.defineProperty(Ae,"target",{writable:!0,value:{value:F,name:f}}),S(Ae,d)}b||de(!1,R)}},ut=d=>{z||[" ","ArrowUp","ArrowDown","Enter"].indexOf(d.key)!==-1&&(d.preventDefault(),de(!0,d))},ue=ee!==null&&G,ct=d=>{!ue&&y&&(Object.defineProperty(d,"target",{writable:!0,value:{value:M,name:f}}),y(d))};delete K["aria-invalid"];let te,Be;const ce=[];let pe=!1;(yt({value:M})||C)&&(H?te=H(M):pe=!0);const pt=Ee.map(d=>{if(!u.isValidElement(d))return null;let R;if(b){if(!Array.isArray(M))throw new Error(bt(2));R=M.some(F=>He(F,d.props.value)),R&&pe&&ce.push(d.props.children)}else R=He(M,d.props.value),R&&pe&&(Be=d.props.children);return u.cloneElement(d,{"aria-selected":R?"true":"false",onClick:dt(d),onKeyUp:F=>{F.key===" "&&F.preventDefault(),d.props.onKeyUp&&d.props.onKeyUp(F)},role:"option",selected:R,value:void 0,"data-value":d.props.value})});pe&&(b?ce.length===0?te=null:te=ce.reduce((d,R,F)=>(d.push(R),F{const{classes:t}=e;return t},Le={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>T(e)&&e!=="variant",slot:"Root"},tn=$(Gt,Le)(""),on=$(Uo,Le)(""),nn=$(Wt,Le)(""),et=u.forwardRef(function(t,o){const n=V({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:i,classes:l={},className:r,defaultOpen:c=!1,displayEmpty:p=!1,IconComponent:m=Lt,id:x,input:h,inputProps:C,label:k,labelId:w,MenuProps:L,multiple:g=!1,native:P=!1,onClose:b,onOpen:f,open:y,renderValue:S,SelectDisplayProps:I,variant:O="outlined"}=n,W=N(n,Zo),_=P?Lo:Qo,z=be(),H=me({props:n,muiFormControl:z,states:["variant","error"]}),D=H.variant||O,B=s({},n,{variant:D,classes:l}),X=en(B),Y=N(X,Yo),K=h||{standard:v.jsx(tn,{ownerState:B}),outlined:v.jsx(on,{label:k,ownerState:B}),filled:v.jsx(nn,{ownerState:B})}[D],M=we(o,K.ref);return v.jsx(u.Fragment,{children:u.cloneElement(K,s({inputComponent:_,inputProps:s({children:i,error:H.error,IconComponent:m,variant:D,type:void 0,multiple:g},P?{id:x}:{autoWidth:a,defaultOpen:c,displayEmpty:p,labelId:w,MenuProps:L,onClose:b,onOpen:f,open:y,renderValue:S,SelectDisplayProps:s({id:x},I)},C,{classes:C?ye(Y,C.classes):Y},h?h.props.inputProps:{})},g&&P&&D==="outlined"?{notched:!0}:{},{ref:M,className:Z(K.props.className,r,X.root)},!h&&{variant:D},W))})});et.muiName="Select";const ln=et;export{Lt as A,Wt as F,an as I,oo as L,Uo as O,ln as S,St as a,Gt as b,Q as f,se as i,q as o,ze as u}; diff --git a/build/assets/Skeleton-5410b08c.js b/build/assets/Skeleton-d791a65b.js similarity index 93% rename from build/assets/Skeleton-5410b08c.js rename to build/assets/Skeleton-d791a65b.js index 51eef20f8..9db3d4dd2 100644 --- a/build/assets/Skeleton-5410b08c.js +++ b/build/assets/Skeleton-d791a65b.js @@ -1,4 +1,4 @@ -import{_ as s,E as y,r as w,C as R,h as _,j as S}from"./index-b639b6f9.js";import{b0 as $,a$ as U,cx as b,b1 as M,cy as u,b5 as j,b6 as A}from"./index-06aeb711.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function E(t){return parseFloat(t)}function N(t){return $("MuiSkeleton",t)}U("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,m,g,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:o}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!o&&"heightAuto"]},N,a)},K=b(p||(p=r` +import{_ as s,E as y,r as w,C as R,h as _,j as S}from"./index-32144865.js";import{b0 as $,a$ as U,cx as b,b1 as M,cy as u,b5 as j,b6 as A}from"./index-a820256c.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function E(t){return parseFloat(t)}function N(t){return $("MuiSkeleton",t)}U("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,m,g,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:o}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!o&&"heightAuto"]},N,a)},K=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-7b625e8c.js b/build/assets/SoundCloud-370f2397.js similarity index 95% rename from build/assets/SoundCloud-7b625e8c.js rename to build/assets/SoundCloud-370f2397.js index 0fdef7007..eba6e20b3 100644 --- a/build/assets/SoundCloud-7b625e8c.js +++ b/build/assets/SoundCloud-370f2397.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-b639b6f9.js";import{u as b,p as v}from"./index-728012ea.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{g as P,r as g}from"./index-32144865.js";import{u as b,p as v}from"./index-d9ff45b3.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Streamable-02f6d6ff.js b/build/assets/Streamable-b74b3979.js similarity index 95% rename from build/assets/Streamable-02f6d6ff.js rename to build/assets/Streamable-b74b3979.js index c88fd9c07..381e962ae 100644 --- a/build/assets/Streamable-02f6d6ff.js +++ b/build/assets/Streamable-b74b3979.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-b639b6f9.js";import{u as _,p as b}from"./index-728012ea.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; +import{g as m,r as f}from"./index-32144865.js";import{u as _,p as b}from"./index-d9ff45b3.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/build/assets/Twitch-f6c2e381.js b/build/assets/Twitch-34b4cf9c.js similarity index 95% rename from build/assets/Twitch-f6c2e381.js rename to build/assets/Twitch-34b4cf9c.js index 1ad84225f..a204b4ebb 100644 --- a/build/assets/Twitch-f6c2e381.js +++ b/build/assets/Twitch-34b4cf9c.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-b639b6f9.js";import{u as C,p as N}from"./index-728012ea.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{g as w,r as D}from"./index-32144865.js";import{u as C,p as N}from"./index-d9ff45b3.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Vidyard-a3146ae7.js b/build/assets/Vidyard-d5f9b421.js similarity index 95% rename from build/assets/Vidyard-a3146ae7.js rename to build/assets/Vidyard-d5f9b421.js index 154f45ca3..47316726b 100644 --- a/build/assets/Vidyard-a3146ae7.js +++ b/build/assets/Vidyard-d5f9b421.js @@ -1 +1 @@ -import{g,r as v}from"./index-b639b6f9.js";import{u as b,p as O}from"./index-728012ea.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{g,r as v}from"./index-32144865.js";import{u as b,p as O}from"./index-d9ff45b3.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; diff --git a/build/assets/Vimeo-7d27e522.js b/build/assets/Vimeo-0e587634.js similarity index 96% rename from build/assets/Vimeo-7d27e522.js rename to build/assets/Vimeo-0e587634.js index d14fd4491..3a42e07ba 100644 --- a/build/assets/Vimeo-7d27e522.js +++ b/build/assets/Vimeo-0e587634.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-b639b6f9.js";import{u as m,p as _}from"./index-728012ea.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{g as d,r as f}from"./index-32144865.js";import{u as m,p as _}from"./index-d9ff45b3.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/build/assets/Wistia-05302f1c.js b/build/assets/Wistia-7ca4ce66.js similarity index 96% rename from build/assets/Wistia-05302f1c.js rename to build/assets/Wistia-7ca4ce66.js index d7cfa840f..2140c405b 100644 --- a/build/assets/Wistia-05302f1c.js +++ b/build/assets/Wistia-7ca4ce66.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-b639b6f9.js";import{u as v,p as w}from"./index-728012ea.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{g as m,r as g}from"./index-32144865.js";import{u as v,p as w}from"./index-d9ff45b3.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-aecf8ec2.js b/build/assets/YouTube-6a5e094a.js similarity index 97% rename from build/assets/YouTube-aecf8ec2.js rename to build/assets/YouTube-6a5e094a.js index a4122f697..ca92f04f6 100644 --- a/build/assets/YouTube-aecf8ec2.js +++ b/build/assets/YouTube-6a5e094a.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-b639b6f9.js";import{u as L,p as Y}from"./index-728012ea.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{g as U,r as I}from"./index-32144865.js";import{u as L,p as Y}from"./index-d9ff45b3.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/build/assets/constants-b28599d8.js b/build/assets/constants-fce7955b.js similarity index 99% rename from build/assets/constants-b28599d8.js rename to build/assets/constants-fce7955b.js index 9c9668363..0f9260d45 100644 --- a/build/assets/constants-b28599d8.js +++ b/build/assets/constants-fce7955b.js @@ -1,4 +1,4 @@ -import{r as C,j as u,_ as c,n as g,C as Be,h as ye,E as J,Y as Wo,a0 as He,X as Uo}from"./index-b639b6f9.js";import{T as Go}from"./index-56950d92.js";import{cD as Do,aY as no,cE as Ko,b0 as _e,a$ as We,b1 as D,b5 as V,b6 as Ue,aW as Mo,b2 as yo,cF as Le,c4 as No,cG as Eo,cH as jo,cx as Ho,cy as Vo,cI as qo,cJ as Yo,bI as Jo,cK as Xo}from"./index-06aeb711.js";import{a as Bo,u as bo,i as mo,o as Io,f as Ve,A as Zo,I as Qo,S as et,b as ot,F as tt,O as rt}from"./Select-631e4391.js";const at=e=>{const o=C.useRef({});return C.useEffect(()=>{o.current=e}),o.current},nt=at,lt=Do(u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Po(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function it(e={}){const{ignoreAccents:o=!0,ignoreCase:n=!0,limit:l,matchFrom:d="any",stringify:x,trim:f=!1}=e;return(s,{inputValue:y,getOptionLabel:m})=>{let P=f?y.trim():y;n&&(P=P.toLowerCase()),o&&(P=Po(P));const O=P?s.filter(U=>{let S=(x||m)(U);return n&&(S=S.toLowerCase()),o&&(S=Po(S)),d==="start"?S.indexOf(P)===0:S.indexOf(P)>-1}):s;return typeof l=="number"?O.slice(0,l):O}}function xo(e,o){for(let n=0;n{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function pt(e){const{unstable_isActiveElementInListbox:o=ct,unstable_classNamePrefix:n="Mui",autoComplete:l=!1,autoHighlight:d=!1,autoSelect:x=!1,blurOnSelect:f=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:y=!1,componentName:m="useAutocomplete",defaultValue:P=e.multiple?[]:null,disableClearable:O=!1,disableCloseOnSelect:U=!1,disabled:S,disabledItemsFocusable:A=!1,disableListWrap:X=!1,filterOptions:G=st,filterSelectedOptions:Z=!1,freeSolo:j=!1,getOptionDisabled:K,getOptionKey:te,getOptionLabel:me=r=>{var t;return(t=r.label)!=null?t:r},groupBy:re,handleHomeEndKeys:q=!e.freeSolo,id:Ie,includeInputInList:Pe=!1,inputValue:xe,isOptionEqualToValue:Q=(r,t)=>r===t,multiple:h=!1,onChange:ee,onClose:B,onHighlightChange:ie,onInputChange:N,onOpen:fe,open:he,openOnFocus:R=!1,options:ke,readOnly:se=!1,selectOnFocus:Oe=!e.freeSolo,value:ce}=e,L=Bo(Ie);let w=me;w=r=>{const t=me(r);return typeof t!="string"?String(t):t};const ve=C.useRef(!1),Ae=C.useRef(!0),T=C.useRef(null),Y=C.useRef(null),[Fe,io]=C.useState(null),[_,Ge]=C.useState(-1),Je=d?0:-1,H=C.useRef(Je),[p,ho]=bo({controlled:ce,default:P,name:m}),[I,ge]=bo({controlled:xe,default:"",name:m,state:"inputValue"}),[we,Xe]=C.useState(!1),Se=C.useCallback((r,t)=>{if(!(h?p.length!(Z&&(h?p:[p]).some(t=>t!==null&&Q(r,t)))),{inputValue:eo&&so?"":I,getOptionLabel:w}):[],ae=nt({filteredOptions:k,value:p,inputValue:I});C.useEffect(()=>{const r=p!==ae.value;we&&!r||j&&!r||Se(null,p)},[p,Se,we,ae.value,j]);const Ke=Ce&&k.length>0&&!se,ze=no(r=>{r===-1?T.current.focus():Fe.querySelector(`[data-tag-index="${r}"]`).focus()});C.useEffect(()=>{h&&_>p.length-1&&(Ge(-1),ze(-1))},[p,h,_,ze]);function De(r,t){if(!Y.current||r<0||r>=k.length)return-1;let a=r;for(;;){const i=Y.current.querySelector(`[data-option-index="${a}"]`),$=A?!1:!i||i.disabled||i.getAttribute("aria-disabled")==="true";if(i&&i.hasAttribute("tabindex")&&!$)return a;if(t==="next"?a=(a+1)%k.length:a=(a-1+k.length)%k.length,a===r)return-1}}const pe=no(({event:r,index:t,reason:a="auto"})=>{if(H.current=t,t===-1?T.current.removeAttribute("aria-activedescendant"):T.current.setAttribute("aria-activedescendant",`${L}-option-${t}`),ie&&ie(r,t===-1?null:k[t],a),!Y.current)return;const i=Y.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let $=Y.current;if(Y.current.getAttribute("role")!=="listbox"&&($=Y.current.parentElement.querySelector('[role="listbox"]')),!$)return;if(t===-1){$.scrollTop=0;return}const F=Y.current.querySelector(`[data-option-index="${t}"]`);if(F&&(F.classList.add(`${n}-focused`),a==="keyboard"&&F.classList.add(`${n}-focusVisible`),$.scrollHeight>$.clientHeight&&a!=="mouse"&&a!=="touch")){const z=F,de=$.clientHeight+$.scrollTop,$o=z.offsetTop+z.offsetHeight;$o>de?$.scrollTop=$o-$.clientHeight:z.offsetTop-z.offsetHeight*(re?1.3:0)<$.scrollTop&&($.scrollTop=z.offsetTop-z.offsetHeight*(re?1.3:0))}}),ne=no(({event:r,diff:t,direction:a="next",reason:i="auto"})=>{if(!W)return;const F=De((()=>{const z=k.length-1;if(t==="reset")return Je;if(t==="start")return 0;if(t==="end")return z;const de=H.current+t;return de<0?de===-1&&Pe?-1:X&&H.current!==-1||Math.abs(t)>1?0:z:de>z?de===z+1&&Pe?-1:X||Math.abs(t)>1?z:0:de})(),a);if(pe({index:F,reason:i,event:r}),l&&t!=="reset")if(F===-1)T.current.value=I;else{const z=w(k[F]);T.current.value=z,z.toLowerCase().indexOf(I.toLowerCase())===0&&I.length>0&&T.current.setSelectionRange(I.length,z.length)}}),Me=()=>{const r=(t,a)=>{const i=t?w(t):"",$=a?w(a):"";return i===$};if(H.current!==-1&&ae.filteredOptions&&ae.filteredOptions.length!==k.length&&ae.inputValue===I&&(h?p.length===ae.value.length&&ae.value.every((t,a)=>w(p[a])===w(t)):r(ae.value,p))){const t=ae.filteredOptions[H.current];if(t&&k.some(i=>w(i)===w(t)))return!0}return!1},qe=C.useCallback(()=>{if(!W||Me())return;const r=h?p[0]:p;if(k.length===0||r==null){ne({diff:"reset"});return}if(Y.current){if(r!=null){const t=k[H.current];if(h&&t&&xo(p,i=>Q(t,i))!==-1)return;const a=xo(k,i=>Q(i,r));a===-1?ne({diff:"reset"}):pe({index:a});return}if(H.current>=k.length-1){pe({index:k.length-1});return}pe({index:H.current})}},[k.length,h?!1:p,Z,ne,pe,W,I,h]),co=no(r=>{Ko(Y,r),r&&qe()});C.useEffect(()=>{qe()},[qe]);const oe=r=>{Ce||(Ze(!0),Qe(!0),fe&&fe(r))},be=(r,t)=>{Ce&&(Ze(!1),B&&B(r,t))},ue=(r,t,a,i)=>{if(h){if(p.length===t.length&&p.every(($,F)=>$===t[F]))return}else if(p===t)return;ee&&ee(r,t,a,i),ho(t)},Ne=C.useRef(!1),Re=(r,t,a="selectOption",i="options")=>{let $=a,F=t;if(h){F=Array.isArray(p)?p.slice():[];const z=xo(F,de=>Q(t,de));z===-1?F.push(t):i!=="freeSolo"&&(F.splice(z,1),$="removeOption")}Se(r,F),ue(r,F,$,{option:t}),!U&&(!r||!r.ctrlKey&&!r.metaKey)&&be(r,$),(f===!0||f==="touch"&&Ne.current||f==="mouse"&&!Ne.current)&&T.current.blur()};function oo(r,t){if(r===-1)return-1;let a=r;for(;;){if(t==="next"&&a===p.length||t==="previous"&&a===-1)return-1;const i=Fe.querySelector(`[data-tag-index="${a}"]`);if(!i||!i.hasAttribute("tabindex")||i.disabled||i.getAttribute("aria-disabled")==="true")a+=t==="next"?1:-1;else return a}}const to=(r,t)=>{if(!h)return;I===""&&be(r,"toggleInput");let a=_;_===-1?I===""&&t==="previous"&&(a=p.length-1):(a+=t==="next"?1:-1,a<0&&(a=0),a===p.length&&(a=-1)),a=oo(a,t),Ge(a),ze(a)},ro=r=>{ve.current=!0,ge(""),N&&N(r,"","clear"),ue(r,h?[]:null,"clear")},po=r=>t=>{if(r.onKeyDown&&r.onKeyDown(t),!t.defaultMuiPrevented&&(_!==-1&&["ArrowLeft","ArrowRight"].indexOf(t.key)===-1&&(Ge(-1),ze(-1)),t.which!==229))switch(t.key){case"Home":W&&q&&(t.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":W&&q&&(t.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ne({diff:-ko,direction:"previous",reason:"keyboard",event:t}),oe(t);break;case"PageDown":t.preventDefault(),ne({diff:ko,direction:"next",reason:"keyboard",event:t}),oe(t);break;case"ArrowDown":t.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:t}),oe(t);break;case"ArrowUp":t.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:t}),oe(t);break;case"ArrowLeft":to(t,"previous");break;case"ArrowRight":to(t,"next");break;case"Enter":if(H.current!==-1&&W){const a=k[H.current],i=K?K(a):!1;if(t.preventDefault(),i)return;Re(t,a,"selectOption"),l&&T.current.setSelectionRange(T.current.value.length,T.current.value.length)}else j&&I!==""&&eo===!1&&(h&&t.preventDefault(),Re(t,I,"createOption","freeSolo"));break;case"Escape":W?(t.preventDefault(),t.stopPropagation(),be(t,"escape")):y&&(I!==""||h&&p.length>0)&&(t.preventDefault(),t.stopPropagation(),ro(t));break;case"Backspace":if(h&&!se&&I===""&&p.length>0){const a=_===-1?p.length-1:_,i=p.slice();i.splice(a,1),ue(t,i,"removeOption",{option:p[a]})}break;case"Delete":if(h&&!se&&I===""&&p.length>0&&_!==-1){const a=_,i=p.slice();i.splice(a,1),ue(t,i,"removeOption",{option:p[a]})}break}},vo=r=>{Xe(!0),R&&!ve.current&&oe(r)},Ee=r=>{if(o(Y)){T.current.focus();return}Xe(!1),Ae.current=!0,ve.current=!1,x&&H.current!==-1&&W?Re(r,k[H.current],"blur"):x&&j&&I!==""?Re(r,I,"blur","freeSolo"):s&&Se(r,p),be(r,"blur")},E=r=>{const t=r.target.value;I!==t&&(ge(t),Qe(!1),N&&N(r,t,"input")),t===""?!O&&!h&&ue(r,null,"clear"):oe(r)},M=r=>{const t=Number(r.currentTarget.getAttribute("data-option-index"));H.current!==t&&pe({event:r,index:t,reason:"mouse"})},le=r=>{pe({event:r,index:Number(r.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ne.current=!0},Co=r=>{const t=Number(r.currentTarget.getAttribute("data-option-index"));Re(r,k[t],"selectOption"),Ne.current=!1},uo=r=>t=>{const a=p.slice();a.splice(r,1),ue(t,a,"removeOption",{option:p[r]})},fo=r=>{Ce?be(r,"toggleInput"):oe(r)},go=r=>{r.currentTarget.contains(r.target)&&r.target.getAttribute("id")!==L&&r.preventDefault()},ao=r=>{r.currentTarget.contains(r.target)&&(T.current.focus(),Oe&&Ae.current&&T.current.selectionEnd-T.current.selectionStart===0&&T.current.select(),Ae.current=!1)},Ye=r=>{!S&&(I===""||!Ce)&&fo(r)};let Te=j&&I.length>0;Te=Te||(h?p.length>0:p!==null);let je=k;return re&&(je=k.reduce((r,t,a)=>{const i=re(t);return r.length>0&&r[r.length-1].group===i?r[r.length-1].options.push(t):r.push({key:a,index:a,group:i,options:[t]}),r},[])),S&&we&&Ee(),{getRootProps:(r={})=>c({"aria-owns":Ke?`${L}-listbox`:null},r,{onKeyDown:po(r),onMouseDown:go,onClick:ao}),getInputLabelProps:()=>({id:`${L}-label`,htmlFor:L}),getInputProps:()=>({id:L,value:I,onBlur:Ee,onFocus:vo,onChange:E,onMouseDown:Ye,"aria-activedescendant":W?"":null,"aria-autocomplete":l?"both":"list","aria-controls":Ke?`${L}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:T,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ro}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:fo}),getTagProps:({index:r})=>c({key:r,"data-tag-index":r,tabIndex:-1},!se&&{onDelete:uo(r)}),getListboxProps:()=>({role:"listbox",id:`${L}-listbox`,"aria-labelledby":`${L}-label`,ref:co,onMouseDown:r=>{r.preventDefault()}}),getOptionProps:({index:r,option:t})=>{var a;const i=(h?p:[p]).some(F=>F!=null&&Q(t,F)),$=K?K(t):!1;return{key:(a=te==null?void 0:te(t))!=null?a:w(t),tabIndex:-1,role:"option",id:`${L}-option-${r}`,onMouseMove:M,onClick:Co,onTouchStart:le,"data-option-index":r,"aria-disabled":$,"aria-selected":i}},id:L,inputValue:I,value:p,dirty:Te,expanded:W&&Fe,popupOpen:W,focused:we||_!==-1,anchorEl:Fe,setAnchorEl:io,focusedTag:_,groupedOptions:je}}function ut(e){return _e("MuiListSubheader",e)}We("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dt=["className","color","component","disableGutters","disableSticky","inset"],ft=e=>{const{classes:o,color:n,disableGutters:l,inset:d,disableSticky:x}=e,f={root:["root",n!=="default"&&`color${g(n)}`,!l&&"gutters",d&&"inset",!x&&"sticky"]};return Ue(f,ut,o)},gt=D("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color!=="default"&&o[`color${g(n.color)}`],!n.disableGutters&&o.gutters,n.inset&&o.inset,!n.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>c({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),_o=C.forwardRef(function(o,n){const l=Be({props:o,name:"MuiListSubheader"}),{className:d,color:x="default",component:f="li",disableGutters:s=!1,disableSticky:y=!1,inset:m=!1}=l,P=ye(l,dt),O=c({},l,{color:x,component:f,disableGutters:s,disableSticky:y,inset:m}),U=ft(O);return u.jsx(gt,c({as:f,className:V(U.root,d),ref:n,ownerState:O},P))});_o.muiSkipListHighlight=!0;const bt=_o,mt=Do(u.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function xt(e){return _e("MuiChip",e)}const ht=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),v=ht,vt=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Ct=e=>{const{classes:o,disabled:n,size:l,color:d,iconColor:x,onDelete:f,clickable:s,variant:y}=e,m={root:["root",y,n&&"disabled",`size${g(l)}`,`color${g(d)}`,s&&"clickable",s&&`clickableColor${g(d)}`,f&&"deletable",f&&`deletableColor${g(d)}`,`${y}${g(d)}`],label:["label",`label${g(l)}`],avatar:["avatar",`avatar${g(l)}`,`avatarColor${g(d)}`],icon:["icon",`icon${g(l)}`,`iconColor${g(x)}`],deleteIcon:["deleteIcon",`deleteIcon${g(l)}`,`deleteIconColor${g(d)}`,`deleteIcon${g(y)}Color${g(d)}`]};return Ue(m,xt,o)},$t=D("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{color:l,iconColor:d,clickable:x,onDelete:f,size:s,variant:y}=n;return[{[`& .${v.avatar}`]:o.avatar},{[`& .${v.avatar}`]:o[`avatar${g(s)}`]},{[`& .${v.avatar}`]:o[`avatarColor${g(l)}`]},{[`& .${v.icon}`]:o.icon},{[`& .${v.icon}`]:o[`icon${g(s)}`]},{[`& .${v.icon}`]:o[`iconColor${g(d)}`]},{[`& .${v.deleteIcon}`]:o.deleteIcon},{[`& .${v.deleteIcon}`]:o[`deleteIcon${g(s)}`]},{[`& .${v.deleteIcon}`]:o[`deleteIconColor${g(l)}`]},{[`& .${v.deleteIcon}`]:o[`deleteIcon${g(y)}Color${g(l)}`]},o.root,o[`size${g(s)}`],o[`color${g(l)}`],x&&o.clickable,x&&l!=="default"&&o[`clickableColor${g(l)})`],f&&o.deletable,f&&l!=="default"&&o[`deletableColor${g(l)}`],o[y],o[`${y}${g(l)}`]]}})(({theme:e,ownerState:o})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return c({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${v.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${v.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${v.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${v.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${v.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${v.icon}`]:c({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&c({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},o.color!=="default"&&{color:"inherit"})),[`& .${v.deleteIcon}`]:c({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:J(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:J(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:J(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${v.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:J(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${v.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>c({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:J(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${v.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:J(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${v.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>c({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${v.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${v.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${v.avatar}`]:{marginLeft:4},[`& .${v.avatarSmall}`]:{marginLeft:2},[`& .${v.icon}`]:{marginLeft:4},[`& .${v.iconSmall}`]:{marginLeft:2},[`& .${v.deleteIcon}`]:{marginRight:5},[`& .${v.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:J(e.palette[o.color].main,.7)}`,[`&.${v.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:J(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${v.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:J(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${v.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:J(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),yt=D("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:n}=e,{size:l}=n;return[o.label,o[`label${g(l)}`]]}})(({ownerState:e})=>c({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Oo(e){return e.key==="Backspace"||e.key==="Delete"}const It=C.forwardRef(function(o,n){const l=Be({props:o,name:"MuiChip"}),{avatar:d,className:x,clickable:f,color:s="default",component:y,deleteIcon:m,disabled:P=!1,icon:O,label:U,onClick:S,onDelete:A,onKeyDown:X,onKeyUp:G,size:Z="medium",variant:j="filled",tabIndex:K,skipFocusWhenDisabled:te=!1}=l,me=ye(l,vt),re=C.useRef(null),q=Mo(re,n),Ie=R=>{R.stopPropagation(),A&&A(R)},Pe=R=>{R.currentTarget===R.target&&Oo(R)&&R.preventDefault(),X&&X(R)},xe=R=>{R.currentTarget===R.target&&(A&&Oo(R)?A(R):R.key==="Escape"&&re.current&&re.current.blur()),G&&G(R)},Q=f!==!1&&S?!0:f,h=Q||A?yo:y||"div",ee=c({},l,{component:h,disabled:P,size:Z,color:s,iconColor:C.isValidElement(O)&&O.props.color||s,onDelete:!!A,clickable:Q,variant:j}),B=Ct(ee),ie=h===yo?c({component:y||"div",focusVisibleClassName:B.focusVisible},A&&{disableRipple:!0}):{};let N=null;A&&(N=m&&C.isValidElement(m)?C.cloneElement(m,{className:V(m.props.className,B.deleteIcon),onClick:Ie}):u.jsx(mt,{className:V(B.deleteIcon),onClick:Ie}));let fe=null;d&&C.isValidElement(d)&&(fe=C.cloneElement(d,{className:V(B.avatar,d.props.className)}));let he=null;return O&&C.isValidElement(O)&&(he=C.cloneElement(O,{className:V(B.icon,O.props.className)})),u.jsxs($t,c({as:h,className:V(B.root,x),disabled:Q&&P?!0:void 0,onClick:S,onKeyDown:Pe,onKeyUp:xe,ref:q,tabIndex:te&&P?-1:K,ownerState:ee},ie,me,{children:[fe||he,u.jsx(yt,{className:V(B.label),ownerState:ee,children:U}),N]}))}),Pt=It;function kt(e){return _e("MuiAutocomplete",e)}const Ot=We("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),b=Ot;var So,Ro;const St=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Rt=["ref"],Tt=["key"],Lt=e=>{const{classes:o,disablePortal:n,expanded:l,focused:d,fullWidth:x,hasClearIcon:f,hasPopupIcon:s,inputFocused:y,popupOpen:m,size:P}=e,O={root:["root",l&&"expanded",d&&"focused",x&&"fullWidth",f&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",y&&"inputFocused"],tag:["tag",`tagSize${g(P)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",m&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ue(O,kt,o)},At=D("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{fullWidth:l,hasClearIcon:d,hasPopupIcon:x,inputFocused:f,size:s}=n;return[{[`& .${b.tag}`]:o.tag},{[`& .${b.tag}`]:o[`tagSize${g(s)}`]},{[`& .${b.inputRoot}`]:o.inputRoot},{[`& .${b.input}`]:o.input},{[`& .${b.input}`]:f&&o.inputFocused},o.root,l&&o.fullWidth,x&&o.hasPopupIcon,d&&o.hasClearIcon]}})(({ownerState:e})=>c({[`&.${b.focused} .${b.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${b.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${b.tag}`]:c({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${b.inputRoot}`]:{flexWrap:"wrap",[`.${b.hasPopupIcon}&, .${b.hasClearIcon}&`]:{paddingRight:26+4},[`.${b.hasPopupIcon}.${b.hasClearIcon}&`]:{paddingRight:52+4},[`& .${b.input}`]:{width:0,minWidth:30}},[`& .${mo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${mo.root}.${Le.sizeSmall}`]:{[`& .${mo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Io.root}`]:{padding:9,[`.${b.hasPopupIcon}&, .${b.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${b.hasPopupIcon}.${b.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${b.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${b.endAdornment}`]:{right:9}},[`& .${Io.root}.${Le.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${b.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ve.root}`]:{paddingTop:19,paddingLeft:8,[`.${b.hasPopupIcon}&, .${b.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${b.hasPopupIcon}.${b.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ve.input}`]:{padding:"7px 4px"},[`& .${b.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Le.sizeSmall}`]:{paddingBottom:1,[`& .${Ve.input}`]:{padding:"2.5px 4px"}},[`& .${Le.hiddenLabel}`]:{paddingTop:8},[`& .${Ve.root}.${Le.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${b.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ve.root}.${Le.hiddenLabel}.${Le.sizeSmall}`]:{[`& .${b.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${b.input}`]:c({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Ft=D("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),wt=D(No,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zt=D(No,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>c({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>c({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dt=D(Eo,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${b.option}`]:o.option},o.popper,n.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>c({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),Mt=D(jo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>c({},e.typography.body1,{overflow:"auto"})),Nt=D("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Et=D("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jt=D("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${b.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${b.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${b.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:J(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${b.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:J(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${b.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:J(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Ht=D(bt,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Vt=D("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${b.option}`]:{paddingLeft:24}}),Bt=C.forwardRef(function(o,n){var l,d,x,f;const s=Be({props:o,name:"MuiAutocomplete"}),{autoComplete:y=!1,autoHighlight:m=!1,autoSelect:P=!1,blurOnSelect:O=!1,ChipProps:U,className:S,clearIcon:A=So||(So=u.jsx(lt,{fontSize:"small"})),clearOnBlur:X=!s.freeSolo,clearOnEscape:G=!1,clearText:Z="Clear",closeText:j="Close",componentsProps:K={},defaultValue:te=s.multiple?[]:null,disableClearable:me=!1,disableCloseOnSelect:re=!1,disabled:q=!1,disabledItemsFocusable:Ie=!1,disableListWrap:Pe=!1,disablePortal:xe=!1,filterSelectedOptions:Q=!1,forcePopupIcon:h="auto",freeSolo:ee=!1,fullWidth:B=!1,getLimitTagsText:ie=t=>`+${t}`,getOptionLabel:N,groupBy:fe,handleHomeEndKeys:he=!s.freeSolo,includeInputInList:R=!1,limitTags:ke=-1,ListboxComponent:se="ul",ListboxProps:Oe,loading:ce=!1,loadingText:L="Loading…",multiple:w=!1,noOptionsText:ve="No options",openOnFocus:Ae=!1,openText:T="Open",PaperComponent:Y=jo,PopperComponent:Fe=Eo,popupIcon:io=Ro||(Ro=u.jsx(Zo,{})),readOnly:_=!1,renderGroup:Ge,renderInput:Je,renderOption:H,renderTags:p,selectOnFocus:ho=!s.freeSolo,size:I="medium",slotProps:ge={}}=s,we=ye(s,St),{getRootProps:Xe,getInputProps:Se,getInputLabelProps:Ce,getPopupIndicatorProps:Ze,getClearProps:so,getTagProps:Qe,getListboxProps:eo,getOptionProps:W,value:k,dirty:ae,expanded:Ke,id:ze,popupOpen:De,focused:pe,focusedTag:ne,anchorEl:Me,setAnchorEl:qe,inputValue:co,groupedOptions:oe}=pt(c({},s,{componentName:"Autocomplete"})),be=!me&&!q&&ae&&!_,ue=(!ee||h===!0)&&h!==!1,{onMouseDown:Ne}=Se(),{ref:Re}=Oe??{},oo=eo(),{ref:to}=oo,ro=ye(oo,Rt),po=Mo(to,Re),Ee=N||(t=>{var a;return(a=t.label)!=null?a:t}),E=c({},s,{disablePortal:xe,expanded:Ke,focused:pe,fullWidth:B,getOptionLabel:Ee,hasClearIcon:be,hasPopupIcon:ue,inputFocused:ne===-1,popupOpen:De,size:I}),M=Lt(E);let le;if(w&&k.length>0){const t=a=>c({className:M.tag,disabled:q},Qe(a));p?le=p(k,t,E):le=k.map((a,i)=>u.jsx(Pt,c({label:Ee(a),size:I},t({index:i}),U)))}if(ke>-1&&Array.isArray(le)){const t=le.length-ke;!pe&&t>0&&(le=le.splice(0,ke),le.push(u.jsx("span",{className:M.tag,children:ie(t)},le.length)))}const uo=Ge||(t=>u.jsxs("li",{children:[u.jsx(Ht,{className:M.groupLabel,ownerState:E,component:"div",children:t.group}),u.jsx(Vt,{className:M.groupUl,ownerState:E,children:t.children})]},t.key)),go=H||((t,a)=>{const{key:i}=t,$=ye(t,Tt);return u.jsx("li",c({},$,{children:Ee(a)}),i)}),ao=(t,a)=>{const i=W({option:t,index:a});return go(c({},i,{className:M.option}),t,{selected:i["aria-selected"],index:a,inputValue:co},E)},Ye=(l=ge.clearIndicator)!=null?l:K.clearIndicator,Te=(d=ge.paper)!=null?d:K.paper,je=(x=ge.popper)!=null?x:K.popper,r=(f=ge.popupIndicator)!=null?f:K.popupIndicator;return u.jsxs(C.Fragment,{children:[u.jsx(At,c({ref:n,className:V(M.root,S),ownerState:E},Xe(we),{children:Je({id:ze,disabled:q,fullWidth:!0,size:I==="small"?"small":void 0,InputLabelProps:Ce(),InputProps:c({ref:qe,className:M.inputRoot,startAdornment:le,onClick:t=>{t.target===t.currentTarget&&Ne(t)}},(be||ue)&&{endAdornment:u.jsxs(Ft,{className:M.endAdornment,ownerState:E,children:[be?u.jsx(wt,c({},so(),{"aria-label":Z,title:Z,ownerState:E},Ye,{className:V(M.clearIndicator,Ye==null?void 0:Ye.className),children:A})):null,ue?u.jsx(zt,c({},Ze(),{disabled:q,"aria-label":De?j:T,title:De?j:T,ownerState:E},r,{className:V(M.popupIndicator,r==null?void 0:r.className),children:io})):null]})}),inputProps:c({className:M.input,disabled:q,readOnly:_},Se())})})),Me?u.jsx(Dt,c({as:Fe,disablePortal:xe,style:{width:Me?Me.clientWidth:null},ownerState:E,role:"presentation",anchorEl:Me,open:De},je,{className:V(M.popper,je==null?void 0:je.className),children:u.jsxs(Mt,c({ownerState:E,as:Y},Te,{className:V(M.paper,Te==null?void 0:Te.className),children:[ce&&oe.length===0?u.jsx(Nt,{className:M.loading,ownerState:E,children:L}):null,oe.length===0&&!ee&&!ce?u.jsx(Et,{className:M.noOptions,ownerState:E,role:"presentation",onMouseDown:t=>{t.preventDefault()},children:ve}):null,oe.length>0?u.jsx(jt,c({as:se,className:M.listbox,ownerState:E},ro,Oe,{ref:po,children:oe.map((t,a)=>fe?uo({key:t.key,group:t.group,children:t.options.map((i,$)=>ao(i,t.index+$))}):ao(t,a))})):null]}))})):null]})}),_t=Bt;function Wt(e){return _e("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ut=["className","color","disableShrink","size","style","thickness","value","variant"];let lo=e=>e,To,Lo,Ao,Fo;const $e=44,Gt=Ho(To||(To=lo` +import{r as C,j as u,_ as c,n as g,C as Be,h as ye,E as J,Y as Wo,a0 as He,X as Uo}from"./index-32144865.js";import{T as Go}from"./index-753a4213.js";import{cD as Do,aY as no,cE as Ko,b0 as _e,a$ as We,b1 as D,b5 as V,b6 as Ue,aW as Mo,b2 as yo,cF as Le,c4 as No,cG as Eo,cH as jo,cx as Ho,cy as Vo,cI as qo,cJ as Yo,bI as Jo,cK as Xo}from"./index-a820256c.js";import{a as Bo,u as bo,i as mo,o as Io,f as Ve,A as Zo,I as Qo,S as et,b as ot,F as tt,O as rt}from"./Select-6f6c7ca7.js";const at=e=>{const o=C.useRef({});return C.useEffect(()=>{o.current=e}),o.current},nt=at,lt=Do(u.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Po(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function it(e={}){const{ignoreAccents:o=!0,ignoreCase:n=!0,limit:l,matchFrom:d="any",stringify:x,trim:f=!1}=e;return(s,{inputValue:y,getOptionLabel:m})=>{let P=f?y.trim():y;n&&(P=P.toLowerCase()),o&&(P=Po(P));const O=P?s.filter(U=>{let S=(x||m)(U);return n&&(S=S.toLowerCase()),o&&(S=Po(S)),d==="start"?S.indexOf(P)===0:S.indexOf(P)>-1}):s;return typeof l=="number"?O.slice(0,l):O}}function xo(e,o){for(let n=0;n{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function pt(e){const{unstable_isActiveElementInListbox:o=ct,unstable_classNamePrefix:n="Mui",autoComplete:l=!1,autoHighlight:d=!1,autoSelect:x=!1,blurOnSelect:f=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:y=!1,componentName:m="useAutocomplete",defaultValue:P=e.multiple?[]:null,disableClearable:O=!1,disableCloseOnSelect:U=!1,disabled:S,disabledItemsFocusable:A=!1,disableListWrap:X=!1,filterOptions:G=st,filterSelectedOptions:Z=!1,freeSolo:j=!1,getOptionDisabled:K,getOptionKey:te,getOptionLabel:me=r=>{var t;return(t=r.label)!=null?t:r},groupBy:re,handleHomeEndKeys:q=!e.freeSolo,id:Ie,includeInputInList:Pe=!1,inputValue:xe,isOptionEqualToValue:Q=(r,t)=>r===t,multiple:h=!1,onChange:ee,onClose:B,onHighlightChange:ie,onInputChange:N,onOpen:fe,open:he,openOnFocus:R=!1,options:ke,readOnly:se=!1,selectOnFocus:Oe=!e.freeSolo,value:ce}=e,L=Bo(Ie);let w=me;w=r=>{const t=me(r);return typeof t!="string"?String(t):t};const ve=C.useRef(!1),Ae=C.useRef(!0),T=C.useRef(null),Y=C.useRef(null),[Fe,io]=C.useState(null),[_,Ge]=C.useState(-1),Je=d?0:-1,H=C.useRef(Je),[p,ho]=bo({controlled:ce,default:P,name:m}),[I,ge]=bo({controlled:xe,default:"",name:m,state:"inputValue"}),[we,Xe]=C.useState(!1),Se=C.useCallback((r,t)=>{if(!(h?p.length!(Z&&(h?p:[p]).some(t=>t!==null&&Q(r,t)))),{inputValue:eo&&so?"":I,getOptionLabel:w}):[],ae=nt({filteredOptions:k,value:p,inputValue:I});C.useEffect(()=>{const r=p!==ae.value;we&&!r||j&&!r||Se(null,p)},[p,Se,we,ae.value,j]);const Ke=Ce&&k.length>0&&!se,ze=no(r=>{r===-1?T.current.focus():Fe.querySelector(`[data-tag-index="${r}"]`).focus()});C.useEffect(()=>{h&&_>p.length-1&&(Ge(-1),ze(-1))},[p,h,_,ze]);function De(r,t){if(!Y.current||r<0||r>=k.length)return-1;let a=r;for(;;){const i=Y.current.querySelector(`[data-option-index="${a}"]`),$=A?!1:!i||i.disabled||i.getAttribute("aria-disabled")==="true";if(i&&i.hasAttribute("tabindex")&&!$)return a;if(t==="next"?a=(a+1)%k.length:a=(a-1+k.length)%k.length,a===r)return-1}}const pe=no(({event:r,index:t,reason:a="auto"})=>{if(H.current=t,t===-1?T.current.removeAttribute("aria-activedescendant"):T.current.setAttribute("aria-activedescendant",`${L}-option-${t}`),ie&&ie(r,t===-1?null:k[t],a),!Y.current)return;const i=Y.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let $=Y.current;if(Y.current.getAttribute("role")!=="listbox"&&($=Y.current.parentElement.querySelector('[role="listbox"]')),!$)return;if(t===-1){$.scrollTop=0;return}const F=Y.current.querySelector(`[data-option-index="${t}"]`);if(F&&(F.classList.add(`${n}-focused`),a==="keyboard"&&F.classList.add(`${n}-focusVisible`),$.scrollHeight>$.clientHeight&&a!=="mouse"&&a!=="touch")){const z=F,de=$.clientHeight+$.scrollTop,$o=z.offsetTop+z.offsetHeight;$o>de?$.scrollTop=$o-$.clientHeight:z.offsetTop-z.offsetHeight*(re?1.3:0)<$.scrollTop&&($.scrollTop=z.offsetTop-z.offsetHeight*(re?1.3:0))}}),ne=no(({event:r,diff:t,direction:a="next",reason:i="auto"})=>{if(!W)return;const F=De((()=>{const z=k.length-1;if(t==="reset")return Je;if(t==="start")return 0;if(t==="end")return z;const de=H.current+t;return de<0?de===-1&&Pe?-1:X&&H.current!==-1||Math.abs(t)>1?0:z:de>z?de===z+1&&Pe?-1:X||Math.abs(t)>1?z:0:de})(),a);if(pe({index:F,reason:i,event:r}),l&&t!=="reset")if(F===-1)T.current.value=I;else{const z=w(k[F]);T.current.value=z,z.toLowerCase().indexOf(I.toLowerCase())===0&&I.length>0&&T.current.setSelectionRange(I.length,z.length)}}),Me=()=>{const r=(t,a)=>{const i=t?w(t):"",$=a?w(a):"";return i===$};if(H.current!==-1&&ae.filteredOptions&&ae.filteredOptions.length!==k.length&&ae.inputValue===I&&(h?p.length===ae.value.length&&ae.value.every((t,a)=>w(p[a])===w(t)):r(ae.value,p))){const t=ae.filteredOptions[H.current];if(t&&k.some(i=>w(i)===w(t)))return!0}return!1},qe=C.useCallback(()=>{if(!W||Me())return;const r=h?p[0]:p;if(k.length===0||r==null){ne({diff:"reset"});return}if(Y.current){if(r!=null){const t=k[H.current];if(h&&t&&xo(p,i=>Q(t,i))!==-1)return;const a=xo(k,i=>Q(i,r));a===-1?ne({diff:"reset"}):pe({index:a});return}if(H.current>=k.length-1){pe({index:k.length-1});return}pe({index:H.current})}},[k.length,h?!1:p,Z,ne,pe,W,I,h]),co=no(r=>{Ko(Y,r),r&&qe()});C.useEffect(()=>{qe()},[qe]);const oe=r=>{Ce||(Ze(!0),Qe(!0),fe&&fe(r))},be=(r,t)=>{Ce&&(Ze(!1),B&&B(r,t))},ue=(r,t,a,i)=>{if(h){if(p.length===t.length&&p.every(($,F)=>$===t[F]))return}else if(p===t)return;ee&&ee(r,t,a,i),ho(t)},Ne=C.useRef(!1),Re=(r,t,a="selectOption",i="options")=>{let $=a,F=t;if(h){F=Array.isArray(p)?p.slice():[];const z=xo(F,de=>Q(t,de));z===-1?F.push(t):i!=="freeSolo"&&(F.splice(z,1),$="removeOption")}Se(r,F),ue(r,F,$,{option:t}),!U&&(!r||!r.ctrlKey&&!r.metaKey)&&be(r,$),(f===!0||f==="touch"&&Ne.current||f==="mouse"&&!Ne.current)&&T.current.blur()};function oo(r,t){if(r===-1)return-1;let a=r;for(;;){if(t==="next"&&a===p.length||t==="previous"&&a===-1)return-1;const i=Fe.querySelector(`[data-tag-index="${a}"]`);if(!i||!i.hasAttribute("tabindex")||i.disabled||i.getAttribute("aria-disabled")==="true")a+=t==="next"?1:-1;else return a}}const to=(r,t)=>{if(!h)return;I===""&&be(r,"toggleInput");let a=_;_===-1?I===""&&t==="previous"&&(a=p.length-1):(a+=t==="next"?1:-1,a<0&&(a=0),a===p.length&&(a=-1)),a=oo(a,t),Ge(a),ze(a)},ro=r=>{ve.current=!0,ge(""),N&&N(r,"","clear"),ue(r,h?[]:null,"clear")},po=r=>t=>{if(r.onKeyDown&&r.onKeyDown(t),!t.defaultMuiPrevented&&(_!==-1&&["ArrowLeft","ArrowRight"].indexOf(t.key)===-1&&(Ge(-1),ze(-1)),t.which!==229))switch(t.key){case"Home":W&&q&&(t.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":W&&q&&(t.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ne({diff:-ko,direction:"previous",reason:"keyboard",event:t}),oe(t);break;case"PageDown":t.preventDefault(),ne({diff:ko,direction:"next",reason:"keyboard",event:t}),oe(t);break;case"ArrowDown":t.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:t}),oe(t);break;case"ArrowUp":t.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:t}),oe(t);break;case"ArrowLeft":to(t,"previous");break;case"ArrowRight":to(t,"next");break;case"Enter":if(H.current!==-1&&W){const a=k[H.current],i=K?K(a):!1;if(t.preventDefault(),i)return;Re(t,a,"selectOption"),l&&T.current.setSelectionRange(T.current.value.length,T.current.value.length)}else j&&I!==""&&eo===!1&&(h&&t.preventDefault(),Re(t,I,"createOption","freeSolo"));break;case"Escape":W?(t.preventDefault(),t.stopPropagation(),be(t,"escape")):y&&(I!==""||h&&p.length>0)&&(t.preventDefault(),t.stopPropagation(),ro(t));break;case"Backspace":if(h&&!se&&I===""&&p.length>0){const a=_===-1?p.length-1:_,i=p.slice();i.splice(a,1),ue(t,i,"removeOption",{option:p[a]})}break;case"Delete":if(h&&!se&&I===""&&p.length>0&&_!==-1){const a=_,i=p.slice();i.splice(a,1),ue(t,i,"removeOption",{option:p[a]})}break}},vo=r=>{Xe(!0),R&&!ve.current&&oe(r)},Ee=r=>{if(o(Y)){T.current.focus();return}Xe(!1),Ae.current=!0,ve.current=!1,x&&H.current!==-1&&W?Re(r,k[H.current],"blur"):x&&j&&I!==""?Re(r,I,"blur","freeSolo"):s&&Se(r,p),be(r,"blur")},E=r=>{const t=r.target.value;I!==t&&(ge(t),Qe(!1),N&&N(r,t,"input")),t===""?!O&&!h&&ue(r,null,"clear"):oe(r)},M=r=>{const t=Number(r.currentTarget.getAttribute("data-option-index"));H.current!==t&&pe({event:r,index:t,reason:"mouse"})},le=r=>{pe({event:r,index:Number(r.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ne.current=!0},Co=r=>{const t=Number(r.currentTarget.getAttribute("data-option-index"));Re(r,k[t],"selectOption"),Ne.current=!1},uo=r=>t=>{const a=p.slice();a.splice(r,1),ue(t,a,"removeOption",{option:p[r]})},fo=r=>{Ce?be(r,"toggleInput"):oe(r)},go=r=>{r.currentTarget.contains(r.target)&&r.target.getAttribute("id")!==L&&r.preventDefault()},ao=r=>{r.currentTarget.contains(r.target)&&(T.current.focus(),Oe&&Ae.current&&T.current.selectionEnd-T.current.selectionStart===0&&T.current.select(),Ae.current=!1)},Ye=r=>{!S&&(I===""||!Ce)&&fo(r)};let Te=j&&I.length>0;Te=Te||(h?p.length>0:p!==null);let je=k;return re&&(je=k.reduce((r,t,a)=>{const i=re(t);return r.length>0&&r[r.length-1].group===i?r[r.length-1].options.push(t):r.push({key:a,index:a,group:i,options:[t]}),r},[])),S&&we&&Ee(),{getRootProps:(r={})=>c({"aria-owns":Ke?`${L}-listbox`:null},r,{onKeyDown:po(r),onMouseDown:go,onClick:ao}),getInputLabelProps:()=>({id:`${L}-label`,htmlFor:L}),getInputProps:()=>({id:L,value:I,onBlur:Ee,onFocus:vo,onChange:E,onMouseDown:Ye,"aria-activedescendant":W?"":null,"aria-autocomplete":l?"both":"list","aria-controls":Ke?`${L}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:T,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ro}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:fo}),getTagProps:({index:r})=>c({key:r,"data-tag-index":r,tabIndex:-1},!se&&{onDelete:uo(r)}),getListboxProps:()=>({role:"listbox",id:`${L}-listbox`,"aria-labelledby":`${L}-label`,ref:co,onMouseDown:r=>{r.preventDefault()}}),getOptionProps:({index:r,option:t})=>{var a;const i=(h?p:[p]).some(F=>F!=null&&Q(t,F)),$=K?K(t):!1;return{key:(a=te==null?void 0:te(t))!=null?a:w(t),tabIndex:-1,role:"option",id:`${L}-option-${r}`,onMouseMove:M,onClick:Co,onTouchStart:le,"data-option-index":r,"aria-disabled":$,"aria-selected":i}},id:L,inputValue:I,value:p,dirty:Te,expanded:W&&Fe,popupOpen:W,focused:we||_!==-1,anchorEl:Fe,setAnchorEl:io,focusedTag:_,groupedOptions:je}}function ut(e){return _e("MuiListSubheader",e)}We("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const dt=["className","color","component","disableGutters","disableSticky","inset"],ft=e=>{const{classes:o,color:n,disableGutters:l,inset:d,disableSticky:x}=e,f={root:["root",n!=="default"&&`color${g(n)}`,!l&&"gutters",d&&"inset",!x&&"sticky"]};return Ue(f,ut,o)},gt=D("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color!=="default"&&o[`color${g(n.color)}`],!n.disableGutters&&o.gutters,n.inset&&o.inset,!n.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>c({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),_o=C.forwardRef(function(o,n){const l=Be({props:o,name:"MuiListSubheader"}),{className:d,color:x="default",component:f="li",disableGutters:s=!1,disableSticky:y=!1,inset:m=!1}=l,P=ye(l,dt),O=c({},l,{color:x,component:f,disableGutters:s,disableSticky:y,inset:m}),U=ft(O);return u.jsx(gt,c({as:f,className:V(U.root,d),ref:n,ownerState:O},P))});_o.muiSkipListHighlight=!0;const bt=_o,mt=Do(u.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function xt(e){return _e("MuiChip",e)}const ht=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),v=ht,vt=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Ct=e=>{const{classes:o,disabled:n,size:l,color:d,iconColor:x,onDelete:f,clickable:s,variant:y}=e,m={root:["root",y,n&&"disabled",`size${g(l)}`,`color${g(d)}`,s&&"clickable",s&&`clickableColor${g(d)}`,f&&"deletable",f&&`deletableColor${g(d)}`,`${y}${g(d)}`],label:["label",`label${g(l)}`],avatar:["avatar",`avatar${g(l)}`,`avatarColor${g(d)}`],icon:["icon",`icon${g(l)}`,`iconColor${g(x)}`],deleteIcon:["deleteIcon",`deleteIcon${g(l)}`,`deleteIconColor${g(d)}`,`deleteIcon${g(y)}Color${g(d)}`]};return Ue(m,xt,o)},$t=D("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{color:l,iconColor:d,clickable:x,onDelete:f,size:s,variant:y}=n;return[{[`& .${v.avatar}`]:o.avatar},{[`& .${v.avatar}`]:o[`avatar${g(s)}`]},{[`& .${v.avatar}`]:o[`avatarColor${g(l)}`]},{[`& .${v.icon}`]:o.icon},{[`& .${v.icon}`]:o[`icon${g(s)}`]},{[`& .${v.icon}`]:o[`iconColor${g(d)}`]},{[`& .${v.deleteIcon}`]:o.deleteIcon},{[`& .${v.deleteIcon}`]:o[`deleteIcon${g(s)}`]},{[`& .${v.deleteIcon}`]:o[`deleteIconColor${g(l)}`]},{[`& .${v.deleteIcon}`]:o[`deleteIcon${g(y)}Color${g(l)}`]},o.root,o[`size${g(s)}`],o[`color${g(l)}`],x&&o.clickable,x&&l!=="default"&&o[`clickableColor${g(l)})`],f&&o.deletable,f&&l!=="default"&&o[`deletableColor${g(l)}`],o[y],o[`${y}${g(l)}`]]}})(({theme:e,ownerState:o})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return c({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${v.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${v.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${v.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${v.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${v.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${v.icon}`]:c({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&c({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},o.color!=="default"&&{color:"inherit"})),[`& .${v.deleteIcon}`]:c({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:J(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:J(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:J(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${v.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:J(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${v.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>c({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:J(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${v.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:J(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${v.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>c({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${v.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${v.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${v.avatar}`]:{marginLeft:4},[`& .${v.avatarSmall}`]:{marginLeft:2},[`& .${v.icon}`]:{marginLeft:4},[`& .${v.iconSmall}`]:{marginLeft:2},[`& .${v.deleteIcon}`]:{marginRight:5},[`& .${v.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:J(e.palette[o.color].main,.7)}`,[`&.${v.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:J(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${v.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:J(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${v.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:J(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),yt=D("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:n}=e,{size:l}=n;return[o.label,o[`label${g(l)}`]]}})(({ownerState:e})=>c({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Oo(e){return e.key==="Backspace"||e.key==="Delete"}const It=C.forwardRef(function(o,n){const l=Be({props:o,name:"MuiChip"}),{avatar:d,className:x,clickable:f,color:s="default",component:y,deleteIcon:m,disabled:P=!1,icon:O,label:U,onClick:S,onDelete:A,onKeyDown:X,onKeyUp:G,size:Z="medium",variant:j="filled",tabIndex:K,skipFocusWhenDisabled:te=!1}=l,me=ye(l,vt),re=C.useRef(null),q=Mo(re,n),Ie=R=>{R.stopPropagation(),A&&A(R)},Pe=R=>{R.currentTarget===R.target&&Oo(R)&&R.preventDefault(),X&&X(R)},xe=R=>{R.currentTarget===R.target&&(A&&Oo(R)?A(R):R.key==="Escape"&&re.current&&re.current.blur()),G&&G(R)},Q=f!==!1&&S?!0:f,h=Q||A?yo:y||"div",ee=c({},l,{component:h,disabled:P,size:Z,color:s,iconColor:C.isValidElement(O)&&O.props.color||s,onDelete:!!A,clickable:Q,variant:j}),B=Ct(ee),ie=h===yo?c({component:y||"div",focusVisibleClassName:B.focusVisible},A&&{disableRipple:!0}):{};let N=null;A&&(N=m&&C.isValidElement(m)?C.cloneElement(m,{className:V(m.props.className,B.deleteIcon),onClick:Ie}):u.jsx(mt,{className:V(B.deleteIcon),onClick:Ie}));let fe=null;d&&C.isValidElement(d)&&(fe=C.cloneElement(d,{className:V(B.avatar,d.props.className)}));let he=null;return O&&C.isValidElement(O)&&(he=C.cloneElement(O,{className:V(B.icon,O.props.className)})),u.jsxs($t,c({as:h,className:V(B.root,x),disabled:Q&&P?!0:void 0,onClick:S,onKeyDown:Pe,onKeyUp:xe,ref:q,tabIndex:te&&P?-1:K,ownerState:ee},ie,me,{children:[fe||he,u.jsx(yt,{className:V(B.label),ownerState:ee,children:U}),N]}))}),Pt=It;function kt(e){return _e("MuiAutocomplete",e)}const Ot=We("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),b=Ot;var So,Ro;const St=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Rt=["ref"],Tt=["key"],Lt=e=>{const{classes:o,disablePortal:n,expanded:l,focused:d,fullWidth:x,hasClearIcon:f,hasPopupIcon:s,inputFocused:y,popupOpen:m,size:P}=e,O={root:["root",l&&"expanded",d&&"focused",x&&"fullWidth",f&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",y&&"inputFocused"],tag:["tag",`tagSize${g(P)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",m&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ue(O,kt,o)},At=D("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{fullWidth:l,hasClearIcon:d,hasPopupIcon:x,inputFocused:f,size:s}=n;return[{[`& .${b.tag}`]:o.tag},{[`& .${b.tag}`]:o[`tagSize${g(s)}`]},{[`& .${b.inputRoot}`]:o.inputRoot},{[`& .${b.input}`]:o.input},{[`& .${b.input}`]:f&&o.inputFocused},o.root,l&&o.fullWidth,x&&o.hasPopupIcon,d&&o.hasClearIcon]}})(({ownerState:e})=>c({[`&.${b.focused} .${b.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${b.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${b.tag}`]:c({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${b.inputRoot}`]:{flexWrap:"wrap",[`.${b.hasPopupIcon}&, .${b.hasClearIcon}&`]:{paddingRight:26+4},[`.${b.hasPopupIcon}.${b.hasClearIcon}&`]:{paddingRight:52+4},[`& .${b.input}`]:{width:0,minWidth:30}},[`& .${mo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${mo.root}.${Le.sizeSmall}`]:{[`& .${mo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Io.root}`]:{padding:9,[`.${b.hasPopupIcon}&, .${b.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${b.hasPopupIcon}.${b.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${b.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${b.endAdornment}`]:{right:9}},[`& .${Io.root}.${Le.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${b.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ve.root}`]:{paddingTop:19,paddingLeft:8,[`.${b.hasPopupIcon}&, .${b.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${b.hasPopupIcon}.${b.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ve.input}`]:{padding:"7px 4px"},[`& .${b.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Le.sizeSmall}`]:{paddingBottom:1,[`& .${Ve.input}`]:{padding:"2.5px 4px"}},[`& .${Le.hiddenLabel}`]:{paddingTop:8},[`& .${Ve.root}.${Le.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${b.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ve.root}.${Le.hiddenLabel}.${Le.sizeSmall}`]:{[`& .${b.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${b.input}`]:c({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),Ft=D("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),wt=D(No,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zt=D(No,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>c({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>c({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dt=D(Eo,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${b.option}`]:o.option},o.popper,n.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>c({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),Mt=D(jo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>c({},e.typography.body1,{overflow:"auto"})),Nt=D("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Et=D("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jt=D("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${b.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${b.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${b.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:J(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${b.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:J(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${b.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:J(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Ht=D(bt,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Vt=D("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${b.option}`]:{paddingLeft:24}}),Bt=C.forwardRef(function(o,n){var l,d,x,f;const s=Be({props:o,name:"MuiAutocomplete"}),{autoComplete:y=!1,autoHighlight:m=!1,autoSelect:P=!1,blurOnSelect:O=!1,ChipProps:U,className:S,clearIcon:A=So||(So=u.jsx(lt,{fontSize:"small"})),clearOnBlur:X=!s.freeSolo,clearOnEscape:G=!1,clearText:Z="Clear",closeText:j="Close",componentsProps:K={},defaultValue:te=s.multiple?[]:null,disableClearable:me=!1,disableCloseOnSelect:re=!1,disabled:q=!1,disabledItemsFocusable:Ie=!1,disableListWrap:Pe=!1,disablePortal:xe=!1,filterSelectedOptions:Q=!1,forcePopupIcon:h="auto",freeSolo:ee=!1,fullWidth:B=!1,getLimitTagsText:ie=t=>`+${t}`,getOptionLabel:N,groupBy:fe,handleHomeEndKeys:he=!s.freeSolo,includeInputInList:R=!1,limitTags:ke=-1,ListboxComponent:se="ul",ListboxProps:Oe,loading:ce=!1,loadingText:L="Loading…",multiple:w=!1,noOptionsText:ve="No options",openOnFocus:Ae=!1,openText:T="Open",PaperComponent:Y=jo,PopperComponent:Fe=Eo,popupIcon:io=Ro||(Ro=u.jsx(Zo,{})),readOnly:_=!1,renderGroup:Ge,renderInput:Je,renderOption:H,renderTags:p,selectOnFocus:ho=!s.freeSolo,size:I="medium",slotProps:ge={}}=s,we=ye(s,St),{getRootProps:Xe,getInputProps:Se,getInputLabelProps:Ce,getPopupIndicatorProps:Ze,getClearProps:so,getTagProps:Qe,getListboxProps:eo,getOptionProps:W,value:k,dirty:ae,expanded:Ke,id:ze,popupOpen:De,focused:pe,focusedTag:ne,anchorEl:Me,setAnchorEl:qe,inputValue:co,groupedOptions:oe}=pt(c({},s,{componentName:"Autocomplete"})),be=!me&&!q&&ae&&!_,ue=(!ee||h===!0)&&h!==!1,{onMouseDown:Ne}=Se(),{ref:Re}=Oe??{},oo=eo(),{ref:to}=oo,ro=ye(oo,Rt),po=Mo(to,Re),Ee=N||(t=>{var a;return(a=t.label)!=null?a:t}),E=c({},s,{disablePortal:xe,expanded:Ke,focused:pe,fullWidth:B,getOptionLabel:Ee,hasClearIcon:be,hasPopupIcon:ue,inputFocused:ne===-1,popupOpen:De,size:I}),M=Lt(E);let le;if(w&&k.length>0){const t=a=>c({className:M.tag,disabled:q},Qe(a));p?le=p(k,t,E):le=k.map((a,i)=>u.jsx(Pt,c({label:Ee(a),size:I},t({index:i}),U)))}if(ke>-1&&Array.isArray(le)){const t=le.length-ke;!pe&&t>0&&(le=le.splice(0,ke),le.push(u.jsx("span",{className:M.tag,children:ie(t)},le.length)))}const uo=Ge||(t=>u.jsxs("li",{children:[u.jsx(Ht,{className:M.groupLabel,ownerState:E,component:"div",children:t.group}),u.jsx(Vt,{className:M.groupUl,ownerState:E,children:t.children})]},t.key)),go=H||((t,a)=>{const{key:i}=t,$=ye(t,Tt);return u.jsx("li",c({},$,{children:Ee(a)}),i)}),ao=(t,a)=>{const i=W({option:t,index:a});return go(c({},i,{className:M.option}),t,{selected:i["aria-selected"],index:a,inputValue:co},E)},Ye=(l=ge.clearIndicator)!=null?l:K.clearIndicator,Te=(d=ge.paper)!=null?d:K.paper,je=(x=ge.popper)!=null?x:K.popper,r=(f=ge.popupIndicator)!=null?f:K.popupIndicator;return u.jsxs(C.Fragment,{children:[u.jsx(At,c({ref:n,className:V(M.root,S),ownerState:E},Xe(we),{children:Je({id:ze,disabled:q,fullWidth:!0,size:I==="small"?"small":void 0,InputLabelProps:Ce(),InputProps:c({ref:qe,className:M.inputRoot,startAdornment:le,onClick:t=>{t.target===t.currentTarget&&Ne(t)}},(be||ue)&&{endAdornment:u.jsxs(Ft,{className:M.endAdornment,ownerState:E,children:[be?u.jsx(wt,c({},so(),{"aria-label":Z,title:Z,ownerState:E},Ye,{className:V(M.clearIndicator,Ye==null?void 0:Ye.className),children:A})):null,ue?u.jsx(zt,c({},Ze(),{disabled:q,"aria-label":De?j:T,title:De?j:T,ownerState:E},r,{className:V(M.popupIndicator,r==null?void 0:r.className),children:io})):null]})}),inputProps:c({className:M.input,disabled:q,readOnly:_},Se())})})),Me?u.jsx(Dt,c({as:Fe,disablePortal:xe,style:{width:Me?Me.clientWidth:null},ownerState:E,role:"presentation",anchorEl:Me,open:De},je,{className:V(M.popper,je==null?void 0:je.className),children:u.jsxs(Mt,c({ownerState:E,as:Y},Te,{className:V(M.paper,Te==null?void 0:Te.className),children:[ce&&oe.length===0?u.jsx(Nt,{className:M.loading,ownerState:E,children:L}):null,oe.length===0&&!ee&&!ce?u.jsx(Et,{className:M.noOptions,ownerState:E,role:"presentation",onMouseDown:t=>{t.preventDefault()},children:ve}):null,oe.length>0?u.jsx(jt,c({as:se,className:M.listbox,ownerState:E},ro,Oe,{ref:po,children:oe.map((t,a)=>fe?uo({key:t.key,group:t.group,children:t.options.map((i,$)=>ao(i,t.index+$))}):ao(t,a))})):null]}))})):null]})}),_t=Bt;function Wt(e){return _e("MuiCircularProgress",e)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ut=["className","color","disableShrink","size","style","thickness","value","variant"];let lo=e=>e,To,Lo,Ao,Fo;const $e=44,Gt=Ho(To||(To=lo` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-fce50a17.js b/build/assets/index-0bceab6d.js similarity index 88% rename from build/assets/index-fce50a17.js rename to build/assets/index-0bceab6d.js index 5a5dbc8ec..d55ff9d3f 100644 --- a/build/assets/index-fce50a17.js +++ b/build/assets/index-0bceab6d.js @@ -1,4 +1,4 @@ -import{Y as N,Z as b,j as e,X as n,ab as L,r as a,a0 as v}from"./index-b639b6f9.js";import{ck as B,u as h,cr as C,ch as k,az as z,cj as D,bO as F,aS as I,cs as M,ct as R,ca as _}from"./index-06aeb711.js";import{S as A}from"./Skeleton-5410b08c.js";const O=()=>e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(P,{children:"Edit node name"})})}),e.jsx(n,{mb:12,children:e.jsx(B,{id:"cy-topic",maxLength:50,name:"topic",placeholder:"Node name",rules:{...L}})})]}),P=N(b)` +import{Y as N,Z as b,j as e,X as n,ab as L,r as a,a0 as v}from"./index-32144865.js";import{ck as B,u as h,cr as C,ch as k,az as z,cj as D,bO as F,aS as I,cs as M,ct as R,ca as _}from"./index-a820256c.js";import{S as A}from"./Skeleton-d791a65b.js";const O=()=>e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(P,{children:"Edit node name"})})}),e.jsx(n,{mb:12,children:e.jsx(B,{id:"cy-topic",maxLength:50,name:"topic",placeholder:"Node name",rules:{...L}})})]}),P=N(b)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-6de96962.js b/build/assets/index-100276ae.js similarity index 97% rename from build/assets/index-6de96962.js rename to build/assets/index-100276ae.js index ba75fc5ad..627891c79 100644 --- a/build/assets/index-6de96962.js +++ b/build/assets/index-100276ae.js @@ -1,4 +1,4 @@ -import{aS as A,a8 as b,a7 as m,aT as N,a6 as y,aU as L,aV as P,Y as u,a0 as d,a1 as T,r as f,j as e,X as n,Z as S,ab as Y,e as W,a as q,aW as H,aF as J,aX as z,d as X,U as K}from"./index-b639b6f9.js";import{cn as Q,bO as w,bJ as ee,co as te,ck as C,u as ne,ch as se,ca as oe,cj as re,cp as ie}from"./index-06aeb711.js";import{n as j}from"./toastMessage-5eb83970.js";const E=/\btwitter\.com\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,ae=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ce=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,le=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,de=/https:\/\/twitter\.com\/[^/]+\/status\/(\d+)/,ue=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,he=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,xe=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,fe=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,we=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function ge(t){return[ce,we,ae,le,ue].some(s=>s.test(t))?A:xe.test(t)?b:E.test(t)?m:de.test(t)?N:he.test(t)?y:fe.test(t)?L:P}const me=(t,r="")=>{const a=(r===m?E:/@(\w+)/).exec(t);return a?a[1]:null},R=t=>!!t&&[m,b,y].includes(t),pe=({onClick:t,loading:r,type:s})=>{const a=T(i=>i.budget),[h,o]=f.useState(10),l=R(s)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await te(l);o(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[l]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(ye,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(je,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(be,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[Q(a)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:r,onClick:t,size:"large",startIcon:e.jsx(ee,{}),type:"submit",variant:"contained",children:"Approve"})})]})},je=u(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aS as A,a8 as b,a7 as m,aT as N,a6 as y,aU as L,aV as P,Y as u,a0 as d,a1 as T,r as f,j as e,X as n,Z as S,ab as Y,e as W,a as q,aW as H,aF as J,aX as z,d as X,U as K}from"./index-32144865.js";import{cn as Q,bO as w,bJ as ee,co as te,ck as C,u as ne,ch as se,ca as oe,cj as re,cp as ie}from"./index-a820256c.js";import{n as j}from"./toastMessage-ef227247.js";const E=/\btwitter\.com\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,ae=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ce=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,le=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,de=/https:\/\/twitter\.com\/[^/]+\/status\/(\d+)/,ue=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,he=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,xe=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,fe=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,we=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function ge(t){return[ce,we,ae,le,ue].some(s=>s.test(t))?A:xe.test(t)?b:E.test(t)?m:de.test(t)?N:he.test(t)?y:fe.test(t)?L:P}const me=(t,r="")=>{const a=(r===m?E:/@(\w+)/).exec(t);return a?a[1]:null},R=t=>!!t&&[m,b,y].includes(t),pe=({onClick:t,loading:r,type:s})=>{const a=T(i=>i.budget),[h,o]=f.useState(10),l=R(s)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await te(l);o(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[l]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(ye,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(je,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(be,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[Q(a)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:r,onClick:t,size:"large",startIcon:e.jsx(ee,{}),type:"submit",variant:"contained",children:"Approve"})})]})},je=u(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${d.GRAY7}; diff --git a/build/assets/index-b639b6f9.js b/build/assets/index-32144865.js similarity index 99% rename from build/assets/index-b639b6f9.js rename to build/assets/index-32144865.js index 05bd10789..96539b56c 100644 --- a/build/assets/index-b639b6f9.js +++ b/build/assets/index-32144865.js @@ -347,4 +347,4 @@ ft.version="2.29.4";k3e(bn);ft.fn=rt;ft.min=v_e;ft.max=m_e;ft.now=w_e;ft.utc=_f; align-items: center; width: 100%; height: 100%; -`,n7e=Kt.lazy(()=>QR(()=>import("./index-06aeb711.js").then(e=>e.cT),["assets/index-06aeb711.js","assets/index-b67b3d0b.css"]).then(({App:e})=>({default:e}))),RO=()=>{const[e,t]=Kt.useState(!1);return fn.jsxs(OEe,{children:[fn.jsx(Kt.Suspense,{fallback:fn.jsx("div",{children:"Loading..."}),children:e?fn.jsx(n7e,{}):fn.jsx(e7e,{setAuthenticated:t})}),fn.jsx(o8e,{})]})};const i7e=o4.createRoot(document.getElementById("root"));i7e.render(kd?fn.jsx(RO,{}):fn.jsx(mu.StrictMode,{children:fn.jsx(RO,{})}));WZ();oJ();export{a7e as $,h8 as A,Txe as B,Ixe as C,f7e as D,H7e as E,JR as F,Lj as G,J0 as H,bj as I,XSe as J,YSe as K,Rh as L,z7e as M,I7e as N,b7e as O,_7e as P,lj as Q,mu as R,kd as S,kj as T,eJ as U,w7e as V,yj as W,KEe as X,H2 as Y,JEe as Z,Yr as _,tC as a,An as a0,vj as a1,c7e as a2,BEe as a3,u7e as a4,iQ as a5,C7e as a6,O7e as a7,P7e as a8,Fs as a9,bf as aA,rF as aB,VD as aC,$Ee as aD,ft as aE,a8e as aF,QR as aG,jZ as aH,L7e as aI,x7e as aJ,E7e as aK,S7e as aL,n8e as aM,X5e as aN,k5e as aO,A7e as aP,M7e as aQ,iY as aR,k7e as aS,$7e as aT,R7e as aU,N7e as aV,B7e as aW,T7e as aX,l7e as aa,U7e as ab,gb as ac,lg as ad,lE as ae,Vge as af,fE as ag,y7e as ah,v7e as ai,P2e as aj,HD as ak,Jme as al,oye as am,mE as an,YD as ao,_ve as ap,xd as aq,gE as ar,Pye as as,Dye as at,XD as au,g2e as av,tF as aw,QD as ax,hE as ay,cye as az,m7e as b,et as c,wS as d,r8e as e,BM as f,Nl as g,Tc as h,rC as i,fn as j,JE as k,jh as l,cJ as m,wj as n,Uj as o,sf as p,qSe as q,Kt as r,Nj as s,yu as t,zSe as u,j7e as v,D7e as w,Rj as x,F7e as y,wg as z}; +`,n7e=Kt.lazy(()=>QR(()=>import("./index-a820256c.js").then(e=>e.cT),["assets/index-a820256c.js","assets/index-b67b3d0b.css"]).then(({App:e})=>({default:e}))),RO=()=>{const[e,t]=Kt.useState(!1);return fn.jsxs(OEe,{children:[fn.jsx(Kt.Suspense,{fallback:fn.jsx("div",{children:"Loading..."}),children:e?fn.jsx(n7e,{}):fn.jsx(e7e,{setAuthenticated:t})}),fn.jsx(o8e,{})]})};const i7e=o4.createRoot(document.getElementById("root"));i7e.render(kd?fn.jsx(RO,{}):fn.jsx(mu.StrictMode,{children:fn.jsx(RO,{})}));WZ();oJ();export{a7e as $,h8 as A,Txe as B,Ixe as C,f7e as D,H7e as E,JR as F,Lj as G,J0 as H,bj as I,XSe as J,YSe as K,Rh as L,z7e as M,I7e as N,b7e as O,_7e as P,lj as Q,mu as R,kd as S,kj as T,eJ as U,w7e as V,yj as W,KEe as X,H2 as Y,JEe as Z,Yr as _,tC as a,An as a0,vj as a1,c7e as a2,BEe as a3,u7e as a4,iQ as a5,C7e as a6,O7e as a7,P7e as a8,Fs as a9,bf as aA,rF as aB,VD as aC,$Ee as aD,ft as aE,a8e as aF,QR as aG,jZ as aH,L7e as aI,x7e as aJ,E7e as aK,S7e as aL,n8e as aM,X5e as aN,k5e as aO,A7e as aP,M7e as aQ,iY as aR,k7e as aS,$7e as aT,R7e as aU,N7e as aV,B7e as aW,T7e as aX,l7e as aa,U7e as ab,gb as ac,lg as ad,lE as ae,Vge as af,fE as ag,y7e as ah,v7e as ai,P2e as aj,HD as ak,Jme as al,oye as am,mE as an,YD as ao,_ve as ap,xd as aq,gE as ar,Pye as as,Dye as at,XD as au,g2e as av,tF as aw,QD as ax,hE as ay,cye as az,m7e as b,et as c,wS as d,r8e as e,BM as f,Nl as g,Tc as h,rC as i,fn as j,JE as k,jh as l,cJ as m,wj as n,Uj as o,sf as p,qSe as q,Kt as r,Nj as s,yu as t,zSe as u,j7e as v,D7e as w,Rj as x,F7e as y,wg as z}; diff --git a/build/assets/index-98716dc3.js b/build/assets/index-3e078f3e.js similarity index 99% rename from build/assets/index-98716dc3.js rename to build/assets/index-3e078f3e.js index c25ef0242..d7823d347 100644 --- a/build/assets/index-98716dc3.js +++ b/build/assets/index-3e078f3e.js @@ -1,4 +1,4 @@ -import{j as t,a1 as p,Z as o,Y as r,a0 as i,X as a}from"./index-b639b6f9.js";import{u as s,S as g}from"./index-06aeb711.js";const m=e=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:t.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),t.jsx("g",{mask:"url(#mask0_1259_25)",children:t.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),u=e=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:t.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),t.jsx("g",{mask:"url(#mask0_1259_27)",children:t.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),j=e=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:t.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),t.jsx("g",{mask:"url(#mask0_1259_26)",children:t.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),y=()=>{const{open:e}=s("sourcesTable"),{open:l}=s("addItem"),{open:c}=s("addContent"),{open:d}=s("settings"),[h]=p(x=>[x.isAdmin]);return t.jsxs(w,{children:[t.jsx(b,{children:t.jsx("img",{alt:"Second brain",src:"logo.svg"})}),h&&t.jsxs(n,{"data-testid":"add-item-modal",onClick:l,children:[t.jsx(C,{children:t.jsx(u,{})}),t.jsx(o,{children:"Add Item"})]}),t.jsxs(n,{"data-testid":"add-content-modal",onClick:c,children:[t.jsx(C,{children:t.jsx(m,{})}),t.jsx(o,{children:"Add Content"})]}),t.jsxs(n,{id:"cy-open-soure-table",onClick:e,children:[t.jsx(C,{children:t.jsx(j,{})}),t.jsx(o,{children:"Source Table"})]}),t.jsxs(n,{"data-testid":"settings-modal",onClick:d,children:[t.jsx(C,{children:t.jsx(g,{})}),t.jsx(o,{children:"Settings"})]})]})},w=r(a).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{j as t,a1 as p,Z as o,Y as r,a0 as i,X as a}from"./index-32144865.js";import{u as s,S as g}from"./index-a820256c.js";const m=e=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:t.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),t.jsx("g",{mask:"url(#mask0_1259_25)",children:t.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),u=e=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:t.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),t.jsx("g",{mask:"url(#mask0_1259_27)",children:t.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),j=e=>t.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:t.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),t.jsx("g",{mask:"url(#mask0_1259_26)",children:t.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),y=()=>{const{open:e}=s("sourcesTable"),{open:l}=s("addItem"),{open:c}=s("addContent"),{open:d}=s("settings"),[h]=p(x=>[x.isAdmin]);return t.jsxs(w,{children:[t.jsx(b,{children:t.jsx("img",{alt:"Second brain",src:"logo.svg"})}),h&&t.jsxs(n,{"data-testid":"add-item-modal",onClick:l,children:[t.jsx(C,{children:t.jsx(u,{})}),t.jsx(o,{children:"Add Item"})]}),t.jsxs(n,{"data-testid":"add-content-modal",onClick:c,children:[t.jsx(C,{children:t.jsx(m,{})}),t.jsx(o,{children:"Add Content"})]}),t.jsxs(n,{id:"cy-open-soure-table",onClick:e,children:[t.jsx(C,{children:t.jsx(j,{})}),t.jsx(o,{children:"Source Table"})]}),t.jsxs(n,{"data-testid":"settings-modal",onClick:d,children:[t.jsx(C,{children:t.jsx(g,{})}),t.jsx(o,{children:"Settings"})]})]})},w=r(a).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 31; transition: opacity 1s; diff --git a/build/assets/index-603c7e27.js b/build/assets/index-603c7e27.js deleted file mode 100644 index 2591ddd0b..000000000 --- a/build/assets/index-603c7e27.js +++ /dev/null @@ -1,49 +0,0 @@ -import{Y as p,a0 as f,a1 as E,r as u,j as e,X as n,Z as h,ab as N,e as R,a as U,aW as V,aX as L,d as G,U as J}from"./index-b639b6f9.js";import{cn as X,bO as y,bJ as Y,co as q,ck as C,u as W,ch as Z,aA as H,ca as K,cj as Q}from"./index-06aeb711.js";import{n as w}from"./toastMessage-5eb83970.js";import{i as v,O as B,A as ee}from"./constants-b28599d8.js";import"./index-56950d92.js";import"./Select-631e4391.js";const te=({onClick:s,loading:i})=>{const d=E(l=>l.budget),[c,m]=u.useState(10),o="node";return u.useEffect(()=>{(async()=>{try{const r=await q(o);m(r.data.price)}catch(r){console.error("cannot fetch",r)}})()},[o]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(oe,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ne,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[c," sats"]})]}),e.jsxs(se,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[X(d)," sats"]})]})]}),e.jsx(n,{children:e.jsx(y,{color:"secondary","data-testid":"check-icon",disabled:i,onClick:s,size:"large",startIcon:e.jsx(Y,{}),type:"submit",variant:"contained",children:"Approve"})})]})},ne=p(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` - width: 141px; - height: 61px; - border: 1px solid ${f.GRAY7}; - border-radius: 6px; - padding: 16px; - .title { - font-family: Barlow; - color: ${f.secondaryText4}; - font-size: 11px; - font-style: normal; - font-weight: 600; - } - - .value { - font-family: Barlow; - color: ${f.white}; - font-size: 18px; - font-style: normal; - font-weight: 500; - } -`,se=p(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` - color: ${f.secondaryText4}; - .title { - font-family: Barlow; - font-size: 11px; - font-style: normal; - font-weight: 600; - } - - .value { - font-family: Barlow; - font-size: 14px; - font-style: normal; - font-weight: 400; - } -`,oe=p(h)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,re=({type:s,onNextStep:i,onPrevStep:d,name:c,sourceLink:m})=>{const o=s==="Image"?c&&m:c;return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(ae,{children:"Enter details"})})}),e.jsx(n,{mb:4,children:e.jsxs(h,{children:[s," name"]})}),e.jsx(n,{mb:12,children:e.jsx(C,{id:"cy-item-name",maxLength:250,name:"name",placeholder:"Paste name here...",rules:{...N}})}),s==="Image"?e.jsxs(e.Fragment,{children:[e.jsx(n,{mb:4,children:e.jsx(h,{children:"Link"})}),e.jsx(n,{mb:12,children:e.jsx(C,{id:"cy-item-link",maxLength:250,name:"sourceLink",placeholder:"Paste link here...",rules:{...N}})})]}):null,e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(y,{color:"secondary",onClick:d,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(y,{color:"secondary",disabled:!o,onClick:i,size:"large",variant:"contained",children:"Next"})})]})]})},ae=p(h)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,ie=({onNextStep:s,allowNextStep:i,onSelectType:d,selectedType:c})=>{const[m,o]=u.useState(v);u.useEffect(()=>{o(r=>r.value===c?r:B.find(t=>t.value===c)||v)},[c]);const l=r=>{d((r==null?void 0:r.label)||"")};return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(ce,{children:"Select Type"})})}),e.jsx(n,{direction:"row",mb:20,children:e.jsx(ee,{onSelect:l,options:B,selectedValue:m})}),e.jsx(n,{children:e.jsx(y,{color:"secondary",disabled:!i,onClick:s,size:"large",type:"button",variant:"contained",children:"Next"})})]})},ce=p(h)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,le=async(s,i,d,c)=>{var r;const m="node",o={};o.node_type=s.nodeType,o.name=s.name,s.nodeType==="Image"&&(o.node_data={source_link:s.sourceLink});let l="";await R(async()=>{const t=await G.enable();o.pubkey=t==null?void 0:t.pubkey,l=await J()});try{const t=await U.post(`/${m}`,JSON.stringify(o),{Authorization:l});if(t.error){const{message:x}=t.error;throw new Error(x)}c(s,(r=t==null?void 0:t.data)==null?void 0:r.ref_id),w(V),i()}catch(t){let x=L;t!=null&&t.response&&t.response.data&&t.response.data.message?x=t.response.data.message:t instanceof Error&&(x=t.message),w(x),i()}},fe=()=>{const[s,i]=u.useState(0),{close:d,visible:c}=W("addItem"),[m]=E(a=>[a.setBudget]),o=Z({mode:"onChange"}),{watch:l,setValue:r,reset:t}=o,[x,g]=u.useState(!1),[z,I]=H(a=>[a.addNewNode,a.setSelectedNode]);u.useEffect(()=>()=>{i(0),t()},[c,t]);const j=l("nodeType"),O=l("name"),A=l("sourceLink"),P=()=>{d()},b=()=>{i(s+1)},_=()=>{i(s-1)},D=(a,F)=>{const S=F||`new-id-${Math.random()}`,k=a.nodeType.toLocaleLowerCase(),T={name:a.name,type:k,label:a.name,node_type:k,id:S,ref_id:S,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...a.sourceLink?{source_link:a.sourceLink}:{}};z(T),I(T)},M=o.handleSubmit(async a=>{g(!0);try{await le(a,P,m,D)}catch{w(L)}finally{g(!1)}}),$=a=>r("nodeType",a);return e.jsx(K,{id:"addItem",kind:"small",onClose:d,preventOutsideClose:!0,children:e.jsx(Q,{...o,children:e.jsxs("form",{id:"add-node-form",onSubmit:M,children:[s===0&&e.jsx(ie,{allowNextStep:!!j,onNextStep:b,onSelectType:$,selectedType:j}),s===1&&e.jsx(re,{name:O,onNextStep:b,onPrevStep:_,sourceLink:A||"",type:j}),s===2&&e.jsx(te,{loading:x,onClick:()=>null})]})})})};export{fe as AddItemModal}; diff --git a/build/assets/index-56950d92.js b/build/assets/index-753a4213.js similarity index 94% rename from build/assets/index-56950d92.js rename to build/assets/index-753a4213.js index 22e823973..9d6a39d8d 100644 --- a/build/assets/index-56950d92.js +++ b/build/assets/index-753a4213.js @@ -1,4 +1,4 @@ -import{Y as t,a0 as o,X as d,j as a}from"./index-b639b6f9.js";const i={podcast:{img:"audio_badge.svg",label:"podcast"},clip:{img:"audio_badge.svg",label:"clip"},show:{img:"show_badge.svg",label:"show"},tweet:{img:"twitter_badge.svg",label:"tweet"},twitter_space:{img:"audio_badge.svg",label:"clip"},youtube:{img:"video_badge.svg",label:"clip"},episode:{img:"video_badge.svg",label:"episode"},document:{img:"notes_badge.svg",label:"text"},image:{img:"image_badge.png",label:"image"}},p=({type:e})=>{var g,s,l;return a.jsxs(b,{children:[a.jsx("img",{alt:((g=i[e])==null?void 0:g.label)||e,className:"badge__img",src:((s=i[e])==null?void 0:s.img)||"image_badge.png"}),a.jsx("div",{className:"badge__label",children:((l=i[e])==null?void 0:l.label)||e})]})},b=t(d).attrs({direction:"row"})` +import{Y as t,a0 as o,X as d,j as a}from"./index-32144865.js";const i={podcast:{img:"audio_badge.svg",label:"podcast"},clip:{img:"audio_badge.svg",label:"clip"},show:{img:"show_badge.svg",label:"show"},tweet:{img:"twitter_badge.svg",label:"tweet"},twitter_space:{img:"audio_badge.svg",label:"clip"},youtube:{img:"video_badge.svg",label:"clip"},episode:{img:"video_badge.svg",label:"episode"},document:{img:"notes_badge.svg",label:"text"},image:{img:"image_badge.png",label:"image"}},p=({type:e})=>{var g,s,l;return a.jsxs(b,{children:[a.jsx("img",{alt:((g=i[e])==null?void 0:g.label)||e,className:"badge__img",src:((s=i[e])==null?void 0:s.img)||"image_badge.png"}),a.jsx("div",{className:"badge__label",children:((l=i[e])==null?void 0:l.label)||e})]})},b=t(d).attrs({direction:"row"})` cursor: pointer; background: ${o.white}; border-radius: 3px; diff --git a/build/assets/index-b7491f5d.js b/build/assets/index-7cae0b0a.js similarity index 54% rename from build/assets/index-b7491f5d.js rename to build/assets/index-7cae0b0a.js index 7993388ed..95b77f405 100644 --- a/build/assets/index-b7491f5d.js +++ b/build/assets/index-7cae0b0a.js @@ -1 +1 @@ -import{j as o}from"./index-b639b6f9.js";import{u as e,ca as r,cq as a}from"./index-06aeb711.js";const u=()=>{const{close:s}=e("sourcesTable");return o.jsx(r,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:s,children:o.jsx(a,{})})};export{u as SourcesTableModal}; +import{j as o}from"./index-32144865.js";import{u as e,ca as r,cq as a}from"./index-a820256c.js";const u=()=>{const{close:s}=e("sourcesTable");return o.jsx(r,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:s,children:o.jsx(a,{})})};export{u as SourcesTableModal}; diff --git a/build/assets/index-8982aad6.js b/build/assets/index-86f4b424.js similarity index 96% rename from build/assets/index-8982aad6.js rename to build/assets/index-86f4b424.js index 48f87766a..4d810823c 100644 --- a/build/assets/index-8982aad6.js +++ b/build/assets/index-86f4b424.js @@ -1,4 +1,4 @@ -import{Y as i,X as n,Z as m,j as e,ab as T,a0 as p,r as A,a1 as v}from"./index-b639b6f9.js";import{aA as M,cf as $,cg as b,ch as k,aK as j,ci as B,cj as D,ck as x,aS as C,cl as F,cm as G,u as R,ca as L}from"./index-06aeb711.js";const P=({onClose:a})=>{const[s]=M(t=>[t.graphStyle]),r=()=>{localStorage.setItem("graphStyle",s),a()};return e.jsxs(V,{direction:"column",children:[e.jsx(z,{children:"Default graph view:"}),e.jsx($,{}),e.jsx(n,{mt:308,children:e.jsx(b,{kind:"big",onClick:r,children:"Save changes"})})]})},V=i(n)` +import{Y as i,X as n,Z as m,j as e,ab as T,a0 as p,r as A,a1 as v}from"./index-32144865.js";import{aA as M,cf as $,cg as b,ch as k,aK as j,ci as B,cj as D,ck as x,aS as C,cl as F,cm as G,u as R,ca as L}from"./index-a820256c.js";const P=({onClose:a})=>{const[s]=M(t=>[t.graphStyle]),r=()=>{localStorage.setItem("graphStyle",s),a()};return e.jsxs(V,{direction:"column",children:[e.jsx(z,{children:"Default graph view:"}),e.jsx($,{}),e.jsx(n,{mt:308,children:e.jsx(b,{kind:"big",onClick:r,children:"Save changes"})})]})},V=i(n)` display: flex; gap: 10px; padding: 36px; diff --git a/build/assets/index-0f881382.js b/build/assets/index-9035c855.js similarity index 86% rename from build/assets/index-0f881382.js rename to build/assets/index-9035c855.js index f47dbaeac..943cc7585 100644 --- a/build/assets/index-0f881382.js +++ b/build/assets/index-9035c855.js @@ -1,4 +1,4 @@ -import{Y as E,Z as C,j as e,X as c,r as a,a0 as O,aP as R}from"./index-b639b6f9.js";import{u as B,aA as b,az as _,bO as p,aS as z,cs as I,cu as L,bY as x,ca as M}from"./index-06aeb711.js";import{T as k}from"./toastMessage-5eb83970.js";import{S as A}from"./Skeleton-5410b08c.js";const P=()=>e.jsx(c,{children:e.jsx(c,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(c,{align:"center",direction:"row",children:e.jsx(D,{children:"Remove node"})})})}),D=E(C)` +import{Y as E,Z as C,j as e,X as c,r as a,a0 as O,aP as R}from"./index-32144865.js";import{u as B,aA as b,az as _,bO as p,aS as z,cs as I,cu as L,bY as x,ca as M}from"./index-a820256c.js";import{T as k}from"./toastMessage-ef227247.js";import{S as A}from"./Skeleton-d791a65b.js";const P=()=>e.jsx(c,{children:e.jsx(c,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(c,{align:"center",direction:"row",children:e.jsx(D,{children:"Remove node"})})})}),D=E(C)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-fc412426.js b/build/assets/index-94b46638.js similarity index 92% rename from build/assets/index-fc412426.js rename to build/assets/index-94b46638.js index ef2b483d7..6ecb71142 100644 --- a/build/assets/index-fc412426.js +++ b/build/assets/index-94b46638.js @@ -1,4 +1,4 @@ -import{r as n,j as t,a4 as O,Y as E,a0 as y,Z as B,X as f}from"./index-b639b6f9.js";import{cz as I,cA as v,cB as N,u as C,ch as z,az as F,cj as P,aS as _,bO as M,cC as R,ca as k}from"./index-06aeb711.js";import{A as w,O as Y}from"./constants-b28599d8.js";import"./index-56950d92.js";import"./Select-631e4391.js";const D=({selectedType:a,setSelectedType:d})=>{const[l,s]=n.useState([]);n.useEffect(()=>{(async()=>{try{const{data:u}=await I();s(u.edge_types)}catch(u){console.warn(u)}})()},[s]);const c=o=>({label:o,value:o}),p=o=>{d((o==null?void 0:o.value)||"")};return t.jsx(w,{onSelect:p,options:l.map(c),selectedValue:a?c(a):null})},H=({onSelect:a,selectedValue:d})=>{const[l,s]=n.useState([]),[c,p]=n.useState(!1),o=async e=>{const m={muted:"False",sort_by:N,search:e,skip:"0",limit:"1000"};p(!0);try{const h=await v(m.search);s(h.data)}catch{s([])}finally{p(!1)}},u=n.useMemo(()=>O.debounce(o,300),[]),r=e=>{if(!e){s([]);return}e.length>2&&u(e)},j=e=>{const m=e?l.find(h=>h.ref_id===e.value):null;a(m||null)},i=e=>({label:e.search_value,value:e.ref_id,type:e.node_type}),S=e=>e.map(i);return t.jsx(w,{handleInputChange:r,isLoading:c,onSelect:j,options:S(l)||Y,selectedValue:d?i(d):null})},U=({from:a,onSelect:d,selectedType:l,setSelectedType:s,selectedToNode:c})=>t.jsxs(f,{mb:20,children:[t.jsx(f,{align:"center",direction:"row",justify:"space-between",mb:18,children:t.jsx(f,{align:"center",direction:"row",children:t.jsx(V,{children:"Add edge"})})}),t.jsxs($,{mb:12,children:[t.jsxs(b,{children:[t.jsx("div",{className:"label",children:"From"}),t.jsx("div",{children:a})]}),t.jsxs(b,{children:[t.jsx("div",{className:"label",children:"Type"}),t.jsx(D,{selectedType:l,setSelectedType:s})]}),t.jsxs(b,{children:[t.jsx("div",{className:"label",children:"To"}),t.jsx(H,{onSelect:d,selectedValue:c})]})]})]}),V=E(B)` +import{r as n,j as t,a4 as O,Y as E,a0 as y,Z as B,X as f}from"./index-32144865.js";import{cz as I,cA as v,cB as N,u as C,ch as z,az as F,cj as P,aS as _,bO as M,cC as R,ca as k}from"./index-a820256c.js";import{A as w,O as Y}from"./constants-fce7955b.js";import"./index-753a4213.js";import"./Select-6f6c7ca7.js";const D=({selectedType:a,setSelectedType:d})=>{const[l,s]=n.useState([]);n.useEffect(()=>{(async()=>{try{const{data:u}=await I();s(u.edge_types)}catch(u){console.warn(u)}})()},[s]);const c=o=>({label:o,value:o}),p=o=>{d((o==null?void 0:o.value)||"")};return t.jsx(w,{onSelect:p,options:l.map(c),selectedValue:a?c(a):null})},H=({onSelect:a,selectedValue:d})=>{const[l,s]=n.useState([]),[c,p]=n.useState(!1),o=async e=>{const m={muted:"False",sort_by:N,search:e,skip:"0",limit:"1000"};p(!0);try{const h=await v(m.search);s(h.data)}catch{s([])}finally{p(!1)}},u=n.useMemo(()=>O.debounce(o,300),[]),r=e=>{if(!e){s([]);return}e.length>2&&u(e)},j=e=>{const m=e?l.find(h=>h.ref_id===e.value):null;a(m||null)},i=e=>({label:e.search_value,value:e.ref_id,type:e.node_type}),S=e=>e.map(i);return t.jsx(w,{handleInputChange:r,isLoading:c,onSelect:j,options:S(l)||Y,selectedValue:d?i(d):null})},U=({from:a,onSelect:d,selectedType:l,setSelectedType:s,selectedToNode:c})=>t.jsxs(f,{mb:20,children:[t.jsx(f,{align:"center",direction:"row",justify:"space-between",mb:18,children:t.jsx(f,{align:"center",direction:"row",children:t.jsx(V,{children:"Add edge"})})}),t.jsxs($,{mb:12,children:[t.jsxs(b,{children:[t.jsx("div",{className:"label",children:"From"}),t.jsx("div",{children:a})]}),t.jsxs(b,{children:[t.jsx("div",{className:"label",children:"Type"}),t.jsx(D,{selectedType:l,setSelectedType:s})]}),t.jsxs(b,{children:[t.jsx("div",{className:"label",children:"To"}),t.jsx(H,{onSelect:d,selectedValue:c})]})]})]}),V=E(B)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-06aeb711.js b/build/assets/index-a820256c.js similarity index 99% rename from build/assets/index-06aeb711.js rename to build/assets/index-a820256c.js index 8f9bd3cb4..39a0f0901 100644 --- a/build/assets/index-06aeb711.js +++ b/build/assets/index-a820256c.js @@ -1,4 +1,4 @@ -import{c as commonjsGlobal,a as api,i as isSphinx,d as distExports,b as distExports$1,e as executeIfProd,g as getDefaultExportFromCjs,r as reactExports,m as memoize$3,$ as $2AODx$react,w as withEmotionCache,T as ThemeContext$1,_ as _extends$r,f as isPropValid,j as jsxRuntimeExports,u as useTheme$1,h as _objectWithoutPropertiesLoose$m,k as defaultSxConfig,l as isPlainObject$6,n as capitalize$1,o as createTheme$1,p as deepmerge,s as styleFunctionSx,q as useThemeProps,t as handleBreakpoints,v as resolveBreakpointValues,x as createUnarySpacing,y as mergeBreakpointsInOrder,z as getValue$2,A as THEME_ID,B as defaultTheme$1,C as useThemeProps$1,R as React,D as ReactDOM,E as alpha$1,F as reactDomExports,G as useTheme$2,H as formatMuiErrorMessage,I as resolveProps,J as lighten,K as darken,L as createAnimation,M as cssValue,N as NODE_RELATIVE_HIGHLIGHT_COLORS,O as AWS_IMAGE_BUCKET_URL,P as CLOUDFRONT_IMAGE_BUCKET_URL,Q as isDevelopment,S as isE2E,U as getLSat,V as isChileGraph,W as create$4,X as Flex,Y as styled$5,Z as Text$1,a0 as colors,a1 as useUserStore,a2 as $e,a3 as SocketContext,a4 as lodashExports,a5 as media,a6 as RSS,a7 as TWITTER_HANDLE,a8 as YOUTUBE_CHANNEL,a9 as Ae,aa as We,ab as requiredRule$1,ac as _baseGetTag,ad as isObjectLike_1,ae as isArray_1,af as _MapCache,ag as _Symbol,ah as isObject$j,ai as isFunction$1,aj as _Uint8Array,ak as eq_1,al as _getAllKeys,am as _Stack,an as _getTag,ao as isBufferExports,ap as isTypedArray_1,aq as isObject_1,ar as keys_1,as as isArguments_1,at as _isIndex,au as isLength_1,av as _Set,aw as _arrayPush,ax as isArrayLike_1,ay as _baseUnary,az as _defineProperty$F,aA as _root,aB as _getPrototype,aC as _baseAssignValue,aD as PropagateLoader,aE as hooks,aF as updateBudget,aG as __vitePreload}from"./index-b639b6f9.js";function formatBudget(te){return te===null?"?":te.toLocaleString("en-US").split(",").join(" ")}const videoTimeToSeconds=te=>{const[Z,ae,ie]=te.split(":"),oe=parseInt(Z,10),ne=parseInt(ae,10),se=parseInt(ie,10);return oe*3600+ne*60+se},typesWeighedByChildren=["show","episode"],getSuperficialNodeWeight=(te,Z)=>{var ie;return te.weight?te.weight:typesWeighedByChildren.includes(te.node_type)?((ie=te==null?void 0:te.children)==null?void 0:ie.length)||0:Z.filter(oe=>oe.sourceRef===te.ref_id||oe.targetRef===te.ref_id).length},getMaxSuperficialWeightPerNodeType=(te,Z)=>{const ae={};return te.forEach(ie=>{const oe=getSuperficialNodeWeight(ie,Z);(!ae[ie.node_type]||ae[ie.node_type]{const[Z,ae,ie]=te.split(":"),oe=parseInt(Z,10),ne=parseInt(ae,10),se=parseInt(ie,10);return oe*3600+ne*60+se},typesWeighedByChildren=["show","episode"],getSuperficialNodeWeight=(te,Z)=>{var ie;return te.weight?te.weight:typesWeighedByChildren.includes(te.node_type)?((ie=te==null?void 0:te.children)==null?void 0:ie.length)||0:Z.filter(oe=>oe.sourceRef===te.ref_id||oe.targetRef===te.ref_id).length},getMaxSuperficialWeightPerNodeType=(te,Z)=>{const ae={};return te.forEach(ie=>{const oe=getSuperficialNodeWeight(ie,Z);(!ae[ie.node_type]||ae[ie.node_type]"u")return ae(new Error("Must be called in a browser context"));var ie=window.webln;if(!ie)return ae(new errors_1.MissingProviderError("Your browser has no WebLN provider"));ie.enable().then(function(){return Z(ie)}).catch(function(oe){return ae(oe)})})}client.requestProvider=requestProvider;var provider={};Object.defineProperty(provider,"__esModule",{value:!0});(function(te){var Z=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(ie,oe,ne,se){se===void 0&&(se=ne);var le=Object.getOwnPropertyDescriptor(oe,ne);(!le||("get"in le?!oe.__esModule:le.writable||le.configurable))&&(le={enumerable:!0,get:function(){return oe[ne]}}),Object.defineProperty(ie,se,le)}:function(ie,oe,ne,se){se===void 0&&(se=ne),ie[se]=oe[ne]}),ae=commonjsGlobal&&commonjsGlobal.__exportStar||function(ie,oe){for(var ne in ie)ne!=="default"&&!Object.prototype.hasOwnProperty.call(oe,ne)&&Z(oe,ie,ne)};Object.defineProperty(te,"__esModule",{value:!0}),ae(client,te),ae(provider,te),ae(errors,te)})(lib);async function buyLsat(te){const Z={amount:te};return api.post("/buy_lsat",JSON.stringify(Z))}async function payLsat(te){let Z;if(isSphinx()){const oe=localStorage.getItem("lsat");if(oe){localStorage.removeItem("lsat");const le=JSON.parse(oe);await distExports.updateLsat(le.identifier,"expired")}const ne=await distExports.setBudget();let se=ne==null?void 0:ne.budget;se||(se=(await distExports.authorize()).budget);try{await buyLsat(se)}catch(le){if(le.status===402){Z=distExports$1.Lsat.fromHeader(le.headers.get("www-authenticate"));const he=await distExports.saveLsat(Z.invoice,Z.baseMacaroon,window.location.host);he!=null&&he.lsat&&(localStorage.setItem("lsat",JSON.stringify({macaroon:Z.baseMacaroon,identifier:Z.id,preimage:he.lsat.split(":")[1]})),await te(se))}return}}localStorage.removeItem("lsat");const ae=await lib.requestProvider(),ie=50;try{await buyLsat(ie)}catch(oe){Z=distExports$1.Lsat.fromHeader(oe.headers.get("www-authenticate"));const ne=await ae.sendPayment(Z.invoice);ne!=null&&ne.preimage&&localStorage.setItem("lsat",JSON.stringify({macaroon:Z.baseMacaroon,identifier:Z.id,preimage:ne.preimage})),await te(ie)}}const saveConsumedContent=async te=>{await executeIfProd(async()=>{try{await distExports.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...te},type:"second_brain_consumed_content"})}catch(Z){console.warn(Z)}})},saveSearchTerm=async()=>{await executeIfProd(async()=>{await distExports.enable(!0)||console.log("Sphinx enable failed, means no pubkey and no budget (including budget of 0)")})};var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function te(ie,oe,ne,se,le,he){if(he!==ReactPropTypesSecret){var ce=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw ce.name="Invariant Violation",ce}}te.isRequired=te;function Z(){return te}var ae={array:te,bigint:te,bool:te,func:te,number:te,object:te,string:te,symbol:te,any:te,arrayOf:Z,element:te,elementType:te,instanceOf:Z,node:te,objectOf:Z,oneOf:Z,oneOfType:Z,shape:Z,exact:Z,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return ae.PropTypes=ae,ae};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports);function createChainedFunction(...te){return te.reduce((Z,ae)=>ae==null?Z:function(...oe){Z.apply(this,oe),ae.apply(this,oe)},()=>{})}function debounce$4(te,Z=166){let ae;function ie(...oe){const ne=()=>{te.apply(this,oe)};clearTimeout(ae),ae=setTimeout(ne,Z)}return ie.clear=()=>{clearTimeout(ae)},ie}function isMuiElement(te,Z){var ae,ie;return reactExports.isValidElement(te)&&Z.indexOf((ae=te.type.muiName)!=null?ae:(ie=te.type)==null||(ie=ie._payload)==null||(ie=ie.value)==null?void 0:ie.muiName)!==-1}function ownerDocument(te){return te&&te.ownerDocument||document}function ownerWindow(te){return ownerDocument(te).defaultView||window}function setRef(te,Z){typeof te=="function"?te(Z):te&&(te.current=Z)}const useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,useEnhancedEffect$1=useEnhancedEffect;function useEventCallback(te){const Z=reactExports.useRef(te);return useEnhancedEffect$1(()=>{Z.current=te}),reactExports.useRef((...ae)=>(0,Z.current)(...ae)).current}function useForkRef(...te){return reactExports.useMemo(()=>te.every(Z=>Z==null)?null:Z=>{te.forEach(ae=>{setRef(ae,Z)})},te)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(te){const{type:Z,tagName:ae}=te;return!!(ae==="INPUT"&&inputTypesWhitelist[Z]&&!te.readOnly||ae==="TEXTAREA"&&!te.readOnly||te.isContentEditable)}function handleKeyDown(te){te.metaKey||te.altKey||te.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(te){te.addEventListener("keydown",handleKeyDown,!0),te.addEventListener("mousedown",handlePointerDown,!0),te.addEventListener("pointerdown",handlePointerDown,!0),te.addEventListener("touchstart",handlePointerDown,!0),te.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(te){const{target:Z}=te;try{return Z.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(Z)}function useIsFocusVisible(){const te=reactExports.useCallback(oe=>{oe!=null&&prepare(oe.ownerDocument)},[]),Z=reactExports.useRef(!1);function ae(){return Z.current?(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),Z.current=!1,!0):!1}function ie(oe){return isFocusVisible(oe)?(Z.current=!0,!0):!1}return{isFocusVisibleRef:Z,onFocus:ie,onBlur:ae,ref:te}}function getScrollbarSize(te){const Z=te.documentElement.clientWidth;return Math.abs(window.innerWidth-Z)}let cachedType;function detectScrollType(){if(cachedType)return cachedType;const te=document.createElement("div"),Z=document.createElement("div");return Z.style.width="10px",Z.style.height="1px",te.appendChild(Z),te.dir="rtl",te.style.fontSize="14px",te.style.width="4px",te.style.height="1px",te.style.position="absolute",te.style.top="-1000px",te.style.overflow="scroll",document.body.appendChild(te),cachedType="reverse",te.scrollLeft>0?cachedType="default":(te.scrollLeft=1,te.scrollLeft===0&&(cachedType="negative")),document.body.removeChild(te),cachedType}function getNormalizedScrollLeft(te,Z){const ae=te.scrollLeft;if(Z!=="rtl")return ae;switch(detectScrollType()){case"negative":return te.scrollWidth-te.clientWidth+ae;case"reverse":return te.scrollWidth-te.clientWidth-ae;default:return ae}}function composeClasses(te,Z,ae=void 0){const ie={};return Object.keys(te).forEach(oe=>{ie[oe]=te[oe].reduce((ne,se)=>{if(se){const le=Z(se);le!==""&&ne.push(le),ae&&ae[se]&&ne.push(ae[se])}return ne},[]).join(" ")}),ie}const defaultGenerator=te=>te,createClassNameGenerator=()=>{let te=defaultGenerator;return{configure(Z){te=Z},generate(Z){return te(Z)},reset(){te=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),ClassNameGenerator$1=ClassNameGenerator,globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass(te,Z,ae="Mui"){const ie=globalStateClassesMapping[Z];return ie?`${ae}-${ie}`:`${ClassNameGenerator$1.generate(te)}-${Z}`}function generateUtilityClasses(te,Z,ae="Mui"){const ie={};return Z.forEach(oe=>{ie[oe]=generateUtilityClass(te,oe,ae)}),ie}var isBrowser$1=!0;function getRegisteredStyles(te,Z,ae){var ie="";return ae.split(" ").forEach(function(oe){te[oe]!==void 0?Z.push(te[oe]+";"):ie+=oe+" "}),ie}var registerStyles=function(Z,ae,ie){var oe=Z.key+"-"+ae.name;(ie===!1||isBrowser$1===!1)&&Z.registered[oe]===void 0&&(Z.registered[oe]=ae.styles)},insertStyles=function(Z,ae,ie){registerStyles(Z,ae,ie);var oe=Z.key+"-"+ae.name;if(Z.inserted[ae.name]===void 0){var ne=ae;do Z.insert(ae===ne?"."+oe:"",ne,Z.sheet,!0),ne=ne.next;while(ne!==void 0)}};function murmur2(te){for(var Z=0,ae,ie=0,oe=te.length;oe>=4;++ie,oe-=4)ae=te.charCodeAt(ie)&255|(te.charCodeAt(++ie)&255)<<8|(te.charCodeAt(++ie)&255)<<16|(te.charCodeAt(++ie)&255)<<24,ae=(ae&65535)*1540483477+((ae>>>16)*59797<<16),ae^=ae>>>24,Z=(ae&65535)*1540483477+((ae>>>16)*59797<<16)^(Z&65535)*1540483477+((Z>>>16)*59797<<16);switch(oe){case 3:Z^=(te.charCodeAt(ie+2)&255)<<16;case 2:Z^=(te.charCodeAt(ie+1)&255)<<8;case 1:Z^=te.charCodeAt(ie)&255,Z=(Z&65535)*1540483477+((Z>>>16)*59797<<16)}return Z^=Z>>>13,Z=(Z&65535)*1540483477+((Z>>>16)*59797<<16),((Z^Z>>>15)>>>0).toString(36)}var unitlessKeys={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},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(Z){return Z.charCodeAt(1)===45},isProcessableValue=function(Z){return Z!=null&&typeof Z!="boolean"},processStyleName=memoize$3(function(te){return isCustomProperty(te)?te:te.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(Z,ae){switch(Z){case"animation":case"animationName":if(typeof ae=="string")return ae.replace(animationRegex,function(ie,oe,ne){return cursor={name:oe,styles:ne,next:cursor},oe})}return unitlessKeys[Z]!==1&&!isCustomProperty(Z)&&typeof ae=="number"&&ae!==0?ae+"px":ae},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(te,Z,ae){if(ae==null)return"";if(ae.__emotion_styles!==void 0)return ae;switch(typeof ae){case"boolean":return"";case"object":{if(ae.anim===1)return cursor={name:ae.name,styles:ae.styles,next:cursor},ae.name;if(ae.styles!==void 0){var ie=ae.next;if(ie!==void 0)for(;ie!==void 0;)cursor={name:ie.name,styles:ie.styles,next:cursor},ie=ie.next;var oe=ae.styles+";";return oe}return createStringFromObject(te,Z,ae)}case"function":{if(te!==void 0){var ne=cursor,se=ae(te);return cursor=ne,handleInterpolation(te,Z,se)}break}}if(Z==null)return ae;var le=Z[ae];return le!==void 0?le:ae}function createStringFromObject(te,Z,ae){var ie="";if(Array.isArray(ae))for(var oe=0;oe96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(Z,ae,ie){var oe;if(ae){var ne=ae.shouldForwardProp;oe=Z.__emotion_forwardProp&&ne?function(se){return Z.__emotion_forwardProp(se)&&ne(se)}:ne}return typeof oe!="function"&&ie&&(oe=Z.__emotion_forwardProp),oe},Insertion=function(Z){var ae=Z.cache,ie=Z.serialized,oe=Z.isStringTag;return registerStyles(ae,ie,oe),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(ae,ie,oe)}),null},createStyled$1=function te(Z,ae){var ie=Z.__emotion_real===Z,oe=ie&&Z.__emotion_base||Z,ne,se;ae!==void 0&&(ne=ae.label,se=ae.target);var le=composeShouldForwardProps(Z,ae,ie),he=le||getDefaultShouldForwardProp(oe),ce=!he("as");return function(){var de=arguments,ue=ie&&Z.__emotion_styles!==void 0?Z.__emotion_styles.slice(0):[];if(ne!==void 0&&ue.push("label:"+ne+";"),de[0]==null||de[0].raw===void 0)ue.push.apply(ue,de);else{ue.push(de[0][0]);for(var fe=de.length,pe=1;peZ(isEmpty$3(oe)?ae:oe):Z;return jsxRuntimeExports.jsx(Global$1,{styles:ie})}/** * @mui/styled-engine v5.15.1 @@ -4675,7 +4675,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .Toastify__progress-bar--success { background-color: ${colors.primaryGreen}; } -`,LazySettingsModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-8982aad6.js"),["assets/index-8982aad6.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]).then(({SettingsModal:te})=>({default:te}))),LazyAddContentModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-6de96962.js"),["assets/index-6de96962.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css","assets/toastMessage-5eb83970.js"]).then(({AddContentModal:te})=>({default:te}))),LazyAddItemModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-603c7e27.js"),["assets/index-603c7e27.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css","assets/toastMessage-5eb83970.js","assets/constants-b28599d8.js","assets/index-56950d92.js","assets/Select-631e4391.js"]).then(({AddItemModal:te})=>({default:te}))),LazySourcesTableModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-b7491f5d.js"),["assets/index-b7491f5d.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]).then(({SourcesTableModal:te})=>({default:te}))),LazyEditNodeNameModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-fce50a17.js"),["assets/index-fce50a17.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css","assets/Skeleton-5410b08c.js"]).then(({EditNodeNameModal:te})=>({default:te}))),LazyRemoveNodeModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-0f881382.js"),["assets/index-0f881382.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css","assets/toastMessage-5eb83970.js","assets/Skeleton-5410b08c.js"]).then(({RemoveNodeModal:te})=>({default:te}))),LazyAddNodeEdgeModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-fc412426.js"),["assets/index-fc412426.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css","assets/constants-b28599d8.js","assets/index-56950d92.js","assets/Select-631e4391.js"]).then(({AddNodeEdgeModal:te})=>({default:te}))),ModalsContainer=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyAddItemModal,{}),jsxRuntimeExports.jsx(LazyAddContentModal,{}),jsxRuntimeExports.jsx(LazySettingsModal,{}),jsxRuntimeExports.jsx(LazyEditNodeNameModal,{}),jsxRuntimeExports.jsx(LazyRemoveNodeModal,{}),jsxRuntimeExports.jsx(LazySourcesTableModal,{}),jsxRuntimeExports.jsx(LazyAddNodeEdgeModal,{})]}),Wrapper=styled$5(Flex)` +`,LazySettingsModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-86f4b424.js"),["assets/index-86f4b424.js","assets/index-32144865.js","assets/index-5f215f9e.css"]).then(({SettingsModal:te})=>({default:te}))),LazyAddContentModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-100276ae.js"),["assets/index-100276ae.js","assets/index-32144865.js","assets/index-5f215f9e.css","assets/toastMessage-ef227247.js"]).then(({AddContentModal:te})=>({default:te}))),LazyAddItemModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-b43b296e.js"),["assets/index-b43b296e.js","assets/index-32144865.js","assets/index-5f215f9e.css","assets/toastMessage-ef227247.js","assets/constants-fce7955b.js","assets/index-753a4213.js","assets/Select-6f6c7ca7.js"]).then(({AddItemModal:te})=>({default:te}))),LazySourcesTableModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-7cae0b0a.js"),["assets/index-7cae0b0a.js","assets/index-32144865.js","assets/index-5f215f9e.css"]).then(({SourcesTableModal:te})=>({default:te}))),LazyEditNodeNameModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-0bceab6d.js"),["assets/index-0bceab6d.js","assets/index-32144865.js","assets/index-5f215f9e.css","assets/Skeleton-d791a65b.js"]).then(({EditNodeNameModal:te})=>({default:te}))),LazyRemoveNodeModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-9035c855.js"),["assets/index-9035c855.js","assets/index-32144865.js","assets/index-5f215f9e.css","assets/toastMessage-ef227247.js","assets/Skeleton-d791a65b.js"]).then(({RemoveNodeModal:te})=>({default:te}))),LazyAddNodeEdgeModal=reactExports.lazy(()=>__vitePreload(()=>import("./index-94b46638.js"),["assets/index-94b46638.js","assets/index-32144865.js","assets/index-5f215f9e.css","assets/constants-fce7955b.js","assets/index-753a4213.js","assets/Select-6f6c7ca7.js"]).then(({AddNodeEdgeModal:te})=>({default:te}))),ModalsContainer=()=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(LazyAddItemModal,{}),jsxRuntimeExports.jsx(LazyAddContentModal,{}),jsxRuntimeExports.jsx(LazySettingsModal,{}),jsxRuntimeExports.jsx(LazyEditNodeNameModal,{}),jsxRuntimeExports.jsx(LazyRemoveNodeModal,{}),jsxRuntimeExports.jsx(LazySourcesTableModal,{}),jsxRuntimeExports.jsx(LazyAddNodeEdgeModal,{})]}),Wrapper=styled$5(Flex)` height: 100%; width: 100%; background-color: ${colors.black}; @@ -4686,4 +4686,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${colors.white}; font-size: 12px; opacity: 0.5; -`,LazyMainToolbar=reactExports.lazy(()=>__vitePreload(()=>import("./index-98716dc3.js"),["assets/index-98716dc3.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]).then(({MainToolbar:te})=>({default:te}))),LazyUniverse=reactExports.lazy(()=>__vitePreload(()=>import("./index-ca6baa98.js"),["assets/index-ca6baa98.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css","assets/index-56950d92.js","assets/PlusIcon-a27d580f.js"]).then(({Universe:te})=>({default:te}))),LazySideBar=reactExports.lazy(()=>__vitePreload(()=>import("./index-728012ea.js").then(te=>te.i),["assets/index-728012ea.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css","assets/PlusIcon-a27d580f.js","assets/index-56950d92.js","assets/Skeleton-5410b08c.js","assets/toastMessage-5eb83970.js","assets/Select-631e4391.js","assets/index-6125620a.css"]).then(({SideBar:te})=>({default:te}))),App=()=>{const[te,Z]=useUserStore(ke=>[ke.setBudget,ke.setNodeCount]),[ae,ie,oe,ne,se]=[useAppStore(ke=>ke.setSidebarOpen),useAppStore(ke=>ke.currentSearch),useAppStore(ke=>ke.setCurrentSearch),useAppStore(ke=>ke.setRelevanceSelected),useAppStore(ke=>ke.setTranscriptOpen)],le=useTeachStore(ke=>ke.setTeachMeAnswer),[he,ce,de,ue,fe,pe]=[useDataStore(ke=>ke.data),useDataStore(ke=>ke.setData),useDataStore(ke=>ke.fetchData),useDataStore(ke=>ke.graphStyle),useDataStore(ke=>ke.setSelectedNode),useDataStore(ke=>ke.setCategoryFilter)],ge=useSocket(),me=useForm({mode:"onChange"}),ye=me.handleSubmit(({search:ke})=>{se(!1),fe(null),ne(!1),oe(ke),le(""),pe(null)}),be=reactExports.useCallback(async()=>{await de(te,{word:ie??""}),ae(!0),ie&&await updateBudget(te)},[de,ie,ae,te]);reactExports.useEffect(()=>{be()},[ie,be]);const we=()=>{if(he){const ke=getGraphDataPositions(ue,he.nodes);ce(ke)}};reactExports.useEffect(()=>{we()},[ue]);const ve=reactExports.useCallback(()=>{Z("INCREMENT")},[Z]);return reactExports.useEffect(()=>{ge&&(ge.on("connect_error",ke=>{console.error("Socket connection error:",ke)}),ge.on("newnode",ve))},[ge,ve]),reactExports.useEffect(()=>()=>{ge&&ge.disconnect()},[ge]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GlobalStyle,{}),jsxRuntimeExports.jsx(DeviceCompatibilityNotice,{}),jsxRuntimeExports.jsx(Leva,{hidden:!isDevelopment}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Wrapper,{direction:"row",children:[jsxRuntimeExports.jsx(DataRetriever,{children:jsxRuntimeExports.jsxs(FormProvider,{...me,children:[jsxRuntimeExports.jsx(LazyMainToolbar,{}),jsxRuntimeExports.jsx(LazySideBar,{onSubmit:ye}),jsxRuntimeExports.jsx(LazyUniverse,{}),jsxRuntimeExports.jsx(SecondarySideBar,{}),jsxRuntimeExports.jsx(AppBar,{}),jsxRuntimeExports.jsxs(Version,{children:["v",version]}),jsxRuntimeExports.jsx(ActionsToolbar,{})]})}),jsxRuntimeExports.jsx(ModalsContainer,{}),jsxRuntimeExports.jsx(Toasts,{}),jsxRuntimeExports.jsx(Helper,{})]})})]})},index=Object.freeze(Object.defineProperty({__proto__:null,App},Symbol.toStringTag,{value:"Module"}));export{MeshBasicMaterial as $,ACESFilmicToneMapping as A,BufferGeometry as B,Color$1 as C,DoubleSide as D,MathUtils as E,Frustum as F,MeshDepthMaterial as G,RGBADepthPacking as H,InstancedBufferGeometry as I,MeshDistanceMaterial as J,ShaderChunk as K,Layers as L,Material as M,NoToneMapping as N,OrthographicCamera as O,PerspectiveCamera as P,FrontSide as Q,RGBAFormat as R,SettingsIcon as S,Texture as T,UnsignedByteType as U,VSMShadowMap as V,WebGLRenderer as W,LinearFilter as X,BackSide as Y,InstancedBufferAttribute as Z,Matrix3 as _,Raycaster as a,generateUtilityClasses as a$,PlaneGeometry as a0,TextureLoader as a1,PropTypes as a2,DynamicDrawUsage as a3,Group as a4,Quaternion as a5,WebGLCubeRenderTarget as a6,CubeCamera as a7,EventDispatcher as a8,WebGLRenderTarget as a9,useDataStore as aA,getPointAbove as aB,MeshStandardMaterial as aC,useGraphData as aD,maxChildrenDisplayed as aE,nodesAreRelatives as aF,clsx$1 as aG,Avatar as aH,generateLinksFromNodeData as aI,runForceSimulation as aJ,useAppStore as aK,EARTH_RADIUS as aL,EARTH_DATA_PADDING as aM,CatmullRomCurve3 as aN,MdViewInAr as aO,MdClose as aP,useControls as aQ,ActionsToolbar as aR,ClipLoader as aS,outlineEffectColor as aT,videoTimeToSeconds as aU,useIsFocusVisible as aV,useForkRef as aW,useEnhancedEffect$1 as aX,useEventCallback as aY,ownerDocument as aZ,extractEventHandlers as a_,NearestFilter as aa,FloatType as ab,BasicDepthPacking as ac,MeshNormalMaterial as ad,DepthTexture as ae,DepthStencilFormat as af,UnsignedInt248Type as ag,UnsignedIntType as ah,Uniform as ai,RepeatWrapping as aj,NoBlending as ak,LinearEncoding as al,sRGBEncoding as am,BufferAttribute as an,HalfFloatType as ao,re$2 as ap,NormalBlending as aq,Object3D as ar,Points as as,BoxGeometry as at,Shape$1 as au,ExtrudeGeometry as av,variableVector3 as aw,__awaiter as ax,__decorate as ay,useSelectedNode as az,Scene as b,CartesianGrid as b$,generateUtilityClass as b0,styled$2 as b1,ButtonBase$1 as b2,rootShouldForwardProp as b3,dividerClasses$1 as b4,clsx$3 as b5,composeClasses as b6,isHostComponent as b7,slotShouldForwardProp as b8,useTheme as b9,ErrorBar as bA,Cell as bB,generateCategoricalChart as bC,XAxis as bD,YAxis as bE,formatAxisMap as bF,ChevronDownIcon as bG,ChevronUpIcon as bH,FormControl$1 as bI,CheckIcon as bJ,Popover$1 as bK,useFormContext as bL,useFilteredNodes as bM,saveConsumedContent as bN,Button$3 as bO,dispatch as bP,timer as bQ,color as bR,interpolateRgb as bS,interpolateString as bT,now$2 as bU,TextareaAutosize as bV,useSocket as bW,useTeachStore as bX,toast as bY,MdSend as bZ,postAskQuestion as b_,useSlotProps as ba,Timer as bb,throttle$1 as bc,warn as bd,isPercent as be,reactIsExports as bf,getDisplayName as bg,clsx as bh,interpolateNumber$1 as bi,Shape as bj,Symbols as bk,uniqueId as bl,filterProps as bm,Layer as bn,adaptEventsOfChild as bo,Animate as bp,interpolateNumber$2 as bq,isEqual$1 as br,findAllByType as bs,getValueByDataKey as bt,getLinearRegression as bu,Curve as bv,isNil$1 as bw,LabelList as bx,Global as by,getCateCoordinateOfLine as bz,PCFSoftShadowMap as c,Tooltip as c0,Dot as c1,MdBolt as c2,lottie as c3,IconButton$1 as c4,InfoIcon as c5,Slide$1 as c6,usePlayerStore as c7,PlayIcon as c8,propTypesExports as c9,getEdges as cA,ALPHABETICALLY as cB,postEdgeType as cC,createSvgIcon as cD,setRef as cE,inputBaseClasses$1 as cF,Popper$1 as cG,Paper$1 as cH,useFormControl as cI,formControlState as cJ,Stack$3 as cK,InputBaseRoot as cL,rootOverridesResolver as cM,InputBaseComponent as cN,inputOverridesResolver as cO,InputBase$1 as cP,getScrollbarSize as cQ,PopoverPaper as cR,isFilled as cS,index as cT,BaseModal as ca,BubbleChartIcon as cb,getTrends as cc,ClearIcon as cd,SearchIcon as ce,GraphViewControl as cf,Button as cg,useForm as ch,postAboutData as ci,FormProvider as cj,TextInput as ck,Tabs$1 as cl,Tab$1 as cm,formatBudget as cn,getPriceData as co,payLsat as cp,SourcesView as cq,useTopicsStore as cr,getTopicsData as cs,putNodeData as ct,deleteNode as cu,MdCheckCircle as cv,MdWarning as cw,keyframes$1 as cx,css$1 as cy,getEdgeTypes as cz,Camera as d,BasicShadowMap as e,PCFShadowMap as f,Vector3 as g,Vector2 as h,Clock as i,THREE as j,DefaultLoadingManager as k,Box3 as l,Float32BufferAttribute as m,InstancedInterleavedBuffer as n,InterleavedBufferAttribute as o,WireframeGeometry as p,Sphere as q,ShaderMaterial as r,UniformsUtils as s,UniformsLib as t,useModal as u,REVISION as v,Vector4 as w,Matrix4 as x,Line3 as y,Mesh as z}; +`,LazyMainToolbar=reactExports.lazy(()=>__vitePreload(()=>import("./index-3e078f3e.js"),["assets/index-3e078f3e.js","assets/index-32144865.js","assets/index-5f215f9e.css"]).then(({MainToolbar:te})=>({default:te}))),LazyUniverse=reactExports.lazy(()=>__vitePreload(()=>import("./index-cc4d749c.js"),["assets/index-cc4d749c.js","assets/index-32144865.js","assets/index-5f215f9e.css","assets/index-753a4213.js","assets/PlusIcon-67466f8b.js"]).then(({Universe:te})=>({default:te}))),LazySideBar=reactExports.lazy(()=>__vitePreload(()=>import("./index-d9ff45b3.js").then(te=>te.i),["assets/index-d9ff45b3.js","assets/index-32144865.js","assets/index-5f215f9e.css","assets/PlusIcon-67466f8b.js","assets/index-753a4213.js","assets/Skeleton-d791a65b.js","assets/toastMessage-ef227247.js","assets/Select-6f6c7ca7.js","assets/index-6125620a.css"]).then(({SideBar:te})=>({default:te}))),App=()=>{const[te,Z]=useUserStore(ke=>[ke.setBudget,ke.setNodeCount]),[ae,ie,oe,ne,se]=[useAppStore(ke=>ke.setSidebarOpen),useAppStore(ke=>ke.currentSearch),useAppStore(ke=>ke.setCurrentSearch),useAppStore(ke=>ke.setRelevanceSelected),useAppStore(ke=>ke.setTranscriptOpen)],le=useTeachStore(ke=>ke.setTeachMeAnswer),[he,ce,de,ue,fe,pe]=[useDataStore(ke=>ke.data),useDataStore(ke=>ke.setData),useDataStore(ke=>ke.fetchData),useDataStore(ke=>ke.graphStyle),useDataStore(ke=>ke.setSelectedNode),useDataStore(ke=>ke.setCategoryFilter)],ge=useSocket(),me=useForm({mode:"onChange"}),ye=me.handleSubmit(({search:ke})=>{se(!1),fe(null),ne(!1),oe(ke),le(""),pe(null)}),be=reactExports.useCallback(async()=>{await de(te,{word:ie??""}),ae(!0),ie&&await updateBudget(te)},[de,ie,ae,te]);reactExports.useEffect(()=>{be()},[ie,be]);const we=()=>{if(he){const ke=getGraphDataPositions(ue,he.nodes);ce(ke)}};reactExports.useEffect(()=>{we()},[ue]);const ve=reactExports.useCallback(()=>{Z("INCREMENT")},[Z]);return reactExports.useEffect(()=>{ge&&(ge.on("connect_error",ke=>{console.error("Socket connection error:",ke)}),ge.on("newnode",ve))},[ge,ve]),reactExports.useEffect(()=>()=>{ge&&ge.disconnect()},[ge]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(GlobalStyle,{}),jsxRuntimeExports.jsx(DeviceCompatibilityNotice,{}),jsxRuntimeExports.jsx(Leva,{hidden:!isDevelopment}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Wrapper,{direction:"row",children:[jsxRuntimeExports.jsx(DataRetriever,{children:jsxRuntimeExports.jsxs(FormProvider,{...me,children:[jsxRuntimeExports.jsx(LazyMainToolbar,{}),jsxRuntimeExports.jsx(LazySideBar,{onSubmit:ye}),jsxRuntimeExports.jsx(LazyUniverse,{}),jsxRuntimeExports.jsx(SecondarySideBar,{}),jsxRuntimeExports.jsx(AppBar,{}),jsxRuntimeExports.jsxs(Version,{children:["v",version]}),jsxRuntimeExports.jsx(ActionsToolbar,{})]})}),jsxRuntimeExports.jsx(ModalsContainer,{}),jsxRuntimeExports.jsx(Toasts,{}),jsxRuntimeExports.jsx(Helper,{})]})})]})},index=Object.freeze(Object.defineProperty({__proto__:null,App},Symbol.toStringTag,{value:"Module"}));export{MeshBasicMaterial as $,ACESFilmicToneMapping as A,BufferGeometry as B,Color$1 as C,DoubleSide as D,MathUtils as E,Frustum as F,MeshDepthMaterial as G,RGBADepthPacking as H,InstancedBufferGeometry as I,MeshDistanceMaterial as J,ShaderChunk as K,Layers as L,Material as M,NoToneMapping as N,OrthographicCamera as O,PerspectiveCamera as P,FrontSide as Q,RGBAFormat as R,SettingsIcon as S,Texture as T,UnsignedByteType as U,VSMShadowMap as V,WebGLRenderer as W,LinearFilter as X,BackSide as Y,InstancedBufferAttribute as Z,Matrix3 as _,Raycaster as a,generateUtilityClasses as a$,PlaneGeometry as a0,TextureLoader as a1,PropTypes as a2,DynamicDrawUsage as a3,Group as a4,Quaternion as a5,WebGLCubeRenderTarget as a6,CubeCamera as a7,EventDispatcher as a8,WebGLRenderTarget as a9,useDataStore as aA,getPointAbove as aB,MeshStandardMaterial as aC,useGraphData as aD,maxChildrenDisplayed as aE,nodesAreRelatives as aF,clsx$1 as aG,Avatar as aH,generateLinksFromNodeData as aI,runForceSimulation as aJ,useAppStore as aK,EARTH_RADIUS as aL,EARTH_DATA_PADDING as aM,CatmullRomCurve3 as aN,MdViewInAr as aO,MdClose as aP,useControls as aQ,ActionsToolbar as aR,ClipLoader as aS,outlineEffectColor as aT,videoTimeToSeconds as aU,useIsFocusVisible as aV,useForkRef as aW,useEnhancedEffect$1 as aX,useEventCallback as aY,ownerDocument as aZ,extractEventHandlers as a_,NearestFilter as aa,FloatType as ab,BasicDepthPacking as ac,MeshNormalMaterial as ad,DepthTexture as ae,DepthStencilFormat as af,UnsignedInt248Type as ag,UnsignedIntType as ah,Uniform as ai,RepeatWrapping as aj,NoBlending as ak,LinearEncoding as al,sRGBEncoding as am,BufferAttribute as an,HalfFloatType as ao,re$2 as ap,NormalBlending as aq,Object3D as ar,Points as as,BoxGeometry as at,Shape$1 as au,ExtrudeGeometry as av,variableVector3 as aw,__awaiter as ax,__decorate as ay,useSelectedNode as az,Scene as b,CartesianGrid as b$,generateUtilityClass as b0,styled$2 as b1,ButtonBase$1 as b2,rootShouldForwardProp as b3,dividerClasses$1 as b4,clsx$3 as b5,composeClasses as b6,isHostComponent as b7,slotShouldForwardProp as b8,useTheme as b9,ErrorBar as bA,Cell as bB,generateCategoricalChart as bC,XAxis as bD,YAxis as bE,formatAxisMap as bF,ChevronDownIcon as bG,ChevronUpIcon as bH,FormControl$1 as bI,CheckIcon as bJ,Popover$1 as bK,useFormContext as bL,useFilteredNodes as bM,saveConsumedContent as bN,Button$3 as bO,dispatch as bP,timer as bQ,color as bR,interpolateRgb as bS,interpolateString as bT,now$2 as bU,TextareaAutosize as bV,useSocket as bW,useTeachStore as bX,toast as bY,MdSend as bZ,postAskQuestion as b_,useSlotProps as ba,Timer as bb,throttle$1 as bc,warn as bd,isPercent as be,reactIsExports as bf,getDisplayName as bg,clsx as bh,interpolateNumber$1 as bi,Shape as bj,Symbols as bk,uniqueId as bl,filterProps as bm,Layer as bn,adaptEventsOfChild as bo,Animate as bp,interpolateNumber$2 as bq,isEqual$1 as br,findAllByType as bs,getValueByDataKey as bt,getLinearRegression as bu,Curve as bv,isNil$1 as bw,LabelList as bx,Global as by,getCateCoordinateOfLine as bz,PCFSoftShadowMap as c,Tooltip as c0,Dot as c1,MdBolt as c2,lottie as c3,IconButton$1 as c4,InfoIcon as c5,Slide$1 as c6,usePlayerStore as c7,PlayIcon as c8,propTypesExports as c9,getEdges as cA,ALPHABETICALLY as cB,postEdgeType as cC,createSvgIcon as cD,setRef as cE,inputBaseClasses$1 as cF,Popper$1 as cG,Paper$1 as cH,useFormControl as cI,formControlState as cJ,Stack$3 as cK,InputBaseRoot as cL,rootOverridesResolver as cM,InputBaseComponent as cN,inputOverridesResolver as cO,InputBase$1 as cP,getScrollbarSize as cQ,PopoverPaper as cR,isFilled as cS,index as cT,BaseModal as ca,BubbleChartIcon as cb,getTrends as cc,ClearIcon as cd,SearchIcon as ce,GraphViewControl as cf,Button as cg,useForm as ch,postAboutData as ci,FormProvider as cj,TextInput as ck,Tabs$1 as cl,Tab$1 as cm,formatBudget as cn,getPriceData as co,payLsat as cp,SourcesView as cq,useTopicsStore as cr,getTopicsData as cs,putNodeData as ct,deleteNode as cu,MdCheckCircle as cv,MdWarning as cw,keyframes$1 as cx,css$1 as cy,getEdgeTypes as cz,Camera as d,BasicShadowMap as e,PCFShadowMap as f,Vector3 as g,Vector2 as h,Clock as i,THREE as j,DefaultLoadingManager as k,Box3 as l,Float32BufferAttribute as m,InstancedInterleavedBuffer as n,InterleavedBufferAttribute as o,WireframeGeometry as p,Sphere as q,ShaderMaterial as r,UniformsUtils as s,UniformsLib as t,useModal as u,REVISION as v,Vector4 as w,Matrix4 as x,Line3 as y,Mesh as z}; diff --git a/build/assets/index-b43b296e.js b/build/assets/index-b43b296e.js new file mode 100644 index 000000000..50be17b12 --- /dev/null +++ b/build/assets/index-b43b296e.js @@ -0,0 +1,49 @@ +import{Y as f,a0 as y,a1 as L,r as h,j as e,X as t,Z as p,ab as C,e as R,a as U,aW as V,aX as g,d as G,U as J}from"./index-32144865.js";import{cn as X,bO as j,bJ as Y,co as q,ck as v,u as W,ch as Z,aA as H,ca as K,cj as Q}from"./index-a820256c.js";import{n as b}from"./toastMessage-ef227247.js";import{i as B,O as E,A as ee}from"./constants-fce7955b.js";import"./index-753a4213.js";import"./Select-6f6c7ca7.js";const te=({onClick:n,loading:i})=>{const d=L(l=>l.budget),[c,x]=h.useState(10),o="node";return h.useEffect(()=>{(async()=>{try{const r=await q(o);x(r.data.price)}catch(r){console.error("cannot fetch",r)}})()},[o]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(oe,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ne,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[c," sats"]})]}),e.jsxs(se,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[X(d)," sats"]})]})]}),e.jsx(t,{children:e.jsx(j,{color:"secondary","data-testid":"check-icon",disabled:i,onClick:n,size:"large",startIcon:e.jsx(Y,{}),type:"submit",variant:"contained",children:"Approve"})})]})},ne=f(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` + width: 141px; + height: 61px; + border: 1px solid ${y.GRAY7}; + border-radius: 6px; + padding: 16px; + .title { + font-family: Barlow; + color: ${y.secondaryText4}; + font-size: 11px; + font-style: normal; + font-weight: 600; + } + + .value { + font-family: Barlow; + color: ${y.white}; + font-size: 18px; + font-style: normal; + font-weight: 500; + } +`,se=f(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` + color: ${y.secondaryText4}; + .title { + font-family: Barlow; + font-size: 11px; + font-style: normal; + font-weight: 600; + } + + .value { + font-family: Barlow; + font-size: 14px; + font-style: normal; + font-weight: 400; + } +`,oe=f(p)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,re=({type:n,onNextStep:i,onPrevStep:d,name:c,sourceLink:x})=>{const o=n==="Image"?c&&x:c;return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ae,{children:"Enter details"})})}),e.jsx(t,{mb:4,children:e.jsxs(p,{children:[n," name"]})}),e.jsx(t,{mb:12,children:e.jsx(v,{id:"cy-item-name",maxLength:250,name:"name",placeholder:"Paste name here...",rules:{...C}})}),n==="Image"?e.jsxs(e.Fragment,{children:[e.jsx(t,{mb:4,children:e.jsx(p,{children:"Link"})}),e.jsx(t,{mb:12,children:e.jsx(v,{id:"cy-item-link",maxLength:250,name:"sourceLink",placeholder:"Paste link here...",rules:{...C}})})]}):null,e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(j,{color:"secondary",onClick:d,size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(j,{color:"secondary",disabled:!o,onClick:i,size:"large",variant:"contained",children:"Next"})})]})]})},ae=f(p)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,ie=({onNextStep:n,allowNextStep:i,onSelectType:d,selectedType:c})=>{const[x,o]=h.useState(B);h.useEffect(()=>{o(r=>r.value===c?r:E.find(s=>s.value===c)||B)},[c]);const l=r=>{d((r==null?void 0:r.label)||"")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ce,{children:"Select Type"})})}),e.jsx(t,{direction:"row",mb:20,children:e.jsx(ee,{onSelect:l,options:E,selectedValue:x})}),e.jsx(t,{children:e.jsx(j,{color:"secondary",disabled:!i,onClick:n,size:"large",type:"button",variant:"contained",children:"Next"})})]})},ce=f(p)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,le=async(n,i,d,c)=>{var r;const x="node",o={};o.node_type=n.nodeType,o.name=n.name,n.nodeType==="Image"&&(o.node_data={source_link:n.sourceLink});let l="";await R(async()=>{const s=await G.enable();o.pubkey=s==null?void 0:s.pubkey,l=await J()});try{const s=await U.post(`/${x}`,JSON.stringify(o),{Authorization:l});if(s.error){const{message:m}=s.error;throw new Error(m)}c(n,(r=s==null?void 0:s.data)==null?void 0:r.ref_id),b(V),i()}catch(s){let m=g;if(s.status===400){const u=await s.json();m=u.errorCode||(u==null?void 0:u.status)||g}else s instanceof Error&&(m=s.message);b(m),i()}},fe=()=>{const[n,i]=h.useState(0),{close:d,visible:c}=W("addItem"),[x]=L(a=>[a.setBudget]),o=Z({mode:"onChange"}),{watch:l,setValue:r,reset:s}=o,[m,u]=h.useState(!1),[z,I]=H(a=>[a.addNewNode,a.setSelectedNode]);h.useEffect(()=>()=>{i(0),s()},[c,s]);const w=l("nodeType"),O=l("name"),A=l("sourceLink"),P=()=>{d()},S=()=>{i(n+1)},_=()=>{i(n-1)},D=(a,F)=>{const k=F||`new-id-${Math.random()}`,T=a.nodeType.toLocaleLowerCase(),N={name:a.name,type:T,label:a.name,node_type:T,id:k,ref_id:k,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...a.sourceLink?{source_link:a.sourceLink}:{}};z(N),I(N)},M=o.handleSubmit(async a=>{u(!0);try{await le(a,P,x,D)}catch{b(g)}finally{u(!1)}}),$=a=>r("nodeType",a);return e.jsx(K,{id:"addItem",kind:"small",onClose:d,preventOutsideClose:!0,children:e.jsx(Q,{...o,children:e.jsxs("form",{id:"add-node-form",onSubmit:M,children:[n===0&&e.jsx(ie,{allowNextStep:!!w,onNextStep:S,onSelectType:$,selectedType:w}),n===1&&e.jsx(re,{name:O,onNextStep:S,onPrevStep:_,sourceLink:A||"",type:w}),n===2&&e.jsx(te,{loading:m,onClick:()=>null})]})})})};export{fe as AddItemModal}; diff --git a/build/assets/index-ca6baa98.js b/build/assets/index-cc4d749c.js similarity index 99% rename from build/assets/index-ca6baa98.js rename to build/assets/index-cc4d749c.js index ecb847d37..6003f1c0b 100644 --- a/build/assets/index-ca6baa98.js +++ b/build/assets/index-cc4d749c.js @@ -1,4 +1,4 @@ -import{r as P,g as A_,_ as as,aH as k_,j as D,R as af,aI as Zw,W as P_,Y as Cs,a0 as tr,X as Pn,N as R_,a1 as Yw,aJ as Xw,aK as Qw,aL as Kw,Z as $r,aM as Jw,Q as $w}from"./index-b639b6f9.js";import{L as lp,T as gu,R as eS,U as Qs,B as Bm,M as Bf,C as rr,a as tS,O as jm,P as vu,b as hl,c as cp,N as nS,A as rS,W as sS,d as D_,e as iS,f as oS,V as aS,g as ye,h as _t,i as lS,j as I_,D as Ki,k as Mh,F as cS,l as jf,I as U_,m as lf,n as Kp,o as Ka,p as uS,q as Vm,r as Es,s as Jp,t as O1,v as Vf,w as oo,x as ca,y as hS,z as ua,E as Hm,G as N_,H as cf,J as fS,K as dS,Q as F_,X as fl,Y as Rc,Z as pS,_ as mS,$ as gS,a0 as Gm,a1 as Hf,a2 as cc,a3 as Nc,a4 as vS,a5 as Kh,a6 as _S,a7 as yS,a8 as Wm,a9 as Br,aa as dl,ab as xS,ac as Ol,ad as wS,ae as SS,af as TS,ag as CS,ah as ES,ai as ze,aj as bS,ak as ki,al as L_,am as z_,an as Vo,ao as MS,ap as dn,aq as A1,ar as Ho,as as OS,at as AS,au as kS,av as PS,aw as RS,ax as nn,ay as bs,az as Ms,aA as Re,aB as DS,aC as _u,aD as qm,aE as B_,aF as IS,aG as j_,aH as V_,aI as US,aJ as NS,aK as Zm,aL as Dc,aM as FS,aN as LS,u as up,aO as zS,aP as BS,aQ as H_,aR as jS,aS as VS,aT as HS}from"./index-06aeb711.js";import{T as GS}from"./index-56950d92.js";import{P as WS,f as k1}from"./PlusIcon-a27d580f.js";var G_={exports:{}},ha={};/** +import{r as P,g as A_,_ as as,aH as k_,j as D,R as af,aI as Zw,W as P_,Y as Cs,a0 as tr,X as Pn,N as R_,a1 as Yw,aJ as Xw,aK as Qw,aL as Kw,Z as $r,aM as Jw,Q as $w}from"./index-32144865.js";import{L as lp,T as gu,R as eS,U as Qs,B as Bm,M as Bf,C as rr,a as tS,O as jm,P as vu,b as hl,c as cp,N as nS,A as rS,W as sS,d as D_,e as iS,f as oS,V as aS,g as ye,h as _t,i as lS,j as I_,D as Ki,k as Mh,F as cS,l as jf,I as U_,m as lf,n as Kp,o as Ka,p as uS,q as Vm,r as Es,s as Jp,t as O1,v as Vf,w as oo,x as ca,y as hS,z as ua,E as Hm,G as N_,H as cf,J as fS,K as dS,Q as F_,X as fl,Y as Rc,Z as pS,_ as mS,$ as gS,a0 as Gm,a1 as Hf,a2 as cc,a3 as Nc,a4 as vS,a5 as Kh,a6 as _S,a7 as yS,a8 as Wm,a9 as Br,aa as dl,ab as xS,ac as Ol,ad as wS,ae as SS,af as TS,ag as CS,ah as ES,ai as ze,aj as bS,ak as ki,al as L_,am as z_,an as Vo,ao as MS,ap as dn,aq as A1,ar as Ho,as as OS,at as AS,au as kS,av as PS,aw as RS,ax as nn,ay as bs,az as Ms,aA as Re,aB as DS,aC as _u,aD as qm,aE as B_,aF as IS,aG as j_,aH as V_,aI as US,aJ as NS,aK as Zm,aL as Dc,aM as FS,aN as LS,u as up,aO as zS,aP as BS,aQ as H_,aR as jS,aS as VS,aT as HS}from"./index-a820256c.js";import{T as GS}from"./index-753a4213.js";import{P as WS,f as k1}from"./PlusIcon-67466f8b.js";var G_={exports:{}},ha={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-728012ea.js b/build/assets/index-d9ff45b3.js similarity index 99% rename from build/assets/index-728012ea.js rename to build/assets/index-d9ff45b3.js index 2b498b3b1..d36ca84e9 100644 --- a/build/assets/index-728012ea.js +++ b/build/assets/index-d9ff45b3.js @@ -1,4 +1,4 @@ -import{a as Kd,d as ln,a4 as Es,r as E,_ as fe,E as dn,C as _l,h as kl,j as f,n as zt,J as qd,K as Qd,L as Jd,M as ji,R as W,ai as ef,Y as U,a0 as I,X as L,a9 as El,Z as Me,aE as $o,a1 as Pl,aN as tf,aO as nf,aD as Al,aF as rf,c as Ye,aP as Tl,aQ as of,aG as et,aR as sf,g as jl}from"./index-b639b6f9.js";import{aU as Hr,aV as af,aW as so,aX as Ol,aY as Oi,aZ as Mr,a_ as Mi,a$ as ni,b0 as Ml,b1 as Ht,b2 as lf,b3 as cf,b4 as Ps,b5 as Rt,b6 as Il,b7 as Ir,b8 as Nl,b9 as Ll,ba as Ot,bb as uf,bc as df,bd as Ii,be as hr,bf as As,bg as ff,bh as zl,bi as Vt,bj as Ts,bk as pf,bl as hf,bm as Ni,bn as Nn,bo as mf,bp as gf,bq as mr,br as yf,bs as $l,bt as Nr,bu as xf,bv as bf,bw as cn,bx as wf,by as vf,bz as js,bA as Sf,bB as Cf,bC as _f,bD as Rl,bE as Dl,bF as kf,aA as ut,bG as Bl,bH as Ef,bI as Hl,aG as Wn,bJ as Fl,bK as Pf,bL as Ro,aH as xt,aK as Zt,bM as Vl,bN as Af,bO as yt,bP as Do,bQ as Tf,bR as Os,bS as Ms,bT as jf,bU as Of,bV as Mf,bW as If,bX as Ul,bY as Gn,bZ as Nf,b_ as Lf,az as bt,b$ as zf,c0 as $f,c1 as Rf,c2 as Df,aP as Bf,c3 as Hf,c4 as Yl,c5 as Ff,c6 as Bo,aD as Wl,c7 as ri,c8 as Ho,c9 as Vf,aS as Fr,u as ao,ca as Uf,cb as Yf,cc as Wf,cd as Gf,ce as Zf}from"./index-06aeb711.js";import{f as Vr,P as Xf}from"./PlusIcon-a27d580f.js";import{T as ir}from"./index-56950d92.js";import{S as Gl}from"./Skeleton-5410b08c.js";import{T as lo}from"./toastMessage-5eb83970.js";import{u as Kf,L as Is,I as qf,S as Qf,O as Jf}from"./Select-631e4391.js";const Ns="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",ep=async e=>{let t=await ln.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await ln.keysend(Ns,e),!(t!=null&&t.success)){if(t=await ln.topup(),t||(t=await ln.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await ep(t),r={amount:t,refid:e};return await Kd.post("/boost",JSON.stringify(r)),n},np=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},Zl=(e,t)=>{if(!t)return null;const n=e.filter(o=>o.show_title&&o.link&&o.show_title===t.show_title&&o.episode_title===t.episode_title),r=Es.groupBy(n,o=>o.timestamp),i=Es.values(r).reduce((o,s)=>(s[0]&&o.push(s[0]),o),[]);return i.sort((o,s)=>{var d,h;const[a]=((d=o.timestamp)==null?void 0:d.split("-"))||[""],[l]=((h=s.timestamp)==null?void 0:h.split("-"))||[""],c=Hr(a),u=Hr(l);return c-u}),i},rp=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},ip={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},op=ip;function sp(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const ap=2;function Xl(e,t){return e-t}function Ln(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function Ls(e,t){var n;const{index:r}=(n=e.reduce((i,o,s)=>{const a=Math.abs(t-o);return i===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},fp=e=>e;let br;function Li(){return br===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?br=CSS.supports("touch-action","none"):br=!0),br}function pp(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:h="horizontal",rootRef:p,scale:y=fp,step:g=1,tabIndex:S,value:x}=e,v=E.useRef(),[_,k]=E.useState(-1),[A,C]=E.useState(-1),[z,B]=E.useState(!1),D=E.useRef(0),[Y,N]=Kf({controlled:x,default:n??l,name:"Slider"}),$=u&&((j,R,G)=>{const K=j.nativeEvent||j,ee=new K.constructor(K.type,K);Object.defineProperty(ee,"target",{writable:!0,value:{value:R,name:c}}),u(ee,R,G)}),O=Array.isArray(Y);let w=O?Y.slice().sort(Xl):[Y];w=w.map(j=>Ln(j,l,a));const P=s===!0&&g!==null?[...Array(Math.floor((a-l)/g)+1)].map((j,R)=>({value:l+g*R})):s||[],T=P.map(j=>j.value),{isFocusVisibleRef:H,onBlur:F,onFocus:M,ref:m}=af(),[V,Z]=E.useState(-1),b=E.useRef(),q=so(m,b),ne=so(p,q),J=j=>R=>{var G;const K=Number(R.currentTarget.getAttribute("data-index"));M(R),H.current===!0&&Z(K),C(K),j==null||(G=j.onFocus)==null||G.call(j,R)},ue=j=>R=>{var G;F(R),H.current===!1&&Z(-1),C(-1),j==null||(G=j.onBlur)==null||G.call(j,R)};Ol(()=>{if(r&&b.current.contains(document.activeElement)){var j;(j=document.activeElement)==null||j.blur()}},[r]),r&&_!==-1&&k(-1),r&&V!==-1&&Z(-1);const se=j=>R=>{var G;(G=j.onChange)==null||G.call(j,R);const K=Number(R.currentTarget.getAttribute("data-index")),ee=w[K],le=T.indexOf(ee);let ie=R.target.valueAsNumber;if(P&&g==null){const de=T[T.length-1];ie>de?ie=de:ie{const{current:G}=b,{width:K,height:ee,bottom:le,left:ie}=G.getBoundingClientRect();let de;he.indexOf("vertical")===0?de=(le-j.y)/ee:de=(j.x-ie)/K,he.indexOf("-reverse")!==-1&&(de=1-de);let ge;if(ge=lp(de,l,a),g)ge=up(ge,g,l);else{const be=Ls(T,ge);ge=T[be]}ge=Ln(ge,l,a);let Ee=0;if(O){R?Ee=pe.current:Ee=Ls(w,ge),i&&(ge=Ln(ge,w[Ee-1]||-1/0,w[Ee+1]||1/0));const be=ge;ge=zs({values:w,newValue:ge,index:Ee}),i&&R||(Ee=ge.indexOf(be),pe.current=Ee)}return{newValue:ge,activeIndex:Ee}},Te=Oi(j=>{const R=gr(j,v);if(!R)return;if(D.current+=1,j.type==="mousemove"&&j.buttons===0){_e(j);return}const{newValue:G,activeIndex:K}=Se({finger:R,move:!0});yr({sliderRef:b,activeIndex:K,setActive:k}),N(G),!z&&D.current>ap&&B(!0),$&&!xr(G,Y)&&$(j,G,K)}),_e=Oi(j=>{const R=gr(j,v);if(B(!1),!R)return;const{newValue:G}=Se({finger:R,move:!0});k(-1),j.type==="touchend"&&C(-1),d&&d(j,G),v.current=void 0,re()}),ae=Oi(j=>{if(r)return;Li()||j.preventDefault();const R=j.changedTouches[0];R!=null&&(v.current=R.identifier);const G=gr(j,v);if(G!==!1){const{newValue:ee,activeIndex:le}=Se({finger:G});yr({sliderRef:b,activeIndex:le,setActive:k}),N(ee),$&&!xr(ee,Y)&&$(j,ee,le)}D.current=0;const K=Mr(b.current);K.addEventListener("touchmove",Te),K.addEventListener("touchend",_e)}),re=E.useCallback(()=>{const j=Mr(b.current);j.removeEventListener("mousemove",Te),j.removeEventListener("mouseup",_e),j.removeEventListener("touchmove",Te),j.removeEventListener("touchend",_e)},[_e,Te]);E.useEffect(()=>{const{current:j}=b;return j.addEventListener("touchstart",ae,{passive:Li()}),()=>{j.removeEventListener("touchstart",ae,{passive:Li()}),re()}},[re,ae]),E.useEffect(()=>{r&&re()},[r,re]);const ke=j=>R=>{var G;if((G=j.onMouseDown)==null||G.call(j,R),r||R.defaultPrevented||R.button!==0)return;R.preventDefault();const K=gr(R,v);if(K!==!1){const{newValue:le,activeIndex:ie}=Se({finger:K});yr({sliderRef:b,activeIndex:ie,setActive:k}),N(le),$&&!xr(le,Y)&&$(R,le,ie)}D.current=0;const ee=Mr(b.current);ee.addEventListener("mousemove",Te),ee.addEventListener("mouseup",_e)},Pe=Ur(O?w[0]:l,l,a),Q=Ur(w[w.length-1],l,a)-Pe,We=(j={})=>{const R=Mi(j),G={onMouseDown:ke(R||{})},K=fe({},R,G);return fe({},j,{ref:ne},K)},Ce=j=>R=>{var G;(G=j.onMouseOver)==null||G.call(j,R);const K=Number(R.currentTarget.getAttribute("data-index"));C(K)},Ge=j=>R=>{var G;(G=j.onMouseLeave)==null||G.call(j,R),C(-1)};return{active:_,axis:he,axisProps:dp,dragging:z,focusedThumbIndex:V,getHiddenInputProps:(j={})=>{var R;const G=Mi(j),K={onChange:se(G||{}),onFocus:J(G||{}),onBlur:ue(G||{})},ee=fe({},G,K);return fe({tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":y(a),"aria-valuemin":y(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(R=e.step)!=null?R:void 0,disabled:r},j,ee,{style:fe({},op,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:We,getThumbProps:(j={})=>{const R=Mi(j),G={onMouseOver:Ce(R||{}),onMouseLeave:Ge(R||{})};return fe({},j,R,G)},marks:P,open:A,range:O,rootRef:ne,trackLeap:Q,trackOffset:Pe,values:w,getThumbStyle:j=>({pointerEvents:_!==-1&&_!==j?"none":void 0})}}const hp=ni("MuiListItemIcon",["root","alignItemsFlexStart"]),$s=hp,mp=ni("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Rs=mp;function gp(e){return Ml("MuiMenuItem",e)}const yp=ni("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),zn=yp,xp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bp=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},wp=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,l=Il({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},gp,s);return fe({},s,l)},vp=Ht(lf,{shouldForwardProp:e=>cf(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:bp})(({theme:e,ownerState:t})=>fe({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ps.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ps.inset}`]:{marginLeft:52},[`& .${Rs.root}`]:{marginTop:0,marginBottom:0},[`& .${Rs.inset}`]:{paddingLeft:36},[`& .${$s.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&fe({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$s.root} svg`]:{fontSize:"1.25rem"}}))),Sp=E.forwardRef(function(t,n){const r=_l({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:h}=r,p=kl(r,xp),y=E.useContext(Is),g=E.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),S=E.useRef(null);Ol(()=>{i&&S.current&&S.current.focus()},[i]);const x=fe({},r,{dense:g.dense,divider:a,disableGutters:l}),v=wp(r),_=so(S,n);let k;return r.disabled||(k=d!==void 0?d:-1),f.jsx(Is.Provider,{value:g,children:f.jsx(vp,fe({ref:_,role:u,tabIndex:k,component:o,focusVisibleClassName:Rt(v.focusVisible,c),className:Rt(v.root,h)},p,{ownerState:x,classes:v}))})}),Cp=Sp,_p=e=>!e||!Ir(e),kp=_p;function Ep(e){return Ml("MuiSlider",e)}const Pp=ni("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),gt=Pp,Ap=e=>{const{open:t}=e;return{offset:Rt(t&>.valueLabelOpen),circle:gt.valueLabelCircle,label:gt.valueLabelLabel}};function Tp(e){const{children:t,className:n,value:r}=e,i=Ap(e);return t?E.cloneElement(t,{className:Rt(t.props.className)},f.jsxs(E.Fragment,{children:[t.props.children,f.jsx("span",{className:Rt(i.offset,n),"aria-hidden":!0,children:f.jsx("span",{className:i.circle,children:f.jsx("span",{className:i.label,children:r})})})]})):null}const jp=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Ds(e){return e}const Op=Ht("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${zt(n.color)}`],n.size!=="medium"&&t[`size${zt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>fe({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&fe({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&fe({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${gt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${gt.dragging}`]:{[`& .${gt.thumb}, & .${gt.track}`]:{transition:"none"}}})),Mp=Ht("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>fe({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),Ip=Ht("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?qd(e.palette[t.color].main,.62):Qd(e.palette[t.color].main,.5);return fe({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),Np=Ht("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${zt(n.color)}`],n.size!=="medium"&&t[`thumbSize${zt(n.size)}`]]}})(({theme:e,ownerState:t})=>fe({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":fe({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${gt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:dn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${gt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:dn(e.palette[t.color].main,.16)}`},[`&.${gt.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Lp=Ht(Tp,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>fe({[`&.${gt.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),zp=Ht("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Nl(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>fe({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),$p=Ht("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Nl(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>fe({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Rp=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${zt(a)}`,l&&`size${zt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${zt(l)}`,a&&`thumbColor${zt(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Il(c,Ep,s)},Dp=({children:e})=>e,Bp=E.forwardRef(function(t,n){var r,i,o,s,a,l,c,u,d,h,p,y,g,S,x,v,_,k,A,C,z,B,D,Y;const N=_l({props:t,name:"MuiSlider"}),O=Ll().direction==="rtl",{"aria-label":w,"aria-valuetext":P,"aria-labelledby":T,component:H="span",components:F={},componentsProps:M={},color:m="primary",classes:V,className:Z,disableSwap:b=!1,disabled:q=!1,getAriaLabel:ne,getAriaValueText:J,marks:ue=!1,max:se=100,min:pe=0,orientation:he="horizontal",size:Se="medium",step:Te=1,scale:_e=Ds,slotProps:ae,slots:re,track:ke="normal",valueLabelDisplay:Pe="off",valueLabelFormat:Q=Ds}=N,We=kl(N,jp),Ce=fe({},N,{isRtl:O,max:se,min:pe,classes:V,disabled:q,disableSwap:b,orientation:he,marks:ue,color:m,size:Se,step:Te,scale:_e,track:ke,valueLabelDisplay:Pe,valueLabelFormat:Q}),{axisProps:Ge,getRootProps:pt,getHiddenInputProps:it,getThumbProps:Qe,open:j,active:R,axis:G,focusedThumbIndex:K,range:ee,dragging:le,marks:ie,values:de,trackOffset:ge,trackLeap:Ee,getThumbStyle:be}=pp(fe({},Ce,{rootRef:n}));Ce.marked=ie.length>0&&ie.some(Ae=>Ae.label),Ce.dragging=le,Ce.focusedThumbIndex=K;const ye=Rp(Ce),Le=(r=(i=re==null?void 0:re.root)!=null?i:F.Root)!=null?r:Op,Kt=(o=(s=re==null?void 0:re.rail)!=null?s:F.Rail)!=null?o:Mp,jt=(a=(l=re==null?void 0:re.track)!=null?l:F.Track)!=null?a:Ip,qt=(c=(u=re==null?void 0:re.thumb)!=null?u:F.Thumb)!=null?c:Np,kn=(d=(h=re==null?void 0:re.valueLabel)!=null?h:F.ValueLabel)!=null?d:Lp,ht=(p=(y=re==null?void 0:re.mark)!=null?y:F.Mark)!=null?p:zp,En=(g=(S=re==null?void 0:re.markLabel)!=null?S:F.MarkLabel)!=null?g:$p,pr=(x=(v=re==null?void 0:re.input)!=null?v:F.Input)!=null?x:"input",Pn=(_=ae==null?void 0:ae.root)!=null?_:M.root,wi=(k=ae==null?void 0:ae.rail)!=null?k:M.rail,An=(A=ae==null?void 0:ae.track)!=null?A:M.track,Tn=(C=ae==null?void 0:ae.thumb)!=null?C:M.thumb,jn=(z=ae==null?void 0:ae.valueLabel)!=null?z:M.valueLabel,vi=(B=ae==null?void 0:ae.mark)!=null?B:M.mark,Si=(D=ae==null?void 0:ae.markLabel)!=null?D:M.markLabel,Ci=(Y=ae==null?void 0:ae.input)!=null?Y:M.input,_i=Ot({elementType:Le,getSlotProps:pt,externalSlotProps:Pn,externalForwardedProps:We,additionalProps:fe({},kp(Le)&&{as:H}),ownerState:fe({},Ce,Pn==null?void 0:Pn.ownerState),className:[ye.root,Z]}),ki=Ot({elementType:Kt,externalSlotProps:wi,ownerState:Ce,className:ye.rail}),Ei=Ot({elementType:jt,externalSlotProps:An,additionalProps:{style:fe({},Ge[G].offset(ge),Ge[G].leap(Ee))},ownerState:fe({},Ce,An==null?void 0:An.ownerState),className:ye.track}),Qt=Ot({elementType:qt,getSlotProps:Qe,externalSlotProps:Tn,ownerState:fe({},Ce,Tn==null?void 0:Tn.ownerState),className:ye.thumb}),Pi=Ot({elementType:kn,externalSlotProps:jn,ownerState:fe({},Ce,jn==null?void 0:jn.ownerState),className:ye.valueLabel}),On=Ot({elementType:ht,externalSlotProps:vi,ownerState:Ce,className:ye.mark}),Mn=Ot({elementType:En,externalSlotProps:Si,ownerState:Ce,className:ye.markLabel}),Ai=Ot({elementType:pr,getSlotProps:it,externalSlotProps:Ci,ownerState:Ce});return f.jsxs(Le,fe({},_i,{children:[f.jsx(Kt,fe({},ki)),f.jsx(jt,fe({},Ei)),ie.filter(Ae=>Ae.value>=pe&&Ae.value<=se).map((Ae,ze)=>{const In=Ur(Ae.value,pe,se),Jt=Ge[G].offset(In);let ot;return ke===!1?ot=de.indexOf(Ae.value)!==-1:ot=ke==="normal"&&(ee?Ae.value>=de[0]&&Ae.value<=de[de.length-1]:Ae.value<=de[0])||ke==="inverted"&&(ee?Ae.value<=de[0]||Ae.value>=de[de.length-1]:Ae.value>=de[0]),f.jsxs(E.Fragment,{children:[f.jsx(ht,fe({"data-index":ze},On,!Ir(ht)&&{markActive:ot},{style:fe({},Jt,On.style),className:Rt(On.className,ot&&ye.markActive)})),Ae.label!=null?f.jsx(En,fe({"aria-hidden":!0,"data-index":ze},Mn,!Ir(En)&&{markLabelActive:ot},{style:fe({},Jt,Mn.style),className:Rt(ye.markLabel,Mn.className,ot&&ye.markLabelActive),children:Ae.label})):null]},ze)}),de.map((Ae,ze)=>{const In=Ur(Ae,pe,se),Jt=Ge[G].offset(In),ot=Pe==="off"?Dp:kn;return f.jsx(ot,fe({},!Ir(ot)&&{valueLabelFormat:Q,valueLabelDisplay:Pe,value:typeof Q=="function"?Q(_e(Ae),ze):Q,index:ze,open:j===ze||R===ze||Pe==="on",disabled:q},Pi,{children:f.jsx(qt,fe({"data-index":ze},Qt,{className:Rt(ye.thumb,Qt.className,R===ze&&ye.active,K===ze&&ye.focusVisible),style:fe({},Jt,be(ze),Qt.style),children:f.jsx(pr,fe({"data-index":ze,"aria-label":ne?ne(ze):w,"aria-valuenow":_e(Ae),"aria-labelledby":T,"aria-valuetext":J?J(_e(Ae),ze):P,value:de[ze]},Ai))}))}),ze)})]}))}),Kl=Bp,Hp=(e,t="down")=>{const n=Ll(),[r,i]=E.useState(!1),o=n.breakpoints[t](e).split("@media")[1].trim();return E.useEffect(()=>{const s=()=>{const{matches:a}=window.matchMedia(o);i(a)};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[o]),r},Fp=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function Vp(e){return e.tldr_topic??e.topic}var Yr=globalThis&&globalThis.__assign||function(){return Yr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{r.stop(),e(i+t)},t,n),r}function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function Hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t{let t=await ln.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await ln.keysend(Ns,e),!(t!=null&&t.success)){if(t=await ln.topup(),t||(t=await ln.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await ep(t),r={amount:t,refid:e};return await Kd.post("/boost",JSON.stringify(r)),n},np=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},Zl=(e,t)=>{if(!t)return null;const n=e.filter(o=>o.show_title&&o.link&&o.show_title===t.show_title&&o.episode_title===t.episode_title),r=Es.groupBy(n,o=>o.timestamp),i=Es.values(r).reduce((o,s)=>(s[0]&&o.push(s[0]),o),[]);return i.sort((o,s)=>{var d,h;const[a]=((d=o.timestamp)==null?void 0:d.split("-"))||[""],[l]=((h=s.timestamp)==null?void 0:h.split("-"))||[""],c=Hr(a),u=Hr(l);return c-u}),i},rp=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},ip={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},op=ip;function sp(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const ap=2;function Xl(e,t){return e-t}function Ln(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function Ls(e,t){var n;const{index:r}=(n=e.reduce((i,o,s)=>{const a=Math.abs(t-o);return i===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},fp=e=>e;let br;function Li(){return br===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?br=CSS.supports("touch-action","none"):br=!0),br}function pp(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:h="horizontal",rootRef:p,scale:y=fp,step:g=1,tabIndex:S,value:x}=e,v=E.useRef(),[_,k]=E.useState(-1),[A,C]=E.useState(-1),[z,B]=E.useState(!1),D=E.useRef(0),[Y,N]=Kf({controlled:x,default:n??l,name:"Slider"}),$=u&&((j,R,G)=>{const K=j.nativeEvent||j,ee=new K.constructor(K.type,K);Object.defineProperty(ee,"target",{writable:!0,value:{value:R,name:c}}),u(ee,R,G)}),O=Array.isArray(Y);let w=O?Y.slice().sort(Xl):[Y];w=w.map(j=>Ln(j,l,a));const P=s===!0&&g!==null?[...Array(Math.floor((a-l)/g)+1)].map((j,R)=>({value:l+g*R})):s||[],T=P.map(j=>j.value),{isFocusVisibleRef:H,onBlur:F,onFocus:M,ref:m}=af(),[V,Z]=E.useState(-1),b=E.useRef(),q=so(m,b),ne=so(p,q),J=j=>R=>{var G;const K=Number(R.currentTarget.getAttribute("data-index"));M(R),H.current===!0&&Z(K),C(K),j==null||(G=j.onFocus)==null||G.call(j,R)},ue=j=>R=>{var G;F(R),H.current===!1&&Z(-1),C(-1),j==null||(G=j.onBlur)==null||G.call(j,R)};Ol(()=>{if(r&&b.current.contains(document.activeElement)){var j;(j=document.activeElement)==null||j.blur()}},[r]),r&&_!==-1&&k(-1),r&&V!==-1&&Z(-1);const se=j=>R=>{var G;(G=j.onChange)==null||G.call(j,R);const K=Number(R.currentTarget.getAttribute("data-index")),ee=w[K],le=T.indexOf(ee);let ie=R.target.valueAsNumber;if(P&&g==null){const de=T[T.length-1];ie>de?ie=de:ie{const{current:G}=b,{width:K,height:ee,bottom:le,left:ie}=G.getBoundingClientRect();let de;he.indexOf("vertical")===0?de=(le-j.y)/ee:de=(j.x-ie)/K,he.indexOf("-reverse")!==-1&&(de=1-de);let ge;if(ge=lp(de,l,a),g)ge=up(ge,g,l);else{const be=Ls(T,ge);ge=T[be]}ge=Ln(ge,l,a);let Ee=0;if(O){R?Ee=pe.current:Ee=Ls(w,ge),i&&(ge=Ln(ge,w[Ee-1]||-1/0,w[Ee+1]||1/0));const be=ge;ge=zs({values:w,newValue:ge,index:Ee}),i&&R||(Ee=ge.indexOf(be),pe.current=Ee)}return{newValue:ge,activeIndex:Ee}},Te=Oi(j=>{const R=gr(j,v);if(!R)return;if(D.current+=1,j.type==="mousemove"&&j.buttons===0){_e(j);return}const{newValue:G,activeIndex:K}=Se({finger:R,move:!0});yr({sliderRef:b,activeIndex:K,setActive:k}),N(G),!z&&D.current>ap&&B(!0),$&&!xr(G,Y)&&$(j,G,K)}),_e=Oi(j=>{const R=gr(j,v);if(B(!1),!R)return;const{newValue:G}=Se({finger:R,move:!0});k(-1),j.type==="touchend"&&C(-1),d&&d(j,G),v.current=void 0,re()}),ae=Oi(j=>{if(r)return;Li()||j.preventDefault();const R=j.changedTouches[0];R!=null&&(v.current=R.identifier);const G=gr(j,v);if(G!==!1){const{newValue:ee,activeIndex:le}=Se({finger:G});yr({sliderRef:b,activeIndex:le,setActive:k}),N(ee),$&&!xr(ee,Y)&&$(j,ee,le)}D.current=0;const K=Mr(b.current);K.addEventListener("touchmove",Te),K.addEventListener("touchend",_e)}),re=E.useCallback(()=>{const j=Mr(b.current);j.removeEventListener("mousemove",Te),j.removeEventListener("mouseup",_e),j.removeEventListener("touchmove",Te),j.removeEventListener("touchend",_e)},[_e,Te]);E.useEffect(()=>{const{current:j}=b;return j.addEventListener("touchstart",ae,{passive:Li()}),()=>{j.removeEventListener("touchstart",ae,{passive:Li()}),re()}},[re,ae]),E.useEffect(()=>{r&&re()},[r,re]);const ke=j=>R=>{var G;if((G=j.onMouseDown)==null||G.call(j,R),r||R.defaultPrevented||R.button!==0)return;R.preventDefault();const K=gr(R,v);if(K!==!1){const{newValue:le,activeIndex:ie}=Se({finger:K});yr({sliderRef:b,activeIndex:ie,setActive:k}),N(le),$&&!xr(le,Y)&&$(R,le,ie)}D.current=0;const ee=Mr(b.current);ee.addEventListener("mousemove",Te),ee.addEventListener("mouseup",_e)},Pe=Ur(O?w[0]:l,l,a),Q=Ur(w[w.length-1],l,a)-Pe,We=(j={})=>{const R=Mi(j),G={onMouseDown:ke(R||{})},K=fe({},R,G);return fe({},j,{ref:ne},K)},Ce=j=>R=>{var G;(G=j.onMouseOver)==null||G.call(j,R);const K=Number(R.currentTarget.getAttribute("data-index"));C(K)},Ge=j=>R=>{var G;(G=j.onMouseLeave)==null||G.call(j,R),C(-1)};return{active:_,axis:he,axisProps:dp,dragging:z,focusedThumbIndex:V,getHiddenInputProps:(j={})=>{var R;const G=Mi(j),K={onChange:se(G||{}),onFocus:J(G||{}),onBlur:ue(G||{})},ee=fe({},G,K);return fe({tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":y(a),"aria-valuemin":y(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(R=e.step)!=null?R:void 0,disabled:r},j,ee,{style:fe({},op,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:We,getThumbProps:(j={})=>{const R=Mi(j),G={onMouseOver:Ce(R||{}),onMouseLeave:Ge(R||{})};return fe({},j,R,G)},marks:P,open:A,range:O,rootRef:ne,trackLeap:Q,trackOffset:Pe,values:w,getThumbStyle:j=>({pointerEvents:_!==-1&&_!==j?"none":void 0})}}const hp=ni("MuiListItemIcon",["root","alignItemsFlexStart"]),$s=hp,mp=ni("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Rs=mp;function gp(e){return Ml("MuiMenuItem",e)}const yp=ni("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),zn=yp,xp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bp=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},wp=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,l=Il({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},gp,s);return fe({},s,l)},vp=Ht(lf,{shouldForwardProp:e=>cf(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:bp})(({theme:e,ownerState:t})=>fe({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ps.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ps.inset}`]:{marginLeft:52},[`& .${Rs.root}`]:{marginTop:0,marginBottom:0},[`& .${Rs.inset}`]:{paddingLeft:36},[`& .${$s.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&fe({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$s.root} svg`]:{fontSize:"1.25rem"}}))),Sp=E.forwardRef(function(t,n){const r=_l({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:h}=r,p=kl(r,xp),y=E.useContext(Is),g=E.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),S=E.useRef(null);Ol(()=>{i&&S.current&&S.current.focus()},[i]);const x=fe({},r,{dense:g.dense,divider:a,disableGutters:l}),v=wp(r),_=so(S,n);let k;return r.disabled||(k=d!==void 0?d:-1),f.jsx(Is.Provider,{value:g,children:f.jsx(vp,fe({ref:_,role:u,tabIndex:k,component:o,focusVisibleClassName:Rt(v.focusVisible,c),className:Rt(v.root,h)},p,{ownerState:x,classes:v}))})}),Cp=Sp,_p=e=>!e||!Ir(e),kp=_p;function Ep(e){return Ml("MuiSlider",e)}const Pp=ni("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),gt=Pp,Ap=e=>{const{open:t}=e;return{offset:Rt(t&>.valueLabelOpen),circle:gt.valueLabelCircle,label:gt.valueLabelLabel}};function Tp(e){const{children:t,className:n,value:r}=e,i=Ap(e);return t?E.cloneElement(t,{className:Rt(t.props.className)},f.jsxs(E.Fragment,{children:[t.props.children,f.jsx("span",{className:Rt(i.offset,n),"aria-hidden":!0,children:f.jsx("span",{className:i.circle,children:f.jsx("span",{className:i.label,children:r})})})]})):null}const jp=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Ds(e){return e}const Op=Ht("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${zt(n.color)}`],n.size!=="medium"&&t[`size${zt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>fe({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&fe({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&fe({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${gt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${gt.dragging}`]:{[`& .${gt.thumb}, & .${gt.track}`]:{transition:"none"}}})),Mp=Ht("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>fe({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),Ip=Ht("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?qd(e.palette[t.color].main,.62):Qd(e.palette[t.color].main,.5);return fe({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),Np=Ht("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${zt(n.color)}`],n.size!=="medium"&&t[`thumbSize${zt(n.size)}`]]}})(({theme:e,ownerState:t})=>fe({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":fe({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${gt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:dn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${gt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:dn(e.palette[t.color].main,.16)}`},[`&.${gt.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Lp=Ht(Tp,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>fe({[`&.${gt.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),zp=Ht("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Nl(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>fe({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),$p=Ht("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Nl(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>fe({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Rp=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${zt(a)}`,l&&`size${zt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${zt(l)}`,a&&`thumbColor${zt(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Il(c,Ep,s)},Dp=({children:e})=>e,Bp=E.forwardRef(function(t,n){var r,i,o,s,a,l,c,u,d,h,p,y,g,S,x,v,_,k,A,C,z,B,D,Y;const N=_l({props:t,name:"MuiSlider"}),O=Ll().direction==="rtl",{"aria-label":w,"aria-valuetext":P,"aria-labelledby":T,component:H="span",components:F={},componentsProps:M={},color:m="primary",classes:V,className:Z,disableSwap:b=!1,disabled:q=!1,getAriaLabel:ne,getAriaValueText:J,marks:ue=!1,max:se=100,min:pe=0,orientation:he="horizontal",size:Se="medium",step:Te=1,scale:_e=Ds,slotProps:ae,slots:re,track:ke="normal",valueLabelDisplay:Pe="off",valueLabelFormat:Q=Ds}=N,We=kl(N,jp),Ce=fe({},N,{isRtl:O,max:se,min:pe,classes:V,disabled:q,disableSwap:b,orientation:he,marks:ue,color:m,size:Se,step:Te,scale:_e,track:ke,valueLabelDisplay:Pe,valueLabelFormat:Q}),{axisProps:Ge,getRootProps:pt,getHiddenInputProps:it,getThumbProps:Qe,open:j,active:R,axis:G,focusedThumbIndex:K,range:ee,dragging:le,marks:ie,values:de,trackOffset:ge,trackLeap:Ee,getThumbStyle:be}=pp(fe({},Ce,{rootRef:n}));Ce.marked=ie.length>0&&ie.some(Ae=>Ae.label),Ce.dragging=le,Ce.focusedThumbIndex=K;const ye=Rp(Ce),Le=(r=(i=re==null?void 0:re.root)!=null?i:F.Root)!=null?r:Op,Kt=(o=(s=re==null?void 0:re.rail)!=null?s:F.Rail)!=null?o:Mp,jt=(a=(l=re==null?void 0:re.track)!=null?l:F.Track)!=null?a:Ip,qt=(c=(u=re==null?void 0:re.thumb)!=null?u:F.Thumb)!=null?c:Np,kn=(d=(h=re==null?void 0:re.valueLabel)!=null?h:F.ValueLabel)!=null?d:Lp,ht=(p=(y=re==null?void 0:re.mark)!=null?y:F.Mark)!=null?p:zp,En=(g=(S=re==null?void 0:re.markLabel)!=null?S:F.MarkLabel)!=null?g:$p,pr=(x=(v=re==null?void 0:re.input)!=null?v:F.Input)!=null?x:"input",Pn=(_=ae==null?void 0:ae.root)!=null?_:M.root,wi=(k=ae==null?void 0:ae.rail)!=null?k:M.rail,An=(A=ae==null?void 0:ae.track)!=null?A:M.track,Tn=(C=ae==null?void 0:ae.thumb)!=null?C:M.thumb,jn=(z=ae==null?void 0:ae.valueLabel)!=null?z:M.valueLabel,vi=(B=ae==null?void 0:ae.mark)!=null?B:M.mark,Si=(D=ae==null?void 0:ae.markLabel)!=null?D:M.markLabel,Ci=(Y=ae==null?void 0:ae.input)!=null?Y:M.input,_i=Ot({elementType:Le,getSlotProps:pt,externalSlotProps:Pn,externalForwardedProps:We,additionalProps:fe({},kp(Le)&&{as:H}),ownerState:fe({},Ce,Pn==null?void 0:Pn.ownerState),className:[ye.root,Z]}),ki=Ot({elementType:Kt,externalSlotProps:wi,ownerState:Ce,className:ye.rail}),Ei=Ot({elementType:jt,externalSlotProps:An,additionalProps:{style:fe({},Ge[G].offset(ge),Ge[G].leap(Ee))},ownerState:fe({},Ce,An==null?void 0:An.ownerState),className:ye.track}),Qt=Ot({elementType:qt,getSlotProps:Qe,externalSlotProps:Tn,ownerState:fe({},Ce,Tn==null?void 0:Tn.ownerState),className:ye.thumb}),Pi=Ot({elementType:kn,externalSlotProps:jn,ownerState:fe({},Ce,jn==null?void 0:jn.ownerState),className:ye.valueLabel}),On=Ot({elementType:ht,externalSlotProps:vi,ownerState:Ce,className:ye.mark}),Mn=Ot({elementType:En,externalSlotProps:Si,ownerState:Ce,className:ye.markLabel}),Ai=Ot({elementType:pr,getSlotProps:it,externalSlotProps:Ci,ownerState:Ce});return f.jsxs(Le,fe({},_i,{children:[f.jsx(Kt,fe({},ki)),f.jsx(jt,fe({},Ei)),ie.filter(Ae=>Ae.value>=pe&&Ae.value<=se).map((Ae,ze)=>{const In=Ur(Ae.value,pe,se),Jt=Ge[G].offset(In);let ot;return ke===!1?ot=de.indexOf(Ae.value)!==-1:ot=ke==="normal"&&(ee?Ae.value>=de[0]&&Ae.value<=de[de.length-1]:Ae.value<=de[0])||ke==="inverted"&&(ee?Ae.value<=de[0]||Ae.value>=de[de.length-1]:Ae.value>=de[0]),f.jsxs(E.Fragment,{children:[f.jsx(ht,fe({"data-index":ze},On,!Ir(ht)&&{markActive:ot},{style:fe({},Jt,On.style),className:Rt(On.className,ot&&ye.markActive)})),Ae.label!=null?f.jsx(En,fe({"aria-hidden":!0,"data-index":ze},Mn,!Ir(En)&&{markLabelActive:ot},{style:fe({},Jt,Mn.style),className:Rt(ye.markLabel,Mn.className,ot&&ye.markLabelActive),children:Ae.label})):null]},ze)}),de.map((Ae,ze)=>{const In=Ur(Ae,pe,se),Jt=Ge[G].offset(In),ot=Pe==="off"?Dp:kn;return f.jsx(ot,fe({},!Ir(ot)&&{valueLabelFormat:Q,valueLabelDisplay:Pe,value:typeof Q=="function"?Q(_e(Ae),ze):Q,index:ze,open:j===ze||R===ze||Pe==="on",disabled:q},Pi,{children:f.jsx(qt,fe({"data-index":ze},Qt,{className:Rt(ye.thumb,Qt.className,R===ze&&ye.active,K===ze&&ye.focusVisible),style:fe({},Jt,be(ze),Qt.style),children:f.jsx(pr,fe({"data-index":ze,"aria-label":ne?ne(ze):w,"aria-valuenow":_e(Ae),"aria-labelledby":T,"aria-valuetext":J?J(_e(Ae),ze):P,value:de[ze]},Ai))}))}),ze)})]}))}),Kl=Bp,Hp=(e,t="down")=>{const n=Ll(),[r,i]=E.useState(!1),o=n.breakpoints[t](e).split("@media")[1].trim();return E.useEffect(()=>{const s=()=>{const{matches:a}=window.matchMedia(o);i(a)};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[o]),r},Fp=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function Vp(e){return e.tldr_topic??e.topic}var Yr=globalThis&&globalThis.__assign||function(){return Yr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{r.stop(),e(i+t)},t,n),r}function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function Hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(O=df(O,g,{trailing:!0,leading:!1}));var w=new ResizeObserver(O),P=A.current.getBoundingClientRect(),T=P.width,H=P.height;return N(T,H),w.observe(A.current),function(){w.disconnect()}},[N,g]);var $=E.useMemo(function(){var O=D.containerWidth,w=D.containerHeight;if(O<0||w<0)return null;Ii(hr(s)||hr(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,s,l),Ii(!n||n>0,"The aspect(%s) must be greater than zero.",n);var P=hr(s)?O:s,T=hr(l)?w:l;n&&n>0&&(P?T=P/n:T&&(P=T*n),h&&T>h&&(T=h)),Ii(P>0||T>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), @@ -952,7 +952,7 @@ ${({disabled:e})=>e&&El` `,F2=U.audio` height: 0; width: 0; -`,V2=["clip","twitter_space","youtube","episode","podcast"],U2=()=>{const e=bt(),[t]=ut(r=>[r.showTeachMe]),[n]=ri(r=>[r.setPlayingNode]);if(E.useEffect(()=>{V2.includes((e==null?void 0:e.node_type)||"")&&n(e)},[n,e]),t)return f.jsx(hx,{});switch(e==null?void 0:e.node_type){case"guest":case"person":return f.jsx(v2,{});case"data_series":return f.jsx(yx,{});case"tribe_message":return f.jsx(y2,{});case"tweet":return f.jsx(j2,{});case"topic":return f.jsx(T2,{});case"show":return f.jsx(A2,{});case"youtube":case"podcast":case"clip":case"twitter_space":return f.jsx(xu,{});case"document":return f.jsx($2,{});case"episode":return f.jsx(f2,{},e.ref_id);case"image":return f.jsx(g2,{});default:return null}},Y2=E.memo(U2);var W2=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},o.type=n.type||"text/javascript",o.charset=n.charset||"utf8",o.async="async"in n?!!n.async:!0,o.src=t,n.attrs&&G2(o,n.attrs),n.text&&(o.text=""+n.text);var s="onload"in o?Ea:Z2;s(o,r),o.onload||Ea(o,r),i.appendChild(o)};function G2(e,t){for(var n in t)e.setAttribute(n,t[n])}function Ea(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Z2(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var X2=function(t){return K2(t)&&!q2(t)};function K2(e){return!!e&&typeof e=="object"}function q2(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eb(e)}var Q2=typeof Symbol=="function"&&Symbol.for,J2=Q2?Symbol.for("react.element"):60103;function eb(e){return e.$$typeof===J2}function tb(e){return Array.isArray(e)?[]:{}}function nr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Sn(tb(e),e,t):e}function nb(e,t,n){return e.concat(t).map(function(r){return nr(r,n)})}function rb(e,t){if(!t.customMerge)return Sn;var n=t.customMerge(e);return typeof n=="function"?n:Sn}function ib(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Pa(e){return Object.keys(e).concat(ib(e))}function bu(e,t){try{return t in e}catch{return!1}}function ob(e,t){return bu(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function sb(e,t,n){var r={};return n.isMergeableObject(e)&&Pa(e).forEach(function(i){r[i]=nr(e[i],n)}),Pa(t).forEach(function(i){ob(e,i)||(bu(e,i)&&n.isMergeableObject(t[i])?r[i]=rb(i,n)(e[i],t[i],n):r[i]=nr(t[i],n))}),r}function Sn(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nb,n.isMergeableObject=n.isMergeableObject||X2,n.cloneUnlessOtherwiseSpecified=nr;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):sb(e,t,n):nr(t,n)}Sn.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Sn(r,i,n)},{})};var ab=Sn,wu=ab,lb=Object.create,fi=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,ub=Object.getOwnPropertyNames,db=Object.getPrototypeOf,fb=Object.prototype.hasOwnProperty,pb=(e,t)=>{for(var n in t)fi(e,n,{get:t[n],enumerable:!0})},vu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ub(t))!fb.call(e,i)&&i!==n&&fi(e,i,{get:()=>t[i],enumerable:!(r=cb(t,i))||r.enumerable});return e},os=(e,t,n)=>(n=e!=null?lb(db(e)):{},vu(t||!e||!e.__esModule?fi(n,"default",{value:e,enumerable:!0}):n,e)),hb=e=>vu(fi({},"__esModule",{value:!0}),e),Su={};pb(Su,{callPlayer:()=>jb,getConfig:()=>Ab,getSDK:()=>Pb,isBlobUrl:()=>Mb,isMediaStream:()=>Ob,lazy:()=>xb,omit:()=>Tb,parseEndTime:()=>_b,parseStartTime:()=>Cb,queryString:()=>Eb,randomString:()=>kb,supportsWebKitPresentationMode:()=>Ib});var pi=hb(Su),mb=os(E),gb=os(W2),yb=os(wu);const xb=e=>mb.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),bb=/[?&#](?:start|t)=([0-9hms]+)/,wb=/[?&#]end=([0-9hms]+)/,_o=/(\d+)(h|m|s)/g,vb=/^\d+$/;function Cu(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(_o))return Sb(r);if(vb.test(r))return parseInt(r)}}function Sb(e){let t=0,n=_o.exec(e);for(;n!==null;){const[,r,i]=n;i==="h"&&(t+=parseInt(r,10)*60*60),i==="m"&&(t+=parseInt(r,10)*60),i==="s"&&(t+=parseInt(r,10)),n=_o.exec(e)}return t}function Cb(e){return Cu(e,bb)}function _b(e){return Cu(e,wb)}function kb(){return Math.random().toString(36).substr(2,5)}function Eb(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Wi(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const on={},Pb=function(t,n,r=null,i=()=>!0,o=gb.default){const s=Wi(n);return s&&i(s)?Promise.resolve(s):new Promise((a,l)=>{if(on[t]){on[t].push({resolve:a,reject:l});return}on[t]=[{resolve:a,reject:l}];const c=u=>{on[t].forEach(d=>d.resolve(u))};if(r){const u=window[r];window[r]=function(){u&&u(),c(Wi(n))}}o(t,u=>{u?(on[t].forEach(d=>d.reject(u)),on[t]=null):r||c(Wi(n))})})};function Ab(e,t){return(0,yb.default)(t.config,e.config)}function Tb(e,...t){const n=[].concat(...t),r={},i=Object.keys(e);for(const o of i)n.indexOf(o)===-1&&(r[o]=e[o]);return r}function jb(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function Ob(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Mb(e){return/^blob:/.test(e)}function Ib(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var ss=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,Lb=Object.getOwnPropertyNames,zb=Object.prototype.hasOwnProperty,$b=(e,t)=>{for(var n in t)ss(e,n,{get:t[n],enumerable:!0})},Rb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Lb(t))!zb.call(e,i)&&i!==n&&ss(e,i,{get:()=>t[i],enumerable:!(r=Nb(t,i))||r.enumerable});return e},Db=e=>Rb(ss({},"__esModule",{value:!0}),e),_u={};$b(_u,{AUDIO_EXTENSIONS:()=>as,DASH_EXTENSIONS:()=>$u,FLV_EXTENSIONS:()=>Ru,HLS_EXTENSIONS:()=>cs,MATCH_URL_DAILYMOTION:()=>Iu,MATCH_URL_FACEBOOK:()=>Pu,MATCH_URL_FACEBOOK_WATCH:()=>Au,MATCH_URL_KALTURA:()=>zu,MATCH_URL_MIXCLOUD:()=>Nu,MATCH_URL_SOUNDCLOUD:()=>ku,MATCH_URL_STREAMABLE:()=>Tu,MATCH_URL_TWITCH_CHANNEL:()=>Mu,MATCH_URL_TWITCH_VIDEO:()=>Ou,MATCH_URL_VIDYARD:()=>Lu,MATCH_URL_VIMEO:()=>Eu,MATCH_URL_WISTIA:()=>ju,MATCH_URL_YOUTUBE:()=>ko,VIDEO_EXTENSIONS:()=>ls,canPlay:()=>Hb});var Bb=Db(_u),Aa=pi;const ko=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ku=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Eu=/vimeo\.com\/(?!progressive_redirect).+/,Pu=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Au=/^https?:\/\/fb\.watch\/.+$/,Tu=/streamable\.com\/([a-z0-9]+)$/,ju=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Ou=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,Mu=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Iu=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Nu=/mixcloud\.com\/([^/]+\/[^/]+)/,Lu=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,zu=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,as=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,ls=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,cs=/\.(m3u8)($|\?)/i,$u=/\.(mpd)($|\?)/i,Ru=/\.(flv)($|\?)/i,Eo=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Eo(t)||Eo(t.src))return!0;return!1}return(0,Aa.isMediaStream)(e)||(0,Aa.isBlobUrl)(e)?!0:as.test(e)||ls.test(e)||cs.test(e)||$u.test(e)||Ru.test(e)},Hb={youtube:e=>e instanceof Array?e.every(t=>ko.test(t)):ko.test(e),soundcloud:e=>ku.test(e)&&!as.test(e),vimeo:e=>Eu.test(e)&&!ls.test(e)&&!cs.test(e),facebook:e=>Pu.test(e)||Au.test(e),streamable:e=>Tu.test(e),wistia:e=>ju.test(e),twitch:e=>Ou.test(e)||Mu.test(e),dailymotion:e=>Iu.test(e),mixcloud:e=>Nu.test(e),vidyard:e=>Lu.test(e),kaltura:e=>zu.test(e),file:Eo};var us=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,Vb=Object.getOwnPropertyNames,Ub=Object.prototype.hasOwnProperty,Yb=(e,t)=>{for(var n in t)us(e,n,{get:t[n],enumerable:!0})},Wb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vb(t))!Ub.call(e,i)&&i!==n&&us(e,i,{get:()=>t[i],enumerable:!(r=Fb(t,i))||r.enumerable});return e},Gb=e=>Wb(us({},"__esModule",{value:!0}),e),Du={};Yb(Du,{default:()=>Xb});var Zb=Gb(Du),Je=pi,Ze=Bb,Xb=[{key:"youtube",name:"YouTube",canPlay:Ze.canPlay.youtube,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./YouTube-aecf8ec2.js").then(e=>e.Y),["assets/YouTube-aecf8ec2.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Ze.canPlay.soundcloud,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./SoundCloud-7b625e8c.js").then(e=>e.S),["assets/SoundCloud-7b625e8c.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Ze.canPlay.vimeo,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Vimeo-7d27e522.js").then(e=>e.V),["assets/Vimeo-7d27e522.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"facebook",name:"Facebook",canPlay:Ze.canPlay.facebook,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Facebook-75e7cdc3.js").then(e=>e.F),["assets/Facebook-75e7cdc3.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"streamable",name:"Streamable",canPlay:Ze.canPlay.streamable,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Streamable-02f6d6ff.js").then(e=>e.S),["assets/Streamable-02f6d6ff.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"wistia",name:"Wistia",canPlay:Ze.canPlay.wistia,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Wistia-05302f1c.js").then(e=>e.W),["assets/Wistia-05302f1c.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"twitch",name:"Twitch",canPlay:Ze.canPlay.twitch,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Twitch-f6c2e381.js").then(e=>e.T),["assets/Twitch-f6c2e381.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Ze.canPlay.dailymotion,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./DailyMotion-1e73cb4e.js").then(e=>e.D),["assets/DailyMotion-1e73cb4e.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Ze.canPlay.mixcloud,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Mixcloud-e6ffb5b8.js").then(e=>e.M),["assets/Mixcloud-e6ffb5b8.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Ze.canPlay.vidyard,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Vidyard-a3146ae7.js").then(e=>e.V),["assets/Vidyard-a3146ae7.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Ze.canPlay.kaltura,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Kaltura-f447b996.js").then(e=>e.K),["assets/Kaltura-f447b996.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))},{key:"file",name:"FilePlayer",canPlay:Ze.canPlay.file,canEnablePIP:e=>Ze.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,Je.supportsWebKitPresentationMode)())&&!Ze.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./FilePlayer-a6b5c6ba.js").then(e=>e.F),["assets/FilePlayer-a6b5c6ba.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"]))}],Ta=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Kb(e,t){return!!(e===t||Ta(e)&&Ta(t))}function qb(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)hi(e,n,{get:t[n],enumerable:!0})},Hu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of aw(t))!cw.call(e,i)&&i!==n&&hi(e,i,{get:()=>t[i],enumerable:!(r=sw(t,i))||r.enumerable});return e},dw=(e,t,n)=>(n=e!=null?ow(lw(e)):{},Hu(t||!e||!e.__esModule?hi(n,"default",{value:e,enumerable:!0}):n,e)),fw=e=>Hu(hi({},"__esModule",{value:!0}),e),Fu={};uw(Fu,{defaultProps:()=>mw,propTypes:()=>hw});var Vu=fw(Fu),pw=dw(Vf);const{string:Fe,bool:Ve,number:sn,array:Gi,oneOfType:Hn,shape:st,object:Ue,func:$e,node:ja}=pw.default,hw={url:Hn([Fe,Gi,Ue]),playing:Ve,loop:Ve,controls:Ve,volume:sn,muted:Ve,playbackRate:sn,width:Hn([Fe,sn]),height:Hn([Fe,sn]),style:Ue,progressInterval:sn,playsinline:Ve,pip:Ve,stopOnUnmount:Ve,light:Hn([Ve,Fe,Ue]),playIcon:ja,previewTabIndex:sn,fallback:ja,oEmbedUrl:Fe,wrapper:Hn([Fe,$e,st({render:$e.isRequired})]),config:st({soundcloud:st({options:Ue}),youtube:st({playerVars:Ue,embedOptions:Ue,onUnstarted:$e}),facebook:st({appId:Fe,version:Fe,playerId:Fe,attributes:Ue}),dailymotion:st({params:Ue}),vimeo:st({playerOptions:Ue,title:Fe}),file:st({attributes:Ue,tracks:Gi,forceVideo:Ve,forceAudio:Ve,forceHLS:Ve,forceSafariHLS:Ve,forceDisableHls:Ve,forceDASH:Ve,forceFLV:Ve,hlsOptions:Ue,hlsVersion:Fe,dashVersion:Fe,flvVersion:Fe}),wistia:st({options:Ue,playerId:Fe,customControls:Gi}),mixcloud:st({options:Ue}),twitch:st({options:Ue,playerId:Fe}),vidyard:st({options:Ue})}),onReady:$e,onStart:$e,onPlay:$e,onPause:$e,onBuffer:$e,onBufferEnd:$e,onEnded:$e,onError:$e,onDuration:$e,onSeek:$e,onPlaybackRateChange:$e,onPlaybackQualityChange:$e,onProgress:$e,onClickPreview:$e,onEnablePIP:$e,onDisablePIP:$e},De=()=>{},mw={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:De},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:De,onStart:De,onPlay:De,onPause:De,onBuffer:De,onBufferEnd:De,onEnded:De,onError:De,onDuration:De,onSeek:De,onPlaybackRateChange:De,onPlaybackQualityChange:De,onProgress:De,onClickPreview:De,onEnablePIP:De,onDisablePIP:De};var gw=Object.create,lr=Object.defineProperty,yw=Object.getOwnPropertyDescriptor,xw=Object.getOwnPropertyNames,bw=Object.getPrototypeOf,ww=Object.prototype.hasOwnProperty,vw=(e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sw=(e,t)=>{for(var n in t)lr(e,n,{get:t[n],enumerable:!0})},Uu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xw(t))!ww.call(e,i)&&i!==n&&lr(e,i,{get:()=>t[i],enumerable:!(r=yw(t,i))||r.enumerable});return e},Yu=(e,t,n)=>(n=e!=null?gw(bw(e)):{},Uu(t||!e||!e.__esModule?lr(n,"default",{value:e,enumerable:!0}):n,e)),Cw=e=>Uu(lr({},"__esModule",{value:!0}),e),Oe=(e,t,n)=>(vw(e,typeof t!="symbol"?t+"":t,n),n),Wu={};Sw(Wu,{default:()=>mi});var _w=Cw(Wu),Oa=Yu(E),kw=Yu(Bu),Gu=Vu,Ew=pi;const Pw=5e3;class mi extends Oa.Component{constructor(){super(...arguments),Oe(this,"mounted",!1),Oe(this,"isReady",!1),Oe(this,"isPlaying",!1),Oe(this,"isLoading",!0),Oe(this,"loadOnReady",null),Oe(this,"startOnPlay",!0),Oe(this,"seekOnPlay",null),Oe(this,"onDurationCalled",!1),Oe(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),Oe(this,"getInternalPlayer",t=>this.player?this.player[t]:null),Oe(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const i={playedSeconds:t,played:t/r};n!==null&&(i.loadedSeconds=n,i.loaded=n/r),(i.playedSeconds!==this.prevPlayed||i.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(i),this.prevPlayed=i.playedSeconds,this.prevLoaded=i.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),Oe(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:i}=this.props;t(),!i&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),Oe(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),Oe(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),Oe(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),Oe(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),Oe(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),Oe(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:i,muted:o,playbackRate:s,pip:a,loop:l,activePlayer:c,disableDeferredLoading:u}=this.props;if(!(0,kw.default)(t.url,n)){if(this.isLoading&&!c.forceLoad&&!u&&!(0,Ew.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==i&&i!==null&&this.player.setVolume(i),t.muted!==o&&(o?this.player.mute():(this.player.unmute(),i!==null&&setTimeout(()=>this.player.setVolume(i)))),t.playbackRate!==s&&this.player.setPlaybackRate&&this.player.setPlaybackRate(s),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Pw));return}if(n?n==="fraction":t>0&&t<1){const o=this.player.getDuration();if(!o){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(o*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Oa.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}Oe(mi,"displayName","Player");Oe(mi,"propTypes",Gu.propTypes);Oe(mi,"defaultProps",Gu.defaultProps);var Aw=Object.create,cr=Object.defineProperty,Tw=Object.getOwnPropertyDescriptor,jw=Object.getOwnPropertyNames,Ow=Object.getPrototypeOf,Mw=Object.prototype.hasOwnProperty,Iw=(e,t,n)=>t in e?cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nw=(e,t)=>{for(var n in t)cr(e,n,{get:t[n],enumerable:!0})},Zu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of jw(t))!Mw.call(e,i)&&i!==n&&cr(e,i,{get:()=>t[i],enumerable:!(r=Tw(t,i))||r.enumerable});return e},ur=(e,t,n)=>(n=e!=null?Aw(Ow(e)):{},Zu(t||!e||!e.__esModule?cr(n,"default",{value:e,enumerable:!0}):n,e)),Lw=e=>Zu(cr({},"__esModule",{value:!0}),e),je=(e,t,n)=>(Iw(e,typeof t!="symbol"?t+"":t,n),n),Xu={};Nw(Xu,{createReactPlayer:()=>Uw});var zw=Lw(Xu),un=ur(E),$w=ur(wu),Zi=ur(ew),Ma=ur(Bu),Yn=Vu,Ku=pi,Rw=ur(_w);const Dw=(0,Ku.lazy)(()=>et(()=>import("./Preview-64356325.js").then(e=>e.P),["assets/Preview-64356325.js","assets/index-b639b6f9.js","assets/index-5f215f9e.css"])),Bw=typeof window<"u"&&window.document,Hw=typeof Ye<"u"&&Ye.window&&Ye.window.document,Fw=Object.keys(Yn.propTypes),Vw=Bw||Hw?un.Suspense:()=>null,Fn=[],Uw=(e,t)=>{var n;return n=class extends un.Component{constructor(){super(...arguments),je(this,"state",{showPreview:!!this.props.light}),je(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),je(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),je(this,"showPreview",()=>{this.setState({showPreview:!0})}),je(this,"getDuration",()=>this.player?this.player.getDuration():null),je(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),je(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),je(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),je(this,"seekTo",(r,i,o)=>{if(!this.player)return null;this.player.seekTo(r,i,o)}),je(this,"handleReady",()=>{this.props.onReady(this)}),je(this,"getActivePlayer",(0,Zi.default)(r=>{for(const i of[...Fn,...e])if(i.canPlay(r))return i;return t||null})),je(this,"getConfig",(0,Zi.default)((r,i)=>{const{config:o}=this.props;return $w.default.all([Yn.defaultProps.config,Yn.defaultProps.config[i]||{},o,o[i]||{}])})),je(this,"getAttributes",(0,Zi.default)(r=>(0,Ku.omit)(this.props,Fw))),je(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const o=this.getConfig(r,i.key);return un.default.createElement(Rw.default,{...this.props,key:i.key,ref:this.references.player,config:o,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Ma.default)(this.props,r)||!(0,Ma.default)(this.state,i)}componentDidUpdate(r){const{light:i}=this.props;!r.light&&i&&this.setState({showPreview:!0}),r.light&&!i&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:i,playIcon:o,previewTabIndex:s,oEmbedUrl:a}=this.props;return un.default.createElement(Dw,{url:r,light:i,playIcon:o,previewTabIndex:s,oEmbedUrl:a,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:o,height:s,fallback:a,wrapper:l}=this.props,{showPreview:c}=this.state,u=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return un.default.createElement(l,{ref:d,style:{...i,width:o,height:s},...u},un.default.createElement(Vw,{fallback:a},c?this.renderPreview(r):this.renderActivePlayer(r)))}},je(n,"displayName","ReactPlayer"),je(n,"propTypes",Yn.propTypes),je(n,"defaultProps",Yn.defaultProps),je(n,"addCustomPlayer",r=>{Fn.push(r)}),je(n,"removeCustomPlayers",()=>{Fn.length=0}),je(n,"canPlay",r=>{for(const i of[...Fn,...e])if(i.canPlay(r))return!0;return!1}),je(n,"canEnablePIP",r=>{for(const i of[...Fn,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var Yw=Object.create,gi=Object.defineProperty,Ww=Object.getOwnPropertyDescriptor,Gw=Object.getOwnPropertyNames,Zw=Object.getPrototypeOf,Xw=Object.prototype.hasOwnProperty,Kw=(e,t)=>{for(var n in t)gi(e,n,{get:t[n],enumerable:!0})},qu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gw(t))!Xw.call(e,i)&&i!==n&&gi(e,i,{get:()=>t[i],enumerable:!(r=Ww(t,i))||r.enumerable});return e},qw=(e,t,n)=>(n=e!=null?Yw(Zw(e)):{},qu(t||!e||!e.__esModule?gi(n,"default",{value:e,enumerable:!0}):n,e)),Qw=e=>qu(gi({},"__esModule",{value:!0}),e),Qu={};Kw(Qu,{default:()=>n5});var Jw=Qw(Qu),Po=qw(Zb),e5=zw;const t5=Po.default[Po.default.length-1];var n5=(0,e5.createReactPlayer)(Po.default,t5);const r5=jl(Jw),i5=e=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[f.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:f.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),f.jsx("g",{mask:"url(#mask0_4160_9271)",children:f.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),o5=e=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[f.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:f.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),f.jsx("g",{mask:"url(#mask0_3130_18463)",children:f.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),s5=e=>f.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:f.jsxs("g",{id:"volume_up",children:[f.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:f.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),f.jsx("g",{mask:"url(#mask0_1483_75386)",children:f.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),Ia=e=>{const t=Math.floor(e/60),n=Math.floor(e%60),r=t.toString().padStart(2,"0"),i=n.toString().padStart(2,"0");return`${r}:${i}`},a5=({isPlaying:e,setIsPlaying:t,playingTime:n,duration:r,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:a})=>f.jsxs(L,{children:[!a&&f.jsx(f5,{"aria-label":"Small",max:r,onChange:i,size:"small",value:n}),f.jsxs(l5,{align:"center",direction:"row",showToolbar:a,children:[f.jsx(c5,{onClick:t,size:"small",children:e?f.jsx(di,{}):f.jsx(Ho,{})}),f.jsxs(p5,{direction:"row",children:[f.jsx("span",{children:Ia(n)}),f.jsx("span",{className:"separator",children:"/"}),f.jsx("span",{className:"duration",children:Ia(r)})]}),f.jsxs(u5,{direction:"row",px:9,children:[f.jsx(Kl,{className:"volume-slider",defaultValue:.5,max:1,min:0,onChange:o,size:"small",step:.1}),f.jsx(s5,{})]}),f.jsx(d5,{onClick:()=>s(),children:a?f.jsx(i5,{}):f.jsx(o5,{})})]})]}),l5=U(L)` +`,V2=["clip","twitter_space","youtube","episode","podcast"],U2=()=>{const e=bt(),[t]=ut(r=>[r.showTeachMe]),[n]=ri(r=>[r.setPlayingNode]);if(E.useEffect(()=>{V2.includes((e==null?void 0:e.node_type)||"")&&n(e)},[n,e]),t)return f.jsx(hx,{});switch(e==null?void 0:e.node_type){case"guest":case"person":return f.jsx(v2,{});case"data_series":return f.jsx(yx,{});case"tribe_message":return f.jsx(y2,{});case"tweet":return f.jsx(j2,{});case"topic":return f.jsx(T2,{});case"show":return f.jsx(A2,{});case"youtube":case"podcast":case"clip":case"twitter_space":return f.jsx(xu,{});case"document":return f.jsx($2,{});case"episode":return f.jsx(f2,{},e.ref_id);case"image":return f.jsx(g2,{});default:return null}},Y2=E.memo(U2);var W2=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},o.type=n.type||"text/javascript",o.charset=n.charset||"utf8",o.async="async"in n?!!n.async:!0,o.src=t,n.attrs&&G2(o,n.attrs),n.text&&(o.text=""+n.text);var s="onload"in o?Ea:Z2;s(o,r),o.onload||Ea(o,r),i.appendChild(o)};function G2(e,t){for(var n in t)e.setAttribute(n,t[n])}function Ea(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Z2(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var X2=function(t){return K2(t)&&!q2(t)};function K2(e){return!!e&&typeof e=="object"}function q2(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eb(e)}var Q2=typeof Symbol=="function"&&Symbol.for,J2=Q2?Symbol.for("react.element"):60103;function eb(e){return e.$$typeof===J2}function tb(e){return Array.isArray(e)?[]:{}}function nr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Sn(tb(e),e,t):e}function nb(e,t,n){return e.concat(t).map(function(r){return nr(r,n)})}function rb(e,t){if(!t.customMerge)return Sn;var n=t.customMerge(e);return typeof n=="function"?n:Sn}function ib(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Pa(e){return Object.keys(e).concat(ib(e))}function bu(e,t){try{return t in e}catch{return!1}}function ob(e,t){return bu(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function sb(e,t,n){var r={};return n.isMergeableObject(e)&&Pa(e).forEach(function(i){r[i]=nr(e[i],n)}),Pa(t).forEach(function(i){ob(e,i)||(bu(e,i)&&n.isMergeableObject(t[i])?r[i]=rb(i,n)(e[i],t[i],n):r[i]=nr(t[i],n))}),r}function Sn(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nb,n.isMergeableObject=n.isMergeableObject||X2,n.cloneUnlessOtherwiseSpecified=nr;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):sb(e,t,n):nr(t,n)}Sn.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Sn(r,i,n)},{})};var ab=Sn,wu=ab,lb=Object.create,fi=Object.defineProperty,cb=Object.getOwnPropertyDescriptor,ub=Object.getOwnPropertyNames,db=Object.getPrototypeOf,fb=Object.prototype.hasOwnProperty,pb=(e,t)=>{for(var n in t)fi(e,n,{get:t[n],enumerable:!0})},vu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ub(t))!fb.call(e,i)&&i!==n&&fi(e,i,{get:()=>t[i],enumerable:!(r=cb(t,i))||r.enumerable});return e},os=(e,t,n)=>(n=e!=null?lb(db(e)):{},vu(t||!e||!e.__esModule?fi(n,"default",{value:e,enumerable:!0}):n,e)),hb=e=>vu(fi({},"__esModule",{value:!0}),e),Su={};pb(Su,{callPlayer:()=>jb,getConfig:()=>Ab,getSDK:()=>Pb,isBlobUrl:()=>Mb,isMediaStream:()=>Ob,lazy:()=>xb,omit:()=>Tb,parseEndTime:()=>_b,parseStartTime:()=>Cb,queryString:()=>Eb,randomString:()=>kb,supportsWebKitPresentationMode:()=>Ib});var pi=hb(Su),mb=os(E),gb=os(W2),yb=os(wu);const xb=e=>mb.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),bb=/[?&#](?:start|t)=([0-9hms]+)/,wb=/[?&#]end=([0-9hms]+)/,_o=/(\d+)(h|m|s)/g,vb=/^\d+$/;function Cu(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(_o))return Sb(r);if(vb.test(r))return parseInt(r)}}function Sb(e){let t=0,n=_o.exec(e);for(;n!==null;){const[,r,i]=n;i==="h"&&(t+=parseInt(r,10)*60*60),i==="m"&&(t+=parseInt(r,10)*60),i==="s"&&(t+=parseInt(r,10)),n=_o.exec(e)}return t}function Cb(e){return Cu(e,bb)}function _b(e){return Cu(e,wb)}function kb(){return Math.random().toString(36).substr(2,5)}function Eb(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Wi(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const on={},Pb=function(t,n,r=null,i=()=>!0,o=gb.default){const s=Wi(n);return s&&i(s)?Promise.resolve(s):new Promise((a,l)=>{if(on[t]){on[t].push({resolve:a,reject:l});return}on[t]=[{resolve:a,reject:l}];const c=u=>{on[t].forEach(d=>d.resolve(u))};if(r){const u=window[r];window[r]=function(){u&&u(),c(Wi(n))}}o(t,u=>{u?(on[t].forEach(d=>d.reject(u)),on[t]=null):r||c(Wi(n))})})};function Ab(e,t){return(0,yb.default)(t.config,e.config)}function Tb(e,...t){const n=[].concat(...t),r={},i=Object.keys(e);for(const o of i)n.indexOf(o)===-1&&(r[o]=e[o]);return r}function jb(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function Ob(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Mb(e){return/^blob:/.test(e)}function Ib(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var ss=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,Lb=Object.getOwnPropertyNames,zb=Object.prototype.hasOwnProperty,$b=(e,t)=>{for(var n in t)ss(e,n,{get:t[n],enumerable:!0})},Rb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Lb(t))!zb.call(e,i)&&i!==n&&ss(e,i,{get:()=>t[i],enumerable:!(r=Nb(t,i))||r.enumerable});return e},Db=e=>Rb(ss({},"__esModule",{value:!0}),e),_u={};$b(_u,{AUDIO_EXTENSIONS:()=>as,DASH_EXTENSIONS:()=>$u,FLV_EXTENSIONS:()=>Ru,HLS_EXTENSIONS:()=>cs,MATCH_URL_DAILYMOTION:()=>Iu,MATCH_URL_FACEBOOK:()=>Pu,MATCH_URL_FACEBOOK_WATCH:()=>Au,MATCH_URL_KALTURA:()=>zu,MATCH_URL_MIXCLOUD:()=>Nu,MATCH_URL_SOUNDCLOUD:()=>ku,MATCH_URL_STREAMABLE:()=>Tu,MATCH_URL_TWITCH_CHANNEL:()=>Mu,MATCH_URL_TWITCH_VIDEO:()=>Ou,MATCH_URL_VIDYARD:()=>Lu,MATCH_URL_VIMEO:()=>Eu,MATCH_URL_WISTIA:()=>ju,MATCH_URL_YOUTUBE:()=>ko,VIDEO_EXTENSIONS:()=>ls,canPlay:()=>Hb});var Bb=Db(_u),Aa=pi;const ko=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ku=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Eu=/vimeo\.com\/(?!progressive_redirect).+/,Pu=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Au=/^https?:\/\/fb\.watch\/.+$/,Tu=/streamable\.com\/([a-z0-9]+)$/,ju=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Ou=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,Mu=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,Iu=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,Nu=/mixcloud\.com\/([^/]+\/[^/]+)/,Lu=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,zu=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,as=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,ls=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,cs=/\.(m3u8)($|\?)/i,$u=/\.(mpd)($|\?)/i,Ru=/\.(flv)($|\?)/i,Eo=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Eo(t)||Eo(t.src))return!0;return!1}return(0,Aa.isMediaStream)(e)||(0,Aa.isBlobUrl)(e)?!0:as.test(e)||ls.test(e)||cs.test(e)||$u.test(e)||Ru.test(e)},Hb={youtube:e=>e instanceof Array?e.every(t=>ko.test(t)):ko.test(e),soundcloud:e=>ku.test(e)&&!as.test(e),vimeo:e=>Eu.test(e)&&!ls.test(e)&&!cs.test(e),facebook:e=>Pu.test(e)||Au.test(e),streamable:e=>Tu.test(e),wistia:e=>ju.test(e),twitch:e=>Ou.test(e)||Mu.test(e),dailymotion:e=>Iu.test(e),mixcloud:e=>Nu.test(e),vidyard:e=>Lu.test(e),kaltura:e=>zu.test(e),file:Eo};var us=Object.defineProperty,Fb=Object.getOwnPropertyDescriptor,Vb=Object.getOwnPropertyNames,Ub=Object.prototype.hasOwnProperty,Yb=(e,t)=>{for(var n in t)us(e,n,{get:t[n],enumerable:!0})},Wb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vb(t))!Ub.call(e,i)&&i!==n&&us(e,i,{get:()=>t[i],enumerable:!(r=Fb(t,i))||r.enumerable});return e},Gb=e=>Wb(us({},"__esModule",{value:!0}),e),Du={};Yb(Du,{default:()=>Xb});var Zb=Gb(Du),Je=pi,Ze=Bb,Xb=[{key:"youtube",name:"YouTube",canPlay:Ze.canPlay.youtube,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./YouTube-6a5e094a.js").then(e=>e.Y),["assets/YouTube-6a5e094a.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Ze.canPlay.soundcloud,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./SoundCloud-370f2397.js").then(e=>e.S),["assets/SoundCloud-370f2397.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Ze.canPlay.vimeo,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Vimeo-0e587634.js").then(e=>e.V),["assets/Vimeo-0e587634.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"facebook",name:"Facebook",canPlay:Ze.canPlay.facebook,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Facebook-d39364fd.js").then(e=>e.F),["assets/Facebook-d39364fd.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"streamable",name:"Streamable",canPlay:Ze.canPlay.streamable,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Streamable-b74b3979.js").then(e=>e.S),["assets/Streamable-b74b3979.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"wistia",name:"Wistia",canPlay:Ze.canPlay.wistia,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Wistia-7ca4ce66.js").then(e=>e.W),["assets/Wistia-7ca4ce66.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"twitch",name:"Twitch",canPlay:Ze.canPlay.twitch,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Twitch-34b4cf9c.js").then(e=>e.T),["assets/Twitch-34b4cf9c.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Ze.canPlay.dailymotion,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./DailyMotion-360cfcd6.js").then(e=>e.D),["assets/DailyMotion-360cfcd6.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Ze.canPlay.mixcloud,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Mixcloud-2f41bbf1.js").then(e=>e.M),["assets/Mixcloud-2f41bbf1.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Ze.canPlay.vidyard,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Vidyard-d5f9b421.js").then(e=>e.V),["assets/Vidyard-d5f9b421.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Ze.canPlay.kaltura,lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./Kaltura-e146b1f1.js").then(e=>e.K),["assets/Kaltura-e146b1f1.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))},{key:"file",name:"FilePlayer",canPlay:Ze.canPlay.file,canEnablePIP:e=>Ze.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,Je.supportsWebKitPresentationMode)())&&!Ze.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,Je.lazy)(()=>et(()=>import("./FilePlayer-518986c0.js").then(e=>e.F),["assets/FilePlayer-518986c0.js","assets/index-32144865.js","assets/index-5f215f9e.css"]))}],Ta=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Kb(e,t){return!!(e===t||Ta(e)&&Ta(t))}function qb(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)hi(e,n,{get:t[n],enumerable:!0})},Hu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of aw(t))!cw.call(e,i)&&i!==n&&hi(e,i,{get:()=>t[i],enumerable:!(r=sw(t,i))||r.enumerable});return e},dw=(e,t,n)=>(n=e!=null?ow(lw(e)):{},Hu(t||!e||!e.__esModule?hi(n,"default",{value:e,enumerable:!0}):n,e)),fw=e=>Hu(hi({},"__esModule",{value:!0}),e),Fu={};uw(Fu,{defaultProps:()=>mw,propTypes:()=>hw});var Vu=fw(Fu),pw=dw(Vf);const{string:Fe,bool:Ve,number:sn,array:Gi,oneOfType:Hn,shape:st,object:Ue,func:$e,node:ja}=pw.default,hw={url:Hn([Fe,Gi,Ue]),playing:Ve,loop:Ve,controls:Ve,volume:sn,muted:Ve,playbackRate:sn,width:Hn([Fe,sn]),height:Hn([Fe,sn]),style:Ue,progressInterval:sn,playsinline:Ve,pip:Ve,stopOnUnmount:Ve,light:Hn([Ve,Fe,Ue]),playIcon:ja,previewTabIndex:sn,fallback:ja,oEmbedUrl:Fe,wrapper:Hn([Fe,$e,st({render:$e.isRequired})]),config:st({soundcloud:st({options:Ue}),youtube:st({playerVars:Ue,embedOptions:Ue,onUnstarted:$e}),facebook:st({appId:Fe,version:Fe,playerId:Fe,attributes:Ue}),dailymotion:st({params:Ue}),vimeo:st({playerOptions:Ue,title:Fe}),file:st({attributes:Ue,tracks:Gi,forceVideo:Ve,forceAudio:Ve,forceHLS:Ve,forceSafariHLS:Ve,forceDisableHls:Ve,forceDASH:Ve,forceFLV:Ve,hlsOptions:Ue,hlsVersion:Fe,dashVersion:Fe,flvVersion:Fe}),wistia:st({options:Ue,playerId:Fe,customControls:Gi}),mixcloud:st({options:Ue}),twitch:st({options:Ue,playerId:Fe}),vidyard:st({options:Ue})}),onReady:$e,onStart:$e,onPlay:$e,onPause:$e,onBuffer:$e,onBufferEnd:$e,onEnded:$e,onError:$e,onDuration:$e,onSeek:$e,onPlaybackRateChange:$e,onPlaybackQualityChange:$e,onProgress:$e,onClickPreview:$e,onEnablePIP:$e,onDisablePIP:$e},De=()=>{},mw={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:De},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:De,onStart:De,onPlay:De,onPause:De,onBuffer:De,onBufferEnd:De,onEnded:De,onError:De,onDuration:De,onSeek:De,onPlaybackRateChange:De,onPlaybackQualityChange:De,onProgress:De,onClickPreview:De,onEnablePIP:De,onDisablePIP:De};var gw=Object.create,lr=Object.defineProperty,yw=Object.getOwnPropertyDescriptor,xw=Object.getOwnPropertyNames,bw=Object.getPrototypeOf,ww=Object.prototype.hasOwnProperty,vw=(e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sw=(e,t)=>{for(var n in t)lr(e,n,{get:t[n],enumerable:!0})},Uu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xw(t))!ww.call(e,i)&&i!==n&&lr(e,i,{get:()=>t[i],enumerable:!(r=yw(t,i))||r.enumerable});return e},Yu=(e,t,n)=>(n=e!=null?gw(bw(e)):{},Uu(t||!e||!e.__esModule?lr(n,"default",{value:e,enumerable:!0}):n,e)),Cw=e=>Uu(lr({},"__esModule",{value:!0}),e),Oe=(e,t,n)=>(vw(e,typeof t!="symbol"?t+"":t,n),n),Wu={};Sw(Wu,{default:()=>mi});var _w=Cw(Wu),Oa=Yu(E),kw=Yu(Bu),Gu=Vu,Ew=pi;const Pw=5e3;class mi extends Oa.Component{constructor(){super(...arguments),Oe(this,"mounted",!1),Oe(this,"isReady",!1),Oe(this,"isPlaying",!1),Oe(this,"isLoading",!0),Oe(this,"loadOnReady",null),Oe(this,"startOnPlay",!0),Oe(this,"seekOnPlay",null),Oe(this,"onDurationCalled",!1),Oe(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),Oe(this,"getInternalPlayer",t=>this.player?this.player[t]:null),Oe(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const i={playedSeconds:t,played:t/r};n!==null&&(i.loadedSeconds=n,i.loaded=n/r),(i.playedSeconds!==this.prevPlayed||i.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(i),this.prevPlayed=i.playedSeconds,this.prevLoaded=i.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),Oe(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:i}=this.props;t(),!i&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),Oe(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),Oe(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),Oe(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),Oe(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),Oe(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),Oe(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:i,muted:o,playbackRate:s,pip:a,loop:l,activePlayer:c,disableDeferredLoading:u}=this.props;if(!(0,kw.default)(t.url,n)){if(this.isLoading&&!c.forceLoad&&!u&&!(0,Ew.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==i&&i!==null&&this.player.setVolume(i),t.muted!==o&&(o?this.player.mute():(this.player.unmute(),i!==null&&setTimeout(()=>this.player.setVolume(i)))),t.playbackRate!==s&&this.player.setPlaybackRate&&this.player.setPlaybackRate(s),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Pw));return}if(n?n==="fraction":t>0&&t<1){const o=this.player.getDuration();if(!o){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(o*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Oa.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}Oe(mi,"displayName","Player");Oe(mi,"propTypes",Gu.propTypes);Oe(mi,"defaultProps",Gu.defaultProps);var Aw=Object.create,cr=Object.defineProperty,Tw=Object.getOwnPropertyDescriptor,jw=Object.getOwnPropertyNames,Ow=Object.getPrototypeOf,Mw=Object.prototype.hasOwnProperty,Iw=(e,t,n)=>t in e?cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nw=(e,t)=>{for(var n in t)cr(e,n,{get:t[n],enumerable:!0})},Zu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of jw(t))!Mw.call(e,i)&&i!==n&&cr(e,i,{get:()=>t[i],enumerable:!(r=Tw(t,i))||r.enumerable});return e},ur=(e,t,n)=>(n=e!=null?Aw(Ow(e)):{},Zu(t||!e||!e.__esModule?cr(n,"default",{value:e,enumerable:!0}):n,e)),Lw=e=>Zu(cr({},"__esModule",{value:!0}),e),je=(e,t,n)=>(Iw(e,typeof t!="symbol"?t+"":t,n),n),Xu={};Nw(Xu,{createReactPlayer:()=>Uw});var zw=Lw(Xu),un=ur(E),$w=ur(wu),Zi=ur(ew),Ma=ur(Bu),Yn=Vu,Ku=pi,Rw=ur(_w);const Dw=(0,Ku.lazy)(()=>et(()=>import("./Preview-cf030fed.js").then(e=>e.P),["assets/Preview-cf030fed.js","assets/index-32144865.js","assets/index-5f215f9e.css"])),Bw=typeof window<"u"&&window.document,Hw=typeof Ye<"u"&&Ye.window&&Ye.window.document,Fw=Object.keys(Yn.propTypes),Vw=Bw||Hw?un.Suspense:()=>null,Fn=[],Uw=(e,t)=>{var n;return n=class extends un.Component{constructor(){super(...arguments),je(this,"state",{showPreview:!!this.props.light}),je(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),je(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),je(this,"showPreview",()=>{this.setState({showPreview:!0})}),je(this,"getDuration",()=>this.player?this.player.getDuration():null),je(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),je(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),je(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),je(this,"seekTo",(r,i,o)=>{if(!this.player)return null;this.player.seekTo(r,i,o)}),je(this,"handleReady",()=>{this.props.onReady(this)}),je(this,"getActivePlayer",(0,Zi.default)(r=>{for(const i of[...Fn,...e])if(i.canPlay(r))return i;return t||null})),je(this,"getConfig",(0,Zi.default)((r,i)=>{const{config:o}=this.props;return $w.default.all([Yn.defaultProps.config,Yn.defaultProps.config[i]||{},o,o[i]||{}])})),je(this,"getAttributes",(0,Zi.default)(r=>(0,Ku.omit)(this.props,Fw))),je(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const o=this.getConfig(r,i.key);return un.default.createElement(Rw.default,{...this.props,key:i.key,ref:this.references.player,config:o,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Ma.default)(this.props,r)||!(0,Ma.default)(this.state,i)}componentDidUpdate(r){const{light:i}=this.props;!r.light&&i&&this.setState({showPreview:!0}),r.light&&!i&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:i,playIcon:o,previewTabIndex:s,oEmbedUrl:a}=this.props;return un.default.createElement(Dw,{url:r,light:i,playIcon:o,previewTabIndex:s,oEmbedUrl:a,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:o,height:s,fallback:a,wrapper:l}=this.props,{showPreview:c}=this.state,u=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return un.default.createElement(l,{ref:d,style:{...i,width:o,height:s},...u},un.default.createElement(Vw,{fallback:a},c?this.renderPreview(r):this.renderActivePlayer(r)))}},je(n,"displayName","ReactPlayer"),je(n,"propTypes",Yn.propTypes),je(n,"defaultProps",Yn.defaultProps),je(n,"addCustomPlayer",r=>{Fn.push(r)}),je(n,"removeCustomPlayers",()=>{Fn.length=0}),je(n,"canPlay",r=>{for(const i of[...Fn,...e])if(i.canPlay(r))return!0;return!1}),je(n,"canEnablePIP",r=>{for(const i of[...Fn,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var Yw=Object.create,gi=Object.defineProperty,Ww=Object.getOwnPropertyDescriptor,Gw=Object.getOwnPropertyNames,Zw=Object.getPrototypeOf,Xw=Object.prototype.hasOwnProperty,Kw=(e,t)=>{for(var n in t)gi(e,n,{get:t[n],enumerable:!0})},qu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gw(t))!Xw.call(e,i)&&i!==n&&gi(e,i,{get:()=>t[i],enumerable:!(r=Ww(t,i))||r.enumerable});return e},qw=(e,t,n)=>(n=e!=null?Yw(Zw(e)):{},qu(t||!e||!e.__esModule?gi(n,"default",{value:e,enumerable:!0}):n,e)),Qw=e=>qu(gi({},"__esModule",{value:!0}),e),Qu={};Kw(Qu,{default:()=>n5});var Jw=Qw(Qu),Po=qw(Zb),e5=zw;const t5=Po.default[Po.default.length-1];var n5=(0,e5.createReactPlayer)(Po.default,t5);const r5=jl(Jw),i5=e=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[f.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:f.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),f.jsx("g",{mask:"url(#mask0_4160_9271)",children:f.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),o5=e=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[f.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:f.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),f.jsx("g",{mask:"url(#mask0_3130_18463)",children:f.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),s5=e=>f.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:f.jsxs("g",{id:"volume_up",children:[f.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:f.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),f.jsx("g",{mask:"url(#mask0_1483_75386)",children:f.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),Ia=e=>{const t=Math.floor(e/60),n=Math.floor(e%60),r=t.toString().padStart(2,"0"),i=n.toString().padStart(2,"0");return`${r}:${i}`},a5=({isPlaying:e,setIsPlaying:t,playingTime:n,duration:r,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:a})=>f.jsxs(L,{children:[!a&&f.jsx(f5,{"aria-label":"Small",max:r,onChange:i,size:"small",value:n}),f.jsxs(l5,{align:"center",direction:"row",showToolbar:a,children:[f.jsx(c5,{onClick:t,size:"small",children:e?f.jsx(di,{}):f.jsx(Ho,{})}),f.jsxs(p5,{direction:"row",children:[f.jsx("span",{children:Ia(n)}),f.jsx("span",{className:"separator",children:"/"}),f.jsx("span",{className:"duration",children:Ia(r)})]}),f.jsxs(u5,{direction:"row",px:9,children:[f.jsx(Kl,{className:"volume-slider",defaultValue:.5,max:1,min:0,onChange:o,size:"small",step:.1}),f.jsx(s5,{})]}),f.jsx(d5,{onClick:()=>s(),children:a?f.jsx(i5,{}):f.jsx(o5,{})})]})]}),l5=U(L)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` diff --git a/build/assets/toastMessage-5eb83970.js b/build/assets/toastMessage-ef227247.js similarity index 88% rename from build/assets/toastMessage-5eb83970.js rename to build/assets/toastMessage-ef227247.js index 5f95f7a5f..0bcc8f419 100644 --- a/build/assets/toastMessage-5eb83970.js +++ b/build/assets/toastMessage-ef227247.js @@ -1,4 +1,4 @@ -import{Y as i,a0 as t,aW as a,j as o,aQ as n,Z as c,d as p}from"./index-b639b6f9.js";import{bY as s,cv as d,cw as u}from"./index-06aeb711.js";const T=async()=>{try{const r=await p.topup();if(!r)throw new Error("Topup failed");if(r.budget<5)throw new Error("You set a budget of less than 5 sats");s(o.jsx(e,{message:`You set a budget of ${r.budget} sats`}),{icon:!1,position:s.POSITION.BOTTOM_CENTER,type:"success"})}catch(r){r instanceof Error&&s(o.jsx(e,{message:r.message}),{icon:!1,position:s.POSITION.BOTTOM_CENTER,type:"error"})}},e=({message:r})=>r===n?o.jsxs("div",{children:[r,o.jsx(l,{onClick:T,type:"button",children:o.jsx(c,{color:"white",kind:"medium",children:"Topup"})})]}):o.jsx("div",{children:r}),E=r=>{s(o.jsx(e,{message:r}),{icon:r===a?o.jsx(d,{color:t.primaryGreen}):o.jsx(u,{color:t.primaryRed}),position:s.POSITION.BOTTOM_CENTER,type:r===a?"success":"error"})},l=i.button` +import{Y as i,a0 as t,aW as a,j as o,aQ as n,Z as c,d as p}from"./index-32144865.js";import{bY as s,cv as d,cw as u}from"./index-a820256c.js";const T=async()=>{try{const r=await p.topup();if(!r)throw new Error("Topup failed");if(r.budget<5)throw new Error("You set a budget of less than 5 sats");s(o.jsx(e,{message:`You set a budget of ${r.budget} sats`}),{icon:!1,position:s.POSITION.BOTTOM_CENTER,type:"success"})}catch(r){r instanceof Error&&s(o.jsx(e,{message:r.message}),{icon:!1,position:s.POSITION.BOTTOM_CENTER,type:"error"})}},e=({message:r})=>r===n?o.jsxs("div",{children:[r,o.jsx(l,{onClick:T,type:"button",children:o.jsx(c,{color:"white",kind:"medium",children:"Topup"})})]}):o.jsx("div",{children:r}),E=r=>{s(o.jsx(e,{message:r}),{icon:r===a?o.jsx(d,{color:t.primaryGreen}):o.jsx(u,{color:t.primaryRed}),position:s.POSITION.BOTTOM_CENTER,type:r===a?"success":"error"})},l=i.button` background: ${t.gray200}; border: 1px solid ${t.white}; border-radius: 2px; diff --git a/build/index.html b/build/index.html index c2e5690bc..18c50e743 100644 --- a/build/index.html +++ b/build/index.html @@ -22,7 +22,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Second Brain - +