diff --git a/build/assets/AddContentIcon-22359116.js b/build/assets/AddContentIcon-70138e00.js similarity index 97% rename from build/assets/AddContentIcon-22359116.js rename to build/assets/AddContentIcon-70138e00.js index 33c771289..a6360e78e 100644 --- a/build/assets/AddContentIcon-22359116.js +++ b/build/assets/AddContentIcon-70138e00.js @@ -1 +1 @@ -import{j as C}from"./index-c22082f7.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_25)",children:C.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"})})]});export{r as A}; +import{j as C}from"./index-a7cfca89.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_25)",children:C.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"})})]});export{r as A}; diff --git a/build/assets/DailyMotion-5eedd8e5.js b/build/assets/DailyMotion-7c9c0de0.js similarity index 95% rename from build/assets/DailyMotion-5eedd8e5.js rename to build/assets/DailyMotion-7c9c0de0.js index 97da29005..83d0820b2 100644 --- a/build/assets/DailyMotion-5eedd8e5.js +++ b/build/assets/DailyMotion-7c9c0de0.js @@ -1 +1 @@ -import{L as P,r as v}from"./index-c22082f7.js";import{u as D,p as O}from"./index-846e8361.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,L=(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},A=(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={};L(d,{default:()=>p});var _=C(d),c=A(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 m=u.player;this.player=new m(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:g=>a(g)}})},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{L as P,r as v}from"./index-a7cfca89.js";import{u as D,p as O}from"./index-a67aca48.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,L=(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},A=(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={};L(d,{default:()=>p});var _=C(d),c=A(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 m=u.player;this.player=new m(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:g=>a(g)}})},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-87b004a7.js b/build/assets/Facebook-0de19648.js similarity index 96% rename from build/assets/Facebook-87b004a7.js rename to build/assets/Facebook-0de19648.js index 5382eb351..a7a09a7c2 100644 --- a/build/assets/Facebook-87b004a7.js +++ b/build/assets/Facebook-0de19648.js @@ -1 +1 @@ -import{L as _,r as P}from"./index-c22082f7.js";import{u as g,p as m}from"./index-846e8361.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(P),n=g,L=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",x="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${x}${(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",L.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{L as _,r as P}from"./index-a7cfca89.js";import{u as g,p as m}from"./index-a67aca48.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(P),n=g,L=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",x="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${x}${(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",L.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-42847057.js b/build/assets/FilePlayer-3efebf4b.js similarity index 98% rename from build/assets/FilePlayer-42847057.js rename to build/assets/FilePlayer-3efebf4b.js index cd8b59b20..60ad97e09 100644 --- a/build/assets/FilePlayer-42847057.js +++ b/build/assets/FilePlayer-3efebf4b.js @@ -1 +1 @@ -import{L as b,r as _}from"./index-c22082f7.js";import{u as O,p as A}from"./index-846e8361.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{L as b,r as _}from"./index-a7cfca89.js";import{u as O,p as A}from"./index-a67aca48.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-67ed9675.js b/build/assets/Kaltura-5be0ceb6.js similarity index 95% rename from build/assets/Kaltura-67ed9675.js rename to build/assets/Kaltura-5be0ceb6.js index 9fab37815..673c4efb3 100644 --- a/build/assets/Kaltura-67ed9675.js +++ b/build/assets/Kaltura-5be0ceb6.js @@ -1 +1 @@ -import{L as y,r as f}from"./index-c22082f7.js";import{u as _,p as m}from"./index-846e8361.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{L as y,r as f}from"./index-a7cfca89.js";import{u as _,p as m}from"./index-a67aca48.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-0439c811.js b/build/assets/Mixcloud-9440ad5a.js similarity index 95% rename from build/assets/Mixcloud-0439c811.js rename to build/assets/Mixcloud-9440ad5a.js index 1ed752c31..2e2454cea 100644 --- a/build/assets/Mixcloud-0439c811.js +++ b/build/assets/Mixcloud-9440ad5a.js @@ -1 +1 @@ -import{L as _,r as f}from"./index-c22082f7.js";import{u as m,p as g}from"./index-846e8361.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 L="https://widget.mixcloud.com/media/js/widgetApi.js",E="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)(L,E).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{L as _,r as f}from"./index-a7cfca89.js";import{u as m,p as g}from"./index-a67aca48.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 L="https://widget.mixcloud.com/media/js/widgetApi.js",E="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)(L,E).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/Preview-d75a2d95.js b/build/assets/Preview-916b493a.js similarity index 97% rename from build/assets/Preview-d75a2d95.js rename to build/assets/Preview-916b493a.js index fb7a0aed5..e2cda302d 100644 --- a/build/assets/Preview-d75a2d95.js +++ b/build/assets/Preview-916b493a.js @@ -1 +1 @@ -import{L as y,r as b}from"./index-c22082f7.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{L as y,r as b}from"./index-a7cfca89.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/Skeleton-f93ae829.js b/build/assets/Skeleton-6f749099.js similarity index 97% rename from build/assets/Skeleton-f93ae829.js rename to build/assets/Skeleton-6f749099.js index 5fa9d6dce..3c43c0e14 100644 --- a/build/assets/Skeleton-f93ae829.js +++ b/build/assets/Skeleton-6f749099.js @@ -1,4 +1,4 @@ -import{o as y,p as w,y as b,s as R,a as o,x as _,H as u,r as S,t as $,_ as U,j as M,v as j,n as A}from"./index-c22082f7.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return y("MuiSkeleton",t)}w("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` +import{o as y,p as w,y as b,s as R,a as o,x as _,H as u,r as S,t as $,_ as U,j as M,v as j,n as A}from"./index-a7cfca89.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return y("MuiSkeleton",t)}w("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-2d416de5.js b/build/assets/SoundCloud-ee811b20.js similarity index 95% rename from build/assets/SoundCloud-2d416de5.js rename to build/assets/SoundCloud-ee811b20.js index 8739df754..890ef0598 100644 --- a/build/assets/SoundCloud-2d416de5.js +++ b/build/assets/SoundCloud-ee811b20.js @@ -1 +1 @@ -import{L as P,r as g}from"./index-c22082f7.js";import{u as b,p as v}from"./index-846e8361.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{L as P,r as g}from"./index-a7cfca89.js";import{u as b,p as v}from"./index-a67aca48.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-9c599b1b.js b/build/assets/Streamable-8221bfb2.js similarity index 95% rename from build/assets/Streamable-9c599b1b.js rename to build/assets/Streamable-8221bfb2.js index 0096fa60f..d4dccc3c2 100644 --- a/build/assets/Streamable-9c599b1b.js +++ b/build/assets/Streamable-8221bfb2.js @@ -1 +1 @@ -import{L as m,r as f}from"./index-c22082f7.js";import{u as _,p as b}from"./index-846e8361.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,L=Object.prototype.hasOwnProperty,j=(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))!L.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)=>(j(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{L as m,r as f}from"./index-a7cfca89.js";import{u as _,p as b}from"./index-a67aca48.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,L=Object.prototype.hasOwnProperty,j=(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))!L.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)=>(j(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-56c8bcab.js b/build/assets/Twitch-98af79fd.js similarity index 95% rename from build/assets/Twitch-56c8bcab.js rename to build/assets/Twitch-98af79fd.js index 93867c218..87167c5c6 100644 --- a/build/assets/Twitch-56c8bcab.js +++ b/build/assets/Twitch-98af79fd.js @@ -1 +1 @@ -import{L as w,r as D}from"./index-c22082f7.js";import{u as C,p as N}from"./index-846e8361.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:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,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{L as w,r as D}from"./index-a7cfca89.js";import{u as C,p as N}from"./index-a67aca48.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:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,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-e3751964.js b/build/assets/Vidyard-3a2b019c.js similarity index 95% rename from build/assets/Vidyard-e3751964.js rename to build/assets/Vidyard-3a2b019c.js index 4fcdaef47..c034f8af3 100644 --- a/build/assets/Vidyard-e3751964.js +++ b/build/assets/Vidyard-3a2b019c.js @@ -1 +1 @@ -import{L as g,r as v}from"./index-c22082f7.js";import{u as b,p as O}from"./index-846e8361.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,L=Object.prototype.hasOwnProperty,M=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(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))!L.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},E=(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)=>(M(t,typeof e!="symbol"?e+"":e,r),r),_={};A(_,{default:()=>y});var f=R(_),c=E(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{L as g,r as v}from"./index-a7cfca89.js";import{u as b,p as O}from"./index-a67aca48.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,L=Object.prototype.hasOwnProperty,M=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(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))!L.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},E=(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)=>(M(t,typeof e!="symbol"?e+"":e,r),r),_={};A(_,{default:()=>y});var f=R(_),c=E(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-45e0f974.js b/build/assets/Vimeo-419ed721.js similarity index 96% rename from build/assets/Vimeo-45e0f974.js rename to build/assets/Vimeo-419ed721.js index 00837db88..8bd201e3b 100644 --- a/build/assets/Vimeo-45e0f974.js +++ b/build/assets/Vimeo-419ed721.js @@ -1 +1 @@ -import{L as d,r as f}from"./index-c22082f7.js";import{u as m,p as _}from"./index-846e8361.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},L=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),M=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=M(c),p=L(f),u=m,E=_;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",E.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{L as d,r as f}from"./index-a7cfca89.js";import{u as m,p as _}from"./index-a67aca48.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},L=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),M=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=M(c),p=L(f),u=m,E=_;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",E.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-447d6f42.js b/build/assets/Wistia-8bf2d10e.js similarity index 96% rename from build/assets/Wistia-447d6f42.js rename to build/assets/Wistia-8bf2d10e.js index d788c1258..c100ebdc9 100644 --- a/build/assets/Wistia-447d6f42.js +++ b/build/assets/Wistia-8bf2d10e.js @@ -1 +1 @@ -import{L as m,r as g}from"./index-c22082f7.js";import{u as v,p as w}from"./index-846e8361.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 L="https://fast.wistia.com/assets/external/E-v1.js",M="Wistia",x="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${x}${(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)(L,M).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 A=m(_),$=O({__proto__:null,default:A},[_]);export{$ as W}; +import{L as m,r as g}from"./index-a7cfca89.js";import{u as v,p as w}from"./index-a67aca48.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 L="https://fast.wistia.com/assets/external/E-v1.js",M="Wistia",x="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${x}${(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)(L,M).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 A=m(_),$=O({__proto__:null,default:A},[_]);export{$ as W}; diff --git a/build/assets/YouTube-6bdd7c21.js b/build/assets/YouTube-428d556d.js similarity index 97% rename from build/assets/YouTube-6bdd7c21.js rename to build/assets/YouTube-428d556d.js index 0e5f95c7b..904767d53 100644 --- a/build/assets/YouTube-6bdd7c21.js +++ b/build/assets/YouTube-428d556d.js @@ -1 +1 @@ -import{L as R,r as U}from"./index-c22082f7.js";import{u as I,p as Y}from"./index-846e8361.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(U),p=I,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 L=!!this.callPlayer("getPlaylist");y&&!L&&(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 $=R(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{L as R,r as U}from"./index-a7cfca89.js";import{u as I,p as Y}from"./index-a67aca48.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(U),p=I,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 L=!!this.callPlayer("getPlaylist");y&&!L&&(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 $=R(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/build/assets/index-77fd8cdc.js b/build/assets/index-1e6bfbfb.js similarity index 99% rename from build/assets/index-77fd8cdc.js rename to build/assets/index-1e6bfbfb.js index 9a0010d86..9558452dd 100644 --- a/build/assets/index-77fd8cdc.js +++ b/build/assets/index-1e6bfbfb.js @@ -1,4 +1,4 @@ -import{o as st,p as rt,s as fe,a as Y,E as ao,r as g,_ as it,j as n,v as at,q as ue,n as ct,t as Lt,D as co,f as Ue,h as lt,x as bt,J as lo,K as uo,Q as V,U as v,S as F,ar as Fe,bF as Wt,a5 as q,ad as Ut,ax as Ve,bD as ge,bG as Yt,bb as xt,ba as yt,b9 as wt,b8 as jt,b7 as po,b3 as fo,bJ as ho,bK as mo,bL as go,bw as vt}from"./index-c22082f7.js";import{r as bo,k as xo,a$ as yo,b0 as wo,b1 as jo,ae as vo,aF as pe,aK as Le,aP as We,b2 as Et,az as Eo,D as Po,B as Me,P as Co,b3 as Gt,af as dt,ac as Ht,ag as Kt,b4 as To,c as Xt,aQ as Oo,aG as Mo}from"./index-853fe2a2.js";import{p as Zt,c as So,g as Ao}from"./index-bbc7c996.js";import{g as ko,m as $o,u as ne,b as Ye,t as nt,T as qt,i as Qt,H as _o,j as Pt,C as Io,P as No,k as zo}from"./index-653e9ffc.js";import{X as Ro,Y as Bo,E as Do,V as I,Z as he,_ as me,$ as Ct,P as Re,a0 as Be,a1 as Tt,a as ee,a2 as Fo,G as Vo,C as Lo}from"./three.module-a2e04964.js";import{A as Ot}from"./AddContentIcon-22359116.js";function Wo(t){return st("PrivateSwitchBase",t)}rt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Uo=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Yo=t=>{const{classes:o,checked:s,disabled:e,edge:a}=t,c={root:["root",s&&"checked",e&&"disabled",a&&`edge${ue(a)}`],input:["input"]};return ct(c,Wo,o)},Go=fe(bo)(({ownerState:t})=>Y({padding:9,borderRadius:"50%"},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12})),Ho=fe("input",{shouldForwardProp:ao})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ko=g.forwardRef(function(o,s){const{autoFocus:e,checked:a,checkedIcon:c,className:d,defaultChecked:i,disabled:l,disableFocusRipple:j=!1,edge:u=!1,icon:f,id:h,inputProps:b,inputRef:m,name:T,onBlur:O,onChange:y,onFocus:E,readOnly:$,required:A=!1,tabIndex:w,type:x,value:P}=o,k=it(o,Uo),[B,S]=xo({controlled:a,default:!!i,name:"SwitchBase",state:"checked"}),D=yo(),oe=G=>{E&&E(G),D&&D.onFocus&&D.onFocus(G)},z=G=>{O&&O(G),D&&D.onBlur&&D.onBlur(G)},K=G=>{if(G.nativeEvent.defaultPrevented)return;const de=G.target.checked;S(de),y&&y(G,de)};let W=l;D&&typeof W>"u"&&(W=D.disabled);const J=x==="checkbox"||x==="radio",Q=Y({},o,{checked:B,disabled:W,disableFocusRipple:j,edge:u}),Z=Yo(Q);return n.jsxs(Go,Y({component:"span",className:at(Z.root,d),centerRipple:!0,focusRipple:!j,disabled:W,tabIndex:null,role:void 0,onFocus:oe,onBlur:z,ownerState:Q,ref:s},k,{children:[n.jsx(Ho,Y({autoFocus:e,checked:a,defaultChecked:i,className:Z.input,disabled:W,id:J?h:void 0,name:T,onChange:K,readOnly:$,ref:m,required:A,ownerState:Q,tabIndex:w,type:x},x==="checkbox"&&P===void 0?{}:{value:P},b)),B?c:f]}))}),Xo=Ko,Zo=g.createContext(),Mt=Zo;function qo(t){return st("MuiGrid",t)}const Qo=[0,1,2,3,4,5,6,7,8,9,10],Jo=["column-reverse","column","row-reverse","row"],en=["nowrap","wrap-reverse","wrap"],Te=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],tn=rt("MuiGrid",["root","container","item","zeroMinWidth",...Qo.map(t=>`spacing-xs-${t}`),...Jo.map(t=>`direction-xs-${t}`),...en.map(t=>`wrap-xs-${t}`),...Te.map(t=>`grid-xs-${t}`),...Te.map(t=>`grid-sm-${t}`),...Te.map(t=>`grid-md-${t}`),...Te.map(t=>`grid-lg-${t}`),...Te.map(t=>`grid-xl-${t}`)]),Oe=tn,on=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function be(t){const o=parseFloat(t);return`${o}${String(t).replace(String(o),"")||"px"}`}function nn({theme:t,ownerState:o}){let s;return t.breakpoints.keys.reduce((e,a)=>{let c={};if(o[a]&&(s=o[a]),!s)return e;if(s===!0)c={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")c={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Ue({values:o.columns,breakpoints:t.breakpoints.values}),i=typeof d=="object"?d[a]:d;if(i==null)return e;const l=`${Math.round(s/i*1e8)/1e6}%`;let j={};if(o.container&&o.item&&o.columnSpacing!==0){const u=t.spacing(o.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${be(u)})`;j={flexBasis:f,maxWidth:f}}}c=Y({flexBasis:l,flexGrow:0,maxWidth:l},j)}return t.breakpoints.values[a]===0?Object.assign(e,c):e[t.breakpoints.up(a)]=c,e},{})}function sn({theme:t,ownerState:o}){const s=Ue({values:o.direction,breakpoints:t.breakpoints.values});return lt({theme:t},s,e=>{const a={flexDirection:e};return e.indexOf("column")===0&&(a[`& > .${Oe.item}`]={maxWidth:"none"}),a})}function Jt({breakpoints:t,values:o}){let s="";Object.keys(o).forEach(a=>{s===""&&o[a]!==0&&(s=a)});const e=Object.keys(t).sort((a,c)=>t[a]-t[c]);return e.slice(0,e.indexOf(s))}function rn({theme:t,ownerState:o}){const{container:s,rowSpacing:e}=o;let a={};if(s&&e!==0){const c=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof c=="object"&&(d=Jt({breakpoints:t.breakpoints.values,values:c})),a=lt({theme:t},c,(i,l)=>{var j;const u=t.spacing(i);return u!=="0px"?{marginTop:`-${be(u)}`,[`& > .${Oe.item}`]:{paddingTop:be(u)}}:(j=d)!=null&&j.includes(l)?{}:{marginTop:0,[`& > .${Oe.item}`]:{paddingTop:0}}})}return a}function an({theme:t,ownerState:o}){const{container:s,columnSpacing:e}=o;let a={};if(s&&e!==0){const c=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof c=="object"&&(d=Jt({breakpoints:t.breakpoints.values,values:c})),a=lt({theme:t},c,(i,l)=>{var j;const u=t.spacing(i);return u!=="0px"?{width:`calc(100% + ${be(u)})`,marginLeft:`-${be(u)}`,[`& > .${Oe.item}`]:{paddingLeft:be(u)}}:(j=d)!=null&&j.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Oe.item}`]:{paddingLeft:0}}})}return a}function cn(t,o,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return o.forEach(a=>{const c=t[a];Number(c)>0&&e.push(s[`spacing-${a}-${String(c)}`])}),e}const ln=fe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t,{container:e,direction:a,item:c,spacing:d,wrap:i,zeroMinWidth:l,breakpoints:j}=s;let u=[];e&&(u=cn(d,j,o));const f=[];return j.forEach(h=>{const b=s[h];b&&f.push(o[`grid-${h}-${String(b)}`])}),[o.root,e&&o.container,c&&o.item,l&&o.zeroMinWidth,...u,a!=="row"&&o[`direction-xs-${String(a)}`],i!=="wrap"&&o[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>Y({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),sn,rn,an,nn);function dn(t,o){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return o.forEach(e=>{const a=t[e];if(Number(a)>0){const c=`spacing-${e}-${String(a)}`;s.push(c)}}),s}const un=t=>{const{classes:o,container:s,direction:e,item:a,spacing:c,wrap:d,zeroMinWidth:i,breakpoints:l}=t;let j=[];s&&(j=dn(c,l));const u=[];l.forEach(h=>{const b=t[h];b&&u.push(`grid-${h}-${String(b)}`)});const f={root:["root",s&&"container",a&&"item",i&&"zeroMinWidth",...j,e!=="row"&&`direction-xs-${String(e)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...u]};return ct(f,qo,o)},pn=g.forwardRef(function(o,s){const e=Lt({props:o,name:"MuiGrid"}),{breakpoints:a}=co(),c=wo(e),{className:d,columns:i,columnSpacing:l,component:j="div",container:u=!1,direction:f="row",item:h=!1,rowSpacing:b,spacing:m=0,wrap:T="wrap",zeroMinWidth:O=!1}=c,y=it(c,on),E=b||m,$=l||m,A=g.useContext(Mt),w=u?i||12:A,x={},P=Y({},y);a.keys.forEach(S=>{y[S]!=null&&(x[S]=y[S],delete P[S])});const k=Y({},c,{columns:w,container:u,direction:f,item:h,rowSpacing:E,columnSpacing:$,wrap:T,zeroMinWidth:O,spacing:m},x,{breakpoints:a.keys}),B=un(k);return n.jsx(Mt.Provider,{value:w,children:n.jsx(ln,Y({ownerState:k,className:at(B.root,d),as:j,ref:s},P))})}),le=pn;function fn(t){return st("MuiSwitch",t)}const hn=rt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=hn,mn=["className","color","edge","size","sx"],gn=t=>{const{classes:o,edge:s,size:e,color:a,checked:c,disabled:d}=t,i={root:["root",s&&`edge${ue(s)}`,`size${ue(e)}`],switchBase:["switchBase",`color${ue(a)}`,c&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ct(i,fn,o);return Y({},o,l)},bn=fe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.root,s.edge&&o[`edge${ue(s.edge)}`],o[`size${ue(s.size)}`]]}})(({ownerState:t})=>Y({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),xn=fe(Xo,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.switchBase,{[`& .${H.input}`]:o.input},s.color!=="default"&&o[`color${ue(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:o})=>Y({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:bt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[o.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[o.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:bt(t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${o.color}DisabledColor`]:`${t.palette.mode==="light"?lo(t.palette[o.color].main,.62):uo(t.palette[o.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[o.color].main}})),yn=fe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,o)=>o.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),wn=fe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,o)=>o.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),jn=g.forwardRef(function(o,s){const e=Lt({props:o,name:"MuiSwitch"}),{className:a,color:c="primary",edge:d=!1,size:i="medium",sx:l}=e,j=it(e,mn),u=Y({},e,{color:c,edge:d,size:i}),f=gn(u),h=n.jsx(wn,{className:f.thumb,ownerState:u});return n.jsxs(bn,{className:at(f.root,a),sx:l,ownerState:u,children:[n.jsx(xn,Y({type:"checkbox",icon:h,checkedIcon:h,ref:s,ownerState:u},j,{classes:Y({},f,{root:f.switchBase})})),n.jsx(yn,{className:f.track,ownerState:u})]})}),vn=jn,En=/^[a-z0-9_]+$/,Pn=({parentParam:t,onDelete:o})=>{const[s,e]=g.useState(!1),[a,c]=g.useState([]),{fields:d,append:i,replace:l,remove:j}=jo({name:"attributes"}),{setValue:u,watch:f}=vo();return g.useEffect(()=>{const h=async()=>{try{let b=[{required:!1,type:"string",key:""}];if(t!==Gt.value.toLowerCase()){e(!0);const m=await Wt(t);b=Zt(m)}b=b.filter(m=>m.key!=="node_key"),l(b),c(b)}catch(b){console.warn(b)}finally{e(!1)}};a.length===0&&h()},[t,u,l,a.length]),n.jsxs(n.Fragment,{children:[s?n.jsx(v,{align:"center",children:n.jsx(pe,{color:F.SECONDARY_BLUE,size:"30"})}):n.jsx(Cn,{py:8,children:n.jsx(le,{container:!0,spacing:2,children:d.map((h,b)=>{const m=f(`attributes[${b}].type`),T=f(`attributes[${b}].required`),O=h.isNew||!1,y=["name"].includes(f(`attributes[${b}].key`));return n.jsxs(g.Fragment,{children:[n.jsx(le,{item:!0,xs:5,children:n.jsx(Le,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${b}`,disabled:!O,id:`cy-item-name-${b}`,maxLength:50,name:`attributes.${b}.key`,placeholder:"Enter value",rules:{...Fe,pattern:{message:"Please avoid special characters, spaces and uppercase",value:En}}})}),n.jsx(le,{item:!0,xs:4,children:n.jsx(We,{dataTestId:`cy-item-select-${b}`,disabled:y,onSelect:E=>u(`attributes[${b}].type`,E==null?void 0:E.value),options:Et,selectedValue:Et.find(E=>E.value===m)})}),n.jsxs(le,{item:!0,xs:3,children:[n.jsx(vn,{checked:T,"data-testid":`cy-item-${b}`,disabled:y,name:`attributes.${b}.required`,onChange:E=>u(`attributes[${b}].required`,E.target.checked),size:"small"}),!y&&n.jsx(Eo,{onClick:()=>{j(b),h.key!==void 0&&o&&o(h.key)},children:n.jsx(Po,{})})]})]},h.id)})})}),n.jsx(v,{align:"flex-start",py:12,children:n.jsx(Me,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),size:"medium",startIcon:n.jsx(Co,{}),variant:"contained",children:"Add Attribute"})})]})},Cn=V(v)` +import{o as st,p as rt,s as fe,a as Y,E as ao,r as g,_ as it,j as n,v as at,q as ue,n as ct,t as Lt,D as co,f as Ue,h as lt,x as bt,J as lo,K as uo,Q as V,U as v,S as F,ar as Fe,bF as Wt,a5 as q,ad as Ut,ax as Ve,bD as ge,bG as Yt,bb as xt,ba as yt,b9 as wt,b8 as jt,b7 as po,b3 as fo,bJ as ho,bK as mo,bL as go,bw as vt}from"./index-a7cfca89.js";import{r as bo,k as xo,a$ as yo,b0 as wo,b1 as jo,ae as vo,aF as pe,aK as Le,aP as We,b2 as Et,az as Eo,D as Po,B as Me,P as Co,b3 as Gt,af as dt,ac as Ht,ag as Kt,b4 as To,c as Xt,aQ as Oo,aG as Mo}from"./index-ca972e6a.js";import{p as Zt,c as So,g as Ao}from"./index-bbc7c996.js";import{g as ko,m as $o,u as ne,b as Ye,t as nt,T as qt,i as Qt,H as _o,j as Pt,C as Io,P as No,k as zo}from"./index-38264b8c.js";import{X as Ro,Y as Bo,E as Do,V as I,Z as he,_ as me,$ as Ct,P as Re,a0 as Be,a1 as Tt,a as ee,a2 as Fo,G as Vo,C as Lo}from"./three.module-a2e04964.js";import{A as Ot}from"./AddContentIcon-70138e00.js";function Wo(t){return st("PrivateSwitchBase",t)}rt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Uo=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Yo=t=>{const{classes:o,checked:s,disabled:e,edge:a}=t,c={root:["root",s&&"checked",e&&"disabled",a&&`edge${ue(a)}`],input:["input"]};return ct(c,Wo,o)},Go=fe(bo)(({ownerState:t})=>Y({padding:9,borderRadius:"50%"},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12})),Ho=fe("input",{shouldForwardProp:ao})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ko=g.forwardRef(function(o,s){const{autoFocus:e,checked:a,checkedIcon:c,className:d,defaultChecked:i,disabled:l,disableFocusRipple:j=!1,edge:u=!1,icon:f,id:h,inputProps:b,inputRef:m,name:T,onBlur:O,onChange:y,onFocus:E,readOnly:$,required:A=!1,tabIndex:w,type:x,value:P}=o,k=it(o,Uo),[B,S]=xo({controlled:a,default:!!i,name:"SwitchBase",state:"checked"}),D=yo(),oe=G=>{E&&E(G),D&&D.onFocus&&D.onFocus(G)},z=G=>{O&&O(G),D&&D.onBlur&&D.onBlur(G)},K=G=>{if(G.nativeEvent.defaultPrevented)return;const de=G.target.checked;S(de),y&&y(G,de)};let W=l;D&&typeof W>"u"&&(W=D.disabled);const J=x==="checkbox"||x==="radio",Q=Y({},o,{checked:B,disabled:W,disableFocusRipple:j,edge:u}),Z=Yo(Q);return n.jsxs(Go,Y({component:"span",className:at(Z.root,d),centerRipple:!0,focusRipple:!j,disabled:W,tabIndex:null,role:void 0,onFocus:oe,onBlur:z,ownerState:Q,ref:s},k,{children:[n.jsx(Ho,Y({autoFocus:e,checked:a,defaultChecked:i,className:Z.input,disabled:W,id:J?h:void 0,name:T,onChange:K,readOnly:$,ref:m,required:A,ownerState:Q,tabIndex:w,type:x},x==="checkbox"&&P===void 0?{}:{value:P},b)),B?c:f]}))}),Xo=Ko,Zo=g.createContext(),Mt=Zo;function qo(t){return st("MuiGrid",t)}const Qo=[0,1,2,3,4,5,6,7,8,9,10],Jo=["column-reverse","column","row-reverse","row"],en=["nowrap","wrap-reverse","wrap"],Te=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],tn=rt("MuiGrid",["root","container","item","zeroMinWidth",...Qo.map(t=>`spacing-xs-${t}`),...Jo.map(t=>`direction-xs-${t}`),...en.map(t=>`wrap-xs-${t}`),...Te.map(t=>`grid-xs-${t}`),...Te.map(t=>`grid-sm-${t}`),...Te.map(t=>`grid-md-${t}`),...Te.map(t=>`grid-lg-${t}`),...Te.map(t=>`grid-xl-${t}`)]),Oe=tn,on=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function be(t){const o=parseFloat(t);return`${o}${String(t).replace(String(o),"")||"px"}`}function nn({theme:t,ownerState:o}){let s;return t.breakpoints.keys.reduce((e,a)=>{let c={};if(o[a]&&(s=o[a]),!s)return e;if(s===!0)c={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")c={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Ue({values:o.columns,breakpoints:t.breakpoints.values}),i=typeof d=="object"?d[a]:d;if(i==null)return e;const l=`${Math.round(s/i*1e8)/1e6}%`;let j={};if(o.container&&o.item&&o.columnSpacing!==0){const u=t.spacing(o.columnSpacing);if(u!=="0px"){const f=`calc(${l} + ${be(u)})`;j={flexBasis:f,maxWidth:f}}}c=Y({flexBasis:l,flexGrow:0,maxWidth:l},j)}return t.breakpoints.values[a]===0?Object.assign(e,c):e[t.breakpoints.up(a)]=c,e},{})}function sn({theme:t,ownerState:o}){const s=Ue({values:o.direction,breakpoints:t.breakpoints.values});return lt({theme:t},s,e=>{const a={flexDirection:e};return e.indexOf("column")===0&&(a[`& > .${Oe.item}`]={maxWidth:"none"}),a})}function Jt({breakpoints:t,values:o}){let s="";Object.keys(o).forEach(a=>{s===""&&o[a]!==0&&(s=a)});const e=Object.keys(t).sort((a,c)=>t[a]-t[c]);return e.slice(0,e.indexOf(s))}function rn({theme:t,ownerState:o}){const{container:s,rowSpacing:e}=o;let a={};if(s&&e!==0){const c=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof c=="object"&&(d=Jt({breakpoints:t.breakpoints.values,values:c})),a=lt({theme:t},c,(i,l)=>{var j;const u=t.spacing(i);return u!=="0px"?{marginTop:`-${be(u)}`,[`& > .${Oe.item}`]:{paddingTop:be(u)}}:(j=d)!=null&&j.includes(l)?{}:{marginTop:0,[`& > .${Oe.item}`]:{paddingTop:0}}})}return a}function an({theme:t,ownerState:o}){const{container:s,columnSpacing:e}=o;let a={};if(s&&e!==0){const c=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof c=="object"&&(d=Jt({breakpoints:t.breakpoints.values,values:c})),a=lt({theme:t},c,(i,l)=>{var j;const u=t.spacing(i);return u!=="0px"?{width:`calc(100% + ${be(u)})`,marginLeft:`-${be(u)}`,[`& > .${Oe.item}`]:{paddingLeft:be(u)}}:(j=d)!=null&&j.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Oe.item}`]:{paddingLeft:0}}})}return a}function cn(t,o,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return o.forEach(a=>{const c=t[a];Number(c)>0&&e.push(s[`spacing-${a}-${String(c)}`])}),e}const ln=fe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t,{container:e,direction:a,item:c,spacing:d,wrap:i,zeroMinWidth:l,breakpoints:j}=s;let u=[];e&&(u=cn(d,j,o));const f=[];return j.forEach(h=>{const b=s[h];b&&f.push(o[`grid-${h}-${String(b)}`])}),[o.root,e&&o.container,c&&o.item,l&&o.zeroMinWidth,...u,a!=="row"&&o[`direction-xs-${String(a)}`],i!=="wrap"&&o[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>Y({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),sn,rn,an,nn);function dn(t,o){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return o.forEach(e=>{const a=t[e];if(Number(a)>0){const c=`spacing-${e}-${String(a)}`;s.push(c)}}),s}const un=t=>{const{classes:o,container:s,direction:e,item:a,spacing:c,wrap:d,zeroMinWidth:i,breakpoints:l}=t;let j=[];s&&(j=dn(c,l));const u=[];l.forEach(h=>{const b=t[h];b&&u.push(`grid-${h}-${String(b)}`)});const f={root:["root",s&&"container",a&&"item",i&&"zeroMinWidth",...j,e!=="row"&&`direction-xs-${String(e)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...u]};return ct(f,qo,o)},pn=g.forwardRef(function(o,s){const e=Lt({props:o,name:"MuiGrid"}),{breakpoints:a}=co(),c=wo(e),{className:d,columns:i,columnSpacing:l,component:j="div",container:u=!1,direction:f="row",item:h=!1,rowSpacing:b,spacing:m=0,wrap:T="wrap",zeroMinWidth:O=!1}=c,y=it(c,on),E=b||m,$=l||m,A=g.useContext(Mt),w=u?i||12:A,x={},P=Y({},y);a.keys.forEach(S=>{y[S]!=null&&(x[S]=y[S],delete P[S])});const k=Y({},c,{columns:w,container:u,direction:f,item:h,rowSpacing:E,columnSpacing:$,wrap:T,zeroMinWidth:O,spacing:m},x,{breakpoints:a.keys}),B=un(k);return n.jsx(Mt.Provider,{value:w,children:n.jsx(ln,Y({ownerState:k,className:at(B.root,d),as:j,ref:s},P))})}),le=pn;function fn(t){return st("MuiSwitch",t)}const hn=rt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=hn,mn=["className","color","edge","size","sx"],gn=t=>{const{classes:o,edge:s,size:e,color:a,checked:c,disabled:d}=t,i={root:["root",s&&`edge${ue(s)}`,`size${ue(e)}`],switchBase:["switchBase",`color${ue(a)}`,c&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=ct(i,fn,o);return Y({},o,l)},bn=fe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.root,s.edge&&o[`edge${ue(s.edge)}`],o[`size${ue(s.size)}`]]}})(({ownerState:t})=>Y({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),xn=fe(Xo,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.switchBase,{[`& .${H.input}`]:o.input},s.color!=="default"&&o[`color${ue(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:o})=>Y({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:bt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[o.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[o.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:bt(t.palette[o.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${o.color}DisabledColor`]:`${t.palette.mode==="light"?lo(t.palette[o.color].main,.62):uo(t.palette[o.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[o.color].main}})),yn=fe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,o)=>o.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),wn=fe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,o)=>o.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),jn=g.forwardRef(function(o,s){const e=Lt({props:o,name:"MuiSwitch"}),{className:a,color:c="primary",edge:d=!1,size:i="medium",sx:l}=e,j=it(e,mn),u=Y({},e,{color:c,edge:d,size:i}),f=gn(u),h=n.jsx(wn,{className:f.thumb,ownerState:u});return n.jsxs(bn,{className:at(f.root,a),sx:l,ownerState:u,children:[n.jsx(xn,Y({type:"checkbox",icon:h,checkedIcon:h,ref:s,ownerState:u},j,{classes:Y({},f,{root:f.switchBase})})),n.jsx(yn,{className:f.track,ownerState:u})]})}),vn=jn,En=/^[a-z0-9_]+$/,Pn=({parentParam:t,onDelete:o})=>{const[s,e]=g.useState(!1),[a,c]=g.useState([]),{fields:d,append:i,replace:l,remove:j}=jo({name:"attributes"}),{setValue:u,watch:f}=vo();return g.useEffect(()=>{const h=async()=>{try{let b=[{required:!1,type:"string",key:""}];if(t!==Gt.value.toLowerCase()){e(!0);const m=await Wt(t);b=Zt(m)}b=b.filter(m=>m.key!=="node_key"),l(b),c(b)}catch(b){console.warn(b)}finally{e(!1)}};a.length===0&&h()},[t,u,l,a.length]),n.jsxs(n.Fragment,{children:[s?n.jsx(v,{align:"center",children:n.jsx(pe,{color:F.SECONDARY_BLUE,size:"30"})}):n.jsx(Cn,{py:8,children:n.jsx(le,{container:!0,spacing:2,children:d.map((h,b)=>{const m=f(`attributes[${b}].type`),T=f(`attributes[${b}].required`),O=h.isNew||!1,y=["name"].includes(f(`attributes[${b}].key`));return n.jsxs(g.Fragment,{children:[n.jsx(le,{item:!0,xs:5,children:n.jsx(Le,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${b}`,disabled:!O,id:`cy-item-name-${b}`,maxLength:50,name:`attributes.${b}.key`,placeholder:"Enter value",rules:{...Fe,pattern:{message:"Please avoid special characters, spaces and uppercase",value:En}}})}),n.jsx(le,{item:!0,xs:4,children:n.jsx(We,{dataTestId:`cy-item-select-${b}`,disabled:y,onSelect:E=>u(`attributes[${b}].type`,E==null?void 0:E.value),options:Et,selectedValue:Et.find(E=>E.value===m)})}),n.jsxs(le,{item:!0,xs:3,children:[n.jsx(vn,{checked:T,"data-testid":`cy-item-${b}`,disabled:y,name:`attributes.${b}.required`,onChange:E=>u(`attributes[${b}].required`,E.target.checked),size:"small"}),!y&&n.jsx(Eo,{onClick:()=>{j(b),h.key!==void 0&&o&&o(h.key)},children:n.jsx(Po,{})})]})]},h.id)})})}),n.jsx(v,{align:"flex-start",py:12,children:n.jsx(Me,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),size:"medium",startIcon:n.jsx(Co,{}),variant:"contained",children:"Add Attribute"})})]})},Cn=V(v)` overflow-y: auto; width: calc(100% + 20px); max-height: calc(80vh - 300px); diff --git a/build/assets/index-c25c8268.js b/build/assets/index-32057c8a.js similarity index 70% rename from build/assets/index-c25c8268.js rename to build/assets/index-32057c8a.js index 1cb788f9e..2db73231d 100644 --- a/build/assets/index-c25c8268.js +++ b/build/assets/index-32057c8a.js @@ -1,4 +1,4 @@ -import{Q as i,j as t,S as a}from"./index-c22082f7.js";import{b6 as e,b7 as n}from"./index-853fe2a2.js";const l=i.div` +import{Q as i,j as t,S as a}from"./index-a7cfca89.js";import{b6 as e,b7 as n}from"./index-ca972e6a.js";const l=i.div` display: Flex; justify-content: center; align-items: center; diff --git a/build/assets/index-653e9ffc.js b/build/assets/index-38264b8c.js similarity index 99% rename from build/assets/index-653e9ffc.js rename to build/assets/index-38264b8c.js index 0199904dd..1b89bd4f2 100644 --- a/build/assets/index-653e9ffc.js +++ b/build/assets/index-38264b8c.js @@ -1,4 +1,4 @@ -import{r as P,L as Cc,a as yi,bM as _c,bN as ed,j as L,R as td,O as nd,S as Ki,bO as rd,bP as id,bQ as od}from"./index-c22082f7.js";import{a3 as fl,u as Vl,a4 as ad,U as ld,z as Ec,t as sd,C as io,a5 as ud,a0 as Zl,P as Ql,q as da,a6 as dl,a7 as cd,a8 as fd,a9 as dd,y as hd,aa as pd,ab as vd,ac as md,V as st,a as Nr,ad as gd,b as yd,k as Xl,ae as pa,af as Tc,K as Ul,ag as Rl,ah as pi,ai as xd,aj as Yl,S as wd,ak as Fl,al as Fu,p as Sd,am as Cd,r as oo,x as xi,an as Mc,O as kc,s as _d,o as Ed,ao as Td,ap as Md,l as kd,L as Au,j as Pd,aq as Ld,ar as Ud,as as Rd,at as Jl,au as Du,av as Ir,aw as Fd,ax as hl}from"./three.module-a2e04964.js";import{b5 as _t,j as Ad}from"./index-853fe2a2.js";var Pc={exports:{}},Gr={};/** +import{r as P,L as Cc,a as yi,bM as _c,bN as ed,j as L,R as td,O as nd,S as Ki,bO as rd,bP as id,bQ as od}from"./index-a7cfca89.js";import{a3 as fl,u as Vl,a4 as ad,U as ld,z as Ec,t as sd,C as io,a5 as ud,a0 as Zl,P as Ql,q as da,a6 as dl,a7 as cd,a8 as fd,a9 as dd,y as hd,aa as pd,ab as vd,ac as md,V as st,a as Nr,ad as gd,b as yd,k as Xl,ae as pa,af as Tc,K as Ul,ag as Rl,ah as pi,ai as xd,aj as Yl,S as wd,ak as Fl,al as Fu,p as Sd,am as Cd,r as oo,x as xi,an as Mc,O as kc,s as _d,o as Ed,ao as Td,ap as Md,l as kd,L as Au,j as Pd,aq as Ld,ar as Ud,as as Rd,at as Jl,au as Du,av as Ir,aw as Fd,ax as hl}from"./three.module-a2e04964.js";import{b5 as _t,j as Ad}from"./index-ca972e6a.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-4173ad62.js b/build/assets/index-4355cd45.js similarity index 94% rename from build/assets/index-4173ad62.js rename to build/assets/index-4355cd45.js index 94933a90c..02ae46c17 100644 --- a/build/assets/index-4173ad62.js +++ b/build/assets/index-4355cd45.js @@ -1,4 +1,4 @@ -import{Q as n,j as e,U as r,ar as b,a5 as a,S as i,ad as w,r as m,ax as j}from"./index-c22082f7.js";import{aK as C,B as S,af as y,aG as k,ag as v}from"./index-853fe2a2.js";import{S as F}from"./index-c25c8268.js";const B=({allowNextStep:t})=>e.jsxs(r,{p:12,children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(E,{children:"Feedback"})})}),e.jsx(r,{mb:30,children:e.jsx(C,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:b})}),e.jsx(r,{children:e.jsx(S,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!t,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),E=n(a)` +import{Q as n,j as e,U as r,ar as b,a5 as a,S as i,ad as w,r as m,ax as j}from"./index-a7cfca89.js";import{aK as C,B as S,af as y,aG as k,ag as v}from"./index-ca972e6a.js";import{S as F}from"./index-32057c8a.js";const B=({allowNextStep:t})=>e.jsxs(r,{p:12,children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(E,{children:"Feedback"})})}),e.jsx(r,{mb:30,children:e.jsx(C,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:b})}),e.jsx(r,{children:e.jsx(S,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!t,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),E=n(a)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-3ff536e7.js b/build/assets/index-5bae894a.js similarity index 96% rename from build/assets/index-3ff536e7.js rename to build/assets/index-5bae894a.js index 9dda1f4f0..875d2703e 100644 --- a/build/assets/index-3ff536e7.js +++ b/build/assets/index-5bae894a.js @@ -1,4 +1,4 @@ -import{j as e,Q as r,S as y,a5 as B,U as o,ad as g,a4 as H,a1 as k,ar as P,r as l,am as q,as as K,M as O}from"./index-c22082f7.js";import{b as Q,aK as T,af as Y,ag as J,B as F,aF as X,aG as Z}from"./index-853fe2a2.js";import{S as ee}from"./Skeleton-f93ae829.js";const I=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ae(s){return!!I.test(s)}const te=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),e.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),ne=()=>{const{open:s}=g("changeNodeType"),{close:u}=g("editNodeName"),{changeNodeTypeFeatureFlag:c}=H(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),t=k(),h=t==null?void 0:t.node_type,d=()=>{u(),s()};return e.jsxs(o,{children:[e.jsx(o,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(o,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(Q,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(te,{})})]})]})}),e.jsxs(o,{mb:18,children:[e.jsx(_,{style:{marginBottom:8},children:"Node Name"}),e.jsx(T,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...P}})]}),e.jsxs(o,{mb:36,children:[e.jsx(_,{style:{marginBottom:8},children:"image_url"}),e.jsx(T,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"image_url",rules:{pattern:{message:"Please enter a valid URL",value:I}}})]})]})},oe=r(B)` +import{j as e,Q as r,S as y,a5 as B,U as o,ad as g,a4 as H,a1 as k,ar as P,r as l,am as q,as as K,M as O}from"./index-a7cfca89.js";import{b as Q,aK as T,af as Y,ag as J,B as F,aF as X,aG as Z}from"./index-ca972e6a.js";import{S as ee}from"./Skeleton-6f749099.js";const I=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ae(s){return!!I.test(s)}const te=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),e.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),ne=()=>{const{open:s}=g("changeNodeType"),{close:u}=g("editNodeName"),{changeNodeTypeFeatureFlag:c}=H(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),t=k(),h=t==null?void 0:t.node_type,d=()=>{u(),s()};return e.jsxs(o,{children:[e.jsx(o,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(o,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(Q,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(te,{})})]})]})}),e.jsxs(o,{mb:18,children:[e.jsx(_,{style:{marginBottom:8},children:"Node Name"}),e.jsx(T,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...P}})]}),e.jsxs(o,{mb:36,children:[e.jsx(_,{style:{marginBottom:8},children:"image_url"}),e.jsx(T,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"image_url",rules:{pattern:{message:"Please enter a valid URL",value:I}}})]})]})},oe=r(B)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-78b3929e.js b/build/assets/index-5f88db22.js similarity index 96% rename from build/assets/index-78b3929e.js rename to build/assets/index-5f88db22.js index e59f9967e..932c05f62 100644 --- a/build/assets/index-78b3929e.js +++ b/build/assets/index-5f88db22.js @@ -1,4 +1,4 @@ -import{Q as o,U as s,a5 as g,O as y,j as e,a3 as b,av as w,ar as S,S as x,r as v,N as T,ad as m}from"./index-c22082f7.js";import{aI as A,aJ as f,af as C,ag as M,aK as u,aF as G,aL as $,aM as B,aG as k}from"./index-853fe2a2.js";const D=({onClose:t})=>{const[i]=y(n=>[n.graphStyle]),r=()=>{localStorage.setItem("graphStyle",i),t()};return e.jsxs(z,{direction:"column",children:[e.jsx(F,{children:"Default graph view:"}),e.jsx(A,{}),e.jsx(s,{mt:308,children:e.jsx(f,{kind:"big",onClick:r,children:"Save Changes"})})]})},z=o(s)` +import{Q as o,U as s,a5 as g,O as y,j as e,a3 as b,av as w,ar as S,S as x,r as v,N as T,ad as m}from"./index-a7cfca89.js";import{aI as A,aJ as f,af as C,ag as M,aK as u,aF as G,aL as $,aM as B,aG as k}from"./index-ca972e6a.js";const D=({onClose:t})=>{const[i]=y(n=>[n.graphStyle]),r=()=>{localStorage.setItem("graphStyle",i),t()};return e.jsxs(z,{direction:"column",children:[e.jsx(F,{children:"Default graph view:"}),e.jsx(A,{}),e.jsx(s,{mt:308,children:e.jsx(f,{kind:"big",onClick:r,children:"Save Changes"})})]})},z=o(s)` display: flex; gap: 10px; padding: 36px; diff --git a/build/assets/index-ed69f0f8.js b/build/assets/index-822c9517.js similarity index 62% rename from build/assets/index-ed69f0f8.js rename to build/assets/index-822c9517.js index 12fdbab9d..c89af5678 100644 --- a/build/assets/index-ed69f0f8.js +++ b/build/assets/index-822c9517.js @@ -1 +1 @@ -import{ad as e,j as s}from"./index-c22082f7.js";import{aG as a,aS as t}from"./index-853fe2a2.js";const u=()=>{const{close:o}=e("sourcesTable"),{visible:r}=e("addContent");return r?null:s.jsx(a,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:o,preventOutsideClose:!0,children:s.jsx(t,{})})};export{u as SourcesTableModal}; +import{ad as e,j as s}from"./index-a7cfca89.js";import{aG as a,aS as t}from"./index-ca972e6a.js";const u=()=>{const{close:o}=e("sourcesTable"),{visible:r}=e("addContent");return r?null:s.jsx(a,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:o,preventOutsideClose:!0,children:s.jsx(t,{})})};export{u as SourcesTableModal}; diff --git a/build/assets/index-ee170958.js b/build/assets/index-96dc12dd.js similarity index 98% rename from build/assets/index-ee170958.js rename to build/assets/index-96dc12dd.js index e747364a4..26fa32818 100644 --- a/build/assets/index-ee170958.js +++ b/build/assets/index-96dc12dd.js @@ -1,4 +1,4 @@ -import{ax as X,Q as y,S as b,U as t,a5 as T,N as q,r as f,j as e,bB as Z,bC as ee,ar as F,bF as te,a4 as se,bG as ne,ad as $,M as oe,O as re,bD as I,bi as ae,ag as ie,ay as ce}from"./index-c22082f7.js";import{B as C,aF as V,ab as le,aN as de,ae as pe,aK as L,aO as z,aP as xe,aQ as ue,aR as me,af as he,aG as fe,ag as ye}from"./index-853fe2a2.js";import{S as ge}from"./index-c25c8268.js";import{p as je}from"./index-bbc7c996.js";import{c as we}from"./index-64f1c910.js";import"./three.module-a2e04964.js";const be=async(o,i,c="")=>await X.post(`/${o}`,JSON.stringify(i),{Authorization:c}),Se=async(o,i,c,u,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...i,...o==="Image"&&{source_link:c}},node_type:o,name:u,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:i,error:c})=>{const u=q(l=>l.budget),[d,r]=f.useState(10),x="node";return f.useEffect(()=>{(async()=>{try{const m=await ee(x);r(m.data.price)}catch(m){console.error("cannot fetch",m)}})()},[x]),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(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[Z(u)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:i||!!c,onClick:o,size:"large",startIcon:i?e.jsx(G,{children:e.jsx(V,{color:b.lightGray,size:12})}):e.jsxs(G,{children:[" ",e.jsx(le,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{children:e.jsxs(ve,{children:[e.jsx(de,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=y(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{ax as X,Q as y,S as b,U as t,a5 as T,N as q,r as f,j as e,bB as Z,bC as ee,ar as F,bF as te,a4 as se,bG as ne,ad as $,M as oe,O as re,bD as I,bi as ae,ag as ie,ay as ce}from"./index-a7cfca89.js";import{B as C,aF as V,ab as le,aN as de,ae as pe,aK as L,aO as z,aP as xe,aQ as ue,aR as me,af as he,aG as fe,ag as ye}from"./index-ca972e6a.js";import{S as ge}from"./index-32057c8a.js";import{p as je}from"./index-bbc7c996.js";import{c as we}from"./index-64f1c910.js";import"./three.module-a2e04964.js";const be=async(o,i,c="")=>await X.post(`/${o}`,JSON.stringify(i),{Authorization:c}),Se=async(o,i,c,u,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...i,...o==="Image"&&{source_link:c}},node_type:o,name:u,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:i,error:c})=>{const u=q(l=>l.budget),[d,r]=f.useState(10),x="node";return f.useEffect(()=>{(async()=>{try{const m=await ee(x);r(m.data.price)}catch(m){console.error("cannot fetch",m)}})()},[x]),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(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[Z(u)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:i||!!c,onClick:o,size:"large",startIcon:i?e.jsx(G,{children:e.jsx(V,{color:b.lightGray,size:12})}):e.jsxs(G,{children:[" ",e.jsx(le,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{children:e.jsxs(ve,{children:[e.jsx(de,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=y(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${b.GRAY7}; diff --git a/build/assets/index-aa2c5474.js b/build/assets/index-97ba2cca.js similarity index 98% rename from build/assets/index-aa2c5474.js rename to build/assets/index-97ba2cca.js index 46b642042..fc38b519d 100644 --- a/build/assets/index-aa2c5474.js +++ b/build/assets/index-97ba2cca.js @@ -1,4 +1,4 @@ -import{bx as C,ac as v,ab as b,by as I,aa as E,bz as U,bA as D,Q as x,S as l,N as G,r as h,j as e,U as n,bB as J,a5 as y,bC as Q,ar as X,ad as ee,bD as p,aw as te,ag as se,bE as ne,ay as oe,ax as re,az as ie,b0 as ae}from"./index-c22082f7.js";import{B as w,aF as ce,ab as le,aN as de,aK as B,af as ue,aG as xe,ag as ge}from"./index-853fe2a2.js";import{S as he}from"./index-c25c8268.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,ye=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,je=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function _e(t){return[pe,Ee,fe,we,me,ye].some(i=>i.test(t))?C:Se.test(t)?v:R.test(t)?b:be.test(t)?I:je.test(t)?E:ve.test(t)?U:D}const $e=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},N=t=>!!t&&[b,v,E].includes(t),ze=({onClick:t,loading:s,type:i,error:o})=>{const r=G(u=>u.budget),[g,d]=h.useState(10),a=N(i)?"radar":"add_node";return h.useEffect(()=>{(async()=>{try{const c=await Q(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),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:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[g," sats"]})]}),e.jsxs(Be,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[J(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ce,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(le,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Ne,{children:e.jsxs(Re,{children:[e.jsx(de,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{bx as C,ac as v,ab as b,by as I,aa as E,bz as U,bA as D,Q as x,S as l,N as G,r as h,j as e,U as n,bB as J,a5 as y,bC as Q,ar as X,ad as ee,bD as p,aw as te,ag as se,bE as ne,ay as oe,ax as re,az as ie,b0 as ae}from"./index-a7cfca89.js";import{B as w,aF as ce,ab as le,aN as de,aK as B,af as ue,aG as xe,ag as ge}from"./index-ca972e6a.js";import{S as he}from"./index-32057c8a.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,ye=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,je=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function _e(t){return[pe,Ee,fe,we,me,ye].some(i=>i.test(t))?C:Se.test(t)?v:R.test(t)?b:be.test(t)?I:je.test(t)?E:ve.test(t)?U:D}const $e=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},N=t=>!!t&&[b,v,E].includes(t),ze=({onClick:t,loading:s,type:i,error:o})=>{const r=G(u=>u.budget),[g,d]=h.useState(10),a=N(i)?"radar":"add_node";return h.useEffect(()=>{(async()=>{try{const c=await Q(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),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:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[g," sats"]})]}),e.jsxs(Be,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[J(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ce,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(le,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Ne,{children:e.jsxs(Re,{children:[e.jsx(de,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${l.GRAY7}; diff --git a/build/assets/index-4926d1bb.js b/build/assets/index-9ffe3d3e.js similarity index 97% rename from build/assets/index-4926d1bb.js rename to build/assets/index-9ffe3d3e.js index f7e354c77..ee63d92cc 100644 --- a/build/assets/index-4926d1bb.js +++ b/build/assets/index-9ffe3d3e.js @@ -1,4 +1,4 @@ -import{r as l,ak as B,j as e,U as p,ap as E,Q as s,a5 as _,ad as F,a1 as k,S as v,am as M,at as z}from"./index-c22082f7.js";import{aT as N,ac as O,aP as D,aQ as P,aU as Y,aW as X,aX as R,aY as U,aV as W,aZ as C,af as G,aG as H,ag as Q,aF as I,a_ as Z,B as $}from"./index-853fe2a2.js";const q=({topicId:o,onSelect:i,selectedValue:d,dataId:c})=>{const[x,h]=l.useState([]),[b,u]=l.useState(!1),w=l.useMemo(()=>{const t=async f=>{const n={is_muted:"False",sort_by:Y,search:f,skip:"0",limit:"1000"};u(!0);try{const T=(await E(n.search)).data.filter(a=>(a==null?void 0:a.ref_id)!==o);h(T)}catch{h([])}finally{u(!1)}};return B.debounce(t,300)},[o]),r=t=>{if(!t){h([]);return}t.length>2&&w(t)},m=t=>{const f=t?x.find(n=>n.ref_id===t.value):null;i(f||null)},j=t=>({label:t.search_value,value:t.ref_id,type:t.node_type}),y=t=>t.map(j);return d?e.jsxs(p,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(N,{onClick:()=>i(null),size:"medium",children:e.jsx(O,{})})]}):e.jsx(D,{dataId:c,handleInputChange:r,isLoading:b,onSelect:m,options:y(x)||P,selectedValue:d?j(d):null})},J=({from:o,onSelect:i,selectedToNode:d,isSwapped:c,setIsSwapped:x})=>e.jsxs(p,{mb:20,children:[e.jsx(p,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(p,{align:"center",direction:"row",children:e.jsx(K,{children:"Merge topic"})})}),e.jsxs(te,{swap:c,children:[e.jsx(V,{children:e.jsx(oe,{disabled:!0,label:c?"To":"From",swap:c,value:o==null?void 0:o.name})}),e.jsxs(p,{my:16,children:[e.jsx(ae,{children:"Type"}),e.jsx(_,{children:"IS ALIAS"})]}),e.jsx(p,{"data-testid":"to-section-container",children:e.jsxs(se,{children:[e.jsx(ne,{children:c?"From":"To"}),e.jsx(q,{dataId:"to-node",onSelect:i,selectedValue:d,topicId:o==null?void 0:o.ref_id})]})}),e.jsxs(ee,{children:[e.jsx(ie,{children:e.jsx(X,{})}),e.jsx(re,{"data-testid":"swap-icon",onClick:x,children:e.jsx(R,{})}),e.jsx(le,{children:e.jsx(U,{})})]})]})]}),K=s(_)` +import{r as l,ak as B,j as e,U as p,ap as E,Q as s,a5 as _,ad as F,a1 as k,S as v,am as M,at as z}from"./index-a7cfca89.js";import{aT as N,ac as O,aP as D,aQ as P,aU as Y,aW as X,aX as R,aY as U,aV as W,aZ as C,af as G,aG as H,ag as Q,aF as I,a_ as Z,B as $}from"./index-ca972e6a.js";const q=({topicId:o,onSelect:i,selectedValue:d,dataId:c})=>{const[x,h]=l.useState([]),[b,u]=l.useState(!1),w=l.useMemo(()=>{const t=async f=>{const n={is_muted:"False",sort_by:Y,search:f,skip:"0",limit:"1000"};u(!0);try{const T=(await E(n.search)).data.filter(a=>(a==null?void 0:a.ref_id)!==o);h(T)}catch{h([])}finally{u(!1)}};return B.debounce(t,300)},[o]),r=t=>{if(!t){h([]);return}t.length>2&&w(t)},m=t=>{const f=t?x.find(n=>n.ref_id===t.value):null;i(f||null)},j=t=>({label:t.search_value,value:t.ref_id,type:t.node_type}),y=t=>t.map(j);return d?e.jsxs(p,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(N,{onClick:()=>i(null),size:"medium",children:e.jsx(O,{})})]}):e.jsx(D,{dataId:c,handleInputChange:r,isLoading:b,onSelect:m,options:y(x)||P,selectedValue:d?j(d):null})},J=({from:o,onSelect:i,selectedToNode:d,isSwapped:c,setIsSwapped:x})=>e.jsxs(p,{mb:20,children:[e.jsx(p,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(p,{align:"center",direction:"row",children:e.jsx(K,{children:"Merge topic"})})}),e.jsxs(te,{swap:c,children:[e.jsx(V,{children:e.jsx(oe,{disabled:!0,label:c?"To":"From",swap:c,value:o==null?void 0:o.name})}),e.jsxs(p,{my:16,children:[e.jsx(ae,{children:"Type"}),e.jsx(_,{children:"IS ALIAS"})]}),e.jsx(p,{"data-testid":"to-section-container",children:e.jsxs(se,{children:[e.jsx(ne,{children:c?"From":"To"}),e.jsx(q,{dataId:"to-node",onSelect:i,selectedValue:d,topicId:o==null?void 0:o.ref_id})]})}),e.jsxs(ee,{children:[e.jsx(ie,{children:e.jsx(X,{})}),e.jsx(re,{"data-testid":"swap-icon",onClick:x,children:e.jsx(R,{})}),e.jsx(le,{children:e.jsx(U,{})})]})]})]}),K=s(_)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-846e8361.js b/build/assets/index-a67aca48.js similarity index 99% rename from build/assets/index-846e8361.js rename to build/assets/index-a67aca48.js index e15d7f28a..0137b8680 100644 --- a/build/assets/index-846e8361.js +++ b/build/assets/index-a67aca48.js @@ -1,4 +1,4 @@ -import{ax as pa,ag as Zn,ak as Ul,bi as Dm,r as j,a as Ee,p as pi,o as Vu,s as zn,E as Im,x as mr,t as Uu,_ as Wu,j as d,v as Dn,n as Gu,q as On,J as Nm,K as Lm,I as Zu,D as qu,bj as Rm,R as ee,aG as $m,Q as Y,S as N,M as jt,X as In,U as z,af as Xu,b4 as ma,N as Mr,a5 as Fe,bk as ga,a$ as ai,bl as mt,bm as zm,L as ya,a3 as _t,a2 as mi,b2 as Ku,bn as Bm,bo as Fm,bp as xa,bq as Hm,br as Ym,ay as Vm,az as Um,b0 as Wm,a1 as St,bs as Wl,be as Gm,a7 as At,bt as Zm,bu as qm,O as Xm,ad as Rs,a4 as Km,bv as Qm,bw as Jm}from"./index-c22082f7.js";import{v as Kn,k as eg,l as tg,m as $s,n as Qu,o as ls,p as no,q as cs,r as ng,L as Gl,s as ro,t as En,w as rg,x as us,y as ig,z as ds,E as Ri,F as Zl,G as og,H as Ju,I as Wn,S as ql,J as sg,K as ag,N as fs,Q as Yr,R as lg,U as cg,V as $i,W as ug,X as ed,Y as io,Z as dg,$ as fg,a0 as hr,a1 as hg,a2 as pg,a3 as Xl,a4 as mg,a5 as gg,a6 as yg,a7 as td,a8 as nd,a9 as xg,aa as rd,ab as id,h as wg,P as wa,ac as od,ad as bg,B as vt,ae as ba,af as vg,ag as _g,ah as sd,A as Gt,b as jr,ai as _r,aj as Kl,ak as Ql,al as Sg,T as Cg,am as kg,an as Eg,ao as Pg,ap as ad,aq as Mg,ar as ld,as as jg,at as Tg,au as Og,av as Ag,aw as Dg,g as Ig,ax as Ng,ay as Lg,az as cd,aA as Rg,aB as va,d as ud,aC as Co,aD as ko,aE as _a,aF as Sa,aG as $g,aH as zg,c as Bg}from"./index-853fe2a2.js";import{S as dd}from"./Skeleton-f93ae829.js";const Jl="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",Fg=async e=>{let t=await Zn.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await Zn.keysend(Jl,e),!(t!=null&&t.success)){if(t=await Zn.topup(),t||(t=await Zn.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await Fg(t),r={amount:t,refid:e};return await pa.post("/boost",JSON.stringify(r)),n},Yg=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},fd=(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=Ul.groupBy(n,o=>o.timestamp),i=Ul.values(r).reduce((o,a)=>(a[0]&&o.push(a[0]),o),[]);return i.sort((o,a)=>{var p,y;const[l]=((p=o.timestamp)==null?void 0:p.split("-"))||[""],[u]=((y=a.timestamp)==null?void 0:y.split("-"))||[""],f=Kn(l),h=Kn(u);return f-h}),i},Vg=async e=>{await Dm(async()=>{try{await Zn.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},Ug=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},Wg={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Gg=Wg;function Zg(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const qg=2;function hd(e,t){return e-t}function Vr(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function ec(e,t){var n;const{index:r}=(n=e.reduce((i,o,a)=>{const l=Math.abs(t-o);return i===null||l({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}%`})}},ey=e=>e;let Hi;function hs(){return Hi===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Hi=CSS.supports("touch-action","none"):Hi=!0),Hi}function ty(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:l=100,min:u=0,name:f,onChange:h,onChangeCommitted:p,orientation:y="horizontal",rootRef:g,scale:b=ey,step:_=1,tabIndex:C,value:S}=e,k=j.useRef(),[P,T]=j.useState(-1),[L,O]=j.useState(-1),[U,W]=j.useState(!1),G=j.useRef(0),[q,$]=eg({controlled:S,default:n??u,name:"Slider"}),H=h&&((A,Z,te)=>{const se=A.nativeEvent||A,re=new se.constructor(se.type,se);Object.defineProperty(re,"target",{writable:!0,value:{value:Z,name:f}}),h(re,Z,te)}),B=Array.isArray(q);let M=B?q.slice().sort(hd):[q];M=M.map(A=>Vr(A,u,l));const R=a===!0&&_!==null?[...Array(Math.floor((l-u)/_)+1)].map((A,Z)=>({value:u+_*Z})):a||[],I=R.map(A=>A.value),{isFocusVisibleRef:V,onBlur:X,onFocus:F,ref:v}=tg(),[Q,ne]=j.useState(-1),E=j.useRef(),ae=$s(v,E),J=$s(g,ae),le=A=>Z=>{var te;const se=Number(Z.currentTarget.getAttribute("data-index"));F(Z),V.current===!0&&ne(se),O(se),A==null||(te=A.onFocus)==null||te.call(A,Z)},pe=A=>Z=>{var te;X(Z),V.current===!1&&ne(-1),O(-1),A==null||(te=A.onBlur)==null||te.call(A,Z)};Qu(()=>{if(r&&E.current.contains(document.activeElement)){var A;(A=document.activeElement)==null||A.blur()}},[r]),r&&P!==-1&&T(-1),r&&Q!==-1&&ne(-1);const me=A=>Z=>{var te;(te=A.onChange)==null||te.call(A,Z);const se=Number(Z.currentTarget.getAttribute("data-index")),re=M[se],ye=I.indexOf(re);let fe=Z.target.valueAsNumber;if(R&&_==null){const _e=I[I.length-1];fe>_e?fe=_e:fe{const{current:te}=E,{width:se,height:re,bottom:ye,left:fe}=te.getBoundingClientRect();let _e;Ce.indexOf("vertical")===0?_e=(ye-A.y)/re:_e=(A.x-fe)/se,Ce.indexOf("-reverse")!==-1&&(_e=1-_e);let je;if(je=Xg(_e,u,l),_)je=Qg(je,_,u);else{const Ae=ec(I,je);je=I[Ae]}je=Vr(je,u,l);let Ve=0;if(B){Z?Ve=ve.current:Ve=ec(M,je),i&&(je=Vr(je,M[Ve-1]||-1/0,M[Ve+1]||1/0));const Ae=je;je=tc({values:M,newValue:je,index:Ve}),i&&Z||(Ve=je.indexOf(Ae),ve.current=Ve)}return{newValue:je,activeIndex:Ve}},Je=ls(A=>{const Z=zi(A,k);if(!Z)return;if(G.current+=1,A.type==="mousemove"&&A.buttons===0){He(A);return}const{newValue:te,activeIndex:se}=Be({finger:Z,move:!0});Bi({sliderRef:E,activeIndex:se,setActive:T}),$(te),!U&&G.current>qg&&W(!0),H&&!Fi(te,q)&&H(A,te,se)}),He=ls(A=>{const Z=zi(A,k);if(W(!1),!Z)return;const{newValue:te}=Be({finger:Z,move:!0});T(-1),A.type==="touchend"&&O(-1),p&&p(A,te),k.current=void 0,ge()}),we=ls(A=>{if(r)return;hs()||A.preventDefault();const Z=A.changedTouches[0];Z!=null&&(k.current=Z.identifier);const te=zi(A,k);if(te!==!1){const{newValue:re,activeIndex:ye}=Be({finger:te});Bi({sliderRef:E,activeIndex:ye,setActive:T}),$(re),H&&!Fi(re,q)&&H(A,re,ye)}G.current=0;const se=no(E.current);se.addEventListener("touchmove",Je),se.addEventListener("touchend",He)}),ge=j.useCallback(()=>{const A=no(E.current);A.removeEventListener("mousemove",Je),A.removeEventListener("mouseup",He),A.removeEventListener("touchmove",Je),A.removeEventListener("touchend",He)},[He,Je]);j.useEffect(()=>{const{current:A}=E;return A.addEventListener("touchstart",we,{passive:hs()}),()=>{A.removeEventListener("touchstart",we,{passive:hs()}),ge()}},[ge,we]),j.useEffect(()=>{r&&ge()},[r,ge]);const Ye=A=>Z=>{var te;if((te=A.onMouseDown)==null||te.call(A,Z),r||Z.defaultPrevented||Z.button!==0)return;Z.preventDefault();const se=zi(Z,k);if(se!==!1){const{newValue:ye,activeIndex:fe}=Be({finger:se});Bi({sliderRef:E,activeIndex:fe,setActive:T}),$(ye),H&&!Fi(ye,q)&&H(Z,ye,fe)}G.current=0;const re=no(E.current);re.addEventListener("mousemove",Je),re.addEventListener("mouseup",He)},Ze=fo(B?M[0]:u,u,l),ue=fo(M[M.length-1],u,l)-Ze,dt=(A={})=>{const Z=cs(A),te={onMouseDown:Ye(Z||{})},se=Ee({},Z,te);return Ee({},A,{ref:J},se)},Ne=A=>Z=>{var te;(te=A.onMouseOver)==null||te.call(A,Z);const se=Number(Z.currentTarget.getAttribute("data-index"));O(se)},Le=A=>Z=>{var te;(te=A.onMouseLeave)==null||te.call(A,Z),O(-1)};return{active:P,axis:Ce,axisProps:Jg,dragging:U,focusedThumbIndex:Q,getHiddenInputProps:(A={})=>{var Z;const te=cs(A),se={onChange:me(te||{}),onFocus:le(te||{}),onBlur:pe(te||{})},re=Ee({},te,se);return Ee({tabIndex:C,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":b(l),"aria-valuemin":b(u),name:f,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Z=e.step)!=null?Z:void 0,disabled:r},A,re,{style:Ee({},Gg,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:dt,getThumbProps:(A={})=>{const Z=cs(A),te={onMouseOver:Ne(Z||{}),onMouseLeave:Le(Z||{})};return Ee({},A,Z,te)},marks:R,open:L,range:B,rootRef:J,trackLeap:ue,trackOffset:Ze,values:M,getThumbStyle:A=>({pointerEvents:P!==-1&&P!==A?"none":void 0})}}const ny=pi("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),nc=ny,ry=pi("MuiListItemIcon",["root","alignItemsFlexStart"]),rc=ry,iy=pi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ic=iy;function oy(e){return Vu("MuiMenuItem",e)}const sy=pi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ur=sy,ay=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ly=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},cy=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,u=Gu({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},oy,a);return Ee({},a,u)},uy=zn(ng,{shouldForwardProp:e=>Im(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ly})(({theme:e,ownerState:t})=>Ee({},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"}},[`&.${Ur.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ur.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ur.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mr(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})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ur.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ur.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nc.inset}`]:{marginLeft:52},[`& .${ic.root}`]:{marginTop:0,marginBottom:0},[`& .${ic.inset}`]:{paddingLeft:36},[`& .${rc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ee({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${rc.root} svg`]:{fontSize:"1.25rem"}}))),dy=j.forwardRef(function(t,n){const r=Uu({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:p,className:y}=r,g=Wu(r,ay),b=j.useContext(Gl),_=j.useMemo(()=>({dense:a||b.dense||!1,disableGutters:u}),[b.dense,a,u]),C=j.useRef(null);Qu(()=>{i&&C.current&&C.current.focus()},[i]);const S=Ee({},r,{dense:_.dense,divider:l,disableGutters:u}),k=cy(r),P=$s(C,n);let T;return r.disabled||(T=p!==void 0?p:-1),d.jsx(Gl.Provider,{value:_,children:d.jsx(uy,Ee({ref:P,role:h,tabIndex:T,component:o,focusVisibleClassName:Dn(k.focusVisible,f),className:Dn(k.root,y)},g,{ownerState:S,classes:k}))})}),fy=dy,hy=e=>!e||!ro(e),py=hy;function my(e){return Vu("MuiSlider",e)}const gy=pi("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"]),Wt=gy,yy=e=>{const{open:t}=e;return{offset:Dn(t&&Wt.valueLabelOpen),circle:Wt.valueLabelCircle,label:Wt.valueLabelLabel}};function xy(e){const{children:t,className:n,value:r}=e,i=yy(e);return t?j.cloneElement(t,{className:Dn(t.props.className)},d.jsxs(j.Fragment,{children:[t.props.children,d.jsx("span",{className:Dn(i.offset,n),"aria-hidden":!0,children:d.jsx("span",{className:i.circle,children:d.jsx("span",{className:i.label,children:r})})})]})):null}const wy=["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 oc(e){return e}const by=zn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${On(n.color)}`],n.size!=="medium"&&t[`size${On(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})=>Ee({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"&&Ee({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"&&Ee({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"},[`&.${Wt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Wt.dragging}`]:{[`& .${Wt.thumb}, & .${Wt.track}`]:{transition:"none"}}})),vy=zn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>Ee({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})),_y=zn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Nm(e.palette[t.color].main,.62):Lm(e.palette[t.color].main,.5);return Ee({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})}),Sy=zn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${On(n.color)}`],n.size!=="medium"&&t[`thumbSize${On(n.size)}`]]}})(({theme:e,ownerState:t})=>Ee({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":Ee({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, &.${Wt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:mr(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Wt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:mr(e.palette[t.color].main,.16)}`},[`&.${Wt.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Cy=zn(xy,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>Ee({[`&.${Wt.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"})),ky=zn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Zu(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>Ee({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})),Ey=zn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Zu(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>Ee({},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})),Py=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:l,size:u}=e,f={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",l&&`color${On(l)}`,u&&`size${On(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${On(u)}`,l&&`thumbColor${On(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Gu(f,my,a)},My=({children:e})=>e,jy=j.forwardRef(function(t,n){var r,i,o,a,l,u,f,h,p,y,g,b,_,C,S,k,P,T,L,O,U,W,G,q;const $=Uu({props:t,name:"MuiSlider"}),B=qu().direction==="rtl",{"aria-label":M,"aria-valuetext":R,"aria-labelledby":I,component:V="span",components:X={},componentsProps:F={},color:v="primary",classes:Q,className:ne,disableSwap:E=!1,disabled:ae=!1,getAriaLabel:J,getAriaValueText:le,marks:pe=!1,max:me=100,min:ve=0,orientation:Ce="horizontal",size:Be="medium",step:Je=1,scale:He=oc,slotProps:we,slots:ge,track:Ye="normal",valueLabelDisplay:Ze="off",valueLabelFormat:ue=oc}=$,dt=Wu($,wy),Ne=Ee({},$,{isRtl:B,max:me,min:ve,classes:Q,disabled:ae,disableSwap:E,orientation:Ce,marks:pe,color:v,size:Be,step:Je,scale:He,track:Ye,valueLabelDisplay:Ze,valueLabelFormat:ue}),{axisProps:Le,getRootProps:Xe,getHiddenInputProps:ft,getThumbProps:ht,open:A,active:Z,axis:te,focusedThumbIndex:se,range:re,dragging:ye,marks:fe,values:_e,trackOffset:je,trackLeap:Ve,getThumbStyle:Ae}=ty(Ee({},Ne,{rootRef:n}));Ne.marked=fe.length>0&&fe.some(Pe=>Pe.label),Ne.dragging=ye,Ne.focusedThumbIndex=se;const be=Py(Ne),tt=(r=(i=ge==null?void 0:ge.root)!=null?i:X.Root)!=null?r:by,qt=(o=(a=ge==null?void 0:ge.rail)!=null?a:X.Rail)!=null?o:vy,Tt=(l=(u=ge==null?void 0:ge.track)!=null?u:X.Track)!=null?l:_y,De=(f=(h=ge==null?void 0:ge.thumb)!=null?h:X.Thumb)!=null?f:Sy,bn=(p=(y=ge==null?void 0:ge.valueLabel)!=null?y:X.ValueLabel)!=null?p:Cy,Ct=(g=(b=ge==null?void 0:ge.mark)!=null?b:X.Mark)!=null?g:ky,Xt=(_=(C=ge==null?void 0:ge.markLabel)!=null?C:X.MarkLabel)!=null?_:Ey,vn=(S=(k=ge==null?void 0:ge.input)!=null?k:X.Input)!=null?S:"input",Kt=(P=we==null?void 0:we.root)!=null?P:F.root,Qt=(T=we==null?void 0:we.rail)!=null?T:F.rail,Jt=(L=we==null?void 0:we.track)!=null?L:F.track,Fn=(O=we==null?void 0:we.thumb)!=null?O:F.thumb,en=(U=we==null?void 0:we.valueLabel)!=null?U:F.valueLabel,Ar=(W=we==null?void 0:we.mark)!=null?W:F.mark,an=(G=we==null?void 0:we.markLabel)!=null?G:F.markLabel,_n=(q=we==null?void 0:we.input)!=null?q:F.input,ce=En({elementType:tt,getSlotProps:Xe,externalSlotProps:Kt,externalForwardedProps:dt,additionalProps:Ee({},py(tt)&&{as:V}),ownerState:Ee({},Ne,Kt==null?void 0:Kt.ownerState),className:[be.root,ne]}),Dr=En({elementType:qt,externalSlotProps:Qt,ownerState:Ne,className:be.rail}),Ir=En({elementType:Tt,externalSlotProps:Jt,additionalProps:{style:Ee({},Le[te].offset(je),Le[te].leap(Ve))},ownerState:Ee({},Ne,Jt==null?void 0:Jt.ownerState),className:be.track}),ot=En({elementType:De,getSlotProps:ht,externalSlotProps:Fn,ownerState:Ee({},Ne,Fn==null?void 0:Fn.ownerState),className:be.thumb}),Hn=En({elementType:bn,externalSlotProps:en,ownerState:Ee({},Ne,en==null?void 0:en.ownerState),className:be.valueLabel}),Te=En({elementType:Ct,externalSlotProps:Ar,ownerState:Ne,className:be.mark}),Ht=En({elementType:Xt,externalSlotProps:an,ownerState:Ne,className:be.markLabel}),Nr=En({elementType:vn,getSlotProps:ft,externalSlotProps:_n,ownerState:Ne});return d.jsxs(tt,Ee({},ce,{children:[d.jsx(qt,Ee({},Dr)),d.jsx(Tt,Ee({},Ir)),fe.filter(Pe=>Pe.value>=ve&&Pe.value<=me).map((Pe,$e)=>{const pt=fo(Pe.value,ve,me),Ue=Le[te].offset(pt);let Ke;return Ye===!1?Ke=_e.indexOf(Pe.value)!==-1:Ke=Ye==="normal"&&(re?Pe.value>=_e[0]&&Pe.value<=_e[_e.length-1]:Pe.value<=_e[0])||Ye==="inverted"&&(re?Pe.value<=_e[0]||Pe.value>=_e[_e.length-1]:Pe.value>=_e[0]),d.jsxs(j.Fragment,{children:[d.jsx(Ct,Ee({"data-index":$e},Te,!ro(Ct)&&{markActive:Ke},{style:Ee({},Ue,Te.style),className:Dn(Te.className,Ke&&be.markActive)})),Pe.label!=null?d.jsx(Xt,Ee({"aria-hidden":!0,"data-index":$e},Ht,!ro(Xt)&&{markLabelActive:Ke},{style:Ee({},Ue,Ht.style),className:Dn(be.markLabel,Ht.className,Ke&&be.markLabelActive),children:Pe.label})):null]},$e)}),_e.map((Pe,$e)=>{const pt=fo(Pe,ve,me),Ue=Le[te].offset(pt),Ke=Ze==="off"?My:bn;return d.jsx(Ke,Ee({},!ro(Ke)&&{valueLabelFormat:ue,valueLabelDisplay:Ze,value:typeof ue=="function"?ue(He(Pe),$e):ue,index:$e,open:A===$e||Z===$e||Ze==="on",disabled:ae},Hn,{children:d.jsx(De,Ee({"data-index":$e},ot,{className:Dn(be.thumb,ot.className,Z===$e&&be.active,se===$e&&be.focusVisible),style:Ee({},Ue,Ae($e),ot.style),children:d.jsx(vn,Ee({"data-index":$e,"aria-label":J?J($e):M,"aria-valuenow":He(Pe),"aria-labelledby":I,"aria-valuetext":le?le(He(Pe),$e):R,value:_e[$e]},Nr))}))}),$e)})]}))}),pd=jy,Ty=(e,t="down")=>{const n=qu(),[r,i]=j.useState(!1),o=n.breakpoints[t](e).split("@media")[1].trim();return j.useEffect(()=>{const a=()=>{const{matches:l}=window.matchMedia(o);i(l)};return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[o]),r};function sc(e,t,n){var r=new Rm;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}const Oy=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function Ay(e){return e.tldr_topic??e.name}var ho=globalThis&&globalThis.__assign||function(){return ho=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{let t=await Zn.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await Zn.keysend(Jl,e),!(t!=null&&t.success)){if(t=await Zn.topup(),t||(t=await Zn.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await Fg(t),r={amount:t,refid:e};return await pa.post("/boost",JSON.stringify(r)),n},Yg=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},fd=(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=Ul.groupBy(n,o=>o.timestamp),i=Ul.values(r).reduce((o,a)=>(a[0]&&o.push(a[0]),o),[]);return i.sort((o,a)=>{var p,y;const[l]=((p=o.timestamp)==null?void 0:p.split("-"))||[""],[u]=((y=a.timestamp)==null?void 0:y.split("-"))||[""],f=Kn(l),h=Kn(u);return f-h}),i},Vg=async e=>{await Dm(async()=>{try{await Zn.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},Ug=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},Wg={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Gg=Wg;function Zg(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const qg=2;function hd(e,t){return e-t}function Vr(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function ec(e,t){var n;const{index:r}=(n=e.reduce((i,o,a)=>{const l=Math.abs(t-o);return i===null||l({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}%`})}},ey=e=>e;let Hi;function hs(){return Hi===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Hi=CSS.supports("touch-action","none"):Hi=!0),Hi}function ty(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:l=100,min:u=0,name:f,onChange:h,onChangeCommitted:p,orientation:y="horizontal",rootRef:g,scale:b=ey,step:_=1,tabIndex:C,value:S}=e,k=j.useRef(),[P,T]=j.useState(-1),[L,O]=j.useState(-1),[U,W]=j.useState(!1),G=j.useRef(0),[q,$]=eg({controlled:S,default:n??u,name:"Slider"}),H=h&&((A,Z,te)=>{const se=A.nativeEvent||A,re=new se.constructor(se.type,se);Object.defineProperty(re,"target",{writable:!0,value:{value:Z,name:f}}),h(re,Z,te)}),B=Array.isArray(q);let M=B?q.slice().sort(hd):[q];M=M.map(A=>Vr(A,u,l));const R=a===!0&&_!==null?[...Array(Math.floor((l-u)/_)+1)].map((A,Z)=>({value:u+_*Z})):a||[],I=R.map(A=>A.value),{isFocusVisibleRef:V,onBlur:X,onFocus:F,ref:v}=tg(),[Q,ne]=j.useState(-1),E=j.useRef(),ae=$s(v,E),J=$s(g,ae),le=A=>Z=>{var te;const se=Number(Z.currentTarget.getAttribute("data-index"));F(Z),V.current===!0&&ne(se),O(se),A==null||(te=A.onFocus)==null||te.call(A,Z)},pe=A=>Z=>{var te;X(Z),V.current===!1&&ne(-1),O(-1),A==null||(te=A.onBlur)==null||te.call(A,Z)};Qu(()=>{if(r&&E.current.contains(document.activeElement)){var A;(A=document.activeElement)==null||A.blur()}},[r]),r&&P!==-1&&T(-1),r&&Q!==-1&&ne(-1);const me=A=>Z=>{var te;(te=A.onChange)==null||te.call(A,Z);const se=Number(Z.currentTarget.getAttribute("data-index")),re=M[se],ye=I.indexOf(re);let fe=Z.target.valueAsNumber;if(R&&_==null){const _e=I[I.length-1];fe>_e?fe=_e:fe{const{current:te}=E,{width:se,height:re,bottom:ye,left:fe}=te.getBoundingClientRect();let _e;Ce.indexOf("vertical")===0?_e=(ye-A.y)/re:_e=(A.x-fe)/se,Ce.indexOf("-reverse")!==-1&&(_e=1-_e);let je;if(je=Xg(_e,u,l),_)je=Qg(je,_,u);else{const Ae=ec(I,je);je=I[Ae]}je=Vr(je,u,l);let Ve=0;if(B){Z?Ve=ve.current:Ve=ec(M,je),i&&(je=Vr(je,M[Ve-1]||-1/0,M[Ve+1]||1/0));const Ae=je;je=tc({values:M,newValue:je,index:Ve}),i&&Z||(Ve=je.indexOf(Ae),ve.current=Ve)}return{newValue:je,activeIndex:Ve}},Je=ls(A=>{const Z=zi(A,k);if(!Z)return;if(G.current+=1,A.type==="mousemove"&&A.buttons===0){He(A);return}const{newValue:te,activeIndex:se}=Be({finger:Z,move:!0});Bi({sliderRef:E,activeIndex:se,setActive:T}),$(te),!U&&G.current>qg&&W(!0),H&&!Fi(te,q)&&H(A,te,se)}),He=ls(A=>{const Z=zi(A,k);if(W(!1),!Z)return;const{newValue:te}=Be({finger:Z,move:!0});T(-1),A.type==="touchend"&&O(-1),p&&p(A,te),k.current=void 0,ge()}),we=ls(A=>{if(r)return;hs()||A.preventDefault();const Z=A.changedTouches[0];Z!=null&&(k.current=Z.identifier);const te=zi(A,k);if(te!==!1){const{newValue:re,activeIndex:ye}=Be({finger:te});Bi({sliderRef:E,activeIndex:ye,setActive:T}),$(re),H&&!Fi(re,q)&&H(A,re,ye)}G.current=0;const se=no(E.current);se.addEventListener("touchmove",Je),se.addEventListener("touchend",He)}),ge=j.useCallback(()=>{const A=no(E.current);A.removeEventListener("mousemove",Je),A.removeEventListener("mouseup",He),A.removeEventListener("touchmove",Je),A.removeEventListener("touchend",He)},[He,Je]);j.useEffect(()=>{const{current:A}=E;return A.addEventListener("touchstart",we,{passive:hs()}),()=>{A.removeEventListener("touchstart",we,{passive:hs()}),ge()}},[ge,we]),j.useEffect(()=>{r&&ge()},[r,ge]);const Ye=A=>Z=>{var te;if((te=A.onMouseDown)==null||te.call(A,Z),r||Z.defaultPrevented||Z.button!==0)return;Z.preventDefault();const se=zi(Z,k);if(se!==!1){const{newValue:ye,activeIndex:fe}=Be({finger:se});Bi({sliderRef:E,activeIndex:fe,setActive:T}),$(ye),H&&!Fi(ye,q)&&H(Z,ye,fe)}G.current=0;const re=no(E.current);re.addEventListener("mousemove",Je),re.addEventListener("mouseup",He)},Ze=fo(B?M[0]:u,u,l),ue=fo(M[M.length-1],u,l)-Ze,dt=(A={})=>{const Z=cs(A),te={onMouseDown:Ye(Z||{})},se=Ee({},Z,te);return Ee({},A,{ref:J},se)},Ne=A=>Z=>{var te;(te=A.onMouseOver)==null||te.call(A,Z);const se=Number(Z.currentTarget.getAttribute("data-index"));O(se)},Le=A=>Z=>{var te;(te=A.onMouseLeave)==null||te.call(A,Z),O(-1)};return{active:P,axis:Ce,axisProps:Jg,dragging:U,focusedThumbIndex:Q,getHiddenInputProps:(A={})=>{var Z;const te=cs(A),se={onChange:me(te||{}),onFocus:le(te||{}),onBlur:pe(te||{})},re=Ee({},te,se);return Ee({tabIndex:C,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":b(l),"aria-valuemin":b(u),name:f,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Z=e.step)!=null?Z:void 0,disabled:r},A,re,{style:Ee({},Gg,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:dt,getThumbProps:(A={})=>{const Z=cs(A),te={onMouseOver:Ne(Z||{}),onMouseLeave:Le(Z||{})};return Ee({},A,Z,te)},marks:R,open:L,range:B,rootRef:J,trackLeap:ue,trackOffset:Ze,values:M,getThumbStyle:A=>({pointerEvents:P!==-1&&P!==A?"none":void 0})}}const ny=pi("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),nc=ny,ry=pi("MuiListItemIcon",["root","alignItemsFlexStart"]),rc=ry,iy=pi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ic=iy;function oy(e){return Vu("MuiMenuItem",e)}const sy=pi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ur=sy,ay=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ly=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},cy=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,u=Gu({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},oy,a);return Ee({},a,u)},uy=zn(ng,{shouldForwardProp:e=>Im(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ly})(({theme:e,ownerState:t})=>Ee({},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"}},[`&.${Ur.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ur.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ur.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mr(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})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ur.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ur.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nc.inset}`]:{marginLeft:52},[`& .${ic.root}`]:{marginTop:0,marginBottom:0},[`& .${ic.inset}`]:{paddingLeft:36},[`& .${rc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ee({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${rc.root} svg`]:{fontSize:"1.25rem"}}))),dy=j.forwardRef(function(t,n){const r=Uu({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:p,className:y}=r,g=Wu(r,ay),b=j.useContext(Gl),_=j.useMemo(()=>({dense:a||b.dense||!1,disableGutters:u}),[b.dense,a,u]),C=j.useRef(null);Qu(()=>{i&&C.current&&C.current.focus()},[i]);const S=Ee({},r,{dense:_.dense,divider:l,disableGutters:u}),k=cy(r),P=$s(C,n);let T;return r.disabled||(T=p!==void 0?p:-1),d.jsx(Gl.Provider,{value:_,children:d.jsx(uy,Ee({ref:P,role:h,tabIndex:T,component:o,focusVisibleClassName:Dn(k.focusVisible,f),className:Dn(k.root,y)},g,{ownerState:S,classes:k}))})}),fy=dy,hy=e=>!e||!ro(e),py=hy;function my(e){return Vu("MuiSlider",e)}const gy=pi("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"]),Wt=gy,yy=e=>{const{open:t}=e;return{offset:Dn(t&&Wt.valueLabelOpen),circle:Wt.valueLabelCircle,label:Wt.valueLabelLabel}};function xy(e){const{children:t,className:n,value:r}=e,i=yy(e);return t?j.cloneElement(t,{className:Dn(t.props.className)},d.jsxs(j.Fragment,{children:[t.props.children,d.jsx("span",{className:Dn(i.offset,n),"aria-hidden":!0,children:d.jsx("span",{className:i.circle,children:d.jsx("span",{className:i.label,children:r})})})]})):null}const wy=["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 oc(e){return e}const by=zn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${On(n.color)}`],n.size!=="medium"&&t[`size${On(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})=>Ee({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"&&Ee({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"&&Ee({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"},[`&.${Wt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Wt.dragging}`]:{[`& .${Wt.thumb}, & .${Wt.track}`]:{transition:"none"}}})),vy=zn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>Ee({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})),_y=zn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Nm(e.palette[t.color].main,.62):Lm(e.palette[t.color].main,.5);return Ee({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})}),Sy=zn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${On(n.color)}`],n.size!=="medium"&&t[`thumbSize${On(n.size)}`]]}})(({theme:e,ownerState:t})=>Ee({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":Ee({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, &.${Wt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:mr(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Wt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:mr(e.palette[t.color].main,.16)}`},[`&.${Wt.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Cy=zn(xy,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>Ee({[`&.${Wt.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"})),ky=zn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Zu(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>Ee({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})),Ey=zn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Zu(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>Ee({},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})),Py=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:l,size:u}=e,f={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",l&&`color${On(l)}`,u&&`size${On(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${On(u)}`,l&&`thumbColor${On(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Gu(f,my,a)},My=({children:e})=>e,jy=j.forwardRef(function(t,n){var r,i,o,a,l,u,f,h,p,y,g,b,_,C,S,k,P,T,L,O,U,W,G,q;const $=Uu({props:t,name:"MuiSlider"}),B=qu().direction==="rtl",{"aria-label":M,"aria-valuetext":R,"aria-labelledby":I,component:V="span",components:X={},componentsProps:F={},color:v="primary",classes:Q,className:ne,disableSwap:E=!1,disabled:ae=!1,getAriaLabel:J,getAriaValueText:le,marks:pe=!1,max:me=100,min:ve=0,orientation:Ce="horizontal",size:Be="medium",step:Je=1,scale:He=oc,slotProps:we,slots:ge,track:Ye="normal",valueLabelDisplay:Ze="off",valueLabelFormat:ue=oc}=$,dt=Wu($,wy),Ne=Ee({},$,{isRtl:B,max:me,min:ve,classes:Q,disabled:ae,disableSwap:E,orientation:Ce,marks:pe,color:v,size:Be,step:Je,scale:He,track:Ye,valueLabelDisplay:Ze,valueLabelFormat:ue}),{axisProps:Le,getRootProps:Xe,getHiddenInputProps:ft,getThumbProps:ht,open:A,active:Z,axis:te,focusedThumbIndex:se,range:re,dragging:ye,marks:fe,values:_e,trackOffset:je,trackLeap:Ve,getThumbStyle:Ae}=ty(Ee({},Ne,{rootRef:n}));Ne.marked=fe.length>0&&fe.some(Pe=>Pe.label),Ne.dragging=ye,Ne.focusedThumbIndex=se;const be=Py(Ne),tt=(r=(i=ge==null?void 0:ge.root)!=null?i:X.Root)!=null?r:by,qt=(o=(a=ge==null?void 0:ge.rail)!=null?a:X.Rail)!=null?o:vy,Tt=(l=(u=ge==null?void 0:ge.track)!=null?u:X.Track)!=null?l:_y,De=(f=(h=ge==null?void 0:ge.thumb)!=null?h:X.Thumb)!=null?f:Sy,bn=(p=(y=ge==null?void 0:ge.valueLabel)!=null?y:X.ValueLabel)!=null?p:Cy,Ct=(g=(b=ge==null?void 0:ge.mark)!=null?b:X.Mark)!=null?g:ky,Xt=(_=(C=ge==null?void 0:ge.markLabel)!=null?C:X.MarkLabel)!=null?_:Ey,vn=(S=(k=ge==null?void 0:ge.input)!=null?k:X.Input)!=null?S:"input",Kt=(P=we==null?void 0:we.root)!=null?P:F.root,Qt=(T=we==null?void 0:we.rail)!=null?T:F.rail,Jt=(L=we==null?void 0:we.track)!=null?L:F.track,Fn=(O=we==null?void 0:we.thumb)!=null?O:F.thumb,en=(U=we==null?void 0:we.valueLabel)!=null?U:F.valueLabel,Ar=(W=we==null?void 0:we.mark)!=null?W:F.mark,an=(G=we==null?void 0:we.markLabel)!=null?G:F.markLabel,_n=(q=we==null?void 0:we.input)!=null?q:F.input,ce=En({elementType:tt,getSlotProps:Xe,externalSlotProps:Kt,externalForwardedProps:dt,additionalProps:Ee({},py(tt)&&{as:V}),ownerState:Ee({},Ne,Kt==null?void 0:Kt.ownerState),className:[be.root,ne]}),Dr=En({elementType:qt,externalSlotProps:Qt,ownerState:Ne,className:be.rail}),Ir=En({elementType:Tt,externalSlotProps:Jt,additionalProps:{style:Ee({},Le[te].offset(je),Le[te].leap(Ve))},ownerState:Ee({},Ne,Jt==null?void 0:Jt.ownerState),className:be.track}),ot=En({elementType:De,getSlotProps:ht,externalSlotProps:Fn,ownerState:Ee({},Ne,Fn==null?void 0:Fn.ownerState),className:be.thumb}),Hn=En({elementType:bn,externalSlotProps:en,ownerState:Ee({},Ne,en==null?void 0:en.ownerState),className:be.valueLabel}),Te=En({elementType:Ct,externalSlotProps:Ar,ownerState:Ne,className:be.mark}),Ht=En({elementType:Xt,externalSlotProps:an,ownerState:Ne,className:be.markLabel}),Nr=En({elementType:vn,getSlotProps:ft,externalSlotProps:_n,ownerState:Ne});return d.jsxs(tt,Ee({},ce,{children:[d.jsx(qt,Ee({},Dr)),d.jsx(Tt,Ee({},Ir)),fe.filter(Pe=>Pe.value>=ve&&Pe.value<=me).map((Pe,$e)=>{const pt=fo(Pe.value,ve,me),Ue=Le[te].offset(pt);let Ke;return Ye===!1?Ke=_e.indexOf(Pe.value)!==-1:Ke=Ye==="normal"&&(re?Pe.value>=_e[0]&&Pe.value<=_e[_e.length-1]:Pe.value<=_e[0])||Ye==="inverted"&&(re?Pe.value<=_e[0]||Pe.value>=_e[_e.length-1]:Pe.value>=_e[0]),d.jsxs(j.Fragment,{children:[d.jsx(Ct,Ee({"data-index":$e},Te,!ro(Ct)&&{markActive:Ke},{style:Ee({},Ue,Te.style),className:Dn(Te.className,Ke&&be.markActive)})),Pe.label!=null?d.jsx(Xt,Ee({"aria-hidden":!0,"data-index":$e},Ht,!ro(Xt)&&{markLabelActive:Ke},{style:Ee({},Ue,Ht.style),className:Dn(be.markLabel,Ht.className,Ke&&be.markLabelActive),children:Pe.label})):null]},$e)}),_e.map((Pe,$e)=>{const pt=fo(Pe,ve,me),Ue=Le[te].offset(pt),Ke=Ze==="off"?My:bn;return d.jsx(Ke,Ee({},!ro(Ke)&&{valueLabelFormat:ue,valueLabelDisplay:Ze,value:typeof ue=="function"?ue(He(Pe),$e):ue,index:$e,open:A===$e||Z===$e||Ze==="on",disabled:ae},Hn,{children:d.jsx(De,Ee({"data-index":$e},ot,{className:Dn(be.thumb,ot.className,Z===$e&&be.active,se===$e&&be.focusVisible),style:Ee({},Ue,Ae($e),ot.style),children:d.jsx(vn,Ee({"data-index":$e,"aria-label":J?J($e):M,"aria-valuenow":He(Pe),"aria-labelledby":I,"aria-valuetext":le?le(He(Pe),$e):R,value:_e[$e]},Nr))}))}),$e)})]}))}),pd=jy,Ty=(e,t="down")=>{const n=qu(),[r,i]=j.useState(!1),o=n.breakpoints[t](e).split("@media")[1].trim();return j.useEffect(()=>{const a=()=>{const{matches:l}=window.matchMedia(o);i(l)};return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[o]),r};function sc(e,t,n){var r=new Rm;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}const Oy=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function Ay(e){return e.tldr_topic??e.name}var ho=globalThis&&globalThis.__assign||function(){return ho=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(B=ig(B,_,{trailing:!0,leading:!1}));var M=new ResizeObserver(B),R=L.current.getBoundingClientRect(),I=R.width,V=R.height;return $(I,V),M.observe(L.current),function(){M.disconnect()}},[$,_]);var H=j.useMemo(function(){var B=G.containerWidth,M=G.containerHeight;if(B<0||M<0)return null;ds(Ri(a)||Ri(u),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,a,u),ds(!n||n>0,"The aspect(%s) must be greater than zero.",n);var R=Ri(a)?B:a,I=Ri(u)?M:u;n&&n>0&&(R?I=R/n:I&&(R=I*n),y&&I>y&&(I=y)),ds(R>0||I>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), @@ -338,7 +338,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho cursor: pointer; } `,Ux=Y(z).attrs({direction:"column"})` - padding: 1.5rem; + padding: 0 1.5rem 1.5rem; gap: 1rem; `,Wx=Y(Fe)` font-size: 14px; @@ -365,6 +365,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${N.GRAY3}; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.3); + &:last-child { + border: none; + } font-size: 14px; cursor: pointer; line-height: 1.4; @@ -713,7 +716,7 @@ return r.version="2.29.4",i(qe),r.fn=ie,r.min=bp,r.max=vp,r.now=_p,r.utc=b,r.uni font-weight: 600; flex-grow: 1; `,I2=Y(z).attrs({direction:"row",alignItems:"center"})` - padding: 24px 10px 0 24px; + padding: 24px 10px 24px 24px; `,N2=({question:e,response:t})=>{const n=j.useRef(null),[r,i]=j.useState(!1),{setAiSummaryAnswer:o}=Ku(u=>u);j.useEffect(()=>{n.current&&n.current.scrollIntoView({behavior:"smooth"})},[]);const a=()=>{i(!r)},l=()=>{e&&o(e,{hasBeenRendered:!0})};return d.jsxs(L2,{children:[d.jsxs(I2,{children:[d.jsx(D2,{ref:n,children:e}),d.jsx(R2,{onClick:a,children:r?d.jsx(Po,{}):d.jsx(Ca,{})})]}),!r&&d.jsxs(d.Fragment,{children:[t.answerLoading?d.jsx(A2,{}):d.jsx(Gx,{answer:t.answer||"",handleLoaded:()=>l(),hasBeenRendered:!!(t!=null&&t.hasBeenRendered)}),t.questionsLoading?d.jsx(Fs,{count:1}):d.jsx(Xx,{questions:t.questions||[]}),t.sourcesLoading?d.jsx(Fs,{count:1}):d.jsx(_2,{sourceIds:t.sources||[]})]})]})},L2=Y(z).attrs({direction:"column"})` border-top: 1px solid #101317; `,R2=Y(vt)` @@ -1350,7 +1353,7 @@ ${({disabled:e})=>e&&Xu` `,D8=Y.audio` height: 0; width: 0; -`,I8=()=>{const e=St(),{showTeachMe:t}=jt(r=>r),{setPlayingNode:n}=Co(r=>r);if(j.useEffect(()=>{var i,o;if(!e)return;(e.media_url||e.link||((i=e.properties)==null?void 0:i.link)||((o=e.properties)==null?void 0:o.media_url))&&n(e)},[n,e]),t)return d.jsx(K4,{});switch(e==null?void 0:e.node_type){case"guest":case"person":return d.jsx(r8,{});case"data_series":return d.jsx(e9,{});case"tribe_message":return d.jsx(J9,{});case"Tweet":return d.jsx(h8,{});case"topic":return d.jsx(f8,{});case"show":return d.jsx(d8,{});case"video":case"podcast":case"clip":case"twitter_space":return d.jsx(Bf,{});case"document":return d.jsx(M8,{});case"episode":return d.jsx(Z9,{},e.ref_id);case"image":return d.jsx(Q9,{});default:return d.jsx(b8,{})}},N8=j.memo(I8);var L8=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&&R8(o,n.attrs),n.text&&(o.text=""+n.text);var a="onload"in o?Uc:$8;a(o,r),o.onload||Uc(o,r),i.appendChild(o)};function R8(e,t){for(var n in t)e.setAttribute(n,t[n])}function Uc(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 $8(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var z8=function(t){return B8(t)&&!F8(t)};function B8(e){return!!e&&typeof e=="object"}function F8(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||V8(e)}var H8=typeof Symbol=="function"&&Symbol.for,Y8=H8?Symbol.for("react.element"):60103;function V8(e){return e.$$typeof===Y8}function U8(e){return Array.isArray(e)?[]:{}}function fi(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Pr(U8(e),e,t):e}function W8(e,t,n){return e.concat(t).map(function(r){return fi(r,n)})}function G8(e,t){if(!t.customMerge)return Pr;var n=t.customMerge(e);return typeof n=="function"?n:Pr}function Z8(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Wc(e){return Object.keys(e).concat(Z8(e))}function Ff(e,t){try{return t in e}catch{return!1}}function q8(e,t){return Ff(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function X8(e,t,n){var r={};return n.isMergeableObject(e)&&Wc(e).forEach(function(i){r[i]=fi(e[i],n)}),Wc(t).forEach(function(i){q8(e,i)||(Ff(e,i)&&n.isMergeableObject(t[i])?r[i]=G8(i,n)(e[i],t[i],n):r[i]=fi(t[i],n))}),r}function Pr(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||W8,n.isMergeableObject=n.isMergeableObject||z8,n.cloneUnlessOtherwiseSpecified=fi;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):X8(e,t,n):fi(t,n)}Pr.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Pr(r,i,n)},{})};var K8=Pr,Hf=K8,Q8=Object.create,Do=Object.defineProperty,J8=Object.getOwnPropertyDescriptor,eb=Object.getOwnPropertyNames,tb=Object.getPrototypeOf,nb=Object.prototype.hasOwnProperty,rb=(e,t)=>{for(var n in t)Do(e,n,{get:t[n],enumerable:!0})},Yf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eb(t))!nb.call(e,i)&&i!==n&&Do(e,i,{get:()=>t[i],enumerable:!(r=J8(t,i))||r.enumerable});return e},Va=(e,t,n)=>(n=e!=null?Q8(tb(e)):{},Yf(t||!e||!e.__esModule?Do(n,"default",{value:e,enumerable:!0}):n,e)),ib=e=>Yf(Do({},"__esModule",{value:!0}),e),Vf={};rb(Vf,{callPlayer:()=>bb,getConfig:()=>xb,getSDK:()=>yb,isBlobUrl:()=>_b,isMediaStream:()=>vb,lazy:()=>lb,omit:()=>wb,parseEndTime:()=>pb,parseStartTime:()=>hb,queryString:()=>gb,randomString:()=>mb,supportsWebKitPresentationMode:()=>Sb});var Io=ib(Vf),ob=Va(j),sb=Va(L8),ab=Va(Hf);const lb=e=>ob.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),cb=/[?&#](?:start|t)=([0-9hms]+)/,ub=/[?&#]end=([0-9hms]+)/,ta=/(\d+)(h|m|s)/g,db=/^\d+$/;function Uf(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(ta))return fb(r);if(db.test(r))return parseInt(r)}}function fb(e){let t=0,n=ta.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=ta.exec(e)}return t}function hb(e){return Uf(e,cb)}function pb(e){return Uf(e,ub)}function mb(){return Math.random().toString(36).substr(2,5)}function gb(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Ss(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 ur={},yb=function(t,n,r=null,i=()=>!0,o=sb.default){const a=Ss(n);return a&&i(a)?Promise.resolve(a):new Promise((l,u)=>{if(ur[t]){ur[t].push({resolve:l,reject:u});return}ur[t]=[{resolve:l,reject:u}];const f=h=>{ur[t].forEach(p=>p.resolve(h))};if(r){const h=window[r];window[r]=function(){h&&h(),f(Ss(n))}}o(t,h=>{h?(ur[t].forEach(p=>p.reject(h)),ur[t]=null):r||f(Ss(n))})})};function xb(e,t){return(0,ab.default)(t.config,e.config)}function wb(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 bb(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 vb(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function _b(e){return/^blob:/.test(e)}function Sb(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Ua=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,kb=Object.getOwnPropertyNames,Eb=Object.prototype.hasOwnProperty,Pb=(e,t)=>{for(var n in t)Ua(e,n,{get:t[n],enumerable:!0})},Mb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of kb(t))!Eb.call(e,i)&&i!==n&&Ua(e,i,{get:()=>t[i],enumerable:!(r=Cb(t,i))||r.enumerable});return e},jb=e=>Mb(Ua({},"__esModule",{value:!0}),e),Wf={};Pb(Wf,{AUDIO_EXTENSIONS:()=>Wa,DASH_EXTENSIONS:()=>oh,FLV_EXTENSIONS:()=>sh,HLS_EXTENSIONS:()=>Za,MATCH_URL_DAILYMOTION:()=>th,MATCH_URL_FACEBOOK:()=>qf,MATCH_URL_FACEBOOK_WATCH:()=>Xf,MATCH_URL_KALTURA:()=>ih,MATCH_URL_MIXCLOUD:()=>nh,MATCH_URL_SOUNDCLOUD:()=>Gf,MATCH_URL_STREAMABLE:()=>Kf,MATCH_URL_TWITCH_CHANNEL:()=>eh,MATCH_URL_TWITCH_VIDEO:()=>Jf,MATCH_URL_VIDYARD:()=>rh,MATCH_URL_VIMEO:()=>Zf,MATCH_URL_WISTIA:()=>Qf,MATCH_URL_YOUTUBE:()=>na,VIDEO_EXTENSIONS:()=>Ga,canPlay:()=>Ob});var Tb=jb(Wf),Gc=Io;const na=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Gf=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Zf=/vimeo\.com\/(?!progressive_redirect).+/,qf=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Xf=/^https?:\/\/fb\.watch\/.+$/,Kf=/streamable\.com\/([a-z0-9]+)$/,Qf=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Jf=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,eh=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,th=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,nh=/mixcloud\.com\/([^/]+\/[^/]+)/,rh=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,ih=/^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-_].*)$/,Wa=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Ga=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Za=/\.(m3u8)($|\?)/i,oh=/\.(mpd)($|\?)/i,sh=/\.(flv)($|\?)/i,ra=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&ra(t)||ra(t.src))return!0;return!1}return(0,Gc.isMediaStream)(e)||(0,Gc.isBlobUrl)(e)?!0:Wa.test(e)||Ga.test(e)||Za.test(e)||oh.test(e)||sh.test(e)},Ob={youtube:e=>e instanceof Array?e.every(t=>na.test(t)):na.test(e),soundcloud:e=>Gf.test(e)&&!Wa.test(e),vimeo:e=>Zf.test(e)&&!Ga.test(e)&&!Za.test(e),facebook:e=>qf.test(e)||Xf.test(e),streamable:e=>Kf.test(e),wistia:e=>Qf.test(e),twitch:e=>Jf.test(e)||eh.test(e),dailymotion:e=>th.test(e),mixcloud:e=>nh.test(e),vidyard:e=>rh.test(e),kaltura:e=>ih.test(e),file:ra};var qa=Object.defineProperty,Ab=Object.getOwnPropertyDescriptor,Db=Object.getOwnPropertyNames,Ib=Object.prototype.hasOwnProperty,Nb=(e,t)=>{for(var n in t)qa(e,n,{get:t[n],enumerable:!0})},Lb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Db(t))!Ib.call(e,i)&&i!==n&&qa(e,i,{get:()=>t[i],enumerable:!(r=Ab(t,i))||r.enumerable});return e},Rb=e=>Lb(qa({},"__esModule",{value:!0}),e),ah={};Nb(ah,{default:()=>zb});var $b=Rb(ah),Ot=Io,kt=Tb,zb=[{key:"youtube",name:"YouTube",canPlay:kt.canPlay.youtube,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./YouTube-6bdd7c21.js").then(e=>e.Y),["assets/YouTube-6bdd7c21.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:kt.canPlay.soundcloud,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./SoundCloud-2d416de5.js").then(e=>e.S),["assets/SoundCloud-2d416de5.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:kt.canPlay.vimeo,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Vimeo-45e0f974.js").then(e=>e.V),["assets/Vimeo-45e0f974.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:kt.canPlay.facebook,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Facebook-87b004a7.js").then(e=>e.F),["assets/Facebook-87b004a7.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:kt.canPlay.streamable,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Streamable-9c599b1b.js").then(e=>e.S),["assets/Streamable-9c599b1b.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:kt.canPlay.wistia,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Wistia-447d6f42.js").then(e=>e.W),["assets/Wistia-447d6f42.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:kt.canPlay.twitch,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Twitch-56c8bcab.js").then(e=>e.T),["assets/Twitch-56c8bcab.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:kt.canPlay.dailymotion,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./DailyMotion-5eedd8e5.js").then(e=>e.D),["assets/DailyMotion-5eedd8e5.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:kt.canPlay.mixcloud,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Mixcloud-0439c811.js").then(e=>e.M),["assets/Mixcloud-0439c811.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:kt.canPlay.vidyard,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Vidyard-e3751964.js").then(e=>e.V),["assets/Vidyard-e3751964.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:kt.canPlay.kaltura,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Kaltura-67ed9675.js").then(e=>e.K),["assets/Kaltura-67ed9675.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:kt.canPlay.file,canEnablePIP:e=>kt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,Ot.supportsWebKitPresentationMode)())&&!kt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./FilePlayer-42847057.js").then(e=>e.F),["assets/FilePlayer-42847057.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]))}],Zc=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Bb(e,t){return!!(e===t||Zc(e)&&Zc(t))}function Fb(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)No(e,n,{get:t[n],enumerable:!0})},ch=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Kb(t))!Jb.call(e,i)&&i!==n&&No(e,i,{get:()=>t[i],enumerable:!(r=Xb(t,i))||r.enumerable});return e},t7=(e,t,n)=>(n=e!=null?qb(Qb(e)):{},ch(t||!e||!e.__esModule?No(n,"default",{value:e,enumerable:!0}):n,e)),n7=e=>ch(No({},"__esModule",{value:!0}),e),uh={};e7(uh,{defaultProps:()=>o7,propTypes:()=>i7});var dh=n7(uh),r7=t7(qm);const{string:xt,bool:wt,number:dr,array:Cs,oneOfType:Qr,shape:Lt,object:bt,func:at,node:qc}=r7.default,i7={url:Qr([xt,Cs,bt]),playing:wt,loop:wt,controls:wt,volume:dr,muted:wt,playbackRate:dr,width:Qr([xt,dr]),height:Qr([xt,dr]),style:bt,progressInterval:dr,playsinline:wt,pip:wt,stopOnUnmount:wt,light:Qr([wt,xt,bt]),playIcon:qc,previewTabIndex:dr,fallback:qc,oEmbedUrl:xt,wrapper:Qr([xt,at,Lt({render:at.isRequired})]),config:Lt({soundcloud:Lt({options:bt}),youtube:Lt({playerVars:bt,embedOptions:bt,onUnstarted:at}),facebook:Lt({appId:xt,version:xt,playerId:xt,attributes:bt}),dailymotion:Lt({params:bt}),vimeo:Lt({playerOptions:bt,title:xt}),file:Lt({attributes:bt,tracks:Cs,forceVideo:wt,forceAudio:wt,forceHLS:wt,forceSafariHLS:wt,forceDisableHls:wt,forceDASH:wt,forceFLV:wt,hlsOptions:bt,hlsVersion:xt,dashVersion:xt,flvVersion:xt}),wistia:Lt({options:bt,playerId:xt,customControls:Cs}),mixcloud:Lt({options:bt}),twitch:Lt({options:bt,playerId:xt}),vidyard:Lt({options:bt})}),onReady:at,onStart:at,onPlay:at,onPause:at,onBuffer:at,onBufferEnd:at,onEnded:at,onError:at,onDuration:at,onSeek:at,onPlaybackRateChange:at,onPlaybackQualityChange:at,onProgress:at,onClickPreview:at,onEnablePIP:at,onDisablePIP:at},ct=()=>{},o7={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:ct},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:ct,onStart:ct,onPlay:ct,onPause:ct,onBuffer:ct,onBufferEnd:ct,onEnded:ct,onError:ct,onDuration:ct,onSeek:ct,onPlaybackRateChange:ct,onPlaybackQualityChange:ct,onProgress:ct,onClickPreview:ct,onEnablePIP:ct,onDisablePIP:ct};var s7=Object.create,wi=Object.defineProperty,a7=Object.getOwnPropertyDescriptor,l7=Object.getOwnPropertyNames,c7=Object.getPrototypeOf,u7=Object.prototype.hasOwnProperty,d7=(e,t,n)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f7=(e,t)=>{for(var n in t)wi(e,n,{get:t[n],enumerable:!0})},fh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of l7(t))!u7.call(e,i)&&i!==n&&wi(e,i,{get:()=>t[i],enumerable:!(r=a7(t,i))||r.enumerable});return e},hh=(e,t,n)=>(n=e!=null?s7(c7(e)):{},fh(t||!e||!e.__esModule?wi(n,"default",{value:e,enumerable:!0}):n,e)),h7=e=>fh(wi({},"__esModule",{value:!0}),e),rt=(e,t,n)=>(d7(e,typeof t!="symbol"?t+"":t,n),n),ph={};f7(ph,{default:()=>Lo});var p7=h7(ph),Xc=hh(j),m7=hh(lh),mh=dh,g7=Io;const y7=5e3;class Lo extends Xc.Component{constructor(){super(...arguments),rt(this,"mounted",!1),rt(this,"isReady",!1),rt(this,"isPlaying",!1),rt(this,"isLoading",!0),rt(this,"loadOnReady",null),rt(this,"startOnPlay",!0),rt(this,"seekOnPlay",null),rt(this,"onDurationCalled",!1),rt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),rt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),rt(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)}),rt(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()}),rt(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()}),rt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),rt(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),rt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),rt(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)}),rt(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:a,pip:l,loop:u,activePlayer:f,disableDeferredLoading:h}=this.props;if(!(0,m7.default)(t.url,n)){if(this.isLoading&&!f.forceLoad&&!h&&!(0,g7.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&&l&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!l&&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!==a&&this.player.setPlaybackRate&&this.player.setPlaybackRate(a),t.loop!==u&&this.player.setLoop&&this.player.setLoop(u)}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},y7));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?Xc.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}}rt(Lo,"displayName","Player");rt(Lo,"propTypes",mh.propTypes);rt(Lo,"defaultProps",mh.defaultProps);var x7=Object.create,bi=Object.defineProperty,w7=Object.getOwnPropertyDescriptor,b7=Object.getOwnPropertyNames,v7=Object.getPrototypeOf,_7=Object.prototype.hasOwnProperty,S7=(e,t,n)=>t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C7=(e,t)=>{for(var n in t)bi(e,n,{get:t[n],enumerable:!0})},gh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of b7(t))!_7.call(e,i)&&i!==n&&bi(e,i,{get:()=>t[i],enumerable:!(r=w7(t,i))||r.enumerable});return e},vi=(e,t,n)=>(n=e!=null?x7(v7(e)):{},gh(t||!e||!e.__esModule?bi(n,"default",{value:e,enumerable:!0}):n,e)),k7=e=>gh(bi({},"__esModule",{value:!0}),e),nt=(e,t,n)=>(S7(e,typeof t!="symbol"?t+"":t,n),n),yh={};C7(yh,{createReactPlayer:()=>I7});var E7=k7(yh),pr=vi(j),P7=vi(Hf),ks=vi(Vb),Kc=vi(lh),ni=dh,xh=Io,M7=vi(p7);const j7=(0,xh.lazy)(()=>At(()=>import("./Preview-d75a2d95.js").then(e=>e.P),["assets/Preview-d75a2d95.js","assets/index-c22082f7.js","assets/index-a2878e02.css"])),T7=typeof window<"u"&&window.document,O7=typeof mt<"u"&&mt.window&&mt.window.document,A7=Object.keys(ni.propTypes),D7=T7||O7?pr.Suspense:()=>null,Jr=[],I7=(e,t)=>{var n;return n=class extends pr.Component{constructor(){super(...arguments),nt(this,"state",{showPreview:!!this.props.light}),nt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),nt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),nt(this,"showPreview",()=>{this.setState({showPreview:!0})}),nt(this,"getDuration",()=>this.player?this.player.getDuration():null),nt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),nt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),nt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),nt(this,"seekTo",(r,i,o)=>{if(!this.player)return null;this.player.seekTo(r,i,o)}),nt(this,"handleReady",()=>{this.props.onReady(this)}),nt(this,"getActivePlayer",(0,ks.default)(r=>{for(const i of[...Jr,...e])if(i.canPlay(r))return i;return t||null})),nt(this,"getConfig",(0,ks.default)((r,i)=>{const{config:o}=this.props;return P7.default.all([ni.defaultProps.config,ni.defaultProps.config[i]||{},o,o[i]||{}])})),nt(this,"getAttributes",(0,ks.default)(r=>(0,xh.omit)(this.props,A7))),nt(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const o=this.getConfig(r,i.key);return pr.default.createElement(M7.default,{...this.props,key:i.key,ref:this.references.player,config:o,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Kc.default)(this.props,r)||!(0,Kc.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:a,oEmbedUrl:l}=this.props;return pr.default.createElement(j7,{url:r,light:i,playIcon:o,previewTabIndex:a,oEmbedUrl:l,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:o,height:a,fallback:l,wrapper:u}=this.props,{showPreview:f}=this.state,h=this.getAttributes(r),p=typeof u=="string"?this.references.wrapper:void 0;return pr.default.createElement(u,{ref:p,style:{...i,width:o,height:a},...h},pr.default.createElement(D7,{fallback:l},f?this.renderPreview(r):this.renderActivePlayer(r)))}},nt(n,"displayName","ReactPlayer"),nt(n,"propTypes",ni.propTypes),nt(n,"defaultProps",ni.defaultProps),nt(n,"addCustomPlayer",r=>{Jr.push(r)}),nt(n,"removeCustomPlayers",()=>{Jr.length=0}),nt(n,"canPlay",r=>{for(const i of[...Jr,...e])if(i.canPlay(r))return!0;return!1}),nt(n,"canEnablePIP",r=>{for(const i of[...Jr,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var N7=Object.create,Ro=Object.defineProperty,L7=Object.getOwnPropertyDescriptor,R7=Object.getOwnPropertyNames,$7=Object.getPrototypeOf,z7=Object.prototype.hasOwnProperty,B7=(e,t)=>{for(var n in t)Ro(e,n,{get:t[n],enumerable:!0})},wh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of R7(t))!z7.call(e,i)&&i!==n&&Ro(e,i,{get:()=>t[i],enumerable:!(r=L7(t,i))||r.enumerable});return e},F7=(e,t,n)=>(n=e!=null?N7($7(e)):{},wh(t||!e||!e.__esModule?Ro(n,"default",{value:e,enumerable:!0}):n,e)),H7=e=>wh(Ro({},"__esModule",{value:!0}),e),bh={};B7(bh,{default:()=>W7});var Y7=H7(bh),ia=F7($b),V7=E7;const U7=ia.default[ia.default.length-1];var W7=(0,V7.createReactPlayer)(ia.default,U7);const G7=ya(Y7),Z7=e=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[d.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:d.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),d.jsx("g",{mask:"url(#mask0_4160_9271)",children:d.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),q7=e=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[d.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:d.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),d.jsx("g",{mask:"url(#mask0_3130_18463)",children:d.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"})})]}),X7=e=>d.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:d.jsxs("g",{id:"volume_up",children:[d.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:d.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),d.jsx("g",{mask:"url(#mask0_1483_75386)",children:d.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"})})]})}),K7=e=>d.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:d.jsxs("g",{id:"volume_mute",children:[d.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:d.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),d.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[d.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"}),d.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),Qc=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),i=t>0?`${t}:`:"",o=t>0?n.toString().padStart(2,"0"):n.toString(),a=r.toString().padStart(2,"0");return`${i}${o}:${a}`},Q7=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:i,handleProgressChange:o,handleVolumeChange:a,onFullScreenClick:l,showToolbar:u})=>{const[f,h]=j.useState(.5),[p,y]=j.useState(!1),[g,b]=j.useState(.5),_=(S,k)=>{const P=Array.isArray(k)?k[0]:k;h(P),a(S,P),p&&y(!1)},C=()=>{p?(h(g),a(new Event("input"),g)):(b(f),h(0),a(new Event("input"),0)),y(!p)};return d.jsxs(z,{children:[(!u||t)&&d.jsx(ov,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:o,size:"small",value:r}),d.jsxs(J7,{align:"center",direction:"row",showToolbar:u||t,children:[d.jsx(nv,{onClick:n,size:"small",children:e?d.jsx(ko,{}):d.jsx(_a,{})}),d.jsxs(sv,{direction:"row",children:[d.jsx("span",{children:Qc(r)}),d.jsx("span",{className:"separator",children:"/"}),d.jsx("span",{className:"duration",children:Qc(i)})]}),d.jsxs(rv,{direction:"row",px:9,children:[d.jsx(pd,{className:"volume-slider",max:1,min:0,onChange:_,size:"small",step:.1,value:f}),d.jsx(ev,{onClick:C,children:p?d.jsx(tv,{children:d.jsx(K7,{})}):d.jsx(X7,{})})]}),d.jsx(iv,{"data-testid":"fullscreen-button",onClick:l,children:t?d.jsx(Z7,{}):d.jsx(q7,{})})]})]})},J7=Y(z)` +`,I8=()=>{const e=St(),{showTeachMe:t}=jt(r=>r),{setPlayingNode:n}=Co(r=>r);if(j.useEffect(()=>{var i,o;if(!e)return;(e.media_url||e.link||((i=e.properties)==null?void 0:i.link)||((o=e.properties)==null?void 0:o.media_url))&&n(e)},[n,e]),t)return d.jsx(K4,{});switch(e==null?void 0:e.node_type){case"guest":case"person":return d.jsx(r8,{});case"data_series":return d.jsx(e9,{});case"tribe_message":return d.jsx(J9,{});case"Tweet":return d.jsx(h8,{});case"topic":return d.jsx(f8,{});case"show":return d.jsx(d8,{});case"video":case"podcast":case"clip":case"twitter_space":return d.jsx(Bf,{});case"document":return d.jsx(M8,{});case"episode":return d.jsx(Z9,{},e.ref_id);case"image":return d.jsx(Q9,{});default:return d.jsx(b8,{})}},N8=j.memo(I8);var L8=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&&R8(o,n.attrs),n.text&&(o.text=""+n.text);var a="onload"in o?Uc:$8;a(o,r),o.onload||Uc(o,r),i.appendChild(o)};function R8(e,t){for(var n in t)e.setAttribute(n,t[n])}function Uc(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 $8(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var z8=function(t){return B8(t)&&!F8(t)};function B8(e){return!!e&&typeof e=="object"}function F8(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||V8(e)}var H8=typeof Symbol=="function"&&Symbol.for,Y8=H8?Symbol.for("react.element"):60103;function V8(e){return e.$$typeof===Y8}function U8(e){return Array.isArray(e)?[]:{}}function fi(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Pr(U8(e),e,t):e}function W8(e,t,n){return e.concat(t).map(function(r){return fi(r,n)})}function G8(e,t){if(!t.customMerge)return Pr;var n=t.customMerge(e);return typeof n=="function"?n:Pr}function Z8(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Wc(e){return Object.keys(e).concat(Z8(e))}function Ff(e,t){try{return t in e}catch{return!1}}function q8(e,t){return Ff(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function X8(e,t,n){var r={};return n.isMergeableObject(e)&&Wc(e).forEach(function(i){r[i]=fi(e[i],n)}),Wc(t).forEach(function(i){q8(e,i)||(Ff(e,i)&&n.isMergeableObject(t[i])?r[i]=G8(i,n)(e[i],t[i],n):r[i]=fi(t[i],n))}),r}function Pr(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||W8,n.isMergeableObject=n.isMergeableObject||z8,n.cloneUnlessOtherwiseSpecified=fi;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):X8(e,t,n):fi(t,n)}Pr.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Pr(r,i,n)},{})};var K8=Pr,Hf=K8,Q8=Object.create,Do=Object.defineProperty,J8=Object.getOwnPropertyDescriptor,eb=Object.getOwnPropertyNames,tb=Object.getPrototypeOf,nb=Object.prototype.hasOwnProperty,rb=(e,t)=>{for(var n in t)Do(e,n,{get:t[n],enumerable:!0})},Yf=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eb(t))!nb.call(e,i)&&i!==n&&Do(e,i,{get:()=>t[i],enumerable:!(r=J8(t,i))||r.enumerable});return e},Va=(e,t,n)=>(n=e!=null?Q8(tb(e)):{},Yf(t||!e||!e.__esModule?Do(n,"default",{value:e,enumerable:!0}):n,e)),ib=e=>Yf(Do({},"__esModule",{value:!0}),e),Vf={};rb(Vf,{callPlayer:()=>bb,getConfig:()=>xb,getSDK:()=>yb,isBlobUrl:()=>_b,isMediaStream:()=>vb,lazy:()=>lb,omit:()=>wb,parseEndTime:()=>pb,parseStartTime:()=>hb,queryString:()=>gb,randomString:()=>mb,supportsWebKitPresentationMode:()=>Sb});var Io=ib(Vf),ob=Va(j),sb=Va(L8),ab=Va(Hf);const lb=e=>ob.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),cb=/[?&#](?:start|t)=([0-9hms]+)/,ub=/[?&#]end=([0-9hms]+)/,ta=/(\d+)(h|m|s)/g,db=/^\d+$/;function Uf(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(ta))return fb(r);if(db.test(r))return parseInt(r)}}function fb(e){let t=0,n=ta.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=ta.exec(e)}return t}function hb(e){return Uf(e,cb)}function pb(e){return Uf(e,ub)}function mb(){return Math.random().toString(36).substr(2,5)}function gb(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Ss(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 ur={},yb=function(t,n,r=null,i=()=>!0,o=sb.default){const a=Ss(n);return a&&i(a)?Promise.resolve(a):new Promise((l,u)=>{if(ur[t]){ur[t].push({resolve:l,reject:u});return}ur[t]=[{resolve:l,reject:u}];const f=h=>{ur[t].forEach(p=>p.resolve(h))};if(r){const h=window[r];window[r]=function(){h&&h(),f(Ss(n))}}o(t,h=>{h?(ur[t].forEach(p=>p.reject(h)),ur[t]=null):r||f(Ss(n))})})};function xb(e,t){return(0,ab.default)(t.config,e.config)}function wb(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 bb(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 vb(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function _b(e){return/^blob:/.test(e)}function Sb(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Ua=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,kb=Object.getOwnPropertyNames,Eb=Object.prototype.hasOwnProperty,Pb=(e,t)=>{for(var n in t)Ua(e,n,{get:t[n],enumerable:!0})},Mb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of kb(t))!Eb.call(e,i)&&i!==n&&Ua(e,i,{get:()=>t[i],enumerable:!(r=Cb(t,i))||r.enumerable});return e},jb=e=>Mb(Ua({},"__esModule",{value:!0}),e),Wf={};Pb(Wf,{AUDIO_EXTENSIONS:()=>Wa,DASH_EXTENSIONS:()=>oh,FLV_EXTENSIONS:()=>sh,HLS_EXTENSIONS:()=>Za,MATCH_URL_DAILYMOTION:()=>th,MATCH_URL_FACEBOOK:()=>qf,MATCH_URL_FACEBOOK_WATCH:()=>Xf,MATCH_URL_KALTURA:()=>ih,MATCH_URL_MIXCLOUD:()=>nh,MATCH_URL_SOUNDCLOUD:()=>Gf,MATCH_URL_STREAMABLE:()=>Kf,MATCH_URL_TWITCH_CHANNEL:()=>eh,MATCH_URL_TWITCH_VIDEO:()=>Jf,MATCH_URL_VIDYARD:()=>rh,MATCH_URL_VIMEO:()=>Zf,MATCH_URL_WISTIA:()=>Qf,MATCH_URL_YOUTUBE:()=>na,VIDEO_EXTENSIONS:()=>Ga,canPlay:()=>Ob});var Tb=jb(Wf),Gc=Io;const na=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Gf=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Zf=/vimeo\.com\/(?!progressive_redirect).+/,qf=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,Xf=/^https?:\/\/fb\.watch\/.+$/,Kf=/streamable\.com\/([a-z0-9]+)$/,Qf=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,Jf=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,eh=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,th=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,nh=/mixcloud\.com\/([^/]+\/[^/]+)/,rh=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,ih=/^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-_].*)$/,Wa=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Ga=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Za=/\.(m3u8)($|\?)/i,oh=/\.(mpd)($|\?)/i,sh=/\.(flv)($|\?)/i,ra=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&ra(t)||ra(t.src))return!0;return!1}return(0,Gc.isMediaStream)(e)||(0,Gc.isBlobUrl)(e)?!0:Wa.test(e)||Ga.test(e)||Za.test(e)||oh.test(e)||sh.test(e)},Ob={youtube:e=>e instanceof Array?e.every(t=>na.test(t)):na.test(e),soundcloud:e=>Gf.test(e)&&!Wa.test(e),vimeo:e=>Zf.test(e)&&!Ga.test(e)&&!Za.test(e),facebook:e=>qf.test(e)||Xf.test(e),streamable:e=>Kf.test(e),wistia:e=>Qf.test(e),twitch:e=>Jf.test(e)||eh.test(e),dailymotion:e=>th.test(e),mixcloud:e=>nh.test(e),vidyard:e=>rh.test(e),kaltura:e=>ih.test(e),file:ra};var qa=Object.defineProperty,Ab=Object.getOwnPropertyDescriptor,Db=Object.getOwnPropertyNames,Ib=Object.prototype.hasOwnProperty,Nb=(e,t)=>{for(var n in t)qa(e,n,{get:t[n],enumerable:!0})},Lb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Db(t))!Ib.call(e,i)&&i!==n&&qa(e,i,{get:()=>t[i],enumerable:!(r=Ab(t,i))||r.enumerable});return e},Rb=e=>Lb(qa({},"__esModule",{value:!0}),e),ah={};Nb(ah,{default:()=>zb});var $b=Rb(ah),Ot=Io,kt=Tb,zb=[{key:"youtube",name:"YouTube",canPlay:kt.canPlay.youtube,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./YouTube-428d556d.js").then(e=>e.Y),["assets/YouTube-428d556d.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:kt.canPlay.soundcloud,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./SoundCloud-ee811b20.js").then(e=>e.S),["assets/SoundCloud-ee811b20.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:kt.canPlay.vimeo,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Vimeo-419ed721.js").then(e=>e.V),["assets/Vimeo-419ed721.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:kt.canPlay.facebook,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Facebook-0de19648.js").then(e=>e.F),["assets/Facebook-0de19648.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:kt.canPlay.streamable,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Streamable-8221bfb2.js").then(e=>e.S),["assets/Streamable-8221bfb2.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:kt.canPlay.wistia,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Wistia-8bf2d10e.js").then(e=>e.W),["assets/Wistia-8bf2d10e.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:kt.canPlay.twitch,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Twitch-98af79fd.js").then(e=>e.T),["assets/Twitch-98af79fd.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:kt.canPlay.dailymotion,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./DailyMotion-7c9c0de0.js").then(e=>e.D),["assets/DailyMotion-7c9c0de0.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:kt.canPlay.mixcloud,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Mixcloud-9440ad5a.js").then(e=>e.M),["assets/Mixcloud-9440ad5a.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:kt.canPlay.vidyard,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Vidyard-3a2b019c.js").then(e=>e.V),["assets/Vidyard-3a2b019c.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:kt.canPlay.kaltura,lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./Kaltura-5be0ceb6.js").then(e=>e.K),["assets/Kaltura-5be0ceb6.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:kt.canPlay.file,canEnablePIP:e=>kt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,Ot.supportsWebKitPresentationMode)())&&!kt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,Ot.lazy)(()=>At(()=>import("./FilePlayer-3efebf4b.js").then(e=>e.F),["assets/FilePlayer-3efebf4b.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]))}],Zc=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Bb(e,t){return!!(e===t||Zc(e)&&Zc(t))}function Fb(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)No(e,n,{get:t[n],enumerable:!0})},ch=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Kb(t))!Jb.call(e,i)&&i!==n&&No(e,i,{get:()=>t[i],enumerable:!(r=Xb(t,i))||r.enumerable});return e},t7=(e,t,n)=>(n=e!=null?qb(Qb(e)):{},ch(t||!e||!e.__esModule?No(n,"default",{value:e,enumerable:!0}):n,e)),n7=e=>ch(No({},"__esModule",{value:!0}),e),uh={};e7(uh,{defaultProps:()=>o7,propTypes:()=>i7});var dh=n7(uh),r7=t7(qm);const{string:xt,bool:wt,number:dr,array:Cs,oneOfType:Qr,shape:Lt,object:bt,func:at,node:qc}=r7.default,i7={url:Qr([xt,Cs,bt]),playing:wt,loop:wt,controls:wt,volume:dr,muted:wt,playbackRate:dr,width:Qr([xt,dr]),height:Qr([xt,dr]),style:bt,progressInterval:dr,playsinline:wt,pip:wt,stopOnUnmount:wt,light:Qr([wt,xt,bt]),playIcon:qc,previewTabIndex:dr,fallback:qc,oEmbedUrl:xt,wrapper:Qr([xt,at,Lt({render:at.isRequired})]),config:Lt({soundcloud:Lt({options:bt}),youtube:Lt({playerVars:bt,embedOptions:bt,onUnstarted:at}),facebook:Lt({appId:xt,version:xt,playerId:xt,attributes:bt}),dailymotion:Lt({params:bt}),vimeo:Lt({playerOptions:bt,title:xt}),file:Lt({attributes:bt,tracks:Cs,forceVideo:wt,forceAudio:wt,forceHLS:wt,forceSafariHLS:wt,forceDisableHls:wt,forceDASH:wt,forceFLV:wt,hlsOptions:bt,hlsVersion:xt,dashVersion:xt,flvVersion:xt}),wistia:Lt({options:bt,playerId:xt,customControls:Cs}),mixcloud:Lt({options:bt}),twitch:Lt({options:bt,playerId:xt}),vidyard:Lt({options:bt})}),onReady:at,onStart:at,onPlay:at,onPause:at,onBuffer:at,onBufferEnd:at,onEnded:at,onError:at,onDuration:at,onSeek:at,onPlaybackRateChange:at,onPlaybackQualityChange:at,onProgress:at,onClickPreview:at,onEnablePIP:at,onDisablePIP:at},ct=()=>{},o7={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:ct},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:ct,onStart:ct,onPlay:ct,onPause:ct,onBuffer:ct,onBufferEnd:ct,onEnded:ct,onError:ct,onDuration:ct,onSeek:ct,onPlaybackRateChange:ct,onPlaybackQualityChange:ct,onProgress:ct,onClickPreview:ct,onEnablePIP:ct,onDisablePIP:ct};var s7=Object.create,wi=Object.defineProperty,a7=Object.getOwnPropertyDescriptor,l7=Object.getOwnPropertyNames,c7=Object.getPrototypeOf,u7=Object.prototype.hasOwnProperty,d7=(e,t,n)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f7=(e,t)=>{for(var n in t)wi(e,n,{get:t[n],enumerable:!0})},fh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of l7(t))!u7.call(e,i)&&i!==n&&wi(e,i,{get:()=>t[i],enumerable:!(r=a7(t,i))||r.enumerable});return e},hh=(e,t,n)=>(n=e!=null?s7(c7(e)):{},fh(t||!e||!e.__esModule?wi(n,"default",{value:e,enumerable:!0}):n,e)),h7=e=>fh(wi({},"__esModule",{value:!0}),e),rt=(e,t,n)=>(d7(e,typeof t!="symbol"?t+"":t,n),n),ph={};f7(ph,{default:()=>Lo});var p7=h7(ph),Xc=hh(j),m7=hh(lh),mh=dh,g7=Io;const y7=5e3;class Lo extends Xc.Component{constructor(){super(...arguments),rt(this,"mounted",!1),rt(this,"isReady",!1),rt(this,"isPlaying",!1),rt(this,"isLoading",!0),rt(this,"loadOnReady",null),rt(this,"startOnPlay",!0),rt(this,"seekOnPlay",null),rt(this,"onDurationCalled",!1),rt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),rt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),rt(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)}),rt(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()}),rt(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()}),rt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),rt(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),rt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),rt(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)}),rt(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:a,pip:l,loop:u,activePlayer:f,disableDeferredLoading:h}=this.props;if(!(0,m7.default)(t.url,n)){if(this.isLoading&&!f.forceLoad&&!h&&!(0,g7.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&&l&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!l&&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!==a&&this.player.setPlaybackRate&&this.player.setPlaybackRate(a),t.loop!==u&&this.player.setLoop&&this.player.setLoop(u)}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},y7));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?Xc.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}}rt(Lo,"displayName","Player");rt(Lo,"propTypes",mh.propTypes);rt(Lo,"defaultProps",mh.defaultProps);var x7=Object.create,bi=Object.defineProperty,w7=Object.getOwnPropertyDescriptor,b7=Object.getOwnPropertyNames,v7=Object.getPrototypeOf,_7=Object.prototype.hasOwnProperty,S7=(e,t,n)=>t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C7=(e,t)=>{for(var n in t)bi(e,n,{get:t[n],enumerable:!0})},gh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of b7(t))!_7.call(e,i)&&i!==n&&bi(e,i,{get:()=>t[i],enumerable:!(r=w7(t,i))||r.enumerable});return e},vi=(e,t,n)=>(n=e!=null?x7(v7(e)):{},gh(t||!e||!e.__esModule?bi(n,"default",{value:e,enumerable:!0}):n,e)),k7=e=>gh(bi({},"__esModule",{value:!0}),e),nt=(e,t,n)=>(S7(e,typeof t!="symbol"?t+"":t,n),n),yh={};C7(yh,{createReactPlayer:()=>I7});var E7=k7(yh),pr=vi(j),P7=vi(Hf),ks=vi(Vb),Kc=vi(lh),ni=dh,xh=Io,M7=vi(p7);const j7=(0,xh.lazy)(()=>At(()=>import("./Preview-916b493a.js").then(e=>e.P),["assets/Preview-916b493a.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"])),T7=typeof window<"u"&&window.document,O7=typeof mt<"u"&&mt.window&&mt.window.document,A7=Object.keys(ni.propTypes),D7=T7||O7?pr.Suspense:()=>null,Jr=[],I7=(e,t)=>{var n;return n=class extends pr.Component{constructor(){super(...arguments),nt(this,"state",{showPreview:!!this.props.light}),nt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),nt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),nt(this,"showPreview",()=>{this.setState({showPreview:!0})}),nt(this,"getDuration",()=>this.player?this.player.getDuration():null),nt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),nt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),nt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),nt(this,"seekTo",(r,i,o)=>{if(!this.player)return null;this.player.seekTo(r,i,o)}),nt(this,"handleReady",()=>{this.props.onReady(this)}),nt(this,"getActivePlayer",(0,ks.default)(r=>{for(const i of[...Jr,...e])if(i.canPlay(r))return i;return t||null})),nt(this,"getConfig",(0,ks.default)((r,i)=>{const{config:o}=this.props;return P7.default.all([ni.defaultProps.config,ni.defaultProps.config[i]||{},o,o[i]||{}])})),nt(this,"getAttributes",(0,ks.default)(r=>(0,xh.omit)(this.props,A7))),nt(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const o=this.getConfig(r,i.key);return pr.default.createElement(M7.default,{...this.props,key:i.key,ref:this.references.player,config:o,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Kc.default)(this.props,r)||!(0,Kc.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:a,oEmbedUrl:l}=this.props;return pr.default.createElement(j7,{url:r,light:i,playIcon:o,previewTabIndex:a,oEmbedUrl:l,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:o,height:a,fallback:l,wrapper:u}=this.props,{showPreview:f}=this.state,h=this.getAttributes(r),p=typeof u=="string"?this.references.wrapper:void 0;return pr.default.createElement(u,{ref:p,style:{...i,width:o,height:a},...h},pr.default.createElement(D7,{fallback:l},f?this.renderPreview(r):this.renderActivePlayer(r)))}},nt(n,"displayName","ReactPlayer"),nt(n,"propTypes",ni.propTypes),nt(n,"defaultProps",ni.defaultProps),nt(n,"addCustomPlayer",r=>{Jr.push(r)}),nt(n,"removeCustomPlayers",()=>{Jr.length=0}),nt(n,"canPlay",r=>{for(const i of[...Jr,...e])if(i.canPlay(r))return!0;return!1}),nt(n,"canEnablePIP",r=>{for(const i of[...Jr,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var N7=Object.create,Ro=Object.defineProperty,L7=Object.getOwnPropertyDescriptor,R7=Object.getOwnPropertyNames,$7=Object.getPrototypeOf,z7=Object.prototype.hasOwnProperty,B7=(e,t)=>{for(var n in t)Ro(e,n,{get:t[n],enumerable:!0})},wh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of R7(t))!z7.call(e,i)&&i!==n&&Ro(e,i,{get:()=>t[i],enumerable:!(r=L7(t,i))||r.enumerable});return e},F7=(e,t,n)=>(n=e!=null?N7($7(e)):{},wh(t||!e||!e.__esModule?Ro(n,"default",{value:e,enumerable:!0}):n,e)),H7=e=>wh(Ro({},"__esModule",{value:!0}),e),bh={};B7(bh,{default:()=>W7});var Y7=H7(bh),ia=F7($b),V7=E7;const U7=ia.default[ia.default.length-1];var W7=(0,V7.createReactPlayer)(ia.default,U7);const G7=ya(Y7),Z7=e=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[d.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:d.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),d.jsx("g",{mask:"url(#mask0_4160_9271)",children:d.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),q7=e=>d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[d.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:d.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),d.jsx("g",{mask:"url(#mask0_3130_18463)",children:d.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"})})]}),X7=e=>d.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:d.jsxs("g",{id:"volume_up",children:[d.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:d.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),d.jsx("g",{mask:"url(#mask0_1483_75386)",children:d.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"})})]})}),K7=e=>d.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:d.jsxs("g",{id:"volume_mute",children:[d.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:d.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),d.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[d.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"}),d.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),Qc=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),i=t>0?`${t}:`:"",o=t>0?n.toString().padStart(2,"0"):n.toString(),a=r.toString().padStart(2,"0");return`${i}${o}:${a}`},Q7=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:i,handleProgressChange:o,handleVolumeChange:a,onFullScreenClick:l,showToolbar:u})=>{const[f,h]=j.useState(.5),[p,y]=j.useState(!1),[g,b]=j.useState(.5),_=(S,k)=>{const P=Array.isArray(k)?k[0]:k;h(P),a(S,P),p&&y(!1)},C=()=>{p?(h(g),a(new Event("input"),g)):(b(f),h(0),a(new Event("input"),0)),y(!p)};return d.jsxs(z,{children:[(!u||t)&&d.jsx(ov,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:o,size:"small",value:r}),d.jsxs(J7,{align:"center",direction:"row",showToolbar:u||t,children:[d.jsx(nv,{onClick:n,size:"small",children:e?d.jsx(ko,{}):d.jsx(_a,{})}),d.jsxs(sv,{direction:"row",children:[d.jsx("span",{children:Qc(r)}),d.jsx("span",{className:"separator",children:"/"}),d.jsx("span",{className:"duration",children:Qc(i)})]}),d.jsxs(rv,{direction:"row",px:9,children:[d.jsx(pd,{className:"volume-slider",max:1,min:0,onChange:_,size:"small",step:.1,value:f}),d.jsx(ev,{onClick:C,children:p?d.jsx(tv,{children:d.jsx(K7,{})}):d.jsx(X7,{})})]}),d.jsx(iv,{"data-testid":"fullscreen-button",onClick:l,children:t?d.jsx(Z7,{}):d.jsx(q7,{})})]})]})},J7=Y(z)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` diff --git a/build/assets/index-c22082f7.js b/build/assets/index-a7cfca89.js similarity index 99% rename from build/assets/index-c22082f7.js rename to build/assets/index-a7cfca89.js index de5d0298c..166091564 100644 --- a/build/assets/index-c22082f7.js +++ b/build/assets/index-a7cfca89.js @@ -690,4 +690,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-853fe2a2.js").then(o=>o.b8),["assets/index-853fe2a2.js","assets/index-b60658ac.css"]).then(({App:o})=>({default:o}))),AppContainer=()=>{const o=jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:o,path:"/"}),jsxRuntimeExports.jsx(Route,{element:o,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:o,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,useTheme$3 as A,defaultTheme$1 as B,formatMuiErrorMessage as C,useTheme as D,rootShouldForwardProp as E,resolveProps as F,Global as G,css as H,slotShouldForwardProp as I,lighten as J,darken as K,getDefaultExportFromCjs as L,useDataStore as M,useUserStore as N,useGraphStore as O,PropTypes as P,styled$3 as Q,React as R,colors as S,THEME_ID as T,Flex as U,graphStyles as V,We as W,clsx as X,create$3 as Y,devtools as Z,_objectWithoutPropertiesLoose as _,_extends$1 as a,hooks as a$,LinearProgress$1 as a0,useSelectedNode as a1,useUpdateSelectedNode as a2,useAppStore as a3,useFeatureFlagStore as a4,Text as a5,SocketContext as a6,__vitePreload as a7,media as a8,Stats as a9,_baseGetTag as aA,isObjectLike_1 as aB,isArray_1 as aC,_MapCache as aD,_Symbol as aE,isObject$b as aF,isFunction$3 as aG,_Uint8Array as aH,eq_1 as aI,_getAllKeys as aJ,_Stack as aK,_getTag as aL,isBufferExports as aM,isTypedArray_1 as aN,isObject_1 as aO,keys_1 as aP,isArguments_1 as aQ,_isIndex as aR,isLength_1 as aS,_Set as aT,_arrayPush as aU,isArrayLike_1 as aV,_baseUnary as aW,_defineProperty$1 as aX,_root as aY,_getPrototype as aZ,_baseAssignValue as a_,RSS as aa,TWITTER_HANDLE as ab,YOUTUBE_CHANNEL as ac,useModal as ad,getNodeContent as ae,Ce as af,distExports$1 as ag,approveRadarData as ah,deleteRadarData as ai,getRadarData as aj,lodashExports as ak,putRadarData as al,getTopicsData as am,Ue as an,getEdgeTypes as ao,getEdges as ap,postEdgeType as aq,requiredRule as ar,putNodeData as as,postMergeTopics as at,isSphinx as au,postAboutData as av,isE2E as aw,api$1 as ax,getLSat as ay,payLsat as az,createTheme$1 as b,updateBudget as b0,useSearchParams as b1,useAiSummaryStore as b2,isDevelopment as b3,useNavigate as b4,getAboutData as b5,useSelectedNodeRelativeIds as b6,forceSimulation as b7,forceCollide as b8,forceCenter as b9,DOCUMENT as bA,formatBudget as bB,getPriceData as bC,NODE_ADD_ERROR as bD,sphinxBridge as bE,getNodeType as bF,getNodeSchemaTypes as bG,deleteNode as bH,changeNodeType as bI,updateEdgeType as bJ,postBluePrintType as bK,deleteEdgeType as bL,createRoot as bM,react as bN,GRAPH_GROUND_COLOR as bO,GRAPH_LIGHT_INTENSITY as bP,GRAPH_FOG_COLOR as bQ,forceManyBody as ba,forceLink as bb,NODE_RELATIVE_HIGHLIGHT_COLORS as bc,useNodeTypes as bd,lottie as be,fetchNodeEdges as bf,NodesIcon as bg,addToGlobalForE2e as bh,executeIfProd as bi,Timer as bj,useFilteredNodes as bk,commonjsGlobal as bl,commonjsRequire as bm,useSyncExternalStoreExports as bn,createStore as bo,dispatch as bp,timer as bq,now as br,getFullTranscript as bs,getAugmentedNamespace as bt,propTypesExports as bu,useHasAiChats as bv,getSchemaAll as bw,LINK as bx,TWITTER_SOURCE as by,WEB_PAGE as bz,createStyled as c,defaultSxConfig$1 as d,useThemeProps$1 as e,resolveBreakpointValues as f,createUnarySpacing as g,handleBreakpoints as h,isPlainObject as i,jsxRuntimeExports as j,deepmerge as k,getValue as l,mergeBreakpointsInOrder as m,composeClasses as n,generateUtilityClass as o,generateUtilityClasses as p,capitalize as q,reactExports as r,styled$1 as s,useThemeProps as t,useTheme$2 as u,clsx$1 as v,ReactDOM as w,alpha as x,keyframes as y,reactDomExports as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-ca972e6a.js").then(o=>o.b8),["assets/index-ca972e6a.js","assets/index-b60658ac.css"]).then(({App:o})=>({default:o}))),AppContainer=()=>{const o=jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:o,path:"/"}),jsxRuntimeExports.jsx(Route,{element:o,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:o,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,useTheme$3 as A,defaultTheme$1 as B,formatMuiErrorMessage as C,useTheme as D,rootShouldForwardProp as E,resolveProps as F,Global as G,css as H,slotShouldForwardProp as I,lighten as J,darken as K,getDefaultExportFromCjs as L,useDataStore as M,useUserStore as N,useGraphStore as O,PropTypes as P,styled$3 as Q,React as R,colors as S,THEME_ID as T,Flex as U,graphStyles as V,We as W,clsx as X,create$3 as Y,devtools as Z,_objectWithoutPropertiesLoose as _,_extends$1 as a,hooks as a$,LinearProgress$1 as a0,useSelectedNode as a1,useUpdateSelectedNode as a2,useAppStore as a3,useFeatureFlagStore as a4,Text as a5,SocketContext as a6,__vitePreload as a7,media as a8,Stats as a9,_baseGetTag as aA,isObjectLike_1 as aB,isArray_1 as aC,_MapCache as aD,_Symbol as aE,isObject$b as aF,isFunction$3 as aG,_Uint8Array as aH,eq_1 as aI,_getAllKeys as aJ,_Stack as aK,_getTag as aL,isBufferExports as aM,isTypedArray_1 as aN,isObject_1 as aO,keys_1 as aP,isArguments_1 as aQ,_isIndex as aR,isLength_1 as aS,_Set as aT,_arrayPush as aU,isArrayLike_1 as aV,_baseUnary as aW,_defineProperty$1 as aX,_root as aY,_getPrototype as aZ,_baseAssignValue as a_,RSS as aa,TWITTER_HANDLE as ab,YOUTUBE_CHANNEL as ac,useModal as ad,getNodeContent as ae,Ce as af,distExports$1 as ag,approveRadarData as ah,deleteRadarData as ai,getRadarData as aj,lodashExports as ak,putRadarData as al,getTopicsData as am,Ue as an,getEdgeTypes as ao,getEdges as ap,postEdgeType as aq,requiredRule as ar,putNodeData as as,postMergeTopics as at,isSphinx as au,postAboutData as av,isE2E as aw,api$1 as ax,getLSat as ay,payLsat as az,createTheme$1 as b,updateBudget as b0,useSearchParams as b1,useAiSummaryStore as b2,isDevelopment as b3,useNavigate as b4,getAboutData as b5,useSelectedNodeRelativeIds as b6,forceSimulation as b7,forceCollide as b8,forceCenter as b9,DOCUMENT as bA,formatBudget as bB,getPriceData as bC,NODE_ADD_ERROR as bD,sphinxBridge as bE,getNodeType as bF,getNodeSchemaTypes as bG,deleteNode as bH,changeNodeType as bI,updateEdgeType as bJ,postBluePrintType as bK,deleteEdgeType as bL,createRoot as bM,react as bN,GRAPH_GROUND_COLOR as bO,GRAPH_LIGHT_INTENSITY as bP,GRAPH_FOG_COLOR as bQ,forceManyBody as ba,forceLink as bb,NODE_RELATIVE_HIGHLIGHT_COLORS as bc,useNodeTypes as bd,lottie as be,fetchNodeEdges as bf,NodesIcon as bg,addToGlobalForE2e as bh,executeIfProd as bi,Timer as bj,useFilteredNodes as bk,commonjsGlobal as bl,commonjsRequire as bm,useSyncExternalStoreExports as bn,createStore as bo,dispatch as bp,timer as bq,now as br,getFullTranscript as bs,getAugmentedNamespace as bt,propTypesExports as bu,useHasAiChats as bv,getSchemaAll as bw,LINK as bx,TWITTER_SOURCE as by,WEB_PAGE as bz,createStyled as c,defaultSxConfig$1 as d,useThemeProps$1 as e,resolveBreakpointValues as f,createUnarySpacing as g,handleBreakpoints as h,isPlainObject as i,jsxRuntimeExports as j,deepmerge as k,getValue as l,mergeBreakpointsInOrder as m,composeClasses as n,generateUtilityClass as o,generateUtilityClasses as p,capitalize as q,reactExports as r,styled$1 as s,useThemeProps as t,useTheme$2 as u,clsx$1 as v,ReactDOM as w,alpha as x,keyframes as y,reactDomExports as z}; diff --git a/build/assets/index-33a859bc.js b/build/assets/index-b7bfdabb.js similarity index 98% rename from build/assets/index-33a859bc.js rename to build/assets/index-b7bfdabb.js index 25fc3563b..633c4ce43 100644 --- a/build/assets/index-33a859bc.js +++ b/build/assets/index-b7bfdabb.js @@ -1,4 +1,4 @@ -import{Q as v,S as q,a5 as P,U as r,r as u,j as e,ar as H,bF as U,a4 as J,a1 as $,bG as K,ad as D,bD as O,am as Q,bI as X}from"./index-c22082f7.js";import{ae as G,aF as V,aK as Z,B as _,aP as W,af as N,aG as ee,ag as te}from"./index-853fe2a2.js";import{p as Y}from"./index-bbc7c996.js";import{c as ne}from"./index-64f1c910.js";import"./three.module-a2e04964.js";const re=({handleSelectType:i,skipToStep:x,nodeType:d,selectedValues:n})=>{const[h,w]=u.useState(!1),[f,C]=u.useState(),{watch:j,formState:{isValid:t}}=G();u.useEffect(()=>{(async()=>{w(!0);const b=await U(d),m=Y(b);C(m),w(!1)})()},[d,j]);const o=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),c=(f?[...f].sort((a,b)=>a.required&&!b.required?-1:!a.required&&b.required?1:0):[]).filter(a=>!!(a.required&&!Object.values(n).includes(a.key))),S=()=>{i(""),x("sourceType")};return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(oe,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(V,{color:q.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:c==null?void 0:c.map(({key:a,required:b})=>e.jsx(e.Fragment,{children:e.jsxs(se,{children:[e.jsx(P,{children:o(a)}),e.jsx(Z,{id:"item-name",maxLength:50,name:a,placeholder:b?"Required":"Optional",rules:{...b?H:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(_,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(_,{color:"secondary",disabled:!t||h||(c==null?void 0:c.some(a=>a.required&&!j(a.key))),onClick:()=>x("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(P)` +import{Q as v,S as q,a5 as P,U as r,r as u,j as e,ar as H,bF as U,a4 as J,a1 as $,bG as K,ad as D,bD as O,am as Q,bI as X}from"./index-a7cfca89.js";import{ae as G,aF as V,aK as Z,B as _,aP as W,af as N,aG as ee,ag as te}from"./index-ca972e6a.js";import{p as Y}from"./index-bbc7c996.js";import{c as ne}from"./index-64f1c910.js";import"./three.module-a2e04964.js";const re=({handleSelectType:i,skipToStep:x,nodeType:d,selectedValues:n})=>{const[h,w]=u.useState(!1),[f,C]=u.useState(),{watch:j,formState:{isValid:t}}=G();u.useEffect(()=>{(async()=>{w(!0);const b=await U(d),m=Y(b);C(m),w(!1)})()},[d,j]);const o=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),c=(f?[...f].sort((a,b)=>a.required&&!b.required?-1:!a.required&&b.required?1:0):[]).filter(a=>!!(a.required&&!Object.values(n).includes(a.key))),S=()=>{i(""),x("sourceType")};return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(oe,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(V,{color:q.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:c==null?void 0:c.map(({key:a,required:b})=>e.jsx(e.Fragment,{children:e.jsxs(se,{children:[e.jsx(P,{children:o(a)}),e.jsx(Z,{id:"item-name",maxLength:50,name:a,placeholder:b?"Required":"Optional",rules:{...b?H:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(_,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(_,{color:"secondary",disabled:!t||h||(c==null?void 0:c.some(a=>a.required&&!j(a.key))),onClick:()=>x("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(P)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-41ef07e4.js b/build/assets/index-be35b204.js similarity index 94% rename from build/assets/index-41ef07e4.js rename to build/assets/index-be35b204.js index 79b8c867b..600dbb731 100644 --- a/build/assets/index-41ef07e4.js +++ b/build/assets/index-be35b204.js @@ -1,4 +1,4 @@ -import{j as e,Q as i,S as t,U as c,ad as y,r as l,O as S,M as b,a1 as M,am as $,bH as D}from"./index-c22082f7.js";import{aF as R,B as j,aG as I}from"./index-853fe2a2.js";import{S as z}from"./Skeleton-f93ae829.js";const A=d=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),e.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),e.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),E=({nodeName:d})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(T,{children:e.jsx(A,{})}),e.jsxs(G,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),G=i(c)` +import{j as e,Q as i,S as t,U as c,ad as y,r as l,O as S,M as b,a1 as M,am as $,bH as D}from"./index-a7cfca89.js";import{aF as R,B as j,aG as I}from"./index-ca972e6a.js";import{S as z}from"./Skeleton-6f749099.js";const A=d=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),e.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),e.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),E=({nodeName:d})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(T,{children:e.jsx(A,{})}),e.jsxs(G,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),G=i(c)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-9e4a45d3.js b/build/assets/index-c62153d7.js similarity index 99% rename from build/assets/index-9e4a45d3.js rename to build/assets/index-c62153d7.js index 718888406..4e7c60171 100644 --- a/build/assets/index-9e4a45d3.js +++ b/build/assets/index-c62153d7.js @@ -1,4 +1,4 @@ -import{r as b,a as $a,j as M,R as Zr,Y as du,Q as je,S as Fe,U as Ys,M as kn,N as fu,a3 as bo,b2 as Qd,b5 as Kd,a1 as Jt,O as nt,b6 as Eo,X as Jd,b7 as ef,b8 as tf,b9 as sf,ba as nf,bb as rf,bc as of,bd as af,be as cf,ad as $o,bf as lf,bg as uf,ak as hf,bh as df,b3 as ff}from"./index-c22082f7.js";import{u as ge,a as Qa,e as Ka,b as wt,L as pf,c as mf,d as _f,m as gf,f as vf,g as yf,h as pu,H as dr,t as mu,T as xf,i as Tf,j as kf,D as wf,C as Sf,P as Cf,k as bf}from"./index-653e9ffc.js";import{D as br,F as Ef,V as K,a as Ne,T as Oo,b as Of,C as ds,W as Af,c as Mf,E as Ja,d as Tt,N as Zn,e as Df,B as ci,U as _s,M as Rf,f as Pf,g as If,h as Nf,i as Ff,j as Er,k as Ri,S as es,l as Uf,m as $,R as Lf,n as ks,o as ka,P as _u,p as ec,q as tl,r as zf,L as Xr,s as Bf,t as gu,u as vu,v as yu,w as xu,x as sl,y as Vf,z as jf,A as Or,H as Hf,G as qf,I as Wf,J as Gf,K as Yf,O as Zf,Q as fr}from"./three.module-a2e04964.js";import{T as Xf,B as Tu,_ as Ue,a as jt,u as tc,b as nl,A as $f,D as Qf,c as Kf,d as Jf,M as ep,e as tp,P as sp,f as np,g as ip,h as rp,i as op,O as ap,j as cp}from"./index-853fe2a2.js";function lp(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},i=()=>e,r=(l,u=i,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:s,getState:i,subscribe:(l,u,h)=>u||h?r(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,i,c),c}const up=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),il=up?b.useEffect:b.useLayoutEffect;function hp(n){const e=typeof n=="function"?lp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(_=>_+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==i||u.current)&&(d=s(o),f=!i(h.current,d)),il(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=i,u.current=!1});const m=b.useRef(o);il(()=>{const _=()=>{try{const w=e.getState(),S=c.current(w);l.current(h.current,S)||(a.current=w,h.current=S,r())}catch{u.current=!0,r()}},v=e.subscribe(_);return e.getState()!==m.current&&_(),v},[]);const p=f?d:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let mi=0;const dp=hp(n=>(br.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-mi)/(s-mi)*100})},br.onLoad=()=>{n({active:!1})},br.onError=e=>n(t=>({errors:[...t.errors,e]})),br.onProgress=(e,t,s)=>{t===s&&(mi=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-mi)/(s-mi)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),fp=n=>`Loading ${n.toFixed(2)}%`;function pp({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:i=fp,initialState:r=o=>o}){const{active:o,progress:a}=dp(),c=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,d]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>d(o),300)),()=>clearTimeout(m)},[h,o]);const f=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(f(),()=>cancelAnimationFrame(l.current)),[f]),h?b.createElement("div",{style:{...Ar.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Ar.inner,...e}},b.createElement("div",{style:{...Ar.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Ar.data,...s}})))):null}const Ar={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}};let _i;function mp(){var n;if(_i!==void 0)return _i;try{let e;const t=document.createElement("canvas");return _i=!!(window.WebGL2RenderingContext&&(e=t.getContext("webgl2"))),e&&((n=e.getExtension("WEBGL_lose_context"))==null||n.loseContext()),_i}catch{return _i=!1}}const Qo=new Ef,Ko=new K,An=new K,It=new K,is=new K,Wt=new K,rs=new K,os=new K,gi=new K,vi=new K,yi=new K,Mr=new K,xi=new K,Ti=new K,ki=new K;class _p{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new K,this.endPoint=new K,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Qo,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){An.copy(e),An.x=Math.min(e.x,t.x),An.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),It.setFromMatrixPosition(this.camera.matrixWorld),is.copy(An),Wt.set(t.x,An.y,0),rs.copy(t),os.set(An.x,t.y,0),is.unproject(this.camera),Wt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),xi.copy(is).sub(It),Ti.copy(Wt).sub(It),ki.copy(rs).sub(It),xi.normalize(),Ti.normalize(),ki.normalize(),xi.multiplyScalar(this.deep),Ti.multiplyScalar(this.deep),ki.multiplyScalar(this.deep),xi.add(It),Ti.add(It),ki.add(It);var s=Qo.planes;s[0].setFromCoplanarPoints(It,is,Wt),s[1].setFromCoplanarPoints(It,Wt,rs),s[2].setFromCoplanarPoints(rs,os,It),s[3].setFromCoplanarPoints(os,is,It),s[4].setFromCoplanarPoints(Wt,rs,os),s[5].setFromCoplanarPoints(ki,Ti,xi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const i=Math.min(e.x,t.x),r=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);is.set(i,r,-1),Wt.set(o,r,-1),rs.set(o,a,-1),os.set(i,a,-1),gi.set(i,r,1),vi.set(o,r,1),yi.set(o,a,1),Mr.set(i,a,1),is.unproject(this.camera),Wt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),gi.unproject(this.camera),vi.unproject(this.camera),yi.unproject(this.camera),Mr.unproject(this.camera);var s=Qo.planes;s[0].setFromCoplanarPoints(is,gi,vi),s[1].setFromCoplanarPoints(Wt,vi,yi),s[2].setFromCoplanarPoints(yi,Mr,os),s[3].setFromCoplanarPoints(Mr,gi,is),s[4].setFromCoplanarPoints(Wt,rs,os),s[5].setFromCoplanarPoints(yi,vi,gi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Ko.copy(t.geometry.boundingSphere.center),Ko.applyMatrix4(t.matrixWorld),e.containsPoint(Ko)&&this.collection.push(t)),t.children.length>0)for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:f,get:m}=ge(),[p,_]=b.useState(!1),[v,w]=b.useReducer((T,{object:x,shift:k})=>x===void 0?[]:Array.isArray(x)?x:k?T.includes(x)?T.filter(C=>C!==x):[x,...T]:T[0]===x?[]:[x],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const S=b.useCallback(T=>{T.stopPropagation(),w({object:o([T.object])[0],shift:e&&T.shiftKey})},[]),y=b.useCallback(T=>!p&&w({}),[p]),g=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const T=new _p(l,g.current),x=document.createElement("div");x.style.pointerEvents="none",x.style.border=i,x.style.backgroundColor=r,x.style.position="fixed";const k=new Ne,C=new Ne,E=new Ne,O=m().events.enabled,A=d==null?void 0:d.enabled;let R=!1;function P(z,Te){const{offsetX:ae,offsetY:X}=z,{width:me,height:Ye}=f;Te.set(ae/me*2-1,-(X/Ye)*2+1)}function F(z){var Te;d&&(d.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.appendChild(x),x.style.left=`${z.clientX}px`,x.style.top=`${z.clientY}px`,x.style.width="0px",x.style.height="0px",k.x=z.clientX,k.y=z.clientY}function N(z){E.x=Math.max(k.x,z.clientX),E.y=Math.max(k.y,z.clientY),C.x=Math.min(k.x,z.clientX),C.y=Math.min(k.y,z.clientY),x.style.left=`${C.x}px`,x.style.top=`${C.y}px`,x.style.width=`${E.x-C.x}px`,x.style.height=`${E.y-C.y}px`}function U(){if(R){var z;d&&(d.enabled=A),c({enabled:O}),R=!1,(z=x.parentElement)==null||z.removeChild(x)}}function V(z){z.shiftKey&&(F(z),P(z,T.startPoint))}let B=[];function q(z){if(R){N(z),P(z,T.endPoint);const Te=T.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);gp(Te,B)||(B=Te,w({object:o(Te)}))}}function j(z){R&&U()}return document.addEventListener("pointerdown",V,{passive:!0}),document.addEventListener("pointermove",q,{passive:!0,capture:!0}),document.addEventListener("pointerup",j,{passive:!0}),()=>{document.removeEventListener("pointerdown",V),document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",j)}},[f.width,f.height,u,l,d,h]),b.createElement("group",$a({ref:g,onClick:S,onPointerOver:()=>_(!0),onPointerOut:()=>_(!1),onPointerMissed:y},a),b.createElement(vp.Provider,{value:v},t))}const rl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function cn(n,e){const t=ge(i=>i.gl),s=Qa(Oo,rl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),rl(n)){const i=Object.keys(n),r={};return i.forEach(o=>Object.assign(r,{[o]:s[i.indexOf(o)]})),r}else return s}cn.preload=n=>Qa.preload(Oo,n);cn.clear=n=>Qa.clear(Oo,n);/*! +import{r as b,a as $a,j as M,R as Zr,Y as du,Q as je,S as Fe,U as Ys,M as kn,N as fu,a3 as bo,b2 as Qd,b5 as Kd,a1 as Jt,O as nt,b6 as Eo,X as Jd,b7 as ef,b8 as tf,b9 as sf,ba as nf,bb as rf,bc as of,bd as af,be as cf,ad as $o,bf as lf,bg as uf,ak as hf,bh as df,b3 as ff}from"./index-a7cfca89.js";import{u as ge,a as Qa,e as Ka,b as wt,L as pf,c as mf,d as _f,m as gf,f as vf,g as yf,h as pu,H as dr,t as mu,T as xf,i as Tf,j as kf,D as wf,C as Sf,P as Cf,k as bf}from"./index-38264b8c.js";import{D as br,F as Ef,V as K,a as Ne,T as Oo,b as Of,C as ds,W as Af,c as Mf,E as Ja,d as Tt,N as Zn,e as Df,B as ci,U as _s,M as Rf,f as Pf,g as If,h as Nf,i as Ff,j as Er,k as Ri,S as es,l as Uf,m as $,R as Lf,n as ks,o as ka,P as _u,p as ec,q as tl,r as zf,L as Xr,s as Bf,t as gu,u as vu,v as yu,w as xu,x as sl,y as Vf,z as jf,A as Or,H as Hf,G as qf,I as Wf,J as Gf,K as Yf,O as Zf,Q as fr}from"./three.module-a2e04964.js";import{T as Xf,B as Tu,_ as Ue,a as jt,u as tc,b as nl,A as $f,D as Qf,c as Kf,d as Jf,M as ep,e as tp,P as sp,f as np,g as ip,h as rp,i as op,O as ap,j as cp}from"./index-ca972e6a.js";function lp(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},i=()=>e,r=(l,u=i,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:s,getState:i,subscribe:(l,u,h)=>u||h?r(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,i,c),c}const up=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),il=up?b.useEffect:b.useLayoutEffect;function hp(n){const e=typeof n=="function"?lp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(_=>_+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==i||u.current)&&(d=s(o),f=!i(h.current,d)),il(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=i,u.current=!1});const m=b.useRef(o);il(()=>{const _=()=>{try{const w=e.getState(),S=c.current(w);l.current(h.current,S)||(a.current=w,h.current=S,r())}catch{u.current=!0,r()}},v=e.subscribe(_);return e.getState()!==m.current&&_(),v},[]);const p=f?d:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let mi=0;const dp=hp(n=>(br.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-mi)/(s-mi)*100})},br.onLoad=()=>{n({active:!1})},br.onError=e=>n(t=>({errors:[...t.errors,e]})),br.onProgress=(e,t,s)=>{t===s&&(mi=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-mi)/(s-mi)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),fp=n=>`Loading ${n.toFixed(2)}%`;function pp({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:i=fp,initialState:r=o=>o}){const{active:o,progress:a}=dp(),c=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,d]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>d(o),300)),()=>clearTimeout(m)},[h,o]);const f=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(f(),()=>cancelAnimationFrame(l.current)),[f]),h?b.createElement("div",{style:{...Ar.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Ar.inner,...e}},b.createElement("div",{style:{...Ar.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Ar.data,...s}})))):null}const Ar={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}};let _i;function mp(){var n;if(_i!==void 0)return _i;try{let e;const t=document.createElement("canvas");return _i=!!(window.WebGL2RenderingContext&&(e=t.getContext("webgl2"))),e&&((n=e.getExtension("WEBGL_lose_context"))==null||n.loseContext()),_i}catch{return _i=!1}}const Qo=new Ef,Ko=new K,An=new K,It=new K,is=new K,Wt=new K,rs=new K,os=new K,gi=new K,vi=new K,yi=new K,Mr=new K,xi=new K,Ti=new K,ki=new K;class _p{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new K,this.endPoint=new K,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Qo,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){An.copy(e),An.x=Math.min(e.x,t.x),An.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),It.setFromMatrixPosition(this.camera.matrixWorld),is.copy(An),Wt.set(t.x,An.y,0),rs.copy(t),os.set(An.x,t.y,0),is.unproject(this.camera),Wt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),xi.copy(is).sub(It),Ti.copy(Wt).sub(It),ki.copy(rs).sub(It),xi.normalize(),Ti.normalize(),ki.normalize(),xi.multiplyScalar(this.deep),Ti.multiplyScalar(this.deep),ki.multiplyScalar(this.deep),xi.add(It),Ti.add(It),ki.add(It);var s=Qo.planes;s[0].setFromCoplanarPoints(It,is,Wt),s[1].setFromCoplanarPoints(It,Wt,rs),s[2].setFromCoplanarPoints(rs,os,It),s[3].setFromCoplanarPoints(os,is,It),s[4].setFromCoplanarPoints(Wt,rs,os),s[5].setFromCoplanarPoints(ki,Ti,xi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const i=Math.min(e.x,t.x),r=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);is.set(i,r,-1),Wt.set(o,r,-1),rs.set(o,a,-1),os.set(i,a,-1),gi.set(i,r,1),vi.set(o,r,1),yi.set(o,a,1),Mr.set(i,a,1),is.unproject(this.camera),Wt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),gi.unproject(this.camera),vi.unproject(this.camera),yi.unproject(this.camera),Mr.unproject(this.camera);var s=Qo.planes;s[0].setFromCoplanarPoints(is,gi,vi),s[1].setFromCoplanarPoints(Wt,vi,yi),s[2].setFromCoplanarPoints(yi,Mr,os),s[3].setFromCoplanarPoints(Mr,gi,is),s[4].setFromCoplanarPoints(Wt,rs,os),s[5].setFromCoplanarPoints(yi,vi,gi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Ko.copy(t.geometry.boundingSphere.center),Ko.applyMatrix4(t.matrixWorld),e.containsPoint(Ko)&&this.collection.push(t)),t.children.length>0)for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:f,get:m}=ge(),[p,_]=b.useState(!1),[v,w]=b.useReducer((T,{object:x,shift:k})=>x===void 0?[]:Array.isArray(x)?x:k?T.includes(x)?T.filter(C=>C!==x):[x,...T]:T[0]===x?[]:[x],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const S=b.useCallback(T=>{T.stopPropagation(),w({object:o([T.object])[0],shift:e&&T.shiftKey})},[]),y=b.useCallback(T=>!p&&w({}),[p]),g=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const T=new _p(l,g.current),x=document.createElement("div");x.style.pointerEvents="none",x.style.border=i,x.style.backgroundColor=r,x.style.position="fixed";const k=new Ne,C=new Ne,E=new Ne,O=m().events.enabled,A=d==null?void 0:d.enabled;let R=!1;function P(z,Te){const{offsetX:ae,offsetY:X}=z,{width:me,height:Ye}=f;Te.set(ae/me*2-1,-(X/Ye)*2+1)}function F(z){var Te;d&&(d.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.appendChild(x),x.style.left=`${z.clientX}px`,x.style.top=`${z.clientY}px`,x.style.width="0px",x.style.height="0px",k.x=z.clientX,k.y=z.clientY}function N(z){E.x=Math.max(k.x,z.clientX),E.y=Math.max(k.y,z.clientY),C.x=Math.min(k.x,z.clientX),C.y=Math.min(k.y,z.clientY),x.style.left=`${C.x}px`,x.style.top=`${C.y}px`,x.style.width=`${E.x-C.x}px`,x.style.height=`${E.y-C.y}px`}function U(){if(R){var z;d&&(d.enabled=A),c({enabled:O}),R=!1,(z=x.parentElement)==null||z.removeChild(x)}}function V(z){z.shiftKey&&(F(z),P(z,T.startPoint))}let B=[];function q(z){if(R){N(z),P(z,T.endPoint);const Te=T.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);gp(Te,B)||(B=Te,w({object:o(Te)}))}}function j(z){R&&U()}return document.addEventListener("pointerdown",V,{passive:!0}),document.addEventListener("pointermove",q,{passive:!0,capture:!0}),document.addEventListener("pointerup",j,{passive:!0}),()=>{document.removeEventListener("pointerdown",V),document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",j)}},[f.width,f.height,u,l,d,h]),b.createElement("group",$a({ref:g,onClick:S,onPointerOver:()=>_(!0),onPointerOut:()=>_(!1),onPointerMissed:y},a),b.createElement(vp.Provider,{value:v},t))}const rl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function cn(n,e){const t=ge(i=>i.gl),s=Qa(Oo,rl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),rl(n)){const i=Object.keys(n),r={};return i.forEach(o=>Object.assign(r,{[o]:s[i.indexOf(o)]})),r}else return s}cn.preload=n=>Qa.preload(Oo,n);cn.clear=n=>Qa.clear(Oo,n);/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu diff --git a/build/assets/index-853fe2a2.js b/build/assets/index-ca972e6a.js similarity index 99% rename from build/assets/index-853fe2a2.js rename to build/assets/index-ca972e6a.js index 2c92ca510..090565714 100644 --- a/build/assets/index-853fe2a2.js +++ b/build/assets/index-ca972e6a.js @@ -1,4 +1,4 @@ -import{r as y,$ as U2,j as v,G as oO,u as iO,_ as je,a as R,d as aO,i as sO,c as lO,b as cO,e as uO,h as xv,f as sd,g as fO,k as Wu,m as dO,l as wv,n as Ke,o as qe,p as Xe,s as be,q as ge,t as Ye,v as Te,R as E,w as gi,x as gt,y as al,z as ia,A as pO,B as hO,T as gO,C as G2,D as aa,E as Pr,F as mO,H as K2,I as vO,J as yO,K as bO,P as Ee,L as yt,M as Qo,N as sa,O as Vu,W as xO,Q as X,S as K,U as ee,V as wO,X as Ti,Y as Hu,Z as SO,a0 as $O,a1 as q2,a2 as X2,a3 as Yr,a4 as wg,a5 as ze,a6 as CO,a7 as hn,a8 as OO,a9 as EO,aa as wp,ab as Sp,ac as $p,ad as Nr,ae as PO,af as Ir,ag as _O,ah as TO,ai as Y2,aj as Z2,ak as Sg,al as AO,am as kO,an as Q2,ao as jO,ap as J2,aq as IO,ar as MO,as as Uu,at as RO,au as DO,av as NO,aw as LO,ax as Sv,ay as BO,az as FO,aA as sl,aB as la,aC as Kn,aD as ew,aE as $g,aF as ca,aG as Ue,aH as zO,aI as tw,aJ as WO,aK as nw,aL as VO,aM as HO,aN as UO,aO as ll,aP as Cg,aQ as rw,aR as ow,aS as GO,aT as KO,aU as qO,aV as Gu,aW as XO,aX as YO,aY as ZO,aZ as QO,a_ as JO,a$ as eE,b0 as iw,b1 as tE,b2 as nE,b3 as rE}from"./index-c22082f7.js";function oE(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const iE=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),a=parseInt(r,10);return o*3600+i*60+a};function $v(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function cl(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function ld(e,t){var n,r;return y.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Jt(e){return e&&e.ownerDocument||document}function or(e){return Jt(e).defaultView||window}function yc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const aE=typeof window<"u"?y.useLayoutEffect:y.useEffect,Sr=aE;let Cv=0;function sE(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect(()=>{t==null&&(Cv+=1,n(`mui-${Cv}`))},[t]),r}const Ov=U2["useId".toString()];function Og(e){if(Ov!==void 0){const t=Ov();return e??t}return sE(e)}function Qa({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(e!==void 0),[i,a]=y.useState(t),s=o?e:i,l=y.useCallback(c=>{o||a(c)},[]);return[s,l]}function Sn(e){const t=y.useRef(e);return Sr(()=>{t.current=e}),y.useRef((...n)=>(0,t.current)(...n)).current}function It(...e){return y.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{yc(n,t)})},e)}let Ku=!0,Cp=!1,Ev;const lE={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 cE(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&lE[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function uE(e){e.metaKey||e.altKey||e.ctrlKey||(Ku=!0)}function cd(){Ku=!1}function fE(){this.visibilityState==="hidden"&&Cp&&(Ku=!0)}function dE(e){e.addEventListener("keydown",uE,!0),e.addEventListener("mousedown",cd,!0),e.addEventListener("pointerdown",cd,!0),e.addEventListener("touchstart",cd,!0),e.addEventListener("visibilitychange",fE,!0)}function pE(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ku||cE(t)}function hE(){const e=y.useCallback(o=>{o!=null&&dE(o.ownerDocument)},[]),t=y.useRef(!1);function n(){return t.current?(Cp=!0,window.clearTimeout(Ev),Ev=window.setTimeout(()=>{Cp=!1},100),t.current=!1,!0):!1}function r(o){return pE(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function aw(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ii;function sw(){if(ii)return ii;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ii="reverse",e.scrollLeft>0?ii="default":(e.scrollLeft=1,e.scrollLeft===0&&(ii="negative")),document.body.removeChild(e),ii}function gE(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(sw()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const mE=e=>{const t=y.useRef({});return y.useEffect(()=>{t.current=e}),t.current},vE=mE;function yE(e){return e==null||Object.keys(e).length===0}function bE(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(yE(o)?n:o):t;return v.jsx(oO,{styles:r})}function xE({styles:e,themeId:t,defaultTheme:n={}}){const r=iO(n),o=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(bE,{styles:o})}const wE=["sx"],SE=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:aO;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function lw(e){const{sx:t}=e,n=je(e,wE),{systemProps:r,otherProps:o}=SE(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return sO(s)?R({},r,s):r}:i=R({},r,t),R({},o,{sx:i})}function cw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function TE(e){return uO({props:e,name:"MuiStack",defaultTheme:PE})}function AE(e,t){const n=y.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],jE=({ownerState:e,theme:t})=>{let n=R({display:"flex",flexDirection:"column"},xv({theme:t},sd({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=fO(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=sd({values:e.direction,base:o}),a=sd({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const d=c>0?i[u[c-1]]:"column";i[l]=d}}),n=Wu(n,xv({theme:t},a,(l,c)=>e.useFlexGap?{gap:wv(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${kE(c?i[c]:e.direction)}`]:wv(r,l)}}))}return n=dO(t.breakpoints,n),n};function IE(e={}){const{createStyledComponent:t=_E,useThemeProps:n=TE,componentName:r="MuiStack"}=e,o=()=>Ke({root:["root"]},l=>qe(r,l),{}),i=t(jE);return y.forwardRef(function(l,c){const u=n(l),f=lw(u),{component:d="div",direction:p="column",spacing:h=0,divider:g,children:m,className:b,useFlexGap:S=!1}=f,$=je(f,EE),C={direction:p,spacing:h,useFlexGap:S},w=o();return v.jsx(i,R({as:d,ownerState:C,ref:c,className:$E(w.root,b)},$,{children:g?AE(m,g):m}))})}const ME=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Pv=ME;function RE(e){return qe("MuiSvgIcon",e)}Xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DE=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],NE=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(n)}`]};return Ke(o,RE,r)},LE=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ge(n.color)}`],t[`fontSize${ge(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,f,d,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),uw=y.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24"}=r,p=je(r,DE),h=y.isValidElement(o)&&o.type==="svg",g=R({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:h}),m={};u||(m.viewBox=d);const b=NE(g);return v.jsxs(LE,R({as:s,className:Te(b.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},m,p,h&&o.props,{ownerState:g,children:[h?o.props.children:o,f?v.jsx("title",{children:f}):null]}))});uw.muiName="SvgIcon";const _v=uw;function ul(e,t){function n(r,o){return v.jsx(_v,R({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=_v.muiName,y.memo(y.forwardRef(n))}function Op(e,t){return Op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Op(e,t)}function fw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Op(e,t)}const Tv={disabled:!1},bc=E.createContext(null);var BE=function(t){return t.scrollTop},Ga="unmounted",ko="exited",jo="entering",hi="entered",Ep="exiting",Zr=function(e){fw(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=ko,i.appearStatus=jo):l=hi:r.unmountOnExit||r.mountOnEnter?l=Ga:l=ko,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ga?{status:ko}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==jo&&a!==hi&&(i=jo):(a===jo||a===hi)&&(i=Ep)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===jo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:gi.findDOMNode(this);a&&BE(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ko&&this.setState({status:Ga})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[gi.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!o&&!a||Tv.disabled){this.safeSetState({status:hi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:jo},function(){i.props.onEntering(c,u),i.onTransitionEnd(d,function(){i.safeSetState({status:hi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:gi.findDOMNode(this);if(!i||Tv.disabled){this.safeSetState({status:ko},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ep},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ko},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:gi.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ga)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=je(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(bc.Provider,{value:null},typeof a=="function"?a(o,s):E.cloneElement(E.Children.only(a),s))},t}(E.Component);Zr.contextType=bc;Zr.propTypes={};function ai(){}Zr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ai,onEntering:ai,onEntered:ai,onExit:ai,onExiting:ai,onExited:ai};Zr.UNMOUNTED=Ga;Zr.EXITED=ko;Zr.ENTERING=jo;Zr.ENTERED=hi;Zr.EXITING=Ep;const Eg=Zr;function FE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pg(e,t){var n=function(i){return t&&y.isValidElement(i)?t(i):i},r=Object.create(null);return e&&y.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function zE(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function Ai(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function KE(e){return qe("MuiPaper",e)}Xe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const qE=["className","component","elevation","square","variant"],XE=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ke(i,KE,o)},YE=be("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return R({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&R({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gt("#fff",Pv(t.elevation))}, ${gt("#fff",Pv(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),ZE=y.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=je(r,qE),u=R({},r,{component:i,elevation:a,square:s,variant:l}),f=XE(u);return v.jsx(YE,R({as:i,ownerState:u,className:Te(f.root,o),ref:n},c))}),qu=ZE;function QE(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=y.useState(!1),d=Te(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=Te(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),y.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),v.jsx("span",{className:d,style:p,children:v.jsx("span",{className:h})})}const JE=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),In=JE,e6=["center","classes","className"];let Xu=e=>e,Av,kv,jv,Iv;const Pp=550,t6=80,n6=al(Av||(Av=Xu` +import{r as y,$ as U2,j as v,G as oO,u as iO,_ as je,a as R,d as aO,i as sO,c as lO,b as cO,e as uO,h as xv,f as sd,g as fO,k as Wu,m as dO,l as wv,n as Ke,o as qe,p as Xe,s as be,q as ge,t as Ye,v as Te,R as E,w as gi,x as gt,y as al,z as ia,A as pO,B as hO,T as gO,C as G2,D as aa,E as Pr,F as mO,H as K2,I as vO,J as yO,K as bO,P as Ee,L as yt,M as Qo,N as sa,O as Vu,W as xO,Q as X,S as K,U as ee,V as wO,X as Ti,Y as Hu,Z as SO,a0 as $O,a1 as q2,a2 as X2,a3 as Yr,a4 as wg,a5 as ze,a6 as CO,a7 as hn,a8 as OO,a9 as EO,aa as wp,ab as Sp,ac as $p,ad as Nr,ae as PO,af as Ir,ag as _O,ah as TO,ai as Y2,aj as Z2,ak as Sg,al as AO,am as kO,an as Q2,ao as jO,ap as J2,aq as IO,ar as MO,as as Uu,at as RO,au as DO,av as NO,aw as LO,ax as Sv,ay as BO,az as FO,aA as sl,aB as la,aC as Kn,aD as ew,aE as $g,aF as ca,aG as Ue,aH as zO,aI as tw,aJ as WO,aK as nw,aL as VO,aM as HO,aN as UO,aO as ll,aP as Cg,aQ as rw,aR as ow,aS as GO,aT as KO,aU as qO,aV as Gu,aW as XO,aX as YO,aY as ZO,aZ as QO,a_ as JO,a$ as eE,b0 as iw,b1 as tE,b2 as nE,b3 as rE}from"./index-a7cfca89.js";function oE(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const iE=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),a=parseInt(r,10);return o*3600+i*60+a};function $v(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function cl(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function ld(e,t){var n,r;return y.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Jt(e){return e&&e.ownerDocument||document}function or(e){return Jt(e).defaultView||window}function yc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const aE=typeof window<"u"?y.useLayoutEffect:y.useEffect,Sr=aE;let Cv=0;function sE(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect(()=>{t==null&&(Cv+=1,n(`mui-${Cv}`))},[t]),r}const Ov=U2["useId".toString()];function Og(e){if(Ov!==void 0){const t=Ov();return e??t}return sE(e)}function Qa({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(e!==void 0),[i,a]=y.useState(t),s=o?e:i,l=y.useCallback(c=>{o||a(c)},[]);return[s,l]}function Sn(e){const t=y.useRef(e);return Sr(()=>{t.current=e}),y.useRef((...n)=>(0,t.current)(...n)).current}function It(...e){return y.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{yc(n,t)})},e)}let Ku=!0,Cp=!1,Ev;const lE={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 cE(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&lE[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function uE(e){e.metaKey||e.altKey||e.ctrlKey||(Ku=!0)}function cd(){Ku=!1}function fE(){this.visibilityState==="hidden"&&Cp&&(Ku=!0)}function dE(e){e.addEventListener("keydown",uE,!0),e.addEventListener("mousedown",cd,!0),e.addEventListener("pointerdown",cd,!0),e.addEventListener("touchstart",cd,!0),e.addEventListener("visibilitychange",fE,!0)}function pE(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ku||cE(t)}function hE(){const e=y.useCallback(o=>{o!=null&&dE(o.ownerDocument)},[]),t=y.useRef(!1);function n(){return t.current?(Cp=!0,window.clearTimeout(Ev),Ev=window.setTimeout(()=>{Cp=!1},100),t.current=!1,!0):!1}function r(o){return pE(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function aw(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ii;function sw(){if(ii)return ii;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ii="reverse",e.scrollLeft>0?ii="default":(e.scrollLeft=1,e.scrollLeft===0&&(ii="negative")),document.body.removeChild(e),ii}function gE(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(sw()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const mE=e=>{const t=y.useRef({});return y.useEffect(()=>{t.current=e}),t.current},vE=mE;function yE(e){return e==null||Object.keys(e).length===0}function bE(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(yE(o)?n:o):t;return v.jsx(oO,{styles:r})}function xE({styles:e,themeId:t,defaultTheme:n={}}){const r=iO(n),o=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(bE,{styles:o})}const wE=["sx"],SE=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:aO;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function lw(e){const{sx:t}=e,n=je(e,wE),{systemProps:r,otherProps:o}=SE(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return sO(s)?R({},r,s):r}:i=R({},r,t),R({},o,{sx:i})}function cw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function TE(e){return uO({props:e,name:"MuiStack",defaultTheme:PE})}function AE(e,t){const n=y.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],jE=({ownerState:e,theme:t})=>{let n=R({display:"flex",flexDirection:"column"},xv({theme:t},sd({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=fO(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=sd({values:e.direction,base:o}),a=sd({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const d=c>0?i[u[c-1]]:"column";i[l]=d}}),n=Wu(n,xv({theme:t},a,(l,c)=>e.useFlexGap?{gap:wv(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${kE(c?i[c]:e.direction)}`]:wv(r,l)}}))}return n=dO(t.breakpoints,n),n};function IE(e={}){const{createStyledComponent:t=_E,useThemeProps:n=TE,componentName:r="MuiStack"}=e,o=()=>Ke({root:["root"]},l=>qe(r,l),{}),i=t(jE);return y.forwardRef(function(l,c){const u=n(l),f=lw(u),{component:d="div",direction:p="column",spacing:h=0,divider:g,children:m,className:b,useFlexGap:S=!1}=f,$=je(f,EE),C={direction:p,spacing:h,useFlexGap:S},w=o();return v.jsx(i,R({as:d,ownerState:C,ref:c,className:$E(w.root,b)},$,{children:g?AE(m,g):m}))})}const ME=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Pv=ME;function RE(e){return qe("MuiSvgIcon",e)}Xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DE=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],NE=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ge(t)}`,`fontSize${ge(n)}`]};return Ke(o,RE,r)},LE=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ge(n.color)}`],t[`fontSize${ge(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,f,d,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),uw=y.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24"}=r,p=je(r,DE),h=y.isValidElement(o)&&o.type==="svg",g=R({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:h}),m={};u||(m.viewBox=d);const b=NE(g);return v.jsxs(LE,R({as:s,className:Te(b.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},m,p,h&&o.props,{ownerState:g,children:[h?o.props.children:o,f?v.jsx("title",{children:f}):null]}))});uw.muiName="SvgIcon";const _v=uw;function ul(e,t){function n(r,o){return v.jsx(_v,R({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=_v.muiName,y.memo(y.forwardRef(n))}function Op(e,t){return Op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Op(e,t)}function fw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Op(e,t)}const Tv={disabled:!1},bc=E.createContext(null);var BE=function(t){return t.scrollTop},Ga="unmounted",ko="exited",jo="entering",hi="entered",Ep="exiting",Zr=function(e){fw(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=ko,i.appearStatus=jo):l=hi:r.unmountOnExit||r.mountOnEnter?l=Ga:l=ko,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ga?{status:ko}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==jo&&a!==hi&&(i=jo):(a===jo||a===hi)&&(i=Ep)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===jo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:gi.findDOMNode(this);a&&BE(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ko&&this.setState({status:Ga})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[gi.findDOMNode(this),s],c=l[0],u=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!o&&!a||Tv.disabled){this.safeSetState({status:hi},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:jo},function(){i.props.onEntering(c,u),i.onTransitionEnd(d,function(){i.safeSetState({status:hi},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:gi.findDOMNode(this);if(!i||Tv.disabled){this.safeSetState({status:ko},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ep},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ko},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:gi.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ga)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=je(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return E.createElement(bc.Provider,{value:null},typeof a=="function"?a(o,s):E.cloneElement(E.Children.only(a),s))},t}(E.Component);Zr.contextType=bc;Zr.propTypes={};function ai(){}Zr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ai,onEntering:ai,onEntered:ai,onExit:ai,onExiting:ai,onExited:ai};Zr.UNMOUNTED=Ga;Zr.EXITED=ko;Zr.ENTERING=jo;Zr.ENTERED=hi;Zr.EXITING=Ep;const Eg=Zr;function FE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pg(e,t){var n=function(i){return t&&y.isValidElement(i)?t(i):i},r=Object.create(null);return e&&y.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function zE(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function Ai(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function KE(e){return qe("MuiPaper",e)}Xe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const qE=["className","component","elevation","square","variant"],XE=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ke(i,KE,o)},YE=be("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return R({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&R({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${gt("#fff",Pv(t.elevation))}, ${gt("#fff",Pv(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),ZE=y.forwardRef(function(t,n){const r=Ye({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=je(r,qE),u=R({},r,{component:i,elevation:a,square:s,variant:l}),f=XE(u);return v.jsx(YE,R({as:i,ownerState:u,className:Te(f.root,o),ref:n},c))}),qu=ZE;function QE(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,f]=y.useState(!1),d=Te(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=Te(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&f(!0),y.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),v.jsx("span",{className:d,style:p,children:v.jsx("span",{className:h})})}const JE=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),In=JE,e6=["center","classes","className"];let Xu=e=>e,Av,kv,jv,Iv;const Pp=550,t6=80,n6=al(Av||(Av=Xu` 0% { transform: scale(0); opacity: 0.1; @@ -378,7 +378,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 0; background-color: ${K.black}; z-index: 1; -`,uB=()=>{const e=y.useContext(CO);return e==null?void 0:e.socket},fB={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},dB=Hu(e=>({...fB,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,r,o,i;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((r=t==null?void 0:t.instagraph)!=null&&r.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(i=t==null?void 0:t.instagraph)==null?void 0:i.nodes}})}})),pB="0.1.106",hB=y.lazy(()=>hn(()=>import("./index-78b3929e.js"),["assets/index-78b3929e.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]).then(({SettingsModal:e})=>({default:e}))),gB=y.lazy(()=>hn(()=>import("./index-aa2c5474.js"),["assets/index-aa2c5474.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/index-c25c8268.js"]).then(({AddContentModal:e})=>({default:e}))),mB=y.lazy(()=>hn(()=>import("./index-ee170958.js"),["assets/index-ee170958.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/index-c25c8268.js","assets/index-bbc7c996.js","assets/three.module-a2e04964.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),vB=y.lazy(()=>hn(()=>import("./index-ed69f0f8.js"),["assets/index-ed69f0f8.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]).then(({SourcesTableModal:e})=>({default:e}))),yB=y.lazy(()=>hn(()=>import("./index-3ff536e7.js"),["assets/index-3ff536e7.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/Skeleton-f93ae829.js"]).then(({EditNodeNameModal:e})=>({default:e}))),bB=y.lazy(()=>hn(()=>import("./index-41ef07e4.js"),["assets/index-41ef07e4.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/Skeleton-f93ae829.js"]).then(({RemoveNodeModal:e})=>({default:e}))),xB=y.lazy(()=>hn(()=>import("./index-f5694860.js"),["assets/index-f5694860.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]).then(({AddNodeEdgeModal:e})=>({default:e}))),wB=y.lazy(()=>hn(()=>import("./index-4926d1bb.js"),["assets/index-4926d1bb.js","assets/index-c22082f7.js","assets/index-a2878e02.css"]).then(({MergeNodeModal:e})=>({default:e}))),SB=y.lazy(()=>hn(()=>import("./index-33a859bc.js"),["assets/index-33a859bc.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/index-bbc7c996.js","assets/three.module-a2e04964.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),$B=y.lazy(()=>hn(()=>import("./index-77fd8cdc.js"),["assets/index-77fd8cdc.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/index-bbc7c996.js","assets/three.module-a2e04964.js","assets/index-653e9ffc.js","assets/AddContentIcon-22359116.js"]).then(({BlueprintModal:e})=>({default:e}))),CB=y.lazy(()=>hn(()=>import("./index-4173ad62.js"),["assets/index-4173ad62.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/index-c25c8268.js"]).then(({UserFeedBackModal:e})=>({default:e}))),OB=()=>v.jsxs(v.Fragment,{children:[v.jsx(mB,{}),v.jsx(gB,{}),v.jsx(hB,{}),v.jsx(yB,{}),v.jsx(bB,{}),v.jsx(vB,{}),v.jsx(xB,{}),v.jsx(SB,{}),v.jsx($B,{}),v.jsx(wB,{}),v.jsx(CB,{})]}),EB=()=>{const e=Yr(t=>t.appMetaData);return e?v.jsxs(PB,{children:[v.jsxs(_B,{children:[v.jsx(v.Fragment,{children:e.title&&v.jsx(ze,{className:"title",color:"white",children:e.title})}),v.jsx(ze,{className:"subtitle",children:"Second Brain"})]}),v.jsx(EO,{})]}):null},PB=X(ee).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,uB=()=>{const e=y.useContext(CO);return e==null?void 0:e.socket},fB={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},dB=Hu(e=>({...fB,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,r,o,i;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((r=t==null?void 0:t.instagraph)!=null&&r.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(i=t==null?void 0:t.instagraph)==null?void 0:i.nodes}})}})),pB="0.1.106",hB=y.lazy(()=>hn(()=>import("./index-5f88db22.js"),["assets/index-5f88db22.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]).then(({SettingsModal:e})=>({default:e}))),gB=y.lazy(()=>hn(()=>import("./index-97ba2cca.js"),["assets/index-97ba2cca.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/index-32057c8a.js"]).then(({AddContentModal:e})=>({default:e}))),mB=y.lazy(()=>hn(()=>import("./index-96dc12dd.js"),["assets/index-96dc12dd.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/index-32057c8a.js","assets/index-bbc7c996.js","assets/three.module-a2e04964.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),vB=y.lazy(()=>hn(()=>import("./index-822c9517.js"),["assets/index-822c9517.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]).then(({SourcesTableModal:e})=>({default:e}))),yB=y.lazy(()=>hn(()=>import("./index-5bae894a.js"),["assets/index-5bae894a.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/Skeleton-6f749099.js"]).then(({EditNodeNameModal:e})=>({default:e}))),bB=y.lazy(()=>hn(()=>import("./index-be35b204.js"),["assets/index-be35b204.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/Skeleton-6f749099.js"]).then(({RemoveNodeModal:e})=>({default:e}))),xB=y.lazy(()=>hn(()=>import("./index-ed5fbeae.js"),["assets/index-ed5fbeae.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]).then(({AddNodeEdgeModal:e})=>({default:e}))),wB=y.lazy(()=>hn(()=>import("./index-9ffe3d3e.js"),["assets/index-9ffe3d3e.js","assets/index-a7cfca89.js","assets/index-a2878e02.css"]).then(({MergeNodeModal:e})=>({default:e}))),SB=y.lazy(()=>hn(()=>import("./index-b7bfdabb.js"),["assets/index-b7bfdabb.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/index-bbc7c996.js","assets/three.module-a2e04964.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),$B=y.lazy(()=>hn(()=>import("./index-1e6bfbfb.js"),["assets/index-1e6bfbfb.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/index-bbc7c996.js","assets/three.module-a2e04964.js","assets/index-38264b8c.js","assets/AddContentIcon-70138e00.js"]).then(({BlueprintModal:e})=>({default:e}))),CB=y.lazy(()=>hn(()=>import("./index-4355cd45.js"),["assets/index-4355cd45.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/index-32057c8a.js"]).then(({UserFeedBackModal:e})=>({default:e}))),OB=()=>v.jsxs(v.Fragment,{children:[v.jsx(mB,{}),v.jsx(gB,{}),v.jsx(hB,{}),v.jsx(yB,{}),v.jsx(bB,{}),v.jsx(vB,{}),v.jsx(xB,{}),v.jsx(SB,{}),v.jsx($B,{}),v.jsx(wB,{}),v.jsx(CB,{})]}),EB=()=>{const e=Yr(t=>t.appMetaData);return e?v.jsxs(PB,{children:[v.jsxs(_B,{children:[v.jsx(v.Fragment,{children:e.title&&v.jsx(ze,{className:"title",color:"white",children:e.title})}),v.jsx(ze,{className:"subtitle",children:"Second Brain"})]}),v.jsx(EO,{})]}):null},PB=X(ee).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; position: absolute; top: 0px; @@ -1677,4 +1677,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${K.white}; font-size: 12px; opacity: 0.5; -`,oue=y.lazy(()=>hn(()=>import("./index-2c694911.js"),["assets/index-2c694911.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/AddContentIcon-22359116.js"]).then(({MainToolbar:e})=>({default:e}))),iue=y.lazy(()=>hn(()=>import("./index-9e4a45d3.js"),["assets/index-9e4a45d3.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/index-653e9ffc.js","assets/three.module-a2e04964.js"]).then(({Universe:e})=>({default:e}))),aue=y.lazy(()=>hn(()=>import("./index-846e8361.js").then(e=>e.i),["assets/index-846e8361.js","assets/index-c22082f7.js","assets/index-a2878e02.css","assets/Skeleton-f93ae829.js","assets/index-6125620a.css"]).then(({SideBar:e})=>({default:e}))),sue=()=>{const[e]=tE(),t=e.get("q"),[n,r]=sa(k=>[k.setBudget,k.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:a,setRelevanceSelected:s,setTranscriptOpen:l}=Yr(k=>k),c=dB(k=>k.setTeachMeAnswer),{fetchData:u,setCategoryFilter:f,setAbortRequests:d,addNewNode:p,filters:h}=Qo(k=>k),{setAiSummaryAnswer:g,getKeyExist:m}=nE(k=>k),b=X2(),[S,$]=wg(k=>[k.realtimeGraphFeatureFlag,k.chatInterfaceFeatureFlag]),C=uB(),w=Cl({mode:"onChange"}),{setValue:x}=w;y.useEffect(()=>{x("search",t??""),l(!1),b(null),s(!1),a(t??""),c(""),f(null)},[t,f,a,s,b,c,l,x]);const O=y.useCallback(async()=>{await u(n,d),o(!0),i?await iw(n):b(null)},[u,n,i,o,b,d]);y.useEffect(()=>{O()},[i,O,h]);const P=y.useCallback(()=>{r("INCREMENT")},[r]),_=y.useCallback(k=>{console.log(k),k.question&&m(k.question)&&g(k.question,{answer:k.answer,answerLoading:!1})},[g,m]),j=y.useCallback(k=>{k.question&&m(k.question)&&g(k.question,{questions:k.relevant_questions.map(I=>I.question),questionsLoading:!1})},[g,m]),T=y.useCallback(k=>{k.question&&m(k.question)&&g(k.question,{sources:k.sources.map(I=>I.ref_id),sourcesLoading:!1})},[g,m]),A=y.useCallback(k=>{p(k)},[p]);return y.useEffect(()=>(C&&(C.connect(),C.on("connect_error",k=>{console.error("Socket connection error:",k)}),C.on("newnode",P),$&&C.on("askquestionhook",_),$&&C.on("relevantquestionshook",j),$&&C.on("answersourceshook",T),S&&C.on("new_node_created",A)),()=>{C&&C.off()}),[C,P,A,S,_,$,j,T]),v.jsxs(v.Fragment,{children:[v.jsx(xL,{}),v.jsx(kB,{}),v.jsx(TS,{hidden:!rE}),v.jsx(y.Suspense,{fallback:v.jsx("div",{children:"Loading..."}),children:v.jsxs(nue,{direction:"row",children:[v.jsx(bL,{children:v.jsxs($l,{...w,children:[v.jsx(oue,{}),v.jsx(aue,{}),v.jsx(iue,{}),!1,v.jsx(tB,{}),v.jsx(Fce,{}),v.jsx(EB,{}),v.jsxs(rue,{children:["v",pB]}),v.jsx(KS,{})]})}),v.jsx(OB,{}),v.jsx(tue,{}),v.jsx(RB,{})]})})]})},jue=Object.freeze(Object.defineProperty({__proto__:null,App:sue},Symbol.toStringTag,{value:"Module"}));export{eg as $,GS as A,_r as B,_L as C,mF as D,sh as E,TV as F,mo as G,lt as H,mu as I,jm as J,Pl as K,I7 as L,cy as M,Qe as N,tB as O,XB as P,Pt as Q,Yc as R,Die as S,tP as T,Gr as U,er as V,Hf as W,Wn as X,Pn as Y,kue as Z,ya as _,mue as a,pa as a$,Je as a0,yo as a1,Br as a2,Ix as a3,jl as a4,EC as a5,kce as a6,Qf as a7,Jf as a8,fse as a9,mz as aA,G8 as aB,NL as aC,ML as aD,RL as aE,Ut as aF,vm as aG,PL as aH,jL as aI,Gc as aJ,Xa as aK,JT as aL,K_ as aM,BB as aN,Aue as aO,ym as aP,f$ as aQ,Pue as aR,vW as aS,r$ as aT,hm as aU,Kg as aV,u$ as aW,c$ as aX,l$ as aY,sr as aZ,Eue as a_,n7 as aa,y$ as ab,ei as ac,Vg as ad,Sl as ae,Cl as af,$l as ag,i$ as ah,oE as ai,js as aj,Qb as ak,ree as al,k7 as am,F_ as an,uB as ao,dB as ap,Kw as aq,lB as ar,Cue as as,mv as at,Bo as au,Kf as av,$ue as aw,Sue as ax,Oue as ay,yr as az,DF as b,lw as b0,yue as b1,Tue as b2,_ue as b3,Nk as b4,cue as b5,ht as b6,LB as b7,jue as b8,RF as c,bue as d,Wz as e,wue as f,ZS as g,af as h,xue as i,vue as j,Qa as k,hE as l,It as m,Sr as n,Sn as o,Jt as p,dw as q,ki as r,xc as s,ir as t,EL as u,iE as v,Io as w,Q0 as x,WQ as y,Tf as z}; +`,oue=y.lazy(()=>hn(()=>import("./index-f2e56fc6.js"),["assets/index-f2e56fc6.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/AddContentIcon-70138e00.js"]).then(({MainToolbar:e})=>({default:e}))),iue=y.lazy(()=>hn(()=>import("./index-c62153d7.js"),["assets/index-c62153d7.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/index-38264b8c.js","assets/three.module-a2e04964.js"]).then(({Universe:e})=>({default:e}))),aue=y.lazy(()=>hn(()=>import("./index-a67aca48.js").then(e=>e.i),["assets/index-a67aca48.js","assets/index-a7cfca89.js","assets/index-a2878e02.css","assets/Skeleton-6f749099.js","assets/index-6125620a.css"]).then(({SideBar:e})=>({default:e}))),sue=()=>{const[e]=tE(),t=e.get("q"),[n,r]=sa(k=>[k.setBudget,k.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:a,setRelevanceSelected:s,setTranscriptOpen:l}=Yr(k=>k),c=dB(k=>k.setTeachMeAnswer),{fetchData:u,setCategoryFilter:f,setAbortRequests:d,addNewNode:p,filters:h}=Qo(k=>k),{setAiSummaryAnswer:g,getKeyExist:m}=nE(k=>k),b=X2(),[S,$]=wg(k=>[k.realtimeGraphFeatureFlag,k.chatInterfaceFeatureFlag]),C=uB(),w=Cl({mode:"onChange"}),{setValue:x}=w;y.useEffect(()=>{x("search",t??""),l(!1),b(null),s(!1),a(t??""),c(""),f(null)},[t,f,a,s,b,c,l,x]);const O=y.useCallback(async()=>{await u(n,d),o(!0),i?await iw(n):b(null)},[u,n,i,o,b,d]);y.useEffect(()=>{O()},[i,O,h]);const P=y.useCallback(()=>{r("INCREMENT")},[r]),_=y.useCallback(k=>{console.log(k),k.question&&m(k.question)&&g(k.question,{answer:k.answer,answerLoading:!1})},[g,m]),j=y.useCallback(k=>{k.question&&m(k.question)&&g(k.question,{questions:k.relevant_questions.map(I=>I.question),questionsLoading:!1})},[g,m]),T=y.useCallback(k=>{k.question&&m(k.question)&&g(k.question,{sources:k.sources.map(I=>I.ref_id),sourcesLoading:!1})},[g,m]),A=y.useCallback(k=>{p(k)},[p]);return y.useEffect(()=>(C&&(C.connect(),C.on("connect_error",k=>{console.error("Socket connection error:",k)}),C.on("newnode",P),$&&C.on("askquestionhook",_),$&&C.on("relevantquestionshook",j),$&&C.on("answersourceshook",T),S&&C.on("new_node_created",A)),()=>{C&&C.off()}),[C,P,A,S,_,$,j,T]),v.jsxs(v.Fragment,{children:[v.jsx(xL,{}),v.jsx(kB,{}),v.jsx(TS,{hidden:!rE}),v.jsx(y.Suspense,{fallback:v.jsx("div",{children:"Loading..."}),children:v.jsxs(nue,{direction:"row",children:[v.jsx(bL,{children:v.jsxs($l,{...w,children:[v.jsx(oue,{}),v.jsx(aue,{}),v.jsx(iue,{}),!1,v.jsx(tB,{}),v.jsx(Fce,{}),v.jsx(EB,{}),v.jsxs(rue,{children:["v",pB]}),v.jsx(KS,{})]})}),v.jsx(OB,{}),v.jsx(tue,{}),v.jsx(RB,{})]})})]})},jue=Object.freeze(Object.defineProperty({__proto__:null,App:sue},Symbol.toStringTag,{value:"Module"}));export{eg as $,GS as A,_r as B,_L as C,mF as D,sh as E,TV as F,mo as G,lt as H,mu as I,jm as J,Pl as K,I7 as L,cy as M,Qe as N,tB as O,XB as P,Pt as Q,Yc as R,Die as S,tP as T,Gr as U,er as V,Hf as W,Wn as X,Pn as Y,kue as Z,ya as _,mue as a,pa as a$,Je as a0,yo as a1,Br as a2,Ix as a3,jl as a4,EC as a5,kce as a6,Qf as a7,Jf as a8,fse as a9,mz as aA,G8 as aB,NL as aC,ML as aD,RL as aE,Ut as aF,vm as aG,PL as aH,jL as aI,Gc as aJ,Xa as aK,JT as aL,K_ as aM,BB as aN,Aue as aO,ym as aP,f$ as aQ,Pue as aR,vW as aS,r$ as aT,hm as aU,Kg as aV,u$ as aW,c$ as aX,l$ as aY,sr as aZ,Eue as a_,n7 as aa,y$ as ab,ei as ac,Vg as ad,Sl as ae,Cl as af,$l as ag,i$ as ah,oE as ai,js as aj,Qb as ak,ree as al,k7 as am,F_ as an,uB as ao,dB as ap,Kw as aq,lB as ar,Cue as as,mv as at,Bo as au,Kf as av,$ue as aw,Sue as ax,Oue as ay,yr as az,DF as b,lw as b0,yue as b1,Tue as b2,_ue as b3,Nk as b4,cue as b5,ht as b6,LB as b7,jue as b8,RF as c,bue as d,Wz as e,wue as f,ZS as g,af as h,xue as i,vue as j,Qa as k,hE as l,It as m,Sr as n,Sn as o,Jt as p,dw as q,ki as r,xc as s,ir as t,EL as u,iE as v,Io as w,Q0 as x,WQ as y,Tf as z}; diff --git a/build/assets/index-f5694860.js b/build/assets/index-ed5fbeae.js similarity index 96% rename from build/assets/index-f5694860.js rename to build/assets/index-ed5fbeae.js index b806bc94f..a3bccfee8 100644 --- a/build/assets/index-f5694860.js +++ b/build/assets/index-ed5fbeae.js @@ -1,4 +1,4 @@ -import{r,j as e,ao as B,ak as F,U as u,ap as E,Q as l,a5 as O,ad as I,a1 as z,S as _,aq as A}from"./index-c22082f7.js";import{aP as L,aT as N,ac as D,aQ as M,aU as Y,aV as P,aW as X,aX as G,aY as H,af as Q,ag as R,aF as T,B as U,aG as W}from"./index-853fe2a2.js";const q=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await B();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),h=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:h,options:p.map(a),selectedValue:t?a(t):null})},V=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[h,o]=r.useState(!1),x=r.useMemo(()=>{const s=async m=>{const i={is_muted:"False",sort_by:Y,search:m,skip:"0",limit:"1000"};o(!0);try{const w=(await E(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(w)}catch{a([])}finally{o(!1)}};return F.debounce(s,300)},[p]),b=s=>{if(!s){a([]);return}s.length>2&&x(s)},j=s=>{const m=s?d.find(i=>i.ref_id===s.value):null;t(m||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(u,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(N,{onClick:()=>t(null),size:"medium",children:e.jsx(D,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:h,onSelect:j,options:v(d)||M,selectedValue:c?n(c):null})},$=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:h,isSwapped:o})=>{const x=()=>{h()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(u,{mb:20,children:[e.jsx(u,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(u,{align:"center",direction:"row",children:e.jsx(K,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(u,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(u,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(q,{selectedType:p,setSelectedType:d})]}),e.jsx(u,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(V,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(J,{children:[e.jsx(ne,{children:e.jsx(X,{})}),e.jsx(ae,{onClick:x,children:e.jsx(G,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},J=l.div` +import{r,j as e,ao as B,ak as F,U as u,ap as E,Q as l,a5 as O,ad as I,a1 as z,S as _,aq as A}from"./index-a7cfca89.js";import{aP as L,aT as N,ac as D,aQ as M,aU as Y,aV as P,aW as X,aX as G,aY as H,af as Q,ag as R,aF as T,B as U,aG as W}from"./index-ca972e6a.js";const q=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await B();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),h=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:h,options:p.map(a),selectedValue:t?a(t):null})},V=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[h,o]=r.useState(!1),x=r.useMemo(()=>{const s=async m=>{const i={is_muted:"False",sort_by:Y,search:m,skip:"0",limit:"1000"};o(!0);try{const w=(await E(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(w)}catch{a([])}finally{o(!1)}};return F.debounce(s,300)},[p]),b=s=>{if(!s){a([]);return}s.length>2&&x(s)},j=s=>{const m=s?d.find(i=>i.ref_id===s.value):null;t(m||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(u,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(N,{onClick:()=>t(null),size:"medium",children:e.jsx(D,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:h,onSelect:j,options:v(d)||M,selectedValue:c?n(c):null})},$=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:h,isSwapped:o})=>{const x=()=>{h()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(u,{mb:20,children:[e.jsx(u,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(u,{align:"center",direction:"row",children:e.jsx(K,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(u,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(u,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(q,{selectedType:p,setSelectedType:d})]}),e.jsx(u,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(V,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(J,{children:[e.jsx(ne,{children:e.jsx(X,{})}),e.jsx(ae,{onClick:x,children:e.jsx(G,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},J=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-2c694911.js b/build/assets/index-f2e56fc6.js similarity index 99% rename from build/assets/index-2c694911.js rename to build/assets/index-f2e56fc6.js index ff9c0b323..31ea68b1d 100644 --- a/build/assets/index-2c694911.js +++ b/build/assets/index-f2e56fc6.js @@ -1,4 +1,4 @@ -import{j as e,ad as s,b4 as k,a4 as d,N as f,au as v,a5 as o,Q as a,S as n,U as l}from"./index-c22082f7.js";import{A as H}from"./AddContentIcon-22359116.js";import{C as L}from"./index-853fe2a2.js";const M=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_27)",children:e.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"})})]}),y=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),S=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_29)",children:e.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),Z=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_26)",children:e.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"})})]}),A=()=>{const{open:t}=s("sourcesTable"),{open:h}=s("addItem"),{open:p}=s("addContent"),{open:x}=s("settings"),{open:u}=s("blueprintGraph"),{open:m}=s("feedback"),g=k(),j=d(r=>r.customSchemaFeatureFlag),b=d(r=>r.userFeedbackFeatureFlag),[c]=f(r=>[r.isAdmin]),w=v();return e.jsxs(F,{children:[e.jsx(B,{onClick:()=>g("/"),children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),c?e.jsxs(C,{"data-testid":"add-item-modal",onClick:h,children:[e.jsx(i,{children:e.jsx(M,{})}),e.jsx(o,{children:"Add Item"})]}):null,e.jsxs(C,{"data-testid":"add-content-modal",onClick:p,children:[e.jsx(i,{children:e.jsx(H,{})}),e.jsx(o,{children:"Add Content"})]}),e.jsxs(C,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(i,{children:e.jsx(Z,{})}),e.jsx(o,{children:"Source Table"})]}),j&&c?e.jsxs(C,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:u,children:[e.jsx(i,{children:e.jsx(L,{})}),e.jsx(o,{children:"Blueprint"})]}):null,e.jsxs(C,{"data-testid":"settings-modal",onClick:x,children:[e.jsx(i,{children:e.jsx(S,{})}),e.jsx(o,{children:"Settings"})]}),b&&w?e.jsxs(I,{"data-testid":"feedback-modal",onClick:m,children:[e.jsx(i,{children:e.jsx(y,{})}),e.jsx(o,{children:"Send Feedback"})]}):null]})},F=a(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{j as e,ad as s,b4 as k,a4 as d,N as f,au as v,a5 as o,Q as a,S as n,U as l}from"./index-a7cfca89.js";import{A as H}from"./AddContentIcon-70138e00.js";import{C as L}from"./index-ca972e6a.js";const M=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_27)",children:e.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"})})]}),y=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),S=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_29)",children:e.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),Z=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_26)",children:e.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"})})]}),A=()=>{const{open:t}=s("sourcesTable"),{open:h}=s("addItem"),{open:p}=s("addContent"),{open:x}=s("settings"),{open:u}=s("blueprintGraph"),{open:m}=s("feedback"),g=k(),j=d(r=>r.customSchemaFeatureFlag),b=d(r=>r.userFeedbackFeatureFlag),[c]=f(r=>[r.isAdmin]),w=v();return e.jsxs(F,{children:[e.jsx(B,{onClick:()=>g("/"),children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),c?e.jsxs(C,{"data-testid":"add-item-modal",onClick:h,children:[e.jsx(i,{children:e.jsx(M,{})}),e.jsx(o,{children:"Add Item"})]}):null,e.jsxs(C,{"data-testid":"add-content-modal",onClick:p,children:[e.jsx(i,{children:e.jsx(H,{})}),e.jsx(o,{children:"Add Content"})]}),e.jsxs(C,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(i,{children:e.jsx(Z,{})}),e.jsx(o,{children:"Source Table"})]}),j&&c?e.jsxs(C,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:u,children:[e.jsx(i,{children:e.jsx(L,{})}),e.jsx(o,{children:"Blueprint"})]}):null,e.jsxs(C,{"data-testid":"settings-modal",onClick:x,children:[e.jsx(i,{children:e.jsx(S,{})}),e.jsx(o,{children:"Settings"})]}),b&&w?e.jsxs(I,{"data-testid":"feedback-modal",onClick:m,children:[e.jsx(i,{children:e.jsx(y,{})}),e.jsx(o,{children:"Send Feedback"})]}):null]})},F=a(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 31; transition: opacity 1s; diff --git a/build/index.html b/build/index.html index 39e63f664..45b895dde 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 - +