diff --git a/build/assets/CheckIcon-dab8ab94.js b/build/assets/CheckIcon-306bcb61.js similarity index 92% rename from build/assets/CheckIcon-dab8ab94.js rename to build/assets/CheckIcon-306bcb61.js index c17841983..250ddd7b8 100644 --- a/build/assets/CheckIcon-dab8ab94.js +++ b/build/assets/CheckIcon-306bcb61.js @@ -1 +1 @@ -import{j as C}from"./index-87686c58.js";const t=o=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})});export{t as C}; +import{j as C}from"./index-66901234.js";const t=o=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})});export{t as C}; diff --git a/build/assets/ClipLoader-3d43cca0.js b/build/assets/ClipLoader-81a960be.js similarity index 97% rename from build/assets/ClipLoader-3d43cca0.js rename to build/assets/ClipLoader-81a960be.js index 5098e564e..3aa126c82 100644 --- a/build/assets/ClipLoader-3d43cca0.js +++ b/build/assets/ClipLoader-81a960be.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-87686c58.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-66901234.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-7e5d5b1e.js b/build/assets/DailyMotion-64c0e0af.js similarity index 95% rename from build/assets/DailyMotion-7e5d5b1e.js rename to build/assets/DailyMotion-64c0e0af.js index 42f24fe5f..6281a5927 100644 --- a/build/assets/DailyMotion-7e5d5b1e.js +++ b/build/assets/DailyMotion-64c0e0af.js @@ -1 +1 @@ -import{q as P,r as v}from"./index-87686c58.js";import{u as D,p as O}from"./index-b9eee39b.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 m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{q as P,r as v}from"./index-66901234.js";import{u as D,p as O}from"./index-5e3fe062.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 m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/DeleteIcon-ee935491.js b/build/assets/DeleteIcon-0129cee6.js similarity index 96% rename from build/assets/DeleteIcon-ee935491.js rename to build/assets/DeleteIcon-0129cee6.js index e36252cb9..afeeebe22 100644 --- a/build/assets/DeleteIcon-ee935491.js +++ b/build/assets/DeleteIcon-0129cee6.js @@ -1 +1 @@ -import{j as e}from"./index-87686c58.js";const s=C=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{id:"delete",children:[e.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{children:e.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})});export{s as D}; +import{j as e}from"./index-66901234.js";const s=C=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{id:"delete",children:[e.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{children:e.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})});export{s as D}; diff --git a/build/assets/Facebook-0112da49.js b/build/assets/Facebook-348c902e.js similarity index 96% rename from build/assets/Facebook-0112da49.js rename to build/assets/Facebook-348c902e.js index 966d00f2e..8249fc5d0 100644 --- a/build/assets/Facebook-0112da49.js +++ b/build/assets/Facebook-348c902e.js @@ -1 +1 @@ -import{q as _,r as P}from"./index-87686c58.js";import{u as g,p as m}from"./index-b9eee39b.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,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{q as _,r as P}from"./index-66901234.js";import{u as g,p as m}from"./index-5e3fe062.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,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-ee3595f9.js b/build/assets/FilePlayer-822a0f20.js similarity index 98% rename from build/assets/FilePlayer-ee3595f9.js rename to build/assets/FilePlayer-822a0f20.js index 851e12b16..22bc35df2 100644 --- a/build/assets/FilePlayer-ee3595f9.js +++ b/build/assets/FilePlayer-822a0f20.js @@ -1 +1 @@ -import{q as b,r as _}from"./index-87686c58.js";import{u as O,p as A}from"./index-b9eee39b.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 q=b(g),Q=R({__proto__:null,default:q},[g]);export{Q as F}; +import{q as b,r as _}from"./index-66901234.js";import{u as O,p as A}from"./index-5e3fe062.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 q=b(g),Q=R({__proto__:null,default:q},[g]);export{Q as F}; diff --git a/build/assets/FormControlLabel-2c99cf32.js b/build/assets/FormControlLabel-f3a1de50.js similarity index 79% rename from build/assets/FormControlLabel-2c99cf32.js rename to build/assets/FormControlLabel-f3a1de50.js index d7537044b..de4b8958c 100644 --- a/build/assets/FormControlLabel-2c99cf32.js +++ b/build/assets/FormControlLabel-f3a1de50.js @@ -1 +1 @@ -import{d as z,g as A,s as w,a as d,n as V,r as j,b as D,j as f,c as T,i as E,h as O,u as X}from"./index-87686c58.js";import{u as Y,a as W,f as Z,S as ee}from"./Stack-448c401b.js";import{w as oe}from"./index-67098fb8.js";import{T as M}from"./Typography-8872fb44.js";function te(e){return z("PrivateSwitchBase",e)}A("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const se=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ae=e=>{const{classes:o,checked:a,disabled:l,edge:s}=e,t={root:["root",a&&"checked",l&&"disabled",s&&`edge${E(s)}`],input:["input"]};return O(t,te,o)},re=w(oe)(({ownerState:e})=>d({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),le=w("input",{shouldForwardProp:V})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ne=j.forwardRef(function(o,a){const{autoFocus:l,checked:s,checkedIcon:t,className:g,defaultChecked:x,disabled:p,disableFocusRipple:C=!1,edge:B=!1,icon:L,id:v,inputProps:R,inputRef:$,name:q,onBlur:m,onChange:P,onFocus:b,readOnly:S,required:I=!1,tabIndex:y,type:n,value:h}=o,i=D(o,se),[u,H]=Y({controlled:s,default:!!x,name:"SwitchBase",state:"checked"}),c=W(),G=r=>{b&&b(r),c&&c.onFocus&&c.onFocus(r)},J=r=>{m&&m(r),c&&c.onBlur&&c.onBlur(r)},K=r=>{if(r.nativeEvent.defaultPrevented)return;const _=r.target.checked;H(_),P&&P(r,_)};let k=p;c&&typeof k>"u"&&(k=c.disabled);const Q=n==="checkbox"||n==="radio",N=d({},o,{checked:u,disabled:k,disableFocusRipple:C,edge:B}),U=ae(N);return f.jsxs(re,d({component:"span",className:T(U.root,g),centerRipple:!0,focusRipple:!C,disabled:k,tabIndex:null,role:void 0,onFocus:G,onBlur:J,ownerState:N,ref:a},i,{children:[f.jsx(le,d({autoFocus:l,checked:s,defaultChecked:x,className:U.input,disabled:k,id:Q?v:void 0,name:q,onChange:K,readOnly:S,ref:$,required:I,ownerState:N,tabIndex:y,type:n},n==="checkbox"&&h===void 0?{}:{value:h},R)),u?t:L]}))}),Pe=ne;function ie(e){return z("MuiFormControlLabel",e)}const ce=A("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ce,de=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ue=e=>{const{classes:o,disabled:a,labelPlacement:l,error:s,required:t}=e,g={root:["root",a&&"disabled",`labelPlacement${E(l)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return O(g,ie,o)},pe=w("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:o.label},o.root,o[`labelPlacement${E(a.labelPlacement)}`]]}})(({theme:e,ownerState:o})=>d({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},o.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},o.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},o.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),me=w("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),be=j.forwardRef(function(o,a){var l,s;const t=X({props:o,name:"MuiFormControlLabel"}),{className:g,componentsProps:x={},control:p,disabled:C,disableTypography:B,label:L,labelPlacement:v="end",required:R,slotProps:$={}}=t,q=D(t,de),m=W(),P=(l=C??p.props.disabled)!=null?l:m==null?void 0:m.disabled,b=R??p.props.required,S={disabled:P,required:b};["checked","name","onChange","value","inputRef"].forEach(u=>{typeof p.props[u]>"u"&&typeof t[u]<"u"&&(S[u]=t[u])});const I=Z({props:t,muiFormControl:m,states:["error"]}),y=d({},t,{disabled:P,labelPlacement:v,required:b,error:I.error}),n=ue(y),h=(s=$.typography)!=null?s:x.typography;let i=L;return i!=null&&i.type!==M&&!B&&(i=f.jsx(M,d({component:"span"},h,{className:T(n.label,h==null?void 0:h.className),children:i}))),f.jsxs(pe,d({className:T(n.root,g),ownerState:y,ref:a},q,{children:[j.cloneElement(p,S),b?f.jsxs(ee,{display:"block",children:[i,f.jsxs(me,{ownerState:y,"aria-hidden":!0,className:n.asterisk,children:[" ","*"]})]}):i]}))}),ye=be;export{ye as F,Pe as S}; +import{d as z,g as A,s as B,a as d,n as V,r as j,b as D,j as f,c as T,i as E,h as O,u as X}from"./index-66901234.js";import{u as Y,a as W,f as Z,S as ee}from"./Stack-9fbe3064.js";import{m as oe}from"./index-2979d0f2.js";import{T as M}from"./Typography-77d675f7.js";function te(e){return z("PrivateSwitchBase",e)}A("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const se=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ae=e=>{const{classes:o,checked:a,disabled:l,edge:s}=e,t={root:["root",a&&"checked",l&&"disabled",s&&`edge${E(s)}`],input:["input"]};return O(t,te,o)},re=B(oe)(({ownerState:e})=>d({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),le=B("input",{shouldForwardProp:V})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ne=j.forwardRef(function(o,a){const{autoFocus:l,checked:s,checkedIcon:t,className:g,defaultChecked:x,disabled:p,disableFocusRipple:C=!1,edge:L=!1,icon:w,id:v,inputProps:R,inputRef:$,name:q,onBlur:m,onChange:P,onFocus:b,readOnly:S,required:I=!1,tabIndex:y,type:n,value:h}=o,i=D(o,se),[u,H]=Y({controlled:s,default:!!x,name:"SwitchBase",state:"checked"}),c=W(),G=r=>{b&&b(r),c&&c.onFocus&&c.onFocus(r)},J=r=>{m&&m(r),c&&c.onBlur&&c.onBlur(r)},K=r=>{if(r.nativeEvent.defaultPrevented)return;const _=r.target.checked;H(_),P&&P(r,_)};let k=p;c&&typeof k>"u"&&(k=c.disabled);const Q=n==="checkbox"||n==="radio",N=d({},o,{checked:u,disabled:k,disableFocusRipple:C,edge:L}),U=ae(N);return f.jsxs(re,d({component:"span",className:T(U.root,g),centerRipple:!0,focusRipple:!C,disabled:k,tabIndex:null,role:void 0,onFocus:G,onBlur:J,ownerState:N,ref:a},i,{children:[f.jsx(le,d({autoFocus:l,checked:s,defaultChecked:x,className:U.input,disabled:k,id:Q?v:void 0,name:q,onChange:K,readOnly:S,ref:$,required:I,ownerState:N,tabIndex:y,type:n},n==="checkbox"&&h===void 0?{}:{value:h},R)),u?t:w]}))}),Pe=ne;function ie(e){return z("MuiFormControlLabel",e)}const ce=A("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ce,de=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ue=e=>{const{classes:o,disabled:a,labelPlacement:l,error:s,required:t}=e,g={root:["root",a&&"disabled",`labelPlacement${E(l)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return O(g,ie,o)},pe=B("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:o.label},o.root,o[`labelPlacement${E(a.labelPlacement)}`]]}})(({theme:e,ownerState:o})=>d({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},o.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},o.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},o.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),me=B("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),be=j.forwardRef(function(o,a){var l,s;const t=X({props:o,name:"MuiFormControlLabel"}),{className:g,componentsProps:x={},control:p,disabled:C,disableTypography:L,label:w,labelPlacement:v="end",required:R,slotProps:$={}}=t,q=D(t,de),m=W(),P=(l=C??p.props.disabled)!=null?l:m==null?void 0:m.disabled,b=R??p.props.required,S={disabled:P,required:b};["checked","name","onChange","value","inputRef"].forEach(u=>{typeof p.props[u]>"u"&&typeof t[u]<"u"&&(S[u]=t[u])});const I=Z({props:t,muiFormControl:m,states:["error"]}),y=d({},t,{disabled:P,labelPlacement:v,required:b,error:I.error}),n=ue(y),h=(s=$.typography)!=null?s:x.typography;let i=w;return i!=null&&i.type!==M&&!L&&(i=f.jsx(M,d({component:"span"},h,{className:T(n.label,h==null?void 0:h.className),children:i}))),f.jsxs(pe,d({className:T(n.root,g),ownerState:y,ref:a},q,{children:[j.cloneElement(p,S),b?f.jsxs(ee,{display:"block",children:[i,f.jsxs(me,{ownerState:y,"aria-hidden":!0,className:n.asterisk,children:[" ","*"]})]}):i]}))}),ye=be;export{ye as F,Pe as S}; diff --git a/build/assets/Kaltura-698ee13e.js b/build/assets/Kaltura-c388d887.js similarity index 95% rename from build/assets/Kaltura-698ee13e.js rename to build/assets/Kaltura-c388d887.js index d54d9c329..e31b742de 100644 --- a/build/assets/Kaltura-698ee13e.js +++ b/build/assets/Kaltura-c388d887.js @@ -1 +1 @@ -import{q as y,r as f}from"./index-87686c58.js";import{u as _,p as m}from"./index-b9eee39b.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{q as y,r as f}from"./index-66901234.js";import{u as _,p as m}from"./index-5e3fe062.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/MergeIcon-a00ba31c.js b/build/assets/MergeIcon-abc08c66.js similarity index 98% rename from build/assets/MergeIcon-a00ba31c.js rename to build/assets/MergeIcon-abc08c66.js index 365956d39..241243061 100644 --- a/build/assets/MergeIcon-a00ba31c.js +++ b/build/assets/MergeIcon-abc08c66.js @@ -1 +1 @@ -import{j as C}from"./index-87686c58.js";const o=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"Type=Edit, Size=20x20",children:C.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),l=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),i=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})});export{l as A,o as E,i as M}; +import{j as C}from"./index-66901234.js";const o=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"Type=Edit, Size=20x20",children:C.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),l=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),i=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})});export{l as A,o as E,i as M}; diff --git a/build/assets/Mixcloud-8782ddfa.js b/build/assets/Mixcloud-32eb2c6f.js similarity index 95% rename from build/assets/Mixcloud-8782ddfa.js rename to build/assets/Mixcloud-32eb2c6f.js index 774f536f1..a01beb4db 100644 --- a/build/assets/Mixcloud-8782ddfa.js +++ b/build/assets/Mixcloud-32eb2c6f.js @@ -1 +1 @@ -import{q as _,r as f}from"./index-87686c58.js";import{u as m,p as g}from"./index-b9eee39b.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{q as _,r as f}from"./index-66901234.js";import{u as m,p as g}from"./index-5e3fe062.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/NodeCircleIcon-d6d9a47a.js b/build/assets/NodeCircleIcon-e770be3d.js similarity index 91% rename from build/assets/NodeCircleIcon-d6d9a47a.js rename to build/assets/NodeCircleIcon-e770be3d.js index a4d64352c..fd71418e9 100644 --- a/build/assets/NodeCircleIcon-d6d9a47a.js +++ b/build/assets/NodeCircleIcon-e770be3d.js @@ -1,4 +1,4 @@ -import{t as o,bd as e,bb as r,bc as n,j as t}from"./index-87686c58.js";import{I as c}from"./index-67098fb8.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",d="Queued Sources",p="Topics",h="View Content",u="date",T="edge_count",x="alphabetically",E="https://twitter.com",m="IS_ALIAS",g="https://www.twitter.com/anyuser/status/",I=o(c)` +import{t as o,bd as e,bb as r,bc as n,j as t}from"./index-66901234.js";import{I as c}from"./index-2979d0f2.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",d="Queued Sources",p="Topics",h="View Content",u="date",T="edge_count",x="alphabetically",E="https://twitter.com",m="IS_ALIAS",g="https://www.twitter.com/anyuser/status/",I=o(c)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/PlusIcon-dd101fe0.js b/build/assets/PlusIcon-fe6ca88f.js similarity index 94% rename from build/assets/PlusIcon-dd101fe0.js rename to build/assets/PlusIcon-fe6ca88f.js index 001a2e8be..ae2c61065 100644 --- a/build/assets/PlusIcon-dd101fe0.js +++ b/build/assets/PlusIcon-fe6ca88f.js @@ -1 +1 @@ -import{j as s}from"./index-87686c58.js";const t=e=>s.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:s.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),s.jsx("g",{children:s.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]});export{t as P}; +import{j as s}from"./index-66901234.js";const t=e=>s.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:s.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),s.jsx("g",{children:s.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]});export{t as P}; diff --git a/build/assets/Preview-144ce145.js b/build/assets/Preview-4e377939.js similarity index 97% rename from build/assets/Preview-144ce145.js rename to build/assets/Preview-4e377939.js index 5f582378a..9217c52aa 100644 --- a/build/assets/Preview-144ce145.js +++ b/build/assets/Preview-4e377939.js @@ -1 +1 @@ -import{q as y,r as b}from"./index-87686c58.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{q as y,r as b}from"./index-66901234.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/SearchIcon-b6b2a06c.js b/build/assets/SearchIcon-19850845.js similarity index 95% rename from build/assets/SearchIcon-b6b2a06c.js rename to build/assets/SearchIcon-19850845.js index c977fb54b..3ab728612 100644 --- a/build/assets/SearchIcon-b6b2a06c.js +++ b/build/assets/SearchIcon-19850845.js @@ -1 +1 @@ -import{j as C}from"./index-87686c58.js";const e=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"Property 1=Normal",children:C.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})});export{e as S}; +import{j as C}from"./index-66901234.js";const e=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"Property 1=Normal",children:C.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})});export{e as S}; diff --git a/build/assets/Skeleton-20b798ec.js b/build/assets/Skeleton-afb5f26b.js similarity index 97% rename from build/assets/Skeleton-20b798ec.js rename to build/assets/Skeleton-afb5f26b.js index e1e3ea884..0e5067a6a 100644 --- a/build/assets/Skeleton-20b798ec.js +++ b/build/assets/Skeleton-afb5f26b.js @@ -1,4 +1,4 @@ -import{d as x,g as y,k as b,s as R,a as o,l as S,bE as u,r as _,u as $,b as U,j as M,c as j,h as A}from"./index-87686c58.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function E(t){return parseFloat(t)}function N(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,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"]},N,a)},K=b(p||(p=r` +import{d as x,g as y,k as b,s as R,a as o,l as S,bE as u,r as _,u as $,b as U,j as M,c as j,h as A}from"./index-66901234.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function E(t){return parseFloat(t)}function N(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,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"]},N,a)},K=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-3a2f5fce.js b/build/assets/SoundCloud-e64077e4.js similarity index 95% rename from build/assets/SoundCloud-3a2f5fce.js rename to build/assets/SoundCloud-e64077e4.js index c74b19a9b..77267ff7d 100644 --- a/build/assets/SoundCloud-3a2f5fce.js +++ b/build/assets/SoundCloud-e64077e4.js @@ -1 +1 @@ -import{q as P,r as g}from"./index-87686c58.js";import{u as b,p as v}from"./index-b9eee39b.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{q as P,r as g}from"./index-66901234.js";import{u as b,p as v}from"./index-5e3fe062.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-448c401b.js b/build/assets/Stack-9fbe3064.js similarity index 99% rename from build/assets/Stack-448c401b.js rename to build/assets/Stack-9fbe3064.js index 5dcac3307..c55b60967 100644 --- a/build/assets/Stack-448c401b.js +++ b/build/assets/Stack-9fbe3064.js @@ -1 +1 @@ -import{r as E,b as ae,a as T,b_ as Tt,b$ as Bt,c0 as Mt,c1 as Ft,c2 as Wt,bH as Qe,bG as Ae,c3 as Vt,bX as Lt,c4 as Nt,j as Q,c5 as Ze,h as De,d as Te,g as vt,aj as et,c6 as Ht,e as tt,ai as rt,av as Ut,s as Be,c7 as It,u as Me,i as mt,c as qt}from"./index-87686c58.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}function Fo({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 Xt=["sx"],zt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tt;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Yt(e){const{sx:t}=e,r=ae(e,Xt),{systemProps:o,otherProps:n}=zt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Bt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function ht(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 er(e){return Wt({props:e,name:"MuiStack",defaultTheme:Qt})}function tr(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],or=({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=Vt(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=Lt(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rr(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Nt(t.breakpoints,r),r};function nr(e={}){const{createStyledComponent:t=Zt,useThemeProps:r=er,componentName:o="MuiStack"}=e,n=()=>De({root:["root"]},i=>Te(o,i),{}),a=t(or);return E.forwardRef(function(i,f){const l=r(i),v=Yt(l),{component:h="div",direction:u="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,Kt),p={direction:u,spacing:x,useFlexGap:P},g=n();return Q.jsx(a,T({as:h,ownerState:p,ref:f,className:Gt(g.root,w)},b,{children:d?tr(m,d):m}))})}const ar={disableDefaultClasses:!1},ir=E.createContext(ar);function sr(e){const{disableDefaultClasses:t}=E.useContext(ir);return r=>t?"":e(r)}var M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,N,H,F],te="start",pe="end",lr="clippingParents",gt="viewport",le="popper",cr="reference",ot=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+pe])},[]),yt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+pe])},[]),fr="beforeRead",pr="read",ur="afterRead",dr="beforeMain",vr="main",mr="afterMain",hr="beforeWrite",gr="write",yr="afterWrite",br=[fr,pr,ur,dr,vr,mr,hr,gr,yr];function I(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 xr(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)||!I(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 wr(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)||!I(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Or={name:"applyStyles",enabled:!0,phase:"write",fn:xr,effect:wr,requires:["computeStyles"]};function U(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 bt(){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=!bt()&&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 xt(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 Pr(e){return["table","td","th"].indexOf(I(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return I(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function nt(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(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=Oe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(I(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=nt(e);r&&Pr(r)&&q(r).position==="static";)r=nt(r);return r&&(I(r)==="html"||I(r)==="body"&&q(r).position==="static")?t:r||Er(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 Cr(e,t,r){var o=ce(e,t,r);return o>r?r:o}function wt(){return{top:0,right:0,bottom:0,left:0}}function Ot(e){return Object.assign({},wt(),e)}function Pt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Rr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ot(typeof t!="number"?t:Pt(t,de))};function Ar(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=U(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Ve(a),u=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),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,p=v[u],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(p,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function Sr(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)||xt(t.elements.popper,n)&&(t.elements.arrow=n))}const $r={name:"arrow",enabled:!0,phase:"main",fn:Ar,effect:Sr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var jr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kr(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 at(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,u=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:u,y:d}):{x:u,y:d};u=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,p=M,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===pe){p=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||n===N)&&a===pe){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];u-=R-o.width,u*=i?1:-1}}var $=Object.assign({position:s},f&&jr),D=l===!0?kr({x:u,y:d},W(r)):{x:u,y:d};if(u=D.x,d=D.y,i){var S;return Object.assign({},$,(S={},S[p]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[p]=P?d+"px":"",t[b]=w?u+"px":"",t.transform="",t))}function Dr(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:U(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,at(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,at(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 Tr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dr,data:{}};var be={passive:!0};function Br(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 Mr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Br,data:{}};var Fr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Fr[t]})}var Wr={start:"end",end:"start"};function it(e){return e.replace(/start|end/g,function(t){return Wr[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 Vr(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=bt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Lr(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 Ue(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Et(e){return["html","body","#document"].indexOf(I(e))>=0?e.ownerDocument.body:L(e)&&Ue(e)?e:Et(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Et(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ue(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nr(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 st(e,t,r){return t===gt?je(Vr(e,r)):Z(t)?Nr(t,r):je(Lr(Y(e)))}function Hr(e){var t=fe(Oe(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)&&xt(n,o)&&I(n)!=="body"}):[]}function Ur(e,t,r,o){var n=t==="clippingParents"?Hr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=st(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},st(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 Ct(e){var t=e.reference,r=e.element,o=e.placement,n=o?U(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 pe:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function ue(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?lr:s,f=r.rootBoundary,l=f===void 0?gt:f,v=r.elementContext,h=v===void 0?le:v,u=r.altBoundary,x=u===void 0?!1:u,d=r.padding,m=d===void 0?0:d,w=Ot(typeof m!="number"?m:Pt(m,de)),P=h===le?cr:le,b=e.rects.popper,p=e.elements[x?P:h],g=Ur(Z(p)?p:p.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=Ct({reference:y,element:b,strategy:"absolute",placement:n}),A=je(Object.assign({},b,O)),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 D=$[n];Object.keys(R).forEach(function(S){var k=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=D[V]*k})}return R}function Ir(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?yt:i,l=ne(o),v=l?s?ot:ot.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var u=h.reduce(function(x,d){return x[d]=ue(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[U(d)],x},{});return Object.keys(u).sort(function(x,d){return u[x]-u[d]})}function qr(e){if(U(e)===Fe)return[];var t=xe(e);return[it(e),t,it(t)]}function Xr(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,u=r.flipVariations,x=u===void 0?!0:u,d=r.allowedAutoPlacements,m=t.options.placement,w=U(m),P=w===m,b=i||(P||!x?[xe(m)]:qr(m)),p=[m].concat(b).reduce(function(ee,z){return ee.concat(U(z)===Fe?Ir(t,{placement:z,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):z)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,V=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=k?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var X=xe(B),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[B]<=0,j[X]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(z){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,z).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const zr={name:"flip",enabled:!0,phase:"main",fn:Xr,requiresIfExists:["offset"],data:{_skip:!1}};function lt(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 ct(e){return[M,H,N,F].some(function(t){return e[t]>=0})}function Yr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),i=lt(c,o),f=lt(s,n,a),l=ct(i),v=ct(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 Gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yr};function _r(e,t,r){var o=U(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 Jr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=yt.reduce(function(l,v){return l[v]=_r(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 Kr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jr};function Qr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ct({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Zr={name:"popperOffsets",enabled:!0,phase:"read",fn:Qr,data:{}};function eo(e){return e==="x"?"y":"x"}function to(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,u=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=ue(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=U(t.placement),P=ne(t.placement),b=!P,p=Le(w),g=eo(p),y=t.modifiersData.popperOffsets,O=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,D={x:0,y:0};if(y){if(a){var S,k=p==="y"?M:F,V=p==="y"?N:H,j=p==="y"?"height":"width",B=y[p],X=B+m[k],G=B-m[V],me=u?-A[j]/2:0,Pe=P===te?O[j]:A[j],ie=P===te?-A[j]:-O[j],he=t.elements.arrow,ee=u&&he?Ve(he):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=z[k],ge=z[V],_=ce(0,O[j],ee[j]),Ee=b?O[j]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,At=b?-O[j]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),St=Ce?p==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ie=(S=$==null?void 0:$[p])!=null?S:0,$t=B+Ee-Ie-St,jt=B+At-Ie,qe=ce(u?we(X,$t):X,B,u?K(G,jt):G);y[p]=qe,D[p]=qe-B}if(s){var Xe,kt=p==="x"?M:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",ze=J+m[kt],Ye=J-m[Dt],Re=[M,F].indexOf(w)!==-1,Ge=(Xe=$==null?void 0:$[g])!=null?Xe:0,_e=Re?ze:J-O[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+O[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=u&&Re?Cr(_e,J,Je):ce(u?_e:ze,J,u?Je:Ye);y[g]=Ke,D[g]=Ke-J}t.modifiersData[o]=D}}const ro={name:"preventOverflow",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"]};function oo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function no(e){return e===W(e)||!L(e)?Ne(e):oo(e)}function ao(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 io(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&ao(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((I(t)!=="body"||Ue(a))&&(s=no(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 so(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 lo(e){var t=so(e);return br.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function co(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fo(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 ft={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var e=arguments.length,t=new Array(e),r=0;rDe({root:["root"]},sr(mo)),wo={},Oo=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:u={},slots:x={},TransitionProps:d}=t,m=ae(t,ho),w=E.useRef(null),P=tt(w,r),b=E.useRef(null),p=tt(b,h),g=E.useRef(p);rt(()=>{g.current=p},[p]),E.useImperativeHandle(h,()=>b.current,[]);const y=yo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(ke(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(ke(n))},[n]),rt(()=>{if(!C||!f)return;const V=X=>{A(X.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{V(X)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const B=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const D=xo(),S=(o=x.root)!=null?o:"div",k=Ut({elementType:S,externalSlotProps:u.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:D.root});return Q.jsx(S,T({},k,{children:typeof a=="function"?a($):a}))}),Po=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=wo,popperRef:u,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,go),[b,p]=E.useState(!0),g=()=>{p(!1)},y=()=>{p(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=ke(o);O=R&&bo(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(Ht,{disablePortal:s,container:O,children:Q.jsx(Oo,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:u,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),Eo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Co=Be(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=It(),a=Me({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:p}=a,g=ae(a,Eo),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return Q.jsx(Co,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:p??f},O,{ref:r}))}),Wo=Ro;function Vo({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 Ao=E.createContext(void 0),Rt=Ao;function Lo(){return E.useContext(Rt)}function ut(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dt(e,t=!1){return e&&(ut(e.value)&&e.value!==""||t&&ut(e.defaultValue)&&e.defaultValue!=="")}function So(e){return e.startAdornment}function $o(e){return Te("MuiFormControl",e)}vt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ko=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${mt(r)}`,o&&"fullWidth"]};return De(n,$o,t)},Do=Be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${mt(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%"})),To=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:u="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,jo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:u,required:x,size:d,variant:m}),b=ko(P),[p,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{if(!Se(k,["Input","Select"]))return;const V=Se(k,["Select"])?k.props.input:k;V&&So(V.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{Se(k,["Input","Select"])&&(dt(k.props,!0)||dt(k.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 D=E.useMemo(()=>({adornedStart:p,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[p,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(Rt.Provider,{value:D,children:Q.jsx(Do,T({as:s,ownerState:P,className:qt(b.root,a),ref:r},w,{children:n}))})}),No=To,Bo=nr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Ho=Bo;export{No as F,Wo as P,Ho as S,Lo as a,Rt as b,Yt as e,Vo as f,dt as i,Fo as u}; +import{r as E,b as ae,a as T,b_ as Tt,b$ as Bt,c0 as Mt,c1 as Ft,c2 as Wt,bH as Qe,bG as Ae,c3 as Vt,bX as Lt,c4 as Nt,j as Q,c5 as Ze,h as De,d as Te,g as vt,aj as et,c6 as Ht,e as tt,ai as rt,av as Ut,s as Be,c7 as It,u as Me,i as mt,c as qt}from"./index-66901234.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}function Fo({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 Xt=["sx"],zt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tt;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Yt(e){const{sx:t}=e,r=ae(e,Xt),{systemProps:o,otherProps:n}=zt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Bt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function ht(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 er(e){return Wt({props:e,name:"MuiStack",defaultTheme:Qt})}function tr(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],or=({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=Vt(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=Lt(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rr(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Nt(t.breakpoints,r),r};function nr(e={}){const{createStyledComponent:t=Zt,useThemeProps:r=er,componentName:o="MuiStack"}=e,n=()=>De({root:["root"]},i=>Te(o,i),{}),a=t(or);return E.forwardRef(function(i,f){const l=r(i),v=Yt(l),{component:h="div",direction:u="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,Kt),p={direction:u,spacing:x,useFlexGap:P},g=n();return Q.jsx(a,T({as:h,ownerState:p,ref:f,className:Gt(g.root,w)},b,{children:d?tr(m,d):m}))})}const ar={disableDefaultClasses:!1},ir=E.createContext(ar);function sr(e){const{disableDefaultClasses:t}=E.useContext(ir);return r=>t?"":e(r)}var M="top",N="bottom",H="right",F="left",Fe="auto",de=[M,N,H,F],te="start",pe="end",lr="clippingParents",gt="viewport",le="popper",cr="reference",ot=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+pe])},[]),yt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+pe])},[]),fr="beforeRead",pr="read",ur="afterRead",dr="beforeMain",vr="main",mr="afterMain",hr="beforeWrite",gr="write",yr="afterWrite",br=[fr,pr,ur,dr,vr,mr,hr,gr,yr];function I(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 xr(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)||!I(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 wr(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)||!I(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Or={name:"applyStyles",enabled:!0,phase:"write",fn:xr,effect:wr,requires:["computeStyles"]};function U(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 bt(){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=!bt()&&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 xt(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 Pr(e){return["table","td","th"].indexOf(I(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return I(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function nt(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(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=Oe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(I(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=nt(e);r&&Pr(r)&&q(r).position==="static";)r=nt(r);return r&&(I(r)==="html"||I(r)==="body"&&q(r).position==="static")?t:r||Er(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 Cr(e,t,r){var o=ce(e,t,r);return o>r?r:o}function wt(){return{top:0,right:0,bottom:0,left:0}}function Ot(e){return Object.assign({},wt(),e)}function Pt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Rr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ot(typeof t!="number"?t:Pt(t,de))};function Ar(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=U(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Ve(a),u=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),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,p=v[u],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(p,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function Sr(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)||xt(t.elements.popper,n)&&(t.elements.arrow=n))}const $r={name:"arrow",enabled:!0,phase:"main",fn:Ar,effect:Sr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var jr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kr(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 at(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,u=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:u,y:d}):{x:u,y:d};u=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,p=M,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===M||(n===F||n===H)&&a===pe){p=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===M||n===N)&&a===pe){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];u-=R-o.width,u*=i?1:-1}}var $=Object.assign({position:s},f&&jr),D=l===!0?kr({x:u,y:d},W(r)):{x:u,y:d};if(u=D.x,d=D.y,i){var S;return Object.assign({},$,(S={},S[p]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[p]=P?d+"px":"",t[b]=w?u+"px":"",t.transform="",t))}function Dr(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:U(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,at(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,at(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 Tr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dr,data:{}};var be={passive:!0};function Br(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 Mr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Br,data:{}};var Fr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Fr[t]})}var Wr={start:"end",end:"start"};function it(e){return e.replace(/start|end/g,function(t){return Wr[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 Vr(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=bt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Lr(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 Ue(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Et(e){return["html","body","#document"].indexOf(I(e))>=0?e.ownerDocument.body:L(e)&&Ue(e)?e:Et(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Et(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ue(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nr(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 st(e,t,r){return t===gt?je(Vr(e,r)):Z(t)?Nr(t,r):je(Lr(Y(e)))}function Hr(e){var t=fe(Oe(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)&&xt(n,o)&&I(n)!=="body"}):[]}function Ur(e,t,r,o){var n=t==="clippingParents"?Hr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=st(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},st(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 Ct(e){var t=e.reference,r=e.element,o=e.placement,n=o?U(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 pe:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function ue(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?lr:s,f=r.rootBoundary,l=f===void 0?gt:f,v=r.elementContext,h=v===void 0?le:v,u=r.altBoundary,x=u===void 0?!1:u,d=r.padding,m=d===void 0?0:d,w=Ot(typeof m!="number"?m:Pt(m,de)),P=h===le?cr:le,b=e.rects.popper,p=e.elements[x?P:h],g=Ur(Z(p)?p:p.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=Ct({reference:y,element:b,strategy:"absolute",placement:n}),A=je(Object.assign({},b,O)),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 D=$[n];Object.keys(R).forEach(function(S){var k=[H,N].indexOf(S)>=0?1:-1,V=[M,N].indexOf(S)>=0?"y":"x";R[S]+=D[V]*k})}return R}function Ir(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?yt:i,l=ne(o),v=l?s?ot:ot.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var u=h.reduce(function(x,d){return x[d]=ue(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[U(d)],x},{});return Object.keys(u).sort(function(x,d){return u[x]-u[d]})}function qr(e){if(U(e)===Fe)return[];var t=xe(e);return[it(e),t,it(t)]}function Xr(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,u=r.flipVariations,x=u===void 0?!0:u,d=r.allowedAutoPlacements,m=t.options.placement,w=U(m),P=w===m,b=i||(P||!x?[xe(m)]:qr(m)),p=[m].concat(b).reduce(function(ee,z){return ee.concat(U(z)===Fe?Ir(t,{placement:z,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):z)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,V=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),B=k?S?H:F:S?N:M;g[V]>y[V]&&(B=xe(B));var X=xe(B),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[B]<=0,j[X]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(z){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,z).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const zr={name:"flip",enabled:!0,phase:"main",fn:Xr,requiresIfExists:["offset"],data:{_skip:!1}};function lt(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 ct(e){return[M,H,N,F].some(function(t){return e[t]>=0})}function Yr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),i=lt(c,o),f=lt(s,n,a),l=ct(i),v=ct(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 Gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yr};function _r(e,t,r){var o=U(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 Jr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=yt.reduce(function(l,v){return l[v]=_r(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 Kr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jr};function Qr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ct({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Zr={name:"popperOffsets",enabled:!0,phase:"read",fn:Qr,data:{}};function eo(e){return e==="x"?"y":"x"}function to(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,u=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=ue(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=U(t.placement),P=ne(t.placement),b=!P,p=Le(w),g=eo(p),y=t.modifiersData.popperOffsets,O=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,D={x:0,y:0};if(y){if(a){var S,k=p==="y"?M:F,V=p==="y"?N:H,j=p==="y"?"height":"width",B=y[p],X=B+m[k],G=B-m[V],me=u?-A[j]/2:0,Pe=P===te?O[j]:A[j],ie=P===te?-A[j]:-O[j],he=t.elements.arrow,ee=u&&he?Ve(he):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=z[k],ge=z[V],_=ce(0,O[j],ee[j]),Ee=b?O[j]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,At=b?-O[j]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),St=Ce?p==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ie=(S=$==null?void 0:$[p])!=null?S:0,$t=B+Ee-Ie-St,jt=B+At-Ie,qe=ce(u?we(X,$t):X,B,u?K(G,jt):G);y[p]=qe,D[p]=qe-B}if(s){var Xe,kt=p==="x"?M:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",ze=J+m[kt],Ye=J-m[Dt],Re=[M,F].indexOf(w)!==-1,Ge=(Xe=$==null?void 0:$[g])!=null?Xe:0,_e=Re?ze:J-O[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+O[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=u&&Re?Cr(_e,J,Je):ce(u?_e:ze,J,u?Je:Ye);y[g]=Ke,D[g]=Ke-J}t.modifiersData[o]=D}}const ro={name:"preventOverflow",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"]};function oo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function no(e){return e===W(e)||!L(e)?Ne(e):oo(e)}function ao(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 io(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&ao(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((I(t)!=="body"||Ue(a))&&(s=no(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 so(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 lo(e){var t=so(e);return br.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function co(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fo(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 ft={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var e=arguments.length,t=new Array(e),r=0;rDe({root:["root"]},sr(mo)),wo={},Oo=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:u={},slots:x={},TransitionProps:d}=t,m=ae(t,ho),w=E.useRef(null),P=tt(w,r),b=E.useRef(null),p=tt(b,h),g=E.useRef(p);rt(()=>{g.current=p},[p]),E.useImperativeHandle(h,()=>b.current,[]);const y=yo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(ke(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(ke(n))},[n]),rt(()=>{if(!C||!f)return;const V=X=>{A(X.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{V(X)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const B=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(B),()=>{B.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const D=xo(),S=(o=x.root)!=null?o:"div",k=Ut({elementType:S,externalSlotProps:u.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:D.root});return Q.jsx(S,T({},k,{children:typeof a=="function"?a($):a}))}),Po=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=wo,popperRef:u,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,go),[b,p]=E.useState(!0),g=()=>{p(!1)},y=()=>{p(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=ke(o);O=R&&bo(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(Ht,{disablePortal:s,container:O,children:Q.jsx(Oo,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:u,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),Eo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Co=Be(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=It(),a=Me({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:p}=a,g=ae(a,Eo),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return Q.jsx(Co,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:p??f},O,{ref:r}))}),Wo=Ro;function Vo({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 Ao=E.createContext(void 0),Rt=Ao;function Lo(){return E.useContext(Rt)}function ut(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dt(e,t=!1){return e&&(ut(e.value)&&e.value!==""||t&&ut(e.defaultValue)&&e.defaultValue!=="")}function So(e){return e.startAdornment}function $o(e){return Te("MuiFormControl",e)}vt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ko=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${mt(r)}`,o&&"fullWidth"]};return De(n,$o,t)},Do=Be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${mt(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%"})),To=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:u="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,jo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:u,required:x,size:d,variant:m}),b=ko(P),[p,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{if(!Se(k,["Input","Select"]))return;const V=Se(k,["Select"])?k.props.input:k;V&&So(V.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{Se(k,["Input","Select"])&&(dt(k.props,!0)||dt(k.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 D=E.useMemo(()=>({adornedStart:p,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[p,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(Rt.Provider,{value:D,children:Q.jsx(Do,T({as:s,ownerState:P,className:qt(b.root,a),ref:r},w,{children:n}))})}),No=To,Bo=nr({createStyledComponent:Be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Me({props:e,name:"MuiStack"})}),Ho=Bo;export{No as F,Wo as P,Ho as S,Lo as a,Rt as b,Yt as e,Vo as f,dt as i,Fo as u}; diff --git a/build/assets/Streamable-87694463.js b/build/assets/Streamable-92b10aba.js similarity index 95% rename from build/assets/Streamable-87694463.js rename to build/assets/Streamable-92b10aba.js index 8b4ed4e71..743d5a788 100644 --- a/build/assets/Streamable-87694463.js +++ b/build/assets/Streamable-92b10aba.js @@ -1 +1 @@ -import{q as m,r as f}from"./index-87686c58.js";import{u as _,p as b}from"./index-b9eee39b.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{q as m,r as f}from"./index-66901234.js";import{u as _,p as b}from"./index-5e3fe062.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-0f5e7022.js b/build/assets/Tabs-f772e78a.js similarity index 98% rename from build/assets/Tabs-0f5e7022.js rename to build/assets/Tabs-f772e78a.js index fa163e8d2..52831ec63 100644 --- a/build/assets/Tabs-0f5e7022.js +++ b/build/assets/Tabs-f772e78a.js @@ -1 +1 @@ -import{g as ft,d as pt,s as O,i as Pt,a as b,r as c,u as ht,b as rt,c as L,j as v,h as vt,ai as Zt,ao as Lt,am as Nt,al as $t,av as lt,f as ut,aj as te}from"./index-87686c58.js";import{w as kt}from"./index-67098fb8.js";import{c as Ft}from"./createSvgIcon-bb70c00d.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:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return vt(m,oe,e)},se=O(kt,{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)})),ae=c.forwardRef(function(e,r){const a=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}=a,D=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),X=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(X.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 v.jsxs(se,b({focusRipple:!h,className:L(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{children:[m==="top"||m==="start"?v.jsxs(c.Fragment,{children:[N,T]}):v.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ae,ie=Ft(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(v.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,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;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),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=Lt(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=Nt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),v.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const ve=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Se=ve,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return vt({root:["root",r,a&&"disabled"]},he,e)},ge=O(kt,{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,[`&.${Se.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 a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=$t().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,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 v.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?v.jsx(I,b({},H)):v.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 a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!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:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return vt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"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 a=ht({props:e,name:"MuiTabs"}),n=$t(),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:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{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:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[St,Dt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Xt]=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 i;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const S=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+S)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const S=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(S>=1||M>=1)&&mt(f)}}),it=(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),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?v.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?v.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?v.jsx(H,b({slots:{EndScrollButtonIcon:D.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:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=Lt(()=>{z.current&&q()});let l;const i=S=>{S.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=Nt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(S=>{l.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var S,M;o.clear(),s.removeEventListener("resize",o),(S=f)==null||S.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 i=o[0],s=o[l-1],f={root:z.current,threshold:.99},S=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(S,f);M.observe(i);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(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=v.jsx(ze,b({},X,{className:L(W.indicator,X.className),ownerState:$,style:b({},k,X.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 i=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!St&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case S:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return v.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,v.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[v.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}),St&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; +import{g as ft,d as pt,s as O,i as Pt,a as b,r as c,u as ht,b as rt,c as L,j as v,h as vt,ai as Zt,ao as Lt,am as Nt,al as $t,av as lt,f as ut,aj as te}from"./index-66901234.js";import{m as kt}from"./index-2979d0f2.js";import{c as Ft}from"./createSvgIcon-d7fd46c8.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:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return vt(m,oe,e)},se=O(kt,{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)})),ae=c.forwardRef(function(e,r){const a=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}=a,D=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),X=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(X.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 v.jsxs(se,b({focusRipple:!h,className:L(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{children:[m==="top"||m==="start"?v.jsxs(c.Fragment,{children:[N,T]}):v.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ae,ie=Ft(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(v.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,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;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),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=Lt(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=Nt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),v.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const ve=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Se=ve,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return vt({root:["root",r,a&&"disabled"]},he,e)},ge=O(kt,{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,[`&.${Se.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 a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=$t().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,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 v.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?v.jsx(I,b({},H)):v.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 a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!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:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return vt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"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 a=ht({props:e,name:"MuiTabs"}),n=$t(),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:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{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:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[St,Dt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Xt]=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 i;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const S=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+S)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const S=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(S>=1||M>=1)&&mt(f)}}),it=(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),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?v.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?v.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?v.jsx(H,b({slots:{EndScrollButtonIcon:D.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:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=Lt(()=>{z.current&&q()});let l;const i=S=>{S.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=Nt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(S=>{l.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var S,M;o.clear(),s.removeEventListener("resize",o),(S=f)==null||S.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 i=o[0],s=o[l-1],f={root:z.current,threshold:.99},S=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(S,f);M.observe(i);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(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=v.jsx(ze,b({},X,{className:L(W.indicator,X.className),ownerState:$,style:b({},k,X.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 i=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!St&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",S=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case S:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return v.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,v.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[v.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}),St&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-c523d1d2.js b/build/assets/TextareaAutosize-146d11d5.js similarity index 97% rename from build/assets/TextareaAutosize-c523d1d2.js rename to build/assets/TextareaAutosize-146d11d5.js index ad6c27553..606379aab 100644 --- a/build/assets/TextareaAutosize-c523d1d2.js +++ b/build/assets/TextareaAutosize-146d11d5.js @@ -1,2 +1,2 @@ -import{r as o,b as _,e as I,am as T,ai as F,ao as D,j as v,a as p,m as P}from"./index-87686c58.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 q=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,U),{current:A}=o.useRef(y!=null),b=o.useRef(null),N=I(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,b as _,e as I,am as T,ai as F,ao as D,j as v,a as p,m as P}from"./index-66901234.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 q=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,U),{current:A}=o.useRef(y!=null),b=o.useRef(null),N=I(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),i=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)),x&&(s=Math.min(Number(x)*d,s)),s=Math.max(s,d);const B=s+(g==="border-box"?w+i:0),L=Math.abs(s-u)<=1;return{outerHeightStyle:B,overflow:L}},[x,h,l.placeholder]),C=(e,a)=>{const{outerHeightStyle:n,overflow:t}=a;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(a=>C(a,e))},[f]);F(()=>{const e=()=>{const u=f();M(u)||P.flushSync(()=>{E(d=>C(d,u))})},a=()=>{c.current=0,e()};let n;const t=D(a),g=b.current,w=T(g);w.addEventListener("resize",t);let i;return typeof ResizeObserver<"u"&&(i=new ResizeObserver(a),i.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),w.removeEventListener("resize",t),i&&i.disconnect()}},[f]),F(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const j=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",p({value:y,onChange:j,ref:N,rows:h,style:p({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:p({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{q as T}; diff --git a/build/assets/Twitch-4a16b760.js b/build/assets/Twitch-09d5993e.js similarity index 95% rename from build/assets/Twitch-4a16b760.js rename to build/assets/Twitch-09d5993e.js index e0cde08d1..3168c31f0 100644 --- a/build/assets/Twitch-4a16b760.js +++ b/build/assets/Twitch-09d5993e.js @@ -1 +1 @@ -import{q as w,r as D}from"./index-87686c58.js";import{u as C,p as N}from"./index-b9eee39b.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{q as w,r as D}from"./index-66901234.js";import{u as C,p as N}from"./index-5e3fe062.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-8872fb44.js b/build/assets/Typography-77d675f7.js similarity index 93% rename from build/assets/Typography-8872fb44.js rename to build/assets/Typography-77d675f7.js index b3f1a174e..52596557e 100644 --- a/build/assets/Typography-8872fb44.js +++ b/build/assets/Typography-77d675f7.js @@ -1 +1 @@ -import{d as T,g as B,s as W,i as u,a as s,r as C,u as M,b as R,j as P,c as j,h as U}from"./index-87686c58.js";import{e as N}from"./Stack-448c401b.js";function _(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,_,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=N(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{d as T,g as B,s as W,i as u,a as s,r as C,u as M,b as R,j as P,c as j,h as U}from"./index-66901234.js";import{e as N}from"./Stack-9fbe3064.js";function _(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,_,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=N(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-f0248875.js b/build/assets/Vidyard-0687345c.js similarity index 95% rename from build/assets/Vidyard-f0248875.js rename to build/assets/Vidyard-0687345c.js index ee9d31a05..2c4b1c841 100644 --- a/build/assets/Vidyard-f0248875.js +++ b/build/assets/Vidyard-0687345c.js @@ -1 +1 @@ -import{q as g,r as v}from"./index-87686c58.js";import{u as b,p as O}from"./index-b9eee39b.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{q as g,r as v}from"./index-66901234.js";import{u as b,p as O}from"./index-5e3fe062.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-53d2adea.js b/build/assets/Vimeo-e40b2451.js similarity index 96% rename from build/assets/Vimeo-53d2adea.js rename to build/assets/Vimeo-e40b2451.js index 4ab460608..cd48bdf0e 100644 --- a/build/assets/Vimeo-53d2adea.js +++ b/build/assets/Vimeo-e40b2451.js @@ -1 +1 @@ -import{q as d,r as f}from"./index-87686c58.js";import{u as m,p as _}from"./index-b9eee39b.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{q as d,r as f}from"./index-66901234.js";import{u as m,p as _}from"./index-5e3fe062.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-1e5334ca.js b/build/assets/Wistia-ec05616f.js similarity index 96% rename from build/assets/Wistia-1e5334ca.js rename to build/assets/Wistia-ec05616f.js index 39a1323a4..b63418052 100644 --- a/build/assets/Wistia-1e5334ca.js +++ b/build/assets/Wistia-ec05616f.js @@ -1 +1 @@ -import{q as m,r as g}from"./index-87686c58.js";import{u as v,p as w}from"./index-b9eee39b.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(_),T=O({__proto__:null,default:L},[_]);export{T as W}; +import{q as m,r as g}from"./index-66901234.js";import{u as v,p as w}from"./index-5e3fe062.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(_),T=O({__proto__:null,default:L},[_]);export{T as W}; diff --git a/build/assets/YouTube-f35565d2.js b/build/assets/YouTube-9711fea4.js similarity index 97% rename from build/assets/YouTube-f35565d2.js rename to build/assets/YouTube-9711fea4.js index 93d2a5479..82661fb1c 100644 --- a/build/assets/YouTube-f35565d2.js +++ b/build/assets/YouTube-9711fea4.js @@ -1 +1 @@ -import{q as U,r as I}from"./index-87686c58.js";import{u as L,p as Y}from"./index-b9eee39b.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{q as U,r as I}from"./index-66901234.js";import{u as L,p as Y}from"./index-5e3fe062.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/createSvgIcon-bb70c00d.js b/build/assets/createSvgIcon-d7fd46c8.js similarity index 97% rename from build/assets/createSvgIcon-bb70c00d.js rename to build/assets/createSvgIcon-d7fd46c8.js index 446292b4f..13e9faeb7 100644 --- a/build/assets/createSvgIcon-bb70c00d.js +++ b/build/assets/createSvgIcon-d7fd46c8.js @@ -1 +1 @@ -import{d as I,g as C,s as w,i as f,r as v,u as R,b,a as g,j as S,c as j,h as N}from"./index-87686c58.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{d as I,g as C,s as w,i as f,r as v,u as R,b,a as g,j as S,c as j,h as N}from"./index-66901234.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-d6302b3a.js b/build/assets/index-08a4a5f1.js similarity index 76% rename from build/assets/index-d6302b3a.js rename to build/assets/index-08a4a5f1.js index f38236ae2..50ff98e5a 100644 --- a/build/assets/index-d6302b3a.js +++ b/build/assets/index-08a4a5f1.js @@ -1,4 +1,4 @@ -import{t as s,v as l,F as n,w,j as e,x as T,y as C,I as S,r as b,G as v,b8 as I,b9 as f,ba as A,H as B,Y as y}from"./index-87686c58.js";import{B as z}from"./index-0b3081fa.js";import{u as M,G as k,C as D,j as E,p as R,B as G,g as F,S as W,F as P,q as L}from"./index-67098fb8.js";import{C as $}from"./ClipLoader-3d43cca0.js";import{T as j}from"./index-d67f975a.js";import{T as V,a as N}from"./Tabs-0f5e7022.js";import"./createSvgIcon-bb70c00d.js";const Y={split:e.jsx(k,{}),force:e.jsx(D,{}),sphere:e.jsx(E,{}),earth:e.jsx(R,{})},H=()=>{const[i,p]=w(M(t=>[t.graphStyle,t.setGraphStyle])),r=t=>{p(t)};return e.jsx(O,{direction:"column",children:T.map(t=>e.jsx(n,{className:C("icon",{active:i===t}),onClick:()=>r(t),children:Y[t]},t))})},O=s(n).attrs({direction:"row",align:"center",justify:"space-between"})` +import{t as s,v as l,F as n,w,j as e,x as T,y as C,I as S,r as f,G as v,b8 as I,b9 as b,ba as A,H as B,Y as y}from"./index-66901234.js";import{B as z}from"./index-f2d8f92e.js";import{u as M,G as k,C as D,i as E,l as R,B as G,f as F,F as W}from"./index-2979d0f2.js";import{C as $}from"./ClipLoader-81a960be.js";import{T as j}from"./index-ed5d0d1f.js";import{S as P}from"./index-82f7e5dd.js";import{e as L}from"./index.esm-24fdfebf.js";import{T as V,a as N}from"./Tabs-f772e78a.js";import"./createSvgIcon-d7fd46c8.js";const Y={split:e.jsx(k,{}),force:e.jsx(D,{}),sphere:e.jsx(E,{}),earth:e.jsx(R,{})},H=()=>{const[i,p]=w(M(t=>[t.graphStyle,t.setGraphStyle])),r=t=>{p(t)};return e.jsx(O,{direction:"column",children:T.map(t=>e.jsx(n,{className:C("icon",{active:i===t}),onClick:()=>r(t),children:Y[t]},t))})},O=s(n).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${l.appearanceBg}; @@ -28,7 +28,7 @@ import{t as s,v as l,F as n,w,j as e,x as T,y as C,I as S,r as b,G as v,b8 as I, .icon + .icon { margin-left: 20px; } -`,q=({onClose:i})=>{const[p]=w(d=>[d.graphStyle]),[r,t]=b.useState(!1),c=()=>{t(!0),localStorage.setItem("graphStyle",p),t(!1),i()};return e.jsxs(_,{direction:"column",children:[e.jsx(K,{children:"Default graph view:"}),e.jsx(H,{}),e.jsx(n,{mt:308,py:8,children:e.jsx(G,{color:"secondary",disabled:r,id:"add-node-submit-cta",onClick:c,size:"large",startIcon:r&&e.jsx(U,{children:e.jsx($,{color:l.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},_=s(n)` +`,_=({onClose:i})=>{const[p]=w(d=>[d.graphStyle]),[r,t]=f.useState(!1),c=()=>{t(!0),localStorage.setItem("graphStyle",p),t(!1),i()};return e.jsxs(q,{direction:"column",children:[e.jsx(K,{children:"Default graph view:"}),e.jsx(H,{}),e.jsx(n,{mt:308,py:8,children:e.jsx(G,{color:"secondary",disabled:r,id:"add-node-submit-cta",onClick:c,size:"large",startIcon:r&&e.jsx(U,{children:e.jsx($,{color:l.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},q=s(n)` display: flex; gap: 10px; padding: 36px; @@ -47,7 +47,7 @@ import{t as s,v as l,F as n,w,j as e,x as T,y as C,I as S,r as b,G as v,b8 as I, width: 16px; height: 16px; } -`,J=({initialValues:i,onClose:p})=>{const r=F({defaultValues:i,mode:"onSubmit"}),{isSubmitting:t}=r.formState,c=v(a=>a.setAppMetaData),[d,m]=b.useState(""),g=r.handleSubmit(async a=>{try{(await I(a)).status==="success"&&(W("Changes Saved"),c(a),p())}catch(o){let u=f;if((o==null?void 0:o.status)===400){const h=await o.json();u=h.errorCode||(h==null?void 0:h.status)||f}else o instanceof Error&&(u=o.message);m(String(u))}}),x=a=>{a.preventDefault(),g()};return e.jsx(P,{...r,children:e.jsx(Q,{id:"add-node-form",onSubmit:x,children:e.jsxs(e.Fragment,{children:[e.jsxs(n,{children:[e.jsx(n,{pt:20,children:e.jsx(j,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...A}})}),e.jsx(n,{pt:20,children:e.jsx(j,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(n,{mt:210,py:d?0:24,children:[e.jsx(G,{color:"secondary",disabled:t,id:"add-node-submit-cta",size:"large",startIcon:t&&e.jsx(X,{children:e.jsx($,{color:l.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),d?e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(L,{className:"errorIcon"}),e.jsx("span",{children:d})]})}):null]})]})})})},Q=s.form` +`,J=({initialValues:i,onClose:p})=>{const r=F({defaultValues:i,mode:"onSubmit"}),{isSubmitting:t}=r.formState,c=v(a=>a.setAppMetaData),[d,m]=f.useState(""),g=r.handleSubmit(async a=>{try{(await I(a)).status==="success"&&(P("Changes Saved"),c(a),p())}catch(o){let u=b;if((o==null?void 0:o.status)===400){const h=await o.json();u=h.errorCode||(h==null?void 0:h.status)||b}else o instanceof Error&&(u=o.message);m(String(u))}}),x=a=>{a.preventDefault(),g()};return e.jsx(W,{...r,children:e.jsx(Q,{id:"add-node-form",onSubmit:x,children:e.jsxs(e.Fragment,{children:[e.jsxs(n,{children:[e.jsx(n,{pt:20,children:e.jsx(j,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...A}})}),e.jsx(n,{pt:20,children:e.jsx(j,{id:"cy-about-id",label:"Graph Description",maxLength:100,name:"description",placeholder:"Type graph description here..."})})]}),e.jsxs(n,{mt:210,py:d?0:24,children:[e.jsx(G,{color:"secondary",disabled:t,id:"add-node-submit-cta",size:"large",startIcon:t&&e.jsx(X,{children:e.jsx($,{color:l.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"}),d?e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(L,{className:"errorIcon"}),e.jsx("span",{children:d})]})}):null]})]})})})},Q=s.form` padding: 36px; `,X=s.span` display: inline-flex; @@ -92,7 +92,7 @@ import{t as s,v as l,F as n,w,j as e,x as T,y as C,I as S,r as b,G as v,b8 as I, font-family: Barlow; line-height: 18px; } -`,te=i=>{const{children:p,value:r,index:t,...c}=i;return r===t?e.jsx(oe,{"aria-labelledby":`simple-tab-${t}`,hidden:r!==t,id:`simple-tabpanel-${t}`,role:"tabpanel",...c,children:p}):null};function ae(i){return{id:`simple-tab-${i}`,"aria-controls":`simple-tabpanel-${i}`}}const ie=({onClose:i})=>{const[p,r]=b.useState(0),[t]=B(a=>[a.isAdmin,a.setPubKey]),c=v(a=>a.appMetaData),d=()=>t?"Admin Settings":"Settings",m=({children:a})=>e.jsxs(se,{children:[e.jsx(n,{direction:"row",pt:3,children:e.jsx(pe,{"data-testid":"setting-label",children:d()})}),a]}),g=(a,o)=>{r(o)},x=[...t?[{label:"General",component:J}]:[],{label:"Appearance",component:q}];return e.jsxs(le,{"data-testid":"settings-modal",direction:"column",children:[e.jsx(m,{children:e.jsx(ne,{"aria-label":"settings tabs",onChange:g,value:p,children:x.map((a,o)=>e.jsx(re,{disableRipple:!0,label:a.label,...ae(o)},a.label))})}),x.map((a,o)=>e.jsx(te,{index:o,value:p,children:c&&e.jsx(a.component,{initialValues:c,onClose:i})},a.label))]})},ne=s(V)` +`,te=i=>{const{children:p,value:r,index:t,...c}=i;return r===t?e.jsx(oe,{"aria-labelledby":`simple-tab-${t}`,hidden:r!==t,id:`simple-tabpanel-${t}`,role:"tabpanel",...c,children:p}):null};function ae(i){return{id:`simple-tab-${i}`,"aria-controls":`simple-tabpanel-${i}`}}const ie=({onClose:i})=>{const[p,r]=f.useState(0),[t]=B(a=>[a.isAdmin,a.setPubKey]),c=v(a=>a.appMetaData),d=()=>t?"Admin Settings":"Settings",m=({children:a})=>e.jsxs(se,{children:[e.jsx(n,{direction:"row",pt:3,children:e.jsx(pe,{"data-testid":"setting-label",children:d()})}),a]}),g=(a,o)=>{r(o)},x=[...t?[{label:"General",component:J}]:[],{label:"Appearance",component:_}];return e.jsxs(le,{"data-testid":"settings-modal",direction:"column",children:[e.jsx(m,{children:e.jsx(ne,{"aria-label":"settings tabs",onChange:g,value:p,children:x.map((a,o)=>e.jsx(re,{disableRipple:!0,label:a.label,...ae(o)},a.label))})}),x.map((a,o)=>e.jsx(te,{index:o,value:p,children:c&&e.jsx(a.component,{initialValues:c,onClose:i})},a.label))]})},ne=s(V)` && { .MuiTabs-indicator { background: ${l.primaryBlue}; @@ -167,4 +167,4 @@ import{t as s,v as l,F as n,w,j as e,x as T,y as C,I as S,r as b,G as v,b8 as I, @media (max-width: 768px) { font-size: 18px; } -`,be=()=>{const{close:i}=y("settings"),{visible:p}=y("addItem");return p?null:e.jsx(z,{background:"BG1",id:"settings",noWrap:!0,onClose:i,preventOutsideClose:!0,children:e.jsx(ie,{onClose:i})})};export{be as SettingsModal}; +`,ye=()=>{const{close:i}=y("settings"),{visible:p}=y("addItem");return p?null:e.jsx(z,{background:"BG1",id:"settings",noWrap:!0,onClose:i,preventOutsideClose:!0,children:e.jsx(ie,{onClose:i})})};export{ye as SettingsModal}; diff --git a/build/assets/index-c8f73829.js b/build/assets/index-14a79774.js similarity index 92% rename from build/assets/index-c8f73829.js rename to build/assets/index-14a79774.js index f376382d7..8ab889e9a 100644 --- a/build/assets/index-c8f73829.js +++ b/build/assets/index-14a79774.js @@ -1,4 +1,4 @@ -import{j as e,t as c,v as t,F as i,Y as y,r as l,w as b,z as S,D,bC as M,bD as $}from"./index-87686c58.js";import{B as R}from"./index-0b3081fa.js";import{S as z}from"./Skeleton-20b798ec.js";import{C as I}from"./ClipLoader-3d43cca0.js";import{B as j}from"./index-67098fb8.js";const A=d=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),e.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),e.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),E=({nodeName:d})=>e.jsx(i,{children:e.jsxs(i,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(G,{children:e.jsx(A,{})}),e.jsxs(T,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),T=c(i)` +import{j as e,t as c,v as t,F as i,Y as y,r as l,w as b,z as S,D,bC as M,bD as $}from"./index-66901234.js";import{B as R}from"./index-f2d8f92e.js";import{S as z}from"./Skeleton-afb5f26b.js";import{C as I}from"./ClipLoader-81a960be.js";import{B as j}from"./index-2979d0f2.js";const A=d=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),e.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),e.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),E=({nodeName:d})=>e.jsx(i,{children:e.jsxs(i,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(G,{children:e.jsx(A,{})}),e.jsxs(T,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),T=c(i)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-e06aeeab.js b/build/assets/index-1dce22c6.js similarity index 82% rename from build/assets/index-e06aeeab.js rename to build/assets/index-1dce22c6.js index ae3a9efd3..1e2829e0a 100644 --- a/build/assets/index-e06aeeab.js +++ b/build/assets/index-1dce22c6.js @@ -1,4 +1,4 @@ -import{r as x,d as Xt,g as qt,s as _e,a as U,u as Qt,al as yo,b as Jt,j as o,c as eo,bG as We,bH as xt,h as to,i as be,l as Pt,as as wo,at as jo,t as _,v as w,bq as gt,I as se,F as v,ba as He,bI as vo,bJ as ot,bK as Co,bp as oo,Y as no,bL as Eo,b9 as ge,af as ft,a5 as Tt,a4 as kt,a3 as Mt,a2 as $t,a1 as Po,V as To,aD as At}from"./index-87686c58.js";import{B as ko}from"./index-0b3081fa.js";import{g as bt,B as Ue,F as ro,i as yt,x as Mo,f as $o,I as Ao,y as _o,b as so}from"./index-67098fb8.js";import{O as Oo,n as Io,a as _t,N as io}from"./constants-a6b58f4d.js";import{T as Ye}from"./index-d67f975a.js";import{A as $e}from"./index-eaa4131c.js";import{C as ue}from"./ClipLoader-3d43cca0.js";import{D as ao}from"./DeleteIcon-ee935491.js";import{P as co}from"./PlusIcon-dd101fe0.js";import{p as ht,c as So,g as No}from"./index-44e303ef.js";import{S as zo,F as Ro}from"./FormControlLabel-2c99cf32.js";import{e as Bo}from"./Stack-448c401b.js";import{g as Lo,m as Vo,u as te,b as Ze,t as mt,T as lo,i as uo,H as Do,j as Ot,C as Fo,P as Go,k as Ho}from"./index-3bf3d93c.js";import{Z as Yo,_ as Wo,E as Uo,V as z,$ as me,a0 as xe,a1 as It,P as De,a2 as Fe,a3 as St,a as Q,a4 as Zo,G as Ko,C as Xo}from"./three.module-2ce81f73.js";import"./createSvgIcon-bb70c00d.js";import"./TextareaAutosize-c523d1d2.js";import"./Typography-8872fb44.js";const qo=x.createContext(),Nt=qo;function Qo(t){return Xt("MuiGrid",t)}const Jo=[0,1,2,3,4,5,6,7,8,9,10],en=["column-reverse","column","row-reverse","row"],tn=["nowrap","wrap-reverse","wrap"],Me=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],on=qt("MuiGrid",["root","container","item","zeroMinWidth",...Jo.map(t=>`spacing-xs-${t}`),...en.map(t=>`direction-xs-${t}`),...tn.map(t=>`wrap-xs-${t}`),...Me.map(t=>`grid-xs-${t}`),...Me.map(t=>`grid-sm-${t}`),...Me.map(t=>`grid-md-${t}`),...Me.map(t=>`grid-lg-${t}`),...Me.map(t=>`grid-xl-${t}`)]),Ae=on,nn=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ye(t){const r=parseFloat(t);return`${r}${String(t).replace(String(r),"")||"px"}`}function rn({theme:t,ownerState:r}){let n;return t.breakpoints.keys.reduce((e,a)=>{let d={};if(r[a]&&(n=r[a]),!n)return e;if(n===!0)d={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")d={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=We({values:r.columns,breakpoints:t.breakpoints.values}),i=typeof u=="object"?u[a]:u;if(i==null)return e;const c=`${Math.round(n/i*1e8)/1e6}%`;let k={};if(r.container&&r.item&&r.columnSpacing!==0){const l=t.spacing(r.columnSpacing);if(l!=="0px"){const p=`calc(${c} + ${ye(l)})`;k={flexBasis:p,maxWidth:p}}}d=U({flexBasis:c,flexGrow:0,maxWidth:c},k)}return t.breakpoints.values[a]===0?Object.assign(e,d):e[t.breakpoints.up(a)]=d,e},{})}function sn({theme:t,ownerState:r}){const n=We({values:r.direction,breakpoints:t.breakpoints.values});return xt({theme:t},n,e=>{const a={flexDirection:e};return e.indexOf("column")===0&&(a[`& > .${Ae.item}`]={maxWidth:"none"}),a})}function po({breakpoints:t,values:r}){let n="";Object.keys(r).forEach(a=>{n===""&&r[a]!==0&&(n=a)});const e=Object.keys(t).sort((a,d)=>t[a]-t[d]);return e.slice(0,e.indexOf(n))}function an({theme:t,ownerState:r}){const{container:n,rowSpacing:e}=r;let a={};if(n&&e!==0){const d=We({values:e,breakpoints:t.breakpoints.values});let u;typeof d=="object"&&(u=po({breakpoints:t.breakpoints.values,values:d})),a=xt({theme:t},d,(i,c)=>{var k;const l=t.spacing(i);return l!=="0px"?{marginTop:`-${ye(l)}`,[`& > .${Ae.item}`]:{paddingTop:ye(l)}}:(k=u)!=null&&k.includes(c)?{}:{marginTop:0,[`& > .${Ae.item}`]:{paddingTop:0}}})}return a}function cn({theme:t,ownerState:r}){const{container:n,columnSpacing:e}=r;let a={};if(n&&e!==0){const d=We({values:e,breakpoints:t.breakpoints.values});let u;typeof d=="object"&&(u=po({breakpoints:t.breakpoints.values,values:d})),a=xt({theme:t},d,(i,c)=>{var k;const l=t.spacing(i);return l!=="0px"?{width:`calc(100% + ${ye(l)})`,marginLeft:`-${ye(l)}`,[`& > .${Ae.item}`]:{paddingLeft:ye(l)}}:(k=u)!=null&&k.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Ae.item}`]:{paddingLeft:0}}})}return a}function ln(t,r,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const e=[];return r.forEach(a=>{const d=t[a];Number(d)>0&&e.push(n[`spacing-${a}-${String(d)}`])}),e}const dn=_e("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:n}=t,{container:e,direction:a,item:d,spacing:u,wrap:i,zeroMinWidth:c,breakpoints:k}=n;let l=[];e&&(l=ln(u,k,r));const p=[];return k.forEach(m=>{const g=n[m];g&&p.push(r[`grid-${m}-${String(g)}`])}),[r.root,e&&r.container,d&&r.item,c&&r.zeroMinWidth,...l,a!=="row"&&r[`direction-xs-${String(a)}`],i!=="wrap"&&r[`wrap-xs-${String(i)}`],...p]}})(({ownerState:t})=>U({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),sn,an,cn,rn);function un(t,r){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return r.forEach(e=>{const a=t[e];if(Number(a)>0){const d=`spacing-${e}-${String(a)}`;n.push(d)}}),n}const pn=t=>{const{classes:r,container:n,direction:e,item:a,spacing:d,wrap:u,zeroMinWidth:i,breakpoints:c}=t;let k=[];n&&(k=un(d,c));const l=[];c.forEach(m=>{const g=t[m];g&&l.push(`grid-${m}-${String(g)}`)});const p={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...k,e!=="row"&&`direction-xs-${String(e)}`,u!=="wrap"&&`wrap-xs-${String(u)}`,...l]};return to(p,Qo,r)},fn=x.forwardRef(function(r,n){const e=Qt({props:r,name:"MuiGrid"}),{breakpoints:a}=yo(),d=Bo(e),{className:u,columns:i,columnSpacing:c,component:k="div",container:l=!1,direction:p="row",item:m=!1,rowSpacing:g,spacing:b=0,wrap:A="wrap",zeroMinWidth:y=!1}=d,C=Jt(d,nn),j=g||b,R=c||b,E=x.useContext(Nt),T=l?i||12:E,N={},D=U({},C);a.keys.forEach(h=>{C[h]!=null&&(N[h]=C[h],delete D[h])});const B=U({},d,{columns:T,container:l,direction:p,item:m,rowSpacing:j,columnSpacing:R,wrap:A,zeroMinWidth:y,spacing:b},N,{breakpoints:a.keys}),V=pn(B);return o.jsx(Nt.Provider,{value:T,children:o.jsx(dn,U({ownerState:B,className:eo(V.root,u),as:k,ref:n},D))})}),ie=fn;function hn(t){return Xt("MuiSwitch",t)}const mn=qt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),W=mn,xn=["className","color","edge","size","sx"],gn=t=>{const{classes:r,edge:n,size:e,color:a,checked:d,disabled:u}=t,i={root:["root",n&&`edge${be(n)}`,`size${be(e)}`],switchBase:["switchBase",`color${be(a)}`,d&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=to(i,hn,r);return U({},r,c)},bn=_e("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:n}=t;return[r.root,n.edge&&r[`edge${be(n.edge)}`],r[`size${be(n.size)}`]]}})(({ownerState:t})=>U({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,[`& .${W.thumb}`]:{width:16,height:16},[`& .${W.switchBase}`]:{padding:4,[`&.${W.checked}`]:{transform:"translateX(16px)"}}})),yn=_e(zo,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,r)=>{const{ownerState:n}=t;return[r.switchBase,{[`& .${W.input}`]:r.input},n.color!=="default"&&r[`color${be(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}),[`&.${W.checked}`]:{transform:"translateX(20px)"},[`&.${W.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${W.checked} + .${W.track}`]:{opacity:.5},[`&.${W.disabled} + .${W.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${W.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:r})=>U({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Pt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.color!=="default"&&{[`&.${W.checked}`]:{color:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Pt(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${W.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${r.color}DisabledColor`]:`${t.palette.mode==="light"?wo(t.palette[r.color].main,.62):jo(t.palette[r.color].main,.55)}`}},[`&.${W.checked} + .${W.track}`]:{backgroundColor:(t.vars||t).palette[r.color].main}})),wn=_e("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,r)=>r.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}`})),jn=_e("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,r)=>r.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),vn=x.forwardRef(function(r,n){const e=Qt({props:r,name:"MuiSwitch"}),{className:a,color:d="primary",edge:u=!1,size:i="medium",sx:c}=e,k=Jt(e,xn),l=U({},e,{color:d,edge:u,size:i}),p=gn(l),m=o.jsx(jn,{className:p.thumb,ownerState:l});return o.jsxs(bn,{className:eo(p.root,a),sx:c,ownerState:l,children:[o.jsx(yn,U({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:l},k,{classes:U({},p,{root:p.switchBase})})),o.jsx(wn,{className:p.track,ownerState:l})]})}),fo=vn,Cn={type:"",parent:""},zt=({onSelect:t,dataTestId:r,edgeLink:n,hideSelectAll:e,placeholder:a})=>{const d=bt({mode:"onChange",defaultValues:Cn}),{watch:u,setValue:i}=d,[c,k]=x.useState([]),[l,p]=x.useState(!1),m=y=>{i("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},g=y=>y.charAt(0).toUpperCase()+y.slice(1);x.useEffect(()=>{(async()=>{p(!0);try{const j=(await gt()).schemas.filter(E=>!E.is_deleted&&E.type).map(E=>(E==null?void 0:E.type)==="thing"?{label:"No Parent",value:E.type}:{label:g(E.type),value:E.type});k(e?j:[{label:"Select all",value:"all"},...j]),n&&i("parent",n)}catch(C){console.warn(C)}finally{p(!1)}})()},[n,i,e]);const b=u("parent"),A=()=>{const y=c==null?void 0:c.find(C=>C.value===b);if(y)return y;if(n)return{label:n,value:n}};return o.jsx(En,{dataTestId:r,disabled:!!n,isLoading:l,onSelect:m,options:c||Oo,placeholder:a,selectedValue:A()})},En=_($e)` +import{r as x,d as Xt,g as qt,s as _e,a as U,u as Qt,al as yo,b as Jt,j as o,c as eo,bG as We,bH as xt,h as to,i as be,l as Pt,as as wo,at as jo,t as _,v as w,bq as gt,I as se,F as v,ba as He,bI as vo,bJ as ot,bK as Co,bp as oo,Y as no,bL as Eo,b9 as ge,af as ft,a5 as Tt,a4 as kt,a3 as Mt,a2 as $t,a1 as Po,V as To,aD as At}from"./index-66901234.js";import{B as ko}from"./index-f2d8f92e.js";import{f as bt,B as Ue,F as ro,h as yt,n as Mo,e as $o,I as Ao,o as _o,b as so}from"./index-2979d0f2.js";import{O as Oo,n as Io,a as _t,N as io}from"./constants-a6b58f4d.js";import{T as Ye}from"./index-ed5d0d1f.js";import{A as $e}from"./index-7e5f4468.js";import{C as ue}from"./ClipLoader-81a960be.js";import{D as ao}from"./DeleteIcon-0129cee6.js";import{P as co}from"./PlusIcon-fe6ca88f.js";import{p as ht,c as So,g as No}from"./index-44e303ef.js";import{S as zo,F as Ro}from"./FormControlLabel-f3a1de50.js";import{e as Bo}from"./Stack-9fbe3064.js";import{g as Lo,m as Vo,u as te,b as Ze,t as mt,T as lo,i as uo,H as Do,j as Ot,C as Fo,P as Go,k as Ho}from"./index-7ae855ee.js";import{Z as Yo,_ as Wo,E as Uo,V as z,$ as me,a0 as xe,a1 as It,P as De,a2 as Fe,a3 as St,a as Q,a4 as Zo,G as Ko,C as Xo}from"./three.module-2ce81f73.js";import"./index.esm-24fdfebf.js";import"./createSvgIcon-d7fd46c8.js";import"./TextareaAutosize-146d11d5.js";import"./Typography-77d675f7.js";const qo=x.createContext(),Nt=qo;function Qo(t){return Xt("MuiGrid",t)}const Jo=[0,1,2,3,4,5,6,7,8,9,10],en=["column-reverse","column","row-reverse","row"],tn=["nowrap","wrap-reverse","wrap"],Me=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],on=qt("MuiGrid",["root","container","item","zeroMinWidth",...Jo.map(t=>`spacing-xs-${t}`),...en.map(t=>`direction-xs-${t}`),...tn.map(t=>`wrap-xs-${t}`),...Me.map(t=>`grid-xs-${t}`),...Me.map(t=>`grid-sm-${t}`),...Me.map(t=>`grid-md-${t}`),...Me.map(t=>`grid-lg-${t}`),...Me.map(t=>`grid-xl-${t}`)]),Ae=on,nn=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function ye(t){const r=parseFloat(t);return`${r}${String(t).replace(String(r),"")||"px"}`}function rn({theme:t,ownerState:r}){let n;return t.breakpoints.keys.reduce((e,a)=>{let d={};if(r[a]&&(n=r[a]),!n)return e;if(n===!0)d={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")d={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=We({values:r.columns,breakpoints:t.breakpoints.values}),i=typeof u=="object"?u[a]:u;if(i==null)return e;const c=`${Math.round(n/i*1e8)/1e6}%`;let k={};if(r.container&&r.item&&r.columnSpacing!==0){const l=t.spacing(r.columnSpacing);if(l!=="0px"){const p=`calc(${c} + ${ye(l)})`;k={flexBasis:p,maxWidth:p}}}d=U({flexBasis:c,flexGrow:0,maxWidth:c},k)}return t.breakpoints.values[a]===0?Object.assign(e,d):e[t.breakpoints.up(a)]=d,e},{})}function sn({theme:t,ownerState:r}){const n=We({values:r.direction,breakpoints:t.breakpoints.values});return xt({theme:t},n,e=>{const a={flexDirection:e};return e.indexOf("column")===0&&(a[`& > .${Ae.item}`]={maxWidth:"none"}),a})}function po({breakpoints:t,values:r}){let n="";Object.keys(r).forEach(a=>{n===""&&r[a]!==0&&(n=a)});const e=Object.keys(t).sort((a,d)=>t[a]-t[d]);return e.slice(0,e.indexOf(n))}function an({theme:t,ownerState:r}){const{container:n,rowSpacing:e}=r;let a={};if(n&&e!==0){const d=We({values:e,breakpoints:t.breakpoints.values});let u;typeof d=="object"&&(u=po({breakpoints:t.breakpoints.values,values:d})),a=xt({theme:t},d,(i,c)=>{var k;const l=t.spacing(i);return l!=="0px"?{marginTop:`-${ye(l)}`,[`& > .${Ae.item}`]:{paddingTop:ye(l)}}:(k=u)!=null&&k.includes(c)?{}:{marginTop:0,[`& > .${Ae.item}`]:{paddingTop:0}}})}return a}function cn({theme:t,ownerState:r}){const{container:n,columnSpacing:e}=r;let a={};if(n&&e!==0){const d=We({values:e,breakpoints:t.breakpoints.values});let u;typeof d=="object"&&(u=po({breakpoints:t.breakpoints.values,values:d})),a=xt({theme:t},d,(i,c)=>{var k;const l=t.spacing(i);return l!=="0px"?{width:`calc(100% + ${ye(l)})`,marginLeft:`-${ye(l)}`,[`& > .${Ae.item}`]:{paddingLeft:ye(l)}}:(k=u)!=null&&k.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Ae.item}`]:{paddingLeft:0}}})}return a}function ln(t,r,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const e=[];return r.forEach(a=>{const d=t[a];Number(d)>0&&e.push(n[`spacing-${a}-${String(d)}`])}),e}const dn=_e("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:n}=t,{container:e,direction:a,item:d,spacing:u,wrap:i,zeroMinWidth:c,breakpoints:k}=n;let l=[];e&&(l=ln(u,k,r));const p=[];return k.forEach(m=>{const g=n[m];g&&p.push(r[`grid-${m}-${String(g)}`])}),[r.root,e&&r.container,d&&r.item,c&&r.zeroMinWidth,...l,a!=="row"&&r[`direction-xs-${String(a)}`],i!=="wrap"&&r[`wrap-xs-${String(i)}`],...p]}})(({ownerState:t})=>U({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),sn,an,cn,rn);function un(t,r){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return r.forEach(e=>{const a=t[e];if(Number(a)>0){const d=`spacing-${e}-${String(a)}`;n.push(d)}}),n}const pn=t=>{const{classes:r,container:n,direction:e,item:a,spacing:d,wrap:u,zeroMinWidth:i,breakpoints:c}=t;let k=[];n&&(k=un(d,c));const l=[];c.forEach(m=>{const g=t[m];g&&l.push(`grid-${m}-${String(g)}`)});const p={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...k,e!=="row"&&`direction-xs-${String(e)}`,u!=="wrap"&&`wrap-xs-${String(u)}`,...l]};return to(p,Qo,r)},fn=x.forwardRef(function(r,n){const e=Qt({props:r,name:"MuiGrid"}),{breakpoints:a}=yo(),d=Bo(e),{className:u,columns:i,columnSpacing:c,component:k="div",container:l=!1,direction:p="row",item:m=!1,rowSpacing:g,spacing:b=0,wrap:A="wrap",zeroMinWidth:y=!1}=d,C=Jt(d,nn),j=g||b,R=c||b,E=x.useContext(Nt),T=l?i||12:E,N={},D=U({},C);a.keys.forEach(h=>{C[h]!=null&&(N[h]=C[h],delete D[h])});const B=U({},d,{columns:T,container:l,direction:p,item:m,rowSpacing:j,columnSpacing:R,wrap:A,zeroMinWidth:y,spacing:b},N,{breakpoints:a.keys}),V=pn(B);return o.jsx(Nt.Provider,{value:T,children:o.jsx(dn,U({ownerState:B,className:eo(V.root,u),as:k,ref:n},D))})}),ie=fn;function hn(t){return Xt("MuiSwitch",t)}const mn=qt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),W=mn,xn=["className","color","edge","size","sx"],gn=t=>{const{classes:r,edge:n,size:e,color:a,checked:d,disabled:u}=t,i={root:["root",n&&`edge${be(n)}`,`size${be(e)}`],switchBase:["switchBase",`color${be(a)}`,d&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=to(i,hn,r);return U({},r,c)},bn=_e("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:n}=t;return[r.root,n.edge&&r[`edge${be(n.edge)}`],r[`size${be(n.size)}`]]}})(({ownerState:t})=>U({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,[`& .${W.thumb}`]:{width:16,height:16},[`& .${W.switchBase}`]:{padding:4,[`&.${W.checked}`]:{transform:"translateX(16px)"}}})),yn=_e(zo,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,r)=>{const{ownerState:n}=t;return[r.switchBase,{[`& .${W.input}`]:r.input},n.color!=="default"&&r[`color${be(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}),[`&.${W.checked}`]:{transform:"translateX(20px)"},[`&.${W.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${W.checked} + .${W.track}`]:{opacity:.5},[`&.${W.disabled} + .${W.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${W.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:r})=>U({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Pt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.color!=="default"&&{[`&.${W.checked}`]:{color:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[r.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Pt(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${W.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${r.color}DisabledColor`]:`${t.palette.mode==="light"?wo(t.palette[r.color].main,.62):jo(t.palette[r.color].main,.55)}`}},[`&.${W.checked} + .${W.track}`]:{backgroundColor:(t.vars||t).palette[r.color].main}})),wn=_e("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,r)=>r.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}`})),jn=_e("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,r)=>r.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),vn=x.forwardRef(function(r,n){const e=Qt({props:r,name:"MuiSwitch"}),{className:a,color:d="primary",edge:u=!1,size:i="medium",sx:c}=e,k=Jt(e,xn),l=U({},e,{color:d,edge:u,size:i}),p=gn(l),m=o.jsx(jn,{className:p.thumb,ownerState:l});return o.jsxs(bn,{className:eo(p.root,a),sx:c,ownerState:l,children:[o.jsx(yn,U({type:"checkbox",icon:m,checkedIcon:m,ref:n,ownerState:l},k,{classes:U({},p,{root:p.switchBase})})),o.jsx(wn,{className:p.track,ownerState:l})]})}),fo=vn,Cn={type:"",parent:""},zt=({onSelect:t,dataTestId:r,edgeLink:n,hideSelectAll:e,placeholder:a})=>{const d=bt({mode:"onChange",defaultValues:Cn}),{watch:u,setValue:i}=d,[c,k]=x.useState([]),[l,p]=x.useState(!1),m=y=>{i("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},g=y=>y.charAt(0).toUpperCase()+y.slice(1);x.useEffect(()=>{(async()=>{p(!0);try{const j=(await gt()).schemas.filter(E=>!E.is_deleted&&E.type).map(E=>(E==null?void 0:E.type)==="thing"?{label:"No Parent",value:E.type}:{label:g(E.type),value:E.type});k(e?j:[{label:"Select all",value:"all"},...j]),n&&i("parent",n)}catch(C){console.warn(C)}finally{p(!1)}})()},[n,i,e]);const b=u("parent"),A=()=>{const y=c==null?void 0:c.find(C=>C.value===b);if(y)return y;if(n)return{label:n,value:n}};return o.jsx(En,{dataTestId:r,disabled:!!n,isLoading:l,onSelect:m,options:c||Oo,placeholder:a,selectedValue:A()})},En=_($e)` .MuiInputBase-input { font-family: Barlow; font-size: 14px; @@ -422,4 +422,4 @@ import{r as x,d as Xt,g as qt,s as _e,a as U,u as Qt,al as yo,b as Jt,j as o,c a } `,_r=_(v)` flex: 1 1 100%; -`,Or=()=>{const{close:t}=no("blueprintGraph"),r=()=>{t()};return o.jsx(ko,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:o.jsx($r,{Close:r})})},Qr=x.memo(Or);export{Qr as BlueprintModal}; +`,Or=()=>{const{close:t}=no("blueprintGraph"),r=()=>{t()};return o.jsx(ko,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:o.jsx($r,{Close:r})})},Jr=x.memo(Or);export{Jr as BlueprintModal}; diff --git a/build/assets/index-2979d0f2.js b/build/assets/index-2979d0f2.js new file mode 100644 index 000000000..3dc2fa3c7 --- /dev/null +++ b/build/assets/index-2979d0f2.js @@ -0,0 +1,457 @@ +import{r as d,_ as Ll,a as Q,b as Fn,R as h,T as Pi,c as We,j as _,g as Or,k as Xo,s as Wt,u as Pr,d as Zo,e as Ai,f as Yn,h as Qo,i as Te,l as en,m as Jo,n as Fl,o as zl,p as ga,$ as Nl,P as fe,q as Vl,W as Bl,t as he,v as te,F as oe,w as ei,x as Wl,y as Hl,z as Ar,A as Ul,B as ti,C as ma,L as Kl,D as ba,E as ya,G as Ir,H as va,I as Ae,S as Gl,J as Le,K as Yl,M as xa,N as ql,O as Xl,Q as Zl,U as Ql,V as Jl,X as eu}from"./index-66901234.js";function tu(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const nu=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),s=parseInt(r,10);return o*3600+i*60+s};let Dr=!0,vo=!1,Ii;const ru={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 ou(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ru[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function iu(e){e.metaKey||e.altKey||e.ctrlKey||(Dr=!0)}function Gr(){Dr=!1}function su(){this.visibilityState==="hidden"&&vo&&(Dr=!0)}function au(e){e.addEventListener("keydown",iu,!0),e.addEventListener("mousedown",Gr,!0),e.addEventListener("pointerdown",Gr,!0),e.addEventListener("touchstart",Gr,!0),e.addEventListener("visibilitychange",su,!0)}function cu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Dr||ou(t)}function lu(){const e=d.useCallback(o=>{o!=null&&au(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(vo=!0,window.clearTimeout(Ii),Ii=window.setTimeout(()=>{vo=!1},100),t.current=!1,!0):!1}function r(o){return cu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function uu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ni(e,t){var n=function(i){return t&&d.isValidElement(i)?t(i):i},r=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function du(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s{if(!a&&c!=null){const b=setTimeout(c,l);return()=>{clearTimeout(b)}}},[c,a,l]),_.jsx("span",{className:p,style:g,children:_.jsx("span",{className:m})})}const yu=Or("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=yu,vu=["center","classes","className"];let Mr=e=>e,Di,Mi,ji,Li;const xo=550,xu=80,wu=Xo(Di||(Di=Mr` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),Eu=Xo(Mi||(Mi=Mr` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),$u=Xo(ji||(ji=Mr` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),Cu=Wt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_u=Wt(bu,{name:"MuiTouchRipple",slot:"Ripple"})(Li||(Li=Mr` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),qe.rippleVisible,wu,xo,({theme:e})=>e.transitions.easing.easeInOut,qe.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qe.child,qe.childLeaving,Eu,xo,({theme:e})=>e.transitions.easing.easeInOut,qe.childPulsate,$u,({theme:e})=>e.transitions.easing.easeInOut),Su=d.forwardRef(function(t,n){const r=Pr({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=Fn(r,vu),[c,l]=d.useState([]),u=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=d.useRef(!1),g=d.useRef(0),m=d.useRef(null),b=d.useRef(null);d.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const w=d.useCallback(T=>{const{pulsate:C,rippleX:E,rippleY:S,rippleSize:k,cb:F}=T;l(D=>[...D,_.jsx(_u,{classes:{ripple:We(i.ripple,qe.ripple),rippleVisible:We(i.rippleVisible,qe.rippleVisible),ripplePulsate:We(i.ripplePulsate,qe.ripplePulsate),child:We(i.child,qe.child),childLeaving:We(i.childLeaving,qe.childLeaving),childPulsate:We(i.childPulsate,qe.childPulsate)},timeout:xo,pulsate:C,rippleX:E,rippleY:S,rippleSize:k},u.current)]),u.current+=1,f.current=F},[i]),v=d.useCallback((T={},C={},E=()=>{})=>{const{pulsate:S=!1,center:k=o||C.pulsate,fakeElement:F=!1}=C;if((T==null?void 0:T.type)==="mousedown"&&p.current){p.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(p.current=!0);const D=F?null:b.current,j=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,z,L;if(k||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)A=Math.round(j.width/2),z=Math.round(j.height/2);else{const{clientX:N,clientY:V}=T.touches&&T.touches.length>0?T.touches[0]:T;A=Math.round(N-j.left),z=Math.round(V-j.top)}if(k)L=Math.sqrt((2*j.width**2+j.height**2)/3),L%2===0&&(L+=1);else{const N=Math.max(Math.abs((D?D.clientWidth:0)-A),A)*2+2,V=Math.max(Math.abs((D?D.clientHeight:0)-z),z)*2+2;L=Math.sqrt(N**2+V**2)}T!=null&&T.touches?m.current===null&&(m.current=()=>{w({pulsate:S,rippleX:A,rippleY:z,rippleSize:L,cb:E})},g.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},xu)):w({pulsate:S,rippleX:A,rippleY:z,rippleSize:L,cb:E})},[o,w]),y=d.useCallback(()=>{v({},{pulsate:!0})},[v]),$=d.useCallback((T,C)=>{if(clearTimeout(g.current),(T==null?void 0:T.type)==="touchend"&&m.current){m.current(),m.current=null,g.current=setTimeout(()=>{$(T,C)});return}m.current=null,l(E=>E.length>0?E.slice(1):E),f.current=C},[]);return d.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:$}),[y,v,$]),_.jsx(Cu,Q({className:We(qe.root,i.root,s),ref:b},a,{children:_.jsx(mu,{component:null,exit:!0,children:c})}))}),Tu=Su;function ku(e){return Zo("MuiButtonBase",e)}const Ru=Or("MuiButtonBase",["root","disabled","focusVisible"]),Ou=Ru,Pu=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Au=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Qo({root:["root",t&&"disabled",n&&"focusVisible"]},ku,o);return n&&r&&(s.root+=` ${r}`),s},Iu=Wt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ou.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Du=d.forwardRef(function(t,n){const r=Pr({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:m,onClick:b,onContextMenu:w,onDragLeave:v,onFocus:y,onFocusVisible:$,onKeyDown:T,onKeyUp:C,onMouseDown:E,onMouseLeave:S,onMouseUp:k,onTouchEnd:F,onTouchMove:D,onTouchStart:j,tabIndex:A=0,TouchRippleProps:z,touchRippleRef:L,type:N}=r,V=Fn(r,Pu),K=d.useRef(null),Y=d.useRef(null),ee=Ai(Y,L),{isFocusVisibleRef:ce,onFocus:W,onBlur:J,ref:ne}=lu(),[re,ie]=d.useState(!1);l&&re&&ie(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{ie(!0),K.current.focus()}}),[]);const[ue,Ce]=d.useState(!1);d.useEffect(()=>{Ce(!0)},[]);const _e=ue&&!u&&!l;d.useEffect(()=>{re&&p&&!u&&ue&&Y.current.pulsate()},[u,p,re,ue]);function xe(G,Ve,Dt=f){return Yn(st=>(Ve&&Ve(st),!Dt&&Y.current&&Y.current[G](st),!0))}const it=xe("start",E),dt=xe("stop",w),_t=xe("stop",v),Ne=xe("stop",k),ft=xe("stop",G=>{re&&G.preventDefault(),S&&S(G)}),Oe=xe("start",j),Ye=xe("stop",F),Ut=xe("stop",D),Kt=xe("stop",G=>{J(G),ce.current===!1&&ie(!1),m&&m(G)},!1),Gt=Yn(G=>{K.current||(K.current=G.currentTarget),W(G),ce.current===!0&&(ie(!0),$&&$(G)),y&&y(G)}),x=()=>{const G=K.current;return c&&c!=="button"&&!(G.tagName==="A"&&G.href)},R=d.useRef(!1),I=Yn(G=>{p&&!R.current&&re&&Y.current&&G.key===" "&&(R.current=!0,Y.current.stop(G,()=>{Y.current.start(G)})),G.target===G.currentTarget&&x()&&G.key===" "&&G.preventDefault(),T&&T(G),G.target===G.currentTarget&&x()&&G.key==="Enter"&&!l&&(G.preventDefault(),b&&b(G))}),O=Yn(G=>{p&&G.key===" "&&Y.current&&re&&!G.defaultPrevented&&(R.current=!1,Y.current.stop(G,()=>{Y.current.pulsate(G)})),C&&C(G),b&&G.target===G.currentTarget&&x()&&G.key===" "&&!G.defaultPrevented&&b(G)});let P=c;P==="button"&&(V.href||V.to)&&(P=g);const M={};P==="button"?(M.type=N===void 0?"button":N,M.disabled=l):(!V.href&&!V.to&&(M.role="button"),l&&(M["aria-disabled"]=l));const H=Ai(n,ne,K),Z=Q({},r,{centerRipple:i,component:c,disabled:l,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:A,focusVisible:re}),de=Au(Z);return _.jsxs(Iu,Q({as:P,className:We(de.root,a),ownerState:Z,onBlur:Kt,onClick:b,onContextMenu:dt,onFocus:Gt,onKeyDown:I,onKeyUp:O,onMouseDown:it,onMouseLeave:ft,onMouseUp:Ne,onDragLeave:_t,onTouchEnd:Ye,onTouchMove:Ut,onTouchStart:Oe,ref:H,tabIndex:l?-1:A,type:N},M,V,{children:[s,_e?_.jsx(Tu,Q({ref:ee,center:i},z)):null]}))}),wa=Du;function Mu(e){return Zo("MuiIconButton",e)}const ju=Or("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Lu=ju,Fu=["edge","children","className","color","disabled","disableFocusRipple","size"],zu=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Te(r)}`,o&&`edge${Te(o)}`,`size${Te(i)}`]};return Qo(s,Mu,t)},Nu=Wt(wa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Te(n.color)}`],n.edge&&t[`edge${Te(n.edge)}`],t[`size${Te(n.size)}`]]}})(({theme:e,ownerState:t})=>Q({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Q({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Q({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Q({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:en(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Lu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Vu=d.forwardRef(function(t,n){const r=Pr({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:l=!1,size:u="medium"}=r,f=Fn(r,Fu),p=Q({},r,{edge:o,color:a,disabled:c,disableFocusRipple:l,size:u}),g=zu(p);return _.jsx(Nu,Q({className:We(g.root,s),centerRipple:!0,focusRipple:!l,disabled:c,ref:n,ownerState:p},f,{children:i}))}),Ea=Vu,Bu=["top","right","bottom","left"],Ot=Math.min,He=Math.max,lr=Math.round,qn=Math.floor,Pt=e=>({x:e,y:e}),Wu={left:"right",right:"left",bottom:"top",top:"bottom"},Hu={start:"end",end:"start"};function wo(e,t,n){return He(e,Ot(t,n))}function vt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function un(e){return e.split("-")[1]}function oi(e){return e==="x"?"y":"x"}function ii(e){return e==="y"?"height":"width"}function dn(e){return["top","bottom"].includes(xt(e))?"y":"x"}function si(e){return oi(dn(e))}function Uu(e,t,n){n===void 0&&(n=!1);const r=un(e),o=si(e),i=ii(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ur(s)),[s,ur(s)]}function Ku(e){const t=ur(e);return[Eo(e),t,Eo(t)]}function Eo(e){return e.replace(/start|end/g,t=>Hu[t])}function Gu(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Yu(e,t,n,r){const o=un(e);let i=Gu(xt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Eo)))),i}function ur(e){return e.replace(/left|right|bottom|top/g,t=>Wu[t])}function qu(e){return{top:0,right:0,bottom:0,left:0,...e}}function $a(e){return typeof e!="number"?qu(e):{top:e,right:e,bottom:e,left:e}}function dr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Fi(e,t,n){let{reference:r,floating:o}=e;const i=dn(t),s=si(t),a=ii(s),c=xt(t),l=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(un(t)){case"start":g[s]-=p*(n&&l?-1:1);break;case"end":g[s]+=p*(n&&l?-1:1);break}return g}const Xu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Fi(l,r,c),p=r,g={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=vt(e,t)||{};if(l==null)return{};const f=$a(u),p={x:n,y:r},g=si(o),m=ii(g),b=await s.getDimensions(l),w=g==="y",v=w?"top":"left",y=w?"bottom":"right",$=w?"clientHeight":"clientWidth",T=i.reference[m]+i.reference[g]-p[g]-i.floating[m],C=p[g]-i.reference[g],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let S=E?E[$]:0;(!S||!await(s.isElement==null?void 0:s.isElement(E)))&&(S=a.floating[$]||i.floating[m]);const k=T/2-C/2,F=S/2-b[m]/2-1,D=Ot(f[v],F),j=Ot(f[y],F),A=D,z=S-b[m]-j,L=S/2-b[m]/2+k,N=wo(A,L,z),V=!c.arrow&&un(o)!=null&&L!=N&&i.reference[m]/2-(LA<=0)){var F,D;const A=(((F=i.flip)==null?void 0:F.index)||0)+1,z=C[A];if(z)return{data:{index:A,overflows:k},reset:{placement:z}};let L=(D=k.filter(N=>N.overflows[0]<=0).sort((N,V)=>N.overflows[1]-V.overflows[1])[0])==null?void 0:D.placement;if(!L)switch(g){case"bestFit":{var j;const N=(j=k.map(V=>[V.placement,V.overflows.filter(K=>K>0).reduce((K,Y)=>K+Y,0)]).sort((V,K)=>V[1]-K[1])[0])==null?void 0:j[0];N&&(L=N);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Ni(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vi(e){return Bu.some(t=>e[t]>=0)}const Qu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=vt(e,t);switch(r){case"referenceHidden":{const i=await Pn(t,{...o,elementContext:"reference"}),s=Ni(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Vi(s)}}}case"escaped":{const i=await Pn(t,{...o,altBoundary:!0}),s=Ni(i,n.floating);return{data:{escapedOffsets:s,escaped:Vi(s)}}}default:return{}}}}};async function Ju(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=xt(n),a=un(n),c=dn(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=vt(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),c?{x:g*u,y:p*l}:{x:p*l,y:g*u}}const ed=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await Ju(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},td=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:v,y}=w;return{x:v,y}}},...c}=vt(e,t),l={x:n,y:r},u=await Pn(t,c),f=dn(xt(o)),p=oi(f);let g=l[p],m=l[f];if(i){const w=p==="y"?"top":"left",v=p==="y"?"bottom":"right",y=g+u[w],$=g-u[v];g=wo(y,g,$)}if(s){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=m+u[w],$=m-u[v];m=wo(y,m,$)}const b=a.fn({...t,[p]:g,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},nd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=vt(e,t),u={x:n,y:r},f=dn(o),p=oi(f);let g=u[p],m=u[f];const b=vt(a,t),w=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const $=p==="y"?"height":"width",T=i.reference[p]-i.floating[$]+w.mainAxis,C=i.reference[p]+i.reference[$]-w.mainAxis;gC&&(g=C)}if(l){var v,y;const $=p==="y"?"width":"height",T=["top","left"].includes(xt(o)),C=i.reference[f]-i.floating[$]+(T&&((v=s.offset)==null?void 0:v[f])||0)+(T?0:w.crossAxis),E=i.reference[f]+i.reference[$]+(T?0:((y=s.offset)==null?void 0:y[f])||0)-(T?w.crossAxis:0);mE&&(m=E)}return{[p]:g,[f]:m}}}},rd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=vt(e,t),c=await Pn(t,a),l=xt(n),u=un(n),f=dn(n)==="y",{width:p,height:g}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const w=g-c[m],v=p-c[b],y=!t.middlewareData.shift;let $=w,T=v;if(f){const E=p-c.left-c.right;T=u||y?Ot(v,E):E}else{const E=g-c.top-c.bottom;$=u||y?Ot(w,E):E}if(y&&!u){const E=He(c.left,0),S=He(c.right,0),k=He(c.top,0),F=He(c.bottom,0);f?T=p-2*(E!==0||S!==0?E+S:He(c.left,c.right)):$=g-2*(k!==0||F!==0?k+F:He(c.top,c.bottom))}await s({...t,availableWidth:T,availableHeight:$});const C=await o.getDimensions(i.floating);return p!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}};function At(e){return Ca(e)?(e.nodeName||"").toLowerCase():"#document"}function Ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $t(e){var t;return(t=(Ca(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ca(e){return e instanceof Node||e instanceof Ge(e).Node}function wt(e){return e instanceof Element||e instanceof Ge(e).Element}function lt(e){return e instanceof HTMLElement||e instanceof Ge(e).HTMLElement}function Bi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ge(e).ShadowRoot}function zn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function od(e){return["table","td","th"].includes(At(e))}function ai(e){const t=ci(),n=et(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function id(e){let t=an(e);for(;lt(t)&&!jr(t);){if(ai(t))return t;t=an(t)}return null}function ci(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jr(e){return["html","body","#document"].includes(At(e))}function et(e){return Ge(e).getComputedStyle(e)}function Lr(e){return wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function an(e){if(At(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bi(e)&&e.host||$t(e);return Bi(t)?t.host:t}function _a(e){const t=an(e);return jr(t)?e.ownerDocument?e.ownerDocument.body:e.body:lt(t)&&zn(t)?t:_a(t)}function An(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=_a(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ge(o);return i?t.concat(s,s.visualViewport||[],zn(o)?o:[],s.frameElement&&n?An(s.frameElement):[]):t.concat(o,An(o,[],n))}function Sa(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=lt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=lr(n)!==i||lr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function li(e){return wt(e)?e:e.contextElement}function rn(e){const t=li(e);if(!lt(t))return Pt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Sa(t);let s=(i?lr(n.width):n.width)/r,a=(i?lr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const sd=Pt(0);function Ta(e){const t=Ge(e);return!ci()||!t.visualViewport?sd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ad(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ge(e)?!1:t}function Vt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=li(e);let s=Pt(1);t&&(r?wt(r)&&(s=rn(r)):s=rn(e));const a=ad(i,n,r)?Ta(i):Pt(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const p=Ge(i),g=r&&wt(r)?Ge(r):r;let m=p.frameElement;for(;m&&r&&g!==p;){const b=rn(m),w=m.getBoundingClientRect(),v=et(m),y=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,$=w.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,f*=b.y,c+=y,l+=$,m=Ge(m).frameElement}}return dr({width:u,height:f,x:c,y:l})}function cd(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=lt(n),i=$t(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=Pt(1);const c=Pt(0);if((o||!o&&r!=="fixed")&&((At(n)!=="body"||zn(i))&&(s=Lr(n)),lt(n))){const l=Vt(n);a=rn(n),c.x=l.x+n.clientLeft,c.y=l.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}}function ld(e){return Array.from(e.getClientRects())}function ka(e){return Vt($t(e)).left+Lr(e).scrollLeft}function ud(e){const t=$t(e),n=Lr(e),r=e.ownerDocument.body,o=He(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=He(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ka(e);const a=-n.scrollTop;return et(r).direction==="rtl"&&(s+=He(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function dd(e,t){const n=Ge(e),r=$t(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=ci();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function fd(e,t){const n=Vt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=lt(e)?rn(e):Pt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function Wi(e,t,n){let r;if(t==="viewport")r=dd(e,n);else if(t==="document")r=ud($t(e));else if(wt(t))r=fd(t,n);else{const o=Ta(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return dr(r)}function Ra(e,t){const n=an(e);return n===t||!wt(n)||jr(n)?!1:et(n).position==="fixed"||Ra(n,t)}function pd(e,t){const n=t.get(e);if(n)return n;let r=An(e,[],!1).filter(a=>wt(a)&&At(a)!=="body"),o=null;const i=et(e).position==="fixed";let s=i?an(e):e;for(;wt(s)&&!jr(s);){const a=et(s),c=ai(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||zn(s)&&!c&&Ra(e,s))?r=r.filter(u=>u!==s):o=a,s=an(s)}return t.set(e,r),r}function hd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?pd(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const f=Wi(t,u,o);return l.top=He(f.top,l.top),l.right=Ot(f.right,l.right),l.bottom=Ot(f.bottom,l.bottom),l.left=He(f.left,l.left),l},Wi(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function gd(e){return Sa(e)}function md(e,t,n){const r=lt(t),o=$t(t),i=n==="fixed",s=Vt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Pt(0);if(r||!r&&!i)if((At(t)!=="body"||zn(o))&&(a=Lr(t)),r){const l=Vt(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=ka(o));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Hi(e,t){return!lt(e)||et(e).position==="fixed"?null:t?t(e):e.offsetParent}function Oa(e,t){const n=Ge(e);if(!lt(e))return n;let r=Hi(e,t);for(;r&&od(r)&&et(r).position==="static";)r=Hi(r,t);return r&&(At(r)==="html"||At(r)==="body"&&et(r).position==="static"&&!ai(r))?n:r||id(e)||n}const bd=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Oa,i=this.getDimensions;return{reference:md(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function yd(e){return et(e).direction==="rtl"}const vd={convertOffsetParentRelativeRectToViewportRelativeRect:cd,getDocumentElement:$t,getClippingRect:hd,getOffsetParent:Oa,getElementRects:bd,getClientRects:ld,getDimensions:gd,getScale:rn,isElement:wt,isRTL:yd};function xd(e,t){let n=null,r;const o=$t(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:p}=e.getBoundingClientRect();if(a||t(),!f||!p)return;const g=qn(u),m=qn(o.clientWidth-(l+f)),b=qn(o.clientHeight-(u+p)),w=qn(l),y={rootMargin:-g+"px "+-m+"px "+-b+"px "+-w+"px",threshold:He(0,Ot(1,c))||1};let $=!0;function T(C){const E=C[0].intersectionRatio;if(E!==c){if(!$)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(T,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,y)}n.observe(e)}return s(!0),i}function wd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=li(e),u=o||i?[...l?An(l):[],...An(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=l&&a?xd(l,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(v=>{let[y]=v;y&&y.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let m,b=c?Vt(e):null;c&&w();function w(){const v=Vt(e);b&&(v.x!==b.x||v.y!==b.y||v.width!==b.width||v.height!==b.height)&&n(),b=v,m=requestAnimationFrame(w)}return n(),()=>{u.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,c&&cancelAnimationFrame(m)}}const Ed=(e,t,n)=>{const r=new Map,o={platform:vd,...n},i={...o.platform,_c:r};return Xu(e,t,{...o,platform:i})},$d=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?zi({element:r.current,padding:o}).fn(n):{}:r?zi({element:r,padding:o}).fn(n):{}}}};var ir=typeof document<"u"?d.useLayoutEffect:d.useEffect;function fr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!fr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!fr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Pa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ui(e,t){const n=Pa(e);return Math.round(t*n)/n}function Ki(e){const t=d.useRef(e);return ir(()=>{t.current=e}),t}function Cd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=d.useState(r);fr(p,r)||g(r);const[m,b]=d.useState(null),[w,v]=d.useState(null),y=d.useCallback(V=>{V!=E.current&&(E.current=V,b(V))},[b]),$=d.useCallback(V=>{V!==S.current&&(S.current=V,v(V))},[v]),T=i||m,C=s||w,E=d.useRef(null),S=d.useRef(null),k=d.useRef(u),F=Ki(c),D=Ki(o),j=d.useCallback(()=>{if(!E.current||!S.current)return;const V={placement:t,strategy:n,middleware:p};D.current&&(V.platform=D.current),Ed(E.current,S.current,V).then(K=>{const Y={...K,isPositioned:!0};A.current&&!fr(k.current,Y)&&(k.current=Y,Jo.flushSync(()=>{f(Y)}))})},[p,t,n,D]);ir(()=>{l===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[l]);const A=d.useRef(!1);ir(()=>(A.current=!0,()=>{A.current=!1}),[]),ir(()=>{if(T&&(E.current=T),C&&(S.current=C),T&&C){if(F.current)return F.current(T,C,j);j()}},[T,C,j,F]);const z=d.useMemo(()=>({reference:E,floating:S,setReference:y,setFloating:$}),[y,$]),L=d.useMemo(()=>({reference:T,floating:C}),[T,C]),N=d.useMemo(()=>{const V={position:n,left:0,top:0};if(!L.floating)return V;const K=Ui(L.floating,u.x),Y=Ui(L.floating,u.y);return a?{...V,transform:"translate("+K+"px, "+Y+"px)",...Pa(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:Y}},[n,a,L.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:j,refs:z,elements:L,floatingStyles:N}),[u,j,z,L,N])}function _d(e){return Zo("MuiButton",e)}const Sd=Or("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Xn=Sd,Td=d.createContext({}),kd=Td,Rd=d.createContext(void 0),Od=Rd,Pd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ad=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${Te(t)}`,`size${Te(o)}`,`${i}Size${Te(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Te(o)}`],endIcon:["endIcon",`iconSize${Te(o)}`]},c=Qo(a,_d,s);return Q({},s,c)},Aa=e=>Q({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Id=Wt(wa,{shouldForwardProp:e=>Fl(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Te(n.color)}`],t[`size${Te(n.size)}`],t[`${n.variant}Size${Te(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Q({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Q({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Xn.focusVisible}`]:Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Xn.disabled}`]:Q({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${en(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Xn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xn.disabled}`]:{boxShadow:"none"}}),Dd=Wt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Te(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Aa(e))),Md=Wt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Te(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Aa(e))),jd=d.forwardRef(function(t,n){const r=d.useContext(kd),o=d.useContext(Od),i=zl(r,t),s=Pr({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:l="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:m,focusVisibleClassName:b,fullWidth:w=!1,size:v="medium",startIcon:y,type:$,variant:T="text"}=s,C=Fn(s,Pd),E=Q({},s,{color:c,component:l,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:w,size:v,type:$,variant:T}),S=Ad(E),k=y&&_.jsx(Dd,{className:S.startIcon,ownerState:E,children:y}),F=m&&_.jsx(Md,{className:S.endIcon,ownerState:E,children:m}),D=o||"";return _.jsxs(Id,Q({ownerState:E,className:We(r.className,S.root,u,D),component:l,disabled:f,focusRipple:!g,focusVisibleClassName:We(S.focusVisible,b),ref:n,type:$},C,{classes:S,children:[k,a,F]}))}),ui=jd;function Ld(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ia(...e){return t=>e.forEach(n=>Ld(n,t))}function fn(...e){return d.useCallback(Ia(...e),e)}const Da=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),i=o.find(Fd);if(i){const s=i.props.children,a=o.map(c=>c===i?d.Children.count(s)>1?d.Children.only(null):d.isValidElement(s)?s.props.children:null:c);return d.createElement($o,Q({},r,{ref:t}),d.isValidElement(s)?d.cloneElement(s,void 0,a):null)}return d.createElement($o,Q({},r,{ref:t}),n)});Da.displayName="Slot";const $o=d.forwardRef((e,t)=>{const{children:n,...r}=e;return d.isValidElement(n)?d.cloneElement(n,{...zd(r,n.props),ref:t?Ia(t,n.ref):n.ref}):d.Children.count(n)>1?d.Children.only(null):null});$o.displayName="SlotClone";const Ma=({children:e})=>d.createElement(d.Fragment,null,e);function Fd(e){return d.isValidElement(e)&&e.type===Ma}function zd(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Nd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ht=Nd.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?Da:t;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(a,Q({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Vd(e,t){e&&Jo.flushSync(()=>e.dispatchEvent(t))}const Bd=d.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?ga.createPortal(d.createElement(Ht.div,Q({},o,{ref:t})),r):null}),Wd=Bd;var Gi=Object.prototype.hasOwnProperty;function In(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&In(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Gi.call(e,n)&&++r&&!Gi.call(t,n)||!(n in t)||!In(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Nn(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),ut=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};ut.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new Fr(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};ut.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new Hd(n,t.simple,t.async)),this};ut.prototype._clone=function(){return new ut(this.chain.slice(),this.nextRuleModifiers.slice())};ut.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};ut.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new di(r,t,o))}}),n};ut.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new di(n,t,r)}})};ut.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){Fa(t,n.chain.slice(),r,o)})};function Fa(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){Fa(e,t,n,r)},function(i){r(new di(o,e,i))})}else n(e)}var Yi=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function Ud(e,t){return t===void 0&&(t=!1),{simple:function(n){return Yi(n,t)||e.check(n)===void 0},async:function(n){return Yi(n,t)||e.testAsync(n)}}}function ze(){return typeof Proxy<"u"?za(new ut):Co(new ut)}var Dn={};ze.extend=function(e){Object.assign(Dn,e)};ze.clearCustomRules=function(){Dn={}};function za(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=za(e._clone());if(r in pr)return o._applyModifier(pr[r],r);if(r in Dn)return o._applyRule(Dn[r],r);if(r in _o)return o._applyRule(_o[r],r)}})}function Co(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=Co(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(_o,e),r=t(Dn,n);return Object.keys(pr).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Co(r._clone());return i._applyModifier(pr[o],o)}})}),r}var pr={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Zn(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Zn(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Zn(t).every(e)}},async:function(e){return function(t){return Promise.all(Zn(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return qi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return qi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function qi(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Zn(e){return typeof e=="string"?e.split(""):e}var _o={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||Kd;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Xt("string")},boolean:function(){return Xt("boolean")},undefined:function(){return Xt("undefined")},null:function(){return Xt("null")},array:function(){return Xt("array")},object:function(){return Xt("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return Gd(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:Ud};function Xt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function Kd(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Gd(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var se="colors",Pe="sizes",U="space",Yd={gap:U,gridGap:U,columnGap:U,gridColumnGap:U,rowGap:U,gridRowGap:U,inset:U,insetBlock:U,insetBlockEnd:U,insetBlockStart:U,insetInline:U,insetInlineEnd:U,insetInlineStart:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockEnd:U,marginBlockStart:U,marginInline:U,marginInlineEnd:U,marginInlineStart:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockEnd:U,paddingBlockStart:U,paddingInline:U,paddingInlineEnd:U,paddingInlineStart:U,top:U,right:U,bottom:U,left:U,scrollMargin:U,scrollMarginTop:U,scrollMarginRight:U,scrollMarginBottom:U,scrollMarginLeft:U,scrollMarginX:U,scrollMarginY:U,scrollMarginBlock:U,scrollMarginBlockEnd:U,scrollMarginBlockStart:U,scrollMarginInline:U,scrollMarginInlineEnd:U,scrollMarginInlineStart:U,scrollPadding:U,scrollPaddingTop:U,scrollPaddingRight:U,scrollPaddingBottom:U,scrollPaddingLeft:U,scrollPaddingX:U,scrollPaddingY:U,scrollPaddingBlock:U,scrollPaddingBlockEnd:U,scrollPaddingBlockStart:U,scrollPaddingInline:U,scrollPaddingInlineEnd:U,scrollPaddingInlineStart:U,fontSize:"fontSizes",background:se,backgroundColor:se,backgroundImage:se,borderImage:se,border:se,borderBlock:se,borderBlockEnd:se,borderBlockStart:se,borderBottom:se,borderBottomColor:se,borderColor:se,borderInline:se,borderInlineEnd:se,borderInlineStart:se,borderLeft:se,borderLeftColor:se,borderRight:se,borderRightColor:se,borderTop:se,borderTopColor:se,caretColor:se,color:se,columnRuleColor:se,fill:se,outline:se,outlineColor:se,stroke:se,textDecorationColor:se,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Pe,minBlockSize:Pe,maxBlockSize:Pe,inlineSize:Pe,minInlineSize:Pe,maxInlineSize:Pe,width:Pe,minWidth:Pe,maxWidth:Pe,height:Pe,minHeight:Pe,maxHeight:Pe,flexBasis:Pe,gridTemplateColumns:Pe,gridTemplateRows:Pe,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},qd=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,pn=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,qd))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ft=Symbol.for("sxs.internal"),fi=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Xi=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Xd}=Object.prototype,So=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Zd=/\s+(?![^()]*\))/,Zt=e=>t=>e(...typeof t=="string"?String(t).split(Zd):[t]),Zi={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Zt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:Zt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:Zt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:Zt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:Zt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:Zt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Yr=/([\d.]+)([^]*)/,Qd=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,Jd=(e,t)=>e in ef&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${So(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${So(e)}:${r}fit-content`)+i):String(t),ef={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Et=e=>e?e+"-":"",Na=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?Et(t)+(a.includes("$")?"":Et(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),tf=/\s*,\s*(?![^()]*\))/,nf=Object.prototype.toString,tn=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,f)=>{let p,g;const m=b=>{for(p in b){const y=p.charCodeAt(0)===64,$=y&&Array.isArray(b[p])?b[p]:[b[p]];for(g of $){const T=/[A-Z]/.test(v=p)?v:v.replace(/-[^]/g,E=>E[1].toUpperCase()),C=typeof g=="object"&&g&&g.toString===nf&&(!r.utils[T]||!u.length);if(T in r.utils&&!C){const E=r.utils[T];if(E!==s){s=E,m(E(g)),s=null;continue}}else if(T in Zi){const E=Zi[T];if(E!==a){a=E,m(E(g)),a=null;continue}}if(y&&(w=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,S,k,F,D,j)=>{const A=Yr.test(S),z=.0625*(A?-1:1),[L,N]=A?[F,S]:[S,F];return"("+(k[0]==="="?"":k[0]===">"===A?"max-":"min-")+L+":"+(k[0]!=="="&&k.length===1?N.replace(Yr,(V,K,Y)=>Number(K)+z*(k===">"?1:-1)+Y):N)+(D?") and ("+(D[0]===">"?"min-":"max-")+L+":"+(D.length===1?j.replace(Yr,(V,K,Y)=>Number(K)+z*(D===">"?-1:1)+Y):j):"")+")"})),C){const E=y?f.concat(p):[...f],S=y?[...u]:Qd(u,p.split(tf));i!==void 0&&o(Qi(...i)),i=void 0,c(g,S,E)}else i===void 0&&(i=[[],u,f]),p=y||p.charCodeAt(0)!==36?p:`--${Et(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,g=C?g:typeof g=="number"?g&&T in rf?String(g)+"px":String(g):Na(Jd(T,g??""),r.prefix,r.themeMap[T]),i[0].push(`${y?`${p} `:`${So(p)}:`}${g}`)}}var w,v};m(l),i!==void 0&&o(Qi(...i)),i=void 0};c(e,t,n)},Qi=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,rf={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Ji=e=>String.fromCharCode(e+(e>25?39:97)),zt=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Ji(n%52)+r;return Ji(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),Sn=["themed","global","styled","onevar","resonevar","allvar","inline"],of=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},sf=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(of(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const f=Object(l[c+1]);if(f.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const g=p.slice(14,-3).trim().split(/\s+/),m=Sn[g[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:c,cache:new Set(g)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,f){this.cssRules.splice(f,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=Sn.length-1;a>=0;--a){const c=Sn[a];if(!s[c]){const l=Sn[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}af(s[c])}};return r(),t},af=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},wn=Symbol(),cf=pn(),es=(e,t)=>cf(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[Ft]){r.type==null&&(r.type=o[Ft].type);for(const i of o[Ft].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(lf(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),uf(e,r,t)}),lf=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${Et(o.prefix)}c-${zt(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,f=p,Xd.call(u,f)||(c[p]="undefined");const g=e[p];for(const m in g){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const w=g[m],v=[b,w,!Xi(w)];s.push(v)}}var u,f;if(typeof t=="object"&&t)for(const p of t){let{css:g,...m}=p;g=typeof g=="object"&&g||{};for(const w in m)m[w]=String(m[w]);const b=[m,g,!Xi(g)];a.push(b)}return[i,r,s,a,c,l]},uf=(e,t,n)=>{const[r,o,i,s]=df(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(f=>{function p(){for(let g=0;gp.rules[g]={apply:m=>p[wn].push([g,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=f=>{f=typeof f=="object"&&f||ff;const{css:p,...g}=f,m={};for(const v in i)if(delete g[v],v in f){let y=f[v];typeof y=="object"&&y?m[v]={"@initial":i[v],...y}:(y=String(y),m[v]=y!=="undefined"||s.has(v)?y:i[v])}else m[v]=i[v];const b=new Set([...o]);for(const[v,y,$,T]of t.composers){n.rules.styled.cache.has(v)||(n.rules.styled.cache.add(v),tn(y,[`.${v}`],[],e,S=>{c.styled.apply(S)}));const C=ts($,m,e.media),E=ts(T,m,e.media,!0);for(const S of C)if(S!==void 0)for(const[k,F,D]of S){const j=`${v}-${zt(F)}-${k}`;b.add(j);const A=(D?n.rules.resonevar:n.rules.onevar).cache,z=D?c.resonevar:c.onevar;A.has(j)||(A.add(j),tn(F,[`.${j}`],[],e,L=>{z.apply(L)}))}for(const S of E)if(S!==void 0)for(const[k,F]of S){const D=`${v}-${zt(F)}-${k}`;b.add(D),n.rules.allvar.cache.has(D)||(n.rules.allvar.cache.add(D),tn(F,[`.${D}`],[],e,j=>{c.allvar.apply(j)}))}}if(typeof p=="object"&&p){const v=`${r}-i${zt(p)}-css`;b.add(v),n.rules.inline.cache.has(v)||(n.rules.inline.cache.add(v),tn(p,[`.${v}`],[],e,y=>{c.inline.apply(y)}))}for(const v of String(f.className||"").trim().split(/\s+/))v&&b.add(v);const w=g.className=[...b].join(" ");return{type:t.type,className:w,selector:l,props:g,toString:()=>w,deferredInjector:a}};return fi(u,{className:r,selector:l,[Ft]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},df=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},ts=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const f=i[c];let p=t[c];if(p!==f){if(typeof p!="object"||!p)continue e;{let g,m,b=0;for(const w in p){if(f===String(p[w])){if(w!=="@initial"){const v=w.slice(1);(m=m||[]).push(v in n?n[v]:w.replace(/^@media ?/,"")),u=!0}l+=b,g=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!g)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},ff={},pf=pn(),hf=(e,t)=>pf(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=zt(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}tn(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return fi(r,{toString:r})}),gf=pn(),mf=(e,t)=>gf(e,()=>n=>{const r=`${Et(e.prefix)}k-${zt(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];tn(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return fi(o,{get name(){return o()},toString:o})}),bf=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Et(this.prefix)+Et(this.scale)+this.token}toString(){return this.computedValue}},yf=pn(),vf=(e,t)=>yf(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${Et(e.prefix)}t-${zt(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${Et(e.prefix)}${c}-${l}`,f=Na(String(r[c][l]),e.prefix,c);i[c][l]=new bf(l,f,c,e.prefix),s.push(`${u}:${f}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),xf=pn(),ns,wf=pn(),Va=e=>{const t=(n=>{let r=!1;const o=xf(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...Yd},utils:typeof i.utils=="object"&&i.utils||{}},f=sf(c),p={css:es(u,f),globalCss:hf(u,f),keyframes:mf(u,f),createTheme:vf(u,f),reset(){f.reset(),p.theme.toString()},theme:{},sheet:f,config:u,prefix:s,getCssText:f.toString,toString:f.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>wf(n,()=>{const o=es(n,r);return(...i)=>{const s=o(...i),a=s[Ft].type,c=h.forwardRef((l,u)=>{const f=l&&l.as||a,{props:p,deferredInjector:g}=s(l);return delete p.as,p.ref=u,g?h.createElement(h.Fragment,null,h.createElement(f,p),h.createElement(g,null)):h.createElement(f,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Ft]=s[Ft],c}}))(t),t},Ef=()=>ns||(ns=Va()),Pv=(...e)=>Ef().styled(...e);function $f(e,t,n){return Math.max(t,Math.min(e,n))}const ke={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function rs(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function os(e,t,n,r=.15){return r===0?$f(e,t,n):en?+rs(e-n,n-t,r)+n:e}function Cf(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[os(t,i,s,r),os(n,a,c,o)]}function _f(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sf(e){var t=_f(e,"string");return typeof t=="symbol"?t:String(t)}function Fe(e,t,n){return t=Sf(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function Df(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ha(e){return zr(e)?Df(e)[0]:e}function Mf(e){return If(e).map(t=>t.identifier)}function qr(e){const t=Ha(e);return zr(e)?t.identifier:t.pointerId}function as(e){const t=Ha(e);return[t.clientX,t.clientY]}function jf(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function hr(e,...t){return typeof e=="function"?e(...t):e}function Lf(){}function Ff(...e){return e.length===0?Lf:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function cs(e,t){return Object.assign({},t,e||{})}const zf=32;class Nf{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?hr(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,jf(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);ke.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:f}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&f[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&f[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[E,S]=f;p[0]=u[0]!==!1?E-u[0]:0,p[1]=u[1]!==!1?S-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const g=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=hr(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,w]=n.offset,[[v,y],[$,T]]=n._bounds;n.overflow=[by?1:0,w<$?-1:w>T?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const C=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Cf(n._bounds,n.offset,C),n.delta=ke.sub(n.offset,g),this.computeMovement(),m&&(!n.last||i>zf)){n.delta=ke.sub(n.offset,g);const E=n.delta.map(Math.abs);ke.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[E[0]/i,E[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(ye(ye(ye({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Vf([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class Bf extends Nf{constructor(...t){super(...t),Fe(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ke.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ke.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Wa(t)]:r.axisThreshold;n.axis=Vf(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Wf=e=>e,ls=.15,Ua={enabled(e=!0){return e},eventOptions(e,t,n){return ye(ye({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ls,ls];case!1:return[0,0];default:return ke.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return ke.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Wf},threshold(e){return ke.toVector(e,0)}},Hf=0,Vn=ye(ye({},Ua),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=Hf){return e},bounds(e={}){if(typeof e=="function")return i=>Vn.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),us={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Uf extends Bf{constructor(...t){super(...t),Fe(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Vn.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=qr(t),r._pointerActive=!0,this.computeValues(as(t)),this.computeInitial(),n.preventScrollAxis&&Wa(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=qr(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=as(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=ke.sub(i,n._values),this.computeValues(i)),ke.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=qr(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,c]=n._delta,[l,u]=n._movement,[f,p]=r.swipe.velocity,[g,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimef&&Math.abs(l)>g&&(n.swipe[0]=Math.sign(a)),v>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Kf(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=us[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,ke.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in us&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Kf(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Bn=typeof window<"u"&&window.document&&window.document.createElement;function Ka(){return Bn&&"ontouchstart"in window}function Gf(){return Ka()||Bn&&window.navigator.maxTouchPoints>1}function Yf(){return Bn&&"onpointerdown"in window}function qf(){return Bn&&"exitPointerLock"in window.document}function Xf(){try{return"constructor"in GestureEvent}catch{return!1}}const Xe={isBrowser:Bn,gesture:Xf(),touch:Ka(),touchscreen:Gf(),pointer:Yf(),pointerLock:qf()},Zf=250,Qf=180,Jf=.5,ep=50,tp=250,np=10,ds={mouse:0,touch:0,pen:8},rp=ye(ye({},Vn),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Xe.pointerLock,Xe.touch&&n?"touch":this.pointerLock?"mouse":Xe.pointer&&!o?"pointer":Xe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Zf:void 0,!(!Xe.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=ke.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=Jf,distance:t=ep,duration:n=tp}={}){return{velocity:this.transform(ke.toVector(e)),distance:this.transform(ke.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return Qf;case!1:return 0;default:return e}},axisThreshold(e){return e?ye(ye({},ds),e):ds},keyboardDisplacement(e=np){return e}});ye(ye({},Ua),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Xe.touch&&Xe.gesture)return"gesture";if(Xe.touch&&r)return"touch";if(Xe.touchscreen){if(Xe.pointer)return"pointer";if(Xe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=cs(hr(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=cs(hr(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",ke.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});ye(ye({},Vn),{},{mouseOnly:(e=!0)=>e});ye(ye({},Vn),{},{mouseOnly:(e=!0)=>e});const Ga=new Map,To=new Map;function op(e){Ga.set(e.key,e.engine),To.set(e.key,e.resolver)}const ip={key:"drag",engine:Uf,resolver:rp};function sp(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function ap(e,t){if(e==null)return{};var n=sp(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const cp={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Xe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},lp=["target","eventOptions","window","enabled","transform"];function sr(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=sr(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function up(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=ap(r,lp);if(n.shared=sr({target:o,eventOptions:i,window:s,enabled:a,transform:c},cp),t){const u=To.get(t);n[t]=sr(ye({shared:n.shared},l),u)}else for(const u in l){const f=To.get(u);f&&(n[u]=sr(ye({shared:n.shared},l[u]),f))}return n}class Ya{constructor(t,n){Fe(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=Af(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=ye(ye({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class dp{constructor(){Fe(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}let fp=class{constructor(t){Fe(this,"gestures",new Set),Fe(this,"_targetEventStore",new Ya(this)),Fe(this,"gestureEventStores",{}),Fe(this,"gestureTimeoutStores",{}),Fe(this,"handlers",{}),Fe(this,"config",{}),Fe(this,"pointerIds",new Set),Fe(this,"touchIds",new Set),Fe(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),pp(this,t)}setEventIds(t){if(zr(t))return this.touchIds=new Set(Mf(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=up(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],c=fs(r,a.eventOptions,!!o);if(a.enabled){const l=Ga.get(s);new l(this,t,s).bind(c)}}const i=fs(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](ye(ye({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=Ff(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=Pf(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}};function Qt(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ya(e,t),e.gestureTimeoutStores[t]=new dp}function pp(e,t){t.drag&&Qt(e,"drag"),t.wheel&&Qt(e,"wheel"),t.scroll&&Qt(e,"scroll"),t.move&&Qt(e,"move"),t.pinch&&Qt(e,"pinch"),t.hover&&Qt(e,"hover")}const fs=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,f=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:Rf(r,o,u);n&&f&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function hp(e,t={},n,r){const o=h.useMemo(()=>new fp(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),h.useEffect(o.effect.bind(o)),h.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function gp(e,t){return op(ip),hp({drag:e},t||{},"drag")}function mt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function qa(e,t=[]){let n=[];function r(i,s){const a=d.createContext(s),c=n.length;n=[...n,s];function l(f){const{scope:p,children:g,...m}=f,b=(p==null?void 0:p[e][c])||a,w=d.useMemo(()=>m,Object.values(m));return d.createElement(b.Provider,{value:w},g)}function u(f,p){const g=(p==null?void 0:p[e][c])||a,m=d.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>d.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,mp(o,...t)]}function mp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function hn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function bp(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const ko="dismissableLayer.update",yp="dismissableLayer.pointerDownOutside",vp="dismissableLayer.focusOutside";let ps;const xp=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wp=d.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=d.useContext(xp),[f,p]=d.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=d.useState({}),b=fn(t,k=>p(k)),w=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=w.indexOf(v),$=f?w.indexOf(f):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,C=$>=y,E=Ep(k=>{const F=k.target,D=[...u.branches].some(j=>j.contains(F));!C||D||(i==null||i(k),a==null||a(k),k.defaultPrevented||c==null||c())},g),S=$p(k=>{const F=k.target;[...u.branches].some(j=>j.contains(F))||(s==null||s(k),a==null||a(k),k.defaultPrevented||c==null||c())},g);return bp(k=>{$===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&c&&(k.preventDefault(),c()))},g),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ps=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),hs(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ps)}},[f,g,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),hs())},[f,u]),d.useEffect(()=>{const k=()=>m({});return document.addEventListener(ko,k),()=>document.removeEventListener(ko,k)},[]),d.createElement(Ht.div,Q({},l,{ref:b,style:{pointerEvents:T?C?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,S.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,E.onPointerDownCapture)}))});function Ep(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Xa(yp,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $p(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&Xa(vp,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hs(){const e=new CustomEvent(ko);document.dispatchEvent(e)}function Xa(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Vd(o,i):o.dispatchEvent(i)}const cn=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},Cp=Nl["useId".toString()]||(()=>{});let _p=0;function Sp(e){const[t,n]=d.useState(Cp());return cn(()=>{e||n(r=>r??String(_p++))},[e]),e||(t?`radix-${t}`:"")}const Tp=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return d.createElement(Ht.svg,Q({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:d.createElement("polygon",{points:"0,0 30,0 15,10"}))}),kp=Tp;function Rp(e){const[t,n]=d.useState(void 0);return cn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Za="Popper",[Qa,Ja]=qa(Za),[Op,ec]=Qa(Za),Pp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return d.createElement(Op,{scope:t,anchor:r,onAnchorChange:o},n)},Ap="PopperAnchor",Ip=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=ec(Ap,n),s=d.useRef(null),a=fn(t,s);return d.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:d.createElement(Ht.div,Q({},o,{ref:a}))}),tc="PopperContent",[Dp,Mp]=Qa(tc),jp=d.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:p=0,align:g="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:$="partial",hideWhenDetached:T=!1,updatePositionStrategy:C="optimized",onPlaced:E,...S}=e,k=ec(tc,u),[F,D]=d.useState(null),j=fn(t,Oe=>D(Oe)),[A,z]=d.useState(null),L=Rp(A),N=(n=L==null?void 0:L.width)!==null&&n!==void 0?n:0,V=(r=L==null?void 0:L.height)!==null&&r!==void 0?r:0,K=f+(g!=="center"?"-"+g:""),Y=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ee=Array.isArray(v)?v:[v],ce=ee.length>0,W={padding:Y,boundary:ee.filter(Np),altBoundary:ce},{refs:J,floatingStyles:ne,placement:re,isPositioned:ie,middlewareData:ue}=Cd({strategy:"fixed",placement:K,whileElementsMounted:(...Oe)=>wd(...Oe,{animationFrame:C==="always"}),elements:{reference:k.anchor},middleware:[ed({mainAxis:p+V,alignmentAxis:m}),w&&td({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?nd():void 0,...W}),w&&Zu({...W}),rd({...W,apply:({elements:Oe,rects:Ye,availableWidth:Ut,availableHeight:Kt})=>{const{width:Gt,height:x}=Ye.reference,R=Oe.floating.style;R.setProperty("--radix-popper-available-width",`${Ut}px`),R.setProperty("--radix-popper-available-height",`${Kt}px`),R.setProperty("--radix-popper-anchor-width",`${Gt}px`),R.setProperty("--radix-popper-anchor-height",`${x}px`)}}),A&&$d({element:A,padding:b}),Vp({arrowWidth:N,arrowHeight:V}),T&&Qu({strategy:"referenceHidden",...W})]}),[Ce,_e]=nc(re),xe=hn(E);cn(()=>{ie&&(xe==null||xe())},[ie,xe]);const it=(o=ue.arrow)===null||o===void 0?void 0:o.x,dt=(i=ue.arrow)===null||i===void 0?void 0:i.y,_t=((s=ue.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ne,ft]=d.useState();return cn(()=>{F&&ft(window.getComputedStyle(F).zIndex)},[F]),d.createElement("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:ie?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(a=ue.transformOrigin)===null||a===void 0?void 0:a.x,(c=ue.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},d.createElement(Dp,{scope:u,placedSide:Ce,onArrowChange:z,arrowX:it,arrowY:dt,shouldHideArrow:_t},d.createElement(Ht.div,Q({"data-side":Ce,"data-align":_e},S,{ref:j,style:{...S.style,animation:ie?void 0:"none",opacity:(l=ue.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),Lp="PopperArrow",Fp={top:"bottom",right:"left",bottom:"top",left:"right"},zp=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Mp(Lp,r),s=Fp[i.placedSide];return d.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},d.createElement(kp,Q({},o,{ref:n,style:{...o.style,display:"block"}})))});function Np(e){return e!==null}const Vp=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,f=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[m,b]=nc(a),w={start:"0%",center:"50%",end:"100%"}[b],v=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,y=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let $="",T="";return m==="bottom"?($=f?w:`${v}px`,T=`${-g}px`):m==="top"?($=f?w:`${v}px`,T=`${c.floating.height+g}px`):m==="right"?($=`${-g}px`,T=f?w:`${y}px`):m==="left"&&($=`${c.floating.width+g}px`,T=f?w:`${y}px`),{data:{x:$,y:T}}}});function nc(e){const[t,n="center"]=e.split("-");return[t,n]}const Bp=Pp,Wp=Ip,Hp=jp,Up=zp;function Kp(e,t){return d.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const rc=e=>{const{present:t,children:n}=e,r=Gp(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=fn(r.ref,o.ref);return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};rc.displayName="Presence";function Gp(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Kp(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Qn(r.current);i.current=a==="mounted"?l:"none"},[a]),cn(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,g=Qn(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),cn(()=>{if(t){const l=f=>{const g=Qn(r.current).includes(f.animationName);f.target===t&&g&&Jo.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===t&&(i.current=Qn(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Qn(e){return(e==null?void 0:e.animationName)||"none"}function Yp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=qp({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=hn(n),c=d.useCallback(l=>{if(i){const f=typeof l=="function"?l(e):l;f!==e&&a(f)}else o(l)},[i,e,o,a]);return[s,c]}function qp({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),i=hn(t);return d.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Xp=d.forwardRef((e,t)=>d.createElement(Ht.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Zp=Xp,[Nr,Iv]=qa("Tooltip",[Ja]),Vr=Ja(),Qp="TooltipProvider",Ro="tooltip.open",[Dv,pi]=Nr(Qp),hi="Tooltip",[Jp,Br]=Nr(hi),eh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=pi(hi,e.__scopeTooltip),l=Vr(t),[u,f]=d.useState(null),p=Sp(),g=d.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,w=d.useRef(!1),[v=!1,y]=Yp({prop:r,defaultProp:o,onChange:S=>{S?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ro))):c.onClose(),i==null||i(S)}}),$=d.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),T=d.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,y(!0)},[y]),C=d.useCallback(()=>{window.clearTimeout(g.current),y(!1)},[y]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,y(!0)},b)},[b,y]);return d.useEffect(()=>()=>window.clearTimeout(g.current),[]),d.createElement(Bp,l,d.createElement(Jp,{scope:t,contentId:p,open:v,stateAttribute:$,trigger:u,onTriggerChange:f,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayed?E():T()},[c.isOpenDelayed,E,T]),onTriggerLeave:d.useCallback(()=>{m?C():window.clearTimeout(g.current)},[C,m]),onOpen:T,onClose:C,disableHoverableContent:m},n))},gs="TooltipTrigger",th=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Br(gs,n),i=pi(gs,n),s=Vr(n),a=d.useRef(null),c=fn(t,a,o.onTriggerChange),l=d.useRef(!1),u=d.useRef(!1),f=d.useCallback(()=>l.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.createElement(Wp,Q({asChild:!0},s),d.createElement(Ht.button,Q({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:mt(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:mt(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:mt(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:mt(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:mt(e.onBlur,o.onClose),onClick:mt(e.onClick,o.onClose)})))}),nh="TooltipPortal",[Mv,rh]=Nr(nh,{forceMount:void 0}),Mn="TooltipContent",oh=d.forwardRef((e,t)=>{const n=rh(Mn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Br(Mn,e.__scopeTooltip);return d.createElement(rc,{present:r||s.open},s.disableHoverableContent?d.createElement(oc,Q({side:o},i,{ref:t})):d.createElement(ih,Q({side:o},i,{ref:t})))}),ih=d.forwardRef((e,t)=>{const n=Br(Mn,e.__scopeTooltip),r=pi(Mn,e.__scopeTooltip),o=d.useRef(null),i=fn(t,o),[s,a]=d.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:f}=r,p=d.useCallback(()=>{a(null),f(!1)},[f]),g=d.useCallback((m,b)=>{const w=m.currentTarget,v={x:m.clientX,y:m.clientY},y=uh(v,w.getBoundingClientRect()),$=dh(v,y),T=fh(b.getBoundingClientRect()),C=hh([...$,...T]);a(C),f(!0)},[f]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(c&&u){const m=w=>g(w,u),b=w=>g(w,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,g,p]),d.useEffect(()=>{if(s){const m=b=>{const w=b.target,v={x:b.clientX,y:b.clientY},y=(c==null?void 0:c.contains(w))||(u==null?void 0:u.contains(w)),$=!ph(v,s);y?p():$&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),d.createElement(oc,Q({},e,{ref:i}))}),[sh,ah]=Nr(hi,{isInside:!1}),oc=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Br(Mn,n),l=Vr(n),{onClose:u}=c;return d.useEffect(()=>(document.addEventListener(Ro,u),()=>document.removeEventListener(Ro,u)),[u]),d.useEffect(()=>{if(c.trigger){const f=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),d.createElement(wp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:u},d.createElement(Hp,Q({"data-state":c.stateAttribute},l,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),d.createElement(Ma,null,r),d.createElement(sh,{scope:n,isInside:!0},d.createElement(Zp,{id:c.contentId,role:"tooltip"},o||r))))}),ch="TooltipArrow",lh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vr(n);return ah(ch,n).isInside?null:d.createElement(Up,Q({},o,r,{ref:t}))});function uh(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function dh(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function fh(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ph(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function hh(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),gh(t)}function gh(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const mh=eh,bh=th,yh=oh,vh=lh;function xh(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function ae(e,t){if(e==null)return{};var n=xh(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let be;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(be||(be={}));const wh={[be.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[be.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[be.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[be.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[be.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[be.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[be.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[be.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[be.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[be.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[be.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function ic(e,t,...n){const[r,...o]=wh[t](...n);console[e]("LEVA: "+r,...o)}const bt=ic.bind(null,"warn"),Eh=ic.bind(null,"log"),$h=["value"],Ch=["schema"],_h=["value"],sc=[],Bt={};function ms(e){let{value:t}=e,n=ae(e,$h);for(let r of sc){const o=r(t,n);if(o)return o}}function Ct(e,t){let{schema:n}=t,r=ae(t,Ch);if(e in Bt){bt(be.ALREADY_REGISTERED_TYPE,e);return}sc.push((o,i)=>n(o,i)&&e),Bt[e]=r}function Xr(e,t,n,r){const{normalize:o}=Bt[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=ae(t,_h);return{value:i,settings:s}}function Sh(e,t,n,r,o,i){const{sanitize:s}=Bt[e];return s?s(t,n,r,o,i):t}function bs(e,t,n){const{format:r}=Bt[e];return r?r(t,n):t}function Th(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=Tt(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Rh=Math.log(10);function vs(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Rh)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const gr=(e,t,n)=>n===t?0:(It(e,t,n)-t)/(n-t),mr=(e,t,n)=>e*(n-t)+t,Oh=()=>"_"+Math.random().toString(36).substr(2,9),xs=/\(([0-9+\-*/^ .]+)\)/,ws=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Es=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,$s=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Cs=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,_s=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Tt(e){if(isNaN(Number(e)))if(xs.test(e)){const t=e.replace(xs,(n,r)=>String(Tt(r)));return Tt(t)}else if(ws.test(e)){const t=e.replace(ws,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return Tt(t)}else if(Es.test(e)){const t=e.replace(Es,(n,r,o)=>String(Number(r)*Number(o)));return Tt(t)}else if($s.test(e)){const t=e.replace($s,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return Tt(t)}else if(Cs.test(e)){const t=e.replace(Cs,(n,r,o)=>String(Number(r)+Number(o)));return Tt(t)}else if(_s.test(e)){const t=e.replace(_s,(n,r,o)=>String(Number(r)-Number(o)));return Tt(t)}else return Number(e);return Number(e)}function Ph(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function Ah(e,t){const n=X({},e);return t.forEach(r=>r in e&&delete n[r]),n}function Ih(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function ac(e){return Object.prototype.toString.call(e)==="[object Object]"}const Dh=e=>ac(e)&&Object.keys(e).length===0;let nt;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(nt||(nt={}));let rt;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(rt||(rt={}));const Mh=["type","__customInput"],jh=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],Lh=["type"];function cc(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:X({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:C,__customInput:E}=e,S=ae(e,Mh);return cc(E,t,S,C)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:f,onChange:p,onEditStart:g,onEditEnd:m,transient:b}=e,w=ae(e,jh),v=X({render:s,key:t,label:a??t,hint:f,transient:b??!!p,onEditStart:g,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:y}=w,$=ae(w,Lh);if(y=r??y,y in nt)return{type:y,input:$,options:v};let T;return r&&ac($)&&"value"in $?T=$.value:T=Dh($)?void 0:$,{type:y,input:T,options:X(X({},v),{},{onChange:p,optional:(o=v.optional)!==null&&o!==void 0?o:!1,disabled:(i=v.disabled)!==null&&i!==void 0?i:!1})}}function Fh(e,t,n,r){const o=cc(e,t),{type:i,input:s,options:a}=o;if(i)return i in nt?o:{type:i,input:Xr(i,s,n,r),options:a};let c=ms(s);return c?{type:c,input:Xr(c,s,n,r),options:a}:(c=ms({value:s}),c?{type:c,input:Xr(c,{value:s},n,r),options:a}:!1)}function Ss(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=lc({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const zh=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function lc({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=Sh(e,s,n,t,o,i)}catch(c){throw new zh(`The value \`${r}\` did not result in a correct value.`,t,c)}return In(a,t)?t:a}const uc=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},dc=e=>e.shiftKey?5:e.altKey?1/5:1;function Nh(e,t){const n=console.error;console.error=()=>{},ga.render(e,t),console.error=n}const Vh=["value"],Bh=["min","max"],Wh=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},fc=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=It(o,t,n);return r?i+r:i},Hh=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},pc=e=>{let{value:t}=e,n=ae(e,Vh);const{min:r=-1/0,max:o=1/0}=n,i=ae(n,Bh);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=It(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?vs(c)*10:vs(s);c=c||l/10;const u=Math.round(It(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:X({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},hc=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var gc=Object.freeze({__proto__:null,schema:Wh,sanitize:fc,format:Hh,normalize:pc,sanitizeStep:hc});function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Jn(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const En={$inputStyle:()=>e=>Jn(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>Jn(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>Jn(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>Jn(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:q,css:jv,createTheme:Kh,globalCss:Gh,keyframes:Lv}=Va({prefix:"leva",theme:vc(),utils:X(X({},En),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":En.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":En.$focusStyle()(e)}),$hover:e=>({"&:hover":En.$hoverStyle()(e)}),$active:e=>({"&:active":En.$activeStyle()(e)})})}),Yh=Gh({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function qh(e){const t=vc();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=Kh(t);return{theme:t,className:n.className}}function yt(e,t){const{theme:n}=d.useContext(gi);if(!(e in n)||!(t in n[e]))return bt(be.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const xc=q("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),wc=q("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${xc}`]:{paddingLeft:0}}),Xh=q(wc,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),Zh=q("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),Qh=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],Jh=["onUpdate"];function mi(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=ae(e,Qh);const{id:f,emitOnEditStart:p,emitOnEditEnd:g,disabled:m}=Re(),b=a||f,w=d.useRef(null),v=l>0,y=v?"textarea":"input",$=d.useCallback(E=>S=>{const k=S.currentTarget.value;E(k)},[]);h.useEffect(()=>{const E=w.current,S=$(k=>{r(k),g()});return E==null||E.addEventListener("blur",S),()=>E==null?void 0:E.removeEventListener("blur",S)},[$,r,g]);const T=d.useCallback(E=>{E.key==="Enter"&&$(r)(E)},[$,r]),C=Object.assign({as:y},v?{rows:l}:{},u);return h.createElement(Zh,{textArea:v},t&&typeof t=="string"?h.createElement(wc,null,t):t,h.createElement(xc,ve({levaType:s,ref:w,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:$(o),onFocus:()=>p(),onKeyPress:T,onKeyDown:i,disabled:m},C)))}function eg(e){let{onUpdate:t}=e,n=ae(e,Jh);const r=d.useCallback(i=>t(kh(i)),[t]),o=d.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(c=>parseFloat(c)+s*a)}},[t]);return h.createElement(mi,ve({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const br=q("div",{}),Oo=q("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),tg=q("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${Oo}::after`]:{opacity:.6},[`${br}:hover > & + ${Oo}::after`]:{opacity:.6},[`${br}:hover > & > svg`]:{opacity:1}}),Ec=q("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${br}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),$c=q("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${Ec} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),Cc=q($c,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),ng=q("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),rg=q("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),Po=q("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),og=q("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Po}`]:{pointerEvents:"auto"}}}}}),_c=q("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),ig=q("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),sg=q(vh,{fill:"$toolTipBackground"});function bi({children:e}){const{className:t}=d.useContext(gi);return h.createElement(Wd,{className:t},e)}const ag=["align"];function cg(){const{id:e,disable:t,disabled:n}=Re();return h.createElement(h.Fragment,null,h.createElement(rg,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),h.createElement("label",{htmlFor:e+"__disable"}))}function lg(e){const{id:t,optional:n,hint:r}=Re(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return h.createElement(h.Fragment,null,n&&h.createElement(cg,null),r!==void 0?h.createElement(mh,null,h.createElement(bh,{asChild:!0},h.createElement(Po,ve({},o,e))),h.createElement(yh,{side:"top",sideOffset:2},h.createElement(ig,null,r,h.createElement(sg,null)))):h.createElement(Po,ve({},o,i,e)))}function ot(e){let{align:t}=e,n=ae(e,ag);const{value:r,label:o,key:i,disabled:s}=Re(),{hideCopyButton:a}=Uh(),c=!a&&i!==void 0,[l,u]=d.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{bt(be.CLIPBOARD_ERROR,{[i]:r})}};return h.createElement(ng,{align:t,onPointerLeave:()=>u(!1)},h.createElement(lg,n),c&&!s&&h.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),h.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):h.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),h.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const ug=["toggled"],dg=q("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function yi(e){let{toggled:t}=e,n=ae(e,ug);return h.createElement(dg,ve({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),h.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const fg=["input"];function tt(e){let{input:t}=e,n=ae(e,fg);return t?h.createElement(Cc,n):h.createElement($c,n)}function Sc({value:e,type:t,settings:n,setValue:r}){const[o,i]=d.useState(bs(t,e,n)),s=d.useRef(e),a=d.useRef(n);a.current=n;const c=d.useCallback(u=>i(bs(t,u,a.current)),[t]),l=d.useCallback(u=>{try{r(u)}catch(f){const{type:p,previousValue:g}=f;if(p!=="LEVA_ERROR")throw f;c(g)}},[c,r]);return d.useEffect(()=>{In(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Hn(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=Re();return gp(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function pg(e){const t=d.useRef(null),n=d.useRef(null),r=d.useRef(!1);return d.useEffect(()=>{const o=uc(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),d.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function Tc(){const e=d.useRef(null),t=d.useRef({x:0,y:0}),n=d.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const hg=["__refCount"],Zr=(e,t)=>{if(!e[t])return null;const n=e[t];return ae(n,hg)};function gg(e){const t=Wn(),[n,r]=d.useState(Zr(t.getData(),e)),o=d.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=d.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=d.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=d.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=d.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return d.useEffect(()=>{r(Zr(t.getData(),e));const l=t.useStore.subscribe(u=>Zr(u.data,e),r,{equalityFn:Nn});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const mg=q("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),kc=q("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Ao=q("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),Rc=q("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Oc=q("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function bg({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=d.useRef(null),a=d.useRef(null),c=d.useRef(0),l=yt("sizes","scrubberWidth"),u=Hn(({event:p,first:g,xy:[m],movement:[b],memo:w})=>{if(g){const{width:y,left:$}=s.current.getBoundingClientRect();c.current=y-parseFloat(l),w=(p==null?void 0:p.target)===a.current?e:mr((m-$)/y,t,n)}const v=w+mr(b/c.current,0,n-t);return r(hc(v,{step:o,initialValue:i})),w}),f=gr(e,t,n);return h.createElement(Rc,ve({ref:s},u()),h.createElement(kc,null,h.createElement(Oc,{style:{left:0,right:`${(1-f)*100}%`}})),h.createElement(Ao,{ref:a,style:{left:`calc(${f} * (100% - ${l}))`}}))}const yg=h.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=d.useState(!1),s=Hn(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(f=>parseFloat(f)+Math.floor(u)*n*dc(l)),u=0),u));return h.createElement(Xh,ve({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function Pc({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&h.createElement(yg,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return h.createElement(eg,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function vg(){const e=Re(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return h.createElement(tt,{input:!0},h.createElement(ot,null,t),h.createElement(mg,{hasRange:c},c&&h.createElement(bg,ve({value:parseFloat(n),onDrag:r},o)),h.createElement(Pc,ve({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:xg}=gc,wg=ae(gc,["sanitizeStep"]);var Eg=X({component:vg},wg);const $g=(e,t)=>ze().schema({options:ze().passesAnyOf(ze().object(),ze().array())}).test(t),Cg=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},_g=(e,{values:t})=>t.indexOf(e),Sg=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var Tg=Object.freeze({__proto__:null,schema:$g,sanitize:Cg,format:_g,normalize:Sg});const kg=q("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Io=q("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Rg=q("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Io}:focus + &`]:{$focusStyle:""},[`${Io}:hover + &`]:{$hoverStyle:""}});function Og({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=d.useRef();return t===a[e]&&(c.current=s[e]),h.createElement(kg,null,h.createElement(Io,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>h.createElement("option",{key:l,value:u},l))),h.createElement(Rg,null,c.current),h.createElement(yi,{toggled:!0}))}function Pg(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Og,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Ag=X({component:Pg},Tg);const Ig=e=>ze().string().test(e),Dg=e=>{if(typeof e!="string")throw Error("Invalid string");return e},Mg=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var jg=Object.freeze({__proto__:null,schema:Ig,sanitize:Dg,normalize:Mg});const Lg=["displayValue","onUpdate","onChange","editable"],Fg=q("div",{whiteSpace:"pre-wrap"});function zg(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=ae(e,Lg);return o?h.createElement(mi,ve({value:t,onUpdate:n,onChange:r},i)):h.createElement(Fg,null,t)}function Ng(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(zg,ve({displayValue:n,onUpdate:r,onChange:o},t)))}var Vg=X({component:Ng},jg);const Bg=e=>ze().boolean().test(e),Wg=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var Hg=Object.freeze({__proto__:null,schema:Bg,sanitize:Wg});const Ug=q("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function Kg({value:e,onUpdate:t,id:n,disabled:r}){return h.createElement(Ug,null,h.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),h.createElement("label",{htmlFor:n},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function Gg(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Kg,{value:t,onUpdate:n,id:o,disabled:r}))}var Yg=X({component:Gg},Hg);const qg=["locked"];function Xg({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=d.useRef(e[n]);s.current=e[n];const a=d.useCallback(l=>o({[n]:lc({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=Sc({type:"NUMBER",value:e[n],settings:r,setValue:a});return h.createElement(Pc,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const Zg=q("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function Qg(e){let{locked:t}=e,n=ae(e,qg);return h.createElement("svg",ve({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?h.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):h.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function vi({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=Re(),{lock:s,locked:a}=n;return h.createElement(Zg,{withLock:s},s&&h.createElement(Qg,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>h.createElement(Xg,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const Ac=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=pc(X({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},Jg=["lock"],e1=["value"];function t1(e){const t=ze().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function n1(e){return Array.isArray(e)?"array":"object"}function Tn(e,t,n){return n1(e)===t?e:t==="array"?Object.values(e):Ih(e,n)}const r1=(e,t,n)=>{const r=Tn(e,"object",t.keys);for(let s in r)r[s]=fc(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=Tn(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let f in s)f===a?i[a]=c:i[f]=s[f]*u}else i=X(X({},s),r)}return Tn(i,t.format,t.keys)},o1=(e,t)=>Tn(e,"object",t.keys),i1=e=>!!e&&("step"in e||"min"in e||"max"in e);function s1(e,t,n=[]){const{lock:r=!1}=t,o=ae(t,Jg),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=Tn(e,"object",s),c=i1(o)?s.reduce((u,f)=>Object.assign(u,{[f]:o}),{}):o,l=Ac(a,c);return{value:i==="array"?e:a,settings:X(X({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function Ic(e){return{schema:t1(e.length),normalize:t=>{let{value:n}=t,r=ae(t,e1);return s1(n,r,e)},format:(t,n)=>o1(t,n),sanitize:(t,n,r)=>r1(t,n,r)}}var a1={grad:.9,turn:360,rad:360/(2*Math.PI)},ht=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},$e=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Dc=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ts=function(e){return{r:Je(e.r,0,255),g:Je(e.g,0,255),b:Je(e.b,0,255),a:Je(e.a)}},Qr=function(e){return{r:$e(e.r),g:$e(e.g),b:$e(e.b),a:$e(e.a,3)}},c1=/^#([0-9a-f]{3,8})$/i,er=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Mc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},jc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},ks=function(e){return{h:Dc(e.h),s:Je(e.s,0,100),l:Je(e.l,0,100),a:Je(e.a)}},Rs=function(e){return{h:$e(e.h),s:$e(e.s),l:$e(e.l),a:$e(e.a,3)}},Os=function(e){return jc((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},kn=function(e){return{h:(t=Mc(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},l1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,u1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,d1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,f1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Do={string:[[function(e){var t=c1.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?$e(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?$e(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=d1.exec(e)||f1.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ts({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=l1.exec(e)||u1.exec(e);if(!t)return null;var n,r,o=ks({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(a1[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Os(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return ht(t)&&ht(n)&&ht(r)?Ts({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!ht(t)||!ht(n)||!ht(r))return null;var s=ks({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Os(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!ht(t)||!ht(n)||!ht(r))return null;var s=function(a){return{h:Dc(a.h),s:Je(a.s,0,100),v:Je(a.v,0,100),a:Je(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return jc(s)},"hsv"]]},Ps=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=Qr(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?er($e(255*i)):"","#"+er(n)+er(r)+er(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return Qr(this.rgba)},e.prototype.toRgbString=function(){return t=Qr(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return Rs(kn(this.rgba))},e.prototype.toHslString=function(){return t=Rs(kn(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=Mc(this.rgba),{h:$e(t.h),s:$e(t.s),v:$e(t.v),a:$e(t.a,3)};var t},e.prototype.invert=function(){return Ie({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Ie(Jr(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Ie(Jr(this.rgba,-t))},e.prototype.grayscale=function(){return Ie(Jr(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Ie(As(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Ie(As(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Ie({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):$e(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=kn(this.rgba);return typeof t=="number"?Ie({h:t,s:n.s,l:n.l,a:n.a}):$e(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Ie(t).toHex()},e}(),Ie=function(e){return e instanceof Mo?e:new Mo(e)},Is=[],h1=function(e){e.forEach(function(t){Is.indexOf(t)<0&&(t(Mo,Do),Is.push(t))})};function g1(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),f=1/0,p="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function jo(e){var t=d.useRef(e),n=d.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var ln=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&o.current?i(Ds(o.current,w,a.current)):b(!1)},m=function(){return b(!1)};function b(w){var v=c.current,y=Lo(o.current),$=w?y.addEventListener:y.removeEventListener;$(v?"touchmove":"mousemove",g),$(v?"touchend":"mouseup",m)}return[function(w){var v=w.nativeEvent,y=o.current;if(y&&(Ms(v),!function(T,C){return C&&!Rn(T)}(v,c.current)&&y)){if(Rn(v)){c.current=!0;var $=v.changedTouches||[];$.length&&(a.current=$[0].identifier)}y.focus(),i(Ds(y,v,a.current)),b(!0)}},function(w){var v=w.which||w.keyCode;v<37||v>40||(w.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[s,i]),u=l[0],f=l[1],p=l[2];return d.useEffect(function(){return p},[p]),h.createElement("div",gn({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Un=function(e){return e.filter(Boolean).join(" ")},Ei=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Un(["react-colorful__pointer",e.className]);return h.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Fc=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:je(e.h),s:je(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:je(o/2),a:je(r,2)}},Fo=function(e){var t=Fc(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},to=function(e){var t=Fc(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},zc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:je(255*[r,a,s,s,c,r][l]),g:je(255*[c,r,r,a,s,s][l]),b:je(255*[s,s,c,r,r,a][l]),a:je(o,2)}},Nc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:je(60*(a<0?a+6:a)),s:je(i?s/i*100:0),v:je(i/255*100),a:o}},Vc=h.memo(function(e){var t=e.hue,n=e.onChange,r=Un(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(wi,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ln(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":je(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Ei,{className:"react-colorful__hue-pointer",left:t/360,color:Fo({h:t,s:100,v:100,a:1})})))}),Bc=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Fo({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(wi,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ln(t.s+100*o.left,0,100),v:ln(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+je(t.s)+"%, Brightness "+je(t.v)+"%"},h.createElement(Ei,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Fo(t)})))}),$i=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Wc(e,t,n){var r=jo(n),o=d.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=d.useRef({color:t,hsva:i});d.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),d.useEffect(function(){var l;$i(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=d.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var m1=typeof window<"u"?d.useLayoutEffect:d.useEffect,b1=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},js=new Map,Hc=function(e){m1(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!js.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,js.set(t,n);var r=b1();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},y1=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=xi(e,["className","colorModel","color","onChange"]),a=d.useRef(null);Hc(a);var c=Wc(n,o,i),l=c[0],u=c[1],f=Un(["react-colorful",t]);return h.createElement("div",gn({},s,{ref:a,className:f}),h.createElement(Bc,{hsva:l,onChange:u}),h.createElement(Vc,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},v1=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+to(Object.assign({},n,{a:0}))+", "+to(Object.assign({},n,{a:1}))+")"},i=Un(["react-colorful__alpha",t]),s=je(100*n.a);return h.createElement("div",{className:i},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(wi,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ln(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Ei,{className:"react-colorful__alpha-pointer",left:n.a,color:to(n)})))},x1=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=xi(e,["className","colorModel","color","onChange"]),a=d.useRef(null);Hc(a);var c=Wc(n,o,i),l=c[0],u=c[1],f=Un(["react-colorful",t]);return h.createElement("div",gn({},s,{ref:a,className:f}),h.createElement(Bc,{hsva:l,onChange:u}),h.createElement(Vc,{hue:l.h,onChange:u}),h.createElement(v1,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},w1={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Nc,fromHsva:zc,equal:$i},E1=function(e){return h.createElement(x1,gn({},e,{colorModel:w1}))},$1={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return Nc({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=zc(e)).r,g:t.g,b:t.b};var t},equal:$i},C1=function(e){return h.createElement(y1,gn({},e,{colorModel:$1}))};function Fv(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function mn(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function c(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function bn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function S1(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function k1(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=T1.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var R1=[".DS_Store","Thumbs.db"];function O1(e){return mn(this,void 0,void 0,function(){return bn(this,function(t){return yr(e)&&P1(e)?[2,M1(e.dataTransfer,e.type)]:A1(e)?[2,I1(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,D1(e)]:[2,[]]})})}function P1(e){return yr(e.dataTransfer)}function A1(e){return yr(e)&&yr(e.target)}function yr(e){return typeof e=="object"&&e!==null}function I1(e){return zo(e.target.files).map(function(t){return Kn(t)})}function D1(e){return mn(this,void 0,void 0,function(){var t;return bn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Kn(r)})]}})})}function M1(e,t){return mn(this,void 0,void 0,function(){var n,r;return bn(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=zo(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(j1))]):[3,2];case 1:return r=o.sent(),[2,Ls(Uc(r))];case 2:return[2,Ls(zo(e.files).map(function(i){return Kn(i)}))]}})})}function Ls(e){return e.filter(function(t){return R1.indexOf(t.name)===-1})}function zo(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Ws(n)];if(e.sizen)return[!1,Ws(n)]}return[!0,null]}function $n(e){return e!=null}function X1(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var c=Yc(a,n),l=Vs(c,1),u=l[0],f=qc(a,r,o),p=Vs(f,1),g=p[0];return u&&g})}function vr(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function tr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Us(e){e.preventDefault()}function Z1(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Q1(e){return e.indexOf("Edge/")!==-1}function J1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Z1(e)||Q1(e)}function at(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function g0(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Ci=d.forwardRef(function(e,t){var n=e.children,r=xr(e,o0),o=Qc(r),i=o.open,s=xr(o,i0);return d.useImperativeHandle(t,function(){return{open:i}},[i]),h.createElement(d.Fragment,null,n(me(me({},s),{},{open:i})))});Ci.displayName="Dropzone";var Zc={disabled:!1,getFilesFromEvent:O1,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Ci.defaultProps=Zc;Ci.propTypes={children:fe.func,accept:fe.oneOfType([fe.string,fe.arrayOf(fe.string)]),multiple:fe.bool,preventDropOnDocument:fe.bool,noClick:fe.bool,noKeyboard:fe.bool,noDrag:fe.bool,noDragEventsBubbling:fe.bool,minSize:fe.number,maxSize:fe.number,maxFiles:fe.number,disabled:fe.bool,getFilesFromEvent:fe.func,onFileDialogCancel:fe.func,onFileDialogOpen:fe.func,useFsAccessApi:fe.bool,onDragEnter:fe.func,onDragLeave:fe.func,onDragOver:fe.func,onDrop:fe.func,onDropAccepted:fe.func,onDropRejected:fe.func,validator:fe.func};var Bo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Qc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=me(me({},Zc),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,c=t.maxFiles,l=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,b=t.onFileDialogCancel,w=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.preventDropOnDocument,$=t.noClick,T=t.noKeyboard,C=t.noDrag,E=t.noDragEventsBubbling,S=t.validator,k=d.useMemo(function(){return typeof w=="function"?w:Gs},[w]),F=d.useMemo(function(){return typeof b=="function"?b:Gs},[b]),D=d.useRef(null),j=d.useRef(null),A=d.useReducer(m0,Bo),z=no(A,2),L=z[0],N=z[1],V=L.isFocused,K=L.isFileDialogActive,Y=L.draggedFiles,ee=d.useRef(typeof window<"u"&&window.isSecureContext&&v&&e0()),ce=function(){!ee.current&&K&&setTimeout(function(){if(j.current){var P=j.current.files;P.length||(N({type:"closeDialog"}),F())}},300)};d.useEffect(function(){return window.addEventListener("focus",ce,!1),function(){window.removeEventListener("focus",ce,!1)}},[j,K,F,ee]);var W=d.useRef([]),J=function(P){D.current&&D.current.contains(P.target)||(P.preventDefault(),W.current=[])};d.useEffect(function(){return y&&(document.addEventListener("dragover",Us,!1),document.addEventListener("drop",J,!1)),function(){y&&(document.removeEventListener("dragover",Us),document.removeEventListener("drop",J))}},[D,y]);var ne=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O),W.current=[].concat(c0(W.current),[O.target]),tr(O)&&Promise.resolve(o(O)).then(function(P){vr(O)&&!E||(N({draggedFiles:P,isDragActive:!0,type:"setDraggedFiles"}),l&&l(O))})},[o,l,E]),re=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O);var P=tr(O);if(P&&O.dataTransfer)try{O.dataTransfer.dropEffect="copy"}catch{}return P&&f&&f(O),!1},[f,E]),ie=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O);var P=W.current.filter(function(H){return D.current&&D.current.contains(H)}),M=P.indexOf(O.target);M!==-1&&P.splice(M,1),W.current=P,!(P.length>0)&&(N({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),tr(O)&&u&&u(O))},[D,u,E]),ue=d.useCallback(function(O,P){var M=[],H=[];O.forEach(function(Z){var de=Yc(Z,n),G=no(de,2),Ve=G[0],Dt=G[1],st=qc(Z,s,i),pt=no(st,2),vn=pt[0],Yt=pt[1],xn=S?S(Z):null;if(Ve&&vn&&!xn)M.push(Z);else{var qt=[Dt,Yt];xn&&(qt=qt.concat(xn)),H.push({file:Z,errors:qt.filter(function(jl){return jl})})}}),(!a&&M.length>1||a&&c>=1&&M.length>c)&&(M.forEach(function(Z){H.push({file:Z,errors:[q1]})}),M.splice(0)),N({acceptedFiles:M,fileRejections:H,type:"setFiles"}),p&&p(M,H,P),H.length>0&&m&&m(H,P),M.length>0&&g&&g(M,P)},[N,a,n,s,i,c,p,g,m,S]),Ce=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O),W.current=[],tr(O)&&Promise.resolve(o(O)).then(function(P){vr(O)&&!E||ue(P,O)}),N({type:"reset"})},[o,ue,E]),_e=d.useCallback(function(){if(ee.current){N({type:"openDialog"}),k();var O={multiple:a,types:t0(n)};window.showOpenFilePicker(O).then(function(P){return o(P)}).then(function(P){ue(P,null),N({type:"closeDialog"})}).catch(function(P){n0(P)?(F(P),N({type:"closeDialog"})):r0(P)&&(ee.current=!1,j.current&&(j.current.value=null,j.current.click()))});return}j.current&&(N({type:"openDialog"}),k(),j.current.value=null,j.current.click())},[N,k,F,v,ue,n,a]),xe=d.useCallback(function(O){!D.current||!D.current.isEqualNode(O.target)||(O.key===" "||O.key==="Enter"||O.keyCode===32||O.keyCode===13)&&(O.preventDefault(),_e())},[D,_e]),it=d.useCallback(function(){N({type:"focus"})},[]),dt=d.useCallback(function(){N({type:"blur"})},[]),_t=d.useCallback(function(){$||(J1()?setTimeout(_e,0):_e())},[$,_e]),Ne=function(P){return r?null:P},ft=function(P){return T?null:Ne(P)},Oe=function(P){return C?null:Ne(P)},Ye=function(P){E&&P.stopPropagation()},Ut=d.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=O.refKey,M=P===void 0?"ref":P,H=O.role,Z=O.onKeyDown,de=O.onFocus,G=O.onBlur,Ve=O.onClick,Dt=O.onDragEnter,st=O.onDragOver,pt=O.onDragLeave,vn=O.onDrop,Yt=xr(O,s0);return me(me(Vo({onKeyDown:ft(at(Z,xe)),onFocus:ft(at(de,it)),onBlur:ft(at(G,dt)),onClick:Ne(at(Ve,_t)),onDragEnter:Oe(at(Dt,ne)),onDragOver:Oe(at(st,re)),onDragLeave:Oe(at(pt,ie)),onDrop:Oe(at(vn,Ce)),role:typeof H=="string"&&H!==""?H:"button"},M,D),!r&&!T?{tabIndex:0}:{}),Yt)}},[D,xe,it,dt,_t,ne,re,ie,Ce,T,C,r]),Kt=d.useCallback(function(O){O.stopPropagation()},[]),Gt=d.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=O.refKey,M=P===void 0?"ref":P,H=O.onChange,Z=O.onClick,de=xr(O,a0),G=Vo({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:Ne(at(H,Ce)),onClick:Ne(at(Z,Kt)),tabIndex:-1},M,j);return me(me({},G),de)}},[j,n,a,Ce,r]),x=Y.length,R=x>0&&X1({files:Y,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:c}),I=x>0&&!R;return me(me({},L),{},{isDragAccept:R,isDragReject:I,isFocused:V&&!r,getRootProps:Ut,getInputProps:Gt,rootRef:D,inputRef:j,open:Ne(_e)})}function m0(e,t){switch(t.type){case"focus":return me(me({},e),{},{isFocused:!0});case"blur":return me(me({},e),{},{isFocused:!1});case"openDialog":return me(me({},Bo),{},{isFileDialogActive:!0});case"closeDialog":return me(me({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return me(me({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return me(me({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return me({},Bo);default:return e}}function Gs(){}function b0(e){let t;const n=new Set,r=(l,u)=>{const f=typeof l=="function"?l(t):l;if(f!==t){const p=t;t=u?f:Object.assign({},t,f),n.forEach(g=>g(t,p))}},o=()=>t,i=(l,u=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=u(t);function g(){const m=u(t);if(!f(p,m)){const b=p;l(p=m,b)}}return n.add(g),()=>n.delete(g)},c={setState:r,getState:o,subscribe:(l,u,f)=>u||f?i(l,u,f):(n.add(l),()=>n.delete(l)),destroy:()=>n.clear()};return t=e(r,o,c),c}const y0=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ys=y0?d.useEffect:d.useLayoutEffect;function v0(e){const t=typeof e=="function"?b0(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=d.useReducer(w=>w+1,0),s=t.getState(),a=d.useRef(s),c=d.useRef(r),l=d.useRef(o),u=d.useRef(!1),f=d.useRef();f.current===void 0&&(f.current=r(s));let p,g=!1;(a.current!==s||c.current!==r||l.current!==o||u.current)&&(p=r(s),g=!o(f.current,p)),Ys(()=>{g&&(f.current=p),a.current=s,c.current=r,l.current=o,u.current=!1});const m=d.useRef(s);Ys(()=>{const w=()=>{try{const y=t.getState(),$=c.current(y);l.current(f.current,$)||(a.current=y,f.current=$,i())}catch{u.current=!0,i()}},v=t.subscribe(w);return t.getState()!==m.current&&w(),v},[]);const b=g?p:f.current;return d.useDebugValue(b),b};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const x0=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,c)=>{let l=s;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let f=s(r.getState());l=p=>{const g=s(p);if(!u(f,g)){const m=f;a(f=g,m)}},c!=null&&c.fireImmediately&&a(f,f)}return o(l)},e(t,n,r)};/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var w0=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var E0=w0;function qs(e){return E0(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var Jc=function(t){var n,r;return!(qs(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,qs(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! + * is-extendable + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var $0=Jc,_i=function(t){return $0(t)||typeof t=="function"||Array.isArray(t)};/*! + * for-in + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */var C0=function(t,n,r){for(var o in t)if(n.call(r,t[o],o,t)===!1)break},_0=_i,S0=C0;function el(e,t){for(var n=arguments.length,r=0;++r + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */var O0=function(e,t,n,r,o){if(!P0(e)||!t)return e;if(t=nr(t),n&&(t+="."+nr(n)),r&&(t+="."+nr(r)),o&&(t+="."+nr(o)),t in e)return e[t];for(var i=t.split("."),s=i.length,a=-1;e&&++a + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var A0=function(e,t){if(e===null||typeof e>"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");Xs(e)||(e={});for(var t=1;t + * + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. + */var N0=M0,V0=function(e,t,n){if(typeof e!="string")throw new TypeError("expected a string");typeof t=="function"&&(n=t,t=null),typeof t=="string"&&(t={sep:t});var r=N0({sep:"."},t),o=r.quotes||['"',"'","`"],i;r.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:r.brackets&&(i=r.brackets);var s=[],a=[],c=[""],l=r.sep,u=e.length,f=-1,p;function g(){if(i&&a.length)return i[a[a.length-1]]}for(;++f + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var H0=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")},Zs=H0,U0=function(t){Zs(t)||(t={});for(var n=arguments.length,r=1;r + * + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. + */var Y0=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")};/*! + * set-value + * + * Copyright (c) 2014-2015, 2017, Jon Schlinkert. + * Released under the MIT License. + */var q0=V0,X0=U0,Qs=Jc,Js=Y0,Z0=function(e,t,n){if(!Js(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=q0(t,{sep:".",brackets:!0}).filter(Q0),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function nm(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function rm(e,t){return Object.entries(Ph(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function om(e,t){const n=d.useRef();return(t?In:Nn)(e,n.current)||(n.current=e),n.current}function tl(e,t){return d.useMemo(e,om(t,!0))}function im(e){const t=d.useRef(null),n=d.useRef(null),r=d.useRef(!0);return d.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),d.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:a}=n.current.getBoundingClientRect();return i.style.height=a+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const sm=e=>{const[t,n]=d.useState(e.getVisiblePaths());return d.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:Nn});return()=>r()},[e]),t};function am(e,t,n){return e.useStore(o=>{const i=X(X({},n),o.data);return rm(i,t)},Nn)}function nl(e=3){const t=d.useRef(null),n=d.useRef(null),[r,o]=d.useState(!1),i=d.useCallback(()=>o(!0),[]),s=d.useCallback(()=>o(!1),[]);return d.useLayoutEffect(()=>{if(r){const{bottom:a,top:c,left:l}=t.current.getBoundingClientRect(),{height:u}=n.current.getBoundingClientRect(),f=a+u>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=l+"px",f==="down"?n.current.style.top=a+e+"px":n.current.style.bottom=window.innerHeight-c+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}h1([g1]);const cm={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};ze.extend({color:()=>e=>Ie(e).isValid()});const lm=e=>ze().color().test(e);function rl(e,{format:t,hasAlpha:n,isString:r}){const o=cm[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?Ah(i,["a"]):i}const ol=(e,t)=>{const n=Ie(e);if(!n.isValid())throw Error("Invalid color");return rl(n,t)},um=(e,t)=>rl(Ie(e),X(X({},t),{},{isString:!0,format:"hex"})),dm=({value:e})=>{const t=p1(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:ol(e,o),settings:o}};var fm=Object.freeze({__proto__:null,schema:lm,sanitize:ol,format:um,normalize:dm});const pm=q("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),hm=q("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),gm=q("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function na(e,t){return t!=="rgb"?Ie(e).toRgb():e}function mm({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=Re(),{format:s,hasAlpha:a}=n,{popinRef:c,wrapperRef:l,shown:u,show:f,hide:p}=nl(),g=d.useRef(0),[m,b]=d.useState(()=>na(e,s)),w=a?E1:C1,v=()=>{b(na(e,s)),f(),o()},y=()=>{p(),i(),window.clearTimeout(g.current)},$=()=>{g.current=window.setTimeout(y,500)};return d.useEffect(()=>()=>window.clearTimeout(g.current),[]),h.createElement(h.Fragment,null,h.createElement(pm,{ref:c,active:u,onClick:()=>v(),style:{color:t}}),u&&h.createElement(bi,null,h.createElement(_c,{onPointerUp:y}),h.createElement(gm,{ref:l,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:T=>T.buttons===0&&$()},h.createElement(w,{color:m,onChange:r}))))}function bm(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,n),h.createElement(hm,null,h.createElement(mm,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),h.createElement(mi,{value:t,onChange:r,onUpdate:o})))}var ym=X({component:bm},fm);function vm(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(vi,{value:t,settings:r,onUpdate:n}))}var xm=X({component:vm},Ic(["x","y","z"]));const wm=q("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),Em=q("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function $m({value:e,settings:t,onUpdate:n}){const r=d.useRef(),o=d.useRef(0),i=d.useRef(0),s=d.useRef(1),[a,c]=d.useState(!1),[l,u]=d.useState(!1),[f,p]=Tc(),g=d.useRef(null),m=d.useRef(null);d.useLayoutEffect(()=>{if(a){const{top:A,left:z,width:L,height:N}=g.current.getBoundingClientRect();m.current.style.left=z+L/2+"px",m.current.style.top=A+N/2+"px"}},[a]);const{keys:[b,w],joystick:v}=t,y=v==="invertY"?1:-1,{[b]:{step:$},[w]:{step:T}}=t,C=yt("sizes","joystickWidth"),E=yt("sizes","joystickHeight"),S=parseFloat(C)*.8/2,k=parseFloat(E)*.8/2,F=d.useCallback(()=>{r.current||(u(!0),o.current&&p({x:o.current*S}),i.current&&p({y:i.current*-k}),r.current=window.setInterval(()=>{n(A=>{const z=$*o.current*s.current,L=y*T*i.current*s.current;return Array.isArray(A)?{[b]:A[0]+z,[w]:A[1]+L}:{[b]:A[b]+z,[w]:A[w]+L}})},16))},[S,k,n,p,$,T,b,w,y]),D=d.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,u(!1)},[]);d.useEffect(()=>{function A(z){s.current=dc(z)}return window.addEventListener("keydown",A),window.addEventListener("keyup",A),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",A),window.removeEventListener("keyup",A)}},[]);const j=Hn(({first:A,active:z,delta:[L,N],movement:[V,K]})=>{A&&c(!0);const Y=It(V,-S,S),ee=It(K,-k,k);o.current=Math.abs(V)>Math.abs(Y)?Math.sign(V-Y):0,i.current=Math.abs(K)>Math.abs(ee)?Math.sign(ee-K):0;let ce=e[b],W=e[w];z?(o.current||(ce+=L*$*s.current,p({x:Y})),i.current||(W-=y*N*T*s.current,p({y:ee})),o.current||i.current?F():D(),n({[b]:ce,[w]:W})):(c(!1),o.current=0,i.current=0,p({x:0,y:0}),D())});return h.createElement(wm,ve({ref:g},j()),a&&h.createElement(bi,null,h.createElement(Em,{ref:m,isOutOfBounds:l},h.createElement("div",null),h.createElement("span",{ref:f}))))}const Cm=q("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function _m(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Cm,{withJoystick:!!r.joystick},r.joystick&&h.createElement($m,{value:t,settings:r,onUpdate:n}),h.createElement(vi,{value:t,settings:r,onUpdate:n})))}const Sm=["joystick"],il=Ic(["x","y"]),Tm=e=>{let{joystick:t=!0}=e,n=ae(e,Sm);const{value:r,settings:o}=il.normalize(n);return{value:r,settings:X(X({},o),{},{joystick:t})}};var km=X(X({component:_m},il),{},{normalize:Tm});const Rm=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},Om=(e,t)=>typeof t=="object"&&"image"in t,Pm=({image:e})=>({value:e});var Am=Object.freeze({__proto__:null,sanitize:Rm,schema:Om,normalize:Pm});const Im=q("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),Dm=q("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),Mm=q("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),jm=q("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),Lm=q("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),Fm=q("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function zm(){const{label:e,value:t,onUpdate:n,disabled:r}=Re(),{popinRef:o,wrapperRef:i,shown:s,show:a,hide:c}=nl(),l=d.useCallback(m=>{m.length&&n(m[0])},[n]),u=d.useCallback(m=>{m.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:p,isDragAccept:g}=Qc({maxFiles:1,accept:"image/*",onDrop:l,disabled:r});return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Im,null,h.createElement(Mm,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&a(),onPointerUp:c,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&h.createElement(bi,null,h.createElement(_c,{onPointerUp:c,style:{cursor:"pointer"}}),h.createElement(jm,{ref:i,style:{backgroundImage:`url(${t})`}})),h.createElement(Dm,f({isDragAccept:g}),h.createElement("input",p()),h.createElement(Lm,null,g?"drop image":"click or drop")),h.createElement(Fm,{onClick:u,disabled:!t})))}var Nm=X({component:zm},Am);const ra=ze().number(),Vm=(e,t)=>ze().array().length(2).every.number().test(e)&&ze().schema({min:ra,max:ra}).test(t),wr=e=>({min:e[0],max:e[1]}),sl=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?wr(e):e,i={min:r[0],max:r[1]},{min:s,max:a}=X(X({},i),o);return[It(Number(s),t,Math.max(t,a)),It(Number(a),Math.min(n,s),n)]},Bm=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=Ac(wr(e),{min:r,max:r}),i=[t,n],s=X(X({},o),{},{bounds:i});return{value:sl(wr(e),s,e),settings:s}};var Wm=Object.freeze({__proto__:null,schema:Vm,format:wr,sanitize:sl,normalize:Bm});const Hm=["value","bounds","onDrag"],Um=["bounds"],Km=q("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Gm(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=ae(e,Hm);const s=d.useRef(null),a=d.useRef(null),c=d.useRef(null),l=d.useRef(0),u=yt("sizes","scrubberWidth"),f=Hn(({event:m,first:b,xy:[w],movement:[v],memo:y={}})=>{if(b){const{width:T,left:C}=s.current.getBoundingClientRect();l.current=T-parseFloat(u);const E=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;y.pos=mr((w-C)/T,n,r);const S=Math.abs(y.pos-t.min)-Math.abs(y.pos-t.max);y.key=S<0||S===0&&y.pos<=t.min?"min":"max",E&&(y.pos=t[y.key])}const $=y.pos+mr(v/l.current,0,r-n);return o({[y.key]:xg($,i[y.key])}),y}),p=`calc(${gr(t.min,n,r)} * (100% - ${u} - 8px) + 4px)`,g=`calc(${1-gr(t.max,n,r)} * (100% - ${u} - 8px) + 4px)`;return h.createElement(Rc,ve({ref:s},f()),h.createElement(kc,null,h.createElement(Oc,{style:{left:p,right:g}})),h.createElement(Ao,{position:"left",ref:a,style:{left:p}}),h.createElement(Ao,{position:"right",ref:c,style:{right:g}}))}function Ym(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Re(),o=ae(r,Um);return h.createElement(h.Fragment,null,h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Km,null,h.createElement(Gm,ve({value:t},r,{onDrag:n})),h.createElement(vi,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var qm=X({component:Ym},Wm);const Xm=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},Zm=["type","value"],Qm=["onChange","transient","onEditStart","onEditEnd"],Jm=function(){const t=v0(x0(()=>({data:{}}))),n=Xm();this.storeId=Oh(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),c=[];Object.entries(r).forEach(([u,f])=>{f.render&&a.some(p=>p.indexOf(u)===0)&&!f.render(this.get)&&c.push(u+".")});const l=[];return o.forEach(u=>{u in s&&s[u].__refCount>0&&c.every(f=>u.indexOf(f)===-1)&&(!s[u].render||s[u].render(this.get))&&l.push(u)}),l},this.setOrderedPaths=s=>{s.forEach(a=>o.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(a=>{const c=a.data;return s.forEach(l=>{if(l in c){const u=c[l];u.__refCount--,u.__refCount===0&&u.type in nt&&delete c[l]}}),{data:c}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,a)=>{t.setState(c=>{const l=c.data;return Object.entries(s).forEach(([u,f])=>{let p=l[u];if(p){const{type:g,value:m}=f,b=ae(f,Zm);g!==p.type?bt(be.INPUT_TYPE_OVERRIDE,g):((p.__refCount===0||a)&&Object.assign(p,b),p.__refCount++)}else l[u]=X(X({},f),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(s,a,c)=>{t.setState(l=>{const u=l.data;return Ss(u[s],a,s,this,c),{data:u}})},this.setSettingsAtPath=(s,a)=>{t.setState(c=>{const l=c.data;return l[s].settings=X(X({},l[s].settings),a),{data:l}})},this.disableInputAtPath=(s,a)=>{t.setState(c=>{const l=c.data;return l[s].disabled=a,{data:l}})},this.set=(s,a)=>{t.setState(c=>{const l=c.data;return Object.entries(s).forEach(([u,f])=>{try{Ss(l[u],f,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=s=>{try{return this.getData()[s]}catch{bt(be.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,X(X({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,X(X({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const c=`onEditStart:${s}`;return n.on(c,a),()=>n.off(c,a)},this.subscribeToEditEnd=(s,a)=>{const c=`onEditEnd:${s}`;return n.on(c,a),()=>n.off(c,a)};const i=(s,a,c)=>{const l={};return Object.entries(s).forEach(([u,f])=>{if(u==="")return bt(be.EMPTY_KEY);let p=Si(a,u);if(f.type===nt.FOLDER){const g=i(f.schema,p,c);Object.assign(l,g),p in r||(r[p]=f.settings)}else if(u in c)bt(be.DUPLICATE_KEYS,u,p,c[u].path);else{const g=Fh(f,u,p,l);if(g){const{type:m,options:b,input:w}=g,{onChange:v,transient:y,onEditStart:$,onEditEnd:T}=b,C=ae(b,Qm);l[p]=X(X(X({type:m},C),w),{},{fromPanel:!0}),c[u]={path:p,onChange:v,transient:y,onEditStart:$,onEditEnd:T}}else bt(be.UNKNOWN_INPUT,p,f)}}),l};this.getDataFromSchema=s=>{const a={};return[i(s,"",a),a]}},al=new Jm,eb={collapsed:!1};function tb(e,t){return{type:nt.FOLDER,schema:e,settings:X(X({},eb),t)}}const oa=e=>"__levaInput"in e,nb=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=nm(o);(!r||i.toLowerCase().indexOf(r)>-1)&&tm(n,s,{[i]:{__levaInput:!0,path:o}})}),n},rb=["type","label","path","valueKey","value","settings","setValue","disabled"];function ob(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:a,disabled:c}=e,l=ae(e,rb);const{displayValue:u,onChange:f,onUpdate:p}=Sc({type:t,value:i,settings:s,setValue:a}),g=Bt[t].component;return g?h.createElement(mc.Provider,{value:X({key:o,path:r,id:""+r,label:n,displayValue:u,value:i,onChange:f,onUpdate:p,settings:s,setValue:a,disabled:c},l)},h.createElement(og,{disabled:c},h.createElement(g,null))):(bt(be.NO_COMPONENT_FOR_TYPE,t,r),null)}const ib=q("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function sb({onClick:e,settings:t,label:n}){const r=Wn();return h.createElement(tt,null,h.createElement(ib,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const ab=q("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),cb=q("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),lb=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function ub(e){const{label:t,opts:n}=lb(e),r=Wn();return h.createElement(tt,{input:!!t},t&&h.createElement(ot,null,t),h.createElement(ab,null,Object.entries(n).map(([o,i])=>h.createElement(cb,{key:o,onClick:()=>i(r.get)},o))))}const db=q("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),cl=100;function fb(e,t){e.push(t),e.length>cl&&e.shift()}const pb=d.forwardRef(function({initialValue:e},t){const n=yt("colors","highlight3"),r=yt("colors","elevation2"),o=yt("colors","highlight1"),[i,s]=d.useMemo(()=>[Ie(o).alpha(.4).toRgbString(),Ie(o).alpha(.1).toRgbString()],[o]),a=d.useRef([e]),c=d.useRef(e),l=d.useRef(e),u=d.useRef(),f=d.useCallback((m,b)=>{if(!m)return;const{width:w,height:v}=m,y=new Path2D,$=w/cl,T=v*.05;for(let S=0;S({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),fb(a.current,m),u.current=requestAnimationFrame(()=>f(p.current,g.current))}}),[p,g,f]),d.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),h.createElement(db,{ref:p})}),ia=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),hb=d.forwardRef(function({initialValue:e},t){const[n,r]=d.useState(ia(e));return d.useImperativeHandle(t,()=>({frame:o=>r(ia(o))}),[]),h.createElement("div",null,n)});function sa(e){return typeof e=="function"?e():e.current}function gb({label:e,objectOrFn:t,settings:n}){const r=d.useRef(),o=d.useRef(sa(t));return d.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(sa(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),h.createElement(tt,{input:!0},h.createElement(ot,{align:"top"},e),n.graph?h.createElement(pb,{ref:r,initialValue:o.current}):h.createElement(hb,{ref:r,initialValue:o.current}))}const mb=["type","label","key"],bb={[nt.BUTTON]:sb,[nt.BUTTON_GROUP]:ub,[nt.MONITOR]:gb},yb=h.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:a}]=gg(e);if(!t)return null;const{type:c,label:l,key:u}=t,f=ae(t,mb);if(c in nt){const p=bb[c];return h.createElement(p,ve({label:l,path:e},f))}return c in Bt?h.createElement(ob,ve({key:i+e,type:c,label:l,storeId:i,path:e,valueKey:u,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:a},f)):(Eh(be.UNSUPPORTED_INPUT,c,e),null)});function vb({toggle:e,toggled:t,name:n}){return h.createElement(tg,{onClick:()=>e()},h.createElement(yi,{toggled:t}),h.createElement("div",null,n))}const xb=({name:e,path:t,tree:n})=>{const r=Wn(),o=Si(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[a,c]=d.useState(!i),l=d.useRef(null),u=yt("colors","folderWidgetColor"),f=yt("colors","folderTextColor");return d.useLayoutEffect(()=>{l.current.style.setProperty("--leva-colors-folderWidgetColor",s||u),l.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,u,f]),h.createElement(br,{ref:l},h.createElement(vb,{name:e,toggled:a,toggle:()=>c(p=>!p)}),h.createElement(ll,{parent:o,tree:n,toggled:a}))},ll=h.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:a}=im(i),c=Wn(),l=([f,p])=>{var g;return(oa(p)?(g=c.getInput(p.path))===null||g===void 0?void 0:g.order:c.getFolderSettings(Si(r,f)).order)||0},u=Object.entries(o).sort((f,p)=>l(f)-l(p));return h.createElement(Oo,{ref:s,isRoot:e,fill:t,flat:n},h.createElement(Ec,{ref:a,isRoot:e,toggled:i},u.map(([f,p])=>oa(p)?h.createElement(yb,{key:p.path,valueKey:p.valueKey,path:p.path}):h.createElement(xb,{key:f,name:f,path:r,tree:p}))))}),wb=q("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${Cc}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),ul=40,Er=q("i",{$flexCenter:"",width:ul,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),Eb=q("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),$b=q("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Er}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),Cb=q("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),_b=q("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:ul}}}}),Sb=h.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=d.useState(""),i=d.useMemo(()=>uc(e,250),[e]),s=()=>{e(""),o("")},a=c=>{const l=c.currentTarget.value;t(!0),o(l)};return d.useEffect(()=>{i(r)},[r,i]),h.createElement(h.Fragment,null,h.createElement(Cb,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),h.createElement(Er,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function Tb({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:a,filterEnabled:c,from:l}){const[u,f]=d.useState(!1),p=d.useRef(null);d.useEffect(()=>{var m,b;u?(m=p.current)===null||m===void 0||m.focus():(b=p.current)===null||b===void 0||b.blur()},[u]);const g=Hn(({offset:[m,b],first:w,last:v})=>{t({x:m,y:b}),w&&n({x:m,y:b}),v&&r({x:m,y:b})},{filterTaps:!0,from:({offset:[m,b]})=>[(l==null?void 0:l.x)||m,(l==null?void 0:l.y)||b]});return d.useEffect(()=>{const m=b=>{b.key==="L"&&b.shiftKey&&b.metaKey&&f(w=>!w)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),h.createElement(h.Fragment,null,h.createElement(Eb,{mode:a?"drag":void 0},h.createElement(Er,{active:!i,onClick:()=>o()},h.createElement(yi,{toggled:i,width:12,height:8})),h.createElement(_b,ve({},a?g():{},{drag:a,filterEnabled:c}),s===void 0&&a?h.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},h.createElement("circle",{cx:"2",cy:"2",r:"2"}),h.createElement("circle",{cx:"14",cy:"2",r:"2"}),h.createElement("circle",{cx:"26",cy:"2",r:"2"}),h.createElement("circle",{cx:"2",cy:"12",r:"2"}),h.createElement("circle",{cx:"14",cy:"12",r:"2"}),h.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),c&&h.createElement(Er,{active:u,onClick:()=>f(m=>!m)},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},h.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),h.createElement($b,{toggled:u},h.createElement(Sb,{ref:p,setFilter:e,toggle:o})))}const kb=["store","hidden","theme","collapsed"];function Rb(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=ae(e,kb);const s=tl(()=>qh(r),[r]),[a,c]=d.useState(!o),l=typeof o=="object"?!o.collapsed:a,u=d.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:c,[o]);return!t||n?null:h.createElement(gi.Provider,{value:s},h.createElement(Ob,ve({store:t},i,{toggled:l,setToggle:u,rootClass:s.className})))}const Ob=h.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:c,setToggle:l})=>{var u,f;const p=sm(e),[g,m]=d.useState(""),b=d.useMemo(()=>nb(p,g),[p,g]),[w,v]=Tc(),y=o||p.length>0,$=typeof s=="object"&&s.title||void 0,T=typeof s=="object"&&(u=s.drag)!==null&&u!==void 0?u:!0,C=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,E=typeof s=="object"&&s.position||void 0,S=typeof s=="object"&&s.onDrag||void 0,k=typeof s=="object"&&s.onDragStart||void 0,F=typeof s=="object"&&s.onDragEnd||void 0;return h.useEffect(()=>{v({x:E==null?void 0:E.x,y:E==null?void 0:E.y})},[E,v]),Yh(),h.createElement(yc.Provider,{value:{hideCopyButton:a}},h.createElement(wb,{ref:w,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:y?"block":"none"}},s&&h.createElement(Tb,{onDrag:D=>{v(D),S==null||S(D)},onDragStart:D=>k==null?void 0:k(D),onDragEnd:D=>F==null?void 0:F(D),setFilter:m,toggle:D=>l(j=>D??!j),toggled:c,title:$,drag:T,filterEnabled:C,from:E}),y&&h.createElement(bc.Provider,{value:e},h.createElement(ll,{isRoot:!0,fill:n,flat:r,tree:b,toggled:c}))))}),Pb=["isRoot"];let $r=!1,jt=null;function dl(e){let{isRoot:t=!1}=e,n=ae(e,Pb);return d.useEffect(()=>($r=!0,!t&&jt&&(jt.remove(),jt=null),()=>{t||($r=!1)}),[t]),h.createElement(Rb,ve({store:al},n))}function Ab(e){d.useEffect(()=>{e&&!$r&&(jt||(jt=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(jt),Nh(h.createElement(dl,{isRoot:!0}),jt))),$r=!0)},[e])}function Ib(e,t,n,r,o){let i,s,a,c,l;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?l=n:n&&("store"in n?(c=n,l=r):(a=n,Array.isArray(r)?l=r:(c=r,l=o)))):(i=e,Array.isArray(t)?l=t:(c=t,l=n)),{schema:i,folderName:s,folderSettings:a,hookSettings:c,deps:l||[]}}function zv(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:a,hookSettings:c,deps:l}=Ib(e,t,n,r,o),u=typeof s=="function",f=d.useRef(!1),p=d.useRef(!0),g=tl(()=>{f.current=!0;const j=typeof s=="function"?s():s;return i?{[i]:tb(j,a)}:j},l),m=!(c!=null&&c.store);Ab(m);const[b]=d.useState(()=>(c==null?void 0:c.store)||al),[w,v]=d.useMemo(()=>b.getDataFromSchema(g),[b,g]),[y,$,T,C,E]=d.useMemo(()=>{const j=[],A=[],z={},L={},N={};return Object.values(v).forEach(({path:V,onChange:K,onEditStart:Y,onEditEnd:ee,transient:ce})=>{j.push(V),K?(z[V]=K,ce||A.push(V)):A.push(V),Y&&(L[V]=Y),ee&&(N[V]=ee)}),[j,A,z,L,N]},[v]),S=d.useMemo(()=>b.orderPaths(y),[y,b]),k=am(b,$,w),F=d.useCallback(j=>{const A=Object.entries(j).reduce((z,[L,N])=>Object.assign(z,{[v[L].path]:N}),{});b.set(A,!1)},[b,v]),D=d.useCallback(j=>b.get(v[j].path),[b,v]);return d.useEffect(()=>{const j=!p.current&&f.current;return b.addData(w,j),p.current=!1,f.current=!1,()=>b.disposePaths(S)},[b,S,w]),d.useEffect(()=>{const j=[];return Object.entries(T).forEach(([A,z])=>{z(b.get(A),A,X({initial:!0,get:b.get},b.getInput(A)));const L=b.useStore.subscribe(N=>{const V=N.data[A];return[V.disabled?void 0:V.value,V]},([N,V])=>z(N,A,X({initial:!1,get:b.get},V)),{equalityFn:Nn});j.push(L)}),()=>j.forEach(A=>A())},[b,T]),d.useEffect(()=>{const j=[];return Object.entries(C).forEach(([A,z])=>j.push(b.subscribeToEditStart(A,z))),Object.entries(E).forEach(([A,z])=>j.push(b.subscribeToEditEnd(A,z))),()=>j.forEach(A=>A())},[C,E,b]),u?[k,F,D]:k}Ct(rt.SELECT,Ag);Ct(rt.IMAGE,Nm);Ct(rt.NUMBER,Eg);Ct(rt.COLOR,ym);Ct(rt.STRING,Vg);Ct(rt.BOOLEAN,Yg);Ct(rt.INTERVAL,qm);Ct(rt.VECTOR3D,xm);Ct(rt.VECTOR2D,km);var Gn=e=>e.type==="checkbox",nn=e=>e instanceof Date,De=e=>e==null;const fl=e=>typeof e=="object";var we=e=>!De(e)&&!Array.isArray(e)&&fl(e)&&!nn(e),pl=e=>we(e)&&e.target?Gn(e.target)?e.target.checked:e.target.value:e,Db=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,hl=(e,t)=>e.has(Db(t)),Mb=e=>{const t=e.constructor&&e.constructor.prototype;return we(t)&&t.hasOwnProperty("isPrototypeOf")},Ti=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Se(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Ti&&(e instanceof Blob||e instanceof FileList))&&(n||we(e)))if(t=n?[]:{},!n&&!Mb(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Se(e[r]));else return e;return t}var yn=e=>Array.isArray(e)?e.filter(Boolean):[],pe=e=>e===void 0,B=(e,t,n)=>{if(!t||!we(e))return n;const r=yn(t.split(/[,[\].]+?/)).reduce((o,i)=>De(o)?o:o[i],e);return pe(r)||r===e?pe(e[t])?n:e[t]:r},Ze=e=>typeof e=="boolean";const Cr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Qe={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},gt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},gl=h.createContext(null),Wr=()=>h.useContext(gl),jb=e=>{const{children:t,...n}=e;return h.createElement(gl.Provider,{value:n},t)};var ml=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Qe.all&&(t._proxyFormState[s]=!r||Qe.all),n&&(n[s]=!0),e[s]}});return o},Be=e=>we(e)&&!Object.keys(e).length,bl=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Be(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||Qe.all))},Ue=e=>Array.isArray(e)?e:[e],yl=(e,t,n)=>!e||!t||e===t||Ue(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Hr(e){const t=h.useRef(e);t.current=e,h.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Lb(e){const t=Wr(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,a]=h.useState(n._formState),c=h.useRef(!0),l=h.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=h.useRef(o);return u.current=o,Hr({disabled:r,next:f=>c.current&&yl(u.current,f.name,i)&&bl(f,l.current,n._updateFormState)&&a({...n._formState,...f}),subject:n._subjects.state}),h.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),ml(s,n,l.current,!1)}var ct=e=>typeof e=="string",vl=(e,t,n,r,o)=>ct(e)?(r&&t.watch.add(e),B(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),B(n,i))):(r&&(t.watchAll=!0),n);function Fb(e){const t=Wr(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s}=e||{},a=h.useRef(r);a.current=r,Hr({disabled:i,subject:n._subjects.values,next:u=>{yl(a.current,u.name,s)&&l(Se(vl(a.current,n._names,u.values||n._formValues,!1,o)))}});const[c,l]=h.useState(n._getWatch(r,o));return h.useEffect(()=>n._removeUnmounted()),c}var ki=e=>/^\w*$/.test(e),xl=e=>yn(e.replace(/["|']|\]/g,"").split(/\.|\[/)),le=(e,t,n)=>{let r=-1;const o=ki(t)?[t]:xl(t),i=o.length,s=i-1;for(;++r{const u=o._options.shouldUnregister||i,f=(p,g)=>{const m=B(o._fields,p);m&&(m._f.mount=g)};if(f(n,!0),u){const p=Se(B(o._options.defaultValues,n));le(o._defaultValues,n,p),pe(B(o._formValues,n))&&le(o._formValues,n,p)}return()=>{(s?u&&!o._state.action:u)?o.unregister(n):f(n,!1)}},[n,o,s,i]),h.useEffect(()=>{B(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:B(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:a,...Ze(r)||Ze(c.disabled)?{disabled:c.disabled||r}:{},onChange:h.useCallback(u=>l.current.onChange({target:{value:pl(u),name:n},type:Cr.CHANGE}),[n]),onBlur:h.useCallback(()=>l.current.onBlur({target:{value:B(o._formValues,n),name:n},type:Cr.BLUR}),[n,o]),ref:u=>{const f=B(o._fields,n);f&&u&&(f._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:p=>u.setCustomValidity(p),reportValidity:()=>u.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!B(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!B(c.touchedFields,n)},error:{enumerable:!0,get:()=>B(c.errors,n)}})}}const Nv=e=>e.render(zb(e));var Nb=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},St=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},oo=(e,t,n={})=>n.shouldFocus||pe(n.shouldFocus)?n.focusName||`${e}.${pe(n.focusIndex)?t:n.focusIndex}.`:"",Uo=e=>({isOnSubmit:!e||e===Qe.onSubmit,isOnBlur:e===Qe.onBlur,isOnChange:e===Qe.onChange,isOnAll:e===Qe.all,isOnTouch:e===Qe.onTouched}),Ko=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const sn=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=B(e,o);if(i){const{_f:s,...a}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;sn(a,t)}else we(a)&&sn(a,t)}}};var wl=(e,t,n)=>{const r=yn(B(e,n));return le(r,"root",t[n]),le(e,n,r),e},Ri=e=>e.type==="file",kt=e=>typeof e=="function",_r=e=>{if(!Ti)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ar=e=>ct(e),Oi=e=>e.type==="radio",Sr=e=>e instanceof RegExp;const aa={value:!1,isValid:!1},ca={value:!0,isValid:!0};var El=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!pe(e[0].attributes.value)?pe(e[0].value)||e[0].value===""?ca:{value:e[0].value,isValid:!0}:ca:aa}return aa};const la={isValid:!1,value:null};var $l=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,la):la;function ua(e,t,n="validate"){if(ar(e)||Array.isArray(e)&&e.every(ar)||Ze(e)&&!e)return{type:n,message:ar(e)?e:"",ref:t}}var Jt=e=>we(e)&&!Sr(e)?e:{value:e,message:""},Go=async(e,t,n,r,o)=>{const{ref:i,refs:s,required:a,maxLength:c,minLength:l,min:u,max:f,pattern:p,validate:g,name:m,valueAsNumber:b,mount:w,disabled:v}=e._f,y=B(t,m);if(!w||v)return{};const $=s?s[0]:i,T=A=>{r&&$.reportValidity&&($.setCustomValidity(Ze(A)?"":A||""),$.reportValidity())},C={},E=Oi(i),S=Gn(i),k=E||S,F=(b||Ri(i))&&pe(i.value)&&pe(y)||_r(i)&&i.value===""||y===""||Array.isArray(y)&&!y.length,D=Nb.bind(null,m,n,C),j=(A,z,L,N=gt.maxLength,V=gt.minLength)=>{const K=A?z:L;C[m]={type:A?N:V,message:K,ref:i,...D(A?N:V,K)}};if(o?!Array.isArray(y)||!y.length:a&&(!k&&(F||De(y))||Ze(y)&&!y||S&&!El(s).isValid||E&&!$l(s).isValid)){const{value:A,message:z}=ar(a)?{value:!!a,message:a}:Jt(a);if(A&&(C[m]={type:gt.required,message:z,ref:$,...D(gt.required,z)},!n))return T(z),C}if(!F&&(!De(u)||!De(f))){let A,z;const L=Jt(f),N=Jt(u);if(!De(y)&&!isNaN(y)){const V=i.valueAsNumber||y&&+y;De(L.value)||(A=V>L.value),De(N.value)||(z=Vnew Date(new Date().toDateString()+" "+ce),Y=i.type=="time",ee=i.type=="week";ct(L.value)&&y&&(A=Y?K(y)>K(L.value):ee?y>L.value:V>new Date(L.value)),ct(N.value)&&y&&(z=Y?K(y)+A.value,N=!De(z.value)&&y.length<+z.value;if((L||N)&&(j(L,A.message,z.message),!n))return T(C[m].message),C}if(p&&!F&&ct(y)){const{value:A,message:z}=Jt(p);if(Sr(A)&&!y.match(A)&&(C[m]={type:gt.pattern,message:z,ref:i,...D(gt.pattern,z)},!n))return T(z),C}if(g){if(kt(g)){const A=await g(y,t),z=ua(A,$);if(z&&(C[m]={...z,...D(gt.validate,z.message)},!n))return T(z.message),C}else if(we(g)){let A={};for(const z in g){if(!Be(A)&&!n)break;const L=ua(await g[z](y,t),$,z);L&&(A={...L,...D(z,L.message)},T(L.message),n&&(C[m]=A))}if(!Be(A)&&(C[m]={ref:$,...A},!n))return C}}return T(!0),C},io=(e,t)=>[...e,...Ue(t)],so=e=>Array.isArray(e)?e.map(()=>{}):void 0;function ao(e,t,n){return[...e.slice(0,t),...Ue(n),...e.slice(t)]}var co=(e,t,n)=>Array.isArray(e)?(pe(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],lo=(e,t)=>[...Ue(t),...Ue(e)];function Vb(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return yn(r).length?r:[]}var uo=(e,t)=>pe(t)?[]:Vb(e,Ue(t).sort((n,r)=>n-r)),fo=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function Bb(e,t){const n=t.slice(0,-1).length;let r=0;for(;r(e[t]=n,e);function Vv(e){const t=Wr(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i}=e,[s,a]=h.useState(n._getFieldArray(r)),c=h.useRef(n._getFieldArray(r).map(St)),l=h.useRef(s),u=h.useRef(r),f=h.useRef(!1);u.current=r,l.current=s,n._names.array.add(r),e.rules&&n.register(r,e.rules),Hr({next:({values:C,name:E})=>{if(E===u.current||!E){const S=B(C,u.current);Array.isArray(S)&&(a(S),c.current=S.map(St))}},subject:n._subjects.array});const p=h.useCallback(C=>{f.current=!0,n._updateFieldArray(r,C)},[n,r]),g=(C,E)=>{const S=Ue(Se(C)),k=io(n._getFieldArray(r),S);n._names.focus=oo(r,k.length-1,E),c.current=io(c.current,S.map(St)),p(k),a(k),n._updateFieldArray(r,k,io,{argA:so(C)})},m=(C,E)=>{const S=Ue(Se(C)),k=lo(n._getFieldArray(r),S);n._names.focus=oo(r,0,E),c.current=lo(c.current,S.map(St)),p(k),a(k),n._updateFieldArray(r,k,lo,{argA:so(C)})},b=C=>{const E=uo(n._getFieldArray(r),C);c.current=uo(c.current,C),p(E),a(E),n._updateFieldArray(r,E,uo,{argA:C})},w=(C,E,S)=>{const k=Ue(Se(E)),F=ao(n._getFieldArray(r),C,k);n._names.focus=oo(r,C,S),c.current=ao(c.current,C,k.map(St)),p(F),a(F),n._updateFieldArray(r,F,ao,{argA:C,argB:so(E)})},v=(C,E)=>{const S=n._getFieldArray(r);fo(S,C,E),fo(c.current,C,E),p(S),a(S),n._updateFieldArray(r,S,fo,{argA:C,argB:E},!1)},y=(C,E)=>{const S=n._getFieldArray(r);co(S,C,E),co(c.current,C,E),p(S),a(S),n._updateFieldArray(r,S,co,{argA:C,argB:E},!1)},$=(C,E)=>{const S=Se(E),k=da(n._getFieldArray(r),C,S);c.current=[...k].map((F,D)=>!F||D===C?St():c.current[D]),p(k),a([...k]),n._updateFieldArray(r,k,da,{argA:C,argB:S},!0,!1)},T=C=>{const E=Ue(Se(C));c.current=E.map(St),p([...E]),a([...E]),n._updateFieldArray(r,[...E],S=>S,{},!0,!1)};return h.useEffect(()=>{if(n._state.action=!1,Ko(r,n._names)&&n._subjects.state.next({...n._formState}),f.current&&(!Uo(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then(C=>{const E=B(C.errors,r),S=B(n._formState.errors,r);(S?!E&&S.type||E&&(S.type!==E.type||S.message!==E.message):E&&E.type)&&(E?le(n._formState.errors,r,E):Ee(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const C=B(n._fields,r);C&&C._f&&Go(C,n._formValues,n._options.criteriaMode===Qe.all,n._options.shouldUseNativeValidation,!0).then(E=>!Be(E)&&n._subjects.state.next({errors:wl(n._formState.errors,E,r)}))}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&sn(n._fields,(C,E)=>{if(n._names.focus&&E.startsWith(n._names.focus)&&C.focus)return C.focus(),1}),n._names.focus="",n._updateValid(),f.current=!1},[s,r,n]),h.useEffect(()=>(!B(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||i)&&n.unregister(r)}),[r,n,o,i]),{swap:h.useCallback(v,[p,r,n]),move:h.useCallback(y,[p,r,n]),prepend:h.useCallback(m,[p,r,n]),append:h.useCallback(g,[p,r,n]),remove:h.useCallback(b,[p,r,n]),insert:h.useCallback(w,[p,r,n]),update:h.useCallback($,[p,r,n]),replace:h.useCallback(T,[p,r,n]),fields:h.useMemo(()=>s.map((C,E)=>({...C,[o]:c.current[E]||St()})),[s,o])}}var po=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Tr=e=>De(e)||!fl(e);function Lt(e,t){if(Tr(e)||Tr(t))return e===t;if(nn(e)&&nn(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const i=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const s=t[o];if(nn(i)&&nn(s)||we(i)&&we(s)||Array.isArray(i)&&Array.isArray(s)?!Lt(i,s):i!==s)return!1}}return!0}var Cl=e=>e.type==="select-multiple",Hb=e=>Oi(e)||Gn(e),ho=e=>_r(e)&&e.isConnected,_l=e=>{for(const t in e)if(kt(e[t]))return!0;return!1};function kr(e,t={}){const n=Array.isArray(e);if(we(e)||n)for(const r in e)Array.isArray(e[r])||we(e[r])&&!_l(e[r])?(t[r]=Array.isArray(e[r])?[]:{},kr(e[r],t[r])):De(e[r])||(t[r]=!0);return t}function Sl(e,t,n){const r=Array.isArray(e);if(we(e)||r)for(const o in e)Array.isArray(e[o])||we(e[o])&&!_l(e[o])?pe(t)||Tr(n[o])?n[o]=Array.isArray(e[o])?kr(e[o],[]):{...kr(e[o])}:Sl(e[o],De(t)?{}:t[o],n[o]):n[o]=!Lt(e[o],t[o]);return n}var go=(e,t)=>Sl(e,t,kr(t)),Tl=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>pe(e)?e:t?e===""?NaN:e&&+e:n&&ct(e)?new Date(e):r?r(e):e;function mo(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Ri(t)?t.files:Oi(t)?$l(e.refs).value:Cl(t)?[...t.selectedOptions].map(({value:n})=>n):Gn(t)?El(e.refs).value:Tl(pe(t.value)?e.ref.value:t.value,e)}var Ub=(e,t,n,r)=>{const o={};for(const i of e){const s=B(t,i);s&&le(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Cn=e=>pe(e)?e:Sr(e)?e.source:we(e)?Sr(e.value)?e.value.source:e.value:e,Kb=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function fa(e,t,n){const r=B(e,n);if(r||ki(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=B(t,i),a=B(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:n}}var Gb=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Yb=(e,t)=>!yn(B(e,t)).length&&Ee(e,t);const qb={mode:Qe.onSubmit,reValidateMode:Qe.onChange,shouldFocusError:!0};function Xb(e={},t){let n={...qb,...e},r={submitCount:0,isDirty:!1,isLoading:kt(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},o={},i=we(n.defaultValues)||we(n.values)?Se(n.defaultValues||n.values)||{}:{},s=n.shouldUnregister?{}:Se(i),a={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:po(),array:po(),state:po()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Uo(n.mode),b=Uo(n.reValidateMode),w=n.criteriaMode===Qe.all,v=x=>R=>{clearTimeout(u),u=setTimeout(x,R)},y=async x=>{if(f.isValid||x){const R=n.resolver?Be((await D()).errors):await A(o,!0);R!==r.isValid&&p.state.next({isValid:R})}},$=x=>f.isValidating&&p.state.next({isValidating:x}),T=(x,R=[],I,O,P=!0,M=!0)=>{if(O&&I){if(a.action=!0,M&&Array.isArray(B(o,x))){const H=I(B(o,x),O.argA,O.argB);P&&le(o,x,H)}if(M&&Array.isArray(B(r.errors,x))){const H=I(B(r.errors,x),O.argA,O.argB);P&&le(r.errors,x,H),Yb(r.errors,x)}if(f.touchedFields&&M&&Array.isArray(B(r.touchedFields,x))){const H=I(B(r.touchedFields,x),O.argA,O.argB);P&&le(r.touchedFields,x,H)}f.dirtyFields&&(r.dirtyFields=go(i,s)),p.state.next({name:x,isDirty:L(x,R),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else le(s,x,R)},C=(x,R)=>{le(r.errors,x,R),p.state.next({errors:r.errors})},E=x=>{r.errors=x,p.state.next({errors:r.errors,isValid:!1})},S=(x,R,I,O)=>{const P=B(o,x);if(P){const M=B(s,x,pe(I)?B(i,x):I);pe(M)||O&&O.defaultChecked||R?le(s,x,R?M:mo(P._f)):K(x,M),a.mount&&y()}},k=(x,R,I,O,P)=>{let M=!1,H=!1;const Z={name:x},de=!!(B(o,x)&&B(o,x)._f.disabled);if(!I||O){f.isDirty&&(H=r.isDirty,r.isDirty=Z.isDirty=L(),M=H!==Z.isDirty);const G=de||Lt(B(i,x),R);H=!!(!de&&B(r.dirtyFields,x)),G||de?Ee(r.dirtyFields,x):le(r.dirtyFields,x,!0),Z.dirtyFields=r.dirtyFields,M=M||f.dirtyFields&&H!==!G}if(I){const G=B(r.touchedFields,x);G||(le(r.touchedFields,x,I),Z.touchedFields=r.touchedFields,M=M||f.touchedFields&&G!==I)}return M&&P&&p.state.next(Z),M?Z:{}},F=(x,R,I,O)=>{const P=B(r.errors,x),M=f.isValid&&Ze(R)&&r.isValid!==R;if(e.delayError&&I?(l=v(()=>C(x,I)),l(e.delayError)):(clearTimeout(u),l=null,I?le(r.errors,x,I):Ee(r.errors,x)),(I?!Lt(P,I):P)||!Be(O)||M){const H={...O,...M&&Ze(R)?{isValid:R}:{},errors:r.errors,name:x};r={...r,...H},p.state.next(H)}$(!1)},D=async x=>n.resolver(s,n.context,Ub(x||c.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),j=async x=>{const{errors:R}=await D(x);if(x)for(const I of x){const O=B(R,I);O?le(r.errors,I,O):Ee(r.errors,I)}else r.errors=R;return R},A=async(x,R,I={valid:!0})=>{for(const O in x){const P=x[O];if(P){const{_f:M,...H}=P;if(M){const Z=c.array.has(M.name),de=await Go(P,s,w,n.shouldUseNativeValidation&&!R,Z);if(de[M.name]&&(I.valid=!1,R))break;!R&&(B(de,M.name)?Z?wl(r.errors,de,M.name):le(r.errors,M.name,de[M.name]):Ee(r.errors,M.name))}H&&await A(H,R,I)}}return I.valid},z=()=>{for(const x of c.unMount){const R=B(o,x);R&&(R._f.refs?R._f.refs.every(I=>!ho(I)):!ho(R._f.ref))&&_e(x)}c.unMount=new Set},L=(x,R)=>(x&&R&&le(s,x,R),!Lt(ne(),i)),N=(x,R,I)=>vl(x,c,{...a.mount?s:pe(R)?i:ct(x)?{[x]:R}:R},I,R),V=x=>yn(B(a.mount?s:i,x,e.shouldUnregister?B(i,x,[]):[])),K=(x,R,I={})=>{const O=B(o,x);let P=R;if(O){const M=O._f;M&&(!M.disabled&&le(s,x,Tl(R,M)),P=_r(M.ref)&&De(R)?"":R,Cl(M.ref)?[...M.ref.options].forEach(H=>H.selected=P.includes(H.value)):M.refs?Gn(M.ref)?M.refs.length>1?M.refs.forEach(H=>(!H.defaultChecked||!H.disabled)&&(H.checked=Array.isArray(P)?!!P.find(Z=>Z===H.value):P===H.value)):M.refs[0]&&(M.refs[0].checked=!!P):M.refs.forEach(H=>H.checked=H.value===P):Ri(M.ref)?M.ref.value="":(M.ref.value=P,M.ref.type||p.values.next({name:x,values:{...s}})))}(I.shouldDirty||I.shouldTouch)&&k(x,P,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&J(x)},Y=(x,R,I)=>{for(const O in R){const P=R[O],M=`${x}.${O}`,H=B(o,M);(c.array.has(x)||!Tr(P)||H&&!H._f)&&!nn(P)?Y(M,P,I):K(M,P,I)}},ee=(x,R,I={})=>{const O=B(o,x),P=c.array.has(x),M=Se(R);le(s,x,M),P?(p.array.next({name:x,values:{...s}}),(f.isDirty||f.dirtyFields)&&I.shouldDirty&&p.state.next({name:x,dirtyFields:go(i,s),isDirty:L(x,M)})):O&&!O._f&&!De(M)?Y(x,M,I):K(x,M,I),Ko(x,c)&&p.state.next({...r}),p.values.next({name:x,values:{...s}}),!a.mount&&t()},ce=async x=>{const R=x.target;let I=R.name,O=!0;const P=B(o,I),M=()=>R.type?mo(P._f):pl(x),H=Z=>{O=Number.isNaN(Z)||Z===B(s,I,Z)};if(P){let Z,de;const G=M(),Ve=x.type===Cr.BLUR||x.type===Cr.FOCUS_OUT,Dt=!Kb(P._f)&&!n.resolver&&!B(r.errors,I)&&!P._f.deps||Gb(Ve,B(r.touchedFields,I),r.isSubmitted,b,m),st=Ko(I,c,Ve);le(s,I,G),Ve?(P._f.onBlur&&P._f.onBlur(x),l&&l(0)):P._f.onChange&&P._f.onChange(x);const pt=k(I,G,Ve,!1),vn=!Be(pt)||st;if(!Ve&&p.values.next({name:I,type:x.type,values:{...s}}),Dt)return f.isValid&&y(),vn&&p.state.next({name:I,...st?{}:pt});if(!Ve&&st&&p.state.next({...r}),$(!0),n.resolver){const{errors:Yt}=await D([I]);if(H(G),O){const xn=fa(r.errors,o,I),qt=fa(Yt,o,xn.name||I);Z=qt.error,I=qt.name,de=Be(Yt)}}else Z=(await Go(P,s,w,n.shouldUseNativeValidation))[I],H(G),O&&(Z?de=!1:f.isValid&&(de=await A(o,!0)));O&&(P._f.deps&&J(P._f.deps),F(I,de,Z,pt))}},W=(x,R)=>{if(B(r.errors,R)&&x.focus)return x.focus(),1},J=async(x,R={})=>{let I,O;const P=Ue(x);if($(!0),n.resolver){const M=await j(pe(x)?x:P);I=Be(M),O=x?!P.some(H=>B(M,H)):I}else x?(O=(await Promise.all(P.map(async M=>{const H=B(o,M);return await A(H&&H._f?{[M]:H}:H)}))).every(Boolean),!(!O&&!r.isValid)&&y()):O=I=await A(o);return p.state.next({...!ct(x)||f.isValid&&I!==r.isValid?{}:{name:x},...n.resolver||!x?{isValid:I}:{},errors:r.errors,isValidating:!1}),R.shouldFocus&&!O&&sn(o,W,x?P:c.mount),O},ne=x=>{const R={...i,...a.mount?s:{}};return pe(x)?R:ct(x)?B(R,x):x.map(I=>B(R,I))},re=(x,R)=>({invalid:!!B((R||r).errors,x),isDirty:!!B((R||r).dirtyFields,x),isTouched:!!B((R||r).touchedFields,x),error:B((R||r).errors,x)}),ie=x=>{x&&Ue(x).forEach(R=>Ee(r.errors,R)),p.state.next({errors:x?r.errors:{}})},ue=(x,R,I)=>{const O=(B(o,x,{_f:{}})._f||{}).ref;le(r.errors,x,{...R,ref:O}),p.state.next({name:x,errors:r.errors,isValid:!1}),I&&I.shouldFocus&&O&&O.focus&&O.focus()},Ce=(x,R)=>kt(x)?p.values.subscribe({next:I=>x(N(void 0,R),I)}):N(x,R,!0),_e=(x,R={})=>{for(const I of x?Ue(x):c.mount)c.mount.delete(I),c.array.delete(I),R.keepValue||(Ee(o,I),Ee(s,I)),!R.keepError&&Ee(r.errors,I),!R.keepDirty&&Ee(r.dirtyFields,I),!R.keepTouched&&Ee(r.touchedFields,I),!n.shouldUnregister&&!R.keepDefaultValue&&Ee(i,I);p.values.next({values:{...s}}),p.state.next({...r,...R.keepDirty?{isDirty:L()}:{}}),!R.keepIsValid&&y()},xe=({disabled:x,name:R,field:I,fields:O,value:P})=>{if(Ze(x)){const M=x?void 0:pe(P)?mo(I?I._f:B(O,R)._f):P;le(s,R,M),k(R,M,!1,!1,!0)}},it=(x,R={})=>{let I=B(o,x);const O=Ze(R.disabled);return le(o,x,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:x}},name:x,mount:!0,...R}}),c.mount.add(x),I?xe({field:I,disabled:R.disabled,name:x,value:R.value}):S(x,!0,R.value),{...O?{disabled:R.disabled}:{},...n.progressive?{required:!!R.required,min:Cn(R.min),max:Cn(R.max),minLength:Cn(R.minLength),maxLength:Cn(R.maxLength),pattern:Cn(R.pattern)}:{},name:x,onChange:ce,onBlur:ce,ref:P=>{if(P){it(x,R),I=B(o,x);const M=pe(P.value)&&P.querySelectorAll&&P.querySelectorAll("input,select,textarea")[0]||P,H=Hb(M),Z=I._f.refs||[];if(H?Z.find(de=>de===M):M===I._f.ref)return;le(o,x,{_f:{...I._f,...H?{refs:[...Z.filter(ho),M,...Array.isArray(B(i,x))?[{}]:[]],ref:{type:M.type,name:x}}:{ref:M}}}),S(x,!1,void 0,M)}else I=B(o,x,{}),I._f&&(I._f.mount=!1),(n.shouldUnregister||R.shouldUnregister)&&!(hl(c.array,x)&&a.action)&&c.unMount.add(x)}}},dt=()=>n.shouldFocusError&&sn(o,W,c.mount),_t=x=>{Ze(x)&&(p.state.next({disabled:x}),sn(o,(R,I)=>{let O=x;const P=B(o,I);P&&Ze(P._f.disabled)&&(O||(O=P._f.disabled)),R.disabled=O},0,!1))},Ne=(x,R)=>async I=>{I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let O=Se(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:P,values:M}=await D();r.errors=P,O=M}else await A(o);Ee(r.errors,"root"),Be(r.errors)?(p.state.next({errors:{}}),await x(O,I)):(R&&await R({...r.errors},I),dt(),setTimeout(dt)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Be(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ft=(x,R={})=>{B(o,x)&&(pe(R.defaultValue)?ee(x,B(i,x)):(ee(x,R.defaultValue),le(i,x,R.defaultValue)),R.keepTouched||Ee(r.touchedFields,x),R.keepDirty||(Ee(r.dirtyFields,x),r.isDirty=R.defaultValue?L(x,B(i,x)):L()),R.keepError||(Ee(r.errors,x),f.isValid&&y()),p.state.next({...r}))},Oe=(x,R={})=>{const I=x?Se(x):i,O=Se(I),P=x&&!Be(x)?O:i;if(R.keepDefaultValues||(i=I),!R.keepValues){if(R.keepDirtyValues||g)for(const M of c.mount)B(r.dirtyFields,M)?le(P,M,B(s,M)):ee(M,B(P,M));else{if(Ti&&pe(x))for(const M of c.mount){const H=B(o,M);if(H&&H._f){const Z=Array.isArray(H._f.refs)?H._f.refs[0]:H._f.ref;if(_r(Z)){const de=Z.closest("form");if(de){de.reset();break}}}}o={}}s=e.shouldUnregister?R.keepDefaultValues?Se(i):{}:Se(P),p.array.next({values:{...P}}),p.values.next({values:{...P}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&t(),a.mount=!f.isValid||!!R.keepIsValid,a.watch=!!e.shouldUnregister,p.state.next({submitCount:R.keepSubmitCount?r.submitCount:0,isDirty:R.keepDirty?r.isDirty:!!(R.keepDefaultValues&&!Lt(x,i)),isSubmitted:R.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:R.keepDirtyValues?r.dirtyFields:R.keepDefaultValues&&x?go(i,x):{},touchedFields:R.keepTouched?r.touchedFields:{},errors:R.keepErrors?r.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ye=(x,R)=>Oe(kt(x)?x(s):x,R);return{control:{register:it,unregister:_e,getFieldState:re,handleSubmit:Ne,setError:ue,_executeSchema:D,_getWatch:N,_getDirty:L,_updateValid:y,_removeUnmounted:z,_updateFieldArray:T,_updateDisabledField:xe,_getFieldArray:V,_reset:Oe,_resetDefaultValues:()=>kt(n.defaultValues)&&n.defaultValues().then(x=>{Ye(x,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:x=>{r={...r,...x}},_disableForm:_t,_subjects:p,_proxyFormState:f,_setErrors:E,get _fields(){return o},get _formValues(){return s},get _state(){return a},set _state(x){a=x},get _defaultValues(){return i},get _names(){return c},set _names(x){c=x},get _formState(){return r},set _formState(x){r=x},get _options(){return n},set _options(x){n={...n,...x}}},trigger:J,register:it,handleSubmit:Ne,watch:Ce,setValue:ee,getValues:ne,reset:Ye,resetField:ft,clearErrors:ie,unregister:_e,setError:ue,setFocus:(x,R={})=>{const I=B(o,x),O=I&&I._f;if(O){const P=O.refs?O.refs[0]:O.ref;P.focus&&(P.focus(),R.shouldSelect&&P.select())}},getFieldState:re}}function Zb(e={}){const t=h.useRef(),n=h.useRef(),[r,o]=h.useState({isDirty:!1,isValidating:!1,isLoading:kt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:kt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Xb(e,()=>o(s=>({...s}))),formState:r});const i=t.current.control;return i._options=e,Hr({subject:i._subjects.state,next:s=>{bl(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),h.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),h.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),h.useEffect(()=>{e.values&&!Lt(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[e.values,i]),h.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),h.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=ml(r,i),t.current}const Qb=Bl` + html { + box-sizing: border-box; + } + *, *:before, *:after { + box-sizing: inherit; + } + html, body, div, span, applet, object, iframe, + h1, h2, h3, h4, h5, h6, p, blockquote, pre, + a, abbr, acronym, address, big, cite, code, + del, dfn, em, img, ins, kbd, q, s, samp, + small, strike, strong, sub, sup, tt, var, + b, u, i, center, + dl, dt, dd, ol, ul, li, + fieldset, form, label, legend, + table, caption, tbody, tfoot, thead, tr, th, td, + article, aside, canvas, details, embed, + figure, figcaption, footer, header, hgroup, + menu, nav, output, ruby, section, summary, + time, mark, audio, video { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + -webkit-tap-highlight-color: transparent; + border: 0; + font-size: 100%; + margin: 0; + padding: 0; + text-rendering: optimizeLegibility; + vertical-align: baseline; + } + a { + cursor: pointer; + text-decoration: none; + } + body { + + &.no-scroll { + overflow: hidden; + } + } + blockquote, q { + quotes: none; + } + blockquote:before, blockquote:after, + q:before, q:after { + content: ''; + content: none; + } + table { + border-collapse: collapse; + border-spacing: 0; + } +`;function Jb(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{const r=e(n);return Jb(t.current,r)?t.current:t.current=r}}const ny=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"bubble_chart",children:[_.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_42)",children:_.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),ry=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"communities",children:[_.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_39)",children:_.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),oy=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"grain",children:[_.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_45)",children:_.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),iy=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"public",children:[_.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_36)",children:_.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})}),sy={split:_.jsx(oy,{}),force:_.jsx(ry,{}),sphere:_.jsx(ny,{}),earth:_.jsx(iy,{})},ay=()=>{const[e,t]=ei(ty(r=>[r.graphStyle,r.setGraphStyle])),n=r=>{t(r)};return _.jsx(cy,{direction:"column",children:Wl.map(r=>_.jsx(oe,{className:Hl("icon",{active:e===r}),onClick:()=>n(r),children:sy[r]},r))})},cy=he(oe).attrs({direction:"row",align:"center",justify:"space-between"})` + padding: 6px 6px 6px 11px; + background: ${te.BG1}; + border-radius: 200px; + .icon { + color: ${te.GRAY6}; + font-size: 20px; + cursor: pointer; + + &:hover { + color: ${te.GRAY3}; + } + + &:active { + color: ${te.white}; + } + + &.active { + color: ${te.white}; + } + } + + .icon + .icon { + margin-left: 20px; + } +`,ly=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"center",children:[_.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),_.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),_.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),_.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),_.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),uy=()=>{const[e,t]=ei(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return _.jsx(dy,{href:"",onClick:()=>t(!e),size:"medium",startIcon:_.jsx(ly,{})})},dy=he(ui)` + && { + padding: 0; + width: 32px; + min-width: auto; + justify-content: center; + align-items: center; + pointer-events: all; + + .MuiButton-startIcon { + margin-left: 0; + filter: brightness(0.65); + } + } +`,kl=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Property 1=press",children:_.jsx("path",{id:"close",d:"M16 17.2833L11.5083 21.775C11.3403 21.943 11.1264 22.0271 10.8667 22.0271C10.6069 22.0271 10.393 21.943 10.225 21.775C10.0569 21.6069 9.9729 21.393 9.9729 21.1333C9.9729 20.8736 10.0569 20.6597 10.225 20.4917L14.7167 16L10.225 11.5083C10.0569 11.3403 9.9729 11.1264 9.9729 10.8667C9.9729 10.6069 10.0569 10.393 10.225 10.225C10.393 10.0569 10.6069 9.9729 10.8667 9.9729C11.1264 9.9729 11.3403 10.0569 11.5083 10.225L16 14.7167L20.4917 10.225C20.6597 10.0569 20.8736 9.9729 21.1333 9.9729C21.393 9.9729 21.6069 10.0569 21.775 10.225C21.943 10.393 22.0271 10.6069 22.0271 10.8667C22.0271 11.1264 21.943 11.3403 21.775 11.5083L17.2833 16L21.775 20.4917C21.943 20.6597 22.0271 20.8736 22.0271 21.1333C22.0271 21.393 21.943 21.6069 21.775 21.775C21.6069 21.943 21.393 22.0271 21.1333 22.0271C20.8736 22.0271 20.6597 21.943 20.4917 21.775L16 17.2833Z",fill:"currentColor"})})}),fy=()=>{const{resetData:e}=Ar(t=>t);return _.jsx(Ul,{content:"Clear Graph",fontSize:"13px",position:"left",children:_.jsx(py,{href:"",onClick:()=>e(),size:"medium",startIcon:_.jsx(kl,{})})})},py=he(ui)` + && { + padding: 0; + width: 32px; + min-width: auto; + justify-content: center; + align-items: center; + pointer-events: all; + + .MuiButton-startIcon { + margin-left: 0; + color: #fff; + filter: brightness(0.65); + } + } +`,hy=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Property 1=Pause Normal",children:_.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),gy=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Play & Pause",children:_.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),my={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},Rl=he.div` + background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${my[t]||"generic"}_placeholder_img.png')`}; + background-size: cover; + background-position: center; + background-repeat: no-repeat; + width: ${({size:e=45})=>e}px; + height: ${({size:e=45})=>e}px; + border-radius: ${({rounded:e})=>e?"50%":"2px"}; +`,_n={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5},by=ti()(ma((e,t)=>({..._n,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:r}=t();r&&e({playingNode:{...r,link:n}})},setPlayingNode:n=>{n||e({..._n});const r=t().playingNode;(r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)&&e({..._n,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:_n.duration,hasError:_n.hasError})}))),yy=()=>{var $,T,C,E;const e=d.useRef(null),[t,n]=d.useState(0),r=ba(),o=ya(),[i,s]=Ir(S=>[S.sidebarIsOpen,S.setSidebarOpen]),[a,c,l,u,f,p]=by(S=>[S.isPlaying,S.setIsPlaying,S.playingTime,S.playingNode,S.miniPlayerIsVisible,S.setMiniPlayerIsVisible]),[g,m]=($=u==null?void 0:u.properties)!=null&&$.timestamp?u.properties.timestamp.split("-").map(S=>nu(S)):[0,0],b=(l-g)/(m-g)*100;d.useEffect(()=>{var F,D;const S=((F=e.current)==null?void 0:F.offsetWidth)||0,k=((D=e.current)==null?void 0:D.scrollWidth)||0;n(k-S)},[]);const w=S=>{p(!1),S.stopPropagation()},v=()=>{o(u),s(!0)},y=i&&(r==null?void 0:r.ref_id)!==(u==null?void 0:u.ref_id)||u&&!i;return f&&u&&y?_.jsxs(vy,{onClick:v,children:[_.jsxs(xy,{children:[_.jsx(Rl,{src:((T=u==null?void 0:u.properties)==null?void 0:T.image_url)||"",type:u.node_type}),_.jsxs(wy,{children:[_.jsxs(Sy,{ref:e,children:[_.jsx(_y,{className:"title",scrollValue:t,children:(C=u==null?void 0:u.properties)==null?void 0:C.episode_title}),_.jsx("div",{className:"subtitle",children:(E=u==null?void 0:u.properties)==null?void 0:E.show_title})]}),_.jsx($y,{"data-testid":"play-pause-button",onClick:S=>{c(!a),S.stopPropagation()},size:"small",children:a?_.jsx(hy,{"data-testid":"pause-icon"}):_.jsx(gy,{"data-testid":"play-icon"})})]}),_.jsx(Ey,{onClick:S=>w(S),children:_.jsx(kl,{})})]}),_.jsx(Cy,{value:b,variant:"determinate"})]}):null},vy=he(oe).attrs({direction:"column",align:"stretch",justify:"space-between"})` + padding: 8px; + background: ${te.BG1}; + border-radius: 6px; + width: 320px; + height: 72px; + margin-top: 16px; + cursor: pointer; + z-index: 0; +`,xy=he(oe).attrs({direction:"row",align:"center",justify:"flex-start"})``,wy=he(oe).attrs({direction:"row",align:"center",justify:"space-between"})` + flex: 1; + color: ${te.white}; + margin-left: 11px; + + .title { + font-size: 13px; + margin-bottom: 2px; + font-weight: 500; + } + + .subtitle { + font-size: 11px; + color: ${te.GRAY6}; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } +`,Ey=he(Ea)` + padding: 8px; + color: ${te.GRAY6}; + z-index: 100000; +`,$y=he(Ea)` + && { + font-size: 36px; + padding: 2px; + margin-left: 8px; + overflow: hidden; + z-index: 100000; + } +`,Cy=he(Kl)` + && { + flex-shrink: 0; + height: 2px; + background-color: ${te.white}; + color: blue; + + .MuiLinearProgress-bar { + background: rgb(65, 90, 127); + } + } +`,_y=he.div` + white-space: nowrap; + overflow: hidden; + width: max-content; + animation: scrollText 12s linear infinite; + + @keyframes scrollText { + 0%, + 15% { + transform: translateX(0); + } + + 60%, + 75% { + transform: translateX(${e=>-e.scrollValue}px); + } + + 100% { + transform: translateX(0); + } + } + color: #fff; +`,Sy=he(oe)` + overflow: hidden; + flex: 1; +`,Ol=()=>{const e=ba(),t=Ar(o=>o.isFetching),n=Ir(o=>o.universeQuestionIsOpen),{isAdmin:r}=va(o=>o);return _.jsxs(Ty,{align:"flex-end",id:"actions-toolbar",children:[_.jsxs(ky,{children:[!t&&!n&&r&&_.jsx(fy,{}),!t&&!n&&_.jsx(uy,{})]}),_.jsx(oe,{align:"center",direction:"row",mt:16,children:!t&&!n&&_.jsx(ay,{})}),_.jsx(yy,{},e==null?void 0:e.ref_id)]})},Ty=he(oe)` + position: absolute; + right: 20px; + bottom: 20px; + pointer-events: all; +`,ky=he.div` + display: flex; + flex-direction: column; + gap: 4px; +`,Ry={schemas:[],links:[]},Oy=ti()(ma((e,t)=>({...Ry,setSchemas:n=>{e({schemas:n.map(r=>({...r}))})},setSchemaLinks:n=>{e({links:n})},getPrimaryColorByType:n=>{const r=t().schemas.find(o=>o.type===n);return r?r.primary_color:void 0},getNodeKeysByType:n=>{const r=t().schemas.find(o=>o.type===n);return r?r.node_key:void 0}}))),Py=({type:e})=>{let t;const[n]=Oy(i=>[i.getPrimaryColorByType]),r=e.toLowerCase(),o=n(e);switch(r){case"video":case"twitter_space":case"podcast":case"clip":t={iconStart:"video_badge.svg",color:o??te.CLIP};break;case"show":t={iconStart:"show_badge.svg",color:o??te.SHOW};break;case"tweet":t={iconStart:"twitter_badge.svg",color:o??te.TWEET};break;case"episode":t={iconStart:"audio_badge.svg",color:o??te.EPISODE};break;case"document":t={iconStart:"notes_badge.svg",color:o??te.TEXT};break;case"organization":t={iconStart:"organization_badge.svg",color:o??te.ORGANIZATION};break;case"person":case"guest":case"host":t={iconStart:"person_badge.svg",color:o??te.PERSON};break;case"event":t={iconStart:"event_badge.svg",color:o??te.EVENT};break;case"topic":t={iconStart:"topic_badge.svg",color:o??te.TOPIC};break;default:t={iconStart:"thing_badge.svg",color:o??te.THING};break}return _.jsx(Ay,{...t,label:e})},Ay=({iconStart:e,color:t,label:n})=>_.jsxs(Iy,{color:t,label:n,children:[_.jsx("img",{alt:n,className:"badge__img",src:e}),_.jsx("div",{className:"badge__label",children:n})]}),Iy=he(oe).attrs({direction:"row"})` + cursor: pointer; + background: ${({color:e})=>e}; + border-radius: 3px; + overflow: hidden; + justify-content: center; + align-items: center; + padding: 0 4px; + gap: 2px; + + .badge__img { + width: 10px; + height: 10px; + object-fit: contain; + } + + .badge__label { + color: ${({label:e})=>e.toLowerCase()==="topic"?te.black:te.white}; + font-family: Barlow; + font-size: 8px; + font-style: normal; + font-weight: 800; + line-height: 14px; + text-transform: uppercase; + line-height: 14px; + letter-spacing: 0.48px; + padding: 0 4px; + } +`,Dy=({twitterHandle:e})=>_.jsx(_.Fragment,{children:_.jsx(oe,{direction:"row",children:_.jsx(oe,{align:"flex-start",pb:12,children:_.jsxs(Ae,{children:["Tweet by @",e]})})})}),My=he(oe)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:te.BG3,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:te.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),jy=he(oe)` + width: 22.5%; +`,Ly=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:r,description:o,label:i,text:s,type:a,name:c,twitter_handle:l,image_url:u,guests:f}=e,p=f&&f.length>0,g=p&&typeof f[0]=="object";let m=u;return t==="guest"&&!u&&(m="person_placeholder2.png"),a==="twitter_space"&&(m="twitter_placeholder.png"),t==="topic"?null:_.jsx(My,{borderRadius:8,px:24,py:16,children:t==="tweet"?_.jsx(Dy,{twitterHandle:l}):_.jsxs(_.Fragment,{children:[_.jsxs(oe,{direction:"row",children:[m&&_.jsx(jy,{}),_.jsx(oe,{align:"flex-start",pb:12,children:_.jsx(Py,{type:t})})]}),_.jsxs(oe,{direction:"row",children:[m&&_.jsx(oe,{pr:12,children:_.jsx(Rl,{src:m,type:"person"})}),_.jsxs("div",{children:[(c||i)&&_.jsx(oe,{direction:"column",children:c?_.jsx(Ae,{children:c}):_.jsxs(_.Fragment,{children:[_.jsx(Ae,{children:i}),s&&_.jsx(oe,{pt:4,children:_.jsxs(Ae,{color:"primaryText1",kind:"tiny",children:["@",s]})})]})}),n&&_.jsx(Ae,{color:"primaryText1",kind:"tiny",children:n}),r&&_.jsx(oe,{pt:4,children:_.jsx(Ae,{color:"primaryText1",kind:"tiny",children:r})}),o&&_.jsx(oe,{pt:12,children:_.jsx(Ae,{as:"div",kind:"regularBold",children:tu(o)})}),l&&_.jsx(oe,{pt:4,children:_.jsxs(Ae,{color:"primaryText1",kind:"tiny",children:["@",l]})}),f&&f.length>0&&_.jsxs(oe,{pt:12,children:[_.jsx(Ae,{color:"primaryText1",children:"People"}),_.jsx(oe,{pt:4,children:_.jsx(Ae,{color:"primaryText1",kind:"tiny",children:p&&_.jsxs(oe,{pt:12,children:[_.jsx(Ae,{children:"Guests:"}),_.jsx(Ae,{children:g?f.map(b=>`@${b==null?void 0:b.twitter_handle}`).join(", "):f.join(", ")})]})})})]})]})]})]})})},Fy=()=>{const[e,t]=ei(c=>[c.hoveredNode,c.isHovering]),[n,r]=d.useState(!1),[o,i]=d.useState(!1);d.useEffect(()=>{let c=null;return t||o?r(!0):c=setTimeout(()=>r(!1),300),()=>{c&&clearTimeout(c)}},[t,o]);const s=d.useCallback(()=>{i(!0)},[]),a=d.useCallback(()=>{i(!1)},[]);return _.jsxs(zy,{children:[e&&n&&_.jsx(Ny,{onMouseEnter:s,onMouseLeave:a,children:_.jsx(Ly,{node:e})}),_.jsx(Ol,{})]})},zy=he("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),Ny=he.div` + position: absolute; + top: 65px; + right: 55px; + z-index: 100; +`,Vy=()=>{const e=d.useContext(Gl);return e==null?void 0:e.socket},By={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},Wy=ti(e=>({...By,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,r,o,i;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((r=t==null?void 0:t.instagraph)!=null&&r.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(i=t==null?void 0:t.instagraph)==null?void 0:i.nodes}})}})),Hy="0.1.106",Uy=d.lazy(()=>Le(()=>import("./index-08a4a5f1.js"),["assets/index-08a4a5f1.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/ClipLoader-81a960be.js","assets/index-ed5d0d1f.js","assets/index.esm-24fdfebf.js","assets/index-82f7e5dd.js","assets/Tabs-f772e78a.js","assets/createSvgIcon-d7fd46c8.js"]).then(({SettingsModal:e})=>({default:e}))),Ky=d.lazy(()=>Le(()=>import("./index-3b9e8cdc.js"),["assets/index-3b9e8cdc.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/index-82f7e5dd.js","assets/index.esm-24fdfebf.js","assets/CheckIcon-306bcb61.js","assets/ClipLoader-81a960be.js","assets/index-ed5d0d1f.js"]).then(({AddContentModal:e})=>({default:e}))),Gy=d.lazy(()=>Le(()=>import("./index-d6780dfb.js"),["assets/index-d6780dfb.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/index-82f7e5dd.js","assets/index.esm-24fdfebf.js","assets/CheckIcon-306bcb61.js","assets/ClipLoader-81a960be.js","assets/constants-a6b58f4d.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-ed5d0d1f.js","assets/index-7e5f4468.js","assets/Stack-9fbe3064.js","assets/createSvgIcon-d7fd46c8.js","assets/TextareaAutosize-146d11d5.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Yy=d.lazy(()=>Le(()=>import("./index-8015b832.js"),["assets/index-8015b832.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/PlusIcon-fe6ca88f.js","assets/NodeCircleIcon-e770be3d.js","assets/ClipLoader-81a960be.js","assets/index.esm-24fdfebf.js","assets/SearchIcon-19850845.js","assets/index-7e5f4468.js","assets/Stack-9fbe3064.js","assets/createSvgIcon-d7fd46c8.js","assets/TextareaAutosize-146d11d5.js","assets/index-ed5d0d1f.js","assets/DeleteIcon-0129cee6.js","assets/MergeIcon-abc08c66.js","assets/index-d1d9c0be.js","assets/constants-a6b58f4d.js","assets/CheckIcon-306bcb61.js","assets/Typography-77d675f7.js","assets/Tabs-f772e78a.js"]).then(({SourcesTableModal:e})=>({default:e}))),qy=d.lazy(()=>Le(()=>import("./index-fdf4f1b9.js"),["assets/index-fdf4f1b9.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/index-ed5d0d1f.js","assets/index.esm-24fdfebf.js","assets/Skeleton-afb5f26b.js","assets/ClipLoader-81a960be.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Xy=d.lazy(()=>Le(()=>import("./index-14a79774.js"),["assets/index-14a79774.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/Skeleton-afb5f26b.js","assets/ClipLoader-81a960be.js"]).then(({RemoveNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>Le(()=>import("./index-9fc2a325.js"),["assets/index-9fc2a325.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/NodeCircleIcon-e770be3d.js","assets/index-7e5f4468.js","assets/Stack-9fbe3064.js","assets/createSvgIcon-d7fd46c8.js","assets/TextareaAutosize-146d11d5.js","assets/constants-a6b58f4d.js","assets/ClipLoader-81a960be.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Qy=d.lazy(()=>Le(()=>import("./index-2ea5dc61.js"),["assets/index-2ea5dc61.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/index-d1d9c0be.js","assets/NodeCircleIcon-e770be3d.js","assets/constants-a6b58f4d.js","assets/index-7e5f4468.js","assets/Stack-9fbe3064.js","assets/createSvgIcon-d7fd46c8.js","assets/TextareaAutosize-146d11d5.js","assets/ClipLoader-81a960be.js"]).then(({MergeNodeModal:e})=>({default:e}))),Jy=d.lazy(()=>Le(()=>import("./index-cbd983bd.js"),["assets/index-cbd983bd.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/index-ed5d0d1f.js","assets/index.esm-24fdfebf.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/constants-a6b58f4d.js","assets/ClipLoader-81a960be.js","assets/index-7e5f4468.js","assets/Stack-9fbe3064.js","assets/createSvgIcon-d7fd46c8.js","assets/TextareaAutosize-146d11d5.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ev=d.lazy(()=>Le(()=>import("./index-1dce22c6.js"),["assets/index-1dce22c6.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/constants-a6b58f4d.js","assets/index-ed5d0d1f.js","assets/index.esm-24fdfebf.js","assets/index-7e5f4468.js","assets/Stack-9fbe3064.js","assets/createSvgIcon-d7fd46c8.js","assets/TextareaAutosize-146d11d5.js","assets/ClipLoader-81a960be.js","assets/DeleteIcon-0129cee6.js","assets/PlusIcon-fe6ca88f.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/FormControlLabel-f3a1de50.js","assets/Typography-77d675f7.js","assets/index-7ae855ee.js"]).then(({BlueprintModal:e})=>({default:e}))),tv=d.lazy(()=>Le(()=>import("./index-71614da4.js"),["assets/index-71614da4.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/index-82f7e5dd.js","assets/index.esm-24fdfebf.js","assets/index-ed5d0d1f.js"]).then(({UserFeedBackModal:e})=>({default:e}))),nv=d.lazy(()=>Le(()=>import("./index-b92527b1.js"),["assets/index-b92527b1.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-f2d8f92e.js","assets/index-82f7e5dd.js","assets/index.esm-24fdfebf.js","assets/index-7e5f4468.js","assets/Stack-9fbe3064.js","assets/createSvgIcon-d7fd46c8.js","assets/TextareaAutosize-146d11d5.js","assets/index-ed5d0d1f.js"]).then(({CreateBountyModal:e})=>({default:e}))),rv=()=>_.jsxs(_.Fragment,{children:[_.jsx(Gy,{}),_.jsx(Ky,{}),_.jsx(Uy,{}),_.jsx(qy,{}),_.jsx(Xy,{}),_.jsx(Yy,{}),_.jsx(Zy,{}),_.jsx(Jy,{}),_.jsx(ev,{}),_.jsx(Qy,{}),_.jsx(tv,{}),_.jsx(nv,{})]}),ov=()=>{const e=Ir(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=xa(),{abortFetchData:r}=Ar(s=>s),o=ql();if(!e)return null;const i=()=>{n(null),r(),t(),o("/")};return _.jsxs(iv,{children:[_.jsxs(sv,{onClick:i,children:[_.jsx(_.Fragment,{children:e.title&&_.jsx(Ae,{className:"title",color:"white",children:e.title})}),_.jsx(Ae,{className:"subtitle",children:"Second Brain"})]}),_.jsx(Xl,{})]})},iv=he(oe).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` + height: 64px; + position: absolute; + top: 0px; + left: 64px; + right: 32px; + transition: opacity 1s; + z-index: 99; + padding: 20px 23px; +`,sv=he.div` + ${Yl.smallOnly` + display: none; + `} + + width: 367px; + + .title { + color: var(--Primary-Text, #fff); + font-family: Barlow; + font-size: 22px; + font-style: normal; + font-weight: 700; + line-height: 16px; /* 72.727% */ + letter-spacing: 0.22px; + cursor: pointer; + } + + .subtitle { + color: ${te.GRAY6}; + font-family: Barlow; + font-size: 22px; + font-style: normal; + font-weight: 400; + line-height: 16px; + letter-spacing: 0.22px; + margin-left: 8px; + cursor: pointer; + } +`,av=620,cv=()=>{const e=`(max-width: ${av}px)`,[t,n]=d.useState(()=>window.matchMedia(e).matches);return d.useEffect(()=>{const r=window.matchMedia(e);n(r.matches);const o=()=>{n(r.matches)};return window.addEventListener("resize",o),()=>r.removeEventListener("change",o)},[e]),t},lv=()=>{const[e,t]=d.useState(!0),n=cv();d.useEffect(()=>{t(!0)},[n]);const r=()=>{t(!1)};return n&&e?_.jsxs(uv,{align:"center",direction:"column",justify:"center",onClick:r,children:[_.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),_.jsxs(oe,{align:"center",direction:"column",justify:"center",children:[_.jsx(bo,{children:"Second Brain is currently"}),_.jsx(bo,{style:{fontWeight:600},children:"optimized for Desktop."}),_.jsx(bo,{children:"Mobile support coming soon."})]}),_.jsx(ui,{color:"secondary",onClick:r,variant:"contained",children:"Got It"})]}):null},uv=he(oe)` + height: 100vh; + width: 100vw; + background: rgba(0, 0, 0, 0.75); + gap: 28px; + z-index: 2000000000; + position: fixed; + top: 0; + left: 0; + right: 0; +`,bo=he(Ae)` + color: #fff; + text-align: center; + font-family: Barlow; + font-size: 18px; + font-style: normal; + font-weight: 400; + line-height: 24px; + margin: 1px; +`;function Pl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Nt=e=>typeof e=="string",Ke=e=>typeof e=="function",cr=e=>Nt(e)||Ke(e)?e:null,Yo=e=>d.isValidElement(e)||Nt(e)||Ke(e)||jn(e);function dv(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Ur(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(s){let{children:a,position:c,preventExitTransition:l,done:u,nodeRef:f,isIn:p,playToast:g}=s;const m=r?`${t}--${c}`:t,b=r?`${n}--${c}`:n,w=d.useRef(0);return d.useLayoutEffect(()=>{const v=f.current,y=m.split(" "),$=T=>{T.target===f.current&&(g(),v.removeEventListener("animationend",$),v.removeEventListener("animationcancel",$),w.current===0&&T.type!=="animationcancel"&&v.classList.remove(...y))};v.classList.add(...y),v.addEventListener("animationend",$),v.addEventListener("animationcancel",$)},[]),d.useEffect(()=>{const v=f.current,y=()=>{v.removeEventListener("animationend",y),o?dv(v,u,i):u()};p||(l?y():(w.current=1,v.className+=` ${b}`,v.addEventListener("animationend",y)))},[p]),h.createElement(h.Fragment,null,a)}}function pa(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Me=new Map;let Ln=[];const qo=new Set,fv=e=>qo.forEach(t=>t(e)),Al=()=>Me.size>0;function Il(e,t){var n;if(t)return!((n=Me.get(t))==null||!n.isToastActive(e));let r=!1;return Me.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function Dl(e,t){Yo(e)&&(Al()||Ln.push({content:e,options:t}),Me.forEach(n=>{n.buildToast(e,t)}))}function ha(e,t){Me.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function pv(e){const{subscribe:t,getSnapshot:n,setProps:r}=d.useRef(function(i){const s=i.containerId||1;return{subscribe(a){const c=function(u,f,p){let g=1,m=0,b=[],w=[],v=[],y=f;const $=new Map,T=new Set,C=()=>{v=Array.from($.values()),T.forEach(k=>k())},E=k=>{w=k==null?[]:w.filter(F=>F!==k),C()},S=k=>{const{toastId:F,onOpen:D,updateId:j,children:A}=k.props,z=j==null;k.staleId&&$.delete(k.staleId),$.set(F,k),w=[...w,k.props.toastId].filter(L=>L!==k.staleId),C(),p(pa(k,z?"added":"updated")),z&&Ke(D)&&D(d.isValidElement(A)&&A.props)};return{id:u,props:y,observe:k=>(T.add(k),()=>T.delete(k)),toggle:(k,F)=>{$.forEach(D=>{F!=null&&F!==D.props.toastId||Ke(D.toggle)&&D.toggle(k)})},removeToast:E,toasts:$,clearQueue:()=>{m-=b.length,b=[]},buildToast:(k,F)=>{if((J=>{let{containerId:ne,toastId:re,updateId:ie}=J;const ue=ne?ne!==u:u!==1,Ce=$.has(re)&&ie==null;return ue||Ce})(F))return;const{toastId:D,updateId:j,data:A,staleId:z,delay:L}=F,N=()=>{E(D)},V=j==null;V&&m++;const K={...y,style:y.toastStyle,key:g++,...Object.fromEntries(Object.entries(F).filter(J=>{let[ne,re]=J;return re!=null})),toastId:D,updateId:j,data:A,closeToast:N,isIn:!1,className:cr(F.className||y.toastClassName),bodyClassName:cr(F.bodyClassName||y.bodyClassName),progressClassName:cr(F.progressClassName||y.progressClassName),autoClose:!F.isLoading&&(Y=F.autoClose,ee=y.autoClose,Y===!1||jn(Y)&&Y>0?Y:ee),deleteToast(){const J=$.get(D),{onClose:ne,children:re}=J.props;Ke(ne)&&ne(d.isValidElement(re)&&re.props),p(pa(J,"removed")),$.delete(D),m--,m<0&&(m=0),b.length>0?S(b.shift()):C()}};var Y,ee;K.closeButton=y.closeButton,F.closeButton===!1||Yo(F.closeButton)?K.closeButton=F.closeButton:F.closeButton===!0&&(K.closeButton=!Yo(y.closeButton)||y.closeButton);let ce=k;d.isValidElement(k)&&!Nt(k.type)?ce=d.cloneElement(k,{closeToast:N,toastProps:K,data:A}):Ke(k)&&(ce=k({closeToast:N,toastProps:K,data:A}));const W={content:ce,props:K,staleId:z};y.limit&&y.limit>0&&m>y.limit&&V?b.push(W):jn(L)?setTimeout(()=>{S(W)},L):S(W)},setProps(k){y=k},setToggle:(k,F)=>{$.get(k).toggle=F},isToastActive:k=>w.some(F=>F===k),getSnapshot:()=>y.newestOnTop?v.reverse():v}}(s,i,fv);Me.set(s,c);const l=c.observe(a);return Ln.forEach(u=>Dl(u.content,u.options)),Ln=[],()=>{l(),Me.delete(s)}},setProps(a){var c;(c=Me.get(s))==null||c.setProps(a)},getSnapshot(){var a;return(a=Me.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=d.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const s=new Map;return o.forEach(a=>{const{position:c}=a.props;s.has(c)||s.set(c,[]),s.get(c).push(a)}),Array.from(s,a=>i(a[0],a[1]))},isToastActive:Il,count:o==null?void 0:o.length}}function hv(e){const[t,n]=d.useState(!1),[r,o]=d.useState(!1),i=d.useRef(null),s=d.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:f}=e;var p,g;function m(){n(!0)}function b(){n(!1)}function w($){const T=i.current;s.canDrag&&T&&(s.didMove=!0,t&&b(),s.delta=e.draggableDirection==="x"?$.clientX-s.start:$.clientY-s.start,s.start!==$.clientX&&(s.canCloseOnClick=!1),T.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,T.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function v(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",v);const $=i.current;if(s.canDrag&&s.didMove&&$){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();$.style.transition="transform 0.2s, opacity 0.2s",$.style.removeProperty("transform"),$.style.removeProperty("opacity")}}(g=Me.get((p={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||g.setToggle(p.id,p.fn),d.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",m),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",b)}},[e.pauseOnFocusLoss]);const y={onPointerDown:function($){if(e.draggable===!0||e.draggable===$.pointerType){s.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",v);const T=i.current;s.canCloseOnClick=!0,s.canDrag=!0,T.style.transition="none",e.draggableDirection==="x"?(s.start=$.clientX,s.removalDistance=T.offsetWidth*(e.draggablePercent/100)):(s.start=$.clientY,s.removalDistance=T.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function($){const{top:T,bottom:C,left:E,right:S}=i.current.getBoundingClientRect();$.nativeEvent.type!=="touchend"&&e.pauseOnHover&&$.clientX>=E&&$.clientX<=S&&$.clientY>=T&&$.clientY<=C?b():m()}};return a&&c&&(y.onMouseEnter=b,e.stacked||(y.onMouseLeave=m)),f&&(y.onClick=$=>{u&&u($),s.canCloseOnClick&&l()}),{playToast:m,pauseToast:b,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:y}}function gv(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:s,style:a,controlledProgress:c,progress:l,rtl:u,isIn:f,theme:p}=e;const g=i||c&&l===0,m={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(m.transform=`scaleX(${l})`);const b=Rt("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),w=Ke(s)?s({rtl:u,type:o,defaultClassName:b}):Rt(b,s),v={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{f&&r()}};return h.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},h.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${o}`}),h.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:w,style:m,...v}))}let mv=1;const Ml=()=>""+mv++;function bv(e){return e&&(Nt(e.toastId)||jn(e.toastId))?e.toastId:Ml()}function On(e,t){return Dl(e,t),t.toastId}function Rr(e,t){return{...t,type:t&&t.type||e,toastId:bv(t)}}function rr(e){return(t,n)=>On(t,Rr(e,n))}function ge(e,t){return On(e,Rr("default",t))}ge.loading=(e,t)=>On(e,Rr("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ge.promise=function(e,t,n){let r,{pending:o,error:i,success:s}=t;o&&(r=Nt(o)?ge.loading(o,n):ge.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,f,p)=>{if(f==null)return void ge.dismiss(r);const g={type:u,...a,...n,data:p},m=Nt(f)?{render:f}:f;return r?ge.update(r,{...g,...m}):ge(m.render,{...g,...m}),p},l=Ke(e)?e():e;return l.then(u=>c("success",s,u)).catch(u=>c("error",i,u)),l},ge.success=rr("success"),ge.info=rr("info"),ge.error=rr("error"),ge.warning=rr("warning"),ge.warn=ge.warning,ge.dark=(e,t)=>On(e,Rr("default",{theme:"dark",...t})),ge.dismiss=function(e){(function(t){var n;if(Al()){if(t==null||Nt(n=t)||jn(n))Me.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=Me.get(t.containerId))!=null&&r.removeToast(t.id)||Me.forEach(o=>{o.removeToast(t.id)})}}else Ln=Ln.filter(o=>t!=null&&o.options.toastId!==t)})(e)},ge.clearWaitingQueue=function(e){e===void 0&&(e={}),Me.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ge.isActive=Il,ge.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var i;let{containerId:s}=o;return(i=Me.get(s||1))==null?void 0:i.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:Ml()};i.toastId!==e&&(i.staleId=e);const s=i.render||o;delete i.render,On(s,i)}},ge.done=e=>{ge.update(e,{progress:1})},ge.onChange=function(e){return qo.add(e),()=>{qo.delete(e)}},ge.play=e=>ha(!0,e),ge.pause=e=>ha(!1,e);const yv=typeof window<"u"?d.useLayoutEffect:d.useEffect,or=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return h.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},yo={info:function(e){return h.createElement(or,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return h.createElement(or,{...e},h.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return h.createElement(or,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return h.createElement(or,{...e},h.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return h.createElement("div",{className:"Toastify__spinner"})}},vv=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=hv(e),{closeButton:s,children:a,autoClose:c,onClick:l,type:u,hideProgressBar:f,closeToast:p,transition:g,position:m,className:b,style:w,bodyClassName:v,bodyStyle:y,progressClassName:$,progressStyle:T,updateId:C,role:E,progress:S,rtl:k,toastId:F,deleteToast:D,isIn:j,isLoading:A,closeOnClick:z,theme:L}=e,N=Rt("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":z}),V=Ke(b)?b({rtl:k,position:m,type:u,defaultClassName:N}):Rt(N,b),K=function(W){let{theme:J,type:ne,isLoading:re,icon:ie}=W,ue=null;const Ce={theme:J,type:ne};return ie===!1||(Ke(ie)?ue=ie({...Ce,isLoading:re}):d.isValidElement(ie)?ue=d.cloneElement(ie,Ce):re?ue=yo.spinner():(_e=>_e in yo)(ne)&&(ue=yo[ne](Ce))),ue}(e),Y=!!S||!c,ee={closeToast:p,type:u,theme:L};let ce=null;return s===!1||(ce=Ke(s)?s(ee):d.isValidElement(s)?d.cloneElement(s,ee):function(W){let{closeToast:J,theme:ne,ariaLabel:re="close"}=W;return h.createElement("button",{className:`Toastify__close-button Toastify__close-button--${ne}`,type:"button",onClick:ie=>{ie.stopPropagation(),J(ie)},"aria-label":re},h.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},h.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(ee)),h.createElement(g,{isIn:j,done:D,position:m,preventExitTransition:n,nodeRef:r,playToast:i},h.createElement("div",{id:F,onClick:l,"data-in":j,className:V,...o,style:w,ref:r},h.createElement("div",{...j&&{role:E},className:Ke(v)?v({type:u}):Rt("Toastify__toast-body",v),style:y},K!=null&&h.createElement("div",{className:Rt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},K),h.createElement("div",null,a)),ce,h.createElement(gv,{...C&&!Y?{key:`pb-${C}`}:{},rtl:k,theme:L,delay:c,isRunning:t,isIn:j,closeToast:p,hide:f,type:u,style:T,className:$,controlledProgress:Y,progress:S||0})))},Kr=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},xv=Ur(Kr("bounce",!0));Ur(Kr("slide",!0));Ur(Kr("zoom"));Ur(Kr("flip"));const wv={position:"top-right",transition:xv,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Ev(e){let t={...wv,...e};const n=e.stacked,[r,o]=d.useState(!0),i=d.useRef(null),{getToastToRender:s,isToastActive:a,count:c}=pv(t),{className:l,style:u,rtl:f,containerId:p}=t;function g(b){const w=Rt("Toastify__toast-container",`Toastify__toast-container--${b}`,{"Toastify__toast-container--rtl":f});return Ke(l)?l({position:b,rtl:f,defaultClassName:w}):Rt(w,cr(l))}function m(){n&&(o(!0),ge.play())}return yv(()=>{if(n){var b;const w=i.current.querySelectorAll('[data-in="true"]'),v=12,y=(b=t.position)==null?void 0:b.includes("top");let $=0,T=0;Array.from(w).reverse().forEach((C,E)=>{const S=C;S.classList.add("Toastify__toast--stacked"),E>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=y?"top":"bot");const k=$*(r?.2:1)+(r?0:v*E);S.style.setProperty("--y",`${y?k:-1*k}px`),S.style.setProperty("--g",`${v}`),S.style.setProperty("--s",""+(1-(r?T:0))),$+=S.offsetHeight,T+=.025})}},[r,c,n]),h.createElement("div",{ref:i,className:"Toastify",id:p,onMouseEnter:()=>{n&&(o(!1),ge.pause())},onMouseLeave:m},s((b,w)=>{const v=w.length?{...u}:{...u,pointerEvents:"none"};return h.createElement("div",{className:g(b),style:v,key:`container-${b}`},w.map(y=>{let{content:$,props:T}=y;return h.createElement(vv,{...T,stacked:n,collapseAll:m,isIn:a(T.toastId,T.containerId),style:T.style,key:`toast-${T.key}`},$)}))}))}const $v=he(Ev)` + .Toastify__toast { + background-color: #49c998ff; + width: fit-content; + min-height: 100%; + border-radius: 12px; + padding: 6px; + } + .Toastify__toast-body { + background-color: #49c998ff; + color: ${te.white}; + font-weight: 500; + font-family: 'Barlow'; + } + .Toastify__close-button { + color: ${te.white}; + } + .Toastify__progress-bar--error { + background-color: ${te.primaryRed}; + } + .Toastify__progress-bar--success { + background-color: ${te.primaryGreen}; + } + &.Toastify__toast-container--top-right { + width: fit-content; + height: auto; + top: 60px; + right: 48px; + } +`,Cv=he(oe)` + height: 100%; + width: 100%; + background-color: ${te.black}; +`,_v=he(oe)` + position: absolute; + bottom: 8px; + left: 8px; + color: ${te.white}; + font-size: 12px; + opacity: 0.5; +`,Sv=d.lazy(()=>Le(()=>import("./index-f3dd3c85.js"),["assets/index-f3dd3c85.js","assets/index-66901234.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),Tv=d.lazy(()=>Le(()=>import("./index-4f4b885d.js"),["assets/index-4f4b885d.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/index-7ae855ee.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-146d11d5.js","assets/DeleteIcon-0129cee6.js","assets/index.esm-24fdfebf.js","assets/index-f3d28701.js","assets/MergeIcon-abc08c66.js","assets/PlusIcon-fe6ca88f.js","assets/ClipLoader-81a960be.js"]).then(({Universe:e})=>({default:e}))),kv=d.lazy(()=>Le(()=>import("./index-5e3fe062.js").then(e=>e.i),["assets/index-5e3fe062.js","assets/index-66901234.js","assets/index-a2878e02.css","assets/SearchIcon-19850845.js","assets/ClipLoader-81a960be.js","assets/Skeleton-afb5f26b.js","assets/PlusIcon-fe6ca88f.js","assets/CheckIcon-306bcb61.js","assets/Stack-9fbe3064.js","assets/FormControlLabel-f3a1de50.js","assets/Typography-77d675f7.js","assets/createSvgIcon-d7fd46c8.js","assets/index-f2d8f92e.js","assets/index-f3d28701.js","assets/index.esm-24fdfebf.js"]).then(({SideBar:e})=>({default:e}))),Rv=()=>{const[e]=Zl(),t=e.get("q"),{setBudget:n,setNodeCount:r}=va(W=>W),o=d.useRef(null),i=d.useRef(null),{setSidebarOpen:s,currentSearch:a,setCurrentSearch:c,setRelevanceSelected:l,setTranscriptOpen:u,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:p}=Ir(W=>W),g=Wy(W=>W.setTeachMeAnswer),{fetchData:m,setCategoryFilter:b,setAbortRequests:w,addNewNode:v,splashDataLoading:y,runningProjectId:$,setRunningProjectMessages:T}=Ar(W=>W),{setAiSummaryAnswer:C,getKeyExist:E,aiRefId:S}=xa(W=>W),k=ya(),[F,D]=Ql(W=>[W.realtimeGraphFeatureFlag,W.chatInterfaceFeatureFlag]),j=Vy(),A=Zb({mode:"onChange"}),{setValue:z}=A;d.useEffect(()=>{z("search",t??""),u(!1),k(null),l(!1),c(t??""),g(""),b(null)},[t,b,c,l,k,g,u,z]),d.useEffect(()=>{(async()=>{await m(n,w),s(!0),a?await eu(n):k(null)})()},[a,m,n,w,s,k]);const L=d.useCallback(()=>{r("INCREMENT")},[r]),N=d.useCallback(W=>{o.current||(o.current={nodes:[],edges:[]}),W.edges&&o.current.edges.push(...W.edges),W.nodes&&o.current.nodes.push(...W.nodes),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{const J={...o.current};o.current={nodes:[],edges:[]},v(J)},3e3)},[v]),V=d.useCallback(W=>{W.ref_id&&C(W.ref_id,{answer:W.answer,answerLoading:!1})},[C]),K=d.useCallback(W=>{W.ref_id&&C(W.ref_id,{audio_en:W.audio_EN})},[C]),Y=d.useCallback(W=>{W.ref_id&&C(W.ref_id,{questions:W.relevant_questions.map(J=>J.question),questionsLoading:!1})},[C]),ee=d.useCallback(W=>{W.ref_id&&C(W.ref_id,{sources:W.sources.map(J=>J.ref_id),sourcesLoading:!1})},[C]),ce=d.useCallback(W=>{W.question&&E(S)&&C(S,{answerLoading:!1,entities:W.entities})},[C,E,S]);return d.useEffect(()=>(j&&(j.connect(),j.on("connect_error",W=>{console.error("Socket connection error:",W)}),j.on("newnode",L),D&&j.on("extractedentitieshook",ce),D&&j.on("askquestionhook",V),D&&j.on("relevantquestionshook",Y),D&&j.on("answersourceshook",ee),F&&j.on("new_node_created",N),D&&j.on("answeraudiohook",K)),()=>{j&&j.off()}),[j,L,N,F,V,D,Y,ee,ce,K]),d.useEffect(()=>{if(!$)return;const W=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");W.onopen=()=>{let J="a";J=$;const ne={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:J})};W.send(JSON.stringify(ne))},W.onmessage=J=>{var ie;console.log("Message from server:",J.data);const ne=JSON.parse(J.data);if(ne.type==="ping")return;const re=(ie=ne==null?void 0:ne.message)==null?void 0:ie.message;re&&T(re)},W.onerror=J=>{console.error("WebSocket error:",J)},W.onclose=()=>{console.log("WebSocket connection closed")}},[$,T]),d.useEffect(()=>{y||p()},[p,y]),_.jsxs(_.Fragment,{children:[_.jsx(Qb,{}),_.jsx(lv,{}),_.jsx(dl,{hidden:!Jl}),_.jsx(d.Suspense,{fallback:_.jsx("div",{children:"Loading..."}),children:y?null:_.jsxs(Cv,{direction:"row",children:[_.jsxs(jb,{...A,children:[_.jsx(Sv,{}),!f&&_.jsx(kv,{}),_.jsx(Tv,{}),_.jsx(Fy,{}),_.jsx(ov,{}),_.jsxs(_v,{children:["v",Hy]}),_.jsx(Ol,{})]}),_.jsx(rv,{}),_.jsx($v,{})]})})]})},Bv=Object.freeze(Object.defineProperty({__proto__:null,App:Rv},Symbol.toStringTag,{value:"Module"}));export{Rl as A,ui as B,ry as C,jb as F,oy as G,Ea as I,Fy as O,hy as P,Py as T,mn as _,Fv as a,Oy as b,zv as c,lu as d,Wr as e,Zb as f,tu as g,kl as h,ny as i,gy as j,by as k,iy as l,wa as m,Vv as n,gp as o,ge as p,B as q,Pv as r,Nv as s,Bv as t,ty as u,nu as v}; diff --git a/build/assets/index-af68535b.js b/build/assets/index-2ea5dc61.js similarity index 91% rename from build/assets/index-af68535b.js rename to build/assets/index-2ea5dc61.js index 6df8f9349..0af67a96e 100644 --- a/build/assets/index-af68535b.js +++ b/build/assets/index-2ea5dc61.js @@ -1,4 +1,4 @@ -import{r as p,ad as I,j as e,F as x,by as T,t as n,I as v,Y as _,D as L,v as A,bB as B}from"./index-87686c58.js";import{i as F,g as E,F as N,B as M}from"./index-67098fb8.js";import{B as k}from"./index-0b3081fa.js";import{u as w}from"./index-bb8a1b27.js";import{S as O,A as z,N as D,F as Y,b as P,I as R}from"./NodeCircleIcon-d6d9a47a.js";import{O as X}from"./constants-a6b58f4d.js";import{A as H,T as W}from"./index-eaa4131c.js";import{C as U}from"./ClipLoader-3d43cca0.js";import"./Stack-448c401b.js";import"./createSvgIcon-bb70c00d.js";import"./TextareaAutosize-c523d1d2.js";const $=({topicId:s,onSelect:r,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:z,search:i,skip:"0",limit:"1000"};h(!0);try{const C=(await T(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);f(C)}catch{f([])}finally{h(!1)}};return I.debounce(o,300)},[s]),a=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;r(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(O,{onClick:()=>r(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(H,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||X,selectedValue:d?t(d):null})},q=({from:s,onSelect:r,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(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{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(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx($,{dataId:"to-node",onSelect:r,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(D,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(Y,{})}),e.jsx(ne,{children:e.jsx(P,{})})]})]})]}),G=n(v)` +import{r as p,ad as I,j as e,F as x,by as T,t as n,I as v,Y as _,D as L,v as A,bB as B}from"./index-66901234.js";import{h as F,f as E,F as N,B as M}from"./index-2979d0f2.js";import{B as k}from"./index-f2d8f92e.js";import{u as w}from"./index-d1d9c0be.js";import{S as O,A as z,N as D,F as Y,b as P,I as R}from"./NodeCircleIcon-e770be3d.js";import{O as X}from"./constants-a6b58f4d.js";import{A as H,T as W}from"./index-7e5f4468.js";import{C as U}from"./ClipLoader-81a960be.js";import"./Stack-9fbe3064.js";import"./createSvgIcon-d7fd46c8.js";import"./TextareaAutosize-146d11d5.js";const $=({topicId:s,onSelect:r,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:z,search:i,skip:"0",limit:"1000"};h(!0);try{const C=(await T(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);f(C)}catch{f([])}finally{h(!1)}};return I.debounce(o,300)},[s]),a=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;r(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(O,{onClick:()=>r(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(H,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||X,selectedValue:d?t(d):null})},q=({from:s,onSelect:r,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(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{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(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx($,{dataId:"to-node",onSelect:r,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(D,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(Y,{})}),e.jsx(ne,{children:e.jsx(P,{})})]})]})]}),G=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-0f492805.js b/build/assets/index-3b9e8cdc.js similarity index 61% rename from build/assets/index-0f492805.js rename to build/assets/index-3b9e8cdc.js index f94b2abac..80ea39786 100644 --- a/build/assets/index-0f492805.js +++ b/build/assets/index-3b9e8cdc.js @@ -1,4 +1,4 @@ -import{bb as j,bc as E,bd as y,be as R,bf as T,bg as U,bh as D,bi as O,t as p,v as u,H as G,r as h,j as e,F as r,bj as J,I as C,bk as K,ba as X,Y as Q,z as ee,b9 as m,bl as te,ag as se,bm as ne,bn as oe,af as re,bo as ie,X as ae}from"./index-87686c58.js";import{B as z,q as ce,g as le,S as de,F as ue}from"./index-67098fb8.js";import{B as pe}from"./index-0b3081fa.js";import{C as xe}from"./CheckIcon-dab8ab94.js";import{C as fe}from"./ClipLoader-3d43cca0.js";import{T as he}from"./index-d67f975a.js";const k=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,be=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,ye=/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[we,Ee,ge,me,be,je].some(n=>n.test(t))?T:ve.test(t)?E:k.test(t)?j:ye.test(t)?U:Se.test(t)?y:Re.test(t)?R:_e.test(t)?await Ce(t)?y:D:O}const Be=(t,s="")=>{const o=(s===j?k:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,y,R].includes(t),$e=({onClick:t,loading:s,type:n,error:o})=>{const b=G(a=>a.budget),[i,x]=h.useState(10),d=_(n)?"radar":"add_node";return h.useEffect(()=>{(async()=>{try{const c=await K(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(Ae,{children:"Approve Cost"})})}),e.jsxs(r,{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:[i," sats"]})]}),e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[J(b)," 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(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(xe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(ce,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Te=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{bb as j,bc as E,bd as y,be as R,bf as T,bg as U,bh as D,bi as O,t as p,v as u,H as G,r as h,j as e,F as r,bj as J,I as C,bk as K,ba as X,Y as Q,z as ee,b9 as m,bl as te,ag as se,bm as ne,bn as oe,af as re,bo as ie,X as ae}from"./index-66901234.js";import{B as z,f as ce,F as le}from"./index-2979d0f2.js";import{B as de}from"./index-f2d8f92e.js";import{S as ue}from"./index-82f7e5dd.js";import{e as pe}from"./index.esm-24fdfebf.js";import{C as xe}from"./CheckIcon-306bcb61.js";import{C as fe}from"./ClipLoader-81a960be.js";import{T as he}from"./index-ed5d0d1f.js";const k=/\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_-]+)/,be=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,ye=/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,be,je].some(n=>n.test(t))?T:ve.test(t)?E:k.test(t)?j:ye.test(t)?U:Se.test(t)?y:Re.test(t)?R:_e.test(t)?await Ce(t)?y:D:O}const Be=(t,s="")=>{const o=(s===j?k:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,y,R].includes(t),$e=({onClick:t,loading:s,type:n,error:o})=>{const b=G(a=>a.budget),[i,x]=h.useState(10),d=_(n)?"radar":"add_node";return h.useEffect(()=>{(async()=>{try{const c=await K(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(Ae,{children:"Approve Cost"})})}),e.jsxs(r,{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:[i," sats"]})]}),e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[J(b)," 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(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(xe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(pe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Te=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${u.GRAY7}; @@ -85,7 +85,7 @@ import{bb as j,bc as E,bd as y,be as R,bf as T,bg as U,bh as D,bi as O,t as p,v font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,$={[j]:{label:"Twitter handle",img:"twitter_default.svg"},[E]:{label:"Youtube channel",img:"youtube_default.svg"},[y]:{label:"RSS Feed",img:"rss_feed.svg"},[R]:{label:"GitHub Repository",img:"github_default.svg"}},He=({onNextStep:t,onPrevStep:s,type:n,value:o})=>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(Ye,{children:"Source Type"})})}),e.jsxs(r,{mb:20,children:[e.jsxs(qe,{children:[e.jsx("img",{alt:$[n].label,className:"badge__img",src:$[n].img}),e.jsx(We,{children:$[n].label})]}),e.jsx(Me,{children:Be(o,n)??o})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(Ve,{color:"secondary",disabled:!1,onClick:()=>s(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(z,{color:"secondary","data-testid":"source_next_btn",onClick:()=>t(),size:"large",variant:"contained",children:"Next"})})]})]}),Me=p(r)` +`,$={[j]:{label:"Twitter handle",img:"twitter_default.svg"},[E]:{label:"Youtube channel",img:"youtube_default.svg"},[y]:{label:"RSS Feed",img:"rss_feed.svg"},[R]:{label:"GitHub Repository",img:"github_default.svg"}},He=({onNextStep:t,onPrevStep:s,type:n,value:o})=>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(Ye,{children:"Source Type"})})}),e.jsxs(r,{mb:20,children:[e.jsxs(Ve,{children:[e.jsx("img",{alt:$[n].label,className:"badge__img",src:$[n].img}),e.jsx(We,{children:$[n].label})]}),e.jsx(Me,{children:Be(o,n)??o})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(qe,{color:"secondary",disabled:!1,onClick:()=>s(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(z,{color:"secondary","data-testid":"source_next_btn",onClick:()=>t(),size:"large",variant:"contained",children:"Next"})})]})]}),Me=p(r)` font-family: Barlow; font-size: 14px; font-weight: 400; @@ -113,12 +113,12 @@ import{bb as j,bc as E,bd as y,be as R,bf as T,bg as U,bh as D,bi as O,t as p,v letter-spacing: 0em; text-align: left; color: ${u.white}; -`,qe=p(r)` +`,Ve=p(r)` display: flex; flex-direction: row; align-items: center; gap: 12px; -`,Ve=p(z)` +`,qe=p(z)` && { background: ${u.white}; color: ${u.BG2}; @@ -130,4 +130,4 @@ import{bb as j,bc as E,bd as y,be as R,bf as T,bg as U,bh as D,bi as O,t as p,v color: ${u.BG2}; } } -`,H=async(t,s,n,o)=>{const b=_(s)?"radar":"add_node",i={};if(s===T)i.media_url=t.source,i.content_type="audio_video";else if(s===U){if(/(?:https?:\/\/)?(?:www\.)?(twitter|x)\.com\/\w+\/status\/(\d+)/s.test(t.source)){const c=/\/status\/(\d+)/,l=t.source.match(c);if(l!=null&&l[1]){const[,S]=l;i.tweet_id=S}}else i.tweet_id=t.source;i.content_type="tweet"}else if(s===D)i.content_type="webpage",i.web_page=t.source;else if(s===O)i.content_type="document",i.text=t.source;else if(s===j){const[,a]=(t.source||"").match(k)||[];if(a)i.source=a,i.source_type=s;else return}else(s===E||s===y||s===R)&&(i.source=t.source,i.source_type=s);t.latitude&&t.longitude&&(i.latitude=t.latitude,i.longitude=t.longitude);let x="",d;te?d=await ne.enable():d=await se.enable(),i.pubkey=d==null?void 0:d.pubkey,x=await oe();try{const a=await re.post(`/${b}`,JSON.stringify(i),{Authorization:x});if(a.data.project_id&&o(a.data.project_id),a.error){const{message:c}=a.error;throw new Error(c)}}catch(a){if(a.status===402)await ie(n),await ae(n),await H(t,s,n,o);else{let c=m;if(a.status===400)try{const l=await a.json();c=l.message||l.status||(l==null?void 0:l.errorCode)||m}catch{c=m}else a instanceof Error&&(c=a.message||m);throw new Error(c)}}},st=()=>{const[t,s]=h.useState(0),{close:n,visible:o}=Q("addContent"),{setBudget:b}=G(w=>w),{setRunningProjectId:i}=ee(w=>w),x=le({mode:"onChange"}),{watch:d,setValue:a,reset:c}=x,[l,S]=h.useState(!1),[M,A]=h.useState("");h.useEffect(()=>()=>{A(""),s(0),c()},[o,c]);const g=d("inputType"),N=d("source"),P=d("source"),Y=F(N);h.useEffect(()=>{(async()=>{const f=await ze(P);a("inputType",f)})()},[P,a]);const W=()=>{n()},I=()=>{s(t===0?_(g)?1:2:t+1)},q=()=>{s(t-1)},V=x.handleSubmit(async w=>{S(!0);try{await H(w,g,b,i),de("Content Added"),W()}catch(f){let B=m;if((f==null?void 0:f.status)===400){const v=await f.json();B=v.errorCode||(v==null?void 0:v.status)||m}else f instanceof Error&&(B=f.message);A(String(B))}finally{S(!1)}});return e.jsx(pe,{id:"addContent",kind:"small",onClose:n,preventOutsideClose:!0,children:e.jsx(ue,{...x,children:e.jsxs("form",{id:"add-node-form",onSubmit:V,children:[t===0&&e.jsx(Ze,{allowNextStep:Y,onNextStep:I,type:g}),t===1&&_(g)&&e.jsx(He,{onNextStep:I,onPrevStep:q,type:g,value:N}),t===2&&e.jsx($e,{error:M,loading:l,onClick:()=>null,type:g})]})})})};export{st as AddContentModal}; +`,H=async(t,s,n,o)=>{const b=_(s)?"radar":"add_node",i={};if(s===T)i.media_url=t.source,i.content_type="audio_video";else if(s===U){if(/(?:https?:\/\/)?(?:www\.)?(twitter|x)\.com\/\w+\/status\/(\d+)/s.test(t.source)){const c=/\/status\/(\d+)/,l=t.source.match(c);if(l!=null&&l[1]){const[,S]=l;i.tweet_id=S}}else i.tweet_id=t.source;i.content_type="tweet"}else if(s===D)i.content_type="webpage",i.web_page=t.source;else if(s===O)i.content_type="document",i.text=t.source;else if(s===j){const[,a]=(t.source||"").match(k)||[];if(a)i.source=a,i.source_type=s;else return}else(s===E||s===y||s===R)&&(i.source=t.source,i.source_type=s);t.latitude&&t.longitude&&(i.latitude=t.latitude,i.longitude=t.longitude);let x="",d;te?d=await ne.enable():d=await se.enable(),i.pubkey=d==null?void 0:d.pubkey,x=await oe();try{const a=await re.post(`/${b}`,JSON.stringify(i),{Authorization:x});if(a.data.project_id&&o(a.data.project_id),a.error){const{message:c}=a.error;throw new Error(c)}}catch(a){if(a.status===402)await ie(n),await ae(n),await H(t,s,n,o);else{let c=m;if(a.status===400)try{const l=await a.json();c=l.message||l.status||(l==null?void 0:l.errorCode)||m}catch{c=m}else a instanceof Error&&(c=a.message||m);throw new Error(c)}}},ot=()=>{const[t,s]=h.useState(0),{close:n,visible:o}=Q("addContent"),{setBudget:b}=G(g=>g),{setRunningProjectId:i}=ee(g=>g),x=ce({mode:"onChange"}),{watch:d,setValue:a,reset:c}=x,[l,S]=h.useState(!1),[M,A]=h.useState("");h.useEffect(()=>()=>{A(""),s(0),c()},[o,c]);const w=d("inputType"),N=d("source"),P=d("source"),Y=F(N);h.useEffect(()=>{(async()=>{const f=await ze(P);a("inputType",f)})()},[P,a]);const W=()=>{n()},I=()=>{s(t===0?_(w)?1:2:t+1)},V=()=>{s(t-1)},q=x.handleSubmit(async g=>{S(!0);try{await H(g,w,b,i),ue("Content Added"),W()}catch(f){let B=m;if((f==null?void 0:f.status)===400){const v=await f.json();B=v.errorCode||(v==null?void 0:v.status)||m}else f instanceof Error&&(B=f.message);A(String(B))}finally{S(!1)}});return e.jsx(de,{id:"addContent",kind:"small",onClose:n,preventOutsideClose:!0,children:e.jsx(le,{...x,children:e.jsxs("form",{id:"add-node-form",onSubmit:q,children:[t===0&&e.jsx(Ze,{allowNextStep:Y,onNextStep:I,type:w}),t===1&&_(w)&&e.jsx(He,{onNextStep:I,onPrevStep:V,type:w,value:N}),t===2&&e.jsx($e,{error:M,loading:l,onClick:()=>null,type:w})]})})})};export{ot as AddContentModal}; diff --git a/build/assets/index-3c6f54c7.js b/build/assets/index-3c6f54c7.js deleted file mode 100644 index a1027fd24..000000000 --- a/build/assets/index-3c6f54c7.js +++ /dev/null @@ -1,18 +0,0 @@ -import{af as w,t as y,I as g,F as r,j as e,ba as S,r as C,Y as h,D as T}from"./index-87686c58.js";import{f as k,B as x,g as b,F as D,S as E}from"./index-67098fb8.js";import{B as F}from"./index-0b3081fa.js";import{A as _}from"./index-eaa4131c.js";import{T as V}from"./index-d67f975a.js";import"./Stack-448c401b.js";import"./createSvgIcon-bb70c00d.js";import"./TextareaAutosize-c523d1d2.js";const z=async o=>await w.post("/bounty",JSON.stringify(o)),j=/^[0-9]+$/,v=o=>{const n=o.trim();return!!(n&&j.test(n))},M=({errMessage:o,handleClose:n})=>{const{setValue:i,watch:t}=k(),a=t("budget",""),l=t("nodeType",""),c=s=>{const p=(s==null?void 0:s.label)||"SecondBrain";i("nodeType",p,{shouldValidate:!0})},d=[{label:"SecondBrain",value:"SecondBrain"}],u=v(a)&&!!l,m=s=>{s.key===" "&&s.preventDefault()};return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(A,{children:"Create Bounty"})}),e.jsxs(r,{mb:20,children:[e.jsx(f,{children:"Select Workspace"}),e.jsx(_,{autoFocus:!0,onSelect:c,options:d})]}),e.jsxs(r,{mb:20,children:[e.jsx(f,{children:"Set Budget"}),e.jsx(V,{id:"budget",name:"budget",onKeyDown:m,placeholder:"Enter budget",rules:{...S,pattern:{value:j,message:"Please enter a valid number"}},value:a})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(x,{color:"secondary",onClick:()=>n(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(x,{color:"secondary",disabled:!u,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),o&&e.jsx(K,{children:o})]})},f=y(g)` - font-size: 14px; - font-weight: 600; - font-family: 'Barlow'; - margin-bottom: 6px; -`,A=y(g)` - font-size: 18px; - font-weight: 600; - font-family: 'Barlow'; - margin-bottom: 6px; -`,K=y(r)` - font-size: 13px; - font-family: Barlow; - color: #ff8f80; - line-height: 0.2px; - margin-top: 12px; - padding-top: 20px; -`,N=()=>{const[o,n]=C.useState(""),{close:i}=h("createBounty"),t=T(),a=b({mode:"onChange"}),{handleSubmit:l,setValue:c}=a,d=()=>{c("budget",""),c("nodeType",""),i()},u=async m=>{const{budget:s}=m,p={type:"code_generation",amount:Number(s),workspace_uuid:"ck9drb84nncjnaefo090",jwt_token:"abced-12345",ref_id:t==null?void 0:t.ref_id,node_data:(t==null?void 0:t.properties)||{}};try{await z(p),E("Bounty Created")}catch(B){n(B)}finally{c("budget",""),c("nodeType",""),d()}};return e.jsx(D,{...a,children:e.jsx("form",{id:"create-bounty-form",onSubmit:l(u),children:e.jsx(M,{errMessage:o,handleClose:d})})})},U=()=>{const{close:o}=h("createBounty"),n=b({mode:"onChange"}),{setValue:i}=n,t=()=>{i("budget",""),i("nodeType",""),o()},a="small";return e.jsx(F,{id:"createBounty",kind:a,onClose:t,preventOutsideClose:!0,children:e.jsx(N,{})})};export{U as CreateBountyModal}; diff --git a/build/assets/index-2042bb5c.js b/build/assets/index-4f4b885d.js similarity index 97% rename from build/assets/index-2042bb5c.js rename to build/assets/index-4f4b885d.js index 746217d79..fa8043f2d 100644 --- a/build/assets/index-2042bb5c.js +++ b/build/assets/index-4f4b885d.js @@ -1,4 +1,4 @@ -import{r as E,a as $a,j as M,R as $r,B as uu,t as Le,v as pe,F as xs,z as xn,H as hu,G as hr,M as ef,D as Jt,w as nt,a0 as Eo,y as du,a1 as tf,a2 as sf,a3 as nf,a4 as rf,a5 as of,a6 as af,a7 as cf,a8 as lf,a9 as uf,Y as Cr,aa as hf,ab as df,ac as ff,ad as pf,ae as mf,V as _f}from"./index-87686c58.js";import{u as ve,a as Xa,e as Qa,b as Rt,L as gf,c as vf,d as yf,m as xf,f as Tf,g as wf,h as fu,H as dr,t as pu,T as kf,i as Sf,j as Cf,D as bf,C as Ef,P as Of,k as Af}from"./index-3bf3d93c.js";import{D as br,F as Mf,V as X,a as Fe,T as Oo,b as Df,C as hs,W as Rf,c as Pf,E as Ka,d as Tt,N as Gn,e as If,B as oi,U as ps,M as Nf,f as Ff,g as Uf,h as Lf,i as Bf,j as Er,k as Mi,S as es,l as zf,m as Q,R as Vf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as jf,L as Xr,s as Hf,t as _u,u as gu,v as vu,w as yu,x as el,y as qf,z as Wf,A as Or,H as Gf,G as Yf,I as Zf,J as $f,K as Xf,O as Qf,Q as fr,X as Kf,Y as Jf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,T as tl,A as ep,b as tp,M as sp,c as np,O as ip,d as rp}from"./index-67098fb8.js";import{T as op}from"./TextareaAutosize-c523d1d2.js";import{D as ap}from"./DeleteIcon-ee935491.js";import{u as cp}from"./index-ea2300d8.js";import{M as lp,A as up,E as hp}from"./MergeIcon-a00ba31c.js";import{P as dp}from"./PlusIcon-dd101fe0.js";import{C as fp}from"./ClipLoader-3d43cca0.js";function pp(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const f=e;e=u?h:Object.assign({},e,h),t.forEach(d=>d(e,f))}},i=()=>e,r=(l,u=i,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(e);function d(){const m=u(e);if(!h(f,m)){const p=f;l(f=m,p)}}return t.add(d),()=>t.delete(d)},c={setState:s,getState:i,subscribe:(l,u,h)=>u||h?r(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,i,c),c}const mp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sl=mp?E.useEffect:E.useLayoutEffect;function _p(n){const e=typeof n=="function"?pp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=E.useReducer(_=>_+1,0),o=e.getState(),a=E.useRef(o),c=E.useRef(s),l=E.useRef(i),u=E.useRef(!1),h=E.useRef();h.current===void 0&&(h.current=s(o));let f,d=!1;(a.current!==o||c.current!==s||l.current!==i||u.current)&&(f=s(o),d=!i(h.current,f)),sl(()=>{d&&(h.current=f),a.current=o,c.current=s,l.current=i,u.current=!1});const m=E.useRef(o);sl(()=>{const _=()=>{try{const T=e.getState(),S=c.current(T);l.current(h.current,S)||(a.current=T,h.current=S,r())}catch{u.current=!0,r()}},v=e.subscribe(_);return e.getState()!==m.current&&_(),v},[]);const p=d?f:h.current;return E.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const gp=_p(n=>(br.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},br.onLoad=()=>{n({active:!1})},br.onError=e=>n(t=>({errors:[...t.errors,e]})),br.onProgress=(e,t,s)=>{t===s&&(fi=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),vp=n=>`Loading ${n.toFixed(2)}%`;function yp({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:i=vp,initialState:r=o=>o}){const{active:o,progress:a}=gp(),c=E.useRef(0),l=E.useRef(0),u=E.useRef(null),[h,f]=E.useState(r(o));E.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=E.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?E.createElement("div",{style:{...Ar.container,opacity:o?1:0,...n}},E.createElement("div",null,E.createElement("div",{style:{...Ar.inner,...e}},E.createElement("div",{style:{...Ar.bar,transform:`scaleX(${a/100})`,...t}}),E.createElement("span",{ref:u,style:{...Ar.data,...s}})))):null}const Ar={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}};let pi;function xp(){var n;if(pi!==void 0)return pi;try{let e;const t=document.createElement("canvas");return pi=!!(window.WebGL2RenderingContext&&(e=t.getContext("webgl2"))),e&&((n=e.getExtension("WEBGL_lose_context"))==null||n.loseContext()),pi}catch{return pi=!1}}const Xo=new Mf,Qo=new X,En=new X,Pt=new X,is=new X,qt=new X,rs=new X,os=new X,mi=new X,_i=new X,gi=new X,Mr=new X,vi=new X,yi=new X,xi=new X;class Tp{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new X,this.endPoint=new X,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Xo,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){En.copy(e),En.x=Math.min(e.x,t.x),En.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),Pt.setFromMatrixPosition(this.camera.matrixWorld),is.copy(En),qt.set(t.x,En.y,0),rs.copy(t),os.set(En.x,t.y,0),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),vi.copy(is).sub(Pt),yi.copy(qt).sub(Pt),xi.copy(rs).sub(Pt),vi.normalize(),yi.normalize(),xi.normalize(),vi.multiplyScalar(this.deep),yi.multiplyScalar(this.deep),xi.multiplyScalar(this.deep),vi.add(Pt),yi.add(Pt),xi.add(Pt);var s=Xo.planes;s[0].setFromCoplanarPoints(Pt,is,qt),s[1].setFromCoplanarPoints(Pt,qt,rs),s[2].setFromCoplanarPoints(rs,os,Pt),s[3].setFromCoplanarPoints(os,is,Pt),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(xi,yi,vi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const i=Math.min(e.x,t.x),r=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);is.set(i,r,-1),qt.set(o,r,-1),rs.set(o,a,-1),os.set(i,a,-1),mi.set(i,r,1),_i.set(o,r,1),gi.set(o,a,1),Mr.set(i,a,1),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),mi.unproject(this.camera),_i.unproject(this.camera),gi.unproject(this.camera),Mr.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Mr,os),s[3].setFromCoplanarPoints(Mr,mi,is),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(gi,_i,mi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Qo.copy(t.geometry.boundingSphere.center),Qo.applyMatrix4(t.matrixWorld),e.containsPoint(Qo)&&this.collection.push(t)),t.children.length>0)for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:f,size:d,get:m}=ve(),[p,_]=E.useState(!1),[v,T]=E.useReducer((w,{object:k,shift:x})=>k===void 0?[]:Array.isArray(k)?k:x?w.includes(k)?w.filter(C=>C!==k):[k,...w]:w[0]===k?[]:[k],[]);E.useEffect(()=>void(s==null?void 0:s(v)),[v]);const S=E.useCallback(w=>{w.stopPropagation(),T({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=E.useCallback(w=>!p&&T({}),[p]),g=E.useRef(null);return E.useEffect(()=>{if(!n||!e)return;const w=new Tp(l,g.current),k=document.createElement("div");k.style.pointerEvents="none",k.style.border=i,k.style.backgroundColor=r,k.style.position="fixed";const x=new Fe,C=new Fe,b=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,we){const{offsetX:ae,offsetY:$}=B,{width:_e,height:Ye}=d;we.set(ae/_e*2-1,-($/Ye)*2+1)}function F(B){var we;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(we=h.domElement.parentElement)==null||we.appendChild(k),k.style.left=`${B.clientX}px`,k.style.top=`${B.clientY}px`,k.style.width="0px",k.style.height="0px",x.x=B.clientX,x.y=B.clientY}function N(B){b.x=Math.max(x.x,B.clientX),b.y=Math.max(x.y,B.clientY),C.x=Math.min(x.x,B.clientX),C.y=Math.min(x.y,B.clientY),k.style.left=`${C.x}px`,k.style.top=`${C.y}px`,k.style.width=`${b.x-C.x}px`,k.style.height=`${b.y-C.y}px`}function U(){if(R){var B;f&&(f.enabled=A),c({enabled:O}),R=!1,(B=k.parentElement)==null||B.removeChild(k)}}function V(B){B.shiftKey&&(F(B),P(B,w.startPoint))}let z=[];function q(B){if(R){N(B),P(B,w.endPoint);const we=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);wp(we,z)||(z=we,T({object:o(we)}))}}function j(B){R&&U()}return document.addEventListener("pointerdown",V,{passive:!0}),document.addEventListener("pointermove",q,{passive:!0,capture:!0}),document.addEventListener("pointerup",j,{passive:!0}),()=>{document.removeEventListener("pointerdown",V),document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",j)}},[d.width,d.height,u,l,f,h]),E.createElement("group",$a({ref:g,onClick:S,onPointerOver:()=>_(!0),onPointerOut:()=>_(!1),onPointerMissed:y},a),E.createElement(kp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ve(i=>i.gl),s=Xa(Oo,nl(n)?Object.values(n):n);if(E.useLayoutEffect(()=>{e==null||e(s)},[e]),E.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),nl(n)){const i=Object.keys(n),r={};return i.forEach(o=>Object.assign(r,{[o]:s[i.indexOf(o)]})),r}else return s}on.preload=n=>Xa.preload(Oo,n);on.clear=n=>Xa.clear(Oo,n);/*! +import{r as E,a as $a,j as M,R as $r,B as uu,t as Le,v as pe,F as xs,z as xn,H as hu,G as hr,M as ef,D as Jt,w as nt,a0 as Eo,y as du,a1 as tf,a2 as sf,a3 as nf,a4 as rf,a5 as of,a6 as af,a7 as cf,a8 as lf,a9 as uf,Y as Cr,aa as hf,ab as df,ac as ff,ad as pf,ae as mf,V as _f}from"./index-66901234.js";import{u as ve,a as Xa,e as Qa,b as Rt,L as gf,c as vf,d as yf,m as xf,f as Tf,g as wf,h as fu,H as dr,t as pu,T as kf,i as Sf,j as Cf,D as bf,C as Ef,P as Of,k as Af}from"./index-7ae855ee.js";import{D as br,F as Mf,V as X,a as Fe,T as Oo,b as Df,C as hs,W as Rf,c as Pf,E as Ka,d as Tt,N as Gn,e as If,B as oi,U as ps,M as Nf,f as Ff,g as Uf,h as Lf,i as Bf,j as Er,k as Mi,S as es,l as zf,m as Q,R as Vf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as jf,L as Xr,s as Hf,t as _u,u as gu,v as vu,w as yu,x as el,y as qf,z as Wf,A as Or,H as Gf,G as Yf,I as Zf,J as $f,K as Xf,O as Qf,Q as fr,X as Kf,Y as Jf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,T as tl,A as ep,b as tp,O as sp,c as np}from"./index-2979d0f2.js";import{T as ip}from"./TextareaAutosize-146d11d5.js";import{D as rp}from"./DeleteIcon-0129cee6.js";import{M as op,a as ap}from"./index.esm-24fdfebf.js";import{u as cp}from"./index-f3d28701.js";import{M as lp,A as up,E as hp}from"./MergeIcon-abc08c66.js";import{P as dp}from"./PlusIcon-fe6ca88f.js";import{C as fp}from"./ClipLoader-81a960be.js";function pp(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const f=e;e=u?h:Object.assign({},e,h),t.forEach(d=>d(e,f))}},i=()=>e,r=(l,u=i,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(e);function d(){const m=u(e);if(!h(f,m)){const p=f;l(f=m,p)}}return t.add(d),()=>t.delete(d)},c={setState:s,getState:i,subscribe:(l,u,h)=>u||h?r(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,i,c),c}const mp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sl=mp?E.useEffect:E.useLayoutEffect;function _p(n){const e=typeof n=="function"?pp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=E.useReducer(_=>_+1,0),o=e.getState(),a=E.useRef(o),c=E.useRef(s),l=E.useRef(i),u=E.useRef(!1),h=E.useRef();h.current===void 0&&(h.current=s(o));let f,d=!1;(a.current!==o||c.current!==s||l.current!==i||u.current)&&(f=s(o),d=!i(h.current,f)),sl(()=>{d&&(h.current=f),a.current=o,c.current=s,l.current=i,u.current=!1});const m=E.useRef(o);sl(()=>{const _=()=>{try{const T=e.getState(),S=c.current(T);l.current(h.current,S)||(a.current=T,h.current=S,r())}catch{u.current=!0,r()}},v=e.subscribe(_);return e.getState()!==m.current&&_(),v},[]);const p=d?f:h.current;return E.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const gp=_p(n=>(br.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},br.onLoad=()=>{n({active:!1})},br.onError=e=>n(t=>({errors:[...t.errors,e]})),br.onProgress=(e,t,s)=>{t===s&&(fi=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),vp=n=>`Loading ${n.toFixed(2)}%`;function yp({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:i=vp,initialState:r=o=>o}){const{active:o,progress:a}=gp(),c=E.useRef(0),l=E.useRef(0),u=E.useRef(null),[h,f]=E.useState(r(o));E.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=E.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?E.createElement("div",{style:{...Ar.container,opacity:o?1:0,...n}},E.createElement("div",null,E.createElement("div",{style:{...Ar.inner,...e}},E.createElement("div",{style:{...Ar.bar,transform:`scaleX(${a/100})`,...t}}),E.createElement("span",{ref:u,style:{...Ar.data,...s}})))):null}const Ar={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}};let pi;function xp(){var n;if(pi!==void 0)return pi;try{let e;const t=document.createElement("canvas");return pi=!!(window.WebGL2RenderingContext&&(e=t.getContext("webgl2"))),e&&((n=e.getExtension("WEBGL_lose_context"))==null||n.loseContext()),pi}catch{return pi=!1}}const Xo=new Mf,Qo=new X,En=new X,Pt=new X,is=new X,qt=new X,rs=new X,os=new X,mi=new X,_i=new X,gi=new X,Mr=new X,vi=new X,yi=new X,xi=new X;class Tp{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new X,this.endPoint=new X,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Xo,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){En.copy(e),En.x=Math.min(e.x,t.x),En.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),Pt.setFromMatrixPosition(this.camera.matrixWorld),is.copy(En),qt.set(t.x,En.y,0),rs.copy(t),os.set(En.x,t.y,0),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),vi.copy(is).sub(Pt),yi.copy(qt).sub(Pt),xi.copy(rs).sub(Pt),vi.normalize(),yi.normalize(),xi.normalize(),vi.multiplyScalar(this.deep),yi.multiplyScalar(this.deep),xi.multiplyScalar(this.deep),vi.add(Pt),yi.add(Pt),xi.add(Pt);var s=Xo.planes;s[0].setFromCoplanarPoints(Pt,is,qt),s[1].setFromCoplanarPoints(Pt,qt,rs),s[2].setFromCoplanarPoints(rs,os,Pt),s[3].setFromCoplanarPoints(os,is,Pt),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(xi,yi,vi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const i=Math.min(e.x,t.x),r=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);is.set(i,r,-1),qt.set(o,r,-1),rs.set(o,a,-1),os.set(i,a,-1),mi.set(i,r,1),_i.set(o,r,1),gi.set(o,a,1),Mr.set(i,a,1),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),mi.unproject(this.camera),_i.unproject(this.camera),gi.unproject(this.camera),Mr.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Mr,os),s[3].setFromCoplanarPoints(Mr,mi,is),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(gi,_i,mi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Qo.copy(t.geometry.boundingSphere.center),Qo.applyMatrix4(t.matrixWorld),e.containsPoint(Qo)&&this.collection.push(t)),t.children.length>0)for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:f,size:d,get:m}=ve(),[p,_]=E.useState(!1),[v,T]=E.useReducer((w,{object:k,shift:x})=>k===void 0?[]:Array.isArray(k)?k:x?w.includes(k)?w.filter(C=>C!==k):[k,...w]:w[0]===k?[]:[k],[]);E.useEffect(()=>void(s==null?void 0:s(v)),[v]);const S=E.useCallback(w=>{w.stopPropagation(),T({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=E.useCallback(w=>!p&&T({}),[p]),g=E.useRef(null);return E.useEffect(()=>{if(!n||!e)return;const w=new Tp(l,g.current),k=document.createElement("div");k.style.pointerEvents="none",k.style.border=i,k.style.backgroundColor=r,k.style.position="fixed";const x=new Fe,C=new Fe,b=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,we){const{offsetX:ae,offsetY:$}=B,{width:_e,height:Ye}=d;we.set(ae/_e*2-1,-($/Ye)*2+1)}function F(B){var we;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(we=h.domElement.parentElement)==null||we.appendChild(k),k.style.left=`${B.clientX}px`,k.style.top=`${B.clientY}px`,k.style.width="0px",k.style.height="0px",x.x=B.clientX,x.y=B.clientY}function N(B){b.x=Math.max(x.x,B.clientX),b.y=Math.max(x.y,B.clientY),C.x=Math.min(x.x,B.clientX),C.y=Math.min(x.y,B.clientY),k.style.left=`${C.x}px`,k.style.top=`${C.y}px`,k.style.width=`${b.x-C.x}px`,k.style.height=`${b.y-C.y}px`}function U(){if(R){var B;f&&(f.enabled=A),c({enabled:O}),R=!1,(B=k.parentElement)==null||B.removeChild(k)}}function V(B){B.shiftKey&&(F(B),P(B,w.startPoint))}let z=[];function q(B){if(R){N(B),P(B,w.endPoint);const we=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);wp(we,z)||(z=we,T({object:o(we)}))}}function j(B){R&&U()}return document.addEventListener("pointerdown",V,{passive:!0}),document.addEventListener("pointermove",q,{passive:!0,capture:!0}),document.addEventListener("pointerup",j,{passive:!0}),()=>{document.removeEventListener("pointerdown",V),document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",j)}},[d.width,d.height,u,l,f,h]),E.createElement("group",$a({ref:g,onClick:S,onPointerOver:()=>_(!0),onPointerOut:()=>_(!1),onPointerMissed:y},a),E.createElement(kp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ve(i=>i.gl),s=Xa(Oo,nl(n)?Object.values(n):n);if(E.useLayoutEffect(()=>{e==null||e(s)},[e]),E.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),nl(n)){const i=Object.keys(n),r={};return i.forEach(o=>Object.assign(r,{[o]:s[i.indexOf(o)]})),r}else return s}on.preload=n=>Xa.preload(Oo,n);on.clear=n=>Xa.clear(Oo,n);/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu @@ -213,7 +213,7 @@ float d=distance(uv,center);color*=smoothstep(0.8,offset*0.799,d*(darkness+offse #else vec2 coord=(uv-center)*vec2(offset);color=mix(color,vec3(1.0-darkness),dot(coord,coord)); #endif -outputColor=vec4(color,inputColor.a);}`,mm=class extends Li{constructor({blendFunction:n,technique:e=Nr.DEFAULT,eskil:t=!1,offset:s=.5,darkness:i=.5}={}){super("VignetteEffect",pm,{blendFunction:n,defines:new Map([["VIGNETTE_TECHNIQUE",e.toFixed(0)]]),uniforms:new Map([["offset",new Q(s)],["darkness",new Q(i)]])})}get technique(){return Number(this.defines.get("VIGNETTE_TECHNIQUE"))}set technique(n){this.technique!==n&&(this.defines.set("VIGNETTE_TECHNIQUE",n.toFixed(0)),this.setChanged())}get eskil(){return this.technique===Nr.ESKIL}set eskil(n){this.technique=n?Nr.ESKIL:Nr.DEFAULT}getTechnique(){return this.technique}setTechnique(n){this.technique=n}get offset(){return this.uniforms.get("offset").value}set offset(n){this.uniforms.get("offset").value=n}getOffset(){return this.offset}setOffset(n){this.offset=n}get darkness(){return this.uniforms.get("darkness").value}set darkness(n){this.uniforms.get("darkness").value=n}getDarkness(){return this.darkness}setDarkness(n){this.darkness=n}};const Du=E.createContext(null),_l=n=>(n.getAttributes()&ds.CONVOLUTION)===ds.CONVOLUTION,_m=$r.memo(E.forwardRef(({children:n,camera:e,scene:t,resolutionScale:s,enabled:i=!0,renderPriority:r=1,autoClear:o=!0,depthBuffer:a,disableNormalPass:c,stencilBuffer:l,multisampling:u=8,frameBufferType:h=Gf},f)=>{const{gl:d,scene:m,camera:p,size:_}=ve(),v=t||m,T=e||p,[S,y,g]=E.useMemo(()=>{const C=xp(),b=new b0(d,{depthBuffer:a,stencilBuffer:l,multisampling:u>0&&C?u:0,frameBufferType:h});b.addPass(new Do(v,T));let O=null,A=null;return c||(A=new w0(v,T),A.enabled=!1,b.addPass(A),s!==void 0&&C&&(O=new _0({normalBuffer:A.texture,resolutionScale:s}),O.enabled=!1,b.addPass(O))),[b,A,O]},[T,d,a,l,u,h,v,c,s]);E.useEffect(()=>S==null?void 0:S.setSize(_.width,_.height),[S,_]),Rt((C,b)=>{if(i){const O=d.autoClear;d.autoClear=o,l&&!o&&d.clearStencil(),S.render(b),d.autoClear=O}},i?r:0);const w=E.useRef(null),k=Tf(w);E.useLayoutEffect(()=>{const C=[];if(w.current&&k.current&&S){const b=k.current.objects;for(let O=0;O{for(const b of C)S==null||S.removePass(b);y&&(y.enabled=!1),g&&(g.enabled=!1)}},[S,n,T,y,g,k]);const x=E.useMemo(()=>({composer:S,normalPass:y,downSamplingPass:g,resolutionScale:s,camera:T,scene:v}),[S,y,g,s,T,v]);return E.useImperativeHandle(f,()=>S,[S]),M.jsx(Du.Provider,{value:x,children:M.jsx("group",{ref:w,children:n})})})),gl=n=>typeof n=="object"&&n!=null&&"current"in n?n.current:n;let gm=0;const vl=new WeakMap,Ru=(n,e)=>$r.forwardRef(function({blendFunction:s=e==null?void 0:e.blendFunction,opacity:i=e==null?void 0:e.opacity,...r},o){let a=vl.get(n);if(!a){const u=`@react-three/postprocessing/${n.name}-${gm++}`;Qa({[u]:n}),vl.set(n,a=u)}const c=ve(u=>u.camera),l=$r.useMemo(()=>{var u,h;return[...(u=e==null?void 0:e.args)!=null?u:[],...(h=r.args)!=null?h:[{...e,...r}]]},[JSON.stringify(r)]);return M.jsx(a,{camera:c,"blendMode-blendFunction":s,"blendMode-opacity-value":i,...r,ref:o,args:l})}),vm=Ru(um,{blendFunction:ee.ADD}),ym=E.forwardRef(function({selection:e=[],selectionLayer:t=10,blendFunction:s,patternTexture:i,edgeStrength:r,pulseSpeed:o,visibleEdgeColor:a,hiddenEdgeColor:c,width:l,height:u,kernelSize:h,blur:f,xRay:d,...m},p){const _=ve(g=>g.invalidate),{scene:v,camera:T}=E.useContext(Du),S=E.useMemo(()=>new fm(v,T,{blendFunction:s,patternTexture:i,edgeStrength:r,pulseSpeed:o,visibleEdgeColor:a,hiddenEdgeColor:c,width:l,height:u,kernelSize:h,blur:f,xRay:d,...m}),[s,f,T,r,u,c,h,i,o,v,a,l,d]),y=E.useContext(tc);return E.useEffect(()=>{if(!y&&e)return S.selection.set(Array.isArray(e)?e.map(gl):[gl(e)]),_(),()=>{S.selection.clear(),_()}},[S,e,y,_]),E.useEffect(()=>{S.selectionLayer=t,_()},[S,_,t]),E.useRef(),E.useEffect(()=>{var g;if(y&&y.enabled&&(g=y.selected)!=null&&g.length)return S.selection.set(y.selected),_(),()=>{S.selection.clear(),_()}},[y,S.selection,_]),E.useEffect(()=>()=>{S.dispose()},[S]),M.jsx("primitive",{ref:p,object:S})}),xm=Ru(mm),Tm={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Ns=uu(n=>({...Tm,setIsUserDragging:e=>n({isUserDragging:e}),setIsUserScrolling:e=>n({isUserScrolling:e}),setUserMovedCamera:e=>n({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>n({isUserScrollingOnHtmlPanel:e})})),yl=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),wm=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsxs("g",{id:"captive_portal",children:[M.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:M.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),M.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[M.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),M.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),km=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),Sm=()=>{const[n,e]=E.useState(""),t=E.useRef(null),{fetchData:s,setAbortRequests:i,seedQuestions:r}=xn(y=>y),[o]=hu(y=>[y.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=hr(y=>({setUniverseQuestionIsOpen:y.setUniverseQuestionIsOpen,setSidebarOpen:y.setSidebarOpen,setShowCollapseButton:y.setShowCollapseButton})),u=ef(y=>y.resetAiSummaryAnswer),[h,f]=E.useState([]);E.useEffect(()=>{r&&f(T(r).slice(0,4))},[r]),E.useEffect(()=>{t.current&&t.current.focus()},[]);const d=async y=>{y&&(u(),a(),c(!0),l(!0)),await s(o,i,y)},m=!!n.trim().length,p=async y=>{y.keyCode===13&&y.shiftKey===!1&&m&&(y.preventDefault(),d(n))},_=async y=>{e(y),await d(y)},v=()=>{a(),c(!0),l(!0)},T=y=>{const g=[...y];let w=g.length-1;for(;w>0;){const k=Math.floor(Math.random()*(w+1));[g[w],g[k]]=[g[k],g[w]],w-=1}return g},S=!!n&&n.trim().length>0;return M.jsxs(Em,{children:["Ideas have shapes",M.jsxs(bm,{onKeyDown:p,py:12,tabIndex:-1,children:[M.jsx(Cm,{ref:t,onChange:y=>e(y.target.value),placeholder:"What do you want to know?",value:n}),M.jsx(Om,{color:"secondary",disabled:!S,onClick:()=>d(n),variant:"contained",children:S?M.jsxs(M.Fragment,{children:["Search ",M.jsx(yl,{})]}):M.jsx(yl,{})})]}),h.length>0&&M.jsx(Mm,{children:h.map(y=>M.jsxs(Dm,{onClick:()=>_(y),children:[M.jsx(km,{}),y]},y))}),M.jsx(Am,{"data-testid":"explore-graph-btn",onClick:v,startIcon:M.jsx(wm,{}),children:"Explore Graph"})]})},Cm=Le(op).attrs({maxRows:3})` +outputColor=vec4(color,inputColor.a);}`,mm=class extends Li{constructor({blendFunction:n,technique:e=Nr.DEFAULT,eskil:t=!1,offset:s=.5,darkness:i=.5}={}){super("VignetteEffect",pm,{blendFunction:n,defines:new Map([["VIGNETTE_TECHNIQUE",e.toFixed(0)]]),uniforms:new Map([["offset",new Q(s)],["darkness",new Q(i)]])})}get technique(){return Number(this.defines.get("VIGNETTE_TECHNIQUE"))}set technique(n){this.technique!==n&&(this.defines.set("VIGNETTE_TECHNIQUE",n.toFixed(0)),this.setChanged())}get eskil(){return this.technique===Nr.ESKIL}set eskil(n){this.technique=n?Nr.ESKIL:Nr.DEFAULT}getTechnique(){return this.technique}setTechnique(n){this.technique=n}get offset(){return this.uniforms.get("offset").value}set offset(n){this.uniforms.get("offset").value=n}getOffset(){return this.offset}setOffset(n){this.offset=n}get darkness(){return this.uniforms.get("darkness").value}set darkness(n){this.uniforms.get("darkness").value=n}getDarkness(){return this.darkness}setDarkness(n){this.darkness=n}};const Du=E.createContext(null),_l=n=>(n.getAttributes()&ds.CONVOLUTION)===ds.CONVOLUTION,_m=$r.memo(E.forwardRef(({children:n,camera:e,scene:t,resolutionScale:s,enabled:i=!0,renderPriority:r=1,autoClear:o=!0,depthBuffer:a,disableNormalPass:c,stencilBuffer:l,multisampling:u=8,frameBufferType:h=Gf},f)=>{const{gl:d,scene:m,camera:p,size:_}=ve(),v=t||m,T=e||p,[S,y,g]=E.useMemo(()=>{const C=xp(),b=new b0(d,{depthBuffer:a,stencilBuffer:l,multisampling:u>0&&C?u:0,frameBufferType:h});b.addPass(new Do(v,T));let O=null,A=null;return c||(A=new w0(v,T),A.enabled=!1,b.addPass(A),s!==void 0&&C&&(O=new _0({normalBuffer:A.texture,resolutionScale:s}),O.enabled=!1,b.addPass(O))),[b,A,O]},[T,d,a,l,u,h,v,c,s]);E.useEffect(()=>S==null?void 0:S.setSize(_.width,_.height),[S,_]),Rt((C,b)=>{if(i){const O=d.autoClear;d.autoClear=o,l&&!o&&d.clearStencil(),S.render(b),d.autoClear=O}},i?r:0);const w=E.useRef(null),k=Tf(w);E.useLayoutEffect(()=>{const C=[];if(w.current&&k.current&&S){const b=k.current.objects;for(let O=0;O{for(const b of C)S==null||S.removePass(b);y&&(y.enabled=!1),g&&(g.enabled=!1)}},[S,n,T,y,g,k]);const x=E.useMemo(()=>({composer:S,normalPass:y,downSamplingPass:g,resolutionScale:s,camera:T,scene:v}),[S,y,g,s,T,v]);return E.useImperativeHandle(f,()=>S,[S]),M.jsx(Du.Provider,{value:x,children:M.jsx("group",{ref:w,children:n})})})),gl=n=>typeof n=="object"&&n!=null&&"current"in n?n.current:n;let gm=0;const vl=new WeakMap,Ru=(n,e)=>$r.forwardRef(function({blendFunction:s=e==null?void 0:e.blendFunction,opacity:i=e==null?void 0:e.opacity,...r},o){let a=vl.get(n);if(!a){const u=`@react-three/postprocessing/${n.name}-${gm++}`;Qa({[u]:n}),vl.set(n,a=u)}const c=ve(u=>u.camera),l=$r.useMemo(()=>{var u,h;return[...(u=e==null?void 0:e.args)!=null?u:[],...(h=r.args)!=null?h:[{...e,...r}]]},[JSON.stringify(r)]);return M.jsx(a,{camera:c,"blendMode-blendFunction":s,"blendMode-opacity-value":i,...r,ref:o,args:l})}),vm=Ru(um,{blendFunction:ee.ADD}),ym=E.forwardRef(function({selection:e=[],selectionLayer:t=10,blendFunction:s,patternTexture:i,edgeStrength:r,pulseSpeed:o,visibleEdgeColor:a,hiddenEdgeColor:c,width:l,height:u,kernelSize:h,blur:f,xRay:d,...m},p){const _=ve(g=>g.invalidate),{scene:v,camera:T}=E.useContext(Du),S=E.useMemo(()=>new fm(v,T,{blendFunction:s,patternTexture:i,edgeStrength:r,pulseSpeed:o,visibleEdgeColor:a,hiddenEdgeColor:c,width:l,height:u,kernelSize:h,blur:f,xRay:d,...m}),[s,f,T,r,u,c,h,i,o,v,a,l,d]),y=E.useContext(tc);return E.useEffect(()=>{if(!y&&e)return S.selection.set(Array.isArray(e)?e.map(gl):[gl(e)]),_(),()=>{S.selection.clear(),_()}},[S,e,y,_]),E.useEffect(()=>{S.selectionLayer=t,_()},[S,_,t]),E.useRef(),E.useEffect(()=>{var g;if(y&&y.enabled&&(g=y.selected)!=null&&g.length)return S.selection.set(y.selected),_(),()=>{S.selection.clear(),_()}},[y,S.selection,_]),E.useEffect(()=>()=>{S.dispose()},[S]),M.jsx("primitive",{ref:p,object:S})}),xm=Ru(mm),Tm={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Ns=uu(n=>({...Tm,setIsUserDragging:e=>n({isUserDragging:e}),setIsUserScrolling:e=>n({isUserScrolling:e}),setUserMovedCamera:e=>n({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>n({isUserScrollingOnHtmlPanel:e})})),yl=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),wm=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsxs("g",{id:"captive_portal",children:[M.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:M.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),M.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[M.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),M.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),km=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),Sm=()=>{const[n,e]=E.useState(""),t=E.useRef(null),{fetchData:s,setAbortRequests:i,seedQuestions:r}=xn(y=>y),[o]=hu(y=>[y.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=hr(y=>({setUniverseQuestionIsOpen:y.setUniverseQuestionIsOpen,setSidebarOpen:y.setSidebarOpen,setShowCollapseButton:y.setShowCollapseButton})),u=ef(y=>y.resetAiSummaryAnswer),[h,f]=E.useState([]);E.useEffect(()=>{r&&f(T(r).slice(0,4))},[r]),E.useEffect(()=>{t.current&&t.current.focus()},[]);const d=async y=>{y&&(u(),a(),c(!0),l(!0)),await s(o,i,y)},m=!!n.trim().length,p=async y=>{y.keyCode===13&&y.shiftKey===!1&&m&&(y.preventDefault(),d(n))},_=async y=>{e(y),await d(y)},v=()=>{a(),c(!0),l(!0)},T=y=>{const g=[...y];let w=g.length-1;for(;w>0;){const k=Math.floor(Math.random()*(w+1));[g[w],g[k]]=[g[k],g[w]],w-=1}return g},S=!!n&&n.trim().length>0;return M.jsxs(Em,{children:["Ideas have shapes",M.jsxs(bm,{onKeyDown:p,py:12,tabIndex:-1,children:[M.jsx(Cm,{ref:t,onChange:y=>e(y.target.value),placeholder:"What do you want to know?",value:n}),M.jsx(Om,{color:"secondary",disabled:!S,onClick:()=>d(n),variant:"contained",children:S?M.jsxs(M.Fragment,{children:["Search ",M.jsx(yl,{})]}):M.jsx(yl,{})})]}),h.length>0&&M.jsx(Mm,{children:h.map(y=>M.jsxs(Dm,{onClick:()=>_(y),children:[M.jsx(km,{}),y]},y))}),M.jsx(Am,{"data-testid":"explore-graph-btn",onClick:v,startIcon:M.jsx(wm,{}),children:"Explore Graph"})]})},Cm=Le(ip).attrs({maxRows:3})` background: ${pe.BG1}; max-width: 700px; width: 700px; @@ -720,7 +720,7 @@ outputColor=vec4(color,inputColor.a);}`,mm=class extends Li{constructor({blendFu font-weight: 500; border-radius: 6px; margin-right: 5px; -`;const hw=new X,dw=({position:n,userData:e,color:t})=>{const s=E.useRef(null),{selectedNode:i,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=nt(ec(d=>d)),l=((e==null?void 0:e.node_type)||"")==="Topic"||!!e.name,u=((e==null?void 0:e.node_type)||"")==="Guest"||((e==null?void 0:e.node_type)||"")==="Person";Rt(()=>{if(o&&s.current){const d=hw.set((e==null?void 0:e.x)||0,(e==null?void 0:e.y)||0,(e==null?void 0:e.z)||0);s.current.position.copy(d)}}),E.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=E.useMemo(()=>(a==null?void 0:a.ref_id)===(e==null?void 0:e.ref_id),[a==null?void 0:a.ref_id,e==null?void 0:e.ref_id]),f=(i==null?void 0:i.ref_id)===(e==null?void 0:e.ref_id);return l||f&&o||!f?M.jsx("group",{ref:s,position:n,children:M.jsx(dr,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?M.jsxs(uw,{direction:"column",onClick:d=>{d.stopPropagation(),e&&r(e)},onPointerOut:d=>{d.stopPropagation()},onPointerOver:d=>{d.stopPropagation()},children:[M.jsx("div",{className:"badge-wrapper",children:M.jsx(tl,{type:(e==null?void 0:e.node_type)||""})}),pu(e==null?void 0:e.name,20)]}):M.jsxs(lw,{className:du(e==null?void 0:e.node_type,{selected:f}),color:t,fontColor:pe.white,fontSize:l?64:20,onClick:d=>{d.stopPropagation(),e&&r(e)},onPointerOut:d=>{d.stopPropagation()},onPointerOver:d=>{d.stopPropagation()},scale:h?1.05:1,selected:!1,size:f?68:40,type:(e==null?void 0:e.node_type)||"",children:[!u&&!l?M.jsx("div",{className:"badge-wrapper",children:M.jsx(tl,{type:(e==null?void 0:e.node_type)||""})}):null,e!=null&&e.name?e==null?void 0:e.name:M.jsx(ep,{rounded:u,size:f?60:52,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:e==null?void 0:e.node_type})]})})}):null},Wd=E.memo(()=>{const{simulation:n,showSelectionGraph:e,selectedNode:t,selectionGraphData:s}=nt(ec(o=>o)),i=Eo(),r=E.useMemo(()=>{const o=(n==null?void 0:n.nodes())||[];return(e?s.nodes:o).filter(u=>i.includes((u==null?void 0:u.ref_id)||"")||(t==null?void 0:t.ref_id)===(u==null?void 0:u.ref_id)).slice(0,Ux).map(u=>{const h=fu(u.node_type||"",!0),f=new X((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),d=o.filter(m=>m.ref_id&&Lx(m,u)).map(m=>(m==null?void 0:m.ref_id)||"")||[];return M.jsx(dw,{color:h,position:f,relativeIds:d,userData:u},`node-badge-${u.ref_id}`)})},[n,e,s.nodes,i,t==null?void 0:t.ref_id]);return M.jsx(E.Fragment,{children:r.length?r:null},"node-badges")});Wd.displayName="RelevanceBadges";const cu=tf().stop(),mt={numDimensions:3,velocityDecay:.9,forceChargeStrength:-20,forceChargeMinDistance:10,forceChargeMaxDistance:8e3,forceLinkStrength:.04,forceCenterStrength:.85,disableCollide:!1,disableCenter:!1,disableLink:!1,disableCharge:!1,forceCollideRadiusMethod:n=>(n.edge_count||1)*6+200,forceLinkDistanceMethod:n=>{const e=n.source.node_type;let t=50;switch(e){case"topic":t=30;break;case"guest":t=30;break;case"clip":t=10;break;case"episode":t=15;break}return t*2/50}},fw=(n,e,{numDimensions:t=mt.numDimensions,velocityDecay:s=mt.velocityDecay,forceChargeStrength:i=mt.forceChargeStrength,forceChargeMinDistance:r=mt.forceChargeMinDistance,forceChargeMaxDistance:o=mt.forceChargeMaxDistance,forceLinkStrength:a=mt.forceLinkStrength,forceCenterStrength:c=mt.forceCenterStrength,forceLinkDistanceMethod:l=mt.forceLinkDistanceMethod,forceCollideRadiusMethod:u=mt.forceCollideRadiusMethod,disableCollide:h=mt.disableCollide,disableCenter:f=mt.disableCenter,disableLink:d=mt.disableLink,disableCharge:m=mt.disableCharge})=>(cu.alpha(1).stop().numDimensions(t).velocityDecay(s).force("collide",h?null:sf().radius(u).iterations(1)).force("center",f?null:nf().strength(c)).force("charge",m?null:rf().strength(i).distanceMin(r).distanceMax(o)).nodes(n).force("link",d?null:of(e).id(p=>p.ref_id).distance(l).strength(a)).alpha(1).restart(),cu),pw=({link:n,animated:e})=>{const t=E.useRef(null),s=Jt(),[i,r]=E.useState(new X(0,0,0)),[o,a]=E.useState(new X(0,0,0)),[c,l]=E.useState(8947848),u=nt(h=>h.selectionGraphData);return E.useEffect(()=>{var d,m,p,_,v,T;const h=(s==null?void 0:s.ref_id)||"",f=s&&(h===n.target||h===n.source);!n.onlyVisibleOnSelect||f?(r(new X(((d=n.sourcePosition)==null?void 0:d.x)||0,((m=n.sourcePosition)==null?void 0:m.y)||0,((p=n.sourcePosition)==null?void 0:p.z)||0)),a(new X(((_=n.targetPosition)==null?void 0:_.x)||0,((v=n.targetPosition)==null?void 0:v.y)||0,((T=n.targetPosition)==null?void 0:T.z)||0))):(r(new X(0,0,0)),a(new X(0,0,0))),l(f?n.color||af.children.segmentColor:s?5592405:8947848)},[s,n]),Rt(()=>{if(e&&t.current){const h=u.nodes.find(d=>d.ref_id===n.source),f=u.nodes.find(d=>d.ref_id===n.target);t.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),t.current.end.set((f==null?void 0:f.x)||0,(f==null?void 0:f.y)||0,(f==null?void 0:f.z)||0)}}),M.jsx(M.Fragment,{children:M.jsx(Rp,{ref:t,color:"0xFFFFFF",end:o,start:i})})},mw=({links:n,simulation:e})=>{const t=E.useRef(null);return E.useEffect(()=>function(){t.current&&t.current.clear()},[t]),Rt(()=>{if(t.current){const s=e.nodes();t.current.children.forEach((r,o)=>{var u;const a=n[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=r.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),n.length?M.jsx("group",{ref:t,children:n.map(s=>M.jsx("mesh",{children:M.jsx(dr,{center:!0,sprite:!0,children:M.jsxs(_w,{direction:"row",justify:"center",onClick:i=>{i.stopPropagation()},onPointerOut:i=>{i.stopPropagation()},onPointerOver:i=>{i.stopPropagation()},children:[M.jsx("span",{children:s.edge_type}),M.jsx(xs,{className:"icon",children:M.jsx(ap,{})})]})})},s.ref_id))}):null},_w=Le(xs)` +`;const hw=new X,dw=({position:n,userData:e,color:t})=>{const s=E.useRef(null),{selectedNode:i,setSelectedNode:r,showSelectionGraph:o,hoveredNode:a,setHoveredNode:c}=nt(ec(d=>d)),l=((e==null?void 0:e.node_type)||"")==="Topic"||!!e.name,u=((e==null?void 0:e.node_type)||"")==="Guest"||((e==null?void 0:e.node_type)||"")==="Person";Rt(()=>{if(o&&s.current){const d=hw.set((e==null?void 0:e.x)||0,(e==null?void 0:e.y)||0,(e==null?void 0:e.z)||0);s.current.position.copy(d)}}),E.useEffect(()=>function(){s.current&&s.current.clear()},[s]);const h=E.useMemo(()=>(a==null?void 0:a.ref_id)===(e==null?void 0:e.ref_id),[a==null?void 0:a.ref_id,e==null?void 0:e.ref_id]),f=(i==null?void 0:i.ref_id)===(e==null?void 0:e.ref_id);return l||f&&o||!f?M.jsx("group",{ref:s,position:n,children:M.jsx(dr,{center:!0,sprite:!0,zIndexRange:[0,0],children:l?M.jsxs(uw,{direction:"column",onClick:d=>{d.stopPropagation(),e&&r(e)},onPointerOut:d=>{d.stopPropagation()},onPointerOver:d=>{d.stopPropagation()},children:[M.jsx("div",{className:"badge-wrapper",children:M.jsx(tl,{type:(e==null?void 0:e.node_type)||""})}),pu(e==null?void 0:e.name,20)]}):M.jsxs(lw,{className:du(e==null?void 0:e.node_type,{selected:f}),color:t,fontColor:pe.white,fontSize:l?64:20,onClick:d=>{d.stopPropagation(),e&&r(e)},onPointerOut:d=>{d.stopPropagation()},onPointerOver:d=>{d.stopPropagation()},scale:h?1.05:1,selected:!1,size:f?68:40,type:(e==null?void 0:e.node_type)||"",children:[!u&&!l?M.jsx("div",{className:"badge-wrapper",children:M.jsx(tl,{type:(e==null?void 0:e.node_type)||""})}):null,e!=null&&e.name?e==null?void 0:e.name:M.jsx(ep,{rounded:u,size:f?60:52,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:e==null?void 0:e.node_type})]})})}):null},Wd=E.memo(()=>{const{simulation:n,showSelectionGraph:e,selectedNode:t,selectionGraphData:s}=nt(ec(o=>o)),i=Eo(),r=E.useMemo(()=>{const o=(n==null?void 0:n.nodes())||[];return(e?s.nodes:o).filter(u=>i.includes((u==null?void 0:u.ref_id)||"")||(t==null?void 0:t.ref_id)===(u==null?void 0:u.ref_id)).slice(0,Ux).map(u=>{const h=fu(u.node_type||"",!0),f=new X((u==null?void 0:u.x)||0,(u==null?void 0:u.y)||0,(u==null?void 0:u.z)||0),d=o.filter(m=>m.ref_id&&Lx(m,u)).map(m=>(m==null?void 0:m.ref_id)||"")||[];return M.jsx(dw,{color:h,position:f,relativeIds:d,userData:u},`node-badge-${u.ref_id}`)})},[n,e,s.nodes,i,t==null?void 0:t.ref_id]);return M.jsx(E.Fragment,{children:r.length?r:null},"node-badges")});Wd.displayName="RelevanceBadges";const cu=tf().stop(),mt={numDimensions:3,velocityDecay:.9,forceChargeStrength:-20,forceChargeMinDistance:10,forceChargeMaxDistance:8e3,forceLinkStrength:.04,forceCenterStrength:.85,disableCollide:!1,disableCenter:!1,disableLink:!1,disableCharge:!1,forceCollideRadiusMethod:n=>(n.edge_count||1)*6+200,forceLinkDistanceMethod:n=>{const e=n.source.node_type;let t=50;switch(e){case"topic":t=30;break;case"guest":t=30;break;case"clip":t=10;break;case"episode":t=15;break}return t*2/50}},fw=(n,e,{numDimensions:t=mt.numDimensions,velocityDecay:s=mt.velocityDecay,forceChargeStrength:i=mt.forceChargeStrength,forceChargeMinDistance:r=mt.forceChargeMinDistance,forceChargeMaxDistance:o=mt.forceChargeMaxDistance,forceLinkStrength:a=mt.forceLinkStrength,forceCenterStrength:c=mt.forceCenterStrength,forceLinkDistanceMethod:l=mt.forceLinkDistanceMethod,forceCollideRadiusMethod:u=mt.forceCollideRadiusMethod,disableCollide:h=mt.disableCollide,disableCenter:f=mt.disableCenter,disableLink:d=mt.disableLink,disableCharge:m=mt.disableCharge})=>(cu.alpha(1).stop().numDimensions(t).velocityDecay(s).force("collide",h?null:sf().radius(u).iterations(1)).force("center",f?null:nf().strength(c)).force("charge",m?null:rf().strength(i).distanceMin(r).distanceMax(o)).nodes(n).force("link",d?null:of(e).id(p=>p.ref_id).distance(l).strength(a)).alpha(1).restart(),cu),pw=({link:n,animated:e})=>{const t=E.useRef(null),s=Jt(),[i,r]=E.useState(new X(0,0,0)),[o,a]=E.useState(new X(0,0,0)),[c,l]=E.useState(8947848),u=nt(h=>h.selectionGraphData);return E.useEffect(()=>{var d,m,p,_,v,T;const h=(s==null?void 0:s.ref_id)||"",f=s&&(h===n.target||h===n.source);!n.onlyVisibleOnSelect||f?(r(new X(((d=n.sourcePosition)==null?void 0:d.x)||0,((m=n.sourcePosition)==null?void 0:m.y)||0,((p=n.sourcePosition)==null?void 0:p.z)||0)),a(new X(((_=n.targetPosition)==null?void 0:_.x)||0,((v=n.targetPosition)==null?void 0:v.y)||0,((T=n.targetPosition)==null?void 0:T.z)||0))):(r(new X(0,0,0)),a(new X(0,0,0))),l(f?n.color||af.children.segmentColor:s?5592405:8947848)},[s,n]),Rt(()=>{if(e&&t.current){const h=u.nodes.find(d=>d.ref_id===n.source),f=u.nodes.find(d=>d.ref_id===n.target);t.current.start.set((h==null?void 0:h.x)||0,(h==null?void 0:h.y)||0,(h==null?void 0:h.z)||0),t.current.end.set((f==null?void 0:f.x)||0,(f==null?void 0:f.y)||0,(f==null?void 0:f.z)||0)}}),M.jsx(M.Fragment,{children:M.jsx(Rp,{ref:t,color:"0xFFFFFF",end:o,start:i})})},mw=({links:n,simulation:e})=>{const t=E.useRef(null);return E.useEffect(()=>function(){t.current&&t.current.clear()},[t]),Rt(()=>{if(t.current){const s=e.nodes();t.current.children.forEach((r,o)=>{var u;const a=n[o],c=s.find(h=>a.source===h.ref_id),l=s.find(h=>a.target===h.ref_id);(u=r.position)==null||u.set((c.x+l.x)/2,(c.y+l.y)/2,(c.z+l.z)/2)})}}),n.length?M.jsx("group",{ref:t,children:n.map(s=>M.jsx("mesh",{children:M.jsx(dr,{center:!0,sprite:!0,children:M.jsxs(_w,{direction:"row",justify:"center",onClick:i=>{i.stopPropagation()},onPointerOut:i=>{i.stopPropagation()},onPointerOver:i=>{i.stopPropagation()},children:[M.jsx("span",{children:s.edge_type}),M.jsx(xs,{className:"icon",children:M.jsx(rp,{})})]})})},s.ref_id))}):null},_w=Le(xs)` text-align: center; outline-offset: 0px; @@ -781,7 +781,7 @@ ${a}`}const Kc=E.memo(({node:n,hide:e})=>{const t=E.useRef(null),s=Jt(),i=cf(),o justify-content: center; color: white; font-size: 20px; -`;Object.values(bf).map(n=>n);const Ai=n=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:n?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:n?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:n?"#ffffff66":"#5078f2",fontColor:n?"#ffffff66":"#fff"}}),zw=new X,Zd=E.memo(()=>{var k;const n=E.useRef(null),e=hr(x=>x.setSidebarOpen),[t,s]=$r.useState(null),{open:i}=Cr("editNodeName"),{open:r}=Cr("addEdgeToNode"),{open:o}=Cr("mergeToNode"),{open:a}=Cr("createBounty"),[c]=hu(x=>[x.isAdmin]),[l]=xn(x=>[x.addNewNode]),u=Jt(),{showSelectionGraph:h,selectionGraphData:f,setSelectedNode:d,setShowSelectionGraph:m}=nt(x=>x),p=cp(),_=E.useCallback(async()=>{try{if(u!=null&&u.ref_id){const x=await hf(u==null?void 0:u.ref_id,f.nodes.length||0);x&&l(x)}}catch(x){console.log(x)}},[l,u==null?void 0:u.ref_id,f.nodes.length]);Rt(()=>{v()});const v=E.useCallback(()=>{const x=h?f:p;if(n.current){const C=x==null?void 0:x.nodes.find(b=>b.ref_id===(u==null?void 0:u.ref_id));if(C){const b=zw.set(C==null?void 0:C.x,C==null?void 0:C.y,C==null?void 0:C.z);n.current.position.copy(b)}}},[u,h,f,p]),T=E.useMemo(()=>{const x=c?[{key:"control-key-1",colors:Ai(h).focus,icon:M.jsx(dp,{}),left:-80,className:"add",onClick:b=>{s(b.currentTarget)}},{key:"control-key-2",colors:Ai(h).focus,icon:M.jsx(hp,{}),left:-40,className:"edit",onClick:()=>{i()}}]:[],C=[{key:"control-key-4",colors:Ai(h).focus,icon:M.jsx(sp,{}),left:0,className:"expand",onClick:()=>{const b=!h;m(b),b&&e(!0)}},{key:"control-key-5",colors:Ai(!0).close,icon:M.jsx(df,{}),left:40,className:"exit",onClick:()=>{_()}},{key:"control-key-6",colors:Ai(!0).close,icon:M.jsx(np,{}),left:40,className:"exit",onClick:()=>{m(!1),d(null)}}];return[...x,...C].map((b,O)=>({...b,left:-80+O*40}))},[c,h,i,m,e,_,d]);if(!u)return null;const S=()=>{s(null)},y=!!t,g=y?"simple-popover":void 0,w=!!(u&&((k=u==null?void 0:u.node_type)==null?void 0:k.toLowerCase())==="function");return M.jsx("group",{ref:n,children:M.jsxs(dr,{center:!0,className:"control-panel",onClick:x=>x.stopPropagation(),onKeyDown:x=>x.stopPropagation(),onPointerDown:x=>x.stopPropagation(),onPointerOut:x=>x.stopPropagation(),onPointerOver:x=>x.stopPropagation(),onPointerUp:x=>x.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[T.map(x=>M.jsx(Vw,{backgroundColor:x.colors.backgroundColor,borderColor:x.colors.borderColor,className:x.className,fontColor:x.colors.fontColor,left:x.left,onClick:C=>{C.stopPropagation(),x.onClick(C)},children:x.icon},x.key)),w&&M.jsx(Hw,{left:2,onClick:()=>{a()},children:"Create Test"}),M.jsxs(jw,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:g,onClose:S,open:y,transformOrigin:{vertical:"top",horizontal:"right"},children:[M.jsxs(lu,{"data-testid":"merge",onClick:()=>{o(),S()},children:[M.jsx(lp,{"data-testid":"MergeIcon"})," Merge"]}),M.jsxs(lu,{"data-testid":"add_edge",onClick:()=>{r(),S()},children:[M.jsx(up,{"data-testid":"AddCircleIcon"})," Add edge"]})]})]})})});Zd.displayName="NodeControls";const Vw=Le.div` +`;Object.values(bf).map(n=>n);const Ai=n=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:n?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:n?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:n?"#ffffff66":"#5078f2",fontColor:n?"#ffffff66":"#fff"}}),zw=new X,Zd=E.memo(()=>{var k;const n=E.useRef(null),e=hr(x=>x.setSidebarOpen),[t,s]=$r.useState(null),{open:i}=Cr("editNodeName"),{open:r}=Cr("addEdgeToNode"),{open:o}=Cr("mergeToNode"),{open:a}=Cr("createBounty"),[c]=hu(x=>[x.isAdmin]),[l]=xn(x=>[x.addNewNode]),u=Jt(),{showSelectionGraph:h,selectionGraphData:f,setSelectedNode:d,setShowSelectionGraph:m}=nt(x=>x),p=cp(),_=E.useCallback(async()=>{try{if(u!=null&&u.ref_id){const x=await hf(u==null?void 0:u.ref_id,f.nodes.length||0);x&&l(x)}}catch(x){console.log(x)}},[l,u==null?void 0:u.ref_id,f.nodes.length]);Rt(()=>{v()});const v=E.useCallback(()=>{const x=h?f:p;if(n.current){const C=x==null?void 0:x.nodes.find(b=>b.ref_id===(u==null?void 0:u.ref_id));if(C){const b=zw.set(C==null?void 0:C.x,C==null?void 0:C.y,C==null?void 0:C.z);n.current.position.copy(b)}}},[u,h,f,p]),T=E.useMemo(()=>{const x=c?[{key:"control-key-1",colors:Ai(h).focus,icon:M.jsx(dp,{}),left:-80,className:"add",onClick:b=>{s(b.currentTarget)}},{key:"control-key-2",colors:Ai(h).focus,icon:M.jsx(hp,{}),left:-40,className:"edit",onClick:()=>{i()}}]:[],C=[{key:"control-key-4",colors:Ai(h).focus,icon:M.jsx(op,{}),left:0,className:"expand",onClick:()=>{const b=!h;m(b),b&&e(!0)}},{key:"control-key-5",colors:Ai(!0).close,icon:M.jsx(df,{}),left:40,className:"exit",onClick:()=>{_()}},{key:"control-key-6",colors:Ai(!0).close,icon:M.jsx(ap,{}),left:40,className:"exit",onClick:()=>{m(!1),d(null)}}];return[...x,...C].map((b,O)=>({...b,left:-80+O*40}))},[c,h,i,m,e,_,d]);if(!u)return null;const S=()=>{s(null)},y=!!t,g=y?"simple-popover":void 0,w=!!(u&&((k=u==null?void 0:u.node_type)==null?void 0:k.toLowerCase())==="function");return M.jsx("group",{ref:n,children:M.jsxs(dr,{center:!0,className:"control-panel",onClick:x=>x.stopPropagation(),onKeyDown:x=>x.stopPropagation(),onPointerDown:x=>x.stopPropagation(),onPointerOut:x=>x.stopPropagation(),onPointerOver:x=>x.stopPropagation(),onPointerUp:x=>x.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[T.map(x=>M.jsx(Vw,{backgroundColor:x.colors.backgroundColor,borderColor:x.colors.borderColor,className:x.className,fontColor:x.colors.fontColor,left:x.left,onClick:C=>{C.stopPropagation(),x.onClick(C)},children:x.icon},x.key)),w&&M.jsx(Hw,{left:2,onClick:()=>{a()},children:"Create Test"}),M.jsxs(jw,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:g,onClose:S,open:y,transformOrigin:{vertical:"top",horizontal:"right"},children:[M.jsxs(lu,{"data-testid":"merge",onClick:()=>{o(),S()},children:[M.jsx(lp,{"data-testid":"MergeIcon"})," Merge"]}),M.jsxs(lu,{"data-testid":"add_edge",onClick:()=>{r(),S()},children:[M.jsx(up,{"data-testid":"AddCircleIcon"})," Add edge"]})]})]})})});Zd.displayName="NodeControls";const Vw=Le.div` position: fixed; top: -60px; left: ${n=>-7+n.left}px; @@ -853,7 +853,7 @@ ${a}`}const Kc=E.memo(({node:n,hide:e})=>{const t=E.useRef(null),s=Jt(),i=cf(),o top: 0; background-color: ${pe.black}; z-index: 1; -`,Yw=()=>M.jsx(dr,{children:M.jsx(yp,{})}),Zw=()=>{const{universeColor:n}=rp("universe",{universeColor:pe.black}),e=Jt(),t=E.useMemo(()=>e!=null&&e.node_type?fu(e.node_type):Fx,[e]);return M.jsxs(M.Fragment,{children:[M.jsx("color",{args:[n],attach:"background"}),M.jsx(Af,{}),M.jsx(Wx,{}),M.jsxs(Fp,{children:[M.jsxs(_m,{autoClear:!1,multisampling:8,children:[M.jsx(xm,{darkness:.7,eskil:!1,offset:.05}),M.jsx(vm,{luminanceThreshold:1,mipmapBlur:!0,resolutionX:Oe.AUTO_SIZE,resolutionY:Oe.AUTO_SIZE}),M.jsx(ym,{blendFunction:ee.SCREEN,blur:!0,edgeStrength:4,hiddenEdgeColor:t,visibleEdgeColor:t})]}),M.jsx(qw,{})]})]})};let xa=null;const $w={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Pi.x,Pi.y,Pi.z]},Xw=()=>{const[n,e,t]=[Ns(a=>a.setIsUserScrollingOnHtmlPanel),Ns(a=>a.setIsUserScrolling),Ns(a=>a.setUserMovedCamera)],s=xn(a=>a.isFetching),i=hr(a=>a.universeQuestionIsOpen),r=E.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;xa&&clearTimeout(xa),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{e(!1),n(!1)},200)},[e,n,t]),o=E.useCallback(a=>mf(a,"threeState"),[]);return M.jsxs(Qw,{children:[M.jsx(E.Suspense,{fallback:null,children:M.jsxs(Ef,{camera:$w,id:"universe-canvas",onCreated:o,onWheel:r,children:[_f&&M.jsx(Of,{position:"bottom-right"}),M.jsxs(E.Suspense,{fallback:M.jsx(Yw,{}),children:[M.jsx(Pp,{}),M.jsx(Ip,{}),M.jsx(Np,{}),M.jsx(Zw,{})]})]})}),i&&M.jsx(Sm,{}),s&&M.jsx(Ww,{fullSize:!1}),M.jsx(ip,{})]})},Qw=Le(xs)` +`,Yw=()=>M.jsx(dr,{children:M.jsx(yp,{})}),Zw=()=>{const{universeColor:n}=np("universe",{universeColor:pe.black}),e=Jt(),t=E.useMemo(()=>e!=null&&e.node_type?fu(e.node_type):Fx,[e]);return M.jsxs(M.Fragment,{children:[M.jsx("color",{args:[n],attach:"background"}),M.jsx(Af,{}),M.jsx(Wx,{}),M.jsxs(Fp,{children:[M.jsxs(_m,{autoClear:!1,multisampling:8,children:[M.jsx(xm,{darkness:.7,eskil:!1,offset:.05}),M.jsx(vm,{luminanceThreshold:1,mipmapBlur:!0,resolutionX:Oe.AUTO_SIZE,resolutionY:Oe.AUTO_SIZE}),M.jsx(ym,{blendFunction:ee.SCREEN,blur:!0,edgeStrength:4,hiddenEdgeColor:t,visibleEdgeColor:t})]}),M.jsx(qw,{})]})]})};let xa=null;const $w={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Pi.x,Pi.y,Pi.z]},Xw=()=>{const[n,e,t]=[Ns(a=>a.setIsUserScrollingOnHtmlPanel),Ns(a=>a.setIsUserScrolling),Ns(a=>a.setUserMovedCamera)],s=xn(a=>a.isFetching),i=hr(a=>a.universeQuestionIsOpen),r=E.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;xa&&clearTimeout(xa),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{e(!1),n(!1)},200)},[e,n,t]),o=E.useCallback(a=>mf(a,"threeState"),[]);return M.jsxs(Qw,{children:[M.jsx(E.Suspense,{fallback:null,children:M.jsxs(Ef,{camera:$w,id:"universe-canvas",onCreated:o,onWheel:r,children:[_f&&M.jsx(Of,{position:"bottom-right"}),M.jsxs(E.Suspense,{fallback:M.jsx(Yw,{}),children:[M.jsx(Pp,{}),M.jsx(Ip,{}),M.jsx(Np,{}),M.jsx(Zw,{})]})]})}),i&&M.jsx(Sm,{}),s&&M.jsx(Ww,{fullSize:!1}),M.jsx(sp,{})]})},Qw=Le(xs)` flex: 1 1 100%; position: relative; -`,Lk=E.memo(Xw);export{Lk as Universe}; +`,Bk=E.memo(Xw);export{Bk as Universe}; diff --git a/build/assets/index-b9eee39b.js b/build/assets/index-5e3fe062.js similarity index 95% rename from build/assets/index-b9eee39b.js rename to build/assets/index-5e3fe062.js index 3d9c85bf9..617edb5f3 100644 --- a/build/assets/index-b9eee39b.js +++ b/build/assets/index-5e3fe062.js @@ -1,4 +1,4 @@ -import{af as Fg,ag as bi,ad as Xp,ah as o4,r as B,e as sf,ai as s4,f as cc,aj as Rs,ak as fc,a as be,j as y,g as Hg,d as Ug,s as Tr,n as l4,i as vn,l as lf,u as Wg,b as Id,c as Xr,h as Yg,al as Dd,am as Vg,an as u4,ao as c4,ap as f4,aq as Zp,ar as Bs,as as d4,at as h4,au as Gg,av as xr,t as H,v as L,aw as qg,N as Ul,F,z as Sn,H as Qi,ax as Kg,I as dt,ay as p4,A as m4,y as Fn,G as At,az as ea,aA as Bt,aB as y4,q as ot,E as Ro,M as Xg,ac as g4,aC as Zg,Y as uf,U as v4,aD as x4,aE as Bo,aF as ta,aG as _n,aH as Jg,aI as Ld,aJ as na,aK as Ee,R as U,aL as b4,aM as Qg,aN as w4,aO as ev,aP as S4,aQ as _4,aR as O4,aS as zo,aT as Nd,aU as tv,aV as nv,aW as k4,aX as C4,aY as P4,aZ as Wl,a_ as A4,a$ as j4,P as _e,b0 as T4,b1 as E4,b2 as M4,D as zt,b3 as Jp,a9 as $4,b4 as I4,J as rn,b5 as D4,b6 as L4,w as N4,b7 as R4}from"./index-87686c58.js";import{v as ei,e as B4,f as Rd,g as z4,F as F4,b as rv,A as In,T as ra,h as Ti,B as Dt,i as iv,P as Yl,j as H4,k as Bd,l as U4,c as W4,m as Y4,n as V4,I as av,o as Vl}from"./index-67098fb8.js";import{S as ov}from"./SearchIcon-b6b2a06c.js";import{c as G4,a as dc,C as Gl}from"./ClipLoader-3d43cca0.js";import{S as sv}from"./Skeleton-20b798ec.js";import{P as zd}from"./PlusIcon-dd101fe0.js";import{C as lv}from"./CheckIcon-dab8ab94.js";import{u as q4,F as K4,P as X4}from"./Stack-448c401b.js";import{S as Z4,F as Qp}from"./FormControlLabel-2c99cf32.js";import{c as Fd}from"./createSvgIcon-bb70c00d.js";import{B as J4}from"./index-0b3081fa.js";import{u as uv}from"./index-ea2300d8.js";const e1="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",Q4=async e=>{let t=await bi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await bi.keysend(e1,e),!(t!=null&&t.success)){if(t=await bi.topup(),t||(t=await bi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await Q4(t),r={amount:t,refid:e};return await Fg.post("/boost",JSON.stringify(r)),n},tS=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},cv=(e,t)=>{if(!t)return null;const n=e.filter(a=>a.show_title&&a.link&&a.show_title===t.show_title&&a.episode_title===t.episode_title),r=Xp.groupBy(n,a=>a.timestamp),i=Xp.values(r).reduce((a,o)=>(o[0]&&a.push(o[0]),a),[]);return i.sort((a,o)=>{var d,h;const[s]=((d=a.timestamp)==null?void 0:d.split("-"))||[""],[l]=((h=o.timestamp)==null?void 0:h.split("-"))||[""],u=ei(s),f=ei(l);return u-f}),i},nS=async e=>{await o4(async()=>{try{await bi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},rS=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},iS={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},aS=iS;function oS(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const sS=2;function fv(e,t){return e-t}function wa(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function t1(e,t){var n;const{index:r}=(n=e.reduce((i,a,o)=>{const s=Math.abs(t-a);return i===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}%`})}},dS=e=>e;let vs;function hc(){return vs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?vs=CSS.supports("touch-action","none"):vs=!0),vs}function hS(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:f,onChangeCommitted:d,orientation:h="horizontal",rootRef:m,scale:g=dS,step:v=1,tabIndex:b,value:O}=e,k=B.useRef(),[C,P]=B.useState(-1),[_,w]=B.useState(-1),[j,T]=B.useState(!1),I=B.useRef(0),[z,M]=q4({controlled:O,default:n??l,name:"Slider"}),D=f&&((R,q,te)=>{const se=R.nativeEvent||R,oe=new se.constructor(se.type,se);Object.defineProperty(oe,"target",{writable:!0,value:{value:q,name:u}}),f(oe,q,te)}),W=Array.isArray(z);let V=W?z.slice().sort(fv):[z];V=V.map(R=>wa(R,l,s));const Y=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((R,q)=>({value:l+v*q})):o||[],X=Y.map(R=>R.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:ee,ref:E}=B4(),[ye,fe]=B.useState(-1),$=B.useRef(),Oe=sf(E,$),ae=sf(m,Oe),Pe=R=>q=>{var te;const se=Number(q.currentTarget.getAttribute("data-index"));ee(q),Z.current===!0&&fe(se),w(se),R==null||(te=R.onFocus)==null||te.call(R,q)},ht=R=>q=>{var te;G(q),Z.current===!1&&fe(-1),w(-1),R==null||(te=R.onBlur)==null||te.call(R,q)};s4(()=>{if(r&&$.current.contains(document.activeElement)){var R;(R=document.activeElement)==null||R.blur()}},[r]),r&&C!==-1&&P(-1),r&&ye!==-1&&fe(-1);const je=R=>q=>{var te;(te=R.onChange)==null||te.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=V[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(Y&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:te}=$,{width:se,height:oe,bottom:Re,left:ke}=te.getBoundingClientRect();let $e;ue.indexOf("vertical")===0?$e=(Re-R.y)/oe:$e=(R.x-ke)/se,ue.indexOf("-reverse")!==-1&&($e=1-$e);let Ve;if(Ve=lS($e,l,s),v)Ve=cS(Ve,v,l);else{const pt=t1(X,Ve);Ve=X[pt]}Ve=wa(Ve,l,s);let kt=0;if(W){q?kt=re.current:kt=t1(V,Ve),i&&(Ve=wa(Ve,V[kt-1]||-1/0,V[kt+1]||1/0));const pt=Ve;Ve=n1({values:V,newValue:Ve,index:kt}),i&&q||(kt=Ve.indexOf(pt),re.current=kt)}return{newValue:Ve,activeIndex:kt}},J=cc(R=>{const q=ms(R,k);if(!q)return;if(I.current+=1,R.type==="mousemove"&&R.buttons===0){we(R);return}const{newValue:te,activeIndex:se}=ce({finger:q,move:!0});ys({sliderRef:$,activeIndex:se,setActive:P}),M(te),!j&&I.current>sS&&T(!0),D&&!gs(te,z)&&D(R,te,se)}),we=cc(R=>{const q=ms(R,k);if(T(!1),!q)return;const{newValue:te}=ce({finger:q,move:!0});P(-1),R.type==="touchend"&&w(-1),d&&d(R,te),k.current=void 0,ve()}),pe=cc(R=>{if(r)return;hc()||R.preventDefault();const q=R.changedTouches[0];q!=null&&(k.current=q.identifier);const te=ms(R,k);if(te!==!1){const{newValue:oe,activeIndex:Re}=ce({finger:te});ys({sliderRef:$,activeIndex:Re,setActive:P}),M(oe),D&&!gs(oe,z)&&D(R,oe,Re)}I.current=0;const se=Rs($.current);se.addEventListener("touchmove",J),se.addEventListener("touchend",we)}),ve=B.useCallback(()=>{const R=Rs($.current);R.removeEventListener("mousemove",J),R.removeEventListener("mouseup",we),R.removeEventListener("touchmove",J),R.removeEventListener("touchend",we)},[we,J]);B.useEffect(()=>{const{current:R}=$;return R.addEventListener("touchstart",pe,{passive:hc()}),()=>{R.removeEventListener("touchstart",pe,{passive:hc()}),ve()}},[ve,pe]),B.useEffect(()=>{r&&ve()},[r,ve]);const He=R=>q=>{var te;if((te=R.onMouseDown)==null||te.call(R,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ms(q,k);if(se!==!1){const{newValue:Re,activeIndex:ke}=ce({finger:se});ys({sliderRef:$,activeIndex:ke,setActive:P}),M(Re),D&&!gs(Re,z)&&D(q,Re,ke)}I.current=0;const oe=Rs($.current);oe.addEventListener("mousemove",J),oe.addEventListener("mouseup",we)},nt=Ys(W?V[0]:l,l,s),ct=Ys(V[V.length-1],l,s)-nt,en=(R={})=>{const q=fc(R),te={onMouseDown:He(q||{})},se=be({},q,te);return be({},R,{ref:ae},se)},Ue=R=>q=>{var te;(te=R.onMouseOver)==null||te.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=R=>q=>{var te;(te=R.onMouseLeave)==null||te.call(R,q),w(-1)};return{active:C,axis:ue,axisProps:fS,dragging:j,focusedThumbIndex:ye,getHiddenInputProps:(R={})=>{var q;const te=fc(R),se={onChange:je(te||{}),onFocus:Pe(te||{}),onBlur:ht(te||{})},oe=be({},te,se);return be({tabIndex:b,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":g(s),"aria-valuemin":g(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},R,oe,{style:be({},aS,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:en,getThumbProps:(R={})=>{const q=fc(R),te={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return be({},R,q,te)},marks:Y,open:_,range:W,rootRef:ae,trackLeap:ct,trackOffset:nt,values:V,getThumbStyle:R=>({pointerEvents:C!==-1&&C!==R?"none":void 0})}}const pS=Fd(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"),mS=Fd(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"),yS=Fd(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 gS(e){return Ug("MuiCheckbox",e)}const vS=Hg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),pc=vS,xS=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],bS=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${vn(r)}`,`size${vn(i)}`]},o=Yg(a,gS,t);return be({},t,o)},wS=Tr(Z4,{shouldForwardProp:e=>l4(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${vn(n.size)}`],n.color!=="default"&&t[`color${vn(n.color)}`]]}})(({theme:e,ownerState:t})=>be({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})`:lf(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${pc.checked}, &.${pc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),SS=y.jsx(mS,{}),_S=y.jsx(pS,{}),OS=y.jsx(yS,{}),kS=B.forwardRef(function(t,n){var r,i;const a=Wg({props:t,name:"MuiCheckbox"}),{checkedIcon:o=SS,color:s="primary",icon:l=_S,indeterminate:u=!1,indeterminateIcon:f=OS,inputProps:d,size:h="medium",className:m}=a,g=Id(a,xS),v=u?f:l,b=u?f:o,O=be({},a,{color:s,indeterminate:u,size:h}),k=bS(O);return y.jsx(wS,be({type:"checkbox",inputProps:be({"data-indeterminate":u},d),icon:B.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:B.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:h}),ownerState:O,ref:n,className:Xr(k.root,m)},g,{classes:k}))}),CS=kS,PS=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function AS(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=Vg(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=a.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"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function jS(e){return typeof e=="function"?e():e}function xs(e,t,n){const r=jS(n),i=AS(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const TS=B.forwardRef(function(t,n){const r=Dd(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:f="down",easing:d=i,in:h,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:O,onExiting:k,style:C,timeout:P=a,TransitionComponent:_=u4}=t,w=Id(t,PS),j=B.useRef(null),T=sf(l.ref,j,n),I=G=>ee=>{G&&(ee===void 0?G(j.current):G(j.current,ee))},z=I((G,ee)=>{xs(f,G,u),f4(G),m&&m(G,ee)}),M=I((G,ee)=>{const E=Zp({timeout:P,style:C,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",be({},E)),G.style.transition=r.transitions.create("transform",be({},E)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,ee)}),D=I(g),W=I(k),V=I(G=>{const ee=Zp({timeout:P,style:C,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",ee),G.style.transition=r.transitions.create("transform",ee),xs(f,G,u),b&&b(G)}),Y=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),X=G=>{o&&o(j.current,G)},Z=B.useCallback(()=>{j.current&&xs(f,j.current,u)},[f,u]);return B.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=c4(()=>{j.current&&xs(f,j.current,u)}),ee=Vg(j.current);return ee.addEventListener("resize",G),()=>{G.clear(),ee.removeEventListener("resize",G)}},[f,h,u]),B.useEffect(()=>{h||Z()},[h,Z]),y.jsx(_,be({nodeRef:j,onEnter:z,onEntered:D,onEntering:M,onExit:V,onExited:Y,onExiting:W,addEndListener:X,appear:s,in:h,timeout:P},w,{children:(G,ee)=>B.cloneElement(l,be({ref:T,style:be({visibility:G==="exited"&&!h?"hidden":void 0},C,l.props.style)},ee))}))}),Ei=TS,ES=e=>!e||!Bs(e),MS=ES;function $S(e){return Ug("MuiSlider",e)}const IS=Hg("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"]),En=IS,DS=e=>{const{open:t}=e;return{offset:Xr(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function LS(e){const{children:t,className:n,value:r}=e,i=DS(e);return t?B.cloneElement(t,{className:Xr(t.props.className)},y.jsxs(B.Fragment,{children:[t.props.children,y.jsx("span",{className:Xr(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const NS=["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 r1(e){return e}const RS=Tr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${vn(n.color)}`],n.size!=="medium"&&t[`size${vn(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})=>be({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"&&be({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"&&be({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"},[`&.${En.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${En.dragging}`]:{[`& .${En.thumb}, & .${En.track}`]:{transition:"none"}}})),BS=Tr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>be({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})),zS=Tr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?d4(e.palette[t.color].main,.62):h4(e.palette[t.color].main,.5);return be({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})}),FS=Tr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${vn(n.color)}`],n.size!=="medium"&&t[`thumbSize${vn(n.size)}`]]}})(({theme:e,ownerState:t})=>be({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":be({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, &.${En.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${En.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),HS=Tr(LS,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>be({[`&.${En.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"})),US=Tr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Gg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>be({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})),WS=Tr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Gg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>be({},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})),YS=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${vn(s)}`,l&&`size${vn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${vn(l)}`,s&&`thumbColor${vn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Yg(u,$S,o)},VS=({children:e})=>e,GS=B.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,O,k,C,P,_,w,j,T,I,z;const M=Wg({props:t,name:"MuiSlider"}),W=Dd().direction==="rtl",{"aria-label":V,"aria-valuetext":Y,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:ee={},color:E="primary",classes:ye,className:fe,disableSwap:$=!1,disabled:Oe=!1,getAriaLabel:ae,getAriaValueText:Pe,marks:ht=!1,max:je=100,min:re=0,orientation:ue="horizontal",size:ce="medium",step:J=1,scale:we=r1,slotProps:pe,slots:ve,track:He="normal",valueLabelDisplay:nt="off",valueLabelFormat:ct=r1}=M,en=Id(M,NS),Ue=be({},M,{isRtl:W,max:je,min:re,classes:ye,disabled:Oe,disableSwap:$,orientation:ue,marks:ht,color:E,size:ce,step:J,scale:we,track:He,valueLabelDisplay:nt,valueLabelFormat:ct}),{axisProps:Ne,getRootProps:rt,getHiddenInputProps:tn,getThumbProps:Cn,open:R,active:q,axis:te,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ve,trackLeap:kt,getThumbStyle:pt}=hS(be({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(Te=>Te.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=YS(Ue),Lt=(r=(i=ve==null?void 0:ve.root)!=null?i:G.Root)!=null?r:RS,oi=(a=(o=ve==null?void 0:ve.rail)!=null?o:G.Rail)!=null?a:BS,Nr=(s=(l=ve==null?void 0:ve.track)!=null?l:G.Track)!=null?s:zS,Ge=(u=(f=ve==null?void 0:ve.thumb)!=null?f:G.Thumb)!=null?u:FS,da=(d=(h=ve==null?void 0:ve.valueLabel)!=null?h:G.ValueLabel)!=null?d:HS,si=(m=(g=ve==null?void 0:ve.mark)!=null?g:G.Mark)!=null?m:US,fr=(v=(b=ve==null?void 0:ve.markLabel)!=null?b:G.MarkLabel)!=null?v:WS,li=(O=(k=ve==null?void 0:ve.input)!=null?k:G.Input)!=null?O:"input",dr=(C=pe==null?void 0:pe.root)!=null?C:ee.root,hr=(P=pe==null?void 0:pe.rail)!=null?P:ee.rail,pr=(_=pe==null?void 0:pe.track)!=null?_:ee.track,ha=(w=pe==null?void 0:pe.thumb)!=null?w:ee.thumb,mr=(j=pe==null?void 0:pe.valueLabel)!=null?j:ee.valueLabel,Uu=(T=pe==null?void 0:pe.mark)!=null?T:ee.mark,Rr=(I=pe==null?void 0:pe.markLabel)!=null?I:ee.markLabel,ui=(z=pe==null?void 0:pe.input)!=null?z:ee.input,de=xr({elementType:Lt,getSlotProps:rt,externalSlotProps:dr,externalForwardedProps:en,additionalProps:be({},MS(Lt)&&{as:Z}),ownerState:be({},Ue,dr==null?void 0:dr.ownerState),className:[Ie.root,fe]}),Wu=xr({elementType:oi,externalSlotProps:hr,ownerState:Ue,className:Ie.rail}),Yu=xr({elementType:Nr,externalSlotProps:pr,additionalProps:{style:be({},Ne[te].offset(Ve),Ne[te].leap(kt))},ownerState:be({},Ue,pr==null?void 0:pr.ownerState),className:Ie.track}),Et=xr({elementType:Ge,getSlotProps:Cn,externalSlotProps:ha,ownerState:be({},Ue,ha==null?void 0:ha.ownerState),className:Ie.thumb}),pa=xr({elementType:da,externalSlotProps:mr,ownerState:be({},Ue,mr==null?void 0:mr.ownerState),className:Ie.valueLabel}),Be=xr({elementType:si,externalSlotProps:Uu,ownerState:Ue,className:Ie.mark}),Vn=xr({elementType:fr,externalSlotProps:Rr,ownerState:Ue,className:Ie.markLabel}),Vu=xr({elementType:li,getSlotProps:tn,externalSlotProps:ui,ownerState:Ue});return y.jsxs(Lt,be({},de,{children:[y.jsx(oi,be({},Wu)),y.jsx(Nr,be({},Yu)),ke.filter(Te=>Te.value>=re&&Te.value<=je).map((Te,Ze)=>{const Kt=Ys(Te.value,re,je),st=Ne[te].offset(Kt);let mt;return He===!1?mt=$e.indexOf(Te.value)!==-1:mt=He==="normal"&&(oe?Te.value>=$e[0]&&Te.value<=$e[$e.length-1]:Te.value<=$e[0])||He==="inverted"&&(oe?Te.value<=$e[0]||Te.value>=$e[$e.length-1]:Te.value>=$e[0]),y.jsxs(B.Fragment,{children:[y.jsx(si,be({"data-index":Ze},Be,!Bs(si)&&{markActive:mt},{style:be({},st,Be.style),className:Xr(Be.className,mt&&Ie.markActive)})),Te.label!=null?y.jsx(fr,be({"aria-hidden":!0,"data-index":Ze},Vn,!Bs(fr)&&{markLabelActive:mt},{style:be({},st,Vn.style),className:Xr(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:Te.label})):null]},Ze)}),$e.map((Te,Ze)=>{const Kt=Ys(Te,re,je),st=Ne[te].offset(Kt),mt=nt==="off"?VS:da;return y.jsx(mt,be({},!Bs(mt)&&{valueLabelFormat:ct,valueLabelDisplay:nt,value:typeof ct=="function"?ct(we(Te),Ze):ct,index:Ze,open:R===Ze||q===Ze||nt==="on",disabled:Oe},pa,{children:y.jsx(Ge,be({"data-index":Ze},Et,{className:Xr(Ie.thumb,Et.className,q===Ze&&Ie.active,se===Ze&&Ie.focusVisible),style:be({},st,pt(Ze),Et.style),children:y.jsx(li,be({"data-index":Ze,"aria-label":ae?ae(Ze):V,"aria-valuenow":we(Te),"aria-labelledby":X,"aria-valuetext":Pe?Pe(we(Te),Ze):Y,value:$e[Ze]},Vu))}))}),Ze)})]}))}),ql=GS,qS=(e,t="down")=>{const n=Dd(),[r,i]=B.useState(!1),a=n.breakpoints[t](e).split("@media")[1].trim();return B.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(a);i(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[a]),r},KS=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function XS(e){return e.tldr_topic??e.name}var Vs=globalThis&&globalThis.__assign||function(){return Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;ny.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"keyboard_arrow_left",children:[y.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:y.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1428_267)",children:y.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),e8=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"arrow_forward",children:[y.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_8980_24763)",children:y.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),t8=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` +import{af as Fg,ag as bi,ad as Xp,ah as o4,r as B,e as sf,ai as s4,f as cc,aj as Rs,ak as fc,a as be,j as y,g as Hg,d as Ug,s as Tr,n as l4,i as vn,l as lf,u as Wg,b as Id,c as Xr,h as Yg,al as Dd,am as Vg,an as u4,ao as c4,ap as f4,aq as Zp,ar as Bs,as as d4,at as h4,au as Gg,av as xr,t as H,v as L,aw as qg,N as Ul,F,z as Sn,H as Qi,ax as Kg,I as dt,ay as p4,A as m4,y as Fn,G as At,az as ea,aA as Bt,aB as y4,q as ot,E as Ro,M as Xg,ac as g4,aC as Zg,Y as uf,U as v4,aD as x4,aE as Bo,aF as ta,aG as _n,aH as Jg,aI as Ld,aJ as na,aK as Ee,R as U,aL as b4,aM as Qg,aN as w4,aO as ev,aP as S4,aQ as _4,aR as O4,aS as zo,aT as Nd,aU as tv,aV as nv,aW as k4,aX as C4,aY as P4,aZ as Wl,a_ as A4,a$ as j4,P as _e,b0 as T4,b1 as E4,b2 as M4,D as zt,b3 as Jp,a9 as $4,b4 as I4,J as rn,b5 as D4,b6 as L4,w as N4,b7 as R4}from"./index-66901234.js";import{v as ei,d as B4,e as Rd,f as z4,F as F4,b as rv,A as In,T as ra,g as Ti,B as Dt,h as iv,P as Yl,i as H4,j as Bd,I as av,k as Vl}from"./index-2979d0f2.js";import{S as ov}from"./SearchIcon-19850845.js";import{c as U4,a as dc,C as Gl}from"./ClipLoader-81a960be.js";import{S as sv}from"./Skeleton-afb5f26b.js";import{P as zd}from"./PlusIcon-fe6ca88f.js";import{C as lv}from"./CheckIcon-306bcb61.js";import{u as W4,F as Y4,P as V4}from"./Stack-9fbe3064.js";import{S as G4,F as Qp}from"./FormControlLabel-f3a1de50.js";import{c as Fd}from"./createSvgIcon-d7fd46c8.js";import{B as q4}from"./index-f2d8f92e.js";import{u as uv}from"./index-f3d28701.js";import{b as K4,a as X4,c as Z4,d as J4}from"./index.esm-24fdfebf.js";const e1="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",Q4=async e=>{let t=await bi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await bi.keysend(e1,e),!(t!=null&&t.success)){if(t=await bi.topup(),t||(t=await bi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await Q4(t),r={amount:t,refid:e};return await Fg.post("/boost",JSON.stringify(r)),n},tS=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},cv=(e,t)=>{if(!t)return null;const n=e.filter(a=>a.show_title&&a.link&&a.show_title===t.show_title&&a.episode_title===t.episode_title),r=Xp.groupBy(n,a=>a.timestamp),i=Xp.values(r).reduce((a,o)=>(o[0]&&a.push(o[0]),a),[]);return i.sort((a,o)=>{var d,h;const[s]=((d=a.timestamp)==null?void 0:d.split("-"))||[""],[l]=((h=o.timestamp)==null?void 0:h.split("-"))||[""],u=ei(s),f=ei(l);return u-f}),i},nS=async e=>{await o4(async()=>{try{await bi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},rS=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},iS={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},aS=iS;function oS(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const sS=2;function fv(e,t){return e-t}function wa(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function t1(e,t){var n;const{index:r}=(n=e.reduce((i,a,o)=>{const s=Math.abs(t-a);return i===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}%`})}},dS=e=>e;let vs;function hc(){return vs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?vs=CSS.supports("touch-action","none"):vs=!0),vs}function hS(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:f,onChangeCommitted:d,orientation:h="horizontal",rootRef:m,scale:g=dS,step:v=1,tabIndex:b,value:O}=e,k=B.useRef(),[C,P]=B.useState(-1),[_,w]=B.useState(-1),[j,T]=B.useState(!1),I=B.useRef(0),[z,M]=W4({controlled:O,default:n??l,name:"Slider"}),D=f&&((R,q,te)=>{const se=R.nativeEvent||R,oe=new se.constructor(se.type,se);Object.defineProperty(oe,"target",{writable:!0,value:{value:q,name:u}}),f(oe,q,te)}),W=Array.isArray(z);let V=W?z.slice().sort(fv):[z];V=V.map(R=>wa(R,l,s));const Y=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((R,q)=>({value:l+v*q})):o||[],X=Y.map(R=>R.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:ee,ref:E}=B4(),[ye,fe]=B.useState(-1),$=B.useRef(),Oe=sf(E,$),ae=sf(m,Oe),Pe=R=>q=>{var te;const se=Number(q.currentTarget.getAttribute("data-index"));ee(q),Z.current===!0&&fe(se),w(se),R==null||(te=R.onFocus)==null||te.call(R,q)},ht=R=>q=>{var te;G(q),Z.current===!1&&fe(-1),w(-1),R==null||(te=R.onBlur)==null||te.call(R,q)};s4(()=>{if(r&&$.current.contains(document.activeElement)){var R;(R=document.activeElement)==null||R.blur()}},[r]),r&&C!==-1&&P(-1),r&&ye!==-1&&fe(-1);const je=R=>q=>{var te;(te=R.onChange)==null||te.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=V[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(Y&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:te}=$,{width:se,height:oe,bottom:Re,left:ke}=te.getBoundingClientRect();let $e;ue.indexOf("vertical")===0?$e=(Re-R.y)/oe:$e=(R.x-ke)/se,ue.indexOf("-reverse")!==-1&&($e=1-$e);let Ve;if(Ve=lS($e,l,s),v)Ve=cS(Ve,v,l);else{const pt=t1(X,Ve);Ve=X[pt]}Ve=wa(Ve,l,s);let kt=0;if(W){q?kt=re.current:kt=t1(V,Ve),i&&(Ve=wa(Ve,V[kt-1]||-1/0,V[kt+1]||1/0));const pt=Ve;Ve=n1({values:V,newValue:Ve,index:kt}),i&&q||(kt=Ve.indexOf(pt),re.current=kt)}return{newValue:Ve,activeIndex:kt}},J=cc(R=>{const q=ms(R,k);if(!q)return;if(I.current+=1,R.type==="mousemove"&&R.buttons===0){we(R);return}const{newValue:te,activeIndex:se}=ce({finger:q,move:!0});ys({sliderRef:$,activeIndex:se,setActive:P}),M(te),!j&&I.current>sS&&T(!0),D&&!gs(te,z)&&D(R,te,se)}),we=cc(R=>{const q=ms(R,k);if(T(!1),!q)return;const{newValue:te}=ce({finger:q,move:!0});P(-1),R.type==="touchend"&&w(-1),d&&d(R,te),k.current=void 0,ve()}),pe=cc(R=>{if(r)return;hc()||R.preventDefault();const q=R.changedTouches[0];q!=null&&(k.current=q.identifier);const te=ms(R,k);if(te!==!1){const{newValue:oe,activeIndex:Re}=ce({finger:te});ys({sliderRef:$,activeIndex:Re,setActive:P}),M(oe),D&&!gs(oe,z)&&D(R,oe,Re)}I.current=0;const se=Rs($.current);se.addEventListener("touchmove",J),se.addEventListener("touchend",we)}),ve=B.useCallback(()=>{const R=Rs($.current);R.removeEventListener("mousemove",J),R.removeEventListener("mouseup",we),R.removeEventListener("touchmove",J),R.removeEventListener("touchend",we)},[we,J]);B.useEffect(()=>{const{current:R}=$;return R.addEventListener("touchstart",pe,{passive:hc()}),()=>{R.removeEventListener("touchstart",pe,{passive:hc()}),ve()}},[ve,pe]),B.useEffect(()=>{r&&ve()},[r,ve]);const He=R=>q=>{var te;if((te=R.onMouseDown)==null||te.call(R,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ms(q,k);if(se!==!1){const{newValue:Re,activeIndex:ke}=ce({finger:se});ys({sliderRef:$,activeIndex:ke,setActive:P}),M(Re),D&&!gs(Re,z)&&D(q,Re,ke)}I.current=0;const oe=Rs($.current);oe.addEventListener("mousemove",J),oe.addEventListener("mouseup",we)},nt=Ys(W?V[0]:l,l,s),ct=Ys(V[V.length-1],l,s)-nt,en=(R={})=>{const q=fc(R),te={onMouseDown:He(q||{})},se=be({},q,te);return be({},R,{ref:ae},se)},Ue=R=>q=>{var te;(te=R.onMouseOver)==null||te.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=R=>q=>{var te;(te=R.onMouseLeave)==null||te.call(R,q),w(-1)};return{active:C,axis:ue,axisProps:fS,dragging:j,focusedThumbIndex:ye,getHiddenInputProps:(R={})=>{var q;const te=fc(R),se={onChange:je(te||{}),onFocus:Pe(te||{}),onBlur:ht(te||{})},oe=be({},te,se);return be({tabIndex:b,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":g(s),"aria-valuemin":g(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},R,oe,{style:be({},aS,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:en,getThumbProps:(R={})=>{const q=fc(R),te={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return be({},R,q,te)},marks:Y,open:_,range:W,rootRef:ae,trackLeap:ct,trackOffset:nt,values:V,getThumbStyle:R=>({pointerEvents:C!==-1&&C!==R?"none":void 0})}}const pS=Fd(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"),mS=Fd(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"),yS=Fd(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 gS(e){return Ug("MuiCheckbox",e)}const vS=Hg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),pc=vS,xS=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],bS=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${vn(r)}`,`size${vn(i)}`]},o=Yg(a,gS,t);return be({},t,o)},wS=Tr(G4,{shouldForwardProp:e=>l4(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${vn(n.size)}`],n.color!=="default"&&t[`color${vn(n.color)}`]]}})(({theme:e,ownerState:t})=>be({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})`:lf(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${pc.checked}, &.${pc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),SS=y.jsx(mS,{}),_S=y.jsx(pS,{}),OS=y.jsx(yS,{}),kS=B.forwardRef(function(t,n){var r,i;const a=Wg({props:t,name:"MuiCheckbox"}),{checkedIcon:o=SS,color:s="primary",icon:l=_S,indeterminate:u=!1,indeterminateIcon:f=OS,inputProps:d,size:h="medium",className:m}=a,g=Id(a,xS),v=u?f:l,b=u?f:o,O=be({},a,{color:s,indeterminate:u,size:h}),k=bS(O);return y.jsx(wS,be({type:"checkbox",inputProps:be({"data-indeterminate":u},d),icon:B.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:B.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:h}),ownerState:O,ref:n,className:Xr(k.root,m)},g,{classes:k}))}),CS=kS,PS=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function AS(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=Vg(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=a.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"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function jS(e){return typeof e=="function"?e():e}function xs(e,t,n){const r=jS(n),i=AS(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const TS=B.forwardRef(function(t,n){const r=Dd(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:f="down",easing:d=i,in:h,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:O,onExiting:k,style:C,timeout:P=a,TransitionComponent:_=u4}=t,w=Id(t,PS),j=B.useRef(null),T=sf(l.ref,j,n),I=G=>ee=>{G&&(ee===void 0?G(j.current):G(j.current,ee))},z=I((G,ee)=>{xs(f,G,u),f4(G),m&&m(G,ee)}),M=I((G,ee)=>{const E=Zp({timeout:P,style:C,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",be({},E)),G.style.transition=r.transitions.create("transform",be({},E)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,ee)}),D=I(g),W=I(k),V=I(G=>{const ee=Zp({timeout:P,style:C,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",ee),G.style.transition=r.transitions.create("transform",ee),xs(f,G,u),b&&b(G)}),Y=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),X=G=>{o&&o(j.current,G)},Z=B.useCallback(()=>{j.current&&xs(f,j.current,u)},[f,u]);return B.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=c4(()=>{j.current&&xs(f,j.current,u)}),ee=Vg(j.current);return ee.addEventListener("resize",G),()=>{G.clear(),ee.removeEventListener("resize",G)}},[f,h,u]),B.useEffect(()=>{h||Z()},[h,Z]),y.jsx(_,be({nodeRef:j,onEnter:z,onEntered:D,onEntering:M,onExit:V,onExited:Y,onExiting:W,addEndListener:X,appear:s,in:h,timeout:P},w,{children:(G,ee)=>B.cloneElement(l,be({ref:T,style:be({visibility:G==="exited"&&!h?"hidden":void 0},C,l.props.style)},ee))}))}),Ei=TS,ES=e=>!e||!Bs(e),MS=ES;function $S(e){return Ug("MuiSlider",e)}const IS=Hg("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"]),En=IS,DS=e=>{const{open:t}=e;return{offset:Xr(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function LS(e){const{children:t,className:n,value:r}=e,i=DS(e);return t?B.cloneElement(t,{className:Xr(t.props.className)},y.jsxs(B.Fragment,{children:[t.props.children,y.jsx("span",{className:Xr(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const NS=["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 r1(e){return e}const RS=Tr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${vn(n.color)}`],n.size!=="medium"&&t[`size${vn(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})=>be({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"&&be({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"&&be({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"},[`&.${En.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${En.dragging}`]:{[`& .${En.thumb}, & .${En.track}`]:{transition:"none"}}})),BS=Tr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>be({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})),zS=Tr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?d4(e.palette[t.color].main,.62):h4(e.palette[t.color].main,.5);return be({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})}),FS=Tr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${vn(n.color)}`],n.size!=="medium"&&t[`thumbSize${vn(n.size)}`]]}})(({theme:e,ownerState:t})=>be({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":be({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, &.${En.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${En.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),HS=Tr(LS,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>be({[`&.${En.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"})),US=Tr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Gg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>be({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})),WS=Tr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Gg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>be({},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})),YS=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${vn(s)}`,l&&`size${vn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${vn(l)}`,s&&`thumbColor${vn(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Yg(u,$S,o)},VS=({children:e})=>e,GS=B.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,O,k,C,P,_,w,j,T,I,z;const M=Wg({props:t,name:"MuiSlider"}),W=Dd().direction==="rtl",{"aria-label":V,"aria-valuetext":Y,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:ee={},color:E="primary",classes:ye,className:fe,disableSwap:$=!1,disabled:Oe=!1,getAriaLabel:ae,getAriaValueText:Pe,marks:ht=!1,max:je=100,min:re=0,orientation:ue="horizontal",size:ce="medium",step:J=1,scale:we=r1,slotProps:pe,slots:ve,track:He="normal",valueLabelDisplay:nt="off",valueLabelFormat:ct=r1}=M,en=Id(M,NS),Ue=be({},M,{isRtl:W,max:je,min:re,classes:ye,disabled:Oe,disableSwap:$,orientation:ue,marks:ht,color:E,size:ce,step:J,scale:we,track:He,valueLabelDisplay:nt,valueLabelFormat:ct}),{axisProps:Ne,getRootProps:rt,getHiddenInputProps:tn,getThumbProps:Cn,open:R,active:q,axis:te,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ve,trackLeap:kt,getThumbStyle:pt}=hS(be({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(Te=>Te.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=YS(Ue),Lt=(r=(i=ve==null?void 0:ve.root)!=null?i:G.Root)!=null?r:RS,oi=(a=(o=ve==null?void 0:ve.rail)!=null?o:G.Rail)!=null?a:BS,Nr=(s=(l=ve==null?void 0:ve.track)!=null?l:G.Track)!=null?s:zS,Ge=(u=(f=ve==null?void 0:ve.thumb)!=null?f:G.Thumb)!=null?u:FS,da=(d=(h=ve==null?void 0:ve.valueLabel)!=null?h:G.ValueLabel)!=null?d:HS,si=(m=(g=ve==null?void 0:ve.mark)!=null?g:G.Mark)!=null?m:US,fr=(v=(b=ve==null?void 0:ve.markLabel)!=null?b:G.MarkLabel)!=null?v:WS,li=(O=(k=ve==null?void 0:ve.input)!=null?k:G.Input)!=null?O:"input",dr=(C=pe==null?void 0:pe.root)!=null?C:ee.root,hr=(P=pe==null?void 0:pe.rail)!=null?P:ee.rail,pr=(_=pe==null?void 0:pe.track)!=null?_:ee.track,ha=(w=pe==null?void 0:pe.thumb)!=null?w:ee.thumb,mr=(j=pe==null?void 0:pe.valueLabel)!=null?j:ee.valueLabel,Uu=(T=pe==null?void 0:pe.mark)!=null?T:ee.mark,Rr=(I=pe==null?void 0:pe.markLabel)!=null?I:ee.markLabel,ui=(z=pe==null?void 0:pe.input)!=null?z:ee.input,de=xr({elementType:Lt,getSlotProps:rt,externalSlotProps:dr,externalForwardedProps:en,additionalProps:be({},MS(Lt)&&{as:Z}),ownerState:be({},Ue,dr==null?void 0:dr.ownerState),className:[Ie.root,fe]}),Wu=xr({elementType:oi,externalSlotProps:hr,ownerState:Ue,className:Ie.rail}),Yu=xr({elementType:Nr,externalSlotProps:pr,additionalProps:{style:be({},Ne[te].offset(Ve),Ne[te].leap(kt))},ownerState:be({},Ue,pr==null?void 0:pr.ownerState),className:Ie.track}),Et=xr({elementType:Ge,getSlotProps:Cn,externalSlotProps:ha,ownerState:be({},Ue,ha==null?void 0:ha.ownerState),className:Ie.thumb}),pa=xr({elementType:da,externalSlotProps:mr,ownerState:be({},Ue,mr==null?void 0:mr.ownerState),className:Ie.valueLabel}),Be=xr({elementType:si,externalSlotProps:Uu,ownerState:Ue,className:Ie.mark}),Vn=xr({elementType:fr,externalSlotProps:Rr,ownerState:Ue,className:Ie.markLabel}),Vu=xr({elementType:li,getSlotProps:tn,externalSlotProps:ui,ownerState:Ue});return y.jsxs(Lt,be({},de,{children:[y.jsx(oi,be({},Wu)),y.jsx(Nr,be({},Yu)),ke.filter(Te=>Te.value>=re&&Te.value<=je).map((Te,Ze)=>{const Kt=Ys(Te.value,re,je),st=Ne[te].offset(Kt);let mt;return He===!1?mt=$e.indexOf(Te.value)!==-1:mt=He==="normal"&&(oe?Te.value>=$e[0]&&Te.value<=$e[$e.length-1]:Te.value<=$e[0])||He==="inverted"&&(oe?Te.value<=$e[0]||Te.value>=$e[$e.length-1]:Te.value>=$e[0]),y.jsxs(B.Fragment,{children:[y.jsx(si,be({"data-index":Ze},Be,!Bs(si)&&{markActive:mt},{style:be({},st,Be.style),className:Xr(Be.className,mt&&Ie.markActive)})),Te.label!=null?y.jsx(fr,be({"aria-hidden":!0,"data-index":Ze},Vn,!Bs(fr)&&{markLabelActive:mt},{style:be({},st,Vn.style),className:Xr(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:Te.label})):null]},Ze)}),$e.map((Te,Ze)=>{const Kt=Ys(Te,re,je),st=Ne[te].offset(Kt),mt=nt==="off"?VS:da;return y.jsx(mt,be({},!Bs(mt)&&{valueLabelFormat:ct,valueLabelDisplay:nt,value:typeof ct=="function"?ct(we(Te),Ze):ct,index:Ze,open:R===Ze||q===Ze||nt==="on",disabled:Oe},pa,{children:y.jsx(Ge,be({"data-index":Ze},Et,{className:Xr(Ie.thumb,Et.className,q===Ze&&Ie.active,se===Ze&&Ie.focusVisible),style:be({},st,pt(Ze),Et.style),children:y.jsx(li,be({"data-index":Ze,"aria-label":ae?ae(Ze):V,"aria-valuenow":we(Te),"aria-labelledby":X,"aria-valuetext":Pe?Pe(we(Te),Ze):Y,value:$e[Ze]},Vu))}))}),Ze)})]}))}),ql=GS,qS=(e,t="down")=>{const n=Dd(),[r,i]=B.useState(!1),a=n.breakpoints[t](e).split("@media")[1].trim();return B.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(a);i(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[a]),r},KS=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function XS(e){return e.tldr_topic??e.name}var Vs=globalThis&&globalThis.__assign||function(){return Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;ny.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"keyboard_arrow_left",children:[y.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:y.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1428_267)",children:y.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),e8=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"arrow_forward",children:[y.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_8980_24763)",children:y.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),t8=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -732,7 +732,7 @@ return r.version="2.29.4",i(it),r.fn=ne,r.min=G3,r.max=q3,r.now=K3,r.utc=g,r.uni overflow-x: hidden; flex: 1; width: 100%; -`,y9=()=>{var d;const[e,t]=B.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:i=[]}=Sn(h=>h),a=(n??"").toLowerCase(),o=((d=i.find(h=>h.name===a))==null?void 0:d.count)||0,s=h=>h?h.charAt(0).toUpperCase()+h.slice(1):"",l=h=>{o>=1&&t(h.currentTarget)},u=()=>{t(null)},f=h=>{r(h),u()};return y.jsxs("div",{children:[y.jsxs(g9,{onClick:l,children:[y.jsx("div",{className:"text",children:"Show"}),y.jsx("div",{className:"value","data-testid":"value",children:`${s(a)} (${o})`}),o>=1&&y.jsx("div",{className:"icon",children:e?y.jsx(Hd,{}):y.jsx(Kl,{})})]}),y.jsx(x9,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(K4,{children:i.filter(({name:h})=>h).map(({name:h,count:m})=>y.jsxs(v9,{className:Fn({active:h===n}),onClick:g=>{g.preventDefault(),f(h)},children:[y.jsx("span",{className:"icon",children:h===n?y.jsx(lv,{}):null}),y.jsx("span",{children:`${s(h)} (${m})`})]},h))})})]})},g9=H(F).attrs({direction:"row",align:"center"})` +`,y9=()=>{var d;const[e,t]=B.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:i=[]}=Sn(h=>h),a=(n??"").toLowerCase(),o=((d=i.find(h=>h.name===a))==null?void 0:d.count)||0,s=h=>h?h.charAt(0).toUpperCase()+h.slice(1):"",l=h=>{o>=1&&t(h.currentTarget)},u=()=>{t(null)},f=h=>{r(h),u()};return y.jsxs("div",{children:[y.jsxs(g9,{onClick:l,children:[y.jsx("div",{className:"text",children:"Show"}),y.jsx("div",{className:"value","data-testid":"value",children:`${s(a)} (${o})`}),o>=1&&y.jsx("div",{className:"icon",children:e?y.jsx(Hd,{}):y.jsx(Kl,{})})]}),y.jsx(x9,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(Y4,{children:i.filter(({name:h})=>h).map(({name:h,count:m})=>y.jsxs(v9,{className:Fn({active:h===n}),onClick:g=>{g.preventDefault(),f(h)},children:[y.jsx("span",{className:"icon",children:h===n?y.jsx(lv,{}):null}),y.jsx("span",{children:`${s(h)} (${m})`})]},h))})})]})},g9=H(F).attrs({direction:"row",align:"center"})` cursor: pointer; flex-grow: 1; color: ${L.GRAY6}; @@ -786,7 +786,7 @@ return r.version="2.29.4",i(it),r.fn=ne,r.min=G3,r.max=q3,r.now=K3,r.utc=g,r.uni border-radius: 8px; } } -`,S9=({maxResults:e,setMaxResults:t})=>{const n=(r,i)=>{const a=Array.isArray(i)?i[0]:i;t(a)};return y.jsxs(y.Fragment,{children:[y.jsxs(Gd,{children:[y.jsx("div",{children:"Max results"}),y.jsx(Vd,{children:"Total number of relationships"})]}),y.jsxs(Xl,{children:[y.jsxs(Ov,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(_v,{direction:"row",children:y.jsx(ql,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},_9=({sourceNodes:e,setSourceNodes:t})=>{const n=(r,i)=>{const a=Array.isArray(i)?i[0]:i;t(a)};return y.jsxs(y.Fragment,{children:[y.jsxs(Gd,{children:[y.jsx("div",{children:"Source Nodes"}),y.jsx(Vd,{children:"Core set of nodes based on search term"})]}),y.jsxs(Xl,{children:[y.jsxs(Ov,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(_v,{direction:"row",children:y.jsx(ql,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},br={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},O9=({showAllSchemas:e,setShowAllSchemas:t,schemaAll:n,anchorEl:r,setAnchorEl:i,onClose:a})=>{const o=T=>{h(I=>I.includes(T)?I.filter(z=>z!==T):[...I,T])},{setFilters:s,fetchData:l,setAbortRequests:u}=Sn(T=>T),{setBudget:f}=Qi(T=>T),[d,h]=B.useState(br.selectedTypes),[m,g]=B.useState(br.hops),[v,b]=B.useState(br.sourceNodes),[O,k]=B.useState(br.maxResults),C=()=>{h(br.selectedTypes),g(br.hops),b(br.sourceNodes),k(br.maxResults)},P=async()=>{C()},_=()=>{t(!0)},w=async()=>{s({node_type:d,limit:O,depth:m.toString(),top_node_count:v.toString()}),i(null),a(),await l(f,u)},j=(e?n:n.slice(0,4)).filter((T,I,z)=>I===z.findIndex(M=>M.type===T.type));return y.jsxs(k9,{anchorEl:r,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!r,placement:"bottom-end",children:[y.jsxs(C9,{children:[y.jsx("div",{children:"Type"}),y.jsxs(P9,{children:[y.jsx(A9,{children:d.length}),y.jsx(j9,{children:"Selected"})]})]}),y.jsxs(Xl,{children:[y.jsx(M9,{children:j.map(T=>y.jsx($9,{isSelected:d.includes(T.type),onClick:()=>o(T==null?void 0:T.type),children:T.type},T.type))}),!e&&n.length>4&&y.jsx(I9,{onClick:_,children:y.jsxs(E9,{children:[y.jsx(zd,{})," View More"]})})]}),y.jsx(Ss,{}),y.jsx(_9,{setSourceNodes:b,sourceNodes:v}),y.jsx(Ss,{}),y.jsx(b9,{hops:m,setHops:g}),y.jsx(Ss,{}),y.jsx(S9,{maxResults:O,setMaxResults:k}),y.jsx(Ss,{}),y.jsx(T9,{children:y.jsxs(R9,{children:[y.jsxs(D9,{color:"secondary",onClick:P,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(L9,{children:y.jsx(iv,{})}),"Clear"]}),y.jsx(N9,{color:"secondary",onClick:w,size:"large",variant:"contained",children:"Show Results"})]})})]})},k9=H(X4)` +`,S9=({maxResults:e,setMaxResults:t})=>{const n=(r,i)=>{const a=Array.isArray(i)?i[0]:i;t(a)};return y.jsxs(y.Fragment,{children:[y.jsxs(Gd,{children:[y.jsx("div",{children:"Max results"}),y.jsx(Vd,{children:"Total number of relationships"})]}),y.jsxs(Xl,{children:[y.jsxs(Ov,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(_v,{direction:"row",children:y.jsx(ql,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},_9=({sourceNodes:e,setSourceNodes:t})=>{const n=(r,i)=>{const a=Array.isArray(i)?i[0]:i;t(a)};return y.jsxs(y.Fragment,{children:[y.jsxs(Gd,{children:[y.jsx("div",{children:"Source Nodes"}),y.jsx(Vd,{children:"Core set of nodes based on search term"})]}),y.jsxs(Xl,{children:[y.jsxs(Ov,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(_v,{direction:"row",children:y.jsx(ql,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},br={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},O9=({showAllSchemas:e,setShowAllSchemas:t,schemaAll:n,anchorEl:r,setAnchorEl:i,onClose:a})=>{const o=T=>{h(I=>I.includes(T)?I.filter(z=>z!==T):[...I,T])},{setFilters:s,fetchData:l,setAbortRequests:u}=Sn(T=>T),{setBudget:f}=Qi(T=>T),[d,h]=B.useState(br.selectedTypes),[m,g]=B.useState(br.hops),[v,b]=B.useState(br.sourceNodes),[O,k]=B.useState(br.maxResults),C=()=>{h(br.selectedTypes),g(br.hops),b(br.sourceNodes),k(br.maxResults)},P=async()=>{C()},_=()=>{t(!0)},w=async()=>{s({node_type:d,limit:O,depth:m.toString(),top_node_count:v.toString()}),i(null),a(),await l(f,u)},j=(e?n:n.slice(0,4)).filter((T,I,z)=>I===z.findIndex(M=>M.type===T.type));return y.jsxs(k9,{anchorEl:r,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!r,placement:"bottom-end",children:[y.jsxs(C9,{children:[y.jsx("div",{children:"Type"}),y.jsxs(P9,{children:[y.jsx(A9,{children:d.length}),y.jsx(j9,{children:"Selected"})]})]}),y.jsxs(Xl,{children:[y.jsx(M9,{children:j.map(T=>y.jsx($9,{isSelected:d.includes(T.type),onClick:()=>o(T==null?void 0:T.type),children:T.type},T.type))}),!e&&n.length>4&&y.jsx(I9,{onClick:_,children:y.jsxs(E9,{children:[y.jsx(zd,{})," View More"]})})]}),y.jsx(Ss,{}),y.jsx(_9,{setSourceNodes:b,sourceNodes:v}),y.jsx(Ss,{}),y.jsx(b9,{hops:m,setHops:g}),y.jsx(Ss,{}),y.jsx(S9,{maxResults:O,setMaxResults:k}),y.jsx(Ss,{}),y.jsx(T9,{children:y.jsxs(R9,{children:[y.jsxs(D9,{color:"secondary",onClick:P,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(L9,{children:y.jsx(iv,{})}),"Clear"]}),y.jsx(N9,{color:"secondary",onClick:w,size:"large",variant:"contained",children:"Show Results"})]})})]})},k9=H(V4)` &&.MuiPopper-root { background: ${L.BG2}; padding: 16px; @@ -1074,7 +1074,7 @@ return r.version="2.29.4",i(it),r.fn=ne,r.min=G3,r.max=q3,r.now=K3,r.utc=g,r.uni `});++r0&&n.push({type:"text",value:` `}),n}function N1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function R1(e,t){const n=Jk(e,t),r=n.one(e,void 0),i=Fk(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function rC(e,t){return e&&"run"in e?async function(n,r){const i=R1(n,t);await e.run(i,r)}:function(n){return R1(n,t||e)}}function B1(e){if(e)throw e}var Fs=Object.prototype.hasOwnProperty,lx=Object.prototype.toString,z1=Object.defineProperty,F1=Object.getOwnPropertyDescriptor,H1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):lx.call(t)==="[object Array]"},U1=function(t){if(!t||lx.call(t)!=="[object Object]")return!1;var n=Fs.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Fs.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Fs.call(t,i)},W1=function(t,n){z1&&n.name==="__proto__"?z1(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Y1=function(t,n){if(n==="__proto__")if(Fs.call(t,n)){if(F1)return F1(t,n).value}else return;return t[n]},iC=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Nn={basename:sC,dirname:lC,extname:uC,join:cC,sep:"/"};function sC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ho(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function lC(e){if(Ho(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function uC(e){Ho(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cC(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function dC(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Ho(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const hC={cwd:pC};function pC(){return"/"}function vf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function mC(e){if(typeof e=="string")e=new URL(e);else if(!vf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return yC(e)}function yC(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[m,...g]=f;const v=r[h][1];gf(v)&&gf(m)&&(m=bc(!0,v,m)),r[h]=[u,m,...g]}}}}const bC=new sh().freeze();function Oc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Cc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function G1(e){if(!gf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function q1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ks(e){return wC(e)?e:new ux(e)}function wC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function SC(e){return typeof e=="string"||_C(e)}function _C(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const OC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",K1=[],X1={allowDangerousHtml:!0},kC=/^(https?|ircs?|mailto|xmpp)$/i,CC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function PC(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||K1,l=e.remarkPlugins||K1,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...X1}:X1,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||AC,m=bC().use(lk).use(l).use(rC,u).use(s),g=new ux;typeof r=="string"&&(g.value=r);for(const k of CC)Object.hasOwn(e,k.from)&&(""+k.from+(k.to?"use `"+k.to+"` instead":"remove it")+OC+k.id,void 0);const v=m.parse(g);let b=m.runSync(v,g);return i&&(b={type:"element",tagName:"div",properties:{className:i},children:b.type==="root"?b.children:[b]}),sx(b,O),F_(b,{Fragment:y.Fragment,components:a,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function O(k,C,P){if(k.type==="raw"&&P&&typeof C=="number")return f?P.children.splice(C,1):P.children[C]={type:"text",value:k.value},C;if(k.type==="element"){let _;for(_ in gc)if(Object.hasOwn(gc,_)&&Object.hasOwn(k.properties,_)){const w=k.properties[_],j=gc[_];(j===null||j.includes(k.tagName))&&(k.properties[_]=h(String(w||""),_,k))}}if(k.type==="element"){let _=t?!t.includes(k.tagName):o?o.includes(k.tagName):!1;if(!_&&n&&typeof C=="number"&&(_=!n(k,C,P)),_&&P&&typeof C=="number")return d&&k.children?P.children.splice(C,1,...k.children):P.children.splice(C,1),C}}}function AC(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||kC.test(e.slice(0,t))?e:""}const jC=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"brand_awareness",children:[y.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3696_4540)",children:y.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),TC=({trend:e,onClose:t})=>{var b,O;const[n,r]=B.useState(!1),{close:i}=uf("briefDescription"),{currentPlayingAudio:a,setCurrentPlayingAudio:o}=At(k=>k),[s]=Qi(k=>[k.setBudget]),{fetchData:l,setAbortRequests:u}=Sn(k=>k),f=B.useRef(null),d=async()=>{h(),await l(s,u,e.tldr_topic??e.name)},h=B.useCallback(()=>{t(),i()},[t,i]),m=()=>{f.current&&(n?f.current.pause():f.current.play(),r(!n))},g=()=>{var C,P,_;const k=!((C=a==null?void 0:a.current)!=null&&C.paused);k&&((P=a==null?void 0:a.current)==null||P.pause(),o(null)),(((_=a==null?void 0:a.current)==null?void 0:_.src)!==e.audio_EN||!k)&&m()};B.useEffect(()=>{const k=f.current,C=()=>{r(!1),o(null)};return k&&k.addEventListener("ended",C),()=>{k&&k.removeEventListener("ended",C)}},[o]);const v=((b=a==null?void 0:a.current)==null?void 0:b.src)===e.audio_EN&&!((O=a==null?void 0:a.current)!=null&&O.paused)||n;return y.jsxs(J4,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:h,preventOutsideClose:!0,children:[e.audio_EN?y.jsxs(y.Fragment,{children:[y.jsxs(DC,{children:[y.jsx(Z1,{className:Fn("default",{play:v}),onClick:g,size:"small",startIcon:v?y.jsx(Yl,{}):y.jsx(jC,{}),children:v?"Pause":"Listen"}),y.jsx(Z1,{className:"default",onClick:d,size:"small",startIcon:y.jsx(H4,{}),children:"Learn More"})]}),y.jsx(IC,{ref:f,src:e.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null,y.jsxs(F,{mt:75,children:[y.jsx($C,{children:e.tldr_topic??e.name}),y.jsx(EC,{children:y.jsx(F,{children:y.jsx(MC,{children:e.tldr&&y.jsx(PC,{children:e.tldr})})})})]})]})},EC=H.div` +`},i),a}function rC(e,t){return e&&"run"in e?async function(n,r){const i=R1(n,t);await e.run(i,r)}:function(n){return R1(n,t||e)}}function B1(e){if(e)throw e}var Fs=Object.prototype.hasOwnProperty,lx=Object.prototype.toString,z1=Object.defineProperty,F1=Object.getOwnPropertyDescriptor,H1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):lx.call(t)==="[object Array]"},U1=function(t){if(!t||lx.call(t)!=="[object Object]")return!1;var n=Fs.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Fs.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Fs.call(t,i)},W1=function(t,n){z1&&n.name==="__proto__"?z1(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Y1=function(t,n){if(n==="__proto__")if(Fs.call(t,n)){if(F1)return F1(t,n).value}else return;return t[n]},iC=function e(){var t,n,r,i,a,o,s=arguments[0],l=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const Nn={basename:sC,dirname:lC,extname:uC,join:cC,sep:"/"};function sC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ho(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function lC(e){if(Ho(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function uC(e){Ho(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cC(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function dC(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Ho(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const hC={cwd:pC};function pC(){return"/"}function vf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function mC(e){if(typeof e=="string")e=new URL(e);else if(!vf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return yC(e)}function yC(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[m,...g]=f;const v=r[h][1];gf(v)&&gf(m)&&(m=bc(!0,v,m)),r[h]=[u,m,...g]}}}}const bC=new sh().freeze();function Oc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Cc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function G1(e){if(!gf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function q1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ks(e){return wC(e)?e:new ux(e)}function wC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function SC(e){return typeof e=="string"||_C(e)}function _C(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const OC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",K1=[],X1={allowDangerousHtml:!0},kC=/^(https?|ircs?|mailto|xmpp)$/i,CC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function PC(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||K1,l=e.remarkPlugins||K1,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...X1}:X1,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||AC,m=bC().use(lk).use(l).use(rC,u).use(s),g=new ux;typeof r=="string"&&(g.value=r);for(const k of CC)Object.hasOwn(e,k.from)&&(""+k.from+(k.to?"use `"+k.to+"` instead":"remove it")+OC+k.id,void 0);const v=m.parse(g);let b=m.runSync(v,g);return i&&(b={type:"element",tagName:"div",properties:{className:i},children:b.type==="root"?b.children:[b]}),sx(b,O),F_(b,{Fragment:y.Fragment,components:a,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function O(k,C,P){if(k.type==="raw"&&P&&typeof C=="number")return f?P.children.splice(C,1):P.children[C]={type:"text",value:k.value},C;if(k.type==="element"){let _;for(_ in gc)if(Object.hasOwn(gc,_)&&Object.hasOwn(k.properties,_)){const w=k.properties[_],j=gc[_];(j===null||j.includes(k.tagName))&&(k.properties[_]=h(String(w||""),_,k))}}if(k.type==="element"){let _=t?!t.includes(k.tagName):o?o.includes(k.tagName):!1;if(!_&&n&&typeof C=="number"&&(_=!n(k,C,P)),_&&P&&typeof C=="number")return d&&k.children?P.children.splice(C,1,...k.children):P.children.splice(C,1),C}}}function AC(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||kC.test(e.slice(0,t))?e:""}const jC=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"brand_awareness",children:[y.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3696_4540)",children:y.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),TC=({trend:e,onClose:t})=>{var b,O;const[n,r]=B.useState(!1),{close:i}=uf("briefDescription"),{currentPlayingAudio:a,setCurrentPlayingAudio:o}=At(k=>k),[s]=Qi(k=>[k.setBudget]),{fetchData:l,setAbortRequests:u}=Sn(k=>k),f=B.useRef(null),d=async()=>{h(),await l(s,u,e.tldr_topic??e.name)},h=B.useCallback(()=>{t(),i()},[t,i]),m=()=>{f.current&&(n?f.current.pause():f.current.play(),r(!n))},g=()=>{var C,P,_;const k=!((C=a==null?void 0:a.current)!=null&&C.paused);k&&((P=a==null?void 0:a.current)==null||P.pause(),o(null)),(((_=a==null?void 0:a.current)==null?void 0:_.src)!==e.audio_EN||!k)&&m()};B.useEffect(()=>{const k=f.current,C=()=>{r(!1),o(null)};return k&&k.addEventListener("ended",C),()=>{k&&k.removeEventListener("ended",C)}},[o]);const v=((b=a==null?void 0:a.current)==null?void 0:b.src)===e.audio_EN&&!((O=a==null?void 0:a.current)!=null&&O.paused)||n;return y.jsxs(q4,{"data-testid":"brief-description-modal",id:"briefDescription",kind:"regular",noWrap:!0,onClose:h,preventOutsideClose:!0,children:[e.audio_EN?y.jsxs(y.Fragment,{children:[y.jsxs(DC,{children:[y.jsx(Z1,{className:Fn("default",{play:v}),onClick:g,size:"small",startIcon:v?y.jsx(Yl,{}):y.jsx(jC,{}),children:v?"Pause":"Listen"}),y.jsx(Z1,{className:"default",onClick:d,size:"small",startIcon:y.jsx(H4,{}),children:"Learn More"})]}),y.jsx(IC,{ref:f,src:e.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null,y.jsxs(F,{mt:75,children:[y.jsx($C,{children:e.tldr_topic??e.name}),y.jsx(EC,{children:y.jsx(F,{children:y.jsx(MC,{children:e.tldr&&y.jsx(PC,{children:e.tldr})})})})]})]})},EC=H.div` max-height: 310px; overflow-y: auto; margin: 8px 0; @@ -1387,7 +1387,7 @@ ${({disabled:e})=>e&&qg` background: ${({selected:e})=>e?L.gray300:L.gray200}; } } -`,V2=({count:e=0,updateCount:t,content:n,readOnly:r,refId:i})=>{const[a,o]=B.useState(!1);B.useEffect(()=>{o(!1)},[i]);let{image_url:s}=n||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function u(){if(!(a||!i)){o(!0);try{await eS(i,l),t&&t(e+l)}catch(f){console.error(f)}o(!1)}}return r?e?y.jsx(Eg,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:y.jsxs(F,{align:"center",direction:"row",justify:"center",children:[y.jsx(U4,{fontSize:12}),y.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:y.jsx("div",{children:y.jsx(Eg,{"data-testid":"booster-pill",disabled:a,onClick:async()=>{a||await u()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:a?y.jsx(wq,{color:"#fff",loading:!0,size:10}):y.jsxs(F,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[y.jsx(vv,{style:{color:L.white}}),y.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},op=H(F)` +`,V2=({count:e=0,updateCount:t,content:n,readOnly:r,refId:i})=>{const[a,o]=B.useState(!1);B.useEffect(()=>{o(!1)},[i]);let{image_url:s}=n||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function u(){if(!(a||!i)){o(!0);try{await eS(i,l),t&&t(e+l)}catch(f){console.error(f)}o(!1)}}return r?e?y.jsx(Eg,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:y.jsxs(F,{align:"center",direction:"row",justify:"center",children:[y.jsx(K4,{fontSize:12}),y.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:y.jsx("div",{children:y.jsx(Eg,{"data-testid":"booster-pill",disabled:a,onClick:async()=>{a||await u()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:a?y.jsx(wq,{color:"#fff",loading:!0,size:10}):y.jsxs(F,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[y.jsx(vv,{style:{color:L.white}}),y.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},op=H(F)` background: ${L.divider2}; height: 1px; margin: auto 22px; @@ -1421,7 +1421,7 @@ ${({disabled:e})=>e&&qg` &:hover { color: ${L.GRAY3}; } -`,Pq=({stateless:e,node:t})=>{var g;const[n,r]=At(v=>[v.transcriptIsOpen,v.setTranscriptOpen]),[i,a]=B.useState(!1),[o,s]=B.useState(""),[l,u]=B.useState(!1);if(!e&&!n)return null;const f=async()=>{try{const v=await Jp(t==null?void 0:t.ref_id);s(v.data.text)}catch(v){console.error("Error fetching full transcript",v)}},d=async()=>{if(o===""){const v=await Jp(t==null?void 0:t.ref_id);m(v.data.text)}else m(o);setTimeout(()=>{a(!1)},2e3)},h=async()=>{l?u(!1):(await f(),u(!0))},m=v=>{v!==void 0&&(navigator.clipboard.writeText(v),a(!0))};return y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(jq,{children:[e&&y.jsxs(Aq,{children:[y.jsx("div",{className:"icon",children:y.jsx(G2,{})}),y.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?y.jsx(y.Fragment,{children:i?y.jsxs(Mq,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(lv,{})}),y.jsx("div",{className:"text",children:"Copied"})]}):y.jsx(Dt,{endIcon:y.jsx(kq,{}),onPointerDown:()=>d(),size:"small",variant:"outlined",children:"Copy"})}):y.jsx("div",{}),!e&&y.jsx(Tq,{onClick:()=>{r(!1)},children:y.jsx(W4,{fontSize:35})})]}),y.jsxs(Eq,{children:[l?o:`${(g=t==null?void 0:t.text)==null?void 0:g.substring(0,100)}`,y.jsxs(Cq,{onClick:h,children:["... ",l?"show less":"more"]})]})]})},Aq=H(F).attrs({direction:"row",align:"center"})` +`,Pq=({stateless:e,node:t})=>{var g;const[n,r]=At(v=>[v.transcriptIsOpen,v.setTranscriptOpen]),[i,a]=B.useState(!1),[o,s]=B.useState(""),[l,u]=B.useState(!1);if(!e&&!n)return null;const f=async()=>{try{const v=await Jp(t==null?void 0:t.ref_id);s(v.data.text)}catch(v){console.error("Error fetching full transcript",v)}},d=async()=>{if(o===""){const v=await Jp(t==null?void 0:t.ref_id);m(v.data.text)}else m(o);setTimeout(()=>{a(!1)},2e3)},h=async()=>{l?u(!1):(await f(),u(!0))},m=v=>{v!==void 0&&(navigator.clipboard.writeText(v),a(!0))};return y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(jq,{children:[e&&y.jsxs(Aq,{children:[y.jsx("div",{className:"icon",children:y.jsx(G2,{})}),y.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?y.jsx(y.Fragment,{children:i?y.jsxs(Mq,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(lv,{})}),y.jsx("div",{className:"text",children:"Copied"})]}):y.jsx(Dt,{endIcon:y.jsx(kq,{}),onPointerDown:()=>d(),size:"small",variant:"outlined",children:"Copy"})}):y.jsx("div",{}),!e&&y.jsx(Tq,{onClick:()=>{r(!1)},children:y.jsx(X4,{fontSize:35})})]}),y.jsxs(Eq,{children:[l?o:`${(g=t==null?void 0:t.text)==null?void 0:g.substring(0,100)}`,y.jsxs(Cq,{onClick:h,children:["... ",l?"show less":"more"]})]})]})},Aq=H(F).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${L.GRAY3}; @@ -1537,7 +1537,7 @@ ${({disabled:e})=>e&&qg` color: ${L.white}; } } -`,Qq=({onClick:e,timestamp:t,isSelected:n,setOpenClip:r})=>{const i=n?"blueTextAccent":"placeholderText";return n?(Y4,L[i]):(V4,L[i]),y.jsxs(Jq,{align:"center","data-testid":"wrapper",direction:"row",isSelected:n,justify:"flex-start",onClick:e,px:20,py:20,children:[y.jsxs("div",{children:[y.jsx(av,{className:"play-pause",children:n?y.jsx(Zq,{}):y.jsx(Rq,{})}),!1]}),y.jsxs(eK,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&y.jsx("span",{className:"timestamp",children:tS(t.timestamp)}),y.jsx("span",{className:"title",children:Ti(t.show_title)})]}),y.jsx("div",{className:"info",children:y.jsx(F,{"data-testid":"info-icon-wrapper",onClick:()=>r(t),pt:4,children:y.jsx(I4,{})})})]})},eK=H(F)` +`,Qq=({onClick:e,timestamp:t,isSelected:n,setOpenClip:r})=>{const i=n?"blueTextAccent":"placeholderText";return n?(Z4,L[i]):(J4,L[i]),y.jsxs(Jq,{align:"center","data-testid":"wrapper",direction:"row",isSelected:n,justify:"flex-start",onClick:e,px:20,py:20,children:[y.jsxs("div",{children:[y.jsx(av,{className:"play-pause",children:n?y.jsx(Zq,{}):y.jsx(Rq,{})}),!1]}),y.jsxs(eK,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&y.jsx("span",{className:"timestamp",children:tS(t.timestamp)}),y.jsx("span",{className:"title",children:Ti(t.show_title)})]}),y.jsx("div",{className:"info",children:y.jsx(F,{"data-testid":"info-icon-wrapper",onClick:()=>r(t),pt:4,children:y.jsx(I4,{})})})]})},eK=H(F)` font-size: 13px; color: ${L.white}; font-family: 'Barlow'; @@ -1881,7 +1881,7 @@ ${({disabled:e})=>e&&qg` `,WK=H.audio` height: 0; width: 0; -`,YK=()=>{const e=zt(),{setPlayingNode:t}=Vl(n=>n);switch(B.useEffect(()=>{var r,i;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((i=e.properties)==null?void 0:i.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(fK,{});case"data_series":return y.jsx(lq,{});case"tribe_message":return y.jsx(sK,{});case"Tweet":return y.jsx(wK,{});case"topic":return y.jsx(bK,{});case"show":return y.jsx(xK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(q2,{});case"document":return y.jsx(BK,{});case"episode":return y.jsx(nK,{},e.ref_id);case"image":return y.jsx(oK,{});default:return y.jsx(AK,{})}},VK=B.memo(YK);var GK=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async="async"in n?!!n.async:!0,a.src=t,n.attrs&&qK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?$g:KK;o(a,r),a.onload||$g(a,r),i.appendChild(a)};function qK(e,t){for(var n in t)e.setAttribute(n,t[n])}function $g(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 KK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var XK=function(t){return ZK(t)&&!JK(t)};function ZK(e){return!!e&&typeof e=="object"}function JK(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||tX(e)}var QK=typeof Symbol=="function"&&Symbol.for,eX=QK?Symbol.for("react.element"):60103;function tX(e){return e.$$typeof===eX}function nX(e){return Array.isArray(e)?[]:{}}function No(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ji(nX(e),e,t):e}function rX(e,t,n){return e.concat(t).map(function(r){return No(r,n)})}function iX(e,t){if(!t.customMerge)return Ji;var n=t.customMerge(e);return typeof n=="function"?n:Ji}function aX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ig(e){return Object.keys(e).concat(aX(e))}function K2(e,t){try{return t in e}catch{return!1}}function oX(e,t){return K2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function sX(e,t,n){var r={};return n.isMergeableObject(e)&&Ig(e).forEach(function(i){r[i]=No(e[i],n)}),Ig(t).forEach(function(i){oX(e,i)||(K2(e,i)&&n.isMergeableObject(t[i])?r[i]=iX(i,n)(e[i],t[i],n):r[i]=No(t[i],n))}),r}function Ji(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||rX,n.isMergeableObject=n.isMergeableObject||XK,n.cloneUnlessOtherwiseSpecified=No;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):sX(e,t,n):No(t,n)}Ji.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Ji(r,i,n)},{})};var lX=Ji,X2=lX,uX=Object.create,Ru=Object.defineProperty,cX=Object.getOwnPropertyDescriptor,fX=Object.getOwnPropertyNames,dX=Object.getPrototypeOf,hX=Object.prototype.hasOwnProperty,pX=(e,t)=>{for(var n in t)Ru(e,n,{get:t[n],enumerable:!0})},Z2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fX(t))!hX.call(e,i)&&i!==n&&Ru(e,i,{get:()=>t[i],enumerable:!(r=cX(t,i))||r.enumerable});return e},sp=(e,t,n)=>(n=e!=null?uX(dX(e)):{},Z2(t||!e||!e.__esModule?Ru(n,"default",{value:e,enumerable:!0}):n,e)),mX=e=>Z2(Ru({},"__esModule",{value:!0}),e),J2={};pX(J2,{callPlayer:()=>EX,getConfig:()=>jX,getSDK:()=>AX,isBlobUrl:()=>$X,isMediaStream:()=>MX,lazy:()=>xX,omit:()=>TX,parseEndTime:()=>kX,parseStartTime:()=>OX,queryString:()=>PX,randomString:()=>CX,supportsWebKitPresentationMode:()=>IX});var Bu=mX(J2),yX=sp(B),gX=sp(GK),vX=sp(X2);const xX=e=>yX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),bX=/[?&#](?:start|t)=([0-9hms]+)/,wX=/[?&#]end=([0-9hms]+)/,Td=/(\d+)(h|m|s)/g,SX=/^\d+$/;function Q2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(Td))return _X(r);if(SX.test(r))return parseInt(r)}}function _X(e){let t=0,n=Td.exec(e);for(;n!==null;){const[,r,i]=n;i==="h"&&(t+=parseInt(r,10)*60*60),i==="m"&&(t+=parseInt(r,10)*60),i==="s"&&(t+=parseInt(r,10)),n=Td.exec(e)}return t}function OX(e){return Q2(e,bX)}function kX(e){return Q2(e,wX)}function CX(){return Math.random().toString(36).substr(2,5)}function PX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function rf(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 vi={},AX=function(t,n,r=null,i=()=>!0,a=gX.default){const o=rf(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(vi[t]){vi[t].push({resolve:s,reject:l});return}vi[t]=[{resolve:s,reject:l}];const u=f=>{vi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(rf(n))}}a(t,f=>{f?(vi[t].forEach(d=>d.reject(f)),vi[t]=null):r||u(rf(n))})})};function jX(e,t){return(0,vX.default)(t.config,e.config)}function TX(e,...t){const n=[].concat(...t),r={},i=Object.keys(e);for(const a of i)n.indexOf(a)===-1&&(r[a]=e[a]);return r}function EX(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 MX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function $X(e){return/^blob:/.test(e)}function IX(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var lp=Object.defineProperty,DX=Object.getOwnPropertyDescriptor,LX=Object.getOwnPropertyNames,NX=Object.prototype.hasOwnProperty,RX=(e,t)=>{for(var n in t)lp(e,n,{get:t[n],enumerable:!0})},BX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of LX(t))!NX.call(e,i)&&i!==n&&lp(e,i,{get:()=>t[i],enumerable:!(r=DX(t,i))||r.enumerable});return e},zX=e=>BX(lp({},"__esModule",{value:!0}),e),ew={};RX(ew,{AUDIO_EXTENSIONS:()=>up,DASH_EXTENSIONS:()=>hw,FLV_EXTENSIONS:()=>pw,HLS_EXTENSIONS:()=>fp,MATCH_URL_DAILYMOTION:()=>uw,MATCH_URL_FACEBOOK:()=>rw,MATCH_URL_FACEBOOK_WATCH:()=>iw,MATCH_URL_KALTURA:()=>dw,MATCH_URL_MIXCLOUD:()=>cw,MATCH_URL_SOUNDCLOUD:()=>tw,MATCH_URL_STREAMABLE:()=>aw,MATCH_URL_TWITCH_CHANNEL:()=>lw,MATCH_URL_TWITCH_VIDEO:()=>sw,MATCH_URL_VIDYARD:()=>fw,MATCH_URL_VIMEO:()=>nw,MATCH_URL_WISTIA:()=>ow,MATCH_URL_YOUTUBE:()=>Ed,VIDEO_EXTENSIONS:()=>cp,canPlay:()=>HX});var FX=zX(ew),Dg=Bu;const Ed=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,tw=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,nw=/vimeo\.com\/(?!progressive_redirect).+/,rw=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,iw=/^https?:\/\/fb\.watch\/.+$/,aw=/streamable\.com\/([a-z0-9]+)$/,ow=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,sw=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,lw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,uw=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,cw=/mixcloud\.com\/([^/]+\/[^/]+)/,fw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,dw=/^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-_].*)$/,up=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,cp=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,fp=/\.(m3u8)($|\?)/i,hw=/\.(mpd)($|\?)/i,pw=/\.(flv)($|\?)/i,Md=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Md(t)||Md(t.src))return!0;return!1}return(0,Dg.isMediaStream)(e)||(0,Dg.isBlobUrl)(e)?!0:up.test(e)||cp.test(e)||fp.test(e)||hw.test(e)||pw.test(e)},HX={youtube:e=>e instanceof Array?e.every(t=>Ed.test(t)):Ed.test(e),soundcloud:e=>tw.test(e)&&!up.test(e),vimeo:e=>nw.test(e)&&!cp.test(e)&&!fp.test(e),facebook:e=>rw.test(e)||iw.test(e),streamable:e=>aw.test(e),wistia:e=>ow.test(e),twitch:e=>sw.test(e)||lw.test(e),dailymotion:e=>uw.test(e),mixcloud:e=>cw.test(e),vidyard:e=>fw.test(e),kaltura:e=>dw.test(e),file:Md};var dp=Object.defineProperty,UX=Object.getOwnPropertyDescriptor,WX=Object.getOwnPropertyNames,YX=Object.prototype.hasOwnProperty,VX=(e,t)=>{for(var n in t)dp(e,n,{get:t[n],enumerable:!0})},GX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of WX(t))!YX.call(e,i)&&i!==n&&dp(e,i,{get:()=>t[i],enumerable:!(r=UX(t,i))||r.enumerable});return e},qX=e=>GX(dp({},"__esModule",{value:!0}),e),mw={};VX(mw,{default:()=>XX});var KX=qX(mw),nn=Bu,Xt=FX,XX=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./YouTube-f35565d2.js").then(e=>e.Y),["assets/YouTube-f35565d2.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./SoundCloud-3a2f5fce.js").then(e=>e.S),["assets/SoundCloud-3a2f5fce.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vimeo-53d2adea.js").then(e=>e.V),["assets/Vimeo-53d2adea.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Facebook-0112da49.js").then(e=>e.F),["assets/Facebook-0112da49.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Streamable-87694463.js").then(e=>e.S),["assets/Streamable-87694463.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Wistia-1e5334ca.js").then(e=>e.W),["assets/Wistia-1e5334ca.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Twitch-4a16b760.js").then(e=>e.T),["assets/Twitch-4a16b760.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./DailyMotion-7e5d5b1e.js").then(e=>e.D),["assets/DailyMotion-7e5d5b1e.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Mixcloud-8782ddfa.js").then(e=>e.M),["assets/Mixcloud-8782ddfa.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vidyard-f0248875.js").then(e=>e.V),["assets/Vidyard-f0248875.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Kaltura-698ee13e.js").then(e=>e.K),["assets/Kaltura-698ee13e.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:Xt.canPlay.file,canEnablePIP:e=>Xt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,nn.supportsWebKitPresentationMode)())&&!Xt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./FilePlayer-ee3595f9.js").then(e=>e.F),["assets/FilePlayer-ee3595f9.js","assets/index-87686c58.js","assets/index-a2878e02.css"]))}],Lg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ZX(e,t){return!!(e===t||Lg(e)&&Lg(t))}function JX(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)zu(e,n,{get:t[n],enumerable:!0})},gw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lZ(t))!cZ.call(e,i)&&i!==n&&zu(e,i,{get:()=>t[i],enumerable:!(r=sZ(t,i))||r.enumerable});return e},dZ=(e,t,n)=>(n=e!=null?oZ(uZ(e)):{},gw(t||!e||!e.__esModule?zu(n,"default",{value:e,enumerable:!0}):n,e)),hZ=e=>gw(zu({},"__esModule",{value:!0}),e),vw={};fZ(vw,{defaultProps:()=>yZ,propTypes:()=>mZ});var xw=hZ(vw),pZ=dZ(L4);const{string:Wt,bool:Yt,number:xi,array:af,oneOfType:Ia,shape:pn,object:Vt,func:wt,node:Ng}=pZ.default,mZ={url:Ia([Wt,af,Vt]),playing:Yt,loop:Yt,controls:Yt,volume:xi,muted:Yt,playbackRate:xi,width:Ia([Wt,xi]),height:Ia([Wt,xi]),style:Vt,progressInterval:xi,playsinline:Yt,pip:Yt,stopOnUnmount:Yt,light:Ia([Yt,Wt,Vt]),playIcon:Ng,previewTabIndex:xi,fallback:Ng,oEmbedUrl:Wt,wrapper:Ia([Wt,wt,pn({render:wt.isRequired})]),config:pn({soundcloud:pn({options:Vt}),youtube:pn({playerVars:Vt,embedOptions:Vt,onUnstarted:wt}),facebook:pn({appId:Wt,version:Wt,playerId:Wt,attributes:Vt}),dailymotion:pn({params:Vt}),vimeo:pn({playerOptions:Vt,title:Wt}),file:pn({attributes:Vt,tracks:af,forceVideo:Yt,forceAudio:Yt,forceHLS:Yt,forceSafariHLS:Yt,forceDisableHls:Yt,forceDASH:Yt,forceFLV:Yt,hlsOptions:Vt,hlsVersion:Wt,dashVersion:Wt,flvVersion:Wt}),wistia:pn({options:Vt,playerId:Wt,customControls:af}),mixcloud:pn({options:Vt}),twitch:pn({options:Vt,playerId:Wt}),vidyard:pn({options:Vt})}),onReady:wt,onStart:wt,onPlay:wt,onPause:wt,onBuffer:wt,onBufferEnd:wt,onEnded:wt,onError:wt,onDuration:wt,onSeek:wt,onPlaybackRateChange:wt,onPlaybackQualityChange:wt,onProgress:wt,onClickPreview:wt,onEnablePIP:wt,onDisablePIP:wt},Mt=()=>{},yZ={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:Mt},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:Mt,onStart:Mt,onPlay:Mt,onPause:Mt,onBuffer:Mt,onBufferEnd:Mt,onEnded:Mt,onError:Mt,onDuration:Mt,onSeek:Mt,onPlaybackRateChange:Mt,onPlaybackQualityChange:Mt,onProgress:Mt,onClickPreview:Mt,onEnablePIP:Mt,onDisablePIP:Mt};var gZ=Object.create,es=Object.defineProperty,vZ=Object.getOwnPropertyDescriptor,xZ=Object.getOwnPropertyNames,bZ=Object.getPrototypeOf,wZ=Object.prototype.hasOwnProperty,SZ=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_Z=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},bw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xZ(t))!wZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=vZ(t,i))||r.enumerable});return e},ww=(e,t,n)=>(n=e!=null?gZ(bZ(e)):{},bw(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),OZ=e=>bw(es({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(SZ(e,typeof t!="symbol"?t+"":t,n),n),Sw={};_Z(Sw,{default:()=>Fu});var kZ=OZ(Sw),Rg=ww(B),CZ=ww(yw),_w=xw,PZ=Bu;const AZ=5e3;class Fu extends Rg.Component{constructor(){super(...arguments),vt(this,"mounted",!1),vt(this,"isReady",!1),vt(this,"isPlaying",!1),vt(this,"isLoading",!0),vt(this,"loadOnReady",null),vt(this,"startOnPlay",!0),vt(this,"seekOnPlay",null),vt(this,"onDurationCalled",!1),vt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),vt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),vt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const i={playedSeconds:t,played:t/r};n!==null&&(i.loadedSeconds=n,i.loaded=n/r),(i.playedSeconds!==this.prevPlayed||i.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(i),this.prevPlayed=i.playedSeconds,this.prevLoaded=i.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),vt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:i}=this.props;t(),!i&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),vt(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()}),vt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),vt(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),vt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),vt(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)}),vt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:i,muted:a,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:f}=this.props;if(!(0,CZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,PZ.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!==i&&i!==null&&this.player.setVolume(i),t.muted!==a&&(a?this.player.mute():(this.player.unmute(),i!==null&&setTimeout(()=>this.player.setVolume(i)))),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},AZ));return}if(n?n==="fraction":t>0&&t<1){const a=this.player.getDuration();if(!a){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(a*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Rg.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}}vt(Fu,"displayName","Player");vt(Fu,"propTypes",_w.propTypes);vt(Fu,"defaultProps",_w.defaultProps);var jZ=Object.create,ts=Object.defineProperty,TZ=Object.getOwnPropertyDescriptor,EZ=Object.getOwnPropertyNames,MZ=Object.getPrototypeOf,$Z=Object.prototype.hasOwnProperty,IZ=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DZ=(e,t)=>{for(var n in t)ts(e,n,{get:t[n],enumerable:!0})},Ow=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of EZ(t))!$Z.call(e,i)&&i!==n&&ts(e,i,{get:()=>t[i],enumerable:!(r=TZ(t,i))||r.enumerable});return e},ns=(e,t,n)=>(n=e!=null?jZ(MZ(e)):{},Ow(t||!e||!e.__esModule?ts(n,"default",{value:e,enumerable:!0}):n,e)),LZ=e=>Ow(ts({},"__esModule",{value:!0}),e),gt=(e,t,n)=>(IZ(e,typeof t!="symbol"?t+"":t,n),n),kw={};DZ(kw,{createReactPlayer:()=>YZ});var NZ=LZ(kw),wi=ns(B),RZ=ns(X2),of=ns(tZ),Bg=ns(yw),Ba=xw,Cw=Bu,BZ=ns(kZ);const zZ=(0,Cw.lazy)(()=>rn(()=>import("./Preview-144ce145.js").then(e=>e.P),["assets/Preview-144ce145.js","assets/index-87686c58.js","assets/index-a2878e02.css"])),FZ=typeof window<"u"&&window.document,HZ=typeof Bt<"u"&&Bt.window&&Bt.window.document,UZ=Object.keys(Ba.propTypes),WZ=FZ||HZ?wi.Suspense:()=>null,Da=[],YZ=(e,t)=>{var n;return n=class extends wi.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),gt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),gt(this,"seekTo",(r,i,a)=>{if(!this.player)return null;this.player.seekTo(r,i,a)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,of.default)(r=>{for(const i of[...Da,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,of.default)((r,i)=>{const{config:a}=this.props;return RZ.default.all([Ba.defaultProps.config,Ba.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,of.default)(r=>(0,Cw.omit)(this.props,UZ))),gt(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const a=this.getConfig(r,i.key);return wi.default.createElement(BZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Bg.default)(this.props,r)||!(0,Bg.default)(this.state,i)}componentDidUpdate(r){const{light:i}=this.props;!r.light&&i&&this.setState({showPreview:!0}),r.light&&!i&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s}=this.props;return wi.default.createElement(zZ,{url:r,light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:a,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,f=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return wi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},wi.default.createElement(WZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Ba.propTypes),gt(n,"defaultProps",Ba.defaultProps),gt(n,"addCustomPlayer",r=>{Da.push(r)}),gt(n,"removeCustomPlayers",()=>{Da.length=0}),gt(n,"canPlay",r=>{for(const i of[...Da,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...Da,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var VZ=Object.create,Hu=Object.defineProperty,GZ=Object.getOwnPropertyDescriptor,qZ=Object.getOwnPropertyNames,KZ=Object.getPrototypeOf,XZ=Object.prototype.hasOwnProperty,ZZ=(e,t)=>{for(var n in t)Hu(e,n,{get:t[n],enumerable:!0})},Pw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qZ(t))!XZ.call(e,i)&&i!==n&&Hu(e,i,{get:()=>t[i],enumerable:!(r=GZ(t,i))||r.enumerable});return e},JZ=(e,t,n)=>(n=e!=null?VZ(KZ(e)):{},Pw(t||!e||!e.__esModule?Hu(n,"default",{value:e,enumerable:!0}):n,e)),QZ=e=>Pw(Hu({},"__esModule",{value:!0}),e),Aw={};ZZ(Aw,{default:()=>rJ});var eJ=QZ(Aw),$d=JZ(KX),tJ=NZ;const nJ=$d.default[$d.default.length-1];var rJ=(0,tJ.createReactPlayer)($d.default,nJ);const iJ=ot(eJ),aJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_4160_9271)",children:y.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),oJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3130_18463)",children:y.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),sJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_up",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1483_75386)",children:y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),lJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_mute",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),y.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),zg=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),i=t>0?`${t}:`:"",a=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${i}${a}:${o}`},uJ=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:i,handleProgressChange:a,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,f]=B.useState(.5),[d,h]=B.useState(!1),[m,g]=B.useState(.5),v=(O,k)=>{const C=Array.isArray(k)?k[0]:k;f(C),o(O,C),d&&h(!1)},b=()=>{d?(f(m),o(new Event("input"),m)):(g(u),f(0),o(new Event("input"),0)),h(!d)};return y.jsxs(F,{children:[(!l||t)&&y.jsx(yJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(cJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(hJ,{onClick:n,size:"small",children:e?y.jsx(Yl,{}):y.jsx(Bd,{})}),y.jsxs(gJ,{direction:"row",children:[y.jsx("span",{children:zg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:zg(i)})]}),y.jsxs(pJ,{direction:"row",px:9,children:[y.jsx(ql,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(fJ,{onClick:b,children:d?y.jsx(dJ,{children:y.jsx(lJ,{})}):y.jsx(sJ,{})})]}),y.jsx(mJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(aJ,{}):y.jsx(oJ,{})})]})]})},cJ=H(F)` +`,YK=()=>{const e=zt(),{setPlayingNode:t}=Vl(n=>n);switch(B.useEffect(()=>{var r,i;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((i=e.properties)==null?void 0:i.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(fK,{});case"data_series":return y.jsx(lq,{});case"tribe_message":return y.jsx(sK,{});case"Tweet":return y.jsx(wK,{});case"topic":return y.jsx(bK,{});case"show":return y.jsx(xK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(q2,{});case"document":return y.jsx(BK,{});case"episode":return y.jsx(nK,{},e.ref_id);case"image":return y.jsx(oK,{});default:return y.jsx(AK,{})}},VK=B.memo(YK);var GK=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async="async"in n?!!n.async:!0,a.src=t,n.attrs&&qK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?$g:KK;o(a,r),a.onload||$g(a,r),i.appendChild(a)};function qK(e,t){for(var n in t)e.setAttribute(n,t[n])}function $g(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 KK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var XK=function(t){return ZK(t)&&!JK(t)};function ZK(e){return!!e&&typeof e=="object"}function JK(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||tX(e)}var QK=typeof Symbol=="function"&&Symbol.for,eX=QK?Symbol.for("react.element"):60103;function tX(e){return e.$$typeof===eX}function nX(e){return Array.isArray(e)?[]:{}}function No(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ji(nX(e),e,t):e}function rX(e,t,n){return e.concat(t).map(function(r){return No(r,n)})}function iX(e,t){if(!t.customMerge)return Ji;var n=t.customMerge(e);return typeof n=="function"?n:Ji}function aX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ig(e){return Object.keys(e).concat(aX(e))}function K2(e,t){try{return t in e}catch{return!1}}function oX(e,t){return K2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function sX(e,t,n){var r={};return n.isMergeableObject(e)&&Ig(e).forEach(function(i){r[i]=No(e[i],n)}),Ig(t).forEach(function(i){oX(e,i)||(K2(e,i)&&n.isMergeableObject(t[i])?r[i]=iX(i,n)(e[i],t[i],n):r[i]=No(t[i],n))}),r}function Ji(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||rX,n.isMergeableObject=n.isMergeableObject||XK,n.cloneUnlessOtherwiseSpecified=No;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):sX(e,t,n):No(t,n)}Ji.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Ji(r,i,n)},{})};var lX=Ji,X2=lX,uX=Object.create,Ru=Object.defineProperty,cX=Object.getOwnPropertyDescriptor,fX=Object.getOwnPropertyNames,dX=Object.getPrototypeOf,hX=Object.prototype.hasOwnProperty,pX=(e,t)=>{for(var n in t)Ru(e,n,{get:t[n],enumerable:!0})},Z2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fX(t))!hX.call(e,i)&&i!==n&&Ru(e,i,{get:()=>t[i],enumerable:!(r=cX(t,i))||r.enumerable});return e},sp=(e,t,n)=>(n=e!=null?uX(dX(e)):{},Z2(t||!e||!e.__esModule?Ru(n,"default",{value:e,enumerable:!0}):n,e)),mX=e=>Z2(Ru({},"__esModule",{value:!0}),e),J2={};pX(J2,{callPlayer:()=>EX,getConfig:()=>jX,getSDK:()=>AX,isBlobUrl:()=>$X,isMediaStream:()=>MX,lazy:()=>xX,omit:()=>TX,parseEndTime:()=>kX,parseStartTime:()=>OX,queryString:()=>PX,randomString:()=>CX,supportsWebKitPresentationMode:()=>IX});var Bu=mX(J2),yX=sp(B),gX=sp(GK),vX=sp(X2);const xX=e=>yX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),bX=/[?&#](?:start|t)=([0-9hms]+)/,wX=/[?&#]end=([0-9hms]+)/,Td=/(\d+)(h|m|s)/g,SX=/^\d+$/;function Q2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(Td))return _X(r);if(SX.test(r))return parseInt(r)}}function _X(e){let t=0,n=Td.exec(e);for(;n!==null;){const[,r,i]=n;i==="h"&&(t+=parseInt(r,10)*60*60),i==="m"&&(t+=parseInt(r,10)*60),i==="s"&&(t+=parseInt(r,10)),n=Td.exec(e)}return t}function OX(e){return Q2(e,bX)}function kX(e){return Q2(e,wX)}function CX(){return Math.random().toString(36).substr(2,5)}function PX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function rf(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 vi={},AX=function(t,n,r=null,i=()=>!0,a=gX.default){const o=rf(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(vi[t]){vi[t].push({resolve:s,reject:l});return}vi[t]=[{resolve:s,reject:l}];const u=f=>{vi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(rf(n))}}a(t,f=>{f?(vi[t].forEach(d=>d.reject(f)),vi[t]=null):r||u(rf(n))})})};function jX(e,t){return(0,vX.default)(t.config,e.config)}function TX(e,...t){const n=[].concat(...t),r={},i=Object.keys(e);for(const a of i)n.indexOf(a)===-1&&(r[a]=e[a]);return r}function EX(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 MX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function $X(e){return/^blob:/.test(e)}function IX(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var lp=Object.defineProperty,DX=Object.getOwnPropertyDescriptor,LX=Object.getOwnPropertyNames,NX=Object.prototype.hasOwnProperty,RX=(e,t)=>{for(var n in t)lp(e,n,{get:t[n],enumerable:!0})},BX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of LX(t))!NX.call(e,i)&&i!==n&&lp(e,i,{get:()=>t[i],enumerable:!(r=DX(t,i))||r.enumerable});return e},zX=e=>BX(lp({},"__esModule",{value:!0}),e),ew={};RX(ew,{AUDIO_EXTENSIONS:()=>up,DASH_EXTENSIONS:()=>hw,FLV_EXTENSIONS:()=>pw,HLS_EXTENSIONS:()=>fp,MATCH_URL_DAILYMOTION:()=>uw,MATCH_URL_FACEBOOK:()=>rw,MATCH_URL_FACEBOOK_WATCH:()=>iw,MATCH_URL_KALTURA:()=>dw,MATCH_URL_MIXCLOUD:()=>cw,MATCH_URL_SOUNDCLOUD:()=>tw,MATCH_URL_STREAMABLE:()=>aw,MATCH_URL_TWITCH_CHANNEL:()=>lw,MATCH_URL_TWITCH_VIDEO:()=>sw,MATCH_URL_VIDYARD:()=>fw,MATCH_URL_VIMEO:()=>nw,MATCH_URL_WISTIA:()=>ow,MATCH_URL_YOUTUBE:()=>Ed,VIDEO_EXTENSIONS:()=>cp,canPlay:()=>HX});var FX=zX(ew),Dg=Bu;const Ed=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,tw=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,nw=/vimeo\.com\/(?!progressive_redirect).+/,rw=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,iw=/^https?:\/\/fb\.watch\/.+$/,aw=/streamable\.com\/([a-z0-9]+)$/,ow=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,sw=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,lw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,uw=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,cw=/mixcloud\.com\/([^/]+\/[^/]+)/,fw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,dw=/^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-_].*)$/,up=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,cp=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,fp=/\.(m3u8)($|\?)/i,hw=/\.(mpd)($|\?)/i,pw=/\.(flv)($|\?)/i,Md=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Md(t)||Md(t.src))return!0;return!1}return(0,Dg.isMediaStream)(e)||(0,Dg.isBlobUrl)(e)?!0:up.test(e)||cp.test(e)||fp.test(e)||hw.test(e)||pw.test(e)},HX={youtube:e=>e instanceof Array?e.every(t=>Ed.test(t)):Ed.test(e),soundcloud:e=>tw.test(e)&&!up.test(e),vimeo:e=>nw.test(e)&&!cp.test(e)&&!fp.test(e),facebook:e=>rw.test(e)||iw.test(e),streamable:e=>aw.test(e),wistia:e=>ow.test(e),twitch:e=>sw.test(e)||lw.test(e),dailymotion:e=>uw.test(e),mixcloud:e=>cw.test(e),vidyard:e=>fw.test(e),kaltura:e=>dw.test(e),file:Md};var dp=Object.defineProperty,UX=Object.getOwnPropertyDescriptor,WX=Object.getOwnPropertyNames,YX=Object.prototype.hasOwnProperty,VX=(e,t)=>{for(var n in t)dp(e,n,{get:t[n],enumerable:!0})},GX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of WX(t))!YX.call(e,i)&&i!==n&&dp(e,i,{get:()=>t[i],enumerable:!(r=UX(t,i))||r.enumerable});return e},qX=e=>GX(dp({},"__esModule",{value:!0}),e),mw={};VX(mw,{default:()=>XX});var KX=qX(mw),nn=Bu,Xt=FX,XX=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./YouTube-9711fea4.js").then(e=>e.Y),["assets/YouTube-9711fea4.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./SoundCloud-e64077e4.js").then(e=>e.S),["assets/SoundCloud-e64077e4.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vimeo-e40b2451.js").then(e=>e.V),["assets/Vimeo-e40b2451.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Facebook-348c902e.js").then(e=>e.F),["assets/Facebook-348c902e.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Streamable-92b10aba.js").then(e=>e.S),["assets/Streamable-92b10aba.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Wistia-ec05616f.js").then(e=>e.W),["assets/Wistia-ec05616f.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Twitch-09d5993e.js").then(e=>e.T),["assets/Twitch-09d5993e.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./DailyMotion-64c0e0af.js").then(e=>e.D),["assets/DailyMotion-64c0e0af.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Mixcloud-32eb2c6f.js").then(e=>e.M),["assets/Mixcloud-32eb2c6f.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vidyard-0687345c.js").then(e=>e.V),["assets/Vidyard-0687345c.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Kaltura-c388d887.js").then(e=>e.K),["assets/Kaltura-c388d887.js","assets/index-66901234.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:Xt.canPlay.file,canEnablePIP:e=>Xt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,nn.supportsWebKitPresentationMode)())&&!Xt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./FilePlayer-822a0f20.js").then(e=>e.F),["assets/FilePlayer-822a0f20.js","assets/index-66901234.js","assets/index-a2878e02.css"]))}],Lg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ZX(e,t){return!!(e===t||Lg(e)&&Lg(t))}function JX(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)zu(e,n,{get:t[n],enumerable:!0})},gw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lZ(t))!cZ.call(e,i)&&i!==n&&zu(e,i,{get:()=>t[i],enumerable:!(r=sZ(t,i))||r.enumerable});return e},dZ=(e,t,n)=>(n=e!=null?oZ(uZ(e)):{},gw(t||!e||!e.__esModule?zu(n,"default",{value:e,enumerable:!0}):n,e)),hZ=e=>gw(zu({},"__esModule",{value:!0}),e),vw={};fZ(vw,{defaultProps:()=>yZ,propTypes:()=>mZ});var xw=hZ(vw),pZ=dZ(L4);const{string:Wt,bool:Yt,number:xi,array:af,oneOfType:Ia,shape:pn,object:Vt,func:wt,node:Ng}=pZ.default,mZ={url:Ia([Wt,af,Vt]),playing:Yt,loop:Yt,controls:Yt,volume:xi,muted:Yt,playbackRate:xi,width:Ia([Wt,xi]),height:Ia([Wt,xi]),style:Vt,progressInterval:xi,playsinline:Yt,pip:Yt,stopOnUnmount:Yt,light:Ia([Yt,Wt,Vt]),playIcon:Ng,previewTabIndex:xi,fallback:Ng,oEmbedUrl:Wt,wrapper:Ia([Wt,wt,pn({render:wt.isRequired})]),config:pn({soundcloud:pn({options:Vt}),youtube:pn({playerVars:Vt,embedOptions:Vt,onUnstarted:wt}),facebook:pn({appId:Wt,version:Wt,playerId:Wt,attributes:Vt}),dailymotion:pn({params:Vt}),vimeo:pn({playerOptions:Vt,title:Wt}),file:pn({attributes:Vt,tracks:af,forceVideo:Yt,forceAudio:Yt,forceHLS:Yt,forceSafariHLS:Yt,forceDisableHls:Yt,forceDASH:Yt,forceFLV:Yt,hlsOptions:Vt,hlsVersion:Wt,dashVersion:Wt,flvVersion:Wt}),wistia:pn({options:Vt,playerId:Wt,customControls:af}),mixcloud:pn({options:Vt}),twitch:pn({options:Vt,playerId:Wt}),vidyard:pn({options:Vt})}),onReady:wt,onStart:wt,onPlay:wt,onPause:wt,onBuffer:wt,onBufferEnd:wt,onEnded:wt,onError:wt,onDuration:wt,onSeek:wt,onPlaybackRateChange:wt,onPlaybackQualityChange:wt,onProgress:wt,onClickPreview:wt,onEnablePIP:wt,onDisablePIP:wt},Mt=()=>{},yZ={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:Mt},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:Mt,onStart:Mt,onPlay:Mt,onPause:Mt,onBuffer:Mt,onBufferEnd:Mt,onEnded:Mt,onError:Mt,onDuration:Mt,onSeek:Mt,onPlaybackRateChange:Mt,onPlaybackQualityChange:Mt,onProgress:Mt,onClickPreview:Mt,onEnablePIP:Mt,onDisablePIP:Mt};var gZ=Object.create,es=Object.defineProperty,vZ=Object.getOwnPropertyDescriptor,xZ=Object.getOwnPropertyNames,bZ=Object.getPrototypeOf,wZ=Object.prototype.hasOwnProperty,SZ=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_Z=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},bw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xZ(t))!wZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=vZ(t,i))||r.enumerable});return e},ww=(e,t,n)=>(n=e!=null?gZ(bZ(e)):{},bw(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),OZ=e=>bw(es({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(SZ(e,typeof t!="symbol"?t+"":t,n),n),Sw={};_Z(Sw,{default:()=>Fu});var kZ=OZ(Sw),Rg=ww(B),CZ=ww(yw),_w=xw,PZ=Bu;const AZ=5e3;class Fu extends Rg.Component{constructor(){super(...arguments),vt(this,"mounted",!1),vt(this,"isReady",!1),vt(this,"isPlaying",!1),vt(this,"isLoading",!0),vt(this,"loadOnReady",null),vt(this,"startOnPlay",!0),vt(this,"seekOnPlay",null),vt(this,"onDurationCalled",!1),vt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),vt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),vt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const i={playedSeconds:t,played:t/r};n!==null&&(i.loadedSeconds=n,i.loaded=n/r),(i.playedSeconds!==this.prevPlayed||i.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(i),this.prevPlayed=i.playedSeconds,this.prevLoaded=i.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),vt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:i}=this.props;t(),!i&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),vt(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()}),vt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),vt(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),vt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),vt(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)}),vt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:i,muted:a,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:f}=this.props;if(!(0,CZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,PZ.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!==i&&i!==null&&this.player.setVolume(i),t.muted!==a&&(a?this.player.mute():(this.player.unmute(),i!==null&&setTimeout(()=>this.player.setVolume(i)))),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},AZ));return}if(n?n==="fraction":t>0&&t<1){const a=this.player.getDuration();if(!a){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(a*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Rg.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}}vt(Fu,"displayName","Player");vt(Fu,"propTypes",_w.propTypes);vt(Fu,"defaultProps",_w.defaultProps);var jZ=Object.create,ts=Object.defineProperty,TZ=Object.getOwnPropertyDescriptor,EZ=Object.getOwnPropertyNames,MZ=Object.getPrototypeOf,$Z=Object.prototype.hasOwnProperty,IZ=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DZ=(e,t)=>{for(var n in t)ts(e,n,{get:t[n],enumerable:!0})},Ow=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of EZ(t))!$Z.call(e,i)&&i!==n&&ts(e,i,{get:()=>t[i],enumerable:!(r=TZ(t,i))||r.enumerable});return e},ns=(e,t,n)=>(n=e!=null?jZ(MZ(e)):{},Ow(t||!e||!e.__esModule?ts(n,"default",{value:e,enumerable:!0}):n,e)),LZ=e=>Ow(ts({},"__esModule",{value:!0}),e),gt=(e,t,n)=>(IZ(e,typeof t!="symbol"?t+"":t,n),n),kw={};DZ(kw,{createReactPlayer:()=>YZ});var NZ=LZ(kw),wi=ns(B),RZ=ns(X2),of=ns(tZ),Bg=ns(yw),Ba=xw,Cw=Bu,BZ=ns(kZ);const zZ=(0,Cw.lazy)(()=>rn(()=>import("./Preview-4e377939.js").then(e=>e.P),["assets/Preview-4e377939.js","assets/index-66901234.js","assets/index-a2878e02.css"])),FZ=typeof window<"u"&&window.document,HZ=typeof Bt<"u"&&Bt.window&&Bt.window.document,UZ=Object.keys(Ba.propTypes),WZ=FZ||HZ?wi.Suspense:()=>null,Da=[],YZ=(e,t)=>{var n;return n=class extends wi.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),gt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),gt(this,"seekTo",(r,i,a)=>{if(!this.player)return null;this.player.seekTo(r,i,a)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,of.default)(r=>{for(const i of[...Da,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,of.default)((r,i)=>{const{config:a}=this.props;return RZ.default.all([Ba.defaultProps.config,Ba.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,of.default)(r=>(0,Cw.omit)(this.props,UZ))),gt(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const a=this.getConfig(r,i.key);return wi.default.createElement(BZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Bg.default)(this.props,r)||!(0,Bg.default)(this.state,i)}componentDidUpdate(r){const{light:i}=this.props;!r.light&&i&&this.setState({showPreview:!0}),r.light&&!i&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s}=this.props;return wi.default.createElement(zZ,{url:r,light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:a,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,f=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return wi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},wi.default.createElement(WZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Ba.propTypes),gt(n,"defaultProps",Ba.defaultProps),gt(n,"addCustomPlayer",r=>{Da.push(r)}),gt(n,"removeCustomPlayers",()=>{Da.length=0}),gt(n,"canPlay",r=>{for(const i of[...Da,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...Da,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var VZ=Object.create,Hu=Object.defineProperty,GZ=Object.getOwnPropertyDescriptor,qZ=Object.getOwnPropertyNames,KZ=Object.getPrototypeOf,XZ=Object.prototype.hasOwnProperty,ZZ=(e,t)=>{for(var n in t)Hu(e,n,{get:t[n],enumerable:!0})},Pw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qZ(t))!XZ.call(e,i)&&i!==n&&Hu(e,i,{get:()=>t[i],enumerable:!(r=GZ(t,i))||r.enumerable});return e},JZ=(e,t,n)=>(n=e!=null?VZ(KZ(e)):{},Pw(t||!e||!e.__esModule?Hu(n,"default",{value:e,enumerable:!0}):n,e)),QZ=e=>Pw(Hu({},"__esModule",{value:!0}),e),Aw={};ZZ(Aw,{default:()=>rJ});var eJ=QZ(Aw),$d=JZ(KX),tJ=NZ;const nJ=$d.default[$d.default.length-1];var rJ=(0,tJ.createReactPlayer)($d.default,nJ);const iJ=ot(eJ),aJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_4160_9271)",children:y.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),oJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3130_18463)",children:y.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),sJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_up",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1483_75386)",children:y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),lJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_mute",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),y.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),zg=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),i=t>0?`${t}:`:"",a=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${i}${a}:${o}`},uJ=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:i,handleProgressChange:a,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,f]=B.useState(.5),[d,h]=B.useState(!1),[m,g]=B.useState(.5),v=(O,k)=>{const C=Array.isArray(k)?k[0]:k;f(C),o(O,C),d&&h(!1)},b=()=>{d?(f(m),o(new Event("input"),m)):(g(u),f(0),o(new Event("input"),0)),h(!d)};return y.jsxs(F,{children:[(!l||t)&&y.jsx(yJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(cJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(hJ,{onClick:n,size:"small",children:e?y.jsx(Yl,{}):y.jsx(Bd,{})}),y.jsxs(gJ,{direction:"row",children:[y.jsx("span",{children:zg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:zg(i)})]}),y.jsxs(pJ,{direction:"row",px:9,children:[y.jsx(ql,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(fJ,{onClick:b,children:d?y.jsx(dJ,{children:y.jsx(lJ,{})}):y.jsx(sJ,{})})]}),y.jsx(mJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(aJ,{}):y.jsx(oJ,{})})]})]})},cJ=H(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` @@ -2048,4 +2048,4 @@ ${({disabled:e})=>e&&qg` `,jJ=H(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:L.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:L.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:L.BG1_HOVER},"&:active":{backgroundColor:L.BG1_PRESS,color:L.GRAY6}})),TJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"chevron_right",children:[y.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1247_21809)",children:y.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),EJ=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=At(n=>({sidebarIsOpen:n.setSidebarOpen,showCollapseButton:n.showCollapseButton}));return y.jsx(y.Fragment,{children:t&&y.jsx(MJ,{onClick:()=>{e(!0)},children:y.jsx(TJ,{})})})},MJ=H(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:L.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:L.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:L.BG1_HOVER},"&:active":{backgroundColor:L.BG1_PRESS,color:L.GRAY6}})),jw=390,$J=B.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:n}=At(i=>i),r=R4();return y.jsxs(LJ,{ref:t,id:"sidebar-wrapper",children:[y.jsx(RJ,{}),r?y.jsx(h9,{}):y.jsx(YC,{}),!e&&y.jsx(NJ,{onClick:()=>{n(!1)},children:y.jsx(dv,{})})]})}),IJ=["topic","person","guest","event","organization","place","project","software"],DJ=e=>{if(e==null)return!1;const n=Object.keys(e).filter(r=>r!=="pubkey");return n.length===1&&n[0]==="name"},Tw=()=>{const{sidebarIsOpen:e}=At(r=>r),t=zt(),n=!!t&&e&&!IJ.includes(t.node_type)&&!DJ(t.properties);return y.jsxs(y.Fragment,{children:[y.jsx(Ei,{direction:"right",in:e,mountOnEnter:!0,unmountOnExit:!0,children:y.jsx($J,{subViewOpen:n})}),y.jsx(kJ,{open:n}),!e&&y.jsx(EJ,{})]})},LJ=H(F)(({theme:e})=>({position:"relative",background:L.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:jw}})),NJ=H(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:L.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:L.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:L.BG1_HOVER},"&:active":{backgroundColor:L.BG1_PRESS,color:L.GRAY6}})),RJ=H(F)` flex: 0 0 64px; background: ${L.BG2}; -`;Tw.displayName="Sidebar";const ZJ=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:jw,SideBar:Tw},Symbol.toStringTag,{value:"Module"}));export{ZJ as i,FX as p,Bu as u}; +`;Tw.displayName="Sidebar";const JJ=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:jw,SideBar:Tw},Symbol.toStringTag,{value:"Module"}));export{JJ as i,FX as p,Bu as u}; diff --git a/build/assets/index-87686c58.js b/build/assets/index-66901234.js similarity index 99% rename from build/assets/index-87686c58.js rename to build/assets/index-66901234.js index c3e3de096..957e4c738 100644 --- a/build/assets/index-87686c58.js +++ b/build/assets/index-66901234.js @@ -427,10 +427,10 @@ PROCEED WITH CAUTION! `,InfoIcon=o=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"info",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_2682_970)",children:jsxRuntimeExports.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"})})]})}),Alerts=()=>{const[o,et]=reactExports.useState(null),{runningProjectMessages:tt}=useDataStore(st=>st),rt=st=>{et(st.currentTarget)},it=()=>{et(null)},nt=!!o,at=nt?"simple-popover":void 0;return tt.length?jsxRuntimeExports.jsxs(AlertWrapper,{ml:8,children:[jsxRuntimeExports.jsx(Info,{onClick:rt,children:jsxRuntimeExports.jsxs(Tooltip,{content:"Messages",margin:"18px",children:[jsxRuntimeExports.jsx("div",{className:"icon",children:jsxRuntimeExports.jsx(InfoIcon,{})}),jsxRuntimeExports.jsx("div",{className:"text",children:jsxRuntimeExports.jsx("p",{children:tt.length})})]})}),jsxRuntimeExports.jsx(Popover$1,{anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:at,onClose:it,open:nt,children:jsxRuntimeExports.jsx(ContentWrapper,{p:16,children:tt.map(st=>jsxRuntimeExports.jsx("p",{className:"item",children:st},st))})})]}):null},AlertWrapper=styled$3(Flex).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,ContentWrapper=styled$3(Flex)` max-height: 33vh; max-width: 30vw; + background: ${colors.BG1}; .item { - background: ${colors.BG1}; - padding: 4px 0; + padding: 8px 0; border-bottom: 1px solid ${colors.black}; word-break: break-word; } @@ -719,4 +719,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-67098fb8.js").then(o=>o.H),["assets/index-67098fb8.js","assets/index-b60658ac.css"]).then(({App:o})=>({default:o}))),AppContainer=()=>{const o=jsxRuntimeExports.jsx(LazyApp,{}),{splashDataLoading:et}=useDataStore(tt=>tt);return jsxRuntimeExports.jsxs(AppProviders,{children:[et&&jsxRuntimeExports.jsx(Splash,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:o,path:"/"}),jsxRuntimeExports.jsx(Route,{element:o,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:o,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,Tooltip as A,create$3 as B,devtools as C,useSelectedNode as D,useUpdateSelectedNode as E,Flex as F,useAppStore as G,useUserStore as H,Text as I,__vitePreload as J,media as K,LinearProgress$1 as L,useAiSummaryStore as M,useNavigate as N,Stats as O,PropTypes as P,useSearchParams as Q,React as R,SocketContext as S,TransitionGroupContext as T,useFeatureFlagStore as U,isDevelopment as V,We as W,updateBudget as X,useModal as Y,isSphinx as Z,_inheritsLoose as _,_extends$1 as a,_defineProperty$1 as a$,useSelectedNodeRelativeIds as a0,forceSimulation as a1,forceCollide as a2,forceCenter as a3,forceManyBody as a4,forceLink as a5,NODE_RELATIVE_HIGHLIGHT_COLORS as a6,useHoveredNode as a7,useNodeTypes as a8,lottie as a9,commonjsGlobal as aA,commonjsRequire as aB,useFilteredNodes as aC,getSchemaAll as aD,_baseGetTag as aE,isObjectLike_1 as aF,isArray_1 as aG,_MapCache as aH,_Symbol as aI,isObject$b as aJ,isFunction$3 as aK,_Uint8Array as aL,eq_1 as aM,_getAllKeys as aN,_Stack as aO,_getTag as aP,isBufferExports as aQ,isTypedArray_1 as aR,isObject_1 as aS,keys_1 as aT,isArguments_1 as aU,_isIndex as aV,isLength_1 as aW,_Set as aX,_arrayPush as aY,isArrayLike_1 as aZ,_baseUnary as a_,fetchNodeEdges as aa,NodesIcon as ab,Popover$1 as ac,lodashExports as ad,addToGlobalForE2e as ae,api as af,distExports$1 as ag,executeIfProd as ah,useEnhancedEffect$1 as ai,ownerDocument as aj,extractEventHandlers as ak,useTheme as al,ownerWindow as am,Transition$1 as an,debounce as ao,reflow as ap,getTransitionProps as aq,isHostComponent as ar,lighten as as,darken as at,slotShouldForwardProp as au,useSlotProps as av,Ce as aw,useHasAiChatsResponseLoading as ax,Ue as ay,hooks as az,_objectWithoutPropertiesLoose as b,isPlainObject as b$,_root as b0,_getPrototype as b1,_baseAssignValue as b2,getFullTranscript as b3,InfoIcon as b4,getAugmentedNamespace as b5,propTypesExports as b6,useHasAiChats as b7,postAboutData as b8,NODE_ADD_ERROR as b9,putNodeData as bA,postMergeTopics as bB,getTopicsData as bC,deleteNode as bD,css as bE,changeNodeType as bF,resolveBreakpointValues as bG,handleBreakpoints as bH,updateEdgeType as bI,postBluePrintType as bJ,deleteEdgeType as bK,editNodeSchemaUpdate as bL,createRoot as bM,react as bN,GRAPH_GROUND_COLOR as bO,GRAPH_LIGHT_INTENSITY as bP,GRAPH_FOG_COLOR as bQ,Global as bR,useTheme$2 as bS,setRef as bT,defaultTheme$1 as bU,THEME_ID as bV,formatMuiErrorMessage as bW,deepmerge as bX,getScrollbarSize as bY,PopoverPaper as bZ,defaultSxConfig$1 as b_,requiredRule as ba,TWITTER_HANDLE as bb,YOUTUBE_CHANNEL as bc,RSS as bd,GITHUB_REPOSITORY as be,LINK as bf,TWITTER_SOURCE as bg,WEB_PAGE as bh,DOCUMENT as bi,formatBudget as bj,getPriceData as bk,isE2E as bl,sphinxBridge as bm,getLSat as bn,payLsat as bo,getNodeType as bp,getNodeSchemaTypes as bq,getNodeContent as br,approveRadarData as bs,deleteRadarData as bt,getRadarData as bu,Paper$1 as bv,putRadarData as bw,getEdgeTypes as bx,getEdges as by,postEdgeType as bz,clsx$2 as c,createStyled as c0,createTheme$1 as c1,useThemeProps$1 as c2,createUnarySpacing as c3,mergeBreakpointsInOrder as c4,getValue as c5,Portal as c6,useTheme$3 as c7,generateUtilityClass as d,useForkRef as e,useEventCallback as f,generateUtilityClasses as g,composeClasses as h,capitalize as i,jsxRuntimeExports as j,keyframes as k,alpha as l,reactDomExports as m,rootShouldForwardProp as n,resolveProps as o,ReactDOM as p,getDefaultExportFromCjs as q,reactExports as r,styled$1 as s,styled$3 as t,useThemeProps as u,colors as v,useGraphStore as w,graphStyles as x,clsx as y,useDataStore as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-2979d0f2.js").then(o=>o.t),["assets/index-2979d0f2.js","assets/index-b60658ac.css"]).then(({App:o})=>({default:o}))),AppContainer=()=>{const o=jsxRuntimeExports.jsx(LazyApp,{}),{splashDataLoading:et}=useDataStore(tt=>tt);return jsxRuntimeExports.jsxs(AppProviders,{children:[et&&jsxRuntimeExports.jsx(Splash,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:o,path:"/"}),jsxRuntimeExports.jsx(Route,{element:o,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:o,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,Tooltip as A,create$3 as B,devtools as C,useSelectedNode as D,useUpdateSelectedNode as E,Flex as F,useAppStore as G,useUserStore as H,Text as I,__vitePreload as J,media as K,LinearProgress$1 as L,useAiSummaryStore as M,useNavigate as N,Stats as O,PropTypes as P,useSearchParams as Q,React as R,SocketContext as S,TransitionGroupContext as T,useFeatureFlagStore as U,isDevelopment as V,We as W,updateBudget as X,useModal as Y,isSphinx as Z,_inheritsLoose as _,_extends$1 as a,_defineProperty$1 as a$,useSelectedNodeRelativeIds as a0,forceSimulation as a1,forceCollide as a2,forceCenter as a3,forceManyBody as a4,forceLink as a5,NODE_RELATIVE_HIGHLIGHT_COLORS as a6,useHoveredNode as a7,useNodeTypes as a8,lottie as a9,commonjsGlobal as aA,commonjsRequire as aB,useFilteredNodes as aC,getSchemaAll as aD,_baseGetTag as aE,isObjectLike_1 as aF,isArray_1 as aG,_MapCache as aH,_Symbol as aI,isObject$b as aJ,isFunction$3 as aK,_Uint8Array as aL,eq_1 as aM,_getAllKeys as aN,_Stack as aO,_getTag as aP,isBufferExports as aQ,isTypedArray_1 as aR,isObject_1 as aS,keys_1 as aT,isArguments_1 as aU,_isIndex as aV,isLength_1 as aW,_Set as aX,_arrayPush as aY,isArrayLike_1 as aZ,_baseUnary as a_,fetchNodeEdges as aa,NodesIcon as ab,Popover$1 as ac,lodashExports as ad,addToGlobalForE2e as ae,api as af,distExports$1 as ag,executeIfProd as ah,useEnhancedEffect$1 as ai,ownerDocument as aj,extractEventHandlers as ak,useTheme as al,ownerWindow as am,Transition$1 as an,debounce as ao,reflow as ap,getTransitionProps as aq,isHostComponent as ar,lighten as as,darken as at,slotShouldForwardProp as au,useSlotProps as av,Ce as aw,useHasAiChatsResponseLoading as ax,Ue as ay,hooks as az,_objectWithoutPropertiesLoose as b,isPlainObject as b$,_root as b0,_getPrototype as b1,_baseAssignValue as b2,getFullTranscript as b3,InfoIcon as b4,getAugmentedNamespace as b5,propTypesExports as b6,useHasAiChats as b7,postAboutData as b8,NODE_ADD_ERROR as b9,putNodeData as bA,postMergeTopics as bB,getTopicsData as bC,deleteNode as bD,css as bE,changeNodeType as bF,resolveBreakpointValues as bG,handleBreakpoints as bH,updateEdgeType as bI,postBluePrintType as bJ,deleteEdgeType as bK,editNodeSchemaUpdate as bL,createRoot as bM,react as bN,GRAPH_GROUND_COLOR as bO,GRAPH_LIGHT_INTENSITY as bP,GRAPH_FOG_COLOR as bQ,Global as bR,useTheme$2 as bS,setRef as bT,defaultTheme$1 as bU,THEME_ID as bV,formatMuiErrorMessage as bW,deepmerge as bX,getScrollbarSize as bY,PopoverPaper as bZ,defaultSxConfig$1 as b_,requiredRule as ba,TWITTER_HANDLE as bb,YOUTUBE_CHANNEL as bc,RSS as bd,GITHUB_REPOSITORY as be,LINK as bf,TWITTER_SOURCE as bg,WEB_PAGE as bh,DOCUMENT as bi,formatBudget as bj,getPriceData as bk,isE2E as bl,sphinxBridge as bm,getLSat as bn,payLsat as bo,getNodeType as bp,getNodeSchemaTypes as bq,getNodeContent as br,approveRadarData as bs,deleteRadarData as bt,getRadarData as bu,Paper$1 as bv,putRadarData as bw,getEdgeTypes as bx,getEdges as by,postEdgeType as bz,clsx$2 as c,createStyled as c0,createTheme$1 as c1,useThemeProps$1 as c2,createUnarySpacing as c3,mergeBreakpointsInOrder as c4,getValue as c5,Portal as c6,useTheme$3 as c7,generateUtilityClass as d,useForkRef as e,useEventCallback as f,generateUtilityClasses as g,composeClasses as h,capitalize as i,jsxRuntimeExports as j,keyframes as k,alpha as l,reactDomExports as m,rootShouldForwardProp as n,resolveProps as o,ReactDOM as p,getDefaultExportFromCjs as q,reactExports as r,styled$1 as s,styled$3 as t,useThemeProps as u,colors as v,useGraphStore as w,graphStyles as x,clsx as y,useDataStore as z}; diff --git a/build/assets/index-67098fb8.js b/build/assets/index-67098fb8.js deleted file mode 100644 index 118174801..000000000 --- a/build/assets/index-67098fb8.js +++ /dev/null @@ -1,462 +0,0 @@ -import{r as d,_ as Bl,a as Q,b as Nn,R as h,T as Ii,c as We,j as _,g as Ar,k as Qo,s as Ut,u as Ir,d as Jo,e as Di,f as Xn,h as ei,i as Te,l as nn,m as ti,n as Wl,o as Hl,p as va,$ as Ul,P as he,q as Kl,W as Gl,t as de,v as ne,F as oe,w as ni,x as Yl,y as ql,z as Dr,A as Xl,B as ri,C as ya,L as Zl,D as xa,E as wa,G as Mr,H as Ea,I as Ae,S as Ql,J as Le,K as Jl,M as $a,N as eu,O as tu,Q as nu,U as ru,V as ou,X as iu}from"./index-87686c58.js";function su(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const au=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),s=parseInt(r,10);return o*3600+i*60+s};let jr=!0,wo=!1,Mi;const cu={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 lu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&cu[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function uu(e){e.metaKey||e.altKey||e.ctrlKey||(jr=!0)}function qr(){jr=!1}function du(){this.visibilityState==="hidden"&&wo&&(jr=!0)}function fu(e){e.addEventListener("keydown",uu,!0),e.addEventListener("mousedown",qr,!0),e.addEventListener("pointerdown",qr,!0),e.addEventListener("touchstart",qr,!0),e.addEventListener("visibilitychange",du,!0)}function pu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return jr||lu(t)}function hu(){const e=d.useCallback(o=>{o!=null&&fu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(wo=!0,window.clearTimeout(Mi),Mi=window.setTimeout(()=>{wo=!1},100),t.current=!1,!0):!1}function r(o){return pu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function gu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oi(e,t){var n=function(i){return t&&d.isValidElement(i)?t(i):i},r=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function mu(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s{if(!a&&c!=null){const b=setTimeout(c,l);return()=>{clearTimeout(b)}}},[c,a,l]),_.jsx("span",{className:p,style:g,children:_.jsx("span",{className:m})})}const $u=Ar("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=$u,Cu=["center","classes","className"];let Lr=e=>e,ji,Li,zi,Fi;const Eo=550,_u=80,Su=Qo(ji||(ji=Lr` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),Tu=Qo(Li||(Li=Lr` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),ku=Qo(zi||(zi=Lr` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),Ru=Ut("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ou=Ut(Eu,{name:"MuiTouchRipple",slot:"Ripple"})(Fi||(Fi=Lr` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),qe.rippleVisible,Su,Eo,({theme:e})=>e.transitions.easing.easeInOut,qe.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qe.child,qe.childLeaving,Tu,Eo,({theme:e})=>e.transitions.easing.easeInOut,qe.childPulsate,ku,({theme:e})=>e.transitions.easing.easeInOut),Pu=d.forwardRef(function(t,n){const r=Ir({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=Nn(r,Cu),[c,l]=d.useState([]),u=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=d.useRef(!1),g=d.useRef(0),m=d.useRef(null),b=d.useRef(null);d.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const w=d.useCallback(T=>{const{pulsate:C,rippleX:E,rippleY:S,rippleSize:k,cb:z}=T;l(D=>[...D,_.jsx(Ou,{classes:{ripple:We(i.ripple,qe.ripple),rippleVisible:We(i.rippleVisible,qe.rippleVisible),ripplePulsate:We(i.ripplePulsate,qe.ripplePulsate),child:We(i.child,qe.child),childLeaving:We(i.childLeaving,qe.childLeaving),childPulsate:We(i.childPulsate,qe.childPulsate)},timeout:Eo,pulsate:C,rippleX:E,rippleY:S,rippleSize:k},u.current)]),u.current+=1,f.current=z},[i]),y=d.useCallback((T={},C={},E=()=>{})=>{const{pulsate:S=!1,center:k=o||C.pulsate,fakeElement:z=!1}=C;if((T==null?void 0:T.type)==="mousedown"&&p.current){p.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(p.current=!0);const D=z?null:b.current,j=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,F,L;if(k||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)A=Math.round(j.width/2),F=Math.round(j.height/2);else{const{clientX:N,clientY:V}=T.touches&&T.touches.length>0?T.touches[0]:T;A=Math.round(N-j.left),F=Math.round(V-j.top)}if(k)L=Math.sqrt((2*j.width**2+j.height**2)/3),L%2===0&&(L+=1);else{const N=Math.max(Math.abs((D?D.clientWidth:0)-A),A)*2+2,V=Math.max(Math.abs((D?D.clientHeight:0)-F),F)*2+2;L=Math.sqrt(N**2+V**2)}T!=null&&T.touches?m.current===null&&(m.current=()=>{w({pulsate:S,rippleX:A,rippleY:F,rippleSize:L,cb:E})},g.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},_u)):w({pulsate:S,rippleX:A,rippleY:F,rippleSize:L,cb:E})},[o,w]),v=d.useCallback(()=>{y({},{pulsate:!0})},[y]),$=d.useCallback((T,C)=>{if(clearTimeout(g.current),(T==null?void 0:T.type)==="touchend"&&m.current){m.current(),m.current=null,g.current=setTimeout(()=>{$(T,C)});return}m.current=null,l(E=>E.length>0?E.slice(1):E),f.current=C},[]);return d.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:$}),[v,y,$]),_.jsx(Ru,Q({className:We(qe.root,i.root,s),ref:b},a,{children:_.jsx(wu,{component:null,exit:!0,children:c})}))}),Au=Pu;function Iu(e){return Jo("MuiButtonBase",e)}const Du=Ar("MuiButtonBase",["root","disabled","focusVisible"]),Mu=Du,ju=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Lu=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=ei({root:["root",t&&"disabled",n&&"focusVisible"]},Iu,o);return n&&r&&(s.root+=` ${r}`),s},zu=Ut("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Mu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fu=d.forwardRef(function(t,n){const r=Ir({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:m,onClick:b,onContextMenu:w,onDragLeave:y,onFocus:v,onFocusVisible:$,onKeyDown:T,onKeyUp:C,onMouseDown:E,onMouseLeave:S,onMouseUp:k,onTouchEnd:z,onTouchMove:D,onTouchStart:j,tabIndex:A=0,TouchRippleProps:F,touchRippleRef:L,type:N}=r,V=Nn(r,ju),K=d.useRef(null),Y=d.useRef(null),ee=Di(Y,L),{isFocusVisibleRef:ce,onFocus:W,onBlur:J,ref:re}=hu(),[te,ie]=d.useState(!1);l&&te&&ie(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{ie(!0),K.current.focus()}}),[]);const[fe,Ce]=d.useState(!1);d.useEffect(()=>{Ce(!0)},[]);const _e=fe&&!u&&!l;d.useEffect(()=>{te&&p&&!u&&fe&&Y.current.pulsate()},[u,p,te,fe]);function xe(G,Ve,jt=f){return Xn(st=>(Ve&&Ve(st),!jt&&Y.current&&Y.current[G](st),!0))}const it=xe("start",E),dt=xe("stop",w),St=xe("stop",y),Ne=xe("stop",k),ft=xe("stop",G=>{te&&G.preventDefault(),S&&S(G)}),Oe=xe("start",j),Ye=xe("stop",z),Gt=xe("stop",D),Yt=xe("stop",G=>{J(G),ce.current===!1&&ie(!1),m&&m(G)},!1),qt=Xn(G=>{K.current||(K.current=G.currentTarget),W(G),ce.current===!0&&(ie(!0),$&&$(G)),v&&v(G)}),x=()=>{const G=K.current;return c&&c!=="button"&&!(G.tagName==="A"&&G.href)},R=d.useRef(!1),I=Xn(G=>{p&&!R.current&&te&&Y.current&&G.key===" "&&(R.current=!0,Y.current.stop(G,()=>{Y.current.start(G)})),G.target===G.currentTarget&&x()&&G.key===" "&&G.preventDefault(),T&&T(G),G.target===G.currentTarget&&x()&&G.key==="Enter"&&!l&&(G.preventDefault(),b&&b(G))}),O=Xn(G=>{p&&G.key===" "&&Y.current&&te&&!G.defaultPrevented&&(R.current=!1,Y.current.stop(G,()=>{Y.current.pulsate(G)})),C&&C(G),b&&G.target===G.currentTarget&&x()&&G.key===" "&&!G.defaultPrevented&&b(G)});let P=c;P==="button"&&(V.href||V.to)&&(P=g);const M={};P==="button"?(M.type=N===void 0?"button":N,M.disabled=l):(!V.href&&!V.to&&(M.role="button"),l&&(M["aria-disabled"]=l));const H=Di(n,re,K),Z=Q({},r,{centerRipple:i,component:c,disabled:l,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:A,focusVisible:te}),pe=Lu(Z);return _.jsxs(zu,Q({as:P,className:We(pe.root,a),ownerState:Z,onBlur:Yt,onClick:b,onContextMenu:dt,onFocus:qt,onKeyDown:I,onKeyUp:O,onMouseDown:it,onMouseLeave:ft,onMouseUp:Ne,onDragLeave:St,onTouchEnd:Ye,onTouchMove:Gt,onTouchStart:Oe,ref:H,tabIndex:l?-1:A,type:N},M,V,{children:[s,_e?_.jsx(Au,Q({ref:ee,center:i},F)):null]}))}),Ca=Fu;function Nu(e){return Jo("MuiIconButton",e)}const Vu=Ar("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Bu=Vu,Wu=["edge","children","className","color","disabled","disableFocusRipple","size"],Hu=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Te(r)}`,o&&`edge${Te(o)}`,`size${Te(i)}`]};return ei(s,Nu,t)},Uu=Ut(Ca,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Te(n.color)}`],n.edge&&t[`edge${Te(n.edge)}`],t[`size${Te(n.size)}`]]}})(({theme:e,ownerState:t})=>Q({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:nn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Q({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Q({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Q({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Bu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Ku=d.forwardRef(function(t,n){const r=Ir({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:l=!1,size:u="medium"}=r,f=Nn(r,Wu),p=Q({},r,{edge:o,color:a,disabled:c,disableFocusRipple:l,size:u}),g=Hu(p);return _.jsx(Uu,Q({className:We(g.root,s),centerRipple:!0,focusRipple:!l,disabled:c,ref:n,ownerState:p},f,{children:i}))}),_a=Ku,Gu=["top","right","bottom","left"],At=Math.min,He=Math.max,dr=Math.round,Zn=Math.floor,It=e=>({x:e,y:e}),Yu={left:"right",right:"left",bottom:"top",top:"bottom"},qu={start:"end",end:"start"};function $o(e,t,n){return He(e,At(t,n))}function yt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function fn(e){return e.split("-")[1]}function si(e){return e==="x"?"y":"x"}function ai(e){return e==="y"?"height":"width"}function pn(e){return["top","bottom"].includes(xt(e))?"y":"x"}function ci(e){return si(pn(e))}function Xu(e,t,n){n===void 0&&(n=!1);const r=fn(e),o=ci(e),i=ai(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=fr(s)),[s,fr(s)]}function Zu(e){const t=fr(e);return[Co(e),t,Co(t)]}function Co(e){return e.replace(/start|end/g,t=>qu[t])}function Qu(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Ju(e,t,n,r){const o=fn(e);let i=Qu(xt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Co)))),i}function fr(e){return e.replace(/left|right|bottom|top/g,t=>Yu[t])}function ed(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sa(e){return typeof e!="number"?ed(e):{top:e,right:e,bottom:e,left:e}}function pr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ni(e,t,n){let{reference:r,floating:o}=e;const i=pn(t),s=ci(t),a=ai(s),c=xt(t),l=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(fn(t)){case"start":g[s]-=p*(n&&l?-1:1);break;case"end":g[s]+=p*(n&&l?-1:1);break}return g}const td=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Ni(l,r,c),p=r,g={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=yt(e,t)||{};if(l==null)return{};const f=Sa(u),p={x:n,y:r},g=ci(o),m=ai(g),b=await s.getDimensions(l),w=g==="y",y=w?"top":"left",v=w?"bottom":"right",$=w?"clientHeight":"clientWidth",T=i.reference[m]+i.reference[g]-p[g]-i.floating[m],C=p[g]-i.reference[g],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let S=E?E[$]:0;(!S||!await(s.isElement==null?void 0:s.isElement(E)))&&(S=a.floating[$]||i.floating[m]);const k=T/2-C/2,z=S/2-b[m]/2-1,D=At(f[y],z),j=At(f[v],z),A=D,F=S-b[m]-j,L=S/2-b[m]/2+k,N=$o(A,L,F),V=!c.arrow&&fn(o)!=null&&L!=N&&i.reference[m]/2-(LA<=0)){var z,D;const A=(((z=i.flip)==null?void 0:z.index)||0)+1,F=C[A];if(F)return{data:{index:A,overflows:k},reset:{placement:F}};let L=(D=k.filter(N=>N.overflows[0]<=0).sort((N,V)=>N.overflows[1]-V.overflows[1])[0])==null?void 0:D.placement;if(!L)switch(g){case"bestFit":{var j;const N=(j=k.map(V=>[V.placement,V.overflows.filter(K=>K>0).reduce((K,Y)=>K+Y,0)]).sort((V,K)=>V[1]-K[1])[0])==null?void 0:j[0];N&&(L=N);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Bi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wi(e){return Gu.some(t=>e[t]>=0)}const rd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=yt(e,t);switch(r){case"referenceHidden":{const i=await In(t,{...o,elementContext:"reference"}),s=Bi(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Wi(s)}}}case"escaped":{const i=await In(t,{...o,altBoundary:!0}),s=Bi(i,n.floating);return{data:{escapedOffsets:s,escaped:Wi(s)}}}default:return{}}}}};async function od(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=xt(n),a=fn(n),c=pn(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=yt(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),c?{x:g*u,y:p*l}:{x:p*l,y:g*u}}const id=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await od(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},sd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:y,y:v}=w;return{x:y,y:v}}},...c}=yt(e,t),l={x:n,y:r},u=await In(t,c),f=pn(xt(o)),p=si(f);let g=l[p],m=l[f];if(i){const w=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=g+u[w],$=g-u[y];g=$o(v,g,$)}if(s){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=m+u[w],$=m-u[y];m=$o(v,m,$)}const b=a.fn({...t,[p]:g,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},ad=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=yt(e,t),u={x:n,y:r},f=pn(o),p=si(f);let g=u[p],m=u[f];const b=yt(a,t),w=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const $=p==="y"?"height":"width",T=i.reference[p]-i.floating[$]+w.mainAxis,C=i.reference[p]+i.reference[$]-w.mainAxis;gC&&(g=C)}if(l){var y,v;const $=p==="y"?"width":"height",T=["top","left"].includes(xt(o)),C=i.reference[f]-i.floating[$]+(T&&((y=s.offset)==null?void 0:y[f])||0)+(T?0:w.crossAxis),E=i.reference[f]+i.reference[$]+(T?0:((v=s.offset)==null?void 0:v[f])||0)-(T?w.crossAxis:0);mE&&(m=E)}return{[p]:g,[f]:m}}}},cd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=yt(e,t),c=await In(t,a),l=xt(n),u=fn(n),f=pn(n)==="y",{width:p,height:g}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const w=g-c[m],y=p-c[b],v=!t.middlewareData.shift;let $=w,T=y;if(f){const E=p-c.left-c.right;T=u||v?At(y,E):E}else{const E=g-c.top-c.bottom;$=u||v?At(w,E):E}if(v&&!u){const E=He(c.left,0),S=He(c.right,0),k=He(c.top,0),z=He(c.bottom,0);f?T=p-2*(E!==0||S!==0?E+S:He(c.left,c.right)):$=g-2*(k!==0||z!==0?k+z:He(c.top,c.bottom))}await s({...t,availableWidth:T,availableHeight:$});const C=await o.getDimensions(i.floating);return p!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}};function Dt(e){return Ta(e)?(e.nodeName||"").toLowerCase():"#document"}function Ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $t(e){var t;return(t=(Ta(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ta(e){return e instanceof Node||e instanceof Ge(e).Node}function wt(e){return e instanceof Element||e instanceof Ge(e).Element}function lt(e){return e instanceof HTMLElement||e instanceof Ge(e).HTMLElement}function Hi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ge(e).ShadowRoot}function Vn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ld(e){return["table","td","th"].includes(Dt(e))}function li(e){const t=ui(),n=et(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ud(e){let t=ln(e);for(;lt(t)&&!zr(t);){if(li(t))return t;t=ln(t)}return null}function ui(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zr(e){return["html","body","#document"].includes(Dt(e))}function et(e){return Ge(e).getComputedStyle(e)}function Fr(e){return wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ln(e){if(Dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hi(e)&&e.host||$t(e);return Hi(t)?t.host:t}function ka(e){const t=ln(e);return zr(t)?e.ownerDocument?e.ownerDocument.body:e.body:lt(t)&&Vn(t)?t:ka(t)}function Dn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ka(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ge(o);return i?t.concat(s,s.visualViewport||[],Vn(o)?o:[],s.frameElement&&n?Dn(s.frameElement):[]):t.concat(o,Dn(o,[],n))}function Ra(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=lt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=dr(n)!==i||dr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function di(e){return wt(e)?e:e.contextElement}function sn(e){const t=di(e);if(!lt(t))return It(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ra(t);let s=(i?dr(n.width):n.width)/r,a=(i?dr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const dd=It(0);function Oa(e){const t=Ge(e);return!ui()||!t.visualViewport?dd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ge(e)?!1:t}function Wt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=di(e);let s=It(1);t&&(r?wt(r)&&(s=sn(r)):s=sn(e));const a=fd(i,n,r)?Oa(i):It(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const p=Ge(i),g=r&&wt(r)?Ge(r):r;let m=p.frameElement;for(;m&&r&&g!==p;){const b=sn(m),w=m.getBoundingClientRect(),y=et(m),v=w.left+(m.clientLeft+parseFloat(y.paddingLeft))*b.x,$=w.top+(m.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,f*=b.y,c+=v,l+=$,m=Ge(m).frameElement}}return pr({width:u,height:f,x:c,y:l})}function pd(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=lt(n),i=$t(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=It(1);const c=It(0);if((o||!o&&r!=="fixed")&&((Dt(n)!=="body"||Vn(i))&&(s=Fr(n)),lt(n))){const l=Wt(n);a=sn(n),c.x=l.x+n.clientLeft,c.y=l.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}}function hd(e){return Array.from(e.getClientRects())}function Pa(e){return Wt($t(e)).left+Fr(e).scrollLeft}function gd(e){const t=$t(e),n=Fr(e),r=e.ownerDocument.body,o=He(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=He(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Pa(e);const a=-n.scrollTop;return et(r).direction==="rtl"&&(s+=He(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function md(e,t){const n=Ge(e),r=$t(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=ui();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function bd(e,t){const n=Wt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=lt(e)?sn(e):It(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function Ui(e,t,n){let r;if(t==="viewport")r=md(e,n);else if(t==="document")r=gd($t(e));else if(wt(t))r=bd(t,n);else{const o=Oa(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return pr(r)}function Aa(e,t){const n=ln(e);return n===t||!wt(n)||zr(n)?!1:et(n).position==="fixed"||Aa(n,t)}function vd(e,t){const n=t.get(e);if(n)return n;let r=Dn(e,[],!1).filter(a=>wt(a)&&Dt(a)!=="body"),o=null;const i=et(e).position==="fixed";let s=i?ln(e):e;for(;wt(s)&&!zr(s);){const a=et(s),c=li(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Vn(s)&&!c&&Aa(e,s))?r=r.filter(u=>u!==s):o=a,s=ln(s)}return t.set(e,r),r}function yd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?vd(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const f=Ui(t,u,o);return l.top=He(f.top,l.top),l.right=At(f.right,l.right),l.bottom=At(f.bottom,l.bottom),l.left=He(f.left,l.left),l},Ui(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function xd(e){return Ra(e)}function wd(e,t,n){const r=lt(t),o=$t(t),i=n==="fixed",s=Wt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=It(0);if(r||!r&&!i)if((Dt(t)!=="body"||Vn(o))&&(a=Fr(t)),r){const l=Wt(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=Pa(o));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Ki(e,t){return!lt(e)||et(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ia(e,t){const n=Ge(e);if(!lt(e))return n;let r=Ki(e,t);for(;r&&ld(r)&&et(r).position==="static";)r=Ki(r,t);return r&&(Dt(r)==="html"||Dt(r)==="body"&&et(r).position==="static"&&!li(r))?n:r||ud(e)||n}const Ed=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ia,i=this.getDimensions;return{reference:wd(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function $d(e){return et(e).direction==="rtl"}const Cd={convertOffsetParentRelativeRectToViewportRelativeRect:pd,getDocumentElement:$t,getClippingRect:yd,getOffsetParent:Ia,getElementRects:Ed,getClientRects:hd,getDimensions:xd,getScale:sn,isElement:wt,isRTL:$d};function _d(e,t){let n=null,r;const o=$t(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:p}=e.getBoundingClientRect();if(a||t(),!f||!p)return;const g=Zn(u),m=Zn(o.clientWidth-(l+f)),b=Zn(o.clientHeight-(u+p)),w=Zn(l),v={rootMargin:-g+"px "+-m+"px "+-b+"px "+-w+"px",threshold:He(0,At(1,c))||1};let $=!0;function T(C){const E=C[0].intersectionRatio;if(E!==c){if(!$)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}$=!1}try{n=new IntersectionObserver(T,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,v)}n.observe(e)}return s(!0),i}function Sd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=di(e),u=o||i?[...l?Dn(l):[],...Dn(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=l&&a?_d(l,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let m,b=c?Wt(e):null;c&&w();function w(){const y=Wt(e);b&&(y.x!==b.x||y.y!==b.y||y.width!==b.width||y.height!==b.height)&&n(),b=y,m=requestAnimationFrame(w)}return n(),()=>{u.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,c&&cancelAnimationFrame(m)}}const Td=(e,t,n)=>{const r=new Map,o={platform:Cd,...n},i={...o.platform,_c:r};return td(e,t,{...o,platform:i})},kd=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Vi({element:r.current,padding:o}).fn(n):{}:r?Vi({element:r,padding:o}).fn(n):{}}}};var ar=typeof document<"u"?d.useLayoutEffect:d.useEffect;function hr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!hr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!hr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Da(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gi(e,t){const n=Da(e);return Math.round(t*n)/n}function Yi(e){const t=d.useRef(e);return ar(()=>{t.current=e}),t}function Rd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=d.useState(r);hr(p,r)||g(r);const[m,b]=d.useState(null),[w,y]=d.useState(null),v=d.useCallback(V=>{V!=E.current&&(E.current=V,b(V))},[b]),$=d.useCallback(V=>{V!==S.current&&(S.current=V,y(V))},[y]),T=i||m,C=s||w,E=d.useRef(null),S=d.useRef(null),k=d.useRef(u),z=Yi(c),D=Yi(o),j=d.useCallback(()=>{if(!E.current||!S.current)return;const V={placement:t,strategy:n,middleware:p};D.current&&(V.platform=D.current),Td(E.current,S.current,V).then(K=>{const Y={...K,isPositioned:!0};A.current&&!hr(k.current,Y)&&(k.current=Y,ti.flushSync(()=>{f(Y)}))})},[p,t,n,D]);ar(()=>{l===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[l]);const A=d.useRef(!1);ar(()=>(A.current=!0,()=>{A.current=!1}),[]),ar(()=>{if(T&&(E.current=T),C&&(S.current=C),T&&C){if(z.current)return z.current(T,C,j);j()}},[T,C,j,z]);const F=d.useMemo(()=>({reference:E,floating:S,setReference:v,setFloating:$}),[v,$]),L=d.useMemo(()=>({reference:T,floating:C}),[T,C]),N=d.useMemo(()=>{const V={position:n,left:0,top:0};if(!L.floating)return V;const K=Gi(L.floating,u.x),Y=Gi(L.floating,u.y);return a?{...V,transform:"translate("+K+"px, "+Y+"px)",...Da(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:Y}},[n,a,L.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:j,refs:F,elements:L,floatingStyles:N}),[u,j,F,L,N])}function Od(e){return Jo("MuiButton",e)}const Pd=Ar("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Qn=Pd,Ad=d.createContext({}),Id=Ad,Dd=d.createContext(void 0),Md=Dd,jd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ld=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${Te(t)}`,`size${Te(o)}`,`${i}Size${Te(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Te(o)}`],endIcon:["endIcon",`iconSize${Te(o)}`]},c=ei(a,Od,s);return Q({},s,c)},Ma=e=>Q({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),zd=Ut(Ca,{shouldForwardProp:e=>Wl(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Te(n.color)}`],t[`size${Te(n.size)}`],t[`${n.variant}Size${Te(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Q({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Q({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:nn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:nn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Qn.focusVisible}`]:Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Qn.disabled}`]:Q({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${nn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Qn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Qn.disabled}`]:{boxShadow:"none"}}),Fd=Ut("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Te(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Ma(e))),Nd=Ut("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Te(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Ma(e))),Vd=d.forwardRef(function(t,n){const r=d.useContext(Id),o=d.useContext(Md),i=Hl(r,t),s=Ir({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:l="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:m,focusVisibleClassName:b,fullWidth:w=!1,size:y="medium",startIcon:v,type:$,variant:T="text"}=s,C=Nn(s,jd),E=Q({},s,{color:c,component:l,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:w,size:y,type:$,variant:T}),S=Ld(E),k=v&&_.jsx(Fd,{className:S.startIcon,ownerState:E,children:v}),z=m&&_.jsx(Nd,{className:S.endIcon,ownerState:E,children:m}),D=o||"";return _.jsxs(zd,Q({ownerState:E,className:We(r.className,S.root,u,D),component:l,disabled:f,focusRipple:!g,focusVisibleClassName:We(S.focusVisible,b),ref:n,type:$},C,{classes:S,children:[k,a,z]}))}),fi=Vd;function Bd(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ja(...e){return t=>e.forEach(n=>Bd(n,t))}function hn(...e){return d.useCallback(ja(...e),e)}const La=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),i=o.find(Wd);if(i){const s=i.props.children,a=o.map(c=>c===i?d.Children.count(s)>1?d.Children.only(null):d.isValidElement(s)?s.props.children:null:c);return d.createElement(_o,Q({},r,{ref:t}),d.isValidElement(s)?d.cloneElement(s,void 0,a):null)}return d.createElement(_o,Q({},r,{ref:t}),n)});La.displayName="Slot";const _o=d.forwardRef((e,t)=>{const{children:n,...r}=e;return d.isValidElement(n)?d.cloneElement(n,{...Hd(r,n.props),ref:t?ja(t,n.ref):n.ref}):d.Children.count(n)>1?d.Children.only(null):null});_o.displayName="SlotClone";const za=({children:e})=>d.createElement(d.Fragment,null,e);function Wd(e){return d.isValidElement(e)&&e.type===za}function Hd(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Ud=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Kt=Ud.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?La:t;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(a,Q({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Kd(e,t){e&&ti.flushSync(()=>e.dispatchEvent(t))}const Gd=d.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?va.createPortal(d.createElement(Kt.div,Q({},o,{ref:t})),r):null}),Yd=Gd;var qi=Object.prototype.hasOwnProperty;function Mn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Mn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(qi.call(e,n)&&++r&&!qi.call(t,n)||!(n in t)||!Mn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Bn(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),ut=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};ut.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new Nr(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};ut.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new qd(n,t.simple,t.async)),this};ut.prototype._clone=function(){return new ut(this.chain.slice(),this.nextRuleModifiers.slice())};ut.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};ut.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new pi(r,t,o))}}),n};ut.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new pi(n,t,r)}})};ut.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){Va(t,n.chain.slice(),r,o)})};function Va(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){Va(e,t,n,r)},function(i){r(new pi(o,e,i))})}else n(e)}var Xi=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function Xd(e,t){return t===void 0&&(t=!1),{simple:function(n){return Xi(n,t)||e.check(n)===void 0},async:function(n){return Xi(n,t)||e.testAsync(n)}}}function Fe(){return typeof Proxy<"u"?Ba(new ut):So(new ut)}var jn={};Fe.extend=function(e){Object.assign(jn,e)};Fe.clearCustomRules=function(){jn={}};function Ba(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=Ba(e._clone());if(r in gr)return o._applyModifier(gr[r],r);if(r in jn)return o._applyRule(jn[r],r);if(r in To)return o._applyRule(To[r],r)}})}function So(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=So(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(To,e),r=t(jn,n);return Object.keys(gr).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=So(r._clone());return i._applyModifier(gr[o],o)}})}),r}var gr={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Jn(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Jn(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Jn(t).every(e)}},async:function(e){return function(t){return Promise.all(Jn(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Zi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return Zi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function Zi(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Jn(e){return typeof e=="string"?e.split(""):e}var To={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||Zd;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Qt("string")},boolean:function(){return Qt("boolean")},undefined:function(){return Qt("undefined")},null:function(){return Qt("null")},array:function(){return Qt("array")},object:function(){return Qt("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return Qd(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:Xd};function Qt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function Zd(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Qd(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var se="colors",Pe="sizes",U="space",Jd={gap:U,gridGap:U,columnGap:U,gridColumnGap:U,rowGap:U,gridRowGap:U,inset:U,insetBlock:U,insetBlockEnd:U,insetBlockStart:U,insetInline:U,insetInlineEnd:U,insetInlineStart:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockEnd:U,marginBlockStart:U,marginInline:U,marginInlineEnd:U,marginInlineStart:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockEnd:U,paddingBlockStart:U,paddingInline:U,paddingInlineEnd:U,paddingInlineStart:U,top:U,right:U,bottom:U,left:U,scrollMargin:U,scrollMarginTop:U,scrollMarginRight:U,scrollMarginBottom:U,scrollMarginLeft:U,scrollMarginX:U,scrollMarginY:U,scrollMarginBlock:U,scrollMarginBlockEnd:U,scrollMarginBlockStart:U,scrollMarginInline:U,scrollMarginInlineEnd:U,scrollMarginInlineStart:U,scrollPadding:U,scrollPaddingTop:U,scrollPaddingRight:U,scrollPaddingBottom:U,scrollPaddingLeft:U,scrollPaddingX:U,scrollPaddingY:U,scrollPaddingBlock:U,scrollPaddingBlockEnd:U,scrollPaddingBlockStart:U,scrollPaddingInline:U,scrollPaddingInlineEnd:U,scrollPaddingInlineStart:U,fontSize:"fontSizes",background:se,backgroundColor:se,backgroundImage:se,borderImage:se,border:se,borderBlock:se,borderBlockEnd:se,borderBlockStart:se,borderBottom:se,borderBottomColor:se,borderColor:se,borderInline:se,borderInlineEnd:se,borderInlineStart:se,borderLeft:se,borderLeftColor:se,borderRight:se,borderRightColor:se,borderTop:se,borderTopColor:se,caretColor:se,color:se,columnRuleColor:se,fill:se,outline:se,outlineColor:se,stroke:se,textDecorationColor:se,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Pe,minBlockSize:Pe,maxBlockSize:Pe,inlineSize:Pe,minInlineSize:Pe,maxInlineSize:Pe,width:Pe,minWidth:Pe,maxWidth:Pe,height:Pe,minHeight:Pe,maxHeight:Pe,flexBasis:Pe,gridTemplateColumns:Pe,gridTemplateRows:Pe,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},ef=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,gn=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,ef))(t);return o in e?e[o]:e[o]=n(t,...r)}},Nt=Symbol.for("sxs.internal"),hi=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Qi=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:tf}=Object.prototype,ko=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),nf=/\s+(?![^()]*\))/,Jt=e=>t=>e(...typeof t=="string"?String(t).split(nf):[t]),Ji={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Jt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:Jt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:Jt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:Jt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:Jt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:Jt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Xr=/([\d.]+)([^]*)/,rf=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,of=(e,t)=>e in sf&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${ko(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${ko(e)}:${r}fit-content`)+i):String(t),sf={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Et=e=>e?e+"-":"",Wa=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?Et(t)+(a.includes("$")?"":Et(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),af=/\s*,\s*(?![^()]*\))/,cf=Object.prototype.toString,rn=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,f)=>{let p,g;const m=b=>{for(p in b){const v=p.charCodeAt(0)===64,$=v&&Array.isArray(b[p])?b[p]:[b[p]];for(g of $){const T=/[A-Z]/.test(y=p)?y:y.replace(/-[^]/g,E=>E[1].toUpperCase()),C=typeof g=="object"&&g&&g.toString===cf&&(!r.utils[T]||!u.length);if(T in r.utils&&!C){const E=r.utils[T];if(E!==s){s=E,m(E(g)),s=null;continue}}else if(T in Ji){const E=Ji[T];if(E!==a){a=E,m(E(g)),a=null;continue}}if(v&&(w=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,S,k,z,D,j)=>{const A=Xr.test(S),F=.0625*(A?-1:1),[L,N]=A?[z,S]:[S,z];return"("+(k[0]==="="?"":k[0]===">"===A?"max-":"min-")+L+":"+(k[0]!=="="&&k.length===1?N.replace(Xr,(V,K,Y)=>Number(K)+F*(k===">"?1:-1)+Y):N)+(D?") and ("+(D[0]===">"?"min-":"max-")+L+":"+(D.length===1?j.replace(Xr,(V,K,Y)=>Number(K)+F*(D===">"?-1:1)+Y):j):"")+")"})),C){const E=v?f.concat(p):[...f],S=v?[...u]:rf(u,p.split(af));i!==void 0&&o(es(...i)),i=void 0,c(g,S,E)}else i===void 0&&(i=[[],u,f]),p=v||p.charCodeAt(0)!==36?p:`--${Et(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,g=C?g:typeof g=="number"?g&&T in lf?String(g)+"px":String(g):Wa(of(T,g??""),r.prefix,r.themeMap[T]),i[0].push(`${v?`${p} `:`${ko(p)}:`}${g}`)}}var w,y};m(l),i!==void 0&&o(es(...i)),i=void 0};c(e,t,n)},es=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,lf={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},ts=e=>String.fromCharCode(e+(e>25?39:97)),Vt=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=ts(n%52)+r;return ts(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),kn=["themed","global","styled","onevar","resonevar","allvar","inline"],uf=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},df=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(uf(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const f=Object(l[c+1]);if(f.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const g=p.slice(14,-3).trim().split(/\s+/),m=kn[g[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:c,cache:new Set(g)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,f){this.cssRules.splice(f,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=kn.length-1;a>=0;--a){const c=kn[a];if(!s[c]){const l=kn[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}ff(s[c])}};return r(),t},ff=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},$n=Symbol(),pf=gn(),ns=(e,t)=>pf(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[Nt]){r.type==null&&(r.type=o[Nt].type);for(const i of o[Nt].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(hf(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),gf(e,r,t)}),hf=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${Et(o.prefix)}c-${Vt(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,f=p,tf.call(u,f)||(c[p]="undefined");const g=e[p];for(const m in g){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const w=g[m],y=[b,w,!Qi(w)];s.push(y)}}var u,f;if(typeof t=="object"&&t)for(const p of t){let{css:g,...m}=p;g=typeof g=="object"&&g||{};for(const w in m)m[w]=String(m[w]);const b=[m,g,!Qi(g)];a.push(b)}return[i,r,s,a,c,l]},gf=(e,t,n)=>{const[r,o,i,s]=mf(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(f=>{function p(){for(let g=0;gp.rules[g]={apply:m=>p[$n].push([g,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=f=>{f=typeof f=="object"&&f||bf;const{css:p,...g}=f,m={};for(const y in i)if(delete g[y],y in f){let v=f[y];typeof v=="object"&&v?m[y]={"@initial":i[y],...v}:(v=String(v),m[y]=v!=="undefined"||s.has(y)?v:i[y])}else m[y]=i[y];const b=new Set([...o]);for(const[y,v,$,T]of t.composers){n.rules.styled.cache.has(y)||(n.rules.styled.cache.add(y),rn(v,[`.${y}`],[],e,S=>{c.styled.apply(S)}));const C=rs($,m,e.media),E=rs(T,m,e.media,!0);for(const S of C)if(S!==void 0)for(const[k,z,D]of S){const j=`${y}-${Vt(z)}-${k}`;b.add(j);const A=(D?n.rules.resonevar:n.rules.onevar).cache,F=D?c.resonevar:c.onevar;A.has(j)||(A.add(j),rn(z,[`.${j}`],[],e,L=>{F.apply(L)}))}for(const S of E)if(S!==void 0)for(const[k,z]of S){const D=`${y}-${Vt(z)}-${k}`;b.add(D),n.rules.allvar.cache.has(D)||(n.rules.allvar.cache.add(D),rn(z,[`.${D}`],[],e,j=>{c.allvar.apply(j)}))}}if(typeof p=="object"&&p){const y=`${r}-i${Vt(p)}-css`;b.add(y),n.rules.inline.cache.has(y)||(n.rules.inline.cache.add(y),rn(p,[`.${y}`],[],e,v=>{c.inline.apply(v)}))}for(const y of String(f.className||"").trim().split(/\s+/))y&&b.add(y);const w=g.className=[...b].join(" ");return{type:t.type,className:w,selector:l,props:g,toString:()=>w,deferredInjector:a}};return hi(u,{className:r,selector:l,[Nt]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},mf=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},rs=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const f=i[c];let p=t[c];if(p!==f){if(typeof p!="object"||!p)continue e;{let g,m,b=0;for(const w in p){if(f===String(p[w])){if(w!=="@initial"){const y=w.slice(1);(m=m||[]).push(y in n?n[y]:w.replace(/^@media ?/,"")),u=!0}l+=b,g=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!g)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},bf={},vf=gn(),yf=(e,t)=>vf(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=Vt(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}rn(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return hi(r,{toString:r})}),xf=gn(),wf=(e,t)=>xf(e,()=>n=>{const r=`${Et(e.prefix)}k-${Vt(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];rn(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return hi(o,{get name(){return o()},toString:o})}),Ef=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Et(this.prefix)+Et(this.scale)+this.token}toString(){return this.computedValue}},$f=gn(),Cf=(e,t)=>$f(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${Et(e.prefix)}t-${Vt(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${Et(e.prefix)}${c}-${l}`,f=Wa(String(r[c][l]),e.prefix,c);i[c][l]=new Ef(l,f,c,e.prefix),s.push(`${u}:${f}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),_f=gn(),os,Sf=gn(),Ha=e=>{const t=(n=>{let r=!1;const o=_f(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...Jd},utils:typeof i.utils=="object"&&i.utils||{}},f=df(c),p={css:ns(u,f),globalCss:yf(u,f),keyframes:wf(u,f),createTheme:Cf(u,f),reset(){f.reset(),p.theme.toString()},theme:{},sheet:f,config:u,prefix:s,getCssText:f.toString,toString:f.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>Sf(n,()=>{const o=ns(n,r);return(...i)=>{const s=o(...i),a=s[Nt].type,c=h.forwardRef((l,u)=>{const f=l&&l.as||a,{props:p,deferredInjector:g}=s(l);return delete p.as,p.ref=u,g?h.createElement(h.Fragment,null,h.createElement(f,p),h.createElement(g,null)):h.createElement(f,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Nt]=s[Nt],c}}))(t),t},Tf=()=>os||(os=Ha()),Vy=(...e)=>Tf().styled(...e);function kf(e,t,n){return Math.max(t,Math.min(e,n))}const ke={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function is(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function ss(e,t,n,r=.15){return r===0?kf(e,t,n):en?+is(e-n,n-t,r)+n:e}function Rf(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[ss(t,i,s,r),ss(n,a,c,o)]}function Of(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pf(e){var t=Of(e,"string");return typeof t=="symbol"?t:String(t)}function ze(e,t,n){return t=Pf(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function Ff(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Ga(e){return Vr(e)?Ff(e)[0]:e}function Nf(e){return zf(e).map(t=>t.identifier)}function Zr(e){const t=Ga(e);return Vr(e)?t.identifier:t.pointerId}function ls(e){const t=Ga(e);return[t.clientX,t.clientY]}function Vf(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function mr(e,...t){return typeof e=="function"?e(...t):e}function Bf(){}function Wf(...e){return e.length===0?Bf:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function us(e,t){return Object.assign({},t,e||{})}const Hf=32;class Uf{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?mr(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,Vf(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);ke.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:f}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&f[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&f[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[E,S]=f;p[0]=u[0]!==!1?E-u[0]:0,p[1]=u[1]!==!1?S-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const g=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=mr(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,w]=n.offset,[[y,v],[$,T]]=n._bounds;n.overflow=[bv?1:0,w<$?-1:w>T?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const C=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Rf(n._bounds,n.offset,C),n.delta=ke.sub(n.offset,g),this.computeMovement(),m&&(!n.last||i>Hf)){n.delta=ke.sub(n.offset,g);const E=n.delta.map(Math.abs);ke.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[E[0]/i,E[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(ve(ve(ve({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Kf([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class Gf extends Uf{constructor(...t){super(...t),ze(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ke.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ke.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Ka(t)]:r.axisThreshold;n.axis=Kf(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Yf=e=>e,ds=.15,Ya={enabled(e=!0){return e},eventOptions(e,t,n){return ve(ve({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ds,ds];case!1:return[0,0];default:return ke.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return ke.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Yf},threshold(e){return ke.toVector(e,0)}},qf=0,Wn=ve(ve({},Ya),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=qf){return e},bounds(e={}){if(typeof e=="function")return i=>Wn.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),fs={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Xf extends Gf{constructor(...t){super(...t),ze(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Wn.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Zr(t),r._pointerActive=!0,this.computeValues(ls(t)),this.computeInitial(),n.preventScrollAxis&&Ka(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Zr(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=ls(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=ke.sub(i,n._values),this.computeValues(i)),ke.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Zr(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,c]=n._delta,[l,u]=n._movement,[f,p]=r.swipe.velocity,[g,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimef&&Math.abs(l)>g&&(n.swipe[0]=Math.sign(a)),y>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Zf(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=fs[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,ke.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in fs&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Zf(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Hn=typeof window<"u"&&window.document&&window.document.createElement;function qa(){return Hn&&"ontouchstart"in window}function Qf(){return qa()||Hn&&window.navigator.maxTouchPoints>1}function Jf(){return Hn&&"onpointerdown"in window}function ep(){return Hn&&"exitPointerLock"in window.document}function tp(){try{return"constructor"in GestureEvent}catch{return!1}}const Xe={isBrowser:Hn,gesture:tp(),touch:qa(),touchscreen:Qf(),pointer:Jf(),pointerLock:ep()},np=250,rp=180,op=.5,ip=50,sp=250,ap=10,ps={mouse:0,touch:0,pen:8},cp=ve(ve({},Wn),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Xe.pointerLock,Xe.touch&&n?"touch":this.pointerLock?"mouse":Xe.pointer&&!o?"pointer":Xe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?np:void 0,!(!Xe.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=ke.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=op,distance:t=ip,duration:n=sp}={}){return{velocity:this.transform(ke.toVector(e)),distance:this.transform(ke.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return rp;case!1:return 0;default:return e}},axisThreshold(e){return e?ve(ve({},ps),e):ps},keyboardDisplacement(e=ap){return e}});ve(ve({},Ya),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Xe.touch&&Xe.gesture)return"gesture";if(Xe.touch&&r)return"touch";if(Xe.touchscreen){if(Xe.pointer)return"pointer";if(Xe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=us(mr(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=us(mr(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",ke.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});ve(ve({},Wn),{},{mouseOnly:(e=!0)=>e});ve(ve({},Wn),{},{mouseOnly:(e=!0)=>e});const Xa=new Map,Ro=new Map;function lp(e){Xa.set(e.key,e.engine),Ro.set(e.key,e.resolver)}const up={key:"drag",engine:Xf,resolver:cp};function dp(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function fp(e,t){if(e==null)return{};var n=dp(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const pp={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Xe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},hp=["target","eventOptions","window","enabled","transform"];function cr(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=cr(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function gp(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=fp(r,hp);if(n.shared=cr({target:o,eventOptions:i,window:s,enabled:a,transform:c},pp),t){const u=Ro.get(t);n[t]=cr(ve({shared:n.shared},l),u)}else for(const u in l){const f=Ro.get(u);f&&(n[u]=cr(ve({shared:n.shared},l[u]),f))}return n}class Za{constructor(t,n){ze(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=Lf(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=ve(ve({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class mp{constructor(){ze(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}let bp=class{constructor(t){ze(this,"gestures",new Set),ze(this,"_targetEventStore",new Za(this)),ze(this,"gestureEventStores",{}),ze(this,"gestureTimeoutStores",{}),ze(this,"handlers",{}),ze(this,"config",{}),ze(this,"pointerIds",new Set),ze(this,"touchIds",new Set),ze(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),vp(this,t)}setEventIds(t){if(Vr(t))return this.touchIds=new Set(Nf(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=gp(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],c=hs(r,a.eventOptions,!!o);if(a.enabled){const l=Xa.get(s);new l(this,t,s).bind(c)}}const i=hs(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](ve(ve({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=Wf(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=jf(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}};function en(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Za(e,t),e.gestureTimeoutStores[t]=new mp}function vp(e,t){t.drag&&en(e,"drag"),t.wheel&&en(e,"wheel"),t.scroll&&en(e,"scroll"),t.move&&en(e,"move"),t.pinch&&en(e,"pinch"),t.hover&&en(e,"hover")}const hs=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,f=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:Df(r,o,u);n&&f&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function yp(e,t={},n,r){const o=h.useMemo(()=>new bp(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),h.useEffect(o.effect.bind(o)),h.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function xp(e,t){return lp(up),yp({drag:e},t||{},"drag")}function mt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Qa(e,t=[]){let n=[];function r(i,s){const a=d.createContext(s),c=n.length;n=[...n,s];function l(f){const{scope:p,children:g,...m}=f,b=(p==null?void 0:p[e][c])||a,w=d.useMemo(()=>m,Object.values(m));return d.createElement(b.Provider,{value:w},g)}function u(f,p){const g=(p==null?void 0:p[e][c])||a,m=d.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>d.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,wp(o,...t)]}function wp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function mn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ep(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Oo="dismissableLayer.update",$p="dismissableLayer.pointerDownOutside",Cp="dismissableLayer.focusOutside";let gs;const _p=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sp=d.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=d.useContext(_p),[f,p]=d.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=d.useState({}),b=hn(t,k=>p(k)),w=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=w.indexOf(y),$=f?w.indexOf(f):-1,T=u.layersWithOutsidePointerEventsDisabled.size>0,C=$>=v,E=Tp(k=>{const z=k.target,D=[...u.branches].some(j=>j.contains(z));!C||D||(i==null||i(k),a==null||a(k),k.defaultPrevented||c==null||c())},g),S=kp(k=>{const z=k.target;[...u.branches].some(j=>j.contains(z))||(s==null||s(k),a==null||a(k),k.defaultPrevented||c==null||c())},g);return Ep(k=>{$===u.layers.size-1&&(o==null||o(k),!k.defaultPrevented&&c&&(k.preventDefault(),c()))},g),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(gs=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),ms(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=gs)}},[f,g,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),ms())},[f,u]),d.useEffect(()=>{const k=()=>m({});return document.addEventListener(Oo,k),()=>document.removeEventListener(Oo,k)},[]),d.createElement(Kt.div,Q({},l,{ref:b,style:{pointerEvents:T?C?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,S.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,E.onPointerDownCapture)}))});function Tp(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ja($p,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function kp(e,t=globalThis==null?void 0:globalThis.document){const n=mn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ja(Cp,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ms(){const e=new CustomEvent(Oo);document.dispatchEvent(e)}function Ja(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Kd(o,i):o.dispatchEvent(i)}const un=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},Rp=Ul["useId".toString()]||(()=>{});let Op=0;function Pp(e){const[t,n]=d.useState(Rp());return un(()=>{e||n(r=>r??String(Op++))},[e]),e||(t?`radix-${t}`:"")}const Ap=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return d.createElement(Kt.svg,Q({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:d.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Ip=Ap;function Dp(e){const[t,n]=d.useState(void 0);return un(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const ec="Popper",[tc,nc]=Qa(ec),[Mp,rc]=tc(ec),jp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return d.createElement(Mp,{scope:t,anchor:r,onAnchorChange:o},n)},Lp="PopperAnchor",zp=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=rc(Lp,n),s=d.useRef(null),a=hn(t,s);return d.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:d.createElement(Kt.div,Q({},o,{ref:a}))}),oc="PopperContent",[Fp,Np]=tc(oc),Vp=d.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:p=0,align:g="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:y=[],collisionPadding:v=0,sticky:$="partial",hideWhenDetached:T=!1,updatePositionStrategy:C="optimized",onPlaced:E,...S}=e,k=rc(oc,u),[z,D]=d.useState(null),j=hn(t,Oe=>D(Oe)),[A,F]=d.useState(null),L=Dp(A),N=(n=L==null?void 0:L.width)!==null&&n!==void 0?n:0,V=(r=L==null?void 0:L.height)!==null&&r!==void 0?r:0,K=f+(g!=="center"?"-"+g:""),Y=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ee=Array.isArray(y)?y:[y],ce=ee.length>0,W={padding:Y,boundary:ee.filter(Up),altBoundary:ce},{refs:J,floatingStyles:re,placement:te,isPositioned:ie,middlewareData:fe}=Rd({strategy:"fixed",placement:K,whileElementsMounted:(...Oe)=>Sd(...Oe,{animationFrame:C==="always"}),elements:{reference:k.anchor},middleware:[id({mainAxis:p+V,alignmentAxis:m}),w&&sd({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?ad():void 0,...W}),w&&nd({...W}),cd({...W,apply:({elements:Oe,rects:Ye,availableWidth:Gt,availableHeight:Yt})=>{const{width:qt,height:x}=Ye.reference,R=Oe.floating.style;R.setProperty("--radix-popper-available-width",`${Gt}px`),R.setProperty("--radix-popper-available-height",`${Yt}px`),R.setProperty("--radix-popper-anchor-width",`${qt}px`),R.setProperty("--radix-popper-anchor-height",`${x}px`)}}),A&&kd({element:A,padding:b}),Kp({arrowWidth:N,arrowHeight:V}),T&&rd({strategy:"referenceHidden",...W})]}),[Ce,_e]=ic(te),xe=mn(E);un(()=>{ie&&(xe==null||xe())},[ie,xe]);const it=(o=fe.arrow)===null||o===void 0?void 0:o.x,dt=(i=fe.arrow)===null||i===void 0?void 0:i.y,St=((s=fe.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ne,ft]=d.useState();return un(()=>{z&&ft(window.getComputedStyle(z).zIndex)},[z]),d.createElement("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:ie?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(a=fe.transformOrigin)===null||a===void 0?void 0:a.x,(c=fe.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},d.createElement(Fp,{scope:u,placedSide:Ce,onArrowChange:F,arrowX:it,arrowY:dt,shouldHideArrow:St},d.createElement(Kt.div,Q({"data-side":Ce,"data-align":_e},S,{ref:j,style:{...S.style,animation:ie?void 0:"none",opacity:(l=fe.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),Bp="PopperArrow",Wp={top:"bottom",right:"left",bottom:"top",left:"right"},Hp=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Np(Bp,r),s=Wp[i.placedSide];return d.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},d.createElement(Ip,Q({},o,{ref:n,style:{...o.style,display:"block"}})))});function Up(e){return e!==null}const Kp=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,f=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[m,b]=ic(a),w={start:"0%",center:"50%",end:"100%"}[b],y=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,v=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let $="",T="";return m==="bottom"?($=f?w:`${y}px`,T=`${-g}px`):m==="top"?($=f?w:`${y}px`,T=`${c.floating.height+g}px`):m==="right"?($=`${-g}px`,T=f?w:`${v}px`):m==="left"&&($=`${c.floating.width+g}px`,T=f?w:`${v}px`),{data:{x:$,y:T}}}});function ic(e){const[t,n="center"]=e.split("-");return[t,n]}const Gp=jp,Yp=zp,qp=Vp,Xp=Hp;function Zp(e,t){return d.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const sc=e=>{const{present:t,children:n}=e,r=Qp(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=hn(r.ref,o.ref);return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};sc.displayName="Presence";function Qp(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Zp(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=er(r.current);i.current=a==="mounted"?l:"none"},[a]),un(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,g=er(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),un(()=>{if(t){const l=f=>{const g=er(r.current).includes(f.animationName);f.target===t&&g&&ti.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===t&&(i.current=er(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function er(e){return(e==null?void 0:e.animationName)||"none"}function Jp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=eh({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=mn(n),c=d.useCallback(l=>{if(i){const f=typeof l=="function"?l(e):l;f!==e&&a(f)}else o(l)},[i,e,o,a]);return[s,c]}function eh({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),i=mn(t);return d.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const th=d.forwardRef((e,t)=>d.createElement(Kt.span,Q({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),nh=th,[Br,Wy]=Qa("Tooltip",[nc]),Wr=nc(),rh="TooltipProvider",Po="tooltip.open",[Hy,gi]=Br(rh),mi="Tooltip",[oh,Hr]=Br(mi),ih=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=gi(mi,e.__scopeTooltip),l=Wr(t),[u,f]=d.useState(null),p=Pp(),g=d.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,w=d.useRef(!1),[y=!1,v]=Jp({prop:r,defaultProp:o,onChange:S=>{S?(c.onOpen(),document.dispatchEvent(new CustomEvent(Po))):c.onClose(),i==null||i(S)}}),$=d.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),T=d.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,v(!0)},[v]),C=d.useCallback(()=>{window.clearTimeout(g.current),v(!1)},[v]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,v(!0)},b)},[b,v]);return d.useEffect(()=>()=>window.clearTimeout(g.current),[]),d.createElement(Gp,l,d.createElement(oh,{scope:t,contentId:p,open:y,stateAttribute:$,trigger:u,onTriggerChange:f,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayed?E():T()},[c.isOpenDelayed,E,T]),onTriggerLeave:d.useCallback(()=>{m?C():window.clearTimeout(g.current)},[C,m]),onOpen:T,onClose:C,disableHoverableContent:m},n))},bs="TooltipTrigger",sh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Hr(bs,n),i=gi(bs,n),s=Wr(n),a=d.useRef(null),c=hn(t,a,o.onTriggerChange),l=d.useRef(!1),u=d.useRef(!1),f=d.useCallback(()=>l.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.createElement(Yp,Q({asChild:!0},s),d.createElement(Kt.button,Q({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:mt(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:mt(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:mt(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:mt(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:mt(e.onBlur,o.onClose),onClick:mt(e.onClick,o.onClose)})))}),ah="TooltipPortal",[Uy,ch]=Br(ah,{forceMount:void 0}),Ln="TooltipContent",lh=d.forwardRef((e,t)=>{const n=ch(Ln,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Hr(Ln,e.__scopeTooltip);return d.createElement(sc,{present:r||s.open},s.disableHoverableContent?d.createElement(ac,Q({side:o},i,{ref:t})):d.createElement(uh,Q({side:o},i,{ref:t})))}),uh=d.forwardRef((e,t)=>{const n=Hr(Ln,e.__scopeTooltip),r=gi(Ln,e.__scopeTooltip),o=d.useRef(null),i=hn(t,o),[s,a]=d.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:f}=r,p=d.useCallback(()=>{a(null),f(!1)},[f]),g=d.useCallback((m,b)=>{const w=m.currentTarget,y={x:m.clientX,y:m.clientY},v=gh(y,w.getBoundingClientRect()),$=mh(y,v),T=bh(b.getBoundingClientRect()),C=yh([...$,...T]);a(C),f(!0)},[f]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(c&&u){const m=w=>g(w,u),b=w=>g(w,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,g,p]),d.useEffect(()=>{if(s){const m=b=>{const w=b.target,y={x:b.clientX,y:b.clientY},v=(c==null?void 0:c.contains(w))||(u==null?void 0:u.contains(w)),$=!vh(y,s);v?p():$&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),d.createElement(ac,Q({},e,{ref:i}))}),[dh,fh]=Br(mi,{isInside:!1}),ac=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Hr(Ln,n),l=Wr(n),{onClose:u}=c;return d.useEffect(()=>(document.addEventListener(Po,u),()=>document.removeEventListener(Po,u)),[u]),d.useEffect(()=>{if(c.trigger){const f=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),d.createElement(Sp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:u},d.createElement(qp,Q({"data-state":c.stateAttribute},l,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),d.createElement(za,null,r),d.createElement(dh,{scope:n,isInside:!0},d.createElement(nh,{id:c.contentId,role:"tooltip"},o||r))))}),ph="TooltipArrow",hh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wr(n);return fh(ph,n).isInside?null:d.createElement(Xp,Q({},o,r,{ref:t}))});function gh(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function mh(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function bh(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function vh(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function yh(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),xh(t)}function xh(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const wh=ih,Eh=sh,$h=lh,Ch=hh;function _h(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function ae(e,t){if(e==null)return{};var n=_h(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let be;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(be||(be={}));const Sh={[be.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[be.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[be.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[be.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[be.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[be.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[be.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[be.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[be.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[be.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[be.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function cc(e,t,...n){const[r,...o]=Sh[t](...n);console[e]("LEVA: "+r,...o)}const bt=cc.bind(null,"warn"),Th=cc.bind(null,"log"),kh=["value"],Rh=["schema"],Oh=["value"],lc=[],Ht={};function vs(e){let{value:t}=e,n=ae(e,kh);for(let r of lc){const o=r(t,n);if(o)return o}}function Ct(e,t){let{schema:n}=t,r=ae(t,Rh);if(e in Ht){bt(be.ALREADY_REGISTERED_TYPE,e);return}lc.push((o,i)=>n(o,i)&&e),Ht[e]=r}function Qr(e,t,n,r){const{normalize:o}=Ht[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=ae(t,Oh);return{value:i,settings:s}}function Ph(e,t,n,r,o,i){const{sanitize:s}=Ht[e];return s?s(t,n,r,o,i):t}function ys(e,t,n){const{format:r}=Ht[e];return r?r(t,n):t}function Ah(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=kt(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Dh=Math.log(10);function ws(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Dh)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const br=(e,t,n)=>n===t?0:(Mt(e,t,n)-t)/(n-t),vr=(e,t,n)=>e*(n-t)+t,Mh=()=>"_"+Math.random().toString(36).substr(2,9),Es=/\(([0-9+\-*/^ .]+)\)/,$s=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Cs=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,_s=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Ss=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Ts=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function kt(e){if(isNaN(Number(e)))if(Es.test(e)){const t=e.replace(Es,(n,r)=>String(kt(r)));return kt(t)}else if($s.test(e)){const t=e.replace($s,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return kt(t)}else if(Cs.test(e)){const t=e.replace(Cs,(n,r,o)=>String(Number(r)*Number(o)));return kt(t)}else if(_s.test(e)){const t=e.replace(_s,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return kt(t)}else if(Ss.test(e)){const t=e.replace(Ss,(n,r,o)=>String(Number(r)+Number(o)));return kt(t)}else if(Ts.test(e)){const t=e.replace(Ts,(n,r,o)=>String(Number(r)-Number(o)));return kt(t)}else return Number(e);return Number(e)}function jh(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function Lh(e,t){const n=X({},e);return t.forEach(r=>r in e&&delete n[r]),n}function zh(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function uc(e){return Object.prototype.toString.call(e)==="[object Object]"}const Fh=e=>uc(e)&&Object.keys(e).length===0;let nt;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(nt||(nt={}));let rt;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(rt||(rt={}));const Nh=["type","__customInput"],Vh=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],Bh=["type"];function dc(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:X({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:C,__customInput:E}=e,S=ae(e,Nh);return dc(E,t,S,C)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:f,onChange:p,onEditStart:g,onEditEnd:m,transient:b}=e,w=ae(e,Vh),y=X({render:s,key:t,label:a??t,hint:f,transient:b??!!p,onEditStart:g,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:v}=w,$=ae(w,Bh);if(v=r??v,v in nt)return{type:v,input:$,options:y};let T;return r&&uc($)&&"value"in $?T=$.value:T=Fh($)?void 0:$,{type:v,input:T,options:X(X({},y),{},{onChange:p,optional:(o=y.optional)!==null&&o!==void 0?o:!1,disabled:(i=y.disabled)!==null&&i!==void 0?i:!1})}}function Wh(e,t,n,r){const o=dc(e,t),{type:i,input:s,options:a}=o;if(i)return i in nt?o:{type:i,input:Qr(i,s,n,r),options:a};let c=vs(s);return c?{type:c,input:Qr(c,s,n,r),options:a}:(c=vs({value:s}),c?{type:c,input:Qr(c,{value:s},n,r),options:a}:!1)}function ks(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=fc({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const Hh=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function fc({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=Ph(e,s,n,t,o,i)}catch(c){throw new Hh(`The value \`${r}\` did not result in a correct value.`,t,c)}return Mn(a,t)?t:a}const pc=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},hc=e=>e.shiftKey?5:e.altKey?1/5:1;function Uh(e,t){const n=console.error;console.error=()=>{},va.render(e,t),console.error=n}const Kh=["value"],Gh=["min","max"],Yh=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},gc=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=Mt(o,t,n);return r?i+r:i},qh=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},mc=e=>{let{value:t}=e,n=ae(e,Kh);const{min:r=-1/0,max:o=1/0}=n,i=ae(n,Gh);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=Mt(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?ws(c)*10:ws(s);c=c||l/10;const u=Math.round(Mt(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:X({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},bc=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var vc=Object.freeze({__proto__:null,schema:Yh,sanitize:gc,format:qh,normalize:mc,sanitizeStep:bc});function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function tr(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const Cn={$inputStyle:()=>e=>tr(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>tr(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>tr(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>tr(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:q,css:Ky,createTheme:Zh,globalCss:Qh,keyframes:Gy}=Ha({prefix:"leva",theme:Ec(),utils:X(X({},Cn),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":Cn.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":Cn.$focusStyle()(e)}),$hover:e=>({"&:hover":Cn.$hoverStyle()(e)}),$active:e=>({"&:active":Cn.$activeStyle()(e)})})}),Jh=Qh({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function eg(e){const t=Ec();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=Zh(t);return{theme:t,className:n.className}}function vt(e,t){const{theme:n}=d.useContext(bi);if(!(e in n)||!(t in n[e]))return bt(be.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const $c=q("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),Cc=q("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${$c}`]:{paddingLeft:0}}),tg=q(Cc,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),ng=q("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),rg=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],og=["onUpdate"];function vi(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=ae(e,rg);const{id:f,emitOnEditStart:p,emitOnEditEnd:g,disabled:m}=Re(),b=a||f,w=d.useRef(null),y=l>0,v=y?"textarea":"input",$=d.useCallback(E=>S=>{const k=S.currentTarget.value;E(k)},[]);h.useEffect(()=>{const E=w.current,S=$(k=>{r(k),g()});return E==null||E.addEventListener("blur",S),()=>E==null?void 0:E.removeEventListener("blur",S)},[$,r,g]);const T=d.useCallback(E=>{E.key==="Enter"&&$(r)(E)},[$,r]),C=Object.assign({as:v},y?{rows:l}:{},u);return h.createElement(ng,{textArea:y},t&&typeof t=="string"?h.createElement(Cc,null,t):t,h.createElement($c,ye({levaType:s,ref:w,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:$(o),onFocus:()=>p(),onKeyPress:T,onKeyDown:i,disabled:m},C)))}function ig(e){let{onUpdate:t}=e,n=ae(e,og);const r=d.useCallback(i=>t(Ih(i)),[t]),o=d.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(c=>parseFloat(c)+s*a)}},[t]);return h.createElement(vi,ye({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const yr=q("div",{}),Ao=q("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),sg=q("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${Ao}::after`]:{opacity:.6},[`${yr}:hover > & + ${Ao}::after`]:{opacity:.6},[`${yr}:hover > & > svg`]:{opacity:1}}),_c=q("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${yr}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),Sc=q("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${_c} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),Tc=q(Sc,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),ag=q("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),cg=q("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),Io=q("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),lg=q("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Io}`]:{pointerEvents:"auto"}}}}}),kc=q("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),ug=q("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),dg=q(Ch,{fill:"$toolTipBackground"});function yi({children:e}){const{className:t}=d.useContext(bi);return h.createElement(Yd,{className:t},e)}const fg=["align"];function pg(){const{id:e,disable:t,disabled:n}=Re();return h.createElement(h.Fragment,null,h.createElement(cg,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),h.createElement("label",{htmlFor:e+"__disable"}))}function hg(e){const{id:t,optional:n,hint:r}=Re(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return h.createElement(h.Fragment,null,n&&h.createElement(pg,null),r!==void 0?h.createElement(wh,null,h.createElement(Eh,{asChild:!0},h.createElement(Io,ye({},o,e))),h.createElement($h,{side:"top",sideOffset:2},h.createElement(ug,null,r,h.createElement(dg,null)))):h.createElement(Io,ye({},o,i,e)))}function ot(e){let{align:t}=e,n=ae(e,fg);const{value:r,label:o,key:i,disabled:s}=Re(),{hideCopyButton:a}=Xh(),c=!a&&i!==void 0,[l,u]=d.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{bt(be.CLIPBOARD_ERROR,{[i]:r})}};return h.createElement(ag,{align:t,onPointerLeave:()=>u(!1)},h.createElement(hg,n),c&&!s&&h.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),h.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):h.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),h.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const gg=["toggled"],mg=q("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function xi(e){let{toggled:t}=e,n=ae(e,gg);return h.createElement(mg,ye({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),h.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const bg=["input"];function tt(e){let{input:t}=e,n=ae(e,bg);return t?h.createElement(Tc,n):h.createElement(Sc,n)}function Rc({value:e,type:t,settings:n,setValue:r}){const[o,i]=d.useState(ys(t,e,n)),s=d.useRef(e),a=d.useRef(n);a.current=n;const c=d.useCallback(u=>i(ys(t,u,a.current)),[t]),l=d.useCallback(u=>{try{r(u)}catch(f){const{type:p,previousValue:g}=f;if(p!=="LEVA_ERROR")throw f;c(g)}},[c,r]);return d.useEffect(()=>{Mn(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Kn(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=Re();return xp(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function vg(e){const t=d.useRef(null),n=d.useRef(null),r=d.useRef(!1);return d.useEffect(()=>{const o=pc(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),d.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function Oc(){const e=d.useRef(null),t=d.useRef({x:0,y:0}),n=d.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const yg=["__refCount"],Jr=(e,t)=>{if(!e[t])return null;const n=e[t];return ae(n,yg)};function xg(e){const t=Un(),[n,r]=d.useState(Jr(t.getData(),e)),o=d.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=d.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=d.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=d.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=d.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return d.useEffect(()=>{r(Jr(t.getData(),e));const l=t.useStore.subscribe(u=>Jr(u.data,e),r,{equalityFn:Bn});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const wg=q("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Pc=q("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Do=q("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),Ac=q("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Ic=q("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function Eg({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=d.useRef(null),a=d.useRef(null),c=d.useRef(0),l=vt("sizes","scrubberWidth"),u=Kn(({event:p,first:g,xy:[m],movement:[b],memo:w})=>{if(g){const{width:v,left:$}=s.current.getBoundingClientRect();c.current=v-parseFloat(l),w=(p==null?void 0:p.target)===a.current?e:vr((m-$)/v,t,n)}const y=w+vr(b/c.current,0,n-t);return r(bc(y,{step:o,initialValue:i})),w}),f=br(e,t,n);return h.createElement(Ac,ye({ref:s},u()),h.createElement(Pc,null,h.createElement(Ic,{style:{left:0,right:`${(1-f)*100}%`}})),h.createElement(Do,{ref:a,style:{left:`calc(${f} * (100% - ${l}))`}}))}const $g=h.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=d.useState(!1),s=Kn(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(f=>parseFloat(f)+Math.floor(u)*n*hc(l)),u=0),u));return h.createElement(tg,ye({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function Dc({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&h.createElement($g,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return h.createElement(ig,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function Cg(){const e=Re(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return h.createElement(tt,{input:!0},h.createElement(ot,null,t),h.createElement(wg,{hasRange:c},c&&h.createElement(Eg,ye({value:parseFloat(n),onDrag:r},o)),h.createElement(Dc,ye({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:_g}=vc,Sg=ae(vc,["sanitizeStep"]);var Tg=X({component:Cg},Sg);const kg=(e,t)=>Fe().schema({options:Fe().passesAnyOf(Fe().object(),Fe().array())}).test(t),Rg=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},Og=(e,{values:t})=>t.indexOf(e),Pg=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var Ag=Object.freeze({__proto__:null,schema:kg,sanitize:Rg,format:Og,normalize:Pg});const Ig=q("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Mo=q("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Dg=q("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Mo}:focus + &`]:{$focusStyle:""},[`${Mo}:hover + &`]:{$hoverStyle:""}});function Mg({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=d.useRef();return t===a[e]&&(c.current=s[e]),h.createElement(Ig,null,h.createElement(Mo,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>h.createElement("option",{key:l,value:u},l))),h.createElement(Dg,null,c.current),h.createElement(xi,{toggled:!0}))}function jg(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Mg,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Lg=X({component:jg},Ag);const zg=e=>Fe().string().test(e),Fg=e=>{if(typeof e!="string")throw Error("Invalid string");return e},Ng=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var Vg=Object.freeze({__proto__:null,schema:zg,sanitize:Fg,normalize:Ng});const Bg=["displayValue","onUpdate","onChange","editable"],Wg=q("div",{whiteSpace:"pre-wrap"});function Hg(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=ae(e,Bg);return o?h.createElement(vi,ye({value:t,onUpdate:n,onChange:r},i)):h.createElement(Wg,null,t)}function Ug(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Hg,ye({displayValue:n,onUpdate:r,onChange:o},t)))}var Kg=X({component:Ug},Vg);const Gg=e=>Fe().boolean().test(e),Yg=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var qg=Object.freeze({__proto__:null,schema:Gg,sanitize:Yg});const Xg=q("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function Zg({value:e,onUpdate:t,id:n,disabled:r}){return h.createElement(Xg,null,h.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),h.createElement("label",{htmlFor:n},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function Qg(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Zg,{value:t,onUpdate:n,id:o,disabled:r}))}var Jg=X({component:Qg},qg);const e1=["locked"];function t1({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=d.useRef(e[n]);s.current=e[n];const a=d.useCallback(l=>o({[n]:fc({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=Rc({type:"NUMBER",value:e[n],settings:r,setValue:a});return h.createElement(Dc,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const n1=q("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function r1(e){let{locked:t}=e,n=ae(e,e1);return h.createElement("svg",ye({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?h.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):h.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function wi({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=Re(),{lock:s,locked:a}=n;return h.createElement(n1,{withLock:s},s&&h.createElement(r1,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>h.createElement(t1,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const Mc=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=mc(X({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},o1=["lock"],i1=["value"];function s1(e){const t=Fe().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function a1(e){return Array.isArray(e)?"array":"object"}function Rn(e,t,n){return a1(e)===t?e:t==="array"?Object.values(e):zh(e,n)}const c1=(e,t,n)=>{const r=Rn(e,"object",t.keys);for(let s in r)r[s]=gc(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=Rn(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let f in s)f===a?i[a]=c:i[f]=s[f]*u}else i=X(X({},s),r)}return Rn(i,t.format,t.keys)},l1=(e,t)=>Rn(e,"object",t.keys),u1=e=>!!e&&("step"in e||"min"in e||"max"in e);function d1(e,t,n=[]){const{lock:r=!1}=t,o=ae(t,o1),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=Rn(e,"object",s),c=u1(o)?s.reduce((u,f)=>Object.assign(u,{[f]:o}),{}):o,l=Mc(a,c);return{value:i==="array"?e:a,settings:X(X({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function jc(e){return{schema:s1(e.length),normalize:t=>{let{value:n}=t,r=ae(t,i1);return d1(n,r,e)},format:(t,n)=>l1(t,n),sanitize:(t,n,r)=>c1(t,n,r)}}var f1={grad:.9,turn:360,rad:360/(2*Math.PI)},ht=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},$e=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Lc=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Rs=function(e){return{r:Je(e.r,0,255),g:Je(e.g,0,255),b:Je(e.b,0,255),a:Je(e.a)}},eo=function(e){return{r:$e(e.r),g:$e(e.g),b:$e(e.b),a:$e(e.a,3)}},p1=/^#([0-9a-f]{3,8})$/i,nr=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},zc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},Fc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},Os=function(e){return{h:Lc(e.h),s:Je(e.s,0,100),l:Je(e.l,0,100),a:Je(e.a)}},Ps=function(e){return{h:$e(e.h),s:$e(e.s),l:$e(e.l),a:$e(e.a,3)}},As=function(e){return Fc((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},On=function(e){return{h:(t=zc(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},h1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,g1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jo={string:[[function(e){var t=p1.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?$e(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?$e(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=m1.exec(e)||b1.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Rs({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=h1.exec(e)||g1.exec(e);if(!t)return null;var n,r,o=Os({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(f1[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return As(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return ht(t)&&ht(n)&&ht(r)?Rs({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!ht(t)||!ht(n)||!ht(r))return null;var s=Os({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return As(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!ht(t)||!ht(n)||!ht(r))return null;var s=function(a){return{h:Lc(a.h),s:Je(a.s,0,100),v:Je(a.v,0,100),a:Je(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Fc(s)},"hsv"]]},Is=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=eo(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?nr($e(255*i)):"","#"+nr(n)+nr(r)+nr(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return eo(this.rgba)},e.prototype.toRgbString=function(){return t=eo(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return Ps(On(this.rgba))},e.prototype.toHslString=function(){return t=Ps(On(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=zc(this.rgba),{h:$e(t.h),s:$e(t.s),v:$e(t.v),a:$e(t.a,3)};var t},e.prototype.invert=function(){return Ie({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Ie(to(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Ie(to(this.rgba,-t))},e.prototype.grayscale=function(){return Ie(to(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Ie(Ds(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Ie(Ds(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Ie({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):$e(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=On(this.rgba);return typeof t=="number"?Ie({h:t,s:n.s,l:n.l,a:n.a}):$e(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Ie(t).toHex()},e}(),Ie=function(e){return e instanceof Lo?e:new Lo(e)},Ms=[],y1=function(e){e.forEach(function(t){Ms.indexOf(t)<0&&(t(Lo,jo),Ms.push(t))})};function x1(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),f=1/0,p="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function zo(e){var t=d.useRef(e),n=d.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var dn=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&o.current?i(js(o.current,w,a.current)):b(!1)},m=function(){return b(!1)};function b(w){var y=c.current,v=Fo(o.current),$=w?v.addEventListener:v.removeEventListener;$(y?"touchmove":"mousemove",g),$(y?"touchend":"mouseup",m)}return[function(w){var y=w.nativeEvent,v=o.current;if(v&&(Ls(y),!function(T,C){return C&&!Pn(T)}(y,c.current)&&v)){if(Pn(y)){c.current=!0;var $=y.changedTouches||[];$.length&&(a.current=$[0].identifier)}v.focus(),i(js(v,y,a.current)),b(!0)}},function(w){var y=w.which||w.keyCode;y<37||y>40||(w.preventDefault(),s({left:y===39?.05:y===37?-.05:0,top:y===40?.05:y===38?-.05:0}))},b]},[s,i]),u=l[0],f=l[1],p=l[2];return d.useEffect(function(){return p},[p]),h.createElement("div",bn({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Gn=function(e){return e.filter(Boolean).join(" ")},Ci=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Gn(["react-colorful__pointer",e.className]);return h.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Vc=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:je(e.h),s:je(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:je(o/2),a:je(r,2)}},No=function(e){var t=Vc(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},ro=function(e){var t=Vc(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Bc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:je(255*[r,a,s,s,c,r][l]),g:je(255*[c,r,r,a,s,s][l]),b:je(255*[s,s,c,r,r,a][l]),a:je(o,2)}},Wc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:je(60*(a<0?a+6:a)),s:je(i?s/i*100:0),v:je(i/255*100),a:o}},Hc=h.memo(function(e){var t=e.hue,n=e.onChange,r=Gn(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement($i,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:dn(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":je(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Ci,{className:"react-colorful__hue-pointer",left:t/360,color:No({h:t,s:100,v:100,a:1})})))}),Uc=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:No({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement($i,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:dn(t.s+100*o.left,0,100),v:dn(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+je(t.s)+"%, Brightness "+je(t.v)+"%"},h.createElement(Ci,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:No(t)})))}),_i=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Kc(e,t,n){var r=zo(n),o=d.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=d.useRef({color:t,hsva:i});d.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),d.useEffect(function(){var l;_i(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=d.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var w1=typeof window<"u"?d.useLayoutEffect:d.useEffect,E1=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},zs=new Map,Gc=function(e){w1(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!zs.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,zs.set(t,n);var r=E1();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},$1=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Ei(e,["className","colorModel","color","onChange"]),a=d.useRef(null);Gc(a);var c=Kc(n,o,i),l=c[0],u=c[1],f=Gn(["react-colorful",t]);return h.createElement("div",bn({},s,{ref:a,className:f}),h.createElement(Uc,{hsva:l,onChange:u}),h.createElement(Hc,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},C1=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+ro(Object.assign({},n,{a:0}))+", "+ro(Object.assign({},n,{a:1}))+")"},i=Gn(["react-colorful__alpha",t]),s=je(100*n.a);return h.createElement("div",{className:i},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement($i,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:dn(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Ci,{className:"react-colorful__alpha-pointer",left:n.a,color:ro(n)})))},_1=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=Ei(e,["className","colorModel","color","onChange"]),a=d.useRef(null);Gc(a);var c=Kc(n,o,i),l=c[0],u=c[1],f=Gn(["react-colorful",t]);return h.createElement("div",bn({},s,{ref:a,className:f}),h.createElement(Uc,{hsva:l,onChange:u}),h.createElement(Hc,{hue:l.h,onChange:u}),h.createElement(C1,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},S1={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Wc,fromHsva:Bc,equal:_i},T1=function(e){return h.createElement(_1,bn({},e,{colorModel:S1}))},k1={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return Wc({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Bc(e)).r,g:t.g,b:t.b};var t},equal:_i},R1=function(e){return h.createElement($1,bn({},e,{colorModel:k1}))};function Yy(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function vn(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function c(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function yn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function P1(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function I1(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=A1.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var D1=[".DS_Store","Thumbs.db"];function M1(e){return vn(this,void 0,void 0,function(){return yn(this,function(t){return xr(e)&&j1(e)?[2,N1(e.dataTransfer,e.type)]:L1(e)?[2,z1(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,F1(e)]:[2,[]]})})}function j1(e){return xr(e.dataTransfer)}function L1(e){return xr(e)&&xr(e.target)}function xr(e){return typeof e=="object"&&e!==null}function z1(e){return Vo(e.target.files).map(function(t){return Yn(t)})}function F1(e){return vn(this,void 0,void 0,function(){var t;return yn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Yn(r)})]}})})}function N1(e,t){return vn(this,void 0,void 0,function(){var n,r;return yn(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=Vo(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(V1))]):[3,2];case 1:return r=o.sent(),[2,Fs(Yc(r))];case 2:return[2,Fs(Vo(e.files).map(function(i){return Yn(i)}))]}})})}function Fs(e){return e.filter(function(t){return D1.indexOf(t.name)===-1})}function Vo(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Us(n)];if(e.sizen)return[!1,Us(n)]}return[!0,null]}function _n(e){return e!=null}function t0(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var c=Zc(a,n),l=Ws(c,1),u=l[0],f=Qc(a,r,o),p=Ws(f,1),g=p[0];return u&&g})}function wr(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function rr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Gs(e){e.preventDefault()}function n0(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function r0(e){return e.indexOf("Edge/")!==-1}function o0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return n0(e)||r0(e)}function at(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x0(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Si=d.forwardRef(function(e,t){var n=e.children,r=Er(e,l0),o=tl(r),i=o.open,s=Er(o,u0);return d.useImperativeHandle(t,function(){return{open:i}},[i]),h.createElement(d.Fragment,null,n(me(me({},s),{},{open:i})))});Si.displayName="Dropzone";var el={disabled:!1,getFilesFromEvent:M1,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Si.defaultProps=el;Si.propTypes={children:he.func,accept:he.oneOfType([he.string,he.arrayOf(he.string)]),multiple:he.bool,preventDropOnDocument:he.bool,noClick:he.bool,noKeyboard:he.bool,noDrag:he.bool,noDragEventsBubbling:he.bool,minSize:he.number,maxSize:he.number,maxFiles:he.number,disabled:he.bool,getFilesFromEvent:he.func,onFileDialogCancel:he.func,onFileDialogOpen:he.func,useFsAccessApi:he.bool,onDragEnter:he.func,onDragLeave:he.func,onDragOver:he.func,onDrop:he.func,onDropAccepted:he.func,onDropRejected:he.func,validator:he.func};var Ho={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function tl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=me(me({},el),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,c=t.maxFiles,l=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,b=t.onFileDialogCancel,w=t.onFileDialogOpen,y=t.useFsAccessApi,v=t.preventDropOnDocument,$=t.noClick,T=t.noKeyboard,C=t.noDrag,E=t.noDragEventsBubbling,S=t.validator,k=d.useMemo(function(){return typeof w=="function"?w:qs},[w]),z=d.useMemo(function(){return typeof b=="function"?b:qs},[b]),D=d.useRef(null),j=d.useRef(null),A=d.useReducer(w0,Ho),F=oo(A,2),L=F[0],N=F[1],V=L.isFocused,K=L.isFileDialogActive,Y=L.draggedFiles,ee=d.useRef(typeof window<"u"&&window.isSecureContext&&y&&i0()),ce=function(){!ee.current&&K&&setTimeout(function(){if(j.current){var P=j.current.files;P.length||(N({type:"closeDialog"}),z())}},300)};d.useEffect(function(){return window.addEventListener("focus",ce,!1),function(){window.removeEventListener("focus",ce,!1)}},[j,K,z,ee]);var W=d.useRef([]),J=function(P){D.current&&D.current.contains(P.target)||(P.preventDefault(),W.current=[])};d.useEffect(function(){return v&&(document.addEventListener("dragover",Gs,!1),document.addEventListener("drop",J,!1)),function(){v&&(document.removeEventListener("dragover",Gs),document.removeEventListener("drop",J))}},[D,v]);var re=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O),W.current=[].concat(p0(W.current),[O.target]),rr(O)&&Promise.resolve(o(O)).then(function(P){wr(O)&&!E||(N({draggedFiles:P,isDragActive:!0,type:"setDraggedFiles"}),l&&l(O))})},[o,l,E]),te=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O);var P=rr(O);if(P&&O.dataTransfer)try{O.dataTransfer.dropEffect="copy"}catch{}return P&&f&&f(O),!1},[f,E]),ie=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O);var P=W.current.filter(function(H){return D.current&&D.current.contains(H)}),M=P.indexOf(O.target);M!==-1&&P.splice(M,1),W.current=P,!(P.length>0)&&(N({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),rr(O)&&u&&u(O))},[D,u,E]),fe=d.useCallback(function(O,P){var M=[],H=[];O.forEach(function(Z){var pe=Zc(Z,n),G=oo(pe,2),Ve=G[0],jt=G[1],st=Qc(Z,s,i),pt=oo(st,2),wn=pt[0],Xt=pt[1],En=S?S(Z):null;if(Ve&&wn&&!En)M.push(Z);else{var Zt=[jt,Xt];En&&(Zt=Zt.concat(En)),H.push({file:Z,errors:Zt.filter(function(Vl){return Vl})})}}),(!a&&M.length>1||a&&c>=1&&M.length>c)&&(M.forEach(function(Z){H.push({file:Z,errors:[e0]})}),M.splice(0)),N({acceptedFiles:M,fileRejections:H,type:"setFiles"}),p&&p(M,H,P),H.length>0&&m&&m(H,P),M.length>0&&g&&g(M,P)},[N,a,n,s,i,c,p,g,m,S]),Ce=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O),W.current=[],rr(O)&&Promise.resolve(o(O)).then(function(P){wr(O)&&!E||fe(P,O)}),N({type:"reset"})},[o,fe,E]),_e=d.useCallback(function(){if(ee.current){N({type:"openDialog"}),k();var O={multiple:a,types:s0(n)};window.showOpenFilePicker(O).then(function(P){return o(P)}).then(function(P){fe(P,null),N({type:"closeDialog"})}).catch(function(P){a0(P)?(z(P),N({type:"closeDialog"})):c0(P)&&(ee.current=!1,j.current&&(j.current.value=null,j.current.click()))});return}j.current&&(N({type:"openDialog"}),k(),j.current.value=null,j.current.click())},[N,k,z,y,fe,n,a]),xe=d.useCallback(function(O){!D.current||!D.current.isEqualNode(O.target)||(O.key===" "||O.key==="Enter"||O.keyCode===32||O.keyCode===13)&&(O.preventDefault(),_e())},[D,_e]),it=d.useCallback(function(){N({type:"focus"})},[]),dt=d.useCallback(function(){N({type:"blur"})},[]),St=d.useCallback(function(){$||(o0()?setTimeout(_e,0):_e())},[$,_e]),Ne=function(P){return r?null:P},ft=function(P){return T?null:Ne(P)},Oe=function(P){return C?null:Ne(P)},Ye=function(P){E&&P.stopPropagation()},Gt=d.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=O.refKey,M=P===void 0?"ref":P,H=O.role,Z=O.onKeyDown,pe=O.onFocus,G=O.onBlur,Ve=O.onClick,jt=O.onDragEnter,st=O.onDragOver,pt=O.onDragLeave,wn=O.onDrop,Xt=Er(O,d0);return me(me(Wo({onKeyDown:ft(at(Z,xe)),onFocus:ft(at(pe,it)),onBlur:ft(at(G,dt)),onClick:Ne(at(Ve,St)),onDragEnter:Oe(at(jt,re)),onDragOver:Oe(at(st,te)),onDragLeave:Oe(at(pt,ie)),onDrop:Oe(at(wn,Ce)),role:typeof H=="string"&&H!==""?H:"button"},M,D),!r&&!T?{tabIndex:0}:{}),Xt)}},[D,xe,it,dt,St,re,te,ie,Ce,T,C,r]),Yt=d.useCallback(function(O){O.stopPropagation()},[]),qt=d.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=O.refKey,M=P===void 0?"ref":P,H=O.onChange,Z=O.onClick,pe=Er(O,f0),G=Wo({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:Ne(at(H,Ce)),onClick:Ne(at(Z,Yt)),tabIndex:-1},M,j);return me(me({},G),pe)}},[j,n,a,Ce,r]),x=Y.length,R=x>0&&t0({files:Y,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:c}),I=x>0&&!R;return me(me({},L),{},{isDragAccept:R,isDragReject:I,isFocused:V&&!r,getRootProps:Gt,getInputProps:qt,rootRef:D,inputRef:j,open:Ne(_e)})}function w0(e,t){switch(t.type){case"focus":return me(me({},e),{},{isFocused:!0});case"blur":return me(me({},e),{},{isFocused:!1});case"openDialog":return me(me({},Ho),{},{isFileDialogActive:!0});case"closeDialog":return me(me({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return me(me({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return me(me({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return me({},Ho);default:return e}}function qs(){}function E0(e){let t;const n=new Set,r=(l,u)=>{const f=typeof l=="function"?l(t):l;if(f!==t){const p=t;t=u?f:Object.assign({},t,f),n.forEach(g=>g(t,p))}},o=()=>t,i=(l,u=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=u(t);function g(){const m=u(t);if(!f(p,m)){const b=p;l(p=m,b)}}return n.add(g),()=>n.delete(g)},c={setState:r,getState:o,subscribe:(l,u,f)=>u||f?i(l,u,f):(n.add(l),()=>n.delete(l)),destroy:()=>n.clear()};return t=e(r,o,c),c}const $0=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Xs=$0?d.useEffect:d.useLayoutEffect;function C0(e){const t=typeof e=="function"?E0(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=d.useReducer(w=>w+1,0),s=t.getState(),a=d.useRef(s),c=d.useRef(r),l=d.useRef(o),u=d.useRef(!1),f=d.useRef();f.current===void 0&&(f.current=r(s));let p,g=!1;(a.current!==s||c.current!==r||l.current!==o||u.current)&&(p=r(s),g=!o(f.current,p)),Xs(()=>{g&&(f.current=p),a.current=s,c.current=r,l.current=o,u.current=!1});const m=d.useRef(s);Xs(()=>{const w=()=>{try{const v=t.getState(),$=c.current(v);l.current(f.current,$)||(a.current=v,f.current=$,i())}catch{u.current=!0,i()}},y=t.subscribe(w);return t.getState()!==m.current&&w(),y},[]);const b=g?p:f.current;return d.useDebugValue(b),b};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const _0=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,c)=>{let l=s;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let f=s(r.getState());l=p=>{const g=s(p);if(!u(f,g)){const m=f;a(f=g,m)}},c!=null&&c.fireImmediately&&a(f,f)}return o(l)},e(t,n,r)};/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var S0=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var T0=S0;function Zs(e){return T0(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var nl=function(t){var n,r;return!(Zs(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,Zs(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! - * is-extendable - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var k0=nl,Ti=function(t){return k0(t)||typeof t=="function"||Array.isArray(t)};/*! - * for-in - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */var R0=function(t,n,r){for(var o in t)if(n.call(r,t[o],o,t)===!1)break},O0=Ti,P0=R0;function rl(e,t){for(var n=arguments.length,r=0;++r - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */var M0=function(e,t,n,r,o){if(!j0(e)||!t)return e;if(t=or(t),n&&(t+="."+or(n)),r&&(t+="."+or(r)),o&&(t+="."+or(o)),t in e)return e[t];for(var i=t.split("."),s=i.length,a=-1;e&&++a - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var L0=function(e,t){if(e===null||typeof e>"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");Qs(e)||(e={});for(var t=1;t - * - * Copyright (c) 2015-2017, Jon Schlinkert. - * Released under the MIT License. - */var U0=N0,K0=function(e,t,n){if(typeof e!="string")throw new TypeError("expected a string");typeof t=="function"&&(n=t,t=null),typeof t=="string"&&(t={sep:t});var r=U0({sep:"."},t),o=r.quotes||['"',"'","`"],i;r.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:r.brackets&&(i=r.brackets);var s=[],a=[],c=[""],l=r.sep,u=e.length,f=-1,p;function g(){if(i&&a.length)return i[a[a.length-1]]}for(;++f - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var q0=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")},Js=q0,X0=function(t){Js(t)||(t={});for(var n=arguments.length,r=1;r - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */var J0=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")};/*! - * set-value - * - * Copyright (c) 2014-2015, 2017, Jon Schlinkert. - * Released under the MIT License. - */var em=K0,tm=X0,ea=nl,ta=J0,nm=function(e,t,n){if(!ta(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=em(t,{sep:".",brackets:!0}).filter(rm),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function am(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function cm(e,t){return Object.entries(jh(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function lm(e,t){const n=d.useRef();return(t?Mn:Bn)(e,n.current)||(n.current=e),n.current}function ol(e,t){return d.useMemo(e,lm(t,!0))}function um(e){const t=d.useRef(null),n=d.useRef(null),r=d.useRef(!0);return d.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),d.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:a}=n.current.getBoundingClientRect();return i.style.height=a+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const dm=e=>{const[t,n]=d.useState(e.getVisiblePaths());return d.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:Bn});return()=>r()},[e]),t};function fm(e,t,n){return e.useStore(o=>{const i=X(X({},n),o.data);return cm(i,t)},Bn)}function il(e=3){const t=d.useRef(null),n=d.useRef(null),[r,o]=d.useState(!1),i=d.useCallback(()=>o(!0),[]),s=d.useCallback(()=>o(!1),[]);return d.useLayoutEffect(()=>{if(r){const{bottom:a,top:c,left:l}=t.current.getBoundingClientRect(),{height:u}=n.current.getBoundingClientRect(),f=a+u>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=l+"px",f==="down"?n.current.style.top=a+e+"px":n.current.style.bottom=window.innerHeight-c+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}y1([x1]);const pm={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Fe.extend({color:()=>e=>Ie(e).isValid()});const hm=e=>Fe().color().test(e);function sl(e,{format:t,hasAlpha:n,isString:r}){const o=pm[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?Lh(i,["a"]):i}const al=(e,t)=>{const n=Ie(e);if(!n.isValid())throw Error("Invalid color");return sl(n,t)},gm=(e,t)=>sl(Ie(e),X(X({},t),{},{isString:!0,format:"hex"})),mm=({value:e})=>{const t=v1(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:al(e,o),settings:o}};var bm=Object.freeze({__proto__:null,schema:hm,sanitize:al,format:gm,normalize:mm});const vm=q("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),ym=q("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),xm=q("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function oa(e,t){return t!=="rgb"?Ie(e).toRgb():e}function wm({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=Re(),{format:s,hasAlpha:a}=n,{popinRef:c,wrapperRef:l,shown:u,show:f,hide:p}=il(),g=d.useRef(0),[m,b]=d.useState(()=>oa(e,s)),w=a?T1:R1,y=()=>{b(oa(e,s)),f(),o()},v=()=>{p(),i(),window.clearTimeout(g.current)},$=()=>{g.current=window.setTimeout(v,500)};return d.useEffect(()=>()=>window.clearTimeout(g.current),[]),h.createElement(h.Fragment,null,h.createElement(vm,{ref:c,active:u,onClick:()=>y(),style:{color:t}}),u&&h.createElement(yi,null,h.createElement(kc,{onPointerUp:v}),h.createElement(xm,{ref:l,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:T=>T.buttons===0&&$()},h.createElement(w,{color:m,onChange:r}))))}function Em(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,n),h.createElement(ym,null,h.createElement(wm,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),h.createElement(vi,{value:t,onChange:r,onUpdate:o})))}var $m=X({component:Em},bm);function Cm(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(wi,{value:t,settings:r,onUpdate:n}))}var _m=X({component:Cm},jc(["x","y","z"]));const Sm=q("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),Tm=q("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function km({value:e,settings:t,onUpdate:n}){const r=d.useRef(),o=d.useRef(0),i=d.useRef(0),s=d.useRef(1),[a,c]=d.useState(!1),[l,u]=d.useState(!1),[f,p]=Oc(),g=d.useRef(null),m=d.useRef(null);d.useLayoutEffect(()=>{if(a){const{top:A,left:F,width:L,height:N}=g.current.getBoundingClientRect();m.current.style.left=F+L/2+"px",m.current.style.top=A+N/2+"px"}},[a]);const{keys:[b,w],joystick:y}=t,v=y==="invertY"?1:-1,{[b]:{step:$},[w]:{step:T}}=t,C=vt("sizes","joystickWidth"),E=vt("sizes","joystickHeight"),S=parseFloat(C)*.8/2,k=parseFloat(E)*.8/2,z=d.useCallback(()=>{r.current||(u(!0),o.current&&p({x:o.current*S}),i.current&&p({y:i.current*-k}),r.current=window.setInterval(()=>{n(A=>{const F=$*o.current*s.current,L=v*T*i.current*s.current;return Array.isArray(A)?{[b]:A[0]+F,[w]:A[1]+L}:{[b]:A[b]+F,[w]:A[w]+L}})},16))},[S,k,n,p,$,T,b,w,v]),D=d.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,u(!1)},[]);d.useEffect(()=>{function A(F){s.current=hc(F)}return window.addEventListener("keydown",A),window.addEventListener("keyup",A),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",A),window.removeEventListener("keyup",A)}},[]);const j=Kn(({first:A,active:F,delta:[L,N],movement:[V,K]})=>{A&&c(!0);const Y=Mt(V,-S,S),ee=Mt(K,-k,k);o.current=Math.abs(V)>Math.abs(Y)?Math.sign(V-Y):0,i.current=Math.abs(K)>Math.abs(ee)?Math.sign(ee-K):0;let ce=e[b],W=e[w];F?(o.current||(ce+=L*$*s.current,p({x:Y})),i.current||(W-=v*N*T*s.current,p({y:ee})),o.current||i.current?z():D(),n({[b]:ce,[w]:W})):(c(!1),o.current=0,i.current=0,p({x:0,y:0}),D())});return h.createElement(Sm,ye({ref:g},j()),a&&h.createElement(yi,null,h.createElement(Tm,{ref:m,isOutOfBounds:l},h.createElement("div",null),h.createElement("span",{ref:f}))))}const Rm=q("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function Om(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Rm,{withJoystick:!!r.joystick},r.joystick&&h.createElement(km,{value:t,settings:r,onUpdate:n}),h.createElement(wi,{value:t,settings:r,onUpdate:n})))}const Pm=["joystick"],cl=jc(["x","y"]),Am=e=>{let{joystick:t=!0}=e,n=ae(e,Pm);const{value:r,settings:o}=cl.normalize(n);return{value:r,settings:X(X({},o),{},{joystick:t})}};var Im=X(X({component:Om},cl),{},{normalize:Am});const Dm=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},Mm=(e,t)=>typeof t=="object"&&"image"in t,jm=({image:e})=>({value:e});var Lm=Object.freeze({__proto__:null,sanitize:Dm,schema:Mm,normalize:jm});const zm=q("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),Fm=q("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),Nm=q("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),Vm=q("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),Bm=q("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),Wm=q("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function Hm(){const{label:e,value:t,onUpdate:n,disabled:r}=Re(),{popinRef:o,wrapperRef:i,shown:s,show:a,hide:c}=il(),l=d.useCallback(m=>{m.length&&n(m[0])},[n]),u=d.useCallback(m=>{m.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:p,isDragAccept:g}=tl({maxFiles:1,accept:"image/*",onDrop:l,disabled:r});return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(zm,null,h.createElement(Nm,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&a(),onPointerUp:c,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&h.createElement(yi,null,h.createElement(kc,{onPointerUp:c,style:{cursor:"pointer"}}),h.createElement(Vm,{ref:i,style:{backgroundImage:`url(${t})`}})),h.createElement(Fm,f({isDragAccept:g}),h.createElement("input",p()),h.createElement(Bm,null,g?"drop image":"click or drop")),h.createElement(Wm,{onClick:u,disabled:!t})))}var Um=X({component:Hm},Lm);const ia=Fe().number(),Km=(e,t)=>Fe().array().length(2).every.number().test(e)&&Fe().schema({min:ia,max:ia}).test(t),$r=e=>({min:e[0],max:e[1]}),ll=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?$r(e):e,i={min:r[0],max:r[1]},{min:s,max:a}=X(X({},i),o);return[Mt(Number(s),t,Math.max(t,a)),Mt(Number(a),Math.min(n,s),n)]},Gm=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=Mc($r(e),{min:r,max:r}),i=[t,n],s=X(X({},o),{},{bounds:i});return{value:ll($r(e),s,e),settings:s}};var Ym=Object.freeze({__proto__:null,schema:Km,format:$r,sanitize:ll,normalize:Gm});const qm=["value","bounds","onDrag"],Xm=["bounds"],Zm=q("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Qm(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=ae(e,qm);const s=d.useRef(null),a=d.useRef(null),c=d.useRef(null),l=d.useRef(0),u=vt("sizes","scrubberWidth"),f=Kn(({event:m,first:b,xy:[w],movement:[y],memo:v={}})=>{if(b){const{width:T,left:C}=s.current.getBoundingClientRect();l.current=T-parseFloat(u);const E=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;v.pos=vr((w-C)/T,n,r);const S=Math.abs(v.pos-t.min)-Math.abs(v.pos-t.max);v.key=S<0||S===0&&v.pos<=t.min?"min":"max",E&&(v.pos=t[v.key])}const $=v.pos+vr(y/l.current,0,r-n);return o({[v.key]:_g($,i[v.key])}),v}),p=`calc(${br(t.min,n,r)} * (100% - ${u} - 8px) + 4px)`,g=`calc(${1-br(t.max,n,r)} * (100% - ${u} - 8px) + 4px)`;return h.createElement(Ac,ye({ref:s},f()),h.createElement(Pc,null,h.createElement(Ic,{style:{left:p,right:g}})),h.createElement(Do,{position:"left",ref:a,style:{left:p}}),h.createElement(Do,{position:"right",ref:c,style:{right:g}}))}function Jm(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Re(),o=ae(r,Xm);return h.createElement(h.Fragment,null,h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Zm,null,h.createElement(Qm,ye({value:t},r,{onDrag:n})),h.createElement(wi,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var eb=X({component:Jm},Ym);const tb=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},nb=["type","value"],rb=["onChange","transient","onEditStart","onEditEnd"],ob=function(){const t=C0(_0(()=>({data:{}}))),n=tb();this.storeId=Mh(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),c=[];Object.entries(r).forEach(([u,f])=>{f.render&&a.some(p=>p.indexOf(u)===0)&&!f.render(this.get)&&c.push(u+".")});const l=[];return o.forEach(u=>{u in s&&s[u].__refCount>0&&c.every(f=>u.indexOf(f)===-1)&&(!s[u].render||s[u].render(this.get))&&l.push(u)}),l},this.setOrderedPaths=s=>{s.forEach(a=>o.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(a=>{const c=a.data;return s.forEach(l=>{if(l in c){const u=c[l];u.__refCount--,u.__refCount===0&&u.type in nt&&delete c[l]}}),{data:c}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,a)=>{t.setState(c=>{const l=c.data;return Object.entries(s).forEach(([u,f])=>{let p=l[u];if(p){const{type:g,value:m}=f,b=ae(f,nb);g!==p.type?bt(be.INPUT_TYPE_OVERRIDE,g):((p.__refCount===0||a)&&Object.assign(p,b),p.__refCount++)}else l[u]=X(X({},f),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(s,a,c)=>{t.setState(l=>{const u=l.data;return ks(u[s],a,s,this,c),{data:u}})},this.setSettingsAtPath=(s,a)=>{t.setState(c=>{const l=c.data;return l[s].settings=X(X({},l[s].settings),a),{data:l}})},this.disableInputAtPath=(s,a)=>{t.setState(c=>{const l=c.data;return l[s].disabled=a,{data:l}})},this.set=(s,a)=>{t.setState(c=>{const l=c.data;return Object.entries(s).forEach(([u,f])=>{try{ks(l[u],f,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=s=>{try{return this.getData()[s]}catch{bt(be.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,X(X({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,X(X({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const c=`onEditStart:${s}`;return n.on(c,a),()=>n.off(c,a)},this.subscribeToEditEnd=(s,a)=>{const c=`onEditEnd:${s}`;return n.on(c,a),()=>n.off(c,a)};const i=(s,a,c)=>{const l={};return Object.entries(s).forEach(([u,f])=>{if(u==="")return bt(be.EMPTY_KEY);let p=ki(a,u);if(f.type===nt.FOLDER){const g=i(f.schema,p,c);Object.assign(l,g),p in r||(r[p]=f.settings)}else if(u in c)bt(be.DUPLICATE_KEYS,u,p,c[u].path);else{const g=Wh(f,u,p,l);if(g){const{type:m,options:b,input:w}=g,{onChange:y,transient:v,onEditStart:$,onEditEnd:T}=b,C=ae(b,rb);l[p]=X(X(X({type:m},C),w),{},{fromPanel:!0}),c[u]={path:p,onChange:y,transient:v,onEditStart:$,onEditEnd:T}}else bt(be.UNKNOWN_INPUT,p,f)}}),l};this.getDataFromSchema=s=>{const a={};return[i(s,"",a),a]}},ul=new ob,ib={collapsed:!1};function sb(e,t){return{type:nt.FOLDER,schema:e,settings:X(X({},ib),t)}}const sa=e=>"__levaInput"in e,ab=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=am(o);(!r||i.toLowerCase().indexOf(r)>-1)&&sm(n,s,{[i]:{__levaInput:!0,path:o}})}),n},cb=["type","label","path","valueKey","value","settings","setValue","disabled"];function lb(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:a,disabled:c}=e,l=ae(e,cb);const{displayValue:u,onChange:f,onUpdate:p}=Rc({type:t,value:i,settings:s,setValue:a}),g=Ht[t].component;return g?h.createElement(yc.Provider,{value:X({key:o,path:r,id:""+r,label:n,displayValue:u,value:i,onChange:f,onUpdate:p,settings:s,setValue:a,disabled:c},l)},h.createElement(lg,{disabled:c},h.createElement(g,null))):(bt(be.NO_COMPONENT_FOR_TYPE,t,r),null)}const ub=q("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function db({onClick:e,settings:t,label:n}){const r=Un();return h.createElement(tt,null,h.createElement(ub,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const fb=q("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),pb=q("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),hb=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function gb(e){const{label:t,opts:n}=hb(e),r=Un();return h.createElement(tt,{input:!!t},t&&h.createElement(ot,null,t),h.createElement(fb,null,Object.entries(n).map(([o,i])=>h.createElement(pb,{key:o,onClick:()=>i(r.get)},o))))}const mb=q("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),dl=100;function bb(e,t){e.push(t),e.length>dl&&e.shift()}const vb=d.forwardRef(function({initialValue:e},t){const n=vt("colors","highlight3"),r=vt("colors","elevation2"),o=vt("colors","highlight1"),[i,s]=d.useMemo(()=>[Ie(o).alpha(.4).toRgbString(),Ie(o).alpha(.1).toRgbString()],[o]),a=d.useRef([e]),c=d.useRef(e),l=d.useRef(e),u=d.useRef(),f=d.useCallback((m,b)=>{if(!m)return;const{width:w,height:y}=m,v=new Path2D,$=w/dl,T=y*.05;for(let S=0;S({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),bb(a.current,m),u.current=requestAnimationFrame(()=>f(p.current,g.current))}}),[p,g,f]),d.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),h.createElement(mb,{ref:p})}),aa=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),yb=d.forwardRef(function({initialValue:e},t){const[n,r]=d.useState(aa(e));return d.useImperativeHandle(t,()=>({frame:o=>r(aa(o))}),[]),h.createElement("div",null,n)});function ca(e){return typeof e=="function"?e():e.current}function xb({label:e,objectOrFn:t,settings:n}){const r=d.useRef(),o=d.useRef(ca(t));return d.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(ca(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),h.createElement(tt,{input:!0},h.createElement(ot,{align:"top"},e),n.graph?h.createElement(vb,{ref:r,initialValue:o.current}):h.createElement(yb,{ref:r,initialValue:o.current}))}const wb=["type","label","key"],Eb={[nt.BUTTON]:db,[nt.BUTTON_GROUP]:gb,[nt.MONITOR]:xb},$b=h.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:a}]=xg(e);if(!t)return null;const{type:c,label:l,key:u}=t,f=ae(t,wb);if(c in nt){const p=Eb[c];return h.createElement(p,ye({label:l,path:e},f))}return c in Ht?h.createElement(lb,ye({key:i+e,type:c,label:l,storeId:i,path:e,valueKey:u,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:a},f)):(Th(be.UNSUPPORTED_INPUT,c,e),null)});function Cb({toggle:e,toggled:t,name:n}){return h.createElement(sg,{onClick:()=>e()},h.createElement(xi,{toggled:t}),h.createElement("div",null,n))}const _b=({name:e,path:t,tree:n})=>{const r=Un(),o=ki(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[a,c]=d.useState(!i),l=d.useRef(null),u=vt("colors","folderWidgetColor"),f=vt("colors","folderTextColor");return d.useLayoutEffect(()=>{l.current.style.setProperty("--leva-colors-folderWidgetColor",s||u),l.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,u,f]),h.createElement(yr,{ref:l},h.createElement(Cb,{name:e,toggled:a,toggle:()=>c(p=>!p)}),h.createElement(fl,{parent:o,tree:n,toggled:a}))},fl=h.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:a}=um(i),c=Un(),l=([f,p])=>{var g;return(sa(p)?(g=c.getInput(p.path))===null||g===void 0?void 0:g.order:c.getFolderSettings(ki(r,f)).order)||0},u=Object.entries(o).sort((f,p)=>l(f)-l(p));return h.createElement(Ao,{ref:s,isRoot:e,fill:t,flat:n},h.createElement(_c,{ref:a,isRoot:e,toggled:i},u.map(([f,p])=>sa(p)?h.createElement($b,{key:p.path,valueKey:p.valueKey,path:p.path}):h.createElement(_b,{key:f,name:f,path:r,tree:p}))))}),Sb=q("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${Tc}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),pl=40,Cr=q("i",{$flexCenter:"",width:pl,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),Tb=q("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),kb=q("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Cr}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),Rb=q("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),Ob=q("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:pl}}}}),Pb=h.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=d.useState(""),i=d.useMemo(()=>pc(e,250),[e]),s=()=>{e(""),o("")},a=c=>{const l=c.currentTarget.value;t(!0),o(l)};return d.useEffect(()=>{i(r)},[r,i]),h.createElement(h.Fragment,null,h.createElement(Rb,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),h.createElement(Cr,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function Ab({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:a,filterEnabled:c,from:l}){const[u,f]=d.useState(!1),p=d.useRef(null);d.useEffect(()=>{var m,b;u?(m=p.current)===null||m===void 0||m.focus():(b=p.current)===null||b===void 0||b.blur()},[u]);const g=Kn(({offset:[m,b],first:w,last:y})=>{t({x:m,y:b}),w&&n({x:m,y:b}),y&&r({x:m,y:b})},{filterTaps:!0,from:({offset:[m,b]})=>[(l==null?void 0:l.x)||m,(l==null?void 0:l.y)||b]});return d.useEffect(()=>{const m=b=>{b.key==="L"&&b.shiftKey&&b.metaKey&&f(w=>!w)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),h.createElement(h.Fragment,null,h.createElement(Tb,{mode:a?"drag":void 0},h.createElement(Cr,{active:!i,onClick:()=>o()},h.createElement(xi,{toggled:i,width:12,height:8})),h.createElement(Ob,ye({},a?g():{},{drag:a,filterEnabled:c}),s===void 0&&a?h.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},h.createElement("circle",{cx:"2",cy:"2",r:"2"}),h.createElement("circle",{cx:"14",cy:"2",r:"2"}),h.createElement("circle",{cx:"26",cy:"2",r:"2"}),h.createElement("circle",{cx:"2",cy:"12",r:"2"}),h.createElement("circle",{cx:"14",cy:"12",r:"2"}),h.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),c&&h.createElement(Cr,{active:u,onClick:()=>f(m=>!m)},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},h.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),h.createElement(kb,{toggled:u},h.createElement(Pb,{ref:p,setFilter:e,toggle:o})))}const Ib=["store","hidden","theme","collapsed"];function Db(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=ae(e,Ib);const s=ol(()=>eg(r),[r]),[a,c]=d.useState(!o),l=typeof o=="object"?!o.collapsed:a,u=d.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:c,[o]);return!t||n?null:h.createElement(bi.Provider,{value:s},h.createElement(Mb,ye({store:t},i,{toggled:l,setToggle:u,rootClass:s.className})))}const Mb=h.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:c,setToggle:l})=>{var u,f;const p=dm(e),[g,m]=d.useState(""),b=d.useMemo(()=>ab(p,g),[p,g]),[w,y]=Oc(),v=o||p.length>0,$=typeof s=="object"&&s.title||void 0,T=typeof s=="object"&&(u=s.drag)!==null&&u!==void 0?u:!0,C=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,E=typeof s=="object"&&s.position||void 0,S=typeof s=="object"&&s.onDrag||void 0,k=typeof s=="object"&&s.onDragStart||void 0,z=typeof s=="object"&&s.onDragEnd||void 0;return h.useEffect(()=>{y({x:E==null?void 0:E.x,y:E==null?void 0:E.y})},[E,y]),Jh(),h.createElement(wc.Provider,{value:{hideCopyButton:a}},h.createElement(Sb,{ref:w,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:v?"block":"none"}},s&&h.createElement(Ab,{onDrag:D=>{y(D),S==null||S(D)},onDragStart:D=>k==null?void 0:k(D),onDragEnd:D=>z==null?void 0:z(D),setFilter:m,toggle:D=>l(j=>D??!j),toggled:c,title:$,drag:T,filterEnabled:C,from:E}),v&&h.createElement(xc.Provider,{value:e},h.createElement(fl,{isRoot:!0,fill:n,flat:r,tree:b,toggled:c}))))}),jb=["isRoot"];let _r=!1,zt=null;function hl(e){let{isRoot:t=!1}=e,n=ae(e,jb);return d.useEffect(()=>(_r=!0,!t&&zt&&(zt.remove(),zt=null),()=>{t||(_r=!1)}),[t]),h.createElement(Db,ye({store:ul},n))}function Lb(e){d.useEffect(()=>{e&&!_r&&(zt||(zt=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(zt),Uh(h.createElement(hl,{isRoot:!0}),zt))),_r=!0)},[e])}function zb(e,t,n,r,o){let i,s,a,c,l;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?l=n:n&&("store"in n?(c=n,l=r):(a=n,Array.isArray(r)?l=r:(c=r,l=o)))):(i=e,Array.isArray(t)?l=t:(c=t,l=n)),{schema:i,folderName:s,folderSettings:a,hookSettings:c,deps:l||[]}}function qy(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:a,hookSettings:c,deps:l}=zb(e,t,n,r,o),u=typeof s=="function",f=d.useRef(!1),p=d.useRef(!0),g=ol(()=>{f.current=!0;const j=typeof s=="function"?s():s;return i?{[i]:sb(j,a)}:j},l),m=!(c!=null&&c.store);Lb(m);const[b]=d.useState(()=>(c==null?void 0:c.store)||ul),[w,y]=d.useMemo(()=>b.getDataFromSchema(g),[b,g]),[v,$,T,C,E]=d.useMemo(()=>{const j=[],A=[],F={},L={},N={};return Object.values(y).forEach(({path:V,onChange:K,onEditStart:Y,onEditEnd:ee,transient:ce})=>{j.push(V),K?(F[V]=K,ce||A.push(V)):A.push(V),Y&&(L[V]=Y),ee&&(N[V]=ee)}),[j,A,F,L,N]},[y]),S=d.useMemo(()=>b.orderPaths(v),[v,b]),k=fm(b,$,w),z=d.useCallback(j=>{const A=Object.entries(j).reduce((F,[L,N])=>Object.assign(F,{[y[L].path]:N}),{});b.set(A,!1)},[b,y]),D=d.useCallback(j=>b.get(y[j].path),[b,y]);return d.useEffect(()=>{const j=!p.current&&f.current;return b.addData(w,j),p.current=!1,f.current=!1,()=>b.disposePaths(S)},[b,S,w]),d.useEffect(()=>{const j=[];return Object.entries(T).forEach(([A,F])=>{F(b.get(A),A,X({initial:!0,get:b.get},b.getInput(A)));const L=b.useStore.subscribe(N=>{const V=N.data[A];return[V.disabled?void 0:V.value,V]},([N,V])=>F(N,A,X({initial:!1,get:b.get},V)),{equalityFn:Bn});j.push(L)}),()=>j.forEach(A=>A())},[b,T]),d.useEffect(()=>{const j=[];return Object.entries(C).forEach(([A,F])=>j.push(b.subscribeToEditStart(A,F))),Object.entries(E).forEach(([A,F])=>j.push(b.subscribeToEditEnd(A,F))),()=>j.forEach(A=>A())},[C,E,b]),u?[k,z,D]:k}Ct(rt.SELECT,Lg);Ct(rt.IMAGE,Um);Ct(rt.NUMBER,Tg);Ct(rt.COLOR,$m);Ct(rt.STRING,Kg);Ct(rt.BOOLEAN,Jg);Ct(rt.INTERVAL,eb);Ct(rt.VECTOR3D,_m);Ct(rt.VECTOR2D,Im);var qn=e=>e.type==="checkbox",on=e=>e instanceof Date,De=e=>e==null;const gl=e=>typeof e=="object";var we=e=>!De(e)&&!Array.isArray(e)&&gl(e)&&!on(e),ml=e=>we(e)&&e.target?qn(e.target)?e.target.checked:e.target.value:e,Fb=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,bl=(e,t)=>e.has(Fb(t)),Nb=e=>{const t=e.constructor&&e.constructor.prototype;return we(t)&&t.hasOwnProperty("isPrototypeOf")},Ri=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Se(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Ri&&(e instanceof Blob||e instanceof FileList))&&(n||we(e)))if(t=n?[]:{},!n&&!Nb(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Se(e[r]));else return e;return t}var xn=e=>Array.isArray(e)?e.filter(Boolean):[],ge=e=>e===void 0,B=(e,t,n)=>{if(!t||!we(e))return n;const r=xn(t.split(/[,[\].]+?/)).reduce((o,i)=>De(o)?o:o[i],e);return ge(r)||r===e?ge(e[t])?n:e[t]:r},Ze=e=>typeof e=="boolean";const Sr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Qe={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},gt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},vl=h.createContext(null),Ur=()=>h.useContext(vl),Vb=e=>{const{children:t,...n}=e;return h.createElement(vl.Provider,{value:n},t)};var yl=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Qe.all&&(t._proxyFormState[s]=!r||Qe.all),n&&(n[s]=!0),e[s]}});return o},Be=e=>we(e)&&!Object.keys(e).length,xl=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Be(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||Qe.all))},Ue=e=>Array.isArray(e)?e:[e],wl=(e,t,n)=>!e||!t||e===t||Ue(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Kr(e){const t=h.useRef(e);t.current=e,h.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Bb(e){const t=Ur(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,a]=h.useState(n._formState),c=h.useRef(!0),l=h.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=h.useRef(o);return u.current=o,Kr({disabled:r,next:f=>c.current&&wl(u.current,f.name,i)&&xl(f,l.current,n._updateFormState)&&a({...n._formState,...f}),subject:n._subjects.state}),h.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),yl(s,n,l.current,!1)}var ct=e=>typeof e=="string",El=(e,t,n,r,o)=>ct(e)?(r&&t.watch.add(e),B(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),B(n,i))):(r&&(t.watchAll=!0),n);function Wb(e){const t=Ur(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s}=e||{},a=h.useRef(r);a.current=r,Kr({disabled:i,subject:n._subjects.values,next:u=>{wl(a.current,u.name,s)&&l(Se(El(a.current,n._names,u.values||n._formValues,!1,o)))}});const[c,l]=h.useState(n._getWatch(r,o));return h.useEffect(()=>n._removeUnmounted()),c}var Oi=e=>/^\w*$/.test(e),$l=e=>xn(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ue=(e,t,n)=>{let r=-1;const o=Oi(t)?[t]:$l(t),i=o.length,s=i-1;for(;++r{const u=o._options.shouldUnregister||i,f=(p,g)=>{const m=B(o._fields,p);m&&(m._f.mount=g)};if(f(n,!0),u){const p=Se(B(o._options.defaultValues,n));ue(o._defaultValues,n,p),ge(B(o._formValues,n))&&ue(o._formValues,n,p)}return()=>{(s?u&&!o._state.action:u)?o.unregister(n):f(n,!1)}},[n,o,s,i]),h.useEffect(()=>{B(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:B(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:a,...Ze(r)||Ze(c.disabled)?{disabled:c.disabled||r}:{},onChange:h.useCallback(u=>l.current.onChange({target:{value:ml(u),name:n},type:Sr.CHANGE}),[n]),onBlur:h.useCallback(()=>l.current.onBlur({target:{value:B(o._formValues,n),name:n},type:Sr.BLUR}),[n,o]),ref:u=>{const f=B(o._fields,n);f&&u&&(f._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:p=>u.setCustomValidity(p),reportValidity:()=>u.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!B(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!B(c.touchedFields,n)},error:{enumerable:!0,get:()=>B(c.errors,n)}})}}const Xy=e=>e.render(Hb(e));var Ub=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},Tt=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},so=(e,t,n={})=>n.shouldFocus||ge(n.shouldFocus)?n.focusName||`${e}.${ge(n.focusIndex)?t:n.focusIndex}.`:"",Go=e=>({isOnSubmit:!e||e===Qe.onSubmit,isOnBlur:e===Qe.onBlur,isOnChange:e===Qe.onChange,isOnAll:e===Qe.all,isOnTouch:e===Qe.onTouched}),Yo=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const cn=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=B(e,o);if(i){const{_f:s,...a}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;cn(a,t)}else we(a)&&cn(a,t)}}};var Cl=(e,t,n)=>{const r=xn(B(e,n));return ue(r,"root",t[n]),ue(e,n,r),e},Pi=e=>e.type==="file",Rt=e=>typeof e=="function",Tr=e=>{if(!Ri)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},lr=e=>ct(e),Ai=e=>e.type==="radio",kr=e=>e instanceof RegExp;const la={value:!1,isValid:!1},ua={value:!0,isValid:!0};var _l=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ge(e[0].attributes.value)?ge(e[0].value)||e[0].value===""?ua:{value:e[0].value,isValid:!0}:ua:la}return la};const da={isValid:!1,value:null};var Sl=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,da):da;function fa(e,t,n="validate"){if(lr(e)||Array.isArray(e)&&e.every(lr)||Ze(e)&&!e)return{type:n,message:lr(e)?e:"",ref:t}}var tn=e=>we(e)&&!kr(e)?e:{value:e,message:""},qo=async(e,t,n,r,o)=>{const{ref:i,refs:s,required:a,maxLength:c,minLength:l,min:u,max:f,pattern:p,validate:g,name:m,valueAsNumber:b,mount:w,disabled:y}=e._f,v=B(t,m);if(!w||y)return{};const $=s?s[0]:i,T=A=>{r&&$.reportValidity&&($.setCustomValidity(Ze(A)?"":A||""),$.reportValidity())},C={},E=Ai(i),S=qn(i),k=E||S,z=(b||Pi(i))&&ge(i.value)&&ge(v)||Tr(i)&&i.value===""||v===""||Array.isArray(v)&&!v.length,D=Ub.bind(null,m,n,C),j=(A,F,L,N=gt.maxLength,V=gt.minLength)=>{const K=A?F:L;C[m]={type:A?N:V,message:K,ref:i,...D(A?N:V,K)}};if(o?!Array.isArray(v)||!v.length:a&&(!k&&(z||De(v))||Ze(v)&&!v||S&&!_l(s).isValid||E&&!Sl(s).isValid)){const{value:A,message:F}=lr(a)?{value:!!a,message:a}:tn(a);if(A&&(C[m]={type:gt.required,message:F,ref:$,...D(gt.required,F)},!n))return T(F),C}if(!z&&(!De(u)||!De(f))){let A,F;const L=tn(f),N=tn(u);if(!De(v)&&!isNaN(v)){const V=i.valueAsNumber||v&&+v;De(L.value)||(A=V>L.value),De(N.value)||(F=Vnew Date(new Date().toDateString()+" "+ce),Y=i.type=="time",ee=i.type=="week";ct(L.value)&&v&&(A=Y?K(v)>K(L.value):ee?v>L.value:V>new Date(L.value)),ct(N.value)&&v&&(F=Y?K(v)+A.value,N=!De(F.value)&&v.length<+F.value;if((L||N)&&(j(L,A.message,F.message),!n))return T(C[m].message),C}if(p&&!z&&ct(v)){const{value:A,message:F}=tn(p);if(kr(A)&&!v.match(A)&&(C[m]={type:gt.pattern,message:F,ref:i,...D(gt.pattern,F)},!n))return T(F),C}if(g){if(Rt(g)){const A=await g(v,t),F=fa(A,$);if(F&&(C[m]={...F,...D(gt.validate,F.message)},!n))return T(F.message),C}else if(we(g)){let A={};for(const F in g){if(!Be(A)&&!n)break;const L=fa(await g[F](v,t),$,F);L&&(A={...L,...D(F,L.message)},T(L.message),n&&(C[m]=A))}if(!Be(A)&&(C[m]={ref:$,...A},!n))return C}}return T(!0),C},ao=(e,t)=>[...e,...Ue(t)],co=e=>Array.isArray(e)?e.map(()=>{}):void 0;function lo(e,t,n){return[...e.slice(0,t),...Ue(n),...e.slice(t)]}var uo=(e,t,n)=>Array.isArray(e)?(ge(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],fo=(e,t)=>[...Ue(t),...Ue(e)];function Kb(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return xn(r).length?r:[]}var po=(e,t)=>ge(t)?[]:Kb(e,Ue(t).sort((n,r)=>n-r)),ho=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function Gb(e,t){const n=t.slice(0,-1).length;let r=0;for(;r(e[t]=n,e);function Zy(e){const t=Ur(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i}=e,[s,a]=h.useState(n._getFieldArray(r)),c=h.useRef(n._getFieldArray(r).map(Tt)),l=h.useRef(s),u=h.useRef(r),f=h.useRef(!1);u.current=r,l.current=s,n._names.array.add(r),e.rules&&n.register(r,e.rules),Kr({next:({values:C,name:E})=>{if(E===u.current||!E){const S=B(C,u.current);Array.isArray(S)&&(a(S),c.current=S.map(Tt))}},subject:n._subjects.array});const p=h.useCallback(C=>{f.current=!0,n._updateFieldArray(r,C)},[n,r]),g=(C,E)=>{const S=Ue(Se(C)),k=ao(n._getFieldArray(r),S);n._names.focus=so(r,k.length-1,E),c.current=ao(c.current,S.map(Tt)),p(k),a(k),n._updateFieldArray(r,k,ao,{argA:co(C)})},m=(C,E)=>{const S=Ue(Se(C)),k=fo(n._getFieldArray(r),S);n._names.focus=so(r,0,E),c.current=fo(c.current,S.map(Tt)),p(k),a(k),n._updateFieldArray(r,k,fo,{argA:co(C)})},b=C=>{const E=po(n._getFieldArray(r),C);c.current=po(c.current,C),p(E),a(E),n._updateFieldArray(r,E,po,{argA:C})},w=(C,E,S)=>{const k=Ue(Se(E)),z=lo(n._getFieldArray(r),C,k);n._names.focus=so(r,C,S),c.current=lo(c.current,C,k.map(Tt)),p(z),a(z),n._updateFieldArray(r,z,lo,{argA:C,argB:co(E)})},y=(C,E)=>{const S=n._getFieldArray(r);ho(S,C,E),ho(c.current,C,E),p(S),a(S),n._updateFieldArray(r,S,ho,{argA:C,argB:E},!1)},v=(C,E)=>{const S=n._getFieldArray(r);uo(S,C,E),uo(c.current,C,E),p(S),a(S),n._updateFieldArray(r,S,uo,{argA:C,argB:E},!1)},$=(C,E)=>{const S=Se(E),k=pa(n._getFieldArray(r),C,S);c.current=[...k].map((z,D)=>!z||D===C?Tt():c.current[D]),p(k),a([...k]),n._updateFieldArray(r,k,pa,{argA:C,argB:S},!0,!1)},T=C=>{const E=Ue(Se(C));c.current=E.map(Tt),p([...E]),a([...E]),n._updateFieldArray(r,[...E],S=>S,{},!0,!1)};return h.useEffect(()=>{if(n._state.action=!1,Yo(r,n._names)&&n._subjects.state.next({...n._formState}),f.current&&(!Go(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then(C=>{const E=B(C.errors,r),S=B(n._formState.errors,r);(S?!E&&S.type||E&&(S.type!==E.type||S.message!==E.message):E&&E.type)&&(E?ue(n._formState.errors,r,E):Ee(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const C=B(n._fields,r);C&&C._f&&qo(C,n._formValues,n._options.criteriaMode===Qe.all,n._options.shouldUseNativeValidation,!0).then(E=>!Be(E)&&n._subjects.state.next({errors:Cl(n._formState.errors,E,r)}))}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&cn(n._fields,(C,E)=>{if(n._names.focus&&E.startsWith(n._names.focus)&&C.focus)return C.focus(),1}),n._names.focus="",n._updateValid(),f.current=!1},[s,r,n]),h.useEffect(()=>(!B(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||i)&&n.unregister(r)}),[r,n,o,i]),{swap:h.useCallback(y,[p,r,n]),move:h.useCallback(v,[p,r,n]),prepend:h.useCallback(m,[p,r,n]),append:h.useCallback(g,[p,r,n]),remove:h.useCallback(b,[p,r,n]),insert:h.useCallback(w,[p,r,n]),update:h.useCallback($,[p,r,n]),replace:h.useCallback(T,[p,r,n]),fields:h.useMemo(()=>s.map((C,E)=>({...C,[o]:c.current[E]||Tt()})),[s,o])}}var go=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Rr=e=>De(e)||!gl(e);function Ft(e,t){if(Rr(e)||Rr(t))return e===t;if(on(e)&&on(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const i=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const s=t[o];if(on(i)&&on(s)||we(i)&&we(s)||Array.isArray(i)&&Array.isArray(s)?!Ft(i,s):i!==s)return!1}}return!0}var Tl=e=>e.type==="select-multiple",qb=e=>Ai(e)||qn(e),mo=e=>Tr(e)&&e.isConnected,kl=e=>{for(const t in e)if(Rt(e[t]))return!0;return!1};function Or(e,t={}){const n=Array.isArray(e);if(we(e)||n)for(const r in e)Array.isArray(e[r])||we(e[r])&&!kl(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Or(e[r],t[r])):De(e[r])||(t[r]=!0);return t}function Rl(e,t,n){const r=Array.isArray(e);if(we(e)||r)for(const o in e)Array.isArray(e[o])||we(e[o])&&!kl(e[o])?ge(t)||Rr(n[o])?n[o]=Array.isArray(e[o])?Or(e[o],[]):{...Or(e[o])}:Rl(e[o],De(t)?{}:t[o],n[o]):n[o]=!Ft(e[o],t[o]);return n}var bo=(e,t)=>Rl(e,t,Or(t)),Ol=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ge(e)?e:t?e===""?NaN:e&&+e:n&&ct(e)?new Date(e):r?r(e):e;function vo(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Pi(t)?t.files:Ai(t)?Sl(e.refs).value:Tl(t)?[...t.selectedOptions].map(({value:n})=>n):qn(t)?_l(e.refs).value:Ol(ge(t.value)?e.ref.value:t.value,e)}var Xb=(e,t,n,r)=>{const o={};for(const i of e){const s=B(t,i);s&&ue(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Sn=e=>ge(e)?e:kr(e)?e.source:we(e)?kr(e.value)?e.value.source:e.value:e,Zb=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ha(e,t,n){const r=B(e,n);if(r||Oi(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=B(t,i),a=B(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:n}}var Qb=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Jb=(e,t)=>!xn(B(e,t)).length&&Ee(e,t);const ev={mode:Qe.onSubmit,reValidateMode:Qe.onChange,shouldFocusError:!0};function tv(e={},t){let n={...ev,...e},r={submitCount:0,isDirty:!1,isLoading:Rt(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},o={},i=we(n.defaultValues)||we(n.values)?Se(n.defaultValues||n.values)||{}:{},s=n.shouldUnregister?{}:Se(i),a={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:go(),array:go(),state:go()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Go(n.mode),b=Go(n.reValidateMode),w=n.criteriaMode===Qe.all,y=x=>R=>{clearTimeout(u),u=setTimeout(x,R)},v=async x=>{if(f.isValid||x){const R=n.resolver?Be((await D()).errors):await A(o,!0);R!==r.isValid&&p.state.next({isValid:R})}},$=x=>f.isValidating&&p.state.next({isValidating:x}),T=(x,R=[],I,O,P=!0,M=!0)=>{if(O&&I){if(a.action=!0,M&&Array.isArray(B(o,x))){const H=I(B(o,x),O.argA,O.argB);P&&ue(o,x,H)}if(M&&Array.isArray(B(r.errors,x))){const H=I(B(r.errors,x),O.argA,O.argB);P&&ue(r.errors,x,H),Jb(r.errors,x)}if(f.touchedFields&&M&&Array.isArray(B(r.touchedFields,x))){const H=I(B(r.touchedFields,x),O.argA,O.argB);P&&ue(r.touchedFields,x,H)}f.dirtyFields&&(r.dirtyFields=bo(i,s)),p.state.next({name:x,isDirty:L(x,R),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ue(s,x,R)},C=(x,R)=>{ue(r.errors,x,R),p.state.next({errors:r.errors})},E=x=>{r.errors=x,p.state.next({errors:r.errors,isValid:!1})},S=(x,R,I,O)=>{const P=B(o,x);if(P){const M=B(s,x,ge(I)?B(i,x):I);ge(M)||O&&O.defaultChecked||R?ue(s,x,R?M:vo(P._f)):K(x,M),a.mount&&v()}},k=(x,R,I,O,P)=>{let M=!1,H=!1;const Z={name:x},pe=!!(B(o,x)&&B(o,x)._f.disabled);if(!I||O){f.isDirty&&(H=r.isDirty,r.isDirty=Z.isDirty=L(),M=H!==Z.isDirty);const G=pe||Ft(B(i,x),R);H=!!(!pe&&B(r.dirtyFields,x)),G||pe?Ee(r.dirtyFields,x):ue(r.dirtyFields,x,!0),Z.dirtyFields=r.dirtyFields,M=M||f.dirtyFields&&H!==!G}if(I){const G=B(r.touchedFields,x);G||(ue(r.touchedFields,x,I),Z.touchedFields=r.touchedFields,M=M||f.touchedFields&&G!==I)}return M&&P&&p.state.next(Z),M?Z:{}},z=(x,R,I,O)=>{const P=B(r.errors,x),M=f.isValid&&Ze(R)&&r.isValid!==R;if(e.delayError&&I?(l=y(()=>C(x,I)),l(e.delayError)):(clearTimeout(u),l=null,I?ue(r.errors,x,I):Ee(r.errors,x)),(I?!Ft(P,I):P)||!Be(O)||M){const H={...O,...M&&Ze(R)?{isValid:R}:{},errors:r.errors,name:x};r={...r,...H},p.state.next(H)}$(!1)},D=async x=>n.resolver(s,n.context,Xb(x||c.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),j=async x=>{const{errors:R}=await D(x);if(x)for(const I of x){const O=B(R,I);O?ue(r.errors,I,O):Ee(r.errors,I)}else r.errors=R;return R},A=async(x,R,I={valid:!0})=>{for(const O in x){const P=x[O];if(P){const{_f:M,...H}=P;if(M){const Z=c.array.has(M.name),pe=await qo(P,s,w,n.shouldUseNativeValidation&&!R,Z);if(pe[M.name]&&(I.valid=!1,R))break;!R&&(B(pe,M.name)?Z?Cl(r.errors,pe,M.name):ue(r.errors,M.name,pe[M.name]):Ee(r.errors,M.name))}H&&await A(H,R,I)}}return I.valid},F=()=>{for(const x of c.unMount){const R=B(o,x);R&&(R._f.refs?R._f.refs.every(I=>!mo(I)):!mo(R._f.ref))&&_e(x)}c.unMount=new Set},L=(x,R)=>(x&&R&&ue(s,x,R),!Ft(re(),i)),N=(x,R,I)=>El(x,c,{...a.mount?s:ge(R)?i:ct(x)?{[x]:R}:R},I,R),V=x=>xn(B(a.mount?s:i,x,e.shouldUnregister?B(i,x,[]):[])),K=(x,R,I={})=>{const O=B(o,x);let P=R;if(O){const M=O._f;M&&(!M.disabled&&ue(s,x,Ol(R,M)),P=Tr(M.ref)&&De(R)?"":R,Tl(M.ref)?[...M.ref.options].forEach(H=>H.selected=P.includes(H.value)):M.refs?qn(M.ref)?M.refs.length>1?M.refs.forEach(H=>(!H.defaultChecked||!H.disabled)&&(H.checked=Array.isArray(P)?!!P.find(Z=>Z===H.value):P===H.value)):M.refs[0]&&(M.refs[0].checked=!!P):M.refs.forEach(H=>H.checked=H.value===P):Pi(M.ref)?M.ref.value="":(M.ref.value=P,M.ref.type||p.values.next({name:x,values:{...s}})))}(I.shouldDirty||I.shouldTouch)&&k(x,P,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&J(x)},Y=(x,R,I)=>{for(const O in R){const P=R[O],M=`${x}.${O}`,H=B(o,M);(c.array.has(x)||!Rr(P)||H&&!H._f)&&!on(P)?Y(M,P,I):K(M,P,I)}},ee=(x,R,I={})=>{const O=B(o,x),P=c.array.has(x),M=Se(R);ue(s,x,M),P?(p.array.next({name:x,values:{...s}}),(f.isDirty||f.dirtyFields)&&I.shouldDirty&&p.state.next({name:x,dirtyFields:bo(i,s),isDirty:L(x,M)})):O&&!O._f&&!De(M)?Y(x,M,I):K(x,M,I),Yo(x,c)&&p.state.next({...r}),p.values.next({name:x,values:{...s}}),!a.mount&&t()},ce=async x=>{const R=x.target;let I=R.name,O=!0;const P=B(o,I),M=()=>R.type?vo(P._f):ml(x),H=Z=>{O=Number.isNaN(Z)||Z===B(s,I,Z)};if(P){let Z,pe;const G=M(),Ve=x.type===Sr.BLUR||x.type===Sr.FOCUS_OUT,jt=!Zb(P._f)&&!n.resolver&&!B(r.errors,I)&&!P._f.deps||Qb(Ve,B(r.touchedFields,I),r.isSubmitted,b,m),st=Yo(I,c,Ve);ue(s,I,G),Ve?(P._f.onBlur&&P._f.onBlur(x),l&&l(0)):P._f.onChange&&P._f.onChange(x);const pt=k(I,G,Ve,!1),wn=!Be(pt)||st;if(!Ve&&p.values.next({name:I,type:x.type,values:{...s}}),jt)return f.isValid&&v(),wn&&p.state.next({name:I,...st?{}:pt});if(!Ve&&st&&p.state.next({...r}),$(!0),n.resolver){const{errors:Xt}=await D([I]);if(H(G),O){const En=ha(r.errors,o,I),Zt=ha(Xt,o,En.name||I);Z=Zt.error,I=Zt.name,pe=Be(Xt)}}else Z=(await qo(P,s,w,n.shouldUseNativeValidation))[I],H(G),O&&(Z?pe=!1:f.isValid&&(pe=await A(o,!0)));O&&(P._f.deps&&J(P._f.deps),z(I,pe,Z,pt))}},W=(x,R)=>{if(B(r.errors,R)&&x.focus)return x.focus(),1},J=async(x,R={})=>{let I,O;const P=Ue(x);if($(!0),n.resolver){const M=await j(ge(x)?x:P);I=Be(M),O=x?!P.some(H=>B(M,H)):I}else x?(O=(await Promise.all(P.map(async M=>{const H=B(o,M);return await A(H&&H._f?{[M]:H}:H)}))).every(Boolean),!(!O&&!r.isValid)&&v()):O=I=await A(o);return p.state.next({...!ct(x)||f.isValid&&I!==r.isValid?{}:{name:x},...n.resolver||!x?{isValid:I}:{},errors:r.errors,isValidating:!1}),R.shouldFocus&&!O&&cn(o,W,x?P:c.mount),O},re=x=>{const R={...i,...a.mount?s:{}};return ge(x)?R:ct(x)?B(R,x):x.map(I=>B(R,I))},te=(x,R)=>({invalid:!!B((R||r).errors,x),isDirty:!!B((R||r).dirtyFields,x),isTouched:!!B((R||r).touchedFields,x),error:B((R||r).errors,x)}),ie=x=>{x&&Ue(x).forEach(R=>Ee(r.errors,R)),p.state.next({errors:x?r.errors:{}})},fe=(x,R,I)=>{const O=(B(o,x,{_f:{}})._f||{}).ref;ue(r.errors,x,{...R,ref:O}),p.state.next({name:x,errors:r.errors,isValid:!1}),I&&I.shouldFocus&&O&&O.focus&&O.focus()},Ce=(x,R)=>Rt(x)?p.values.subscribe({next:I=>x(N(void 0,R),I)}):N(x,R,!0),_e=(x,R={})=>{for(const I of x?Ue(x):c.mount)c.mount.delete(I),c.array.delete(I),R.keepValue||(Ee(o,I),Ee(s,I)),!R.keepError&&Ee(r.errors,I),!R.keepDirty&&Ee(r.dirtyFields,I),!R.keepTouched&&Ee(r.touchedFields,I),!n.shouldUnregister&&!R.keepDefaultValue&&Ee(i,I);p.values.next({values:{...s}}),p.state.next({...r,...R.keepDirty?{isDirty:L()}:{}}),!R.keepIsValid&&v()},xe=({disabled:x,name:R,field:I,fields:O,value:P})=>{if(Ze(x)){const M=x?void 0:ge(P)?vo(I?I._f:B(O,R)._f):P;ue(s,R,M),k(R,M,!1,!1,!0)}},it=(x,R={})=>{let I=B(o,x);const O=Ze(R.disabled);return ue(o,x,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:x}},name:x,mount:!0,...R}}),c.mount.add(x),I?xe({field:I,disabled:R.disabled,name:x,value:R.value}):S(x,!0,R.value),{...O?{disabled:R.disabled}:{},...n.progressive?{required:!!R.required,min:Sn(R.min),max:Sn(R.max),minLength:Sn(R.minLength),maxLength:Sn(R.maxLength),pattern:Sn(R.pattern)}:{},name:x,onChange:ce,onBlur:ce,ref:P=>{if(P){it(x,R),I=B(o,x);const M=ge(P.value)&&P.querySelectorAll&&P.querySelectorAll("input,select,textarea")[0]||P,H=qb(M),Z=I._f.refs||[];if(H?Z.find(pe=>pe===M):M===I._f.ref)return;ue(o,x,{_f:{...I._f,...H?{refs:[...Z.filter(mo),M,...Array.isArray(B(i,x))?[{}]:[]],ref:{type:M.type,name:x}}:{ref:M}}}),S(x,!1,void 0,M)}else I=B(o,x,{}),I._f&&(I._f.mount=!1),(n.shouldUnregister||R.shouldUnregister)&&!(bl(c.array,x)&&a.action)&&c.unMount.add(x)}}},dt=()=>n.shouldFocusError&&cn(o,W,c.mount),St=x=>{Ze(x)&&(p.state.next({disabled:x}),cn(o,(R,I)=>{let O=x;const P=B(o,I);P&&Ze(P._f.disabled)&&(O||(O=P._f.disabled)),R.disabled=O},0,!1))},Ne=(x,R)=>async I=>{I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let O=Se(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:P,values:M}=await D();r.errors=P,O=M}else await A(o);Ee(r.errors,"root"),Be(r.errors)?(p.state.next({errors:{}}),await x(O,I)):(R&&await R({...r.errors},I),dt(),setTimeout(dt)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Be(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ft=(x,R={})=>{B(o,x)&&(ge(R.defaultValue)?ee(x,B(i,x)):(ee(x,R.defaultValue),ue(i,x,R.defaultValue)),R.keepTouched||Ee(r.touchedFields,x),R.keepDirty||(Ee(r.dirtyFields,x),r.isDirty=R.defaultValue?L(x,B(i,x)):L()),R.keepError||(Ee(r.errors,x),f.isValid&&v()),p.state.next({...r}))},Oe=(x,R={})=>{const I=x?Se(x):i,O=Se(I),P=x&&!Be(x)?O:i;if(R.keepDefaultValues||(i=I),!R.keepValues){if(R.keepDirtyValues||g)for(const M of c.mount)B(r.dirtyFields,M)?ue(P,M,B(s,M)):ee(M,B(P,M));else{if(Ri&&ge(x))for(const M of c.mount){const H=B(o,M);if(H&&H._f){const Z=Array.isArray(H._f.refs)?H._f.refs[0]:H._f.ref;if(Tr(Z)){const pe=Z.closest("form");if(pe){pe.reset();break}}}}o={}}s=e.shouldUnregister?R.keepDefaultValues?Se(i):{}:Se(P),p.array.next({values:{...P}}),p.values.next({values:{...P}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&t(),a.mount=!f.isValid||!!R.keepIsValid,a.watch=!!e.shouldUnregister,p.state.next({submitCount:R.keepSubmitCount?r.submitCount:0,isDirty:R.keepDirty?r.isDirty:!!(R.keepDefaultValues&&!Ft(x,i)),isSubmitted:R.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:R.keepDirtyValues?r.dirtyFields:R.keepDefaultValues&&x?bo(i,x):{},touchedFields:R.keepTouched?r.touchedFields:{},errors:R.keepErrors?r.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ye=(x,R)=>Oe(Rt(x)?x(s):x,R);return{control:{register:it,unregister:_e,getFieldState:te,handleSubmit:Ne,setError:fe,_executeSchema:D,_getWatch:N,_getDirty:L,_updateValid:v,_removeUnmounted:F,_updateFieldArray:T,_updateDisabledField:xe,_getFieldArray:V,_reset:Oe,_resetDefaultValues:()=>Rt(n.defaultValues)&&n.defaultValues().then(x=>{Ye(x,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:x=>{r={...r,...x}},_disableForm:St,_subjects:p,_proxyFormState:f,_setErrors:E,get _fields(){return o},get _formValues(){return s},get _state(){return a},set _state(x){a=x},get _defaultValues(){return i},get _names(){return c},set _names(x){c=x},get _formState(){return r},set _formState(x){r=x},get _options(){return n},set _options(x){n={...n,...x}}},trigger:J,register:it,handleSubmit:Ne,watch:Ce,setValue:ee,getValues:re,reset:Ye,resetField:ft,clearErrors:ie,unregister:_e,setError:fe,setFocus:(x,R={})=>{const I=B(o,x),O=I&&I._f;if(O){const P=O.refs?O.refs[0]:O.ref;P.focus&&(P.focus(),R.shouldSelect&&P.select())}},getFieldState:te}}function nv(e={}){const t=h.useRef(),n=h.useRef(),[r,o]=h.useState({isDirty:!1,isValidating:!1,isLoading:Rt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:Rt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...tv(e,()=>o(s=>({...s}))),formState:r});const i=t.current.control;return i._options=e,Kr({subject:i._subjects.state,next:s=>{xl(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),h.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),h.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),h.useEffect(()=>{e.values&&!Ft(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[e.values,i]),h.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),h.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=yl(r,i),t.current}const rv=Gl` - html { - box-sizing: border-box; - } - *, *:before, *:after { - box-sizing: inherit; - } - html, body, div, span, applet, object, iframe, - h1, h2, h3, h4, h5, h6, p, blockquote, pre, - a, abbr, acronym, address, big, cite, code, - del, dfn, em, img, ins, kbd, q, s, samp, - small, strike, strong, sub, sup, tt, var, - b, u, i, center, - dl, dt, dd, ol, ul, li, - fieldset, form, label, legend, - table, caption, tbody, tfoot, thead, tr, th, td, - article, aside, canvas, details, embed, - figure, figcaption, footer, header, hgroup, - menu, nav, output, ruby, section, summary, - time, mark, audio, video { - -moz-osx-font-smoothing: grayscale; - -webkit-font-smoothing: antialiased; - -webkit-tap-highlight-color: transparent; - border: 0; - font-size: 100%; - margin: 0; - padding: 0; - text-rendering: optimizeLegibility; - vertical-align: baseline; - } - a { - cursor: pointer; - text-decoration: none; - } - body { - - &.no-scroll { - overflow: hidden; - } - } - blockquote, q { - quotes: none; - } - blockquote:before, blockquote:after, - q:before, q:after { - content: ''; - content: none; - } - table { - border-collapse: collapse; - border-spacing: 0; - } -`;function ov(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{const r=e(n);return ov(t.current,r)?t.current:t.current=r}}const av=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"bubble_chart",children:[_.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_42)",children:_.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),cv=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"communities",children:[_.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_39)",children:_.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),lv=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"grain",children:[_.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_45)",children:_.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),uv=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"public",children:[_.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_36)",children:_.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})}),dv={split:_.jsx(lv,{}),force:_.jsx(cv,{}),sphere:_.jsx(av,{}),earth:_.jsx(uv,{})},fv=()=>{const[e,t]=ni(sv(r=>[r.graphStyle,r.setGraphStyle])),n=r=>{t(r)};return _.jsx(pv,{direction:"column",children:Yl.map(r=>_.jsx(oe,{className:ql("icon",{active:e===r}),onClick:()=>n(r),children:dv[r]},r))})},pv=de(oe).attrs({direction:"row",align:"center",justify:"space-between"})` - padding: 6px 6px 6px 11px; - background: ${ne.BG1}; - border-radius: 200px; - .icon { - color: ${ne.GRAY6}; - font-size: 20px; - cursor: pointer; - - &:hover { - color: ${ne.GRAY3}; - } - - &:active { - color: ${ne.white}; - } - - &.active { - color: ${ne.white}; - } - } - - .icon + .icon { - margin-left: 20px; - } -`,hv=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"center",children:[_.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),_.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),_.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),_.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),_.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),gv=()=>{const[e,t]=ni(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return _.jsx(mv,{href:"",onClick:()=>t(!e),size:"medium",startIcon:_.jsx(hv,{})})},mv=de(fi)` - && { - padding: 0; - width: 32px; - min-width: auto; - justify-content: center; - align-items: center; - pointer-events: all; - - .MuiButton-startIcon { - margin-left: 0; - filter: brightness(0.65); - } - } -`,Pl=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Property 1=press",children:_.jsx("path",{id:"close",d:"M16 17.2833L11.5083 21.775C11.3403 21.943 11.1264 22.0271 10.8667 22.0271C10.6069 22.0271 10.393 21.943 10.225 21.775C10.0569 21.6069 9.9729 21.393 9.9729 21.1333C9.9729 20.8736 10.0569 20.6597 10.225 20.4917L14.7167 16L10.225 11.5083C10.0569 11.3403 9.9729 11.1264 9.9729 10.8667C9.9729 10.6069 10.0569 10.393 10.225 10.225C10.393 10.0569 10.6069 9.9729 10.8667 9.9729C11.1264 9.9729 11.3403 10.0569 11.5083 10.225L16 14.7167L20.4917 10.225C20.6597 10.0569 20.8736 9.9729 21.1333 9.9729C21.393 9.9729 21.6069 10.0569 21.775 10.225C21.943 10.393 22.0271 10.6069 22.0271 10.8667C22.0271 11.1264 21.943 11.3403 21.775 11.5083L17.2833 16L21.775 20.4917C21.943 20.6597 22.0271 20.8736 22.0271 21.1333C22.0271 21.393 21.943 21.6069 21.775 21.775C21.6069 21.943 21.393 22.0271 21.1333 22.0271C20.8736 22.0271 20.6597 21.943 20.4917 21.775L16 17.2833Z",fill:"currentColor"})})}),bv=()=>{const{resetData:e}=Dr(t=>t);return _.jsx(Xl,{content:"Clear Graph",fontSize:"13px",position:"left",children:_.jsx(vv,{href:"",onClick:()=>e(),size:"medium",startIcon:_.jsx(Pl,{})})})},vv=de(fi)` - && { - padding: 0; - width: 32px; - min-width: auto; - justify-content: center; - align-items: center; - pointer-events: all; - - .MuiButton-startIcon { - margin-left: 0; - color: #fff; - filter: brightness(0.65); - } - } -`,yv=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Property 1=Pause Normal",children:_.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),xv=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Play & Pause",children:_.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),wv={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},Al=de.div` - background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${wv[t]||"generic"}_placeholder_img.png')`}; - background-size: cover; - background-position: center; - background-repeat: no-repeat; - width: ${({size:e=45})=>e}px; - height: ${({size:e=45})=>e}px; - border-radius: ${({rounded:e})=>e?"50%":"2px"}; -`,Tn={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5},Ev=ri()(ya((e,t)=>({...Tn,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:r}=t();r&&e({playingNode:{...r,link:n}})},setPlayingNode:n=>{n||e({...Tn});const r=t().playingNode;(r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)&&e({...Tn,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:Tn.duration,hasError:Tn.hasError})}))),$v=()=>{var $,T,C,E;const e=d.useRef(null),[t,n]=d.useState(0),r=xa(),o=wa(),[i,s]=Mr(S=>[S.sidebarIsOpen,S.setSidebarOpen]),[a,c,l,u,f,p]=Ev(S=>[S.isPlaying,S.setIsPlaying,S.playingTime,S.playingNode,S.miniPlayerIsVisible,S.setMiniPlayerIsVisible]),[g,m]=($=u==null?void 0:u.properties)!=null&&$.timestamp?u.properties.timestamp.split("-").map(S=>au(S)):[0,0],b=(l-g)/(m-g)*100;d.useEffect(()=>{var z,D;const S=((z=e.current)==null?void 0:z.offsetWidth)||0,k=((D=e.current)==null?void 0:D.scrollWidth)||0;n(k-S)},[]);const w=S=>{p(!1),S.stopPropagation()},y=()=>{o(u),s(!0)},v=i&&(r==null?void 0:r.ref_id)!==(u==null?void 0:u.ref_id)||u&&!i;return f&&u&&v?_.jsxs(Cv,{onClick:y,children:[_.jsxs(_v,{children:[_.jsx(Al,{src:((T=u==null?void 0:u.properties)==null?void 0:T.image_url)||"",type:u.node_type}),_.jsxs(Sv,{children:[_.jsxs(Pv,{ref:e,children:[_.jsx(Ov,{className:"title",scrollValue:t,children:(C=u==null?void 0:u.properties)==null?void 0:C.episode_title}),_.jsx("div",{className:"subtitle",children:(E=u==null?void 0:u.properties)==null?void 0:E.show_title})]}),_.jsx(kv,{"data-testid":"play-pause-button",onClick:S=>{c(!a),S.stopPropagation()},size:"small",children:a?_.jsx(yv,{"data-testid":"pause-icon"}):_.jsx(xv,{"data-testid":"play-icon"})})]}),_.jsx(Tv,{onClick:S=>w(S),children:_.jsx(Pl,{})})]}),_.jsx(Rv,{value:b,variant:"determinate"})]}):null},Cv=de(oe).attrs({direction:"column",align:"stretch",justify:"space-between"})` - padding: 8px; - background: ${ne.BG1}; - border-radius: 6px; - width: 320px; - height: 72px; - margin-top: 16px; - cursor: pointer; - z-index: 0; -`,_v=de(oe).attrs({direction:"row",align:"center",justify:"flex-start"})``,Sv=de(oe).attrs({direction:"row",align:"center",justify:"space-between"})` - flex: 1; - color: ${ne.white}; - margin-left: 11px; - - .title { - font-size: 13px; - margin-bottom: 2px; - font-weight: 500; - } - - .subtitle { - font-size: 11px; - color: ${ne.GRAY6}; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } -`,Tv=de(_a)` - padding: 8px; - color: ${ne.GRAY6}; - z-index: 100000; -`,kv=de(_a)` - && { - font-size: 36px; - padding: 2px; - margin-left: 8px; - overflow: hidden; - z-index: 100000; - } -`,Rv=de(Zl)` - && { - flex-shrink: 0; - height: 2px; - background-color: ${ne.white}; - color: blue; - - .MuiLinearProgress-bar { - background: rgb(65, 90, 127); - } - } -`,Ov=de.div` - white-space: nowrap; - overflow: hidden; - width: max-content; - animation: scrollText 12s linear infinite; - - @keyframes scrollText { - 0%, - 15% { - transform: translateX(0); - } - - 60%, - 75% { - transform: translateX(${e=>-e.scrollValue}px); - } - - 100% { - transform: translateX(0); - } - } - color: #fff; -`,Pv=de(oe)` - overflow: hidden; - flex: 1; -`,Il=()=>{const e=xa(),t=Dr(o=>o.isFetching),n=Mr(o=>o.universeQuestionIsOpen),{isAdmin:r}=Ea(o=>o);return _.jsxs(Av,{align:"flex-end",id:"actions-toolbar",children:[_.jsxs(Iv,{children:[!t&&!n&&r&&_.jsx(bv,{}),!t&&!n&&_.jsx(gv,{})]}),_.jsx(oe,{align:"center",direction:"row",mt:16,children:!t&&!n&&_.jsx(fv,{})}),_.jsx($v,{},e==null?void 0:e.ref_id)]})},Av=de(oe)` - position: absolute; - right: 20px; - bottom: 20px; - pointer-events: all; -`,Iv=de.div` - display: flex; - flex-direction: column; - gap: 4px; -`,Dv={schemas:[],links:[]},Mv=ri()(ya((e,t)=>({...Dv,setSchemas:n=>{e({schemas:n.map(r=>({...r}))})},setSchemaLinks:n=>{e({links:n})},getPrimaryColorByType:n=>{const r=t().schemas.find(o=>o.type===n);return r?r.primary_color:void 0},getNodeKeysByType:n=>{const r=t().schemas.find(o=>o.type===n);return r?r.node_key:void 0}}))),jv=({type:e})=>{let t;const[n]=Mv(i=>[i.getPrimaryColorByType]),r=e.toLowerCase(),o=n(e);switch(r){case"video":case"twitter_space":case"podcast":case"clip":t={iconStart:"video_badge.svg",color:o??ne.CLIP};break;case"show":t={iconStart:"show_badge.svg",color:o??ne.SHOW};break;case"tweet":t={iconStart:"twitter_badge.svg",color:o??ne.TWEET};break;case"episode":t={iconStart:"audio_badge.svg",color:o??ne.EPISODE};break;case"document":t={iconStart:"notes_badge.svg",color:o??ne.TEXT};break;case"organization":t={iconStart:"organization_badge.svg",color:o??ne.ORGANIZATION};break;case"person":case"guest":case"host":t={iconStart:"person_badge.svg",color:o??ne.PERSON};break;case"event":t={iconStart:"event_badge.svg",color:o??ne.EVENT};break;case"topic":t={iconStart:"topic_badge.svg",color:o??ne.TOPIC};break;default:t={iconStart:"thing_badge.svg",color:o??ne.THING};break}return _.jsx(Lv,{...t,label:e})},Lv=({iconStart:e,color:t,label:n})=>_.jsxs(zv,{color:t,label:n,children:[_.jsx("img",{alt:n,className:"badge__img",src:e}),_.jsx("div",{className:"badge__label",children:n})]}),zv=de(oe).attrs({direction:"row"})` - cursor: pointer; - background: ${({color:e})=>e}; - border-radius: 3px; - overflow: hidden; - justify-content: center; - align-items: center; - padding: 0 4px; - gap: 2px; - - .badge__img { - width: 10px; - height: 10px; - object-fit: contain; - } - - .badge__label { - color: ${({label:e})=>e.toLowerCase()==="topic"?ne.black:ne.white}; - font-family: Barlow; - font-size: 8px; - font-style: normal; - font-weight: 800; - line-height: 14px; - text-transform: uppercase; - line-height: 14px; - letter-spacing: 0.48px; - padding: 0 4px; - } -`,Fv=({twitterHandle:e})=>_.jsx(_.Fragment,{children:_.jsx(oe,{direction:"row",children:_.jsx(oe,{align:"flex-start",pb:12,children:_.jsxs(Ae,{children:["Tweet by @",e]})})})}),Nv=de(oe)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:ne.BG3,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:ne.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),Vv=de(oe)` - width: 22.5%; -`,Bv=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:r,description:o,label:i,text:s,type:a,name:c,twitter_handle:l,image_url:u,guests:f}=e,p=f&&f.length>0,g=p&&typeof f[0]=="object";let m=u;return t==="guest"&&!u&&(m="person_placeholder2.png"),a==="twitter_space"&&(m="twitter_placeholder.png"),t==="topic"?null:_.jsx(Nv,{borderRadius:8,px:24,py:16,children:t==="tweet"?_.jsx(Fv,{twitterHandle:l}):_.jsxs(_.Fragment,{children:[_.jsxs(oe,{direction:"row",children:[m&&_.jsx(Vv,{}),_.jsx(oe,{align:"flex-start",pb:12,children:_.jsx(jv,{type:t})})]}),_.jsxs(oe,{direction:"row",children:[m&&_.jsx(oe,{pr:12,children:_.jsx(Al,{src:m,type:"person"})}),_.jsxs("div",{children:[(c||i)&&_.jsx(oe,{direction:"column",children:c?_.jsx(Ae,{children:c}):_.jsxs(_.Fragment,{children:[_.jsx(Ae,{children:i}),s&&_.jsx(oe,{pt:4,children:_.jsxs(Ae,{color:"primaryText1",kind:"tiny",children:["@",s]})})]})}),n&&_.jsx(Ae,{color:"primaryText1",kind:"tiny",children:n}),r&&_.jsx(oe,{pt:4,children:_.jsx(Ae,{color:"primaryText1",kind:"tiny",children:r})}),o&&_.jsx(oe,{pt:12,children:_.jsx(Ae,{as:"div",kind:"regularBold",children:su(o)})}),l&&_.jsx(oe,{pt:4,children:_.jsxs(Ae,{color:"primaryText1",kind:"tiny",children:["@",l]})}),f&&f.length>0&&_.jsxs(oe,{pt:12,children:[_.jsx(Ae,{color:"primaryText1",children:"People"}),_.jsx(oe,{pt:4,children:_.jsx(Ae,{color:"primaryText1",kind:"tiny",children:p&&_.jsxs(oe,{pt:12,children:[_.jsx(Ae,{children:"Guests:"}),_.jsx(Ae,{children:g?f.map(b=>`@${b==null?void 0:b.twitter_handle}`).join(", "):f.join(", ")})]})})})]})]})]})]})})},Wv=()=>{const[e,t]=ni(c=>[c.hoveredNode,c.isHovering]),[n,r]=d.useState(!1),[o,i]=d.useState(!1);d.useEffect(()=>{let c=null;return t||o?r(!0):c=setTimeout(()=>r(!1),300),()=>{c&&clearTimeout(c)}},[t,o]);const s=d.useCallback(()=>{i(!0)},[]),a=d.useCallback(()=>{i(!1)},[]);return _.jsxs(Hv,{children:[e&&n&&_.jsx(Uv,{onMouseEnter:s,onMouseLeave:a,children:_.jsx(Bv,{node:e})}),_.jsx(Il,{})]})},Hv=de("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),Uv=de.div` - position: absolute; - top: 65px; - right: 55px; - z-index: 100; -`,Kv=()=>{const e=d.useContext(Ql);return e==null?void 0:e.socket},Gv={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},Yv=ri(e=>({...Gv,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,r,o,i;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((r=t==null?void 0:t.instagraph)!=null&&r.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(i=t==null?void 0:t.instagraph)==null?void 0:i.nodes}})}})),qv="0.1.106";var Dl={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ga=h.createContext&&h.createContext(Dl),Pt=globalThis&&globalThis.__assign||function(){return Pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;ntypeof e=="number"&&!isNaN(e),Bt=e=>typeof e=="string",Ke=e=>typeof e=="function",ur=e=>Bt(e)||Ke(e)?e:null,Xo=e=>d.isValidElement(e)||Bt(e)||Ke(e)||zn(e);function Jv(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Gr(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(s){let{children:a,position:c,preventExitTransition:l,done:u,nodeRef:f,isIn:p,playToast:g}=s;const m=r?`${t}--${c}`:t,b=r?`${n}--${c}`:n,w=d.useRef(0);return d.useLayoutEffect(()=>{const y=f.current,v=m.split(" "),$=T=>{T.target===f.current&&(g(),y.removeEventListener("animationend",$),y.removeEventListener("animationcancel",$),w.current===0&&T.type!=="animationcancel"&&y.classList.remove(...v))};y.classList.add(...v),y.addEventListener("animationend",$),y.addEventListener("animationcancel",$)},[]),d.useEffect(()=>{const y=f.current,v=()=>{y.removeEventListener("animationend",v),o?Jv(y,u,i):u()};p||(l?v():(w.current=1,y.className+=` ${b}`,y.addEventListener("animationend",v)))},[p]),h.createElement(h.Fragment,null,a)}}function ma(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Me=new Map;let Fn=[];const Zo=new Set,ey=e=>Zo.forEach(t=>t(e)),Ll=()=>Me.size>0;function zl(e,t){var n;if(t)return!((n=Me.get(t))==null||!n.isToastActive(e));let r=!1;return Me.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function Fl(e,t){Xo(e)&&(Ll()||Fn.push({content:e,options:t}),Me.forEach(n=>{n.buildToast(e,t)}))}function ba(e,t){Me.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function ty(e){const{subscribe:t,getSnapshot:n,setProps:r}=d.useRef(function(i){const s=i.containerId||1;return{subscribe(a){const c=function(u,f,p){let g=1,m=0,b=[],w=[],y=[],v=f;const $=new Map,T=new Set,C=()=>{y=Array.from($.values()),T.forEach(k=>k())},E=k=>{w=k==null?[]:w.filter(z=>z!==k),C()},S=k=>{const{toastId:z,onOpen:D,updateId:j,children:A}=k.props,F=j==null;k.staleId&&$.delete(k.staleId),$.set(z,k),w=[...w,k.props.toastId].filter(L=>L!==k.staleId),C(),p(ma(k,F?"added":"updated")),F&&Ke(D)&&D(d.isValidElement(A)&&A.props)};return{id:u,props:v,observe:k=>(T.add(k),()=>T.delete(k)),toggle:(k,z)=>{$.forEach(D=>{z!=null&&z!==D.props.toastId||Ke(D.toggle)&&D.toggle(k)})},removeToast:E,toasts:$,clearQueue:()=>{m-=b.length,b=[]},buildToast:(k,z)=>{if((J=>{let{containerId:re,toastId:te,updateId:ie}=J;const fe=re?re!==u:u!==1,Ce=$.has(te)&&ie==null;return fe||Ce})(z))return;const{toastId:D,updateId:j,data:A,staleId:F,delay:L}=z,N=()=>{E(D)},V=j==null;V&&m++;const K={...v,style:v.toastStyle,key:g++,...Object.fromEntries(Object.entries(z).filter(J=>{let[re,te]=J;return te!=null})),toastId:D,updateId:j,data:A,closeToast:N,isIn:!1,className:ur(z.className||v.toastClassName),bodyClassName:ur(z.bodyClassName||v.bodyClassName),progressClassName:ur(z.progressClassName||v.progressClassName),autoClose:!z.isLoading&&(Y=z.autoClose,ee=v.autoClose,Y===!1||zn(Y)&&Y>0?Y:ee),deleteToast(){const J=$.get(D),{onClose:re,children:te}=J.props;Ke(re)&&re(d.isValidElement(te)&&te.props),p(ma(J,"removed")),$.delete(D),m--,m<0&&(m=0),b.length>0?S(b.shift()):C()}};var Y,ee;K.closeButton=v.closeButton,z.closeButton===!1||Xo(z.closeButton)?K.closeButton=z.closeButton:z.closeButton===!0&&(K.closeButton=!Xo(v.closeButton)||v.closeButton);let ce=k;d.isValidElement(k)&&!Bt(k.type)?ce=d.cloneElement(k,{closeToast:N,toastProps:K,data:A}):Ke(k)&&(ce=k({closeToast:N,toastProps:K,data:A}));const W={content:ce,props:K,staleId:F};v.limit&&v.limit>0&&m>v.limit&&V?b.push(W):zn(L)?setTimeout(()=>{S(W)},L):S(W)},setProps(k){v=k},setToggle:(k,z)=>{$.get(k).toggle=z},isToastActive:k=>w.some(z=>z===k),getSnapshot:()=>v.newestOnTop?y.reverse():y}}(s,i,ey);Me.set(s,c);const l=c.observe(a);return Fn.forEach(u=>Fl(u.content,u.options)),Fn=[],()=>{l(),Me.delete(s)}},setProps(a){var c;(c=Me.get(s))==null||c.setProps(a)},getSnapshot(){var a;return(a=Me.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=d.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const s=new Map;return o.forEach(a=>{const{position:c}=a.props;s.has(c)||s.set(c,[]),s.get(c).push(a)}),Array.from(s,a=>i(a[0],a[1]))},isToastActive:zl,count:o==null?void 0:o.length}}function ny(e){const[t,n]=d.useState(!1),[r,o]=d.useState(!1),i=d.useRef(null),s=d.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:f}=e;var p,g;function m(){n(!0)}function b(){n(!1)}function w($){const T=i.current;s.canDrag&&T&&(s.didMove=!0,t&&b(),s.delta=e.draggableDirection==="x"?$.clientX-s.start:$.clientY-s.start,s.start!==$.clientX&&(s.canCloseOnClick=!1),T.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,T.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function y(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",y);const $=i.current;if(s.canDrag&&s.didMove&&$){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();$.style.transition="transform 0.2s, opacity 0.2s",$.style.removeProperty("transform"),$.style.removeProperty("opacity")}}(g=Me.get((p={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||g.setToggle(p.id,p.fn),d.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",m),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",b)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function($){if(e.draggable===!0||e.draggable===$.pointerType){s.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",y);const T=i.current;s.canCloseOnClick=!0,s.canDrag=!0,T.style.transition="none",e.draggableDirection==="x"?(s.start=$.clientX,s.removalDistance=T.offsetWidth*(e.draggablePercent/100)):(s.start=$.clientY,s.removalDistance=T.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function($){const{top:T,bottom:C,left:E,right:S}=i.current.getBoundingClientRect();$.nativeEvent.type!=="touchend"&&e.pauseOnHover&&$.clientX>=E&&$.clientX<=S&&$.clientY>=T&&$.clientY<=C?b():m()}};return a&&c&&(v.onMouseEnter=b,e.stacked||(v.onMouseLeave=m)),f&&(v.onClick=$=>{u&&u($),s.canCloseOnClick&&l()}),{playToast:m,pauseToast:b,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:v}}function ry(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:s,style:a,controlledProgress:c,progress:l,rtl:u,isIn:f,theme:p}=e;const g=i||c&&l===0,m={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(m.transform=`scaleX(${l})`);const b=Ot("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),w=Ke(s)?s({rtl:u,type:o,defaultClassName:b}):Ot(b,s),y={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{f&&r()}};return h.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},h.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${o}`}),h.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:w,style:m,...y}))}let oy=1;const Nl=()=>""+oy++;function iy(e){return e&&(Bt(e.toastId)||zn(e.toastId))?e.toastId:Nl()}function An(e,t){return Fl(e,t),t.toastId}function Pr(e,t){return{...t,type:t&&t.type||e,toastId:iy(t)}}function ir(e){return(t,n)=>An(t,Pr(e,n))}function le(e,t){return An(e,Pr("default",t))}le.loading=(e,t)=>An(e,Pr("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),le.promise=function(e,t,n){let r,{pending:o,error:i,success:s}=t;o&&(r=Bt(o)?le.loading(o,n):le.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,f,p)=>{if(f==null)return void le.dismiss(r);const g={type:u,...a,...n,data:p},m=Bt(f)?{render:f}:f;return r?le.update(r,{...g,...m}):le(m.render,{...g,...m}),p},l=Ke(e)?e():e;return l.then(u=>c("success",s,u)).catch(u=>c("error",i,u)),l},le.success=ir("success"),le.info=ir("info"),le.error=ir("error"),le.warning=ir("warning"),le.warn=le.warning,le.dark=(e,t)=>An(e,Pr("default",{theme:"dark",...t})),le.dismiss=function(e){(function(t){var n;if(Ll()){if(t==null||Bt(n=t)||zn(n))Me.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=Me.get(t.containerId))!=null&&r.removeToast(t.id)||Me.forEach(o=>{o.removeToast(t.id)})}}else Fn=Fn.filter(o=>t!=null&&o.options.toastId!==t)})(e)},le.clearWaitingQueue=function(e){e===void 0&&(e={}),Me.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},le.isActive=zl,le.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var i;let{containerId:s}=o;return(i=Me.get(s||1))==null?void 0:i.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:Nl()};i.toastId!==e&&(i.staleId=e);const s=i.render||o;delete i.render,An(s,i)}},le.done=e=>{le.update(e,{progress:1})},le.onChange=function(e){return Zo.add(e),()=>{Zo.delete(e)}},le.play=e=>ba(!0,e),le.pause=e=>ba(!1,e);const sy=typeof window<"u"?d.useLayoutEffect:d.useEffect,sr=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return h.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},yo={info:function(e){return h.createElement(sr,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return h.createElement(sr,{...e},h.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return h.createElement(sr,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return h.createElement(sr,{...e},h.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return h.createElement("div",{className:"Toastify__spinner"})}},ay=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=ny(e),{closeButton:s,children:a,autoClose:c,onClick:l,type:u,hideProgressBar:f,closeToast:p,transition:g,position:m,className:b,style:w,bodyClassName:y,bodyStyle:v,progressClassName:$,progressStyle:T,updateId:C,role:E,progress:S,rtl:k,toastId:z,deleteToast:D,isIn:j,isLoading:A,closeOnClick:F,theme:L}=e,N=Ot("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":F}),V=Ke(b)?b({rtl:k,position:m,type:u,defaultClassName:N}):Ot(N,b),K=function(W){let{theme:J,type:re,isLoading:te,icon:ie}=W,fe=null;const Ce={theme:J,type:re};return ie===!1||(Ke(ie)?fe=ie({...Ce,isLoading:te}):d.isValidElement(ie)?fe=d.cloneElement(ie,Ce):te?fe=yo.spinner():(_e=>_e in yo)(re)&&(fe=yo[re](Ce))),fe}(e),Y=!!S||!c,ee={closeToast:p,type:u,theme:L};let ce=null;return s===!1||(ce=Ke(s)?s(ee):d.isValidElement(s)?d.cloneElement(s,ee):function(W){let{closeToast:J,theme:re,ariaLabel:te="close"}=W;return h.createElement("button",{className:`Toastify__close-button Toastify__close-button--${re}`,type:"button",onClick:ie=>{ie.stopPropagation(),J(ie)},"aria-label":te},h.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},h.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(ee)),h.createElement(g,{isIn:j,done:D,position:m,preventExitTransition:n,nodeRef:r,playToast:i},h.createElement("div",{id:z,onClick:l,"data-in":j,className:V,...o,style:w,ref:r},h.createElement("div",{...j&&{role:E},className:Ke(y)?y({type:u}):Ot("Toastify__toast-body",y),style:v},K!=null&&h.createElement("div",{className:Ot("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},K),h.createElement("div",null,a)),ce,h.createElement(ry,{...C&&!Y?{key:`pb-${C}`}:{},rtl:k,theme:L,delay:c,isRunning:t,isIn:j,closeToast:p,hide:f,type:u,style:T,className:$,controlledProgress:Y,progress:S||0})))},Yr=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},cy=Gr(Yr("bounce",!0));Gr(Yr("slide",!0));Gr(Yr("zoom"));Gr(Yr("flip"));const ly={position:"top-right",transition:cy,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function uy(e){let t={...ly,...e};const n=e.stacked,[r,o]=d.useState(!0),i=d.useRef(null),{getToastToRender:s,isToastActive:a,count:c}=ty(t),{className:l,style:u,rtl:f,containerId:p}=t;function g(b){const w=Ot("Toastify__toast-container",`Toastify__toast-container--${b}`,{"Toastify__toast-container--rtl":f});return Ke(l)?l({position:b,rtl:f,defaultClassName:w}):Ot(w,ur(l))}function m(){n&&(o(!0),le.play())}return sy(()=>{if(n){var b;const w=i.current.querySelectorAll('[data-in="true"]'),y=12,v=(b=t.position)==null?void 0:b.includes("top");let $=0,T=0;Array.from(w).reverse().forEach((C,E)=>{const S=C;S.classList.add("Toastify__toast--stacked"),E>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=v?"top":"bot");const k=$*(r?.2:1)+(r?0:y*E);S.style.setProperty("--y",`${v?k:-1*k}px`),S.style.setProperty("--g",`${y}`),S.style.setProperty("--s",""+(1-(r?T:0))),$+=S.offsetHeight,T+=.025})}},[r,c,n]),h.createElement("div",{ref:i,className:"Toastify",id:p,onMouseEnter:()=>{n&&(o(!1),le.pause())},onMouseLeave:m},s((b,w)=>{const y=w.length?{...u}:{...u,pointerEvents:"none"};return h.createElement("div",{className:g(b),style:y,key:`container-${b}`},w.map(v=>{let{content:$,props:T}=v;return h.createElement(ay,{...T,stacked:n,collapseAll:m,isIn:a(T.toastId,T.containerId),style:T.style,key:`toast-${T.key}`},$)}))}))}const dy=de.div` - display: Flex; - justify-content: center; - align-items: center; - gap: 5px; -`,fy=e=>{const t=e||"Success",n="uniqueToastId";le.isActive(n)||le.success(_.jsxs(dy,{children:[_.jsx(Qv,{color:ne.white,fontSize:24}),t]}),{toastId:n,autoClose:5e3,icon:!1,closeButton:!1})},py=d.lazy(()=>Le(()=>import("./index-d6302b3a.js"),["assets/index-d6302b3a.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/ClipLoader-3d43cca0.js","assets/index-d67f975a.js","assets/Tabs-0f5e7022.js","assets/createSvgIcon-bb70c00d.js"]).then(({SettingsModal:e})=>({default:e}))),hy=d.lazy(()=>Le(()=>import("./index-0f492805.js"),["assets/index-0f492805.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/CheckIcon-dab8ab94.js","assets/ClipLoader-3d43cca0.js","assets/index-d67f975a.js"]).then(({AddContentModal:e})=>({default:e}))),gy=d.lazy(()=>Le(()=>import("./index-a326f840.js"),["assets/index-a326f840.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/CheckIcon-dab8ab94.js","assets/ClipLoader-3d43cca0.js","assets/constants-a6b58f4d.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-d67f975a.js","assets/index-eaa4131c.js","assets/Stack-448c401b.js","assets/createSvgIcon-bb70c00d.js","assets/TextareaAutosize-c523d1d2.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),my=d.lazy(()=>Le(()=>import("./index-a6cb22bc.js"),["assets/index-a6cb22bc.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/PlusIcon-dd101fe0.js","assets/NodeCircleIcon-d6d9a47a.js","assets/ClipLoader-3d43cca0.js","assets/SearchIcon-b6b2a06c.js","assets/index-eaa4131c.js","assets/Stack-448c401b.js","assets/createSvgIcon-bb70c00d.js","assets/TextareaAutosize-c523d1d2.js","assets/index-d67f975a.js","assets/DeleteIcon-ee935491.js","assets/MergeIcon-a00ba31c.js","assets/index-bb8a1b27.js","assets/constants-a6b58f4d.js","assets/CheckIcon-dab8ab94.js","assets/Typography-8872fb44.js","assets/Tabs-0f5e7022.js"]).then(({SourcesTableModal:e})=>({default:e}))),by=d.lazy(()=>Le(()=>import("./index-651c0502.js"),["assets/index-651c0502.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/index-d67f975a.js","assets/Skeleton-20b798ec.js","assets/ClipLoader-3d43cca0.js"]).then(({EditNodeNameModal:e})=>({default:e}))),vy=d.lazy(()=>Le(()=>import("./index-c8f73829.js"),["assets/index-c8f73829.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/Skeleton-20b798ec.js","assets/ClipLoader-3d43cca0.js"]).then(({RemoveNodeModal:e})=>({default:e}))),yy=d.lazy(()=>Le(()=>import("./index-deb157a3.js"),["assets/index-deb157a3.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/NodeCircleIcon-d6d9a47a.js","assets/index-eaa4131c.js","assets/Stack-448c401b.js","assets/createSvgIcon-bb70c00d.js","assets/TextareaAutosize-c523d1d2.js","assets/constants-a6b58f4d.js","assets/ClipLoader-3d43cca0.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),xy=d.lazy(()=>Le(()=>import("./index-af68535b.js"),["assets/index-af68535b.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/index-bb8a1b27.js","assets/NodeCircleIcon-d6d9a47a.js","assets/constants-a6b58f4d.js","assets/index-eaa4131c.js","assets/Stack-448c401b.js","assets/createSvgIcon-bb70c00d.js","assets/TextareaAutosize-c523d1d2.js","assets/ClipLoader-3d43cca0.js"]).then(({MergeNodeModal:e})=>({default:e}))),wy=d.lazy(()=>Le(()=>import("./index-f524b7a4.js"),["assets/index-f524b7a4.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/index-d67f975a.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/constants-a6b58f4d.js","assets/ClipLoader-3d43cca0.js","assets/index-eaa4131c.js","assets/Stack-448c401b.js","assets/createSvgIcon-bb70c00d.js","assets/TextareaAutosize-c523d1d2.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),Ey=d.lazy(()=>Le(()=>import("./index-e06aeeab.js"),["assets/index-e06aeeab.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/constants-a6b58f4d.js","assets/index-d67f975a.js","assets/index-eaa4131c.js","assets/Stack-448c401b.js","assets/createSvgIcon-bb70c00d.js","assets/TextareaAutosize-c523d1d2.js","assets/ClipLoader-3d43cca0.js","assets/DeleteIcon-ee935491.js","assets/PlusIcon-dd101fe0.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/FormControlLabel-2c99cf32.js","assets/Typography-8872fb44.js","assets/index-3bf3d93c.js"]).then(({BlueprintModal:e})=>({default:e}))),$y=d.lazy(()=>Le(()=>import("./index-5d713808.js"),["assets/index-5d713808.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/index-d67f975a.js"]).then(({UserFeedBackModal:e})=>({default:e}))),Cy=d.lazy(()=>Le(()=>import("./index-3c6f54c7.js"),["assets/index-3c6f54c7.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-0b3081fa.js","assets/index-eaa4131c.js","assets/Stack-448c401b.js","assets/createSvgIcon-bb70c00d.js","assets/TextareaAutosize-c523d1d2.js","assets/index-d67f975a.js"]).then(({CreateBountyModal:e})=>({default:e}))),_y=()=>_.jsxs(_.Fragment,{children:[_.jsx(gy,{}),_.jsx(hy,{}),_.jsx(py,{}),_.jsx(by,{}),_.jsx(vy,{}),_.jsx(my,{}),_.jsx(yy,{}),_.jsx(wy,{}),_.jsx(Ey,{}),_.jsx(xy,{}),_.jsx($y,{}),_.jsx(Cy,{})]}),Sy=()=>{const e=Mr(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=$a(),{abortFetchData:r}=Dr(s=>s),o=eu();if(!e)return null;const i=()=>{n(null),r(),t(),o("/")};return _.jsxs(Ty,{children:[_.jsxs(ky,{onClick:i,children:[_.jsx(_.Fragment,{children:e.title&&_.jsx(Ae,{className:"title",color:"white",children:e.title})}),_.jsx(Ae,{className:"subtitle",children:"Second Brain"})]}),_.jsx(tu,{})]})},Ty=de(oe).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` - height: 64px; - position: absolute; - top: 0px; - left: 64px; - right: 32px; - transition: opacity 1s; - z-index: 99; - padding: 20px 23px; -`,ky=de.div` - ${Jl.smallOnly` - display: none; - `} - - width: 367px; - - .title { - color: var(--Primary-Text, #fff); - font-family: Barlow; - font-size: 22px; - font-style: normal; - font-weight: 700; - line-height: 16px; /* 72.727% */ - letter-spacing: 0.22px; - cursor: pointer; - } - - .subtitle { - color: ${ne.GRAY6}; - font-family: Barlow; - font-size: 22px; - font-style: normal; - font-weight: 400; - line-height: 16px; - letter-spacing: 0.22px; - margin-left: 8px; - cursor: pointer; - } -`,Ry=620,Oy=()=>{const e=`(max-width: ${Ry}px)`,[t,n]=d.useState(()=>window.matchMedia(e).matches);return d.useEffect(()=>{const r=window.matchMedia(e);n(r.matches);const o=()=>{n(r.matches)};return window.addEventListener("resize",o),()=>r.removeEventListener("change",o)},[e]),t},Py=()=>{const[e,t]=d.useState(!0),n=Oy();d.useEffect(()=>{t(!0)},[n]);const r=()=>{t(!1)};return n&&e?_.jsxs(Ay,{align:"center",direction:"column",justify:"center",onClick:r,children:[_.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),_.jsxs(oe,{align:"center",direction:"column",justify:"center",children:[_.jsx(xo,{children:"Second Brain is currently"}),_.jsx(xo,{style:{fontWeight:600},children:"optimized for Desktop."}),_.jsx(xo,{children:"Mobile support coming soon."})]}),_.jsx(fi,{color:"secondary",onClick:r,variant:"contained",children:"Got It"})]}):null},Ay=de(oe)` - height: 100vh; - width: 100vw; - background: rgba(0, 0, 0, 0.75); - gap: 28px; - z-index: 2000000000; - position: fixed; - top: 0; - left: 0; - right: 0; -`,xo=de(Ae)` - color: #fff; - text-align: center; - font-family: Barlow; - font-size: 18px; - font-style: normal; - font-weight: 400; - line-height: 24px; - margin: 1px; -`,Iy=de(uy)` - .Toastify__toast { - background-color: #49c998ff; - width: fit-content; - min-height: 100%; - border-radius: 12px; - padding: 6px; - } - .Toastify__toast-body { - background-color: #49c998ff; - color: ${ne.white}; - font-weight: 500; - font-family: 'Barlow'; - } - .Toastify__close-button { - color: ${ne.white}; - } - .Toastify__progress-bar--error { - background-color: ${ne.primaryRed}; - } - .Toastify__progress-bar--success { - background-color: ${ne.primaryGreen}; - } - &.Toastify__toast-container--top-right { - width: fit-content; - height: auto; - top: 60px; - right: 48px; - } -`,Dy=de(oe)` - height: 100%; - width: 100%; - background-color: ${ne.black}; -`,My=de(oe)` - position: absolute; - bottom: 8px; - left: 8px; - color: ${ne.white}; - font-size: 12px; - opacity: 0.5; -`,jy=d.lazy(()=>Le(()=>import("./index-366d799f.js"),["assets/index-366d799f.js","assets/index-87686c58.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),Ly=d.lazy(()=>Le(()=>import("./index-2042bb5c.js"),["assets/index-2042bb5c.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/index-3bf3d93c.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-c523d1d2.js","assets/DeleteIcon-ee935491.js","assets/index-ea2300d8.js","assets/MergeIcon-a00ba31c.js","assets/PlusIcon-dd101fe0.js","assets/ClipLoader-3d43cca0.js"]).then(({Universe:e})=>({default:e}))),zy=d.lazy(()=>Le(()=>import("./index-b9eee39b.js").then(e=>e.i),["assets/index-b9eee39b.js","assets/index-87686c58.js","assets/index-a2878e02.css","assets/SearchIcon-b6b2a06c.js","assets/ClipLoader-3d43cca0.js","assets/Skeleton-20b798ec.js","assets/PlusIcon-dd101fe0.js","assets/CheckIcon-dab8ab94.js","assets/Stack-448c401b.js","assets/FormControlLabel-2c99cf32.js","assets/Typography-8872fb44.js","assets/createSvgIcon-bb70c00d.js","assets/index-0b3081fa.js","assets/index-ea2300d8.js"]).then(({SideBar:e})=>({default:e}))),Fy=()=>{const[e]=nu(),t=e.get("q"),{setBudget:n,setNodeCount:r}=Ea(W=>W),o=d.useRef(null),i=d.useRef(null),{setSidebarOpen:s,currentSearch:a,setCurrentSearch:c,setRelevanceSelected:l,setTranscriptOpen:u,universeQuestionIsOpen:f,setUniverseQuestionIsOpen:p}=Mr(W=>W),g=Yv(W=>W.setTeachMeAnswer),{fetchData:m,setCategoryFilter:b,setAbortRequests:w,addNewNode:y,splashDataLoading:v,runningProjectId:$,setRunningProjectMessages:T}=Dr(W=>W),{setAiSummaryAnswer:C,getKeyExist:E,aiRefId:S}=$a(W=>W),k=wa(),[z,D]=ru(W=>[W.realtimeGraphFeatureFlag,W.chatInterfaceFeatureFlag]),j=Kv(),A=nv({mode:"onChange"}),{setValue:F}=A;d.useEffect(()=>{F("search",t??""),u(!1),k(null),l(!1),c(t??""),g(""),b(null)},[t,b,c,l,k,g,u,F]),d.useEffect(()=>{(async()=>{await m(n,w),s(!0),a?await iu(n):k(null)})()},[a,m,n,w,s,k]);const L=d.useCallback(()=>{r("INCREMENT")},[r]),N=d.useCallback(W=>{o.current||(o.current={nodes:[],edges:[]}),W.edges&&o.current.edges.push(...W.edges),W.nodes&&o.current.nodes.push(...W.nodes),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{const J={...o.current};o.current={nodes:[],edges:[]},y(J)},2e3)},[y]),V=d.useCallback(W=>{W.ref_id&&C(W.ref_id,{answer:W.answer,answerLoading:!1})},[C]),K=d.useCallback(W=>{W.ref_id&&C(W.ref_id,{audio_en:W.audio_EN})},[C]),Y=d.useCallback(W=>{W.ref_id&&C(W.ref_id,{questions:W.relevant_questions.map(J=>J.question),questionsLoading:!1})},[C]),ee=d.useCallback(W=>{W.ref_id&&C(W.ref_id,{sources:W.sources.map(J=>J.ref_id),sourcesLoading:!1})},[C]),ce=d.useCallback(W=>{W.question&&E(S)&&C(S,{answerLoading:!1,entities:W.entities})},[C,E,S]);return d.useEffect(()=>(j&&(j.connect(),j.on("connect_error",W=>{console.error("Socket connection error:",W)}),j.on("newnode",L),D&&j.on("extractedentitieshook",ce),D&&j.on("askquestionhook",V),D&&j.on("relevantquestionshook",Y),D&&j.on("answersourceshook",ee),z&&j.on("new_node_created",N),D&&j.on("answeraudiohook",K)),()=>{j&&j.off()}),[j,L,N,z,V,D,Y,ee,ce,K]),d.useEffect(()=>{if(!$)return;const W=new WebSocket("wss://jobs.stakwork.com/cable?channel=ProjectLogChannel");W.onopen=()=>{let J="a";J=$;const re={command:"subscribe",identifier:JSON.stringify({channel:"ProjectLogChannel",id:J})};W.send(JSON.stringify(re))},W.onmessage=J=>{var ie;console.log("Message from server:",J.data);const re=JSON.parse(J.data);if(re.type==="ping")return;const te=(ie=re==null?void 0:re.message)==null?void 0:ie.message;te&&(fy(te),T(te),console.log(te))},W.onerror=J=>{console.error("WebSocket error:",J)},W.onclose=()=>{console.log("WebSocket connection closed")}},[$,T]),d.useEffect(()=>{v||p()},[p,v]),_.jsxs(_.Fragment,{children:[_.jsx(rv,{}),_.jsx(Py,{}),_.jsx(hl,{hidden:!ou}),_.jsx(d.Suspense,{fallback:_.jsx("div",{children:"Loading..."}),children:v?null:_.jsxs(Dy,{direction:"row",children:[_.jsxs(Vb,{...A,children:[_.jsx(jy,{}),!f&&_.jsx(zy,{}),_.jsx(Ly,{}),_.jsx(Wv,{}),_.jsx(Sy,{}),_.jsxs(My,{children:["v",qv]}),_.jsx(Il,{})]}),_.jsx(_y,{}),_.jsx(Iy,{})]})})]})},s2=Object.freeze(Object.defineProperty({__proto__:null,App:Fy},Symbol.toStringTag,{value:"Module"}));export{Al as A,fi as B,cv as C,B as D,Xy as E,Vb as F,lv as G,s2 as H,_a as I,Qy as M,Wv as O,yv as P,fy as S,jv as T,vn as _,Yy as a,Mv as b,i2 as c,qy as d,hu as e,Ur as f,nv as g,su as h,Pl as i,av as j,xv as k,t2 as l,e2 as m,n2 as n,Ev as o,uv as p,Jy as q,Qv as r,r2 as s,o2 as t,sv as u,au as v,Ca as w,Zy as x,xp as y,Vy as z}; diff --git a/build/assets/index-5d713808.js b/build/assets/index-71614da4.js similarity index 70% rename from build/assets/index-5d713808.js rename to build/assets/index-71614da4.js index 5d41f1f95..f3da841d3 100644 --- a/build/assets/index-5d713808.js +++ b/build/assets/index-71614da4.js @@ -1,4 +1,4 @@ -import{t as i,j as e,F as s,ba as b,I as a,v as n,Y as w,r as m,af as j}from"./index-87686c58.js";import{B as C,g as S,S as y,F as k}from"./index-67098fb8.js";import{B as v}from"./index-0b3081fa.js";import{T as F}from"./index-d67f975a.js";const B=({allowNextStep:t})=>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(T,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(F,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:b})}),e.jsx(s,{children:e.jsx(C,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!t,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),T=i(a)` +import{t as i,j as e,F as s,ba as b,I as a,v as n,Y as w,r as m,af as j}from"./index-66901234.js";import{B as C,f as S,F as y}from"./index-2979d0f2.js";import{B as k}from"./index-f2d8f92e.js";import{S as v}from"./index-82f7e5dd.js";import{T as F}from"./index-ed5d0d1f.js";import"./index.esm-24fdfebf.js";const B=({allowNextStep:t})=>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(T,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(F,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:b})}),e.jsx(s,{children:e.jsx(C,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!t,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),T=i(a)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -31,4 +31,4 @@ import{t as i,j as e,F as s,ba as b,I as a,v as n,Y as w,r as m,af as j}from"./i font-weight: 400; color: ${n.GRAY6}; padding-top: 10px; -`,I=async t=>{try{const r=await j.post("/prediction/feedback",JSON.stringify(t));if(r.error){const{message:o}=r.error;throw new Error(o)}}catch(r){throw new Error(r.message||"Error submitting feedback")}},Y=()=>{const{close:t,visible:r}=w("feedback"),o=S({mode:"onChange"}),{watch:h,reset:c}=o,[u,l]=m.useState(!1);m.useEffect(()=>()=>{l(!1),c()},[r,c]);const d=h("message"),x=!!d&&d.trim().length>0,f=o.handleSubmit(async p=>{try{await I(p),y("Feedback Submitted"),l(!0)}catch(g){console.error(g.message)}});return e.jsx(v,{id:"feedback",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(k,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:u?e.jsx(M,{}):e.jsx(B,{allowNextStep:x})})})})};export{Y as UserFeedBackModal}; +`,I=async t=>{try{const r=await j.post("/prediction/feedback",JSON.stringify(t));if(r.error){const{message:o}=r.error;throw new Error(o)}}catch(r){throw new Error(r.message||"Error submitting feedback")}},G=()=>{const{close:t,visible:r}=w("feedback"),o=S({mode:"onChange"}),{watch:h,reset:c}=o,[u,l]=m.useState(!1);m.useEffect(()=>()=>{l(!1),c()},[r,c]);const d=h("message"),x=!!d&&d.trim().length>0,f=o.handleSubmit(async p=>{try{await I(p),v("Feedback Submitted"),l(!0)}catch(g){console.error(g.message)}});return e.jsx(k,{id:"feedback",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(y,{...o,children:e.jsx("form",{id:"feedback-form",onSubmit:f,children:u?e.jsx(M,{}):e.jsx(B,{allowNextStep:x})})})})};export{G as UserFeedBackModal}; diff --git a/build/assets/index-3bf3d93c.js b/build/assets/index-7ae855ee.js similarity index 99% rename from build/assets/index-3bf3d93c.js rename to build/assets/index-7ae855ee.js index bd6dda022..8f9813bcb 100644 --- a/build/assets/index-3bf3d93c.js +++ b/build/assets/index-7ae855ee.js @@ -1,4 +1,4 @@ -import{r as P,q as Cc,a as yi,bM as _c,bN as ed,j as L,R as td,w as nd,v as Ki,bO as rd,bP as id,bQ as od}from"./index-87686c58.js";import{a5 as fl,u as Vl,a6 as ad,U as ld,z as Ec,t as sd,C as io,a7 as ud,a2 as Zl,P as Ql,q as da,a8 as dl,a9 as cd,aa as fd,ab as dd,y as hd,ac as pd,ad as vd,ae as md,V as st,a as Nr,af as gd,b as yd,k as Xl,X as pa,ag as Tc,K as Ul,ah as Rl,ai as pi,aj as xd,Y as Yl,S as wd,ak as Fl,al as Fu,p as Sd,am as Cd,r as oo,x as xi,an as Mc,O as kc,s as _d,o as Ed,ao as Td,ap as Md,l as kd,L as Au,j as Pd,aq as Ld,ar as Ud,as as Rd,at as Jl,au as Du,av as Ir,aw as Fd,ax as hl}from"./three.module-2ce81f73.js";import{z as _t,d as Ad}from"./index-67098fb8.js";var Pc={exports:{}},Gr={};/** +import{r as P,q as Cc,a as yi,bM as _c,bN as ed,j as L,R as td,w as nd,v as Ki,bO as rd,bP as id,bQ as od}from"./index-66901234.js";import{a5 as fl,u as Vl,a6 as ad,U as ld,z as Ec,t as sd,C as io,a7 as ud,a2 as Zl,P as Ql,q as da,a8 as dl,a9 as cd,aa as fd,ab as dd,y as hd,ac as pd,ad as vd,ae as md,V as st,a as Nr,af as gd,b as yd,k as Xl,X as pa,ag as Tc,K as Ul,ah as Rl,ai as pi,aj as xd,Y as Yl,S as wd,ak as Fl,al as Fu,p as Sd,am as Cd,r as oo,x as xi,an as Mc,O as kc,s as _d,o as Ed,ao as Td,ap as Md,l as kd,L as Au,j as Pd,aq as Ld,ar as Ud,as as Rd,at as Jl,au as Du,av as Ir,aw as Fd,ax as hl}from"./three.module-2ce81f73.js";import{r as _t,c as Ad}from"./index-2979d0f2.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-eaa4131c.js b/build/assets/index-7e5f4468.js similarity index 90% rename from build/assets/index-eaa4131c.js rename to build/assets/index-7e5f4468.js index fc56f5f7f..57d570cd6 100644 --- a/build/assets/index-eaa4131c.js +++ b/build/assets/index-7e5f4468.js @@ -1,4 +1,4 @@ -import{r as u,$ as Ot,j as f,bR as wt,bS as Lt,f as xo,bT as Mt,a,d as ye,g as Ie,s as L,i as w,u as Pe,b as ae,c as ne,h as $e,l as Re,e as lo,bU as Ft,bV as Tt,ai as ct,ar as Uo,bW as dt,bv as ut,k as pt,bE as ft,n as Xe,bX as To,bY as At,aj as Fo,ac as Nt,bZ as zt,al as Dt,av as Ho,au as Et,t as Bt,v as je,F as jt}from"./index-87686c58.js";import{w as Vo,I as bt,T as Wt}from"./index-67098fb8.js";import{u as fo,a as so,f as io,i as gt,b as _t,P as Ao,F as Ut,S as Ht}from"./Stack-448c401b.js";import{c as No}from"./createSvgIcon-bb70c00d.js";import{T as Vt}from"./TextareaAutosize-c523d1d2.js";let Ko=0;function Kt(e){const[o,t]=u.useState(e),r=e||o;return u.useEffect(()=>{o==null&&(Ko+=1,t(`mui-${Ko}`))},[o]),r}const qo=Ot["useId".toString()];function zo(e){if(qo!==void 0){const o=qo();return e??o}return Kt(e)}const qt=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Gt=qt;function Xt(e){return e==null||Object.keys(e).length===0}function Yt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Xt(s)?t:s):o;return f.jsx(wt,{styles:r})}function Zt({styles:e,themeId:o,defaultTheme:t={}}){const r=Lt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Yt,{styles:s})}const Jt=No(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 Go(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Qt(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=Go(m));const h=m?i.filter(I=>{let v=(c||p)(I);return t&&(v=v.toLowerCase()),o&&(v=Go(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 tn(e){const{unstable_isActiveElementInListbox:o=on,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:I=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=en,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:$,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:J,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=zo(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),Z=u.useRef(null),be=u.useRef(null),[Me,Y]=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&&Ye?"":_,getOptionLabel:ee}):[],he=Gt({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?Z.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?Z.current.removeAttribute("aria-activedescendant"):Z.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)Z.current.value=_;else{const ge=ee(j[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Z.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},Ze=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=>{Mt(be,l),l&&Ze()});u.useEffect(()=>{Ze()},[Ze]);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;J&&J(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}),!I&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.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:-Xo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,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&&Z.current.setSelectionRange(Z.current.value.length,Z.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)){Z.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)&&(Z.current.focus(),Le&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.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:Z,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=$==null?void 0:$(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:Y,focusedTag:H,groupedOptions:ao}}function nn(e){return ye("MuiListSubheader",e)}Ie("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rn=["className","color","component","disableGutters","disableSticky","inset"],an=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 $e(d,nn,o)},ln=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})),mt=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,rn),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),I=an(h);return f.jsx(ln,a({as:d,className:ne(I.root,s),ref:t,ownerState:h},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=No(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 dn(e){return ye("MuiChip",e)}const un=Ie("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=un,pn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],fn=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 $e(p,dn,o)},bn=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}}})),gn=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 Yo(e){return e.key==="Backspace"||e.key==="Delete"}const mn=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:I,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:$=!1}=r,E=ae(r,pn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Yo(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Yo(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Vo:b||"div",J=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=fn(J),se=T===Vo?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(cn,{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(bn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:$&&m?-1:C,ownerState:J},se,E,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:I}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Ft,themeId:Tt}))}function xn(e){return ye("MuiInputBase",e)}const Cn=Ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=Cn,yn=["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]},In=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:I,startAdornment:v,type:R}=e,M={root:["root",`color${w(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",I&&I!=="medium"&&`size${w(I)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",I==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return $e(M,xn,o)},Io=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%"})),$o=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"})}),$n=f.jsx(vn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sn=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:I,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:$,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),W=k.value!=null?k.value:Le,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Z=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,u.useEffect(()=>{!Y&&I&&be&&(Me(!1),q&&q())},[Y,I,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=u.useCallback(z=>{gt(z)?ze&&ze():_e&&_e()},[ze,_e]);ct(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),Y&&Y.onFocus?Y.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),Y&&Y.onBlur?Y.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(dt(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:$,minRows:E},ce),Fe=Vt);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:Y,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=In(me),Ye=A.root||p.Root||Io,De=U.root||m.root||{},Ee=A.input||p.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&$n,f.jsxs(Ye,a({},De,!Uo(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(_t.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:J,type:Se},ce,!Uo(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Sn;function Pn(e){return ye("MuiInput",e)}const kn=a({},Oe,Ie("MuiInput",["root","underline","input"])),Qe=kn;function Rn(e){return ye("MuiOutlinedInput",e)}const On=a({},Oe,Ie("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=On;function wn(e){return ye("MuiFilledInput",e)}const Ln=a({},Oe,Ie("MuiFilledInput",["root","underline","input"])),we=Ln,ht=No(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Mn(e){return ye("MuiAutocomplete",e)}const Fn=Ie("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=Fn;var Zo,Jo;const Tn=["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"],An=["ref"],Nn=["key"],zn=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 $e(h,Mn,o)},Dn=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})})),En=L("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Bn=L(bt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=L(bt,{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)"})),Wn=L(Ao,{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"})),_n=L(ut,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Un=L("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Hn=L("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Vn=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)}}}})),Kn=L(sn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qn=L("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Gn=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:I,className:v,clearIcon:R=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:$=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:J=!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:Z="Open",PaperComponent:be=ut,PopperComponent:Me=Ao,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ne}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!J||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,An),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=zn(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(hn,a({label:ro(g),size:_},n({index:x}),I)))}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(Kn,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(qn,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:x}=n,K=ae(n,Nn);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(Dn,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:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(En,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Bn,a({},Ye(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(jn,a({},Ae(),{disabled:F,"aria-label":y?k:Z,title:y?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Wn,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(_n,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Vn,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]})}),Xn=Gn;function Yn(e){return ye("MuiCircularProgress",e)}Ie("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Zn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Qo,et,ot,tt;const Je=44,Jn=pt(Qo||(Qo=So` +import{r as u,$ as Ot,j as f,bR as Lt,bS as wt,f as xo,bT as Mt,a,d as ye,g as Ie,s as w,i as L,u as Pe,b as ae,c as ne,h as $e,l as Re,e as lo,bU as Ft,bV as Tt,ai as ct,ar as Uo,bW as dt,bv as ut,k as pt,bE as ft,n as Xe,bX as To,bY as At,aj as Fo,ac as Nt,bZ as zt,al as Dt,av as Ho,au as Et,t as Bt,v as je,F as jt}from"./index-66901234.js";import{m as Vo,I as bt,T as Wt}from"./index-2979d0f2.js";import{u as fo,a as so,f as io,i as gt,b as _t,P as Ao,F as Ut,S as Ht}from"./Stack-9fbe3064.js";import{c as No}from"./createSvgIcon-d7fd46c8.js";import{T as Vt}from"./TextareaAutosize-146d11d5.js";let Ko=0;function Kt(e){const[o,t]=u.useState(e),r=e||o;return u.useEffect(()=>{o==null&&(Ko+=1,t(`mui-${Ko}`))},[o]),r}const qo=Ot["useId".toString()];function zo(e){if(qo!==void 0){const o=qo();return e??o}return Kt(e)}const qt=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Gt=qt;function Xt(e){return e==null||Object.keys(e).length===0}function Yt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Xt(s)?t:s):o;return f.jsx(Lt,{styles:r})}function Zt({styles:e,themeId:o,defaultTheme:t={}}){const r=wt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Yt,{styles:s})}const Jt=No(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 Go(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Qt(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=Go(m));const h=m?i.filter(I=>{let v=(c||p)(I);return t&&(v=v.toLowerCase()),o&&(v=Go(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function wo(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 tn(e){const{unstable_isActiveElementInListbox:o=on,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:I=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=en,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:$,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:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:we=!e.freeSolo,value:ue}=e,W=zo(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),Z=u.useRef(null),be=u.useRef(null),[Me,Y]=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&&Ye?"":_,getOptionLabel:ee}):[],he=Gt({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?Z.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?Z.current.removeAttribute("aria-activedescendant"):Z.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)Z.current.value=_;else{const ge=ee(j[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Z.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},Ze=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&&wo(S,x=>oe(n,x))!==-1)return;const g=wo(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=>{Mt(be,l),l&&Ze()});u.useEffect(()=>{Ze()},[Ze]);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;J&&J(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=wo(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}),!I&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.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:-Xo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,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&&Z.current.setSelectionRange(Z.current.value.length,Z.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)){Z.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)},Lo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),we&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.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:Lo,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:Z,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=$==null?void 0:$(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:Y,focusedTag:H,groupedOptions:ao}}function nn(e){return ye("MuiListSubheader",e)}Ie("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rn=["className","color","component","disableGutters","disableSticky","inset"],an=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${L(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return $e(d,nn,o)},ln=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${L(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})),mt=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,rn),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),I=an(h);return f.jsx(ln,a({as:d,className:ne(I.root,s),ref:t,ownerState:h},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=No(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 dn(e){return ye("MuiChip",e)}const un=Ie("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=un,pn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],fn=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${L(r)}`,`color${L(s)}`,i&&"clickable",i&&`clickableColor${L(s)}`,d&&"deletable",d&&`deletableColor${L(s)}`,`${b}${L(s)}`],label:["label",`label${L(r)}`],avatar:["avatar",`avatar${L(r)}`,`avatarColor${L(s)}`],icon:["icon",`icon${L(r)}`,`iconColor${L(c)}`],deleteIcon:["deleteIcon",`deleteIcon${L(r)}`,`deleteIconColor${L(s)}`,`deleteIcon${L(b)}Color${L(s)}`]};return $e(p,dn,o)},bn=w("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${L(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${L(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${L(i)}`]},{[`& .${V.icon}`]:o[`iconColor${L(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${L(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(b)}Color${L(r)}`]},o.root,o[`size${L(i)}`],o[`color${L(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${L(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${L(r)}`],o[b],o[`${b}${L(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}}})),gn=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${L(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 Yo(e){return e.key==="Backspace"||e.key==="Delete"}const mn=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:I,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:$=!1}=r,E=ae(r,pn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Yo(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Yo(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Vo:b||"div",J=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=fn(J),se=T===Vo?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(cn,{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(bn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:$&&m?-1:C,ownerState:J},se,E,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:I}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Ft,themeId:Tt}))}function xn(e){return ye("MuiInputBase",e)}const Cn=Ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=Cn,yn=["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${L(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]},In=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:I,startAdornment:v,type:R}=e,M={root:["root",`color${L(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",I&&I!=="medium"&&`size${L(I)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",I==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return $e(M,xn,o)},Io=w("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%"})),$o=w("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"})}),$n=f.jsx(vn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sn=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:I,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:$,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:we}=s,ue=ae(s,yn),W=k.value!=null?k.value:we,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Z=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,u.useEffect(()=>{!Y&&I&&be&&(Me(!1),q&&q())},[Y,I,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=u.useCallback(z=>{gt(z)?ze&&ze():_e&&_e()},[ze,_e]);ct(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),Y&&Y.onFocus?Y.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),Y&&Y.onBlur?Y.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(dt(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:$,minRows:E},ce),Fe=Vt);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:Y,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=In(me),Ye=A.root||p.Root||Io,De=U.root||m.root||{},Ee=A.input||p.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&$n,f.jsxs(Ye,a({},De,!Uo(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(_t.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:J,type:Se},ce,!Uo(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Sn;function Pn(e){return ye("MuiInput",e)}const kn=a({},Oe,Ie("MuiInput",["root","underline","input"])),Qe=kn;function Rn(e){return ye("MuiOutlinedInput",e)}const On=a({},Oe,Ie("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=On;function Ln(e){return ye("MuiFilledInput",e)}const wn=a({},Oe,Ie("MuiFilledInput",["root","underline","input"])),Le=wn,ht=No(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Mn(e){return ye("MuiAutocomplete",e)}const Fn=Ie("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=Fn;var Zo,Jo;const Tn=["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"],An=["ref"],Nn=["key"],zn=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${L(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 $e(h,Mn,o)},Dn=w("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${L(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"}},[`& .${Le.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Le.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Le.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${Le.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${Le.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Le.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),En=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Bn=w(bt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(bt,{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)"})),Wn=w(Ao,{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"})),_n=w(ut,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Un=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Hn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Vn=w("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)}}}})),Kn=w(sn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qn=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Gn=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:I,className:v,clearIcon:R=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:$=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:J=!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:we,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=ut,PopperComponent:Me=Ao,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ne}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!J||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=we??{},go=Ee(),{ref:mo}=go,ho=ae(go,An),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=zn(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(hn,a({label:ro(g),size:_},n({index:x}),I)))}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(Kn,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(qn,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),Lo=te||((n,g)=>{const{key:x}=n,K=ae(n,Nn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return Lo(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(Dn,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:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(En,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Bn,a({},Ye(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(jn,a({},Ae(),{disabled:F,"aria-label":y?k:Z,title:y?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Wn,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(_n,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,we,{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]})}),Xn=Gn;function Yn(e){return ye("MuiCircularProgress",e)}Ie("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Zn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Qo,et,ot,tt;const Je=44,Jn=pt(Qo||(Qo=So` 0% { transform: rotate(0deg); } @@ -21,11 +21,11 @@ import{r as u,$ as Ot,j as f,bR as wt,bS as Lt,f as xo,bT as Mt,a,d as ye,g as I stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),er=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${w(r)}`],svg:["svg"],circle:["circle",`circle${w(t)}`,s&&"circleDisableShrink"]};return $e(c,Yn,o)},or=L("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${w(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ft(ot||(ot=So` +`)),er=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${L(r)}`],svg:["svg"],circle:["circle",`circle${L(t)}`,s&&"circleDisableShrink"]};return $e(c,Yn,o)},or=w("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${L(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ft(ot||(ot=So` animation: ${0} 1.4s linear infinite; - `),Jn)),tr=L("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),nr=L("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${w(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ft(tt||(tt=So` + `),Jn)),tr=w("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),nr=w("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${L(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ft(tt||(tt=So` animation: ${0} 1.4s ease-in-out infinite; - `),Qn)),rr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:p=3.6,value:m=0,variant:h="indeterminate"}=r,I=ae(r,Zn),v=a({},r,{color:c,disableShrink:d,size:i,thickness:p,value:m,variant:h}),R=er(v),M={},P={},O={};if(h==="determinate"){const k=2*Math.PI*((Je-p)/2);M.strokeDasharray=k.toFixed(3),O["aria-valuenow"]=Math.round(m),M.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,P.transform="rotate(-90deg)"}return f.jsx(or,a({className:ne(R.root,s),style:a({width:i,height:i},P,b),ownerState:v,ref:t,role:"progressbar"},O,I,{children:f.jsx(tr,{className:R.svg,ownerState:v,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:f.jsx(nr,{className:R.circle,style:M,ownerState:v,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p})})}))}),ar=rr,lr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sr=e=>{const{classes:o,disableUnderline:t}=e,s=$e({root:["root",!t&&"underline"],input:["input"]},wn,o);return a({},o,s)},ir=L(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${we.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${we.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${we.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${we.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${we.disabled}, .${we.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${we.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),cr=L($o,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),vt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:p,fullWidth:m=!1,inputComponent:h="input",multiline:I=!1,slotProps:v,slots:R={},type:M="text"}=i,P=ae(i,lr),O=a({},i,{fullWidth:m,inputComponent:h,multiline:I,type:M}),k=sr(i),C={root:{ownerState:O},input:{ownerState:O}},$=v??p?To(C,v??p):C,E=(r=(s=R.root)!=null?s:b.Root)!=null?r:ir,N=(c=(d=R.input)!=null?d:b.Input)!=null?c:cr;return f.jsx(Do,a({slots:{root:E,input:N},componentsProps:$,fullWidth:m,inputComponent:h,multiline:I,ref:t,type:M},P,{classes:k}))});vt.muiName="Input";const xt=vt;function dr(e){return ye("MuiFormHelperText",e)}const ur=Ie("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),nt=ur;var rt;const pr=["children","className","component","disabled","error","filled","focused","margin","required","variant"],fr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,p={root:["root",s&&"disabled",c&&"error",r&&`size${w(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return $e(p,dr,o)},br=L("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${w(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nt.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),gr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,pr),b=so(),p=io({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=fr(m);return f.jsx(br,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:s===" "?rt||(rt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),mr=gr;function hr(e){return ye("MuiFormLabel",e)}const vr=Ie("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=vr,xr=["children","className","color","component","disabled","error","filled","focused","required"],Cr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${w(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return $e(b,hr,o)},yr=L("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),Ir=L("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),$r=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,xr),b=so(),p=io({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:p.color||"primary",component:d,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=Cr(m);return f.jsxs(yr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:[s,p.required&&f.jsxs(Ir,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Sr=$r,Pr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kr=e=>{const{classes:o,disableUnderline:t}=e,s=$e({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},Rr=L(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qe.disabled}, .${Qe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Or=L($o,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),Ct=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:p={},componentsProps:m,fullWidth:h=!1,inputComponent:I="input",multiline:v=!1,slotProps:R,slots:M={},type:P="text"}=i,O=ae(i,Pr),k=kr(i),$={root:{ownerState:{disableUnderline:b}}},E=R??m?To(R??m,$):$,N=(r=(s=M.root)!=null?s:p.Root)!=null?r:Rr,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:Or;return f.jsx(Do,a({slots:{root:N,input:F},slotProps:E,fullWidth:h,inputComponent:I,multiline:v,ref:t,type:P},O,{classes:k}))});Ct.muiName="Input";const yt=Ct;function wr(e){return ye("MuiInputLabel",e)}Ie("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Lr=["disableAnimation","margin","shrink","variant","className"],Mr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${w(r)}`,d],asterisk:[i&&"asterisk"]},p=$e(b,wr,o);return a({},o,p)},Fr=L(Sr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Tr=u.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,Lr),b=so();let p=c;typeof p>"u"&&b&&(p=b.filled||b.focused||b.adornedStart);const m=io({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),h=a({},r,{disableAnimation:s,formControl:b,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),I=Mr(h);return f.jsx(Fr,a({"data-shrink":p,ownerState:h,ref:t,className:ne(I.root,d)},i,{classes:I}))}),Ar=Tr,Nr=u.createContext({}),zr=Nr;function Dr(e){return ye("MuiList",e)}Ie("MuiList",["root","padding","dense","subheader"]);const Er=["children","className","component","dense","disablePadding","subheader"],Br=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return $e({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Dr,o)},jr=L("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Wr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:p}=r,m=ae(r,Er),h=u.useMemo(()=>({dense:i}),[i]),I=a({},r,{component:d,dense:i,disablePadding:b}),v=Br(I);return f.jsx(zr.Provider,{value:h,children:f.jsxs(jr,a({as:d,className:ne(v.root,c),ref:t,ownerState:I},m,{children:[p,s]}))})}),_r=Wr,Ur=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function at(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function It(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!It(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const Hr=u.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:p=!1,onKeyDown:m,variant:h="selectedMenu"}=o,I=ae(o,Ur),v=u.useRef(null),R=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ct(()=>{s&&v.current.focus()},[s]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,$)=>{const E=!v.current.style.width;if(C.clientHeight{const $=v.current,E=C.key,N=Fo($).activeElement;if(E==="ArrowDown")C.preventDefault(),uo($,N,p,b,Mo);else if(E==="ArrowUp")C.preventDefault(),uo($,N,p,b,at);else if(E==="Home")C.preventDefault(),uo($,null,p,b,Mo);else if(E==="End")C.preventDefault(),uo($,null,p,b,at);else if(E.length===1){const F=R.current,q=E.toLowerCase(),le=performance.now();F.keys.length>0&&(le-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&q!==F.keys[0]&&(F.repeating=!1)),F.lastTime=le,F.keys.push(q);const de=N&&!F.repeating&&It(N,F);F.previousKeyMatched&&(de||uo($,N,!1,b,Mo,F))?C.preventDefault():F.previousKeyMatched=!1}m&&m(C)},P=lo(v,t);let O=-1;u.Children.forEach(d,(C,$)=>{if(!u.isValidElement(C)){O===$&&(O+=1,O>=d.length&&(O=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||O===-1)&&(O=$),O===$&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(O+=1,O>=d.length&&(O=-1))});const k=u.Children.map(d,(C,$)=>{if($===O){const E={};return c&&(E.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),u.cloneElement(C,E)}return C});return f.jsx(_r,a({role:"menu",ref:P,className:i,onKeyDown:M,tabIndex:s?0:-1},I,{children:k}))}),Vr=Hr;function Kr(e){return ye("MuiMenu",e)}Ie("MuiMenu",["root","paper","list"]);const qr=["onEntering"],Gr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xr={vertical:"top",horizontal:"right"},Yr={vertical:"top",horizontal:"left"},Zr=e=>{const{classes:o}=e;return $e({root:["root"],paper:["paper"],list:["list"]},Kr,o)},Jr=L(Nt,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Qr=L(zt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ea=L(Vr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),oa=u.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:I,PaperProps:v={},PopoverClasses:R,transitionDuration:M="auto",TransitionProps:{onEntering:P}={},variant:O="selectedMenu",slots:k={},slotProps:C={}}=c,$=ae(c.TransitionProps,qr),E=ae(c,Gr),N=Dt(),F=N.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:p,MenuListProps:m,onEntering:P,PaperProps:v,transitionDuration:M,TransitionProps:$,variant:O}),le=Zr(q),de=d&&!p&&I,oe=u.useRef(null),T=(A,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(A,N),P&&P(A,ie)},J=A=>{A.key==="Tab"&&(A.preventDefault(),h&&h(A,"tabKeyDown"))};let G=-1;u.Children.map(i,(A,ie)=>{u.isValidElement(A)&&(A.props.disabled||(O==="selectedMenu"&&A.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Qr,Q=(s=C.paper)!=null?s:v,re=Ho({elementType:k.root,externalSlotProps:C.root,ownerState:q,className:[le.root,b]}),U=Ho({elementType:se,externalSlotProps:Q,ownerState:q,className:le.paper});return f.jsx(Jr,a({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?Xr:Yr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:I,ref:t,transitionDuration:M,TransitionProps:a({onEntering:T},$),ownerState:q},E,{classes:R,children:f.jsx(ea,a({onKeyDown:J,actions:oe,autoFocus:d&&(G===-1||p),autoFocusItem:de,variant:O},m,{className:ne(le.list,m.className),children:i}))}))}),ta=oa;function na(e){return ye("MuiNativeSelect",e)}const ra=Ie("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ra,aa=["className","disabled","error","IconComponent","inputRef","variant"],la=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${w(t)}`,c&&"iconOpen",r&&"disabled"]};return $e(i,na,o)},$t=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),sa=L("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})($t),St=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ia=L("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${w(t.variant)}`],t.open&&o.iconOpen]}})(St),ca=u.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,p=ae(o,aa),m=a({},o,{disabled:s,variant:b,error:c}),h=la(m);return f.jsxs(u.Fragment,{children:[f.jsx(sa,a({ownerState:m,className:ne(h.select,r),disabled:s,ref:i||t},p)),o.multiple?null:f.jsx(ia,{as:d,ownerState:m,className:h.icon})]})}),da=ca;var lt;const ua=["children","classes","className","label","notched"],pa=L("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),fa=L("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function ba(e){const{className:o,label:t,notched:r}=e,s=ae(e,ua),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(pa,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(fa,{ownerState:d,children:c?f.jsx("span",{children:t}):lt||(lt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ga=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ma=e=>{const{classes:o}=e,r=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Rn,o);return a({},o,r)},ha=L(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),va=L(ba,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),xa=L($o,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),Pt=u.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:h="input",label:I,multiline:v=!1,notched:R,slots:M={},type:P="text"}=b,O=ae(b,ga),k=ma(b),C=so(),$=io({props:b,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=a({},b,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:C,fullWidth:m,hiddenLabel:$.hiddenLabel,multiline:v,size:$.size,type:P}),N=(r=(s=M.root)!=null?s:p.Root)!=null?r:ha,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:xa;return f.jsx(Do,a({slots:{root:N,input:F},renderSuffix:q=>f.jsx(va,{ownerState:E,className:k.notchedOutline,label:I!=null&&I!==""&&$.required?i||(i=f.jsxs(u.Fragment,{children:[I," ","*"]})):I,notched:typeof R<"u"?R:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:h,multiline:v,ref:t,type:P},O,{classes:a({},k,{notchedOutline:null})}))});Pt.muiName="Input";const kt=Pt;function Ca(e){return ye("MuiSelect",e)}const ya=Ie("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ya;var st;const Ia=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],$a=L("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})($t,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sa=L("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${w(t.variant)}`],t.open&&o.iconOpen]}})(St),Pa=L("input",{shouldForwardProp:e=>Et(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function it(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function ka(e){return e==null||typeof e=="string"&&!e.trim()}const Ra=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${w(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return $e(i,Ca,o)},Oa=u.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:p,defaultOpen:m,defaultValue:h,disabled:I,displayEmpty:v,error:R=!1,IconComponent:M,inputRef:P,labelId:O,MenuProps:k={},multiple:C,name:$,onBlur:E,onChange:N,onClose:F,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:T,SelectDisplayProps:J={},tabIndex:G,value:se,variant:Q="standard"}=o,re=ae(o,Ia),[U,A]=fo({controlled:se,default:h,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),Le=u.useRef(null),ue=u.useRef(null),[W,ee]=u.useState(null),{current:fe}=u.useRef(de!=null),[We,Z]=u.useState(),be=lo(t,P),Me=u.useCallback(y=>{ue.current=y,y&&ee(y)},[]),Y=W==null?void 0:W.parentNode;u.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:Le.current,value:U}),[U]),u.useEffect(()=>{m&&ie&&W&&!fe&&(Z(i?null:Y.clientWidth),ue.current.focus())},[W,i]),u.useEffect(()=>{d&&ue.current.focus()},[d]),u.useEffect(()=>{if(!O)return;const y=Fo(ue.current).getElementById(O);if(y){const B=()=>{getSelection().isCollapsed&&ue.current.focus()};return y.addEventListener("click",B),()=>{y.removeEventListener("click",B)}}},[O]);const H=(y,B)=>{y?le&&le(B):F&&F(B),fe||(Z(i?null:Y.clientWidth),Se(y))},ze=y=>{y.button===0&&(y.preventDefault(),ue.current.focus(),H(!0,y))},_e=y=>{H(!1,y)},te=u.Children.toArray(b),S=y=>{const B=te.find(X=>X.props.value===y.target.value);B!==void 0&&(A(B.props.value),N&&N(y,B))},to=y=>B=>{let X;if(B.currentTarget.hasAttribute("tabindex")){if(C){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(y.props.value);ke===-1?X.push(y.props.value):X.splice(ke,1)}else X=y.props.value;if(y.props.onClick&&y.props.onClick(B),U!==X&&(A(X),N)){const ke=B.nativeEvent||B,Ze=new ke.constructor(ke.type,ke);Object.defineProperty(Ze,"target",{writable:!0,value:{value:X,name:$}}),N(Ze,y)}C||H(!1,B)}},_=y=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(y.key)!==-1&&(y.preventDefault(),H(!0,y))},xe=W!==null&&ie,Fe=y=>{!xe&&E&&(Object.defineProperty(y,"target",{writable:!0,value:{value:U,name:$}}),E(y))};delete re["aria-invalid"];let ce,Te;const me=[];let Ae=!1;(gt({value:U})||v)&&(T?ce=T(U):Ae=!0);const Ye=te.map(y=>{if(!u.isValidElement(y))return null;let B;if(C){if(!Array.isArray(U))throw new Error(dt(2));B=U.some(X=>it(X,y.props.value)),B&&Ae&&me.push(y.props.children)}else B=it(U,y.props.value),B&&Ae&&(Te=y.props.children);return u.cloneElement(y,{"aria-selected":B?"true":"false",onClick:to(y),onKeyUp:X=>{X.key===" "&&X.preventDefault(),y.props.onKeyUp&&y.props.onKeyUp(X)},role:"option",selected:B,value:void 0,"data-value":y.props.value})});Ae&&(C?me.length===0?ce=null:ce=me.reduce((y,B,X)=>(y.push(B),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},Ta=L(yt,Bo)(""),Aa=L(kt,Bo)(""),Na=L(xt,Bo)(""),Rt=u.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:p=!1,IconComponent:m=ht,id:h,input:I,inputProps:v,label:R,labelId:M,MenuProps:P,multiple:O=!1,native:k=!1,onClose:C,onOpen:$,open:E,renderValue:N,SelectDisplayProps:F,variant:q="outlined"}=r,le=ae(r,La),de=k?da:wa,oe=so(),T=io({props:r,muiFormControl:oe,states:["variant","error"]}),J=T.variant||q,G=a({},r,{variant:J,classes:d}),se=Fa(G),Q=ae(se,Ma),re=I||{standard:f.jsx(Ta,{ownerState:G}),outlined:f.jsx(Aa,{label:R,ownerState:G}),filled:f.jsx(Na,{ownerState:G})}[J],U=lo(t,re.ref);return f.jsx(u.Fragment,{children:u.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:T.error,IconComponent:m,variant:J,type:void 0,multiple:O},k?{id:h}:{autoWidth:s,defaultOpen:b,displayEmpty:p,labelId:M,MenuProps:P,onClose:C,onOpen:$,open:E,renderValue:N,SelectDisplayProps:a({id:h},F)},v,{classes:v?To(Q,v.classes):Q},I?I.props.inputProps:{})},O&&k&&J==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!I&&{variant:J},le))})});Rt.muiName="Select";const za=Rt;function Da(e){return ye("MuiTextField",e)}Ie("MuiTextField",["root"]);const Ea=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ba={standard:yt,filled:xt,outlined:kt},ja=e=>{const{classes:o}=e;return $e({root:["root"]},Da,o)},Wa=L(Ut,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),_a=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:p,disabled:m=!1,error:h=!1,FormHelperTextProps:I,fullWidth:v=!1,helperText:R,id:M,InputLabelProps:P,inputProps:O,InputProps:k,inputRef:C,label:$,maxRows:E,minRows:N,multiline:F=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:T,required:J=!1,rows:G,select:se=!1,SelectProps:Q,type:re,value:U,variant:A="outlined"}=r,ie=ae(r,Ea),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:h,fullWidth:v,multiline:F,required:J,select:se,variant:A}),Le=ja(Se),ue={};A==="outlined"&&(P&&typeof P.shrink<"u"&&(ue.notched=P.shrink),ue.label=$),se&&((!Q||!Q.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const W=zo(M),ee=R&&W?`${W}-helper-text`:void 0,fe=$&&W?`${W}-label`:void 0,We=Ba[A],Z=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:p,fullWidth:v,multiline:F,name:q,rows:G,maxRows:E,minRows:N,type:re,value:U,id:W,inputRef:C,onBlur:le,onChange:de,onFocus:oe,placeholder:T,inputProps:O},ue,k));return f.jsxs(Wa,a({className:ne(Le.root,i),disabled:m,error:h,fullWidth:v,ref:t,required:J,color:b,variant:A,ownerState:Se},ie,{children:[$!=null&&$!==""&&f.jsx(Ar,a({htmlFor:W,id:fe},P,{children:$})),se?f.jsx(za,a({"aria-describedby":ee,id:W,labelId:fe,value:U,input:Z},Q,{children:d})):Z,R&&f.jsx(mr,a({id:ee},I,{children:R}))]}))}),Ua=_a,Ha={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},Za=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b,placeholder:p,className:m})=>{const h=u.useRef(null),[I,v]=u.useState(!1);u.useEffect(()=>{c&&h.current&&(h.current.focus(),v(!0))},[c]);const R=(M,P)=>{o(P)};return f.jsx(Ht,{flexGrow:1,spacing:1,children:f.jsx(Xn,{...Ha,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,className:m,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:h},loading:s,onChange:R,onClose:()=>v(!1),onInputChange:(M,P)=>r==null?void 0:r(P),onOpen:()=>v(!0),open:I,options:e??[],PopperComponent:({children:M,...P})=>f.jsx(Ao,{...P,placement:"bottom-start",children:M}),renderInput:M=>f.jsx(Va,{inputRef:h,...M,"data-testid":i,InputProps:{...M.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(ar,{color:"inherit",size:20}):M.InputProps.endAdornment})},placeholder:p,size:"medium",variant:"standard"}),renderOption:(M,P)=>f.jsx("li",{...M,children:f.jsxs(jt,{align:"center","data-testid":P.label,direction:"row",grow:1,justify:"space-between",onClick:P==null?void 0:P.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:P.label!==""?P.label:"Not Selected"}),(P==null?void 0:P.type)&&f.jsx(Wt,{type:P.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Va=Bt(Ua)` + `),Qn)),rr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:p=3.6,value:m=0,variant:h="indeterminate"}=r,I=ae(r,Zn),v=a({},r,{color:c,disableShrink:d,size:i,thickness:p,value:m,variant:h}),R=er(v),M={},P={},O={};if(h==="determinate"){const k=2*Math.PI*((Je-p)/2);M.strokeDasharray=k.toFixed(3),O["aria-valuenow"]=Math.round(m),M.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,P.transform="rotate(-90deg)"}return f.jsx(or,a({className:ne(R.root,s),style:a({width:i,height:i},P,b),ownerState:v,ref:t,role:"progressbar"},O,I,{children:f.jsx(tr,{className:R.svg,ownerState:v,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:f.jsx(nr,{className:R.circle,style:M,ownerState:v,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p})})}))}),ar=rr,lr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sr=e=>{const{classes:o,disableUnderline:t}=e,s=$e({root:["root",!t&&"underline"],input:["input"]},Ln,o);return a({},o,s)},ir=w(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${Le.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${Le.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Le.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Le.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Le.disabled}, .${Le.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Le.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),cr=w($o,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),vt=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:p,fullWidth:m=!1,inputComponent:h="input",multiline:I=!1,slotProps:v,slots:R={},type:M="text"}=i,P=ae(i,lr),O=a({},i,{fullWidth:m,inputComponent:h,multiline:I,type:M}),k=sr(i),C={root:{ownerState:O},input:{ownerState:O}},$=v??p?To(C,v??p):C,E=(r=(s=R.root)!=null?s:b.Root)!=null?r:ir,N=(c=(d=R.input)!=null?d:b.Input)!=null?c:cr;return f.jsx(Do,a({slots:{root:E,input:N},componentsProps:$,fullWidth:m,inputComponent:h,multiline:I,ref:t,type:M},P,{classes:k}))});vt.muiName="Input";const xt=vt;function dr(e){return ye("MuiFormHelperText",e)}const ur=Ie("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),nt=ur;var rt;const pr=["children","className","component","disabled","error","filled","focused","margin","required","variant"],fr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,p={root:["root",s&&"disabled",c&&"error",r&&`size${L(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return $e(p,dr,o)},br=w("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${L(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nt.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),gr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,pr),b=so(),p=io({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=fr(m);return f.jsx(br,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:s===" "?rt||(rt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),mr=gr;function hr(e){return ye("MuiFormLabel",e)}const vr=Ie("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=vr,xr=["children","className","color","component","disabled","error","filled","focused","required"],Cr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${L(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return $e(b,hr,o)},yr=w("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),Ir=w("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),$r=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,xr),b=so(),p=io({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:p.color||"primary",component:d,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),h=Cr(m);return f.jsxs(yr,a({as:d,ownerState:m,className:ne(h.root,c),ref:t},i,{children:[s,p.required&&f.jsxs(Ir,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Sr=$r,Pr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kr=e=>{const{classes:o,disableUnderline:t}=e,s=$e({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},Rr=w(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qe.disabled}, .${Qe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Or=w($o,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),Ct=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:p={},componentsProps:m,fullWidth:h=!1,inputComponent:I="input",multiline:v=!1,slotProps:R,slots:M={},type:P="text"}=i,O=ae(i,Pr),k=kr(i),$={root:{ownerState:{disableUnderline:b}}},E=R??m?To(R??m,$):$,N=(r=(s=M.root)!=null?s:p.Root)!=null?r:Rr,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:Or;return f.jsx(Do,a({slots:{root:N,input:F},slotProps:E,fullWidth:h,inputComponent:I,multiline:v,ref:t,type:P},O,{classes:k}))});Ct.muiName="Input";const yt=Ct;function Lr(e){return ye("MuiInputLabel",e)}Ie("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const wr=["disableAnimation","margin","shrink","variant","className"],Mr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${L(r)}`,d],asterisk:[i&&"asterisk"]},p=$e(b,Lr,o);return a({},o,p)},Fr=w(Sr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Tr=u.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,wr),b=so();let p=c;typeof p>"u"&&b&&(p=b.filled||b.focused||b.adornedStart);const m=io({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),h=a({},r,{disableAnimation:s,formControl:b,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),I=Mr(h);return f.jsx(Fr,a({"data-shrink":p,ownerState:h,ref:t,className:ne(I.root,d)},i,{classes:I}))}),Ar=Tr,Nr=u.createContext({}),zr=Nr;function Dr(e){return ye("MuiList",e)}Ie("MuiList",["root","padding","dense","subheader"]);const Er=["children","className","component","dense","disablePadding","subheader"],Br=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return $e({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Dr,o)},jr=w("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Wr=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:p}=r,m=ae(r,Er),h=u.useMemo(()=>({dense:i}),[i]),I=a({},r,{component:d,dense:i,disablePadding:b}),v=Br(I);return f.jsx(zr.Provider,{value:h,children:f.jsxs(jr,a({as:d,className:ne(v.root,c),ref:t,ownerState:I},m,{children:[p,s]}))})}),_r=Wr,Ur=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function at(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function It(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!It(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const Hr=u.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:p=!1,onKeyDown:m,variant:h="selectedMenu"}=o,I=ae(o,Ur),v=u.useRef(null),R=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ct(()=>{s&&v.current.focus()},[s]),u.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,$)=>{const E=!v.current.style.width;if(C.clientHeight{const $=v.current,E=C.key,N=Fo($).activeElement;if(E==="ArrowDown")C.preventDefault(),uo($,N,p,b,Mo);else if(E==="ArrowUp")C.preventDefault(),uo($,N,p,b,at);else if(E==="Home")C.preventDefault(),uo($,null,p,b,Mo);else if(E==="End")C.preventDefault(),uo($,null,p,b,at);else if(E.length===1){const F=R.current,q=E.toLowerCase(),le=performance.now();F.keys.length>0&&(le-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&q!==F.keys[0]&&(F.repeating=!1)),F.lastTime=le,F.keys.push(q);const de=N&&!F.repeating&&It(N,F);F.previousKeyMatched&&(de||uo($,N,!1,b,Mo,F))?C.preventDefault():F.previousKeyMatched=!1}m&&m(C)},P=lo(v,t);let O=-1;u.Children.forEach(d,(C,$)=>{if(!u.isValidElement(C)){O===$&&(O+=1,O>=d.length&&(O=-1));return}C.props.disabled||(h==="selectedMenu"&&C.props.selected||O===-1)&&(O=$),O===$&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(O+=1,O>=d.length&&(O=-1))});const k=u.Children.map(d,(C,$)=>{if($===O){const E={};return c&&(E.autoFocus=!0),C.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),u.cloneElement(C,E)}return C});return f.jsx(_r,a({role:"menu",ref:P,className:i,onKeyDown:M,tabIndex:s?0:-1},I,{children:k}))}),Vr=Hr;function Kr(e){return ye("MuiMenu",e)}Ie("MuiMenu",["root","paper","list"]);const qr=["onEntering"],Gr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xr={vertical:"top",horizontal:"right"},Yr={vertical:"top",horizontal:"left"},Zr=e=>{const{classes:o}=e;return $e({root:["root"],paper:["paper"],list:["list"]},Kr,o)},Jr=w(Nt,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Qr=w(zt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ea=w(Vr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),oa=u.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:I,PaperProps:v={},PopoverClasses:R,transitionDuration:M="auto",TransitionProps:{onEntering:P}={},variant:O="selectedMenu",slots:k={},slotProps:C={}}=c,$=ae(c.TransitionProps,qr),E=ae(c,Gr),N=Dt(),F=N.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:p,MenuListProps:m,onEntering:P,PaperProps:v,transitionDuration:M,TransitionProps:$,variant:O}),le=Zr(q),de=d&&!p&&I,oe=u.useRef(null),T=(A,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(A,N),P&&P(A,ie)},J=A=>{A.key==="Tab"&&(A.preventDefault(),h&&h(A,"tabKeyDown"))};let G=-1;u.Children.map(i,(A,ie)=>{u.isValidElement(A)&&(A.props.disabled||(O==="selectedMenu"&&A.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Qr,Q=(s=C.paper)!=null?s:v,re=Ho({elementType:k.root,externalSlotProps:C.root,ownerState:q,className:[le.root,b]}),U=Ho({elementType:se,externalSlotProps:Q,ownerState:q,className:le.paper});return f.jsx(Jr,a({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:F?"right":"left"},transformOrigin:F?Xr:Yr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:I,ref:t,transitionDuration:M,TransitionProps:a({onEntering:T},$),ownerState:q},E,{classes:R,children:f.jsx(ea,a({onKeyDown:J,actions:oe,autoFocus:d&&(G===-1||p),autoFocusItem:de,variant:O},m,{className:ne(le.list,m.className),children:i}))}))}),ta=oa;function na(e){return ye("MuiNativeSelect",e)}const ra=Ie("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ra,aa=["className","disabled","error","IconComponent","inputRef","variant"],la=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${L(t)}`,c&&"iconOpen",r&&"disabled"]};return $e(i,na,o)},$t=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),sa=w("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})($t),St=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ia=w("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${L(t.variant)}`],t.open&&o.iconOpen]}})(St),ca=u.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,p=ae(o,aa),m=a({},o,{disabled:s,variant:b,error:c}),h=la(m);return f.jsxs(u.Fragment,{children:[f.jsx(sa,a({ownerState:m,className:ne(h.select,r),disabled:s,ref:i||t},p)),o.multiple?null:f.jsx(ia,{as:d,ownerState:m,className:h.icon})]})}),da=ca;var lt;const ua=["children","classes","className","label","notched"],pa=w("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),fa=w("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function ba(e){const{className:o,label:t,notched:r}=e,s=ae(e,ua),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(pa,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(fa,{ownerState:d,children:c?f.jsx("span",{children:t}):lt||(lt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ga=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ma=e=>{const{classes:o}=e,r=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Rn,o);return a({},o,r)},ha=w(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),va=w(ba,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),xa=w($o,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),Pt=u.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:h="input",label:I,multiline:v=!1,notched:R,slots:M={},type:P="text"}=b,O=ae(b,ga),k=ma(b),C=so(),$=io({props:b,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=a({},b,{color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:C,fullWidth:m,hiddenLabel:$.hiddenLabel,multiline:v,size:$.size,type:P}),N=(r=(s=M.root)!=null?s:p.Root)!=null?r:ha,F=(c=(d=M.input)!=null?d:p.Input)!=null?c:xa;return f.jsx(Do,a({slots:{root:N,input:F},renderSuffix:q=>f.jsx(va,{ownerState:E,className:k.notchedOutline,label:I!=null&&I!==""&&$.required?i||(i=f.jsxs(u.Fragment,{children:[I," ","*"]})):I,notched:typeof R<"u"?R:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:h,multiline:v,ref:t,type:P},O,{classes:a({},k,{notchedOutline:null})}))});Pt.muiName="Input";const kt=Pt;function Ca(e){return ye("MuiSelect",e)}const ya=Ie("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ya;var st;const Ia=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],$a=w("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})($t,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sa=w("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${L(t.variant)}`],t.open&&o.iconOpen]}})(St),Pa=w("input",{shouldForwardProp:e=>Et(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function it(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function ka(e){return e==null||typeof e=="string"&&!e.trim()}const Ra=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${L(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return $e(i,Ca,o)},Oa=u.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:p,defaultOpen:m,defaultValue:h,disabled:I,displayEmpty:v,error:R=!1,IconComponent:M,inputRef:P,labelId:O,MenuProps:k={},multiple:C,name:$,onBlur:E,onChange:N,onClose:F,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:T,SelectDisplayProps:J={},tabIndex:G,value:se,variant:Q="standard"}=o,re=ae(o,Ia),[U,A]=fo({controlled:se,default:h,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),we=u.useRef(null),ue=u.useRef(null),[W,ee]=u.useState(null),{current:fe}=u.useRef(de!=null),[We,Z]=u.useState(),be=lo(t,P),Me=u.useCallback(y=>{ue.current=y,y&&ee(y)},[]),Y=W==null?void 0:W.parentNode;u.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:we.current,value:U}),[U]),u.useEffect(()=>{m&&ie&&W&&!fe&&(Z(i?null:Y.clientWidth),ue.current.focus())},[W,i]),u.useEffect(()=>{d&&ue.current.focus()},[d]),u.useEffect(()=>{if(!O)return;const y=Fo(ue.current).getElementById(O);if(y){const B=()=>{getSelection().isCollapsed&&ue.current.focus()};return y.addEventListener("click",B),()=>{y.removeEventListener("click",B)}}},[O]);const H=(y,B)=>{y?le&&le(B):F&&F(B),fe||(Z(i?null:Y.clientWidth),Se(y))},ze=y=>{y.button===0&&(y.preventDefault(),ue.current.focus(),H(!0,y))},_e=y=>{H(!1,y)},te=u.Children.toArray(b),S=y=>{const B=te.find(X=>X.props.value===y.target.value);B!==void 0&&(A(B.props.value),N&&N(y,B))},to=y=>B=>{let X;if(B.currentTarget.hasAttribute("tabindex")){if(C){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(y.props.value);ke===-1?X.push(y.props.value):X.splice(ke,1)}else X=y.props.value;if(y.props.onClick&&y.props.onClick(B),U!==X&&(A(X),N)){const ke=B.nativeEvent||B,Ze=new ke.constructor(ke.type,ke);Object.defineProperty(Ze,"target",{writable:!0,value:{value:X,name:$}}),N(Ze,y)}C||H(!1,B)}},_=y=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(y.key)!==-1&&(y.preventDefault(),H(!0,y))},xe=W!==null&&ie,Fe=y=>{!xe&&E&&(Object.defineProperty(y,"target",{writable:!0,value:{value:U,name:$}}),E(y))};delete re["aria-invalid"];let ce,Te;const me=[];let Ae=!1;(gt({value:U})||v)&&(T?ce=T(U):Ae=!0);const Ye=te.map(y=>{if(!u.isValidElement(y))return null;let B;if(C){if(!Array.isArray(U))throw new Error(dt(2));B=U.some(X=>it(X,y.props.value)),B&&Ae&&me.push(y.props.children)}else B=it(U,y.props.value),B&&Ae&&(Te=y.props.children);return u.cloneElement(y,{"aria-selected":B?"true":"false",onClick:to(y),onKeyUp:X=>{X.key===" "&&X.preventDefault(),y.props.onKeyUp&&y.props.onKeyUp(X)},role:"option",selected:B,value:void 0,"data-value":y.props.value})});Ae&&(C?me.length===0?ce=null:ce=me.reduce((y,B,X)=>(y.push(B),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},Ta=w(yt,Bo)(""),Aa=w(kt,Bo)(""),Na=w(xt,Bo)(""),Rt=u.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:p=!1,IconComponent:m=ht,id:h,input:I,inputProps:v,label:R,labelId:M,MenuProps:P,multiple:O=!1,native:k=!1,onClose:C,onOpen:$,open:E,renderValue:N,SelectDisplayProps:F,variant:q="outlined"}=r,le=ae(r,wa),de=k?da:La,oe=so(),T=io({props:r,muiFormControl:oe,states:["variant","error"]}),J=T.variant||q,G=a({},r,{variant:J,classes:d}),se=Fa(G),Q=ae(se,Ma),re=I||{standard:f.jsx(Ta,{ownerState:G}),outlined:f.jsx(Aa,{label:R,ownerState:G}),filled:f.jsx(Na,{ownerState:G})}[J],U=lo(t,re.ref);return f.jsx(u.Fragment,{children:u.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:T.error,IconComponent:m,variant:J,type:void 0,multiple:O},k?{id:h}:{autoWidth:s,defaultOpen:b,displayEmpty:p,labelId:M,MenuProps:P,onClose:C,onOpen:$,open:E,renderValue:N,SelectDisplayProps:a({id:h},F)},v,{classes:v?To(Q,v.classes):Q},I?I.props.inputProps:{})},O&&k&&J==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!I&&{variant:J},le))})});Rt.muiName="Select";const za=Rt;function Da(e){return ye("MuiTextField",e)}Ie("MuiTextField",["root"]);const Ea=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ba={standard:yt,filled:xt,outlined:kt},ja=e=>{const{classes:o}=e;return $e({root:["root"]},Da,o)},Wa=w(Ut,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),_a=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:p,disabled:m=!1,error:h=!1,FormHelperTextProps:I,fullWidth:v=!1,helperText:R,id:M,InputLabelProps:P,inputProps:O,InputProps:k,inputRef:C,label:$,maxRows:E,minRows:N,multiline:F=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:T,required:J=!1,rows:G,select:se=!1,SelectProps:Q,type:re,value:U,variant:A="outlined"}=r,ie=ae(r,Ea),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:h,fullWidth:v,multiline:F,required:J,select:se,variant:A}),we=ja(Se),ue={};A==="outlined"&&(P&&typeof P.shrink<"u"&&(ue.notched=P.shrink),ue.label=$),se&&((!Q||!Q.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const W=zo(M),ee=R&&W?`${W}-helper-text`:void 0,fe=$&&W?`${W}-label`:void 0,We=Ba[A],Z=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:p,fullWidth:v,multiline:F,name:q,rows:G,maxRows:E,minRows:N,type:re,value:U,id:W,inputRef:C,onBlur:le,onChange:de,onFocus:oe,placeholder:T,inputProps:O},ue,k));return f.jsxs(Wa,a({className:ne(we.root,i),disabled:m,error:h,fullWidth:v,ref:t,required:J,color:b,variant:A,ownerState:Se},ie,{children:[$!=null&&$!==""&&f.jsx(Ar,a({htmlFor:W,id:fe},P,{children:$})),se?f.jsx(za,a({"aria-describedby":ee,id:W,labelId:fe,value:U,input:Z},Q,{children:d})):Z,R&&f.jsx(mr,a({id:ee},I,{children:R}))]}))}),Ua=_a,Ha={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},Za=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b,placeholder:p,className:m})=>{const h=u.useRef(null),[I,v]=u.useState(!1);u.useEffect(()=>{c&&h.current&&(h.current.focus(),v(!0))},[c]);const R=(M,P)=>{o(P)};return f.jsx(Ht,{flexGrow:1,spacing:1,children:f.jsx(Xn,{...Ha,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,className:m,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:h},loading:s,onChange:R,onClose:()=>v(!1),onInputChange:(M,P)=>r==null?void 0:r(P),onOpen:()=>v(!0),open:I,options:e??[],PopperComponent:({children:M,...P})=>f.jsx(Ao,{...P,placement:"bottom-start",children:M}),renderInput:M=>f.jsx(Va,{inputRef:h,...M,"data-testid":i,InputProps:{...M.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(ar,{color:"inherit",size:20}):M.InputProps.endAdornment})},placeholder:p,size:"medium",variant:"standard"}),renderOption:(M,P)=>f.jsx("li",{...M,children:f.jsxs(jt,{align:"center","data-testid":P.label,direction:"row",grow:1,justify:"space-between",onClick:P==null?void 0:P.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:P.label!==""?P.label:"Not Selected"}),(P==null?void 0:P.type)&&f.jsx(Wt,{type:P.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Va=Bt(Ua)` && { z-index: 2; width: 100%; diff --git a/build/assets/index-a6cb22bc.js b/build/assets/index-8015b832.js similarity index 93% rename from build/assets/index-a6cb22bc.js rename to build/assets/index-8015b832.js index 98d81415e..3e946d9e3 100644 --- a/build/assets/index-a6cb22bc.js +++ b/build/assets/index-8015b832.js @@ -1,4 +1,4 @@ -import{r as h,d as Y,g as q,s as O,a as N,u as Q,b as X,j as e,c as K,h as J,i as P,as as ut,l as oe,at as gt,t as d,v as x,I as L,F as g,Y as E,br as ft,aw as te,ac as je,R as ne,z as ae,ag as mt,bs as bt,bt as Ge,y as re,bu as Ze,bv as Ct,ad as ye,bb as ke,bc as _e,bd as Le,bw as jt,H as Ye,bx as yt,by as qe,bz as wt,ba as vt,bA as le,bB as Tt,G as St,U as $t,Z as kt}from"./index-87686c58.js";import{B as ce}from"./index-0b3081fa.js";import{P as _t}from"./PlusIcon-dd101fe0.js";import{B as W,r as Lt,s as Mt,I as Z,t as Nt,c as Bt,i as ee,g as we,F as ve}from"./index-67098fb8.js";import{T as Me,s as U,a as Qe,S as Xe,A as Te,N as Ke,F as Je,b as et,E as zt,D as It,c as tt,Q as st,V as ot,d as Rt}from"./NodeCircleIcon-d6d9a47a.js";import{C as M}from"./ClipLoader-3d43cca0.js";import{S as nt}from"./SearchIcon-b6b2a06c.js";import{I as Et,A as Se,T as rt}from"./index-eaa4131c.js";import{B as At,T as Ft}from"./index-d67f975a.js";import{D as Ot}from"./DeleteIcon-ee935491.js";import{E as Ht,M as Ne,A as Wt}from"./MergeIcon-a00ba31c.js";import{u as I}from"./index-bb8a1b27.js";import{O as it}from"./constants-a6b58f4d.js";import{C as at}from"./CheckIcon-dab8ab94.js";import{T as Be}from"./Typography-8872fb44.js";import{T as Pt,a as Ut}from"./Tabs-0f5e7022.js";import"./Stack-448c401b.js";import"./createSvgIcon-bb70c00d.js";import"./TextareaAutosize-c523d1d2.js";const Dt=h.createContext(),lt=Dt;function Vt(t){return Y("MuiTable",t)}q("MuiTable",["root","stickyHeader"]);const Gt=["className","component","padding","size","stickyHeader"],Zt=t=>{const{classes:s,stickyHeader:n}=t;return J({root:["root",n&&"stickyHeader"]},Vt,s)},Yt=O("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":N({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),ze="table",qt=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTable"}),{className:a,component:l=ze,padding:i="normal",size:o="medium",stickyHeader:c=!1}=r,u=X(r,Gt),m=N({},r,{component:l,padding:i,size:o,stickyHeader:c}),p=Zt(m),C=h.useMemo(()=>({padding:i,size:o,stickyHeader:c}),[i,o,c]);return e.jsx(lt.Provider,{value:C,children:e.jsx(Yt,N({as:l,role:l===ze?null:"table",ref:n,className:K(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Xt(t){return Y("MuiTableBody",t)}q("MuiTableBody",["root"]);const Kt=["className","component"],Jt=t=>{const{classes:s}=t;return J({root:["root"]},Xt,s)},es=O("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),ts={variant:"body"},Ie="tbody",ss=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTableBody"}),{className:a,component:l=Ie}=r,i=X(r,Kt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:K(c.root,a),as:l,ref:n,role:l===Ie?null:"rowgroup",ownerState:o},i))})}),os=ss;function ns(t){return Y("MuiTableCell",t)}const rs=q("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),is=rs,as=["align","className","component","padding","scope","size","sortDirection","variant"],ls=t=>{const{classes:s,variant:n,align:r,padding:a,size:l,stickyHeader:i}=t,o={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${P(r)}`,a!=="normal"&&`padding${P(a)}`,`size${P(l)}`]};return J(o,ns,s)},cs=O("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${P(n.size)}`],n.padding!=="normal"&&s[`padding${P(n.padding)}`],n.align!=="inherit"&&s[`align${P(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid +import{r as h,d as Y,g as q,s as O,a as N,u as Q,b as X,j as e,c as K,h as J,i as P,as as ut,l as oe,at as gt,t as d,v as x,I as L,F as g,Y as E,br as ft,aw as te,ac as je,R as ne,z as ae,ag as mt,bs as bt,bt as Ge,y as re,bu as Ze,bv as Ct,ad as ye,bb as ke,bc as _e,bd as Le,bw as jt,H as Ye,bx as yt,by as qe,bz as wt,ba as vt,bA as le,bB as Tt,G as St,U as $t,Z as kt}from"./index-66901234.js";import{B as ce}from"./index-f2d8f92e.js";import{P as _t}from"./PlusIcon-fe6ca88f.js";import{B as W,I as Z,h as ee,f as we,F as ve}from"./index-2979d0f2.js";import{T as Me,s as U,a as Qe,S as Xe,A as Te,N as Ke,F as Je,b as et,E as Lt,D as Mt,c as tt,Q as st,V as ot,d as Nt}from"./NodeCircleIcon-e770be3d.js";import{C as M}from"./ClipLoader-81a960be.js";import{f as Bt,g as zt,h as It,a as Rt}from"./index.esm-24fdfebf.js";import{S as nt}from"./SearchIcon-19850845.js";import{I as Et,A as Se,T as rt}from"./index-7e5f4468.js";import{B as At,T as Ft}from"./index-ed5d0d1f.js";import{D as Ot}from"./DeleteIcon-0129cee6.js";import{E as Ht,M as Ne,A as Wt}from"./MergeIcon-abc08c66.js";import{u as I}from"./index-d1d9c0be.js";import{O as it}from"./constants-a6b58f4d.js";import{C as at}from"./CheckIcon-306bcb61.js";import{T as Be}from"./Typography-77d675f7.js";import{T as Pt,a as Ut}from"./Tabs-f772e78a.js";import"./Stack-9fbe3064.js";import"./createSvgIcon-d7fd46c8.js";import"./TextareaAutosize-146d11d5.js";const Dt=h.createContext(),lt=Dt;function Vt(t){return Y("MuiTable",t)}q("MuiTable",["root","stickyHeader"]);const Gt=["className","component","padding","size","stickyHeader"],Zt=t=>{const{classes:s,stickyHeader:n}=t;return J({root:["root",n&&"stickyHeader"]},Vt,s)},Yt=O("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":N({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),ze="table",qt=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTable"}),{className:a,component:l=ze,padding:i="normal",size:o="medium",stickyHeader:c=!1}=r,u=X(r,Gt),m=N({},r,{component:l,padding:i,size:o,stickyHeader:c}),p=Zt(m),C=h.useMemo(()=>({padding:i,size:o,stickyHeader:c}),[i,o,c]);return e.jsx(lt.Provider,{value:C,children:e.jsx(Yt,N({as:l,role:l===ze?null:"table",ref:n,className:K(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Xt(t){return Y("MuiTableBody",t)}q("MuiTableBody",["root"]);const Kt=["className","component"],Jt=t=>{const{classes:s}=t;return J({root:["root"]},Xt,s)},es=O("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),ts={variant:"body"},Ie="tbody",ss=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTableBody"}),{className:a,component:l=Ie}=r,i=X(r,Kt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:K(c.root,a),as:l,ref:n,role:l===Ie?null:"rowgroup",ownerState:o},i))})}),os=ss;function ns(t){return Y("MuiTableCell",t)}const rs=q("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),is=rs,as=["align","className","component","padding","scope","size","sortDirection","variant"],ls=t=>{const{classes:s,variant:n,align:r,padding:a,size:l,stickyHeader:i}=t,o={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${P(r)}`,a!=="normal"&&`padding${P(a)}`,`size${P(l)}`]};return J(o,ns,s)},cs=O("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${P(n.size)}`],n.padding!=="normal"&&s[`padding${P(n.padding)}`],n.align!=="inherit"&&s[`align${P(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid ${t.palette.mode==="light"?ut(oe(t.palette.divider,1),.88):gt(oe(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",[`&.${is.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})),ds=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTableCell"}),{align:a="inherit",className:l,component:i,padding:o,scope:c,size:u,sortDirection:m,variant:p}=r,C=X(r,as),b=h.useContext(lt),j=h.useContext(pe),w=j&&j.variant==="head";let y;i?y=i:y=w?"th":"td";let S=c;y==="td"?S=void 0:!S&&w&&(S="col");const $=p||j&&j.variant,A=N({},r,{align:a,component:y,padding:o||(b&&b.padding?b.padding:"normal"),size:u||(b&&b.size?b.size:"medium"),sortDirection:m,stickyHeader:$==="head"&&b&&b.stickyHeader,variant:$}),F=ls(A);let B=null;return m&&(B=m==="asc"?"ascending":"descending"),e.jsx(cs,N({as:y,ref:n,className:K(F.root,l),"aria-sort":B,scope:S,ownerState:A},C))}),ps=ds;function xs(t){return Y("MuiTableHead",t)}q("MuiTableHead",["root"]);const hs=["className","component"],us=t=>{const{classes:s}=t;return J({root:["root"]},xs,s)},gs=O("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),fs={variant:"head"},Re="thead",ms=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTableHead"}),{className:a,component:l=Re}=r,i=X(r,hs),o=N({},r,{component:l}),c=us(o);return e.jsx(pe.Provider,{value:fs,children:e.jsx(gs,N({as:l,className:K(c.root,a),ref:n,role:l===Re?null:"rowgroup",ownerState:o},i))})}),ct=ms;function bs(t){return Y("MuiTableRow",t)}const Cs=q("MuiTableRow",["root","selected","hover","head","footer"]),Ee=Cs,js=["className","component","hover","selected"],ys=t=>{const{classes:s,selected:n,hover:r,head:a,footer:l}=t;return J({root:["root",n&&"selected",r&&"hover",a&&"head",l&&"footer"]},bs,s)},ws=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,[`&.${Ee.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Ee.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:oe(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}))`:oe(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),Ae="tr",vs=h.forwardRef(function(s,n){const r=Q({props:s,name:"MuiTableRow"}),{className:a,component:l=Ae,hover:i=!1,selected:o=!1}=r,c=X(r,js),u=h.useContext(pe),m=N({},r,{component:l,hover:i,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ys(m);return e.jsx(ws,N({as:l,ref:n,className:K(p.root,a),role:l===Ae?null:"row",ownerState:m},c))}),D=vs;function be(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 Ts=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),e.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),f=d(ps)` && { color: ${x.white}; @@ -228,7 +228,7 @@ import{r as h,d as Y,g as q,s as O,a as N,u as Q,b as X,j as e,c as K,h as J,i a gap: 12px; align-items: center; margin-top: 16px; -`,Ce=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{id:"filter_alt_off",children:[e.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1543_23288)",children:e.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),Us=({data:t})=>{const s=ae(i=>i.setQueuedSources),[n,r]=h.useState(""),a=async i=>{if(t!=null&&t.length)try{const o=await mt.enable();await bt(i,o.pubkey),s(t.filter(c=>c.ref_id!==i))}catch(o){console.warn(o)}},l=async i=>{if(!(!i||!(t!=null&&t.length))){r(i);try{await Ge(i),s(t==null?void 0:t.filter(o=>o.ref_id!==i))}catch(o){console.warn(o)}finally{r("")}}};return t!=null&&t.length?e.jsxs(de,{component:"table",children:[e.jsx(he,{children:e.jsxs(D,{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(i=>e.jsxs(xe,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[i.source_type]}),e.jsx(f,{width:"268px",children:i.source_type==="twitter_handle"?e.jsxs(We,{href:`${Qe}/${i.source}?open=system`,target:"_blank",children:["@",i.source]}):e.jsx(We,{href:`${i.source}?open=system`,target:"_blank",children:i.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(Ds,{className:"approve-wrapper",children:e.jsx(He,{className:"centered",onClick:()=>a(i.ref_id),children:e.jsx(Lt,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===i.ref_id?e.jsx(M,{color:x.white,size:16}):e.jsx(dt,{message:"Are you sure ?",onConfirm:()=>l(i.ref_id),children:e.jsx(He,{className:"centered",children:e.jsx(Mt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},i.source))})]}):e.jsxs(g,{children:[e.jsx(L,{children:"There is not any results for selected filters"}),e.jsx(Ce,{})]})},He=d(g)` +`,Ce=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{id:"filter_alt_off",children:[e.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1543_23288)",children:e.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),Us=({data:t})=>{const s=ae(i=>i.setQueuedSources),[n,r]=h.useState(""),a=async i=>{if(t!=null&&t.length)try{const o=await mt.enable();await bt(i,o.pubkey),s(t.filter(c=>c.ref_id!==i))}catch(o){console.warn(o)}},l=async i=>{if(!(!i||!(t!=null&&t.length))){r(i);try{await Ge(i),s(t==null?void 0:t.filter(o=>o.ref_id!==i))}catch(o){console.warn(o)}finally{r("")}}};return t!=null&&t.length?e.jsxs(de,{component:"table",children:[e.jsx(he,{children:e.jsxs(D,{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(i=>e.jsxs(xe,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:U[i.source_type]}),e.jsx(f,{width:"268px",children:i.source_type==="twitter_handle"?e.jsxs(We,{href:`${Qe}/${i.source}?open=system`,target:"_blank",children:["@",i.source]}):e.jsx(We,{href:`${i.source}?open=system`,target:"_blank",children:i.source})}),e.jsx(f,{className:"cell-center",children:e.jsxs(g,{direction:"row",justify:"flex-end",children:[e.jsx(Ds,{className:"approve-wrapper",children:e.jsx(He,{className:"centered",onClick:()=>a(i.ref_id),children:e.jsx(Bt,{color:x.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:n===i.ref_id?e.jsx(M,{color:x.white,size:16}):e.jsx(dt,{message:"Are you sure ?",onConfirm:()=>l(i.ref_id),children:e.jsx(He,{className:"centered",children:e.jsx(zt,{color:x.primaryRed,fontSize:24})})})})]})}),e.jsx(f,{className:"empty"})]},i.source))})]}):e.jsxs(g,{children:[e.jsx(L,{children:"There is not any results for selected filters"}),e.jsx(Ce,{})]})},He=d(g)` width: 20px; height: 20px; border-radius: 50%; @@ -351,7 +351,7 @@ import{r as h,d as Y,g as q,s as O,a as N,u as Q,b as X,j as e,c as K,h as J,i a } } width: 100%; -`,Qs=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"})}),Xs=({data:t,canEdit:s=!1})=>{const n=ae(o=>o.setSources),[r,a]=h.useState(""),l=async(o,c)=>{if(t!=null&&t.length)try{await jt(o,c);const u=t==null?void 0:t.findIndex(p=>p.ref_id===o),m=[...t];m[u]={...m[u],source:c.source},n(m)}catch(u){console.warn(u)}},i=async o=>{if(!(!o||!(t!=null&&t.length))){a(o);try{await Ge(o),n(t==null?void 0:t.filter(c=>c.ref_id!==o))}catch(c){console.warn(c)}finally{a("")}}};return t!=null&&t.length?e.jsxs(de,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(he,{children:e.jsxs(D,{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(os,{component:"tbody",children:t==null?void 0:t.map(o=>e.jsxs(xe,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{align:"left",children:U[o.source_type]}),e.jsx(f,{align:"left",children:e.jsx(Ks,{condition:s,wrapper:c=>e.jsx(Js,{id:o.ref_id,onSave:u=>l(o.ref_id,{source:u,source_type:o.source_type}),value:o.source,children:c}),children:o.source_type===ke||o.source_type===_e||o.source_type===Le?e.jsxs(e.Fragment,{children:[o.source_type===ke&&e.jsxs(ge,{href:`${Qe}/${o.source}`,target:"_blank",children:["@",o.source]}),o.source_type===_e&&e.jsx(ge,{href:`${o.source}${o.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:o.source}),o.source_type===Le&&e.jsx(ge,{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(xt,{"data-testid":`delete-loader-${o.ref_id}`,children:e.jsx(M,{color:x.white,size:16})}):e.jsx(dt,{"data-testid":`delete-icon-${o.ref_id}`,message:"Are you sure?",onConfirm:()=>i(o.ref_id),children:e.jsx(se,{className:"centered","data-testid":`delete-icon-${o.ref_id}`,children:e.jsx(Ot,{})})})})}),e.jsx(f,{className:"empty"})]},o.source))})]}):e.jsxs(to,{children:[e.jsx(Qs,{}),e.jsx(L,{className:"text",children:"There is not any results for selected filters"})]})};function Ks({condition:t,wrapper:s,children:n}){return t?s(n):n}const Js=({value:t,onSave:s,id:n,children:r})=>{const[a,l]=h.useState(!1),[i,o]=h.useState(t),[c,u]=h.useState(!1),m=async()=>{if(n){u(!0);try{await s(i),l(!1)}catch(p){console.warn(p)}finally{u(!1)}}};return e.jsx("div",{children:a?e.jsxs(eo,{align:"center",direction:"row",children:[e.jsx(At,{className:"editable-cell__input",name:"cell-input",onChange:p=>o(p),value:i}),e.jsx(se,{align:"center",justify:"center",children:c?e.jsx(xt,{"data-testid":`edit-loader-${n}`,children:e.jsx(M,{color:x.white,size:12})}):e.jsx(Nt,{"data-testid":`check-icon-${n}`,onClick:m})}),e.jsx(se,{align:"center",className:"secondary",justify:"center",onClick:()=>l(!1),children:e.jsx(Bt,{})})]}):e.jsxs(so,{direction:"row",children:[e.jsx("div",{className:"name",children:r}),e.jsx("div",{className:"spacer"}),e.jsx(se,{onClick:()=>l(!0),children:e.jsx(Ht,{"data-testid":`edit-icon-${n}`})})]})})},eo=d(g)` +`,Qs=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"})}),Xs=({data:t,canEdit:s=!1})=>{const n=ae(o=>o.setSources),[r,a]=h.useState(""),l=async(o,c)=>{if(t!=null&&t.length)try{await jt(o,c);const u=t==null?void 0:t.findIndex(p=>p.ref_id===o),m=[...t];m[u]={...m[u],source:c.source},n(m)}catch(u){console.warn(u)}},i=async o=>{if(!(!o||!(t!=null&&t.length))){a(o);try{await Ge(o),n(t==null?void 0:t.filter(c=>c.ref_id!==o))}catch(c){console.warn(c)}finally{a("")}}};return t!=null&&t.length?e.jsxs(de,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(he,{children:e.jsxs(D,{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(os,{component:"tbody",children:t==null?void 0:t.map(o=>e.jsxs(xe,{children:[e.jsx(f,{className:"empty"}),e.jsx(f,{align:"left",children:U[o.source_type]}),e.jsx(f,{align:"left",children:e.jsx(Ks,{condition:s,wrapper:c=>e.jsx(Js,{id:o.ref_id,onSave:u=>l(o.ref_id,{source:u,source_type:o.source_type}),value:o.source,children:c}),children:o.source_type===ke||o.source_type===_e||o.source_type===Le?e.jsxs(e.Fragment,{children:[o.source_type===ke&&e.jsxs(ge,{href:`${Qe}/${o.source}`,target:"_blank",children:["@",o.source]}),o.source_type===_e&&e.jsx(ge,{href:`${o.source}${o.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:o.source}),o.source_type===Le&&e.jsx(ge,{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(xt,{"data-testid":`delete-loader-${o.ref_id}`,children:e.jsx(M,{color:x.white,size:16})}):e.jsx(dt,{"data-testid":`delete-icon-${o.ref_id}`,message:"Are you sure?",onConfirm:()=>i(o.ref_id),children:e.jsx(se,{className:"centered","data-testid":`delete-icon-${o.ref_id}`,children:e.jsx(Ot,{})})})})}),e.jsx(f,{className:"empty"})]},o.source))})]}):e.jsxs(to,{children:[e.jsx(Qs,{}),e.jsx(L,{className:"text",children:"There is not any results for selected filters"})]})};function Ks({condition:t,wrapper:s,children:n}){return t?s(n):n}const Js=({value:t,onSave:s,id:n,children:r})=>{const[a,l]=h.useState(!1),[i,o]=h.useState(t),[c,u]=h.useState(!1),m=async()=>{if(n){u(!0);try{await s(i),l(!1)}catch(p){console.warn(p)}finally{u(!1)}}};return e.jsx("div",{children:a?e.jsxs(eo,{align:"center",direction:"row",children:[e.jsx(At,{className:"editable-cell__input",name:"cell-input",onChange:p=>o(p),value:i}),e.jsx(se,{align:"center",justify:"center",children:c?e.jsx(xt,{"data-testid":`edit-loader-${n}`,children:e.jsx(M,{color:x.white,size:12})}):e.jsx(It,{"data-testid":`check-icon-${n}`,onClick:m})}),e.jsx(se,{align:"center",className:"secondary",justify:"center",onClick:()=>l(!1),children:e.jsx(Rt,{})})]}):e.jsxs(so,{direction:"row",children:[e.jsx("div",{className:"name",children:r}),e.jsx("div",{className:"spacer"}),e.jsx(se,{onClick:()=>l(!0),children:e.jsx(Ht,{"data-testid":`edit-icon-${n}`})})]})})},eo=d(g)` display: flex; width: 250px; border: 2px solid ${x.lightBlue300}; @@ -689,7 +689,7 @@ import{r as h,d as Y,g as q,s as O,a as N,u as Q,b as X,j as e,c as K,h as J,i a display: flex; align-items: center; justify-content: center; -`,tn=h.memo(Yo),sn=({setShowMuteUnmute:t,showMuted:s,onTopicEdit:n,onChangeFilter:r,checkedStates:a,setCheckedStates:l})=>{const{close:i}=E("sourcesTable"),[o,c]=h.useState(!1),[u,m]=ne.useState(null),[p,C]=ne.useState(""),b=Object.values(a).filter(v=>v).length,[j,w]=St(v=>[v.setSearchFormValue,v.setCurrentSearch]),[y,S,$]=I(v=>[v.data,v.ids,v.total]),A=h.useCallback((v,R)=>{m(v.currentTarget),C(R)},[]),F=()=>{m(null)},B=v=>{j(v),w(v),i()},z=v=>{n(p,v),F()},H=v=>{r(v)},k=!!u,T=k?"simple-popover":void 0,_=async()=>{c(!0);try{const v=Object.keys(a).map(async V=>{if(a[V])try{return await le(V,{node_data:{is_muted:!s}}),V}catch(ht){return console.error("Error updating node data:",ht),null}return null}),R=await Promise.all(v);I.setState({ids:S.filter(V=>!R.includes(V)),total:$-R.length}),l({}),c(!1)}catch(v){console.error("Error:",v),c(!1)}};return y?e.jsx(e.Fragment,{children:Object.keys(y).length?e.jsx(pn,{align:"center",justify:o?"center":"flex-start",children:o?e.jsx(M,{color:x.white}):e.jsxs(e.Fragment,{children:[e.jsxs(de,{component:"table",children:[b>0?e.jsx(Ss,{children:e.jsxs(D,{component:"tr",children:[e.jsx(f,{children:e.jsx(Z,{onClick:()=>l({}),children:e.jsx(ee,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(dn,{children:[e.jsxs(cn,{children:[e.jsx(ln,{children:b}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ve,{onClick:_,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(De,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ue,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ve,{onClick:()=>z("mergeTopic"),children:[e.jsx(Ne,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(he,{children:e.jsxs(D,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(me,{onClick:()=>H(Te),children:["Name ",e.jsx(fe,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(me,{onClick:()=>H(zt),children:["Count ",e.jsx(fe,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(me,{onClick:()=>H(It),children:["Date ",e.jsx(fe,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(on,{onClick:t,children:[e.jsx(nn,{checked:s,children:e.jsx(rn,{children:s&&e.jsx(at,{})})}),"Muted"]})})})]})}),y&&e.jsx("tbody",{children:S==null?void 0:S.map(v=>e.jsx(tn,{checkedStates:a,isMuteDisabled:Object.values(a).filter(R=>R).length>1,onClick:A,onSearch:B,setCheckedStates:l,topic:y[v]},v))})]}),p?e.jsxs(an,{anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:T,onClose:F,open:k,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(G,{"data-testid":"unmute",onClick:()=>z("unMute"),children:[" ",e.jsx(De,{"data-testid":""})," Unmute"]}):e.jsxs(G,{"data-testid":"mute",onClick:()=>z("mute"),children:[" ",e.jsx(Ue,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(G,{"data-testid":"rename",onClick:()=>z("editTopic"),children:[e.jsx(Do,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(G,{"data-testid":"merge",onClick:()=>z("mergeTopic"),children:[e.jsx(Ne,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(G,{"data-testid":"add_edge",onClick:()=>z("addEdge"),children:[e.jsx(Wt,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})}):e.jsxs(g,{children:[e.jsx(L,{children:"There is not any results for selected filters"}),e.jsx(Ce,{})]})}):e.jsxs(g,{children:[e.jsx(L,{children:"There is not any results for selected filters"}),e.jsx(Ce,{})]})},on=d.td` +`,tn=h.memo(Yo),sn=({setShowMuteUnmute:t,showMuted:s,onTopicEdit:n,onChangeFilter:r,checkedStates:a,setCheckedStates:l})=>{const{close:i}=E("sourcesTable"),[o,c]=h.useState(!1),[u,m]=ne.useState(null),[p,C]=ne.useState(""),b=Object.values(a).filter(v=>v).length,[j,w]=St(v=>[v.setSearchFormValue,v.setCurrentSearch]),[y,S,$]=I(v=>[v.data,v.ids,v.total]),A=h.useCallback((v,R)=>{m(v.currentTarget),C(R)},[]),F=()=>{m(null)},B=v=>{j(v),w(v),i()},z=v=>{n(p,v),F()},H=v=>{r(v)},k=!!u,T=k?"simple-popover":void 0,_=async()=>{c(!0);try{const v=Object.keys(a).map(async V=>{if(a[V])try{return await le(V,{node_data:{is_muted:!s}}),V}catch(ht){return console.error("Error updating node data:",ht),null}return null}),R=await Promise.all(v);I.setState({ids:S.filter(V=>!R.includes(V)),total:$-R.length}),l({}),c(!1)}catch(v){console.error("Error:",v),c(!1)}};return y?e.jsx(e.Fragment,{children:Object.keys(y).length?e.jsx(pn,{align:"center",justify:o?"center":"flex-start",children:o?e.jsx(M,{color:x.white}):e.jsxs(e.Fragment,{children:[e.jsxs(de,{component:"table",children:[b>0?e.jsx(Ss,{children:e.jsxs(D,{component:"tr",children:[e.jsx(f,{children:e.jsx(Z,{onClick:()=>l({}),children:e.jsx(ee,{})})}),e.jsx(f,{colSpan:12,children:e.jsxs(dn,{children:[e.jsxs(cn,{children:[e.jsx(ln,{children:b}),"selected"]}),e.jsx(f,{className:"empty"}),e.jsx(Ve,{onClick:_,role:"button",children:s?e.jsxs(e.Fragment,{children:[e.jsx(De,{})," Unmute ALL"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ue,{})," Mute ALL"]})}),e.jsx(f,{className:"empty"}),e.jsxs(Ve,{onClick:()=>z("mergeTopic"),children:[e.jsx(Ne,{})," Merge"]})]})}),e.jsx(f,{className:"empty"})]})}):e.jsx(he,{children:e.jsxs(D,{component:"tr",children:[e.jsx(f,{className:"empty"}),e.jsx(f,{children:e.jsxs(me,{onClick:()=>H(Te),children:["Name ",e.jsx(fe,{})]})}),e.jsx(f,{children:"Type"}),e.jsx(f,{children:e.jsxs(me,{onClick:()=>H(Lt),children:["Count ",e.jsx(fe,{})]})}),e.jsx(f,{children:"Edge list"}),e.jsx(f,{children:e.jsxs(me,{onClick:()=>H(Mt),children:["Date ",e.jsx(fe,{})]})}),e.jsx(f,{children:e.jsx(g,{px:8,children:e.jsxs(on,{onClick:t,children:[e.jsx(nn,{checked:s,children:e.jsx(rn,{children:s&&e.jsx(at,{})})}),"Muted"]})})})]})}),y&&e.jsx("tbody",{children:S==null?void 0:S.map(v=>e.jsx(tn,{checkedStates:a,isMuteDisabled:Object.values(a).filter(R=>R).length>1,onClick:A,onSearch:B,setCheckedStates:l,topic:y[v]},v))})]}),p?e.jsxs(an,{anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:T,onClose:F,open:k,transformOrigin:{vertical:"top",horizontal:"right"},children:[s?e.jsxs(G,{"data-testid":"unmute",onClick:()=>z("unMute"),children:[" ",e.jsx(De,{"data-testid":""})," Unmute"]}):e.jsxs(G,{"data-testid":"mute",onClick:()=>z("mute"),children:[" ",e.jsx(Ue,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(G,{"data-testid":"rename",onClick:()=>z("editTopic"),children:[e.jsx(Do,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(G,{"data-testid":"merge",onClick:()=>z("mergeTopic"),children:[e.jsx(Ne,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(G,{"data-testid":"add_edge",onClick:()=>z("addEdge"),children:[e.jsx(Wt,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})}):e.jsxs(g,{children:[e.jsx(L,{children:"There is not any results for selected filters"}),e.jsx(Ce,{})]})}):e.jsxs(g,{children:[e.jsx(L,{children:"There is not any results for selected filters"}),e.jsx(Ce,{})]})},on=d.td` cursor: pointer; display: flex; align-items: center; @@ -811,7 +811,7 @@ import{r as h,d as Y,g as q,s as O,a as N,u as Q,b as X,j as e,c as K,h as J,i a width: 100%; `,gn=d(g)` margin: 0 0 16px 36px; -`,fn=[{label:ot,component:zs},{label:Rt,component:oo},{label:st,component:Vs},{label:tt,component:xn}],mn=t=>{const{children:s,value:n,index:r,...a}=t;return n===r?e.jsx(wn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...a,children:s}):null};function bn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const Cn=()=>{const[t,s]=h.useState(0),[n]=Ye(o=>[o.isAdmin]),[r]=$t(o=>[o.queuedSourcesFeatureFlag]),a=kt(),l=(o,c)=>{s(c)},i=fn.filter(({label:o})=>o===tt?n:o===st?n&&r:o===ot?a:!0);return e.jsxs(vn,{"data-testid":"sources-table",direction:"column",children:[e.jsx(jn,{"aria-label":"sources tabs",onChange:l,value:t,children:i.map((o,c)=>e.jsx(yn,{color:x.white,disableRipple:!0,label:o.label,...bn(c)},o.label))}),i.map((o,c)=>e.jsx(mn,{index:c,value:t,children:e.jsx(o.component,{})},o.label))]})},jn=d(Pt)` +`,fn=[{label:ot,component:zs},{label:Nt,component:oo},{label:st,component:Vs},{label:tt,component:xn}],mn=t=>{const{children:s,value:n,index:r,...a}=t;return n===r?e.jsx(wn,{"aria-labelledby":`simple-tab-${r}`,hidden:n!==r,id:`simple-tabpanel-${r}`,role:"tabpanel",...a,children:s}):null};function bn(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const Cn=()=>{const[t,s]=h.useState(0),[n]=Ye(o=>[o.isAdmin]),[r]=$t(o=>[o.queuedSourcesFeatureFlag]),a=kt(),l=(o,c)=>{s(c)},i=fn.filter(({label:o})=>o===tt?n:o===st?n&&r:o===ot?a:!0);return e.jsxs(vn,{"data-testid":"sources-table",direction:"column",children:[e.jsx(jn,{"aria-label":"sources tabs",onChange:l,value:t,children:i.map((o,c)=>e.jsx(yn,{color:x.white,disableRipple:!0,label:o.label,...bn(c)},o.label))}),i.map((o,c)=>e.jsx(mn,{index:c,value:t,children:e.jsx(o.component,{})},o.label))]})},jn=d(Pt)` && { background: rgba(0, 0, 0, 0.2); border-radius: 9px 9px 0 0; @@ -866,4 +866,4 @@ import{r as h,d as Y,g as q,s as O,a as N,u as Q,b as X,j as e,c as K,h as J,i a @media (max-width: 768px) { padding: 3px; } -`,Dn=()=>{const{close:t}=E("sourcesTable"),{visible:s}=E("addContent");return s?null:e.jsx(ce,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(Cn,{})})};export{Dn as SourcesTableModal}; +`,Vn=()=>{const{close:t}=E("sourcesTable"),{visible:s}=E("addContent");return s?null:e.jsx(ce,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(Cn,{})})};export{Vn as SourcesTableModal}; diff --git a/build/assets/index-82f7e5dd.js b/build/assets/index-82f7e5dd.js new file mode 100644 index 000000000..ba2906adb --- /dev/null +++ b/build/assets/index-82f7e5dd.js @@ -0,0 +1,6 @@ +import{t as i,j as t,v as a}from"./index-66901234.js";import{f as n}from"./index.esm-24fdfebf.js";import{p as e}from"./index-2979d0f2.js";const r=i.div` + display: Flex; + justify-content: center; + align-items: center; + gap: 5px; +`,u=o=>{const c=o||"Success",s="uniqueToastId";e.isActive(s)||e.success(t.jsxs(r,{children:[t.jsx(n,{color:a.white,fontSize:24}),c]}),{toastId:s,autoClose:5e3,icon:!1,closeButton:!1})};export{u as S}; diff --git a/build/assets/index-deb157a3.js b/build/assets/index-9fc2a325.js similarity index 91% rename from build/assets/index-deb157a3.js rename to build/assets/index-9fc2a325.js index 85550495c..a381a57d5 100644 --- a/build/assets/index-deb157a3.js +++ b/build/assets/index-9fc2a325.js @@ -1,4 +1,4 @@ -import{r,j as e,bx as F,ad as O,F as h,by as I,t as l,I as k,Y as E,D as A,v as _,bz as z}from"./index-87686c58.js";import{B as N}from"./index-0b3081fa.js";import{i as D,g as M,F as Y,B as P}from"./index-67098fb8.js";import{S as X,A as G,N as H,F as R,b as V}from"./NodeCircleIcon-d6d9a47a.js";import{A as L,T as W}from"./index-eaa4131c.js";import{O as $}from"./constants-a6b58f4d.js";import{C as T}from"./ClipLoader-3d43cca0.js";import"./Stack-448c401b.js";import"./createSvgIcon-bb70c00d.js";import"./TextareaAutosize-c523d1d2.js";const q=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await F();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})},J=({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:G,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await I(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(w)}catch{a([])}finally{o(!1)}};return O.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(X,{onClick:()=>t(null),size:"medium",children:e.jsx(D,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||$,selectedValue:c?n(c):null})},K=({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(q,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(H,{})}),e.jsx(ae,{onClick:x,children:e.jsx(R,{})}),e.jsx(ie,{children:e.jsx(V,{})})]})]})]})},Q=l.div` +import{r,j as e,bx as F,ad as O,F as h,by as I,t as l,I as k,Y as E,D as A,v as _,bz as z}from"./index-66901234.js";import{B as N}from"./index-f2d8f92e.js";import{h as D,f as M,F as Y,B as P}from"./index-2979d0f2.js";import{S as X,A as G,N as H,F as R,b as V}from"./NodeCircleIcon-e770be3d.js";import{A as L,T as W}from"./index-7e5f4468.js";import{O as $}from"./constants-a6b58f4d.js";import{C as T}from"./ClipLoader-81a960be.js";import"./Stack-9fbe3064.js";import"./createSvgIcon-d7fd46c8.js";import"./TextareaAutosize-146d11d5.js";const q=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await F();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})},J=({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:G,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await I(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(w)}catch{a([])}finally{o(!1)}};return O.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(X,{onClick:()=>t(null),size:"medium",children:e.jsx(D,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||$,selectedValue:c?n(c):null})},K=({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(q,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(H,{})}),e.jsx(ae,{onClick:x,children:e.jsx(R,{})}),e.jsx(ie,{children:e.jsx(V,{})})]})]})]})},Q=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-b92527b1.js b/build/assets/index-b92527b1.js new file mode 100644 index 000000000..938eba9ed --- /dev/null +++ b/build/assets/index-b92527b1.js @@ -0,0 +1,18 @@ +import{af as w,t as y,I as h,F as r,j as e,ba as S,r as C,Y as g,D as T}from"./index-66901234.js";import{e as k,B as x,f as b,F as D}from"./index-2979d0f2.js";import{B as E}from"./index-f2d8f92e.js";import{S as F}from"./index-82f7e5dd.js";import{A as _}from"./index-7e5f4468.js";import{T as V}from"./index-ed5d0d1f.js";import"./index.esm-24fdfebf.js";import"./Stack-9fbe3064.js";import"./createSvgIcon-d7fd46c8.js";import"./TextareaAutosize-146d11d5.js";const z=async o=>await w.post("/bounty",JSON.stringify(o)),j=/^[0-9]+$/,v=o=>{const n=o.trim();return!!(n&&j.test(n))},M=({errMessage:o,handleClose:n})=>{const{setValue:i,watch:t}=k(),a=t("budget",""),l=t("nodeType",""),c=s=>{const p=(s==null?void 0:s.label)||"SecondBrain";i("nodeType",p,{shouldValidate:!0})},d=[{label:"SecondBrain",value:"SecondBrain"}],u=v(a)&&!!l,m=s=>{s.key===" "&&s.preventDefault()};return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(A,{children:"Create Bounty"})}),e.jsxs(r,{mb:20,children:[e.jsx(f,{children:"Select Workspace"}),e.jsx(_,{autoFocus:!0,onSelect:c,options:d})]}),e.jsxs(r,{mb:20,children:[e.jsx(f,{children:"Set Budget"}),e.jsx(V,{id:"budget",name:"budget",onKeyDown:m,placeholder:"Enter budget",rules:{...S,pattern:{value:j,message:"Please enter a valid number"}},value:a})]}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(x,{color:"secondary",onClick:()=>n(),size:"large",variant:"contained",children:"Cancel"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(x,{color:"secondary",disabled:!u,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),o&&e.jsx(K,{children:o})]})},f=y(h)` + font-size: 14px; + font-weight: 600; + font-family: 'Barlow'; + margin-bottom: 6px; +`,A=y(h)` + font-size: 18px; + font-weight: 600; + font-family: 'Barlow'; + margin-bottom: 6px; +`,K=y(r)` + font-size: 13px; + font-family: Barlow; + color: #ff8f80; + line-height: 0.2px; + margin-top: 12px; + padding-top: 20px; +`,N=()=>{const[o,n]=C.useState(""),{close:i}=g("createBounty"),t=T(),a=b({mode:"onChange"}),{handleSubmit:l,setValue:c}=a,d=()=>{c("budget",""),c("nodeType",""),i()},u=async m=>{const{budget:s}=m,p={type:"code_generation",amount:Number(s),workspace_uuid:"ck9drb84nncjnaefo090",jwt_token:"abced-12345",ref_id:t==null?void 0:t.ref_id,node_data:(t==null?void 0:t.properties)||{}};try{await z(p),F("Bounty Created")}catch(B){n(B)}finally{c("budget",""),c("nodeType",""),d()}};return e.jsx(D,{...a,children:e.jsx("form",{id:"create-bounty-form",onSubmit:l(u),children:e.jsx(M,{errMessage:o,handleClose:d})})})},Y=()=>{const{close:o}=g("createBounty"),n=b({mode:"onChange"}),{setValue:i}=n,t=()=>{i("budget",""),i("nodeType",""),o()},a="small";return e.jsx(E,{id:"createBounty",kind:a,onClose:t,preventOutsideClose:!0,children:e.jsx(N,{})})};export{Y as CreateBountyModal}; diff --git a/build/assets/index-f524b7a4.js b/build/assets/index-cbd983bd.js similarity index 76% rename from build/assets/index-f524b7a4.js rename to build/assets/index-cbd983bd.js index 8f44e34f1..5b51a9772 100644 --- a/build/assets/index-f524b7a4.js +++ b/build/assets/index-cbd983bd.js @@ -1,4 +1,4 @@ -import{t as v,v as q,I as F,F as n,r as m,j as e,ba as J,bp as U,U as K,D as $,bq as Q,Y as L,b9 as O,bC as X,bF as Z}from"./index-87686c58.js";import{f as V,B as E,g as N,F as ee}from"./index-67098fb8.js";import{B as te}from"./index-0b3081fa.js";import{T as re}from"./index-d67f975a.js";import{p as Y}from"./index-44e303ef.js";import{n as ne}from"./constants-a6b58f4d.js";import{C as G}from"./ClipLoader-3d43cca0.js";import{A as W}from"./index-eaa4131c.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-2ce81f73.js";import"./Stack-448c401b.js";import"./createSvgIcon-bb70c00d.js";import"./TextareaAutosize-c523d1d2.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),I=s=>s?[...s].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:x,selectedValues:r})=>{const[f,w]=m.useState(!1),[h,C]=m.useState(),{watch:j,formState:{isValid:t}}=V();m.useEffect(()=>{(async()=>{w(!0);const o=await U(x),T=Y(o),A=H(T);C(A),w(!1)})()},[x,j]);const a=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=()=>{s(""),l("sourceType")},b=!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(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(G,{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(F,{children:a(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(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` +import{t as v,v as q,I as F,F as n,r as m,j as e,ba as J,bp as U,U as K,D as $,bq as Q,Y as L,b9 as O,bC as X,bF as Z}from"./index-66901234.js";import{e as V,B as E,f as N,F as ee}from"./index-2979d0f2.js";import{B as te}from"./index-f2d8f92e.js";import{T as re}from"./index-ed5d0d1f.js";import{p as Y}from"./index-44e303ef.js";import{n as ne}from"./constants-a6b58f4d.js";import{C as G}from"./ClipLoader-81a960be.js";import{A as W}from"./index-7e5f4468.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-24fdfebf.js";import"./three.module-2ce81f73.js";import"./Stack-9fbe3064.js";import"./createSvgIcon-d7fd46c8.js";import"./TextareaAutosize-146d11d5.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),I=s=>s?[...s].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:x,selectedValues:r})=>{const[f,w]=m.useState(!1),[h,C]=m.useState(),{watch:j,formState:{isValid:t}}=V();m.useEffect(()=>{(async()=>{w(!0);const o=await U(x),T=Y(o),A=H(T);C(A),w(!1)})()},[x,j]);const a=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=()=>{s(""),l("sourceType")},b=!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(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(G,{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(F,{children:a(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(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -74,4 +74,4 @@ import{t as v,v as q,I as F,F as n,r as m,j as e,ba as J,bp as U,U as K,D as $,b font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,we=async(s,l,x,r)=>{const f={},w=[];Object.entries(x).forEach(([t,a])=>{a!=="none"&&(f[a]=t),t!==a&&w.push(t)});const h={};Object.keys(r||{}).forEach(t=>{const a=r==null?void 0:r[t];Object.entries(f).forEach(([i,p])=>{p===t&&(h[f[i]]=a)})}),Object.keys(s).forEach(t=>{t!=="nodeType"&&(h[t]=s[t])});const C=r?r.node_type.charAt(0).toUpperCase()+r.node_type.slice(1):void 0,j={node_type:l,node_data:h,properties_to_be_deleted:w,type_to_be_deleted:C?[C]:[]};try{let t=r==null?void 0:r.ref_id;if((r==null?void 0:r.type)==="topic"){const{data:i}=await X({search:r==null?void 0:r.name}),p=i.find(S=>S.name===r.name);t=p==null?void 0:p.ref_id}const a=t||(r==null?void 0:r.ref_id);a&&await Z(a,j)}catch(t){console.error(t);let a=O;if(t.status===400)try{const i=await t.json();a=i.message||i.errorCode||(i==null?void 0:i.status)||O}catch{a=O}else t instanceof Error&&(a=t.message);throw new Error(a)}},qe=()=>{const[s,l]=m.useState("sourceType"),{close:x,visible:r}=L("changeNodeType"),{open:f}=L("editNodeName"),{open:w}=L("addType"),h=N({mode:"onChange"}),{watch:C,setValue:j,reset:t}=h,[a,i]=m.useState(""),[p,S]=m.useState({});m.useEffect(()=>()=>{l("sourceType"),t()},[r,t]);const b=$(),c=b!=null&&b.node_type?b.node_type.charAt(0).toUpperCase()+b.node_type.slice(1):"",o=C("nodeType");C("title");const T=()=>{x()},A=_=>{l(_)},d=h.handleSubmit(async _=>{try{await we(_,o,p,b),T()}catch(P){let D=O;if(T(),(P==null?void 0:P.status)===400){const B=await P.json();D=B.errorCode||(B==null?void 0:B.status)||O}else P instanceof Error&&(D=P.message);i(String(D))}}),u=_=>{_==="Create custom type"?w():j("nodeType",_)},y={sourceType:e.jsx(je,{allowNextStep:!!o,onSelectType:u,selectedType:o,skipToStep:A}),requiredProperties:e.jsx(se,{handleSelectType:u,nodeType:o,selectedValues:p,skipToStep:A}),createConfirmation:e.jsx(le,{nodeType:o,onclose:T,selectedNodeType:c}),mapProperties:e.jsx(pe,{handleSelectType:u,nodeType:o,selectedNodeType:c,selectedValues:p,setSelectedValues:S,skipToStep:A})},g=s==="mapProperties"?"regular":"small",z=()=>{x(),f()};return e.jsx(te,{id:"changeNodeType",kind:g,onClose:z,preventOutsideClose:!0,children:e.jsx(ee,{...h,children:e.jsx("form",{id:"add-node-form",onSubmit:d,children:y[s]})})})};export{qe as ChangeNodeTypeModal}; +`,we=async(s,l,x,r)=>{const f={},w=[];Object.entries(x).forEach(([t,a])=>{a!=="none"&&(f[a]=t),t!==a&&w.push(t)});const h={};Object.keys(r||{}).forEach(t=>{const a=r==null?void 0:r[t];Object.entries(f).forEach(([i,p])=>{p===t&&(h[f[i]]=a)})}),Object.keys(s).forEach(t=>{t!=="nodeType"&&(h[t]=s[t])});const C=r?r.node_type.charAt(0).toUpperCase()+r.node_type.slice(1):void 0,j={node_type:l,node_data:h,properties_to_be_deleted:w,type_to_be_deleted:C?[C]:[]};try{let t=r==null?void 0:r.ref_id;if((r==null?void 0:r.type)==="topic"){const{data:i}=await X({search:r==null?void 0:r.name}),p=i.find(S=>S.name===r.name);t=p==null?void 0:p.ref_id}const a=t||(r==null?void 0:r.ref_id);a&&await Z(a,j)}catch(t){console.error(t);let a=O;if(t.status===400)try{const i=await t.json();a=i.message||i.errorCode||(i==null?void 0:i.status)||O}catch{a=O}else t instanceof Error&&(a=t.message);throw new Error(a)}},De=()=>{const[s,l]=m.useState("sourceType"),{close:x,visible:r}=L("changeNodeType"),{open:f}=L("editNodeName"),{open:w}=L("addType"),h=N({mode:"onChange"}),{watch:C,setValue:j,reset:t}=h,[a,i]=m.useState(""),[p,S]=m.useState({});m.useEffect(()=>()=>{l("sourceType"),t()},[r,t]);const b=$(),c=b!=null&&b.node_type?b.node_type.charAt(0).toUpperCase()+b.node_type.slice(1):"",o=C("nodeType");C("title");const T=()=>{x()},A=_=>{l(_)},d=h.handleSubmit(async _=>{try{await we(_,o,p,b),T()}catch(P){let D=O;if(T(),(P==null?void 0:P.status)===400){const B=await P.json();D=B.errorCode||(B==null?void 0:B.status)||O}else P instanceof Error&&(D=P.message);i(String(D))}}),u=_=>{_==="Create custom type"?w():j("nodeType",_)},y={sourceType:e.jsx(je,{allowNextStep:!!o,onSelectType:u,selectedType:o,skipToStep:A}),requiredProperties:e.jsx(se,{handleSelectType:u,nodeType:o,selectedValues:p,skipToStep:A}),createConfirmation:e.jsx(le,{nodeType:o,onclose:T,selectedNodeType:c}),mapProperties:e.jsx(pe,{handleSelectType:u,nodeType:o,selectedNodeType:c,selectedValues:p,setSelectedValues:S,skipToStep:A})},g=s==="mapProperties"?"regular":"small",z=()=>{x(),f()};return e.jsx(te,{id:"changeNodeType",kind:g,onClose:z,preventOutsideClose:!0,children:e.jsx(ee,{...h,children:e.jsx("form",{id:"add-node-form",onSubmit:d,children:y[s]})})})};export{De as ChangeNodeTypeModal}; diff --git a/build/assets/index-bb8a1b27.js b/build/assets/index-d1d9c0be.js similarity index 85% rename from build/assets/index-bb8a1b27.js rename to build/assets/index-d1d9c0be.js index 63a2881b5..4da29a528 100644 --- a/build/assets/index-bb8a1b27.js +++ b/build/assets/index-d1d9c0be.js @@ -1 +1 @@ -import{B as f,bC as m}from"./index-87686c58.js";import{D as y}from"./NodeCircleIcon-d6d9a47a.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const S=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{S as u}; +import{B as f,bC as m}from"./index-66901234.js";import{D as y}from"./NodeCircleIcon-e770be3d.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const S=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{S as u}; diff --git a/build/assets/index-a326f840.js b/build/assets/index-d6780dfb.js similarity index 76% rename from build/assets/index-a326f840.js rename to build/assets/index-d6780dfb.js index 234f4ae3f..a067f2f67 100644 --- a/build/assets/index-a326f840.js +++ b/build/assets/index-d6780dfb.js @@ -1,4 +1,4 @@ -import{af as Z,t as g,v as b,F as t,I as T,H as V,r as y,j as e,bj as ee,bk as te,ba as F,bp as se,U as ne,bq as oe,Y as D,z as re,w as ie,b9 as I,ah as ae,ag as ce,bn as le}from"./index-87686c58.js";import{B as C,q as de,f as pe,g as me,S as xe,F as ue}from"./index-67098fb8.js";import{B as he}from"./index-0b3081fa.js";import{C as fe}from"./CheckIcon-dab8ab94.js";import{C as U}from"./ClipLoader-3d43cca0.js";import{n as B,O as ye,i as ge}from"./constants-a6b58f4d.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-d67f975a.js";import{A as je}from"./index-eaa4131c.js";import{c as we}from"./index-64f1c910.js";import"./three.module-2ce81f73.js";import"./Stack-448c401b.js";import"./createSvgIcon-bb70c00d.js";import"./TextareaAutosize-c523d1d2.js";const be=async(o,a,c="")=>await Z.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 te(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:[ee(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(U,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(de,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{af as Z,t as g,v as b,F as t,I as T,H as V,r as y,j as e,bj as ee,bk as te,ba as F,bp as se,U as ne,bq as oe,Y as D,z as re,w as ie,b9 as I,ah as ae,ag as ce,bn as le}from"./index-66901234.js";import{B as C,e as de,f as pe,F as me}from"./index-2979d0f2.js";import{B as xe}from"./index-f2d8f92e.js";import{S as ue}from"./index-82f7e5dd.js";import{e as he}from"./index.esm-24fdfebf.js";import{C as fe}from"./CheckIcon-306bcb61.js";import{C as U}from"./ClipLoader-81a960be.js";import{n as B,O as ye,i as ge}from"./constants-a6b58f4d.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-ed5d0d1f.js";import{A as je}from"./index-7e5f4468.js";import{c as we}from"./index-64f1c910.js";import"./three.module-2ce81f73.js";import"./Stack-9fbe3064.js";import"./createSvgIcon-d7fd46c8.js";import"./TextareaAutosize-146d11d5.js";const be=async(o,a,c="")=>await Z.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 te(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:[ee(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(U,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(he,{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}; @@ -85,7 +85,7 @@ import{af as Z,t as g,v as b,F as t,I as T,H as V,r as y,j as e,bj as ee,bk as t font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Ie=({handleSelectType:o,skipToStep:a,nodeType:c})=>{const[x,d]=y.useState(!1),[r,m]=y.useState(),{watch:l,setValue:h,formState:{isValid:w}}=pe();y.useEffect(()=>{(async()=>{d(!0);const u=await se(c),_=(u.attributes&&typeof u.attributes=="object"?q(u.attributes):q(u)).filter(A=>A.key!=="node_key");m(_),d(!1)})()},[c,l]);const f=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),n=r?[...r].sort((s,u)=>s.required&&!u.required?-1:!s.required&&u.required?1:0):[],j=()=>{o(""),a("sourceType")},p=()=>{r==null||r.forEach(({key:s,required:u})=>{if(u){const S=l(s);typeof S=="string"&&h(s,S.trim(),{shouldValidate:!0})}}),w&&!x&&(r!=null&&r.every(s=>!s.required||l(s.key)))&&a("setBudget")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(_e,{children:"Set Attributes"})})}),e.jsx(Ae,{children:x?e.jsx(t,{style:{margin:"auto"},children:e.jsx(U,{color:b.lightGray})}):e.jsx(t,{className:"input__wrapper",children:n==null?void 0:n.map(({key:s,required:u})=>e.jsxs(Ee,{children:[e.jsx(T,{children:f(s)}),e.jsx(L,{id:"item-name",maxLength:50,name:s,placeholder:u?"Required":"Optional",rules:{...u?{...F,pattern:{message:"No leading whitespace allowed",value:B}}:{}}})]},s))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:j,size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!w||x||(r==null?void 0:r.some(s=>s.required&&!l(s.key))),onClick:p,size:"large",variant:"contained",children:"Next"})})]})]})},_e=g(T)` +`,Ie=({handleSelectType:o,skipToStep:a,nodeType:c})=>{const[x,d]=y.useState(!1),[r,m]=y.useState(),{watch:l,setValue:h,formState:{isValid:w}}=de();y.useEffect(()=>{(async()=>{d(!0);const u=await se(c),_=(u.attributes&&typeof u.attributes=="object"?q(u.attributes):q(u)).filter(A=>A.key!=="node_key");m(_),d(!1)})()},[c,l]);const f=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),n=r?[...r].sort((s,u)=>s.required&&!u.required?-1:!s.required&&u.required?1:0):[],j=()=>{o(""),a("sourceType")},p=()=>{r==null||r.forEach(({key:s,required:u})=>{if(u){const S=l(s);typeof S=="string"&&h(s,S.trim(),{shouldValidate:!0})}}),w&&!x&&(r!=null&&r.every(s=>!s.required||l(s.key)))&&a("setBudget")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(_e,{children:"Set Attributes"})})}),e.jsx(Ae,{children:x?e.jsx(t,{style:{margin:"auto"},children:e.jsx(U,{color:b.lightGray})}):e.jsx(t,{className:"input__wrapper",children:n==null?void 0:n.map(({key:s,required:u})=>e.jsxs(Ee,{children:[e.jsx(T,{children:f(s)}),e.jsx(L,{id:"item-name",maxLength:50,name:s,placeholder:u?"Required":"Optional",rules:{...u?{...F,pattern:{message:"No leading whitespace allowed",value:B}}:{}}})]},s))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(C,{color:"secondary",onClick:j,size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(C,{color:"secondary",disabled:!w||x||(r==null?void 0:r.some(s=>s.required&&!l(s.key))),onClick:p,size:"large",variant:"contained",children:"Next"})})]})]})},_e=g(T)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -120,4 +120,4 @@ import{af as Z,t as g,v as b,F as t,I as T,H as V,r as y,j as e,bj as ee,bk as t font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Pe=async(o,a,c)=>{var f;const x=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:m,...l}=x;let h="",w="";d!=="Create custom type"&&await ae(async()=>{const n=await ce.enable();w=n==null?void 0:n.pubkey,h=await le()});try{const n=await Se(d,l,m,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},Ze=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:x}=D("addItem"),{open:d}=D("addType"),{setBudget:r}=V(i=>i),m=me({mode:"onChange"}),{watch:l,setValue:h,reset:w}=m,[f,n]=y.useState(!1),[j,p]=y.useState(""),{addNewNode:s}=re(i=>i),[u]=ie(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[x,w]);const S=l("nodeType"),_=l("typeName"),A=l("sourceLink"),Y=l("type");l("title");const M=()=>{c()},E=i=>{p(""),a(i)},W=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),Q=Object.entries(i).reduce(($,[X,z])=>(z!=null&&z!==""&&($[X]=z),$),{}),P={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...Q}};s({nodes:[P],links:[]}),u(P)},H=m.handleSubmit(async i=>{p(""),n(!0);try{await Pe(i,r,W),xe("Item Added"),M()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),O=i=>{i==="Create custom type"?d():h("nodeType",i)},J={sourceType:e.jsx(Me,{allowNextStep:!!S,onSelectType:O,selectedType:S,skipToStep:E}),source:e.jsx(Fe,{name:_,skipToStep:E,sourceLink:A||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(Be,{onclose:M,type:Y}),setAttribues:e.jsx(Ie,{handleSelectType:O,nodeType:S,skipToStep:E})},K="small";return e.jsx(he,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(ue,{...m,children:e.jsx("form",{id:"add-node-form",onSubmit:H,children:J[o]})})})};export{Ze as AddItemModal}; +`,Pe=async(o,a,c)=>{var f;const x=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:m,...l}=x;let h="",w="";d!=="Create custom type"&&await ae(async()=>{const n=await ce.enable();w=n==null?void 0:n.pubkey,h=await le()});try{const n=await Se(d,l,m,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},tt=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:x}=D("addItem"),{open:d}=D("addType"),{setBudget:r}=V(i=>i),m=pe({mode:"onChange"}),{watch:l,setValue:h,reset:w}=m,[f,n]=y.useState(!1),[j,p]=y.useState(""),{addNewNode:s}=re(i=>i),[u]=ie(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[x,w]);const S=l("nodeType"),_=l("typeName"),A=l("sourceLink"),Y=l("type");l("title");const M=()=>{c()},E=i=>{p(""),a(i)},W=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),Q=Object.entries(i).reduce(($,[X,z])=>(z!=null&&z!==""&&($[X]=z),$),{}),P={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...Q}};s({nodes:[P],links:[]}),u(P)},H=m.handleSubmit(async i=>{p(""),n(!0);try{await Pe(i,r,W),ue("Item Added"),M()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),O=i=>{i==="Create custom type"?d():h("nodeType",i)},J={sourceType:e.jsx(Me,{allowNextStep:!!S,onSelectType:O,selectedType:S,skipToStep:E}),source:e.jsx(Fe,{name:_,skipToStep:E,sourceLink:A||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(Be,{onclose:M,type:Y}),setAttribues:e.jsx(Ie,{handleSelectType:O,nodeType:S,skipToStep:E})},K="small";return e.jsx(xe,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(me,{...m,children:e.jsx("form",{id:"add-node-form",onSubmit:H,children:J[o]})})})};export{tt as AddItemModal}; diff --git a/build/assets/index-d67f975a.js b/build/assets/index-d67f975a.js deleted file mode 100644 index 766a2da34..000000000 --- a/build/assets/index-d67f975a.js +++ /dev/null @@ -1,96 +0,0 @@ -import{r as I,m as fe,q as de,t as N,v as S,j as E,F as L,b4 as pe,I as he}from"./index-87686c58.js";import{f as ge,D as ve,E as me,q as xe}from"./index-67098fb8.js";var ee={exports:{}},te={exports:{}},be=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=be;function ne(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var k=I,H=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&&dS[e]}; - background: transparent; - border: none; - color: ${({colorName:e})=>S[e]}; - cursor: ${({disabled:e})=>e?"default":"text"}; - margin: 0; - opacity: ${({disabled:e})=>e?.5:1}; - outline: 0; - padding: 0; - text-align: ${({textAlign:e})=>e}; - - &:focus { - border: none; - box-shadow: none; - outline: none; - } - - &[type='number'] { - appearance: textfield; - -webkit-appearance: textfield; - - &::-webkit-outer-spin-button, - &::-webkit-inner-spin-button { - appearance: none; - -webkit-appearance: none; - } - } - - &::placeholder { - -webkit-text-fill-color: ${({placeholderTextColor:e})=>S[e]}; - color: ${({placeholderTextColor:e})=>S[e]}; - } -`;U.displayName="WebTextInput";const ae=I.forwardRef(({autoComplete:e=O.autoComplete,autoFocus:r,className:t,colorName:n=O.colorName,dataTestId:o,defaultValue:i,disabled:s=O.disabled,id:u,maxLength:f=O.maxLength,name:p,onBlur:l,onChange:a,onFocus:c,onKeyDown:h,placeholder:w=O.placeholder,placeholderTextColor:g=O.placeholderTextColor,textAlign:d=O.textAlign,type:P=O.type,value:y},C)=>{const F=I.useCallback(M=>{a&&a(M.target.value)},[a]);return E.jsx(U,{ref:C,autoComplete:e,autoFocus:r,className:t,colorName:n,"data-testid":o,defaultValue:i,disabled:s,id:u,maxLength:f,name:p,onBlur:l,onChange:F,onFocus:c,onKeyDown:h,placeholder:w,placeholderTextColor:g,textAlign:d,type:P,value:y})});ae.displayName="BaseTextInput";const Me=e=>e.hasError?S.primaryRed:e.hasContent||e.isFocused||e.isHovered?S.primaryBlue:"transparent",Ae=N(L)` - background: ${S.inputBg2}; - border-radius: 8px; - border: 1px solid ${Me}; - padding: 12px 8px; -`,Re=N(L)` - cursor: default; - margin: 0 0 6px 6px; - position: relative; - color: ${S.placeholderText}; - - .tooltip { - position: absolute; - background-color: ${S.dashboardHeader}; - border: 1px solid ${S.secondaryText4}; - border-radius: 4px; - color: ${S.white}; - top: 22px; - padding: 4px 8px; - font-size: 13px; - visibility: hidden; - width: auto; - white-space: nowrap; - z-index: 1; - } - - ${e=>e.name==="endTime"&&` - .tooltip { - left: -68px; - } - `} - - &:hover .tooltip { - visibility: visible; - } - - &:focus .tooltip { - visibility: visible; - } -`,Ie=N.label` - color: ${S.lightGray}; - font-size: 12px; - font-weight: 600; - margin-bottom: 6px; -`,Te=N.textarea` - width: 100%; - height: 100px; - border: none; - background: transparent; - color: ${S.white}; - font-size: 14px; - font-weight: 400; - resize: none; - font-family: 'Barlow'; - white-space: pre-wrap; - overflow-wrap: break-word; - box-sizing: border-box; - outline: none; - line-height: 20px; - letter-spacing: 0.01em; - text-align: left; -`,Be=({id:e,dataTestId:r,label:t,mask:n="",message:o,name:i,rules:s,showMask:u=!1,maskPlaceholder:f=null,isTextArea:p=!1,placeholder:l="",maxLength:a,...c})=>{const{register:h,control:w,formState:{errors:g},getValues:d}=ge()||{},P=ve(g,i),y=d(i),[C,F]=I.useState(!1),[M,A]=I.useState(!1);return I.useEffect(()=>{const V=document.getElementById(e);V&&V.focus()},[e]),E.jsxs(L,{shrink:1,children:[E.jsxs(L,{align:"center",direction:"row",children:[t&&E.jsx(Ie,{htmlFor:e,children:t}),o&&E.jsxs(Re,{name:i,role:"tooltip",children:[E.jsx(pe,{}),E.jsx("div",{className:"tooltip",children:o})]})]}),E.jsx(Ae,{hasContent:!!y,hasError:!!P,isFocused:C,isHovered:M,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:E.jsx(me,{control:w,...h(i),render:({field:{onBlur:V,onChange:T,value:D,ref:$}})=>{const{disabled:v=O.disabled,textAlign:m=O.textAlign}=c;return p?E.jsx(Te,{ref:$,"data-testid":r,disabled:v,id:e,maxLength:a,onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,value:D||""}):n?E.jsx(Le,{alwaysShowMask:u,disabled:!1,inputRef:$,mask:n,...h(i),maskPlaceholder:f,onBlur:V,onChange:T,value:D,children:E.jsx(U,{colorName:"white","data-testid":r,disabled:v,...h(i),id:e,onBlur:()=>F(!1),onFocus:()=>F(!0),placeholderTextColor:"inputPlaceholder",textAlign:m})}):E.jsx(ae,{...c,colorName:"white",dataTestId:r,id:e,...h(i),onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,placeholderTextColor:"inputPlaceholder",value:D||""})},rules:s})}),P&&E.jsx(L,{pl:4,pt:8,shrink:1,tabIndex:0,children:E.jsx(he,{color:"primaryRed",kind:"regularBold",children:E.jsxs(L,{align:"center",direction:"row",shrink:1,children:[E.jsx(xe,{fontSize:18}),E.jsx(L,{pl:4,shrink:1,children:P.message!==""?P.message:"Please enter a valid URL"})]})})})]})};export{ae as B,Be as T}; diff --git a/build/assets/index-ed5d0d1f.js b/build/assets/index-ed5d0d1f.js new file mode 100644 index 000000000..01339d13c --- /dev/null +++ b/build/assets/index-ed5d0d1f.js @@ -0,0 +1,96 @@ +import{r as I,m as fe,q as de,t as N,v as S,j as E,F as L,b4 as pe,I as he}from"./index-66901234.js";import{e as ge,q as ve,s as me}from"./index-2979d0f2.js";import{e as xe}from"./index.esm-24fdfebf.js";var ee={exports:{}},te={exports:{}},be=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=be;function ne(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var k=I,H=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&&dS[e]}; + background: transparent; + border: none; + color: ${({colorName:e})=>S[e]}; + cursor: ${({disabled:e})=>e?"default":"text"}; + margin: 0; + opacity: ${({disabled:e})=>e?.5:1}; + outline: 0; + padding: 0; + text-align: ${({textAlign:e})=>e}; + + &:focus { + border: none; + box-shadow: none; + outline: none; + } + + &[type='number'] { + appearance: textfield; + -webkit-appearance: textfield; + + &::-webkit-outer-spin-button, + &::-webkit-inner-spin-button { + appearance: none; + -webkit-appearance: none; + } + } + + &::placeholder { + -webkit-text-fill-color: ${({placeholderTextColor:e})=>S[e]}; + color: ${({placeholderTextColor:e})=>S[e]}; + } +`;U.displayName="WebTextInput";const ae=I.forwardRef(({autoComplete:e=O.autoComplete,autoFocus:r,className:t,colorName:n=O.colorName,dataTestId:o,defaultValue:i,disabled:s=O.disabled,id:u,maxLength:f=O.maxLength,name:p,onBlur:l,onChange:a,onFocus:c,onKeyDown:h,placeholder:w=O.placeholder,placeholderTextColor:g=O.placeholderTextColor,textAlign:d=O.textAlign,type:P=O.type,value:y},C)=>{const F=I.useCallback(M=>{a&&a(M.target.value)},[a]);return E.jsx(U,{ref:C,autoComplete:e,autoFocus:r,className:t,colorName:n,"data-testid":o,defaultValue:i,disabled:s,id:u,maxLength:f,name:p,onBlur:l,onChange:F,onFocus:c,onKeyDown:h,placeholder:w,placeholderTextColor:g,textAlign:d,type:P,value:y})});ae.displayName="BaseTextInput";const Me=e=>e.hasError?S.primaryRed:e.hasContent||e.isFocused||e.isHovered?S.primaryBlue:"transparent",Ae=N(L)` + background: ${S.inputBg2}; + border-radius: 8px; + border: 1px solid ${Me}; + padding: 12px 8px; +`,Re=N(L)` + cursor: default; + margin: 0 0 6px 6px; + position: relative; + color: ${S.placeholderText}; + + .tooltip { + position: absolute; + background-color: ${S.dashboardHeader}; + border: 1px solid ${S.secondaryText4}; + border-radius: 4px; + color: ${S.white}; + top: 22px; + padding: 4px 8px; + font-size: 13px; + visibility: hidden; + width: auto; + white-space: nowrap; + z-index: 1; + } + + ${e=>e.name==="endTime"&&` + .tooltip { + left: -68px; + } + `} + + &:hover .tooltip { + visibility: visible; + } + + &:focus .tooltip { + visibility: visible; + } +`,Ie=N.label` + color: ${S.lightGray}; + font-size: 12px; + font-weight: 600; + margin-bottom: 6px; +`,Te=N.textarea` + width: 100%; + height: 100px; + border: none; + background: transparent; + color: ${S.white}; + font-size: 14px; + font-weight: 400; + resize: none; + font-family: 'Barlow'; + white-space: pre-wrap; + overflow-wrap: break-word; + box-sizing: border-box; + outline: none; + line-height: 20px; + letter-spacing: 0.01em; + text-align: left; +`,Ne=({id:e,dataTestId:r,label:t,mask:n="",message:o,name:i,rules:s,showMask:u=!1,maskPlaceholder:f=null,isTextArea:p=!1,placeholder:l="",maxLength:a,...c})=>{const{register:h,control:w,formState:{errors:g},getValues:d}=ge()||{},P=ve(g,i),y=d(i),[C,F]=I.useState(!1),[M,A]=I.useState(!1);return I.useEffect(()=>{const V=document.getElementById(e);V&&V.focus()},[e]),E.jsxs(L,{shrink:1,children:[E.jsxs(L,{align:"center",direction:"row",children:[t&&E.jsx(Ie,{htmlFor:e,children:t}),o&&E.jsxs(Re,{name:i,role:"tooltip",children:[E.jsx(pe,{}),E.jsx("div",{className:"tooltip",children:o})]})]}),E.jsx(Ae,{hasContent:!!y,hasError:!!P,isFocused:C,isHovered:M,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:E.jsx(me,{control:w,...h(i),render:({field:{onBlur:V,onChange:T,value:D,ref:$}})=>{const{disabled:v=O.disabled,textAlign:m=O.textAlign}=c;return p?E.jsx(Te,{ref:$,"data-testid":r,disabled:v,id:e,maxLength:a,onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,value:D||""}):n?E.jsx(Le,{alwaysShowMask:u,disabled:!1,inputRef:$,mask:n,...h(i),maskPlaceholder:f,onBlur:V,onChange:T,value:D,children:E.jsx(U,{colorName:"white","data-testid":r,disabled:v,...h(i),id:e,onBlur:()=>F(!1),onFocus:()=>F(!0),placeholderTextColor:"inputPlaceholder",textAlign:m})}):E.jsx(ae,{...c,colorName:"white",dataTestId:r,id:e,...h(i),onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,placeholderTextColor:"inputPlaceholder",value:D||""})},rules:s})}),P&&E.jsx(L,{pl:4,pt:8,shrink:1,tabIndex:0,children:E.jsx(he,{color:"primaryRed",kind:"regularBold",children:E.jsxs(L,{align:"center",direction:"row",shrink:1,children:[E.jsx(xe,{fontSize:18}),E.jsx(L,{pl:4,shrink:1,children:P.message!==""?P.message:"Please enter a valid URL"})]})})})]})};export{ae as B,Ne as T}; diff --git a/build/assets/index-0b3081fa.js b/build/assets/index-f2d8f92e.js similarity index 96% rename from build/assets/index-0b3081fa.js rename to build/assets/index-f2d8f92e.js index 59fc1c81e..830aa5314 100644 --- a/build/assets/index-0b3081fa.js +++ b/build/assets/index-f2d8f92e.js @@ -1,4 +1,4 @@ -import{ay as m,t as s,v as r,aw as o,F as d,Y as w,r as y,j as e}from"./index-87686c58.js";import{i as v}from"./index-67098fb8.js";const j=m` +import{ay as m,t as s,v as r,aw as o,F as d,Y as w,r as y,j as e}from"./index-66901234.js";import{h as v}from"./index-2979d0f2.js";const j=m` 0% { transform: scale(0.8); } diff --git a/build/assets/index-ea2300d8.js b/build/assets/index-f3d28701.js similarity index 64% rename from build/assets/index-ea2300d8.js rename to build/assets/index-f3d28701.js index 608b11d48..b66166c0e 100644 --- a/build/assets/index-ea2300d8.js +++ b/build/assets/index-f3d28701.js @@ -1 +1 @@ -import{w as o}from"./index-87686c58.js";const n=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{n as u}; +import{w as o}from"./index-66901234.js";const n=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{n as u}; diff --git a/build/assets/index-366d799f.js b/build/assets/index-f3dd3c85.js similarity index 99% rename from build/assets/index-366d799f.js rename to build/assets/index-f3dd3c85.js index 41613c1cd..96871402c 100644 --- a/build/assets/index-366d799f.js +++ b/build/assets/index-f3dd3c85.js @@ -1,4 +1,4 @@ -import{j as e,Y as r,N as B,M as F,z as I,G as V,U as _,H as A,Z as U,I as s,t as l,v as C,F as a}from"./index-87686c58.js";import{C as $}from"./index-67098fb8.js";const O=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_25)",children:e.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),z=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_27)",children:e.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),G=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),T=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("g",{id:"Menu icons",children:e.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),N=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_29)",children:e.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),Y=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_26)",children:e.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),X=()=>{const{open:t}=r("sourcesTable"),{open:d}=r("addItem"),{open:h}=r("addContent"),{open:p}=r("settings"),{open:x}=r("blueprintGraph"),{open:u}=r("feedback"),m=B(),{resetAiSummaryAnswer:g,setNewLoading:w}=F(),{abortFetchData:j,resetGraph:b}=I(n=>n),{setUniverseQuestionIsOpen:k,setSidebarOpen:f,setShowCollapseButton:v}=V(n=>n),{customSchemaFeatureFlag:H,userFeedbackFeatureFlag:M,chatInterfaceFeatureFlag:L}=_(n=>n),{isAdmin:c}=A(n=>n),y=U(),Z=()=>{w(null),j(),g(),b(),m("/")},S=()=>{k(),f(!0),v(!0)};return e.jsxs(D,{children:[e.jsx(E,{onClick:Z,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),L?e.jsxs(i,{onClick:S,children:[e.jsx(o,{children:e.jsx(T,{})}),e.jsx(s,{children:"New Chat"})]}):null,c?e.jsxs(i,{"data-testid":"add-item-modal",onClick:d,children:[e.jsx(o,{children:e.jsx(z,{})}),e.jsx(s,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:h,children:[e.jsx(o,{children:e.jsx(O,{})}),e.jsx(s,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(o,{children:e.jsx(Y,{})}),e.jsx(s,{children:"Source Table"})]}),H&&c?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(o,{children:e.jsx($,{})}),e.jsx(s,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:p,children:[e.jsx(o,{children:e.jsx(N,{})}),e.jsx(s,{children:"Settings"})]}),M&&y?e.jsxs(R,{"data-testid":"feedback-modal",onClick:u,children:[e.jsx(o,{children:e.jsx(G,{})}),e.jsx(s,{children:"Send Feedback"})]}):null]})},D=l(a).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{j as e,Y as r,N as B,M as F,z as I,G as V,U as _,H as A,Z as U,I as s,t as l,v as C,F as a}from"./index-66901234.js";import{C as $}from"./index-2979d0f2.js";const O=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_25)",children:e.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),z=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_27)",children:e.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),G=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),T=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("g",{id:"Menu icons",children:e.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),N=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_29)",children:e.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),Y=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_26)",children:e.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),X=()=>{const{open:t}=r("sourcesTable"),{open:d}=r("addItem"),{open:h}=r("addContent"),{open:p}=r("settings"),{open:x}=r("blueprintGraph"),{open:u}=r("feedback"),m=B(),{resetAiSummaryAnswer:g,setNewLoading:w}=F(),{abortFetchData:j,resetGraph:b}=I(n=>n),{setUniverseQuestionIsOpen:k,setSidebarOpen:f,setShowCollapseButton:v}=V(n=>n),{customSchemaFeatureFlag:H,userFeedbackFeatureFlag:M,chatInterfaceFeatureFlag:L}=_(n=>n),{isAdmin:c}=A(n=>n),y=U(),Z=()=>{w(null),j(),g(),b(),m("/")},S=()=>{k(),f(!0),v(!0)};return e.jsxs(D,{children:[e.jsx(E,{onClick:Z,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),L?e.jsxs(i,{onClick:S,children:[e.jsx(o,{children:e.jsx(T,{})}),e.jsx(s,{children:"New Chat"})]}):null,c?e.jsxs(i,{"data-testid":"add-item-modal",onClick:d,children:[e.jsx(o,{children:e.jsx(z,{})}),e.jsx(s,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:h,children:[e.jsx(o,{children:e.jsx(O,{})}),e.jsx(s,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(o,{children:e.jsx(Y,{})}),e.jsx(s,{children:"Source Table"})]}),H&&c?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(o,{children:e.jsx($,{})}),e.jsx(s,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:p,children:[e.jsx(o,{children:e.jsx(N,{})}),e.jsx(s,{children:"Settings"})]}),M&&y?e.jsxs(R,{"data-testid":"feedback-modal",onClick:u,children:[e.jsx(o,{children:e.jsx(G,{})}),e.jsx(s,{children:"Send Feedback"})]}):null]})},D=l(a).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 31; transition: opacity 1s; diff --git a/build/assets/index-651c0502.js b/build/assets/index-fdf4f1b9.js similarity index 55% rename from build/assets/index-651c0502.js rename to build/assets/index-fdf4f1b9.js index 27378566b..55eb15936 100644 --- a/build/assets/index-651c0502.js +++ b/build/assets/index-fdf4f1b9.js @@ -1,4 +1,4 @@ -import{j as e,t as r,v as y,I as S,F as n,Y as g,U as G,D as F,ba as P,r as l,bC as Y,bA as q,z as O}from"./index-87686c58.js";import{B as J}from"./index-0b3081fa.js";import{T as K,g as Q,F as X,B as k}from"./index-67098fb8.js";import{T as I}from"./index-d67f975a.js";import{S as Z}from"./Skeleton-20b798ec.js";import{C as ee}from"./ClipLoader-3d43cca0.js";const _=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(s){return!!_.test(s)}const ae=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),e.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),oe=()=>{const{open:s}=g("changeNodeType"),{close:u}=g("editNodeName"),{changeNodeTypeFeatureFlag:c}=G(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=F(),h=a==null?void 0:a.node_type,d=()=>{u(),s()};return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(n,{align:"center",direction:"row",children:[e.jsx(ne,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(K,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(B,{style:{marginBottom:8},children:"Node Name"}),e.jsx(I,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...P}})]}),e.jsxs(n,{mb:36,children:[e.jsx(B,{style:{marginBottom:8},children:"Image Url"}),e.jsx(I,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"Image url",rules:{pattern:{message:"Please enter a valid URL",value:_}}})]})]})},ne=r(S)` +import{j as e,t as r,v as y,I as S,F as n,Y as g,U as G,D as F,ba as P,r as l,bC as Y,bA as q,z as O}from"./index-66901234.js";import{B as J}from"./index-f2d8f92e.js";import{T as K,f as Q,F as X,B as k}from"./index-2979d0f2.js";import{T as I}from"./index-ed5d0d1f.js";import{S as Z}from"./Skeleton-afb5f26b.js";import{C as ee}from"./ClipLoader-81a960be.js";import"./index.esm-24fdfebf.js";const _=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(s){return!!_.test(s)}const ae=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),e.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),oe=()=>{const{open:s}=g("changeNodeType"),{close:u}=g("editNodeName"),{changeNodeTypeFeatureFlag:c}=G(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=F(),h=a==null?void 0:a.node_type,d=()=>{u(),s()};return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(n,{align:"center",direction:"row",children:[e.jsx(ne,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(K,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(B,{style:{marginBottom:8},children:"Node Name"}),e.jsx(I,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...P}})]}),e.jsxs(n,{mb:36,children:[e.jsx(B,{style:{marginBottom:8},children:"Image Url"}),e.jsx(I,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"Image url",rules:{pattern:{message:"Please enter a valid URL",value:_}}})]})]})},ne=r(S)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -33,4 +33,4 @@ import{j as e,t as r,v as y,I as S,F as n,Y as g,U as G,D as F,ba as P,r as l,bC } `,de=r.span` margin-top: 3px; -`,fe=()=>{const{close:s}=g("editNodeName");return e.jsx(J,{id:"editNodeName",kind:"large",onClose:s,preventOutsideClose:!0,children:e.jsx(ie,{})})};export{fe as EditNodeNameModal}; +`,ye=()=>{const{close:s}=g("editNodeName");return e.jsx(J,{id:"editNodeName",kind:"large",onClose:s,preventOutsideClose:!0,children:e.jsx(ie,{})})};export{ye as EditNodeNameModal}; diff --git a/build/assets/index.esm-24fdfebf.js b/build/assets/index.esm-24fdfebf.js new file mode 100644 index 000000000..c32b2fe20 --- /dev/null +++ b/build/assets/index.esm-24fdfebf.js @@ -0,0 +1 @@ +import{R as c}from"./index-66901234.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 Second Brain - +