From 8b322e72a6a003745e3080820699f9db7dd41623 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Fri, 1 Nov 2024 09:22:19 +0000 Subject: [PATCH] ci: automatic build fixes --- ...der-b5124f12.js => ClipLoader-a0a9ce2c.js} | 2 +- ...on-92f5ad1a.js => DailyMotion-f43a72c1.js} | 2 +- ...ebook-db1064aa.js => Facebook-daf1a2ca.js} | 2 +- ...yer-83615655.js => FilePlayer-9d32e443.js} | 2 +- ...altura-ca215acb.js => Kaltura-8bcc4a6a.js} | 2 +- ...cloud-54129857.js => Mixcloud-d94e55a6.js} | 2 +- ...review-c7cee466.js => Preview-dd642161.js} | 2 +- ...leton-afdbf969.js => Skeleton-0e0ce42e.js} | 2 +- ...oud-a8055cf2.js => SoundCloud-ec95851e.js} | 2 +- .../{Stack-6ee91628.js => Stack-34a19487.js} | 2 +- ...ble-48b1afbb.js => Streamable-abf88c0e.js} | 2 +- .../{Tabs-a957b4a1.js => Tabs-79411ac3.js} | 2 +- ...f04bbd.js => TextareaAutosize-2d5341b4.js} | 2 +- ...{Twitch-b6e5c4bd.js => Twitch-58899c17.js} | 2 +- ...phy-0e3c6b80.js => Typography-4efd6f29.js} | 2 +- ...idyard-1e807bc4.js => Vidyard-e4f3572b.js} | 2 +- .../{Vimeo-f656196f.js => Vimeo-be96d162.js} | 2 +- ...{Wistia-10f2b48b.js => Wistia-d7d9727d.js} | 2 +- ...ouTube-d61d65bc.js => YouTube-5d1560d4.js} | 2 +- ...ants-ad9796f3.js => constants-6b0b8728.js} | 2 +- ...-a54a204b.js => createSvgIcon-23cd916d.js} | 2 +- .../{index-bea19f41.js => index-01d51677.js} | 2 +- .../{index-ba55d533.js => index-0b4435d0.js} | 2 +- .../{index-c3bafa47.js => index-17930aa1.js} | 2 +- .../{index-092b06c7.js => index-1f5ac1eb.js} | 6 +- .../{index-af08347c.js => index-39784bea.js} | 2 +- .../{index-6a665b3f.js => index-5f0e754b.js} | 2 +- .../{index-d662f97d.js => index-63bb73bc.js} | 145 +++++++++--------- .../{index-cfcff7e7.js => index-64813bbe.js} | 2 +- .../{index-3f78c796.js => index-69075348.js} | 2 +- .../{index-63ba7ef3.js => index-751d453d.js} | 2 +- .../{index-aa160d63.js => index-77fe94be.js} | 2 +- .../{index-1a20710e.js => index-7e993c6c.js} | 2 +- .../{index-8f3abdbd.js => index-8331965f.js} | 2 +- .../{index-14733886.js => index-8344fca4.js} | 2 +- .../{index-ff7c4077.js => index-85afbf1a.js} | 2 +- .../{index-3be58333.js => index-9d4b2019.js} | 6 +- .../{index-049f27f0.js => index-a4521012.js} | 2 +- .../{index-c431d222.js => index-b416b1a9.js} | 2 +- .../{index-6a300a43.js => index-bb616035.js} | 2 +- .../{index-179d4e66.js => index-c1db1c7b.js} | 2 +- .../{index-9fa86b0d.js => index-d36a9cfa.js} | 2 +- .../{index-defa7868.js => index-e8159074.js} | 2 +- .../{index-4f35da0f.js => index-f2ef880b.js} | 2 +- .../{index-1a9dd7cd.js => index-f63e96f7.js} | 2 +- ....esm-2a70f836.js => index.esm-258646ab.js} | 2 +- .../{map-b8352f2c.js => map-8d3cef29.js} | 2 +- build/index.html | 2 +- 48 files changed, 124 insertions(+), 123 deletions(-) rename build/assets/{ClipLoader-b5124f12.js => ClipLoader-a0a9ce2c.js} (97%) rename build/assets/{DailyMotion-92f5ad1a.js => DailyMotion-f43a72c1.js} (95%) rename build/assets/{Facebook-db1064aa.js => Facebook-daf1a2ca.js} (96%) rename build/assets/{FilePlayer-83615655.js => FilePlayer-9d32e443.js} (98%) rename build/assets/{Kaltura-ca215acb.js => Kaltura-8bcc4a6a.js} (95%) rename build/assets/{Mixcloud-54129857.js => Mixcloud-d94e55a6.js} (95%) rename build/assets/{Preview-c7cee466.js => Preview-dd642161.js} (97%) rename build/assets/{Skeleton-afdbf969.js => Skeleton-0e0ce42e.js} (97%) rename build/assets/{SoundCloud-a8055cf2.js => SoundCloud-ec95851e.js} (95%) rename build/assets/{Stack-6ee91628.js => Stack-34a19487.js} (99%) rename build/assets/{Streamable-48b1afbb.js => Streamable-abf88c0e.js} (95%) rename build/assets/{Tabs-a957b4a1.js => Tabs-79411ac3.js} (99%) rename build/assets/{TextareaAutosize-85f04bbd.js => TextareaAutosize-2d5341b4.js} (94%) rename build/assets/{Twitch-b6e5c4bd.js => Twitch-58899c17.js} (95%) rename build/assets/{Typography-0e3c6b80.js => Typography-4efd6f29.js} (93%) rename build/assets/{Vidyard-1e807bc4.js => Vidyard-e4f3572b.js} (95%) rename build/assets/{Vimeo-f656196f.js => Vimeo-be96d162.js} (96%) rename build/assets/{Wistia-10f2b48b.js => Wistia-d7d9727d.js} (96%) rename build/assets/{YouTube-d61d65bc.js => YouTube-5d1560d4.js} (97%) rename build/assets/{constants-ad9796f3.js => constants-6b0b8728.js} (80%) rename build/assets/{createSvgIcon-a54a204b.js => createSvgIcon-23cd916d.js} (97%) rename build/assets/{index-bea19f41.js => index-01d51677.js} (96%) rename build/assets/{index-ba55d533.js => index-0b4435d0.js} (90%) rename build/assets/{index-c3bafa47.js => index-17930aa1.js} (64%) rename build/assets/{index-092b06c7.js => index-1f5ac1eb.js} (99%) rename build/assets/{index-af08347c.js => index-39784bea.js} (99%) rename build/assets/{index-6a665b3f.js => index-5f0e754b.js} (85%) rename build/assets/{index-d662f97d.js => index-63bb73bc.js} (57%) rename build/assets/{index-cfcff7e7.js => index-64813bbe.js} (98%) rename build/assets/{index-3f78c796.js => index-69075348.js} (99%) rename build/assets/{index-63ba7ef3.js => index-751d453d.js} (94%) rename build/assets/{index-aa160d63.js => index-77fe94be.js} (91%) rename build/assets/{index-1a20710e.js => index-7e993c6c.js} (99%) rename build/assets/{index-8f3abdbd.js => index-8331965f.js} (96%) rename build/assets/{index-14733886.js => index-8344fca4.js} (69%) rename build/assets/{index-ff7c4077.js => index-85afbf1a.js} (99%) rename build/assets/{index-3be58333.js => index-9d4b2019.js} (99%) rename build/assets/{index-049f27f0.js => index-a4521012.js} (89%) rename build/assets/{index-c431d222.js => index-b416b1a9.js} (99%) rename build/assets/{index-6a300a43.js => index-bb616035.js} (90%) rename build/assets/{index-179d4e66.js => index-c1db1c7b.js} (96%) rename build/assets/{index-9fa86b0d.js => index-d36a9cfa.js} (90%) rename build/assets/{index-defa7868.js => index-e8159074.js} (95%) rename build/assets/{index-4f35da0f.js => index-f2ef880b.js} (89%) rename build/assets/{index-1a9dd7cd.js => index-f63e96f7.js} (93%) rename build/assets/{index.esm-2a70f836.js => index.esm-258646ab.js} (98%) rename build/assets/{map-b8352f2c.js => map-8d3cef29.js} (98%) diff --git a/build/assets/ClipLoader-b5124f12.js b/build/assets/ClipLoader-a0a9ce2c.js similarity index 97% rename from build/assets/ClipLoader-b5124f12.js rename to build/assets/ClipLoader-a0a9ce2c.js index 313765a79..6f7679eca 100644 --- a/build/assets/ClipLoader-b5124f12.js +++ b/build/assets/ClipLoader-a0a9ce2c.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-c431d222.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` +import{r as m}from"./index-b416b1a9.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` @keyframes `.concat(r,` { `).concat(t,` } diff --git a/build/assets/DailyMotion-92f5ad1a.js b/build/assets/DailyMotion-f43a72c1.js similarity index 95% rename from build/assets/DailyMotion-92f5ad1a.js rename to build/assets/DailyMotion-f43a72c1.js index c8e5253a2..56a2a4e02 100644 --- a/build/assets/DailyMotion-92f5ad1a.js +++ b/build/assets/DailyMotion-f43a72c1.js @@ -1 +1 @@ -import{g as P,r as v}from"./index-c431d222.js";import{u as D,p as O}from"./index-3be58333.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{g as P,r as v}from"./index-b416b1a9.js";import{u as D,p as O}from"./index-9d4b2019.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const g=u.player;this.player=new g(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:m=>a(m)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/Facebook-db1064aa.js b/build/assets/Facebook-daf1a2ca.js similarity index 96% rename from build/assets/Facebook-db1064aa.js rename to build/assets/Facebook-daf1a2ca.js index e6935d448..df49b0873 100644 --- a/build/assets/Facebook-db1064aa.js +++ b/build/assets/Facebook-daf1a2ca.js @@ -1 +1 @@ -import{g as _,r as g}from"./index-c431d222.js";import{u as P,p as m}from"./index-3be58333.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{g as _,r as g}from"./index-b416b1a9.js";import{u as P,p as m}from"./index-9d4b2019.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(g),n=P,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/FilePlayer-83615655.js b/build/assets/FilePlayer-9d32e443.js similarity index 98% rename from build/assets/FilePlayer-83615655.js rename to build/assets/FilePlayer-9d32e443.js index 843b1aeeb..28dfe764c 100644 --- a/build/assets/FilePlayer-83615655.js +++ b/build/assets/FilePlayer-9d32e443.js @@ -1 +1 @@ -import{g as b,r as _}from"./index-c431d222.js";import{u as O,p as A}from"./index-3be58333.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{g as b,r as _}from"./index-b416b1a9.js";import{u as O,p as A}from"./index-9d4b2019.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-ca215acb.js b/build/assets/Kaltura-8bcc4a6a.js similarity index 95% rename from build/assets/Kaltura-ca215acb.js rename to build/assets/Kaltura-8bcc4a6a.js index a2e22e0fa..e71af3073 100644 --- a/build/assets/Kaltura-ca215acb.js +++ b/build/assets/Kaltura-8bcc4a6a.js @@ -1 +1 @@ -import{g as y,r as f}from"./index-c431d222.js";import{u as _,p as m}from"./index-3be58333.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; +import{g as y,r as f}from"./index-b416b1a9.js";import{u as _,p as m}from"./index-9d4b2019.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-54129857.js b/build/assets/Mixcloud-d94e55a6.js similarity index 95% rename from build/assets/Mixcloud-54129857.js rename to build/assets/Mixcloud-d94e55a6.js index 48b63752d..0844fb00c 100644 --- a/build/assets/Mixcloud-54129857.js +++ b/build/assets/Mixcloud-d94e55a6.js @@ -1 +1 @@ -import{g as _,r as f}from"./index-c431d222.js";import{u as m,p as g}from"./index-3be58333.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; +import{g as _,r as f}from"./index-b416b1a9.js";import{u as m,p as g}from"./index-9d4b2019.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/build/assets/Preview-c7cee466.js b/build/assets/Preview-dd642161.js similarity index 97% rename from build/assets/Preview-c7cee466.js rename to build/assets/Preview-dd642161.js index 4e89719e1..4cf5b30ca 100644 --- a/build/assets/Preview-c7cee466.js +++ b/build/assets/Preview-dd642161.js @@ -1 +1 @@ -import{g as y,r as b}from"./index-c431d222.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; +import{g as y,r as b}from"./index-b416b1a9.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-afdbf969.js b/build/assets/Skeleton-0e0ce42e.js similarity index 97% rename from build/assets/Skeleton-afdbf969.js rename to build/assets/Skeleton-0e0ce42e.js index 65b8c2594..6d89822ec 100644 --- a/build/assets/Skeleton-afdbf969.js +++ b/build/assets/Skeleton-0e0ce42e.js @@ -1,4 +1,4 @@ -import{c as x,d as y,k as b,s as R,b as o,e as _,b0 as u,r as S,u as $,_ as U,j as M,f as j,h as A}from"./index-c431d222.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("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{c as x,d as y,k as b,s as R,b as o,e as _,b0 as u,r as S,u as $,_ as U,j as M,f as j,h as A}from"./index-b416b1a9.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("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-a8055cf2.js b/build/assets/SoundCloud-ec95851e.js similarity index 95% rename from build/assets/SoundCloud-a8055cf2.js rename to build/assets/SoundCloud-ec95851e.js index dff8efcc6..d3075d0f3 100644 --- a/build/assets/SoundCloud-a8055cf2.js +++ b/build/assets/SoundCloud-ec95851e.js @@ -1 +1 @@ -import{g as P,r as g}from"./index-c431d222.js";import{u as b,p as v}from"./index-3be58333.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{g as P,r as g}from"./index-b416b1a9.js";import{u as b,p as v}from"./index-9d4b2019.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/Stack-6ee91628.js b/build/assets/Stack-34a19487.js similarity index 99% rename from build/assets/Stack-6ee91628.js rename to build/assets/Stack-34a19487.js index 22fa1612f..f8aca002d 100644 --- a/build/assets/Stack-6ee91628.js +++ b/build/assets/Stack-34a19487.js @@ -1 +1 @@ -import{r as E,$ as Mt,_ as ae,b as T,bw as Ft,bx as Wt,by as Vt,bz as Lt,bA as Nt,b3 as Qe,b2 as Ae,bB as Ht,bv as It,bC as Ut,j as Q,bD as Ze,h as ke,c as Te,d as ht,s as Be,bE as qt,u as Me,i as gt,f as zt}from"./index-c431d222.js";import{J as et,b9 as Xt,y as tt,z as rt,X as Yt}from"./index-092b06c7.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Mt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Jt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Kt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Jt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sr=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Qe({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Ht(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=It(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Kt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:O=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:O},g=n();return Q.jsx(a,T({as:h,ownerState:u,ref:f,className:Qt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Pr="afterWrite",Or=[vr,mr,hr,gr,yr,br,xr,wr,Pr];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var K=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Z(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Pt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(U(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Ot(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?M:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),O=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=O-h[l]-v[x],y=O/2-h[l]/2+b,P=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=P,t.centerOffset=P-y,t)}}function kr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Pt(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),b=F,u=M,g=window;if(f){var y=ve(r),P="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(P="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[P];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Br),k=l===!0?Mr({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=O?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=O?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Pe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Pe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?De(Ir(e,r)):Z(t)?qr(t,r):De(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&Pt(n,o)&&U(n)!=="body"}):[]}function Xr(e,t,r,o){var n=t==="clippingParents"?zr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(e,f,o);return i.top=K(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=K(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case M:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),O=h===le?dr:le,b=e.rects.popper,u=e.elements[x?O:h],g=Xr(Z(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),P=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,P)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Yr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),O=w===m,b=i||(O||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,P=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[B]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}P.set($,G)}if(A)for(var me=x?3:1,Oe=function(X){var se=u.find(function(ge){var _=P.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Oe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Jr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[M,H,N,F].some(function(t){return e[t]>=0})}function Kr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kr};function Zr(e,t,r){var o=I(e),n=[F,M].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Zr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),O=ne(t.placement),b=!O,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,P=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?M:F,V=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],z=B+m[j],G=B-m[V],me=p?-A[D]/2:0,Oe=O===te?P[D]:A[D],ie=O===te?-A[D]:-P[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[j],ge=X[V],_=ce(0,P[D],ee[D]),Ee=b?P[D]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=B+Ee-Ue-Dt,kt=B+$t-Ue,qe=ce(p?we(z,jt):z,B,p?K(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[Tt],Ye=J-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-P[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+P[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=p&&Re?$r(_e,J,Je):ce(p?_e:Xe,J,p?Je:Ye);y[g]=Ke,k[g]=Ke-J}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return Or.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),O=tt(w,r),b=E.useRef(null),u=tt(b,h),g=E.useRef(u);rt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Po(l,c),[P,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),rt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:k.root});return Q.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,O=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let P;if(a)P=a;else if(o){const R=je(o);P=R&&Oo(R)?et(R).body:et(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Q.jsx(Xt,{disablePortal:s,container:P,children:Q.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},O,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Be(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Me({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,P=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O},g);return Q.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},P,{ref:r}))}),Uo=Do;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const jo=E.createContext(void 0),St=jo;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Me({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Bo),O=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Mo(O),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,P]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(St.Provider,{value:k,children:Q.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Vo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Kt as e,qo as f,mt as i,Io as u}; +import{r as E,$ as Mt,_ as ae,b as T,bw as Ft,bx as Wt,by as Vt,bz as Lt,bA as Nt,b3 as Qe,b2 as Ae,bB as Ht,bv as It,bC as Ut,j as Q,bD as Ze,h as ke,c as Te,d as ht,s as Be,bE as qt,u as Me,i as gt,f as zt}from"./index-b416b1a9.js";import{J as et,b9 as Xt,y as tt,z as rt,X as Yt}from"./index-1f5ac1eb.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Mt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Jt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Kt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Jt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sr=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Qe({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Ht(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=It(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Kt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:O=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:O},g=n();return Q.jsx(a,T({as:h,ownerState:u,ref:f,className:Qt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Pr="afterWrite",Or=[vr,mr,hr,gr,yr,br,xr,wr,Pr];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var K=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Z(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Pt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(U(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Pe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Ot(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Ot(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?M:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),O=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=O-h[l]-v[x],y=O/2-h[l]/2+b,P=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=P,t.centerOffset=P-y,t)}}function kr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Pt(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Br={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),b=F,u=M,g=window;if(f){var y=ve(r),P="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(P="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[P];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Br),k=l===!0?Mr({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=O?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=O?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Pe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Pe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?De(Ir(e,r)):Z(t)?qr(t,r):De(Ur(Y(e)))}function zr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&Pt(n,o)&&U(n)!=="body"}):[]}function Xr(e,t,r,o){var n=t==="clippingParents"?zr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(e,f,o);return i.top=K(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=K(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case M:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),O=h===le?dr:le,b=e.rects.popper,u=e.elements[x?O:h],g=Xr(Z(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),P=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,P)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Yr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),O=w===m,b=i||(O||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,P=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=j?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var z=xe(B),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[B]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}P.set($,G)}if(A)for(var me=x?3:1,Oe=function(X){var se=u.find(function(ge){var _=P.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Oe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Jr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[M,H,N,F].some(function(t){return e[t]>=0})}function Kr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Qr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kr};function Zr(e,t,r){var o=I(e),n=[F,M].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Zr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),O=ne(t.placement),b=!O,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,P=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?M:F,V=u==="y"?N:H,D=u==="y"?"height":"width",B=y[u],z=B+m[j],G=B-m[V],me=p?-A[D]/2:0,Oe=O===te?P[D]:A[D],ie=O===te?-A[D]:-P[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ot(),se=X[j],ge=X[V],_=ce(0,P[D],ee[D]),Ee=b?P[D]/2-me-_-se-R.mainAxis:Oe-_-se-R.mainAxis,$t=b?-P[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=B+Ee-Ue-Dt,kt=B+$t-Ue,qe=ce(p?we(z,jt):z,B,p?K(G,kt):G);y[u]=qe,k[u]=qe-B}if(s){var ze,Tt=u==="x"?M:F,Bt=u==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[Tt],Ye=J-m[Bt],Re=[M,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-P[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+P[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=p&&Re?$r(_e,J,Je):ce(p?_e:Xe,J,p?Je:Ye);y[g]=Ke,k[g]=Ke-J}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return Or.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),O=tt(w,r),b=E.useRef(null),u=tt(b,h),g=E.useRef(u);rt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Po(l,c),[P,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),rt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const B=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:P};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:k.root});return Q.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,O=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let P;if(a)P=a;else if(o){const R=je(o);P=R&&Oo(R)?et(R).body:et(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Q.jsx(Xt,{disablePortal:s,container:P,children:Q.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},O,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Be(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Me({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,P=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:O},g);return Q.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},P,{ref:r}))}),Uo=Do;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const jo=E.createContext(void 0),St=jo;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Bo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Me({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Bo),O=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Mo(O),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,P]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{P(!1)},onFilled:()=>{P(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(St.Provider,{value:k,children:Q.jsx(Fo,T({as:s,ownerState:O,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Yo=Vo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Kt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Streamable-48b1afbb.js b/build/assets/Streamable-abf88c0e.js similarity index 95% rename from build/assets/Streamable-48b1afbb.js rename to build/assets/Streamable-abf88c0e.js index 50bd72e30..a3cd7b01e 100644 --- a/build/assets/Streamable-48b1afbb.js +++ b/build/assets/Streamable-abf88c0e.js @@ -1 +1 @@ -import{g as m,r as f}from"./index-c431d222.js";import{u as _,p as b}from"./index-3be58333.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; +import{g as m,r as f}from"./index-b416b1a9.js";import{u as _,p as b}from"./index-9d4b2019.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/build/assets/Tabs-a957b4a1.js b/build/assets/Tabs-79411ac3.js similarity index 99% rename from build/assets/Tabs-a957b4a1.js rename to build/assets/Tabs-79411ac3.js index d35872a67..3ac027ae1 100644 --- a/build/assets/Tabs-a957b4a1.js +++ b/build/assets/Tabs-79411ac3.js @@ -1 +1 @@ -import{d as ft,c as pt,s as O,i as Pt,b,r as c,u as ht,_ as rt,f as L,j as S,h as St,m as Lt}from"./index-c431d222.js";import{b4 as Nt,z as Zt,R as $t,L as kt,X as lt,G as ut,J as te}from"./index-092b06c7.js";import{c as Ft}from"./createSvgIcon-a54a204b.js";let U;function At(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:i,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,i&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ie=c.forwardRef(function(e,r){const i=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=i,X=rt(i,re),Y=b({},i,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ie,ae=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,i={},n=()=>{}){const{ease:d=de,duration:h=300}=i;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),i=c.useRef(),n=c.useRef(null),d=()=>{i.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=i.current;d(),u!==i.current&&e(i.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(i.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:i}=t;return St({root:["root",r,i&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var i,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(i=p.StartScrollButtonIcon)!=null?i:ae,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let i=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(i)return;i=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:i,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const i=ht({props:e,name:"MuiTabs"}),n=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:X={},slotProps:Y={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=i,Ot=rt(i,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",it=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},i,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Ct,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let a;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];a=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:a}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let a=0,s;if(B)s="top",l&&o&&(a=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;a=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:a,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),at=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),at(l)},It=()=>{const o=z.current[it];let l=0;const a=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[it]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const a=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=a?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=a?S.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:a}=wt();if(!(!a||!l)){if(a[Q]l[Z]){const s=l[K]+(a[Z]-l[Z]);at(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const a=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(a),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const a=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(a);const G=dt=>{_t(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Xt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const a=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:a&&!vt&&Mt,selected:a,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,a=te(l).activeElement;if(a.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,a,zt);break;case v:o.preventDefault(),ot(l,a,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; +import{d as ft,c as pt,s as O,i as Pt,b,r as c,u as ht,_ as rt,f as L,j as S,h as St,m as Lt}from"./index-b416b1a9.js";import{b4 as Nt,z as Zt,R as $t,L as kt,X as lt,G as ut,J as te}from"./index-1f5ac1eb.js";import{c as Ft}from"./createSvgIcon-23cd916d.js";let U;function At(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:i,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,i&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ie=c.forwardRef(function(e,r){const i=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=i,X=rt(i,re),Y=b({},i,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ie,ae=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,i={},n=()=>{}){const{ease:d=de,duration:h=300}=i;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),i=c.useRef(),n=c.useRef(null),d=()=>{i.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=i.current;d(),u!==i.current&&e(i.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(i.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:i}=t;return St({root:["root",r,i&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var i,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(i=p.StartScrollButtonIcon)!=null?i:ae,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let i=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(i)return;i=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:i,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const i=ht({props:e,name:"MuiTabs"}),n=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:X={},slotProps:Y={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=i,Ot=rt(i,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",it=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},i,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Ct,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let a;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];a=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:a}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let a=0,s;if(B)s="top",l&&o&&(a=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;a=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:a,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),at=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),at(l)},It=()=>{const o=z.current[it];let l=0;const a=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[it]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const a=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=a?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=a?S.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:a}=wt();if(!(!a||!l)){if(a[Q]l[Z]){const s=l[K]+(a[Z]-l[Z]);at(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const a=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(a),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const a=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(a);const G=dt=>{_t(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Xt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const a=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:a&&!vt&&Mt,selected:a,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,a=te(l).activeElement;if(a.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,a,zt);break;case v:o.preventDefault(),ot(l,a,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-85f04bbd.js b/build/assets/TextareaAutosize-2d5341b4.js similarity index 94% rename from build/assets/TextareaAutosize-85f04bbd.js rename to build/assets/TextareaAutosize-2d5341b4.js index 338d4887c..702f65f78 100644 --- a/build/assets/TextareaAutosize-85f04bbd.js +++ b/build/assets/TextareaAutosize-2d5341b4.js @@ -1,2 +1,2 @@ -import{r as o,_ as B,j as p,b as v,l as I}from"./index-c431d222.js";import{y as D,L as T,z as F,R as P}from"./index-092b06c7.js";const U=["onChange","maxRows","minRows","style","value"];function m(r){return parseInt(r,10)||0}const V={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const G=o.forwardRef(function(l,O){const{onChange:R,maxRows:y,minRows:h=1,style:S,value:x}=l,k=B(l,U),{current:A}=o.useRef(x!=null),b=o.useRef(null),L=D(O,b),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=b.current,n=T(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` +import{r as o,_ as B,j as p,b as v,l as I}from"./index-b416b1a9.js";import{y as D,L as T,z as F,R as P}from"./index-1f5ac1eb.js";const U=["onChange","maxRows","minRows","style","value"];function m(r){return parseInt(r,10)||0}const V={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const G=o.forwardRef(function(l,O){const{onChange:R,maxRows:y,minRows:h=1,style:S,value:x}=l,k=B(l,U),{current:A}=o.useRef(x!=null),b=o.useRef(null),L=D(O,b),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=b.current,n=T(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` `&&(t.value+=" ");const g=n.boxSizing,w=m(n.paddingBottom)+m(n.paddingTop),a=m(n.borderBottomWidth)+m(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),y&&(s=Math.min(Number(y)*d,s)),s=Math.max(s,d);const _=s+(g==="border-box"?w+a:0),j=Math.abs(s-u)<=1;return{outerHeightStyle:_,overflow:j}},[y,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);F(()=>{const e=()=>{const u=f();M(u)||I.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=P(i),g=b.current,w=T(g);w.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),w.removeEventListener("resize",t),a&&a.disconnect()}},[f]),F(()=>{W()}),o.useEffect(()=>{c.current=0},[x]);const N=e=>{c.current=0,A||W(),R&&R(e)};return p.jsxs(o.Fragment,{children:[p.jsx("textarea",v({value:x,onChange:N,ref:L,rows:h,style:v({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),p.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:v({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{G as T}; diff --git a/build/assets/Twitch-b6e5c4bd.js b/build/assets/Twitch-58899c17.js similarity index 95% rename from build/assets/Twitch-b6e5c4bd.js rename to build/assets/Twitch-58899c17.js index 8f8cf0d02..3aeaed271 100644 --- a/build/assets/Twitch-b6e5c4bd.js +++ b/build/assets/Twitch-58899c17.js @@ -1 +1 @@ -import{g as w,r as D}from"./index-c431d222.js";import{u as C,p as N}from"./index-3be58333.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{g as w,r as D}from"./index-b416b1a9.js";import{u as C,p as N}from"./index-9d4b2019.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:g,PLAYING:m,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(g,this.props.onReady),this.player.addEventListener(m,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-0e3c6b80.js b/build/assets/Typography-4efd6f29.js similarity index 93% rename from build/assets/Typography-0e3c6b80.js rename to build/assets/Typography-4efd6f29.js index 8535b5969..d2252b702 100644 --- a/build/assets/Typography-0e3c6b80.js +++ b/build/assets/Typography-4efd6f29.js @@ -1 +1 @@ -import{c as T,d as B,s as W,i as u,b as s,r as C,u as M,_ as R,j as P,f as j,h as U}from"./index-c431d222.js";import{e as _}from"./Stack-6ee91628.js";function N(a){return T("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:p}=a,e={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return U(e,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),i=A(n.color),o=_(s({},n,{color:i})),{align:p="inherit",className:e,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,$),m=s({},o,{align:p,color:i,className:e,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",b=E(m);return P.jsx(L,s({as:v,ref:r,ownerState:m,className:j(b.root,e)},x))}),V=D;export{V as T}; +import{c as T,d as B,s as W,i as u,b as s,r as C,u as M,_ as R,j as P,f as j,h as U}from"./index-b416b1a9.js";import{e as _}from"./Stack-34a19487.js";function N(a){return T("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:p}=a,e={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return U(e,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),i=A(n.color),o=_(s({},n,{color:i})),{align:p="inherit",className:e,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,$),m=s({},o,{align:p,color:i,className:e,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",b=E(m);return P.jsx(L,s({as:v,ref:r,ownerState:m,className:j(b.root,e)},x))}),V=D;export{V as T}; diff --git a/build/assets/Vidyard-1e807bc4.js b/build/assets/Vidyard-e4f3572b.js similarity index 95% rename from build/assets/Vidyard-1e807bc4.js rename to build/assets/Vidyard-e4f3572b.js index aceeb519f..65f64abb2 100644 --- a/build/assets/Vidyard-1e807bc4.js +++ b/build/assets/Vidyard-e4f3572b.js @@ -1 +1 @@ -import{g,r as v}from"./index-c431d222.js";import{u as b,p as O}from"./index-3be58333.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{g,r as v}from"./index-b416b1a9.js";import{u as b,p as O}from"./index-9d4b2019.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; diff --git a/build/assets/Vimeo-f656196f.js b/build/assets/Vimeo-be96d162.js similarity index 96% rename from build/assets/Vimeo-f656196f.js rename to build/assets/Vimeo-be96d162.js index 2cb4ac3af..1893ae7b5 100644 --- a/build/assets/Vimeo-f656196f.js +++ b/build/assets/Vimeo-be96d162.js @@ -1 +1 @@ -import{g as d,r as f}from"./index-c431d222.js";import{u as m,p as _}from"./index-3be58333.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{g as d,r as f}from"./index-b416b1a9.js";import{u as m,p as _}from"./index-9d4b2019.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/build/assets/Wistia-10f2b48b.js b/build/assets/Wistia-d7d9727d.js similarity index 96% rename from build/assets/Wistia-10f2b48b.js rename to build/assets/Wistia-d7d9727d.js index 77630761f..0e8658a17 100644 --- a/build/assets/Wistia-10f2b48b.js +++ b/build/assets/Wistia-d7d9727d.js @@ -1 +1 @@ -import{g as m,r as g}from"./index-c431d222.js";import{u as v,p as w}from"./index-3be58333.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{g as m,r as g}from"./index-b416b1a9.js";import{u as v,p as w}from"./index-9d4b2019.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-d61d65bc.js b/build/assets/YouTube-5d1560d4.js similarity index 97% rename from build/assets/YouTube-d61d65bc.js rename to build/assets/YouTube-5d1560d4.js index 460e07ab4..79bcbebcd 100644 --- a/build/assets/YouTube-d61d65bc.js +++ b/build/assets/YouTube-5d1560d4.js @@ -1 +1 @@ -import{g as U,r as I}from"./index-c431d222.js";import{u as L,p as Y}from"./index-3be58333.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{g as U,r as I}from"./index-b416b1a9.js";import{u as L,p as Y}from"./index-9d4b2019.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/build/assets/constants-ad9796f3.js b/build/assets/constants-6b0b8728.js similarity index 80% rename from build/assets/constants-ad9796f3.js rename to build/assets/constants-6b0b8728.js index 4679297ff..6d10215d0 100644 --- a/build/assets/constants-ad9796f3.js +++ b/build/assets/constants-6b0b8728.js @@ -1,4 +1,4 @@ -import{t,aD as s,aB as a,aC as o,aE as n}from"./index-c431d222.js";import{aw as c}from"./index-092b06c7.js";const E={[s]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},i="Sources Table",r="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",l="alphabetically",_="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",C=t(c)` +import{t,aD as s,aB as a,aC as o,aE as n}from"./index-b416b1a9.js";import{aw as c}from"./index-1f5ac1eb.js";const E={[s]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},i="Sources Table",r="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",l="alphabetically",_="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",C=t(c)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/createSvgIcon-a54a204b.js b/build/assets/createSvgIcon-23cd916d.js similarity index 97% rename from build/assets/createSvgIcon-a54a204b.js rename to build/assets/createSvgIcon-23cd916d.js index 3d62f3cae..4c0b632d5 100644 --- a/build/assets/createSvgIcon-a54a204b.js +++ b/build/assets/createSvgIcon-23cd916d.js @@ -1 +1 @@ -import{c as I,d as C,s as w,i as f,r as v,u as R,_ as b,b as g,j as S,f as j,h as N}from"./index-c431d222.js";function A(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,B),l=v.isValidElement(n)&&n.type==="svg",y=g({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function U(o,e){function t(i,n){return S.jsx($,g({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; +import{c as I,d as C,s as w,i as f,r as v,u as R,_ as b,b as g,j as S,f as j,h as N}from"./index-b416b1a9.js";function A(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,B),l=v.isValidElement(n)&&n.type==="svg",y=g({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function U(o,e){function t(i,n){return S.jsx($,g({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; diff --git a/build/assets/index-bea19f41.js b/build/assets/index-01d51677.js similarity index 96% rename from build/assets/index-bea19f41.js rename to build/assets/index-01d51677.js index 1d3e9284c..7ef0f92f7 100644 --- a/build/assets/index-bea19f41.js +++ b/build/assets/index-01d51677.js @@ -1,4 +1,4 @@ -import{aB as j,aC as E,aD as b,aE as R,aF as $,aG as D,aH as U,aI as G,t as p,v as u,z as O,r as f,j as e,F as r,T as C,aJ as J,aA as K,q as Q,az as m,aK as X,a0 as ee,aL as te,aM as se,Z as ne,P as oe,aN as re}from"./index-c431d222.js";import{aL as ae,B as z,ah as ie,u as ce,a0 as le,a1 as de}from"./index-092b06c7.js";import{B as ue}from"./index-8f3abdbd.js";import{S as pe}from"./index-c3bafa47.js";import{e as xe}from"./index.esm-2a70f836.js";import{C as he}from"./ClipLoader-b5124f12.js";import{T as fe}from"./index-cfcff7e7.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?$:ve.test(t)?E:A.test(t)?j:be.test(t)?D:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:U:G}const Be=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=O(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await J(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs($e,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ae(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(z,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(he,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(ie,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},$e=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aB as j,aC as E,aD as b,aE as R,aF as $,aG as D,aH as U,aI as G,t as p,v as u,z as O,r as f,j as e,F as r,T as C,aJ as J,aA as K,q as Q,az as m,aK as X,a0 as ee,aL as te,aM as se,Z as ne,P as oe,aN as re}from"./index-b416b1a9.js";import{aL as ae,B as z,ah as ie,u as ce,a0 as le,a1 as de}from"./index-1f5ac1eb.js";import{B as ue}from"./index-8331965f.js";import{S as pe}from"./index-17930aa1.js";import{e as xe}from"./index.esm-258646ab.js";import{C as he}from"./ClipLoader-a0a9ce2c.js";import{T as fe}from"./index-64813bbe.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?$:ve.test(t)?E:A.test(t)?j:be.test(t)?D:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:U:G}const Be=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Te=({onClick:t,loading:s,type:n,error:o})=>{const y=O(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await J(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs($e,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ae(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(z,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(he,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(ie,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},$e=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${u.GRAY7}; diff --git a/build/assets/index-ba55d533.js b/build/assets/index-0b4435d0.js similarity index 90% rename from build/assets/index-ba55d533.js rename to build/assets/index-0b4435d0.js index 850b17822..5a8588684 100644 --- a/build/assets/index-ba55d533.js +++ b/build/assets/index-0b4435d0.js @@ -1,4 +1,4 @@ -import{t as c,v as N,T as E,F as s,N as O,r as l,j as e,aA as W,a_ as P,aY as V,q as k}from"./index-c431d222.js";import{B as q}from"./index-8f3abdbd.js";import{u as x,e as F,T as G,aZ as Y,a0 as H,a1 as Z,B as I}from"./index-092b06c7.js";import{T as J}from"./index-cfcff7e7.js";import{S as K}from"./Skeleton-afdbf969.js";import{C as Q}from"./ClipLoader-b5124f12.js";import"./index.esm-2a70f836.js";const X=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!X.test(r)}function te(r){return r.split("_").map(d=>d.charAt(0).toUpperCase()+d.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:d}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=O(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=F(),j=a==null?void 0:a.node_type,[m,u]=l.useState({});l.useEffect(()=>{a!=null&&a.properties&&u(a.properties)},[a]);const y=()=>{d(),r()},g=(o,n)=>{u(T=>({...T,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(G,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(Y,{})})]})]})}),e.jsx(ie,{children:Object.keys(m).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(J,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...W}:{}})]},o))})]})},oe=c(E)` +import{t as c,v as N,T as E,F as s,N as O,r as l,j as e,aA as W,a_ as P,aY as V,q as k}from"./index-b416b1a9.js";import{B as q}from"./index-8331965f.js";import{u as x,e as F,T as G,aZ as Y,a0 as H,a1 as Z,B as I}from"./index-1f5ac1eb.js";import{T as J}from"./index-64813bbe.js";import{S as K}from"./Skeleton-0e0ce42e.js";import{C as Q}from"./ClipLoader-a0a9ce2c.js";import"./index.esm-258646ab.js";const X=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function ee(r){return!!X.test(r)}function te(r){return r.split("_").map(d=>d.charAt(0).toUpperCase()+d.slice(1)).join(" ")}const ae=()=>{const{open:r}=x("changeNodeType"),{close:d}=x("editNodeName"),{changeNodeTypeFeatureFlag:f}=O(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=F(),j=a==null?void 0:a.node_type,[m,u]=l.useState({});l.useEffect(()=>{a!=null&&a.properties&&u(a.properties)},[a]);const y=()=>{d(),r()},g=(o,n)=>{u(T=>({...T,[o]:n}))};return e.jsxs(s,{children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(s,{align:"center",direction:"row",children:[e.jsx(oe,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(G,{type:j}),f&&e.jsx(re,{onClick:y,children:e.jsx(Y,{})})]})]})}),e.jsx(ie,{children:Object.keys(m).map(o=>e.jsxs(s,{mb:18,children:[e.jsx(ne,{style:{marginBottom:8},children:te(o)}),e.jsx(J,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>g(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...W}:{}})]},o))})]})},oe=c(E)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-c3bafa47.js b/build/assets/index-17930aa1.js similarity index 64% rename from build/assets/index-c3bafa47.js rename to build/assets/index-17930aa1.js index 0f7bde7f8..82283b605 100644 --- a/build/assets/index-c3bafa47.js +++ b/build/assets/index-17930aa1.js @@ -1,4 +1,4 @@ -import{t as i,j as t,v as a}from"./index-c431d222.js";import{f as n}from"./index.esm-2a70f836.js";import{ba as e}from"./index-092b06c7.js";const r=i.div` +import{t as i,j as t,v as a}from"./index-b416b1a9.js";import{f as n}from"./index.esm-258646ab.js";import{ba as e}from"./index-1f5ac1eb.js";const r=i.div` display: Flex; justify-content: center; align-items: center; diff --git a/build/assets/index-092b06c7.js b/build/assets/index-1f5ac1eb.js similarity index 99% rename from build/assets/index-092b06c7.js rename to build/assets/index-1f5ac1eb.js index 79f06ebb7..63d682d4f 100644 --- a/build/assets/index-092b06c7.js +++ b/build/assets/index-1f5ac1eb.js @@ -1,4 +1,4 @@ -import{g as La,r as p,R as v,a as E0,_ as Z1,b as U,c as f0,d as Xe,s as se,e as ze,u as Qe,j as u,f as A1,h as h0,k as Kr,i as G1,l as pn,m as Ra,n as G3,o as P3,$ as M3,W as T3,p as mn,q as Je,t as l1,v as t1,F as s1,w as L3,x as R3,L as F3,y as xn,z as qr,A as Fa,T as F1,S as O3,B as W1,C as I3,D as H3,E as N3,G as z3,H as U3,I as Z3,J as Oa,K as W3,M as K3,N as q3,O as Y3,P as X3}from"./index-c431d222.js";function Q3(e){return e===null?"?":e.toLocaleString("en-US").split(",").join(" ")}function J3(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const el=e=>{const[t,n,r]=e.split(":"),i=parseInt(t,10),o=parseInt(n,10),a=parseInt(r,10);return i*3600+o*60+a};var Ia={exports:{}},tl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nl=tl,rl=nl;function Ha(){}function Na(){}Na.resetWarningCache=Ha;var il=function(){function e(r,i,o,a,s,l){if(l!==rl){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Na,resetWarningCache:Ha};return n.PropTypes=n,n};Ia.exports=il();var ol=Ia.exports;const g1=La(ol);function ji(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function al(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function we(e){return e&&e.ownerDocument||document}function st(e){return we(e).defaultView||window}function ur(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sl=typeof window<"u"?p.useLayoutEffect:p.useEffect,dr=sl;function S0(e){const t=p.useRef(e);return dr(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Pe(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ur(n,t)})},e)}let kn=!0,fr=!1,Gi;const ll={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 cl(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ll[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ul(e){e.metaKey||e.altKey||e.ctrlKey||(kn=!0)}function jn(){kn=!1}function dl(){this.visibilityState==="hidden"&&fr&&(kn=!0)}function fl(e){e.addEventListener("keydown",ul,!0),e.addEventListener("mousedown",jn,!0),e.addEventListener("pointerdown",jn,!0),e.addEventListener("touchstart",jn,!0),e.addEventListener("visibilitychange",dl,!0)}function hl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return kn||cl(t)}function pl(){const e=p.useCallback(i=>{i!=null&&fl(i.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(fr=!0,window.clearTimeout(Gi),Gi=window.setTimeout(()=>{fr=!1},100),t.current=!1,!0):!1}function r(i){return hl(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ml(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const xl=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Pi=xl;function hr(e,t){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hr(e,t)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hr(e,t)}const Mi={disabled:!1},Ot=v.createContext(null);var kl=function(t){return t.scrollTop},Q0="unmounted",t0="exited",n0="entering",w0="entered",pr="exiting",Fe=function(e){za(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=t0,o.appearStatus=n0):l=w0:r.unmountOnExit||r.mountOnEnter?l=Q0:l=t0,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Q0?{status:t0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==n0&&a!==w0&&(o=n0):(a===n0||a===w0)&&(o=pr)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===n0){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this);a&&kl(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===t0&&this.setState({status:Q0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[E0.findDOMNode(this),s],c=l[0],d=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!i&&!a||Mi.disabled){this.safeSetState({status:w0},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:n0},function(){o.props.onEntering(c,d),o.onTransitionEnd(h,function(){o.safeSetState({status:w0},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:E0.findDOMNode(this);if(!o||Mi.disabled){this.safeSetState({status:t0},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:pr},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:t0},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this),s=i==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],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Q0)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Z1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Ot.Provider,{value:null},typeof a=="function"?a(i,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);Fe.contextType=Ot;Fe.propTypes={};function g0(){}Fe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g0,onEntering:g0,onEntered:g0,onExit:g0,onExiting:g0,onExited:g0};Fe.UNMOUNTED=Q0;Fe.EXITED=t0;Fe.ENTERING=n0;Fe.ENTERED=w0;Fe.EXITING=pr;const Ua=Fe;function gl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e,t){var n=function(o){return t&&p.isValidElement(o)?t(o):o},r=Object.create(null);return e&&p.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Cl(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function It(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function Sl(e){return f0("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 _l=["className","component","elevation","square","variant"],Al=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return h0(o,Sl,i)},Vl=se("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 U({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"&&U({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ze("#fff",Pi(t.elevation))}, ${ze("#fff",Pi(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Dl=p.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=Z1(r,_l),d=U({},r,{component:o,elevation:a,square:s,variant:l}),f=Al(d);return u.jsx(Vl,U({as:o,ownerState:d,className:A1(f.root,i),ref:n},c))}),Bl=Dl;function $l(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,f]=p.useState(!1),h=A1(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),k={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=A1(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),u.jsx("span",{className:h,style:k,children:u.jsx("span",{className:m})})}const jl=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ce=jl,Gl=["center","classes","className"];let gn=e=>e,Ti,Li,Ri,Fi;const mr=550,Pl=80,Ml=Kr(Ti||(Ti=gn` +import{g as La,r as p,R as v,a as E0,_ as Z1,b as U,c as f0,d as Xe,s as se,e as ze,u as Qe,j as u,f as A1,h as h0,k as Kr,i as G1,l as pn,m as Ra,n as G3,o as P3,$ as M3,W as T3,p as mn,q as Je,t as l1,v as t1,F as s1,w as L3,x as R3,L as F3,y as xn,z as qr,A as Fa,T as F1,S as O3,B as W1,C as I3,D as H3,E as N3,G as z3,H as U3,I as Z3,J as Oa,K as W3,M as K3,N as q3,O as Y3,P as X3}from"./index-b416b1a9.js";function Q3(e){return e===null?"?":e.toLocaleString("en-US").split(",").join(" ")}function J3(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const el=e=>{const[t,n,r]=e.split(":"),i=parseInt(t,10),o=parseInt(n,10),a=parseInt(r,10);return i*3600+o*60+a};var Ia={exports:{}},tl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nl=tl,rl=nl;function Ha(){}function Na(){}Na.resetWarningCache=Ha;var il=function(){function e(r,i,o,a,s,l){if(l!==rl){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Na,resetWarningCache:Ha};return n.PropTypes=n,n};Ia.exports=il();var ol=Ia.exports;const g1=La(ol);function ji(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function al(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function we(e){return e&&e.ownerDocument||document}function st(e){return we(e).defaultView||window}function ur(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const sl=typeof window<"u"?p.useLayoutEffect:p.useEffect,dr=sl;function S0(e){const t=p.useRef(e);return dr(()=>{t.current=e}),p.useRef((...n)=>(0,t.current)(...n)).current}function Pe(...e){return p.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ur(n,t)})},e)}let kn=!0,fr=!1,Gi;const ll={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 cl(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ll[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function ul(e){e.metaKey||e.altKey||e.ctrlKey||(kn=!0)}function jn(){kn=!1}function dl(){this.visibilityState==="hidden"&&fr&&(kn=!0)}function fl(e){e.addEventListener("keydown",ul,!0),e.addEventListener("mousedown",jn,!0),e.addEventListener("pointerdown",jn,!0),e.addEventListener("touchstart",jn,!0),e.addEventListener("visibilitychange",dl,!0)}function hl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return kn||cl(t)}function pl(){const e=p.useCallback(i=>{i!=null&&fl(i.ownerDocument)},[]),t=p.useRef(!1);function n(){return t.current?(fr=!0,window.clearTimeout(Gi),Gi=window.setTimeout(()=>{fr=!1},100),t.current=!1,!0):!1}function r(i){return hl(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function ml(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const xl=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Pi=xl;function hr(e,t){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hr(e,t)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hr(e,t)}const Mi={disabled:!1},Ot=v.createContext(null);var kl=function(t){return t.scrollTop},Q0="unmounted",t0="exited",n0="entering",w0="entered",pr="exiting",Fe=function(e){za(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=t0,o.appearStatus=n0):l=w0:r.unmountOnExit||r.mountOnEnter?l=Q0:l=t0,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Q0?{status:t0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==n0&&a!==w0&&(o=n0):(a===n0||a===w0)&&(o=pr)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===n0){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this);a&&kl(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===t0&&this.setState({status:Q0})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[E0.findDOMNode(this),s],c=l[0],d=l[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!i&&!a||Mi.disabled){this.safeSetState({status:w0},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:n0},function(){o.props.onEntering(c,d),o.onTransitionEnd(h,function(){o.safeSetState({status:w0},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:E0.findDOMNode(this);if(!o||Mi.disabled){this.safeSetState({status:t0},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:pr},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:t0},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:E0.findDOMNode(this),s=i==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],d=l[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Q0)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Z1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Ot.Provider,{value:null},typeof a=="function"?a(i,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);Fe.contextType=Ot;Fe.propTypes={};function g0(){}Fe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g0,onEntering:g0,onEntered:g0,onExit:g0,onExiting:g0,onExited:g0};Fe.UNMOUNTED=Q0;Fe.EXITED=t0;Fe.ENTERING=n0;Fe.ENTERED=w0;Fe.EXITING=pr;const Ua=Fe;function gl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yr(e,t){var n=function(o){return t&&p.isValidElement(o)?t(o):o},r=Object.create(null);return e&&p.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Cl(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;ae.scrollTop;function It(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function Sl(e){return f0("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 _l=["className","component","elevation","square","variant"],Al=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return h0(o,Sl,i)},Vl=se("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 U({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"&&U({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ze("#fff",Pi(t.elevation))}, ${ze("#fff",Pi(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Dl=p.forwardRef(function(t,n){const r=Qe({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,c=Z1(r,_l),d=U({},r,{component:o,elevation:a,square:s,variant:l}),f=Al(d);return u.jsx(Vl,U({as:o,ownerState:d,className:A1(f.root,i),ref:n},c))}),Bl=Dl;function $l(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,f]=p.useState(!1),h=A1(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),k={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},m=A1(n.child,d&&n.childLeaving,r&&n.childPulsate);return!s&&!d&&f(!0),p.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,c);return()=>{clearTimeout(g)}}},[l,s,c]),u.jsx("span",{className:h,style:k,children:u.jsx("span",{className:m})})}const jl=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ce=jl,Gl=["center","classes","className"];let gn=e=>e,Ti,Li,Ri,Fi;const mr=550,Pl=80,Ml=Kr(Ti||(Ti=gn` 0% { transform: scale(0); opacity: 0.1; @@ -386,7 +386,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 65px; right: 55px; z-index: 100; -`,sm=()=>{const e=p.useContext(O3);return e==null?void 0:e.socket},lm={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},cm=mn(e=>({...lm,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,i,o;(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:(i=t==null?void 0:t.instagraph)==null?void 0:i.edges,nodes:(o=t==null?void 0:t.instagraph)==null?void 0:o.nodes}})}})),um="0.1.106",dm=p.lazy(()=>W1(()=>import("./index-1a9dd7cd.js"),["assets/index-1a9dd7cd.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/ClipLoader-b5124f12.js","assets/index.esm-2a70f836.js","assets/index-c3bafa47.js","assets/index-cfcff7e7.js","assets/Tabs-a957b4a1.js","assets/createSvgIcon-a54a204b.js"]).then(({SettingsModal:e})=>({default:e}))),fm=p.lazy(()=>W1(()=>import("./index-bea19f41.js"),["assets/index-bea19f41.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/index-c3bafa47.js","assets/index.esm-2a70f836.js","assets/ClipLoader-b5124f12.js","assets/index-cfcff7e7.js"]).then(({AddContentModal:e})=>({default:e}))),hm=p.lazy(()=>W1(()=>import("./index-defa7868.js"),["assets/index-defa7868.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/index-c3bafa47.js","assets/index.esm-2a70f836.js","assets/ClipLoader-b5124f12.js","assets/constants-b2a2fa82.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-cfcff7e7.js","assets/index-3f78c796.js","assets/Stack-6ee91628.js","assets/createSvgIcon-a54a204b.js","assets/TextareaAutosize-85f04bbd.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),pm=p.lazy(()=>W1(()=>import("./index-d662f97d.js"),["assets/index-d662f97d.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/constants-ad9796f3.js","assets/ClipLoader-b5124f12.js","assets/index.esm-2a70f836.js","assets/index-3f78c796.js","assets/Stack-6ee91628.js","assets/createSvgIcon-a54a204b.js","assets/TextareaAutosize-85f04bbd.js","assets/index-cfcff7e7.js","assets/index-6a665b3f.js","assets/constants-b2a2fa82.js","assets/Typography-0e3c6b80.js","assets/Tabs-a957b4a1.js"]).then(({SourcesTableModal:e})=>({default:e}))),mm=p.lazy(()=>W1(()=>import("./index-ba55d533.js"),["assets/index-ba55d533.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/index-cfcff7e7.js","assets/index.esm-2a70f836.js","assets/Skeleton-afdbf969.js","assets/ClipLoader-b5124f12.js"]).then(({EditNodeNameModal:e})=>({default:e}))),xm=p.lazy(()=>W1(()=>import("./index-9fa86b0d.js"),["assets/index-9fa86b0d.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/Skeleton-afdbf969.js","assets/ClipLoader-b5124f12.js"]).then(({RemoveNodeModal:e})=>({default:e}))),km=p.lazy(()=>W1(()=>import("./index-aa160d63.js"),["assets/index-aa160d63.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/index-3f78c796.js","assets/Stack-6ee91628.js","assets/createSvgIcon-a54a204b.js","assets/TextareaAutosize-85f04bbd.js","assets/constants-b2a2fa82.js","assets/constants-ad9796f3.js","assets/ClipLoader-b5124f12.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),gm=p.lazy(()=>W1(()=>import("./index-6a300a43.js"),["assets/index-6a300a43.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/index-6a665b3f.js","assets/constants-ad9796f3.js","assets/constants-b2a2fa82.js","assets/index-3f78c796.js","assets/Stack-6ee91628.js","assets/createSvgIcon-a54a204b.js","assets/TextareaAutosize-85f04bbd.js","assets/ClipLoader-b5124f12.js"]).then(({MergeNodeModal:e})=>({default:e}))),Cm=p.lazy(()=>W1(()=>import("./index-63ba7ef3.js"),["assets/index-63ba7ef3.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/index-cfcff7e7.js","assets/index.esm-2a70f836.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/constants-b2a2fa82.js","assets/ClipLoader-b5124f12.js","assets/index-3f78c796.js","assets/Stack-6ee91628.js","assets/createSvgIcon-a54a204b.js","assets/TextareaAutosize-85f04bbd.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ym=p.lazy(()=>W1(()=>import("./index-ff7c4077.js"),["assets/index-ff7c4077.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/constants-b2a2fa82.js","assets/index-cfcff7e7.js","assets/index.esm-2a70f836.js","assets/index-3f78c796.js","assets/Stack-6ee91628.js","assets/createSvgIcon-a54a204b.js","assets/TextareaAutosize-85f04bbd.js","assets/ClipLoader-b5124f12.js","assets/map-b8352f2c.js","assets/Typography-0e3c6b80.js","assets/Tabs-a957b4a1.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-af08347c.js"]).then(({BlueprintModal:e})=>({default:e}))),bm=p.lazy(()=>W1(()=>import("./index-049f27f0.js"),["assets/index-049f27f0.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/index-c3bafa47.js","assets/index.esm-2a70f836.js","assets/index-cfcff7e7.js"]).then(({UserFeedBackModal:e})=>({default:e}))),vm=p.lazy(()=>W1(()=>import("./index-4f35da0f.js"),["assets/index-4f35da0f.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-8f3abdbd.js","assets/index-c3bafa47.js","assets/index.esm-2a70f836.js","assets/index-3f78c796.js","assets/Stack-6ee91628.js","assets/createSvgIcon-a54a204b.js","assets/TextareaAutosize-85f04bbd.js","assets/index-cfcff7e7.js"]).then(({CreateBountyModal:e})=>({default:e}))),wm=()=>u.jsxs(u.Fragment,{children:[u.jsx(hm,{}),u.jsx(fm,{}),u.jsx(dm,{}),u.jsx(mm,{}),u.jsx(xm,{}),u.jsx(pm,{}),u.jsx(km,{}),u.jsx(Cm,{}),u.jsx(ym,{}),u.jsx(gm,{}),u.jsx(bm,{}),u.jsx(vm,{})]}),w3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"info",children:[u.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2682_970)",children:u.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})}),Em=()=>{const[e,t]=p.useState(null),{runningProjectMessages:n}=Je(s=>s),r=s=>{t(s.currentTarget)},i=()=>{t(null)},o=!!e,a=o?"simple-popover":void 0;return n.length?u.jsxs(Sm,{ml:8,children:[u.jsx(Am,{onClick:r,children:u.jsxs(fn,{content:"Messages",margin:"18px",children:[u.jsx("div",{className:"icon",children:u.jsx(w3,{})}),u.jsx("div",{className:"text",children:u.jsx("p",{children:n.length})})]})}),u.jsxs(Vm,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:a,onClose:i,open:o,children:[u.jsx(E3,{onClick:i,children:u.jsx(Dn,{})}),u.jsx(_m,{p:16,children:n.map(s=>u.jsx("p",{className:"item",children:s},s))})]})]}):null},Sm=l1(s1).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,_m=l1(s1)` +`,sm=()=>{const e=p.useContext(O3);return e==null?void 0:e.socket},lm={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},cm=mn(e=>({...lm,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,i,o;(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:(i=t==null?void 0:t.instagraph)==null?void 0:i.edges,nodes:(o=t==null?void 0:t.instagraph)==null?void 0:o.nodes}})}})),um="0.1.106",dm=p.lazy(()=>W1(()=>import("./index-f63e96f7.js"),["assets/index-f63e96f7.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/ClipLoader-a0a9ce2c.js","assets/index.esm-258646ab.js","assets/index-17930aa1.js","assets/index-64813bbe.js","assets/Tabs-79411ac3.js","assets/createSvgIcon-23cd916d.js"]).then(({SettingsModal:e})=>({default:e}))),fm=p.lazy(()=>W1(()=>import("./index-01d51677.js"),["assets/index-01d51677.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-17930aa1.js","assets/index.esm-258646ab.js","assets/ClipLoader-a0a9ce2c.js","assets/index-64813bbe.js"]).then(({AddContentModal:e})=>({default:e}))),hm=p.lazy(()=>W1(()=>import("./index-e8159074.js"),["assets/index-e8159074.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-17930aa1.js","assets/index.esm-258646ab.js","assets/ClipLoader-a0a9ce2c.js","assets/constants-b2a2fa82.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-64813bbe.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),pm=p.lazy(()=>W1(()=>import("./index-63bb73bc.js"),["assets/index-63bb73bc.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/constants-6b0b8728.js","assets/ClipLoader-a0a9ce2c.js","assets/index.esm-258646ab.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/index-64813bbe.js","assets/index-5f0e754b.js","assets/constants-b2a2fa82.js","assets/Typography-4efd6f29.js","assets/Tabs-79411ac3.js"]).then(({SourcesTableModal:e})=>({default:e}))),mm=p.lazy(()=>W1(()=>import("./index-0b4435d0.js"),["assets/index-0b4435d0.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-64813bbe.js","assets/index.esm-258646ab.js","assets/Skeleton-0e0ce42e.js","assets/ClipLoader-a0a9ce2c.js"]).then(({EditNodeNameModal:e})=>({default:e}))),xm=p.lazy(()=>W1(()=>import("./index-d36a9cfa.js"),["assets/index-d36a9cfa.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/Skeleton-0e0ce42e.js","assets/ClipLoader-a0a9ce2c.js"]).then(({RemoveNodeModal:e})=>({default:e}))),km=p.lazy(()=>W1(()=>import("./index-77fe94be.js"),["assets/index-77fe94be.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/constants-b2a2fa82.js","assets/constants-6b0b8728.js","assets/ClipLoader-a0a9ce2c.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),gm=p.lazy(()=>W1(()=>import("./index-bb616035.js"),["assets/index-bb616035.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-5f0e754b.js","assets/constants-6b0b8728.js","assets/constants-b2a2fa82.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/ClipLoader-a0a9ce2c.js"]).then(({MergeNodeModal:e})=>({default:e}))),Cm=p.lazy(()=>W1(()=>import("./index-751d453d.js"),["assets/index-751d453d.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-64813bbe.js","assets/index.esm-258646ab.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/constants-b2a2fa82.js","assets/ClipLoader-a0a9ce2c.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ym=p.lazy(()=>W1(()=>import("./index-85afbf1a.js"),["assets/index-85afbf1a.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/constants-b2a2fa82.js","assets/index-64813bbe.js","assets/index.esm-258646ab.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/ClipLoader-a0a9ce2c.js","assets/map-8d3cef29.js","assets/Typography-4efd6f29.js","assets/Tabs-79411ac3.js","assets/index-c0853f89.js","assets/three.module-26d3b3c0.js","assets/index-39784bea.js"]).then(({BlueprintModal:e})=>({default:e}))),bm=p.lazy(()=>W1(()=>import("./index-a4521012.js"),["assets/index-a4521012.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-17930aa1.js","assets/index.esm-258646ab.js","assets/index-64813bbe.js"]).then(({UserFeedBackModal:e})=>({default:e}))),vm=p.lazy(()=>W1(()=>import("./index-f2ef880b.js"),["assets/index-f2ef880b.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-8331965f.js","assets/index-17930aa1.js","assets/index.esm-258646ab.js","assets/index-69075348.js","assets/Stack-34a19487.js","assets/createSvgIcon-23cd916d.js","assets/TextareaAutosize-2d5341b4.js","assets/index-64813bbe.js"]).then(({CreateBountyModal:e})=>({default:e}))),wm=()=>u.jsxs(u.Fragment,{children:[u.jsx(hm,{}),u.jsx(fm,{}),u.jsx(dm,{}),u.jsx(mm,{}),u.jsx(xm,{}),u.jsx(pm,{}),u.jsx(km,{}),u.jsx(Cm,{}),u.jsx(ym,{}),u.jsx(gm,{}),u.jsx(bm,{}),u.jsx(vm,{})]}),w3=e=>u.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:u.jsxs("g",{id:"info",children:[u.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:u.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),u.jsx("g",{mask:"url(#mask0_2682_970)",children:u.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})}),Em=()=>{const[e,t]=p.useState(null),{runningProjectMessages:n}=Je(s=>s),r=s=>{t(s.currentTarget)},i=()=>{t(null)},o=!!e,a=o?"simple-popover":void 0;return n.length?u.jsxs(Sm,{ml:8,children:[u.jsx(Am,{onClick:r,children:u.jsxs(fn,{content:"Messages",margin:"18px",children:[u.jsx("div",{className:"icon",children:u.jsx(w3,{})}),u.jsx("div",{className:"text",children:u.jsx("p",{children:n.length})})]})}),u.jsxs(Vm,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:a,onClose:i,open:o,children:[u.jsx(E3,{onClick:i,children:u.jsx(Dn,{})}),u.jsx(_m,{p:16,children:n.map(s=>u.jsx("p",{className:"item",children:s},s))})]})]}):null},Sm=l1(s1).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,_m=l1(s1)` max-height: 50vh; max-width: 30vw; background: transparent; @@ -696,4 +696,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${t1.white}; font-size: 12px; opacity: 0.5; -`,kg=p.lazy(()=>W1(()=>import("./index-179d4e66.js"),["assets/index-179d4e66.js","assets/index-c431d222.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),gg=p.lazy(()=>W1(()=>import("./index-1a20710e.js"),["assets/index-1a20710e.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/index-af08347c.js","assets/three.module-26d3b3c0.js","assets/TextareaAutosize-85f04bbd.js","assets/index.esm-2a70f836.js","assets/index-14733886.js","assets/ClipLoader-b5124f12.js"]).then(({Universe:e})=>({default:e}))),Cg=p.lazy(()=>W1(()=>import("./index-3be58333.js").then(e=>e.i),["assets/index-3be58333.js","assets/index-c431d222.js","assets/index-a2878e02.css","assets/ClipLoader-b5124f12.js","assets/Skeleton-afdbf969.js","assets/Stack-6ee91628.js","assets/map-b8352f2c.js","assets/Typography-0e3c6b80.js","assets/createSvgIcon-a54a204b.js","assets/index-8f3abdbd.js","assets/index-14733886.js","assets/index.esm-2a70f836.js"]).then(({SideBar:e})=>({default:e}))),yg=()=>{const[e]=K3(),t=e.get("q"),{setBudget:n,setNodeCount:r}=qr(N=>N),i=p.useRef(null),o=p.useRef(null),{setSidebarOpen:a,currentSearch:s,setCurrentSearch:l,setRelevanceSelected:c,setTranscriptOpen:d,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:h}=xn(N=>N),k=cm(N=>N.setTeachMeAnswer),{fetchData:m,setCategoryFilter:g,setAbortRequests:y,addNewNode:x,splashDataLoading:C,runningProjectId:b,setRunningProjectMessages:S,isFetching:w}=Je(N=>N),{setAiSummaryAnswer:E,getKeyExist:_,aiRefId:V}=Oa(N=>N),P=$i(),[$,T]=q3(N=>[N.realtimeGraphFeatureFlag,N.chatInterfaceFeatureFlag]),D=sm(),O=lh({mode:"onChange"}),{setValue:M}=O;p.useEffect(()=>{M("search",t??""),d(!1),P(null),c(!1),l(t??""),k(""),g(null)},[t,g,l,c,P,k,d,M]),p.useEffect(()=>{(async()=>{await m(n,y),a(!0),s?await X3(n):P(null)})()},[s,m,n,y,a,P]);const R=p.useCallback(()=>{r("INCREMENT")},[r]),F=p.useCallback(N=>{w||(i.current||(i.current={nodes:[],edges:[]}),N.edges&&i.current.edges.push(...N.edges),N.nodes&&i.current.nodes.push(...N.nodes),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{const J={...i.current};i.current={nodes:[],edges:[]},x(J)},3e3))},[x,w]),H=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{answer:N.answer,answerLoading:!1})},[E]),Z=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{audio_en:N.audio_EN})},[E]),q=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{questions:N.relevant_questions.map(J=>J.question),questionsLoading:!1})},[E]),i1=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{sources:N.sources.map(J=>J.ref_id),sourcesLoading:!1})},[E]),X=p.useCallback(N=>{N.question&&_(V)&&E(V,{answerLoading:!1,entities:N.entities})},[E,_,V]);return p.useEffect(()=>(D&&(D.connect(),D.on("connect_error",N=>{console.error("Socket connection error:",N)}),D.on("newnode",R),T&&D.on("extractedentitieshook",X),T&&D.on("askquestionhook",H),T&&D.on("relevantquestionshook",q),T&&D.on("answersourceshook",i1),$&&D.on("new_node_created",F),T&&D.on("answeraudiohook",Z)),()=>{D&&D.off()}),[D,R,F,$,H,T,q,i1,X,Z]),p.useEffect(()=>{if(!b)return;const N=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");N.onopen=()=>{let J="a";J=b;const e1={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:J})};N.send(JSON.stringify(e1))},N.onmessage=J=>{var c1;console.log("Message from server:",J.data);const e1=JSON.parse(J.data);if(e1.type==="ping")return;const n1=(c1=e1==null?void 0:e1.message)==null?void 0:c1.message;n1&&S(n1)},N.onerror=J=>{console.error("WebSocket error:",J)},N.onclose=()=>{console.log("WebSocket connection closed")}},[b,S]),p.useEffect(()=>{C||h()},[h,C]),u.jsxs(u.Fragment,{children:[u.jsx(ch,{}),u.jsx(eg,{}),u.jsx(I2,{hidden:!Y3||!0,isRoot:!0}),u.jsx(p.Suspense,{fallback:u.jsx("div",{children:"Loading..."}),children:C?null:u.jsxs(mg,{direction:"row",children:[u.jsxs(Wf,{...O,children:[u.jsx(kg,{}),!f&&u.jsx(Cg,{}),u.jsx(gg,{}),u.jsx(im,{}),u.jsx(qk,{}),u.jsxs(xg,{children:["v",um]}),u.jsx(v3,{})]}),u.jsx(wm,{}),u.jsx(pg,{})]})})]})},Mg=Object.freeze(Object.defineProperty({__proto__:null,App:yg},Symbol.toStringTag,{value:"Module"}));export{_n as $,Km as A,ii as B,o3 as C,Sx as D,Tx as E,Rx as F,S0 as G,Yx as H,Ik as I,we as J,Ya as K,st as L,ek as M,_3 as N,im as O,g1 as P,Ua as Q,al as R,Bk as S,Xp as T,Za as U,It as V,qa as W,Ht as X,R5 as Y,nc as Z,I0 as _,Zm as a,jg as a$,lh as a0,Wf as a1,vk as a2,$k as a3,ix as a4,Jx as a5,Ux as a6,qx as a7,$i as a8,Dk as a9,ol as aA,rk as aB,Ok as aC,Nx as aD,Mx as aE,xx as aF,fx as aG,hx as aH,Vp as aI,a3 as aJ,s3 as aK,Q3 as aL,yx as aM,Fx as aN,Bl as aO,ik as aP,Ix as aQ,tx as aR,hk as aS,fk as aT,Mk as aU,Fk as aV,Rk as aW,Ak as aX,jx as aY,$x as aZ,_x as a_,px as aa,dx as ab,J3 as ac,Xm as ad,qm as ae,Ym as af,Jm as ag,cx as ah,Dn as ai,ox as aj,Dx as ak,C3 as al,Vk as am,i3 as an,mk as ao,Ek as ap,y3 as aq,Kx as ar,yk as as,bk as at,ok as au,bx as av,Ka as aw,gk as ax,w3 as ay,Fp as az,Sk as b,S4 as b0,Lx as b1,wx as b2,vg as b3,Wa as b4,Gk as b5,ur as b6,ml as b7,U5 as b8,pc as b9,y1 as ba,z as bb,$g as bc,Mg as bd,ex as c,Dg as d,x3 as e,m0 as f,fh as g,Pg as h,b3 as i,Ep as j,or as k,wa as l,Sp as m,cp as n,Gg as o,tk as p,Um as q,dk as r,Bx as s,W5 as t,$m as u,Bg as v,el as w,pl as x,Pe as y,dr as z}; +`,kg=p.lazy(()=>W1(()=>import("./index-c1db1c7b.js"),["assets/index-c1db1c7b.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),gg=p.lazy(()=>W1(()=>import("./index-7e993c6c.js"),["assets/index-7e993c6c.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/index-39784bea.js","assets/three.module-26d3b3c0.js","assets/TextareaAutosize-2d5341b4.js","assets/index.esm-258646ab.js","assets/index-8344fca4.js","assets/ClipLoader-a0a9ce2c.js"]).then(({Universe:e})=>({default:e}))),Cg=p.lazy(()=>W1(()=>import("./index-9d4b2019.js").then(e=>e.i),["assets/index-9d4b2019.js","assets/index-b416b1a9.js","assets/index-a2878e02.css","assets/ClipLoader-a0a9ce2c.js","assets/Skeleton-0e0ce42e.js","assets/Stack-34a19487.js","assets/map-8d3cef29.js","assets/Typography-4efd6f29.js","assets/createSvgIcon-23cd916d.js","assets/index-8331965f.js","assets/index-8344fca4.js","assets/index.esm-258646ab.js"]).then(({SideBar:e})=>({default:e}))),yg=()=>{const[e]=K3(),t=e.get("q"),{setBudget:n,setNodeCount:r}=qr(N=>N),i=p.useRef(null),o=p.useRef(null),{setSidebarOpen:a,currentSearch:s,setCurrentSearch:l,setRelevanceSelected:c,setTranscriptOpen:d,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:h}=xn(N=>N),k=cm(N=>N.setTeachMeAnswer),{fetchData:m,setCategoryFilter:g,setAbortRequests:y,addNewNode:x,splashDataLoading:C,runningProjectId:b,setRunningProjectMessages:S,isFetching:w}=Je(N=>N),{setAiSummaryAnswer:E,getKeyExist:_,aiRefId:V}=Oa(N=>N),P=$i(),[$,T]=q3(N=>[N.realtimeGraphFeatureFlag,N.chatInterfaceFeatureFlag]),D=sm(),O=lh({mode:"onChange"}),{setValue:M}=O;p.useEffect(()=>{M("search",t??""),d(!1),P(null),c(!1),l(t??""),k(""),g(null)},[t,g,l,c,P,k,d,M]),p.useEffect(()=>{(async()=>{await m(n,y),a(!0),s?await X3(n):P(null)})()},[s,m,n,y,a,P]);const R=p.useCallback(()=>{r("INCREMENT")},[r]),F=p.useCallback(N=>{w||(i.current||(i.current={nodes:[],edges:[]}),N.edges&&i.current.edges.push(...N.edges),N.nodes&&i.current.nodes.push(...N.nodes),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{const J={...i.current};i.current={nodes:[],edges:[]},x(J)},3e3))},[x,w]),H=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{answer:N.answer,answerLoading:!1})},[E]),Z=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{audio_en:N.audio_EN})},[E]),q=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{questions:N.relevant_questions.map(J=>J.question),questionsLoading:!1})},[E]),i1=p.useCallback(N=>{N.ref_id&&E(N.ref_id,{sources:N.sources.map(J=>J.ref_id),sourcesLoading:!1})},[E]),X=p.useCallback(N=>{N.question&&_(V)&&E(V,{answerLoading:!1,entities:N.entities})},[E,_,V]);return p.useEffect(()=>(D&&(D.connect(),D.on("connect_error",N=>{console.error("Socket connection error:",N)}),D.on("newnode",R),T&&D.on("extractedentitieshook",X),T&&D.on("askquestionhook",H),T&&D.on("relevantquestionshook",q),T&&D.on("answersourceshook",i1),$&&D.on("new_node_created",F),T&&D.on("answeraudiohook",Z)),()=>{D&&D.off()}),[D,R,F,$,H,T,q,i1,X,Z]),p.useEffect(()=>{if(!b)return;const N=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");N.onopen=()=>{let J="a";J=b;const e1={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:J})};N.send(JSON.stringify(e1))},N.onmessage=J=>{var c1;console.log("Message from server:",J.data);const e1=JSON.parse(J.data);if(e1.type==="ping")return;const n1=(c1=e1==null?void 0:e1.message)==null?void 0:c1.message;n1&&S(n1)},N.onerror=J=>{console.error("WebSocket error:",J)},N.onclose=()=>{console.log("WebSocket connection closed")}},[b,S]),p.useEffect(()=>{C||h()},[h,C]),u.jsxs(u.Fragment,{children:[u.jsx(ch,{}),u.jsx(eg,{}),u.jsx(I2,{hidden:!Y3||!0,isRoot:!0}),u.jsx(p.Suspense,{fallback:u.jsx("div",{children:"Loading..."}),children:C?null:u.jsxs(mg,{direction:"row",children:[u.jsxs(Wf,{...O,children:[u.jsx(kg,{}),!f&&u.jsx(Cg,{}),u.jsx(gg,{}),u.jsx(im,{}),u.jsx(qk,{}),u.jsxs(xg,{children:["v",um]}),u.jsx(v3,{})]}),u.jsx(wm,{}),u.jsx(pg,{})]})})]})},Mg=Object.freeze(Object.defineProperty({__proto__:null,App:yg},Symbol.toStringTag,{value:"Module"}));export{_n as $,Km as A,ii as B,o3 as C,Sx as D,Tx as E,Rx as F,S0 as G,Yx as H,Ik as I,we as J,Ya as K,st as L,ek as M,_3 as N,im as O,g1 as P,Ua as Q,al as R,Bk as S,Xp as T,Za as U,It as V,qa as W,Ht as X,R5 as Y,nc as Z,I0 as _,Zm as a,jg as a$,lh as a0,Wf as a1,vk as a2,$k as a3,ix as a4,Jx as a5,Ux as a6,qx as a7,$i as a8,Dk as a9,ol as aA,rk as aB,Ok as aC,Nx as aD,Mx as aE,xx as aF,fx as aG,hx as aH,Vp as aI,a3 as aJ,s3 as aK,Q3 as aL,yx as aM,Fx as aN,Bl as aO,ik as aP,Ix as aQ,tx as aR,hk as aS,fk as aT,Mk as aU,Fk as aV,Rk as aW,Ak as aX,jx as aY,$x as aZ,_x as a_,px as aa,dx as ab,J3 as ac,Xm as ad,qm as ae,Ym as af,Jm as ag,cx as ah,Dn as ai,ox as aj,Dx as ak,C3 as al,Vk as am,i3 as an,mk as ao,Ek as ap,y3 as aq,Kx as ar,yk as as,bk as at,ok as au,bx as av,Ka as aw,gk as ax,w3 as ay,Fp as az,Sk as b,S4 as b0,Lx as b1,wx as b2,vg as b3,Wa as b4,Gk as b5,ur as b6,ml as b7,U5 as b8,pc as b9,y1 as ba,z as bb,$g as bc,Mg as bd,ex as c,Dg as d,x3 as e,m0 as f,fh as g,Pg as h,b3 as i,Ep as j,or as k,wa as l,Sp as m,cp as n,Gg as o,tk as p,Um as q,dk as r,Bx as s,W5 as t,$m as u,Bg as v,el as w,pl as x,Pe as y,dr as z}; diff --git a/build/assets/index-af08347c.js b/build/assets/index-39784bea.js similarity index 99% rename from build/assets/index-af08347c.js rename to build/assets/index-39784bea.js index f7c67d2de..da2b83550 100644 --- a/build/assets/index-af08347c.js +++ b/build/assets/index-39784bea.js @@ -1,4 +1,4 @@ -import{r as P,g as Cc,b as yi,b9 as _c,ba as ed,j as L,R as td,v as Ji,bb as nd,bc as rd,bd as id}from"./index-c431d222.js";import{H as fl,I as Vl,J as od,U as ad,d as Ec,k as ld,C as ro,K as sd,O as Zl,y as Ql,N as da,X as dl,Y as ud,Z as cd,_ as fd,$ as dd,a0 as hd,a1 as pd,a2 as vd,V as st,b as Nr,a3 as md,h as gd,g as Xl,s as pa,a4 as Tc,e as Ul,a5 as Rl,a6 as pi,a7 as yd,t as Yl,a8 as xd,a9 as Fl,aa as Fu,ab as wd,ac as xi,j as Mc,ad as Sd,l as io,o as kc,ae as Cd,af as _d,ag as Ed,ah as Td,ai as Md,aj as Au,ak as kd,al as Pd,M as Ld,r as Ud,am as Jl,an as Du,ao as Ir,ap as Rd,i as hl}from"./three.module-26d3b3c0.js";import{b3 as _t,v as Fd,f as Ad}from"./index-092b06c7.js";var Pc={exports:{}},Gr={};/** +import{r as P,g as Cc,b as yi,b9 as _c,ba as ed,j as L,R as td,v as Ji,bb as nd,bc as rd,bd as id}from"./index-b416b1a9.js";import{H as fl,I as Vl,J as od,U as ad,d as Ec,k as ld,C as ro,K as sd,O as Zl,y as Ql,N as da,X as dl,Y as ud,Z as cd,_ as fd,$ as dd,a0 as hd,a1 as pd,a2 as vd,V as st,b as Nr,a3 as md,h as gd,g as Xl,s as pa,a4 as Tc,e as Ul,a5 as Rl,a6 as pi,a7 as yd,t as Yl,a8 as xd,a9 as Fl,aa as Fu,ab as wd,ac as xi,j as Mc,ad as Sd,l as io,o as kc,ae as Cd,af as _d,ag as Ed,ah as Td,ai as Md,aj as Au,ak as kd,al as Pd,M as Ld,r as Ud,am as Jl,an as Du,ao as Ir,ap as Rd,i as hl}from"./three.module-26d3b3c0.js";import{b3 as _t,v as Fd,f as Ad}from"./index-1f5ac1eb.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-6a665b3f.js b/build/assets/index-5f0e754b.js similarity index 85% rename from build/assets/index-6a665b3f.js rename to build/assets/index-5f0e754b.js index d1f4b4f4f..a89aa6396 100644 --- a/build/assets/index-6a665b3f.js +++ b/build/assets/index-5f0e754b.js @@ -1 +1 @@ -import{p as f,a_ as m}from"./index-c431d222.js";import{D as y}from"./constants-ad9796f3.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const D=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{D as u}; +import{p as f,a_ as m}from"./index-b416b1a9.js";import{D as y}from"./constants-6b0b8728.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const D=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{D as u}; diff --git a/build/assets/index-d662f97d.js b/build/assets/index-63bb73bc.js similarity index 57% rename from build/assets/index-d662f97d.js rename to build/assets/index-63bb73bc.js index 43fd4db57..23b0276a5 100644 --- a/build/assets/index-d662f97d.js +++ b/build/assets/index-63bb73bc.js @@ -1,5 +1,5 @@ -import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i as D,a2 as gt,e as ne,a3 as ft,t as c,v as x,T as N,F as g,aQ as mt,a5 as se,R as re,q as le,a0 as bt,aR as jt,aS as Ve,w as ae,aT as Qe,H as we,aB as _e,aC as Ne,aD as ze,aU as yt,z as qe,aV as wt,aW as Xe,aX as Ct,aA as vt,aY as ce,aZ as Tt,y as St,N as $t,Q as kt}from"./index-c431d222.js";import{B as de}from"./index-8f3abdbd.js";import{B as W,u as M,aM as _t,r as Nt,t as Ce,aN as je,aw as Q,aO as zt,D as Bt,s as Lt,ai as te,a2 as Ke,aP as Ze,aQ as Je,aR as et,a0 as ve,a1 as Te,ah as tt,aS as Rt,aT as It,aU as Mt,aV as Be,aW as Le,p as Re,aX as ge,aY as Et,q as At}from"./index-092b06c7.js";import{T as Ie,s as U,a as st,S as ot,A as Se,E as Ot,D as Ft,b as nt,Q as rt,V as at,c as Wt}from"./constants-ad9796f3.js";import{C as z}from"./ClipLoader-b5124f12.js";import{f as Ht,g as Pt,h as Dt,a as Ut}from"./index.esm-2a70f836.js";import{I as Gt,A as $e,T as it}from"./index-3f78c796.js";import{B as Yt,T as Vt}from"./index-cfcff7e7.js";import{u as R}from"./index-6a665b3f.js";import{O as lt}from"./constants-b2a2fa82.js";import{T as Me}from"./Typography-0e3c6b80.js";import{T as Qt,a as qt}from"./Tabs-a957b4a1.js";import"./Stack-6ee91628.js";import"./createSvgIcon-a54a204b.js";import"./TextareaAutosize-85f04bbd.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=O("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>L({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":L({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Ee="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Ee,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=L({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,L({as:i,role:i===Ee?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return q("MuiTableBody",t)}X("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=O("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=L({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,L({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return q("MuiTableCell",t)}const ps=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=O("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>L({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid - ${t.palette.mode==="light"?gt(ne(t.palette.divider,1),.88):ft(ne(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},s.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},s.variant==="body"&&{color:(t.vars||t).palette.text.primary},s.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},s.size==="small"&&{padding:"6px 16px",[`&.${xs.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},s.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},s.padding==="none"&&{padding:0},s.align==="left"&&{textAlign:"left"},s.align==="center"&&{textAlign:"center"},s.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},s.align==="justify"&&{textAlign:"justify"},s.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),fs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:o,scope:d,size:u,sortDirection:m,variant:p}=r,b=Z(r,hs),j=h.useContext(ct),y=h.useContext(xe),C=y&&y.variant==="head";let w;a?w=a:w=C?"th":"td";let S=d;w==="td"?S=void 0:!S&&C&&(S="col");const $=p||y&&y.variant,A=L({},r,{align:l,component:w,padding:o||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:$==="head"&&j&&j.stickyHeader,variant:$}),F=us(A);let B=null;return m&&(B=m==="asc"?"ascending":"descending"),e.jsx(gs,L({as:w,ref:n,className:J(F.root,i),"aria-sort":B,scope:S,ownerState:A},b))}),ms=fs;function bs(t){return q("MuiTableHead",t)}X("MuiTableHead",["root"]);const js=["className","component"],ys=t=>{const{classes:s}=t;return ee({root:["root"]},bs,s)},ws=O("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),Cs={variant:"head"},Oe="thead",vs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableHead"}),{className:l,component:i=Oe}=r,a=Z(r,js),o=L({},r,{component:i}),d=ys(o);return e.jsx(xe.Provider,{value:Cs,children:e.jsx(ws,L({as:i,className:J(d.root,l),ref:n,role:i===Oe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return q("MuiTableRow",t)}const Ss=X("MuiTableRow",["root","selected","hover","head","footer"]),Fe=Ss,$s=["className","component","hover","selected"],ks=t=>{const{classes:s,selected:n,hover:r,head:l,footer:i}=t;return ee({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Ts,s)},_s=O("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.head&&s.head,n.footer&&s.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Fe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Fe.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ne(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ne(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),We="tr",Ns=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:o=!1}=r,d=Z(r,$s),u=h.useContext(xe),m=L({},r,{component:i,hover:a,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ks(m);return e.jsx(_s,L({as:i,ref:n,className:J(p.root,l),role:i===We?null:"row",ownerState:m},d))}),G=Ns;function ye(t){const s=new Date(Number(t)*1e3),n=s.getFullYear(),r=(1+s.getMonth()).toString().padStart(2,"0");return`${s.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=c(ms)` +import{r as h,c as q,d as X,s as O,b as B,u as K,_ as Z,j as e,f as J,h as ee,i as D,a2 as gt,e as ne,a3 as ft,t as c,v as x,T as N,F as g,aQ as mt,a5 as oe,R as re,q as le,a0 as bt,aR as jt,aS as Ve,w as ae,aT as Qe,H as we,aB as _e,aC as Ne,aD as ze,aU as yt,z as qe,aV as wt,aW as Xe,aX as Ct,aA as vt,aY as ce,aZ as Tt,y as $t,N as St,Q as kt}from"./index-b416b1a9.js";import{B as de}from"./index-8331965f.js";import{B as W,u as M,aM as _t,r as Nt,t as Ce,aN as je,aw as Q,aO as zt,D as Rt,s as Bt,ai as te,a2 as Ke,aP as Ze,aQ as Je,aR as et,a0 as ve,a1 as Te,ah as tt,aS as Lt,aT as It,aU as Mt,aV as Re,aW as Be,p as Le,aX as ge,aY as Et,q as At}from"./index-1f5ac1eb.js";import{T as Ie,s as U,a as ot,S as st,A as $e,E as Ot,D as Ft,b as nt,Q as rt,V as at,c as Wt}from"./constants-6b0b8728.js";import{C as z}from"./ClipLoader-a0a9ce2c.js";import{f as Ht,g as Pt,h as Dt,a as Ut}from"./index.esm-258646ab.js";import{I as Gt,A as Se,T as it}from"./index-69075348.js";import{B as Yt,T as Vt}from"./index-64813bbe.js";import{u as L}from"./index-5f0e754b.js";import{O as lt}from"./constants-b2a2fa82.js";import{T as Me}from"./Typography-4efd6f29.js";import{T as Qt,a as qt}from"./Tabs-79411ac3.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:o,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,o)},eo=O("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.root,n.stickyHeader&&o.stickyHeader]}})(({theme:t,ownerState:o})=>B({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":B({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},o.stickyHeader&&{borderCollapse:"separate"})),Ee="table",to=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTable"}),{className:l,component:i=Ee,padding:a="normal",size:s="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=B({},r,{component:i,padding:a,size:s,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:s,stickyHeader:d}),[a,s,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(eo,B({as:i,role:i===Ee?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=to,oo=h.createContext(),xe=oo;function so(t){return q("MuiTableBody",t)}X("MuiTableBody",["root"]);const no=["className","component"],ro=t=>{const{classes:o}=t;return ee({root:["root"]},so,o)},ao=O("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,o)=>o.root})({display:"table-row-group"}),io={variant:"body"},Ae="tbody",lo=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,no),s=B({},r,{component:i}),d=ro(s);return e.jsx(xe.Provider,{value:io,children:e.jsx(ao,B({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:s},a))})}),co=lo;function po(t){return q("MuiTableCell",t)}const xo=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ho=xo,uo=["align","className","component","padding","scope","size","sortDirection","variant"],go=t=>{const{classes:o,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(s,po,o)},fo=O("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.root,o[n.variant],o[`size${D(n.size)}`],n.padding!=="normal"&&o[`padding${D(n.padding)}`],n.align!=="inherit"&&o[`align${D(n.align)}`],n.stickyHeader&&o.stickyHeader]}})(({theme:t,ownerState:o})=>B({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid + ${t.palette.mode==="light"?gt(ne(t.palette.divider,1),.88):ft(ne(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},o.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},o.variant==="body"&&{color:(t.vars||t).palette.text.primary},o.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},o.size==="small"&&{padding:"6px 16px",[`&.${ho.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},o.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},o.padding==="none"&&{padding:0},o.align==="left"&&{textAlign:"left"},o.align==="center"&&{textAlign:"center"},o.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},o.align==="justify"&&{textAlign:"justify"},o.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),mo=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:s,scope:d,size:u,sortDirection:m,variant:p}=r,b=Z(r,uo),j=h.useContext(ct),y=h.useContext(xe),C=y&&y.variant==="head";let w;a?w=a:w=C?"th":"td";let $=d;w==="td"?$=void 0:!$&&C&&($="col");const S=p||y&&y.variant,A=B({},r,{align:l,component:w,padding:s||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:S==="head"&&j&&j.stickyHeader,variant:S}),F=go(A);let R=null;return m&&(R=m==="asc"?"ascending":"descending"),e.jsx(fo,B({as:w,ref:n,className:J(F.root,i),"aria-sort":R,scope:$,ownerState:A},b))}),bo=mo;function jo(t){return q("MuiTableHead",t)}X("MuiTableHead",["root"]);const yo=["className","component"],wo=t=>{const{classes:o}=t;return ee({root:["root"]},jo,o)},Co=O("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,o)=>o.root})({display:"table-header-group"}),vo={variant:"head"},Oe="thead",To=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTableHead"}),{className:l,component:i=Oe}=r,a=Z(r,yo),s=B({},r,{component:i}),d=wo(s);return e.jsx(xe.Provider,{value:vo,children:e.jsx(Co,B({as:i,className:J(d.root,l),ref:n,role:i===Oe?null:"rowgroup",ownerState:s},a))})}),dt=To;function $o(t){return q("MuiTableRow",t)}const So=X("MuiTableRow",["root","selected","hover","head","footer"]),Fe=So,ko=["className","component","hover","selected"],_o=t=>{const{classes:o,selected:n,hover:r,head:l,footer:i}=t;return ee({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},$o,o)},No=O("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:n}=t;return[o.root,n.head&&o.head,n.footer&&o.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Fe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Fe.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ne(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ne(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),We="tr",zo=h.forwardRef(function(o,n){const r=K({props:o,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:s=!1}=r,d=Z(r,ko),u=h.useContext(xe),m=B({},r,{component:i,hover:a,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=_o(m);return e.jsx(No,B({as:i,ref:n,className:J(p.root,l),role:i===We?null:"row",ownerState:m},d))}),G=zo;function ye(t){const o=new Date(Number(t)*1e3),n=o.getFullYear(),r=(1+o.getMonth()).toString().padStart(2,"0");return`${o.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=c(bo)` && { color: ${x.white}; border: none; @@ -81,7 +81,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i ${N} { margin-bottom: 0; } -`,zs=c(dt)` +`,Ro=c(dt)` && { border-bottom: 1px solid ${x.black}; position: sticky; @@ -98,20 +98,20 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i width: 0; padding: 0; } -`;function Bs(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const Ls=({node:t})=>{var s,n,r,l,i,a,o,d,u;return e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:(s=t==null?void 0:t.properties)!=null&&s.date_added_to_graph?ye((n=t==null?void 0:t.properties)==null?void 0:n.date_added_to_graph):ye((r=t==null?void 0:t.properties)==null?void 0:r.date)}),e.jsx(f,{children:t==null?void 0:t.node_type}),e.jsx(f,{children:(t==null?void 0:t.node_type)==="Tweet"?e.jsx(He,{href:`${Ie}${(l=t==null?void 0:t.properties)==null?void 0:l.tweet_id}${Ie.includes("?")?"&":"?"}open=system`,target:"_blank",children:(i=t==null?void 0:t.properties)==null?void 0:i.tweet_id}):e.jsx(He,{href:`${(a=t==null?void 0:t.properties)==null?void 0:a.source_link}${((o=t==null?void 0:t.properties)==null?void 0:o.source_link).includes("?")?"&":"?"}open=system`,target:"_blank",children:(d=t==null?void 0:t.properties)==null?void 0:d.source_link})}),e.jsx(f,{children:(u=t==null?void 0:t.properties)!=null&&u.status?Bs(t.properties.status):"Processing"})]})},He=c.a` +`;function Bo(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const Lo=({node:t})=>{var o,n,r,l,i,a,s,d,u;return e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:(o=t==null?void 0:t.properties)!=null&&o.date_added_to_graph?ye((n=t==null?void 0:t.properties)==null?void 0:n.date_added_to_graph):ye((r=t==null?void 0:t.properties)==null?void 0:r.date)}),e.jsx(f,{children:t==null?void 0:t.node_type}),e.jsx(f,{children:(t==null?void 0:t.node_type)==="Tweet"?e.jsx(He,{href:`${Ie}${(l=t==null?void 0:t.properties)==null?void 0:l.tweet_id}${Ie.includes("?")?"&":"?"}open=system`,target:"_blank",children:(i=t==null?void 0:t.properties)==null?void 0:i.tweet_id}):e.jsx(He,{href:`${(a=t==null?void 0:t.properties)==null?void 0:a.source_link}${((s=t==null?void 0:t.properties)==null?void 0:s.source_link).includes("?")?"&":"?"}open=system`,target:"_blank",children:(d=t==null?void 0:t.properties)==null?void 0:d.source_link})}),e.jsx(f,{children:(u=t==null?void 0:t.properties)!=null&&u.status?Bo(t.properties.status):"Processing"})]})},He=c.a` color: ${x.white}; text-decoration: underline; &:visited { color: ${x.white}; } -`,Rs=h.memo(Ls),Is=({nodes:t})=>{const{open:s}=M("addContent"),n=async()=>{s()};return!t||(t==null?void 0:t.length)===0?e.jsx(e.Fragment,{children:e.jsxs(Ms,{children:[e.jsx(As,{children:e.jsx(_t,{})}),e.jsx(Es,{children:e.jsx(N,{className:"subtitle",children:"Contribute to the graph by adding your first content."})}),e.jsx(g,{justify:"center",children:e.jsx(W,{color:"secondary",onClick:n,size:"medium",startIcon:e.jsx(Nt,{}),type:"submit",variant:"contained",children:"Add Content"})})]})}):e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Date"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{children:"Status"})]})}),e.jsx("tbody",{children:t==null?void 0:t.map(r=>e.jsx(Rs,{node:r},r==null?void 0:r.ref_id))})]})},Ms=O(g)` +`,Io=h.memo(Lo),Mo=({nodes:t})=>{const{open:o}=M("addContent"),n=async()=>{o()};return!t||(t==null?void 0:t.length)===0?e.jsx(e.Fragment,{children:e.jsxs(Eo,{children:[e.jsx(Oo,{children:e.jsx(_t,{})}),e.jsx(Ao,{children:e.jsx(N,{className:"subtitle",children:"Contribute to the graph by adding your first content."})}),e.jsx(g,{justify:"center",children:e.jsx(W,{color:"secondary",onClick:n,size:"medium",startIcon:e.jsx(Nt,{}),type:"submit",variant:"contained",children:"Add Content"})})]})}):e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Date"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{children:"Status"})]})}),e.jsx("tbody",{children:t==null?void 0:t.map(r=>e.jsx(Io,{node:r},r==null?void 0:r.ref_id))})]})},Eo=O(g)` display: flex; align-items: center; justify-content: center; margin: 150px auto; width: 100%; flex-direction: column; -`,Es=O(g)` +`,Ao=O(g)` display: flex; align-items: center; justify-content: center; @@ -128,7 +128,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i font-weight: 400; line-height: normal; } -`,As=O(g)` +`,Oo=O(g)` margin-bottom: 20px; svg { @@ -136,7 +136,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i height: 60px; width: 60px; } -`,Os=()=>{const[t,s]=h.useState([]),[n,r]=h.useState(!0),[l,i]=h.useState(10),[a,o]=h.useState(!0),d={only_content:"true",sort_by:"date",limit:l.toString()},u=async()=>{r(!0);try{const p=await mt(d);s(p.nodes),r(!1)}catch(p){console.error("Error fetching data:",p),r(!1)}};h.useEffect(()=>{u()},[l]);const m=()=>{i(l+10),u()};return e.jsx(Fs,{direction:"column",justify:"flex-end",children:e.jsxs(Ws,{align:"center",justify:n?"center":"flex-start",children:[n?e.jsx(z,{color:x.white}):e.jsx(e.Fragment,{children:e.jsx(Is,{nodes:t})}),!n&&t.length>0&&(a?e.jsx(W,{onClick:m,size:"medium",children:"Load More"}):e.jsx(Hs,{children:"No new nodes available"}))]})})},Fs=c(g)` +`,Fo=()=>{const[t,o]=h.useState([]),[n,r]=h.useState(!0),[l,i]=h.useState(10),[a,s]=h.useState(!0),d={only_content:"true",sort_by:"date",limit:l.toString()},u=async()=>{r(!0);try{const p=await mt(d);o(p.nodes),r(!1)}catch(p){console.error("Error fetching data:",p),r(!1)}};h.useEffect(()=>{u()},[l]);const m=()=>{i(l+10),u()};return e.jsx(Wo,{direction:"column",justify:"flex-end",children:e.jsxs(Ho,{align:"center",justify:n?"center":"flex-start",children:[n?e.jsx(z,{color:x.white}):e.jsx(e.Fragment,{children:e.jsx(Mo,{nodes:t})}),!n&&t.length>0&&(a?e.jsx(W,{onClick:m,size:"medium",children:"Load More"}):e.jsx(Po,{children:"No new nodes available"}))]})})},Wo=c(g)` flex: 1; .title { @@ -166,44 +166,44 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i margin: 8px auto; align-self: center; } -`,Ws=c(g)` +`,Ho=c(g)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,Hs=c.div` +`,Po=c.div` margin-top: 10px; color: ${x.GRAY3}; font-family: Barlow; font-size: 14px; -`,Ps=({kind:t,shape:s})=>{switch(t){case"small":return se` +`,Do=({kind:t,shape:o})=>{switch(t){case"small":return oe` padding: 4px 8px; - border-radius: ${s==="rounded"?"16px":"8px"}; + border-radius: ${o==="rounded"?"16px":"8px"}; height: 32px; - `;case"big":return se` + `;case"big":return oe` padding: 16px 24px; - border-radius: ${s==="rounded"?"24px":"8px"}; + border-radius: ${o==="rounded"?"24px":"8px"}; height: 48px; - `;default:return se` + `;default:return oe` padding: 8px 16px; - border-radius: ${s==="rounded"?"32px":"8px"}; + border-radius: ${o==="rounded"?"32px":"8px"}; height: 64px; - `}},Ds=({kind:t})=>{switch(t){case"small":return"regularBold";case"big":return"mediumBold";default:return"regularBold"}},Us=c(g).attrs({align:"center",direction:"row",justify:"center"})` + `}},Uo=({kind:t})=>{switch(t){case"small":return"regularBold";case"big":return"mediumBold";default:return"regularBold"}},Go=c(g).attrs({align:"center",direction:"row",justify:"center"})` border: none; cursor: pointer; pointer-events: auto; - ${Ps} + ${Do} &:hover { opacity: ${({disabled:t})=>t?.5:.9}; } - ${({disabled:t})=>t&&se` + ${({disabled:t})=>t&&oe` opacity: 0.5; pointer-events: none; `} -`,Pe=({background:t="primaryButton",children:s,className:n="button",startIcon:r,endIcon:l,disabled:i,id:a,kind:o="regular",onClick:d,onPointerDown:u,shape:m="squared",textColor:p="white",type:b})=>e.jsxs(Us,{as:"button",background:t,className:n,disabled:i,id:a,kind:o,onClick:d,onPointerDown:u,shape:m,type:b,children:[r&&r,e.jsx(N,{color:p,kind:Ds({kind:o}),children:s}),l&&l]}),pt=({message:t="Are you sure you want to delete this item?",onConfirm:s,children:n,anchorOrigin:r={vertical:"bottom",horizontal:"left"},transformOrigin:l={vertical:"top",horizontal:"center"}})=>{const[i,a]=h.useState(null),o=b=>{a(b.currentTarget)},d=()=>{a(null)},u=()=>{s(),d()},m=()=>{d()},p=!!i;return e.jsxs(e.Fragment,{children:[e.jsx("div",{children:re.cloneElement(n,{onClick:o})}),e.jsx(Ys,{anchorEl:i,anchorOrigin:r,onClose:d,open:p,transformOrigin:l,children:e.jsxs(Gs,{children:[e.jsx(N,{className:"message",children:t}),e.jsxs(Vs,{children:[e.jsx(Pe,{background:"primaryBlue",kind:"small",onClick:u,children:"Yes"}),e.jsx(Pe,{background:"white",kind:"small",onClick:m,textColor:"black",children:"No"})]})]})})]})},Gs=c(g)` +`,Pe=({background:t="primaryButton",children:o,className:n="button",startIcon:r,endIcon:l,disabled:i,id:a,kind:s="regular",onClick:d,onPointerDown:u,shape:m="squared",textColor:p="white",type:b})=>e.jsxs(Go,{as:"button",background:t,className:n,disabled:i,id:a,kind:s,onClick:d,onPointerDown:u,shape:m,type:b,children:[r&&r,e.jsx(N,{color:p,kind:Uo({kind:s}),children:o}),l&&l]}),pt=({message:t="Are you sure you want to delete this item?",onConfirm:o,children:n,anchorOrigin:r={vertical:"bottom",horizontal:"left"},transformOrigin:l={vertical:"top",horizontal:"center"}})=>{const[i,a]=h.useState(null),s=b=>{a(b.currentTarget)},d=()=>{a(null)},u=()=>{o(),d()},m=()=>{d()},p=!!i;return e.jsxs(e.Fragment,{children:[e.jsx("div",{children:re.cloneElement(n,{onClick:s})}),e.jsx(Vo,{anchorEl:i,anchorOrigin:r,onClose:d,open:p,transformOrigin:l,children:e.jsxs(Yo,{children:[e.jsx(N,{className:"message",children:t}),e.jsxs(Qo,{children:[e.jsx(Pe,{background:"primaryBlue",kind:"small",onClick:u,children:"Yes"}),e.jsx(Pe,{background:"white",kind:"small",onClick:m,textColor:"black",children:"No"})]})]})})]})},Yo=c(g)` align-items: center; background: ${x.BUTTON1}; color: ${x.white}; @@ -218,17 +218,17 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i font-size: 16px; font-weight: 500; } -`,Ys=c(Ce)` +`,Vo=c(Ce)` && { z-index: 9999; } -`,Vs=c(g)` +`,Qo=c(g)` display: flex; flex-direction: row; gap: 12px; align-items: center; margin-top: 16px; -`,Qs=({data:t})=>{const s=le(a=>a.setQueuedSources),[n,r]=h.useState(""),l=async a=>{if(t!=null&&t.length)try{const o=await bt.enable();await jt(a,o.pubkey),s(t.filter(d=>d.ref_id!==a))}catch(o){console.warn(o)}},i=async a=>{if(!(!a||!(t!=null&&t.length))){r(a);try{await Ve(a),s(t==null?void 0:t.filter(o=>o.ref_id!==a))}catch(o){console.warn(o)}finally{r("")}}};return t!=null&&t.length?e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{}),e.jsx(f,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[a.source_type]}),e.jsx(f,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(Ue,{href:`${st}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(Ue,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(qs,{className:"approve-wrapper",children:e.jsx(De,{className:"centered",onClick:()=>l(a.ref_id),children:e.jsx(Ht,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===a.ref_id?e.jsx(z,{color:x.white,size:16}):e.jsx(pt,{message:"Are you sure ?",onConfirm:()=>i(a.ref_id),children:e.jsx(De,{className:"centered",children:e.jsx(Pt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},a.source))})]}):e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]})},De=c(g)` +`,qo=({data:t})=>{const o=le(a=>a.setQueuedSources),[n,r]=h.useState(""),l=async a=>{if(t!=null&&t.length)try{const s=await bt.enable();await jt(a,s.pubkey),o(t.filter(d=>d.ref_id!==a))}catch(s){console.warn(s)}},i=async a=>{if(!(!a||!(t!=null&&t.length))){r(a);try{await Ve(a),o(t==null?void 0:t.filter(s=>s.ref_id!==a))}catch(s){console.warn(s)}finally{r("")}}};return t!=null&&t.length?e.jsxs(pe,{component:"table",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:"Source"}),e.jsx(f,{}),e.jsx(f,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[a.source_type]}),e.jsx(f,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(Ue,{href:`${ot}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(Ue,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(Xo,{className:"approve-wrapper",children:e.jsx(De,{className:"centered",onClick:()=>l(a.ref_id),children:e.jsx(Ht,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===a.ref_id?e.jsx(z,{color:x.white,size:16}):e.jsx(pt,{message:"Are you sure ?",onConfirm:()=>i(a.ref_id),children:e.jsx(De,{className:"centered",children:e.jsx(Pt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},a.source))})]}):e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]})},De=c(g)` width: 20px; height: 20px; border-radius: 50%; @@ -251,9 +251,9 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i &:hover { cursor: pointer; } -`,qs=c.div` +`,Xo=c.div` margin-right: 40px; -`,Xs=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{s(!0);try{const u=await Qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{s(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},o=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Ks,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Zs,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(Qs,{data:o})})]})},Ks=c(g)` +`,Ko=()=>{const[t,o]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(d=>[d.queuedSources,d.setQueuedSources]);h.useEffect(()=>{(async()=>{o(!0);try{const u=await Qe({approved:"False"});i(u.data)}catch(u){console.warn(u)}finally{o(!1)}})()},[i]);const a=d=>{r(n===d||!d?"":d)},s=l==null?void 0:l.filter(d=>!n||d.source_type===n);return e.jsxs(Zo,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(ke,{align:"flex-start",justify:"space-between",children:[e.jsx(N,{className:"title",children:"Queued Sources"}),e.jsx(N,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(U).map(d=>e.jsx(ie,{className:ae({selected:d===n}),onClick:()=>a(d),size:"small",children:U[d]},d))]}),e.jsx(Jo,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(qo,{data:s})})]})},Zo=c(g)` flex: 1; .title { @@ -279,12 +279,12 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i & .filters { overflow-x: auto; } -`,Zs=c(g)` +`,Jo=c(g)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,xt=({onSearch:t,placeholder:s,activeIcon:n,defaultIcon:r,loadingIcon:l,loading:i,...a})=>{const[o,d]=h.useState(""),u=()=>{d(""),t("")},m=h.useCallback(y=>{t(y)},[t]),p=h.useMemo(()=>we.debounce(m,300),[m]),b=y=>{const C=y.target.value.trim(),{value:w}=y.target;d(w),C?p(C):u()},j=()=>i?e.jsx(Ge,{children:e.jsx(fe,{type:"button",children:l})}):e.jsx(Ge,{children:o?e.jsx(fe,{onClick:u,type:"button",children:n}):e.jsx(fe,{type:"button",children:r})});return e.jsxs(Js,{children:[e.jsx(eo,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search"},onChange:b,placeholder:s,value:o,...a}),j()]})},Ge=c(g)` +`,xt=({onSearch:t,placeholder:o,activeIcon:n,defaultIcon:r,loadingIcon:l,loading:i,...a})=>{const[s,d]=h.useState(""),u=()=>{d(""),t("")},m=h.useCallback(y=>{t(y)},[t]),p=h.useMemo(()=>we.debounce(m,300),[m]),b=y=>{const C=y.target.value.trim(),{value:w}=y.target;d(w),C?p(C):u()},j=()=>i?e.jsx(Ge,{children:e.jsx(fe,{type:"button",children:l})}):e.jsx(Ge,{children:s?e.jsx(fe,{onClick:u,type:"button",children:n}):e.jsx(fe,{type:"button",children:r})});return e.jsxs(es,{children:[e.jsx(ts,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search"},onChange:b,placeholder:o,value:s,...a}),j()]})},Ge=c(g)` top: -50%; right: -3%; z-index: 3; @@ -292,7 +292,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i transform: translate(-50%, 50%); `,fe=c(Q)` font-size: 24px; -`,Js=c(zt)` +`,es=c(zt)` && { width: 100%; height: 40px; @@ -303,7 +303,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i box-sizing: border-box; padding-top: 0px; } -`,eo=c(Gt)` +`,ts=c(Gt)` -webkit-autofill, -webkit-autocomplete, -webkit-contacts-auto-fill, @@ -351,7 +351,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i } } width: 100%; -`,to=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 21 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M13.8 9.97481L5.82503 1.9998H18C18.4167 1.9998 18.7167 2.18314 18.9 2.5498C19.0834 2.91647 19.05 3.26647 18.8 3.5998L13.8 9.97481ZM18.775 20.5998L13 14.8248V16.9998C13 17.2831 12.9042 17.5206 12.7125 17.7123C12.5209 17.904 12.2834 17.9998 12 17.9998H10C9.71669 17.9998 9.47919 17.904 9.28753 17.7123C9.09586 17.5206 9.00002 17.2831 9.00002 16.9998V10.8248L0.400024 2.2248L1.80002 0.799805L20.2 19.1998L18.775 20.5998Z",fill:"currentColor"})}),so=({data:t,canEdit:s=!1})=>{const n=le(o=>o.setSources),[r,l]=h.useState(""),i=async(o,d)=>{if(t!=null&&t.length)try{await yt(o,d);const u=t==null?void 0:t.findIndex(p=>p.ref_id===o),m=[...t];m[u]={...m[u],source:d.source},n(m)}catch(u){console.warn(u)}},a=async o=>{if(!(!o||!(t!=null&&t.length))){l(o);try{await Ve(o),n(t==null?void 0:t.filter(d=>d.ref_id!==o))}catch(d){console.warn(d)}finally{l("")}}};return t!=null&&t.length?e.jsxs(pe,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{align:"left",children:"Source"}),s&&e.jsx(f,{align:"left"}),e.jsx(f,{className:"empty"})]})}),e.jsx(cs,{component:"tbody",children:t==null?void 0:t.map(o=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{align:"left",children:U[o.source_type]}),e.jsx(f,{align:"left",children:e.jsx(oo,{condition:s,wrapper:d=>e.jsx(no,{id:o.ref_id,onSave:u=>i(o.ref_id,{source:u,source_type:o.source_type}),value:o.source,children:d}),children:o.source_type===_e||o.source_type===Ne||o.source_type===ze?e.jsxs(e.Fragment,{children:[o.source_type===_e&&e.jsxs(me,{href:`${st}/${o.source}`,target:"_blank",children:["@",o.source]}),o.source_type===Ne&&e.jsx(me,{href:`${o.source}${o.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:o.source}),o.source_type===ze&&e.jsx(me,{href:o.source,target:"_blank",children:o.source})]}):e.jsx("div",{children:o.source})})}),s&&e.jsx(f,{align:"left",children:e.jsx("div",{className:"delete-wrapper",id:`delete-${o.source}`,children:r===o.ref_id?e.jsx(ht,{"data-testid":`delete-loader-${o.ref_id}`,children:e.jsx(z,{color:x.white,size:16})}):e.jsx(pt,{"data-testid":`delete-icon-${o.ref_id}`,message:"Are you sure?",onConfirm:()=>a(o.ref_id),children:e.jsx(oe,{className:"centered","data-testid":`delete-icon-${o.ref_id}`,children:e.jsx(Bt,{})})})})}),e.jsx(f,{className:"empty"})]},o.source))})]}):e.jsxs(ao,{children:[e.jsx(to,{}),e.jsx(N,{className:"text",children:"There is not any results for selected filters"})]})};function oo({condition:t,wrapper:s,children:n}){return t?s(n):n}const no=({value:t,onSave:s,id:n,children:r})=>{const[l,i]=h.useState(!1),[a,o]=h.useState(t),[d,u]=h.useState(!1),m=async()=>{if(n){u(!0);try{await s(a),i(!1)}catch(p){console.warn(p)}finally{u(!1)}}};return e.jsx("div",{children:l?e.jsxs(ro,{align:"center",direction:"row",children:[e.jsx(Yt,{className:"editable-cell__input",name:"cell-input",onChange:p=>o(p),value:a}),e.jsx(oe,{align:"center",justify:"center",children:d?e.jsx(ht,{"data-testid":`edit-loader-${n}`,children:e.jsx(z,{color:x.white,size:12})}):e.jsx(Dt,{"data-testid":`check-icon-${n}`,onClick:m})}),e.jsx(oe,{align:"center",className:"secondary",justify:"center",onClick:()=>i(!1),children:e.jsx(Ut,{})})]}):e.jsxs(io,{direction:"row",children:[e.jsx("div",{className:"name",children:r}),e.jsx("div",{className:"spacer"}),e.jsx(oe,{onClick:()=>i(!0),children:e.jsx(Lt,{"data-testid":`edit-icon-${n}`})})]})})},ro=c(g)` +`,os=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 21 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M13.8 9.97481L5.82503 1.9998H18C18.4167 1.9998 18.7167 2.18314 18.9 2.5498C19.0834 2.91647 19.05 3.26647 18.8 3.5998L13.8 9.97481ZM18.775 20.5998L13 14.8248V16.9998C13 17.2831 12.9042 17.5206 12.7125 17.7123C12.5209 17.904 12.2834 17.9998 12 17.9998H10C9.71669 17.9998 9.47919 17.904 9.28753 17.7123C9.09586 17.5206 9.00002 17.2831 9.00002 16.9998V10.8248L0.400024 2.2248L1.80002 0.799805L20.2 19.1998L18.775 20.5998Z",fill:"currentColor"})}),ss=({data:t,canEdit:o=!1})=>{const n=le(s=>s.setSources),[r,l]=h.useState(""),i=async(s,d)=>{if(t!=null&&t.length)try{await yt(s,d);const u=t==null?void 0:t.findIndex(p=>p.ref_id===s),m=[...t];m[u]={...m[u],source:d.source},n(m)}catch(u){console.warn(u)}},a=async s=>{if(!(!s||!(t!=null&&t.length))){l(s);try{await Ve(s),n(t==null?void 0:t.filter(d=>d.ref_id!==s))}catch(d){console.warn(d)}finally{l("")}}};return t!=null&&t.length?e.jsxs(pe,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:"Type"}),e.jsx(f,{align:"left",children:"Source"}),o&&e.jsx(f,{align:"left"}),e.jsx(f,{className:"empty"})]})}),e.jsx(co,{component:"tbody",children:t==null?void 0:t.map(s=>e.jsxs(he,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{align:"left",children:U[s.source_type]}),e.jsx(f,{align:"left",children:e.jsx(ns,{condition:o,wrapper:d=>e.jsx(rs,{id:s.ref_id,onSave:u=>i(s.ref_id,{source:u,source_type:s.source_type}),value:s.source,children:d}),children:s.source_type===_e||s.source_type===Ne||s.source_type===ze?e.jsxs(e.Fragment,{children:[s.source_type===_e&&e.jsxs(me,{href:`${ot}/${s.source}`,target:"_blank",children:["@",s.source]}),s.source_type===Ne&&e.jsx(me,{href:`${s.source}${s.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:s.source}),s.source_type===ze&&e.jsx(me,{href:s.source,target:"_blank",children:s.source})]}):e.jsx("div",{children:s.source})})}),o&&e.jsx(f,{align:"left",children:e.jsx("div",{className:"delete-wrapper",id:`delete-${s.source}`,children:r===s.ref_id?e.jsx(ht,{"data-testid":`delete-loader-${s.ref_id}`,children:e.jsx(z,{color:x.white,size:16})}):e.jsx(pt,{"data-testid":`delete-icon-${s.ref_id}`,message:"Are you sure?",onConfirm:()=>a(s.ref_id),children:e.jsx(se,{className:"centered","data-testid":`delete-icon-${s.ref_id}`,children:e.jsx(Rt,{})})})})}),e.jsx(f,{className:"empty"})]},s.source))})]}):e.jsxs(is,{children:[e.jsx(os,{}),e.jsx(N,{className:"text",children:"There is not any results for selected filters"})]})};function ns({condition:t,wrapper:o,children:n}){return t?o(n):n}const rs=({value:t,onSave:o,id:n,children:r})=>{const[l,i]=h.useState(!1),[a,s]=h.useState(t),[d,u]=h.useState(!1),m=async()=>{if(n){u(!0);try{await o(a),i(!1)}catch(p){console.warn(p)}finally{u(!1)}}};return e.jsx("div",{children:l?e.jsxs(as,{align:"center",direction:"row",children:[e.jsx(Yt,{className:"editable-cell__input",name:"cell-input",onChange:p=>s(p),value:a}),e.jsx(se,{align:"center",justify:"center",children:d?e.jsx(ht,{"data-testid":`edit-loader-${n}`,children:e.jsx(z,{color:x.white,size:12})}):e.jsx(Dt,{"data-testid":`check-icon-${n}`,onClick:m})}),e.jsx(se,{align:"center",className:"secondary",justify:"center",onClick:()=>i(!1),children:e.jsx(Ut,{})})]}):e.jsxs(ls,{direction:"row",children:[e.jsx("div",{className:"name",children:r}),e.jsx("div",{className:"spacer"}),e.jsx(se,{onClick:()=>i(!0),children:e.jsx(Bt,{"data-testid":`edit-icon-${n}`})})]})})},as=c(g)` display: flex; width: 250px; border: 2px solid ${x.lightBlue300}; @@ -366,7 +366,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i padding: 0 4px; color: #fff; } -`,oe=c(g)` +`,se=c(g)` width: 20px; height: 20px; border-radius: 50%; @@ -377,6 +377,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i display: flex; &.centered { margin: 0 auto; + color: ${x.secondaryRed}; } & + & { @@ -386,7 +387,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i &:hover { background: rgba(255, 255, 255, 0.1); } -`,ao=c(g)` +`,is=c(g)` margin-top: 120px; width: 165px; display: flex; @@ -407,7 +408,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i svg { color: ${x.GRAY6}; } -`,io=c(g)` +`,ls=c(g)` display: flex; padding: 4px; position: relative; @@ -439,7 +440,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i display: flex; justify-content: center; align-items: center; -`,lo=()=>{const[t,s]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(p=>[p.sources,p.setSources]),[a]=qe(p=>[p.isAdmin]),[o,d]=h.useState("");h.useEffect(()=>{(async()=>{s(!0);try{const b=await Qe();i(b.data)}catch(b){console.warn(b)}finally{s(!1)}})()},[i]);const u=p=>{r(n===p||!p?"":p)},m=h.useMemo(()=>l==null?void 0:l.filter(p=>(!n||p.source_type===n)&&(p.source.toLowerCase().startsWith(o.toLowerCase())||p.source.toLowerCase().includes(o.toLowerCase())||`@${p.source.toLowerCase()}`.startsWith(o.toLowerCase())||`@${p.source.toLowerCase()}`.includes(o.toLowerCase()))),[o,n,l]);return e.jsxs(co,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"center",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Sources for this Graph"})}),e.jsx(xo,{children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ke,{}),loading:t,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>u(""),size:"small",children:"All"}),Object.keys(U).map(p=>e.jsx(ie,{className:ae({selected:p===n}),onClick:()=>u(p),size:"small",children:U[p]},p))]}),e.jsx(po,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(so,{canEdit:a,data:m})})]})},co=c(g)` +`,cs=()=>{const[t,o]=h.useState(!0),[n,r]=h.useState(""),[l,i]=le(p=>[p.sources,p.setSources]),[a]=qe(p=>[p.isAdmin]),[s,d]=h.useState("");h.useEffect(()=>{(async()=>{o(!0);try{const b=await Qe();i(b.data)}catch(b){console.warn(b)}finally{o(!1)}})()},[i]);const u=p=>{r(n===p||!p?"":p)},m=h.useMemo(()=>l==null?void 0:l.filter(p=>(!n||p.source_type===n)&&(p.source.toLowerCase().startsWith(s.toLowerCase())||p.source.toLowerCase().includes(s.toLowerCase())||`@${p.source.toLowerCase()}`.startsWith(s.toLowerCase())||`@${p.source.toLowerCase()}`.includes(s.toLowerCase()))),[s,n,l]);return e.jsxs(ds,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"center",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Sources for this Graph"})}),e.jsx(xs,{children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ke,{}),loading:t,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(g,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ie,{className:ae({selected:!n}),onClick:()=>u(""),size:"small",children:"All"}),Object.keys(U).map(p=>e.jsx(ie,{className:ae({selected:p===n}),onClick:()=>u(p),size:"small",children:U[p]},p))]}),e.jsx(ps,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(z,{color:x.white}):e.jsx(ss,{canEdit:a,data:m})})]})},ds=c(g)` flex: 1; .title { font-size: 20px; @@ -454,18 +455,18 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i & .filters { overflow-x: auto; } -`,po=c(g)` +`,ps=c(g)` min-height: 0; overflow: auto; flex: 1; width: 100%; -`,xo=c(g)` +`,xs=c(g)` margin: 0 0 16px 36px; -`,ho=({selectedType:t,setSelectedType:s})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:o}=await wt();r(o.edge_types)}catch(o){console.warn(o)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{s((a==null?void 0:a.value)||"")};return e.jsx($e,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},uo=({onSelect:t,selectedValue:s,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),o=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:Se,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Xe(y.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&o(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return s?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:s.search_value}),e.jsx(ot,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx($e,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||lt,selectedValue:s?m(s):null})},go=({from:t,onSelect:s,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fo,{children:"Add edge"})})}),e.jsxs(jo,{swap:l,children:[e.jsx(g,{children:e.jsx(yo,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bo,{children:"Type"}),e.jsx(ho,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:l?"From":"To"}),e.jsx(uo,{onSelect:s,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(mo,{children:[e.jsx(vo,{children:e.jsx(Ze,{})}),e.jsx(To,{onClick:i,children:e.jsx(Je,{})}),e.jsx(So,{children:e.jsx(et,{})})]})]})]}),fo=c(N)` +`,hs=({selectedType:t,setSelectedType:o})=>{const[n,r]=h.useState([]);h.useEffect(()=>{(async()=>{try{const{data:s}=await wt();r(s.edge_types)}catch(s){console.warn(s)}})()},[r]);const l=a=>({label:a,value:a}),i=a=>{o((a==null?void 0:a.value)||"")};return e.jsx(Se,{onSelect:i,options:n.map(l),selectedValue:t?l(t):null})},us=({onSelect:t,selectedValue:o,topicId:n})=>{const[r,l]=h.useState([]),[i,a]=h.useState(!1),s=h.useMemo(()=>{const b=async j=>{const y={is_muted:"False",sort_by:$e,search:j,skip:"0",limit:"1000"};a(!0);try{const w=(await Xe(y.search)).data.filter($=>($==null?void 0:$.ref_id)!==n);l(w)}catch{l([])}finally{a(!1)}};return we.debounce(b,300)},[n]),d=b=>{const j=b.trim();if(!j){l([]);return}j.length>2&&s(b)},u=b=>{const j=b?r.find(y=>y.ref_id===b.value):null;t(j||null)},m=b=>({label:b.search_value,value:b.ref_id,type:b.node_type}),p=b=>b.map(m);return o?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:o.search_value}),e.jsx(st,{onClick:()=>t(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{handleInputChange:d,isLoading:i,onSelect:u,options:p(r)||lt,selectedValue:o?m(o):null})},gs=({from:t,onSelect:o,selectedType:n,setSelectedType:r,isSwapped:l,setIsSwapped:i,selectedToNode:a})=>e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(fs,{children:"Add edge"})})}),e.jsxs(js,{swap:l,children:[e.jsx(g,{children:e.jsx(ys,{disabled:!0,label:l?"To":"From",swap:l,value:t==null?void 0:t.name})}),e.jsxs(g,{my:16,children:[e.jsx(bs,{children:"Type"}),e.jsx(hs,{selectedType:n,setSelectedType:r})]}),e.jsx(g,{children:e.jsxs(ws,{children:[e.jsx(Cs,{children:l?"From":"To"}),e.jsx(us,{onSelect:o,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(ms,{children:[e.jsx(vs,{children:e.jsx(Ze,{})}),e.jsx(Ts,{onClick:i,children:e.jsx(Je,{})}),e.jsx($s,{children:e.jsx(et,{})})]})]})]}),fs=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,mo=c.div` +`,ms=c.div` position: absolute; top: 26px; bottom: 26px; @@ -475,7 +476,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i border-top: 1.5px solid #6b7a8d4d; border-bottom: 1.5px solid #6b7a8d4d; border-radius: 12px 0 0 12px; -`,bo=c.label` +`,bs=c.label` color: #bac1c6; font-size: 13px; font-weight: 400; @@ -483,7 +484,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i letter-spacing: 0.01em; text-align: left; margin-bottom: 6px; -`,jo=c.div` +`,js=c.div` position: relative; color: white; font-family: 'Barlow'; @@ -491,7 +492,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i flex-direction: ${t=>t.swap?"column-reverse":"column"}; margin-bottom: 10px; padding-left: 38px; -`,yo=c(it)` +`,ys=c(it)` position: relative; width: 100%; padding: 16px; @@ -500,7 +501,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i border: 1px solid #6b7a8d4d; opacity: 0px; display: flex; -`,wo=c.div` +`,ws=c.div` position: relative; width: 100%; padding: 15px; @@ -510,7 +511,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i opacity: 0px; display: flex; align-items: center; -`,Co=c.label` +`,Cs=c.label` color: #bac1c6; background-color: #23252f; font-size: 13px; @@ -521,13 +522,13 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i position: absolute; left: 15px; top: -10px; -`,vo=c.div` +`,vs=c.div` position: absolute; top: 0; right: 0; transform: translateY(-50%) translateX(50%); color: #23252f; -`,To=c.div` +`,Ts=c.div` position: absolute; color: transparent; top: 50%; @@ -541,31 +542,31 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i justify-content: center; align-items: center; border-radius: 8px; -`,So=c.div` +`,$s=c.div` position: absolute; bottom: 0; right: 0; transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,$o=({topic:t,onClose:s})=>{const{close:n}=M("addEdge"),[r]=R(w=>[w.data]),l=ve({mode:"onChange"}),[i,a]=h.useState(!1),[o,d]=h.useState(!1),[u,m]=h.useState(""),[p,b]=h.useState(null),j=()=>{s(),n()},y=async()=>{if(!(!p||!r)){d(!0);try{await Ct({from:t.ref_id,to:p==null?void 0:p.ref_id,relationship:u});const{ref_id:w}=t,{ref_id:S}=p;if(r){const $={...r};$[w]={...$[w],edgeList:[...$[w].edgeList,u]},$[S]&&($[S]={...$[S],edgeList:[...$[S].edgeList,u]}),R.setState({data:$})}j()}catch(w){console.warn(w)}finally{d(!1)}}},C=o||!p||!u;return e.jsx(de,{id:"addEdge",kind:"small",onClose:j,preventOutsideClose:!0,children:e.jsxs(Te,{...l,children:[e.jsx(go,{from:t,isSwapped:i,onSelect:b,selectedToNode:p,selectedType:u,setIsSwapped:()=>a(!i),setSelectedType:m}),e.jsxs(ko,{color:"secondary",disabled:C,onClick:y,size:"large",variant:"contained",children:["Confirm",o&&e.jsx(_o,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},ko=c(W)` +`,Ss=({topic:t,onClose:o})=>{const{close:n}=M("addEdge"),[r]=L(w=>[w.data]),l=ve({mode:"onChange"}),[i,a]=h.useState(!1),[s,d]=h.useState(!1),[u,m]=h.useState(""),[p,b]=h.useState(null),j=()=>{o(),n()},y=async()=>{if(!(!p||!r)){d(!0);try{await Ct({from:t.ref_id,to:p==null?void 0:p.ref_id,relationship:u});const{ref_id:w}=t,{ref_id:$}=p;if(r){const S={...r};S[w]={...S[w],edgeList:[...S[w].edgeList,u]},S[$]&&(S[$]={...S[$],edgeList:[...S[$].edgeList,u]}),L.setState({data:S})}j()}catch(w){console.warn(w)}finally{d(!1)}}},C=s||!p||!u;return e.jsx(de,{id:"addEdge",kind:"small",onClose:j,preventOutsideClose:!0,children:e.jsxs(Te,{...l,children:[e.jsx(gs,{from:t,isSwapped:i,onSelect:b,selectedToNode:p,selectedType:u,setIsSwapped:()=>a(!i),setSelectedType:m}),e.jsxs(ks,{color:"secondary",disabled:C,onClick:y,size:"large",variant:"contained",children:["Confirm",s&&e.jsx(_s,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},ks=c(W)` width: 293px !important; margin: 0 0 10px auto !important; -`,_o=c.span` +`,_s=c.span` margin-top: 2px; -`,No=()=>e.jsxs(g,{children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(zo,{children:"Edit topic"})})}),e.jsx(g,{mb:12,children:e.jsx(Vt,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Add your topic",rules:{...vt}})})]}),zo=c(N)` +`,Ns=()=>e.jsxs(g,{children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(zs,{children:"Edit topic"})})}),e.jsx(g,{mb:12,children:e.jsx(Vt,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Add your topic",rules:{...vt}})})]}),zs=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Bo=({topic:t,onClose:s})=>{const{close:n}=M("editTopic"),[r]=R(w=>[w.data]),l=ve({mode:"onChange"}),{watch:i,setValue:a,reset:o,getValues:d}=l,[u,m]=h.useState(!1);h.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{o()}),[t,a,o]);const p=i("name"),b=p==null?void 0:p.trim(),j=()=>{s(),n()},y=async()=>{m(!0);try{if(await ce((t==null?void 0:t.ref_id)||"",{node_data:{name:b}}),r){const w={...r};w[t==null?void 0:t.ref_id].name=b,R.setState({data:w})}j()}catch(w){console.warn(w)}finally{m(!1)}},C=d().name&&(t==null?void 0:t.name)!==d().name;return e.jsx(de,{id:"editTopic",kind:"regular",onClose:j,preventOutsideClose:!0,children:e.jsxs(Te,{...l,children:[e.jsx(No,{}),e.jsxs(W,{color:"secondary",disabled:u||!b||!C,onClick:y,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(Lo,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Lo=c.span` +`,Rs=({topic:t,onClose:o})=>{const{close:n}=M("editTopic"),[r]=L(w=>[w.data]),l=ve({mode:"onChange"}),{watch:i,setValue:a,reset:s,getValues:d}=l,[u,m]=h.useState(!1);h.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{s()}),[t,a,s]);const p=i("name"),b=p==null?void 0:p.trim(),j=()=>{o(),n()},y=async()=>{m(!0);try{if(await ce((t==null?void 0:t.ref_id)||"",{node_data:{name:b}}),r){const w={...r};w[t==null?void 0:t.ref_id].name=b,L.setState({data:w})}j()}catch(w){console.warn(w)}finally{m(!1)}},C=d().name&&(t==null?void 0:t.name)!==d().name;return e.jsx(de,{id:"editTopic",kind:"regular",onClose:j,preventOutsideClose:!0,children:e.jsxs(Te,{...l,children:[e.jsx(Ns,{}),e.jsxs(W,{color:"secondary",disabled:u||!b||!C,onClick:y,size:"large",variant:"contained",children:["Save Changes",u&&e.jsx(Bs,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Bs=c.span` margin-top: 2px; -`,Ro=({topicId:t,onSelect:s,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,o]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:Se,search:y,skip:"0",limit:"1000"};o(!0);try{const S=(await Xe(C.search)).data.filter($=>($==null?void 0:$.ref_id)!==t);i(S)}catch{i([])}finally{o(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;s(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(ot,{onClick:()=>s(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx($e,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||lt,selectedValue:n?p(n):null})},Io=({from:t,onSelect:s,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var o;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Mo,{children:"Merge topic"})})}),e.jsxs(Oo,{swap:r,children:[e.jsx(Eo,{children:e.jsx(Fo,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Ho,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Wo,{children:[e.jsx(Po,{children:r?"From":"To"}),e.jsx(Ro,{dataId:"to-node",onSelect:s,selectedValue:n,topicId:(o=t[t.length-1])==null?void 0:o.ref_id})]})}),e.jsxs(Ao,{children:[e.jsx(Do,{children:e.jsx(Ze,{})}),e.jsx(Uo,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(Je,{})}),e.jsx(Go,{children:e.jsx(et,{})})]})]})]})},Mo=c(N)` +`,Ls=({topicId:t,onSelect:o,selectedValue:n,dataId:r})=>{const[l,i]=h.useState([]),[a,s]=h.useState(!1),d=h.useMemo(()=>{const j=async y=>{const C={is_muted:"False",sort_by:$e,search:y,skip:"0",limit:"1000"};s(!0);try{const $=(await Xe(C.search)).data.filter(S=>(S==null?void 0:S.ref_id)!==t);i($)}catch{i([])}finally{s(!1)}};return we.debounce(j,300)},[t]),u=j=>{const y=j.trim();if(!y){i([]);return}y.length>2&&d(j)},m=j=>{const y=j?l.find(C=>C.ref_id===j.value):null;o(y||null)},p=j=>({label:j.search_value,value:j.ref_id,type:j.node_type}),b=j=>j.map(p);return n?e.jsxs(g,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:n.search_value}),e.jsx(st,{onClick:()=>o(null),size:"medium",children:e.jsx(te,{})})]}):e.jsx(Se,{dataId:r,handleInputChange:u,isLoading:a,onSelect:m,options:b(l)||lt,selectedValue:n?p(n):null})},Is=({from:t,onSelect:o,selectedToNode:n,isSwapped:r,setIsSwapped:l})=>{var s;const i=t==null?void 0:t.map(d=>d.name).join(", "),a=t&&t.length===1?t[0].name:`${i==null?void 0:i.substring(0,25)} ...`;return e.jsxs(g,{mb:20,children:[e.jsx(g,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(g,{align:"center",direction:"row",children:e.jsx(Ms,{children:"Merge topic"})})}),e.jsxs(Os,{swap:r,children:[e.jsx(Es,{children:e.jsx(Fs,{disabled:!0,label:r?"To":"From",swap:r,value:a})}),e.jsxs(g,{my:16,children:[e.jsx(Hs,{children:"Type"}),e.jsx(N,{children:"IS ALIAS"})]}),e.jsx(g,{children:e.jsxs(Ws,{children:[e.jsx(Ps,{children:r?"From":"To"}),e.jsx(Ls,{dataId:"to-node",onSelect:o,selectedValue:n,topicId:(s=t[t.length-1])==null?void 0:s.ref_id})]})}),e.jsxs(As,{children:[e.jsx(Ds,{children:e.jsx(Ze,{})}),e.jsx(Us,{"data-testid":"swap-icon",disabled:(t==null?void 0:t.length)!==1,onClick:(t==null?void 0:t.length)===1?l:void 0,children:e.jsx(Je,{})}),e.jsx(Gs,{children:e.jsx(et,{})})]})]})]})},Ms=c(N)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Eo=c(g)` +`,Es=c(g)` flex: 1 1 100%; -`,Ao=c.div` +`,As=c.div` position: absolute; top: 26px; bottom: 26px; @@ -575,7 +576,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i border-top: 1.5px solid #6b7a8d4d; border-bottom: 1.5px solid #6b7a8d4d; border-radius: 12px 0 0 12px; -`,Oo=c.div` +`,Os=c.div` position: relative; color: white; font-family: 'Barlow'; @@ -583,7 +584,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i flex-direction: ${t=>t.swap?"column-reverse":"column"}; margin-bottom: 10px; padding-left: 38px; -`,Fo=c(it)` +`,Fs=c(it)` position: relative; width: 100%; padding: 16px; @@ -592,7 +593,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i border: 1px solid #6b7a8d4d; opacity: 0px; display: flex; -`,Wo=c.div` +`,Ws=c.div` position: relative; width: 100%; padding: 15px; @@ -602,7 +603,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i opacity: 0px; display: flex; align-items: center; -`,Ho=c.label` +`,Hs=c.label` color: #bac1c6; font-size: 13px; font-weight: 400; @@ -610,7 +611,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i letter-spacing: 0.01em; text-align: left; margin-bottom: 6px; -`,Po=c.label` +`,Ps=c.label` color: #bac1c6; background-color: #23252f; font-size: 13px; @@ -621,13 +622,13 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i position: absolute; left: 15px; top: -10px; -`,Do=c.div` +`,Ds=c.div` position: absolute; top: 0; right: 0; transform: translateY(-50%) translateX(50%); color: #23252f; -`,Uo=c.div` +`,Us=c.div` position: absolute; color: transparent; top: 50%; @@ -641,26 +642,26 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i justify-content: center; align-items: center; border-radius: 8px; -`,Go=c.div` +`,Gs=c.div` position: absolute; bottom: 0; right: 0; transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,Yo=({onClose:t,multiTopics:s})=>{const{close:n}=M("mergeTopic"),r=ve({mode:"onChange"}),{setValue:l,reset:i}=r,[a,o]=h.useState(!1),[d,u]=h.useState(!1),[m,p]=h.useState(null);h.useEffect(()=>{if(s&&s.length>0){const y=s.map(C=>C.name).join(", ");l("name",y)}return()=>{i()}},[s,l,i]);const b=()=>{t(),n()},j=async()=>{o(!0);const y=s==null?void 0:s.map(C=>C.ref_id).filter(C=>!!C);try{y.length&&m&&(await Tt({from:y,to:m==null?void 0:m.ref_id}),R.setState(C=>({ids:C.ids.filter(w=>!y.includes(w)),total:C.total-y.length})),b())}catch(C){console.warn(C)}finally{o(!1)}};return e.jsx(de,{id:"mergeTopic",kind:"small",onClose:b,preventOutsideClose:!0,children:e.jsxs(Te,{...r,children:[e.jsx(Io,{from:s,isSwapped:d,onSelect:p,selectedToNode:m,setIsSwapped:()=>u(!d)}),e.jsxs(Vo,{color:"secondary","data-testid":"merge-topics-button",disabled:a||!m,onClick:j,size:"large",variant:"contained",children:["Merge topics",a&&e.jsx(Qo,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Vo=c(W)` +`,Ys=({onClose:t,multiTopics:o})=>{const{close:n}=M("mergeTopic"),r=ve({mode:"onChange"}),{setValue:l,reset:i}=r,[a,s]=h.useState(!1),[d,u]=h.useState(!1),[m,p]=h.useState(null);h.useEffect(()=>{if(o&&o.length>0){const y=o.map(C=>C.name).join(", ");l("name",y)}return()=>{i()}},[o,l,i]);const b=()=>{t(),n()},j=async()=>{s(!0);const y=o==null?void 0:o.map(C=>C.ref_id).filter(C=>!!C);try{y.length&&m&&(await Tt({from:y,to:m==null?void 0:m.ref_id}),L.setState(C=>({ids:C.ids.filter(w=>!y.includes(w)),total:C.total-y.length})),b())}catch(C){console.warn(C)}finally{s(!1)}};return e.jsx(de,{id:"mergeTopic",kind:"small",onClose:b,preventOutsideClose:!0,children:e.jsxs(Te,{...r,children:[e.jsx(Is,{from:o,isSwapped:d,onSelect:p,selectedToNode:m,setIsSwapped:()=>u(!d)}),e.jsxs(Vs,{color:"secondary","data-testid":"merge-topics-button",disabled:a||!m,onClick:j,size:"large",variant:"contained",children:["Merge topics",a&&e.jsx(Qs,{children:e.jsx(z,{color:x.lightGray,size:12})})]})]})})},Vs=c(W)` width: 293px !important; margin: 0 0 10px auto !important; -`,Qo=c.span` +`,Qs=c.span` margin-top: 2px; -`,qo=({topic:t,onClick:s,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,o]=R(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await ce(k,{node_data:{is_muted:v}}),R.setState({ids:a.filter(_=>_!==k),total:o-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),S=t.edgeList.length-w.length,[$,A]=re.useState(null),F=k=>{A(k.currentTarget),p(!0)},B=()=>{p(!1)},H=!!$&&m,I=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Zo,{className:`checkbox-section ${I}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Jo,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(tt,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Ko,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx(Ce,{anchorEl:$,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:B,onMouseEnter:()=>p(!0),onMouseLeave:B,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Me,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),S>0&&e.jsx(Me,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:F,onMouseLeave:B,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Xo,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(Q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(Rt,{})}):e.jsx(Q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(It,{})}),e.jsx(Q,{disabled:i,onClick:k=>s(k,t.ref_id),children:e.jsx(Mt,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Xo=c.span` +`,qs=({topic:t,onClick:o,onSearch:n,checkedStates:r,setCheckedStates:l,isMuteDisabled:i})=>{const[a,s]=L(k=>[k.ids,k.total]),[d,u]=h.useState(!1),[m,p]=h.useState(!1),b=ye(t.date_added_to_graph),j=async(k,v)=>{u(!0);try{await ce(k,{node_data:{is_muted:v}}),L.setState({ids:a.filter(_=>_!==k),total:s-1})}catch(_){console.warn(_)}},y=k=>{l(v=>({...v,[k]:!v[k]}))},C=(k,v)=>{var _;(_=window.getSelection())!=null&&_.toString()?k.preventDefault():n(v.name)},w=t.edgeList.slice(0,1),$=t.edgeList.length-w.length,[S,A]=re.useState(null),F=k=>{A(k.currentTarget),p(!0)},R=()=>{p(!1)},H=!!S&&m,I=r[t.ref_id]?"visible":"";return e.jsxs(he,{className:r[t.ref_id]?"checked":"",children:[e.jsx(f,{children:e.jsx(Zs,{className:`checkbox-section ${I}`,"data-testid":"topic-check-box",onClick:()=>y(t.ref_id),children:e.jsx(Js,{checked:r[t.ref_id],children:e.jsx(en,{children:r[t.ref_id]&&e.jsx(tt,{})})})})}),e.jsx(f,{onClick:k=>C(k,t),children:e.jsx(Ks,{children:t.name})}),e.jsx(f,{children:t.node_type}),e.jsx(f,{children:e.jsx(tn,{children:t.edgeCount})}),e.jsxs(f,{children:[e.jsx(Ce,{anchorEl:S,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:R,onMouseEnter:()=>p(!0),onMouseLeave:R,open:H,sx:{pointerEvents:"auto","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px",maxHeight:"200px",overflowY:"scroll"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Me,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),w.join(", "),$>0&&e.jsx(Me,{"aria-haspopup":"true","aria-owns":H?"mouse-over-popover":void 0,component:"span",onMouseEnter:F,onMouseLeave:R,sx:{cursor:"pointer"},children:",..."})]}),e.jsx(f,{children:e.jsx("span",{children:b})}),e.jsx(f,{className:"cell-center",children:e.jsx(g,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:d?e.jsx(Xs,{children:e.jsx(z,{color:x.white,size:16})}):e.jsxs(g,{direction:"row",children:[t.is_muted?e.jsx(Q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!1),children:e.jsx(Lt,{})}):e.jsx(Q,{className:"centered",disabled:i,onClick:()=>j(t.ref_id,!0),children:e.jsx(It,{})}),e.jsx(Q,{disabled:i,onClick:k=>o(k,t.ref_id),children:e.jsx(Mt,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},Xs=c.span` margin-left: 12px; -`,Ko=c.span` +`,Ks=c.span` cursor: pointer; :hover { text-decoration: underline; } -`,Zo=c.td` +`,Zs=c.td` visibility: hidden; cursor: pointer; display: flex; @@ -669,7 +670,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i &.visible { visibility: visible; } -`,Jo=c.div` +`,Js=c.div` width: 14px; height: 14px; border-radius: 4px; @@ -689,7 +690,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i display: flex; align-items: center; justify-content: center; -`,sn=h.memo(qo),on=({setShowMuteUnmute:t,showMuted:s,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:o}=M("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=St(T=>[T.setSearchFormValue,T.setCurrentSearch]),[S,$,A]=R(T=>[T.data,T.ids,T.total]),F=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),B=()=>{p(null)},H=T=>{C(T),w(T),o()},I=T=>{r(b,T),B()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,E=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await ce(Y,{node_data:{is_muted:!s}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);R.setState({ids:$.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!S?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:S&&!Object.keys(S).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(zs,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(Q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:E,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(Be,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Le,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>I("mergeTopic"),children:[e.jsx(Re,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Se),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ot),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ft),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:s,children:e.jsx(an,{children:s&&e.jsx(tt,{})})}),"Muted"]})})})]})}),(n||d)&&!S&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),S&&e.jsx("tbody",{children:$==null?void 0:$.map(T=>e.jsx(sn,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:F,onSearch:H,setCheckedStates:a,topic:S[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:B,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(V,{"data-testid":"unmute",onClick:()=>I("unMute"),children:[" ",e.jsx(Be,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>I("mute"),children:[" ",e.jsx(Le,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>I("editTopic"),children:[e.jsx(Et,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>I("mergeTopic"),children:[e.jsx(Re,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>I("addEdge"),children:[e.jsx(At,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` +`,on=h.memo(qs),sn=({setShowMuteUnmute:t,showMuted:o,loading:n,onTopicEdit:r,onChangeFilter:l,checkedStates:i,setCheckedStates:a})=>{const{close:s}=M("sourcesTable"),[d,u]=h.useState(!1),[m,p]=re.useState(null),[b,j]=re.useState(""),y=Object.values(i).filter(T=>T).length,[C,w]=$t(T=>[T.setSearchFormValue,T.setCurrentSearch]),[$,S,A]=L(T=>[T.data,T.ids,T.total]),F=h.useCallback((T,P)=>{p(T.currentTarget),j(P)},[]),R=()=>{p(null)},H=T=>{C(T),w(T),s()},I=T=>{r(b,T),R()},k=T=>{l(T)},v=!!m,_=v?"simple-popover":void 0,E=async()=>{u(!0);try{const T=Object.keys(i).map(async Y=>{if(i[Y])try{return await ce(Y,{node_data:{is_muted:!o}}),Y}catch(ut){return console.error("Error updating node data:",ut),null}return null}),P=await Promise.all(T);L.setState({ids:S.filter(Y=>!P.includes(Y)),total:A-P.length}),a({}),u(!1)}catch(T){console.error("Error:",T),u(!1)}};return!n&&!$?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsx(e.Fragment,{children:$&&!Object.keys($).length?e.jsxs(g,{children:[e.jsx(N,{children:"There is not any results for selected filters"}),e.jsx(je,{})]}):e.jsxs(xn,{align:"center",justify:d?"center":"flex-start",children:[e.jsxs(pe,{component:"table",children:[y>0?e.jsx(Ro,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{children:e.jsx(Q,{onClick:()=>a({}),children:e.jsx(te,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(pn,{children:[e.jsxs(dn,{children:[e.jsx(cn,{children:y}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ye,{onClick:E,role:"button",children:o?e.jsxs(e.Fragment,{children:[e.jsx(Re,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Be,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ye,{onClick:()=>I("mergeTopic"),children:[e.jsx(Le,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(ue,{children:e.jsxs(G,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k($e),children:["Name ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ot),children:["Count ",e.jsx(ge,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(be,{onClick:()=>k(Ft),children:["Date ",e.jsx(ge,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(nn,{onClick:t,children:[e.jsx(rn,{checked:o,children:e.jsx(an,{children:o&&e.jsx(tt,{})})}),"Muted"]})})})]})}),(n||d)&&!$&&e.jsx(hn,{children:e.jsx(z,{color:x.white})}),$&&e.jsx("tbody",{children:S==null?void 0:S.map(T=>e.jsx(on,{checkedStates:i,isMuteDisabled:Object.values(i).filter(P=>P).length>1,onClick:F,onSearch:H,setCheckedStates:a,topic:$[T]},T))})]}),b?e.jsxs(ln,{anchorEl:m,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:_,onClose:R,open:v,transformOrigin:{vertical:"top",horizontal:"right"},children:[o?e.jsxs(V,{"data-testid":"unmute",onClick:()=>I("unMute"),children:[" ",e.jsx(Re,{"data-testid":""})," Unmute"]}):e.jsxs(V,{"data-testid":"mute",onClick:()=>I("mute"),children:[" ",e.jsx(Be,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(V,{"data-testid":"rename",onClick:()=>I("editTopic"),children:[e.jsx(Et,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(V,{"data-testid":"merge",onClick:()=>I("mergeTopic"),children:[e.jsx(Le,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(V,{"data-testid":"add_edge",onClick:()=>I("addEdge"),children:[e.jsx(At,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})})},nn=c.td` cursor: pointer; display: flex; align-items: center; @@ -783,7 +784,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i display: flex; align-items: center; justify-content: center; -`,un=()=>{const[t,s,n,r,l,i,a,o]=R(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=M("editTopic"),{open:u}=M("mergeTopic"),{open:m}=M("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),S={editTopic:d,mergeTopic:u,addEdge:m},$=h.useRef([]);h.useEffect(()=>{s.length&&($.current=s)},[s]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const F=v=>{i({sortBy:v})},B=()=>{b(null),y([])},H=async(v,_)=>{try{await ce(v,{node_data:{is_muted:_==="mute"}}),R.setState({ids:s.filter(E=>E!==v),total:n-1})}catch(E){console.warn(E)}},I=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(E=>E).length>0){const E=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(E),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof S[_]=="function"&&S[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ke,{}),loading:o,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:o&&!t?"center":"flex-start",children:[e.jsx(on,{checkedStates:C,loading:o,onChangeFilter:F,onTopicEdit:I,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>s.length?e.jsxs(W,{className:"load-more",disabled:o,onClick:A,children:["Load more",o&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Yo,{multiTopics:j,onClose:B}),p&&e.jsx(Bo,{onClose:B,topic:p}),p&&e.jsx($o,{onClose:B,topic:p})]})},gn=c(g)` +`,un=()=>{const[t,o,n,r,l,i,a,s]=L(v=>[v.data,v.ids,v.total,v.setTopics,v.filters,v.setFilters,v.terminate,v.loading]),{open:d}=M("editTopic"),{open:u}=M("mergeTopic"),{open:m}=M("addEdge"),[p,b]=h.useState(null),[j,y]=h.useState([]),[C,w]=h.useState({}),$={editTopic:d,mergeTopic:u,addEdge:m},S=h.useRef([]);h.useEffect(()=>{o.length&&(S.current=o)},[o]),h.useEffect(()=>{(async()=>{try{await r()}catch{console.error("err")}})()},[r,l]);const A=async()=>{i({page:l.page+1})};h.useEffect(()=>()=>{a()},[a]);const F=v=>{i({sortBy:v})},R=()=>{b(null),y([])},H=async(v,_)=>{try{await ce(v,{node_data:{is_muted:_==="mute"}}),L.setState({ids:o.filter(E=>E!==v),total:n-1})}catch(E){console.warn(E)}},I=async(v,_)=>{if(t)if(_==="mergeTopic")if(Object.values(C).filter(E=>E).length>0){const E=Object.entries(C).filter(([,T])=>T).map(([T])=>t[T]);y(E),u()}else y([t[v]]),b(t[v]),u();else["mute","unMute"].includes(_)&&await H(v,_),typeof $[_]=="function"&&$[_](),b(t[v])},k=v=>{i({...l,search:v})};return e.jsxs(e.Fragment,{children:[e.jsxs(gn,{direction:"column",justify:"flex-end",children:[e.jsx(ke,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(N,{className:"title",children:"Topics"})}),e.jsx(mn,{"data-testid":"topic-search-container",children:e.jsx(xt,{activeIcon:e.jsx(te,{}),defaultIcon:e.jsx(Ke,{}),loading:s,loadingIcon:e.jsx(z,{color:x.lightGray,size:24}),onSearch:k,placeholder:"Search ..."})}),e.jsxs(fn,{align:"center",justify:s&&!t?"center":"flex-start",children:[e.jsx(sn,{checkedStates:C,loading:s,onChangeFilter:F,onTopicEdit:I,setCheckedStates:w,setShowMuteUnmute:()=>i({is_muted:!l.is_muted}),showMuted:l.is_muted}),n>o.length?e.jsxs(W,{className:"load-more",disabled:s,onClick:A,children:["Load more",s&&e.jsx(z,{color:x.lightGray,size:10})]}):null]})]}),j.length>0&&e.jsx(Ys,{multiTopics:j,onClose:R}),p&&e.jsx(Rs,{onClose:R,topic:p}),p&&e.jsx(Ss,{onClose:R,topic:p})]})},gn=c(g)` flex: 1; .title { @@ -820,7 +821,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i width: 100%; `,mn=c(g)` margin: 0 0 16px 36px; -`,bn=[{label:at,component:Os},{label:Wt,component:lo},{label:rt,component:Xs},{label:nt,component:un}],jn=t=>{const{children:s,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:s}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,s]=h.useState(0),[n]=qe(o=>[o.isAdmin]),[r]=$t(o=>[o.queuedSourcesFeatureFlag]),l=kt(),i=(o,d)=>{s(d)},a=bn.filter(({label:o})=>o===nt?n:o===rt?n&&r:o===at?l:!0);return e.jsxs(Sn,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((o,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:o.label,...yn(d)},o.label))}),a.map((o,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(o.component,{})},o.label))]})},Cn=c(Qt)` +`,bn=[{label:at,component:Fo},{label:Wt,component:cs},{label:rt,component:Ko},{label:nt,component:un}],jn=t=>{const{children:o,value:n,index:r,...l}=t;return n===r?e.jsx(Tn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...l,children:o}):null};function yn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const wn=()=>{const[t,o]=h.useState(0),[n]=qe(s=>[s.isAdmin]),[r]=St(s=>[s.queuedSourcesFeatureFlag]),l=kt(),i=(s,d)=>{o(d)},a=bn.filter(({label:s})=>s===nt?n:s===rt?n&&r:s===at?l:!0);return e.jsxs($n,{"data-testid":"sources-table",direction:"column",children:[e.jsx(Cn,{"aria-label":"sources tabs",onChange:i,value:t,children:a.map((s,d)=>e.jsx(vn,{color:x.white,disableRipple:!0,label:s.label,...yn(d)},s.label))}),a.map((s,d)=>e.jsx(jn,{index:d,value:t,children:e.jsx(s.component,{})},s.label))]})},Cn=c(Qt)` && { background: rgba(0, 0, 0, 0.2); border-radius: 9px 9px 0 0; @@ -867,7 +868,7 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i min-height: 250px; max-height: 250px; } -`,Sn=c(g)` +`,$n=c(g)` min-height: 0; flex: 1; overflow: hidden; @@ -875,4 +876,4 @@ import{r as h,c as q,d as X,s as O,b as L,u as K,_ as Z,j as e,f as J,h as ee,i @media (max-width: 768px) { padding: 3px; } -`,Pn=()=>{const{close:t}=M("sourcesTable"),{visible:s}=M("addContent");return s?null:e.jsx(de,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(wn,{})})};export{Pn as SourcesTableModal}; +`,Pn=()=>{const{close:t}=M("sourcesTable"),{visible:o}=M("addContent");return o?null:e.jsx(de,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(wn,{})})};export{Pn as SourcesTableModal}; diff --git a/build/assets/index-cfcff7e7.js b/build/assets/index-64813bbe.js similarity index 98% rename from build/assets/index-cfcff7e7.js rename to build/assets/index-64813bbe.js index 6252c345b..615f6b12d 100644 --- a/build/assets/index-cfcff7e7.js +++ b/build/assets/index-64813bbe.js @@ -1,4 +1,4 @@ -import{r as I,l as fe,g as de,t as N,v as S,j as E,F as L,T as pe}from"./index-c431d222.js";import{$ as he,bb as ge,ay as ve,bc as me}from"./index-092b06c7.js";import{e as be}from"./index.esm-2a70f836.js";var ee={exports:{}},te={exports:{}},xe=function(e,r,t,n,o,i,s,u){if(!e){var f;if(r===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[t,n,o,i,s,u],l=0;f=new Error(r.replace(/%s/g,function(){return p[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}},ke=xe;function ne(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var k=I,_=ne(k),Pe=fe,K=ne(ke);function B(){return(B=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&d=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&dS[e]}; background: transparent; diff --git a/build/assets/index-3f78c796.js b/build/assets/index-69075348.js similarity index 99% rename from build/assets/index-3f78c796.js rename to build/assets/index-69075348.js index 2a18f5dd3..fba46e474 100644 --- a/build/assets/index-3f78c796.js +++ b/build/assets/index-69075348.js @@ -1,4 +1,4 @@ -import{r as u,j as f,bq as kt,br as Rt,b as a,c as ye,d as $e,s as L,i as w,u as Pe,_ as ae,f as ne,h as Ie,e as Re,bs as Ot,bt as wt,bu as st,k as it,b0 as ct,n as Xe,bv as To,m as Lt,a4 as Mt,t as Ft,v as je,F as Tt}from"./index-c431d222.js";import{G as xo,b6 as At,y as lo,b4 as Uo,z as dt,W as Ho,aw as ut,aO as pt,b7 as Nt,J as Fo,t as zt,b8 as Dt,X as Vo,T as Et}from"./index-092b06c7.js";import{a as Ao,u as fo,b as so,f as io,i as ft,c as Bt,P as No,F as jt,S as Wt}from"./Stack-6ee91628.js";import{c as zo}from"./createSvgIcon-a54a204b.js";import{T as _t}from"./TextareaAutosize-85f04bbd.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function Lo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Zt(e){const{unstable_isActiveElementInListbox:o=Yt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Jt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:Z,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Y=u.useRef(null),be=u.useRef(null),[Me,J]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Je?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Y.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Y.current.value=_;else{const ge=ee(j[pe]);Y.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Y.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ye=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&Lo(S,x=>oe(n,x))!==-1)return;const g=Lo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{At(be,l),l&&Ye()});u.useEffect(()=>{Ye()},[Ye]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;Z&&Z(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Y.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Y.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Y.current.focus(),Le&&We.current&&Y.current.selectionEnd-Y.current.selectionStart===0&&Y.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:J,focusedTag:H,groupedOptions:ao}}function Qt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${w(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=L("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function an(e){return ye("MuiChip",e)}const ln=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${w(r)}`,`color${w(s)}`,i&&"clickable",i&&`clickableColor${w(s)}`,d&&"deletable",d&&`deletableColor${w(s)}`,`${b}${w(s)}`],label:["label",`label${w(r)}`],avatar:["avatar",`avatar${w(r)}`,`avatarColor${w(s)}`],icon:["icon",`icon${w(r)}`,`iconColor${w(c)}`],deleteIcon:["deleteIcon",`deleteIcon${w(r)}`,`deleteIconColor${w(s)}`,`deleteIcon${w(b)}Color${w(s)}`]};return Ie(p,an,o)},dn=L("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${w(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${w(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${w(i)}`]},{[`& .${V.icon}`]:o[`iconColor${w(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${w(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(b)}Color${w(r)}`]},o.root,o[`size${w(i)}`],o[`color${w(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${w(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${w(r)}`],o[b],o[`${b}${w(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),un=L("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${w(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",Z=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(Z),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let Q=null;R&&(Q=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:Z},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Z,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Ot,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${w(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${w(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${w($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=L("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=L("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:Z,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,hn),W=k.value!=null?k.value:Le,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Y=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),J=so(),H=io({props:s,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=J?J.focused:be,u.useEffect(()=>{!J&&$&&be&&(Me(!1),q&&q())},[J,$,be,q]);const ze=J&&J.onFilled,_e=J&&J.onEmpty,te=u.useCallback(z=>{ft(z)?ze&&ze():_e&&_e()},[ze,_e]);dt(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),J&&J.onFocus?J.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),J&&J.onBlur?J.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(st(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{J&&J.setAdornedStart(!!ie)},[J,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:J,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Je=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Je,a({},De,!Ho(Je)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:Z,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Y,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Qe=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),we=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=On;var Xo,Jo;const wn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Ln=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${w(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=L("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${w(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=L("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=L(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=L(ut,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dn=L(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=L(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=L("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=L("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=L("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${D.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${D.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${D.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${D.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${D.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_n=L(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=L("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:Z=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Y="Open",PaperComponent:be=pt,PopperComponent:Me=No,popupIcon:J=Jo||(Jo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,wn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Je,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ye,inputValue:Po,groupedOptions:Ne}=Zt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Z||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Ln),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return wo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ye,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Je(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Y,title:y?k:Y,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:J})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!Z&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Yo,Zo,Qo,et;const Ze=44,Gn=it(Yo||(Yo=So` +import{r as u,j as f,bq as kt,br as Rt,b as a,c as ye,d as $e,s as L,i as w,u as Pe,_ as ae,f as ne,h as Ie,e as Re,bs as Ot,bt as wt,bu as st,k as it,b0 as ct,n as Xe,bv as To,m as Lt,a4 as Mt,t as Ft,v as je,F as Tt}from"./index-b416b1a9.js";import{G as xo,b6 as At,y as lo,b4 as Uo,z as dt,W as Ho,aw as ut,aO as pt,b7 as Nt,J as Fo,t as zt,b8 as Dt,X as Vo,T as Et}from"./index-1f5ac1eb.js";import{a as Ao,u as fo,b as so,f as io,i as ft,c as Bt,P as No,F as jt,S as Wt}from"./Stack-34a19487.js";import{c as zo}from"./createSvgIcon-23cd916d.js";import{T as _t}from"./TextareaAutosize-2d5341b4.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function Lo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Zt(e){const{unstable_isActiveElementInListbox:o=Yt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Jt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:Z,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Y=u.useRef(null),be=u.useRef(null),[Me,J]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Je?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Y.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Y.current.value=_;else{const ge=ee(j[pe]);Y.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Y.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ye=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&Lo(S,x=>oe(n,x))!==-1)return;const g=Lo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{At(be,l),l&&Ye()});u.useEffect(()=>{Ye()},[Ye]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;Z&&Z(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Y.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Y.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Y.current.focus(),Le&&We.current&&Y.current.selectionEnd-Y.current.selectionStart===0&&Y.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:J,focusedTag:H,groupedOptions:ao}}function Qt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${w(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Qt,o)},tn=L("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${w(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function an(e){return ye("MuiChip",e)}const ln=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${w(r)}`,`color${w(s)}`,i&&"clickable",i&&`clickableColor${w(s)}`,d&&"deletable",d&&`deletableColor${w(s)}`,`${b}${w(s)}`],label:["label",`label${w(r)}`],avatar:["avatar",`avatar${w(r)}`,`avatarColor${w(s)}`],icon:["icon",`icon${w(r)}`,`iconColor${w(c)}`],deleteIcon:["deleteIcon",`deleteIcon${w(r)}`,`deleteIconColor${w(s)}`,`deleteIcon${w(b)}Color${w(s)}`]};return Ie(p,an,o)},dn=L("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${w(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${w(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${w(i)}`]},{[`& .${V.icon}`]:o[`iconColor${w(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${w(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${w(b)}Color${w(r)}`]},o.root,o[`size${w(i)}`],o[`color${w(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${w(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${w(r)}`],o[b],o[`${b}${w(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),un=L("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${w(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",Z=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(Z),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let Q=null;R&&(Q=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:Z},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Z,children:$}),Q]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Ot,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${w(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${w(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${w($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=L("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=L("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:Z,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,hn),W=k.value!=null?k.value:Le,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Y=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),J=so(),H=io({props:s,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=J?J.focused:be,u.useEffect(()=>{!J&&$&&be&&(Me(!1),q&&q())},[J,$,be,q]);const ze=J&&J.onFilled,_e=J&&J.onEmpty,te=u.useCallback(z=>{ft(z)?ze&&ze():_e&&_e()},[ze,_e]);dt(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),J&&J.onFocus?J.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),J&&J.onBlur?J.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(st(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{J&&J.setAdornedStart(!!ie)},[J,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:J,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Je=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Je,a({},De,!Ho(Je)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:Z,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Y,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Qe=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),we=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=On;var Xo,Jo;const wn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Ln=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${w(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=L("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${w(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=L("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=L(ut,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=L(ut,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dn=L(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=L(pt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=L("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=L("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=L("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${D.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${D.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${D.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${D.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${D.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_n=L(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=L("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:Z=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Y="Open",PaperComponent:be=pt,PopperComponent:Me=No,popupIcon:J=Jo||(Jo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,wn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Je,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ye,inputValue:Po,groupedOptions:Ne}=Zt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Z||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Ln),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return wo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ye,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Je(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Y,title:y?k:Y,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:J})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!Z&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Yo,Zo,Qo,et;const Ze=44,Gn=it(Yo||(Yo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-63ba7ef3.js b/build/assets/index-751d453d.js similarity index 94% rename from build/assets/index-63ba7ef3.js rename to build/assets/index-751d453d.js index b55836a76..170ccb566 100644 --- a/build/assets/index-63ba7ef3.js +++ b/build/assets/index-751d453d.js @@ -1,4 +1,4 @@ -import{t as v,v as q,T as z,F as n,r as m,j as e,aA as J,aO as $,N as K,aP as Q,az as O,a_ as X,b1 as Z}from"./index-c431d222.js";import{$ as U,B as P,e as V,u as D,a0 as N,a1 as ee}from"./index-092b06c7.js";import{B as te}from"./index-8f3abdbd.js";import{T as re}from"./index-cfcff7e7.js";import{p as G}from"./index-c0853f89.js";import{n as ne}from"./constants-b2a2fa82.js";import{C as W}from"./ClipLoader-b5124f12.js";import{A as Y}from"./index-3f78c796.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-2a70f836.js";import"./three.module-26d3b3c0.js";import"./Stack-6ee91628.js";import"./createSvgIcon-a54a204b.js";import"./TextareaAutosize-85f04bbd.js";const M=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:r})=>{const[f,b]=m.useState(!1),[h,C]=m.useState(),{watch:j,formState:{isValid:t}}=U();m.useEffect(()=>{(async()=>{b(!0);const o=await $(x),T=G(o),A=H(T);C(A),b(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(h?[...h].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(r).includes(c.key))),S=()=>{a(""),l("sourceType")},w=!t||f||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(se,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(W,{color:q.SECONDARY_BLUE})}):e.jsx(n,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(z,{children:s(c)}),e.jsx(re,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...J,pattern:{message:"No leading whitespace allowed",value:ne}}:{}}})]})}))})}),e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(P,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(P,{color:"secondary",disabled:w,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(z)` +import{t as v,v as q,T as z,F as n,r as m,j as e,aA as J,aO as $,N as K,aP as Q,az as O,a_ as X,b1 as Z}from"./index-b416b1a9.js";import{$ as U,B as P,e as V,u as D,a0 as N,a1 as ee}from"./index-1f5ac1eb.js";import{B as te}from"./index-8331965f.js";import{T as re}from"./index-64813bbe.js";import{p as G}from"./index-c0853f89.js";import{n as ne}from"./constants-b2a2fa82.js";import{C as W}from"./ClipLoader-a0a9ce2c.js";import{A as Y}from"./index-69075348.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-258646ab.js";import"./three.module-26d3b3c0.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const M=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:r})=>{const[f,b]=m.useState(!1),[h,C]=m.useState(),{watch:j,formState:{isValid:t}}=U();m.useEffect(()=>{(async()=>{b(!0);const o=await $(x),T=G(o),A=H(T);C(A),b(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(h?[...h].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(r).includes(c.key))),S=()=>{a(""),l("sourceType")},w=!t||f||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(se,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(W,{color:q.SECONDARY_BLUE})}):e.jsx(n,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(z,{children:s(c)}),e.jsx(re,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...J,pattern:{message:"No leading whitespace allowed",value:ne}}:{}}})]})}))})}),e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(P,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(P,{color:"secondary",disabled:w,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(z)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-aa160d63.js b/build/assets/index-77fe94be.js similarity index 91% rename from build/assets/index-aa160d63.js rename to build/assets/index-77fe94be.js index 182650915..0a1b8ca7d 100644 --- a/build/assets/index-aa160d63.js +++ b/build/assets/index-77fe94be.js @@ -1,4 +1,4 @@ -import{r,j as e,aV as O,H as k,F as h,aW as E,t as l,T as A,v as T,aX as F}from"./index-c431d222.js";import{B as z}from"./index-8f3abdbd.js";import{ai as N,aP as D,aQ as M,aR as P,u as I,a0 as X,e as Y,a1 as H,B as R}from"./index-092b06c7.js";import{A as L,T as G}from"./index-3f78c796.js";import{O as V}from"./constants-b2a2fa82.js";import{S as W,A as Q}from"./constants-ad9796f3.js";import{C as _}from"./ClipLoader-b5124f12.js";import"./Stack-6ee91628.js";import"./createSvgIcon-a54a204b.js";import"./TextareaAutosize-85f04bbd.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await O();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},q=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:Q,search:u,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 k.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(W,{onClick:()=>t(null),size:"medium",children:e.jsx(N,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||V,selectedValue:c?n(c):null})},J=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(q,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(D,{})}),e.jsx(ae,{onClick:x,children:e.jsx(M,{})}),e.jsx(ie,{children:e.jsx(P,{})})]})]})]})},K=l.div` +import{r,j as e,aV as O,H as k,F as h,aW as E,t as l,T as A,v as T,aX as F}from"./index-b416b1a9.js";import{B as z}from"./index-8331965f.js";import{ai as N,aP as D,aQ as M,aR as P,u as I,a0 as X,e as Y,a1 as H,B as R}from"./index-1f5ac1eb.js";import{A as L,T as G}from"./index-69075348.js";import{O as V}from"./constants-b2a2fa82.js";import{S as W,A as Q}from"./constants-6b0b8728.js";import{C as _}from"./ClipLoader-a0a9ce2c.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await O();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},q=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:Q,search:u,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 k.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(W,{onClick:()=>t(null),size:"medium",children:e.jsx(N,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||V,selectedValue:c?n(c):null})},J=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(q,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx(D,{})}),e.jsx(ae,{onClick:x,children:e.jsx(M,{})}),e.jsx(ie,{children:e.jsx(P,{})})]})]})]})},K=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-1a20710e.js b/build/assets/index-7e993c6c.js similarity index 99% rename from build/assets/index-1a20710e.js rename to build/assets/index-7e993c6c.js index 1cbe12da8..51a7ef4a6 100644 --- a/build/assets/index-1a20710e.js +++ b/build/assets/index-7e993c6c.js @@ -1,4 +1,4 @@ -import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y as Ji,J as Ad,A as Na,U as Xl,w as Zl,V as Md,C as Dd,R as Pd,X as Nd,H as Id,Y as Rd,O as Fd}from"./index-c431d222.js";import{u as Nt,a as be,m as ho,b as fo,e as Ia,L as Ld,c as Vd,d as Ud,f as zd,g as Ql,H as tr,t as Kl,T as jd,h as Bd,i as qd,C as Wd,P as Hd,j as Yd}from"./index-af08347c.js";import{P as ei,B as Jl,c as Nc,H as Gd,E as $d,_ as Bt,d as qe,e as We,f as oe,g as Ra,h as po,T as Ic,i as Xd,j as Zd,k as Qd,l as Kd,m as Jd,n as tf,D as ef,I as sf,o as nf,u as fr,p as rf,q as of,r as af,s as cf,N as lf,t as uf,O as hf,v as df}from"./index-092b06c7.js";import{T as ff}from"./TextareaAutosize-85f04bbd.js";import{D as pr,F as pf,V as at,L as mf,a as _f,M as gn,b as _t,S as gf,B as yf,c as tu,P as Ro,d as vf,e as Mr,f as qs,T as mo,g as ra,h as kf,i as Rc,j as er,Q as xf,G as Tf,C as _o,k as wf,l as eu,W as bf,m as Cf,n as Sf,E as Ef,o as Of,p as Af,q as go,r as Mf,s as Fc,t as Lc}from"./three.module-26d3b3c0.js";import{M as Df,a as Pf}from"./index.esm-2a70f836.js";import{u as Nf}from"./index-14733886.js";import{C as If}from"./ClipLoader-b5124f12.js";function Rf(i){let t;const e=new Set,s=(l,u)=>{const h=typeof l=="function"?l(t):l;if(h!==t){const d=t;t=u?h:Object.assign({},t,h),e.forEach(p=>p(t,d))}},n=()=>t,r=(l,u=n,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(t);function p(){const _=u(t);if(!h(d,_)){const f=d;l(d=_,f)}}return e.add(p),()=>e.delete(p)},c={setState:s,getState:n,subscribe:(l,u,h)=>u||h?r(l,u,h):(e.add(l),()=>e.delete(l)),destroy:()=>e.clear()};return t=i(s,n,c),c}const Ff=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Vc=Ff?A.useEffect:A.useLayoutEffect;function Lf(i){const t=typeof i=="function"?Rf(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=A.useReducer(m=>m+1,0),o=t.getState(),a=A.useRef(o),c=A.useRef(s),l=A.useRef(n),u=A.useRef(!1),h=A.useRef();h.current===void 0&&(h.current=s(o));let d,p=!1;(a.current!==o||c.current!==s||l.current!==n||u.current)&&(d=s(o),p=!n(h.current,d)),Vc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=A.useRef(o);Vc(()=>{const m=()=>{try{const b=t.getState(),w=c.current(b);l.current(h.current,w)||(a.current=b,h.current=w,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return A.useDebugValue(f),f};return Object.assign(e,t),e[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[e,t];return{next(){const n=s.length<=0;return{value:s.shift(),done:n}}}},e}let si=0;const Vf=Lf(i=>(pr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100})},pr.onLoad=()=>{i({active:!1})},pr.onError=t=>i(e=>({errors:[...e.errors,t]})),pr.onProgress=(t,e,s)=>{e===s&&(si=s),i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),Uf=i=>`Loading ${i.toFixed(2)}%`;function zf({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=Uf,initialState:r=o=>o}){const{active:o,progress:a}=Vf(),c=A.useRef(0),l=A.useRef(0),u=A.useRef(null),[h,d]=A.useState(r(o));A.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=A.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=n(c.current),c.current(p(),()=>cancelAnimationFrame(l.current)),[p]),h?A.createElement("div",{style:{...mr.container,opacity:o?1:0,...i}},A.createElement("div",null,A.createElement("div",{style:{...mr.inner,...t}},A.createElement("div",{style:{...mr.bar,transform:`scaleX(${a/100})`,...e}}),A.createElement("span",{ref:u,style:{...mr.data,...s}})))):null}const mr={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"}},Fo=new pf,Lo=new at,yn=new at,Re=new at,rs=new at,Ge=new at,os=new at,as=new at,ni=new at,ii=new at,ri=new at,_r=new at,oi=new at,ai=new at,ci=new at;class jf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new at,this.endPoint=new at,this.collection=[],this.deep=s||Number.MAX_VALUE}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Fo,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){yn.copy(t),yn.x=Math.min(t.x,e.x),yn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Re.setFromMatrixPosition(this.camera.matrixWorld),rs.copy(yn),Ge.set(e.x,yn.y,0),os.copy(e),as.set(yn.x,e.y,0),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),oi.copy(rs).sub(Re),ai.copy(Ge).sub(Re),ci.copy(os).sub(Re),oi.normalize(),ai.normalize(),ci.normalize(),oi.multiplyScalar(this.deep),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),oi.add(Re),ai.add(Re),ci.add(Re);var s=Fo.planes;s[0].setFromCoplanarPoints(Re,rs,Ge),s[1].setFromCoplanarPoints(Re,Ge,os),s[2].setFromCoplanarPoints(os,as,Re),s[3].setFromCoplanarPoints(as,rs,Re),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ci,ai,oi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),r=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);rs.set(n,r,-1),Ge.set(o,r,-1),os.set(o,a,-1),as.set(n,a,-1),ni.set(n,r,1),ii.set(o,r,1),ri.set(o,a,1),_r.set(n,a,1),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ni.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),_r.unproject(this.camera);var s=Fo.planes;s[0].setFromCoplanarPoints(rs,ni,ii),s[1].setFromCoplanarPoints(Ge,ii,ri),s[2].setFromCoplanarPoints(ri,_r,as),s[3].setFromCoplanarPoints(_r,ni,rs),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ri,ii,ni),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if((e.isMesh||e.isLine||e.isPoints)&&e.material!==void 0&&(e.geometry.boundingSphere===null&&e.geometry.computeBoundingSphere(),Lo.copy(e.geometry.boundingSphere.center),Lo.applyMatrix4(e.matrixWorld),t.containsPoint(Lo)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?X.copy(P[P.length-1]):X.identity())}function n(I){const F=new qs,S=new _t,D=new _t,H=new _t;let N=!0,V=!1;const st=I.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let nt=0,J=st.length;nt0&&(S.copy(H),F.currentPath.currentPoint.copy(S),N=!0);break;default:console.warn(pt)}V=!1}return F}function r(I){if(!(!I.sheet||!I.sheet.cssRules||!I.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Pc=Math.sqrt(Z);F=Pc*F,S=Pc*S,K=F*F,B=S*S}const tt=K*E+B*O,lt=(K*B-tt)/tt;let vt=Math.sqrt(Math.max(0,lt));H===N&&(vt=-vt);const Yt=vt*F*pt/S,Ie=-vt*S*J/F,ti=Math.cos(D)*Yt-Math.sin(D)*Ie+(V.x+it.x)/2,Io=Math.sin(D)*Yt+Math.cos(D)*Ie+(V.y+it.y)/2,dr=a(1,0,(J-Yt)/F,(pt-Ie)/S),Od=a((J-Yt)/F,(pt-Ie)/S,(-J-Yt)/F,(-pt-Ie)/S)%(Math.PI*2);I.currentPath.absellipse(ti,Io,F,S,dr,dr+Od,N===0,D)}function a(I,F,S,D){const H=I*S+F*D,N=Math.sqrt(I*I+F*F)*Math.sqrt(S*S+D*D);let V=Math.acos(Math.max(-1,Math.min(1,H/N)));return I*D-F*S<0&&(V=-V),V}function c(I){const F=w(I.getAttribute("x")||0),S=w(I.getAttribute("y")||0),D=w(I.getAttribute("rx")||I.getAttribute("ry")||0),H=w(I.getAttribute("ry")||I.getAttribute("rx")||0),N=w(I.getAttribute("width")),V=w(I.getAttribute("height")),it=1-.551915024494,st=new qs;return st.moveTo(F+D,S),st.lineTo(F+N-D,S),(D!==0||H!==0)&&st.bezierCurveTo(F+N-D*it,S,F+N,S+H*it,F+N,S+H),st.lineTo(F+N,S+V-H),(D!==0||H!==0)&&st.bezierCurveTo(F+N,S+V-H*it,F+N-D*it,S+V,F+N-D,S+V),st.lineTo(F+D,S+V),(D!==0||H!==0)&&st.bezierCurveTo(F+D*it,S+V,F,S+V-H*it,F,S+V-H),st.lineTo(F,S+H),(D!==0||H!==0)&&st.bezierCurveTo(F,S+H*it,F+D*it,S,F+D,S),st}function l(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!0,D}function u(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!1,D}function h(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("r")||0),H=new Ro;H.absarc(F,S,D,0,Math.PI*2);const N=new qs;return N.subPaths.push(H),N}function d(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("rx")||0),H=w(I.getAttribute("ry")||0),N=new Ro;N.absellipse(F,S,D,H,0,Math.PI*2);const V=new qs;return V.subPaths.push(N),V}function p(I){const F=w(I.getAttribute("x1")||0),S=w(I.getAttribute("y1")||0),D=w(I.getAttribute("x2")||0),H=w(I.getAttribute("y2")||0),N=new qs;return N.moveTo(F,S),N.lineTo(D,H),N.currentPath.autoClose=!1,N}function _(I,F){F=Object.assign({},F);let S={};if(I.hasAttribute("class")){const V=I.getAttribute("class").split(/\s/).filter(Boolean).map(it=>it.trim());for(let it=0;it0&&F.premultiply(P[P.length-1]),X.copy(F),P.push(F),F}function y(I){const F=new gn,S=U;if(I.nodeName==="use"&&(I.hasAttribute("x")||I.hasAttribute("y"))){const D=w(I.getAttribute("x")),H=w(I.getAttribute("y"));F.translate(D,H)}if(I.hasAttribute("transform")){const D=I.getAttribute("transform").split(")");for(let H=D.length-1;H>=0;H--){const N=D[H].trim();if(N==="")continue;const V=N.indexOf("("),it=N.length;if(V>0&&V=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.translate(J,pt)}break;case"rotate":if(nt.length>=1){let J=0,pt=0,K=0;J=-nt[0]*Math.PI/180,nt.length>=3&&(pt=nt[1],K=nt[2]),W.identity().translate(-pt,-K),G.identity().rotate(J),Y.multiplyMatrices(G,W),W.identity().translate(pt,K),S.multiplyMatrices(W,Y)}break;case"scale":if(nt.length>=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.scale(J,pt)}break;case"skewX":nt.length===1&&S.set(1,Math.tan(nt[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":nt.length===1&&S.set(1,0,0,Math.tan(nt[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":nt.length===6&&S.set(nt[0],nt[2],nt[4],nt[1],nt[3],nt[5],0,0,1);break}}F.premultiply(S)}}return F}function x(I,F){function S(N){z.set(N.x,N.y,1).applyMatrix3(F),N.set(z.x,z.y)}const D=T(F),H=I.subPaths;for(let N=0,V=H.length;N=1||Y<0||Y>1)return null;if(P===0&&W===0){for(let j=0;j<2;j++)if(o(j===0?b:w,m,v),n.loc==s.ORIGIN){const z=j===0?b:w;return{x:z.x,y:z.y,t:n.t}}else if(n.loc==s.BETWEEN){const z=+(g+n.t*(y-g)).toPrecision(10),X=+(k+n.t*(C-k)).toPrecision(10);return{x:z,y:X,t:n.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?b:w,m,v),n.loc==s.ORIGIN){const Q=X===0?b:w;return{x:Q.x,y:Q.y,t:n.t}}const j=+(g+G*(y-g)).toPrecision(10),z=+(k+G*(C-k)).toPrecision(10);return{x:j,y:z,t:G}}}function o(m,v,b){const w=b.x-v.x,g=b.y-v.y,y=m.x-v.x,x=m.y-v.y,T=w*x-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===b.x&&m.y===b.y){n.loc=s.DESTINATION,n.t=1;return}if(T<-Number.EPSILON){n.loc=s.LEFT;return}if(T>Number.EPSILON){n.loc=s.RIGHT;return}if(w*y<0||g*x<0){n.loc=s.BEHIND;return}if(Math.sqrt(w*w+g*g)R.t<=M.t+Number.EPSILON&&R.t>=M.t-Number.EPSILON)===void 0&&(b.push(M),w.push(new _t(M.x,M.y)))}}return w}function c(m,v,b){const w=new _t;v.getCenter(w);const g=[];return b.forEach(y=>{y.boundingBox.containsPoint(w)&&a(m,y.points).forEach(T=>{g.push({identifier:y.identifier,isCW:y.isCW,point:T})})}),g.sort((y,x)=>y.point.x-x.point.x),g}function l(m,v,b,w,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const x=[new _t(b,y.y),new _t(w,y.y)],T=c(x,m.boundingBox,v);T.sort((U,W)=>U.point.x-W.point.x);const k=[],C=[];T.forEach(U=>{U.identifier===m.identifier?k.push(U):C.push(U)});const M=k[0].point.x,R=[];let P=0;for(;P0&&R[R.length-1]===C[P].identifier?R.pop():R.push(C[P].identifier),P++;if(R.push(m.identifier),g==="evenodd"){const U=R.length%2===0,W=R[R.length-2];return{identifier:m.identifier,isHole:U,for:W}}else if(g==="nonzero"){let U=!0,W=null,G=null;for(let Y=0;Y{const v=m.getPoints();let b=-999999999,w=999999999,g=-999999999,y=999999999;for(let x=0;xb&&(b=T.y),T.yg&&(g=T.x),T.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:gf.isClockWise(v),identifier:u++,boundingBox:new yf(new _t(y,w),new _t(g,b))}});p=p.filter(m=>m.points.length>1);const _=p.map(m=>l(m,p,h,d,t.userData.style.fillRule)),f=[];return p.forEach(m=>{if(!_[m.identifier].isHole){const b=new tu;b.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],x=new Ro;x.curves=y.curves,b.holes.push(x)}),f.push(b)}}),f}static getStrokeStyle(t,e,s,n,r){return t=t!==void 0?t:1,e=e!==void 0?e:"#000",s=s!==void 0?s:"miter",n=n!==void 0?n:"butt",r=r!==void 0?r:4,{strokeColor:e,strokeWidth:t,strokeLineJoin:s,strokeLineCap:n,strokeMiterLimit:r}}static pointsToStroke(t,e,s,n){const r=[],o=[],a=[];if(xi.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new vf;return c.setAttribute("position",new Mr(r,3)),c.setAttribute("normal",new Mr(o,3)),c.setAttribute("uv",new Mr(a,2)),c}static pointsToStrokeWithBuffers(t,e,s,n,r,o,a,c){const l=new _t,u=new _t,h=new _t,d=new _t,p=new _t,_=new _t,f=new _t,m=new _t,v=new _t,b=new _t,w=new _t,g=new _t,y=new _t,x=new _t,T=new _t,k=new _t,C=new _t;s=s!==void 0?s:12,n=n!==void 0?n:.001,c=c!==void 0?c:0,t=pt(t);const M=t.length;if(M<2)return 0;const R=t[0].equals(t[M-1]);let P,U=t[0],W;const G=e.strokeWidth/2,Y=1/(M-1);let j=0,z,X,Q,et,I=!1,F=0,S=c*3,D=c*2;H(t[0],t[1],l).multiplyScalar(G),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),b.copy(m),w.copy(v);for(let K=1;K=n&&O.push(K[E]);return O.push(K[K.length-1]),O}}}function Bf(i,t){if(Object.is(i,t))return!0;if(typeof i!="object"||i===null||typeof t!="object"||t===null)return!1;const e=Object.keys(i);if(e.length!==Object.keys(t).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:p,get:_}=Nt(),[f,m]=A.useState(!1),[v,b]=A.useReducer((x,{object:T,shift:k})=>T===void 0?[]:Array.isArray(T)?T:k?x.includes(T)?x.filter(C=>C!==T):[T,...x]:x[0]===T?[]:[T],[]);A.useEffect(()=>void(s==null?void 0:s(v)),[v]);const w=A.useCallback(x=>{x.stopPropagation(),b({object:o([x.object])[0],shift:t&&x.shiftKey})},[]),g=A.useCallback(x=>!f&&b({}),[f]),y=A.useRef(null);return A.useEffect(()=>{if(!i||!t)return;const x=new jf(l,y.current),T=document.createElement("div");T.style.pointerEvents="none",T.style.border=n,T.style.backgroundColor=r,T.style.position="fixed";const k=new _t,C=new _t,M=new _t,R=_().events.enabled,P=d==null?void 0:d.enabled;let U=!1;function W(I,F){const{offsetX:S,offsetY:D}=I,{width:H,height:N}=p;F.set(S/H*2-1,-(D/N)*2+1)}function G(I){var F;d&&(d.enabled=!1),c({enabled:!1}),U=!0,(F=h.domElement.parentElement)==null||F.appendChild(T),T.style.left=`${I.clientX}px`,T.style.top=`${I.clientY}px`,T.style.width="0px",T.style.height="0px",k.x=I.clientX,k.y=I.clientY}function Y(I){M.x=Math.max(k.x,I.clientX),M.y=Math.max(k.y,I.clientY),C.x=Math.min(k.x,I.clientX),C.y=Math.min(k.y,I.clientY),T.style.left=`${C.x}px`,T.style.top=`${C.y}px`,T.style.width=`${M.x-C.x}px`,T.style.height=`${M.y-C.y}px`}function j(){if(U){var I;d&&(d.enabled=P),c({enabled:R}),U=!1,(I=T.parentElement)==null||I.removeChild(T)}}function z(I){I.shiftKey&&(G(I),W(I,x.startPoint))}let X=[];function Q(I){if(U){Y(I),W(I,x.endPoint);const F=x.select().sort(S=>S.uuid).filter(S=>S.isMesh);Bf(F,X)||(X=F,b({object:o(F)}))}}function et(I){U&&j()}return document.addEventListener("pointerdown",z,{passive:!0}),document.addEventListener("pointermove",Q,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),A.createElement("group",Oe({ref:y,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),A.createElement(qf.Provider,{value:v},e))}const su=A.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=A.useRef();return be(({camera:c})=>{if(!t||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),e&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),n&&(a.current.rotation.z=l.z)}),A.createElement("group",Oe({ref:ho([a,o])},r))}),Uc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Ks(i,t){const e=Nt(n=>n.gl),s=fo(mo,Uc(i)?Object.values(i):i);if(A.useLayoutEffect(()=>{t==null||t(s)},[t]),A.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(e.initTexture)},[e,s]),Uc(i)){const n=Object.keys(i),r={};return n.forEach(o=>Object.assign(r,{[o]:s[n.indexOf(o)]})),r}else return s}Ks.preload=i=>fo.preload(mo,i);Ks.clear=i=>fo.clear(mo,i);const Hf=A.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=fo(xi,t.startsWith("s?[]:u.paths.map(d=>{var p;return((p=d.userData)==null?void 0:p.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(_=>xi.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return A.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),A.createElement("object3D",Oe({ref:l},c),A.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return A.createElement(A.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&xi.createShapes(d).map((m,v)=>A.createElement("mesh",Oe({key:v},o),A.createElement("shapeGeometry",{args:[m]}),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:ra,depthWrite:!1},n)))),!s&&((f=d.userData)==null?void 0:f.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((m,v)=>A.createElement("mesh",Oe({key:v,geometry:h[p][v]},a),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:ra,depthWrite:!1},r)))))})))});/*! +import{r as A,b as Oe,j as L,p as Gl,t as qt,v as Tt,F as ys,q as Us,z as $l,y as Ji,J as Ad,A as Na,U as Xl,w as Zl,V as Md,C as Dd,R as Pd,X as Nd,H as Id,Y as Rd,O as Fd}from"./index-b416b1a9.js";import{u as Nt,a as be,m as ho,b as fo,e as Ia,L as Ld,c as Vd,d as Ud,f as zd,g as Ql,H as tr,t as Kl,T as jd,h as Bd,i as qd,C as Wd,P as Hd,j as Yd}from"./index-39784bea.js";import{P as ei,B as Jl,c as Nc,H as Gd,E as $d,_ as Bt,d as qe,e as We,f as oe,g as Ra,h as po,T as Ic,i as Xd,j as Zd,k as Qd,l as Kd,m as Jd,n as tf,D as ef,I as sf,o as nf,u as fr,p as rf,q as of,r as af,s as cf,N as lf,t as uf,O as hf,v as df}from"./index-1f5ac1eb.js";import{T as ff}from"./TextareaAutosize-2d5341b4.js";import{D as pr,F as pf,V as at,L as mf,a as _f,M as gn,b as _t,S as gf,B as yf,c as tu,P as Ro,d as vf,e as Mr,f as qs,T as mo,g as ra,h as kf,i as Rc,j as er,Q as xf,G as Tf,C as _o,k as wf,l as eu,W as bf,m as Cf,n as Sf,E as Ef,o as Of,p as Af,q as go,r as Mf,s as Fc,t as Lc}from"./three.module-26d3b3c0.js";import{M as Df,a as Pf}from"./index.esm-258646ab.js";import{u as Nf}from"./index-8344fca4.js";import{C as If}from"./ClipLoader-a0a9ce2c.js";function Rf(i){let t;const e=new Set,s=(l,u)=>{const h=typeof l=="function"?l(t):l;if(h!==t){const d=t;t=u?h:Object.assign({},t,h),e.forEach(p=>p(t,d))}},n=()=>t,r=(l,u=n,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(t);function p(){const _=u(t);if(!h(d,_)){const f=d;l(d=_,f)}}return e.add(p),()=>e.delete(p)},c={setState:s,getState:n,subscribe:(l,u,h)=>u||h?r(l,u,h):(e.add(l),()=>e.delete(l)),destroy:()=>e.clear()};return t=i(s,n,c),c}const Ff=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Vc=Ff?A.useEffect:A.useLayoutEffect;function Lf(i){const t=typeof i=="function"?Rf(i):i,e=(s=t.getState,n=Object.is)=>{const[,r]=A.useReducer(m=>m+1,0),o=t.getState(),a=A.useRef(o),c=A.useRef(s),l=A.useRef(n),u=A.useRef(!1),h=A.useRef();h.current===void 0&&(h.current=s(o));let d,p=!1;(a.current!==o||c.current!==s||l.current!==n||u.current)&&(d=s(o),p=!n(h.current,d)),Vc(()=>{p&&(h.current=d),a.current=o,c.current=s,l.current=n,u.current=!1});const _=A.useRef(o);Vc(()=>{const m=()=>{try{const b=t.getState(),w=c.current(b);l.current(h.current,w)||(a.current=b,h.current=w,r())}catch{u.current=!0,r()}},v=t.subscribe(m);return t.getState()!==_.current&&m(),v},[]);const f=p?d:h.current;return A.useDebugValue(f),f};return Object.assign(e,t),e[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[e,t];return{next(){const n=s.length<=0;return{value:s.shift(),done:n}}}},e}let si=0;const Vf=Lf(i=>(pr.onStart=(t,e,s)=>{i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100})},pr.onLoad=()=>{i({active:!1})},pr.onError=t=>i(e=>({errors:[...e.errors,t]})),pr.onProgress=(t,e,s)=>{e===s&&(si=s),i({active:!0,item:t,loaded:e,total:s,progress:(e-si)/(s-si)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),Uf=i=>`Loading ${i.toFixed(2)}%`;function zf({containerStyles:i,innerStyles:t,barStyles:e,dataStyles:s,dataInterpolation:n=Uf,initialState:r=o=>o}){const{active:o,progress:a}=Vf(),c=A.useRef(0),l=A.useRef(0),u=A.useRef(null),[h,d]=A.useState(r(o));A.useEffect(()=>{let _;return o!==h&&(_=setTimeout(()=>d(o),300)),()=>clearTimeout(_)},[h,o]);const p=A.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=n(c.current),c.current(p(),()=>cancelAnimationFrame(l.current)),[p]),h?A.createElement("div",{style:{...mr.container,opacity:o?1:0,...i}},A.createElement("div",null,A.createElement("div",{style:{...mr.inner,...t}},A.createElement("div",{style:{...mr.bar,transform:`scaleX(${a/100})`,...e}}),A.createElement("span",{ref:u,style:{...mr.data,...s}})))):null}const mr={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"}},Fo=new pf,Lo=new at,yn=new at,Re=new at,rs=new at,Ge=new at,os=new at,as=new at,ni=new at,ii=new at,ri=new at,_r=new at,oi=new at,ai=new at,ci=new at;class jf{constructor(t,e,s){this.camera=t,this.scene=e,this.startPoint=new at,this.endPoint=new at,this.collection=[],this.deep=s||Number.MAX_VALUE}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Fo,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){yn.copy(t),yn.x=Math.min(t.x,e.x),yn.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),Re.setFromMatrixPosition(this.camera.matrixWorld),rs.copy(yn),Ge.set(e.x,yn.y,0),os.copy(e),as.set(yn.x,e.y,0),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),oi.copy(rs).sub(Re),ai.copy(Ge).sub(Re),ci.copy(os).sub(Re),oi.normalize(),ai.normalize(),ci.normalize(),oi.multiplyScalar(this.deep),ai.multiplyScalar(this.deep),ci.multiplyScalar(this.deep),oi.add(Re),ai.add(Re),ci.add(Re);var s=Fo.planes;s[0].setFromCoplanarPoints(Re,rs,Ge),s[1].setFromCoplanarPoints(Re,Ge,os),s[2].setFromCoplanarPoints(os,as,Re),s[3].setFromCoplanarPoints(as,rs,Re),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ci,ai,oi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),r=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);rs.set(n,r,-1),Ge.set(o,r,-1),os.set(o,a,-1),as.set(n,a,-1),ni.set(n,r,1),ii.set(o,r,1),ri.set(o,a,1),_r.set(n,a,1),rs.unproject(this.camera),Ge.unproject(this.camera),os.unproject(this.camera),as.unproject(this.camera),ni.unproject(this.camera),ii.unproject(this.camera),ri.unproject(this.camera),_r.unproject(this.camera);var s=Fo.planes;s[0].setFromCoplanarPoints(rs,ni,ii),s[1].setFromCoplanarPoints(Ge,ii,ri),s[2].setFromCoplanarPoints(ri,_r,as),s[3].setFromCoplanarPoints(_r,ni,rs),s[4].setFromCoplanarPoints(Ge,os,as),s[5].setFromCoplanarPoints(ri,ii,ni),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if((e.isMesh||e.isLine||e.isPoints)&&e.material!==void 0&&(e.geometry.boundingSphere===null&&e.geometry.computeBoundingSphere(),Lo.copy(e.geometry.boundingSphere.center),Lo.applyMatrix4(e.matrixWorld),t.containsPoint(Lo)&&this.collection.push(e)),e.children.length>0)for(let s=0;s0?X.copy(P[P.length-1]):X.identity())}function n(I){const F=new qs,S=new _t,D=new _t,H=new _t;let N=!0,V=!1;const st=I.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let nt=0,J=st.length;nt0&&(S.copy(H),F.currentPath.currentPoint.copy(S),N=!0);break;default:console.warn(pt)}V=!1}return F}function r(I){if(!(!I.sheet||!I.sheet.cssRules||!I.sheet.cssRules.length))for(let F=0;FH.trim());for(let H=0;H1){const Pc=Math.sqrt(Z);F=Pc*F,S=Pc*S,K=F*F,B=S*S}const tt=K*E+B*O,lt=(K*B-tt)/tt;let vt=Math.sqrt(Math.max(0,lt));H===N&&(vt=-vt);const Yt=vt*F*pt/S,Ie=-vt*S*J/F,ti=Math.cos(D)*Yt-Math.sin(D)*Ie+(V.x+it.x)/2,Io=Math.sin(D)*Yt+Math.cos(D)*Ie+(V.y+it.y)/2,dr=a(1,0,(J-Yt)/F,(pt-Ie)/S),Od=a((J-Yt)/F,(pt-Ie)/S,(-J-Yt)/F,(-pt-Ie)/S)%(Math.PI*2);I.currentPath.absellipse(ti,Io,F,S,dr,dr+Od,N===0,D)}function a(I,F,S,D){const H=I*S+F*D,N=Math.sqrt(I*I+F*F)*Math.sqrt(S*S+D*D);let V=Math.acos(Math.max(-1,Math.min(1,H/N)));return I*D-F*S<0&&(V=-V),V}function c(I){const F=w(I.getAttribute("x")||0),S=w(I.getAttribute("y")||0),D=w(I.getAttribute("rx")||I.getAttribute("ry")||0),H=w(I.getAttribute("ry")||I.getAttribute("rx")||0),N=w(I.getAttribute("width")),V=w(I.getAttribute("height")),it=1-.551915024494,st=new qs;return st.moveTo(F+D,S),st.lineTo(F+N-D,S),(D!==0||H!==0)&&st.bezierCurveTo(F+N-D*it,S,F+N,S+H*it,F+N,S+H),st.lineTo(F+N,S+V-H),(D!==0||H!==0)&&st.bezierCurveTo(F+N,S+V-H*it,F+N-D*it,S+V,F+N-D,S+V),st.lineTo(F+D,S+V),(D!==0||H!==0)&&st.bezierCurveTo(F+D*it,S+V,F,S+V-H*it,F,S+V-H),st.lineTo(F,S+H),(D!==0||H!==0)&&st.bezierCurveTo(F,S+H*it,F+D*it,S,F+D,S),st}function l(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!0,D}function u(I){function F(N,V,it){const st=w(V),nt=w(it);H===0?D.moveTo(st,nt):D.lineTo(st,nt),H++}const S=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,D=new qs;let H=0;return I.getAttribute("points").replace(S,F),D.currentPath.autoClose=!1,D}function h(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("r")||0),H=new Ro;H.absarc(F,S,D,0,Math.PI*2);const N=new qs;return N.subPaths.push(H),N}function d(I){const F=w(I.getAttribute("cx")||0),S=w(I.getAttribute("cy")||0),D=w(I.getAttribute("rx")||0),H=w(I.getAttribute("ry")||0),N=new Ro;N.absellipse(F,S,D,H,0,Math.PI*2);const V=new qs;return V.subPaths.push(N),V}function p(I){const F=w(I.getAttribute("x1")||0),S=w(I.getAttribute("y1")||0),D=w(I.getAttribute("x2")||0),H=w(I.getAttribute("y2")||0),N=new qs;return N.moveTo(F,S),N.lineTo(D,H),N.currentPath.autoClose=!1,N}function _(I,F){F=Object.assign({},F);let S={};if(I.hasAttribute("class")){const V=I.getAttribute("class").split(/\s/).filter(Boolean).map(it=>it.trim());for(let it=0;it0&&F.premultiply(P[P.length-1]),X.copy(F),P.push(F),F}function y(I){const F=new gn,S=U;if(I.nodeName==="use"&&(I.hasAttribute("x")||I.hasAttribute("y"))){const D=w(I.getAttribute("x")),H=w(I.getAttribute("y"));F.translate(D,H)}if(I.hasAttribute("transform")){const D=I.getAttribute("transform").split(")");for(let H=D.length-1;H>=0;H--){const N=D[H].trim();if(N==="")continue;const V=N.indexOf("("),it=N.length;if(V>0&&V=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.translate(J,pt)}break;case"rotate":if(nt.length>=1){let J=0,pt=0,K=0;J=-nt[0]*Math.PI/180,nt.length>=3&&(pt=nt[1],K=nt[2]),W.identity().translate(-pt,-K),G.identity().rotate(J),Y.multiplyMatrices(G,W),W.identity().translate(pt,K),S.multiplyMatrices(W,Y)}break;case"scale":if(nt.length>=1){const J=nt[0];let pt=J;nt.length>=2&&(pt=nt[1]),S.scale(J,pt)}break;case"skewX":nt.length===1&&S.set(1,Math.tan(nt[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":nt.length===1&&S.set(1,0,0,Math.tan(nt[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":nt.length===6&&S.set(nt[0],nt[2],nt[4],nt[1],nt[3],nt[5],0,0,1);break}}F.premultiply(S)}}return F}function x(I,F){function S(N){z.set(N.x,N.y,1).applyMatrix3(F),N.set(z.x,z.y)}const D=T(F),H=I.subPaths;for(let N=0,V=H.length;N=1||Y<0||Y>1)return null;if(P===0&&W===0){for(let j=0;j<2;j++)if(o(j===0?b:w,m,v),n.loc==s.ORIGIN){const z=j===0?b:w;return{x:z.x,y:z.y,t:n.t}}else if(n.loc==s.BETWEEN){const z=+(g+n.t*(y-g)).toPrecision(10),X=+(k+n.t*(C-k)).toPrecision(10);return{x:z,y:X,t:n.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?b:w,m,v),n.loc==s.ORIGIN){const Q=X===0?b:w;return{x:Q.x,y:Q.y,t:n.t}}const j=+(g+G*(y-g)).toPrecision(10),z=+(k+G*(C-k)).toPrecision(10);return{x:j,y:z,t:G}}}function o(m,v,b){const w=b.x-v.x,g=b.y-v.y,y=m.x-v.x,x=m.y-v.y,T=w*x-y*g;if(m.x===v.x&&m.y===v.y){n.loc=s.ORIGIN,n.t=0;return}if(m.x===b.x&&m.y===b.y){n.loc=s.DESTINATION,n.t=1;return}if(T<-Number.EPSILON){n.loc=s.LEFT;return}if(T>Number.EPSILON){n.loc=s.RIGHT;return}if(w*y<0||g*x<0){n.loc=s.BEHIND;return}if(Math.sqrt(w*w+g*g)R.t<=M.t+Number.EPSILON&&R.t>=M.t-Number.EPSILON)===void 0&&(b.push(M),w.push(new _t(M.x,M.y)))}}return w}function c(m,v,b){const w=new _t;v.getCenter(w);const g=[];return b.forEach(y=>{y.boundingBox.containsPoint(w)&&a(m,y.points).forEach(T=>{g.push({identifier:y.identifier,isCW:y.isCW,point:T})})}),g.sort((y,x)=>y.point.x-x.point.x),g}function l(m,v,b,w,g){(g==null||g==="")&&(g="nonzero");const y=new _t;m.boundingBox.getCenter(y);const x=[new _t(b,y.y),new _t(w,y.y)],T=c(x,m.boundingBox,v);T.sort((U,W)=>U.point.x-W.point.x);const k=[],C=[];T.forEach(U=>{U.identifier===m.identifier?k.push(U):C.push(U)});const M=k[0].point.x,R=[];let P=0;for(;P0&&R[R.length-1]===C[P].identifier?R.pop():R.push(C[P].identifier),P++;if(R.push(m.identifier),g==="evenodd"){const U=R.length%2===0,W=R[R.length-2];return{identifier:m.identifier,isHole:U,for:W}}else if(g==="nonzero"){let U=!0,W=null,G=null;for(let Y=0;Y{const v=m.getPoints();let b=-999999999,w=999999999,g=-999999999,y=999999999;for(let x=0;xb&&(b=T.y),T.yg&&(g=T.x),T.x=y&&(h=y-1),{curves:m.curves,points:v,isCW:gf.isClockWise(v),identifier:u++,boundingBox:new yf(new _t(y,w),new _t(g,b))}});p=p.filter(m=>m.points.length>1);const _=p.map(m=>l(m,p,h,d,t.userData.style.fillRule)),f=[];return p.forEach(m=>{if(!_[m.identifier].isHole){const b=new tu;b.curves=m.curves,_.filter(g=>g.isHole&&g.for===m.identifier).forEach(g=>{const y=p[g.identifier],x=new Ro;x.curves=y.curves,b.holes.push(x)}),f.push(b)}}),f}static getStrokeStyle(t,e,s,n,r){return t=t!==void 0?t:1,e=e!==void 0?e:"#000",s=s!==void 0?s:"miter",n=n!==void 0?n:"butt",r=r!==void 0?r:4,{strokeColor:e,strokeWidth:t,strokeLineJoin:s,strokeLineCap:n,strokeMiterLimit:r}}static pointsToStroke(t,e,s,n){const r=[],o=[],a=[];if(xi.pointsToStrokeWithBuffers(t,e,s,n,r,o,a)===0)return null;const c=new vf;return c.setAttribute("position",new Mr(r,3)),c.setAttribute("normal",new Mr(o,3)),c.setAttribute("uv",new Mr(a,2)),c}static pointsToStrokeWithBuffers(t,e,s,n,r,o,a,c){const l=new _t,u=new _t,h=new _t,d=new _t,p=new _t,_=new _t,f=new _t,m=new _t,v=new _t,b=new _t,w=new _t,g=new _t,y=new _t,x=new _t,T=new _t,k=new _t,C=new _t;s=s!==void 0?s:12,n=n!==void 0?n:.001,c=c!==void 0?c:0,t=pt(t);const M=t.length;if(M<2)return 0;const R=t[0].equals(t[M-1]);let P,U=t[0],W;const G=e.strokeWidth/2,Y=1/(M-1);let j=0,z,X,Q,et,I=!1,F=0,S=c*3,D=c*2;H(t[0],t[1],l).multiplyScalar(G),m.copy(t[0]).sub(l),v.copy(t[0]).add(l),b.copy(m),w.copy(v);for(let K=1;K=n&&O.push(K[E]);return O.push(K[K.length-1]),O}}}function Bf(i,t){if(Object.is(i,t))return!0;if(typeof i!="object"||i===null||typeof t!="object"||t===null)return!1;const e=Object.keys(i);if(e.length!==Object.keys(t).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:p,get:_}=Nt(),[f,m]=A.useState(!1),[v,b]=A.useReducer((x,{object:T,shift:k})=>T===void 0?[]:Array.isArray(T)?T:k?x.includes(T)?x.filter(C=>C!==T):[T,...x]:x[0]===T?[]:[T],[]);A.useEffect(()=>void(s==null?void 0:s(v)),[v]);const w=A.useCallback(x=>{x.stopPropagation(),b({object:o([x.object])[0],shift:t&&x.shiftKey})},[]),g=A.useCallback(x=>!f&&b({}),[f]),y=A.useRef(null);return A.useEffect(()=>{if(!i||!t)return;const x=new jf(l,y.current),T=document.createElement("div");T.style.pointerEvents="none",T.style.border=n,T.style.backgroundColor=r,T.style.position="fixed";const k=new _t,C=new _t,M=new _t,R=_().events.enabled,P=d==null?void 0:d.enabled;let U=!1;function W(I,F){const{offsetX:S,offsetY:D}=I,{width:H,height:N}=p;F.set(S/H*2-1,-(D/N)*2+1)}function G(I){var F;d&&(d.enabled=!1),c({enabled:!1}),U=!0,(F=h.domElement.parentElement)==null||F.appendChild(T),T.style.left=`${I.clientX}px`,T.style.top=`${I.clientY}px`,T.style.width="0px",T.style.height="0px",k.x=I.clientX,k.y=I.clientY}function Y(I){M.x=Math.max(k.x,I.clientX),M.y=Math.max(k.y,I.clientY),C.x=Math.min(k.x,I.clientX),C.y=Math.min(k.y,I.clientY),T.style.left=`${C.x}px`,T.style.top=`${C.y}px`,T.style.width=`${M.x-C.x}px`,T.style.height=`${M.y-C.y}px`}function j(){if(U){var I;d&&(d.enabled=P),c({enabled:R}),U=!1,(I=T.parentElement)==null||I.removeChild(T)}}function z(I){I.shiftKey&&(G(I),W(I,x.startPoint))}let X=[];function Q(I){if(U){Y(I),W(I,x.endPoint);const F=x.select().sort(S=>S.uuid).filter(S=>S.isMesh);Bf(F,X)||(X=F,b({object:o(F)}))}}function et(I){U&&j()}return document.addEventListener("pointerdown",z,{passive:!0}),document.addEventListener("pointermove",Q,{passive:!0,capture:!0}),document.addEventListener("pointerup",et,{passive:!0}),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",et)}},[p.width,p.height,u,l,d,h]),A.createElement("group",Oe({ref:y,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:g},a),A.createElement(qf.Provider,{value:v},e))}const su=A.forwardRef(function({follow:t=!0,lockX:e=!1,lockY:s=!1,lockZ:n=!1,...r},o){const a=A.useRef();return be(({camera:c})=>{if(!t||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),e&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),n&&(a.current.rotation.z=l.z)}),A.createElement("group",Oe({ref:ho([a,o])},r))}),Uc=i=>i===Object(i)&&!Array.isArray(i)&&typeof i!="function";function Ks(i,t){const e=Nt(n=>n.gl),s=fo(mo,Uc(i)?Object.values(i):i);if(A.useLayoutEffect(()=>{t==null||t(s)},[t]),A.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(e.initTexture)},[e,s]),Uc(i)){const n=Object.keys(i),r={};return n.forEach(o=>Object.assign(r,{[o]:s[n.indexOf(o)]})),r}else return s}Ks.preload=i=>fo.preload(mo,i);Ks.clear=i=>fo.clear(mo,i);const Hf=A.forwardRef(function({src:t,skipFill:e,skipStrokes:s,fillMaterial:n,strokeMaterial:r,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=fo(xi,t.startsWith("s?[]:u.paths.map(d=>{var p;return((p=d.userData)==null?void 0:p.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(_=>xi.pointsToStroke(_.getPoints(),d.userData.style))}),[u,s]);return A.useEffect(()=>()=>h.forEach(d=>d&&d.map(p=>p.dispose())),[h]),A.createElement("object3D",Oe({ref:l},c),A.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,p)=>{var _,f;return A.createElement(A.Fragment,{key:p},!e&&((_=d.userData)==null?void 0:_.style.fill)!==void 0&&d.userData.style.fill!=="none"&&xi.createShapes(d).map((m,v)=>A.createElement("mesh",Oe({key:v},o),A.createElement("shapeGeometry",{args:[m]}),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:ra,depthWrite:!1},n)))),!s&&((f=d.userData)==null?void 0:f.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((m,v)=>A.createElement("mesh",Oe({key:v,geometry:h[p][v]},a),A.createElement("meshBasicMaterial",Oe({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:ra,depthWrite:!1},r)))))})))});/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu diff --git a/build/assets/index-8f3abdbd.js b/build/assets/index-8331965f.js similarity index 96% rename from build/assets/index-8f3abdbd.js rename to build/assets/index-8331965f.js index 951e9d65e..236b1257e 100644 --- a/build/assets/index-8f3abdbd.js +++ b/build/assets/index-8331965f.js @@ -1,4 +1,4 @@ -import{a7 as m,t as s,v as r,a5 as o,F as d,r as w,j as e}from"./index-c431d222.js";import{u as v,ai as y}from"./index-092b06c7.js";const j=m` +import{a7 as m,t as s,v as r,a5 as o,F as d,r as w,j as e}from"./index-b416b1a9.js";import{u as v,ai as y}from"./index-1f5ac1eb.js";const j=m` 0% { transform: scale(0.8); } diff --git a/build/assets/index-14733886.js b/build/assets/index-8344fca4.js similarity index 69% rename from build/assets/index-14733886.js rename to build/assets/index-8344fca4.js index 10eb1c65a..9a1d9c9e7 100644 --- a/build/assets/index-14733886.js +++ b/build/assets/index-8344fca4.js @@ -1 +1 @@ -import"./index-c431d222.js";import{f as o}from"./index-092b06c7.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; +import"./index-b416b1a9.js";import{f as o}from"./index-1f5ac1eb.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; diff --git a/build/assets/index-ff7c4077.js b/build/assets/index-85afbf1a.js similarity index 99% rename from build/assets/index-ff7c4077.js rename to build/assets/index-85afbf1a.js index 1161eac5a..078225795 100644 --- a/build/assets/index-ff7c4077.js +++ b/build/assets/index-85afbf1a.js @@ -1,4 +1,4 @@ -import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f as To,b2 as En,b3 as gr,h as $o,i as gt,e as Zr,a2 as Ci,a3 as Si,t as O,v as j,aP as br,T as Se,F as $,aA as hn,b4 as _i,b5 as Hn,b6 as ji,b7 as Oi,R as c,y as xr,a5 as Qr,aO as Ao,b8 as Pi,az as ht,Z as ar,A as mr,O as Ti,ab as Jr}from"./index-c431d222.js";import{B as $i}from"./index-8f3abdbd.js";import{a0 as vr,B as Cn,a1 as Mo,ai as yr,P as E,I as or,a$ as Ai,$ as Mi,aw as ki,D as Ri,r as ko,u as Ro,b0 as Bi,n as ea,m as ta,l as na,k as ra,j as Fi,b1 as Ni,b2 as Ii}from"./index-092b06c7.js";import{O as Di,n as Hi,a as aa,N as Bo}from"./constants-b2a2fa82.js";import{T as gn}from"./index-cfcff7e7.js";import{A as Dt}from"./index-3f78c796.js";import{C as Ie}from"./ClipLoader-b5124f12.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./map-b8352f2c.js";import{T as Xi,a as Ki}from"./Tabs-a957b4a1.js";import{p as ir,c as qi,g as Zi}from"./index-c0853f89.js";import{e as Qi}from"./Stack-6ee91628.js";import{f as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,h as No,H as ts,i as oa,C as ns,P as rs,j as as}from"./index-af08347c.js";import{R as os,u as is,v as ss,V as G,w as Ke,x as qe,Q as ia,y as ln,O as cn,z as sa,b as de,A as ls,n as cs,C as us}from"./three.module-26d3b3c0.js";import"./index.esm-2a70f836.js";import"./createSvgIcon-a54a204b.js";import"./TextareaAutosize-85f04bbd.js";import"./Typography-0e3c6b80.js";const ps=y.createContext(),la=ps;function ds(t){return _o("MuiGrid",t)}const fs=[0,1,2,3,4,5,6,7,8,9,10],hs=["column-reverse","column","row-reverse","row"],gs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],bs=jo("MuiGrid",["root","container","item","zeroMinWidth",...fs.map(t=>`spacing-xs-${t}`),...hs.map(t=>`direction-xs-${t}`),...gs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=bs,xs=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function ms({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${bt(d)})`;u={flexBasis:f,maxWidth:f}}}o=te({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function vs({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ys({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingTop:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function ws({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${bt(d)})`,marginLeft:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingLeft:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Es(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Cs=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Es(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>te({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}),vs,ys,ws,ms);function Ss(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const _s=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=Ss(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,ds,e)},js=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Qi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,xs),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=te({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=te({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=_s(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Cs,te({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),_e=js;function Os(t){return _o("MuiSwitch",t)}const Ps=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ps,Ts=["className","color","edge","size","sx"],$s=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${gt(n)}`,`size${gt(r)}`],switchBase:["switchBase",`color${gt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Os,e);return te({},e,l)},As=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${gt(n.edge)}`],e[`size${gt(n.size)}`]]}})(({ownerState:t})=>te({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,[`& .${J.thumb}`]:{width:16,height:16},[`& .${J.switchBase}`]:{padding:4,[`&.${J.checked}`]:{transform:"translateX(16px)"}}})),Ms=Wt(zi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.input}`]:e.input},n.color!=="default"&&e[`color${gt(n.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}),[`&.${J.checked}`]:{transform:"translateX(20px)"},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${J.checked} + .${J.track}`]:{opacity:.5},[`&.${J.disabled} + .${J.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${J.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>te({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${J.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${J.checked} + .${J.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),ks=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.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}`})),Rs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Bs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,Ts),d=te({},r,{color:o,edge:s,size:i}),f=$s(d),h=p.jsx(Rs,{className:f.thumb,ownerState:d});return p.jsxs(As,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(Ms,te({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:te({},f,{root:f.switchBase})})),p.jsx(ks,{className:f.track,ownerState:d})]})}),Do=Bs,Fs={type:"",parent:""},ca=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=vr({mode:"onChange",defaultValues:Fs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await br()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ns,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||Di,placeholder:a,selectedValue:m()})},Ns=O(Dt)` +import{r as y,c as _o,d as jo,s as Wt,b as te,u as Oo,m as Ei,_ as Po,j as p,f as To,b2 as En,b3 as gr,h as $o,i as gt,e as Zr,a2 as Ci,a3 as Si,t as O,v as j,aP as br,T as Se,F as $,aA as hn,b4 as _i,b5 as Hn,b6 as ji,b7 as Oi,R as c,y as xr,a5 as Qr,aO as Ao,b8 as Pi,az as ht,Z as ar,A as mr,O as Ti,ab as Jr}from"./index-b416b1a9.js";import{B as $i}from"./index-8331965f.js";import{a0 as vr,B as Cn,a1 as Mo,ai as yr,P as E,I as or,a$ as Ai,$ as Mi,aw as ki,D as Ri,r as ko,u as Ro,b0 as Bi,n as ea,m as ta,l as na,k as ra,j as Fi,b1 as Ni,b2 as Ii}from"./index-1f5ac1eb.js";import{O as Di,n as Hi,a as aa,N as Bo}from"./constants-b2a2fa82.js";import{T as gn}from"./index-64813bbe.js";import{A as Dt}from"./index-69075348.js";import{C as Ie}from"./ClipLoader-a0a9ce2c.js";import{S as zi,j as Li,p as Gi,q as Wi,r as Ui,m as Vi,F as Yi}from"./map-8d3cef29.js";import{T as Xi,a as Ki}from"./Tabs-79411ac3.js";import{p as ir,c as qi,g as Zi}from"./index-c0853f89.js";import{e as Qi}from"./Stack-34a19487.js";import{f as Ji,m as es,u as me,a as Sn,t as sr,T as Fo,h as No,H as ts,i as oa,C as ns,P as rs,j as as}from"./index-39784bea.js";import{R as os,u as is,v as ss,V as G,w as Ke,x as qe,Q as ia,y as ln,O as cn,z as sa,b as de,A as ls,n as cs,C as us}from"./three.module-26d3b3c0.js";import"./index.esm-258646ab.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";import"./Typography-4efd6f29.js";const ps=y.createContext(),la=ps;function ds(t){return _o("MuiGrid",t)}const fs=[0,1,2,3,4,5,6,7,8,9,10],hs=["column-reverse","column","row-reverse","row"],gs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],bs=jo("MuiGrid",["root","container","item","zeroMinWidth",...fs.map(t=>`spacing-xs-${t}`),...hs.map(t=>`direction-xs-${t}`),...gs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=bs,xs=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function bt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function ms({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${bt(d)})`;u={flexBasis:f,maxWidth:f}}}o=te({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function vs({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ys({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingTop:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function ws({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${bt(d)})`,marginLeft:`-${bt(d)}`,[`& > .${zt.item}`]:{paddingLeft:bt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Es(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Cs=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Es(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>te({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}),vs,ys,ws,ms);function Ss(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const _s=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=Ss(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,ds,e)},js=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Qi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,xs),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=te({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=te({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=_s(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Cs,te({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),_e=js;function Os(t){return _o("MuiSwitch",t)}const Ps=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),J=Ps,Ts=["className","color","edge","size","sx"],$s=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${gt(n)}`,`size${gt(r)}`],switchBase:["switchBase",`color${gt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Os,e);return te({},e,l)},As=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${gt(n.edge)}`],e[`size${gt(n.size)}`]]}})(({ownerState:t})=>te({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,[`& .${J.thumb}`]:{width:16,height:16},[`& .${J.switchBase}`]:{padding:4,[`&.${J.checked}`]:{transform:"translateX(16px)"}}})),Ms=Wt(zi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${J.input}`]:e.input},n.color!=="default"&&e[`color${gt(n.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}),[`&.${J.checked}`]:{transform:"translateX(20px)"},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${J.checked} + .${J.track}`]:{opacity:.5},[`&.${J.disabled} + .${J.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${J.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>te({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${J.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${J.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${J.checked} + .${J.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),ks=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.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}`})),Rs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Bs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,Ts),d=te({},r,{color:o,edge:s,size:i}),f=$s(d),h=p.jsx(Rs,{className:f.thumb,ownerState:d});return p.jsxs(As,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(Ms,te({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:te({},f,{root:f.switchBase})})),p.jsx(ks,{className:f.track,ownerState:d})]})}),Do=Bs,Fs={type:"",parent:""},ca=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=vr({mode:"onChange",defaultValues:Fs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await br()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ns,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||Di,placeholder:a,selectedValue:m()})},Ns=O(Dt)` .MuiInputBase-input { font-family: Barlow; font-size: 14px; diff --git a/build/assets/index-3be58333.js b/build/assets/index-9d4b2019.js similarity index 99% rename from build/assets/index-3be58333.js rename to build/assets/index-9d4b2019.js index 341221d70..f65346ee7 100644 --- a/build/assets/index-3be58333.js +++ b/build/assets/index-9d4b2019.js @@ -1,4 +1,4 @@ -import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s as Qn,n as U$,i as dn,e as xo,u as Ty,_ as _u,f as Kn,h as Ay,m as Tu,a2 as z$,a3 as G$,a4 as iI,t as H,v as j,a5 as oI,K as Au,F as q,q as Mn,z as ds,a6 as sI,T as vt,a7 as q$,w as lr,y as Pt,A as lI,a8 as _i,a9 as At,aa as H$,g as St,J as uI,N as cI,ab as W$,ac as dI,M as V$,ad as pI,ae as fI,af as Ti,ag as Fe,R as Y,ah as Y$,ai as K$,aj as X$,ak as ku,al as Z$,am as Q$,an as J$,ao as ej,ap as hI,aq as tj,ar as Ou,as as nj,at as rj,au as aj,av as ix,C as ij,B as bn,aw as oj,ax as sj}from"./index-c431d222.js";import{w as wa,x as gI,y as Al,z as lj,G as bl,J as yl,K as Yc,L as mI,Q as uj,R as cj,U as dj,V as ox,W as vl,X as zr,Y as sx,Z as Hs,$ as ky,a0 as pj,a1 as fj,a2 as bI,a3 as hj,r as Oy,a4 as yI,i as Jn,T as Ai,a5 as Pr,a6 as vI,a7 as gj,a8 as ps,a9 as mj,aa as Iy,ab as Iu,ac as Ry,B as qt,ad as bj,ae as SI,af as xI,ag as yj,t as vj,ah as EI,ai as wI,aj as Sj,ak as xj,u as Ym,al as Ru,am as Ej,an as wj,ao as _j,ap as Tj,aq as Cy,ar as Aj,as as kj,at as Oj,P as Re,e as Kt,au as _I,av as Ij,aw as TI,ax as Rj,ay as Cj,az as Cu,aA as Nj,aB as Dj,aC as Lj,aD as Mj,aE as Pj,f as $j,aF as jj,aG as AI,aH as Fj}from"./index-092b06c7.js";import{c as Bj,a as Kc,C as Nu}from"./ClipLoader-b5124f12.js";import{S as kI}from"./Skeleton-afdbf969.js";import{u as OI,P as Ny,a as Uj,F as zj}from"./Stack-6ee91628.js";import{S as Gj,F as lx,i as fs,g as Dn,t as qj,_ as II,a as Hj,b as Wj,c as Ta,d as Dy,e as Vj,f as Yj,h as Kj,j as hs,m as Xj,k as Zj,l as Qj,n as RI,o as Jj,p as eF}from"./map-b8352f2c.js";import{c as Ly}from"./createSvgIcon-a54a204b.js";import{B as tF}from"./index-8f3abdbd.js";import{u as CI}from"./index-14733886.js";import{b as nF,a as rF,c as aF,d as iF}from"./index.esm-2a70f836.js";const ux="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oF=async e=>{let t=await qa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await qa.keysend(ux,e),!(t!=null&&t.success)){if(t=await qa.topup(),t||(t=await qa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await oF(t),r={amount:t,refid:e};return await aI.post("/boost",JSON.stringify(r)),n},lF=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},NI=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=ax.groupBy(n,i=>i.timestamp),a=ax.values(r).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,f;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((f=o.timestamp)==null?void 0:f.split("-"))||[""],u=wa(s),c=wa(l);return u-c}),a},uF=async e=>{await B$(async()=>{try{await qa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cF=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},dF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pF=dF;function fF(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const hF=2;function DI(e,t){return e-t}function Ui(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function cx(e,t){var n;const{index:r}=(n=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({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}%`})}},vF=e=>e;let Ks;function Xc(){return Ks===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ks=CSS.supports("touch-action","none"):Ks=!0),Ks}function SF(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:p,orientation:f="horizontal",rootRef:h,scale:m=vF,step:b=1,tabIndex:S,value:T}=e,_=F.useRef(),[x,A]=F.useState(-1),[E,v]=F.useState(-1),[O,R]=F.useState(!1),C=F.useRef(0),[$,N]=OI({controlled:T,default:n??l,name:"Slider"}),P=c&&((B,Q,oe)=>{const pe=B.nativeEvent||B,ue=new pe.constructor(pe.type,pe);Object.defineProperty(ue,"target",{writable:!0,value:{value:Q,name:u}}),c(ue,Q,oe)}),z=Array.isArray($);let V=z?$.slice().sort(DI):[$];V=V.map(B=>Ui(B,l,s));const G=o===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((B,Q)=>({value:l+b*Q})):o||[],K=G.map(B=>B.value),{isFocusVisibleRef:X,onBlur:W,onFocus:Z,ref:D}=gI(),[ie,ne]=F.useState(-1),M=F.useRef(),ye=Al(D,M),re=Al(h,ye),Se=B=>Q=>{var oe;const pe=Number(Q.currentTarget.getAttribute("data-index"));Z(Q),X.current===!0&&ne(pe),v(pe),B==null||(oe=B.onFocus)==null||oe.call(B,Q)},je=B=>Q=>{var oe;W(Q),X.current===!1&&ne(-1),v(-1),B==null||(oe=B.onBlur)==null||oe.call(B,Q)};lj(()=>{if(r&&M.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&x!==-1&&A(-1),r&&ie!==-1&&ne(-1);const we=B=>Q=>{var oe;(oe=B.onChange)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index")),ue=V[pe],ke=K.indexOf(ue);let Ae=Q.target.valueAsNumber;if(G&&b==null){const Ie=K[K.length-1];Ae>Ie?Ae=Ie:Ae{const{current:oe}=M,{width:pe,height:ue,bottom:ke,left:Ae}=oe.getBoundingClientRect();let Ie;de.indexOf("vertical")===0?Ie=(ke-B.y)/ue:Ie=(B.x-Ae)/pe,de.indexOf("-reverse")!==-1&&(Ie=1-Ie);let We;if(We=gF(Ie,l,s),b)We=bF(We,b,l);else{const it=cx(K,We);We=K[it]}We=Ui(We,l,s);let xt=0;if(z){Q?xt=ae.current:xt=cx(V,We),a&&(We=Ui(We,V[xt-1]||-1/0,V[xt+1]||1/0));const it=We;We=dx({values:V,newValue:We,index:xt}),a&&Q||(xt=We.indexOf(it),ae.current=xt)}return{newValue:We,activeIndex:xt}},ee=bl(B=>{const Q=Ws(B,_);if(!Q)return;if(C.current+=1,B.type==="mousemove"&&B.buttons===0){_e(B);return}const{newValue:oe,activeIndex:pe}=ce({finger:Q,move:!0});Vs({sliderRef:M,activeIndex:pe,setActive:A}),N(oe),!O&&C.current>hF&&R(!0),P&&!Ys(oe,$)&&P(B,oe,pe)}),_e=bl(B=>{const Q=Ws(B,_);if(R(!1),!Q)return;const{newValue:oe}=ce({finger:Q,move:!0});A(-1),B.type==="touchend"&&v(-1),p&&p(B,oe),_.current=void 0,ve()}),me=bl(B=>{if(r)return;Xc()||B.preventDefault();const Q=B.changedTouches[0];Q!=null&&(_.current=Q.identifier);const oe=Ws(B,_);if(oe!==!1){const{newValue:ue,activeIndex:ke}=ce({finger:oe});Vs({sliderRef:M,activeIndex:ke,setActive:A}),N(ue),P&&!Ys(ue,$)&&P(B,ue,ke)}C.current=0;const pe=yl(M.current);pe.addEventListener("touchmove",ee),pe.addEventListener("touchend",_e)}),ve=F.useCallback(()=>{const B=yl(M.current);B.removeEventListener("mousemove",ee),B.removeEventListener("mouseup",_e),B.removeEventListener("touchmove",ee),B.removeEventListener("touchend",_e)},[_e,ee]);F.useEffect(()=>{const{current:B}=M;return B.addEventListener("touchstart",me,{passive:Xc()}),()=>{B.removeEventListener("touchstart",me,{passive:Xc()}),ve()}},[ve,me]),F.useEffect(()=>{r&&ve()},[r,ve]);const Ue=B=>Q=>{var oe;if((oe=B.onMouseDown)==null||oe.call(B,Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const pe=Ws(Q,_);if(pe!==!1){const{newValue:ke,activeIndex:Ae}=ce({finger:pe});Vs({sliderRef:M,activeIndex:Ae,setActive:A}),N(ke),P&&!Ys(ke,$)&&P(Q,ke,Ae)}C.current=0;const ue=yl(M.current);ue.addEventListener("mousemove",ee),ue.addEventListener("mouseup",_e)},at=kl(z?V[0]:l,l,s),Je=kl(V[V.length-1],l,s)-at,Ht=(B={})=>{const Q=Yc(B),oe={onMouseDown:Ue(Q||{})},pe=ge({},Q,oe);return ge({},B,{ref:re},pe)},ze=B=>Q=>{var oe;(oe=B.onMouseOver)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index"));v(pe)},Ge=B=>Q=>{var oe;(oe=B.onMouseLeave)==null||oe.call(B,Q),v(-1)};return{active:x,axis:de,axisProps:yF,dragging:O,focusedThumbIndex:ie,getHiddenInputProps:(B={})=>{var Q;const oe=Yc(B),pe={onChange:we(oe||{}),onFocus:Se(oe||{}),onBlur:je(oe||{})},ue=ge({},oe,pe);return ge({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Q=e.step)!=null?Q:void 0,disabled:r},B,ue,{style:ge({},pF,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ht,getThumbProps:(B={})=>{const Q=Yc(B),oe={onMouseOver:ze(Q||{}),onMouseLeave:Ge(Q||{})};return ge({},B,Q,oe)},marks:G,open:E,range:z,rootRef:re,trackLeap:Je,trackOffset:at,values:V,getThumbStyle:B=>({pointerEvents:x!==-1&&x!==B?"none":void 0})}}const xF=Ly(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),EF=Ly(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wF=Ly(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _F(e){return _y("MuiCheckbox",e)}const TF=wy("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Zc=TF,AF=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kF=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${dn(r)}`,`size${dn(a)}`]},o=Ay(i,_F,t);return ge({},t,o)},OF=Qn(Gj,{shouldForwardProp:e=>U$(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${dn(n.size)}`],n.color!=="default"&&t[`color${dn(n.color)}`]]}})(({theme:e,ownerState:t})=>ge({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xo(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zc.checked}, &.${Zc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IF=y.jsx(EF,{}),RF=y.jsx(xF,{}),CF=y.jsx(wF,{}),NF=F.forwardRef(function(t,n){var r,a;const i=Ty({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IF,color:s="primary",icon:l=RF,indeterminate:u=!1,indeterminateIcon:c=CF,inputProps:p,size:f="medium",className:h}=i,m=_u(i,AF),b=u?c:l,S=u?c:o,T=ge({},i,{color:s,indeterminate:u,size:f}),_=kF(T);return y.jsx(OF,ge({type:"checkbox",inputProps:ge({"data-indeterminate":u},p),icon:F.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:F.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:f}),ownerState:T,ref:n,className:Kn(_.root,h)},m,{classes:_}))}),DF=NF,LF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MF(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=mI(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=i.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function PF(e){return typeof e=="function"?e():e}function Xs(e,t,n){const r=PF(n),a=MF(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $F=F.forwardRef(function(t,n){const r=Tu(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:c="down",easing:p=a,in:f,onEnter:h,onEntered:m,onEntering:b,onExit:S,onExited:T,onExiting:_,style:x,timeout:A=i,TransitionComponent:E=uj}=t,v=_u(t,LF),O=F.useRef(null),R=Al(l.ref,O,n),C=W=>Z=>{W&&(Z===void 0?W(O.current):W(O.current,Z))},$=C((W,Z)=>{Xs(c,W,u),dj(W),h&&h(W,Z)}),N=C((W,Z)=>{const D=ox({timeout:A,style:x,easing:p},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",ge({},D)),W.style.transition=r.transitions.create("transform",ge({},D)),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,Z)}),P=C(m),z=C(_),V=C(W=>{const Z=ox({timeout:A,style:x,easing:p},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",Z),W.style.transition=r.transitions.create("transform",Z),Xs(c,W,u),S&&S(W)}),G=C(W=>{W.style.webkitTransition="",W.style.transition="",T&&T(W)}),K=W=>{o&&o(O.current,W)},X=F.useCallback(()=>{O.current&&Xs(c,O.current,u)},[c,u]);return F.useEffect(()=>{if(f||c==="down"||c==="right")return;const W=cj(()=>{O.current&&Xs(c,O.current,u)}),Z=mI(O.current);return Z.addEventListener("resize",W),()=>{W.clear(),Z.removeEventListener("resize",W)}},[c,f,u]),F.useEffect(()=>{f||X()},[f,X]),y.jsx(E,ge({nodeRef:O,onEnter:$,onEntered:P,onEntering:N,onExit:V,onExited:G,onExiting:z,addEndListener:K,appear:s,in:f,timeout:A},v,{children:(W,Z)=>F.cloneElement(l,ge({ref:R,style:ge({visibility:W==="exited"&&!f?"hidden":void 0},x,l.props.style)},Z))}))}),ni=$F,jF=e=>!e||!vl(e),FF=jF;function BF(e){return _y("MuiSlider",e)}const UF=wy("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"]),Xn=UF,zF=e=>{const{open:t}=e;return{offset:Kn(t&&Xn.valueLabelOpen),circle:Xn.valueLabelCircle,label:Xn.valueLabelLabel}};function GF(e){const{children:t,className:n,value:r}=e,a=zF(e);return t?F.cloneElement(t,{className:Kn(t.props.className)},y.jsxs(F.Fragment,{children:[t.props.children,y.jsx("span",{className:Kn(a.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:a.circle,children:y.jsx("span",{className:a.label,children:r})})})]})):null}const qF=["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 px(e){return e}const HF=Qn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dn(n.color)}`],n.size!=="medium"&&t[`size${dn(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})=>ge({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"&&ge({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"&&ge({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"},[`&.${Xn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xn.dragging}`]:{[`& .${Xn.thumb}, & .${Xn.track}`]:{transition:"none"}}})),WF=Qn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ge({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})),VF=Qn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?z$(e.palette[t.color].main,.62):G$(e.palette[t.color].main,.5);return ge({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})}),YF=Qn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dn(n.color)}`],n.size!=="medium"&&t[`thumbSize${dn(n.size)}`]]}})(({theme:e,ownerState:t})=>ge({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":ge({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, &.${Xn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Xn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`},[`&.${Xn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KF=Qn(GF,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ge({[`&.${Xn.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"})),XF=Qn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>iI(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ge({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})),ZF=Qn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>iI(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ge({},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})),QF=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${dn(s)}`,l&&`size${dn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dn(l)}`,s&&`thumbColor${dn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ay(u,BF,o)},JF=({children:e})=>e,e2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C,$;const N=Ty({props:t,name:"MuiSlider"}),z=Tu().direction==="rtl",{"aria-label":V,"aria-valuetext":G,"aria-labelledby":K,component:X="span",components:W={},componentsProps:Z={},color:D="primary",classes:ie,className:ne,disableSwap:M=!1,disabled:ye=!1,getAriaLabel:re,getAriaValueText:Se,marks:je=!1,max:we=100,min:ae=0,orientation:de="horizontal",size:ce="medium",step:ee=1,scale:_e=px,slotProps:me,slots:ve,track:Ue="normal",valueLabelDisplay:at="off",valueLabelFormat:Je=px}=N,Ht=_u(N,qF),ze=ge({},N,{isRtl:z,max:we,min:ae,classes:ie,disabled:ye,disableSwap:M,orientation:de,marks:je,color:D,size:ce,step:ee,scale:_e,track:Ue,valueLabelDisplay:at,valueLabelFormat:Je}),{axisProps:Ge,getRootProps:Xe,getHiddenInputProps:Ft,getThumbProps:Wt,open:B,active:Q,axis:oe,focusedThumbIndex:pe,range:ue,dragging:ke,marks:Ae,values:Ie,trackOffset:We,trackLeap:xt,getThumbStyle:it}=SF(ge({},ze,{rootRef:n}));ze.marked=Ae.length>0&&Ae.some(Ce=>Ce.label),ze.dragging=ke,ze.focusedThumbIndex=pe;const Le=QF(ze),It=(r=(a=ve==null?void 0:ve.root)!=null?a:W.Root)!=null?r:HF,gr=(i=(o=ve==null?void 0:ve.rail)!=null?o:W.Rail)!=null?i:WF,mr=(s=(l=ve==null?void 0:ve.track)!=null?l:W.Track)!=null?s:VF,Ze=(u=(c=ve==null?void 0:ve.thumb)!=null?c:W.Thumb)!=null?u:YF,ia=(p=(f=ve==null?void 0:ve.valueLabel)!=null?f:W.ValueLabel)!=null?p:KF,br=(h=(m=ve==null?void 0:ve.mark)!=null?m:W.Mark)!=null?h:XF,Fn=(b=(S=ve==null?void 0:ve.markLabel)!=null?S:W.MarkLabel)!=null?b:ZF,yr=(T=(_=ve==null?void 0:ve.input)!=null?_:W.Input)!=null?T:"input",Bn=(x=me==null?void 0:me.root)!=null?x:Z.root,Un=(A=me==null?void 0:me.rail)!=null?A:Z.rail,zn=(E=me==null?void 0:me.track)!=null?E:Z.track,oa=(v=me==null?void 0:me.thumb)!=null?v:Z.thumb,tr=(O=me==null?void 0:me.valueLabel)!=null?O:Z.valueLabel,Li=(R=me==null?void 0:me.mark)!=null?R:Z.mark,Gn=(C=me==null?void 0:me.markLabel)!=null?C:Z.markLabel,jr=($=me==null?void 0:me.input)!=null?$:Z.input,he=zr({elementType:It,getSlotProps:Xe,externalSlotProps:Bn,externalForwardedProps:Ht,additionalProps:ge({},FF(It)&&{as:X}),ownerState:ge({},ze,Bn==null?void 0:Bn.ownerState),className:[Le.root,ne]}),sa=zr({elementType:gr,externalSlotProps:Un,ownerState:ze,className:Le.rail}),Zt=zr({elementType:mr,externalSlotProps:zn,additionalProps:{style:ge({},Ge[oe].offset(We),Ge[oe].leap(xt))},ownerState:ge({},ze,zn==null?void 0:zn.ownerState),className:Le.track}),mt=zr({elementType:Ze,getSlotProps:Wt,externalSlotProps:oa,ownerState:ge({},ze,oa==null?void 0:oa.ownerState),className:Le.thumb}),la=zr({elementType:ia,externalSlotProps:tr,ownerState:ge({},ze,tr==null?void 0:tr.ownerState),className:Le.valueLabel}),Me=zr({elementType:br,externalSlotProps:Li,ownerState:ze,className:Le.mark}),gn=zr({elementType:Fn,externalSlotProps:Gn,ownerState:ze,className:Le.markLabel}),Na=zr({elementType:yr,getSlotProps:Ft,externalSlotProps:jr,ownerState:ze});return y.jsxs(It,ge({},he,{children:[y.jsx(gr,ge({},sa)),y.jsx(mr,ge({},Zt)),Ae.filter(Ce=>Ce.value>=ae&&Ce.value<=we).map((Ce,Qe)=>{const Bt=kl(Ce.value,ae,we),st=Ge[oe].offset(Bt);let bt;return Ue===!1?bt=Ie.indexOf(Ce.value)!==-1:bt=Ue==="normal"&&(ue?Ce.value>=Ie[0]&&Ce.value<=Ie[Ie.length-1]:Ce.value<=Ie[0])||Ue==="inverted"&&(ue?Ce.value<=Ie[0]||Ce.value>=Ie[Ie.length-1]:Ce.value>=Ie[0]),y.jsxs(F.Fragment,{children:[y.jsx(br,ge({"data-index":Qe},Me,!vl(br)&&{markActive:bt},{style:ge({},st,Me.style),className:Kn(Me.className,bt&&Le.markActive)})),Ce.label!=null?y.jsx(Fn,ge({"aria-hidden":!0,"data-index":Qe},gn,!vl(Fn)&&{markLabelActive:bt},{style:ge({},st,gn.style),className:Kn(Le.markLabel,gn.className,bt&&Le.markLabelActive),children:Ce.label})):null]},Qe)}),Ie.map((Ce,Qe)=>{const Bt=kl(Ce,ae,we),st=Ge[oe].offset(Bt),bt=at==="off"?JF:ia;return y.jsx(bt,ge({},!vl(bt)&&{valueLabelFormat:Je,valueLabelDisplay:at,value:typeof Je=="function"?Je(_e(Ce),Qe):Je,index:Qe,open:B===Qe||Q===Qe||at==="on",disabled:ye},la,{children:y.jsx(Ze,ge({"data-index":Qe},mt,{className:Kn(Le.thumb,mt.className,Q===Qe&&Le.active,pe===Qe&&Le.focusVisible),style:ge({},st,it(Qe),mt.style),children:y.jsx(yr,ge({"data-index":Qe,"aria-label":re?re(Qe):V,"aria-valuenow":_e(Ce),"aria-labelledby":K,"aria-valuetext":Se?Se(_e(Ce),Qe):G,value:Ie[Qe]},Na))}))}),Qe)})]}))}),Du=e2;function t2(e){return _y("MuiTooltip",e)}const n2=wy("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Kr=n2,r2=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function a2(e){return Math.round(e*1e5)/1e5}const i2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${dn(i.split("-")[0])}`],arrow:["arrow"]};return Ay(o,t2,t)},o2=Qn(Ny,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Kr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kr.arrow}`]:ge({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Kr.arrow}`]:ge({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s2=Qn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dn(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${a2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Kr.popper}[data-popper-placement*="left"] &`]:ge({transformOrigin:"right center"},t.isRtl?ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ge({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Kr.popper}[data-popper-placement*="right"] &`]:ge({transformOrigin:"left center"},t.isRtl?ge({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Kr.popper}[data-popper-placement*="top"] &`]:ge({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Kr.popper}[data-popper-placement*="bottom"] &`]:ge({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l2=Qn("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zs=!1,Qc=null,zi={x:0,y:0};function Qs(e,t){return n=>{t&&t(n),e(n)}}const u2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E;const v=Ty({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:R,components:C={},componentsProps:$={},describeChild:N=!1,disableFocusListener:P=!1,disableHoverListener:z=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:K=100,enterNextDelay:X=0,enterTouchDelay:W=700,followCursor:Z=!1,id:D,leaveDelay:ie=0,leaveTouchDelay:ne=1500,onClose:M,onOpen:ye,open:re,placement:Se="bottom",PopperComponent:je,PopperProps:we={},slotProps:ae={},slots:de={},title:ce,TransitionComponent:ee=sx,TransitionProps:_e}=v,me=_u(v,r2),ve=F.isValidElement(R)?R:y.jsx("span",{children:R}),Ue=Tu(),at=Ue.direction==="rtl",[Je,Ht]=F.useState(),[ze,Ge]=F.useState(null),Xe=F.useRef(!1),Ft=V||Z,Wt=F.useRef(),B=F.useRef(),Q=F.useRef(),oe=F.useRef(),[pe,ue]=OI({controlled:re,default:!1,name:"Tooltip",state:"open"});let ke=pe;const Ae=Uj(D),Ie=F.useRef(),We=F.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(oe.current)},[]);F.useEffect(()=>()=>{clearTimeout(Wt.current),clearTimeout(B.current),clearTimeout(Q.current),We()},[We]);const xt=Pe=>{clearTimeout(Qc),Zs=!0,ue(!0),ye&&!ke&&ye(Pe)},it=bl(Pe=>{clearTimeout(Qc),Qc=setTimeout(()=>{Zs=!1},800+ie),ue(!1),M&&ke&&M(Pe),clearTimeout(Wt.current),Wt.current=setTimeout(()=>{Xe.current=!1},Ue.transitions.duration.shortest)}),Le=Pe=>{Xe.current&&Pe.type!=="touchstart"||(Je&&Je.removeAttribute("title"),clearTimeout(B.current),clearTimeout(Q.current),K||Zs&&X?B.current=setTimeout(()=>{xt(Pe)},Zs?X:K):xt(Pe))},It=Pe=>{clearTimeout(B.current),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ie)},{isFocusVisibleRef:gr,onBlur:mr,onFocus:Ze,ref:ia}=gI(),[,br]=F.useState(!1),Fn=Pe=>{mr(Pe),gr.current===!1&&(br(!1),It(Pe))},yr=Pe=>{Je||Ht(Pe.currentTarget),Ze(Pe),gr.current===!0&&(br(!0),Le(Pe))},Bn=Pe=>{Xe.current=!0;const Qt=ve.props;Qt.onTouchStart&&Qt.onTouchStart(Pe)},Un=Le,zn=It,oa=Pe=>{Bn(Pe),clearTimeout(Q.current),clearTimeout(Wt.current),We(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,Le(Pe)},W)},tr=Pe=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Pe),We(),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ne)};F.useEffect(()=>{if(!ke)return;function Pe(Qt){(Qt.key==="Escape"||Qt.key==="Esc")&&it(Qt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[it,ke]);const Li=Al(ve.ref,ia,Ht,n);!ce&&ce!==0&&(ke=!1);const Gn=F.useRef(),jr=Pe=>{const Qt=ve.props;Qt.onMouseMove&&Qt.onMouseMove(Pe),zi={x:Pe.clientX,y:Pe.clientY},Gn.current&&Gn.current.update()},he={},sa=typeof ce=="string";N?(he.title=!ke&&sa&&!z?ce:null,he["aria-describedby"]=ke?Ae:null):(he["aria-label"]=sa?ce:null,he["aria-labelledby"]=ke&&!sa?Ae:null);const Zt=ge({},he,me,ve.props,{className:Kn(me.className,ve.props.className),onTouchStart:Bn,ref:Li},Z?{onMouseMove:jr}:{}),mt={};G||(Zt.onTouchStart=oa,Zt.onTouchEnd=tr),z||(Zt.onMouseOver=Qs(Un,Zt.onMouseOver),Zt.onMouseLeave=Qs(zn,Zt.onMouseLeave),Ft||(mt.onMouseOver=Un,mt.onMouseLeave=zn)),P||(Zt.onFocus=Qs(yr,Zt.onFocus),Zt.onBlur=Qs(Fn,Zt.onBlur),Ft||(mt.onFocus=yr,mt.onBlur=Fn));const la=F.useMemo(()=>{var Pe;let Qt=[{name:"arrow",enabled:!!ze,options:{element:ze,padding:4}}];return(Pe=we.popperOptions)!=null&&Pe.modifiers&&(Qt=Qt.concat(we.popperOptions.modifiers)),ge({},we.popperOptions,{modifiers:Qt})},[ze,we]),Me=ge({},v,{isRtl:at,arrow:O,disableInteractive:Ft,placement:Se,PopperComponentProp:je,touch:Xe.current}),gn=i2(Me),Na=(r=(a=de.popper)!=null?a:C.Popper)!=null?r:o2,Ce=(i=(o=(s=de.transition)!=null?s:C.Transition)!=null?o:ee)!=null?i:sx,Qe=(l=(u=de.tooltip)!=null?u:C.Tooltip)!=null?l:s2,Bt=(c=(p=de.arrow)!=null?p:C.Arrow)!=null?c:l2,st=Hs(Na,ge({},we,(f=ae.popper)!=null?f:$.popper,{className:Kn(gn.popper,we==null?void 0:we.className,(h=(m=ae.popper)!=null?m:$.popper)==null?void 0:h.className)}),Me),bt=Hs(Ce,ge({},_e,(b=ae.transition)!=null?b:$.transition),Me),qn=Hs(Qe,ge({},(S=ae.tooltip)!=null?S:$.tooltip,{className:Kn(gn.tooltip,(T=(_=ae.tooltip)!=null?_:$.tooltip)==null?void 0:T.className)}),Me),vr=Hs(Bt,ge({},(x=ae.arrow)!=null?x:$.arrow,{className:Kn(gn.arrow,(A=(E=ae.arrow)!=null?E:$.arrow)==null?void 0:A.className)}),Me);return y.jsxs(F.Fragment,{children:[F.cloneElement(ve,Zt),y.jsx(Na,ge({as:je??Ny,placement:Se,anchorEl:Z?{getBoundingClientRect:()=>({top:zi.y,left:zi.x,right:zi.x,bottom:zi.y,width:0,height:0})}:Je,popperRef:Gn,open:Je?ke:!1,id:Ae,transition:!0},mt,st,{popperOptions:la,children:({TransitionProps:Pe})=>y.jsx(Ce,ge({timeout:Ue.transitions.duration.shorter},Pe,bt,{children:y.jsxs(Qe,ge({},qn,{children:[ce,O?y.jsx(Bt,ge({},vr,{ref:Ge})):null]}))}))}))]})}),c2=u2,d2=(e,t="down")=>{const n=Tu(),[r,a]=F.useState(!1),i=n.breakpoints[t](e).split("@media")[1].trim();return F.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),r},p2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f2(e){return e.tldr_topic??e.name}var Ol=globalThis&&globalThis.__assign||function(){return Ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({autoCorrect:"off",autoComplete:"off"}))` +import{Z as aI,a0 as qa,H as ax,a1 as B$,r as F,b as ge,j as y,d as wy,c as _y,s as Qn,n as U$,i as dn,e as xo,u as Ty,_ as _u,f as Kn,h as Ay,m as Tu,a2 as z$,a3 as G$,a4 as iI,t as H,v as j,a5 as oI,K as Au,F as q,q as Mn,z as ds,a6 as sI,T as vt,a7 as q$,w as lr,y as Pt,A as lI,a8 as _i,a9 as At,aa as H$,g as St,J as uI,N as cI,ab as W$,ac as dI,M as V$,ad as pI,ae as fI,af as Ti,ag as Fe,R as Y,ah as Y$,ai as K$,aj as X$,ak as ku,al as Z$,am as Q$,an as J$,ao as ej,ap as hI,aq as tj,ar as Ou,as as nj,at as rj,au as aj,av as ix,C as ij,B as bn,aw as oj,ax as sj}from"./index-b416b1a9.js";import{w as wa,x as gI,y as Al,z as lj,G as bl,J as yl,K as Yc,L as mI,Q as uj,R as cj,U as dj,V as ox,W as vl,X as zr,Y as sx,Z as Hs,$ as ky,a0 as pj,a1 as fj,a2 as bI,a3 as hj,r as Oy,a4 as yI,i as Jn,T as Ai,a5 as Pr,a6 as vI,a7 as gj,a8 as ps,a9 as mj,aa as Iy,ab as Iu,ac as Ry,B as qt,ad as bj,ae as SI,af as xI,ag as yj,t as vj,ah as EI,ai as wI,aj as Sj,ak as xj,u as Ym,al as Ru,am as Ej,an as wj,ao as _j,ap as Tj,aq as Cy,ar as Aj,as as kj,at as Oj,P as Re,e as Kt,au as _I,av as Ij,aw as TI,ax as Rj,ay as Cj,az as Cu,aA as Nj,aB as Dj,aC as Lj,aD as Mj,aE as Pj,f as $j,aF as jj,aG as AI,aH as Fj}from"./index-1f5ac1eb.js";import{c as Bj,a as Kc,C as Nu}from"./ClipLoader-a0a9ce2c.js";import{S as kI}from"./Skeleton-0e0ce42e.js";import{u as OI,P as Ny,a as Uj,F as zj}from"./Stack-34a19487.js";import{S as Gj,F as lx,i as fs,g as Dn,t as qj,_ as II,a as Hj,b as Wj,c as Ta,d as Dy,e as Vj,f as Yj,h as Kj,j as hs,m as Xj,k as Zj,l as Qj,n as RI,o as Jj,p as eF}from"./map-8d3cef29.js";import{c as Ly}from"./createSvgIcon-23cd916d.js";import{B as tF}from"./index-8331965f.js";import{u as CI}from"./index-8344fca4.js";import{b as nF,a as rF,c as aF,d as iF}from"./index.esm-258646ab.js";const ux="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",oF=async e=>{let t=await qa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await qa.keysend(ux,e),!(t!=null&&t.success)){if(t=await qa.topup(),t||(t=await qa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await oF(t),r={amount:t,refid:e};return await aI.post("/boost",JSON.stringify(r)),n},lF=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},NI=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=ax.groupBy(n,i=>i.timestamp),a=ax.values(r).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,f;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((f=o.timestamp)==null?void 0:f.split("-"))||[""],u=wa(s),c=wa(l);return u-c}),a},uF=async e=>{await B$(async()=>{try{await qa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},cF=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},dF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},pF=dF;function fF(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const hF=2;function DI(e,t){return e-t}function Ui(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function cx(e,t){var n;const{index:r}=(n=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({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}%`})}},vF=e=>e;let Ks;function Xc(){return Ks===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ks=CSS.supports("touch-action","none"):Ks=!0),Ks}function SF(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:c,onChangeCommitted:p,orientation:f="horizontal",rootRef:h,scale:m=vF,step:b=1,tabIndex:S,value:T}=e,_=F.useRef(),[x,A]=F.useState(-1),[E,v]=F.useState(-1),[O,R]=F.useState(!1),C=F.useRef(0),[$,N]=OI({controlled:T,default:n??l,name:"Slider"}),P=c&&((B,Q,oe)=>{const pe=B.nativeEvent||B,ue=new pe.constructor(pe.type,pe);Object.defineProperty(ue,"target",{writable:!0,value:{value:Q,name:u}}),c(ue,Q,oe)}),z=Array.isArray($);let V=z?$.slice().sort(DI):[$];V=V.map(B=>Ui(B,l,s));const G=o===!0&&b!==null?[...Array(Math.floor((s-l)/b)+1)].map((B,Q)=>({value:l+b*Q})):o||[],K=G.map(B=>B.value),{isFocusVisibleRef:X,onBlur:W,onFocus:Z,ref:D}=gI(),[ie,ne]=F.useState(-1),M=F.useRef(),ye=Al(D,M),re=Al(h,ye),Se=B=>Q=>{var oe;const pe=Number(Q.currentTarget.getAttribute("data-index"));Z(Q),X.current===!0&&ne(pe),v(pe),B==null||(oe=B.onFocus)==null||oe.call(B,Q)},je=B=>Q=>{var oe;W(Q),X.current===!1&&ne(-1),v(-1),B==null||(oe=B.onBlur)==null||oe.call(B,Q)};lj(()=>{if(r&&M.current.contains(document.activeElement)){var B;(B=document.activeElement)==null||B.blur()}},[r]),r&&x!==-1&&A(-1),r&&ie!==-1&&ne(-1);const we=B=>Q=>{var oe;(oe=B.onChange)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index")),ue=V[pe],ke=K.indexOf(ue);let Ae=Q.target.valueAsNumber;if(G&&b==null){const Ie=K[K.length-1];Ae>Ie?Ae=Ie:Ae{const{current:oe}=M,{width:pe,height:ue,bottom:ke,left:Ae}=oe.getBoundingClientRect();let Ie;de.indexOf("vertical")===0?Ie=(ke-B.y)/ue:Ie=(B.x-Ae)/pe,de.indexOf("-reverse")!==-1&&(Ie=1-Ie);let We;if(We=gF(Ie,l,s),b)We=bF(We,b,l);else{const it=cx(K,We);We=K[it]}We=Ui(We,l,s);let xt=0;if(z){Q?xt=ae.current:xt=cx(V,We),a&&(We=Ui(We,V[xt-1]||-1/0,V[xt+1]||1/0));const it=We;We=dx({values:V,newValue:We,index:xt}),a&&Q||(xt=We.indexOf(it),ae.current=xt)}return{newValue:We,activeIndex:xt}},ee=bl(B=>{const Q=Ws(B,_);if(!Q)return;if(C.current+=1,B.type==="mousemove"&&B.buttons===0){_e(B);return}const{newValue:oe,activeIndex:pe}=ce({finger:Q,move:!0});Vs({sliderRef:M,activeIndex:pe,setActive:A}),N(oe),!O&&C.current>hF&&R(!0),P&&!Ys(oe,$)&&P(B,oe,pe)}),_e=bl(B=>{const Q=Ws(B,_);if(R(!1),!Q)return;const{newValue:oe}=ce({finger:Q,move:!0});A(-1),B.type==="touchend"&&v(-1),p&&p(B,oe),_.current=void 0,ve()}),me=bl(B=>{if(r)return;Xc()||B.preventDefault();const Q=B.changedTouches[0];Q!=null&&(_.current=Q.identifier);const oe=Ws(B,_);if(oe!==!1){const{newValue:ue,activeIndex:ke}=ce({finger:oe});Vs({sliderRef:M,activeIndex:ke,setActive:A}),N(ue),P&&!Ys(ue,$)&&P(B,ue,ke)}C.current=0;const pe=yl(M.current);pe.addEventListener("touchmove",ee),pe.addEventListener("touchend",_e)}),ve=F.useCallback(()=>{const B=yl(M.current);B.removeEventListener("mousemove",ee),B.removeEventListener("mouseup",_e),B.removeEventListener("touchmove",ee),B.removeEventListener("touchend",_e)},[_e,ee]);F.useEffect(()=>{const{current:B}=M;return B.addEventListener("touchstart",me,{passive:Xc()}),()=>{B.removeEventListener("touchstart",me,{passive:Xc()}),ve()}},[ve,me]),F.useEffect(()=>{r&&ve()},[r,ve]);const Ue=B=>Q=>{var oe;if((oe=B.onMouseDown)==null||oe.call(B,Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const pe=Ws(Q,_);if(pe!==!1){const{newValue:ke,activeIndex:Ae}=ce({finger:pe});Vs({sliderRef:M,activeIndex:Ae,setActive:A}),N(ke),P&&!Ys(ke,$)&&P(Q,ke,Ae)}C.current=0;const ue=yl(M.current);ue.addEventListener("mousemove",ee),ue.addEventListener("mouseup",_e)},at=kl(z?V[0]:l,l,s),Je=kl(V[V.length-1],l,s)-at,Ht=(B={})=>{const Q=Yc(B),oe={onMouseDown:Ue(Q||{})},pe=ge({},Q,oe);return ge({},B,{ref:re},pe)},ze=B=>Q=>{var oe;(oe=B.onMouseOver)==null||oe.call(B,Q);const pe=Number(Q.currentTarget.getAttribute("data-index"));v(pe)},Ge=B=>Q=>{var oe;(oe=B.onMouseLeave)==null||oe.call(B,Q),v(-1)};return{active:x,axis:de,axisProps:yF,dragging:O,focusedThumbIndex:ie,getHiddenInputProps:(B={})=>{var Q;const oe=Yc(B),pe={onChange:we(oe||{}),onFocus:Se(oe||{}),onBlur:je(oe||{})},ue=ge({},oe,pe);return ge({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(Q=e.step)!=null?Q:void 0,disabled:r},B,ue,{style:ge({},pF,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ht,getThumbProps:(B={})=>{const Q=Yc(B),oe={onMouseOver:ze(Q||{}),onMouseLeave:Ge(Q||{})};return ge({},B,Q,oe)},marks:G,open:E,range:z,rootRef:re,trackLeap:Je,trackOffset:at,values:V,getThumbStyle:B=>({pointerEvents:x!==-1&&x!==B?"none":void 0})}}const xF=Ly(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),EF=Ly(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wF=Ly(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function _F(e){return _y("MuiCheckbox",e)}const TF=wy("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Zc=TF,AF=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kF=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${dn(r)}`,`size${dn(a)}`]},o=Ay(i,_F,t);return ge({},t,o)},OF=Qn(Gj,{shouldForwardProp:e=>U$(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${dn(n.size)}`],n.color!=="default"&&t[`color${dn(n.color)}`]]}})(({theme:e,ownerState:t})=>ge({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xo(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Zc.checked}, &.${Zc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Zc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IF=y.jsx(EF,{}),RF=y.jsx(xF,{}),CF=y.jsx(wF,{}),NF=F.forwardRef(function(t,n){var r,a;const i=Ty({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IF,color:s="primary",icon:l=RF,indeterminate:u=!1,indeterminateIcon:c=CF,inputProps:p,size:f="medium",className:h}=i,m=_u(i,AF),b=u?c:l,S=u?c:o,T=ge({},i,{color:s,indeterminate:u,size:f}),_=kF(T);return y.jsx(OF,ge({type:"checkbox",inputProps:ge({"data-indeterminate":u},p),icon:F.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:f}),checkedIcon:F.cloneElement(S,{fontSize:(a=S.props.fontSize)!=null?a:f}),ownerState:T,ref:n,className:Kn(_.root,h)},m,{classes:_}))}),DF=NF,LF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MF(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),i=mI(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=i.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?a?`translateX(${a.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function PF(e){return typeof e=="function"?e():e}function Xs(e,t,n){const r=PF(n),a=MF(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const $F=F.forwardRef(function(t,n){const r=Tu(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:c="down",easing:p=a,in:f,onEnter:h,onEntered:m,onEntering:b,onExit:S,onExited:T,onExiting:_,style:x,timeout:A=i,TransitionComponent:E=uj}=t,v=_u(t,LF),O=F.useRef(null),R=Al(l.ref,O,n),C=W=>Z=>{W&&(Z===void 0?W(O.current):W(O.current,Z))},$=C((W,Z)=>{Xs(c,W,u),dj(W),h&&h(W,Z)}),N=C((W,Z)=>{const D=ox({timeout:A,style:x,easing:p},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",ge({},D)),W.style.transition=r.transitions.create("transform",ge({},D)),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,Z)}),P=C(m),z=C(_),V=C(W=>{const Z=ox({timeout:A,style:x,easing:p},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",Z),W.style.transition=r.transitions.create("transform",Z),Xs(c,W,u),S&&S(W)}),G=C(W=>{W.style.webkitTransition="",W.style.transition="",T&&T(W)}),K=W=>{o&&o(O.current,W)},X=F.useCallback(()=>{O.current&&Xs(c,O.current,u)},[c,u]);return F.useEffect(()=>{if(f||c==="down"||c==="right")return;const W=cj(()=>{O.current&&Xs(c,O.current,u)}),Z=mI(O.current);return Z.addEventListener("resize",W),()=>{W.clear(),Z.removeEventListener("resize",W)}},[c,f,u]),F.useEffect(()=>{f||X()},[f,X]),y.jsx(E,ge({nodeRef:O,onEnter:$,onEntered:P,onEntering:N,onExit:V,onExited:G,onExiting:z,addEndListener:K,appear:s,in:f,timeout:A},v,{children:(W,Z)=>F.cloneElement(l,ge({ref:R,style:ge({visibility:W==="exited"&&!f?"hidden":void 0},x,l.props.style)},Z))}))}),ni=$F,jF=e=>!e||!vl(e),FF=jF;function BF(e){return _y("MuiSlider",e)}const UF=wy("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"]),Xn=UF,zF=e=>{const{open:t}=e;return{offset:Kn(t&&Xn.valueLabelOpen),circle:Xn.valueLabelCircle,label:Xn.valueLabelLabel}};function GF(e){const{children:t,className:n,value:r}=e,a=zF(e);return t?F.cloneElement(t,{className:Kn(t.props.className)},y.jsxs(F.Fragment,{children:[t.props.children,y.jsx("span",{className:Kn(a.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:a.circle,children:y.jsx("span",{className:a.label,children:r})})})]})):null}const qF=["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 px(e){return e}const HF=Qn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dn(n.color)}`],n.size!=="medium"&&t[`size${dn(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})=>ge({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"&&ge({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"&&ge({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"},[`&.${Xn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xn.dragging}`]:{[`& .${Xn.thumb}, & .${Xn.track}`]:{transition:"none"}}})),WF=Qn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ge({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})),VF=Qn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?z$(e.palette[t.color].main,.62):G$(e.palette[t.color].main,.5);return ge({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})}),YF=Qn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dn(n.color)}`],n.size!=="medium"&&t[`thumbSize${dn(n.size)}`]]}})(({theme:e,ownerState:t})=>ge({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":ge({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, &.${Xn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Xn.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:xo(e.palette[t.color].main,.16)}`},[`&.${Xn.disabled}`]:{"&:hover":{boxShadow:"none"}}})),KF=Qn(GF,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ge({[`&.${Xn.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"})),XF=Qn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>iI(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ge({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})),ZF=Qn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>iI(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ge({},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})),QF=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${dn(s)}`,l&&`size${dn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dn(l)}`,s&&`thumbColor${dn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ay(u,BF,o)},JF=({children:e})=>e,e2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E,v,O,R,C,$;const N=Ty({props:t,name:"MuiSlider"}),z=Tu().direction==="rtl",{"aria-label":V,"aria-valuetext":G,"aria-labelledby":K,component:X="span",components:W={},componentsProps:Z={},color:D="primary",classes:ie,className:ne,disableSwap:M=!1,disabled:ye=!1,getAriaLabel:re,getAriaValueText:Se,marks:je=!1,max:we=100,min:ae=0,orientation:de="horizontal",size:ce="medium",step:ee=1,scale:_e=px,slotProps:me,slots:ve,track:Ue="normal",valueLabelDisplay:at="off",valueLabelFormat:Je=px}=N,Ht=_u(N,qF),ze=ge({},N,{isRtl:z,max:we,min:ae,classes:ie,disabled:ye,disableSwap:M,orientation:de,marks:je,color:D,size:ce,step:ee,scale:_e,track:Ue,valueLabelDisplay:at,valueLabelFormat:Je}),{axisProps:Ge,getRootProps:Xe,getHiddenInputProps:Ft,getThumbProps:Wt,open:B,active:Q,axis:oe,focusedThumbIndex:pe,range:ue,dragging:ke,marks:Ae,values:Ie,trackOffset:We,trackLeap:xt,getThumbStyle:it}=SF(ge({},ze,{rootRef:n}));ze.marked=Ae.length>0&&Ae.some(Ce=>Ce.label),ze.dragging=ke,ze.focusedThumbIndex=pe;const Le=QF(ze),It=(r=(a=ve==null?void 0:ve.root)!=null?a:W.Root)!=null?r:HF,gr=(i=(o=ve==null?void 0:ve.rail)!=null?o:W.Rail)!=null?i:WF,mr=(s=(l=ve==null?void 0:ve.track)!=null?l:W.Track)!=null?s:VF,Ze=(u=(c=ve==null?void 0:ve.thumb)!=null?c:W.Thumb)!=null?u:YF,ia=(p=(f=ve==null?void 0:ve.valueLabel)!=null?f:W.ValueLabel)!=null?p:KF,br=(h=(m=ve==null?void 0:ve.mark)!=null?m:W.Mark)!=null?h:XF,Fn=(b=(S=ve==null?void 0:ve.markLabel)!=null?S:W.MarkLabel)!=null?b:ZF,yr=(T=(_=ve==null?void 0:ve.input)!=null?_:W.Input)!=null?T:"input",Bn=(x=me==null?void 0:me.root)!=null?x:Z.root,Un=(A=me==null?void 0:me.rail)!=null?A:Z.rail,zn=(E=me==null?void 0:me.track)!=null?E:Z.track,oa=(v=me==null?void 0:me.thumb)!=null?v:Z.thumb,tr=(O=me==null?void 0:me.valueLabel)!=null?O:Z.valueLabel,Li=(R=me==null?void 0:me.mark)!=null?R:Z.mark,Gn=(C=me==null?void 0:me.markLabel)!=null?C:Z.markLabel,jr=($=me==null?void 0:me.input)!=null?$:Z.input,he=zr({elementType:It,getSlotProps:Xe,externalSlotProps:Bn,externalForwardedProps:Ht,additionalProps:ge({},FF(It)&&{as:X}),ownerState:ge({},ze,Bn==null?void 0:Bn.ownerState),className:[Le.root,ne]}),sa=zr({elementType:gr,externalSlotProps:Un,ownerState:ze,className:Le.rail}),Zt=zr({elementType:mr,externalSlotProps:zn,additionalProps:{style:ge({},Ge[oe].offset(We),Ge[oe].leap(xt))},ownerState:ge({},ze,zn==null?void 0:zn.ownerState),className:Le.track}),mt=zr({elementType:Ze,getSlotProps:Wt,externalSlotProps:oa,ownerState:ge({},ze,oa==null?void 0:oa.ownerState),className:Le.thumb}),la=zr({elementType:ia,externalSlotProps:tr,ownerState:ge({},ze,tr==null?void 0:tr.ownerState),className:Le.valueLabel}),Me=zr({elementType:br,externalSlotProps:Li,ownerState:ze,className:Le.mark}),gn=zr({elementType:Fn,externalSlotProps:Gn,ownerState:ze,className:Le.markLabel}),Na=zr({elementType:yr,getSlotProps:Ft,externalSlotProps:jr,ownerState:ze});return y.jsxs(It,ge({},he,{children:[y.jsx(gr,ge({},sa)),y.jsx(mr,ge({},Zt)),Ae.filter(Ce=>Ce.value>=ae&&Ce.value<=we).map((Ce,Qe)=>{const Bt=kl(Ce.value,ae,we),st=Ge[oe].offset(Bt);let bt;return Ue===!1?bt=Ie.indexOf(Ce.value)!==-1:bt=Ue==="normal"&&(ue?Ce.value>=Ie[0]&&Ce.value<=Ie[Ie.length-1]:Ce.value<=Ie[0])||Ue==="inverted"&&(ue?Ce.value<=Ie[0]||Ce.value>=Ie[Ie.length-1]:Ce.value>=Ie[0]),y.jsxs(F.Fragment,{children:[y.jsx(br,ge({"data-index":Qe},Me,!vl(br)&&{markActive:bt},{style:ge({},st,Me.style),className:Kn(Me.className,bt&&Le.markActive)})),Ce.label!=null?y.jsx(Fn,ge({"aria-hidden":!0,"data-index":Qe},gn,!vl(Fn)&&{markLabelActive:bt},{style:ge({},st,gn.style),className:Kn(Le.markLabel,gn.className,bt&&Le.markLabelActive),children:Ce.label})):null]},Qe)}),Ie.map((Ce,Qe)=>{const Bt=kl(Ce,ae,we),st=Ge[oe].offset(Bt),bt=at==="off"?JF:ia;return y.jsx(bt,ge({},!vl(bt)&&{valueLabelFormat:Je,valueLabelDisplay:at,value:typeof Je=="function"?Je(_e(Ce),Qe):Je,index:Qe,open:B===Qe||Q===Qe||at==="on",disabled:ye},la,{children:y.jsx(Ze,ge({"data-index":Qe},mt,{className:Kn(Le.thumb,mt.className,Q===Qe&&Le.active,pe===Qe&&Le.focusVisible),style:ge({},st,it(Qe),mt.style),children:y.jsx(yr,ge({"data-index":Qe,"aria-label":re?re(Qe):V,"aria-valuenow":_e(Ce),"aria-labelledby":K,"aria-valuetext":Se?Se(_e(Ce),Qe):G,value:Ie[Qe]},Na))}))}),Qe)})]}))}),Du=e2;function t2(e){return _y("MuiTooltip",e)}const n2=wy("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Kr=n2,r2=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function a2(e){return Math.round(e*1e5)/1e5}const i2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:a,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${dn(i.split("-")[0])}`],arrow:["arrow"]};return Ay(o,t2,t)},o2=Qn(Ny,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>ge({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Kr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kr.arrow}`]:ge({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Kr.arrow}`]:ge({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),s2=Qn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dn(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ge({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${a2(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Kr.popper}[data-popper-placement*="left"] &`]:ge({transformOrigin:"right center"},t.isRtl?ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ge({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Kr.popper}[data-popper-placement*="right"] &`]:ge({transformOrigin:"left center"},t.isRtl?ge({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ge({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Kr.popper}[data-popper-placement*="top"] &`]:ge({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Kr.popper}[data-popper-placement*="bottom"] &`]:ge({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),l2=Qn("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:xo(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Zs=!1,Qc=null,zi={x:0,y:0};function Qs(e,t){return n=>{t&&t(n),e(n)}}const u2=F.forwardRef(function(t,n){var r,a,i,o,s,l,u,c,p,f,h,m,b,S,T,_,x,A,E;const v=Ty({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:R,components:C={},componentsProps:$={},describeChild:N=!1,disableFocusListener:P=!1,disableHoverListener:z=!1,disableInteractive:V=!1,disableTouchListener:G=!1,enterDelay:K=100,enterNextDelay:X=0,enterTouchDelay:W=700,followCursor:Z=!1,id:D,leaveDelay:ie=0,leaveTouchDelay:ne=1500,onClose:M,onOpen:ye,open:re,placement:Se="bottom",PopperComponent:je,PopperProps:we={},slotProps:ae={},slots:de={},title:ce,TransitionComponent:ee=sx,TransitionProps:_e}=v,me=_u(v,r2),ve=F.isValidElement(R)?R:y.jsx("span",{children:R}),Ue=Tu(),at=Ue.direction==="rtl",[Je,Ht]=F.useState(),[ze,Ge]=F.useState(null),Xe=F.useRef(!1),Ft=V||Z,Wt=F.useRef(),B=F.useRef(),Q=F.useRef(),oe=F.useRef(),[pe,ue]=OI({controlled:re,default:!1,name:"Tooltip",state:"open"});let ke=pe;const Ae=Uj(D),Ie=F.useRef(),We=F.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(oe.current)},[]);F.useEffect(()=>()=>{clearTimeout(Wt.current),clearTimeout(B.current),clearTimeout(Q.current),We()},[We]);const xt=Pe=>{clearTimeout(Qc),Zs=!0,ue(!0),ye&&!ke&&ye(Pe)},it=bl(Pe=>{clearTimeout(Qc),Qc=setTimeout(()=>{Zs=!1},800+ie),ue(!1),M&&ke&&M(Pe),clearTimeout(Wt.current),Wt.current=setTimeout(()=>{Xe.current=!1},Ue.transitions.duration.shortest)}),Le=Pe=>{Xe.current&&Pe.type!=="touchstart"||(Je&&Je.removeAttribute("title"),clearTimeout(B.current),clearTimeout(Q.current),K||Zs&&X?B.current=setTimeout(()=>{xt(Pe)},Zs?X:K):xt(Pe))},It=Pe=>{clearTimeout(B.current),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ie)},{isFocusVisibleRef:gr,onBlur:mr,onFocus:Ze,ref:ia}=gI(),[,br]=F.useState(!1),Fn=Pe=>{mr(Pe),gr.current===!1&&(br(!1),It(Pe))},yr=Pe=>{Je||Ht(Pe.currentTarget),Ze(Pe),gr.current===!0&&(br(!0),Le(Pe))},Bn=Pe=>{Xe.current=!0;const Qt=ve.props;Qt.onTouchStart&&Qt.onTouchStart(Pe)},Un=Le,zn=It,oa=Pe=>{Bn(Pe),clearTimeout(Q.current),clearTimeout(Wt.current),We(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,Le(Pe)},W)},tr=Pe=>{ve.props.onTouchEnd&&ve.props.onTouchEnd(Pe),We(),clearTimeout(Q.current),Q.current=setTimeout(()=>{it(Pe)},ne)};F.useEffect(()=>{if(!ke)return;function Pe(Qt){(Qt.key==="Escape"||Qt.key==="Esc")&&it(Qt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[it,ke]);const Li=Al(ve.ref,ia,Ht,n);!ce&&ce!==0&&(ke=!1);const Gn=F.useRef(),jr=Pe=>{const Qt=ve.props;Qt.onMouseMove&&Qt.onMouseMove(Pe),zi={x:Pe.clientX,y:Pe.clientY},Gn.current&&Gn.current.update()},he={},sa=typeof ce=="string";N?(he.title=!ke&&sa&&!z?ce:null,he["aria-describedby"]=ke?Ae:null):(he["aria-label"]=sa?ce:null,he["aria-labelledby"]=ke&&!sa?Ae:null);const Zt=ge({},he,me,ve.props,{className:Kn(me.className,ve.props.className),onTouchStart:Bn,ref:Li},Z?{onMouseMove:jr}:{}),mt={};G||(Zt.onTouchStart=oa,Zt.onTouchEnd=tr),z||(Zt.onMouseOver=Qs(Un,Zt.onMouseOver),Zt.onMouseLeave=Qs(zn,Zt.onMouseLeave),Ft||(mt.onMouseOver=Un,mt.onMouseLeave=zn)),P||(Zt.onFocus=Qs(yr,Zt.onFocus),Zt.onBlur=Qs(Fn,Zt.onBlur),Ft||(mt.onFocus=yr,mt.onBlur=Fn));const la=F.useMemo(()=>{var Pe;let Qt=[{name:"arrow",enabled:!!ze,options:{element:ze,padding:4}}];return(Pe=we.popperOptions)!=null&&Pe.modifiers&&(Qt=Qt.concat(we.popperOptions.modifiers)),ge({},we.popperOptions,{modifiers:Qt})},[ze,we]),Me=ge({},v,{isRtl:at,arrow:O,disableInteractive:Ft,placement:Se,PopperComponentProp:je,touch:Xe.current}),gn=i2(Me),Na=(r=(a=de.popper)!=null?a:C.Popper)!=null?r:o2,Ce=(i=(o=(s=de.transition)!=null?s:C.Transition)!=null?o:ee)!=null?i:sx,Qe=(l=(u=de.tooltip)!=null?u:C.Tooltip)!=null?l:s2,Bt=(c=(p=de.arrow)!=null?p:C.Arrow)!=null?c:l2,st=Hs(Na,ge({},we,(f=ae.popper)!=null?f:$.popper,{className:Kn(gn.popper,we==null?void 0:we.className,(h=(m=ae.popper)!=null?m:$.popper)==null?void 0:h.className)}),Me),bt=Hs(Ce,ge({},_e,(b=ae.transition)!=null?b:$.transition),Me),qn=Hs(Qe,ge({},(S=ae.tooltip)!=null?S:$.tooltip,{className:Kn(gn.tooltip,(T=(_=ae.tooltip)!=null?_:$.tooltip)==null?void 0:T.className)}),Me),vr=Hs(Bt,ge({},(x=ae.arrow)!=null?x:$.arrow,{className:Kn(gn.arrow,(A=(E=ae.arrow)!=null?E:$.arrow)==null?void 0:A.className)}),Me);return y.jsxs(F.Fragment,{children:[F.cloneElement(ve,Zt),y.jsx(Na,ge({as:je??Ny,placement:Se,anchorEl:Z?{getBoundingClientRect:()=>({top:zi.y,left:zi.x,right:zi.x,bottom:zi.y,width:0,height:0})}:Je,popperRef:Gn,open:Je?ke:!1,id:Ae,transition:!0},mt,st,{popperOptions:la,children:({TransitionProps:Pe})=>y.jsx(Ce,ge({timeout:Ue.transitions.duration.shorter},Pe,bt,{children:y.jsxs(Qe,ge({},qn,{children:[ce,O?y.jsx(Bt,ge({},vr,{ref:Ge})):null]}))}))}))]})}),c2=u2,d2=(e,t="down")=>{const n=Tu(),[r,a]=F.useState(!1),i=n.breakpoints[t](e).split("@media")[1].trim();return F.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),r},p2=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function f2(e){return e.tldr_topic??e.name}var Ol=globalThis&&globalThis.__assign||function(){return Ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -1955,7 +1955,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,Zfe=H.audio` height: 0; width: 0; -`,Qfe=()=>{const e=Kt(),{setPlayingNode:t}=Cu(n=>n);switch(F.useEffect(()=>{var r,a;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(Ure,{});case"data_series":return y.jsx(Bne,{});case"tribe_message":return y.jsx($re,{});case"Tweet":return y.jsx(Zre,{});case"topic":return y.jsx(Xre,{});case"show":return y.jsx(Kre,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(YN,{});case"document":return y.jsx(Wfe,{});case"episode":return y.jsx(Nre,{},e.ref_id);case"image":return y.jsx(Pre,{});default:return y.jsx(Lfe,{})}},Jfe=F.memo(Qfe);var ehe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&the(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?XO:nhe;o(i,r),i.onload||XO(i,r),a.appendChild(i)};function the(e,t){for(var n in t)e.setAttribute(n,t[n])}function XO(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 nhe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rhe=function(t){return ahe(t)&&!ihe(t)};function ahe(e){return!!e&&typeof e=="object"}function ihe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||lhe(e)}var ohe=typeof Symbol=="function"&&Symbol.for,she=ohe?Symbol.for("react.element"):60103;function lhe(e){return e.$$typeof===she}function uhe(e){return Array.isArray(e)?[]:{}}function cs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(uhe(e),e,t):e}function che(e,t,n){return e.concat(t).map(function(r){return cs(r,n)})}function dhe(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}function phe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ZO(e){return Object.keys(e).concat(phe(e))}function CD(e,t){try{return t in e}catch{return!1}}function fhe(e,t){return CD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function hhe(e,t,n){var r={};return n.isMergeableObject(e)&&ZO(e).forEach(function(a){r[a]=cs(e[a],n)}),ZO(t).forEach(function(a){fhe(e,a)||(CD(e,a)&&n.isMergeableObject(t[a])?r[a]=dhe(a,n)(e[a],t[a],n):r[a]=cs(t[a],n))}),r}function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||che,n.isMergeableObject=n.isMergeableObject||rhe,n.cloneUnlessOtherwiseSpecified=cs;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hhe(e,t,n):cs(t,n)}wi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wi(r,a,n)},{})};var ghe=wi,ND=ghe,mhe=Object.create,Ac=Object.defineProperty,bhe=Object.getOwnPropertyDescriptor,yhe=Object.getOwnPropertyNames,vhe=Object.getPrototypeOf,She=Object.prototype.hasOwnProperty,xhe=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},DD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yhe(t))!She.call(e,a)&&a!==n&&Ac(e,a,{get:()=>t[a],enumerable:!(r=bhe(t,a))||r.enumerable});return e},gS=(e,t,n)=>(n=e!=null?mhe(vhe(e)):{},DD(t||!e||!e.__esModule?Ac(n,"default",{value:e,enumerable:!0}):n,e)),Ehe=e=>DD(Ac({},"__esModule",{value:!0}),e),LD={};xhe(LD,{callPlayer:()=>jhe,getConfig:()=>Phe,getSDK:()=>Mhe,isBlobUrl:()=>Bhe,isMediaStream:()=>Fhe,lazy:()=>Ahe,omit:()=>$he,parseEndTime:()=>Nhe,parseStartTime:()=>Che,queryString:()=>Lhe,randomString:()=>Dhe,supportsWebKitPresentationMode:()=>Uhe});var kc=Ehe(LD),whe=gS(F),_he=gS(ehe),The=gS(ND);const Ahe=e=>whe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),khe=/[?&#](?:start|t)=([0-9hms]+)/,Ohe=/[?&#]end=([0-9hms]+)/,vy=/(\d+)(h|m|s)/g,Ihe=/^\d+$/;function MD(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(vy))return Rhe(r);if(Ihe.test(r))return parseInt(r)}}function Rhe(e){let t=0,n=vy.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=vy.exec(e)}return t}function Che(e){return MD(e,khe)}function Nhe(e){return MD(e,Ohe)}function Dhe(){return Math.random().toString(36).substr(2,5)}function Lhe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Hm(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 za={},Mhe=function(t,n,r=null,a=()=>!0,i=_he.default){const o=Hm(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(za[t]){za[t].push({resolve:s,reject:l});return}za[t]=[{resolve:s,reject:l}];const u=c=>{za[t].forEach(p=>p.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Hm(n))}}i(t,c=>{c?(za[t].forEach(p=>p.reject(c)),za[t]=null):r||u(Hm(n))})})};function Phe(e,t){return(0,The.default)(t.config,e.config)}function $he(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function jhe(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 Fhe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Bhe(e){return/^blob:/.test(e)}function Uhe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var mS=Object.defineProperty,zhe=Object.getOwnPropertyDescriptor,Ghe=Object.getOwnPropertyNames,qhe=Object.prototype.hasOwnProperty,Hhe=(e,t)=>{for(var n in t)mS(e,n,{get:t[n],enumerable:!0})},Whe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ghe(t))!qhe.call(e,a)&&a!==n&&mS(e,a,{get:()=>t[a],enumerable:!(r=zhe(t,a))||r.enumerable});return e},Vhe=e=>Whe(mS({},"__esModule",{value:!0}),e),PD={};Hhe(PD,{AUDIO_EXTENSIONS:()=>bS,DASH_EXTENSIONS:()=>KD,FLV_EXTENSIONS:()=>XD,HLS_EXTENSIONS:()=>vS,MATCH_URL_DAILYMOTION:()=>HD,MATCH_URL_FACEBOOK:()=>FD,MATCH_URL_FACEBOOK_WATCH:()=>BD,MATCH_URL_KALTURA:()=>YD,MATCH_URL_MIXCLOUD:()=>WD,MATCH_URL_SOUNDCLOUD:()=>$D,MATCH_URL_STREAMABLE:()=>UD,MATCH_URL_TWITCH_CHANNEL:()=>qD,MATCH_URL_TWITCH_VIDEO:()=>GD,MATCH_URL_VIDYARD:()=>VD,MATCH_URL_VIMEO:()=>jD,MATCH_URL_WISTIA:()=>zD,MATCH_URL_YOUTUBE:()=>Sy,VIDEO_EXTENSIONS:()=>yS,canPlay:()=>Khe});var Yhe=Vhe(PD),QO=kc;const Sy=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,$D=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,jD=/vimeo\.com\/(?!progressive_redirect).+/,FD=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,BD=/^https?:\/\/fb\.watch\/.+$/,UD=/streamable\.com\/([a-z0-9]+)$/,zD=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,GD=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,qD=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,HD=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,WD=/mixcloud\.com\/([^/]+\/[^/]+)/,VD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,YD=/^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-_].*)$/,bS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,vS=/\.(m3u8)($|\?)/i,KD=/\.(mpd)($|\?)/i,XD=/\.(flv)($|\?)/i,xy=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&xy(t)||xy(t.src))return!0;return!1}return(0,QO.isMediaStream)(e)||(0,QO.isBlobUrl)(e)?!0:bS.test(e)||yS.test(e)||vS.test(e)||KD.test(e)||XD.test(e)},Khe={youtube:e=>e instanceof Array?e.every(t=>Sy.test(t)):Sy.test(e),soundcloud:e=>$D.test(e)&&!bS.test(e),vimeo:e=>jD.test(e)&&!yS.test(e)&&!vS.test(e),facebook:e=>FD.test(e)||BD.test(e),streamable:e=>UD.test(e),wistia:e=>zD.test(e),twitch:e=>GD.test(e)||qD.test(e),dailymotion:e=>HD.test(e),mixcloud:e=>WD.test(e),vidyard:e=>VD.test(e),kaltura:e=>YD.test(e),file:xy};var SS=Object.defineProperty,Xhe=Object.getOwnPropertyDescriptor,Zhe=Object.getOwnPropertyNames,Qhe=Object.prototype.hasOwnProperty,Jhe=(e,t)=>{for(var n in t)SS(e,n,{get:t[n],enumerable:!0})},ege=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zhe(t))!Qhe.call(e,a)&&a!==n&&SS(e,a,{get:()=>t[a],enumerable:!(r=Xhe(t,a))||r.enumerable});return e},tge=e=>ege(SS({},"__esModule",{value:!0}),e),ZD={};Jhe(ZD,{default:()=>rge});var nge=tge(ZD),mn=kc,un=Yhe,rge=[{key:"youtube",name:"YouTube",canPlay:un.canPlay.youtube,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./YouTube-d61d65bc.js").then(e=>e.Y),["assets/YouTube-d61d65bc.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:un.canPlay.soundcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./SoundCloud-a8055cf2.js").then(e=>e.S),["assets/SoundCloud-a8055cf2.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:un.canPlay.vimeo,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vimeo-f656196f.js").then(e=>e.V),["assets/Vimeo-f656196f.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:un.canPlay.facebook,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Facebook-db1064aa.js").then(e=>e.F),["assets/Facebook-db1064aa.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:un.canPlay.streamable,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Streamable-48b1afbb.js").then(e=>e.S),["assets/Streamable-48b1afbb.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:un.canPlay.wistia,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Wistia-10f2b48b.js").then(e=>e.W),["assets/Wistia-10f2b48b.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:un.canPlay.twitch,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Twitch-b6e5c4bd.js").then(e=>e.T),["assets/Twitch-b6e5c4bd.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:un.canPlay.dailymotion,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./DailyMotion-92f5ad1a.js").then(e=>e.D),["assets/DailyMotion-92f5ad1a.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:un.canPlay.mixcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Mixcloud-54129857.js").then(e=>e.M),["assets/Mixcloud-54129857.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:un.canPlay.vidyard,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vidyard-1e807bc4.js").then(e=>e.V),["assets/Vidyard-1e807bc4.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:un.canPlay.kaltura,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Kaltura-ca215acb.js").then(e=>e.K),["assets/Kaltura-ca215acb.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:un.canPlay.file,canEnablePIP:e=>un.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,mn.supportsWebKitPresentationMode)())&&!un.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./FilePlayer-83615655.js").then(e=>e.F),["assets/FilePlayer-83615655.js","assets/index-c431d222.js","assets/index-a2878e02.css"]))}],JO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function age(e,t){return!!(e===t||JO(e)&&JO(t))}function ige(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},JD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gge(t))!bge.call(e,a)&&a!==n&&Oc(e,a,{get:()=>t[a],enumerable:!(r=hge(t,a))||r.enumerable});return e},vge=(e,t,n)=>(n=e!=null?fge(mge(e)):{},JD(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),Sge=e=>JD(Oc({},"__esModule",{value:!0}),e),eL={};yge(eL,{defaultProps:()=>wge,propTypes:()=>Ege});var tL=Sge(eL),xge=vge(Nj);const{string:nn,bool:rn,number:Ga,array:Wm,oneOfType:ro,shape:On,object:an,func:Rt,node:eI}=xge.default,Ege={url:ro([nn,Wm,an]),playing:rn,loop:rn,controls:rn,volume:Ga,muted:rn,playbackRate:Ga,width:ro([nn,Ga]),height:ro([nn,Ga]),style:an,progressInterval:Ga,playsinline:rn,pip:rn,stopOnUnmount:rn,light:ro([rn,nn,an]),playIcon:eI,previewTabIndex:Ga,fallback:eI,oEmbedUrl:nn,wrapper:ro([nn,Rt,On({render:Rt.isRequired})]),config:On({soundcloud:On({options:an}),youtube:On({playerVars:an,embedOptions:an,onUnstarted:Rt}),facebook:On({appId:nn,version:nn,playerId:nn,attributes:an}),dailymotion:On({params:an}),vimeo:On({playerOptions:an,title:nn}),file:On({attributes:an,tracks:Wm,forceVideo:rn,forceAudio:rn,forceHLS:rn,forceSafariHLS:rn,forceDisableHls:rn,forceDASH:rn,forceFLV:rn,hlsOptions:an,hlsVersion:nn,dashVersion:nn,flvVersion:nn}),wistia:On({options:an,playerId:nn,customControls:Wm}),mixcloud:On({options:an}),twitch:On({options:an,playerId:nn}),vidyard:On({options:an})}),onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt},Ut=()=>{},wge={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:Ut},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:Ut,onStart:Ut,onPlay:Ut,onPause:Ut,onBuffer:Ut,onBufferEnd:Ut,onEnded:Ut,onError:Ut,onDuration:Ut,onSeek:Ut,onPlaybackRateChange:Ut,onPlaybackQualityChange:Ut,onProgress:Ut,onClickPreview:Ut,onEnablePIP:Ut,onDisablePIP:Ut};var _ge=Object.create,Rs=Object.defineProperty,Tge=Object.getOwnPropertyDescriptor,Age=Object.getOwnPropertyNames,kge=Object.getPrototypeOf,Oge=Object.prototype.hasOwnProperty,Ige=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rge=(e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},nL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Age(t))!Oge.call(e,a)&&a!==n&&Rs(e,a,{get:()=>t[a],enumerable:!(r=Tge(t,a))||r.enumerable});return e},rL=(e,t,n)=>(n=e!=null?_ge(kge(e)):{},nL(t||!e||!e.__esModule?Rs(n,"default",{value:e,enumerable:!0}):n,e)),Cge=e=>nL(Rs({},"__esModule",{value:!0}),e),_t=(e,t,n)=>(Ige(e,typeof t!="symbol"?t+"":t,n),n),aL={};Rge(aL,{default:()=>Ic});var Nge=Cge(aL),tI=rL(F),Dge=rL(QD),iL=tL,Lge=kc;const Mge=5e3;class Ic extends tI.Component{constructor(){super(...arguments),_t(this,"mounted",!1),_t(this,"isReady",!1),_t(this,"isPlaying",!1),_t(this,"isLoading",!0),_t(this,"loadOnReady",null),_t(this,"startOnPlay",!0),_t(this,"seekOnPlay",null),_t(this,"onDurationCalled",!1),_t(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),_t(this,"getInternalPlayer",t=>this.player?this.player[t]:null),_t(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),_t(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),_t(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()}),_t(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),_t(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),_t(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),_t(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)}),_t(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:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,Dge.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,Lge.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&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Mge));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?tI.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}}_t(Ic,"displayName","Player");_t(Ic,"propTypes",iL.propTypes);_t(Ic,"defaultProps",iL.defaultProps);var Pge=Object.create,Cs=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Fge=Object.getPrototypeOf,Bge=Object.prototype.hasOwnProperty,Uge=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zge=(e,t)=>{for(var n in t)Cs(e,n,{get:t[n],enumerable:!0})},oL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jge(t))!Bge.call(e,a)&&a!==n&&Cs(e,a,{get:()=>t[a],enumerable:!(r=$ge(t,a))||r.enumerable});return e},Ns=(e,t,n)=>(n=e!=null?Pge(Fge(e)):{},oL(t||!e||!e.__esModule?Cs(n,"default",{value:e,enumerable:!0}):n,e)),Gge=e=>oL(Cs({},"__esModule",{value:!0}),e),wt=(e,t,n)=>(Uge(e,typeof t!="symbol"?t+"":t,n),n),sL={};zge(sL,{createReactPlayer:()=>Qge});var qge=Gge(sL),Wa=Ns(F),Hge=Ns(ND),Vm=Ns(lge),nI=Ns(QD),co=tL,lL=kc,Wge=Ns(Nge);const Vge=(0,lL.lazy)(()=>bn(()=>import("./Preview-c7cee466.js").then(e=>e.P),["assets/Preview-c7cee466.js","assets/index-c431d222.js","assets/index-a2878e02.css"])),Yge=typeof window<"u"&&window.document,Kge=typeof At<"u"&&At.window&&At.window.document,Xge=Object.keys(co.propTypes),Zge=Yge||Kge?Wa.Suspense:()=>null,ao=[],Qge=(e,t)=>{var n;return n=class extends Wa.Component{constructor(){super(...arguments),wt(this,"state",{showPreview:!!this.props.light}),wt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),wt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),wt(this,"showPreview",()=>{this.setState({showPreview:!0})}),wt(this,"getDuration",()=>this.player?this.player.getDuration():null),wt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),wt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),wt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),wt(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),wt(this,"handleReady",()=>{this.props.onReady(this)}),wt(this,"getActivePlayer",(0,Vm.default)(r=>{for(const a of[...ao,...e])if(a.canPlay(r))return a;return t||null})),wt(this,"getConfig",(0,Vm.default)((r,a)=>{const{config:i}=this.props;return Hge.default.all([co.defaultProps.config,co.defaultProps.config[a]||{},i,i[a]||{}])})),wt(this,"getAttributes",(0,Vm.default)(r=>(0,lL.omit)(this.props,Xge))),wt(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Wa.default.createElement(Wge.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,nI.default)(this.props,r)||!(0,nI.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return Wa.default.createElement(Vge,{url:r,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Wa.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...c},Wa.default.createElement(Zge,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},wt(n,"displayName","ReactPlayer"),wt(n,"propTypes",co.propTypes),wt(n,"defaultProps",co.defaultProps),wt(n,"addCustomPlayer",r=>{ao.push(r)}),wt(n,"removeCustomPlayers",()=>{ao.length=0}),wt(n,"canPlay",r=>{for(const a of[...ao,...e])if(a.canPlay(r))return!0;return!1}),wt(n,"canEnablePIP",r=>{for(const a of[...ao,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var Jge=Object.create,Rc=Object.defineProperty,eme=Object.getOwnPropertyDescriptor,tme=Object.getOwnPropertyNames,nme=Object.getPrototypeOf,rme=Object.prototype.hasOwnProperty,ame=(e,t)=>{for(var n in t)Rc(e,n,{get:t[n],enumerable:!0})},uL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tme(t))!rme.call(e,a)&&a!==n&&Rc(e,a,{get:()=>t[a],enumerable:!(r=eme(t,a))||r.enumerable});return e},ime=(e,t,n)=>(n=e!=null?Jge(nme(e)):{},uL(t||!e||!e.__esModule?Rc(n,"default",{value:e,enumerable:!0}):n,e)),ome=e=>uL(Rc({},"__esModule",{value:!0}),e),cL={};ame(cL,{default:()=>cme});var sme=ome(cL),Ey=ime(nge),lme=qge;const ume=Ey.default[Ey.default.length-1];var cme=(0,lme.createReactPlayer)(Ey.default,ume);const dme=St(sme),rI=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${a}${i}:${o}`},pme=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,c]=F.useState(.5),[p,f]=F.useState(!1),[h,m]=F.useState(.5),b=(T,_)=>{const x=Array.isArray(_)?_[0]:_;c(x),o(T,x),p&&f(!1)},S=()=>{p?(c(h),o(new Event("input"),h)):(m(u),c(0),o(new Event("input"),0)),f(!p)};return y.jsxs(q,{children:[(!l||t)&&y.jsx(vme,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:r}),y.jsxs(fme,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(mme,{onClick:n,size:"small",children:e?y.jsx(Ru,{}):y.jsx(Cy,{})}),y.jsxs(Sme,{direction:"row",children:[y.jsx("span",{children:rI(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:rI(a)})]}),y.jsxs(bme,{direction:"row",px:9,children:[y.jsx(Du,{className:"volume-slider",max:1,min:0,onChange:b,size:"small",step:.1,value:u}),y.jsx(hme,{onClick:S,children:p?y.jsx(gme,{children:y.jsx(Dj,{})}):y.jsx(Lj,{})})]}),y.jsx(yme,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(Pj,{}):y.jsx(Mj,{})})]})]})},fme=H(q)` +`,Qfe=()=>{const e=Kt(),{setPlayingNode:t}=Cu(n=>n);switch(F.useEffect(()=>{var r,a;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(Ure,{});case"data_series":return y.jsx(Bne,{});case"tribe_message":return y.jsx($re,{});case"Tweet":return y.jsx(Zre,{});case"topic":return y.jsx(Xre,{});case"show":return y.jsx(Kre,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(YN,{});case"document":return y.jsx(Wfe,{});case"episode":return y.jsx(Nre,{},e.ref_id);case"image":return y.jsx(Pre,{});default:return y.jsx(Lfe,{})}},Jfe=F.memo(Qfe);var ehe=function(t,n,r){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&the(i,n.attrs),n.text&&(i.text=""+n.text);var o="onload"in i?XO:nhe;o(i,r),i.onload||XO(i,r),a.appendChild(i)};function the(e,t){for(var n in t)e.setAttribute(n,t[n])}function XO(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 nhe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var rhe=function(t){return ahe(t)&&!ihe(t)};function ahe(e){return!!e&&typeof e=="object"}function ihe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||lhe(e)}var ohe=typeof Symbol=="function"&&Symbol.for,she=ohe?Symbol.for("react.element"):60103;function lhe(e){return e.$$typeof===she}function uhe(e){return Array.isArray(e)?[]:{}}function cs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(uhe(e),e,t):e}function che(e,t,n){return e.concat(t).map(function(r){return cs(r,n)})}function dhe(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}function phe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ZO(e){return Object.keys(e).concat(phe(e))}function CD(e,t){try{return t in e}catch{return!1}}function fhe(e,t){return CD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function hhe(e,t,n){var r={};return n.isMergeableObject(e)&&ZO(e).forEach(function(a){r[a]=cs(e[a],n)}),ZO(t).forEach(function(a){fhe(e,a)||(CD(e,a)&&n.isMergeableObject(t[a])?r[a]=dhe(a,n)(e[a],t[a],n):r[a]=cs(t[a],n))}),r}function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||che,n.isMergeableObject=n.isMergeableObject||rhe,n.cloneUnlessOtherwiseSpecified=cs;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hhe(e,t,n):cs(t,n)}wi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return wi(r,a,n)},{})};var ghe=wi,ND=ghe,mhe=Object.create,Ac=Object.defineProperty,bhe=Object.getOwnPropertyDescriptor,yhe=Object.getOwnPropertyNames,vhe=Object.getPrototypeOf,She=Object.prototype.hasOwnProperty,xhe=(e,t)=>{for(var n in t)Ac(e,n,{get:t[n],enumerable:!0})},DD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yhe(t))!She.call(e,a)&&a!==n&&Ac(e,a,{get:()=>t[a],enumerable:!(r=bhe(t,a))||r.enumerable});return e},gS=(e,t,n)=>(n=e!=null?mhe(vhe(e)):{},DD(t||!e||!e.__esModule?Ac(n,"default",{value:e,enumerable:!0}):n,e)),Ehe=e=>DD(Ac({},"__esModule",{value:!0}),e),LD={};xhe(LD,{callPlayer:()=>jhe,getConfig:()=>Phe,getSDK:()=>Mhe,isBlobUrl:()=>Bhe,isMediaStream:()=>Fhe,lazy:()=>Ahe,omit:()=>$he,parseEndTime:()=>Nhe,parseStartTime:()=>Che,queryString:()=>Lhe,randomString:()=>Dhe,supportsWebKitPresentationMode:()=>Uhe});var kc=Ehe(LD),whe=gS(F),_he=gS(ehe),The=gS(ND);const Ahe=e=>whe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),khe=/[?&#](?:start|t)=([0-9hms]+)/,Ohe=/[?&#]end=([0-9hms]+)/,vy=/(\d+)(h|m|s)/g,Ihe=/^\d+$/;function MD(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(vy))return Rhe(r);if(Ihe.test(r))return parseInt(r)}}function Rhe(e){let t=0,n=vy.exec(e);for(;n!==null;){const[,r,a]=n;a==="h"&&(t+=parseInt(r,10)*60*60),a==="m"&&(t+=parseInt(r,10)*60),a==="s"&&(t+=parseInt(r,10)),n=vy.exec(e)}return t}function Che(e){return MD(e,khe)}function Nhe(e){return MD(e,Ohe)}function Dhe(){return Math.random().toString(36).substr(2,5)}function Lhe(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Hm(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 za={},Mhe=function(t,n,r=null,a=()=>!0,i=_he.default){const o=Hm(n);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(za[t]){za[t].push({resolve:s,reject:l});return}za[t]=[{resolve:s,reject:l}];const u=c=>{za[t].forEach(p=>p.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Hm(n))}}i(t,c=>{c?(za[t].forEach(p=>p.reject(c)),za[t]=null):r||u(Hm(n))})})};function Phe(e,t){return(0,The.default)(t.config,e.config)}function $he(e,...t){const n=[].concat(...t),r={},a=Object.keys(e);for(const i of a)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function jhe(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 Fhe(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Bhe(e){return/^blob:/.test(e)}function Uhe(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var mS=Object.defineProperty,zhe=Object.getOwnPropertyDescriptor,Ghe=Object.getOwnPropertyNames,qhe=Object.prototype.hasOwnProperty,Hhe=(e,t)=>{for(var n in t)mS(e,n,{get:t[n],enumerable:!0})},Whe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ghe(t))!qhe.call(e,a)&&a!==n&&mS(e,a,{get:()=>t[a],enumerable:!(r=zhe(t,a))||r.enumerable});return e},Vhe=e=>Whe(mS({},"__esModule",{value:!0}),e),PD={};Hhe(PD,{AUDIO_EXTENSIONS:()=>bS,DASH_EXTENSIONS:()=>KD,FLV_EXTENSIONS:()=>XD,HLS_EXTENSIONS:()=>vS,MATCH_URL_DAILYMOTION:()=>HD,MATCH_URL_FACEBOOK:()=>FD,MATCH_URL_FACEBOOK_WATCH:()=>BD,MATCH_URL_KALTURA:()=>YD,MATCH_URL_MIXCLOUD:()=>WD,MATCH_URL_SOUNDCLOUD:()=>$D,MATCH_URL_STREAMABLE:()=>UD,MATCH_URL_TWITCH_CHANNEL:()=>qD,MATCH_URL_TWITCH_VIDEO:()=>GD,MATCH_URL_VIDYARD:()=>VD,MATCH_URL_VIMEO:()=>jD,MATCH_URL_WISTIA:()=>zD,MATCH_URL_YOUTUBE:()=>Sy,VIDEO_EXTENSIONS:()=>yS,canPlay:()=>Khe});var Yhe=Vhe(PD),QO=kc;const Sy=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,$D=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,jD=/vimeo\.com\/(?!progressive_redirect).+/,FD=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,BD=/^https?:\/\/fb\.watch\/.+$/,UD=/streamable\.com\/([a-z0-9]+)$/,zD=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,GD=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,qD=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,HD=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,WD=/mixcloud\.com\/([^/]+\/[^/]+)/,VD=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,YD=/^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-_].*)$/,bS=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,yS=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,vS=/\.(m3u8)($|\?)/i,KD=/\.(mpd)($|\?)/i,XD=/\.(flv)($|\?)/i,xy=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&xy(t)||xy(t.src))return!0;return!1}return(0,QO.isMediaStream)(e)||(0,QO.isBlobUrl)(e)?!0:bS.test(e)||yS.test(e)||vS.test(e)||KD.test(e)||XD.test(e)},Khe={youtube:e=>e instanceof Array?e.every(t=>Sy.test(t)):Sy.test(e),soundcloud:e=>$D.test(e)&&!bS.test(e),vimeo:e=>jD.test(e)&&!yS.test(e)&&!vS.test(e),facebook:e=>FD.test(e)||BD.test(e),streamable:e=>UD.test(e),wistia:e=>zD.test(e),twitch:e=>GD.test(e)||qD.test(e),dailymotion:e=>HD.test(e),mixcloud:e=>WD.test(e),vidyard:e=>VD.test(e),kaltura:e=>YD.test(e),file:xy};var SS=Object.defineProperty,Xhe=Object.getOwnPropertyDescriptor,Zhe=Object.getOwnPropertyNames,Qhe=Object.prototype.hasOwnProperty,Jhe=(e,t)=>{for(var n in t)SS(e,n,{get:t[n],enumerable:!0})},ege=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zhe(t))!Qhe.call(e,a)&&a!==n&&SS(e,a,{get:()=>t[a],enumerable:!(r=Xhe(t,a))||r.enumerable});return e},tge=e=>ege(SS({},"__esModule",{value:!0}),e),ZD={};Jhe(ZD,{default:()=>rge});var nge=tge(ZD),mn=kc,un=Yhe,rge=[{key:"youtube",name:"YouTube",canPlay:un.canPlay.youtube,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./YouTube-5d1560d4.js").then(e=>e.Y),["assets/YouTube-5d1560d4.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:un.canPlay.soundcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./SoundCloud-ec95851e.js").then(e=>e.S),["assets/SoundCloud-ec95851e.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:un.canPlay.vimeo,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vimeo-be96d162.js").then(e=>e.V),["assets/Vimeo-be96d162.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:un.canPlay.facebook,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Facebook-daf1a2ca.js").then(e=>e.F),["assets/Facebook-daf1a2ca.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:un.canPlay.streamable,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Streamable-abf88c0e.js").then(e=>e.S),["assets/Streamable-abf88c0e.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:un.canPlay.wistia,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Wistia-d7d9727d.js").then(e=>e.W),["assets/Wistia-d7d9727d.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:un.canPlay.twitch,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Twitch-58899c17.js").then(e=>e.T),["assets/Twitch-58899c17.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:un.canPlay.dailymotion,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./DailyMotion-f43a72c1.js").then(e=>e.D),["assets/DailyMotion-f43a72c1.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:un.canPlay.mixcloud,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Mixcloud-d94e55a6.js").then(e=>e.M),["assets/Mixcloud-d94e55a6.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:un.canPlay.vidyard,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Vidyard-e4f3572b.js").then(e=>e.V),["assets/Vidyard-e4f3572b.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:un.canPlay.kaltura,lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./Kaltura-8bcc4a6a.js").then(e=>e.K),["assets/Kaltura-8bcc4a6a.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:un.canPlay.file,canEnablePIP:e=>un.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,mn.supportsWebKitPresentationMode)())&&!un.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,mn.lazy)(()=>bn(()=>import("./FilePlayer-9d32e443.js").then(e=>e.F),["assets/FilePlayer-9d32e443.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"]))}],JO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function age(e,t){return!!(e===t||JO(e)&&JO(t))}function ige(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},JD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gge(t))!bge.call(e,a)&&a!==n&&Oc(e,a,{get:()=>t[a],enumerable:!(r=hge(t,a))||r.enumerable});return e},vge=(e,t,n)=>(n=e!=null?fge(mge(e)):{},JD(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),Sge=e=>JD(Oc({},"__esModule",{value:!0}),e),eL={};yge(eL,{defaultProps:()=>wge,propTypes:()=>Ege});var tL=Sge(eL),xge=vge(Nj);const{string:nn,bool:rn,number:Ga,array:Wm,oneOfType:ro,shape:On,object:an,func:Rt,node:eI}=xge.default,Ege={url:ro([nn,Wm,an]),playing:rn,loop:rn,controls:rn,volume:Ga,muted:rn,playbackRate:Ga,width:ro([nn,Ga]),height:ro([nn,Ga]),style:an,progressInterval:Ga,playsinline:rn,pip:rn,stopOnUnmount:rn,light:ro([rn,nn,an]),playIcon:eI,previewTabIndex:Ga,fallback:eI,oEmbedUrl:nn,wrapper:ro([nn,Rt,On({render:Rt.isRequired})]),config:On({soundcloud:On({options:an}),youtube:On({playerVars:an,embedOptions:an,onUnstarted:Rt}),facebook:On({appId:nn,version:nn,playerId:nn,attributes:an}),dailymotion:On({params:an}),vimeo:On({playerOptions:an,title:nn}),file:On({attributes:an,tracks:Wm,forceVideo:rn,forceAudio:rn,forceHLS:rn,forceSafariHLS:rn,forceDisableHls:rn,forceDASH:rn,forceFLV:rn,hlsOptions:an,hlsVersion:nn,dashVersion:nn,flvVersion:nn}),wistia:On({options:an,playerId:nn,customControls:Wm}),mixcloud:On({options:an}),twitch:On({options:an,playerId:nn}),vidyard:On({options:an})}),onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt},Ut=()=>{},wge={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:Ut},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:Ut,onStart:Ut,onPlay:Ut,onPause:Ut,onBuffer:Ut,onBufferEnd:Ut,onEnded:Ut,onError:Ut,onDuration:Ut,onSeek:Ut,onPlaybackRateChange:Ut,onPlaybackQualityChange:Ut,onProgress:Ut,onClickPreview:Ut,onEnablePIP:Ut,onDisablePIP:Ut};var _ge=Object.create,Rs=Object.defineProperty,Tge=Object.getOwnPropertyDescriptor,Age=Object.getOwnPropertyNames,kge=Object.getPrototypeOf,Oge=Object.prototype.hasOwnProperty,Ige=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rge=(e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},nL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Age(t))!Oge.call(e,a)&&a!==n&&Rs(e,a,{get:()=>t[a],enumerable:!(r=Tge(t,a))||r.enumerable});return e},rL=(e,t,n)=>(n=e!=null?_ge(kge(e)):{},nL(t||!e||!e.__esModule?Rs(n,"default",{value:e,enumerable:!0}):n,e)),Cge=e=>nL(Rs({},"__esModule",{value:!0}),e),_t=(e,t,n)=>(Ige(e,typeof t!="symbol"?t+"":t,n),n),aL={};Rge(aL,{default:()=>Ic});var Nge=Cge(aL),tI=rL(F),Dge=rL(QD),iL=tL,Lge=kc;const Mge=5e3;class Ic extends tI.Component{constructor(){super(...arguments),_t(this,"mounted",!1),_t(this,"isReady",!1),_t(this,"isPlaying",!1),_t(this,"isLoading",!0),_t(this,"loadOnReady",null),_t(this,"startOnPlay",!0),_t(this,"seekOnPlay",null),_t(this,"onDurationCalled",!1),_t(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),_t(this,"getInternalPlayer",t=>this.player?this.player[t]:null),_t(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const a={playedSeconds:t,played:t/r};n!==null&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),_t(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:a}=this.props;t(),!a&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),_t(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()}),_t(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),_t(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),_t(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),_t(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)}),_t(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:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,Dge.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,Lge.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&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},Mge));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?tI.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}}_t(Ic,"displayName","Player");_t(Ic,"propTypes",iL.propTypes);_t(Ic,"defaultProps",iL.defaultProps);var Pge=Object.create,Cs=Object.defineProperty,$ge=Object.getOwnPropertyDescriptor,jge=Object.getOwnPropertyNames,Fge=Object.getPrototypeOf,Bge=Object.prototype.hasOwnProperty,Uge=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zge=(e,t)=>{for(var n in t)Cs(e,n,{get:t[n],enumerable:!0})},oL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of jge(t))!Bge.call(e,a)&&a!==n&&Cs(e,a,{get:()=>t[a],enumerable:!(r=$ge(t,a))||r.enumerable});return e},Ns=(e,t,n)=>(n=e!=null?Pge(Fge(e)):{},oL(t||!e||!e.__esModule?Cs(n,"default",{value:e,enumerable:!0}):n,e)),Gge=e=>oL(Cs({},"__esModule",{value:!0}),e),wt=(e,t,n)=>(Uge(e,typeof t!="symbol"?t+"":t,n),n),sL={};zge(sL,{createReactPlayer:()=>Qge});var qge=Gge(sL),Wa=Ns(F),Hge=Ns(ND),Vm=Ns(lge),nI=Ns(QD),co=tL,lL=kc,Wge=Ns(Nge);const Vge=(0,lL.lazy)(()=>bn(()=>import("./Preview-dd642161.js").then(e=>e.P),["assets/Preview-dd642161.js","assets/index-b416b1a9.js","assets/index-a2878e02.css"])),Yge=typeof window<"u"&&window.document,Kge=typeof At<"u"&&At.window&&At.window.document,Xge=Object.keys(co.propTypes),Zge=Yge||Kge?Wa.Suspense:()=>null,ao=[],Qge=(e,t)=>{var n;return n=class extends Wa.Component{constructor(){super(...arguments),wt(this,"state",{showPreview:!!this.props.light}),wt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),wt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),wt(this,"showPreview",()=>{this.setState({showPreview:!0})}),wt(this,"getDuration",()=>this.player?this.player.getDuration():null),wt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),wt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),wt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),wt(this,"seekTo",(r,a,i)=>{if(!this.player)return null;this.player.seekTo(r,a,i)}),wt(this,"handleReady",()=>{this.props.onReady(this)}),wt(this,"getActivePlayer",(0,Vm.default)(r=>{for(const a of[...ao,...e])if(a.canPlay(r))return a;return t||null})),wt(this,"getConfig",(0,Vm.default)((r,a)=>{const{config:i}=this.props;return Hge.default.all([co.defaultProps.config,co.defaultProps.config[a]||{},i,i[a]||{}])})),wt(this,"getAttributes",(0,Vm.default)(r=>(0,lL.omit)(this.props,Xge))),wt(this,"renderActivePlayer",r=>{if(!r)return null;const a=this.getActivePlayer(r);if(!a)return null;const i=this.getConfig(r,a.key);return Wa.default.createElement(Wge.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(r,a){return!(0,nI.default)(this.props,r)||!(0,nI.default)(this.state,a)}componentDidUpdate(r){const{light:a}=this.props;!r.light&&a&&this.setState({showPreview:!0}),r.light&&!a&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return Wa.default.createElement(Vge,{url:r,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),p=typeof l=="string"?this.references.wrapper:void 0;return Wa.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...c},Wa.default.createElement(Zge,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},wt(n,"displayName","ReactPlayer"),wt(n,"propTypes",co.propTypes),wt(n,"defaultProps",co.defaultProps),wt(n,"addCustomPlayer",r=>{ao.push(r)}),wt(n,"removeCustomPlayers",()=>{ao.length=0}),wt(n,"canPlay",r=>{for(const a of[...ao,...e])if(a.canPlay(r))return!0;return!1}),wt(n,"canEnablePIP",r=>{for(const a of[...ao,...e])if(a.canEnablePIP&&a.canEnablePIP(r))return!0;return!1}),n};var Jge=Object.create,Rc=Object.defineProperty,eme=Object.getOwnPropertyDescriptor,tme=Object.getOwnPropertyNames,nme=Object.getPrototypeOf,rme=Object.prototype.hasOwnProperty,ame=(e,t)=>{for(var n in t)Rc(e,n,{get:t[n],enumerable:!0})},uL=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tme(t))!rme.call(e,a)&&a!==n&&Rc(e,a,{get:()=>t[a],enumerable:!(r=eme(t,a))||r.enumerable});return e},ime=(e,t,n)=>(n=e!=null?Jge(nme(e)):{},uL(t||!e||!e.__esModule?Rc(n,"default",{value:e,enumerable:!0}):n,e)),ome=e=>uL(Rc({},"__esModule",{value:!0}),e),cL={};ame(cL,{default:()=>cme});var sme=ome(cL),Ey=ime(nge),lme=qge;const ume=Ey.default[Ey.default.length-1];var cme=(0,lme.createReactPlayer)(Ey.default,ume);const dme=St(sme),rI=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${a}${i}:${o}`},pme=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,c]=F.useState(.5),[p,f]=F.useState(!1),[h,m]=F.useState(.5),b=(T,_)=>{const x=Array.isArray(_)?_[0]:_;c(x),o(T,x),p&&f(!1)},S=()=>{p?(c(h),o(new Event("input"),h)):(m(u),c(0),o(new Event("input"),0)),f(!p)};return y.jsxs(q,{children:[(!l||t)&&y.jsx(vme,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:r}),y.jsxs(fme,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(mme,{onClick:n,size:"small",children:e?y.jsx(Ru,{}):y.jsx(Cy,{})}),y.jsxs(Sme,{direction:"row",children:[y.jsx("span",{children:rI(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:rI(a)})]}),y.jsxs(bme,{direction:"row",px:9,children:[y.jsx(Du,{className:"volume-slider",max:1,min:0,onChange:b,size:"small",step:.1,value:u}),y.jsx(hme,{onClick:S,children:p?y.jsx(gme,{children:y.jsx(Dj,{})}):y.jsx(Lj,{})})]}),y.jsx(yme,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(Pj,{}):y.jsx(Mj,{})})]})]})},fme=H(q)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` @@ -2119,7 +2119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex: 1 1 100%; border-radius: 16px; overflow: hidden; -`,Nme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Dme=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Pt(n=>({sidebarIsOpen:n.setSidebarOpen,showCollapseButton:n.showCollapseButton}));return y.jsx(y.Fragment,{children:t&&y.jsx(Lme,{onClick:()=>{e(!0)},children:y.jsx(Fj,{})})})},Lme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),dL=390,Mme=F.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:n}=Pt(a=>a),r=sj();return y.jsxs(jme,{ref:t,id:"sidebar-wrapper",children:[y.jsx(Bme,{}),r?y.jsx(TB,{}):y.jsx(n3,{}),!e&&y.jsx(Fme,{onClick:()=>{n(!1)},children:y.jsx(AI,{})})]})}),Pme=["topic","person","guest","event","organization","place","project","software"],$me=e=>{if(e==null)return!1;const n=Object.keys(e).filter(r=>r!=="pubkey");return n.length===1&&n[0]==="name"},pL=()=>{const{sidebarIsOpen:e}=Pt(r=>r),t=Kt(),n=!!t&&e&&!Pme.includes(t.node_type)&&!$me(t.properties);return y.jsxs(y.Fragment,{children:[y.jsx(ni,{direction:"right",in:e,children:y.jsx(Mme,{subViewOpen:n})}),y.jsx(Ome,{open:n}),!e&&y.jsx(Dme,{})]})},jme=H(q)(({theme:e})=>({position:"relative",background:j.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:dL}})),Fme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Bme=H(q)` +`,Nme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Dme=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Pt(n=>({sidebarIsOpen:n.setSidebarOpen,showCollapseButton:n.showCollapseButton}));return y.jsx(y.Fragment,{children:t&&y.jsx(Lme,{onClick:()=>{e(!0)},children:y.jsx(Fj,{})})})},Lme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),dL=390,Mme=F.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:n}=Pt(a=>a),r=sj();return y.jsxs(jme,{ref:t,id:"sidebar-wrapper",children:[y.jsx(Bme,{}),r?y.jsx(TB,{}):y.jsx(n3,{}),!e&&y.jsx(Fme,{onClick:()=>{n(!1)},children:y.jsx(AI,{})})]})}),Pme=["topic","person","guest","event","organization","place","project","software"],$me=e=>{if(e==null)return!1;const n=Object.keys(e).filter(r=>r!=="pubkey");return n.length===1&&n[0]==="name"},pL=()=>{const{sidebarIsOpen:e}=Pt(r=>r),t=Kt(),n=!!t&&e&&!Pme.includes(t.node_type)&&!$me(t.properties);return y.jsxs(y.Fragment,{children:[y.jsx(ni,{direction:"right",in:e,children:y.jsx(Mme,{subViewOpen:n})}),y.jsx(Ome,{open:n}),!e&&y.jsx(Dme,{})]})},jme=H(q)(({theme:e})=>({position:"relative",background:j.BG1,height:"100vh",width:"100%",zIndex:1,[e.breakpoints.up("sm")]:{width:dL}})),Fme=H(q).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:j.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:j.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:j.BG1_HOVER},"&:active":{backgroundColor:j.BG1_PRESS,color:j.GRAY6}})),Bme=H(q)` flex: 0 0 64px; background: ${j.BG2}; `;pL.displayName="Sidebar";const ebe=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:dL,SideBar:pL},Symbol.toStringTag,{value:"Module"}));export{ebe as i,Yhe as p,kc as u}; diff --git a/build/assets/index-049f27f0.js b/build/assets/index-a4521012.js similarity index 89% rename from build/assets/index-049f27f0.js rename to build/assets/index-a4521012.js index a65cdeac0..6cac57ac9 100644 --- a/build/assets/index-049f27f0.js +++ b/build/assets/index-a4521012.js @@ -1,4 +1,4 @@ -import{t as a,j as e,F as s,aA as g,T as n,v as i,r as m,Z as j}from"./index-c431d222.js";import{B as S,b5 as w,u as y,a0 as k,a1 as v}from"./index-092b06c7.js";import{B as F}from"./index-8f3abdbd.js";import{S as B}from"./index-c3bafa47.js";import{T}from"./index-cfcff7e7.js";import"./index.esm-2a70f836.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(T,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:g})}),e.jsx(s,{children:e.jsx(S,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(n)` +import{t as a,j as e,F as s,aA as g,T as n,v as i,r as m,Z as j}from"./index-b416b1a9.js";import{B as S,b5 as w,u as y,a0 as k,a1 as v}from"./index-1f5ac1eb.js";import{B as F}from"./index-8331965f.js";import{S as B}from"./index-17930aa1.js";import{T}from"./index-64813bbe.js";import"./index.esm-258646ab.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(T,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:g})}),e.jsx(s,{children:e.jsx(S,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(n)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-c431d222.js b/build/assets/index-b416b1a9.js similarity index 99% rename from build/assets/index-c431d222.js rename to build/assets/index-b416b1a9.js index 4ec440239..d3d9eed1a 100644 --- a/build/assets/index-c431d222.js +++ b/build/assets/index-b416b1a9.js @@ -529,4 +529,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-092b06c7.js").then(a=>a.bd),["assets/index-092b06c7.js","assets/index-b60658ac.css"]).then(({App:a})=>({default:a}))),AppContainer=()=>{const a=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:a,path:"/"}),jsxRuntimeExports.jsx(Route,{element:a,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:a,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 $,useSchemaStore as A,__vitePreload as B,lottie as C,getTotalProcessing as D,getStats as E,Flex as F,formatStatsResponse as G,lodashExports as H,media as I,useAiSummaryStore as J,useNavigate as K,LinearProgress$1 as L,useSearchParams as M,useFeatureFlagStore as N,isDevelopment as O,updateBudget as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useNodeTypes as U,NODE_RELATIVE_HIGHLIGHT_COLORS as V,We as W,fetchNodeEdges as X,addToGlobalForE2e as Y,api$1 as Z,_objectWithoutPropertiesLoose as _,ReactDOM as a,deleteNode as a$,distExports$1 as a0,executeIfProd as a1,lighten as a2,darken as a3,slotShouldForwardProp as a4,Ce as a5,useHasAiChatsResponseLoading as a6,Ue as a7,hooks as a8,commonjsGlobal as a9,requiredRule as aA,TWITTER_HANDLE as aB,YOUTUBE_CHANNEL as aC,RSS as aD,GITHUB_REPOSITORY as aE,LINK as aF,TWITTER_SOURCE as aG,WEB_PAGE as aH,DOCUMENT as aI,getPriceData as aJ,isE2E as aK,sphinxBridge as aL,getLSat as aM,payLsat as aN,getNodeType as aO,getNodeSchemaTypes as aP,getNodeContent as aQ,approveRadarData as aR,deleteRadarData as aS,getRadarData as aT,putRadarData as aU,getEdgeTypes as aV,getEdges as aW,postEdgeType as aX,putNodeData as aY,postMergeTopics as aZ,getTopicsData as a_,commonjsRequire as aa,getSchemaAll as ab,useFilteredNodes as ac,_baseGetTag as ad,isObjectLike_1 as ae,isObject$7 as af,isFunction$3 as ag,_Set as ah,_Symbol as ai,isArguments_1 as aj,isArray_1 as ak,_arrayPush as al,_baseUnary as am,_defineProperty as an,eq_1 as ao,isArrayLike_1 as ap,_isIndex as aq,isObject_1 as ar,_root as as,_baseAssignValue as at,keys_1 as au,getFullTranscript as av,getAugmentedNamespace as aw,useHasAiChats as ax,postAboutData as ay,NODE_ADD_ERROR as az,_extends as b,css as b0,changeNodeType as b1,resolveBreakpointValues as b2,handleBreakpoints as b3,updateEdgeType as b4,postBluePrintType as b5,deleteEdgeType as b6,cloneDeep_1 as b7,editNodeSchemaUpdate as b8,createRoot as b9,useThemeProps$1 as bA,createUnarySpacing as bB,mergeBreakpointsInOrder as bC,getValue as bD,useTheme$3 as bE,react as ba,GRAPH_GROUND_COLOR as bb,GRAPH_LIGHT_INTENSITY as bc,GRAPH_FOG_COLOR as bd,_getPrototype as be,_MapCache as bf,_Uint8Array as bg,_getAllKeys as bh,_Stack as bi,_getTag as bj,isBufferExports as bk,isTypedArray_1 as bl,isLength_1 as bm,request as bn,buffer$2 as bo,sphinx$1 as bp,Global as bq,useTheme$2 as br,defaultTheme$1 as bs,THEME_ID as bt,formatMuiErrorMessage as bu,deepmerge as bv,defaultSxConfig$1 as bw,isPlainObject as bx,createStyled as by,createTheme$1 as bz,generateUtilityClass as c,generateUtilityClasses as d,alpha as e,clsx$1 as f,getDefaultExportFromCjs as g,composeClasses as h,capitalize as i,jsxRuntimeExports as j,keyframes as k,reactDomExports as l,useTheme as m,rootShouldForwardProp as n,resolveProps as o,create as p,useDataStore as q,reactExports as r,styled$1 as s,styled$3 as t,useThemeProps as u,colors as v,clsx as w,devtools as x,useAppStore as y,useUserStore as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-1f5ac1eb.js").then(a=>a.bd),["assets/index-1f5ac1eb.js","assets/index-b60658ac.css"]).then(({App:a})=>({default:a}))),AppContainer=()=>{const a=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:a,path:"/"}),jsxRuntimeExports.jsx(Route,{element:a,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:a,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 $,useSchemaStore as A,__vitePreload as B,lottie as C,getTotalProcessing as D,getStats as E,Flex as F,formatStatsResponse as G,lodashExports as H,media as I,useAiSummaryStore as J,useNavigate as K,LinearProgress$1 as L,useSearchParams as M,useFeatureFlagStore as N,isDevelopment as O,updateBudget as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useNodeTypes as U,NODE_RELATIVE_HIGHLIGHT_COLORS as V,We as W,fetchNodeEdges as X,addToGlobalForE2e as Y,api$1 as Z,_objectWithoutPropertiesLoose as _,ReactDOM as a,deleteNode as a$,distExports$1 as a0,executeIfProd as a1,lighten as a2,darken as a3,slotShouldForwardProp as a4,Ce as a5,useHasAiChatsResponseLoading as a6,Ue as a7,hooks as a8,commonjsGlobal as a9,requiredRule as aA,TWITTER_HANDLE as aB,YOUTUBE_CHANNEL as aC,RSS as aD,GITHUB_REPOSITORY as aE,LINK as aF,TWITTER_SOURCE as aG,WEB_PAGE as aH,DOCUMENT as aI,getPriceData as aJ,isE2E as aK,sphinxBridge as aL,getLSat as aM,payLsat as aN,getNodeType as aO,getNodeSchemaTypes as aP,getNodeContent as aQ,approveRadarData as aR,deleteRadarData as aS,getRadarData as aT,putRadarData as aU,getEdgeTypes as aV,getEdges as aW,postEdgeType as aX,putNodeData as aY,postMergeTopics as aZ,getTopicsData as a_,commonjsRequire as aa,getSchemaAll as ab,useFilteredNodes as ac,_baseGetTag as ad,isObjectLike_1 as ae,isObject$7 as af,isFunction$3 as ag,_Set as ah,_Symbol as ai,isArguments_1 as aj,isArray_1 as ak,_arrayPush as al,_baseUnary as am,_defineProperty as an,eq_1 as ao,isArrayLike_1 as ap,_isIndex as aq,isObject_1 as ar,_root as as,_baseAssignValue as at,keys_1 as au,getFullTranscript as av,getAugmentedNamespace as aw,useHasAiChats as ax,postAboutData as ay,NODE_ADD_ERROR as az,_extends as b,css as b0,changeNodeType as b1,resolveBreakpointValues as b2,handleBreakpoints as b3,updateEdgeType as b4,postBluePrintType as b5,deleteEdgeType as b6,cloneDeep_1 as b7,editNodeSchemaUpdate as b8,createRoot as b9,useThemeProps$1 as bA,createUnarySpacing as bB,mergeBreakpointsInOrder as bC,getValue as bD,useTheme$3 as bE,react as ba,GRAPH_GROUND_COLOR as bb,GRAPH_LIGHT_INTENSITY as bc,GRAPH_FOG_COLOR as bd,_getPrototype as be,_MapCache as bf,_Uint8Array as bg,_getAllKeys as bh,_Stack as bi,_getTag as bj,isBufferExports as bk,isTypedArray_1 as bl,isLength_1 as bm,request as bn,buffer$2 as bo,sphinx$1 as bp,Global as bq,useTheme$2 as br,defaultTheme$1 as bs,THEME_ID as bt,formatMuiErrorMessage as bu,deepmerge as bv,defaultSxConfig$1 as bw,isPlainObject as bx,createStyled as by,createTheme$1 as bz,generateUtilityClass as c,generateUtilityClasses as d,alpha as e,clsx$1 as f,getDefaultExportFromCjs as g,composeClasses as h,capitalize as i,jsxRuntimeExports as j,keyframes as k,reactDomExports as l,useTheme as m,rootShouldForwardProp as n,resolveProps as o,create as p,useDataStore as q,reactExports as r,styled$1 as s,styled$3 as t,useThemeProps as u,colors as v,clsx as w,devtools as x,useAppStore as y,useUserStore as z}; diff --git a/build/assets/index-6a300a43.js b/build/assets/index-bb616035.js similarity index 90% rename from build/assets/index-6a300a43.js rename to build/assets/index-bb616035.js index d71a25622..ea68d4f67 100644 --- a/build/assets/index-6a300a43.js +++ b/build/assets/index-bb616035.js @@ -1,4 +1,4 @@ -import{r as p,H as T,j as e,F as x,aW as I,t as n,T as v,v as _,aZ as L}from"./index-c431d222.js";import{ai as A,aP as B,aQ as E,aR as F,u as M,a0 as N,e as k,a1 as O,B as z}from"./index-092b06c7.js";import{B as D}from"./index-8f3abdbd.js";import{u as w}from"./index-6a665b3f.js";import{S as P,A as R,I as Y}from"./constants-ad9796f3.js";import{O as H}from"./constants-b2a2fa82.js";import{A as W,T as X}from"./index-3f78c796.js";import{C as Q}from"./ClipLoader-b5124f12.js";import"./Stack-6ee91628.js";import"./createSvgIcon-a54a204b.js";import"./TextareaAutosize-85f04bbd.js";const U=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,f]=p.useState([]),[g,h]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:R,search:i,skip:"0",limit:"1000"};h(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);f(C)}catch{f([])}finally{h(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){f([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;a(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(P,{onClick:()=>a(null),size:"medium",children:e.jsx(A,{})})]}):e.jsx(W,{dataId:c,handleInputChange:r,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},Z=({from:s,onSelect:a,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx($,{children:"Merge topic"})})}),e.jsxs(J,{swap:c,children:[e.jsx(q,{children:e.jsx(K,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(V,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(G,{children:[e.jsx(oe,{children:e.jsx(B,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(E,{})}),e.jsx(ne,{children:e.jsx(F,{})})]})]})]}),$=n(v)` +import{r as p,H as T,j as e,F as x,aW as I,t as n,T as v,v as _,aZ as L}from"./index-b416b1a9.js";import{ai as A,aP as B,aQ as E,aR as F,u as M,a0 as N,e as k,a1 as O,B as z}from"./index-1f5ac1eb.js";import{B as D}from"./index-8331965f.js";import{u as w}from"./index-5f0e754b.js";import{S as P,A as R,I as Y}from"./constants-6b0b8728.js";import{O as H}from"./constants-b2a2fa82.js";import{A as W,T as X}from"./index-69075348.js";import{C as Q}from"./ClipLoader-a0a9ce2c.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const U=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,f]=p.useState([]),[g,h]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:R,search:i,skip:"0",limit:"1000"};h(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);f(C)}catch{f([])}finally{h(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){f([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;a(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(P,{onClick:()=>a(null),size:"medium",children:e.jsx(A,{})})]}):e.jsx(W,{dataId:c,handleInputChange:r,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},Z=({from:s,onSelect:a,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx($,{children:"Merge topic"})})}),e.jsxs(J,{swap:c,children:[e.jsx(q,{children:e.jsx(K,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(V,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(G,{children:[e.jsx(oe,{children:e.jsx(B,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(E,{})}),e.jsx(ne,{children:e.jsx(F,{})})]})]})]}),$=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-179d4e66.js b/build/assets/index-c1db1c7b.js similarity index 96% rename from build/assets/index-179d4e66.js rename to build/assets/index-c1db1c7b.js index 0673552df..332b36949 100644 --- a/build/assets/index-179d4e66.js +++ b/build/assets/index-c1db1c7b.js @@ -1,4 +1,4 @@ -import{K as M,J as B,q as T,y as z,N as G,z as N,Q as L,j as e,T as t,t as c,v as n,F as l}from"./index-c431d222.js";import{u as a,M as O,A as D,a as E,S as Q,C as R,b as U,F as W}from"./index-092b06c7.js";const H=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=M(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:v}=G(o=>o),{isAdmin:d}=N(o=>o),I=L(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(Y,{children:[e.jsx(q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),v?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(Q,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Settings"})]}),F&&I?e.jsxs(J,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},Y=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{K as M,J as B,q as T,y as z,N as G,z as N,Q as L,j as e,T as t,t as c,v as n,F as l}from"./index-b416b1a9.js";import{u as a,M as O,A as D,a as E,S as Q,C as R,b as U,F as W}from"./index-1f5ac1eb.js";const H=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=M(),{resetAiSummaryAnswer:j,setNewLoading:m}=B(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:v}=G(o=>o),{isAdmin:d}=N(o=>o),I=L(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(Y,{children:[e.jsx(q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),v?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(Q,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Settings"})]}),F&&I?e.jsxs(J,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},Y=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 1; transition: opacity 1s; diff --git a/build/assets/index-9fa86b0d.js b/build/assets/index-d36a9cfa.js similarity index 90% rename from build/assets/index-9fa86b0d.js rename to build/assets/index-d36a9cfa.js index e553bca30..2c03595f4 100644 --- a/build/assets/index-9fa86b0d.js +++ b/build/assets/index-d36a9cfa.js @@ -1,4 +1,4 @@ -import{t as i,v as t,F as c,j as e,r as l,q as k,a_ as C,a$ as R}from"./index-c431d222.js";import{B as I}from"./index-8f3abdbd.js";import{a_ as z,u as j,f as D,e as E,B as w}from"./index-092b06c7.js";import{S as L}from"./Skeleton-afdbf969.js";import{C as T}from"./ClipLoader-b5124f12.js";const _=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(M,{children:e.jsx(z,{})}),e.jsxs(G,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),G=i(c)` +import{t as i,v as t,F as c,j as e,r as l,q as k,a_ as C,a$ as R}from"./index-b416b1a9.js";import{B as I}from"./index-8331965f.js";import{a_ as z,u as j,f as D,e as E,B as w}from"./index-1f5ac1eb.js";import{S as L}from"./Skeleton-0e0ce42e.js";import{C as T}from"./ClipLoader-a0a9ce2c.js";const _=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(M,{children:e.jsx(z,{})}),e.jsxs(G,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),G=i(c)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-defa7868.js b/build/assets/index-e8159074.js similarity index 95% rename from build/assets/index-defa7868.js rename to build/assets/index-e8159074.js index 950a48ef1..d448f3375 100644 --- a/build/assets/index-defa7868.js +++ b/build/assets/index-e8159074.js @@ -1,4 +1,4 @@ -import{Z as X,t as g,v as b,F as t,T,z as V,r as y,j as e,aJ as ee,aA as L,aO as te,N as se,aP as ne,q as oe,az as I,a1 as re,a0 as ie,aM as ae}from"./index-c431d222.js";import{aL as ce,B as C,ah as le,$ as de,u as D,a0 as pe,f as me,a1 as xe}from"./index-092b06c7.js";import{B as ue}from"./index-8f3abdbd.js";import{S as he}from"./index-c3bafa47.js";import{e as fe}from"./index.esm-2a70f836.js";import{C as J}from"./ClipLoader-b5124f12.js";import{n as B,O as ye,i as ge}from"./constants-b2a2fa82.js";import{p as q}from"./index-c0853f89.js";import{T as F}from"./index-cfcff7e7.js";import{A as je}from"./index-3f78c796.js";import{c as we}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-6ee91628.js";import"./createSvgIcon-a54a204b.js";import"./TextareaAutosize-85f04bbd.js";const be=async(o,a,c="")=>await X.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,x,d,r)=>{const m=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:x,pubkey:r};return be(m,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const x=V(l=>l.budget),[d,r]=y.useState(10),m="node";return y.useEffect(()=>{(async()=>{try{const h=await ee(m);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[m]),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:[ce(x)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(J,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(le,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(fe,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{Z as X,t as g,v as b,F as t,T,z as V,r as y,j as e,aJ as ee,aA as L,aO as te,N as se,aP as ne,q as oe,az as I,a1 as re,a0 as ie,aM as ae}from"./index-b416b1a9.js";import{aL as ce,B as C,ah as le,$ as de,u as D,a0 as pe,f as me,a1 as xe}from"./index-1f5ac1eb.js";import{B as ue}from"./index-8331965f.js";import{S as he}from"./index-17930aa1.js";import{e as fe}from"./index.esm-258646ab.js";import{C as J}from"./ClipLoader-a0a9ce2c.js";import{n as B,O as ye,i as ge}from"./constants-b2a2fa82.js";import{p as q}from"./index-c0853f89.js";import{T as F}from"./index-64813bbe.js";import{A as je}from"./index-69075348.js";import{c as we}from"./index-64f1c910.js";import"./three.module-26d3b3c0.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const be=async(o,a,c="")=>await X.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,x,d,r)=>{const m=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:x,pubkey:r};return be(m,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const x=V(l=>l.budget),[d,r]=y.useState(10),m="node";return y.useEffect(()=>{(async()=>{try{const h=await ee(m);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[m]),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:[ce(x)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(J,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(le,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(fe,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(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-4f35da0f.js b/build/assets/index-f2ef880b.js similarity index 89% rename from build/assets/index-4f35da0f.js rename to build/assets/index-f2ef880b.js index 910ceb28b..250767c89 100644 --- a/build/assets/index-4f35da0f.js +++ b/build/assets/index-f2ef880b.js @@ -1,4 +1,4 @@ -import{Z as F,bn as C,bo as m,bp as $,t as B,T as k,F as d,r as x,z,j as n,aA as M}from"./index-c431d222.js";import{$ as V,B as S,u as E,e as A,a0 as _,a1 as R}from"./index-092b06c7.js";import{B as G}from"./index-8f3abdbd.js";import{S as I}from"./index-c3bafa47.js";import{A as K}from"./index-3f78c796.js";import{T as N}from"./index-cfcff7e7.js";import"./index.esm-2a70f836.js";import"./Stack-6ee91628.js";import"./createSvgIcon-a54a204b.js";import"./TextareaAutosize-85f04bbd.js";const U="https://community.sphinx.chat",O=async e=>await F.post("/bounty",JSON.stringify(e)),P=async e=>await C(`${U}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),W=async e=>await C(`${U}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await $.signMessage(r),a=L(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return v(l)}catch(e){return console.log("error from signing more message: ",e),""}}function L(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function v(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=V(),[a,l]=x.useState([]),{pubKey:c}=z();x.useEffect(()=>{async function o(){try{const i=await P(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await W(i.id);if(p.length>0){const w=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=H(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(Z,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(K,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx(N,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...M,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=B(k)` +import{Z as F,bn as C,bo as m,bp as $,t as B,T as k,F as d,r as x,z,j as n,aA as M}from"./index-b416b1a9.js";import{$ as V,B as S,u as E,e as A,a0 as _,a1 as R}from"./index-1f5ac1eb.js";import{B as G}from"./index-8331965f.js";import{S as I}from"./index-17930aa1.js";import{A as K}from"./index-69075348.js";import{T as N}from"./index-64813bbe.js";import"./index.esm-258646ab.js";import"./Stack-34a19487.js";import"./createSvgIcon-23cd916d.js";import"./TextareaAutosize-2d5341b4.js";const U="https://community.sphinx.chat",O=async e=>await F.post("/bounty",JSON.stringify(e)),P=async e=>await C(`${U}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),W=async e=>await C(`${U}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=m.Buffer.from(e.toString(16),"hex"),r=m.Buffer.from(t).toString("base64"),s=await $.signMessage(r),a=L(s.signature),l=m.Buffer.concat([t,a],a.length+t.length);return v(l)}catch(e){return console.log("error from signing more message: ",e),""}}function L(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),r=t.padEnd(t.length+(4-t.length%4)%4,"=");return m.Buffer.from(r,"base64")}function v(e){let t="";const r=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&D.test(t))},J=({errMessage:e,handleClose:t})=>{const{setValue:r,watch:s}=V(),[a,l]=x.useState([]),{pubKey:c}=z();x.useEffect(()=>{async function o(){try{const i=await P(c);if(!i.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const p=await W(i.id);if(p.length>0){const w=[];for(let b=0;b{const i=(o==null?void 0:o.label)||"SecondBrain",p=(o==null?void 0:o.value)||"ck9drb84nncjnaefo090";r("nodeType",i,{shouldValidate:!0}),r("workspaceUuid",p)},y=H(u)&&!!g,h=o=>{o.key===" "&&o.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(Z,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(K,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx(N,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...M,pattern:{value:D,message:"Please enter a valid number"}},value:u})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(Q,{children:e})]})},T=B(k)` font-size: 14px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-1a9dd7cd.js b/build/assets/index-f63e96f7.js similarity index 93% rename from build/assets/index-1a9dd7cd.js rename to build/assets/index-f63e96f7.js index 8acf34e07..5c39566b6 100644 --- a/build/assets/index-1a9dd7cd.js +++ b/build/assets/index-f63e96f7.js @@ -1,4 +1,4 @@ -import{t as a,v as r,F as i,j as e,w as I,T as S,r as b,y as v,z as $,ay as B,az as y,aA as z}from"./index-c431d222.js";import{B as A}from"./index-8f3abdbd.js";import{f as T,g as k,aI as M,aJ as D,C as R,an as E,aK as L,B as C,a0 as P,a1 as W,u as w}from"./index-092b06c7.js";import{C as G}from"./ClipLoader-b5124f12.js";import{e as F}from"./index.esm-2a70f836.js";import{S as V}from"./index-c3bafa47.js";import{T as j}from"./index-cfcff7e7.js";import{T as U,a as N}from"./Tabs-a957b4a1.js";import"./createSvgIcon-a54a204b.js";const Y={split:e.jsx(D,{}),force:e.jsx(R,{}),sphere:e.jsx(E,{}),earth:e.jsx(L,{})},O=()=>{const[n,p]=T(k(t=>[t.graphStyle,t.setGraphStyle])),l=t=>{p(t)};return e.jsx(_,{direction:"column",children:M.map(t=>e.jsx(i,{className:I("icon",{active:n===t}),onClick:()=>l(t),children:Y[t]},t))})},_=a(i).attrs({direction:"row",align:"center",justify:"space-between"})` +import{t as a,v as r,F as i,j as e,w as I,T as S,r as b,y as v,z as $,ay as B,az as y,aA as z}from"./index-b416b1a9.js";import{B as A}from"./index-8331965f.js";import{f as T,g as k,aI as M,aJ as D,C as R,an as E,aK as L,B as C,a0 as P,a1 as W,u as w}from"./index-1f5ac1eb.js";import{C as G}from"./ClipLoader-a0a9ce2c.js";import{e as F}from"./index.esm-258646ab.js";import{S as V}from"./index-17930aa1.js";import{T as j}from"./index-64813bbe.js";import{T as U,a as N}from"./Tabs-79411ac3.js";import"./createSvgIcon-23cd916d.js";const Y={split:e.jsx(D,{}),force:e.jsx(R,{}),sphere:e.jsx(E,{}),earth:e.jsx(L,{})},O=()=>{const[n,p]=T(k(t=>[t.graphStyle,t.setGraphStyle])),l=t=>{p(t)};return e.jsx(_,{direction:"column",children:M.map(t=>e.jsx(i,{className:I("icon",{active:n===t}),onClick:()=>l(t),children:Y[t]},t))})},_=a(i).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${r.appearanceBg}; diff --git a/build/assets/index.esm-2a70f836.js b/build/assets/index.esm-258646ab.js similarity index 98% rename from build/assets/index.esm-2a70f836.js rename to build/assets/index.esm-258646ab.js index a80f94d8e..aefb2eda0 100644 --- a/build/assets/index.esm-2a70f836.js +++ b/build/assets/index.esm-258646ab.js @@ -1 +1 @@ -import{R as c}from"./index-c431d222.js";var u={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g=c.createContext&&c.createContext(u),i=globalThis&&globalThis.__assign||function(){return i=Object.assign||function(t){for(var a,e=1,r=arguments.length;e{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${H(s)}`],input:["input"]};return be(t,ar,r)},sr=M(rr)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ne})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:m,type:P,value:E}=r,A=ge(r,nr),[w,xe]=je({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=_=>{v&&v(_),C&&C.onFocus&&C.onFocus(_)},Be=_=>{b&&b(_),C&&C.onBlur&&C.onBlur(_)},qe=_=>{if(_.nativeEvent.defaultPrevented)return;const Q=_.target.checked;xe(Q),y&&y(_,Q)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),J=tr(D);return L.jsxs(sr,S({component:"span",className:K(J.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[L.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:J.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:m,type:P},P==="checkbox"&&E===void 0?{}:{value:E},h)),w?t:f]}))}),is=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${H(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${H(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ge({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=Ve({props:t,muiFormControl:b,states:["error"]}),m=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(m),E=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=L.jsx(W,S({component:"span"},E,{className:K(P.label,E==null?void 0:E.className),children:A}))),L.jsxs(dr,S({className:K(P.root,i),ownerState:m,ref:a},g,{children:[U.cloneElement(l,O),v?L.jsxs(er,{display:"block",children:[A,L.jsxs(pr,{ownerState:m,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),os=gr;var br=k,hr=T,vr=B,yr="[object String]";function mr(e){return typeof e=="string"||!hr(e)&&vr(e)&&br(e)==yr}var _r=mr;const ls=z(_r);function $r(e){return function(r,a,n){for(var s=-1,t=Object(r),i=n(r),o=i.length;o--;){var l=i[e?o:++s];if(a(t[l],l,t)===!1)break}return r}}var Pr=$r,Ar=Pr,Cr=Ar(),Sr=Cr,Tr=Sr,Or=he;function wr(e,r){return e&&Tr(e,r,Or)}var Er=wr;function Lr(e){return e}var Ir=Lr,Fr=k,Rr=Ue,xr=B,Mr="[object Object]",Br=Function.prototype,qr=Object.prototype,Pe=Br.toString,Dr=qr.hasOwnProperty,Nr=Pe.call(Object);function Gr(e){if(!xr(e)||Fr(e)!=Mr)return!1;var r=Rr(e);if(r===null)return!0;var a=Dr.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Pe.call(a)==Nr}var Ur=Gr;const us=z(Ur);function Kr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&ia?new aa:void 0;for(t.set(e,r),t.set(r,e);++f{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${H(s)}`],input:["input"]};return be(t,ar,r)},sr=M(rr)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ne})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:m,type:P,value:E}=r,A=ge(r,nr),[w,xe]=je({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=_=>{v&&v(_),C&&C.onFocus&&C.onFocus(_)},Be=_=>{b&&b(_),C&&C.onBlur&&C.onBlur(_)},qe=_=>{if(_.nativeEvent.defaultPrevented)return;const Q=_.target.checked;xe(Q),y&&y(_,Q)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),J=tr(D);return L.jsxs(sr,S({component:"span",className:K(J.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[L.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:J.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:m,type:P},P==="checkbox"&&E===void 0?{}:{value:E},h)),w?t:f]}))}),is=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${H(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${H(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ge({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=Ve({props:t,muiFormControl:b,states:["error"]}),m=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(m),E=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=L.jsx(W,S({component:"span"},E,{className:K(P.label,E==null?void 0:E.className),children:A}))),L.jsxs(dr,S({className:K(P.root,i),ownerState:m,ref:a},g,{children:[U.cloneElement(l,O),v?L.jsxs(er,{display:"block",children:[A,L.jsxs(pr,{ownerState:m,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),os=gr;var br=k,hr=T,vr=B,yr="[object String]";function mr(e){return typeof e=="string"||!hr(e)&&vr(e)&&br(e)==yr}var _r=mr;const ls=z(_r);function $r(e){return function(r,a,n){for(var s=-1,t=Object(r),i=n(r),o=i.length;o--;){var l=i[e?o:++s];if(a(t[l],l,t)===!1)break}return r}}var Pr=$r,Ar=Pr,Cr=Ar(),Sr=Cr,Tr=Sr,Or=he;function wr(e,r){return e&&Tr(e,r,Or)}var Er=wr;function Lr(e){return e}var Ir=Lr,Fr=k,Rr=Ue,xr=B,Mr="[object Object]",Br=Function.prototype,qr=Object.prototype,Pe=Br.toString,Dr=qr.hasOwnProperty,Nr=Pe.call(Object);function Gr(e){if(!xr(e)||Fr(e)!=Mr)return!1;var r=Rr(e);if(r===null)return!0;var a=Dr.call(r,"constructor")&&r.constructor;return typeof a=="function"&&a instanceof a&&Pe.call(a)==Nr}var Ur=Gr;const us=z(Ur);function Kr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&ia?new aa:void 0;for(t.set(e,r),t.set(r,e);++f Second Brain - +